gp-designer 1.0.103 → 1.0.104

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { defineComponent as Oe, ref as j, computed as Ge, openBlock as M, createBlock as Ye, Transition as I0, withCtx as Rr, createElementBlock as Y, createElementVNode as b, normalizeClass as si, renderSlot as Qr, createCommentVNode as W, toDisplayString as IA, reactive as y0, createApp as x0, h as Gi, watch as ae, resolveComponent as _0, Fragment as Gt, unref as mA, resolveDynamicComponent as Vi, mergeProps as Yi, withModifiers as PA, createTextVNode as fs, renderList as Rn, toRaw as Ko, withDirectives as me, vModelSelect as _a, vModelText as je, createVNode as Ie, toRefs as S0, onMounted as L0, nextTick as Xi, normalizeStyle as hs, vModelCheckbox as H0 } from "vue";
1
+ import { defineComponent as Oe, ref as j, computed as Ge, openBlock as k, createBlock as Ye, Transition as I0, withCtx as Rr, createElementBlock as Y, createElementVNode as b, normalizeClass as si, renderSlot as Qr, createCommentVNode as W, toDisplayString as IA, reactive as y0, createApp as x0, h as Gi, watch as ae, resolveComponent as _0, Fragment as Gt, unref as mA, resolveDynamicComponent as Vi, mergeProps as Yi, withModifiers as PA, createTextVNode as fs, renderList as Rn, toRaw as Ko, withDirectives as me, vModelSelect as _a, vModelText as je, createVNode as Ie, toRefs as S0, onMounted as L0, nextTick as Xi, normalizeStyle as hs, vModelCheckbox as H0 } from "vue";
2
2
  var lA;
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";
@@ -1780,7 +1780,7 @@ function fc(A, e, t) {
1780
1780
  throw new Error("Expected `=`");
1781
1781
  a(2);
1782
1782
  } else e.charCodeAt(t) === 61 && (T = DA.Equals, a(1));
1783
- let w = "", x = null;
1783
+ let w = "", y = null;
1784
1784
  if (T !== "exists") {
1785
1785
  if (Na(e.charCodeAt(t))) {
1786
1786
  const H = e.charCodeAt(t);
@@ -1797,8 +1797,8 @@ function fc(A, e, t) {
1797
1797
  w = sr(e.slice(H, t));
1798
1798
  }
1799
1799
  a(0);
1800
- const K = e.charCodeAt(t) | 32;
1801
- K === 115 ? (x = !1, a(1)) : K === 105 && (x = !0, a(1));
1800
+ const R = e.charCodeAt(t) | 32;
1801
+ R === 115 ? (y = !1, a(1)) : R === 105 && (y = !0, a(1));
1802
1802
  }
1803
1803
  if (e.charCodeAt(t) !== 93)
1804
1804
  throw new Error("Attribute selector didn't terminate");
@@ -1809,7 +1809,7 @@ function fc(A, e, t) {
1809
1809
  action: T,
1810
1810
  value: w,
1811
1811
  namespace: m,
1812
- ignoreCase: x
1812
+ ignoreCase: y
1813
1813
  };
1814
1814
  r.push(N);
1815
1815
  break;
@@ -3366,13 +3366,13 @@ function Zd(A, e) {
3366
3366
  ) : Array.isArray(l) ? (
3367
3367
  // $([dom])
3368
3368
  l
3369
- ) : void 0, x = new o(w, I, m);
3369
+ ) : void 0, y = new o(w, I, m);
3370
3370
  if (w)
3371
- return x;
3371
+ return y;
3372
3372
  if (typeof l != "string")
3373
3373
  throw new TypeError("Unexpected type of selector");
3374
3374
  let N = l;
3375
- const K = f ? (
3375
+ const R = f ? (
3376
3376
  // If we don't have a context, maybe we have a root, from loading
3377
3377
  typeof f == "string" ? Es(f) ? (
3378
3378
  // $('li', '<ul>...</ul>')
@@ -3388,7 +3388,7 @@ function Zd(A, e) {
3388
3388
  new o(Array.isArray(f) ? f : [f], I, m)
3389
3389
  )
3390
3390
  ) : I;
3391
- return K ? K.find(N) : x;
3391
+ return R ? R.find(N) : y;
3392
3392
  }
3393
3393
  return Object.assign(c, Xf, {
3394
3394
  load: t,
@@ -3565,10 +3565,10 @@ function Hc(A, e) {
3565
3565
  return A.attrs[t].value;
3566
3566
  return null;
3567
3567
  }
3568
- var F;
3568
+ var v;
3569
3569
  (function(A) {
3570
3570
  A.HTML = "http://www.w3.org/1999/xhtml", A.MATHML = "http://www.w3.org/1998/Math/MathML", A.SVG = "http://www.w3.org/2000/svg", A.XLINK = "http://www.w3.org/1999/xlink", A.XML = "http://www.w3.org/XML/1998/namespace", A.XMLNS = "http://www.w3.org/2000/xmlns/";
3571
- })(F || (F = {}));
3571
+ })(v || (v = {}));
3572
3572
  var Tt;
3573
3573
  (function(A) {
3574
3574
  A.TYPE = "type", A.ACTION = "action", A.ENCODING = "encoding", A.PROMPT = "prompt", A.NAME = "name", A.COLOR = "color", A.FACE = "face", A.SIZE = "size";
@@ -3715,7 +3715,7 @@ function da(A) {
3715
3715
  return (e = sg.get(A)) !== null && e !== void 0 ? e : u.UNKNOWN;
3716
3716
  }
3717
3717
  const L = u, ig = {
3718
- [F.HTML]: /* @__PURE__ */ new Set([
3718
+ [v.HTML]: /* @__PURE__ */ new Set([
3719
3719
  L.ADDRESS,
3720
3720
  L.APPLET,
3721
3721
  L.AREA,
@@ -3798,11 +3798,11 @@ const L = u, ig = {
3798
3798
  L.WBR,
3799
3799
  L.XMP
3800
3800
  ]),
3801
- [F.MATHML]: /* @__PURE__ */ new Set([L.MI, L.MO, L.MN, L.MS, L.MTEXT, L.ANNOTATION_XML]),
3802
- [F.SVG]: /* @__PURE__ */ new Set([L.TITLE, L.FOREIGN_OBJECT, L.DESC]),
3803
- [F.XLINK]: /* @__PURE__ */ new Set(),
3804
- [F.XML]: /* @__PURE__ */ new Set(),
3805
- [F.XMLNS]: /* @__PURE__ */ new Set()
3801
+ [v.MATHML]: /* @__PURE__ */ new Set([L.MI, L.MO, L.MN, L.MS, L.MTEXT, L.ANNOTATION_XML]),
3802
+ [v.SVG]: /* @__PURE__ */ new Set([L.TITLE, L.FOREIGN_OBJECT, L.DESC]),
3803
+ [v.XLINK]: /* @__PURE__ */ new Set(),
3804
+ [v.XML]: /* @__PURE__ */ new Set(),
3805
+ [v.XMLNS]: /* @__PURE__ */ new Set()
3806
3806
  }, Us = /* @__PURE__ */ new Set([L.H1, L.H2, L.H3, L.H4, L.H5, L.H6]), ug = /* @__PURE__ */ new Set([
3807
3807
  C.STYLE,
3808
3808
  C.SCRIPT,
@@ -5778,7 +5778,7 @@ class Cg {
5778
5778
  }
5779
5779
  //Update current element
5780
5780
  _isInTemplate() {
5781
- return this.currentTagId === u.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === F.HTML;
5781
+ return this.currentTagId === u.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === v.HTML;
5782
5782
  }
5783
5783
  _updateCurrentElement() {
5784
5784
  this.current = this.items[this.stackTop], this.currentTagId = this.tagIDs[this.stackTop];
@@ -5803,7 +5803,7 @@ class Cg {
5803
5803
  let t = this.stackTop + 1;
5804
5804
  do
5805
5805
  t = this.tagIDs.lastIndexOf(e, t - 1);
5806
- while (t > 0 && this.treeAdapter.getNamespaceURI(this.items[t]) !== F.HTML);
5806
+ while (t > 0 && this.treeAdapter.getNamespaceURI(this.items[t]) !== v.HTML);
5807
5807
  this.shortenToLength(t < 0 ? 0 : t);
5808
5808
  }
5809
5809
  shortenToLength(e) {
@@ -5821,10 +5821,10 @@ class Cg {
5821
5821
  this.shortenToLength(r < 0 ? 0 : r);
5822
5822
  }
5823
5823
  popUntilNumberedHeaderPopped() {
5824
- this.popUntilPopped(Us, F.HTML);
5824
+ this.popUntilPopped(Us, v.HTML);
5825
5825
  }
5826
5826
  popUntilTableCellPopped() {
5827
- this.popUntilPopped(mg, F.HTML);
5827
+ this.popUntilPopped(mg, v.HTML);
5828
5828
  }
5829
5829
  popAllUpToHtmlElement() {
5830
5830
  this.tmplCount = 0, this.shortenToLength(1);
@@ -5840,13 +5840,13 @@ class Cg {
5840
5840
  this.shortenToLength(r + 1);
5841
5841
  }
5842
5842
  clearBackToTableContext() {
5843
- this.clearBackTo(Eg, F.HTML);
5843
+ this.clearBackTo(Eg, v.HTML);
5844
5844
  }
5845
5845
  clearBackToTableBodyContext() {
5846
- this.clearBackTo(pg, F.HTML);
5846
+ this.clearBackTo(pg, v.HTML);
5847
5847
  }
5848
5848
  clearBackToTableRowContext() {
5849
- this.clearBackTo(Bg, F.HTML);
5849
+ this.clearBackTo(Bg, v.HTML);
5850
5850
  }
5851
5851
  remove(e) {
5852
5852
  const t = this._indexOf(e);
@@ -5871,19 +5871,19 @@ class Cg {
5871
5871
  for (let r = this.stackTop; r >= 0; r--) {
5872
5872
  const n = this.tagIDs[r];
5873
5873
  switch (this.treeAdapter.getNamespaceURI(this.items[r])) {
5874
- case F.HTML: {
5874
+ case v.HTML: {
5875
5875
  if (n === e)
5876
5876
  return !0;
5877
5877
  if (t.has(n))
5878
5878
  return !1;
5879
5879
  break;
5880
5880
  }
5881
- case F.SVG: {
5881
+ case v.SVG: {
5882
5882
  if (lu.has(n))
5883
5883
  return !1;
5884
5884
  break;
5885
5885
  }
5886
- case F.MATHML: {
5886
+ case v.MATHML: {
5887
5887
  if (cu.has(n))
5888
5888
  return !1;
5889
5889
  break;
@@ -5905,19 +5905,19 @@ class Cg {
5905
5905
  for (let e = this.stackTop; e >= 0; e--) {
5906
5906
  const t = this.tagIDs[e];
5907
5907
  switch (this.treeAdapter.getNamespaceURI(this.items[e])) {
5908
- case F.HTML: {
5908
+ case v.HTML: {
5909
5909
  if (Us.has(t))
5910
5910
  return !0;
5911
5911
  if (Wn.has(t))
5912
5912
  return !1;
5913
5913
  break;
5914
5914
  }
5915
- case F.SVG: {
5915
+ case v.SVG: {
5916
5916
  if (lu.has(t))
5917
5917
  return !1;
5918
5918
  break;
5919
5919
  }
5920
- case F.MATHML: {
5920
+ case v.MATHML: {
5921
5921
  if (cu.has(t))
5922
5922
  return !1;
5923
5923
  break;
@@ -5928,7 +5928,7 @@ class Cg {
5928
5928
  }
5929
5929
  hasInTableScope(e) {
5930
5930
  for (let t = this.stackTop; t >= 0; t--)
5931
- if (this.treeAdapter.getNamespaceURI(this.items[t]) === F.HTML)
5931
+ if (this.treeAdapter.getNamespaceURI(this.items[t]) === v.HTML)
5932
5932
  switch (this.tagIDs[t]) {
5933
5933
  case e:
5934
5934
  return !0;
@@ -5940,7 +5940,7 @@ class Cg {
5940
5940
  }
5941
5941
  hasTableBodyContextInTableScope() {
5942
5942
  for (let e = this.stackTop; e >= 0; e--)
5943
- if (this.treeAdapter.getNamespaceURI(this.items[e]) === F.HTML)
5943
+ if (this.treeAdapter.getNamespaceURI(this.items[e]) === v.HTML)
5944
5944
  switch (this.tagIDs[e]) {
5945
5945
  case u.TBODY:
5946
5946
  case u.THEAD:
@@ -5954,7 +5954,7 @@ class Cg {
5954
5954
  }
5955
5955
  hasInSelectScope(e) {
5956
5956
  for (let t = this.stackTop; t >= 0; t--)
5957
- if (this.treeAdapter.getNamespaceURI(this.items[t]) === F.HTML)
5957
+ if (this.treeAdapter.getNamespaceURI(this.items[t]) === v.HTML)
5958
5958
  switch (this.tagIDs[t]) {
5959
5959
  case e:
5960
5960
  return !0;
@@ -6374,17 +6374,17 @@ const du = {
6374
6374
  "yChannelSelector",
6375
6375
  "zoomAndPan"
6376
6376
  ].map((A) => [A.toLowerCase(), A])), Sg = /* @__PURE__ */ new Map([
6377
- ["xlink:actuate", { prefix: "xlink", name: "actuate", namespace: F.XLINK }],
6378
- ["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace: F.XLINK }],
6379
- ["xlink:href", { prefix: "xlink", name: "href", namespace: F.XLINK }],
6380
- ["xlink:role", { prefix: "xlink", name: "role", namespace: F.XLINK }],
6381
- ["xlink:show", { prefix: "xlink", name: "show", namespace: F.XLINK }],
6382
- ["xlink:title", { prefix: "xlink", name: "title", namespace: F.XLINK }],
6383
- ["xlink:type", { prefix: "xlink", name: "type", namespace: F.XLINK }],
6384
- ["xml:lang", { prefix: "xml", name: "lang", namespace: F.XML }],
6385
- ["xml:space", { prefix: "xml", name: "space", namespace: F.XML }],
6386
- ["xmlns", { prefix: "", name: "xmlns", namespace: F.XMLNS }],
6387
- ["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace: F.XMLNS }]
6377
+ ["xlink:actuate", { prefix: "xlink", name: "actuate", namespace: v.XLINK }],
6378
+ ["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace: v.XLINK }],
6379
+ ["xlink:href", { prefix: "xlink", name: "href", namespace: v.XLINK }],
6380
+ ["xlink:role", { prefix: "xlink", name: "role", namespace: v.XLINK }],
6381
+ ["xlink:show", { prefix: "xlink", name: "show", namespace: v.XLINK }],
6382
+ ["xlink:title", { prefix: "xlink", name: "title", namespace: v.XLINK }],
6383
+ ["xlink:type", { prefix: "xlink", name: "type", namespace: v.XLINK }],
6384
+ ["xml:lang", { prefix: "xml", name: "lang", namespace: v.XML }],
6385
+ ["xml:space", { prefix: "xml", name: "space", namespace: v.XML }],
6386
+ ["xmlns", { prefix: "", name: "xmlns", namespace: v.XMLNS }],
6387
+ ["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace: v.XMLNS }]
6388
6388
  ]), Lg = new Map([
6389
6389
  "altGlyph",
6390
6390
  "altGlyphDef",
@@ -6496,20 +6496,20 @@ function Dg(A) {
6496
6496
  e != null && (A.tagName = e, A.tagID = da(A.tagName));
6497
6497
  }
6498
6498
  function Og(A, e) {
6499
- return e === F.MATHML && (A === u.MI || A === u.MO || A === u.MN || A === u.MS || A === u.MTEXT);
6499
+ return e === v.MATHML && (A === u.MI || A === u.MO || A === u.MN || A === u.MS || A === u.MTEXT);
6500
6500
  }
6501
6501
  function Rg(A, e, t) {
6502
- if (e === F.MATHML && A === u.ANNOTATION_XML) {
6502
+ if (e === v.MATHML && A === u.ANNOTATION_XML) {
6503
6503
  for (let r = 0; r < t.length; r++)
6504
6504
  if (t[r].name === Tt.ENCODING) {
6505
6505
  const n = t[r].value.toLowerCase();
6506
6506
  return n === du.TEXT_HTML || n === du.APPLICATION_XML;
6507
6507
  }
6508
6508
  }
6509
- return e === F.SVG && (A === u.FOREIGN_OBJECT || A === u.DESC || A === u.TITLE);
6509
+ return e === v.SVG && (A === u.FOREIGN_OBJECT || A === u.DESC || A === u.TITLE);
6510
6510
  }
6511
6511
  function Mg(A, e, t, r) {
6512
- return (!r || r === F.HTML) && Rg(A, e, t) || (!r || r === F.MATHML) && Og(A, e);
6512
+ return (!r || r === v.HTML) && Rg(A, e, t) || (!r || r === v.MATHML) && Og(A, e);
6513
6513
  }
6514
6514
  const kg = "hidden", Pg = 8, Kg = 3;
6515
6515
  var B;
@@ -6546,8 +6546,8 @@ let Gc = class {
6546
6546
  ...gu,
6547
6547
  ...t
6548
6548
  };
6549
- e ?? (e = r.treeAdapter.createElement(C.TEMPLATE, F.HTML, []));
6550
- const n = r.treeAdapter.createElement("documentmock", F.HTML, []), a = new this(r, n, e);
6549
+ e ?? (e = r.treeAdapter.createElement(C.TEMPLATE, v.HTML, []));
6550
+ const n = r.treeAdapter.createElement("documentmock", v.HTML, []), a = new this(r, n, e);
6551
6551
  return a.fragmentContextID === u.TEMPLATE && a.tmplInsertionModeStack.unshift(B.IN_TEMPLATE), a._initTokenizerForFragmentParsing(), a._insertFakeRootElement(), a._resetInsertionMode(), a._findFormInFragmentContext(), a;
6552
6552
  }
6553
6553
  getFragment() {
@@ -6586,12 +6586,12 @@ let Gc = class {
6586
6586
  }
6587
6587
  }
6588
6588
  _setContextModes(e, t) {
6589
- const r = e === this.document || this.treeAdapter.getNamespaceURI(e) === F.HTML;
6589
+ const r = e === this.document || this.treeAdapter.getNamespaceURI(e) === v.HTML;
6590
6590
  this.currentNotInHTML = !r, this.tokenizer.inForeignNode = !r && !this._isIntegrationPoint(t, e);
6591
6591
  }
6592
6592
  /** @protected */
6593
6593
  _switchToTextParsing(e, t) {
6594
- this._insertElement(e, F.HTML), this.tokenizer.state = t, this.originalInsertionMode = this.insertionMode, this.insertionMode = B.TEXT;
6594
+ this._insertElement(e, v.HTML), this.tokenizer.state = t, this.originalInsertionMode = this.insertionMode, this.insertionMode = B.TEXT;
6595
6595
  }
6596
6596
  switchToPlaintextParsing() {
6597
6597
  this.insertionMode = B.TEXT, this.originalInsertionMode = B.IN_BODY, this.tokenizer.state = fe.PLAINTEXT;
@@ -6613,7 +6613,7 @@ let Gc = class {
6613
6613
  }
6614
6614
  }
6615
6615
  _initTokenizerForFragmentParsing() {
6616
- if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== F.HTML))
6616
+ if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== v.HTML))
6617
6617
  switch (this.fragmentContextID) {
6618
6618
  case u.TITLE:
6619
6619
  case u.TEXTAREA: {
@@ -6680,17 +6680,17 @@ let Gc = class {
6680
6680
  }
6681
6681
  /** @protected */
6682
6682
  _insertFakeElement(e, t) {
6683
- const r = this.treeAdapter.createElement(e, F.HTML, []);
6683
+ const r = this.treeAdapter.createElement(e, v.HTML, []);
6684
6684
  this._attachElementToTree(r, null), this.openElements.push(r, t);
6685
6685
  }
6686
6686
  /** @protected */
6687
6687
  _insertTemplate(e) {
6688
- const t = this.treeAdapter.createElement(e.tagName, F.HTML, e.attrs), r = this.treeAdapter.createDocumentFragment();
6688
+ const t = this.treeAdapter.createElement(e.tagName, v.HTML, e.attrs), r = this.treeAdapter.createDocumentFragment();
6689
6689
  this.treeAdapter.setTemplateContent(t, r), this._attachElementToTree(t, e.location), this.openElements.push(t, e.tagID), this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(r, null);
6690
6690
  }
6691
6691
  /** @protected */
6692
6692
  _insertFakeRootElement() {
6693
- const e = this.treeAdapter.createElement(C.HTML, F.HTML, []);
6693
+ const e = this.treeAdapter.createElement(C.HTML, v.HTML, []);
6694
6694
  this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(e, null), this.treeAdapter.appendChild(this.openElements.current, e), this.openElements.push(e, u.HTML);
6695
6695
  }
6696
6696
  /** @protected */
@@ -6739,11 +6739,11 @@ let Gc = class {
6739
6739
  if (!this.currentNotInHTML)
6740
6740
  return !1;
6741
6741
  let t, r;
6742
- return this.openElements.stackTop === 0 && this.fragmentContext ? (t = this.fragmentContext, r = this.fragmentContextID) : { current: t, currentTagId: r } = this.openElements, e.tagID === u.SVG && this.treeAdapter.getTagName(t) === C.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(t) === F.MATHML ? !1 : (
6742
+ return this.openElements.stackTop === 0 && this.fragmentContext ? (t = this.fragmentContext, r = this.fragmentContextID) : { current: t, currentTagId: r } = this.openElements, e.tagID === u.SVG && this.treeAdapter.getTagName(t) === C.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(t) === v.MATHML ? !1 : (
6743
6743
  // Check that `current` is not an integration point for HTML or MathML elements.
6744
6744
  this.tokenizer.inForeignNode || // If it _is_ an integration point, then we might have to check that it is not an HTML
6745
6745
  // integration point.
6746
- (e.tagID === u.MGLYPH || e.tagID === u.MALIGNMARK) && !this._isIntegrationPoint(r, t, F.HTML)
6746
+ (e.tagID === u.MGLYPH || e.tagID === u.MALIGNMARK) && !this._isIntegrationPoint(r, t, v.HTML)
6747
6747
  );
6748
6748
  }
6749
6749
  /** @protected */
@@ -6904,7 +6904,7 @@ let Gc = class {
6904
6904
  const t = this.openElements.items[e];
6905
6905
  switch (this.openElements.tagIDs[e]) {
6906
6906
  case u.TEMPLATE: {
6907
- if (this.treeAdapter.getNamespaceURI(t) === F.HTML)
6907
+ if (this.treeAdapter.getNamespaceURI(t) === v.HTML)
6908
6908
  return { parent: this.treeAdapter.getTemplateContent(t), beforeElement: null };
6909
6909
  break;
6910
6910
  }
@@ -7462,7 +7462,7 @@ function Jg(A, e, t) {
7462
7462
  A._fosterParentElement(t);
7463
7463
  else {
7464
7464
  const a = A.treeAdapter.getNamespaceURI(e);
7465
- n === u.TEMPLATE && a === F.HTML && (e = A.treeAdapter.getTemplateContent(e)), A.treeAdapter.appendChild(e, t);
7465
+ n === u.TEMPLATE && a === v.HTML && (e = A.treeAdapter.getTemplateContent(e)), A.treeAdapter.appendChild(e, t);
7466
7466
  }
7467
7467
  }
7468
7468
  function qg(A, e, t) {
@@ -7514,7 +7514,7 @@ function ir(A, e) {
7514
7514
  A._err(e, U.missingDoctype, !0), A.treeAdapter.setDocumentMode(A.document, ge.QUIRKS), A.insertionMode = B.BEFORE_HTML, A._processToken(e);
7515
7515
  }
7516
7516
  function Zg(A, e) {
7517
- e.tagID === u.HTML ? (A._insertElement(e, F.HTML), A.insertionMode = B.BEFORE_HEAD) : vr(A, e);
7517
+ e.tagID === u.HTML ? (A._insertElement(e, v.HTML), A.insertionMode = B.BEFORE_HEAD) : vr(A, e);
7518
7518
  }
7519
7519
  function AB(A, e) {
7520
7520
  const t = e.tagID;
@@ -7530,7 +7530,7 @@ function eB(A, e) {
7530
7530
  break;
7531
7531
  }
7532
7532
  case u.HEAD: {
7533
- A._insertElement(e, F.HTML), A.headElement = A.openElements.current, A.insertionMode = B.IN_HEAD;
7533
+ A._insertElement(e, v.HTML), A.headElement = A.openElements.current, A.insertionMode = B.IN_HEAD;
7534
7534
  break;
7535
7535
  }
7536
7536
  default:
@@ -7555,7 +7555,7 @@ function ye(A, e) {
7555
7555
  case u.BGSOUND:
7556
7556
  case u.LINK:
7557
7557
  case u.META: {
7558
- A._appendElement(e, F.HTML), e.ackSelfClosing = !0;
7558
+ A._appendElement(e, v.HTML), e.ackSelfClosing = !0;
7559
7559
  break;
7560
7560
  }
7561
7561
  case u.TITLE: {
@@ -7563,7 +7563,7 @@ function ye(A, e) {
7563
7563
  break;
7564
7564
  }
7565
7565
  case u.NOSCRIPT: {
7566
- A.options.scriptingEnabled ? A._switchToTextParsing(e, fe.RAWTEXT) : (A._insertElement(e, F.HTML), A.insertionMode = B.IN_HEAD_NO_SCRIPT);
7566
+ A.options.scriptingEnabled ? A._switchToTextParsing(e, fe.RAWTEXT) : (A._insertElement(e, v.HTML), A.insertionMode = B.IN_HEAD_NO_SCRIPT);
7567
7567
  break;
7568
7568
  }
7569
7569
  case u.NOFRAMES:
@@ -7662,11 +7662,11 @@ function sB(A, e) {
7662
7662
  break;
7663
7663
  }
7664
7664
  case u.BODY: {
7665
- A._insertElement(e, F.HTML), A.framesetOk = !1, A.insertionMode = B.IN_BODY;
7665
+ A._insertElement(e, v.HTML), A.framesetOk = !1, A.insertionMode = B.IN_BODY;
7666
7666
  break;
7667
7667
  }
7668
7668
  case u.FRAMESET: {
7669
- A._insertElement(e, F.HTML), A.insertionMode = B.IN_FRAMESET;
7669
+ A._insertElement(e, v.HTML), A.insertionMode = B.IN_FRAMESET;
7670
7670
  break;
7671
7671
  }
7672
7672
  case u.BASE:
@@ -7752,20 +7752,20 @@ function oB(A, e) {
7752
7752
  }
7753
7753
  function cB(A, e) {
7754
7754
  const t = A.openElements.tryPeekProperlyNestedBodyElement();
7755
- A.framesetOk && t && (A.treeAdapter.detachNode(t), A.openElements.popAllUpToHtmlElement(), A._insertElement(e, F.HTML), A.insertionMode = B.IN_FRAMESET);
7755
+ A.framesetOk && t && (A.treeAdapter.detachNode(t), A.openElements.popAllUpToHtmlElement(), A._insertElement(e, v.HTML), A.insertionMode = B.IN_FRAMESET);
7756
7756
  }
7757
7757
  function lB(A, e) {
7758
- A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._insertElement(e, F.HTML);
7758
+ A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._insertElement(e, v.HTML);
7759
7759
  }
7760
7760
  function fB(A, e) {
7761
- A.openElements.hasInButtonScope(u.P) && A._closePElement(), Us.has(A.openElements.currentTagId) && A.openElements.pop(), A._insertElement(e, F.HTML);
7761
+ A.openElements.hasInButtonScope(u.P) && A._closePElement(), Us.has(A.openElements.currentTagId) && A.openElements.pop(), A._insertElement(e, v.HTML);
7762
7762
  }
7763
7763
  function hB(A, e) {
7764
- A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._insertElement(e, F.HTML), A.skipNextNewLine = !0, A.framesetOk = !1;
7764
+ A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._insertElement(e, v.HTML), A.skipNextNewLine = !0, A.framesetOk = !1;
7765
7765
  }
7766
7766
  function dB(A, e) {
7767
7767
  const t = A.openElements.tmplCount > 0;
7768
- (!A.formElement || t) && (A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._insertElement(e, F.HTML), t || (A.formElement = A.openElements.current));
7768
+ (!A.formElement || t) && (A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._insertElement(e, v.HTML), t || (A.formElement = A.openElements.current));
7769
7769
  }
7770
7770
  function gB(A, e) {
7771
7771
  A.framesetOk = !1;
@@ -7779,51 +7779,51 @@ function gB(A, e) {
7779
7779
  if (n !== u.ADDRESS && n !== u.DIV && n !== u.P && A._isSpecialElement(A.openElements.items[r], n))
7780
7780
  break;
7781
7781
  }
7782
- A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._insertElement(e, F.HTML);
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, F.HTML), A.tokenizer.state = fe.PLAINTEXT;
7785
+ A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._insertElement(e, v.HTML), A.tokenizer.state = fe.PLAINTEXT;
7786
7786
  }
7787
7787
  function pB(A, e) {
7788
- A.openElements.hasInScope(u.BUTTON) && (A.openElements.generateImpliedEndTags(), A.openElements.popUntilTagNamePopped(u.BUTTON)), A._reconstructActiveFormattingElements(), A._insertElement(e, F.HTML), A.framesetOk = !1;
7788
+ A.openElements.hasInScope(u.BUTTON) && (A.openElements.generateImpliedEndTags(), A.openElements.popUntilTagNamePopped(u.BUTTON)), A._reconstructActiveFormattingElements(), A._insertElement(e, v.HTML), A.framesetOk = !1;
7789
7789
  }
7790
7790
  function EB(A, e) {
7791
7791
  const t = A.activeFormattingElements.getElementEntryInScopeWithTagName(C.A);
7792
- t && (vi(A, e), A.openElements.remove(t.element), A.activeFormattingElements.removeEntry(t)), A._reconstructActiveFormattingElements(), A._insertElement(e, F.HTML), A.activeFormattingElements.pushElement(A.openElements.current, e);
7792
+ t && (vi(A, e), A.openElements.remove(t.element), A.activeFormattingElements.removeEntry(t)), A._reconstructActiveFormattingElements(), A._insertElement(e, v.HTML), A.activeFormattingElements.pushElement(A.openElements.current, e);
7793
7793
  }
7794
7794
  function mB(A, e) {
7795
- A._reconstructActiveFormattingElements(), A._insertElement(e, F.HTML), A.activeFormattingElements.pushElement(A.openElements.current, e);
7795
+ A._reconstructActiveFormattingElements(), A._insertElement(e, v.HTML), A.activeFormattingElements.pushElement(A.openElements.current, e);
7796
7796
  }
7797
7797
  function CB(A, e) {
7798
- A._reconstructActiveFormattingElements(), A.openElements.hasInScope(u.NOBR) && (vi(A, e), A._reconstructActiveFormattingElements()), A._insertElement(e, F.HTML), A.activeFormattingElements.pushElement(A.openElements.current, e);
7798
+ A._reconstructActiveFormattingElements(), A.openElements.hasInScope(u.NOBR) && (vi(A, e), A._reconstructActiveFormattingElements()), A._insertElement(e, v.HTML), A.activeFormattingElements.pushElement(A.openElements.current, e);
7799
7799
  }
7800
7800
  function wB(A, e) {
7801
- A._reconstructActiveFormattingElements(), A._insertElement(e, F.HTML), A.activeFormattingElements.insertMarker(), A.framesetOk = !1;
7801
+ A._reconstructActiveFormattingElements(), A._insertElement(e, v.HTML), A.activeFormattingElements.insertMarker(), A.framesetOk = !1;
7802
7802
  }
7803
7803
  function bB(A, e) {
7804
- A.treeAdapter.getDocumentMode(A.document) !== ge.QUIRKS && A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._insertElement(e, F.HTML), A.framesetOk = !1, A.insertionMode = B.IN_TABLE;
7804
+ A.treeAdapter.getDocumentMode(A.document) !== ge.QUIRKS && A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._insertElement(e, v.HTML), A.framesetOk = !1, A.insertionMode = B.IN_TABLE;
7805
7805
  }
7806
7806
  function Xc(A, e) {
7807
- A._reconstructActiveFormattingElements(), A._appendElement(e, F.HTML), A.framesetOk = !1, e.ackSelfClosing = !0;
7807
+ A._reconstructActiveFormattingElements(), A._appendElement(e, v.HTML), A.framesetOk = !1, e.ackSelfClosing = !0;
7808
7808
  }
7809
7809
  function Wc(A) {
7810
7810
  const e = Hc(A, Tt.TYPE);
7811
7811
  return e != null && e.toLowerCase() === kg;
7812
7812
  }
7813
7813
  function TB(A, e) {
7814
- A._reconstructActiveFormattingElements(), A._appendElement(e, F.HTML), Wc(e) || (A.framesetOk = !1), e.ackSelfClosing = !0;
7814
+ A._reconstructActiveFormattingElements(), A._appendElement(e, v.HTML), Wc(e) || (A.framesetOk = !1), e.ackSelfClosing = !0;
7815
7815
  }
7816
7816
  function UB(A, e) {
7817
- A._appendElement(e, F.HTML), e.ackSelfClosing = !0;
7817
+ A._appendElement(e, v.HTML), e.ackSelfClosing = !0;
7818
7818
  }
7819
7819
  function QB(A, e) {
7820
- A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._appendElement(e, F.HTML), A.framesetOk = !1, e.ackSelfClosing = !0;
7820
+ A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._appendElement(e, v.HTML), A.framesetOk = !1, e.ackSelfClosing = !0;
7821
7821
  }
7822
7822
  function FB(A, e) {
7823
7823
  e.tagName = C.IMG, e.tagID = u.IMG, Xc(A, e);
7824
7824
  }
7825
7825
  function vB(A, e) {
7826
- A._insertElement(e, F.HTML), A.skipNextNewLine = !0, A.tokenizer.state = fe.RCDATA, A.originalInsertionMode = A.insertionMode, A.framesetOk = !1, A.insertionMode = B.TEXT;
7826
+ A._insertElement(e, v.HTML), A.skipNextNewLine = !0, A.tokenizer.state = fe.RCDATA, A.originalInsertionMode = A.insertionMode, A.framesetOk = !1, A.insertionMode = B.TEXT;
7827
7827
  }
7828
7828
  function IB(A, e) {
7829
7829
  A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._reconstructActiveFormattingElements(), A.framesetOk = !1, A._switchToTextParsing(e, fe.RAWTEXT);
@@ -7835,25 +7835,25 @@ function Bu(A, e) {
7835
7835
  A._switchToTextParsing(e, fe.RAWTEXT);
7836
7836
  }
7837
7837
  function xB(A, e) {
7838
- A._reconstructActiveFormattingElements(), A._insertElement(e, F.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;
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;
7839
7839
  }
7840
7840
  function _B(A, e) {
7841
- A.openElements.currentTagId === u.OPTION && A.openElements.pop(), A._reconstructActiveFormattingElements(), A._insertElement(e, F.HTML);
7841
+ A.openElements.currentTagId === u.OPTION && A.openElements.pop(), A._reconstructActiveFormattingElements(), A._insertElement(e, v.HTML);
7842
7842
  }
7843
7843
  function SB(A, e) {
7844
- A.openElements.hasInScope(u.RUBY) && A.openElements.generateImpliedEndTags(), A._insertElement(e, F.HTML);
7844
+ A.openElements.hasInScope(u.RUBY) && A.openElements.generateImpliedEndTags(), A._insertElement(e, v.HTML);
7845
7845
  }
7846
7846
  function LB(A, e) {
7847
- A.openElements.hasInScope(u.RUBY) && A.openElements.generateImpliedEndTagsWithExclusion(u.RTC), A._insertElement(e, F.HTML);
7847
+ A.openElements.hasInScope(u.RUBY) && A.openElements.generateImpliedEndTagsWithExclusion(u.RTC), A._insertElement(e, v.HTML);
7848
7848
  }
7849
7849
  function HB(A, e) {
7850
- A._reconstructActiveFormattingElements(), kc(e), Fi(e), e.selfClosing ? A._appendElement(e, F.MATHML) : A._insertElement(e, F.MATHML), e.ackSelfClosing = !0;
7850
+ A._reconstructActiveFormattingElements(), kc(e), Fi(e), e.selfClosing ? A._appendElement(e, v.MATHML) : A._insertElement(e, v.MATHML), e.ackSelfClosing = !0;
7851
7851
  }
7852
7852
  function NB(A, e) {
7853
- A._reconstructActiveFormattingElements(), Pc(e), Fi(e), e.selfClosing ? A._appendElement(e, F.SVG) : A._insertElement(e, F.SVG), e.ackSelfClosing = !0;
7853
+ A._reconstructActiveFormattingElements(), Pc(e), Fi(e), e.selfClosing ? A._appendElement(e, v.SVG) : A._insertElement(e, v.SVG), e.ackSelfClosing = !0;
7854
7854
  }
7855
7855
  function pu(A, e) {
7856
- A._reconstructActiveFormattingElements(), A._insertElement(e, F.HTML);
7856
+ A._reconstructActiveFormattingElements(), A._insertElement(e, v.HTML);
7857
7857
  }
7858
7858
  function ee(A, e) {
7859
7859
  switch (e.tagID) {
@@ -8241,16 +8241,16 @@ function Pa(A, e) {
8241
8241
  Zr(A, e);
8242
8242
  }
8243
8243
  function JB(A, e) {
8244
- A.openElements.clearBackToTableContext(), A.activeFormattingElements.insertMarker(), A._insertElement(e, F.HTML), A.insertionMode = B.IN_CAPTION;
8244
+ A.openElements.clearBackToTableContext(), A.activeFormattingElements.insertMarker(), A._insertElement(e, v.HTML), A.insertionMode = B.IN_CAPTION;
8245
8245
  }
8246
8246
  function qB(A, e) {
8247
- A.openElements.clearBackToTableContext(), A._insertElement(e, F.HTML), A.insertionMode = B.IN_COLUMN_GROUP;
8247
+ A.openElements.clearBackToTableContext(), A._insertElement(e, v.HTML), A.insertionMode = B.IN_COLUMN_GROUP;
8248
8248
  }
8249
8249
  function jB(A, e) {
8250
8250
  A.openElements.clearBackToTableContext(), A._insertFakeElement(C.COLGROUP, u.COLGROUP), A.insertionMode = B.IN_COLUMN_GROUP, yi(A, e);
8251
8251
  }
8252
8252
  function zB(A, e) {
8253
- A.openElements.clearBackToTableContext(), A._insertElement(e, F.HTML), A.insertionMode = B.IN_TABLE_BODY;
8253
+ A.openElements.clearBackToTableContext(), A._insertElement(e, v.HTML), A.insertionMode = B.IN_TABLE_BODY;
8254
8254
  }
8255
8255
  function $B(A, e) {
8256
8256
  A.openElements.clearBackToTableContext(), A._insertFakeElement(C.TBODY, u.TBODY), A.insertionMode = B.IN_TABLE_BODY, pa(A, e);
@@ -8259,10 +8259,10 @@ function ZB(A, e) {
8259
8259
  A.openElements.hasInTableScope(u.TABLE) && (A.openElements.popUntilTagNamePopped(u.TABLE), A._resetInsertionMode(), A._processStartTag(e));
8260
8260
  }
8261
8261
  function Ap(A, e) {
8262
- Wc(e) ? A._appendElement(e, F.HTML) : Zr(A, e), e.ackSelfClosing = !0;
8262
+ Wc(e) ? A._appendElement(e, v.HTML) : Zr(A, e), e.ackSelfClosing = !0;
8263
8263
  }
8264
8264
  function ep(A, e) {
8265
- !A.formElement && A.openElements.tmplCount === 0 && (A._insertElement(e, F.HTML), A.formElement = A.openElements.current, A.openElements.pop());
8265
+ !A.formElement && A.openElements.tmplCount === 0 && (A._insertElement(e, v.HTML), A.formElement = A.openElements.current, A.openElements.pop());
8266
8266
  }
8267
8267
  function Zt(A, e) {
8268
8268
  switch (e.tagID) {
@@ -8393,7 +8393,7 @@ function yi(A, e) {
8393
8393
  break;
8394
8394
  }
8395
8395
  case u.COL: {
8396
- A._appendElement(e, F.HTML), e.ackSelfClosing = !0;
8396
+ A._appendElement(e, v.HTML), e.ackSelfClosing = !0;
8397
8397
  break;
8398
8398
  }
8399
8399
  case u.TEMPLATE: {
@@ -8426,7 +8426,7 @@ function Jn(A, e) {
8426
8426
  function pa(A, e) {
8427
8427
  switch (e.tagID) {
8428
8428
  case u.TR: {
8429
- A.openElements.clearBackToTableBodyContext(), A._insertElement(e, F.HTML), A.insertionMode = B.IN_ROW;
8429
+ A.openElements.clearBackToTableBodyContext(), A._insertElement(e, v.HTML), A.insertionMode = B.IN_ROW;
8430
8430
  break;
8431
8431
  }
8432
8432
  case u.TH:
@@ -8477,7 +8477,7 @@ function Ea(A, e) {
8477
8477
  switch (e.tagID) {
8478
8478
  case u.TH:
8479
8479
  case u.TD: {
8480
- A.openElements.clearBackToTableRowContext(), A._insertElement(e, F.HTML), A.insertionMode = B.IN_CELL, A.activeFormattingElements.insertMarker();
8480
+ A.openElements.clearBackToTableRowContext(), A._insertElement(e, v.HTML), A.insertionMode = B.IN_CELL, A.activeFormattingElements.insertMarker();
8481
8481
  break;
8482
8482
  }
8483
8483
  case u.CAPTION:
@@ -8559,15 +8559,15 @@ function Al(A, e) {
8559
8559
  break;
8560
8560
  }
8561
8561
  case u.OPTION: {
8562
- A.openElements.currentTagId === u.OPTION && A.openElements.pop(), A._insertElement(e, F.HTML);
8562
+ A.openElements.currentTagId === u.OPTION && A.openElements.pop(), A._insertElement(e, v.HTML);
8563
8563
  break;
8564
8564
  }
8565
8565
  case u.OPTGROUP: {
8566
- A.openElements.currentTagId === u.OPTION && A.openElements.pop(), A.openElements.currentTagId === u.OPTGROUP && A.openElements.pop(), A._insertElement(e, F.HTML);
8566
+ A.openElements.currentTagId === u.OPTION && A.openElements.pop(), A.openElements.currentTagId === u.OPTGROUP && A.openElements.pop(), A._insertElement(e, v.HTML);
8567
8567
  break;
8568
8568
  }
8569
8569
  case u.HR: {
8570
- A.openElements.currentTagId === u.OPTION && A.openElements.pop(), A.openElements.currentTagId === u.OPTGROUP && A.openElements.pop(), A._appendElement(e, F.HTML), e.ackSelfClosing = !0;
8570
+ A.openElements.currentTagId === u.OPTION && A.openElements.pop(), A.openElements.currentTagId === u.OPTGROUP && A.openElements.pop(), A._appendElement(e, v.HTML), e.ackSelfClosing = !0;
8571
8571
  break;
8572
8572
  }
8573
8573
  case u.INPUT:
@@ -8682,11 +8682,11 @@ function fp(A, e) {
8682
8682
  break;
8683
8683
  }
8684
8684
  case u.FRAMESET: {
8685
- A._insertElement(e, F.HTML);
8685
+ A._insertElement(e, v.HTML);
8686
8686
  break;
8687
8687
  }
8688
8688
  case u.FRAME: {
8689
- A._appendElement(e, F.HTML), e.ackSelfClosing = !0;
8689
+ A._appendElement(e, v.HTML), e.ackSelfClosing = !0;
8690
8690
  break;
8691
8691
  }
8692
8692
  case u.NOFRAMES: {
@@ -8738,7 +8738,7 @@ function mp(A, e) {
8738
8738
  A._insertCharacters(e), A.framesetOk = !1;
8739
8739
  }
8740
8740
  function nl(A) {
8741
- for (; A.treeAdapter.getNamespaceURI(A.openElements.current) !== F.HTML && !A._isIntegrationPoint(A.openElements.currentTagId, A.openElements.current); )
8741
+ for (; A.treeAdapter.getNamespaceURI(A.openElements.current) !== v.HTML && !A._isIntegrationPoint(A.openElements.currentTagId, A.openElements.current); )
8742
8742
  A.openElements.pop();
8743
8743
  }
8744
8744
  function Cp(A, e) {
@@ -8746,7 +8746,7 @@ function Cp(A, e) {
8746
8746
  nl(A), A._startTagOutsideForeignContent(e);
8747
8747
  else {
8748
8748
  const t = A._getAdjustedCurrentElement(), r = A.treeAdapter.getNamespaceURI(t);
8749
- r === F.MATHML ? kc(e) : r === F.SVG && (Dg(e), Pc(e)), Fi(e), e.selfClosing ? A._appendElement(e, r) : A._insertElement(e, r), e.ackSelfClosing = !0;
8749
+ r === v.MATHML ? kc(e) : r === v.SVG && (Dg(e), Pc(e)), Fi(e), e.selfClosing ? A._appendElement(e, r) : A._insertElement(e, r), e.ackSelfClosing = !0;
8750
8750
  }
8751
8751
  }
8752
8752
  function wp(A, e) {
@@ -8756,7 +8756,7 @@ function wp(A, e) {
8756
8756
  }
8757
8757
  for (let t = A.openElements.stackTop; t > 0; t--) {
8758
8758
  const r = A.openElements.items[t];
8759
- if (A.treeAdapter.getNamespaceURI(r) === F.HTML) {
8759
+ if (A.treeAdapter.getNamespaceURI(r) === v.HTML) {
8760
8760
  A._endTagOutsideForeignContent(e);
8761
8761
  break;
8762
8762
  }
@@ -8788,7 +8788,7 @@ const bp = /* @__PURE__ */ new Set([
8788
8788
  C.WBR
8789
8789
  ]);
8790
8790
  function Tp(A, e) {
8791
- return e.treeAdapter.isElementNode(A) && e.treeAdapter.getNamespaceURI(A) === F.HTML && bp.has(e.treeAdapter.getTagName(A));
8791
+ return e.treeAdapter.isElementNode(A) && e.treeAdapter.getNamespaceURI(A) === v.HTML && bp.has(e.treeAdapter.getTagName(A));
8792
8792
  }
8793
8793
  const Up = { treeAdapter: Ve, scriptingEnabled: !0 };
8794
8794
  function Qp(A, e) {
@@ -8797,7 +8797,7 @@ function Qp(A, e) {
8797
8797
  }
8798
8798
  function Fp(A, e) {
8799
8799
  let t = "";
8800
- const r = e.treeAdapter.isElementNode(A) && e.treeAdapter.getTagName(A) === C.TEMPLATE && e.treeAdapter.getNamespaceURI(A) === F.HTML ? e.treeAdapter.getTemplateContent(A) : A, n = e.treeAdapter.getChildNodes(r);
8800
+ const r = e.treeAdapter.isElementNode(A) && e.treeAdapter.getTagName(A) === C.TEMPLATE && e.treeAdapter.getNamespaceURI(A) === v.HTML ? e.treeAdapter.getTemplateContent(A) : A, n = e.treeAdapter.getChildNodes(r);
8801
8801
  if (n)
8802
8802
  for (const a of n)
8803
8803
  t += al(a, e);
@@ -8815,15 +8815,15 @@ function Ip(A, { treeAdapter: e }) {
8815
8815
  for (const r of e.getAttrList(A)) {
8816
8816
  if (t += " ", r.namespace)
8817
8817
  switch (r.namespace) {
8818
- case F.XML: {
8818
+ case v.XML: {
8819
8819
  t += `xml:${r.name}`;
8820
8820
  break;
8821
8821
  }
8822
- case F.XMLNS: {
8822
+ case v.XMLNS: {
8823
8823
  r.name !== "xmlns" && (t += "xmlns:"), t += r.name;
8824
8824
  break;
8825
8825
  }
8826
- case F.XLINK: {
8826
+ case v.XLINK: {
8827
8827
  t += `xlink:${r.name}`;
8828
8828
  break;
8829
8829
  }
@@ -8838,7 +8838,7 @@ function Ip(A, { treeAdapter: e }) {
8838
8838
  }
8839
8839
  function yp(A, e) {
8840
8840
  const { treeAdapter: t } = e, r = t.getTextNodeContent(A), n = t.getParentNode(A), a = n && t.isElementNode(n) && t.getTagName(n);
8841
- return a && t.getNamespaceURI(n) === F.HTML && og(a, e.scriptingEnabled) ? r : jo(r);
8841
+ return a && t.getNamespaceURI(n) === v.HTML && og(a, e.scriptingEnabled) ? r : jo(r);
8842
8842
  }
8843
8843
  function xp(A, { treeAdapter: e }) {
8844
8844
  return `<!--${e.getCommentNodeContent(A)}-->`;
@@ -9764,18 +9764,18 @@ const Xp = Oe({
9764
9764
  class: "text-yellow-500"
9765
9765
  };
9766
9766
  function Zp(A, e, t, r, n, a) {
9767
- return M(), Ye(I0, { name: "fade" }, {
9767
+ return k(), Ye(I0, { name: "fade" }, {
9768
9768
  default: Rr(() => [
9769
- A.visible ? (M(), Y("div", Wp, [
9769
+ A.visible ? (k(), Y("div", Wp, [
9770
9770
  b("div", {
9771
9771
  class: si([A.typeClass, "message-content"])
9772
9772
  }, [
9773
- A.icon ? (M(), Y("span", Jp, [
9773
+ A.icon ? (k(), Y("span", Jp, [
9774
9774
  Qr(A.$slots, "icon", {}, () => [
9775
- A.type === "success" ? (M(), Y("span", qp, "✔")) : W("", !0),
9776
- A.type === "error" ? (M(), Y("span", jp, "✖")) : W("", !0),
9777
- A.type === "info" ? (M(), Y("span", zp, "ℹ")) : W("", !0),
9778
- A.type === "warning" ? (M(), Y("span", $p, "⚠")) : W("", !0)
9775
+ A.type === "success" ? (k(), Y("span", qp, "✔")) : W("", !0),
9776
+ A.type === "error" ? (k(), Y("span", jp, "✖")) : W("", !0),
9777
+ A.type === "info" ? (k(), Y("span", zp, "ℹ")) : W("", !0),
9778
+ A.type === "warning" ? (k(), Y("span", $p, "⚠")) : W("", !0)
9779
9779
  ], !0)
9780
9780
  ])) : W("", !0),
9781
9781
  b("span", null, IA(A.message), 1),
@@ -9970,20 +9970,20 @@ const nE = ["onClick"], aE = {
9970
9970
  setup(A, { emit: e }) {
9971
9971
  const t = A, r = e, n = Ge(() => {
9972
9972
  var _;
9973
- const v = t.element.editText || t.element.text;
9974
- return t.element.rule && t.element.rule.allowWrap ? (_ = v == null ? void 0 : v.replace(/\n/g, "<br>")) == null ? void 0 : _.replace(/ /g, "&nbsp;") : v;
9975
- }), a = Ge(() => t.selectedElement === t.element), s = Ge(() => t.hoveredElement === t.element), i = j(!1), o = j(!1), c = j(""), l = Ge(() => t.element.rule.minText || 0), f = Ge(() => t.element.rule.maxText || 1 / 0), h = (v) => {
9973
+ const x = t.element.editText || t.element.text;
9974
+ return t.element.rule && t.element.rule.allowWrap ? (_ = x == null ? void 0 : x.replace(/\n/g, "<br>")) == null ? void 0 : _.replace(/ /g, "&nbsp;") : x;
9975
+ }), a = Ge(() => t.selectedElement === t.element), s = Ge(() => t.hoveredElement === t.element), i = j(!1), o = j(!1), c = j(""), l = Ge(() => t.element.rule.minText || 0), f = Ge(() => t.element.rule.maxText || 1 / 0), h = (x) => {
9976
9976
  let _ = "";
9977
- if (v.children && v.children.length && v.children[0].type === X.Block) {
9978
- const $ = v.children[0].rule.flexColumn || v.children[0].rule.mobileFlexColumn;
9979
- Math.min($, v.children.length) && (_ += " flex pc:justify-center ", v.children[0].rule.mobileFlexColumn ? _ += " justify-center flex-wrap " : _ += " gp-designer-m-swiper swiper-wrapper justify-normal ");
9977
+ if (x.children && x.children.length && x.children[0].type === X.Block) {
9978
+ const $ = x.children[0].rule.flexColumn || x.children[0].rule.mobileFlexColumn;
9979
+ Math.min($, x.children.length) && (_ += " flex pc:justify-center ", x.children[0].rule.mobileFlexColumn ? _ += " justify-center flex-wrap " : _ += " gp-designer-m-swiper swiper-wrapper justify-normal ");
9980
9980
  }
9981
- if (v.type === X.Block) {
9982
- const $ = v.rule.flexColumn, bA = v.rule.mobileFlexColumn;
9981
+ if (x.type === X.Block) {
9982
+ const $ = x.rule.flexColumn, bA = x.rule.mobileFlexColumn;
9983
9983
  (bA || $) && (_ += " box-border "), bA > 1 && bA <= 12 ? _ += ` basis-1/${bA} ` : bA == 1 ? _ += " basis-full " : bA || (_ += " gp-designer-m-swiper-slide swiper-slide "), $ > 1 && $ <= 12 ? _ += ` pc:basis-1/${$} ` : $ == 1 && (_ += " pc:basis-full ");
9984
9984
  }
9985
- if ((v.type == X.Button || v.type == X.Link) && v.rule.openMeiqia && (_ += " gp-designer-meiqia "), v.rule.isThemeColor && t.element.type === X.Text ? _ += " " + ie.THEME_TEXT_COLOR_CLASS + " " : v.rule.isThemeColor && t.element.type === X.Button ? _ += " " + ie.THEME_BUTTON_COLOR_CLASS + " " : v.rule.isThemeColor && t.element.type === X.Icon && (_ += " " + ie.THEME_ICON_COLOR_CLASS + " "), v.attrs.class) {
9986
- var sA = v.attrs.class.split(" ").filter(($) => $);
9985
+ if ((x.type == X.Button || x.type == X.Link) && x.rule.openMeiqia && (_ += " gp-designer-meiqia "), x.rule.isThemeColor && t.element.type === X.Text ? _ += " " + ie.THEME_TEXT_COLOR_CLASS + " " : x.rule.isThemeColor && t.element.type === X.Button ? _ += " " + ie.THEME_BUTTON_COLOR_CLASS + " " : x.rule.isThemeColor && t.element.type === X.Icon && (_ += " " + ie.THEME_ICON_COLOR_CLASS + " "), x.attrs.class) {
9986
+ var sA = x.attrs.class.split(" ").filter(($) => $);
9987
9987
  sA.length && (_ = _.split(" ").filter(($) => !sA.includes($)).join(" "));
9988
9988
  }
9989
9989
  return _;
@@ -9995,32 +9995,32 @@ const nE = ["onClick"], aE = {
9995
9995
  },
9996
9996
  { immediate: !0 }
9997
9997
  );
9998
- function E(v) {
9999
- v.xpath != "/div[1]" && t.mode !== "preview" && (t.mode === "edit" ? v.type === X.Text && r("selectElement", v) : r("selectElement", v), !v.rule.isReadOnly && v.type === X.Text && (i.value = !0));
9998
+ function E(x) {
9999
+ x.xpath != "/div[1]" && t.mode !== "preview" && (t.mode === "edit" ? x.type === X.Text && r("selectElement", x) : r("selectElement", x), !x.rule.isReadOnly && x.type === X.Text && (i.value = !0));
10000
10000
  }
10001
- function m(v) {
10002
- r("selectElement", v);
10001
+ function m(x) {
10002
+ r("selectElement", x);
10003
10003
  }
10004
- function T(v, _) {
10005
- r("hoverElement", v, _);
10004
+ function T(x, _) {
10005
+ r("hoverElement", x, _);
10006
10006
  }
10007
- function I(v) {
10008
- r("hoverElement", v);
10007
+ function I(x) {
10008
+ r("hoverElement", x);
10009
10009
  }
10010
- function w(v) {
10011
- v.currentTarget.contains(v.relatedTarget) ? r("hoverElement", null) : t.hoveredElement ? r("hoverElement", null, t.hoveredElement.parentxpath) : r("hoverElement", null);
10010
+ function w(x) {
10011
+ x.currentTarget.contains(x.relatedTarget) ? r("hoverElement", null) : t.hoveredElement ? r("hoverElement", null, t.hoveredElement.parentxpath) : r("hoverElement", null);
10012
10012
  }
10013
- function x() {
10013
+ function y() {
10014
10014
  i.value = !1, r("contentUpdated", N());
10015
10015
  }
10016
10016
  function N() {
10017
- function v(sA) {
10018
- var V;
10017
+ function x(sA) {
10018
+ var P;
10019
10019
  const $ = sA;
10020
10020
  if ($.tag === "br")
10021
10021
  return "";
10022
10022
  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 : "";
10023
- bA ? $.attrs.class && !$.attrs.class.includes(bA) ? $.attrs.class = $.attrs.class ? $.attrs.class + " " + bA : bA : $.attrs.class || ($.attrs.class = bA) : $.attrs.class = (V = $.attrs.class) == null ? void 0 : V.replace(
10023
+ bA ? $.attrs.class && !$.attrs.class.includes(bA) ? $.attrs.class = $.attrs.class ? $.attrs.class + " " + bA : bA : $.attrs.class || ($.attrs.class = bA) : $.attrs.class = (P = $.attrs.class) == null ? void 0 : P.replace(
10024
10024
  new RegExp(
10025
10025
  `${ie.THEME_TEXT_COLOR_CLASS}|${ie.THEME_BUTTON_COLOR_CLASS}|${ie.THEME_ICON_COLOR_CLASS}`,
10026
10026
  "g"
@@ -10037,55 +10037,55 @@ const nE = ["onClick"], aE = {
10037
10037
  let _t = Object.entries(sA.attrs || {}).filter(([iA, oA]) => iA !== "class").map(([iA, oA]) => `${iA}="${oA}"`).join(" ");
10038
10038
  const St = Object.entries(Be || {}).map(([iA, oA]) => `${iA}="${oA.trim()}"`).join(" ");
10039
10039
  _t += St;
10040
- const pe = `<${sA.tag}${_t ? " " + _t : ""}>`, xa = `</${sA.tag}>`, Q = (sA.children || []).map((iA) => v(iA)).join("");
10041
- let y = sA.editText || sA.text || "";
10042
- return y = y.replace(/\r\n/g, `
10043
- `).replace(/\n/g, "<br>"), `${pe}${y}${Q}${xa}`;
10040
+ const pe = `<${sA.tag}${_t ? " " + _t : ""}>`, xa = `</${sA.tag}>`, F = (sA.children || []).map((iA) => x(iA)).join("");
10041
+ let Q = sA.editText || sA.text || "";
10042
+ return Q = Q.replace(/\r\n/g, `
10043
+ `).replace(/\n/g, "<br>"), `${pe}${Q}${F}${xa}`;
10044
10044
  }
10045
- return v(t.element);
10045
+ return x(t.element);
10046
10046
  }
10047
- function K(v) {
10047
+ function R(x) {
10048
10048
  var bA, Be;
10049
- v.preventDefault(), v.stopPropagation();
10050
- let _ = ((bA = v.clipboardData) == null ? void 0 : bA.getData("text/plain")) || "";
10049
+ x.preventDefault(), x.stopPropagation();
10050
+ let _ = ((bA = x.clipboardData) == null ? void 0 : bA.getData("text/plain")) || "";
10051
10051
  (Be = t.element.rule) != null && Be.allowWrap ? (_ = _ == null ? void 0 : _.replace(/\n/g, "<br>"), document.execCommand("insertHTML", !1, _)) : (_ = _ == null ? void 0 : _.replace(/\n/g, " "), document.execCommand("insertText", !1, _));
10052
- const sA = v.target, $ = sA.innerText || sA.textContent || "";
10052
+ const sA = x.target, $ = sA.innerText || sA.textContent || "";
10053
10053
  O($);
10054
10054
  }
10055
- function H(v) {
10055
+ function H(x) {
10056
10056
  var _;
10057
- v.key === "Enter" && (v.preventDefault(), v.stopPropagation(), (_ = t.element.rule) != null && _.allowWrap ? document.execCommand("insertLineBreak") : AA.error("当前节点不允许换行"));
10057
+ x.key === "Enter" && (x.preventDefault(), x.stopPropagation(), (_ = t.element.rule) != null && _.allowWrap ? document.execCommand("insertLineBreak") : AA.error("当前节点不允许换行"));
10058
10058
  }
10059
- function p(v) {
10060
- v.stopPropagation();
10061
- const _ = v.target, sA = _.innerText || _.textContent || "";
10059
+ function p(x) {
10060
+ x.stopPropagation();
10061
+ const _ = x.target, sA = _.innerText || _.textContent || "";
10062
10062
  O(sA);
10063
10063
  }
10064
- function O(v) {
10065
- if (v.length < l.value) {
10064
+ function O(x) {
10065
+ if (x.length < l.value) {
10066
10066
  o.value = !0, c.value = `最少输入 ${l.value} 个字符`;
10067
10067
  return;
10068
- } else if (v.length > f.value) {
10068
+ } else if (x.length > f.value) {
10069
10069
  o.value = !0, c.value = `最多输入 ${f.value} 个字符`;
10070
10070
  return;
10071
10071
  } else
10072
10072
  o.value = !1, c.value = "";
10073
- r("updateText", { element: t.element, newText: v }), r("contentUpdated", N());
10073
+ r("updateText", { element: t.element, newText: x }), r("contentUpdated", N());
10074
10074
  const _ = Ko(t.element);
10075
- _.editText = v;
10075
+ _.editText = x;
10076
10076
  }
10077
- function R(v) {
10078
- r("updateText", v), r("contentUpdated", N());
10077
+ function M(x) {
10078
+ r("updateText", x), r("contentUpdated", N());
10079
10079
  }
10080
- function P() {
10081
- const v = { ...t.element };
10082
- r("blockAction", { action: "add", element: t.element, newBlock: v });
10080
+ function G() {
10081
+ const x = { ...t.element };
10082
+ r("blockAction", { action: "add", element: t.element, newBlock: x });
10083
10083
  }
10084
10084
  function aA() {
10085
10085
  hA(t.element), r("blockAction", { action: "moveUp", element: t.element });
10086
10086
  }
10087
- function hA(v) {
10088
- v.children && v.children.length > 0 && v.children.forEach((_) => {
10087
+ function hA(x) {
10088
+ x.children && x.children.length > 0 && x.children.forEach((_) => {
10089
10089
  _.type == X.Text && (_.text !== _.editText && (_.text = _.editText), hA(_));
10090
10090
  });
10091
10091
  }
@@ -10095,59 +10095,59 @@ const nE = ["onClick"], aE = {
10095
10095
  function Z() {
10096
10096
  r("blockAction", { action: "delete", element: t.element });
10097
10097
  }
10098
- function uA(v) {
10099
- r("blockAction", v), r("contentUpdated", N());
10098
+ function uA(x) {
10099
+ r("blockAction", x), r("contentUpdated", N());
10100
10100
  }
10101
- function pA(v) {
10102
- HA.value.openModal(v);
10101
+ function pA(x) {
10102
+ HA.value.openModal(x);
10103
10103
  }
10104
- function EA(v) {
10105
- jA.value.openModal(v);
10104
+ function EA(x) {
10105
+ jA.value.openModal(x);
10106
10106
  }
10107
- function vA(v, _) {
10108
- r("addIcon", v, _), r("contentUpdated", N());
10107
+ function vA(x, _) {
10108
+ r("addIcon", x, _), r("contentUpdated", N());
10109
10109
  }
10110
- function te(v) {
10111
- r("updateElementRule", v);
10110
+ function te(x) {
10111
+ r("updateElementRule", x);
10112
10112
  }
10113
10113
  const HA = j(t.icon);
10114
10114
  ae(
10115
10115
  () => t.icon,
10116
- (v) => {
10117
- HA.value = v;
10116
+ (x) => {
10117
+ HA.value = x;
10118
10118
  },
10119
10119
  { immediate: !0 }
10120
10120
  );
10121
10121
  const jA = j(t.upload);
10122
10122
  ae(
10123
10123
  () => t.upload,
10124
- (v) => {
10125
- jA.value = v;
10124
+ (x) => {
10125
+ jA.value = x;
10126
10126
  },
10127
10127
  { immediate: !0 }
10128
10128
  );
10129
10129
  const re = Ge(() => {
10130
- const v = h(t.element);
10131
- return t.element.css = v, v;
10132
- }), RA = (v, _) => {
10130
+ const x = h(t.element);
10131
+ return t.element.css = x, x;
10132
+ }), RA = (x, _) => {
10133
10133
  _.children && _.children.length && _.children[0].type === X.Block && _.children.map((sA) => {
10134
- sA.rule.flexColumn = v;
10134
+ sA.rule.flexColumn = x;
10135
10135
  }), r("updateElementRule", _);
10136
10136
  }, YA = Ge(() => {
10137
- let v = "";
10137
+ let x = "";
10138
10138
  if (t.mode === "design") {
10139
10139
  const _ = t.element;
10140
10140
  if (_.type === X.Block) {
10141
10141
  const sA = _.rule.flexColumn;
10142
- sA > 1 && sA <= 12 && (v += `flex-basis: calc(100% / ${sA} - 10px);`);
10142
+ sA > 1 && sA <= 12 && (x += `flex-basis: calc(100% / ${sA} - 10px);`);
10143
10143
  }
10144
10144
  }
10145
- return v;
10145
+ return x;
10146
10146
  }), XA = j(null);
10147
- return (v, _) => {
10147
+ return (x, _) => {
10148
10148
  const sA = _0("ElementRenderer", !0);
10149
- return M(), Y(Gt, null, [
10150
- t.element.type == mA(X).Text ? (M(), Ye(Vi(t.element.tag), Yi({
10149
+ return k(), Y(Gt, null, [
10150
+ t.element.type == mA(X).Text ? (k(), Ye(Vi(t.element.tag), Yi({
10151
10151
  key: 0,
10152
10152
  class: [
10153
10153
  "relative",
@@ -10172,14 +10172,14 @@ const nE = ["onClick"], aE = {
10172
10172
  onClick: _[0] || (_[0] = PA(() => E(t.element), ["stop"])),
10173
10173
  onMouseenter: _[1] || (_[1] = () => I(t.element)),
10174
10174
  onMouseleave: w,
10175
- onBlur: x,
10175
+ onBlur: y,
10176
10176
  onInput: p,
10177
- onPaste: K,
10177
+ onPaste: R,
10178
10178
  onKeydown: PA(H, ["stop"]),
10179
10179
  ref_key: "elementRef",
10180
10180
  ref: XA,
10181
10181
  innerHTML: n.value
10182
- }), null, 16, ["class", "style", "contenteditable", "innerHTML"])) : (M(), Ye(Vi(t.element.tag), Yi({
10182
+ }), null, 16, ["class", "style", "contenteditable", "innerHTML"])) : (k(), Ye(Vi(t.element.tag), Yi({
10183
10183
  key: 1,
10184
10184
  class: [
10185
10185
  "relative",
@@ -10204,17 +10204,17 @@ const nE = ["onClick"], aE = {
10204
10204
  onClick: _[5] || (_[5] = PA(() => E(t.element), ["stop"])),
10205
10205
  onMouseenter: _[6] || (_[6] = () => I(t.element)),
10206
10206
  onMouseleave: w,
10207
- onBlur: x,
10207
+ onBlur: y,
10208
10208
  onInput: p,
10209
- onPaste: K,
10209
+ onPaste: R,
10210
10210
  onKeydown: PA(H, ["stop"]),
10211
10211
  ref_key: "elementRef",
10212
10212
  ref: XA
10213
10213
  }), {
10214
10214
  default: Rr(() => [
10215
10215
  fs(IA(n.value) + " ", 1),
10216
- t.element.children && t.element.children.length ? (M(), Y(Gt, { key: 0 }, [
10217
- (M(!0), Y(Gt, null, Rn(t.element.children, ($, bA) => (M(), Ye(sA, {
10216
+ t.element.children && t.element.children.length ? (k(), Y(Gt, { key: 0 }, [
10217
+ (k(!0), Y(Gt, null, Rn(t.element.children, ($, bA) => (k(), Ye(sA, {
10218
10218
  "show-margin": A.showMargin,
10219
10219
  key: bA,
10220
10220
  r: A.r,
@@ -10229,12 +10229,12 @@ const nE = ["onClick"], aE = {
10229
10229
  "upload-by-file": A.uploadByFile,
10230
10230
  onSelectElement: m,
10231
10231
  onHoverElement: T,
10232
- onUpdateText: R,
10232
+ onUpdateText: M,
10233
10233
  onBlockAction: uA,
10234
10234
  onAddIcon: vA,
10235
10235
  onUpdateElementRule: () => te($)
10236
10236
  }, null, 8, ["show-margin", "r", "mode", "icons", "element", "selectedElement", "hoveredElement", "cropper", "icon", "upload", "upload-by-file", "onUpdateElementRule"]))), 128)),
10237
- t.element.type === mA(X).Block ? (M(), Y("div", {
10237
+ t.element.type === mA(X).Block ? (k(), Y("div", {
10238
10238
  key: 0,
10239
10239
  "date-action": "1",
10240
10240
  contenteditable: "false",
@@ -10244,7 +10244,7 @@ const nE = ["onClick"], aE = {
10244
10244
  }, [
10245
10245
  b("button", {
10246
10246
  class: "flex-none content-center items-center p-1 bg-green-500/80 text-white rounded hover:bg-green-500",
10247
- onClick: PA(P, ["stop"])
10247
+ onClick: PA(G, ["stop"])
10248
10248
  }, _[9] || (_[9] = [
10249
10249
  b("svg", {
10250
10250
  xmlns: "http://www.w3.org/2000/svg",
@@ -10335,7 +10335,7 @@ const nE = ["onClick"], aE = {
10335
10335
  ], -1)
10336
10336
  ]))
10337
10337
  ])) : W("", !0),
10338
- t.element.children && t.element.children.length && t.element.children[0].type === mA(X).Block && t.element.children[0].rule && t.element.children[0].rule.flexColumns && t.element.children[0].rule.flexColumns.length > 0 ? (M(), Y("div", {
10338
+ t.element.children && t.element.children.length && t.element.children[0].type === mA(X).Block && t.element.children[0].rule && t.element.children[0].rule.flexColumns && t.element.children[0].rule.flexColumns.length > 0 ? (k(), Y("div", {
10339
10339
  key: 1,
10340
10340
  "date-action": "1",
10341
10341
  contenteditable: "false",
@@ -10343,7 +10343,7 @@ const nE = ["onClick"], aE = {
10343
10343
  }, ["stop"])),
10344
10344
  class: "hover:z-10 z-9 flex space-x-1 flex-none flex-nowrap overflow-visible absolute right-0 -top-6 items-center"
10345
10345
  }, [
10346
- (M(!0), Y(Gt, null, Rn(t.element.children[0].rule.flexColumns, ($, bA) => (M(), Y("button", {
10346
+ (k(!0), Y(Gt, null, Rn(t.element.children[0].rule.flexColumns, ($, bA) => (k(), Y("button", {
10347
10347
  class: si([
10348
10348
  "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",
10349
10349
  t.element.children[0].rule.flexColumn === $ ? "bg-purple-700" : ""
@@ -10352,7 +10352,7 @@ const nE = ["onClick"], aE = {
10352
10352
  }, IA($), 11, nE))), 256))
10353
10353
  ])) : W("", !0)
10354
10354
  ], 64)) : W("", !0),
10355
- t.element.type === mA(X).Icon ? (M(), Y("div", {
10355
+ t.element.type === mA(X).Icon ? (k(), Y("div", {
10356
10356
  key: 1,
10357
10357
  class: "cursor-pointer rounded-sm w-5 h-5 flex justify-center items-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-sm text-gray-50 z-10 bg-black/80 hover:bg-black",
10358
10358
  contenteditable: "false",
@@ -10385,8 +10385,8 @@ const nE = ["onClick"], aE = {
10385
10385
  ]),
10386
10386
  _: 1
10387
10387
  }, 16, ["class", "style"])),
10388
- t.element.type == mA(X).Text && o.value ? (M(), Y("div", aE, IA(c.value), 1)) : W("", !0),
10389
- t.element.type === mA(X).Image ? (M(), Y("div", {
10388
+ t.element.type == mA(X).Text && o.value ? (k(), Y("div", aE, IA(c.value), 1)) : W("", !0),
10389
+ t.element.type === mA(X).Image ? (k(), Y("div", {
10390
10390
  key: 3,
10391
10391
  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",
10392
10392
  onClick: _[8] || (_[8] = PA(() => {
@@ -10447,7 +10447,7 @@ const nE = ["onClick"], aE = {
10447
10447
  }
10448
10448
  }), oE = { class: "form-group" }, cE = { class: "flex items-center space-x-2 cursor-pointer" }, lE = ["checked", "aria-checked"], fE = { class: "checkbox-label text-sm text-gray-700" };
10449
10449
  function hE(A, e, t, r, n, a) {
10450
- return M(), Y("div", oE, [
10450
+ return k(), Y("div", oE, [
10451
10451
  b("label", cE, [
10452
10452
  b("input", {
10453
10453
  type: "checkbox",
@@ -10522,9 +10522,9 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10522
10522
  n.value.rule.mobileFlexColumn
10523
10523
  ) : n.value.rule.mobileFlexColumn = void 0, r("updateElement", n.value);
10524
10524
  }
10525
- return (s, i) => (M(), Y("div", dE, [
10526
- n.value ? (M(), Y("div", gE, [
10527
- n.value.text !== void 0 ? (M(), Y("div", BE, [
10525
+ return (s, i) => (k(), Y("div", dE, [
10526
+ n.value ? (k(), Y("div", gE, [
10527
+ n.value.text !== void 0 ? (k(), Y("div", BE, [
10528
10528
  i[17] || (i[17] = b("label", { class: "block" }, "内容", -1)),
10529
10529
  b("div", pE, IA(n.value.text || "-"), 1)
10530
10530
  ])) : W("", !0),
@@ -10550,7 +10550,7 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10550
10550
  [_a, n.value.type]
10551
10551
  ])
10552
10552
  ]),
10553
- n.value.type == mA(X).Text ? (M(), Y("div", mE, [
10553
+ n.value.type == mA(X).Text ? (k(), Y("div", mE, [
10554
10554
  i[21] || (i[21] = b("label", { class: "block mt-4" }, "最小文本长度", -1)),
10555
10555
  me(b("input", {
10556
10556
  "onUpdate:modelValue": i[1] || (i[1] = (o) => n.value.rule.minText = o),
@@ -10559,7 +10559,7 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10559
10559
  [je, n.value.rule.minText]
10560
10560
  ])
10561
10561
  ])) : W("", !0),
10562
- n.value.type == mA(X).Text ? (M(), Y("div", CE, [
10562
+ n.value.type == mA(X).Text ? (k(), Y("div", CE, [
10563
10563
  i[22] || (i[22] = b("label", { class: "block mt-4" }, "最大文本长度", -1)),
10564
10564
  me(b("input", {
10565
10565
  "onUpdate:modelValue": i[2] || (i[2] = (o) => n.value.rule.maxText = o),
@@ -10568,7 +10568,7 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10568
10568
  [je, n.value.rule.maxText]
10569
10569
  ])
10570
10570
  ])) : W("", !0),
10571
- n.value.type == mA(X).Image ? (M(), Y("div", wE, [
10571
+ n.value.type == mA(X).Image ? (k(), Y("div", wE, [
10572
10572
  i[23] || (i[23] = b("label", { class: "block mt-4" }, "是否裁剪", -1)),
10573
10573
  Ie(Bt, {
10574
10574
  class: "py-2",
@@ -10577,7 +10577,7 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10577
10577
  label: "是"
10578
10578
  }, null, 8, ["modelValue"])
10579
10579
  ])) : W("", !0),
10580
- n.value.type == mA(X).Image ? (M(), Y("div", bE, [
10580
+ n.value.type == mA(X).Image ? (k(), Y("div", bE, [
10581
10581
  i[24] || (i[24] = b("label", { class: "block mt-4" }, "图片宽度", -1)),
10582
10582
  me(b("input", {
10583
10583
  "onUpdate:modelValue": i[4] || (i[4] = (o) => n.value.rule.minImageWidth = o),
@@ -10586,7 +10586,7 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10586
10586
  [je, n.value.rule.minImageWidth]
10587
10587
  ])
10588
10588
  ])) : W("", !0),
10589
- n.value.type == mA(X).Image ? (M(), Y("div", TE, [
10589
+ n.value.type == mA(X).Image ? (k(), Y("div", TE, [
10590
10590
  i[25] || (i[25] = b("label", { class: "block mt-4" }, "图片高度", -1)),
10591
10591
  me(b("input", {
10592
10592
  "onUpdate:modelValue": i[5] || (i[5] = (o) => n.value.rule.maxImageHeight = o),
@@ -10595,7 +10595,7 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10595
10595
  [je, n.value.rule.maxImageHeight]
10596
10596
  ])
10597
10597
  ])) : W("", !0),
10598
- n.value.type == mA(X).Block ? (M(), Y("div", UE, [
10598
+ n.value.type == mA(X).Block ? (k(), Y("div", UE, [
10599
10599
  i[26] || (i[26] = b("label", { class: "block mt-4" }, "块最小数量", -1)),
10600
10600
  me(b("input", {
10601
10601
  "onUpdate:modelValue": i[6] || (i[6] = (o) => n.value.rule.minBlock = o),
@@ -10604,7 +10604,7 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10604
10604
  [je, n.value.rule.minBlock]
10605
10605
  ])
10606
10606
  ])) : W("", !0),
10607
- n.value.type == mA(X).Block ? (M(), Y("div", QE, [
10607
+ n.value.type == mA(X).Block ? (k(), Y("div", QE, [
10608
10608
  i[27] || (i[27] = b("label", { class: "block mt-4" }, "块最大数量", -1)),
10609
10609
  me(b("input", {
10610
10610
  "onUpdate:modelValue": i[7] || (i[7] = (o) => n.value.rule.maxBlock = o),
@@ -10613,7 +10613,7 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10613
10613
  [je, n.value.rule.maxBlock]
10614
10614
  ])
10615
10615
  ])) : W("", !0),
10616
- n.value.type == mA(X).Block ? (M(), Y("div", FE, [
10616
+ n.value.type == mA(X).Block ? (k(), Y("div", FE, [
10617
10617
  i[29] || (i[29] = b("label", { class: "block mt-4" }, "PC端每行列数", -1)),
10618
10618
  me(b("select", {
10619
10619
  multiple: "",
@@ -10636,7 +10636,7 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10636
10636
  [_a, n.value.rule.flexColumns]
10637
10637
  ])
10638
10638
  ])) : W("", !0),
10639
- n.value.type == mA(X).Block ? (M(), Y("div", vE, [
10639
+ n.value.type == mA(X).Block ? (k(), Y("div", vE, [
10640
10640
  i[31] || (i[31] = b("label", { class: "block mt-4" }, "移动端每行列数", -1)),
10641
10641
  me(b("select", {
10642
10642
  "onUpdate:modelValue": i[9] || (i[9] = (o) => n.value.rule.mobileFlexColumn = o),
@@ -10653,7 +10653,7 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10653
10653
  [_a, n.value.rule.mobileFlexColumn]
10654
10654
  ])
10655
10655
  ])) : W("", !0),
10656
- n.value.type == mA(X).Text || n.value.type == mA(X).Icon || n.value.type == mA(X).Button ? (M(), Y("div", IE, [
10656
+ n.value.type == mA(X).Text || n.value.type == mA(X).Icon || n.value.type == mA(X).Button ? (k(), Y("div", IE, [
10657
10657
  i[32] || (i[32] = b("label", { class: "block mt-4" }, "主题色", -1)),
10658
10658
  Ie(Bt, {
10659
10659
  class: "py-2",
@@ -10680,7 +10680,7 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10680
10680
  label: "是"
10681
10681
  }, null, 8, ["modelValue"])
10682
10682
  ]),
10683
- n.value.type == mA(X).Link || n.value.type == mA(X).Button ? (M(), Y("div", yE, [
10683
+ n.value.type == mA(X).Link || n.value.type == mA(X).Button ? (k(), Y("div", yE, [
10684
10684
  i[35] || (i[35] = b("label", { class: "block mt-4" }, "打开美洽", -1)),
10685
10685
  Ie(Bt, {
10686
10686
  class: "py-2",
@@ -10689,7 +10689,7 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10689
10689
  label: "是"
10690
10690
  }, null, 8, ["modelValue"])
10691
10691
  ])) : W("", !0),
10692
- n.value.type == mA(X).Link || n.value.type == mA(X).Button ? (M(), Y("div", xE, [
10692
+ n.value.type == mA(X).Link || n.value.type == mA(X).Button ? (k(), Y("div", xE, [
10693
10693
  i[36] || (i[36] = b("label", { class: "block mt-4" }, "链接", -1)),
10694
10694
  me(b("input", {
10695
10695
  "onUpdate:modelValue": i[14] || (i[14] = (o) => n.value.rule.linkUrl = o),
@@ -10698,7 +10698,7 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10698
10698
  [je, n.value.rule.linkUrl]
10699
10699
  ])
10700
10700
  ])) : W("", !0),
10701
- n.value.type == mA(X).Text ? (M(), Y("div", _E, [
10701
+ n.value.type == mA(X).Text ? (k(), Y("div", _E, [
10702
10702
  i[37] || (i[37] = b("label", { class: "block mt-4" }, "允许换行(回车/粘贴多段文本等)", -1)),
10703
10703
  Ie(Bt, {
10704
10704
  class: "py-2",
@@ -10707,7 +10707,7 @@ const Bt = /* @__PURE__ */ dt(uE, [["render", hE], ["__scopeId", "data-v-68b8f27
10707
10707
  label: "是"
10708
10708
  }, null, 8, ["modelValue"])
10709
10709
  ])) : W("", !0),
10710
- n.value.type == mA(X).Image ? (M(), Y("div", SE, [
10710
+ n.value.type == mA(X).Image ? (k(), Y("div", SE, [
10711
10711
  i[38] || (i[38] = b("label", { class: "block mt-4" }, "预览(点击查看大图)", -1)),
10712
10712
  Ie(Bt, {
10713
10713
  class: "py-2",
@@ -11162,10 +11162,10 @@ function om(A) {
11162
11162
  };
11163
11163
  }
11164
11164
  function cm(A, e, t, r) {
11165
- var n = e.aspectRatio, a = e.naturalWidth, s = e.naturalHeight, i = e.rotate, o = i === void 0 ? 0 : i, c = e.scaleX, l = c === void 0 ? 1 : c, f = e.scaleY, h = f === void 0 ? 1 : f, E = t.aspectRatio, m = t.naturalWidth, T = t.naturalHeight, I = r.fillColor, w = I === void 0 ? "transparent" : I, x = r.imageSmoothingEnabled, N = x === void 0 ? !0 : x, K = r.imageSmoothingQuality, H = K === void 0 ? "low" : K, p = r.maxWidth, O = p === void 0 ? 1 / 0 : p, R = r.maxHeight, P = R === void 0 ? 1 / 0 : R, aA = r.minWidth, hA = aA === void 0 ? 0 : aA, wA = r.minHeight, Z = wA === void 0 ? 0 : wA, uA = document.createElement("canvas"), pA = uA.getContext("2d"), EA = at({
11165
+ var n = e.aspectRatio, a = e.naturalWidth, s = e.naturalHeight, i = e.rotate, o = i === void 0 ? 0 : i, c = e.scaleX, l = c === void 0 ? 1 : c, f = e.scaleY, h = f === void 0 ? 1 : f, E = t.aspectRatio, m = t.naturalWidth, T = t.naturalHeight, I = r.fillColor, w = I === void 0 ? "transparent" : I, y = r.imageSmoothingEnabled, N = y === void 0 ? !0 : y, R = r.imageSmoothingQuality, H = R === void 0 ? "low" : R, p = r.maxWidth, O = p === void 0 ? 1 / 0 : p, M = r.maxHeight, G = M === void 0 ? 1 / 0 : M, aA = r.minWidth, hA = aA === void 0 ? 0 : aA, wA = r.minHeight, Z = wA === void 0 ? 0 : wA, uA = document.createElement("canvas"), pA = uA.getContext("2d"), EA = at({
11166
11166
  aspectRatio: E,
11167
11167
  width: O,
11168
- height: P
11168
+ height: G
11169
11169
  }), vA = at({
11170
11170
  aspectRatio: E,
11171
11171
  width: hA,
@@ -11173,14 +11173,14 @@ function cm(A, e, t, r) {
11173
11173
  }, "cover"), te = Math.min(EA.width, Math.max(vA.width, m)), HA = Math.min(EA.height, Math.max(vA.height, T)), jA = at({
11174
11174
  aspectRatio: n,
11175
11175
  width: O,
11176
- height: P
11176
+ height: G
11177
11177
  }), re = at({
11178
11178
  aspectRatio: n,
11179
11179
  width: hA,
11180
11180
  height: Z
11181
11181
  }, "cover"), RA = Math.min(jA.width, Math.max(re.width, a)), YA = Math.min(jA.height, Math.max(re.height, s)), XA = [-RA / 2, -YA / 2, RA, YA];
11182
- return uA.width = qt(te), uA.height = qt(HA), pA.fillStyle = w, pA.fillRect(0, 0, te, HA), pA.save(), pA.translate(te / 2, HA / 2), pA.rotate(o * Math.PI / 180), pA.scale(l, h), pA.imageSmoothingEnabled = N, pA.imageSmoothingQuality = H, pA.drawImage.apply(pA, [A].concat(ol(XA.map(function(v) {
11183
- return Math.floor(qt(v));
11182
+ return uA.width = qt(te), uA.height = qt(HA), pA.fillStyle = w, pA.fillRect(0, 0, te, HA), pA.save(), pA.translate(te / 2, HA / 2), pA.rotate(o * Math.PI / 180), pA.scale(l, h), pA.imageSmoothingEnabled = N, pA.imageSmoothingQuality = H, pA.drawImage.apply(pA, [A].concat(ol(XA.map(function(x) {
11183
+ return Math.floor(qt(x));
11184
11184
  })))), pA.restore(), uA;
11185
11185
  }
11186
11186
  var wl = String.fromCharCode;
@@ -11500,13 +11500,13 @@ var pm = {
11500
11500
  }
11501
11501
  }, wm = {
11502
11502
  change: function(e) {
11503
- var t = this.options, r = this.canvasData, n = this.containerData, a = this.cropBoxData, s = this.pointers, i = this.action, o = t.aspectRatio, c = a.left, l = a.top, f = a.width, h = a.height, E = c + f, m = l + h, T = 0, I = 0, w = n.width, x = n.height, N = !0, K;
11504
- !o && e.shiftKey && (o = f && h ? f / h : 1), this.limited && (T = a.minLeft, I = a.minTop, w = T + Math.min(n.width, r.width, r.left + r.width), x = I + Math.min(n.height, r.height, r.top + r.height));
11503
+ var t = this.options, r = this.canvasData, n = this.containerData, a = this.cropBoxData, s = this.pointers, i = this.action, o = t.aspectRatio, c = a.left, l = a.top, f = a.width, h = a.height, E = c + f, m = l + h, T = 0, I = 0, w = n.width, y = n.height, N = !0, R;
11504
+ !o && e.shiftKey && (o = f && h ? f / h : 1), this.limited && (T = a.minLeft, I = a.minTop, w = T + Math.min(n.width, r.width, r.left + r.width), y = I + Math.min(n.height, r.height, r.top + r.height));
11505
11505
  var H = s[Object.keys(s)[0]], p = {
11506
11506
  x: H.endX - H.startX,
11507
11507
  y: H.endY - H.startY
11508
- }, O = function(P) {
11509
- switch (P) {
11508
+ }, O = function(G) {
11509
+ switch (G) {
11510
11510
  case pt:
11511
11511
  E + p.x > w && (p.x = w - E);
11512
11512
  break;
@@ -11517,7 +11517,7 @@ var pm = {
11517
11517
  l + p.y < I && (p.y = I - l);
11518
11518
  break;
11519
11519
  case Ht:
11520
- m + p.y > x && (p.y = x - m);
11520
+ m + p.y > y && (p.y = y - m);
11521
11521
  break;
11522
11522
  }
11523
11523
  };
@@ -11526,7 +11526,7 @@ var pm = {
11526
11526
  c += p.x, l += p.y;
11527
11527
  break;
11528
11528
  case pt:
11529
- if (p.x >= 0 && (E >= w || o && (l <= I || m >= x))) {
11529
+ if (p.x >= 0 && (E >= w || o && (l <= I || m >= y))) {
11530
11530
  N = !1;
11531
11531
  break;
11532
11532
  }
@@ -11540,14 +11540,14 @@ var pm = {
11540
11540
  O(qe), h -= p.y, l += p.y, h < 0 && (i = Ht, h = -h, l -= h), o && (f = h * o, c += (a.width - f) / 2);
11541
11541
  break;
11542
11542
  case Et:
11543
- if (p.x <= 0 && (c <= T || o && (l <= I || m >= x))) {
11543
+ if (p.x <= 0 && (c <= T || o && (l <= I || m >= y))) {
11544
11544
  N = !1;
11545
11545
  break;
11546
11546
  }
11547
11547
  O(Et), f -= p.x, c += p.x, f < 0 && (i = pt, f = -f, c -= f), o && (h = f / o, l += (a.height - h) / 2);
11548
11548
  break;
11549
11549
  case Ht:
11550
- if (p.y >= 0 && (m >= x || o && (c <= T || E >= w))) {
11550
+ if (p.y >= 0 && (m >= y || o && (c <= T || E >= w))) {
11551
11551
  N = !1;
11552
11552
  break;
11553
11553
  }
@@ -11577,24 +11577,24 @@ var pm = {
11577
11577
  break;
11578
11578
  case fr:
11579
11579
  if (o) {
11580
- if (p.x <= 0 && (c <= T || m >= x)) {
11580
+ if (p.x <= 0 && (c <= T || m >= y)) {
11581
11581
  N = !1;
11582
11582
  break;
11583
11583
  }
11584
11584
  O(Et), f -= p.x, c += p.x, h = f / o;
11585
11585
  } else
11586
- O(Ht), O(Et), p.x <= 0 ? c > T ? (f -= p.x, c += p.x) : p.y >= 0 && m >= x && (N = !1) : (f -= p.x, c += p.x), p.y >= 0 ? m < x && (h += p.y) : h += p.y;
11586
+ O(Ht), O(Et), p.x <= 0 ? c > T ? (f -= p.x, c += p.x) : p.y >= 0 && m >= y && (N = !1) : (f -= p.x, c += p.x), p.y >= 0 ? m < y && (h += p.y) : h += p.y;
11587
11587
  f < 0 && h < 0 ? (i = or, h = -h, f = -f, l -= h, c -= f) : f < 0 ? (i = lr, f = -f, c -= f) : h < 0 && (i = cr, h = -h, l -= h);
11588
11588
  break;
11589
11589
  case lr:
11590
11590
  if (o) {
11591
- if (p.x >= 0 && (E >= w || m >= x)) {
11591
+ if (p.x >= 0 && (E >= w || m >= y)) {
11592
11592
  N = !1;
11593
11593
  break;
11594
11594
  }
11595
11595
  O(pt), f += p.x, h = f / o;
11596
11596
  } else
11597
- O(Ht), O(pt), p.x >= 0 ? E < w ? f += p.x : p.y >= 0 && m >= x && (N = !1) : f += p.x, p.y >= 0 ? m < x && (h += p.y) : h += p.y;
11597
+ O(Ht), O(pt), p.x >= 0 ? E < w ? f += p.x : p.y >= 0 && m >= y && (N = !1) : f += p.x, p.y >= 0 ? m < y && (h += p.y) : h += p.y;
11598
11598
  f < 0 && h < 0 ? (i = cr, h = -h, f = -f, l -= h, c -= f) : f < 0 ? (i = fr, f = -f, c -= f) : h < 0 && (i = or, h = -h, l -= h);
11599
11599
  break;
11600
11600
  case ll:
@@ -11608,11 +11608,11 @@ var pm = {
11608
11608
  N = !1;
11609
11609
  break;
11610
11610
  }
11611
- K = Cl(this.cropper), c = H.startX - K.left, l = H.startY - K.top, f = a.minWidth, h = a.minHeight, p.x > 0 ? i = p.y > 0 ? lr : or : p.x < 0 && (c -= f, i = p.y > 0 ? fr : cr), p.y < 0 && (l -= h), this.cropped || (Ne(this.cropBox, ce), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
11611
+ R = Cl(this.cropper), c = H.startX - R.left, l = H.startY - R.top, f = a.minWidth, h = a.minHeight, p.x > 0 ? i = p.y > 0 ? lr : or : p.x < 0 && (c -= f, i = p.y > 0 ? fr : cr), p.y < 0 && (l -= h), this.cropped || (Ne(this.cropBox, ce), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
11612
11612
  break;
11613
11613
  }
11614
- N && (a.width = f, a.height = h, a.left = c, a.top = l, this.action = i, this.renderCropBox()), LA(s, function(R) {
11615
- R.startX = R.endX, R.startY = R.endY;
11614
+ N && (a.width = f, a.height = h, a.left = c, a.top = l, this.action = i, this.renderCropBox()), LA(s, function(M) {
11615
+ M.startX = M.endX, M.startY = M.endY;
11616
11616
  });
11617
11617
  }
11618
11618
  }, bm = {
@@ -11893,11 +11893,11 @@ var pm = {
11893
11893
  m = Math.min(f.width, Math.max(h.width, m)), T = Math.min(f.height, Math.max(h.height, T));
11894
11894
  var I = document.createElement("canvas"), w = I.getContext("2d");
11895
11895
  I.width = qt(m), I.height = qt(T), w.fillStyle = e.fillColor || "transparent", w.fillRect(0, 0, m, T);
11896
- var x = e.imageSmoothingEnabled, N = x === void 0 ? !0 : x, K = e.imageSmoothingQuality;
11897
- w.imageSmoothingEnabled = N, K && (w.imageSmoothingQuality = K);
11898
- var H = r.width, p = r.height, O = a, R = s, P, aA, hA, wA, Z, uA;
11899
- O <= -i || O > H ? (O = 0, P = 0, hA = 0, Z = 0) : O <= 0 ? (hA = -O, O = 0, P = Math.min(H, i + O), Z = P) : O <= H && (hA = 0, P = Math.min(i, H - O), Z = P), P <= 0 || R <= -o || R > p ? (R = 0, aA = 0, wA = 0, uA = 0) : R <= 0 ? (wA = -R, R = 0, aA = Math.min(p, o + R), uA = aA) : R <= p && (wA = 0, aA = Math.min(o, p - R), uA = aA);
11900
- var pA = [O, R, P, aA];
11896
+ var y = e.imageSmoothingEnabled, N = y === void 0 ? !0 : y, R = e.imageSmoothingQuality;
11897
+ w.imageSmoothingEnabled = N, R && (w.imageSmoothingQuality = R);
11898
+ var H = r.width, p = r.height, O = a, M = s, G, aA, hA, wA, Z, uA;
11899
+ O <= -i || O > H ? (O = 0, G = 0, hA = 0, Z = 0) : O <= 0 ? (hA = -O, O = 0, G = Math.min(H, i + O), Z = G) : O <= H && (hA = 0, G = Math.min(i, H - O), Z = G), G <= 0 || M <= -o || M > p ? (M = 0, aA = 0, wA = 0, uA = 0) : M <= 0 ? (wA = -M, M = 0, aA = Math.min(p, o + M), uA = aA) : M <= p && (wA = 0, aA = Math.min(o, p - M), uA = aA);
11900
+ var pA = [O, M, G, aA];
11901
11901
  if (Z > 0 && uA > 0) {
11902
11902
  var EA = m / i;
11903
11903
  pA.push(hA * EA, wA * EA, Z * EA, uA * EA);
@@ -12148,7 +12148,7 @@ const Qm = {
12148
12148
  async function f(H) {
12149
12149
  if (!H)
12150
12150
  return;
12151
- await K();
12151
+ await R();
12152
12152
  const p = URL.createObjectURL(H);
12153
12153
  c.value.image = p, c.value.image && h(), o.value = H.type;
12154
12154
  }
@@ -12159,23 +12159,23 @@ const Qm = {
12159
12159
  });
12160
12160
  }
12161
12161
  const E = j(!1), m = j();
12162
- function T(H, p, O, R) {
12163
- m.value = R, a.value = H, H && H.aspectRatio && (s.value.aspectRatio = H.aspectRatio), O && (n.value.inputValue = O), E.value = !0, p && f(p);
12162
+ function T(H, p, O, M) {
12163
+ m.value = M, a.value = H, H && H.aspectRatio && (s.value.aspectRatio = H.aspectRatio), O && (n.value.inputValue = O), E.value = !0, p && f(p);
12164
12164
  }
12165
12165
  function I() {
12166
12166
  E.value = !1;
12167
12167
  }
12168
12168
  const w = () => {
12169
- var R, P;
12169
+ var M, G;
12170
12170
  if (!c.value.myCropper)
12171
12171
  return;
12172
12172
  i.value = !0;
12173
12173
  var p = c.value.myCropper.getCroppedCanvas({
12174
- height: (R = a.value) == null ? void 0 : R.height,
12174
+ height: (M = a.value) == null ? void 0 : M.height,
12175
12175
  // 高
12176
12176
  imageSmoothingQuality: "high",
12177
12177
  // 图片质量
12178
- width: (P = a.value) == null ? void 0 : P.width
12178
+ width: (G = a.value) == null ? void 0 : G.width
12179
12179
  // 输出图片的宽
12180
12180
  }).toDataURL(o.value);
12181
12181
  c.value.afterImg = p;
@@ -12183,26 +12183,26 @@ const Qm = {
12183
12183
  c.value.afterImg,
12184
12184
  n.value.inputValue
12185
12185
  );
12186
- r("ok", { file: O, element: m.value }), i.value = !1, K(), N(), I();
12186
+ r("ok", { file: O, element: m.value }), i.value = !1, R(), N(), I();
12187
12187
  };
12188
- function x() {
12189
- K(), N(), I(), r("cancel");
12188
+ function y() {
12189
+ R(), N(), I(), r("cancel");
12190
12190
  }
12191
12191
  function N() {
12192
12192
  c.value.myCropper && c.value.myCropper.destroy();
12193
12193
  }
12194
- function K() {
12194
+ function R() {
12195
12195
  c.value.image = "";
12196
12196
  }
12197
12197
  return e({ handleCloseCropper: I, handleOpenCropper: T }), (H, p) => {
12198
- var O, R, P;
12199
- return E.value ? (M(), Y("div", Qm, [
12198
+ var O, M, G;
12199
+ return E.value ? (k(), Y("div", Qm, [
12200
12200
  b("div", Fm, [
12201
12201
  b("div", vm, [
12202
12202
  p[1] || (p[1] = b("span", { class: "text-base font-semibold text-[#333]" }, "图片裁剪", -1)),
12203
12203
  b("span", {
12204
12204
  class: "text-lg cursor-pointer text-[#999] iconfont icon-shanchu2",
12205
- onClick: PA(x, ["stop"])
12205
+ onClick: PA(y, ["stop"])
12206
12206
  })
12207
12207
  ]),
12208
12208
  b("div", Im, [
@@ -12232,7 +12232,7 @@ const Qm = {
12232
12232
  b("div", Nm, [
12233
12233
  b("div", Dm, [
12234
12234
  b("div", Om, [
12235
- c.value.image ? W("", !0) : (M(), Y("div", Rm, " 请上传图片 ")),
12235
+ c.value.image ? W("", !0) : (k(), Y("div", Rm, " 请上传图片 ")),
12236
12236
  b("img", {
12237
12237
  id: "imgId",
12238
12238
  src: c.value.image,
@@ -12242,7 +12242,7 @@ const Qm = {
12242
12242
  ]),
12243
12243
  b("div", km, [
12244
12244
  p[4] || (p[4] = b("div", { class: "before w-[270px] h-[200px] pr-[70px] border" }, null, -1)),
12245
- b("div", Pm, " 预览画像 " + IA(((O = a.value) == null ? void 0 : O.width) || "") + " " + IA((R = a.value) != null && R.width ? "x" : "") + " " + IA(((P = a.value) == null ? void 0 : P.height) || ""), 1)
12245
+ b("div", Pm, " 预览画像 " + IA(((O = a.value) == null ? void 0 : O.width) || "") + " " + IA((M = a.value) != null && M.width ? "x" : "") + " " + IA(((G = a.value) == null ? void 0 : G.height) || ""), 1)
12246
12246
  ])
12247
12247
  ])
12248
12248
  ])
@@ -12258,7 +12258,7 @@ const Qm = {
12258
12258
  }, " 确认 ", 8, Gm),
12259
12259
  b("span", {
12260
12260
  class: "!w-22 border border-[#DEDEDE] text-[#666] rounded py-2 px-6 cursor-pointer",
12261
- onClick: x
12261
+ onClick: y
12262
12262
  }, "取消")
12263
12263
  ])
12264
12264
  ])
@@ -12333,16 +12333,16 @@ const Qm = {
12333
12333
  class: "p-4 border-t border-gray-200 flex justify-end space-x-2"
12334
12334
  };
12335
12335
  function zm(A, e, t, r, n, a) {
12336
- return A.visible ? (M(), Y("div", {
12336
+ return A.visible ? (k(), Y("div", {
12337
12337
  key: 0,
12338
12338
  class: "fixed inset-0 z-[99999] flex items-center justify-center bg-gray-900 bg-opacity-50",
12339
12339
  onClick: e[3] || (e[3] = PA((...s) => A.onMaskClosable && A.onMaskClosable(...s), ["self"]))
12340
12340
  }, [
12341
12341
  b("div", Xm, [
12342
12342
  b("div", Wm, [
12343
- A.title ? (M(), Y("h3", Jm, IA(A.title), 1)) : W("", !0),
12343
+ A.title ? (k(), Y("h3", Jm, IA(A.title), 1)) : W("", !0),
12344
12344
  Qr(A.$slots, "header"),
12345
- A.showCloseButton ? (M(), Y("button", {
12345
+ A.showCloseButton ? (k(), Y("button", {
12346
12346
  key: 1,
12347
12347
  class: "text-gray-400 hover:text-gray-600",
12348
12348
  onClick: e[0] || (e[0] = (...s) => A.onClose && A.onClose(...s)),
@@ -12365,14 +12365,14 @@ function zm(A, e, t, r, n, a) {
12365
12365
  b("div", qm, [
12366
12366
  Qr(A.$slots, "default")
12367
12367
  ]),
12368
- A.showCancelButton || A.showOkButton ? (M(), Y("div", jm, [
12368
+ A.showCancelButton || A.showOkButton ? (k(), Y("div", jm, [
12369
12369
  Qr(A.$slots, "footer", {}, () => [
12370
- A.showCancelButton ? (M(), Y("button", {
12370
+ A.showCancelButton ? (k(), Y("button", {
12371
12371
  key: 0,
12372
12372
  class: "px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 rounded hover:bg-gray-200",
12373
12373
  onClick: e[1] || (e[1] = (...s) => A.onCancel && A.onCancel(...s))
12374
12374
  }, IA(A.cancelText), 1)) : W("", !0),
12375
- A.showOkButton ? (M(), Y("button", {
12375
+ A.showOkButton ? (k(), Y("button", {
12376
12376
  key: 1,
12377
12377
  class: "px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded hover:bg-blue-700",
12378
12378
  onClick: e[2] || (e[2] = (...s) => A.onOk && A.onOk(...s))
@@ -12413,7 +12413,7 @@ const Tl = /* @__PURE__ */ dt(Ym, [["render", zm]]), $m = { class: "p-4 flex fle
12413
12413
  function l() {
12414
12414
  s.value = !1;
12415
12415
  }
12416
- return e({ openModal: o, closeModal: l }), (f, h) => (M(), Ye(Tl, {
12416
+ return e({ openModal: o, closeModal: l }), (f, h) => (k(), Ye(Tl, {
12417
12417
  visible: s.value,
12418
12418
  "onUpdate:visible": h[0] || (h[0] = (E) => s.value = E),
12419
12419
  title: "选择图标",
@@ -12424,7 +12424,7 @@ const Tl = /* @__PURE__ */ dt(Ym, [["render", zm]]), $m = { class: "p-4 flex fle
12424
12424
  }, {
12425
12425
  default: Rr(() => [
12426
12426
  b("div", $m, [
12427
- (M(!0), Y(Gt, null, Rn(a.value, (E) => (M(), Y("span", {
12427
+ (k(!0), Y(Gt, null, Rn(a.value, (E) => (k(), Y("span", {
12428
12428
  key: E,
12429
12429
  onClick: PA((m) => c(E), ["stop"]),
12430
12430
  style: { position: "unset", color: "unset", top: "unset", left: "unset", right: "unset", transform: "unset", "font-size": "unset" },
@@ -12485,18 +12485,18 @@ const Tl = /* @__PURE__ */ dt(Ym, [["render", zm]]), $m = { class: "p-4 flex fle
12485
12485
  const I = h[T];
12486
12486
  if (A.beforeUpload && await A.beforeUpload(I) === !1)
12487
12487
  continue;
12488
- const w = `${Date.now()}-${I.name}`, x = URL.createObjectURL(I), N = document.createElement("img");
12489
- N.src = x, document.body.appendChild(N), await new Promise((p) => {
12488
+ const w = `${Date.now()}-${I.name}`, y = URL.createObjectURL(I), N = document.createElement("img");
12489
+ N.src = y, document.body.appendChild(N), await new Promise((p) => {
12490
12490
  N.onload = p;
12491
12491
  });
12492
- const K = N.width, H = N.height;
12492
+ const R = N.width, H = N.height;
12493
12493
  document.body.removeChild(N), E.push({
12494
12494
  uid: w,
12495
12495
  name: I.name,
12496
12496
  status: "uploading",
12497
- thumbUrl: x,
12497
+ thumbUrl: y,
12498
12498
  file: I,
12499
- width: K,
12499
+ width: R,
12500
12500
  height: H
12501
12501
  });
12502
12502
  }
@@ -12523,8 +12523,8 @@ const Tl = /* @__PURE__ */ dt(Ym, [["render", zm]]), $m = { class: "p-4 flex fle
12523
12523
  class: "file-list mt-4"
12524
12524
  }, a1 = { class: "flex items-center space-x-4" }, s1 = ["src"], i1 = ["onClick"];
12525
12525
  function u1(A, e, t, r, n, a) {
12526
- return M(), Y("div", t1, [
12527
- A.isShow ? (M(), Y("div", {
12526
+ return k(), Y("div", t1, [
12527
+ A.isShow ? (k(), Y("div", {
12528
12528
  key: 0,
12529
12529
  class: "",
12530
12530
  onClick: e[0] || (e[0] = (...s) => A.triggerInput && A.triggerInput(...s))
@@ -12543,13 +12543,13 @@ function u1(A, e, t, r, n, a) {
12543
12543
  multiple: A.multiple,
12544
12544
  onChange: e[1] || (e[1] = (...s) => A.handleChange && A.handleChange(...s))
12545
12545
  }, null, 40, r1),
12546
- A.showList ? (M(), Y("div", n1, [
12547
- (M(!0), Y(Gt, null, Rn(A.fileList, (s) => (M(), Y("div", {
12546
+ A.showList ? (k(), Y("div", n1, [
12547
+ (k(!0), Y(Gt, null, Rn(A.fileList, (s) => (k(), Y("div", {
12548
12548
  key: s.uid,
12549
12549
  class: "file-item flex items-center justify-between p-2 border rounded mb-2"
12550
12550
  }, [
12551
12551
  b("div", a1, [
12552
- s.thumbUrl ? (M(), Y("img", {
12552
+ s.thumbUrl ? (k(), Y("img", {
12553
12553
  key: 0,
12554
12554
  src: s.thumbUrl,
12555
12555
  alt: "preview",
@@ -14980,9 +14980,9 @@ var lb = {
14980
14980
  function() {
14981
14981
  function A(e, t) {
14982
14982
  var r, n;
14983
- this.animationDuration = G(e, Ub, t.animationDuration), this.backgroundClip = G(e, Aw, t.backgroundClip), this.backgroundColor = G(e, ew, t.backgroundColor), this.backgroundImage = G(e, lw, t.backgroundImage), this.backgroundOrigin = G(e, fw, t.backgroundOrigin), this.backgroundPosition = G(e, hw, t.backgroundPosition), this.backgroundRepeat = G(e, dw, t.backgroundRepeat), this.backgroundSize = G(e, Bw, t.backgroundSize), this.borderTopColor = G(e, Ew, t.borderTopColor), this.borderRightColor = G(e, mw, t.borderRightColor), this.borderBottomColor = G(e, Cw, t.borderBottomColor), this.borderLeftColor = G(e, ww, t.borderLeftColor), this.borderTopLeftRadius = G(e, bw, t.borderTopLeftRadius), this.borderTopRightRadius = G(e, Tw, t.borderTopRightRadius), this.borderBottomRightRadius = G(e, Uw, t.borderBottomRightRadius), this.borderBottomLeftRadius = G(e, Qw, t.borderBottomLeftRadius), this.borderTopStyle = G(e, Fw, t.borderTopStyle), this.borderRightStyle = G(e, vw, t.borderRightStyle), this.borderBottomStyle = G(e, Iw, t.borderBottomStyle), this.borderLeftStyle = G(e, yw, t.borderLeftStyle), this.borderTopWidth = G(e, xw, t.borderTopWidth), this.borderRightWidth = G(e, _w, t.borderRightWidth), this.borderBottomWidth = G(e, Sw, t.borderBottomWidth), this.borderLeftWidth = G(e, Lw, t.borderLeftWidth), this.boxShadow = G(e, Fb, t.boxShadow), this.color = G(e, Hw, t.color), this.direction = G(e, Nw, t.direction), this.display = G(e, Dw, t.display), this.float = G(e, Rw, t.cssFloat), this.fontFamily = G(e, Bb, t.fontFamily), this.fontSize = G(e, pb, t.fontSize), this.fontStyle = G(e, Cb, t.fontStyle), this.fontVariant = G(e, mb, t.fontVariant), this.fontWeight = G(e, Eb, t.fontWeight), this.letterSpacing = G(e, Mw, t.letterSpacing), this.lineBreak = G(e, kw, t.lineBreak), this.lineHeight = G(e, Pw, t.lineHeight), this.listStyleImage = G(e, Kw, t.listStyleImage), this.listStylePosition = G(e, Gw, t.listStylePosition), this.listStyleType = G(e, zs, t.listStyleType), this.marginTop = G(e, Vw, t.marginTop), this.marginRight = G(e, Yw, t.marginRight), this.marginBottom = G(e, Xw, t.marginBottom), this.marginLeft = G(e, Ww, t.marginLeft), this.opacity = G(e, hb, t.opacity);
14984
- var a = G(e, Jw, t.overflow);
14985
- this.overflowX = a[0], this.overflowY = a[a.length > 1 ? 1 : 0], this.overflowWrap = G(e, qw, t.overflowWrap), this.paddingTop = G(e, jw, t.paddingTop), this.paddingRight = G(e, zw, t.paddingRight), this.paddingBottom = G(e, $w, t.paddingBottom), this.paddingLeft = G(e, Zw, t.paddingLeft), this.paintOrder = G(e, vb, t.paintOrder), this.position = G(e, eb, t.position), this.textAlign = G(e, Ab, t.textAlign), this.textDecorationColor = G(e, db, (r = t.textDecorationColor) !== null && r !== void 0 ? r : t.color), this.textDecorationLine = G(e, gb, (n = t.textDecorationLine) !== null && n !== void 0 ? n : t.textDecoration), this.textShadow = G(e, tb, t.textShadow), this.textTransform = G(e, rb, t.textTransform), this.transform = G(e, nb, t.transform), this.transformOrigin = G(e, ob, t.transformOrigin), this.visibility = G(e, cb, t.visibility), this.webkitTextStrokeColor = G(e, Ib, t.webkitTextStrokeColor), this.webkitTextStrokeWidth = G(e, yb, t.webkitTextStrokeWidth), this.wordBreak = G(e, lb, t.wordBreak), this.zIndex = G(e, fb, t.zIndex);
14983
+ this.animationDuration = V(e, Ub, t.animationDuration), this.backgroundClip = V(e, Aw, t.backgroundClip), this.backgroundColor = V(e, ew, t.backgroundColor), this.backgroundImage = V(e, lw, t.backgroundImage), this.backgroundOrigin = V(e, fw, t.backgroundOrigin), this.backgroundPosition = V(e, hw, t.backgroundPosition), this.backgroundRepeat = V(e, dw, t.backgroundRepeat), this.backgroundSize = V(e, Bw, t.backgroundSize), this.borderTopColor = V(e, Ew, t.borderTopColor), this.borderRightColor = V(e, mw, t.borderRightColor), this.borderBottomColor = V(e, Cw, t.borderBottomColor), this.borderLeftColor = V(e, ww, t.borderLeftColor), this.borderTopLeftRadius = V(e, bw, t.borderTopLeftRadius), this.borderTopRightRadius = V(e, Tw, t.borderTopRightRadius), this.borderBottomRightRadius = V(e, Uw, t.borderBottomRightRadius), this.borderBottomLeftRadius = V(e, Qw, t.borderBottomLeftRadius), this.borderTopStyle = V(e, Fw, t.borderTopStyle), this.borderRightStyle = V(e, vw, t.borderRightStyle), this.borderBottomStyle = V(e, Iw, t.borderBottomStyle), this.borderLeftStyle = V(e, yw, t.borderLeftStyle), this.borderTopWidth = V(e, xw, t.borderTopWidth), this.borderRightWidth = V(e, _w, t.borderRightWidth), this.borderBottomWidth = V(e, Sw, t.borderBottomWidth), this.borderLeftWidth = V(e, Lw, t.borderLeftWidth), this.boxShadow = V(e, Fb, t.boxShadow), this.color = V(e, Hw, t.color), this.direction = V(e, Nw, t.direction), this.display = V(e, Dw, t.display), this.float = V(e, Rw, t.cssFloat), this.fontFamily = V(e, Bb, t.fontFamily), this.fontSize = V(e, pb, t.fontSize), this.fontStyle = V(e, Cb, t.fontStyle), this.fontVariant = V(e, mb, t.fontVariant), this.fontWeight = V(e, Eb, t.fontWeight), this.letterSpacing = V(e, Mw, t.letterSpacing), this.lineBreak = V(e, kw, t.lineBreak), this.lineHeight = V(e, Pw, t.lineHeight), this.listStyleImage = V(e, Kw, t.listStyleImage), this.listStylePosition = V(e, Gw, t.listStylePosition), this.listStyleType = V(e, zs, t.listStyleType), this.marginTop = V(e, Vw, t.marginTop), this.marginRight = V(e, Yw, t.marginRight), this.marginBottom = V(e, Xw, t.marginBottom), this.marginLeft = V(e, Ww, t.marginLeft), this.opacity = V(e, hb, t.opacity);
14984
+ var a = V(e, Jw, t.overflow);
14985
+ this.overflowX = a[0], this.overflowY = a[a.length > 1 ? 1 : 0], this.overflowWrap = V(e, qw, t.overflowWrap), this.paddingTop = V(e, jw, t.paddingTop), this.paddingRight = V(e, zw, t.paddingRight), this.paddingBottom = V(e, $w, t.paddingBottom), this.paddingLeft = V(e, Zw, t.paddingLeft), this.paintOrder = V(e, vb, t.paintOrder), this.position = V(e, eb, t.position), this.textAlign = V(e, Ab, t.textAlign), this.textDecorationColor = V(e, db, (r = t.textDecorationColor) !== null && r !== void 0 ? r : t.color), this.textDecorationLine = V(e, gb, (n = t.textDecorationLine) !== null && n !== void 0 ? n : t.textDecoration), this.textShadow = V(e, tb, t.textShadow), this.textTransform = V(e, rb, t.textTransform), this.transform = V(e, nb, t.transform), this.transformOrigin = V(e, ob, t.transformOrigin), this.visibility = V(e, cb, t.visibility), this.webkitTextStrokeColor = V(e, Ib, t.webkitTextStrokeColor), this.webkitTextStrokeWidth = V(e, yb, t.webkitTextStrokeWidth), this.wordBreak = V(e, lb, t.wordBreak), this.zIndex = V(e, fb, t.zIndex);
14986
14986
  }
14987
14987
  return A.prototype.isVisible = function() {
14988
14988
  return this.display > 0 && this.opacity > 0 && this.visibility === 0;
@@ -15028,7 +15028,7 @@ var lb = {
15028
15028
  /** @class */
15029
15029
  /* @__PURE__ */ function() {
15030
15030
  function A(e, t) {
15031
- this.content = G(e, wb, t.content), this.quotes = G(e, Qb, t.quotes);
15031
+ this.content = V(e, wb, t.content), this.quotes = V(e, Qb, t.quotes);
15032
15032
  }
15033
15033
  return A;
15034
15034
  }()
@@ -15036,11 +15036,11 @@ var lb = {
15036
15036
  /** @class */
15037
15037
  /* @__PURE__ */ function() {
15038
15038
  function A(e, t) {
15039
- this.counterIncrement = G(e, bb, t.counterIncrement), this.counterReset = G(e, Tb, t.counterReset);
15039
+ this.counterIncrement = V(e, bb, t.counterIncrement), this.counterReset = V(e, Tb, t.counterReset);
15040
15040
  }
15041
15041
  return A;
15042
15042
  }()
15043
- ), G = function(A, e, t) {
15043
+ ), V = function(A, e, t) {
15044
15044
  var r = new Ol(), n = t !== null && typeof t < "u" ? t.toString() : e.initialValue;
15045
15045
  r.write(n);
15046
15046
  var a = new Rl(r.read());
@@ -16188,16 +16188,16 @@ var $b = 1, es = 2, ts = 3, po = 4, Eo = 5, Zb = 7, mo = 8, rs = 9, ns = 10, Co
16188
16188
  } else if (f.name === "counter") {
16189
16189
  var m = f.values.filter(Ar), T = m[0], I = m[1];
16190
16190
  if (T && BA(T)) {
16191
- var w = a.counters.getCounterValue(T.value), x = I && BA(I) ? zs.parse(a.context, I.value) : 3;
16192
- c.appendChild(i.createTextNode(qr(w, x, !1)));
16191
+ var w = a.counters.getCounterValue(T.value), y = I && BA(I) ? zs.parse(a.context, I.value) : 3;
16192
+ c.appendChild(i.createTextNode(qr(w, y, !1)));
16193
16193
  }
16194
16194
  } else if (f.name === "counters") {
16195
- var N = f.values.filter(Ar), T = N[0], K = N[1], I = N[2];
16195
+ var N = f.values.filter(Ar), T = N[0], R = N[1], I = N[2];
16196
16196
  if (T && BA(T)) {
16197
- var H = a.counters.getCounterValues(T.value), p = I && BA(I) ? zs.parse(a.context, I.value) : 3, O = K && K.type === 0 ? K.value : "", R = H.map(function(hA) {
16197
+ var H = a.counters.getCounterValues(T.value), p = I && BA(I) ? zs.parse(a.context, I.value) : 3, O = R && R.type === 0 ? R.value : "", M = H.map(function(hA) {
16198
16198
  return qr(hA, p, !1);
16199
16199
  }).join(O);
16200
- c.appendChild(i.createTextNode(R));
16200
+ c.appendChild(i.createTextNode(M));
16201
16201
  }
16202
16202
  }
16203
16203
  } else if (f.type === 20)
@@ -16386,7 +16386,7 @@ var MT = function(A, e) {
16386
16386
  return A.substr(0, 4) === "blob";
16387
16387
  }, rU = function(A) {
16388
16388
  return A.substr(-3).toLowerCase() === "svg" || $T.test(A);
16389
- }, k = (
16389
+ }, K = (
16390
16390
  /** @class */
16391
16391
  function() {
16392
16392
  function A(e, t) {
@@ -16397,7 +16397,7 @@ var MT = function(A, e) {
16397
16397
  }, A;
16398
16398
  }()
16399
16399
  ), Mt = function(A, e, t) {
16400
- return new k(A.x + (e.x - A.x) * t, A.y + (e.y - A.y) * t);
16400
+ return new K(A.x + (e.x - A.x) * t, A.y + (e.y - A.y) * t);
16401
16401
  }, In = (
16402
16402
  /** @class */
16403
16403
  function() {
@@ -16423,8 +16423,8 @@ var MT = function(A, e) {
16423
16423
  I.push((a + o) / r.width), I.push((m + f) / r.width), I.push((s + T) / r.height), I.push((c + h) / r.height);
16424
16424
  var w = Math.max.apply(Math, I);
16425
16425
  w > 1 && (a /= w, s /= w, o /= w, c /= w, f /= w, h /= w, m /= w, T /= w);
16426
- var x = r.width - o, N = r.height - h, K = r.width - f, H = r.height - T, p = t.borderTopWidth, O = t.borderRightWidth, R = t.borderBottomWidth, P = t.borderLeftWidth, aA = CA(t.paddingTop, e.bounds.width), hA = CA(t.paddingRight, e.bounds.width), wA = CA(t.paddingBottom, e.bounds.width), Z = CA(t.paddingLeft, e.bounds.width);
16427
- this.topLeftBorderDoubleOuterBox = a > 0 || s > 0 ? TA(r.left + P / 3, r.top + p / 3, a - P / 3, s - p / 3, fA.TOP_LEFT) : new k(r.left + P / 3, r.top + p / 3), this.topRightBorderDoubleOuterBox = a > 0 || s > 0 ? TA(r.left + x, r.top + p / 3, o - O / 3, c - p / 3, fA.TOP_RIGHT) : new k(r.left + r.width - O / 3, r.top + p / 3), this.bottomRightBorderDoubleOuterBox = f > 0 || h > 0 ? TA(r.left + K, r.top + N, f - O / 3, h - R / 3, fA.BOTTOM_RIGHT) : new k(r.left + r.width - O / 3, r.top + r.height - R / 3), this.bottomLeftBorderDoubleOuterBox = m > 0 || T > 0 ? TA(r.left + P / 3, r.top + H, m - P / 3, T - R / 3, fA.BOTTOM_LEFT) : new k(r.left + P / 3, r.top + r.height - R / 3), this.topLeftBorderDoubleInnerBox = a > 0 || s > 0 ? TA(r.left + P * 2 / 3, r.top + p * 2 / 3, a - P * 2 / 3, s - p * 2 / 3, fA.TOP_LEFT) : new k(r.left + P * 2 / 3, r.top + p * 2 / 3), this.topRightBorderDoubleInnerBox = a > 0 || s > 0 ? TA(r.left + x, r.top + p * 2 / 3, o - O * 2 / 3, c - p * 2 / 3, fA.TOP_RIGHT) : new k(r.left + r.width - O * 2 / 3, r.top + p * 2 / 3), this.bottomRightBorderDoubleInnerBox = f > 0 || h > 0 ? TA(r.left + K, r.top + N, f - O * 2 / 3, h - R * 2 / 3, fA.BOTTOM_RIGHT) : new k(r.left + r.width - O * 2 / 3, r.top + r.height - R * 2 / 3), this.bottomLeftBorderDoubleInnerBox = m > 0 || T > 0 ? TA(r.left + P * 2 / 3, r.top + H, m - P * 2 / 3, T - R * 2 / 3, fA.BOTTOM_LEFT) : new k(r.left + P * 2 / 3, r.top + r.height - R * 2 / 3), this.topLeftBorderStroke = a > 0 || s > 0 ? TA(r.left + P / 2, r.top + p / 2, a - P / 2, s - p / 2, fA.TOP_LEFT) : new k(r.left + P / 2, r.top + p / 2), this.topRightBorderStroke = a > 0 || s > 0 ? TA(r.left + x, r.top + p / 2, o - O / 2, c - p / 2, fA.TOP_RIGHT) : new k(r.left + r.width - O / 2, r.top + p / 2), this.bottomRightBorderStroke = f > 0 || h > 0 ? TA(r.left + K, r.top + N, f - O / 2, h - R / 2, fA.BOTTOM_RIGHT) : new k(r.left + r.width - O / 2, r.top + r.height - R / 2), this.bottomLeftBorderStroke = m > 0 || T > 0 ? TA(r.left + P / 2, r.top + H, m - P / 2, T - R / 2, fA.BOTTOM_LEFT) : new k(r.left + P / 2, r.top + r.height - R / 2), this.topLeftBorderBox = a > 0 || s > 0 ? TA(r.left, r.top, a, s, fA.TOP_LEFT) : new k(r.left, r.top), this.topRightBorderBox = o > 0 || c > 0 ? TA(r.left + x, r.top, o, c, fA.TOP_RIGHT) : new k(r.left + r.width, r.top), this.bottomRightBorderBox = f > 0 || h > 0 ? TA(r.left + K, r.top + N, f, h, fA.BOTTOM_RIGHT) : new k(r.left + r.width, r.top + r.height), this.bottomLeftBorderBox = m > 0 || T > 0 ? TA(r.left, r.top + H, m, T, fA.BOTTOM_LEFT) : new k(r.left, r.top + r.height), this.topLeftPaddingBox = a > 0 || s > 0 ? TA(r.left + P, r.top + p, Math.max(0, a - P), Math.max(0, s - p), fA.TOP_LEFT) : new k(r.left + P, r.top + p), this.topRightPaddingBox = o > 0 || c > 0 ? TA(r.left + Math.min(x, r.width - O), r.top + p, x > r.width + O ? 0 : Math.max(0, o - O), Math.max(0, c - p), fA.TOP_RIGHT) : new k(r.left + r.width - O, r.top + p), this.bottomRightPaddingBox = f > 0 || h > 0 ? TA(r.left + Math.min(K, r.width - P), r.top + Math.min(N, r.height - R), Math.max(0, f - O), Math.max(0, h - R), fA.BOTTOM_RIGHT) : new k(r.left + r.width - O, r.top + r.height - R), this.bottomLeftPaddingBox = m > 0 || T > 0 ? TA(r.left + P, r.top + Math.min(H, r.height - R), Math.max(0, m - P), Math.max(0, T - R), fA.BOTTOM_LEFT) : new k(r.left + P, r.top + r.height - R), this.topLeftContentBox = a > 0 || s > 0 ? TA(r.left + P + Z, r.top + p + aA, Math.max(0, a - (P + Z)), Math.max(0, s - (p + aA)), fA.TOP_LEFT) : new k(r.left + P + Z, r.top + p + aA), this.topRightContentBox = o > 0 || c > 0 ? TA(r.left + Math.min(x, r.width + P + Z), r.top + p + aA, x > r.width + P + Z ? 0 : o - P + Z, c - (p + aA), fA.TOP_RIGHT) : new k(r.left + r.width - (O + hA), r.top + p + aA), this.bottomRightContentBox = f > 0 || h > 0 ? TA(r.left + Math.min(K, r.width - (P + Z)), r.top + Math.min(N, r.height + p + aA), Math.max(0, f - (O + hA)), h - (R + wA), fA.BOTTOM_RIGHT) : new k(r.left + r.width - (O + hA), r.top + r.height - (R + wA)), this.bottomLeftContentBox = m > 0 || T > 0 ? TA(r.left + P + Z, r.top + H, Math.max(0, m - (P + Z)), T - (R + wA), fA.BOTTOM_LEFT) : new k(r.left + P + Z, r.top + r.height - (R + wA));
16426
+ var y = r.width - o, N = r.height - h, R = r.width - f, H = r.height - T, p = t.borderTopWidth, O = t.borderRightWidth, M = t.borderBottomWidth, G = t.borderLeftWidth, aA = CA(t.paddingTop, e.bounds.width), hA = CA(t.paddingRight, e.bounds.width), wA = CA(t.paddingBottom, e.bounds.width), Z = CA(t.paddingLeft, e.bounds.width);
16427
+ this.topLeftBorderDoubleOuterBox = a > 0 || s > 0 ? TA(r.left + G / 3, r.top + p / 3, a - G / 3, s - p / 3, fA.TOP_LEFT) : new K(r.left + G / 3, r.top + p / 3), this.topRightBorderDoubleOuterBox = a > 0 || s > 0 ? TA(r.left + y, r.top + p / 3, o - O / 3, c - p / 3, fA.TOP_RIGHT) : new K(r.left + r.width - O / 3, r.top + p / 3), this.bottomRightBorderDoubleOuterBox = f > 0 || h > 0 ? TA(r.left + R, r.top + N, f - O / 3, h - M / 3, fA.BOTTOM_RIGHT) : new K(r.left + r.width - O / 3, r.top + r.height - M / 3), this.bottomLeftBorderDoubleOuterBox = m > 0 || T > 0 ? TA(r.left + G / 3, r.top + H, m - G / 3, T - M / 3, fA.BOTTOM_LEFT) : new K(r.left + G / 3, r.top + r.height - M / 3), this.topLeftBorderDoubleInnerBox = a > 0 || s > 0 ? TA(r.left + G * 2 / 3, r.top + p * 2 / 3, a - G * 2 / 3, s - p * 2 / 3, fA.TOP_LEFT) : new K(r.left + G * 2 / 3, r.top + p * 2 / 3), this.topRightBorderDoubleInnerBox = a > 0 || s > 0 ? TA(r.left + y, r.top + p * 2 / 3, o - O * 2 / 3, c - p * 2 / 3, fA.TOP_RIGHT) : new K(r.left + r.width - O * 2 / 3, r.top + p * 2 / 3), this.bottomRightBorderDoubleInnerBox = f > 0 || h > 0 ? TA(r.left + R, r.top + N, f - O * 2 / 3, h - M * 2 / 3, fA.BOTTOM_RIGHT) : new K(r.left + r.width - O * 2 / 3, r.top + r.height - M * 2 / 3), this.bottomLeftBorderDoubleInnerBox = m > 0 || T > 0 ? TA(r.left + G * 2 / 3, r.top + H, m - G * 2 / 3, T - M * 2 / 3, fA.BOTTOM_LEFT) : new K(r.left + G * 2 / 3, r.top + r.height - M * 2 / 3), this.topLeftBorderStroke = a > 0 || s > 0 ? TA(r.left + G / 2, r.top + p / 2, a - G / 2, s - p / 2, fA.TOP_LEFT) : new K(r.left + G / 2, r.top + p / 2), this.topRightBorderStroke = a > 0 || s > 0 ? TA(r.left + y, r.top + p / 2, o - O / 2, c - p / 2, fA.TOP_RIGHT) : new K(r.left + r.width - O / 2, r.top + p / 2), this.bottomRightBorderStroke = f > 0 || h > 0 ? TA(r.left + R, r.top + N, f - O / 2, h - M / 2, fA.BOTTOM_RIGHT) : new K(r.left + r.width - O / 2, r.top + r.height - M / 2), this.bottomLeftBorderStroke = m > 0 || T > 0 ? TA(r.left + G / 2, r.top + H, m - G / 2, T - M / 2, fA.BOTTOM_LEFT) : new K(r.left + G / 2, r.top + r.height - M / 2), this.topLeftBorderBox = a > 0 || s > 0 ? TA(r.left, r.top, a, s, fA.TOP_LEFT) : new K(r.left, r.top), this.topRightBorderBox = o > 0 || c > 0 ? TA(r.left + y, r.top, o, c, fA.TOP_RIGHT) : new K(r.left + r.width, r.top), this.bottomRightBorderBox = f > 0 || h > 0 ? TA(r.left + R, r.top + N, f, h, fA.BOTTOM_RIGHT) : new K(r.left + r.width, r.top + r.height), this.bottomLeftBorderBox = m > 0 || T > 0 ? TA(r.left, r.top + H, m, T, fA.BOTTOM_LEFT) : new K(r.left, r.top + r.height), this.topLeftPaddingBox = a > 0 || s > 0 ? TA(r.left + G, r.top + p, Math.max(0, a - G), Math.max(0, s - p), fA.TOP_LEFT) : new K(r.left + G, r.top + p), this.topRightPaddingBox = o > 0 || c > 0 ? TA(r.left + Math.min(y, r.width - O), r.top + p, y > r.width + O ? 0 : Math.max(0, o - O), Math.max(0, c - p), fA.TOP_RIGHT) : new K(r.left + r.width - O, r.top + p), this.bottomRightPaddingBox = f > 0 || h > 0 ? TA(r.left + Math.min(R, r.width - G), r.top + Math.min(N, r.height - M), Math.max(0, f - O), Math.max(0, h - M), fA.BOTTOM_RIGHT) : new K(r.left + r.width - O, r.top + r.height - M), this.bottomLeftPaddingBox = m > 0 || T > 0 ? TA(r.left + G, r.top + Math.min(H, r.height - M), Math.max(0, m - G), Math.max(0, T - M), fA.BOTTOM_LEFT) : new K(r.left + G, r.top + r.height - M), this.topLeftContentBox = a > 0 || s > 0 ? TA(r.left + G + Z, r.top + p + aA, Math.max(0, a - (G + Z)), Math.max(0, s - (p + aA)), fA.TOP_LEFT) : new K(r.left + G + Z, r.top + p + aA), this.topRightContentBox = o > 0 || c > 0 ? TA(r.left + Math.min(y, r.width + G + Z), r.top + p + aA, y > r.width + G + Z ? 0 : o - G + Z, c - (p + aA), fA.TOP_RIGHT) : new K(r.left + r.width - (O + hA), r.top + p + aA), this.bottomRightContentBox = f > 0 || h > 0 ? TA(r.left + Math.min(R, r.width - (G + Z)), r.top + Math.min(N, r.height + p + aA), Math.max(0, f - (O + hA)), h - (M + wA), fA.BOTTOM_RIGHT) : new K(r.left + r.width - (O + hA), r.top + r.height - (M + wA)), this.bottomLeftContentBox = m > 0 || T > 0 ? TA(r.left + G + Z, r.top + H, Math.max(0, m - (G + Z)), T - (M + wA), fA.BOTTOM_LEFT) : new K(r.left + G + Z, r.top + r.height - (M + wA));
16428
16428
  }
16429
16429
  return A;
16430
16430
  }()
@@ -16436,14 +16436,14 @@ var TA = function(A, e, t, r, n) {
16436
16436
  var a = 4 * ((Math.sqrt(2) - 1) / 3), s = t * a, i = r * a, o = A + t, c = e + r;
16437
16437
  switch (n) {
16438
16438
  case fA.TOP_LEFT:
16439
- return new In(new k(A, c), new k(A, c - i), new k(o - s, e), new k(o, e));
16439
+ return new In(new K(A, c), new K(A, c - i), new K(o - s, e), new K(o, e));
16440
16440
  case fA.TOP_RIGHT:
16441
- return new In(new k(A, e), new k(A + s, e), new k(o, c - i), new k(o, c));
16441
+ return new In(new K(A, e), new K(A + s, e), new K(o, c - i), new K(o, c));
16442
16442
  case fA.BOTTOM_RIGHT:
16443
- return new In(new k(o, e), new k(o, e + i), new k(A + s, c), new k(A, c));
16443
+ return new In(new K(o, e), new K(o, e + i), new K(A + s, c), new K(A, c));
16444
16444
  case fA.BOTTOM_LEFT:
16445
16445
  default:
16446
- return new In(new k(o, c), new k(o - s, c), new k(A, e + i), new k(A, e));
16446
+ return new In(new K(o, c), new K(o - s, c), new K(A, e + i), new K(A, e));
16447
16447
  }
16448
16448
  }, na = function(A) {
16449
16449
  return [A.topLeftBorderBox, A.topRightBorderBox, A.bottomRightBorderBox, A.bottomLeftBorderBox];
@@ -16728,12 +16728,12 @@ var TA = function(A, e, t, r, n) {
16728
16728
  return [T, I];
16729
16729
  }
16730
16730
  if (o) {
16731
- var w = 0, x = 0;
16732
- return SA(s) ? w = CA(s, t.width) : SA(i) && (x = CA(i, t.height)), kt(s) ? w = x * a : (!i || kt(i)) && (x = w / a), [w, x];
16731
+ var w = 0, y = 0;
16732
+ return SA(s) ? w = CA(s, t.width) : SA(i) && (y = CA(i, t.height)), kt(s) ? w = y * a : (!i || kt(i)) && (y = w / a), [w, y];
16733
16733
  }
16734
- var N = null, K = null;
16735
- if (SA(s) ? N = CA(s, t.width) : i && SA(i) && (K = CA(i, t.height)), N !== null && (!i || kt(i)) && (K = l && f ? N / r * n : t.height), K !== null && kt(s) && (N = l && f ? K / n * r : t.width), N !== null && K !== null)
16736
- return [N, K];
16734
+ var N = null, R = null;
16735
+ if (SA(s) ? N = CA(s, t.width) : i && SA(i) && (R = CA(i, t.height)), N !== null && (!i || kt(i)) && (R = l && f ? N / r * n : t.height), R !== null && kt(s) && (N = l && f ? R / n * r : t.width), N !== null && R !== null)
16736
+ return [N, R];
16737
16737
  throw new Error("Unable to calculate background-size for element");
16738
16738
  }, Kt = function(A, e) {
16739
16739
  var t = A[e];
@@ -16743,31 +16743,31 @@ var TA = function(A, e, t, r, n) {
16743
16743
  switch (A) {
16744
16744
  case 2:
16745
16745
  return [
16746
- new k(Math.round(r.left), Math.round(r.top + s)),
16747
- new k(Math.round(r.left + r.width), Math.round(r.top + s)),
16748
- new k(Math.round(r.left + r.width), Math.round(o + r.top + s)),
16749
- new k(Math.round(r.left), Math.round(o + r.top + s))
16746
+ new K(Math.round(r.left), Math.round(r.top + s)),
16747
+ new K(Math.round(r.left + r.width), Math.round(r.top + s)),
16748
+ new K(Math.round(r.left + r.width), Math.round(o + r.top + s)),
16749
+ new K(Math.round(r.left), Math.round(o + r.top + s))
16750
16750
  ];
16751
16751
  case 3:
16752
16752
  return [
16753
- new k(Math.round(r.left + a), Math.round(r.top)),
16754
- new k(Math.round(r.left + a + i), Math.round(r.top)),
16755
- new k(Math.round(r.left + a + i), Math.round(r.height + r.top)),
16756
- new k(Math.round(r.left + a), Math.round(r.height + r.top))
16753
+ new K(Math.round(r.left + a), Math.round(r.top)),
16754
+ new K(Math.round(r.left + a + i), Math.round(r.top)),
16755
+ new K(Math.round(r.left + a + i), Math.round(r.height + r.top)),
16756
+ new K(Math.round(r.left + a), Math.round(r.height + r.top))
16757
16757
  ];
16758
16758
  case 1:
16759
16759
  return [
16760
- new k(Math.round(r.left + a), Math.round(r.top + s)),
16761
- new k(Math.round(r.left + a + i), Math.round(r.top + s)),
16762
- new k(Math.round(r.left + a + i), Math.round(r.top + s + o)),
16763
- new k(Math.round(r.left + a), Math.round(r.top + s + o))
16760
+ new K(Math.round(r.left + a), Math.round(r.top + s)),
16761
+ new K(Math.round(r.left + a + i), Math.round(r.top + s)),
16762
+ new K(Math.round(r.left + a + i), Math.round(r.top + s + o)),
16763
+ new K(Math.round(r.left + a), Math.round(r.top + s + o))
16764
16764
  ];
16765
16765
  default:
16766
16766
  return [
16767
- new k(Math.round(n.left), Math.round(n.top)),
16768
- new k(Math.round(n.left + n.width), Math.round(n.top)),
16769
- new k(Math.round(n.left + n.width), Math.round(n.height + n.top)),
16770
- new k(Math.round(n.left), Math.round(n.height + n.top))
16767
+ new K(Math.round(n.left), Math.round(n.top)),
16768
+ new K(Math.round(n.left + n.width), Math.round(n.top)),
16769
+ new K(Math.round(n.left + n.width), Math.round(n.height + n.top)),
16770
+ new K(Math.round(n.left), Math.round(n.height + n.top))
16771
16771
  ];
16772
16772
  }
16773
16773
  }, mU = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", ko = "Hidden Text", CU = (
@@ -16918,7 +16918,7 @@ var TA = function(A, e, t, r, n) {
16918
16918
  }
16919
16919
  }, e.prototype.renderNodeContent = function(t) {
16920
16920
  return ne(this, void 0, void 0, function() {
16921
- var r, n, a, s, i, o, x, x, c, l, f, h, K, E, m, H, T, I, w, x, N, K, H;
16921
+ var r, n, a, s, i, o, y, y, c, l, f, h, R, E, m, H, T, I, w, y, N, R, H;
16922
16922
  return ZA(this, function(p) {
16923
16923
  switch (p.label) {
16924
16924
  case 0:
@@ -16938,7 +16938,7 @@ var TA = function(A, e, t, r, n) {
16938
16938
  case 5:
16939
16939
  return p.trys.push([5, 7, , 8]), [4, this.context.cache.match(r.src)];
16940
16940
  case 6:
16941
- return x = p.sent(), this.renderReplacedElement(r, n, x), [3, 8];
16941
+ return y = p.sent(), this.renderReplacedElement(r, n, y), [3, 8];
16942
16942
  case 7:
16943
16943
  return p.sent(), this.context.logger.error("Error loading image " + r.src), [3, 8];
16944
16944
  case 8:
@@ -16947,7 +16947,7 @@ var TA = function(A, e, t, r, n) {
16947
16947
  case 9:
16948
16948
  return p.trys.push([9, 11, , 12]), [4, this.context.cache.match(r.svg)];
16949
16949
  case 10:
16950
- return x = p.sent(), this.renderReplacedElement(r, n, x), [3, 12];
16950
+ return y = p.sent(), this.renderReplacedElement(r, n, y), [3, 12];
16951
16951
  case 11:
16952
16952
  return p.sent(), this.context.logger.error("Error loading svg " + r.svg.substring(0, 255)), [3, 12];
16953
16953
  case 12:
@@ -16963,15 +16963,15 @@ var TA = function(A, e, t, r, n) {
16963
16963
  l = p.sent(), r.width && r.height && this.ctx.drawImage(l, 0, 0, r.width, r.height, r.bounds.left, r.bounds.top, r.bounds.width, r.bounds.height), p.label = 14;
16964
16964
  case 14:
16965
16965
  if (r instanceof ki && (f = Math.min(r.bounds.width, r.bounds.height), r.type === Aa ? r.checked && (this.ctx.save(), this.path([
16966
- new k(r.bounds.left + f * 0.39363, r.bounds.top + f * 0.79),
16967
- new k(r.bounds.left + f * 0.16, r.bounds.top + f * 0.5549),
16968
- new k(r.bounds.left + f * 0.27347, r.bounds.top + f * 0.44071),
16969
- new k(r.bounds.left + f * 0.39694, r.bounds.top + f * 0.5649),
16970
- new k(r.bounds.left + f * 0.72983, r.bounds.top + f * 0.23),
16971
- new k(r.bounds.left + f * 0.84, r.bounds.top + f * 0.34085),
16972
- new k(r.bounds.left + f * 0.39363, r.bounds.top + f * 0.79)
16966
+ new K(r.bounds.left + f * 0.39363, r.bounds.top + f * 0.79),
16967
+ new K(r.bounds.left + f * 0.16, r.bounds.top + f * 0.5549),
16968
+ new K(r.bounds.left + f * 0.27347, r.bounds.top + f * 0.44071),
16969
+ new K(r.bounds.left + f * 0.39694, r.bounds.top + f * 0.5649),
16970
+ new K(r.bounds.left + f * 0.72983, r.bounds.top + f * 0.23),
16971
+ new K(r.bounds.left + f * 0.84, r.bounds.top + f * 0.34085),
16972
+ new K(r.bounds.left + f * 0.39363, r.bounds.top + f * 0.79)
16973
16973
  ]), this.ctx.fillStyle = MA(vo), this.ctx.fill(), this.ctx.restore()) : r.type === ea && 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(vo), this.ctx.fill(), this.ctx.restore())), TU(r) && r.value.length) {
16974
- switch (h = this.createFontStyle(a), K = h[0], E = h[1], m = this.fontMetrics.getMetrics(K, E).baseline, this.ctx.font = K, this.ctx.fillStyle = MA(a.color), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = QU(r.styles.textAlign), H = sa(r), T = 0, r.styles.textAlign) {
16974
+ switch (h = this.createFontStyle(a), R = h[0], E = h[1], m = this.fontMetrics.getMetrics(R, E).baseline, this.ctx.font = R, this.ctx.fillStyle = MA(a.color), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = QU(r.styles.textAlign), H = sa(r), T = 0, r.styles.textAlign) {
16975
16975
  case 1:
16976
16976
  T += H.width / 2;
16977
16977
  break;
@@ -16980,10 +16980,10 @@ var TA = function(A, e, t, r, n) {
16980
16980
  break;
16981
16981
  }
16982
16982
  I = H.add(T, 0, 0, -H.height / 2 + 1), this.ctx.save(), this.path([
16983
- new k(H.left, H.top),
16984
- new k(H.left + H.width, H.top),
16985
- new k(H.left + H.width, H.top + H.height),
16986
- new k(H.left, H.top + H.height)
16983
+ new K(H.left, H.top),
16984
+ new K(H.left + H.width, H.top),
16985
+ new K(H.left + H.width, H.top + H.height),
16986
+ new K(H.left, H.top + H.height)
16987
16987
  ]), this.ctx.clip(), this.renderTextWithLetterSpacing(new Dr(r.value, I), a.letterSpacing, m), this.ctx.restore(), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = "left";
16988
16988
  }
16989
16989
  if (!OA(
@@ -16993,17 +16993,17 @@ var TA = function(A, e, t, r, n) {
16993
16993
  )) return [3, 20];
16994
16994
  if (r.styles.listStyleImage === null) return [3, 19];
16995
16995
  if (w = r.styles.listStyleImage, w.type !== 0) return [3, 18];
16996
- x = void 0, N = w.url, p.label = 15;
16996
+ y = void 0, N = w.url, p.label = 15;
16997
16997
  case 15:
16998
16998
  return p.trys.push([15, 17, , 18]), [4, this.context.cache.match(N)];
16999
16999
  case 16:
17000
- return x = p.sent(), this.ctx.drawImage(x, r.bounds.left - (x.width + 10), r.bounds.top), [3, 18];
17000
+ return y = p.sent(), this.ctx.drawImage(y, r.bounds.left - (y.width + 10), r.bounds.top), [3, 18];
17001
17001
  case 17:
17002
17002
  return p.sent(), this.context.logger.error("Error loading list-style-image " + N), [3, 18];
17003
17003
  case 18:
17004
17004
  return [3, 20];
17005
17005
  case 19:
17006
- t.listValue && r.styles.listStyleType !== -1 && (K = this.createFontStyle(a)[0], this.ctx.font = K, this.ctx.fillStyle = MA(a.color), this.ctx.textBaseline = "middle", this.ctx.textAlign = "right", H = new Je(r.bounds.left, r.bounds.top + CA(r.styles.paddingTop, r.bounds.width), r.bounds.width, oo(a.lineHeight, a.fontSize.number) / 2 + 1), this.renderTextWithLetterSpacing(new Dr(t.listValue, H), a.letterSpacing, oo(a.lineHeight, a.fontSize.number) / 2 + 2), this.ctx.textBaseline = "bottom", this.ctx.textAlign = "left"), p.label = 20;
17006
+ 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", H = new Je(r.bounds.left, r.bounds.top + CA(r.styles.paddingTop, r.bounds.width), r.bounds.width, oo(a.lineHeight, a.fontSize.number) / 2 + 1), this.renderTextWithLetterSpacing(new Dr(t.listValue, H), a.letterSpacing, oo(a.lineHeight, a.fontSize.number) / 2 + 2), this.ctx.textBaseline = "bottom", this.ctx.textAlign = "left"), p.label = 20;
17007
17007
  case 20:
17008
17008
  return [
17009
17009
  2
@@ -17015,8 +17015,8 @@ var TA = function(A, e, t, r, n) {
17015
17015
  }, e.prototype.renderStackContent = function(t) {
17016
17016
  return ne(this, void 0, void 0, function() {
17017
17017
  var r, n, w, a, s, w, i, o, w, c, l, w, f, h, w, E, m, w, T, I, w;
17018
- return ZA(this, function(x) {
17019
- switch (x.label) {
17018
+ return ZA(this, function(y) {
17019
+ switch (y.label) {
17020
17020
  case 0:
17021
17021
  if (OA(
17022
17022
  t.element.container.flags,
@@ -17026,61 +17026,61 @@ var TA = function(A, e, t, r, n) {
17026
17026
  debugger;
17027
17027
  return [4, this.renderNodeBackgroundAndBorders(t.element)];
17028
17028
  case 1:
17029
- x.sent(), r = 0, n = t.negativeZIndex, x.label = 2;
17029
+ y.sent(), r = 0, n = t.negativeZIndex, y.label = 2;
17030
17030
  case 2:
17031
17031
  return r < n.length ? (w = n[r], [4, this.renderStack(w)]) : [3, 5];
17032
17032
  case 3:
17033
- x.sent(), x.label = 4;
17033
+ y.sent(), y.label = 4;
17034
17034
  case 4:
17035
17035
  return r++, [3, 2];
17036
17036
  case 5:
17037
17037
  return [4, this.renderNodeContent(t.element)];
17038
17038
  case 6:
17039
- x.sent(), a = 0, s = t.nonInlineLevel, x.label = 7;
17039
+ y.sent(), a = 0, s = t.nonInlineLevel, y.label = 7;
17040
17040
  case 7:
17041
17041
  return a < s.length ? (w = s[a], [4, this.renderNode(w)]) : [3, 10];
17042
17042
  case 8:
17043
- x.sent(), x.label = 9;
17043
+ y.sent(), y.label = 9;
17044
17044
  case 9:
17045
17045
  return a++, [3, 7];
17046
17046
  case 10:
17047
- i = 0, o = t.nonPositionedFloats, x.label = 11;
17047
+ i = 0, o = t.nonPositionedFloats, y.label = 11;
17048
17048
  case 11:
17049
17049
  return i < o.length ? (w = o[i], [4, this.renderStack(w)]) : [3, 14];
17050
17050
  case 12:
17051
- x.sent(), x.label = 13;
17051
+ y.sent(), y.label = 13;
17052
17052
  case 13:
17053
17053
  return i++, [3, 11];
17054
17054
  case 14:
17055
- c = 0, l = t.nonPositionedInlineLevel, x.label = 15;
17055
+ c = 0, l = t.nonPositionedInlineLevel, y.label = 15;
17056
17056
  case 15:
17057
17057
  return c < l.length ? (w = l[c], [4, this.renderStack(w)]) : [3, 18];
17058
17058
  case 16:
17059
- x.sent(), x.label = 17;
17059
+ y.sent(), y.label = 17;
17060
17060
  case 17:
17061
17061
  return c++, [3, 15];
17062
17062
  case 18:
17063
- f = 0, h = t.inlineLevel, x.label = 19;
17063
+ f = 0, h = t.inlineLevel, y.label = 19;
17064
17064
  case 19:
17065
17065
  return f < h.length ? (w = h[f], [4, this.renderNode(w)]) : [3, 22];
17066
17066
  case 20:
17067
- x.sent(), x.label = 21;
17067
+ y.sent(), y.label = 21;
17068
17068
  case 21:
17069
17069
  return f++, [3, 19];
17070
17070
  case 22:
17071
- E = 0, m = t.zeroOrAutoZIndexOrTransformedOrOpacity, x.label = 23;
17071
+ E = 0, m = t.zeroOrAutoZIndexOrTransformedOrOpacity, y.label = 23;
17072
17072
  case 23:
17073
17073
  return E < m.length ? (w = m[E], [4, this.renderStack(w)]) : [3, 26];
17074
17074
  case 24:
17075
- x.sent(), x.label = 25;
17075
+ y.sent(), y.label = 25;
17076
17076
  case 25:
17077
17077
  return E++, [3, 23];
17078
17078
  case 26:
17079
- T = 0, I = t.positiveZIndex, x.label = 27;
17079
+ T = 0, I = t.positiveZIndex, y.label = 27;
17080
17080
  case 27:
17081
17081
  return T < I.length ? (w = I[T], [4, this.renderStack(w)]) : [3, 30];
17082
17082
  case 28:
17083
- x.sent(), x.label = 29;
17083
+ y.sent(), y.label = 29;
17084
17084
  case 29:
17085
17085
  return T++, [3, 27];
17086
17086
  case 30:
@@ -17118,7 +17118,7 @@ var TA = function(A, e, t, r, n) {
17118
17118
  switch (c.label) {
17119
17119
  case 0:
17120
17120
  r = t.styles.backgroundImage.length - 1, n = function(l) {
17121
- var f, h, E, aA, EA, vA, Z, uA, R, m, aA, EA, vA, Z, uA, T, I, w, x, N, K, H, p, O, R, P, aA, hA, wA, Z, uA, pA, EA, vA, te, HA, jA, re, RA, YA, XA, v;
17121
+ var f, h, E, aA, EA, vA, Z, uA, M, m, aA, EA, vA, Z, uA, T, I, w, y, N, R, H, p, O, M, G, aA, hA, wA, Z, uA, pA, EA, vA, te, HA, jA, re, RA, YA, XA, x;
17122
17122
  return ZA(this, function(_) {
17123
17123
  switch (_.label) {
17124
17124
  case 0:
@@ -17135,17 +17135,17 @@ var TA = function(A, e, t, r, n) {
17135
17135
  f.width,
17136
17136
  f.height,
17137
17137
  f.width / f.height
17138
- ]), aA = E[0], EA = E[1], vA = E[2], Z = E[3], uA = E[4], R = a.ctx.createPattern(a.resizeImage(f, Z, uA), "repeat"), a.renderRepeat(aA, R, EA, vA)), [3, 6];
17138
+ ]), aA = E[0], EA = E[1], vA = E[2], Z = E[3], uA = E[4], M = a.ctx.createPattern(a.resizeImage(f, Z, uA), "repeat"), a.renderRepeat(aA, M, EA, vA)), [3, 6];
17139
17139
  case 5:
17140
- uw(l) ? (m = ls(t, r, [null, null, null]), aA = m[0], EA = m[1], vA = m[2], Z = m[3], uA = m[4], T = rw(l.angle, Z, uA), I = T[0], w = T[1], x = T[2], N = T[3], K = T[4], H = document.createElement("canvas"), H.width = Z, H.height = uA, p = H.getContext("2d"), O = p.createLinearGradient(w, N, x, K), io(l.stops, I).forEach(function(sA) {
17140
+ uw(l) ? (m = ls(t, r, [null, null, null]), aA = m[0], EA = m[1], vA = m[2], Z = m[3], uA = m[4], T = rw(l.angle, Z, uA), I = T[0], w = T[1], y = T[2], N = T[3], R = T[4], H = document.createElement("canvas"), H.width = Z, H.height = uA, p = H.getContext("2d"), O = p.createLinearGradient(w, N, y, R), io(l.stops, I).forEach(function(sA) {
17141
17141
  return O.addColorStop(sA.stop, MA(sA.color));
17142
- }), p.fillStyle = O, p.fillRect(0, 0, Z, uA), Z > 0 && uA > 0 && (R = a.ctx.createPattern(H, "repeat"), a.renderRepeat(aA, R, EA, vA))) : ow(l) && (P = ls(t, r, [
17142
+ }), p.fillStyle = O, p.fillRect(0, 0, Z, uA), Z > 0 && uA > 0 && (M = a.ctx.createPattern(H, "repeat"), a.renderRepeat(aA, M, EA, vA))) : ow(l) && (G = ls(t, r, [
17143
17143
  null,
17144
17144
  null,
17145
17145
  null
17146
- ]), aA = P[0], hA = P[1], wA = P[2], Z = P[3], uA = P[4], pA = l.position.length === 0 ? [Di] : l.position, EA = CA(pA[0], Z), vA = CA(pA[pA.length - 1], uA), te = nw(l, EA, vA, Z, uA), HA = te[0], jA = te[1], HA > 0 && jA > 0 && (re = a.ctx.createRadialGradient(hA + EA, wA + vA, 0, hA + EA, wA + vA, HA), io(l.stops, HA * 2).forEach(function(sA) {
17146
+ ]), aA = G[0], hA = G[1], wA = G[2], Z = G[3], uA = G[4], pA = l.position.length === 0 ? [Di] : l.position, EA = CA(pA[0], Z), vA = CA(pA[pA.length - 1], uA), te = nw(l, EA, vA, Z, uA), HA = te[0], jA = te[1], HA > 0 && jA > 0 && (re = a.ctx.createRadialGradient(hA + EA, wA + vA, 0, hA + EA, wA + vA, HA), io(l.stops, HA * 2).forEach(function(sA) {
17147
17147
  return re.addColorStop(sA.stop, MA(sA.color));
17148
- }), a.path(aA), a.ctx.fillStyle = re, HA !== jA ? (RA = t.bounds.left + 0.5 * t.bounds.width, YA = t.bounds.top + 0.5 * t.bounds.height, XA = jA / HA, v = 1 / XA, a.ctx.save(), a.ctx.translate(RA, YA), a.ctx.transform(1, 0, 0, XA, 0, 0), a.ctx.translate(-RA, -YA), a.ctx.fillRect(hA, v * (wA - YA) + YA, Z, uA * v), a.ctx.restore()) : a.ctx.fill())), _.label = 6;
17148
+ }), a.path(aA), a.ctx.fillStyle = re, HA !== jA ? (RA = t.bounds.left + 0.5 * t.bounds.width, YA = t.bounds.top + 0.5 * t.bounds.height, XA = jA / HA, x = 1 / XA, a.ctx.save(), a.ctx.translate(RA, YA), a.ctx.transform(1, 0, 0, XA, 0, 0), a.ctx.translate(-RA, -YA), a.ctx.fillRect(hA, x * (wA - YA) + YA, Z, uA * x), a.ctx.restore()) : a.ctx.fill())), _.label = 6;
17149
17149
  case 6:
17150
17150
  return r--, [
17151
17151
  2
@@ -17264,9 +17264,9 @@ var TA = function(A, e, t, r, n) {
17264
17264
  });
17265
17265
  }, e.prototype.renderDashedDottedBorder = function(t, r, n, a, s) {
17266
17266
  return ne(this, void 0, void 0, function() {
17267
- var i, o, c, l, f, h, E, m, T, I, w, x, N, K, H, p, H, p;
17267
+ var i, o, c, l, f, h, E, m, T, I, w, y, N, R, H, p, H, p;
17268
17268
  return ZA(this, function(O) {
17269
- return this.ctx.save(), i = dU(a, n), o = Mo(a, n), s === 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 ? E = Math.abs(c - f) : E = Math.abs(l - h), this.ctx.beginPath(), s === 3 ? this.formatPath(i) : this.formatPath(o.slice(0, 2)), m = r < 3 ? r * 3 : r * 2, T = r < 3 ? r * 2 : r, s === 3 && (m = r, T = r), I = !0, E <= m * 2 ? I = !1 : E <= m * 2 + T ? (w = E / (2 * m + T), m *= w, T *= w) : (x = Math.floor((E + T) / (m + T)), N = (E - x * m) / (x - 1), K = (E - (x + 1) * m) / x, T = K <= 0 || Math.abs(T - N) < Math.abs(T - K) ? N : K), I && (s === 3 ? this.ctx.setLineDash([0, m + T]) : this.ctx.setLineDash([m, T])), s === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = r) : this.ctx.lineWidth = r * 2 + 1.1, this.ctx.strokeStyle = MA(t), this.ctx.stroke(), this.ctx.setLineDash([]), s === 2 && (be(o[0]) && (H = o[3], p = o[0], this.ctx.beginPath(), this.formatPath([new k(H.end.x, H.end.y), new k(p.start.x, p.start.y)]), this.ctx.stroke()), be(o[1]) && (H = o[1], p = o[2], this.ctx.beginPath(), this.formatPath([new k(H.end.x, H.end.y), new k(p.start.x, p.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
17269
+ return this.ctx.save(), i = dU(a, n), o = Mo(a, n), s === 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 ? E = Math.abs(c - f) : E = Math.abs(l - h), this.ctx.beginPath(), s === 3 ? this.formatPath(i) : this.formatPath(o.slice(0, 2)), m = r < 3 ? r * 3 : r * 2, T = r < 3 ? r * 2 : r, s === 3 && (m = r, T = r), I = !0, E <= m * 2 ? I = !1 : E <= m * 2 + T ? (w = E / (2 * m + T), m *= w, T *= w) : (y = Math.floor((E + T) / (m + T)), N = (E - y * m) / (y - 1), R = (E - (y + 1) * m) / y, T = R <= 0 || Math.abs(T - N) < Math.abs(T - R) ? N : R), I && (s === 3 ? this.ctx.setLineDash([0, m + T]) : this.ctx.setLineDash([m, T])), s === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = r) : this.ctx.lineWidth = r * 2 + 1.1, this.ctx.strokeStyle = MA(t), this.ctx.stroke(), this.ctx.setLineDash([]), s === 2 && (be(o[0]) && (H = o[3], p = o[0], this.ctx.beginPath(), this.formatPath([new K(H.end.x, H.end.y), new K(p.start.x, p.start.y)]), this.ctx.stroke()), be(o[1]) && (H = o[1], p = o[2], this.ctx.beginPath(), this.formatPath([new K(H.end.x, H.end.y), new K(p.start.x, p.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
17270
17270
  2
17271
17271
  /*return*/
17272
17272
  ];
@@ -17383,9 +17383,9 @@ var TA = function(A, e, t, r, n) {
17383
17383
  typeof window < "u" && C0.setContext(window);
17384
17384
  var LU = function(A, e) {
17385
17385
  return ne(void 0, void 0, void 0, function() {
17386
- var t, r, n, a, s, i, o, c, l, f, h, E, m, T, I, w, x, N, K, H, O, p, O, R, P, aA, hA, wA, Z, uA, pA, EA, vA, te, HA, jA, re, RA, YA, XA;
17387
- return ZA(this, function(v) {
17388
- switch (v.label) {
17386
+ var t, r, n, a, s, i, o, c, l, f, h, E, m, T, I, w, y, N, R, H, O, p, O, M, G, aA, hA, wA, Z, uA, pA, EA, vA, te, HA, jA, re, RA, YA, XA;
17387
+ return ZA(this, function(x) {
17388
+ switch (x.label) {
17389
17389
  case 0:
17390
17390
  if (!A || typeof A != "object")
17391
17391
  return [2, Promise.reject("Invalid element provided as first argument")];
@@ -17394,8 +17394,8 @@ var LU = function(A, e) {
17394
17394
  if (r = t.defaultView, !r)
17395
17395
  throw new Error("Document is not attached to a Window");
17396
17396
  return n = {
17397
- allowTaint: (R = e.allowTaint) !== null && R !== void 0 ? R : !1,
17398
- imageTimeout: (P = e.imageTimeout) !== null && P !== void 0 ? P : 15e3,
17397
+ allowTaint: (M = e.allowTaint) !== null && M !== void 0 ? M : !1,
17398
+ imageTimeout: (G = e.imageTimeout) !== null && G !== void 0 ? G : 15e3,
17399
17399
  proxy: e.proxy,
17400
17400
  useCORS: (aA = e.useCORS) !== null && aA !== void 0 ? aA : !1
17401
17401
  }, a = Rs({ logging: (hA = e.logging) !== null && hA !== void 0 ? hA : !0, cache: e.cache }, n), s = {
@@ -17411,21 +17411,21 @@ var LU = function(A, e) {
17411
17411
  copyStyles: c
17412
17412
  }, o.logger.debug("Starting document clone with size " + i.width + "x" + i.height + " scrolled to " + -i.left + "," + -i.top), f = new Do(o, A, l), h = f.clonedReferenceElement, h ? [4, f.toIFrame(t, i)] : [2, Promise.reject("Unable to find element in cloned iframe")];
17413
17413
  case 1:
17414
- return E = v.sent(), m = Pi(h) || HT(h) ? c1(h.ownerDocument) : Ca(o, h), T = m.width, I = m.height, w = m.left, x = m.top, N = HU(o, h, e.backgroundColor), K = {
17414
+ return E = x.sent(), m = Pi(h) || HT(h) ? c1(h.ownerDocument) : Ca(o, h), T = m.width, I = m.height, w = m.left, y = m.top, N = HU(o, h, e.backgroundColor), R = {
17415
17415
  canvas: e.canvas,
17416
17416
  backgroundColor: N,
17417
17417
  scale: (HA = (te = e.scale) !== null && te !== void 0 ? te : r.devicePixelRatio) !== null && HA !== void 0 ? HA : 1,
17418
17418
  x: ((jA = e.x) !== null && jA !== void 0 ? jA : 0) + w,
17419
- y: ((re = e.y) !== null && re !== void 0 ? re : 0) + x,
17419
+ y: ((re = e.y) !== null && re !== void 0 ? re : 0) + y,
17420
17420
  width: (RA = e.width) !== null && RA !== void 0 ? RA : Math.ceil(T),
17421
17421
  height: (YA = e.height) !== null && YA !== void 0 ? YA : Math.ceil(I)
17422
- }, c ? (o.logger.debug("Document cloned, using foreign object rendering"), O = new IU(o, K), [4, O.render(h)]) : [3, 3];
17422
+ }, c ? (o.logger.debug("Document cloned, using foreign object rendering"), O = new IU(o, R), [4, O.render(h)]) : [3, 3];
17423
17423
  case 2:
17424
- return H = v.sent(), [3, 5];
17424
+ return H = x.sent(), [3, 5];
17425
17425
  case 3:
17426
- return o.logger.debug("Document cloned, element located at " + w + "," + x + " with size " + T + "x" + I + " using computed rendering"), o.logger.debug("Starting DOM parsing"), p = f0(o, h), N === p.styles.backgroundColor && (p.styles.backgroundColor = We.TRANSPARENT), o.logger.debug("Starting renderer for element at " + K.x + "," + K.y + " with size " + K.width + "x" + K.height), O = new bU(o, K), [4, O.render(p)];
17426
+ return o.logger.debug("Document cloned, element located at " + w + "," + y + " with size " + T + "x" + I + " using computed rendering"), o.logger.debug("Starting DOM parsing"), p = f0(o, h), N === p.styles.backgroundColor && (p.styles.backgroundColor = We.TRANSPARENT), o.logger.debug("Starting renderer for element at " + R.x + "," + R.y + " with size " + R.width + "x" + R.height), O = new bU(o, R), [4, O.render(p)];
17427
17427
  case 4:
17428
- H = v.sent(), v.label = 5;
17428
+ H = x.sent(), x.label = 5;
17429
17429
  case 5:
17430
17430
  return (!((XA = e.removeContainer) !== null && XA !== void 0) || XA) && (Do.destroy(E) || o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), o.logger.debug("Finished rendering"), [2, H];
17431
17431
  }
@@ -17435,7 +17435,7 @@ var LU = function(A, e) {
17435
17435
  var r = e.ownerDocument, n = r.documentElement ? Hr(A, getComputedStyle(r.documentElement).backgroundColor) : We.TRANSPARENT, a = r.body ? Hr(A, getComputedStyle(r.body).backgroundColor) : We.TRANSPARENT, s = typeof t == "string" ? Hr(A, t) : t === null ? We.TRANSPARENT : 4294967295;
17436
17436
  return e === r.documentElement ? ct(n) ? ct(a) ? s : a : n : s;
17437
17437
  };
17438
- const NU = `.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-cdc31839]:focus{outline:none}[contenteditable=true][data-v-cdc31839]{outline:none}textarea[data-v-cdc31839]{resize:none;border:none;outline:none;background:transparent}.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-298a9b70]{border:1px solid #ccc}.custom-checkbox[data-v-298a9b70]{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-298a9b70]:checked{border-color:#3b82f6;background-color:#3b82f6}.custom-checkbox[data-v-298a9b70]:checked:after{content:"✓";color:#fff;font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}/*!
17438
+ const NU = `.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-bdda6cde]:focus{outline:none}[contenteditable=true][data-v-bdda6cde]{outline:none}textarea[data-v-bdda6cde]{resize:none;border:none;outline:none;background:transparent}.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-1499ca4f]{border:1px solid #ccc}.custom-checkbox[data-v-1499ca4f]{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-1499ca4f]:checked{border-color:#3b82f6;background-color:#3b82f6}.custom-checkbox[data-v-1499ca4f]:checked:after{content:"✓";color:#fff;font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}/*!
17439
17439
  * Cropper.js v1.6.2
17440
17440
  * https://fengyuanchen.github.io/cropperjs
17441
17441
  *
@@ -17483,16 +17483,16 @@ const NU = `.gp-message[data-v-a234b03c]{z-index:999999;transition:all .3s ease;
17483
17483
  return `${o}, ${c}, ${l}`;
17484
17484
  }
17485
17485
  const n = () => {
17486
- var T;
17486
+ var y;
17487
17487
  const s = e.value;
17488
17488
  if (!s) return;
17489
- const i = s.contentDocument || ((T = s.contentWindow) == null ? void 0 : T.document);
17489
+ const i = s.contentDocument || ((y = s.contentWindow) == null ? void 0 : y.document);
17490
17490
  if (!i) return;
17491
17491
  i.open(), i.write("<!DOCTYPE html><html><head></head><body></body></html>"), i.close();
17492
17492
  const o = i.head;
17493
- A.cssFiles.forEach((I) => {
17494
- const w = i.createElement("link");
17495
- w.rel = "stylesheet", w.href = I + "?t=" + (/* @__PURE__ */ new Date()).getTime(), o.appendChild(w);
17493
+ A.cssFiles.forEach((N) => {
17494
+ const R = i.createElement("link");
17495
+ R.rel = "stylesheet", R.href = N + "?t=" + (/* @__PURE__ */ new Date()).getTime(), o.appendChild(R);
17496
17496
  });
17497
17497
  const c = i.createElement("style");
17498
17498
  c.innerHTML = `
@@ -17504,17 +17504,23 @@ const NU = `.gp-message[data-v-a234b03c]{z-index:999999;transition:all .3s ease;
17504
17504
  `, o.appendChild(c);
17505
17505
  const l = i.createElement("style");
17506
17506
  l.innerHTML = NU, o.appendChild(l);
17507
- const f = i.createElement("script");
17508
- f.src = "/spa/topic/js/jquery-3.6.0.min.js", f.async = !1, o.appendChild(f);
17507
+ const f = i.createElement("link");
17508
+ f.rel = "stylesheet", f.href = "/spa/topic/photoswipe/photoswipe.css", o.appendChild(f);
17509
17509
  const h = i.createElement("script");
17510
- h.src = "/spa/topic/js/swiper-bundle.min.js", h.async = !1, o.appendChild(h);
17510
+ h.src = "/spa/topic/js/jquery-3.6.0.min.js", h.async = !1, o.appendChild(h);
17511
17511
  const E = i.createElement("script");
17512
- E.src = "/spa/topic/js/index.js?t=" + (/* @__PURE__ */ new Date()).getTime(), E.async = !1, o.appendChild(E);
17513
- const m = i.body;
17514
- m.innerHTML = A.htmlContent, A.jsFiles.forEach((I) => {
17515
- const w = i.createElement("script");
17516
- w.src = I + "?t=" + (/* @__PURE__ */ new Date()).getTime(), w.async = !1, m.appendChild(w);
17517
- }), t.value = m, Xi(() => {
17512
+ E.src = "/spa/topic/js/swiper-bundle.min.js", E.async = !1, o.appendChild(E);
17513
+ const m = i.createElement("script");
17514
+ m.src = "/spa/topic/js/index.js?t=" + (/* @__PURE__ */ new Date()).getTime(), m.async = !1, o.appendChild(m);
17515
+ const T = i.createElement("script");
17516
+ T.src = "/spa/topic/photoswipe/photoswipe.esm.min.js", T.type = "module", T.async = !1, o.appendChild(T);
17517
+ const I = i.createElement("script");
17518
+ I.src = "/spa/topic/js/photoswipe.js?t=" + (/* @__PURE__ */ new Date()).getTime(), I.type = "module", I.async = !1, o.appendChild(I);
17519
+ const w = i.body;
17520
+ w.innerHTML = A.htmlContent, A.jsFiles.forEach((N) => {
17521
+ const R = i.createElement("script");
17522
+ R.src = N + "?t=" + (/* @__PURE__ */ new Date()).getTime(), R.async = !1, w.appendChild(R);
17523
+ }), t.value = w, Xi(() => {
17518
17524
  });
17519
17525
  };
17520
17526
  ae(t, (s) => {
@@ -17571,14 +17577,14 @@ const NU = `.gp-message[data-v-a234b03c]{z-index:999999;transition:all .3s ease;
17571
17577
  }
17572
17578
  });
17573
17579
  function OU(A, e, t, r, n, a) {
17574
- return M(), Y("div", null, [
17580
+ return k(), Y("div", null, [
17575
17581
  b("iframe", {
17576
17582
  ref: "iframeRef",
17577
17583
  style: hs([{ "min-height": "600px" }, A.iframeStyle])
17578
17584
  }, null, 4)
17579
17585
  ]);
17580
17586
  }
17581
- const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fdb"]]), RU = { class: "flex gp-dsigner" }, MU = {
17587
+ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-ebcf2132"]]), RU = { class: "flex gp-dsigner" }, MU = {
17582
17588
  key: 0,
17583
17589
  class: "flex items-center justify-between border-b"
17584
17590
  }, kU = { class: "text-lg font-bold p-2" }, PU = { class: "text-sm font-thin text-gray-500" }, KU = { class: "flex-1 overflow-auto" }, GU = {
@@ -17620,162 +17626,162 @@ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fd
17620
17626
  const c = j(""), l = j("#3574e6"), f = j(""), h = j(r.mode);
17621
17627
  ae(
17622
17628
  () => r.template,
17623
- (Q) => {
17624
- s.value = Q;
17629
+ (F) => {
17630
+ s.value = F;
17625
17631
  },
17626
17632
  { immediate: !0 }
17627
17633
  ), ae(
17628
17634
  () => s.value,
17629
- (Q) => {
17630
- Q && (i.value = Z(Q));
17635
+ (F) => {
17636
+ F && (i.value = Z(F));
17631
17637
  },
17632
17638
  { immediate: !0 }
17633
17639
  ), ae(
17634
17640
  () => r.css,
17635
- (Q) => {
17636
- Q.forEach((y) => {
17637
- if (document.querySelector(`link[href="${y}"]`) || document.querySelector(`link[id="${y}"]`)) return;
17641
+ (F) => {
17642
+ F.forEach((Q) => {
17643
+ if (document.querySelector(`link[href="${Q}"]`) || document.querySelector(`link[id="${Q}"]`)) return;
17638
17644
  const D = document.createElement("link");
17639
- D.rel = "stylesheet", D.href = y + "?t=" + (/* @__PURE__ */ new Date()).getTime(), D.id = y, document.head.appendChild(D);
17645
+ D.rel = "stylesheet", D.href = Q + "?t=" + (/* @__PURE__ */ new Date()).getTime(), D.id = Q, document.head.appendChild(D);
17640
17646
  });
17641
17647
  },
17642
17648
  { immediate: !0 }
17643
17649
  ), ae(
17644
17650
  () => r.js,
17645
- (Q) => {
17646
- !Q || Q.length === 0 || Q.forEach((y) => {
17647
- if (document.querySelector(`script[src="${y}"]`) || document.querySelector(`script[id="${y}"]`)) return;
17651
+ (F) => {
17652
+ !F || F.length === 0 || F.forEach((Q) => {
17653
+ if (document.querySelector(`script[src="${Q}"]`) || document.querySelector(`script[id="${Q}"]`)) return;
17648
17654
  const D = document.createElement("script");
17649
- D.src = y + "?t=" + (/* @__PURE__ */ new Date()).getTime(), D.id = y, document.body.appendChild(D);
17655
+ D.src = Q + "?t=" + (/* @__PURE__ */ new Date()).getTime(), D.id = Q, document.body.appendChild(D);
17650
17656
  });
17651
17657
  },
17652
17658
  { immediate: !0 }
17653
17659
  ), ae(
17654
17660
  () => i.value,
17655
- (Q) => {
17656
- Q && n("update:element", Q);
17661
+ (F) => {
17662
+ F && n("update:element", F);
17657
17663
  },
17658
17664
  { immediate: !0 }
17659
17665
  ), ae(
17660
17666
  () => c.value,
17661
- (Q) => {
17667
+ (F) => {
17662
17668
  if (document && document.documentElement) {
17663
- const y = getComputedStyle(document.documentElement).getPropertyValue(
17669
+ const Q = getComputedStyle(document.documentElement).getPropertyValue(
17664
17670
  "--main-color"
17665
17671
  ), D = getComputedStyle(document.documentElement).getPropertyValue(
17666
17672
  "--gp-designer-theme-color"
17667
17673
  );
17668
- l.value = D || y;
17674
+ l.value = D || Q;
17669
17675
  }
17670
- n("update:modelValue", Q);
17676
+ n("update:modelValue", F);
17671
17677
  },
17672
17678
  { immediate: !0 }
17673
17679
  );
17674
- const E = j(), m = j(), T = j(), I = j(), w = j(), x = j(), N = j(""), K = j(r.mode === "design");
17680
+ const E = j(), m = j(), T = j(), I = j(), w = j(), y = j(), N = j(""), R = j(r.mode === "design");
17675
17681
  ae(
17676
17682
  () => r.rules,
17677
- (Q) => {
17678
- a.value = Q, s.value && (i.value = Z(s.value));
17683
+ (F) => {
17684
+ a.value = F, s.value && (i.value = Z(s.value));
17679
17685
  },
17680
17686
  { immediate: !0 }
17681
17687
  );
17682
- function H(Q = void 0) {
17683
- I.value && I.value.generateCover(Q);
17688
+ function H(F = void 0) {
17689
+ I.value && I.value.generateCover(F);
17684
17690
  }
17685
- function p(Q) {
17686
- var y, D, V, iA, oA, NA, dA, zA, eA, he, $A;
17687
- w.value = Q, Q.type === X.Text && Q.rule.allowWrap && (St.value = !0, pe.value = ($A = (he = (eA = (zA = (dA = (NA = (oA = (iA = (V = (D = (y = Q.text) == null ? void 0 : y.replace(/<br>/g, `
17691
+ function p(F) {
17692
+ var Q, D, P, iA, oA, NA, dA, zA, eA, he, $A;
17693
+ w.value = F, F.type === X.Text && F.rule.allowWrap && (St.value = !0, pe.value = ($A = (he = (eA = (zA = (dA = (NA = (oA = (iA = (P = (D = (Q = F.text) == null ? void 0 : Q.replace(/<br>/g, `
17688
17694
  `)) == null ? void 0 : D.replace(/<br\/>/g, `
17689
- `)) == null ? void 0 : V.replace(/<br \/>/g, `
17695
+ `)) == null ? void 0 : P.replace(/<br \/>/g, `
17690
17696
  `)) == null ? void 0 : iA.replace(/<br \s*\/>/g, `
17691
17697
  `)) == null ? void 0 : oA.replace(/<br\s*\/>/g, `
17692
17698
  `)) == null ? void 0 : NA.replace(/&nbsp;/g, " ")) == null ? void 0 : dA.replace(/&lt;/g, "<")) == null ? void 0 : zA.replace(/&gt;/g, ">")) == null ? void 0 : eA.replace(/&amp;/g, "&")) == null ? void 0 : he.replace(/&quot;/g, '"')) == null ? void 0 : $A.replace(/&apos;/g, "'"));
17693
17699
  }
17694
- function O(Q, y = "") {
17695
- if (y) {
17696
- const D = R(i.value, y);
17697
- D ? x.value = D : x.value = Q;
17700
+ function O(F, Q = "") {
17701
+ if (Q) {
17702
+ const D = M(i.value, Q);
17703
+ D ? y.value = D : y.value = F;
17698
17704
  } else
17699
- x.value = Q;
17700
- }
17701
- function R(Q, y) {
17702
- if (Q.xpath === y)
17703
- return Q;
17704
- if (Q.children && Q.children.length)
17705
- for (const D of Q.children) {
17706
- const V = R(D, y);
17707
- if (V)
17708
- return V;
17705
+ y.value = F;
17706
+ }
17707
+ function M(F, Q) {
17708
+ if (F.xpath === Q)
17709
+ return F;
17710
+ if (F.children && F.children.length)
17711
+ for (const D of F.children) {
17712
+ const P = M(D, Q);
17713
+ if (P)
17714
+ return P;
17709
17715
  }
17710
17716
  }
17711
- function P(Q, y) {
17712
- var D, V;
17713
- return Q.tag === y.tag && // 标签一致
17714
- ((D = Q.children) == null ? void 0 : D.length) === ((V = y.children) == null ? void 0 : V.length);
17717
+ function G(F, Q) {
17718
+ var D, P;
17719
+ return F.tag === Q.tag && // 标签一致
17720
+ ((D = F.children) == null ? void 0 : D.length) === ((P = Q.children) == null ? void 0 : P.length);
17715
17721
  }
17716
- function aA(Q) {
17717
- if (w.value.xpath == Q.xpath) {
17722
+ function aA(F) {
17723
+ if (w.value.xpath == F.xpath) {
17718
17724
  if (w.value) {
17719
- if (Q.type === X.Block) {
17720
- var y = !0;
17721
- const D = R(
17725
+ if (F.type === X.Block) {
17726
+ var Q = !0;
17727
+ const D = M(
17722
17728
  i.value,
17723
17729
  w.value.parentxpath || ""
17724
17730
  );
17725
- if (D && D.children && D.children.forEach((V) => {
17726
- if (V.tag != w.value.tag || // 检查标签一致
17727
- !P(V, w.value)) {
17728
- y = !1;
17731
+ if (D && D.children && D.children.forEach((P) => {
17732
+ if (P.tag != w.value.tag || // 检查标签一致
17733
+ !G(P, w.value)) {
17734
+ Q = !1;
17729
17735
  return;
17730
17736
  }
17731
- }), !y) {
17737
+ }), !Q) {
17732
17738
  AA.error("同级结构不一致,错误配置!");
17733
17739
  return;
17734
17740
  }
17735
17741
  }
17736
- if (w.value.rule = Q.rule, w.value.type = Q.type, w.value.type === X.Block) {
17737
- const D = R(
17742
+ if (w.value.rule = F.rule, w.value.type = F.type, w.value.type === X.Block) {
17743
+ const D = M(
17738
17744
  i.value,
17739
17745
  w.value.parentxpath || ""
17740
17746
  );
17741
- D && D.children && (D.children.forEach((V) => {
17742
- if (V.tag != w.value.tag || // 检查标签一致
17743
- !P(V, w.value)) {
17747
+ D && D.children && (D.children.forEach((P) => {
17748
+ if (P.tag != w.value.tag || // 检查标签一致
17749
+ !G(P, w.value)) {
17744
17750
  AA.error("同级结构不一致,无法配置为块类型");
17745
17751
  return;
17746
17752
  }
17747
- }), D.children.forEach((V) => {
17748
- V.tag === w.value.tag && (V.rule = Q.rule, V.type = Q.type);
17753
+ }), D.children.forEach((P) => {
17754
+ P.tag === w.value.tag && (P.rule = F.rule, P.type = F.type);
17749
17755
  }));
17750
17756
  }
17751
17757
  }
17752
17758
  f.value = (/* @__PURE__ */ new Date()).getTime().toString(), AA.success("保存成功"), n("update:element", i.value);
17753
17759
  }
17754
17760
  }
17755
- function hA(Q) {
17756
- const y = R(i.value, Q.xpath || "");
17757
- y && (y.rule = Q.rule, y.type = Q.type, y.children && Q.children && y.children.forEach((D) => {
17758
- const V = Q.children.find((iA) => iA.xpath === D.xpath);
17759
- V && (D.rule = V.rule, D.type = V.type);
17761
+ function hA(F) {
17762
+ const Q = M(i.value, F.xpath || "");
17763
+ Q && (Q.rule = F.rule, Q.type = F.type, Q.children && F.children && Q.children.forEach((D) => {
17764
+ const P = F.children.find((iA) => iA.xpath === D.xpath);
17765
+ P && (D.rule = P.rule, D.type = P.type);
17760
17766
  })), AA.success("操作成功"), f.value = (/* @__PURE__ */ new Date()).getTime().toString(), n("update:element", i.value);
17761
17767
  }
17762
- function wA(Q) {
17763
- c.value = Q;
17768
+ function wA(F) {
17769
+ c.value = F;
17764
17770
  }
17765
- function Z(Q) {
17766
- o = Uu(Q);
17767
- const y = o("body").children().toArray().map((V) => uA(o(V)));
17771
+ function Z(F) {
17772
+ o = Uu(F);
17773
+ const Q = o("body").children().toArray().map((P) => uA(o(P)));
17768
17774
  c.value = o("body").html() || "";
17769
- const D = y[0];
17775
+ const D = Q[0];
17770
17776
  if (D) {
17771
- let V = function(oA, NA, dA) {
17777
+ let P = function(oA, NA, dA) {
17772
17778
  var he;
17773
17779
  const zA = oA.xpath.replace(
17774
17780
  NA.xpath,
17775
17781
  dA.xpath
17776
17782
  ), eA = (he = a.value) == null ? void 0 : he.find(($A) => $A.xpath === zA);
17777
17783
  eA && (oA.rule = eA.rule, oA.type = eA.type), oA.children && oA.children.length > 0 && oA.children.forEach(($A) => {
17778
- V($A, NA, dA);
17784
+ P($A, NA, dA);
17779
17785
  });
17780
17786
  }, iA = function(oA) {
17781
17787
  if (oA.children && oA.children.length > 0) {
@@ -17785,7 +17791,7 @@ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fd
17785
17791
  NA && oA.children.forEach((dA) => {
17786
17792
  var zA, eA, he;
17787
17793
  dA.tag === NA.tag && (dA.rule = NA.rule, dA.type = NA.type, dA.attrs.class = (he = (eA = (zA = dA.attrs) == null ? void 0 : zA.class) == null ? void 0 : eA.replace(/pc:basis-\d\/\d/g, "")) == null ? void 0 : he.replace(/basis-\d\/\d/g, ""), dA.children && dA.children.length > 0 && dA.children.forEach(($A) => {
17788
- V($A, dA, NA);
17794
+ P($A, dA, NA);
17789
17795
  }));
17790
17796
  }), oA.children.forEach((dA) => {
17791
17797
  iA(dA);
@@ -17795,16 +17801,16 @@ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fd
17795
17801
  iA(D);
17796
17802
  }
17797
17803
  if (document && document.documentElement) {
17798
- const V = getComputedStyle(document.documentElement).getPropertyValue(
17804
+ const P = getComputedStyle(document.documentElement).getPropertyValue(
17799
17805
  "--main-color"
17800
17806
  ), iA = getComputedStyle(document.documentElement).getPropertyValue(
17801
17807
  "--gp-designer-theme-color"
17802
17808
  );
17803
- l.value = iA || V;
17809
+ l.value = iA || P;
17804
17810
  }
17805
17811
  return D;
17806
17812
  }
17807
- function uA(Q, y = "") {
17813
+ function uA(F, Q = "") {
17808
17814
  var dA, zA;
17809
17815
  function D(eA) {
17810
17816
  if (!eA || !eA[0]) return "";
@@ -17816,56 +17822,56 @@ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fd
17816
17822
  }
17817
17823
  return "/html/" + he.join("/");
17818
17824
  }
17819
- const V = D(Q).replace("/html/body[1]", ""), iA = Q.children().toArray().map((eA) => uA(o(eA), V)).filter((eA) => eA.tag !== "br");
17820
- let oA = (dA = a.value) == null ? void 0 : dA.find((eA) => eA.xpath === V), NA = Q.contents().not(Q.children()).text().trim();
17821
- return oA && ((zA = oA.rule) != null && zA.allowWrap) && (NA = Q.html()), {
17822
- tag: Q[0].tagName,
17825
+ const P = D(F).replace("/html/body[1]", ""), iA = F.children().toArray().map((eA) => uA(o(eA), P)).filter((eA) => eA.tag !== "br");
17826
+ let oA = (dA = a.value) == null ? void 0 : dA.find((eA) => eA.xpath === P), NA = F.contents().not(F.children()).text().trim();
17827
+ return oA && ((zA = oA.rule) != null && zA.allowWrap) && (NA = F.html()), {
17828
+ tag: F[0].tagName,
17823
17829
  text: NA,
17824
- attrs: Q[0].attribs,
17830
+ attrs: F[0].attribs,
17825
17831
  children: iA,
17826
- xpath: V,
17827
- parentxpath: y,
17832
+ xpath: P,
17833
+ parentxpath: Q,
17828
17834
  type: (oA == null ? void 0 : oA.type) || X.None,
17829
17835
  rule: (oA == null ? void 0 : oA.rule) || {}
17830
17836
  };
17831
17837
  }
17832
- function pA(Q) {
17833
- const y = R(i.value, Q.element.xpath);
17834
- if (y) {
17835
- const D = Ko(y);
17836
- D.editText = Q.newText;
17838
+ function pA(F) {
17839
+ const Q = M(i.value, F.element.xpath);
17840
+ if (Q) {
17841
+ const D = Ko(Q);
17842
+ D.editText = F.newText;
17837
17843
  }
17838
17844
  }
17839
- function EA(Q, y = "") {
17840
- function D(V, iA) {
17845
+ function EA(F, Q = "") {
17846
+ function D(P, iA) {
17841
17847
  var dA;
17842
- const NA = (iA ? ((dA = R(i.value, iA)) == null ? void 0 : dA.children) || [] : [i.value]).filter((zA) => zA.tag === V.tag).indexOf(V) + 1;
17843
- return `${iA}/${V.tag}[${NA}]`;
17848
+ const NA = (iA ? ((dA = M(i.value, iA)) == null ? void 0 : dA.children) || [] : [i.value]).filter((zA) => zA.tag === P.tag).indexOf(P) + 1;
17849
+ return `${iA}/${P.tag}[${NA}]`;
17844
17850
  }
17845
- Q.xpath = D(Q, y), Q.parentxpath = y, (Q.children || []).forEach(
17846
- (V) => EA(V, Q.xpath)
17851
+ F.xpath = D(F, Q), F.parentxpath = Q, (F.children || []).forEach(
17852
+ (P) => EA(P, F.xpath)
17847
17853
  );
17848
17854
  }
17849
17855
  function vA({
17850
- action: Q,
17851
- element: y,
17856
+ action: F,
17857
+ element: Q,
17852
17858
  newBlock: D
17853
17859
  }) {
17854
- const V = R(
17860
+ const P = M(
17855
17861
  i.value,
17856
- y.parentxpath || ""
17862
+ Q.parentxpath || ""
17857
17863
  );
17858
- if (!V || !V.children)
17864
+ if (!P || !P.children)
17859
17865
  return;
17860
- const iA = V.children.findIndex(
17861
- (eA) => eA === y
17866
+ const iA = P.children.findIndex(
17867
+ (eA) => eA === Q
17862
17868
  );
17863
17869
  if (iA === -1) {
17864
17870
  AA.error("未找到元素");
17865
17871
  return;
17866
17872
  }
17867
- const oA = V.children.length, { minBlock: NA, maxBlock: dA } = y.rule;
17868
- if ((Q === "add" || Q === "copy") && oA >= (dA || 1 / 0)) {
17873
+ const oA = P.children.length, { minBlock: NA, maxBlock: dA } = Q.rule;
17874
+ if ((F === "add" || F === "copy") && oA >= (dA || 1 / 0)) {
17869
17875
  N.value = `无法添加更多块。最大块数量为 ${dA}`, AA.error(N.value);
17870
17876
  return;
17871
17877
  }
@@ -17874,14 +17880,14 @@ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fd
17874
17880
  zA(he);
17875
17881
  });
17876
17882
  }
17877
- switch (Q) {
17883
+ switch (F) {
17878
17884
  case "add":
17879
17885
  if (D) {
17880
17886
  const eA = {
17881
17887
  ...D,
17882
17888
  children: JSON.parse(JSON.stringify(D.children))
17883
17889
  };
17884
- zA(eA), V.children.splice(iA + 1, 0, eA), AA.success("添加成功");
17890
+ zA(eA), P.children.splice(iA + 1, 0, eA), AA.success("添加成功");
17885
17891
  }
17886
17892
  break;
17887
17893
  case "copy":
@@ -17890,20 +17896,20 @@ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fd
17890
17896
  ...D,
17891
17897
  children: JSON.parse(JSON.stringify(D.children))
17892
17898
  };
17893
- zA(eA), V.children.splice(iA + 1, 0, eA), AA.success("复制成功");
17899
+ zA(eA), P.children.splice(iA + 1, 0, eA), AA.success("复制成功");
17894
17900
  }
17895
17901
  break;
17896
17902
  case "moveUp":
17897
17903
  if (iA > 0) {
17898
- const [eA] = V.children.splice(iA, 1);
17899
- V.children.splice(iA - 1, 0, eA), AA.success("前移成功");
17904
+ const [eA] = P.children.splice(iA, 1);
17905
+ P.children.splice(iA - 1, 0, eA), AA.success("前移成功");
17900
17906
  } else
17901
17907
  AA.error("已经是第一个块,无法前移");
17902
17908
  break;
17903
17909
  case "moveDown":
17904
- if (iA < V.children.length - 1) {
17905
- const [eA] = V.children.splice(iA, 1);
17906
- V.children.splice(iA + 1, 0, eA), AA.success("后移成功");
17910
+ if (iA < P.children.length - 1) {
17911
+ const [eA] = P.children.splice(iA, 1);
17912
+ P.children.splice(iA + 1, 0, eA), AA.success("后移成功");
17907
17913
  } else
17908
17914
  AA.error("已经是最后一个块,无法后移");
17909
17915
  break;
@@ -17912,65 +17918,65 @@ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fd
17912
17918
  N.value = `无法删除更多块。最小块数量为 ${NA}`, AA.error(N.value);
17913
17919
  return;
17914
17920
  }
17915
- V.children.splice(iA, 1), AA.success("删除成功");
17921
+ P.children.splice(iA, 1), AA.success("删除成功");
17916
17922
  break;
17917
17923
  }
17918
17924
  N.value = "", EA(i.value);
17919
17925
  }
17920
- function te(Q, y) {
17921
- let D = y.attrs.class.replace(/icon-\S+/g, `icon-${Q}`);
17922
- y.attrs.class = D;
17926
+ function te(F, Q) {
17927
+ let D = Q.attrs.class.replace(/icon-\S+/g, `icon-${F}`);
17928
+ Q.attrs.class = D;
17923
17929
  }
17924
- function HA(Q) {
17925
- const y = Q.file, D = R(i.value, Q.element.xpath);
17930
+ function HA(F) {
17931
+ const Q = F.file, D = M(i.value, F.element.xpath);
17926
17932
  if (r.uploadByFile)
17927
- r.uploadByFile(y).then((V) => {
17928
- V.success && (D.attrs.src = V.file.url, f.value = (/* @__PURE__ */ new Date()).getTime().toString());
17933
+ r.uploadByFile(Q).then((P) => {
17934
+ P.success && (D.attrs.src = P.file.url, D.rule.preview ? D.attrs["data-preview"] = P.file.previewUrl || P.file.url : delete D.attrs["data-preview"], f.value = (/* @__PURE__ */ new Date()).getTime().toString());
17929
17935
  });
17930
17936
  else {
17931
- D.attrs.alt = y.name;
17932
- const V = URL.createObjectURL(y);
17933
- D.attrs.src = V, f.value = (/* @__PURE__ */ new Date()).getTime().toString();
17937
+ D.attrs.alt = Q.name;
17938
+ const P = URL.createObjectURL(Q);
17939
+ D.attrs.src = P, D.rule.preview ? D.attrs["data-preview"] = P : delete D.attrs["data-preview"], f.value = (/* @__PURE__ */ new Date()).getTime().toString();
17934
17940
  }
17935
17941
  }
17936
- function jA(Q) {
17937
- const { icon: y } = Q, D = R(i.value, Q.element.xpath);
17938
- let V = D.attrs.class.replace(/icon-\S+/g, `icon-${y}`);
17939
- D.attrs.class = V, f.value = (/* @__PURE__ */ new Date()).getTime().toString();
17942
+ function jA(F) {
17943
+ const { icon: Q } = F, D = M(i.value, F.element.xpath);
17944
+ let P = D.attrs.class.replace(/icon-\S+/g, `icon-${Q}`);
17945
+ D.attrs.class = P, f.value = (/* @__PURE__ */ new Date()).getTime().toString();
17940
17946
  }
17941
- const re = (Q) => Q.type.startsWith("image/") ? !0 : (AA.error("只能上传图片文件"), !1), RA = j({});
17942
- function YA(Q, y) {
17943
- if (!Q || Q.length === 0)
17947
+ const re = (F) => F.type.startsWith("image/") ? !0 : (AA.error("只能上传图片文件"), !1), RA = j({});
17948
+ function YA(F, Q) {
17949
+ if (!F || F.length === 0)
17944
17950
  return;
17945
- const D = Q[0];
17946
- if (y.rule && (y.rule.minImageWidth || y.rule.maxImageHeight)) {
17947
- if (y.rule.minImageWidth && D.width < y.rule.minImageWidth) {
17948
- AA.error(`图片宽度不能小于 ${y.rule.minImageWidth}px`);
17951
+ const D = F[0];
17952
+ if (Q.rule && (Q.rule.minImageWidth || Q.rule.maxImageHeight)) {
17953
+ if (Q.rule.minImageWidth && D.width < Q.rule.minImageWidth) {
17954
+ AA.error(`图片宽度不能小于 ${Q.rule.minImageWidth}px`);
17949
17955
  return;
17950
17956
  }
17951
- if (y.rule.maxImageHeight && D.height < y.rule.maxImageHeight) {
17952
- AA.error(`图片高度不能小于 ${y.rule.maxImageHeight}px`);
17957
+ if (Q.rule.maxImageHeight && D.height < Q.rule.maxImageHeight) {
17958
+ AA.error(`图片高度不能小于 ${Q.rule.maxImageHeight}px`);
17953
17959
  return;
17954
17960
  }
17955
17961
  }
17956
- y.rule.minImageWidth && y.rule.maxImageHeight ? (RA.value.width = y.rule.minImageWidth, RA.value.height = y.rule.maxImageHeight, RA.value.aspectRatio = y.rule.minImageWidth / y.rule.maxImageHeight) : RA.value = {}, D && (y.rule.crop ? (D.thumbUrl, E.value.handleOpenCropper(
17962
+ Q.rule.minImageWidth && Q.rule.maxImageHeight ? (RA.value.width = Q.rule.minImageWidth, RA.value.height = Q.rule.maxImageHeight, RA.value.aspectRatio = Q.rule.minImageWidth / Q.rule.maxImageHeight) : RA.value = {}, D && (Q.rule.crop ? (D.thumbUrl, E.value.handleOpenCropper(
17957
17963
  RA.value,
17958
17964
  D.file,
17959
17965
  D.name,
17960
- y
17961
- )) : r.uploadByFile ? r.uploadByFile(D.file).then((V) => {
17962
- V.success && (y.attrs.src = V.file.url, f.value = (/* @__PURE__ */ new Date()).getTime().toString());
17963
- }) : (y.attrs.src = D.thumbUrl, f.value = (/* @__PURE__ */ new Date()).getTime().toString()));
17966
+ Q
17967
+ )) : r.uploadByFile ? r.uploadByFile(D.file).then((P) => {
17968
+ P.success && (Q.attrs.src = P.file.url, Q.rule.preview ? Q.attrs["data-preview"] = P.file.previewUrl || P.file.url : delete Q.attrs["data-preview"], f.value = (/* @__PURE__ */ new Date()).getTime().toString());
17969
+ }) : (Q.attrs.src = D.thumbUrl, Q.rule.preview ? Q.attrs["data-preview"] = D.url || D.thumbUrl : delete Q.attrs["data-preview"], f.value = (/* @__PURE__ */ new Date()).getTime().toString()));
17964
17970
  }
17965
- const XA = j(r.previewWidth), v = j(360);
17971
+ const XA = j(r.previewWidth), x = j(360);
17966
17972
  let _ = j(!1), sA = j(""), $ = 0, bA = 0;
17967
- function Be(Q) {
17968
- sA.value = Q, _.value = !0, $ = event.clientX, Q === "preview" ? bA = XA.value : Q === "structure" && (bA = v.value), window.addEventListener("mousemove", ar), window.addEventListener("mouseup", _t);
17973
+ function Be(F) {
17974
+ sA.value = F, _.value = !0, $ = event.clientX, F === "preview" ? bA = XA.value : F === "structure" && (bA = x.value), window.addEventListener("mousemove", ar), window.addEventListener("mouseup", _t);
17969
17975
  }
17970
- function ar(Q) {
17976
+ function ar(F) {
17971
17977
  if (!_.value) return;
17972
- const y = Q.clientX - $;
17973
- sA.value === "preview" ? XA.value = Math.max(200, bA + y) : sA.value === "structure" && (v.value = Math.max(200, bA - y));
17978
+ const Q = F.clientX - $;
17979
+ sA.value === "preview" ? XA.value = Math.max(200, bA + Q) : sA.value === "structure" && (x.value = Math.max(200, bA - Q));
17974
17980
  }
17975
17981
  function _t() {
17976
17982
  _.value = !1, sA.value = "", window.removeEventListener("mousemove", ar), window.removeEventListener("mouseup", _t);
@@ -17995,36 +18001,36 @@ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fd
17995
18001
  }
17996
18002
  return e({
17997
18003
  generateCover: H
17998
- }), (Q, y) => (M(), Y("div", RU, [
17999
- Q.preview ? (M(), Y("div", {
18004
+ }), (F, Q) => (k(), Y("div", RU, [
18005
+ F.preview ? (k(), Y("div", {
18000
18006
  key: 0,
18001
18007
  class: "border-l overflow-auto resize-area",
18002
18008
  style: hs({ width: XA.value + "px" })
18003
18009
  }, [
18004
- Q.showTitle ? (M(), Y("div", MU, [
18010
+ F.showTitle ? (k(), Y("div", MU, [
18005
18011
  b("h2", kU, [
18006
- y[6] || (y[6] = fs(" 实时预览 ")),
18012
+ Q[6] || (Q[6] = fs(" 实时预览 ")),
18007
18013
  b("span", PU, IA(XA.value) + "px", 1)
18008
18014
  ]),
18009
18015
  b("div", {
18010
- onClick: y[0] || (y[0] = () => H()),
18016
+ onClick: Q[0] || (Q[0] = () => H()),
18011
18017
  class: "p-2 cursor-pointer text-blue-500"
18012
18018
  }, " 封面 ")
18013
18019
  ])) : W("", !0),
18014
18020
  b("div", null, [
18015
- c.value ? (M(), Ye(Po, {
18021
+ c.value ? (k(), Ye(Po, {
18016
18022
  key: 0,
18017
- "css-files": Q.css,
18018
- "js-files": Q.js,
18023
+ "css-files": F.css,
18024
+ "js-files": F.js,
18019
18025
  "html-content": c.value,
18020
18026
  class: "gp-designer-preview",
18021
18027
  ref_key: "previewRef",
18022
18028
  ref: I,
18023
18029
  "theme-color": l.value
18024
- }, null, 8, ["css-files", "js-files", "html-content", "theme-color"])) : (M(), Ye(Po, {
18030
+ }, null, 8, ["css-files", "js-files", "html-content", "theme-color"])) : (k(), Ye(Po, {
18025
18031
  key: 1,
18026
- "css-files": Q.css,
18027
- "js-files": Q.js,
18032
+ "css-files": F.css,
18033
+ "js-files": F.js,
18028
18034
  "html-content": mA(o)("body").html(),
18029
18035
  class: "gp-designer-preview",
18030
18036
  ref_key: "previewRef",
@@ -18033,40 +18039,40 @@ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fd
18033
18039
  }, null, 8, ["css-files", "js-files", "html-content", "theme-color"]))
18034
18040
  ])
18035
18041
  ], 4)) : W("", !0),
18036
- Q.preview ? (M(), Y("div", {
18042
+ F.preview ? (k(), Y("div", {
18037
18043
  key: 1,
18038
18044
  class: "resizer",
18039
- onMousedown: y[1] || (y[1] = (D) => Be("preview"))
18045
+ onMousedown: Q[1] || (Q[1] = (D) => Be("preview"))
18040
18046
  }, null, 32)) : W("", !0),
18041
18047
  b("div", KU, [
18042
- Q.showTitle ? (M(), Y("div", GU, [
18043
- y[8] || (y[8] = b("h2", { class: "text-lg font-bold" }, "结构渲染", -1)),
18048
+ F.showTitle ? (k(), Y("div", GU, [
18049
+ Q[8] || (Q[8] = b("h2", { class: "text-lg font-bold" }, "结构渲染", -1)),
18044
18050
  b("div", VU, [
18045
18051
  me(b("input", {
18046
- "onUpdate:modelValue": y[2] || (y[2] = (D) => K.value = D),
18052
+ "onUpdate:modelValue": Q[2] || (Q[2] = (D) => R.value = D),
18047
18053
  type: "checkbox",
18048
18054
  id: "showMargin",
18049
18055
  class: "mr-2"
18050
18056
  }, null, 512), [
18051
- [H0, K.value]
18057
+ [H0, R.value]
18052
18058
  ]),
18053
- y[7] || (y[7] = b("label", { for: "showMargin" }, "间距", -1))
18059
+ Q[7] || (Q[7] = b("label", { for: "showMargin" }, "间距", -1))
18054
18060
  ])
18055
18061
  ])) : W("", !0),
18056
18062
  b("div", YU, [
18057
- i.value ? (M(), Ye(iE, {
18063
+ i.value ? (k(), Ye(iE, {
18058
18064
  key: 0,
18059
- "upload-by-file": Q.uploadByFile,
18065
+ "upload-by-file": F.uploadByFile,
18060
18066
  cropper: E.value,
18061
18067
  icon: m.value,
18062
18068
  upload: T.value,
18063
- mode: Q.mode,
18064
- icons: Q.icons,
18069
+ mode: F.mode,
18070
+ icons: F.icons,
18065
18071
  r: f.value,
18066
- "show-margin": K.value,
18072
+ "show-margin": R.value,
18067
18073
  element: i.value,
18068
18074
  selectedElement: w.value,
18069
- hoveredElement: x.value,
18075
+ hoveredElement: y.value,
18070
18076
  onSelectElement: p,
18071
18077
  onHoverElement: O,
18072
18078
  onContentUpdated: wA,
@@ -18077,23 +18083,23 @@ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fd
18077
18083
  }, null, 8, ["upload-by-file", "cropper", "icon", "upload", "mode", "icons", "r", "show-margin", "element", "selectedElement", "hoveredElement"])) : W("", !0)
18078
18084
  ])
18079
18085
  ]),
18080
- h.value == "design" ? (M(), Y("div", {
18086
+ h.value == "design" ? (k(), Y("div", {
18081
18087
  key: 2,
18082
18088
  class: "resizer",
18083
- onMousedown: y[3] || (y[3] = (D) => Be("structure"))
18089
+ onMousedown: Q[3] || (Q[3] = (D) => Be("structure"))
18084
18090
  }, null, 32)) : W("", !0),
18085
- h.value == "design" ? (M(), Y("div", {
18091
+ h.value == "design" ? (k(), Y("div", {
18086
18092
  key: 3,
18087
18093
  class: "resize-area",
18088
- style: hs({ width: v.value + "px" })
18094
+ style: hs({ width: x.value + "px" })
18089
18095
  }, [
18090
18096
  b("div", XU, [
18091
- Q.showTitle ? (M(), Y("h2", WU, [
18092
- y[9] || (y[9] = fs(" 节点属性 ")),
18093
- b("span", JU, IA(v.value) + "px", 1)
18097
+ F.showTitle ? (k(), Y("h2", WU, [
18098
+ Q[9] || (Q[9] = fs(" 节点属性 ")),
18099
+ b("span", JU, IA(x.value) + "px", 1)
18094
18100
  ])) : W("", !0),
18095
18101
  b("div", qU, [
18096
- w.value ? (M(), Ye(HE, {
18102
+ w.value ? (k(), Ye(HE, {
18097
18103
  key: 0,
18098
18104
  element: w.value,
18099
18105
  onUpdateElement: aA
@@ -18107,7 +18113,7 @@ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fd
18107
18113
  onOk: HA
18108
18114
  }, null, 512),
18109
18115
  Ie(A1, {
18110
- icons: Q.icons,
18116
+ icons: F.icons,
18111
18117
  ref_key: "iconRef",
18112
18118
  ref: m,
18113
18119
  onOk: jA
@@ -18120,7 +18126,7 @@ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fd
18120
18126
  beforeUpload: re,
18121
18127
  onChange: YA
18122
18128
  }, {
18123
- "upload-icon": Rr(() => y[10] || (y[10] = [
18129
+ "upload-icon": Rr(() => Q[10] || (Q[10] = [
18124
18130
  b("div", { class: "p-2" }, "上传", -1)
18125
18131
  ])),
18126
18132
  _: 1
@@ -18128,28 +18134,28 @@ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fd
18128
18134
  Ie(Tl, {
18129
18135
  title: "多行文本编辑",
18130
18136
  visible: St.value,
18131
- "onUpdate:visible": y[5] || (y[5] = (D) => St.value = D),
18137
+ "onUpdate:visible": Q[5] || (Q[5] = (D) => St.value = D),
18132
18138
  onOk: xa,
18133
18139
  "mask-closable": !1
18134
18140
  }, {
18135
18141
  default: Rr(() => {
18136
18142
  var D;
18137
18143
  return [
18138
- w.value ? (M(), Y("div", jU, [
18144
+ w.value ? (k(), Y("div", jU, [
18139
18145
  me(b("textarea", {
18140
- "onUpdate:modelValue": y[4] || (y[4] = (V) => pe.value = V),
18146
+ "onUpdate:modelValue": Q[4] || (Q[4] = (P) => pe.value = P),
18141
18147
  class: "w-full h-full text-sm"
18142
18148
  }, null, 512), [
18143
18149
  [je, pe.value]
18144
18150
  ])
18145
18151
  ])) : W("", !0),
18146
- w.value && w.value.rule ? (M(), Y("div", zU, [
18152
+ w.value && w.value.rule ? (k(), Y("div", zU, [
18147
18153
  b("div", null, [
18148
18154
  b("span", null, IA(((D = pe.value) == null ? void 0 : D.length) || 0) + " 字", 1),
18149
- w.value.rule.minText && w.value.rule.maxText ? (M(), Y("span", $U, " / " + IA(w.value.rule.minText || 0) + " ~ " + IA(w.value.rule.maxText || 0) + " 字 ", 1)) : w.value.rule.minText ? (M(), Y("span", ZU, " / 最少 " + IA(w.value.rule.minText) + " 字", 1)) : w.value.rule.maxText ? (M(), Y("span", AQ, " / 最多 " + IA(w.value.rule.maxText) + " 字", 1)) : W("", !0)
18155
+ w.value.rule.minText && w.value.rule.maxText ? (k(), Y("span", $U, " / " + IA(w.value.rule.minText || 0) + " ~ " + IA(w.value.rule.maxText || 0) + " 字 ", 1)) : w.value.rule.minText ? (k(), Y("span", ZU, " / 最少 " + IA(w.value.rule.minText) + " 字", 1)) : w.value.rule.maxText ? (k(), Y("span", AQ, " / 最多 " + IA(w.value.rule.maxText) + " 字", 1)) : W("", !0)
18150
18156
  ]),
18151
18157
  b("div", null, [
18152
- w.value.rule.maxText && pe.value.length > w.value.rule.maxText ? (M(), Y("span", eQ, " 超出最大字数 " + IA(w.value.rule.maxText) + " 字 ", 1)) : w.value.rule.minText && pe.value.length < w.value.rule.minText ? (M(), Y("span", tQ, " 不能少于最小字数 " + IA(w.value.rule.minText) + " 字 ", 1)) : W("", !0)
18158
+ w.value.rule.maxText && pe.value.length > w.value.rule.maxText ? (k(), Y("span", eQ, " 超出最大字数 " + IA(w.value.rule.maxText) + " 字 ", 1)) : w.value.rule.minText && pe.value.length < w.value.rule.minText ? (k(), Y("span", tQ, " 不能少于最小字数 " + IA(w.value.rule.minText) + " 字 ", 1)) : W("", !0)
18153
18159
  ])
18154
18160
  ])) : W("", !0)
18155
18161
  ];
@@ -18158,7 +18164,7 @@ const Po = /* @__PURE__ */ dt(DU, [["render", OU], ["__scopeId", "data-v-57ee1fd
18158
18164
  }, 8, ["visible"])
18159
18165
  ]));
18160
18166
  }
18161
- }), nQ = /* @__PURE__ */ dt(rQ, [["__scopeId", "data-v-68493208"]]), fQ = {
18167
+ }), nQ = /* @__PURE__ */ dt(rQ, [["__scopeId", "data-v-f5eca6fa"]]), fQ = {
18162
18168
  install(A) {
18163
18169
  A.component("Designer", nQ);
18164
18170
  }