hoeditor-web 3.3.3-beta.1 → 3.3.3-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3152,10 +3152,10 @@ createjs = createjs || {};
3152
3152
  for (u = 1; u < I; u++)
3153
3153
  X = X.n = { r: 0, b: 0, g: 0, a: 0 };
3154
3154
  X.n = U;
3155
- var W = { r: 0, b: 0, g: 0, a: 0 }, G = W;
3155
+ var z = { r: 0, b: 0, g: 0, a: 0 }, G = z;
3156
3156
  for (u = 1; u < M; u++)
3157
3157
  G = G.n = { r: 0, b: 0, g: 0, a: 0 };
3158
- G.n = W;
3158
+ G.n = z;
3159
3159
  for (var J = null, ae = a.MUL_TABLE[o] | 0, Ce = a.SHG_TABLE[o] | 0, oe = a.MUL_TABLE[n] | 0, me = a.SHG_TABLE[n] | 0; s-- > 0; ) {
3160
3160
  g = m = 0;
3161
3161
  var ue = ae, Q = Ce;
@@ -3169,11 +3169,11 @@ createjs = createjs || {};
3169
3169
  g += k;
3170
3170
  }
3171
3171
  for (ue = oe, Q = me, c = 0; c < k; c++) {
3172
- for (m = c << 2 | 0, y = j * (_ = l[m]) | 0, w = j * (D = l[m + 1 | 0]) | 0, v = j * (E = l[m + 2 | 0]) | 0, C = j * (T = l[m + 3 | 0]) | 0, G = W, u = 0; u < j; u++)
3172
+ for (m = c << 2 | 0, y = j * (_ = l[m]) | 0, w = j * (D = l[m + 1 | 0]) | 0, v = j * (E = l[m + 2 | 0]) | 0, C = j * (T = l[m + 3 | 0]) | 0, G = z, u = 0; u < j; u++)
3173
3173
  G.r = _, G.g = D, G.b = E, G.a = T, G = G.n;
3174
3174
  for (p = k, u = 1; u <= n; u++)
3175
3175
  m = p + c << 2, y += G.r = l[m], w += G.g = l[m + 1], v += G.b = l[m + 2], C += G.a = l[m + 3], G = G.n, u < B && (p += k);
3176
- if (m = c, J = W, s > 0)
3176
+ if (m = c, J = z, s > 0)
3177
3177
  for (d = 0; d < L; d++)
3178
3178
  f = m << 2, l[f + 3] = T = C * ue >>> Q, T > 0 ? (l[f] = y * ue >>> Q, l[f + 1] = w * ue >>> Q, l[f + 2] = v * ue >>> Q) : l[f] = l[f + 1] = l[f + 2] = 0, f = c + ((f = d + j) < B ? f : B) * k << 2, y -= J.r - (J.r = l[f]), w -= J.g - (J.g = l[f + 1]), v -= J.b - (J.b = l[f + 2]), C -= J.a - (J.a = l[f + 3]), J = J.n, m += k;
3179
3179
  else
@@ -7258,7 +7258,7 @@ function flip(a) {
7258
7258
  allowedAutoPlacements: w
7259
7259
  }) : ne);
7260
7260
  }, []), T = t.rects.reference, I = t.rects.popper, M = /* @__PURE__ */ new Map(), k = !0, L = E[0], H = 0; H < E.length; H++) {
7261
- var B = E[H], Y = getBasePlacement(B), j = getVariation(B) === start, U = [top, bottom].indexOf(Y) >= 0, X = U ? "width" : "height", W = detectOverflow(t, {
7261
+ var B = E[H], Y = getBasePlacement(B), j = getVariation(B) === start, U = [top, bottom].indexOf(Y) >= 0, X = U ? "width" : "height", z = detectOverflow(t, {
7262
7262
  placement: B,
7263
7263
  boundary: f,
7264
7264
  rootBoundary: p,
@@ -7267,7 +7267,7 @@ function flip(a) {
7267
7267
  }), G = U ? j ? right : left : j ? bottom : top;
7268
7268
  T[X] > I[X] && (G = getOppositePlacement(G));
7269
7269
  var J = getOppositePlacement(G), ae = [];
7270
- if (s && ae.push(W[Y] <= 0), c && ae.push(W[G] <= 0, W[J] <= 0), ae.every(function(Q) {
7270
+ if (s && ae.push(z[Y] <= 0), c && ae.push(z[G] <= 0, z[J] <= 0), ae.every(function(Q) {
7271
7271
  return Q;
7272
7272
  })) {
7273
7273
  L = B, k = !1;
@@ -7405,10 +7405,10 @@ function preventOverflow(a) {
7405
7405
  };
7406
7406
  if (I) {
7407
7407
  if (s) {
7408
- var j, U = E === "y" ? top : left, X = E === "y" ? bottom : right, W = E === "y" ? "height" : "width", G = I[E], J = G + v[U], ae = G - v[X], Ce = g ? -k[W] / 2 : 0, oe = _ === start ? M[W] : k[W], me = _ === start ? -k[W] : -M[W], ue = t.elements.arrow, Q = g && ue ? getLayoutRect(ue) : {
7408
+ var j, U = E === "y" ? top : left, X = E === "y" ? bottom : right, z = E === "y" ? "height" : "width", G = I[E], J = G + v[U], ae = G - v[X], Ce = g ? -k[z] / 2 : 0, oe = _ === start ? M[z] : k[z], me = _ === start ? -k[z] : -M[z], ue = t.elements.arrow, Q = g && ue ? getLayoutRect(ue) : {
7409
7409
  width: 0,
7410
7410
  height: 0
7411
- }, ne = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : getFreshSideObject(), xe = ne[U], Ie = ne[X], ve = within(0, M[W], Q[W]), _e = D ? M[W] / 2 - Ce - ve - xe - H.mainAxis : oe - ve - xe - H.mainAxis, pe = D ? -M[W] / 2 + Ce + ve + Ie + H.mainAxis : me + ve + Ie + H.mainAxis, Pe = t.elements.arrow && getOffsetParent(t.elements.arrow), De = Pe ? E === "y" ? Pe.clientTop || 0 : Pe.clientLeft || 0 : 0, Ve = (j = B == null ? void 0 : B[E]) != null ? j : 0, Te = G + _e - Ve - De, He = G + pe - Ve, we = within(g ? min$1(J, Te) : J, G, g ? max$2(ae, He) : ae);
7411
+ }, ne = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : getFreshSideObject(), xe = ne[U], Ie = ne[X], ve = within(0, M[z], Q[z]), _e = D ? M[z] / 2 - Ce - ve - xe - H.mainAxis : oe - ve - xe - H.mainAxis, pe = D ? -M[z] / 2 + Ce + ve + Ie + H.mainAxis : me + ve + Ie + H.mainAxis, Pe = t.elements.arrow && getOffsetParent(t.elements.arrow), De = Pe ? E === "y" ? Pe.clientTop || 0 : Pe.clientLeft || 0 : 0, Ve = (j = B == null ? void 0 : B[E]) != null ? j : 0, Te = G + _e - Ve - De, He = G + pe - Ve, we = within(g ? min$1(J, Te) : J, G, g ? max$2(ae, He) : ae);
7412
7412
  I[E] = we, Y[E] = we - G;
7413
7413
  }
7414
7414
  if (c) {
@@ -8737,28 +8737,28 @@ var divide = /* @__PURE__ */ function() {
8737
8737
  for (; !o[0] && o.length > 1; ) o.shift();
8738
8738
  }
8739
8739
  return function(o, n, s, l, c, d) {
8740
- var u, f, p, m, g, y, w, v, C, _, D, E, T, I, M, k, L, H, B, Y, j = o.constructor, U = o.s == n.s ? 1 : -1, X = o.d, W = n.d;
8741
- if (!X || !X[0] || !W || !W[0])
8740
+ var u, f, p, m, g, y, w, v, C, _, D, E, T, I, M, k, L, H, B, Y, j = o.constructor, U = o.s == n.s ? 1 : -1, X = o.d, z = n.d;
8741
+ if (!X || !X[0] || !z || !z[0])
8742
8742
  return new j(
8743
8743
  // Return NaN if either NaN, or both Infinity or 0.
8744
- !o.s || !n.s || (X ? W && X[0] == W[0] : !W) ? NaN : (
8744
+ !o.s || !n.s || (X ? z && X[0] == z[0] : !z) ? NaN : (
8745
8745
  // Return ±0 if x is 0 or y is ±Infinity, or return ±Infinity as y is 0.
8746
- X && X[0] == 0 || !W ? U * 0 : U / 0
8746
+ X && X[0] == 0 || !z ? U * 0 : U / 0
8747
8747
  )
8748
8748
  );
8749
- for (d ? (g = 1, f = o.e - n.e) : (d = BASE, g = LOG_BASE, f = mathfloor(o.e / g) - mathfloor(n.e / g)), B = W.length, L = X.length, C = new j(U), _ = C.d = [], p = 0; W[p] == (X[p] || 0); p++) ;
8750
- if (W[p] > (X[p] || 0) && f--, s == null ? (I = s = j.precision, l = j.rounding) : c ? I = s + (o.e - n.e) + 1 : I = s, I < 0)
8749
+ for (d ? (g = 1, f = o.e - n.e) : (d = BASE, g = LOG_BASE, f = mathfloor(o.e / g) - mathfloor(n.e / g)), B = z.length, L = X.length, C = new j(U), _ = C.d = [], p = 0; z[p] == (X[p] || 0); p++) ;
8750
+ if (z[p] > (X[p] || 0) && f--, s == null ? (I = s = j.precision, l = j.rounding) : c ? I = s + (o.e - n.e) + 1 : I = s, I < 0)
8751
8751
  _.push(1), y = !0;
8752
8752
  else {
8753
8753
  if (I = I / g + 2 | 0, p = 0, B == 1) {
8754
- for (m = 0, W = W[0], I++; (p < L || m) && I--; p++)
8755
- M = m * d + (X[p] || 0), _[p] = M / W | 0, m = M % W | 0;
8754
+ for (m = 0, z = z[0], I++; (p < L || m) && I--; p++)
8755
+ M = m * d + (X[p] || 0), _[p] = M / z | 0, m = M % z | 0;
8756
8756
  y = m || p < L;
8757
8757
  } else {
8758
- for (m = d / (W[0] + 1) | 0, m > 1 && (W = a(W, m, d), X = a(X, m, d), B = W.length, L = X.length), k = B, D = X.slice(0, B), E = D.length; E < B; ) D[E++] = 0;
8759
- Y = W.slice(), Y.unshift(0), H = W[0], W[1] >= d / 2 && ++H;
8758
+ for (m = d / (z[0] + 1) | 0, m > 1 && (z = a(z, m, d), X = a(X, m, d), B = z.length, L = X.length), k = B, D = X.slice(0, B), E = D.length; E < B; ) D[E++] = 0;
8759
+ Y = z.slice(), Y.unshift(0), H = z[0], z[1] >= d / 2 && ++H;
8760
8760
  do
8761
- m = 0, u = t(W, D, B, E), u < 0 ? (T = D[0], B != E && (T = T * d + (D[1] || 0)), m = T / H | 0, m > 1 ? (m >= d && (m = d - 1), w = a(W, m, d), v = w.length, E = D.length, u = t(w, D, v, E), u == 1 && (m--, r(w, B < v ? Y : W, v, d))) : (m == 0 && (u = m = 1), w = W.slice()), v = w.length, v < E && w.unshift(0), r(D, w, E, d), u == -1 && (E = D.length, u = t(W, D, B, E), u < 1 && (m++, r(D, B < E ? Y : W, E, d))), E = D.length) : u === 0 && (m++, D = [0]), _[p++] = m, u && D[0] ? D[E++] = X[k] || 0 : (D = [X[k]], E = 1);
8761
+ m = 0, u = t(z, D, B, E), u < 0 ? (T = D[0], B != E && (T = T * d + (D[1] || 0)), m = T / H | 0, m > 1 ? (m >= d && (m = d - 1), w = a(z, m, d), v = w.length, E = D.length, u = t(w, D, v, E), u == 1 && (m--, r(w, B < v ? Y : z, v, d))) : (m == 0 && (u = m = 1), w = z.slice()), v = w.length, v < E && w.unshift(0), r(D, w, E, d), u == -1 && (E = D.length, u = t(z, D, B, E), u < 1 && (m++, r(D, B < E ? Y : z, E, d))), E = D.length) : u === 0 && (m++, D = [0]), _[p++] = m, u && D[0] ? D[E++] = X[k] || 0 : (D = [X[k]], E = 1);
8762
8762
  while ((k++ < L || D[0] !== void 0) && I--);
8763
8763
  y = D[0] !== void 0;
8764
8764
  }
@@ -9385,6 +9385,7 @@ function expressionCalculator(a) {
9385
9385
  return f.length > 1 && (f[1].length > 2 && (u = n[0].toFixed(2)), f[1] == "00") ? f[0] : u;
9386
9386
  }
9387
9387
  }
9388
+ var NodeType = /* @__PURE__ */ ((a) => (a[a.ntParagraph = 0] = "ntParagraph", a[a.ntTable = 1] = "ntTable", a[a.ntText = 2] = "ntText", a[a.ntCell = 3] = "ntCell", a[a.ntMedicalExpression = 4] = "ntMedicalExpression", a[a.ntMark = 5] = "ntMark", a[a.ntImage = 6] = "ntImage", a[a.ntField = 7] = "ntField", a[a.ntControl = 8] = "ntControl", a[a.ntSpecialChar = 9] = "ntSpecialChar", a[a.ntPageCount = 10] = "ntPageCount", a[a.ntPageNum = 11] = "ntPageNum", a[a.ntTableFormula = 12] = "ntTableFormula", a[a.ntSeparateChar = 13] = "ntSeparateChar", a[a.ntLabel = 14] = "ntLabel", a[a.ntSign = 15] = "ntSign", a[a.ntGestation = 16] = "ntGestation", a[a.ntRareChar = 17] = "ntRareChar", a[a.ntJumpButton = 18] = "ntJumpButton", a[a.ntTextBorder = 19] = "ntTextBorder", a[a.ntSlider = 20] = "ntSlider", a[a.ntFigure = 21] = "ntFigure", a))(NodeType || {}), FormularType$1 = /* @__PURE__ */ ((a) => (a[a.ftSum = 0] = "ftSum", a[a.ftFormular = 1] = "ftFormular", a[a.ftBMI = 2] = "ftBMI", a[a.ftLaborProcess = 3] = "ftLaborProcess", a[a.ftExpectedBirthDate = 4] = "ftExpectedBirthDate", a[a.ftPregnantWeeks = 5] = "ftPregnantWeeks", a[a.ftScoreMapping = 6] = "ftScoreMapping", a[a.ftBodySurfaceArea = 7] = "ftBodySurfaceArea", a[a.ftCalcDays = 8] = "ftCalcDays", a[a.ftCalcTime = 9] = "ftCalcTime", a[a.ftIdealWeight = 10] = "ftIdealWeight", a[a.ftISS = 11] = "ftISS", a[a.ftCurveChart = 12] = "ftCurveChart", a))(FormularType$1 || {}), SliderDecimalType = /* @__PURE__ */ ((a) => (a[a.Retain = 0] = "Retain", a[a.Rounding = 1] = "Rounding", a[a.Remove = 2] = "Remove", a))(SliderDecimalType || {}), SliderFigureType = /* @__PURE__ */ ((a) => (a[a.Figure = 0] = "Figure", a[a.Skin = 1] = "Skin", a[a.Joint = 2] = "Joint", a[a.Mases = 3] = "Mases", a))(SliderFigureType || {}), PaintState$1 = /* @__PURE__ */ ((a) => (a[a.psDesign = 0] = "psDesign", a[a.psEdit = 1] = "psEdit", a[a.psPreview = 2] = "psPreview", a[a.psPrint = 3] = "psPrint", a[a.psReview = 4] = "psReview", a[a.psReadOnly = 5] = "psReadOnly", a[a.psTrace = 6] = "psTrace", a[a.psTracePreview = 7] = "psTracePreview", a))(PaintState$1 || {}), HistoryComponentPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.right = 1] = "right", a))(HistoryComponentPosition || {});
9388
9389
  class DrawRadioAndCheckBox extends DrawCombineNode {
9389
9390
  constructor(r, o, n, s, l, c, d, u, f, p) {
9390
9391
  super(r, o, n, s);
@@ -9401,31 +9402,15 @@ class DrawRadioAndCheckBox extends DrawCombineNode {
9401
9402
  b(this, "_dUnderLine");
9402
9403
  b(this, "_charCount");
9403
9404
  b(this, "dBoxWidth", 0);
9404
- this._controlStyle = l, n.isTransToText ? this._charCount = 1 : this._charCount = n.text.length + 1, this._isSelected = c, this._boxAlign = d, this._numericValue = u, this._text = n.text, this._dText = new createjs$1.Text(
9405
- n.isTransToText ? "" : this._text,
9406
- p.getStyleKey(),
9407
- p.color
9408
- );
9405
+ this._controlStyle = l, n.isTransToText ? this._charCount = 1 : this._charCount = n.text.length + 1, this._isSelected = c, this._boxAlign = d, this._numericValue = u, this._text = n.text, this._dText = new createjs$1.Text(n.isTransToText ? "" : this._text, p.getStyleKey(), p.color);
9409
9406
  let m = 0;
9410
- p.size <= 12 ? m = 18 : p.size <= 16 ? m = 22 : p.size <= 22 ? m = 24 : m = 42, l === "CheckBox" ? this._dBox = new createjs$1.Text(
9411
- "þ",
9412
- m.toString() + "px wingdings",
9413
- p.color
9414
- ) : this._dBox = new createjs$1.Text(
9415
- "¤",
9416
- m.toString() + "px wingdings",
9417
- p.color
9418
- );
9407
+ p.size <= 12 ? m = 18 : p.size <= 16 ? m = 22 : p.size <= 22 ? m = 24 : m = 42, this._dBox = this.getDrawBox(l === "CheckBox" ? "CheckBox" : "Radio", !1, p, m);
9419
9408
  let g = 0;
9420
9409
  this.text !== "" && (g = 6);
9421
9410
  const y = this._dText.getMeasuredWidth(), w = this._dBox.getMeasuredWidth();
9422
9411
  if (this.dBoxWidth = w, this.dWidth = y + w + g, n.isEditText) {
9423
9412
  let v = 40;
9424
- n.appendText.length > 0 && (this._dAppendText = new createjs$1.Text(
9425
- n.appendText,
9426
- p.getStyleKey(),
9427
- p.color
9428
- ), v = this._dAppendText.getMeasuredWidth()), this._dUnderLine = new createjs$1.Shape(), this._dUnderLine.graphics.beginStroke(p.color).moveTo(this.dWidth - g, 1).lineTo(this.dWidth - g + v, 1), this.dWidth = this.dWidth - g + v;
9413
+ n.appendText.length > 0 && (this._dAppendText = new createjs$1.Text(n.appendText, p.getStyleKey(), p.color), v = this._dAppendText.getMeasuredWidth()), this._dUnderLine = new createjs$1.Shape(), this._dUnderLine.graphics.beginStroke(p.color).moveTo(this.dWidth - g, 1).lineTo(this.dWidth - g + v, 1), this.dWidth = this.dWidth - g + v;
9429
9414
  }
9430
9415
  this.dHeight = f, this._textStyle = p, this.drawRadioAndCheckBox();
9431
9416
  }
@@ -9466,24 +9451,9 @@ class DrawRadioAndCheckBox extends DrawCombineNode {
9466
9451
  this.clear(), this.boxAlign ? (this.drawBox(), !this.node.isTransToText && this.text.length > 0 && this.drawText(), this.node.isEditText && this.drawAppend()) : (this.text.length > 0 && this.drawText(), this.drawBox());
9467
9452
  }
9468
9453
  drawBox() {
9454
+ HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
9469
9455
  let r, o = 0;
9470
- this.textStyle.size <= 12 ? o = 18 : this.textStyle.size <= 16 ? o = 22 : this.textStyle.size <= 22 ? o = 24 : o = 42, this.controlStyle === "CheckBox" ? this.isSelected ? r = new createjs$1.Text(
9471
- "þ",
9472
- o.toString() + "px wingdings",
9473
- this.textStyle.color
9474
- ) : r = new createjs$1.Text(
9475
- "¨",
9476
- o.toString() + "px wingdings",
9477
- this.textStyle.color
9478
- ) : this.isSelected ? r = new createjs$1.Text(
9479
- "¤",
9480
- o.toString() + "px wingdings",
9481
- this.textStyle.color
9482
- ) : r = new createjs$1.Text(
9483
- "¡",
9484
- o.toString() + "px wingdings",
9485
- this.textStyle.color
9486
- ), r.textBaseline = "alphabetic", r.textAlign = "left", r.name = "box", this.boxAlign ? r.x = 0 : r.x = this._dText.getMeasuredWidth(), r.getBounds().clone() && (r.y = this.y), r.setBounds(0, 0, r.getMeasuredWidth(), r.getMeasuredHeight() - 10), this.addChild(r);
9456
+ this.textStyle.size <= 12 ? o = 18 : this.textStyle.size <= 16 ? o = 22 : this.textStyle.size <= 22 ? o = 24 : o = 42, this.controlStyle === "CheckBox" ? r = this.getDrawBox("CheckBox", this.isSelected, this.textStyle, o) : r = this.getDrawBox("Radio", this.isSelected, this.textStyle, o), r.textBaseline = "alphabetic", r.textAlign = "left", r.name = "box", this.boxAlign ? r.x = 0 : r.x = this._dText.getMeasuredWidth(), r.getBounds().clone() && (r.y = this.y), r.setBounds(0, 0, r.getMeasuredWidth(), r.getMeasuredHeight() - 10), this.addChild(r);
9487
9457
  }
9488
9458
  drawText() {
9489
9459
  const r = this._dText;
@@ -9496,6 +9466,19 @@ class DrawRadioAndCheckBox extends DrawCombineNode {
9496
9466
  }
9497
9467
  this.addChild(this._dUnderLine);
9498
9468
  }
9469
+ getDrawBox(r, o, n, s) {
9470
+ const l = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), c = l.drawTree.paintStatus === PaintState$1.psReadOnly, d = {
9471
+ Radio: {
9472
+ readOnly: { checked: "◉", unchecked: "○" },
9473
+ editable: { checked: "¤", unchecked: "¡" }
9474
+ },
9475
+ CheckBox: {
9476
+ readOnly: { checked: "☑", unchecked: "☐" },
9477
+ editable: { checked: "þ", unchecked: "¨" }
9478
+ }
9479
+ }, u = c && l.drawRadioAndCheckBoxMode === 2 ? "readOnly" : "editable", f = d[r][u], p = o ? f.checked : f.unchecked, m = c ? n.getStyleKey() : `${s}px wingdings`;
9480
+ return new createjs$1.Text(p, m, n.color);
9481
+ }
9499
9482
  }
9500
9483
  class DrawRadioAndCheckBoxPrint extends DrawCombineNode {
9501
9484
  // public dBoxWidth: number = 0;
@@ -10178,7 +10161,6 @@ class RadioAndCheckBoxNode extends ControlNode {
10178
10161
  return "单复选框";
10179
10162
  }
10180
10163
  }
10181
- var NodeType = /* @__PURE__ */ ((a) => (a[a.ntParagraph = 0] = "ntParagraph", a[a.ntTable = 1] = "ntTable", a[a.ntText = 2] = "ntText", a[a.ntCell = 3] = "ntCell", a[a.ntMedicalExpression = 4] = "ntMedicalExpression", a[a.ntMark = 5] = "ntMark", a[a.ntImage = 6] = "ntImage", a[a.ntField = 7] = "ntField", a[a.ntControl = 8] = "ntControl", a[a.ntSpecialChar = 9] = "ntSpecialChar", a[a.ntPageCount = 10] = "ntPageCount", a[a.ntPageNum = 11] = "ntPageNum", a[a.ntTableFormula = 12] = "ntTableFormula", a[a.ntSeparateChar = 13] = "ntSeparateChar", a[a.ntLabel = 14] = "ntLabel", a[a.ntSign = 15] = "ntSign", a[a.ntGestation = 16] = "ntGestation", a[a.ntRareChar = 17] = "ntRareChar", a[a.ntJumpButton = 18] = "ntJumpButton", a[a.ntTextBorder = 19] = "ntTextBorder", a[a.ntSlider = 20] = "ntSlider", a[a.ntFigure = 21] = "ntFigure", a))(NodeType || {}), FormularType$1 = /* @__PURE__ */ ((a) => (a[a.ftSum = 0] = "ftSum", a[a.ftFormular = 1] = "ftFormular", a[a.ftBMI = 2] = "ftBMI", a[a.ftLaborProcess = 3] = "ftLaborProcess", a[a.ftExpectedBirthDate = 4] = "ftExpectedBirthDate", a[a.ftPregnantWeeks = 5] = "ftPregnantWeeks", a[a.ftScoreMapping = 6] = "ftScoreMapping", a[a.ftBodySurfaceArea = 7] = "ftBodySurfaceArea", a[a.ftCalcDays = 8] = "ftCalcDays", a[a.ftCalcTime = 9] = "ftCalcTime", a[a.ftIdealWeight = 10] = "ftIdealWeight", a[a.ftISS = 11] = "ftISS", a[a.ftCurveChart = 12] = "ftCurveChart", a))(FormularType$1 || {}), SliderDecimalType = /* @__PURE__ */ ((a) => (a[a.Retain = 0] = "Retain", a[a.Rounding = 1] = "Rounding", a[a.Remove = 2] = "Remove", a))(SliderDecimalType || {}), SliderFigureType = /* @__PURE__ */ ((a) => (a[a.Figure = 0] = "Figure", a[a.Skin = 1] = "Skin", a[a.Joint = 2] = "Joint", a[a.Mases = 3] = "Mases", a))(SliderFigureType || {}), PaintState$1 = /* @__PURE__ */ ((a) => (a[a.psDesign = 0] = "psDesign", a[a.psEdit = 1] = "psEdit", a[a.psPreview = 2] = "psPreview", a[a.psPrint = 3] = "psPrint", a[a.psReview = 4] = "psReview", a[a.psReadOnly = 5] = "psReadOnly", a[a.psTrace = 6] = "psTrace", a[a.psTracePreview = 7] = "psTracePreview", a))(PaintState$1 || {}), HistoryComponentPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.right = 1] = "right", a))(HistoryComponentPosition || {});
10182
10164
  class DrawTableFormularChart extends DrawCombineNode {
10183
10165
  constructor(r, o, n) {
10184
10166
  var s;
@@ -11534,24 +11516,24 @@ class DrawPageTable extends DrawRect {
11534
11516
  k,
11535
11517
  X
11536
11518
  ), T.drawCell.drawPageCells.push(B), B.y = U, M > 0 && (B.x = Y), this.addChild(B);
11537
- const W = B.update(
11519
+ const z = B.update(
11538
11520
  H,
11539
11521
  T.drawCell.drawLines,
11540
11522
  k,
11541
11523
  B.valignTop,
11542
11524
  X
11543
11525
  );
11544
- B.y = U, _ = _ && W;
11526
+ B.y = U, _ = _ && z;
11545
11527
  } else if (B = T.drawCell.drawPageCells[L + 1], B.parent !== this && (T.drawCell.needUpdate = !0, B.parent && B.parent.removeChild(B), B.drawPageTable = this, this.addChild(B)), B.y = U, B.x = Y, T.drawCell.needUpdate || k !== B.startDline || B.dHeight > s || B.dHeight + n.defaultLineHeight < s && L + 1 < T.drawCell.drawPageCells.length - 1 && !this._table.rowInfos[C].rowProperty.repeatAsTitleAtPageTop) {
11546
11528
  T.drawCell.needUpdate || (T.drawCell.needUpdate = !0), C === I ? (B.maxHeight = s, B.dHeight = Math.min(m, s)) : B.maxHeight = u - U, g = !0;
11547
- const W = B.update(
11529
+ const z = B.update(
11548
11530
  H,
11549
11531
  T.drawCell.drawLines,
11550
11532
  k,
11551
11533
  B.valignTop,
11552
11534
  X
11553
11535
  );
11554
- _ = _ && W;
11536
+ _ = _ && z;
11555
11537
  } else T.drawCell.drawPageCells.length > 1 && L + 1 < T.drawCell.drawPageCells.length - 1 && !this._table.rowInfos[C].rowProperty.repeatAsTitleAtPageTop && (_ = !1);
11556
11538
  }
11557
11539
  }
@@ -15260,7 +15242,7 @@ class DrawSignNode extends DrawCombineNode {
15260
15242
  }
15261
15243
  }
15262
15244
  }
15263
- const version = "3.3.3-beta.1";
15245
+ const version = "3.3.3-beta.11";
15264
15246
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
15265
15247
  class SignNode extends BaseNode {
15266
15248
  constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, isTemp, innerIdentifier) {
@@ -15540,7 +15522,9 @@ class SignNode extends BaseNode {
15540
15522
  return o.addChild(u), o.drawItems.push(u), o.fitLines(), o.updateLineStyle(), o.paragraphNode.getLastDrawline();
15541
15523
  }
15542
15524
  node2Json(t, r, o, n) {
15543
- const s = {
15525
+ const s = n ? new Object() : this.customProperty;
15526
+ s.elementDataId = this.customProperty.elementDataId || "";
15527
+ const l = {
15544
15528
  nodeType: NodeType$1[this.nodeType],
15545
15529
  number: n ? 0 : this.number,
15546
15530
  type: n ? 0 : this.type,
@@ -15554,7 +15538,7 @@ class SignNode extends BaseNode {
15554
15538
  imgSrc: n ? "" : this.imgSrc,
15555
15539
  imgWidth: n ? 0 : this.imgWidth,
15556
15540
  imgHeight: n ? 0 : this.imgHeight,
15557
- customProperty: n ? new Object() : this.customProperty,
15541
+ customProperty: s,
15558
15542
  isTemplate: this.isTemplate,
15559
15543
  isTemp: this.isTemp,
15560
15544
  styleIndex: this.styleIndex,
@@ -15568,8 +15552,8 @@ class SignNode extends BaseNode {
15568
15552
  otherProperties: this.otherProperties,
15569
15553
  innerIdentifier: this.innerIdentifier
15570
15554
  };
15571
- return s.imgSrc.substring(0, 4) == "http" && (s.imgSrc = s.imgSrc.replace(`?_=${version}`, "")), this.associatedElement && (s.associatedElement = this.associatedElement), r ? s : {
15572
- SignNode: s
15555
+ return l.imgSrc.substring(0, 4) == "http" && (l.imgSrc = l.imgSrc.replace(`?_=${version}`, "")), this.associatedElement && (l.associatedElement = this.associatedElement), r ? l : {
15556
+ SignNode: l
15573
15557
  };
15574
15558
  }
15575
15559
  static json2Node(t, r, o, n, s, l) {
@@ -15642,7 +15626,7 @@ function requireQrcode() {
15642
15626
  return hasRequiredQrcode || (hasRequiredQrcode = 1, function(a, t) {
15643
15627
  var r = function() {
15644
15628
  var o = function(T, I) {
15645
- var M = 236, k = 17, L = T, H = s[I], B = null, Y = 0, j = null, U = [], X = {}, W = function(ve, _e) {
15629
+ var M = 236, k = 17, L = T, H = s[I], B = null, Y = 0, j = null, U = [], X = {}, z = function(ve, _e) {
15646
15630
  Y = L * 4 + 17, B = function(pe) {
15647
15631
  for (var Pe = new Array(pe), De = 0; De < pe; De += 1) {
15648
15632
  Pe[De] = new Array(pe);
@@ -15658,7 +15642,7 @@ function requireQrcode() {
15658
15642
  _e + Pe <= -1 || Y <= _e + Pe || (0 <= pe && pe <= 6 && (Pe == 0 || Pe == 6) || 0 <= Pe && Pe <= 6 && (pe == 0 || pe == 6) || 2 <= pe && pe <= 4 && 2 <= Pe && Pe <= 4 ? B[ve + pe][_e + Pe] = !0 : B[ve + pe][_e + Pe] = !1);
15659
15643
  }, J = function() {
15660
15644
  for (var ve = 0, _e = 0, pe = 0; pe < 8; pe += 1) {
15661
- W(!0, pe);
15645
+ z(!0, pe);
15662
15646
  var Pe = c.getLostPoint(X);
15663
15647
  (pe == 0 || ve > Pe) && (ve = Pe, _e = pe);
15664
15648
  }
@@ -15789,7 +15773,7 @@ function requireQrcode() {
15789
15773
  }
15790
15774
  L = ve;
15791
15775
  }
15792
- W(!1, J());
15776
+ z(!1, J());
15793
15777
  }, X.createTableTag = function(ve, _e) {
15794
15778
  ve = ve || 2, _e = typeof _e > "u" ? ve * 4 : _e;
15795
15779
  var pe = "";
@@ -15905,7 +15889,7 @@ function requireQrcode() {
15905
15889
  }, B = 0, Y = {}; ; ) {
15906
15890
  var j = L.read();
15907
15891
  if (j == -1) break;
15908
- var U = H(), X = H(), W = H(), G = String.fromCharCode(j << 8 | U), J = X << 8 | W;
15892
+ var U = H(), X = H(), z = H(), G = String.fromCharCode(j << 8 | U), J = X << 8 | z;
15909
15893
  Y[G] = J, B += 1;
15910
15894
  }
15911
15895
  if (B != I)
@@ -16087,11 +16071,11 @@ function requireQrcode() {
16087
16071
  }, L.getLostPoint = function(B) {
16088
16072
  for (var Y = B.getModuleCount(), j = 0, U = 0; U < Y; U += 1)
16089
16073
  for (var X = 0; X < Y; X += 1) {
16090
- for (var W = 0, G = B.isDark(U, X), J = -1; J <= 1; J += 1)
16074
+ for (var z = 0, G = B.isDark(U, X), J = -1; J <= 1; J += 1)
16091
16075
  if (!(U + J < 0 || Y <= U + J))
16092
16076
  for (var ae = -1; ae <= 1; ae += 1)
16093
- X + ae < 0 || Y <= X + ae || J == 0 && ae == 0 || G == B.isDark(U + J, X + ae) && (W += 1);
16094
- W > 5 && (j += 3 + W - 5);
16077
+ X + ae < 0 || Y <= X + ae || J == 0 && ae == 0 || G == B.isDark(U + J, X + ae) && (z += 1);
16078
+ z > 5 && (j += 3 + z - 5);
16095
16079
  }
16096
16080
  for (var U = 0; U < Y - 1; U += 1)
16097
16081
  for (var X = 0; X < Y - 1; X += 1) {
@@ -16387,8 +16371,8 @@ function requireQrcode() {
16387
16371
  if (typeof B > "u")
16388
16372
  throw "bad rs block @ typeNumber:" + L + "/errorCorrectionLevel:" + H;
16389
16373
  for (var Y = B.length / 3, j = [], U = 0; U < Y; U += 1)
16390
- for (var X = B[U * 3 + 0], W = B[U * 3 + 1], G = B[U * 3 + 2], J = 0; J < X; J += 1)
16391
- j.push(I(W, G));
16374
+ for (var X = B[U * 3 + 0], z = B[U * 3 + 1], G = B[U * 3 + 2], J = 0; J < X; J += 1)
16375
+ j.push(I(z, G));
16392
16376
  return j;
16393
16377
  }, M;
16394
16378
  }(), p = function() {
@@ -16594,31 +16578,31 @@ function requireQrcode() {
16594
16578
  return H;
16595
16579
  }, D = function(T, I) {
16596
16580
  var M = T, k = I, L = new Array(T * I), H = {};
16597
- H.setPixel = function(U, X, W) {
16598
- L[X * M + U] = W;
16581
+ H.setPixel = function(U, X, z) {
16582
+ L[X * M + U] = z;
16599
16583
  }, H.write = function(U) {
16600
16584
  U.writeString("GIF87a"), U.writeShort(M), U.writeShort(k), U.writeByte(128), U.writeByte(0), U.writeByte(0), U.writeByte(0), U.writeByte(0), U.writeByte(0), U.writeByte(255), U.writeByte(255), U.writeByte(255), U.writeString(","), U.writeShort(0), U.writeShort(0), U.writeShort(M), U.writeShort(k), U.writeByte(0);
16601
- var X = 2, W = Y(X);
16585
+ var X = 2, z = Y(X);
16602
16586
  U.writeByte(X);
16603
- for (var G = 0; W.length - G > 255; )
16604
- U.writeByte(255), U.writeBytes(W, G, 255), G += 255;
16605
- U.writeByte(W.length - G), U.writeBytes(W, G, W.length - G), U.writeByte(0), U.writeString(";");
16587
+ for (var G = 0; z.length - G > 255; )
16588
+ U.writeByte(255), U.writeBytes(z, G, 255), G += 255;
16589
+ U.writeByte(z.length - G), U.writeBytes(z, G, z.length - G), U.writeByte(0), U.writeString(";");
16606
16590
  };
16607
16591
  var B = function(U) {
16608
- var X = U, W = 0, G = 0, J = {};
16592
+ var X = U, z = 0, G = 0, J = {};
16609
16593
  return J.write = function(ae, Ce) {
16610
16594
  if (ae >>> Ce)
16611
16595
  throw "length over";
16612
- for (; W + Ce >= 8; )
16613
- X.writeByte(255 & (ae << W | G)), Ce -= 8 - W, ae >>>= 8 - W, G = 0, W = 0;
16614
- G = ae << W | G, W = W + Ce;
16596
+ for (; z + Ce >= 8; )
16597
+ X.writeByte(255 & (ae << z | G)), Ce -= 8 - z, ae >>>= 8 - z, G = 0, z = 0;
16598
+ G = ae << z | G, z = z + Ce;
16615
16599
  }, J.flush = function() {
16616
- W > 0 && X.writeByte(G);
16600
+ z > 0 && X.writeByte(G);
16617
16601
  }, J;
16618
16602
  }, Y = function(U) {
16619
- for (var X = 1 << U, W = (1 << U) + 1, G = U + 1, J = j(), ae = 0; ae < X; ae += 1)
16603
+ for (var X = 1 << U, z = (1 << U) + 1, G = U + 1, J = j(), ae = 0; ae < X; ae += 1)
16620
16604
  J.add(String.fromCharCode(ae));
16621
- J.add(String.fromCharCode(X)), J.add(String.fromCharCode(W));
16605
+ J.add(String.fromCharCode(X)), J.add(String.fromCharCode(z));
16622
16606
  var Ce = v(), oe = B(Ce);
16623
16607
  oe.write(X, G);
16624
16608
  var me = 0, ue = String.fromCharCode(L[me]);
@@ -16626,20 +16610,20 @@ function requireQrcode() {
16626
16610
  var Q = String.fromCharCode(L[me]);
16627
16611
  me += 1, J.contains(ue + Q) ? ue = ue + Q : (oe.write(J.indexOf(ue), G), J.size() < 4095 && (J.size() == 1 << G && (G += 1), J.add(ue + Q)), ue = Q);
16628
16612
  }
16629
- return oe.write(J.indexOf(ue), G), oe.write(W, G), oe.flush(), Ce.toByteArray();
16613
+ return oe.write(J.indexOf(ue), G), oe.write(z, G), oe.flush(), Ce.toByteArray();
16630
16614
  }, j = function() {
16631
- var U = {}, X = 0, W = {};
16632
- return W.add = function(G) {
16633
- if (W.contains(G))
16615
+ var U = {}, X = 0, z = {};
16616
+ return z.add = function(G) {
16617
+ if (z.contains(G))
16634
16618
  throw "dup key:" + G;
16635
16619
  U[G] = X, X += 1;
16636
- }, W.size = function() {
16620
+ }, z.size = function() {
16637
16621
  return X;
16638
- }, W.indexOf = function(G) {
16622
+ }, z.indexOf = function(G) {
16639
16623
  return U[G];
16640
- }, W.contains = function(G) {
16624
+ }, z.contains = function(G) {
16641
16625
  return typeof U[G] < "u";
16642
- }, W;
16626
+ }, z;
16643
16627
  };
16644
16628
  return H;
16645
16629
  }, E = function(T, I, M) {
@@ -16771,7 +16755,7 @@ function drawText(a, t) {
16771
16755
  for (var ne = 0; ne < 4; ne += 1)
16772
16756
  B[Q + ne] = D[ne];
16773
16757
  });
16774
- }, W = 0; W < m; W += 1)
16758
+ }, z = 0; z < m; z += 1)
16775
16759
  X();
16776
16760
  _.putImageData(H, 0, 0);
16777
16761
  }()), C;
@@ -16916,8 +16900,8 @@ var DEFAULTS = {
16916
16900
  }, this.cache), this.options.effect), f) {
16917
16901
  var L = _extends$2({}, f);
16918
16902
  if (!f.w && !f.h && !f.cols && !f.rows) {
16919
- var H = f.image, B = H.width, Y = H.height, j = B / Y, U = Math.min((g - 18) / g, 0.38), X = Math.min(Y, k * U, k * U / j), W = X * j, G = (k - W) / 2, J = (k - X) / 2;
16920
- L.w = W, L.h = X, L.x = G, L.y = J;
16903
+ var H = f.image, B = H.width, Y = H.height, j = B / Y, U = Math.min((g - 18) / g, 0.38), X = Math.min(Y, k * U, k * U / j), z = X * j, G = (k - z) / 2, J = (k - X) / 2;
16904
+ L.w = z, L.h = X, L.x = G, L.y = J;
16921
16905
  }
16922
16906
  y(D, L, {
16923
16907
  clear: !1
@@ -18492,27 +18476,27 @@ class TableNode extends RectNode {
18492
18476
  let s = this.range();
18493
18477
  t && (s = this.mixed(t));
18494
18478
  const l = (X) => {
18495
- let W = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(X).node;
18479
+ let z = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(X).node;
18496
18480
  for (; ; ) {
18497
- if (!W) throw Exception.NodeNotFound();
18498
- if (W instanceof CellNode) {
18499
- if (W.table == this)
18500
- return W;
18501
- W = W.parentNode;
18481
+ if (!z) throw Exception.NodeNotFound();
18482
+ if (z instanceof CellNode) {
18483
+ if (z.table == this)
18484
+ return z;
18485
+ z = z.parentNode;
18502
18486
  continue;
18503
18487
  } else {
18504
- W = W.parentNode;
18488
+ z = z.parentNode;
18505
18489
  continue;
18506
18490
  }
18507
18491
  }
18508
18492
  }, c = l(s.from), d = l(s.to), u = { col: 0, row: 0 }, f = { col: 0, row: 0 };
18509
18493
  if (c && c instanceof CellNode) {
18510
- const [X, W] = c.table.getCellInfos(c);
18511
- u.col = W, u.row = X;
18494
+ const [X, z] = c.table.getCellInfos(c);
18495
+ u.col = z, u.row = X;
18512
18496
  }
18513
18497
  if (d && d instanceof CellNode) {
18514
- const [X, W] = d.table.getCellInfos(d);
18515
- f.col = W, f.row = X;
18498
+ const [X, z] = d.table.getCellInfos(d);
18499
+ f.col = z, f.row = X;
18516
18500
  }
18517
18501
  const p = {
18518
18502
  customProperties: "",
@@ -18532,27 +18516,27 @@ class TableNode extends RectNode {
18532
18516
  let y = this.rowInfos.length - 1, w = this.colInfos.length - 1;
18533
18517
  r && (y = f.row, w = f.col, d.colSpan > 1 && (w = f.col + d.colSpan - 1));
18534
18518
  for (let X = u.row; X <= y; X++) {
18535
- const W = this.rowInfos[X], J = {
18536
- customProperties: { customProperty: Array(W.rowProperty.customProperties) },
18519
+ const z = this.rowInfos[X], J = {
18520
+ customProperties: { customProperty: Array(z.rowProperty.customProperties) },
18537
18521
  //dataSource: rowInfo.rowProperty.dataSource,
18538
- forcedPageBreak: W.rowProperty.forcedPageBreak,
18522
+ forcedPageBreak: z.rowProperty.forcedPageBreak,
18539
18523
  //isAutoRaiseHeight: rowInfo.rowProperty.isAutoRaiseHeight,
18540
- isSpecifyHeight: W.rowProperty.isSpecifyHeight,
18541
- printCellBg: W.rowProperty.printCellBg,
18542
- printCellBorders: W.rowProperty.printCellBorders,
18543
- repeatAsTitleAtPageTop: W.rowProperty.repeatAsTitleAtPageTop,
18544
- rowHeight: W.rowProperty.rowHeight,
18545
- sameLineCanAcrossPages: W.rowProperty.sameLineCanAcrossPages,
18546
- tabKeyInsNewLine: W.rowProperty.tabKeyInsNewLine,
18547
- isLockRowHeight: W.rowProperty.isLockRowHeight,
18548
- newLineWithCellContent: W.rowProperty.newLineWithCellContent,
18549
- withFormula: W.rowProperty.withFormula,
18550
- isSignLock: W.rowProperty.isSignLock
18524
+ isSpecifyHeight: z.rowProperty.isSpecifyHeight,
18525
+ printCellBg: z.rowProperty.printCellBg,
18526
+ printCellBorders: z.rowProperty.printCellBorders,
18527
+ repeatAsTitleAtPageTop: z.rowProperty.repeatAsTitleAtPageTop,
18528
+ rowHeight: z.rowProperty.rowHeight,
18529
+ sameLineCanAcrossPages: z.rowProperty.sameLineCanAcrossPages,
18530
+ tabKeyInsNewLine: z.rowProperty.tabKeyInsNewLine,
18531
+ isLockRowHeight: z.rowProperty.isLockRowHeight,
18532
+ newLineWithCellContent: z.rowProperty.newLineWithCellContent,
18533
+ withFormula: z.rowProperty.withFormula,
18534
+ isSignLock: z.rowProperty.isSignLock
18551
18535
  }, ae = JSON.parse(JSON.stringify(J)), Ce = Object.keys(p);
18552
18536
  for (let me = 0; me < Ce.length; me++)
18553
- Ce[me] === "customProperties" ? W.rowProperty.customProperties.length === 0 && delete ae.customProperties : ae[Ce[me]] === m[Ce[me]] && delete ae[Ce[me]];
18537
+ Ce[me] === "customProperties" ? z.rowProperty.customProperties.length === 0 && delete ae.customProperties : ae[Ce[me]] === m[Ce[me]] && delete ae[Ce[me]];
18554
18538
  const oe = {
18555
- rowHeight: W.rowHeight
18539
+ rowHeight: z.rowHeight
18556
18540
  //heightFixed: rowInfo.heightFixed,
18557
18541
  //rowBaseDTop: rowInfo.rowBaseDTop,
18558
18542
  //rowProperty: rowPropertyJson
@@ -18574,31 +18558,31 @@ class TableNode extends RectNode {
18574
18558
  addWithDefaultValue: !1
18575
18559
  }, C = JSON.parse(JSON.stringify(v)), _ = new Array();
18576
18560
  for (let X = u.col; X <= w; X++) {
18577
- const W = this.colInfos[X], G = { customProperty: Array(W.colProperty.customProperties) }, J = {
18578
- editorProperty: EditorProperty[W.colProperty.editorProperty],
18579
- align: VAlign[W.colProperty.align],
18580
- width: W.colProperty.width ? W.colProperty.width : 0,
18581
- specifyWidth: W.colProperty.isSpecifyWidth,
18582
- downListProperty: W.colProperty.downListProperty,
18583
- dateTimeProperty: W.colProperty.dateTimeProperty,
18584
- numberProperty: W.colProperty.numberProperty,
18585
- signProperty: W.colProperty.signProperty,
18561
+ const z = this.colInfos[X], G = { customProperty: Array(z.colProperty.customProperties) }, J = {
18562
+ editorProperty: EditorProperty[z.colProperty.editorProperty],
18563
+ align: VAlign[z.colProperty.align],
18564
+ width: z.colProperty.width ? z.colProperty.width : 0,
18565
+ specifyWidth: z.colProperty.isSpecifyWidth,
18566
+ downListProperty: z.colProperty.downListProperty,
18567
+ dateTimeProperty: z.colProperty.dateTimeProperty,
18568
+ numberProperty: z.colProperty.numberProperty,
18569
+ signProperty: z.colProperty.signProperty,
18586
18570
  //customProperties: colInfo.colProperty.customProperties
18587
- isSignLock: W.colProperty.isSignLock,
18588
- isLock: W.colProperty.isLock,
18589
- addWithDefaultValue: W.colProperty.addWithDefaultValue,
18571
+ isSignLock: z.colProperty.isSignLock,
18572
+ isLock: z.colProperty.isLock,
18573
+ addWithDefaultValue: z.colProperty.addWithDefaultValue,
18590
18574
  customProperties: G
18591
18575
  }, ae = JSON.parse(JSON.stringify(J)), Ce = Object.keys(v);
18592
- (W.colProperty.customProperties.length === 0 || W.colProperty.customProperties[0].length === 0) && delete ae.customProperties;
18576
+ (z.colProperty.customProperties.length === 0 || z.colProperty.customProperties[0].length === 0) && delete ae.customProperties;
18593
18577
  for (let me = 0; me < Ce.length; me++)
18594
18578
  ae[Ce[me]] === C[Ce[me]] && delete ae[Ce[me]];
18595
18579
  const oe = {
18596
- colWidth: W.colWidth
18580
+ colWidth: z.colWidth
18597
18581
  //widthFixed: colInfo.widthFixed,
18598
18582
  //dLeft: colInfo.dLeft,
18599
18583
  //colProperty: colPropertyJson
18600
18584
  };
18601
- W.widthFixed && (oe.widthFixed = W.widthFixed), W.dLeft > 0 && (oe.dLeft = W.dLeft), Object.keys(ae).length > 0 && (oe.colProperty = ae), _.push(oe);
18585
+ z.widthFixed && (oe.widthFixed = z.widthFixed), z.dLeft > 0 && (oe.dLeft = z.dLeft), Object.keys(ae).length > 0 && (oe.colProperty = ae), _.push(oe);
18602
18586
  }
18603
18587
  const D = {
18604
18588
  //title: "",
@@ -18626,7 +18610,7 @@ class TableNode extends RectNode {
18626
18610
  formula: ""
18627
18611
  }, E = JSON.parse(JSON.stringify(D)), T = new Array(), I = new Array();
18628
18612
  for (let X = u.row; X <= y; X++) {
18629
- const W = this.rows[X];
18613
+ const z = this.rows[X];
18630
18614
  let G = "";
18631
18615
  r ? G = "item" : G = "CellNode";
18632
18616
  const J = {
@@ -18636,7 +18620,7 @@ class TableNode extends RectNode {
18636
18620
  }, ae = { base: {}, childNodes: Array() };
18637
18621
  T.push(J), I.push(ae);
18638
18622
  for (let Ce = u.col; Ce <= w; Ce++) {
18639
- const oe = W[Ce];
18623
+ const oe = z[Ce];
18640
18624
  if (oe) {
18641
18625
  const me = oe.node2Json(s, r, o, n, E);
18642
18626
  ae.base = JSON.parse(JSON.stringify(me)), me.rowNo = X - u.row, me.colNo = Ce - u.col, r ? J.childNodes.item.push(me) : J.childNodes.CellNode.push(me), J.rowNo = X;
@@ -18645,9 +18629,9 @@ class TableNode extends RectNode {
18645
18629
  }
18646
18630
  }
18647
18631
  for (let X = 0; X < T.length; X++) {
18648
- const W = T[X].childNodes;
18649
- for (let G = 0; G < W.length; G++)
18650
- W[G].rowSpan != 1 && (W[G].rowSpan = Math.min(W[G].rowSpan, W.length - W[G].rowNo)), W[G].colSpan != 1 && (W[G].colSpan = Math.min(W[G].colSpan, W.length - W[G].colNo));
18632
+ const z = T[X].childNodes;
18633
+ for (let G = 0; G < z.length; G++)
18634
+ z[G].rowSpan != 1 && (z[G].rowSpan = Math.min(z[G].rowSpan, z.length - z[G].rowNo)), z[G].colSpan != 1 && (z[G].colSpan = Math.min(z[G].colSpan, z.length - z[G].colNo));
18651
18635
  }
18652
18636
  const M = { item: g }, k = { item: _ }, L = { item: T }, H = { customProperty: Array(this.tableProperty.customProperties) }, B = M.item.length, Y = k.item.length, j = {};
18653
18637
  this.tableProperty.canAdjustRowHeight && (j.canAdjustRowHeight = this.tableProperty.canAdjustRowHeight), this.tableProperty.canAdjustRowWidth && (j.canAdjustRowWidth = this.tableProperty.canAdjustRowWidth), this.tableProperty.canAddRow || (j.canAddRow = this.tableProperty.canAddRow), this.tableProperty.canAddCol === !1 && (j.canAddCol = this.tableProperty.canAddCol), this.tableProperty.canDeleteRow || (j.canDeleteRow = this.tableProperty.canDeleteRow), this.tableProperty.canDelTable || (j.canDelTable = this.tableProperty.canDelTable), this.tableProperty.continuePrintBorders && (j.continuePrintBorders = this.tableProperty.continuePrintBorders), this.tableProperty.isAutoChangeLine && (j.isAutoChangeLine = this.tableProperty.isAutoChangeLine), this.tableProperty.autoLineHeight.toString() !== "0.53" && (j.autoLineHeight = Number(this.tableProperty.autoLineHeight)), this.tableProperty.fixedOnePage && (j.fixedOnePage = this.tableProperty.fixedOnePage), this.tableProperty.isUsePopEdit && (j.isUsePopEdit = this.tableProperty.isUsePopEdit), this.tableProperty.isSignLock && (j.isSignLock = this.tableProperty.isSignLock), this.tableProperty.isLock && (j.isLock = this.tableProperty.isLock), this.tableProperty.addRowByOrder && (j.addRowByOrder = this.tableProperty.addRowByOrder), this.tableProperty.customProperties.length > 0 && this.tableProperty.customProperties[0] && (j.customProperties = H), j.id = this.tableProperty.id;
@@ -27584,7 +27568,6 @@ class PrintStatus {
27584
27568
  }
27585
27569
  class Print {
27586
27570
  static openDataUriInWindow(t, r, o, n, s, l) {
27587
- var d, u;
27588
27571
  if (window.emrPrintHandler) {
27589
27572
  n ? (t.autoPrint(), window.emrPrintHandler({
27590
27573
  code: 200,
@@ -27601,17 +27584,17 @@ class Print {
27601
27584
  }
27602
27585
  if (navigator && navigator.userAgent.toLowerCase().indexOf("electron") !== -1) {
27603
27586
  var c = "<html><title>" + r + '</title><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="' + t.output("bloburl") + '"></iframe></body></html>';
27604
- const f = window.open("", "modal", "width=" + (o + 400) + ",height=800");
27605
- f && f.document.write(c);
27587
+ const d = window.open("", "modal", "width=" + (o + 400) + ",height=800");
27588
+ d && d.document.write(c);
27606
27589
  } else
27607
27590
  try {
27608
27591
  if (window.localStorage.getItem("specialPrint") == "1") {
27609
- document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPageV2(t).catch((p) => {
27592
+ document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPageV2(t).catch((u) => {
27610
27593
  t.autoPrint(), t.output("dataurlnewwindow");
27611
27594
  });
27612
27595
  return;
27613
27596
  }
27614
- (u = (d = window.top) == null ? void 0 : d.chrome) != null && u.webview && n ? window.top.chrome.webview.postMessage({
27597
+ n ? window.top.chrome.webview.postMessage({
27615
27598
  exec: "printpdf",
27616
27599
  data: {
27617
27600
  // showsetup: true, // 是否显示打印设置
@@ -27620,11 +27603,11 @@ class Print {
27620
27603
  paperSize: l == null ? void 0 : l.toUpperCase(),
27621
27604
  base64: t.output("datauristring").replace(/^data:application\/pdf;filename=generated.pdf;base64,/, "")
27622
27605
  }
27623
- }) : (document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPage(t).catch((p) => {
27606
+ }) : (document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPage(t).catch((u) => {
27624
27607
  t.autoPrint(), t.output("dataurlnewwindow");
27625
27608
  }));
27626
27609
  } catch {
27627
- document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPage(t).catch((p) => {
27610
+ document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPage(t).catch((u) => {
27628
27611
  t.autoPrint(), t.output("dataurlnewwindow");
27629
27612
  });
27630
27613
  }
@@ -27699,7 +27682,7 @@ class Print {
27699
27682
  * 打印到PDF文件
27700
27683
  */
27701
27684
  static async printToPDF(t, r, o, n, s, l, c, d) {
27702
- var _, D, E, T, I, M, k, L, H, B, Y, j, U, X, W;
27685
+ var _, D, E, T, I, M, k, L, H, B, Y, j, U, X, z;
27703
27686
  const u = HOEditorFactorys.instance().getFactory(t);
27704
27687
  if (u.drawTree.drawPages.length < u.startPageNum) {
27705
27688
  message.warn(i18nHelper("04-001-009-EMR.3.3.485", null, "病程记录已打印文件有删除、内容减少或者新起一页打印参数变更,导致已记录的打印位置错误无法使用,请用重打进行打印或者删除所有打印记录后续打")), s && s(null);
@@ -27759,7 +27742,7 @@ class Print {
27759
27742
  const me = oe == null ? void 0 : oe.getSvg();
27760
27743
  me && (f == null || f.appendChild(me)), oe = null;
27761
27744
  }
27762
- G > 0 && J.drawDomLevel && ((W = J.drawDomLevel.stage) == null || W.removeAllChildren(), J.drawDomLevel.clearStage());
27745
+ G > 0 && J.drawDomLevel && ((z = J.drawDomLevel.stage) == null || z.removeAllChildren(), J.drawDomLevel.clearStage());
27763
27746
  }
27764
27747
  if (u.printStatus.printRange !== 1 && u.printStatus.recordLastPosByPageIndex(w), u.printStatus.DrawPrintRange().PrintOver(), l || u.startPageNum !== 0 && l !== void 0) {
27765
27748
  const G = u.printStatus.printRecord.last();
@@ -31824,9 +31807,9 @@ class DocTree {
31824
31807
  if (t === "up") {
31825
31808
  if (Y === I.startRow && Y !== 0 && j > 0) {
31826
31809
  T = o.drawTree.drawPages[j - 1], E = o.drawPageTree.drawMainDocs[j - 1], M = L[H - 1];
31827
- const W = M.dHeight;
31828
- k = M.getDrawPageCellByPos(_.x, W);
31829
- const G = M.localToGlobal(_.x, W), J = o.drawTree.getStagePosition(T, k, G.x, G.y);
31810
+ const z = M.dHeight;
31811
+ k = M.getDrawPageCellByPos(_.x, z);
31812
+ const G = M.localToGlobal(_.x, z), J = o.drawTree.getStagePosition(T, k, G.x, G.y);
31830
31813
  if (J)
31831
31814
  return D = J.path, D;
31832
31815
  }
@@ -31834,15 +31817,15 @@ class DocTree {
31834
31817
  } else if (Y === I.endRow && Y !== I.table.rowCount - 1) {
31835
31818
  if (j < o.drawTree.drawPages.length - 1) {
31836
31819
  T = o.drawTree.drawPages[j + 1], E = o.drawPageTree.drawMainDocs[j + 1], M = L[H + 1], k = M.getDrawPageCellByPos(_.x, 0);
31837
- const W = M.localToGlobal(_.x, 0), G = o.drawTree.getStagePosition(T, k, W.x, W.y);
31820
+ const z = M.localToGlobal(_.x, 0), G = o.drawTree.getStagePosition(T, k, z.x, z.y);
31838
31821
  if (G)
31839
31822
  return D = G.path, D;
31840
31823
  }
31841
31824
  } else if (Y === I.endRow && Y === I.table.rowCount - 1)
31842
31825
  I === E.bottomDline ? (T = o.drawTree.drawPages[j + 1], E = o.drawPageTree.drawMainDocs[j + 1], B = -E.dHeight) : B = c.dHeight + c.paragraphNode.combineParagraph.lineSpace + 11;
31843
31826
  else {
31844
- let W = 0;
31845
- _.cell.cellProperty.align == 1 ? W = _.dHeight / 2 + 10 : W = _.dHeight, B = W - c.dTop + c.paragraphNode.combineParagraph.lineSpace + 11;
31827
+ let z = 0;
31828
+ _.cell.cellProperty.align == 1 ? z = _.dHeight / 2 + 10 : z = _.dHeight, B = z - c.dTop + c.paragraphNode.combineParagraph.lineSpace + 11;
31846
31829
  }
31847
31830
  const U = c.localToGlobal(p, B), X = o.drawTree.getStagePosition(
31848
31831
  T,
@@ -33281,11 +33264,11 @@ var script$2 = {
33281
33264
  H.end += j;
33282
33265
  }
33283
33266
  if (r === null) {
33284
- let j, U = 0, X = u - 1, W = ~~(u / 2), G;
33267
+ let j, U = 0, X = u - 1, z = ~~(u / 2), G;
33285
33268
  do
33286
- G = W, j = f[W].accumulator, j < H.start ? U = W : W < u - 1 && f[W + 1].accumulator > H.start && (X = W), W = ~~((U + X) / 2);
33287
- while (W !== G);
33288
- for (W < 0 && (W = 0), y = W, v = f[u - 1].accumulator, w = W; w < u && f[w].accumulator < H.end; w++) ;
33269
+ G = z, j = f[z].accumulator, j < H.start ? U = z : z < u - 1 && f[z + 1].accumulator > H.start && (X = z), z = ~~((U + X) / 2);
33270
+ while (z !== G);
33271
+ for (z < 0 && (z = 0), y = z, v = f[u - 1].accumulator, w = z; w < u && f[w].accumulator < H.end; w++) ;
33289
33272
  for (w === -1 ? w = d.length - 1 : (w++, w > u && (w = u)), C = y; C < u && Y + f[C].accumulator < H.start; C++) ;
33290
33273
  for (_ = C; _ < u && Y + f[_].accumulator < H.end; _++) ;
33291
33274
  } else {
@@ -34447,7 +34430,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
34447
34430
  c(S, q) && !c(A, q) && l(S[q]) && (Z[q] = g({}, Z[q]));
34448
34431
  return Z;
34449
34432
  }
34450
- function W(S) {
34433
+ function z(S) {
34451
34434
  S != null && this.set(S);
34452
34435
  }
34453
34436
  var G;
@@ -35211,7 +35194,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
35211
35194
  name: S,
35212
35195
  config: A
35213
35196
  }), null;
35214
- return sr[S] = new W(X(q, A)), vi[S] && vi[S].forEach(function(ce) {
35197
+ return sr[S] = new z(X(q, A)), vi[S] && vi[S].forEach(function(ce) {
35215
35198
  qr(ce.name, ce.config);
35216
35199
  }), wi(S), sr[S];
35217
35200
  } else
@@ -35220,7 +35203,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
35220
35203
  function Ci(S, A) {
35221
35204
  if (A != null) {
35222
35205
  var Z, q, ce = Ni;
35223
- sr[S] != null && sr[S].parentLocale != null ? sr[S].set(X(sr[S]._config, A)) : (q = Ti(S), q != null && (ce = q._config), A = X(ce, A), q == null && (A.abbr = S), Z = new W(A), Z.parentLocale = sr[S], sr[S] = Z), wi(S);
35206
+ sr[S] != null && sr[S].parentLocale != null ? sr[S].set(X(sr[S]._config, A)) : (q = Ti(S), q != null && (ce = q._config), A = X(ce, A), q == null && (A.abbr = S), Z = new z(A), Z.parentLocale = sr[S], sr[S] = Z), wi(S);
35224
35207
  } else
35225
35208
  sr[S] != null && (sr[S].parentLocale != null ? (sr[S] = sr[S].parentLocale, S === wi() && wi(S)) : sr[S] != null && delete sr[S]);
35226
35209
  return sr[S];
@@ -35279,7 +35262,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
35279
35262
  PDT: -7 * 60,
35280
35263
  PST: -8 * 60
35281
35264
  };
35282
- function z(S) {
35265
+ function W(S) {
35283
35266
  var A, Z, q = S._i, ce = Zo.exec(q) || wn.exec(q), Le, $e, Ct, Mt, qt = Si.length, Lr = ro.length;
35284
35267
  if (ce) {
35285
35268
  for (v(S).iso = !0, A = 0, Z = qt; A < Z; A++)
@@ -35376,7 +35359,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
35376
35359
  S._d = /* @__PURE__ */ new Date(+A[1]);
35377
35360
  return;
35378
35361
  }
35379
- if (z(S), S._isValid === !1)
35362
+ if (W(S), S._isValid === !1)
35380
35363
  delete S._isValid;
35381
35364
  else
35382
35365
  return;
@@ -35429,7 +35412,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
35429
35412
  };
35430
35413
  function $t(S) {
35431
35414
  if (S._f === o.ISO_8601) {
35432
- z(S);
35415
+ W(S);
35433
35416
  return;
35434
35417
  }
35435
35418
  if (S._f === o.RFC_2822) {
@@ -36322,7 +36305,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
36322
36305
  function Qn(S) {
36323
36306
  return S;
36324
36307
  }
36325
- var N = W.prototype;
36308
+ var N = z.prototype;
36326
36309
  N.calendar = ae, N.longDateFormat = Pe, N.invalidDate = Ve, N.ordinal = we, N.preparse = Qn, N.postformat = Qn, N.relativeTime = he, N.pastFuture = $, N.set = U, N.eras = fs, N.erasParse = ps, N.erasConvertYear = gs, N.erasAbbrRegex = Ui, N.erasNameRegex = ws, N.erasNarrowRegex = on, N.months = yo, N.monthsShort = ge, N.monthsParse = be, N.monthsRegex = rt, N.monthsShortRegex = it, N.week = hr, N.firstDayOfYear = Pi, N.firstDayOfWeek = kr, N.weekdays = vo, N.weekdaysMin = fn, N.weekdaysShort = mi, N.weekdaysParse = wo, N.weekdaysRegex = Rn, N.weekdaysShortRegex = jo, N.weekdaysMinRegex = gn, N.isPM = $i, N.meridiem = Hn;
36327
36310
  function F(S, A, Z, q) {
36328
36311
  var ce = Qr(), Le = y().set(q, A);
@@ -38226,9 +38209,9 @@ class DrawImageNode extends DrawCombineNode {
38226
38209
  }
38227
38210
  insertImage() {
38228
38211
  const r = this;
38229
- this._imageManager.addImageQueue(this, () => new Promise((o) => {
38212
+ this.imagePath && this._imageManager.addImageQueue(this, () => new Promise((o) => {
38230
38213
  const n = new Image();
38231
- process.env.NODE_ENV !== "production" && !this.imagePath.startsWith("http") && !this.imagePath.startsWith("data:image") ? n.src = "http://192.168.1.211:8088" + this.imagePath : n.src = this.imagePath, this._bitMap = new createjs$1.Bitmap(n);
38214
+ process.env.NODE_ENV !== "production" && !this.imagePath.startsWith("http") && !this.imagePath.startsWith("data:image") ? n.src = "http://192.168.1.211:8088" + this.imagePath : n.src = this.imagePath, n.src = this.imagePath, this._bitMap = new createjs$1.Bitmap(n);
38232
38215
  const s = HOEditorFactorys.instance().getFactory(r.node.hoEditorFactoryID);
38233
38216
  this._bitMap.y = this._imageY, this._bitMap.x = 0, this._bitMap.name = this.node.id;
38234
38217
  const l = new createjs$1.Shape();
@@ -39466,8 +39449,8 @@ class DrawPageTree {
39466
39449
  const j = c.drawPageTable, U = j.table.drawTable.drawPageTables.indexOf(j);
39467
39450
  let X = null;
39468
39451
  U > 0 && (X = j.table.drawTable.drawPageTables[U - 1]);
39469
- let W = j.getMainRestHeight();
39470
- c.drawPageTable.table.drawTable.drawUpdate(Y, X, j.y, W);
39452
+ let z = j.getMainRestHeight();
39453
+ c.drawPageTable.table.drawTable.drawUpdate(Y, X, j.y, z);
39471
39454
  break;
39472
39455
  }
39473
39456
  (C > o || C === o && !c.contains(H)) && (c.addChild(H), H.y = m), m = H.y + H.dHeight + H.paragraphNode.combineParagraph.lineSpace, c.allowAcrossPage && g.allowAcrossPage && (w = c.maxHeight - m);
@@ -40729,7 +40712,7 @@ function requireDom() {
40729
40712
  U.prototype.item = function(ee) {
40730
40713
  return X(this), this[ee] || null;
40731
40714
  }, u(U, j);
40732
- function W() {
40715
+ function z() {
40733
40716
  }
40734
40717
  function G(ee, se) {
40735
40718
  for (var Se = ee.length; Se--; )
@@ -40755,7 +40738,7 @@ function requireDom() {
40755
40738
  } else
40756
40739
  throw new Y(H, new Error(ee.tagName + "@" + Se));
40757
40740
  }
40758
- W.prototype = {
40741
+ z.prototype = {
40759
40742
  length: 0,
40760
40743
  item: j.prototype.item,
40761
40744
  getNamedItem: function(ee) {
@@ -41203,7 +41186,7 @@ function requireDom() {
41203
41186
  createElement: function(ee) {
41204
41187
  var se = new Be();
41205
41188
  se.ownerDocument = this, se.nodeName = ee, se.tagName = ee, se.localName = ee, se.childNodes = new j();
41206
- var Se = se.attributes = new W();
41189
+ var Se = se.attributes = new z();
41207
41190
  return Se._ownerElement = se, se;
41208
41191
  },
41209
41192
  createDocumentFragment: function() {
@@ -41236,7 +41219,7 @@ function requireDom() {
41236
41219
  },
41237
41220
  // Introduced in DOM Level 2:
41238
41221
  createElementNS: function(ee, se) {
41239
- var Se = new Be(), Ue = se.split(":"), Ge = Se.attributes = new W();
41222
+ var Se = new Be(), Ue = se.split(":"), Ge = Se.attributes = new z();
41240
41223
  return Se.childNodes = new j(), Se.ownerDocument = this, Se.nodeName = se, Se.tagName = se, Se.namespaceURI = ee, Ue.length == 2 ? (Se.prefix = Ue[0], Se.localName = Ue[1]) : Se.localName = se, Ge._ownerElement = Se, Se;
41241
41224
  },
41242
41225
  // Introduced in DOM Level 2:
@@ -41548,7 +41531,7 @@ function requireDom() {
41548
41531
  }
41549
41532
  switch (se.childNodes && (Ue.childNodes = new j()), Ue.ownerDocument = ee, Ue.nodeType) {
41550
41533
  case p:
41551
- var Ut = se.attributes, Jt = Ue.attributes = new W(), nr = Ut.length;
41534
+ var Ut = se.attributes, Jt = Ue.attributes = new z(), nr = Ut.length;
41552
41535
  Jt._ownerElement = Ue;
41553
41536
  for (var Et = 0; Et < nr; Et++)
41554
41537
  Ue.setAttributeNode(kt(ee, Ut.item(Et), !0));
@@ -43782,7 +43765,7 @@ function requireSax() {
43782
43765
  var Qe = Be.slice(1, -1);
43783
43766
  return Object.hasOwnProperty.call(B, Qe) ? B[Qe] : Qe.charAt(0) === "#" ? U(parseInt(Qe.substr(1).replace("x", "0x"))) : (j.error("entity not found:" + Be), Be);
43784
43767
  }
43785
- function W(Be) {
43768
+ function z(Be) {
43786
43769
  if (Be > Q) {
43787
43770
  var Qe = L.substring(Q, Be).replace(/&#?\w+;/g, X);
43788
43771
  oe && G(Q), Y.characters(Qe, 0, Be - Q), Q = Be;
@@ -43803,7 +43786,7 @@ function requireSax() {
43803
43786
  }
43804
43787
  return;
43805
43788
  }
43806
- switch (ne > Q && W(ne), L.charAt(ne + 1)) {
43789
+ switch (ne > Q && z(ne), L.charAt(ne + 1)) {
43807
43790
  case "/":
43808
43791
  var we = L.indexOf(">", ne + 3), ve = L.substring(ne + 2, we).replace(/[ \t\n\r]+$/g, ""), _e = me.pop();
43809
43792
  we < 0 ? (ve = L.substring(ne + 2).replace(/[\s<].*/, ""), j.error("end tag name: " + ve + " is not complete:" + _e.tagName), we = ne + 1 + ve.length) : ve.match(/\s</) && (ve = ve.replace(/[\s<].*/, ""), j.error("end tag name: " + ve + " maybe not complete"), we = ne + 1 + ve.length);
@@ -43842,7 +43825,7 @@ function requireSax() {
43842
43825
  throw Be;
43843
43826
  j.error("element parse error: " + Be), we = -1;
43844
43827
  }
43845
- we > Q ? Q = we : W(Math.max(ne, Q) + 1);
43828
+ we > Q ? Q = we : z(Math.max(ne, Q) + 1);
43846
43829
  }
43847
43830
  }
43848
43831
  function w(L, H) {
@@ -43860,12 +43843,12 @@ function requireSax() {
43860
43843
  ue
43861
43844
  );
43862
43845
  }
43863
- for (var W, G, J = ++H, ae = n; ; ) {
43846
+ for (var z, G, J = ++H, ae = n; ; ) {
43864
43847
  var Ce = L.charAt(J);
43865
43848
  switch (Ce) {
43866
43849
  case "=":
43867
43850
  if (ae === s)
43868
- W = L.slice(H, J), ae = c;
43851
+ z = L.slice(H, J), ae = c;
43869
43852
  else if (ae === l)
43870
43853
  ae = c;
43871
43854
  else
@@ -43874,12 +43857,12 @@ function requireSax() {
43874
43857
  case "'":
43875
43858
  case '"':
43876
43859
  if (ae === c || ae === s)
43877
- if (ae === s && (U.warning('attribute value must after "="'), W = L.slice(H, J)), H = J + 1, J = L.indexOf(Ce, H), J > 0)
43878
- G = L.slice(H, J), X(W, G, H - 1), ae = u;
43860
+ if (ae === s && (U.warning('attribute value must after "="'), z = L.slice(H, J)), H = J + 1, J = L.indexOf(Ce, H), J > 0)
43861
+ G = L.slice(H, J), X(z, G, H - 1), ae = u;
43879
43862
  else
43880
43863
  throw new Error("attribute value no end '" + Ce + "' match");
43881
43864
  else if (ae == d)
43882
- G = L.slice(H, J), X(W, G, H), U.warning('attribute "' + W + '" missed start quot(' + Ce + ")!!"), H = J + 1, ae = u;
43865
+ G = L.slice(H, J), X(z, G, H), U.warning('attribute "' + z + '" missed start quot(' + Ce + ")!!"), H = J + 1, ae = u;
43883
43866
  else
43884
43867
  throw new Error('attribute value must after "="');
43885
43868
  break;
@@ -43918,7 +43901,7 @@ function requireSax() {
43918
43901
  case s:
43919
43902
  G = L.slice(H, J), G.slice(-1) === "/" && (B.closed = !0, G = G.slice(0, -1));
43920
43903
  case l:
43921
- ae === l && (G = W), ae == d ? (U.warning('attribute "' + G + '" missed quot(")!'), X(W, G, H)) : ((!a.isHTML(Y[""]) || !G.match(/^(?:disabled|checked|selected)$/i)) && U.warning('attribute "' + G + '" missed value!! "' + G + '" instead!!'), X(G, G, H));
43904
+ ae === l && (G = z), ae == d ? (U.warning('attribute "' + G + '" missed quot(")!'), X(z, G, H)) : ((!a.isHTML(Y[""]) || !G.match(/^(?:disabled|checked|selected)$/i)) && U.warning('attribute "' + G + '" missed value!! "' + G + '" instead!!'), X(G, G, H));
43922
43905
  break;
43923
43906
  case c:
43924
43907
  throw new Error("attribute value missed!!");
@@ -43934,11 +43917,11 @@ function requireSax() {
43934
43917
  B.setTagName(L.slice(H, J)), ae = f;
43935
43918
  break;
43936
43919
  case s:
43937
- W = L.slice(H, J), ae = l;
43920
+ z = L.slice(H, J), ae = l;
43938
43921
  break;
43939
43922
  case d:
43940
43923
  var G = L.slice(H, J);
43941
- U.warning('attribute "' + G + '" missed quot(")!!'), X(W, G, H);
43924
+ U.warning('attribute "' + G + '" missed quot(")!!'), X(z, G, H);
43942
43925
  case u:
43943
43926
  ae = f;
43944
43927
  break;
@@ -43949,10 +43932,10 @@ function requireSax() {
43949
43932
  //case S_ATTR:void();break;
43950
43933
  //case S_ATTR_NOQUOT_VALUE:void();break;
43951
43934
  case l:
43952
- B.tagName, (!a.isHTML(Y[""]) || !W.match(/^(?:disabled|checked|selected)$/i)) && U.warning('attribute "' + W + '" missed value!! "' + W + '" instead2!!'), X(W, W, H), H = J, ae = s;
43935
+ B.tagName, (!a.isHTML(Y[""]) || !z.match(/^(?:disabled|checked|selected)$/i)) && U.warning('attribute "' + z + '" missed value!! "' + z + '" instead2!!'), X(z, z, H), H = J, ae = s;
43953
43936
  break;
43954
43937
  case u:
43955
- U.warning('attribute space is required"' + W + '"!!');
43938
+ U.warning('attribute space is required"' + z + '"!!');
43956
43939
  case f:
43957
43940
  ae = s, H = J;
43958
43941
  break;
@@ -43968,12 +43951,12 @@ function requireSax() {
43968
43951
  }
43969
43952
  function C(L, H, B) {
43970
43953
  for (var Y = L.tagName, j = null, Ce = L.length; Ce--; ) {
43971
- var U = L[Ce], X = U.qName, W = U.value, oe = X.indexOf(":");
43954
+ var U = L[Ce], X = U.qName, z = U.value, oe = X.indexOf(":");
43972
43955
  if (oe > 0)
43973
43956
  var G = U.prefix = X.slice(0, oe), J = X.slice(oe + 1), ae = G === "xmlns" && J;
43974
43957
  else
43975
43958
  J = X, G = null, ae = X === "xmlns" && "";
43976
- U.localName = J, ae !== !1 && (j == null && (j = {}, E(B, B = {})), B[ae] = j[ae] = W, U.uri = a.XMLNS, H.startPrefixMapping(ae, W));
43959
+ U.localName = J, ae !== !1 && (j == null && (j = {}, E(B, B = {})), B[ae] = j[ae] = z, U.uri = a.XMLNS, H.startPrefixMapping(ae, z));
43977
43960
  }
43978
43961
  for (var Ce = L.length; Ce--; ) {
43979
43962
  U = L[Ce];
@@ -44020,11 +44003,11 @@ function requireSax() {
44020
44003
  var U = L.indexOf("]]>", H + 9);
44021
44004
  return B.startCDATA(), B.characters(L, H + 9, U - H - 9), B.endCDATA(), U + 3;
44022
44005
  }
44023
- var X = k(L, H), W = X.length;
44024
- if (W > 1 && /!doctype/i.test(X[0][0])) {
44006
+ var X = k(L, H), z = X.length;
44007
+ if (z > 1 && /!doctype/i.test(X[0][0])) {
44025
44008
  var G = X[1][0], J = !1, ae = !1;
44026
- W > 3 && (/^public$/i.test(X[2][0]) ? (J = X[3][0], ae = W > 4 && X[4][0]) : /^system$/i.test(X[2][0]) && (ae = X[3][0]));
44027
- var Ce = X[W - 1];
44009
+ z > 3 && (/^public$/i.test(X[2][0]) ? (J = X[3][0], ae = z > 4 && X[4][0]) : /^system$/i.test(X[2][0]) && (ae = X[3][0]));
44010
+ var Ce = X[z - 1];
44028
44011
  return B.startDTD(G, J, ae), B.endDTD(), Ce.index + Ce[0].length;
44029
44012
  }
44030
44013
  }
@@ -44247,14 +44230,14 @@ function requireX2js() {
44247
44230
  }
44248
44231
  function l() {
44249
44232
  function U(X) {
44250
- var W = String(X);
44251
- return W.length === 1 && (W = "0" + W), W;
44233
+ var z = String(X);
44234
+ return z.length === 1 && (z = "0" + z), z;
44252
44235
  }
44253
44236
  typeof String.prototype.trim != "function" && (String.prototype.trim = function() {
44254
44237
  return this.replace(/^\s+|^\n+|(\s|\n)+$/g, "");
44255
44238
  }), typeof Date.prototype.toISOString != "function" && (Date.prototype.toISOString = function() {
44256
- var W = 1e3;
44257
- return this.getUTCFullYear() + "-" + U(this.getUTCMonth() + 1) + "-" + U(this.getUTCDate()) + "T" + U(this.getUTCHours()) + ":" + U(this.getUTCMinutes()) + ":" + U(this.getUTCSeconds()) + "." + String((this.getUTCMilliseconds() / W).toFixed(3)).slice(2, 5) + "Z";
44239
+ var z = 1e3;
44240
+ return this.getUTCFullYear() + "-" + U(this.getUTCMonth() + 1) + "-" + U(this.getUTCDate()) + "T" + U(this.getUTCHours()) + ":" + U(this.getUTCMinutes()) + ":" + U(this.getUTCSeconds()) + "." + String((this.getUTCMilliseconds() / z).toFixed(3)).slice(2, 5) + "Z";
44258
44241
  });
44259
44242
  }
44260
44243
  s(), l();
@@ -44278,7 +44261,7 @@ function requireX2js() {
44278
44261
  function p(U) {
44279
44262
  return U.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&#x27;/g, "'").replace(/&amp;/g, "&");
44280
44263
  }
44281
- function m(U, X, W) {
44264
+ function m(U, X, z) {
44282
44265
  switch (o.arrayAccessForm) {
44283
44266
  case "property":
44284
44267
  U[X] instanceof Array ? U[X + "_asArray"] = U[X] : U[X + "_asArray"] = [U[X]];
@@ -44288,16 +44271,16 @@ function requireX2js() {
44288
44271
  for (var G = !1, J = 0; J < o.arrayAccessFormPaths.length; J++) {
44289
44272
  var ae = o.arrayAccessFormPaths[J];
44290
44273
  if (typeof ae == "string") {
44291
- if (ae === W) {
44274
+ if (ae === z) {
44292
44275
  G = !0;
44293
44276
  break;
44294
44277
  }
44295
44278
  } else if (ae instanceof RegExp) {
44296
- if (ae.test(W)) {
44279
+ if (ae.test(z)) {
44297
44280
  G = !0;
44298
44281
  break;
44299
44282
  }
44300
- } else if (typeof ae == "function" && ae(X, W)) {
44283
+ } else if (typeof ae == "function" && ae(X, z)) {
44301
44284
  G = !0;
44302
44285
  break;
44303
44286
  }
@@ -44306,16 +44289,16 @@ function requireX2js() {
44306
44289
  }
44307
44290
  }
44308
44291
  function g(U) {
44309
- var X = 60, W = U.split(/[-T:+Z]/g), G = new Date(W[0], W[1] - 1, W[2]), J = W[5].split(".");
44310
- if (G.setHours(W[3], W[4], J[0]), J.length > 1 && G.setMilliseconds(J[1]), W[6] && W[7]) {
44311
- var ae = W[6] * X + Number(W[7]), Ce = /\d\d-\d\d:\d\d$/.test(U) ? "-" : "+";
44292
+ var X = 60, z = U.split(/[-T:+Z]/g), G = new Date(z[0], z[1] - 1, z[2]), J = z[5].split(".");
44293
+ if (G.setHours(z[3], z[4], J[0]), J.length > 1 && G.setMilliseconds(J[1]), z[6] && z[7]) {
44294
+ var ae = z[6] * X + Number(z[7]), Ce = /\d\d-\d\d:\d\d$/.test(U) ? "-" : "+";
44312
44295
  ae = 0 + (Ce === "-" ? -1 * ae : ae), G.setMinutes(G.getMinutes() - ae - G.getTimezoneOffset());
44313
44296
  } else U.indexOf("Z", U.length - 1) !== -1 && (G = new Date(Date.UTC(G.getFullYear(), G.getMonth(), G.getDate(), G.getHours(), G.getMinutes(), G.getSeconds(), G.getMilliseconds())));
44314
44297
  return G;
44315
44298
  }
44316
- function y(U, X, W) {
44299
+ function y(U, X, z) {
44317
44300
  if (o.datetimeAccessFormPaths.length > 0)
44318
- for (var G = W.split(".#")[0], J = 0; J < o.datetimeAccessFormPaths.length; J++) {
44301
+ for (var G = z.split(".#")[0], J = 0; J < o.datetimeAccessFormPaths.length; J++) {
44319
44302
  var ae = o.datetimeAccessFormPaths[J];
44320
44303
  if (typeof ae == "string") {
44321
44304
  if (ae === G)
@@ -44329,8 +44312,8 @@ function requireX2js() {
44329
44312
  return U;
44330
44313
  }
44331
44314
  function w(U) {
44332
- for (var X = {}, W = U.childNodes, G = 0; G < W.length; G++) {
44333
- var J = W.item(G);
44315
+ for (var X = {}, z = U.childNodes, G = 0; G < z.length; G++) {
44316
+ var J = z.item(G);
44334
44317
  if (J.nodeType === c.ELEMENT_NODE) {
44335
44318
  var ae = d(J);
44336
44319
  o.ignoreRoot ? X = C(J, ae) : X[ae] = C(J, ae);
@@ -44339,35 +44322,35 @@ function requireX2js() {
44339
44322
  return X;
44340
44323
  }
44341
44324
  function v(U, X) {
44342
- var W = {};
44343
- W.__cnt = 0;
44325
+ var z = {};
44326
+ z.__cnt = 0;
44344
44327
  for (var G = U.childNodes, J = 0; J < G.length; J++) {
44345
44328
  var ae = G.item(J), Ce = d(ae);
44346
- ae.nodeType !== c.COMMENT_NODE && (W.__cnt++, W[Ce] == null ? (W[Ce] = C(ae, X + "." + Ce), m(W, Ce, X + "." + Ce)) : (W[Ce] instanceof Array || (W[Ce] = [W[Ce]], m(W, Ce, X + "." + Ce)), W[Ce][W[Ce].length] = C(ae, X + "." + Ce)));
44329
+ ae.nodeType !== c.COMMENT_NODE && (z.__cnt++, z[Ce] == null ? (z[Ce] = C(ae, X + "." + Ce), m(z, Ce, X + "." + Ce)) : (z[Ce] instanceof Array || (z[Ce] = [z[Ce]], m(z, Ce, X + "." + Ce)), z[Ce][z[Ce].length] = C(ae, X + "." + Ce)));
44347
44330
  }
44348
44331
  for (var oe = 0; oe < U.attributes.length; oe++) {
44349
44332
  var me = U.attributes.item(oe);
44350
- W.__cnt++;
44333
+ z.__cnt++;
44351
44334
  for (var ue = me.value, Q = 0; Q < o.attributeConverters.length; Q++) {
44352
44335
  var ne = o.attributeConverters[Q];
44353
44336
  ne.test.call(null, me.name, me.value) && (ue = ne.convert.call(null, me.name, me.value));
44354
44337
  }
44355
- W[o.attributePrefix + me.name] = ue;
44338
+ z[o.attributePrefix + me.name] = ue;
44356
44339
  }
44357
44340
  var xe = u(U);
44358
- return xe && (W.__cnt++, W.__prefix = xe), W["#text"] && (W.__text = W["#text"], W.__text instanceof Array && (W.__text = W.__text.join(`
44359
- `)), o.escapeMode && (W.__text = p(W.__text)), o.stripWhitespaces && (W.__text = W.__text.trim()), delete W["#text"], o.arrayAccessForm === "property" && delete W["#text_asArray"], W.__text = y(W.__text, "#text", X + ".#text")), W.hasOwnProperty("#cdata-section") && (W.__cdata = W["#cdata-section"], delete W["#cdata-section"], o.arrayAccessForm === "property" && delete W["#cdata-section_asArray"]), W.__cnt === 1 && W.__text && !o.keepText ? W = W.__text : W.__cnt === 0 && o.emptyNodeForm === "text" ? W = "" : W.__cnt > 1 && W.__text !== void 0 && o.skipEmptyTextNodesForObj && (o.stripWhitespaces && W.__text === "" || W.__text.trim() === "") && delete W.__text, delete W.__cnt, !o.keepCData && !W.hasOwnProperty("__text") && W.hasOwnProperty("__cdata") && Object.keys(W).length === 1 ? W.__cdata ? W.__cdata : "" : (o.enableToStringFunc && (W.__text || W.__cdata) && (W.toString = function() {
44341
+ return xe && (z.__cnt++, z.__prefix = xe), z["#text"] && (z.__text = z["#text"], z.__text instanceof Array && (z.__text = z.__text.join(`
44342
+ `)), o.escapeMode && (z.__text = p(z.__text)), o.stripWhitespaces && (z.__text = z.__text.trim()), delete z["#text"], o.arrayAccessForm === "property" && delete z["#text_asArray"], z.__text = y(z.__text, "#text", X + ".#text")), z.hasOwnProperty("#cdata-section") && (z.__cdata = z["#cdata-section"], delete z["#cdata-section"], o.arrayAccessForm === "property" && delete z["#cdata-section_asArray"]), z.__cnt === 1 && z.__text && !o.keepText ? z = z.__text : z.__cnt === 0 && o.emptyNodeForm === "text" ? z = "" : z.__cnt > 1 && z.__text !== void 0 && o.skipEmptyTextNodesForObj && (o.stripWhitespaces && z.__text === "" || z.__text.trim() === "") && delete z.__text, delete z.__cnt, !o.keepCData && !z.hasOwnProperty("__text") && z.hasOwnProperty("__cdata") && Object.keys(z).length === 1 ? z.__cdata ? z.__cdata : "" : (o.enableToStringFunc && (z.__text || z.__cdata) && (z.toString = function() {
44360
44343
  return (this.__text ? this.__text : "") + (this.__cdata ? this.__cdata : "");
44361
- }), W);
44344
+ }), z);
44362
44345
  }
44363
44346
  function C(U, X) {
44364
44347
  return U.nodeType === c.DOCUMENT_NODE ? w(U) : U.nodeType === c.ELEMENT_NODE ? v(U, X) : U.nodeType === c.TEXT_NODE || U.nodeType === c.CDATA_SECTION_NODE ? U.nodeValue : null;
44365
44348
  }
44366
- function _(U, X, W, G) {
44349
+ function _(U, X, z, G) {
44367
44350
  var J = "<" + (U && U.__prefix ? U.__prefix + ":" : "") + X;
44368
- if (W)
44369
- for (var ae = 0; ae < W.length; ae++) {
44370
- var Ce = W[ae], oe = U[Ce];
44351
+ if (z)
44352
+ for (var ae = 0; ae < z.length; ae++) {
44353
+ var Ce = z[ae], oe = U[Ce];
44371
44354
  o.escapeMode && (oe = f(oe)), J += " " + Ce.substr(o.attributePrefix.length) + "=", o.useDoubleQuotes ? J += '"' + oe + '"' : J += "'" + oe + "'";
44372
44355
  }
44373
44356
  return G ? J += " />" : J += ">", J;
@@ -44384,15 +44367,15 @@ function requireX2js() {
44384
44367
  function I(U) {
44385
44368
  var X = 0;
44386
44369
  if (U instanceof Object)
44387
- for (var W in U)
44388
- T(U, W) || X++;
44370
+ for (var z in U)
44371
+ T(U, z) || X++;
44389
44372
  return X;
44390
44373
  }
44391
44374
  function M(U) {
44392
44375
  var X = [];
44393
44376
  if (U instanceof Object)
44394
- for (var W in U)
44395
- W.toString().indexOf("__") === -1 && W.toString().indexOf(o.attributePrefix) === 0 && X.push(W);
44377
+ for (var z in U)
44378
+ z.toString().indexOf("__") === -1 && z.toString().indexOf(o.attributePrefix) === 0 && X.push(z);
44396
44379
  return X;
44397
44380
  }
44398
44381
  function k(U) {
@@ -44403,37 +44386,37 @@ function requireX2js() {
44403
44386
  var X = "";
44404
44387
  return U instanceof Object ? X += k(U) : U !== null && (o.escapeMode ? X += f(U) : X += U), X;
44405
44388
  }
44406
- function H(U, X, W) {
44389
+ function H(U, X, z) {
44407
44390
  var G = "";
44408
44391
  if (U.length === 0)
44409
- G += _(U, X, W, !0);
44392
+ G += _(U, X, z, !0);
44410
44393
  else
44411
44394
  for (var J = 0; J < U.length; J++)
44412
44395
  G += B(U[J], X, M(U[J]));
44413
44396
  return G;
44414
44397
  }
44415
- function B(U, X, W) {
44398
+ function B(U, X, z) {
44416
44399
  var G = "";
44417
44400
  if (o.jsAttributeFilter && o.jsAttributeFilter.call(null, X, U))
44418
44401
  return G;
44419
44402
  if (o.jsAttributeConverter && (U = o.jsAttributeConverter.call(null, X, U)), (U == null || U === "") && o.selfClosingElements)
44420
- G += _(U, X, W, !0);
44403
+ G += _(U, X, z, !0);
44421
44404
  else if (typeof U == "object")
44422
44405
  if (Object.prototype.toString.call(U) === "[object Array]")
44423
- G += H(U, X, W);
44406
+ G += H(U, X, z);
44424
44407
  else if (U instanceof Date)
44425
- G += _(U, X, W, !1), G += o.jsDateUTC ? U.toUTCString() : U.toISOString(), G += D(U, X);
44408
+ G += _(U, X, z, !1), G += o.jsDateUTC ? U.toUTCString() : U.toISOString(), G += D(U, X);
44426
44409
  else {
44427
44410
  var J = I(U);
44428
- J > 0 || typeof U.__text == "number" || typeof U.__text == "boolean" || U.__text || U.__cdata ? (G += _(U, X, W, !1), G += Y(U), G += D(U, X)) : o.selfClosingElements ? G += _(U, X, W, !0) : (G += _(U, X, W, !1), G += D(U, X));
44411
+ J > 0 || typeof U.__text == "number" || typeof U.__text == "boolean" || U.__text || U.__cdata ? (G += _(U, X, z, !1), G += Y(U), G += D(U, X)) : o.selfClosingElements ? G += _(U, X, z, !0) : (G += _(U, X, z, !1), G += D(U, X));
44429
44412
  }
44430
44413
  else
44431
- G += _(U, X, W, !1), G += L(U), G += D(U, X);
44414
+ G += _(U, X, z, !1), G += L(U), G += D(U, X);
44432
44415
  return G;
44433
44416
  }
44434
44417
  function Y(U) {
44435
- var X = "", W = I(U);
44436
- if (W > 0) {
44418
+ var X = "", z = I(U);
44419
+ if (z > 0) {
44437
44420
  for (var G in U)
44438
44421
  if (!T(U, G)) {
44439
44422
  var J = U[G], ae = M(J);
@@ -44445,9 +44428,9 @@ function requireX2js() {
44445
44428
  function j(U) {
44446
44429
  if (U === void 0 || typeof U != "string")
44447
44430
  return null;
44448
- var X = null, W = null;
44431
+ var X = null, z = null;
44449
44432
  if (t)
44450
- X = new t(o.xmldomOptions), W = X.parseFromString(U, "text/xml");
44433
+ X = new t(o.xmldomOptions), z = X.parseFromString(U, "text/xml");
44451
44434
  else if (window && window.DOMParser) {
44452
44435
  X = new window.DOMParser();
44453
44436
  var G = null, J = window.ActiveXObject || "ActiveXObject" in window;
@@ -44458,13 +44441,13 @@ function requireX2js() {
44458
44441
  G = null;
44459
44442
  }
44460
44443
  try {
44461
- W = X.parseFromString(U, "text/xml"), G !== null && W.getElementsByTagNameNS(G, "parsererror").length > 0 && (W = null);
44444
+ z = X.parseFromString(U, "text/xml"), G !== null && z.getElementsByTagNameNS(G, "parsererror").length > 0 && (z = null);
44462
44445
  } catch {
44463
- W = null;
44446
+ z = null;
44464
44447
  }
44465
44448
  } else
44466
- U.indexOf("<?") === 0 && (U = U.substr(U.indexOf("?>") + 2)), W = new ActiveXObject("Microsoft.XMLDOM"), W.async = "false", W.loadXML(U);
44467
- return W;
44449
+ U.indexOf("<?") === 0 && (U = U.substr(U.indexOf("?>") + 2)), z = new ActiveXObject("Microsoft.XMLDOM"), z.async = "false", z.loadXML(U);
44450
+ return z;
44468
44451
  }
44469
44452
  this.asArray = function(X) {
44470
44453
  return X == null ? [] : X instanceof Array ? X : [X];
@@ -44477,11 +44460,11 @@ function requireX2js() {
44477
44460
  }, this.dom2js = function(X) {
44478
44461
  return C(X, null);
44479
44462
  }, this.js2dom = function(X) {
44480
- var W = this.js2xml(X);
44481
- return j(W);
44463
+ var z = this.js2xml(X);
44464
+ return j(z);
44482
44465
  }, this.xml2js = function(X) {
44483
- var W = j(X);
44484
- return W != null ? this.dom2js(W) : null;
44466
+ var z = j(X);
44467
+ return z != null ? this.dom2js(z) : null;
44485
44468
  }, this.js2xml = function(X) {
44486
44469
  return Y(X);
44487
44470
  }, this.getVersion = function() {
@@ -46230,12 +46213,12 @@ class StructureConvert {
46230
46213
  k++;
46231
46214
  for (let B = 0; B < L.length; B++) {
46232
46215
  B > 0 && k++;
46233
- const j = L[B][2], U = j.indexOf("错误:"), X = j.indexOf("正确:"), W = new createjs$1.Text(j.substring(U + 3, X - 1), "12px 微软雅黑", "#F31A1A");
46234
- W.lineWidth = E - 25, W.lineHeight = 20, W.name = "tip", W.x = 15, W.y = 10 + 30 * k, T.addChild(W);
46216
+ const j = L[B][2], U = j.indexOf("错误:"), X = j.indexOf("正确:"), z = new createjs$1.Text(j.substring(U + 3, X - 1), "12px 微软雅黑", "#F31A1A");
46217
+ z.lineWidth = E - 25, z.lineHeight = 20, z.name = "tip", z.x = 15, z.y = 10 + 30 * k, T.addChild(z);
46235
46218
  const G = new createjs$1.Text("-->", "12px 微软雅黑", "#666");
46236
- G.lineWidth = E - 25, G.lineHeight = 20, G.name = "tip", G.x = W.x + W.getMeasuredWidth() + 5, G.y = W.y, T.addChild(G);
46219
+ G.lineWidth = E - 25, G.lineHeight = 20, G.name = "tip", G.x = z.x + z.getMeasuredWidth() + 5, G.y = z.y, T.addChild(G);
46237
46220
  const J = new createjs$1.Text(j.substring(X + 3, j.length), "12px 微软雅黑", "#21B41E");
46238
- J.lineWidth = E - 25, J.lineHeight = 20, J.name = "tip", J.x = G.x + G.getMeasuredWidth() + 5, J.y = W.y, J.alpha = 1, T.addChild(J);
46221
+ J.lineWidth = E - 25, J.lineHeight = 20, J.name = "tip", J.x = G.x + G.getMeasuredWidth() + 5, J.y = z.y, J.alpha = 1, T.addChild(J);
46239
46222
  }
46240
46223
  }), _.addChild(T), n.drawPageTree.updateDrawPage(_.index);
46241
46224
  }
@@ -47749,7 +47732,7 @@ class VueController {
47749
47732
  }
47750
47733
  /**
47751
47734
  * 更新 Pop-Q评分
47752
- * @param popQScoreRequest
47735
+ * @param popQScoreRequest
47753
47736
  */
47754
47737
  updatePopQScore(t) {
47755
47738
  const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), o = r.docTree.curDomRange, n = o.normalize().startPath, s = o.normalize().endPath, l = new NodeChangingEvent(DocAction.daInsert, n, s, OperType.updatePopQScore);
@@ -48114,19 +48097,7 @@ class VueController {
48114
48097
  */
48115
48098
  insertQrcode(t, r, o, n, s, l, c, d, u, f) {
48116
48099
  const p = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), m = p.docTree.curDomRange, g = m.normalize().startPath, y = m.normalize().endPath, w = new NodeChangingEvent(DocAction.daInsert, g, y, OperType.insertQrcode);
48117
- p.docTree.changing(w) && p.docController.insertQrcode(
48118
- "add",
48119
- m,
48120
- r,
48121
- o,
48122
- n,
48123
- s,
48124
- l,
48125
- c,
48126
- d,
48127
- u,
48128
- f
48129
- );
48100
+ p.docTree.changing(w) && p.docController.insertQrcode("add", m, r, o, n, s, l, c, d, u, f);
48130
48101
  }
48131
48102
  /**
48132
48103
  * 修改二维码
@@ -48146,19 +48117,7 @@ class VueController {
48146
48117
  */
48147
48118
  updateQrcode(t, r, o, n, s, l, c, d, u) {
48148
48119
  const f = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), p = f.docTree.curDomRange, m = p.normalize().startPath, g = p.normalize().endPath, y = new NodeChangingEvent(DocAction.daInsert, m, g, OperType.updateQrcode);
48149
- f.docTree.changing(y) && HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode(
48150
- "update",
48151
- p,
48152
- t,
48153
- r,
48154
- o,
48155
- n,
48156
- s,
48157
- l,
48158
- c,
48159
- d,
48160
- u
48161
- );
48120
+ f.docTree.changing(y) && HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode("update", p, t, r, o, n, s, l, c, d, u);
48162
48121
  }
48163
48122
  /**
48164
48123
  * 插入单、复选框控件
@@ -49129,10 +49088,28 @@ class VueController {
49129
49088
  if (y.iszw) {
49130
49089
  let w = u, v = f;
49131
49090
  f.combineStyle.font != "himalaya" && (w = f.changeStyleString("fontFormat", "himalaya"), v = n.docTree.styles[w]);
49132
- const C = n.docTree.styleCompare(v), _ = new TextNode(this._hoEditorFactoryID, c.roots, c.node.parentNode, NodeType$1.ntText, y.text, C, void 0, y.combination);
49091
+ const C = n.docTree.styleCompare(v), _ = new TextNode(
49092
+ this._hoEditorFactoryID,
49093
+ c.roots,
49094
+ c.node.parentNode,
49095
+ NodeType$1.ntText,
49096
+ y.text,
49097
+ C,
49098
+ void 0,
49099
+ y.combination
49100
+ );
49133
49101
  d.push(_);
49134
49102
  } else {
49135
- const w = new TextNode(this._hoEditorFactoryID, c.roots, c.node.parentNode, NodeType$1.ntText, y.text, u, void 0, y.combination);
49103
+ const w = new TextNode(
49104
+ this._hoEditorFactoryID,
49105
+ c.roots,
49106
+ c.node.parentNode,
49107
+ NodeType$1.ntText,
49108
+ y.text,
49109
+ u,
49110
+ void 0,
49111
+ y.combination
49112
+ );
49136
49113
  d.push(w);
49137
49114
  }
49138
49115
  }), m < p.length - 2 || m == p.length - 2 && p[p.length - 1] != "") {
@@ -49977,10 +49954,10 @@ class VueController {
49977
49954
  return r ? (this.insertXml(t, "header"), this.insertXml(t, "footer"), this.insertXml(t, "main", r, n)) : this.insertXml(t, "main", void 0, n), o && o(), !0;
49978
49955
  }
49979
49956
  /**
49980
- *
49957
+ *
49981
49958
  * @param list docs
49982
49959
  * @param docLog 记录文档信息
49983
- * @returns
49960
+ * @returns
49984
49961
  */
49985
49962
  async openDocsForPrint(t, r) {
49986
49963
  if (t.length == 0)
@@ -50049,27 +50026,27 @@ class VueController {
50049
50026
  let L = [];
50050
50027
  if (T != "" && T != null) {
50051
50028
  Array.isArray(T) ? L = T : L = [T];
50052
- for (let W = 0; W < L.length; W++) {
50053
- const G = f(L[W], I), J = JSON.stringify(G), ae = d.lastIndexOf(J);
50054
- ae >= 0 ? _.set(W + 1, ae) : J == '""' ? _.set(W + 1, _.get(0)) : (p.styles.fontStyle.push(G), d.push(J), _.set(W + 1, d.length - 1));
50029
+ for (let z = 0; z < L.length; z++) {
50030
+ const G = f(L[z], I), J = JSON.stringify(G), ae = d.lastIndexOf(J);
50031
+ ae >= 0 ? _.set(z + 1, ae) : J == '""' ? _.set(z + 1, _.get(0)) : (p.styles.fontStyle.push(G), d.push(J), _.set(z + 1, d.length - 1));
50055
50032
  }
50056
50033
  }
50057
50034
  const H = E.styles.paraStyle ? E.styles.paraStyle : E.styles.para, B = E.styles.defaultPara, Y = JSON.stringify(B), j = u.indexOf(Y);
50058
50035
  j >= 0 ? D.set(0, j) : (p.styles.paraStyle.push(B), u.push(Y), D.set(0, u.length - 1));
50059
- const U = (W) => {
50036
+ const U = (z) => {
50060
50037
  const G = JSON.stringify(B), J = JSON.parse(G);
50061
- return W && (typeof W.charSpace < "u" && W.charSpace !== B.charSpace.toString() && (J.charSpace = W.charSpace), typeof W.lineSpace < "u" && W.lineSpace !== B.lineSpace.toString() && (J.lineSpace = W.lineSpace), typeof W.align < "u" && W.align !== B.align.toString() && (J.align = W.align)), J;
50038
+ return z && (typeof z.charSpace < "u" && z.charSpace !== B.charSpace.toString() && (J.charSpace = z.charSpace), typeof z.lineSpace < "u" && z.lineSpace !== B.lineSpace.toString() && (J.lineSpace = z.lineSpace), typeof z.align < "u" && z.align !== B.align.toString() && (J.align = z.align), typeof z.firstIndent < "u" && z.firstIndent !== B.firstIndent.toString() && (J.firstIndent = z.firstIndent)), J;
50062
50039
  };
50063
50040
  let X = [];
50064
50041
  H != "" && H != null && (H && !Array.isArray(H) ? X = [H] : X = H);
50065
- for (let W = 0; W < X.length; W++) {
50066
- const G = U(X[W]), J = JSON.stringify(G), ae = u.indexOf(J);
50067
- ae >= 0 ? D.set(W + 1, ae) : J == '""' ? D.set(W + 1, D.get(0)) : (p.styles.paraStyle.push(G), u.push(J), D.set(W + 1, u.length - 1));
50042
+ for (let z = 0; z < X.length; z++) {
50043
+ const G = U(X[z]), J = JSON.stringify(G), ae = u.indexOf(J);
50044
+ ae >= 0 ? D.set(z + 1, ae) : J == '""' ? D.set(z + 1, D.get(0)) : (p.styles.paraStyle.push(G), u.push(J), D.set(z + 1, u.length - 1));
50068
50045
  }
50069
50046
  if (w(E.main, _, D), p.pageSettingsTree = [], t[C][0]) {
50070
50047
  w(E.header[0].subDocNodes, _, D);
50071
- const W = o.gernerateCode.generateID("DocId");
50072
- E.header[0].beginPath = W, E.header[0].pageIndex = -1, p.header.push(E.header[0]), w(E.footer[0].subDocNodes, _, D), E.footer[0].beginPath = W, E.footer[0].pageIndex = -1, (C == 1 || C > 2 && E.footer[0].subDocNodes.length > 1) && p.footer.push(E.footer[0]), Array.isArray(E.main) ? (E.main[0].printAsSinglePage = "true", E.main[0].docId = W) : (Array(E.main)[0].printAsSinglePage = "true", Array(E.main)[0].docId = W), p.pageSettingsTree.push(E.pageSettings), o.printStatus.pageSettingMap.set(W, {
50048
+ const z = o.gernerateCode.generateID("DocId");
50049
+ E.header[0].beginPath = z, E.header[0].pageIndex = -1, p.header.push(E.header[0]), w(E.footer[0].subDocNodes, _, D), E.footer[0].beginPath = z, E.footer[0].pageIndex = -1, (C == 1 || C > 2 && E.footer[0].subDocNodes.length > 1) && p.footer.push(E.footer[0]), Array.isArray(E.main) ? (E.main[0].printAsSinglePage = "true", E.main[0].docId = z) : (Array(E.main)[0].printAsSinglePage = "true", Array(E.main)[0].docId = z), p.pageSettingsTree.push(E.pageSettings), o.printStatus.pageSettingMap.set(z, {
50073
50050
  widthMm: Number(E.pageSettings.widthMm),
50074
50051
  heightMm: Number(E.pageSettings.heightMm),
50075
50052
  pageSize: E.pageSettings.pageSize,
@@ -50077,8 +50054,8 @@ class VueController {
50077
50054
  });
50078
50055
  } else if (t[C][2]) {
50079
50056
  w(E.header[0].subDocNodes, _, D);
50080
- const W = o.gernerateCode.generateID("DocId");
50081
- E.header[0].beginPath = W, E.header[0].pageIndex = -1, p.header.push(E.header[0]), Array.isArray(E.main) ? (E.main[0].forceChangeHeader = "true", E.main[0].docId = W) : (Array(E.main)[0].forceChangeHeader = "true", Array(E.main)[0].docId = W);
50057
+ const z = o.gernerateCode.generateID("DocId");
50058
+ E.header[0].beginPath = z, E.header[0].pageIndex = -1, p.header.push(E.header[0]), Array.isArray(E.main) ? (E.main[0].forceChangeHeader = "true", E.main[0].docId = z) : (Array(E.main)[0].forceChangeHeader = "true", Array(E.main)[0].docId = z);
50082
50059
  }
50083
50060
  y(t[C][3], E.main), Array.isArray(E.main) ? p.main.push(...E.main) : p.main.push(...Array(E.main));
50084
50061
  }
@@ -50511,7 +50488,21 @@ class VueController {
50511
50488
  updateEmptySignNode(t, r, o, n, s, l, c, d, u, f, p, m, g) {
50512
50489
  if (t.type !== 0)
50513
50490
  return;
50514
- HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docController.updateEmptySignNode(t, r, o, n, s, l, c, d, u, f, p, m, g);
50491
+ HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docController.updateEmptySignNode(
50492
+ t,
50493
+ r,
50494
+ o,
50495
+ n,
50496
+ s,
50497
+ l,
50498
+ c,
50499
+ d,
50500
+ u,
50501
+ f,
50502
+ p,
50503
+ m,
50504
+ g
50505
+ );
50515
50506
  }
50516
50507
  /**
50517
50508
  * 更新签名时间
@@ -50877,14 +50868,7 @@ class VueController {
50877
50868
  if (_)
50878
50869
  if (_.styleIndex !== void 0 && (_.styleIndex = u), _ instanceof TextNode)
50879
50870
  if (_.text.length > [..._.text].length) {
50880
- const D = new RareCharNode(
50881
- d.hoEditorFactoryID,
50882
- _.rootNodes,
50883
- d,
50884
- NodeType$1.ntRareChar,
50885
- _.text,
50886
- _.styleIndex
50887
- );
50871
+ const D = new RareCharNode(d.hoEditorFactoryID, _.rootNodes, d, NodeType$1.ntRareChar, _.text, _.styleIndex);
50888
50872
  p.push(D);
50889
50873
  } else
50890
50874
  _.text !== "" && _.text !== "‌‌" && _.text !== "‌‌‌‌" && _.text !== "‌‌‌‌‌" && _.text !== "‌‌‌" && _.text !== "‌" && p.push(_);
@@ -50896,14 +50880,7 @@ class VueController {
50896
50880
  if (C)
50897
50881
  if (C.styleIndex !== void 0 && (C.styleIndex = u), C instanceof TextNode)
50898
50882
  if (C.text.length > [...C.text].length) {
50899
- const _ = new RareCharNode(
50900
- d.hoEditorFactoryID,
50901
- C.rootNodes,
50902
- d,
50903
- NodeType$1.ntRareChar,
50904
- C.text,
50905
- C.styleIndex
50906
- );
50883
+ const _ = new RareCharNode(d.hoEditorFactoryID, C.rootNodes, d, NodeType$1.ntRareChar, C.text, C.styleIndex);
50907
50884
  p.push(_);
50908
50885
  } else
50909
50886
  C.text !== "" && C.text !== "‌‌" && C.text !== "‌‌‌‌" && C.text !== "‌‌‌‌‌" && C.text !== "‌‌‌" && C.text !== "‌" && p.push(C);
@@ -50949,14 +50926,7 @@ class VueController {
50949
50926
  if (v)
50950
50927
  if (v instanceof TextNode)
50951
50928
  if (v.text.length > [...v.text].length) {
50952
- const C = new RareCharNode(
50953
- c.hoEditorFactoryID,
50954
- v.rootNodes,
50955
- c,
50956
- NodeType$1.ntRareChar,
50957
- v.text,
50958
- v.styleIndex
50959
- );
50929
+ const C = new RareCharNode(c.hoEditorFactoryID, v.rootNodes, c, NodeType$1.ntRareChar, v.text, v.styleIndex);
50960
50930
  u.push(C);
50961
50931
  } else
50962
50932
  v.text !== "" && v.text !== "‌‌" && v.text !== "‌‌‌‌" && v.text !== "‌‌‌‌‌" && v.text !== "‌‌‌" && v.text !== "‌" && u.push(v);
@@ -50968,14 +50938,7 @@ class VueController {
50968
50938
  if (w)
50969
50939
  if (w instanceof TextNode)
50970
50940
  if (w.text.length > [...w.text].length) {
50971
- const v = new RareCharNode(
50972
- c.hoEditorFactoryID,
50973
- w.rootNodes,
50974
- c,
50975
- NodeType$1.ntRareChar,
50976
- w.text,
50977
- w.styleIndex
50978
- );
50941
+ const v = new RareCharNode(c.hoEditorFactoryID, w.rootNodes, c, NodeType$1.ntRareChar, w.text, w.styleIndex);
50979
50942
  u.push(v);
50980
50943
  } else
50981
50944
  w.text !== "" && w.text !== "‌‌" && w.text !== "‌‌‌‌" && w.text !== "‌‌‌‌‌" && w.text !== "‌‌‌" && w.text !== "‌" && u.push(w);
@@ -51123,19 +51086,21 @@ class VueController {
51123
51086
  /**
51124
51087
  * 批量获取节点位置
51125
51088
  * @param type type bottom:页左下角坐标点(0,0)↑→ top:页左上角坐标点(0,0)↓→
51126
- * @param nodes
51089
+ * @param nodes
51127
51090
  */
51128
51091
  async getBatchPosition(t, r, o = 200) {
51129
51092
  const n = [], s = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), l = (c) => new Promise((d) => {
51130
51093
  let u = s.docTree.getNodeLastPath(c);
51131
- this.moveCaretToPath(u);
51132
- const f = setTimeout(() => {
51133
- const p = this.getPosition3(t);
51134
- n.push({
51135
- node: c,
51136
- position: p
51137
- }), clearTimeout(f), d(p);
51138
- }, o);
51094
+ this.moveCaretToPath(u), setTimeout(() => {
51095
+ this.moveCaretToPath(u);
51096
+ const f = setTimeout(() => {
51097
+ const p = this.getPosition3(t);
51098
+ n.push({
51099
+ node: c,
51100
+ position: p
51101
+ }), clearTimeout(f), d(p);
51102
+ }, o);
51103
+ }, o / 10);
51139
51104
  });
51140
51105
  for (let c = 0; c < r.length; c++) {
51141
51106
  const d = r[c];
@@ -51957,7 +51922,7 @@ class VueController {
51957
51922
  }
51958
51923
  /**
51959
51924
  * 获取所有患者签名
51960
- * @returns
51925
+ * @returns
51961
51926
  */
51962
51927
  getAllPatientSignNode() {
51963
51928
  const t = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), r = [], o = t.docTree.mainNodes, n = (s) => {
@@ -52342,7 +52307,7 @@ class VueController {
52342
52307
  for (let me = 0; me < oe.length; me++)
52343
52308
  oe[me].rowSpan > 1 && (oe[me].rowSpan = Math.min(oe[me].rowSpan, oe.length - oe[me].rowNo)), oe[me].colSpan > 1 && (oe[me].colSpan = Math.min(oe[me].colSpan, oe.length - oe[me].colNo));
52344
52309
  }
52345
- const W = { defaultRowProperty: E, item: I }, G = { defaultColProperty: L, item: B }, J = { defaultCellProperty: Y, item: U };
52310
+ const z = { defaultRowProperty: E, item: I }, G = { defaultColProperty: L, item: B }, J = { defaultCellProperty: Y, item: U };
52346
52311
  return { TableNode: {
52347
52312
  nodeType: NodeType$1[1],
52348
52313
  rowCount: v.rowCount,
@@ -52351,7 +52316,7 @@ class VueController {
52351
52316
  borderWidth: v.borderWidth,
52352
52317
  headerRowCount: v.headerRowCount,
52353
52318
  tableProperty: D,
52354
- rowInfos: W,
52319
+ rowInfos: z,
52355
52320
  colInfos: G,
52356
52321
  childNodes: J
52357
52322
  } };
@@ -52763,23 +52728,21 @@ class VueController {
52763
52728
  verifyRadioAndCheckBoxs(t) {
52764
52729
  const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), o = r.docTree.radioAndCheckBoxsMap;
52765
52730
  let n = [], s = [], l = [];
52766
- if (o.forEach(
52767
- (c) => {
52768
- if (c.groupHasOptions && !c.isSelected && c.groupName !== "") {
52769
- let d = !1;
52770
- for (let u of o.values())
52771
- if (u.controlStyle === c.controlStyle && u.groupName === c.groupName && u.isSelected) {
52772
- d = !0;
52773
- break;
52774
- }
52775
- if (!d) {
52776
- n.push(c.groupName), s.push(c);
52777
- for (let u of o.values())
52778
- u.controlStyle === c.controlStyle && u.groupName === c.groupName && u.id !== c.id && s.push(u);
52731
+ if (o.forEach((c) => {
52732
+ if (c.groupHasOptions && !c.isSelected && c.groupName !== "") {
52733
+ let d = !1;
52734
+ for (let u of o.values())
52735
+ if (u.controlStyle === c.controlStyle && u.groupName === c.groupName && u.isSelected) {
52736
+ d = !0;
52737
+ break;
52779
52738
  }
52739
+ if (!d) {
52740
+ n.push(c.groupName), s.push(c);
52741
+ for (let u of o.values())
52742
+ u.controlStyle === c.controlStyle && u.groupName === c.groupName && u.id !== c.id && s.push(u);
52780
52743
  }
52781
52744
  }
52782
- ), n.length > 0 && (l = n.filter((d, u, f) => f.indexOf(d) === u)), s.length > 0) {
52745
+ }), n.length > 0 && (l = n.filter((d, u, f) => f.indexOf(d) === u)), s.length > 0) {
52783
52746
  const c = s.filter((u, f, p) => p.indexOf(u) === f);
52784
52747
  let d = [];
52785
52748
  for (let u = 0; u < c.length; u++) {
@@ -54911,8 +54874,8 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
54911
54874
  I[k++] = j;
54912
54875
  }
54913
54876
  }
54914
- var X = I.subarray(0, D), W = I.subarray(D);
54915
- m = max(X), g = max(W), f = hMap(X, m, 1), p = hMap(W, g, 1);
54877
+ var X = I.subarray(0, D), z = I.subarray(D);
54878
+ m = max(X), g = max(z), f = hMap(X, m, 1), p = hMap(z, g, 1);
54916
54879
  } else
54917
54880
  throw "invalid block type";
54918
54881
  else {
@@ -54950,16 +54913,16 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
54950
54913
  if (!ue)
54951
54914
  throw "invalid distance";
54952
54915
  d += ue & 15;
54953
- var W = fd[Q];
54916
+ var z = fd[Q];
54954
54917
  if (Q > 3) {
54955
54918
  var me = fdeb[Q];
54956
- W += bits16(a, d) & (1 << me) - 1, d += me;
54919
+ z += bits16(a, d) & (1 << me) - 1, d += me;
54957
54920
  }
54958
54921
  if (d > y)
54959
54922
  throw "unexpected EOF";
54960
54923
  n && l(u + 131072);
54961
54924
  for (var ne = u + oe; u < ne; u += 4)
54962
- t[u] = t[u - W], t[u + 1] = t[u + 1 - W], t[u + 2] = t[u + 2 - W], t[u + 3] = t[u + 3 - W];
54925
+ t[u] = t[u - z], t[u + 1] = t[u + 1 - z], t[u + 2] = t[u + 2 - z], t[u + 3] = t[u + 3 - z];
54963
54926
  u = ne;
54964
54927
  }
54965
54928
  }
@@ -55061,9 +55024,9 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
55061
55024
  var j = u + 5 << 3, U = clen(n, flt) + clen(s, fdt) + l, X = clen(n, m) + clen(s, w) + l + 14 + 3 * Y + clen(M, H) + (2 * M[16] + 3 * M[17] + 7 * M[18]);
55062
55025
  if (j <= U && j <= X)
55063
55026
  return wfblk(t, f, a.subarray(d, d + u));
55064
- var W, G, J, ae;
55027
+ var z, G, J, ae;
55065
55028
  if (wbits(t, f, 1 + (X < U)), f += 2, X < U) {
55066
- W = hMap(m, g, 0), G = m, J = hMap(w, v, 0), ae = w;
55029
+ z = hMap(m, g, 0), G = m, J = hMap(w, v, 0), ae = w;
55067
55030
  var Ce = hMap(H, B, 0);
55068
55031
  wbits(t, f, D - 257), wbits(t, f + 5, I - 1), wbits(t, f + 10, Y - 4), f += 14;
55069
55032
  for (var k = 0; k < Y; ++k)
@@ -55075,16 +55038,16 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
55075
55038
  wbits(t, f, Ce[Q]), f += H[Q], Q > 15 && (wbits(t, f, ue[k] >>> 5 & 127), f += ue[k] >>> 12);
55076
55039
  }
55077
55040
  } else
55078
- W = flm, G = flt, J = fdm, ae = fdt;
55041
+ z = flm, G = flt, J = fdm, ae = fdt;
55079
55042
  for (var k = 0; k < c; ++k)
55080
55043
  if (o[k] > 255) {
55081
55044
  var Q = o[k] >>> 18 & 31;
55082
- wbits16(t, f, W[Q + 257]), f += G[Q + 257], Q > 7 && (wbits(t, f, o[k] >>> 23 & 31), f += fleb[Q]);
55045
+ wbits16(t, f, z[Q + 257]), f += G[Q + 257], Q > 7 && (wbits(t, f, o[k] >>> 23 & 31), f += fleb[Q]);
55083
55046
  var ne = o[k] & 31;
55084
55047
  wbits16(t, f, J[ne]), f += ae[ne], ne > 3 && (wbits16(t, f, o[k] >>> 5 & 8191), f += fdeb[ne]);
55085
55048
  } else
55086
- wbits16(t, f, W[o[k]]), f += G[o[k]];
55087
- return wbits16(t, f, W[256]), f + G[256];
55049
+ wbits16(t, f, z[o[k]]), f += G[o[k]];
55050
+ return wbits16(t, f, z[256]), f + G[256];
55088
55051
  }, deo = /* @__PURE__ */ new u32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), dflt = function(a, t, r, o, n, s) {
55089
55052
  var l = a.length, c = new u8(o + l + 5 * (1 + Math.floor(l / 7e3)) + n), d = c.subarray(o, c.length - n), u = 0;
55090
55053
  if (!t || l < 8)
@@ -55098,8 +55061,8 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
55098
55061
  }, T = new u32(25e3), I = new u16(288), M = new u16(32), k = 0, L = 0, f = 0, H = 0, B = 0, Y = 0; f < l; ++f) {
55099
55062
  var j = E(f), U = f & 32767, X = C[j];
55100
55063
  if (v[U] = X, C[j] = U, B <= f) {
55101
- var W = l - f;
55102
- if ((k > 7e3 || H > 24576) && W > 423) {
55064
+ var z = l - f;
55065
+ if ((k > 7e3 || H > 24576) && z > 423) {
55103
55066
  u = wblk(a, d, 0, T, I, M, L, H, Y, f - Y, u), H = k = L = 0, Y = f;
55104
55067
  for (var G = 0; G < 286; ++G)
55105
55068
  I[G] = 0;
@@ -55107,8 +55070,8 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
55107
55070
  M[G] = 0;
55108
55071
  }
55109
55072
  var J = 2, ae = 0, Ce = y, oe = U - X & 32767;
55110
- if (W > 2 && j == E(f - oe))
55111
- for (var me = Math.min(g, W) - 1, ue = Math.min(32767, f), Q = Math.min(258, W); oe <= ue && --Ce && U != X; ) {
55073
+ if (z > 2 && j == E(f - oe))
55074
+ for (var me = Math.min(g, z) - 1, ue = Math.min(32767, f), Q = Math.min(258, z); oe <= ue && --Ce && U != X; ) {
55112
55075
  if (a[f + J] == a[f + J - oe]) {
55113
55076
  for (var ne = 0; ne < Q && a[f + ne] == a[f + ne - oe]; ++ne)
55114
55077
  ;
@@ -55753,8 +55716,8 @@ function jsPDF(a) {
55753
55716
  var y = "1.3", w = g.__private__.getPdfVersion = function() {
55754
55717
  return y;
55755
55718
  };
55756
- g.__private__.setPdfVersion = function(z) {
55757
- y = z;
55719
+ g.__private__.setPdfVersion = function(W) {
55720
+ y = W;
55758
55721
  };
55759
55722
  var v = {
55760
55723
  a0: [2383.94, 3370.39],
@@ -55802,8 +55765,8 @@ function jsPDF(a) {
55802
55765
  g.__private__.getPageFormats = function() {
55803
55766
  return v;
55804
55767
  };
55805
- var C = g.__private__.getPageFormat = function(z) {
55806
- return v[z];
55768
+ var C = g.__private__.getPageFormat = function(W) {
55769
+ return v[W];
55807
55770
  };
55808
55771
  o = o || "a4";
55809
55772
  var _ = {
@@ -55816,57 +55779,57 @@ function jsPDF(a) {
55816
55779
  function T() {
55817
55780
  this.restoreGraphicsState(), u = "S", D = _.COMPAT;
55818
55781
  }
55819
- var I = g.__private__.combineFontStyleAndFontWeight = function(z, V) {
55820
- if (z == "bold" && V == "normal" || z == "bold" && V == 400 || z == "normal" && V == "italic" || z == "bold" && V == "italic")
55782
+ var I = g.__private__.combineFontStyleAndFontWeight = function(W, V) {
55783
+ if (W == "bold" && V == "normal" || W == "bold" && V == 400 || W == "normal" && V == "italic" || W == "bold" && V == "italic")
55821
55784
  throw new Error("Invalid Combination of fontweight and fontstyle");
55822
- return V && (z = V == 400 || V === "normal" ? z === "italic" ? "italic" : "normal" : (V == 700 || V === "bold") && z === "normal" ? "bold" : (V == 700 ? "bold" : V) + "" + z), z;
55785
+ return V && (W = V == 400 || V === "normal" ? W === "italic" ? "italic" : "normal" : (V == 700 || V === "bold") && W === "normal" ? "bold" : (V == 700 ? "bold" : V) + "" + W), W;
55823
55786
  };
55824
- g.advancedAPI = function(z) {
55787
+ g.advancedAPI = function(W) {
55825
55788
  var V = D === _.COMPAT;
55826
- return V && E.call(this), typeof z != "function" ? this : (z(this), V && T.call(this), this);
55827
- }, g.compatAPI = function(z) {
55789
+ return V && E.call(this), typeof W != "function" ? this : (W(this), V && T.call(this), this);
55790
+ }, g.compatAPI = function(W) {
55828
55791
  var V = D === _.ADVANCED;
55829
- return V && T.call(this), typeof z != "function" ? this : (z(this), V && E.call(this), this);
55792
+ return V && T.call(this), typeof W != "function" ? this : (W(this), V && E.call(this), this);
55830
55793
  }, g.isAdvancedAPI = function() {
55831
55794
  return D === _.ADVANCED;
55832
55795
  };
55833
55796
  var M = function(V) {
55834
55797
  if (D !== _.ADVANCED)
55835
55798
  throw new Error(V + " is only available in 'advanced' API mode. You need to call advancedAPI() first.");
55836
- }, k = g.roundToPrecision = g.__private__.roundToPrecision = function(z, V) {
55799
+ }, k = g.roundToPrecision = g.__private__.roundToPrecision = function(W, V) {
55837
55800
  var ye = c || V;
55838
- if (isNaN(z) || isNaN(ye))
55801
+ if (isNaN(W) || isNaN(ye))
55839
55802
  throw new Error("Invalid argument passed to jsPDF.roundToPrecision");
55840
- return z.toFixed(ye).replace(/0+$/, "");
55803
+ return W.toFixed(ye).replace(/0+$/, "");
55841
55804
  }, L;
55842
- typeof d == "number" ? L = g.hpf = g.__private__.hpf = function(z) {
55843
- if (isNaN(z))
55805
+ typeof d == "number" ? L = g.hpf = g.__private__.hpf = function(W) {
55806
+ if (isNaN(W))
55844
55807
  throw new Error("Invalid argument passed to jsPDF.hpf");
55845
- return k(z, d);
55846
- } : d === "smart" ? L = g.hpf = g.__private__.hpf = function(z) {
55847
- if (isNaN(z))
55808
+ return k(W, d);
55809
+ } : d === "smart" ? L = g.hpf = g.__private__.hpf = function(W) {
55810
+ if (isNaN(W))
55848
55811
  throw new Error("Invalid argument passed to jsPDF.hpf");
55849
- return z > -1 && z < 1 ? k(z, 16) : k(z, 5);
55850
- } : L = g.hpf = g.__private__.hpf = function(z) {
55851
- if (isNaN(z))
55812
+ return W > -1 && W < 1 ? k(W, 16) : k(W, 5);
55813
+ } : L = g.hpf = g.__private__.hpf = function(W) {
55814
+ if (isNaN(W))
55852
55815
  throw new Error("Invalid argument passed to jsPDF.hpf");
55853
- return k(z, 16);
55816
+ return k(W, 16);
55854
55817
  };
55855
- var H = g.f2 = g.__private__.f2 = function(z) {
55856
- if (isNaN(z))
55818
+ var H = g.f2 = g.__private__.f2 = function(W) {
55819
+ if (isNaN(W))
55857
55820
  throw new Error("Invalid argument passed to jsPDF.f2");
55858
- return k(z, 2);
55859
- }, B = g.__private__.f3 = function(z) {
55860
- if (isNaN(z))
55821
+ return k(W, 2);
55822
+ }, B = g.__private__.f3 = function(W) {
55823
+ if (isNaN(W))
55861
55824
  throw new Error("Invalid argument passed to jsPDF.f3");
55862
- return k(z, 3);
55863
- }, Y = g.scale = g.__private__.scale = function(z) {
55864
- if (isNaN(z))
55825
+ return k(W, 3);
55826
+ }, Y = g.scale = g.__private__.scale = function(W) {
55827
+ if (isNaN(W))
55865
55828
  throw new Error("Invalid argument passed to jsPDF.scale");
55866
55829
  if (D === _.COMPAT)
55867
- return z * kt;
55830
+ return W * kt;
55868
55831
  if (D === _.ADVANCED)
55869
- return z;
55832
+ return W;
55870
55833
  }, j = function(V) {
55871
55834
  if (D === _.COMPAT)
55872
55835
  return Di() - V;
@@ -55875,54 +55838,54 @@ function jsPDF(a) {
55875
55838
  }, U = function(V) {
55876
55839
  return Y(j(V));
55877
55840
  };
55878
- g.__private__.setPrecision = g.setPrecision = function(z) {
55879
- typeof parseInt(z, 10) == "number" && (c = parseInt(z, 10));
55841
+ g.__private__.setPrecision = g.setPrecision = function(W) {
55842
+ typeof parseInt(W, 10) == "number" && (c = parseInt(W, 10));
55880
55843
  };
55881
- var X = "00000000000000000000000000000000", W = g.__private__.getFileId = function() {
55844
+ var X = "00000000000000000000000000000000", z = g.__private__.getFileId = function() {
55882
55845
  return X;
55883
- }, G = g.__private__.setFileId = function(z) {
55884
- return typeof z < "u" && /^[a-fA-F0-9]{32}$/.test(z) ? X = z.toUpperCase() : X = X.split("").map(function() {
55846
+ }, G = g.__private__.setFileId = function(W) {
55847
+ return typeof W < "u" && /^[a-fA-F0-9]{32}$/.test(W) ? X = W.toUpperCase() : X = X.split("").map(function() {
55885
55848
  return "ABCDEF0123456789".charAt(Math.floor(Math.random() * 16));
55886
55849
  }).join(""), f !== null && (Pr = new PDFSecurity(f.userPermissions, f.userPassword, f.ownerPassword, X)), X;
55887
55850
  };
55888
- g.setFileId = function(z) {
55889
- return G(z), this;
55851
+ g.setFileId = function(W) {
55852
+ return G(W), this;
55890
55853
  }, g.getFileId = function() {
55891
- return W();
55854
+ return z();
55892
55855
  };
55893
- var J, ae = g.__private__.convertDateToPDFDate = function(z) {
55894
- var V = "", ye = z.getTimezoneOffset(), Fe = ye < 0 ? "+" : "-", We = Math.floor(Math.abs(ye / 60)), Ze = Math.abs(ye % 60), lt = [Fe, ue(We), "'", ue(Ze), "'"].join("");
55895
- return V = ["D:", z.getFullYear(), ue(z.getMonth() + 1), ue(z.getDate()), ue(z.getHours()), ue(z.getMinutes()), ue(z.getSeconds()), lt].join(""), V;
55896
- }, Ce = g.__private__.convertPDFDateToDate = function(z) {
55897
- var V = parseInt(z.substr(2, 4), 10), ye = parseInt(z.substr(6, 2), 10) - 1, Fe = parseInt(z.substr(8, 2), 10), We = parseInt(z.substr(10, 2), 10), Ze = parseInt(z.substr(12, 2), 10), lt = parseInt(z.substr(14, 2), 10), ft = new Date(V, ye, Fe, We, Ze, lt, 0);
55856
+ var J, ae = g.__private__.convertDateToPDFDate = function(W) {
55857
+ var V = "", ye = W.getTimezoneOffset(), Fe = ye < 0 ? "+" : "-", We = Math.floor(Math.abs(ye / 60)), Ze = Math.abs(ye % 60), lt = [Fe, ue(We), "'", ue(Ze), "'"].join("");
55858
+ return V = ["D:", W.getFullYear(), ue(W.getMonth() + 1), ue(W.getDate()), ue(W.getHours()), ue(W.getMinutes()), ue(W.getSeconds()), lt].join(""), V;
55859
+ }, Ce = g.__private__.convertPDFDateToDate = function(W) {
55860
+ var V = parseInt(W.substr(2, 4), 10), ye = parseInt(W.substr(6, 2), 10) - 1, Fe = parseInt(W.substr(8, 2), 10), We = parseInt(W.substr(10, 2), 10), Ze = parseInt(W.substr(12, 2), 10), lt = parseInt(W.substr(14, 2), 10), ft = new Date(V, ye, Fe, We, Ze, lt, 0);
55898
55861
  return ft;
55899
- }, oe = g.__private__.setCreationDate = function(z) {
55862
+ }, oe = g.__private__.setCreationDate = function(W) {
55900
55863
  var V, ye = /^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/;
55901
- if (typeof z > "u" && (z = /* @__PURE__ */ new Date()), z instanceof Date)
55902
- V = ae(z);
55903
- else if (ye.test(z))
55904
- V = z;
55864
+ if (typeof W > "u" && (W = /* @__PURE__ */ new Date()), W instanceof Date)
55865
+ V = ae(W);
55866
+ else if (ye.test(W))
55867
+ V = W;
55905
55868
  else
55906
55869
  throw new Error("Invalid argument passed to jsPDF.setCreationDate");
55907
55870
  return J = V, J;
55908
- }, me = g.__private__.getCreationDate = function(z) {
55871
+ }, me = g.__private__.getCreationDate = function(W) {
55909
55872
  var V = J;
55910
- return z === "jsDate" && (V = Ce(J)), V;
55873
+ return W === "jsDate" && (V = Ce(J)), V;
55911
55874
  };
55912
- g.setCreationDate = function(z) {
55913
- return oe(z), this;
55914
- }, g.getCreationDate = function(z) {
55915
- return me(z);
55875
+ g.setCreationDate = function(W) {
55876
+ return oe(W), this;
55877
+ }, g.getCreationDate = function(W) {
55878
+ return me(W);
55916
55879
  };
55917
- var ue = g.__private__.padd2 = function(z) {
55918
- return ("0" + parseInt(z)).slice(-2);
55919
- }, Q = g.__private__.padd2Hex = function(z) {
55920
- return z = z.toString(), ("00" + z).substr(z.length);
55880
+ var ue = g.__private__.padd2 = function(W) {
55881
+ return ("0" + parseInt(W)).slice(-2);
55882
+ }, Q = g.__private__.padd2Hex = function(W) {
55883
+ return W = W.toString(), ("00" + W).substr(W.length);
55921
55884
  }, ne = 0, xe = [], Ie = [], ve = 0, _e = [], pe = [], Pe, De = !1, Ve = Ie, Te = function() {
55922
55885
  ne = 0, ve = 0, Ie = [], xe = [], _e = [], Zt = jt(), lr = jt();
55923
55886
  };
55924
- g.__private__.setCustomOutputDestination = function(z) {
55925
- De = !0, Ve = z;
55887
+ g.__private__.setCustomOutputDestination = function(W) {
55888
+ De = !0, Ve = W;
55926
55889
  };
55927
55890
  var He = function(V) {
55928
55891
  De || (Ve = V);
@@ -55930,63 +55893,63 @@ function jsPDF(a) {
55930
55893
  g.__private__.resetCustomOutputDestination = function() {
55931
55894
  De = !1, Ve = Ie;
55932
55895
  };
55933
- var we = g.__private__.out = function(z) {
55934
- return z = z.toString(), ve += z.length + 1, Ve.push(z), Ve;
55935
- }, le = g.__private__.write = function(z) {
55936
- return we(arguments.length === 1 ? z.toString() : Array.prototype.join.call(arguments, " "));
55937
- }, he = g.__private__.getArrayBuffer = function(z) {
55938
- for (var V = z.length, ye = new ArrayBuffer(V), Fe = new Uint8Array(ye); V--; )
55939
- Fe[V] = z.charCodeAt(V);
55896
+ var we = g.__private__.out = function(W) {
55897
+ return W = W.toString(), ve += W.length + 1, Ve.push(W), Ve;
55898
+ }, le = g.__private__.write = function(W) {
55899
+ return we(arguments.length === 1 ? W.toString() : Array.prototype.join.call(arguments, " "));
55900
+ }, he = g.__private__.getArrayBuffer = function(W) {
55901
+ for (var V = W.length, ye = new ArrayBuffer(V), Fe = new Uint8Array(ye); V--; )
55902
+ Fe[V] = W.charCodeAt(V);
55940
55903
  return ye;
55941
55904
  }, $ = [["Helvetica", "helvetica", "normal", "WinAnsiEncoding"], ["Helvetica-Bold", "helvetica", "bold", "WinAnsiEncoding"], ["Helvetica-Oblique", "helvetica", "italic", "WinAnsiEncoding"], ["Helvetica-BoldOblique", "helvetica", "bolditalic", "WinAnsiEncoding"], ["Courier", "courier", "normal", "WinAnsiEncoding"], ["Courier-Bold", "courier", "bold", "WinAnsiEncoding"], ["Courier-Oblique", "courier", "italic", "WinAnsiEncoding"], ["Courier-BoldOblique", "courier", "bolditalic", "WinAnsiEncoding"], ["Times-Roman", "times", "normal", "WinAnsiEncoding"], ["Times-Bold", "times", "bold", "WinAnsiEncoding"], ["Times-Italic", "times", "italic", "WinAnsiEncoding"], ["Times-BoldItalic", "times", "bolditalic", "WinAnsiEncoding"], ["ZapfDingbats", "zapfdingbats", "normal", null], ["Symbol", "symbol", "normal", null]];
55942
55905
  g.__private__.getStandardFonts = function() {
55943
55906
  return $;
55944
55907
  };
55945
55908
  var Ne = a.fontSize || 16;
55946
- g.__private__.setFontSize = g.setFontSize = function(z) {
55947
- return D === _.ADVANCED ? Ne = z / kt : Ne = z, this;
55909
+ g.__private__.setFontSize = g.setFontSize = function(W) {
55910
+ return D === _.ADVANCED ? Ne = W / kt : Ne = W, this;
55948
55911
  };
55949
55912
  var Be = g.__private__.getFontSize = g.getFontSize = function() {
55950
55913
  return D === _.COMPAT ? Ne : Ne * kt;
55951
55914
  }, Qe = a.R2L || !1;
55952
- g.__private__.setR2L = g.setR2L = function(z) {
55953
- return Qe = z, this;
55915
+ g.__private__.setR2L = g.setR2L = function(W) {
55916
+ return Qe = W, this;
55954
55917
  }, g.__private__.getR2L = g.getR2L = function() {
55955
55918
  return Qe;
55956
55919
  };
55957
- var Me, ze = g.__private__.setZoomMode = function(z) {
55920
+ var Me, ze = g.__private__.setZoomMode = function(W) {
55958
55921
  var V = [void 0, null, "fullwidth", "fullheight", "fullpage", "original"];
55959
- if (/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(z))
55960
- Me = z;
55961
- else if (!isNaN(z))
55962
- Me = parseInt(z, 10);
55963
- else if (V.indexOf(z) !== -1)
55964
- Me = z;
55922
+ if (/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(W))
55923
+ Me = W;
55924
+ else if (!isNaN(W))
55925
+ Me = parseInt(W, 10);
55926
+ else if (V.indexOf(W) !== -1)
55927
+ Me = W;
55965
55928
  else
55966
- throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "' + z + '" is not recognized.');
55929
+ throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "' + W + '" is not recognized.');
55967
55930
  };
55968
55931
  g.__private__.getZoomMode = function() {
55969
55932
  return Me;
55970
55933
  };
55971
- var ot, ht = g.__private__.setPageMode = function(z) {
55934
+ var ot, ht = g.__private__.setPageMode = function(W) {
55972
55935
  var V = [void 0, null, "UseNone", "UseOutlines", "UseThumbs", "FullScreen"];
55973
- if (V.indexOf(z) == -1)
55974
- throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "' + z + '" is not recognized.');
55975
- ot = z;
55936
+ if (V.indexOf(W) == -1)
55937
+ throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "' + W + '" is not recognized.');
55938
+ ot = W;
55976
55939
  };
55977
55940
  g.__private__.getPageMode = function() {
55978
55941
  return ot;
55979
55942
  };
55980
- var bt, gt = g.__private__.setLayoutMode = function(z) {
55943
+ var bt, gt = g.__private__.setLayoutMode = function(W) {
55981
55944
  var V = [void 0, null, "continuous", "single", "twoleft", "tworight", "two"];
55982
- if (V.indexOf(z) == -1)
55983
- throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "' + z + '" is not recognized.');
55984
- bt = z;
55945
+ if (V.indexOf(W) == -1)
55946
+ throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "' + W + '" is not recognized.');
55947
+ bt = W;
55985
55948
  };
55986
55949
  g.__private__.getLayoutMode = function() {
55987
55950
  return bt;
55988
- }, g.__private__.setDisplayMode = g.setDisplayMode = function(z, V, ye) {
55989
- return ze(z), gt(V), ht(ye), this;
55951
+ }, g.__private__.setDisplayMode = g.setDisplayMode = function(W, V, ye) {
55952
+ return ze(W), gt(V), ht(ye), this;
55990
55953
  };
55991
55954
  var _t = {
55992
55955
  title: "",
@@ -55995,30 +55958,30 @@ function jsPDF(a) {
55995
55958
  keywords: "",
55996
55959
  creator: ""
55997
55960
  };
55998
- g.__private__.getDocumentProperty = function(z) {
55999
- if (Object.keys(_t).indexOf(z) === -1)
55961
+ g.__private__.getDocumentProperty = function(W) {
55962
+ if (Object.keys(_t).indexOf(W) === -1)
56000
55963
  throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");
56001
- return _t[z];
55964
+ return _t[W];
56002
55965
  }, g.__private__.getDocumentProperties = function() {
56003
55966
  return _t;
56004
- }, g.__private__.setDocumentProperties = g.setProperties = g.setDocumentProperties = function(z) {
55967
+ }, g.__private__.setDocumentProperties = g.setProperties = g.setDocumentProperties = function(W) {
56005
55968
  for (var V in _t)
56006
- _t.hasOwnProperty(V) && z[V] && (_t[V] = z[V]);
55969
+ _t.hasOwnProperty(V) && W[V] && (_t[V] = W[V]);
56007
55970
  return this;
56008
- }, g.__private__.setDocumentProperty = function(z, V) {
56009
- if (Object.keys(_t).indexOf(z) === -1)
55971
+ }, g.__private__.setDocumentProperty = function(W, V) {
55972
+ if (Object.keys(_t).indexOf(W) === -1)
56010
55973
  throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");
56011
- return _t[z] = V;
55974
+ return _t[W] = V;
56012
55975
  };
56013
55976
  var pt = {}, Tt = {}, xt, It = [], St = {}, Qt = {}, At = {}, or = {}, wr = null, kt, Gt = 0, ee = [], se = new PubSub(g), Se = a.hotfixes || [], Ue = {}, Ge = {}, Dt = [], Ut, Jt, nr, Et = function() {
56014
- pt = {}, Tt = {}, It = [], St = {}, Qt = {}, At = {}, or = {}, wr = null, Gt = 0, ee = [], se = null, Se = [], Ue = {}, Ge = {}, Dt = [], Ut = 0, Jt = 0, nr = {}, this.events.publish("destroy"), this.vFS && (Object.keys(this.vFS).forEach((z) => {
56015
- delete this.vFS[z];
56016
- }), this.vFS = {}), Ie = [], Ve = [], pe = [], Object.keys(this).forEach((z) => {
56017
- z != "destory" && delete this[z];
55977
+ pt = {}, Tt = {}, It = [], St = {}, Qt = {}, At = {}, or = {}, wr = null, Gt = 0, ee = [], se = null, Se = [], Ue = {}, Ge = {}, Dt = [], Ut = 0, Jt = 0, nr = {}, this.events.publish("destroy"), this.vFS && (Object.keys(this.vFS).forEach((W) => {
55978
+ delete this.vFS[W];
55979
+ }), this.vFS = {}), Ie = [], Ve = [], pe = [], Object.keys(this).forEach((W) => {
55980
+ W != "destory" && delete this[W];
56018
55981
  });
56019
- }, Pt = function z(V, ye, Fe, We, Ze, lt) {
56020
- if (!(this instanceof z))
56021
- return new z(V, ye, Fe, We, Ze, lt);
55982
+ }, Pt = function W(V, ye, Fe, We, Ze, lt) {
55983
+ if (!(this instanceof W))
55984
+ return new W(V, ye, Fe, We, Ze, lt);
56022
55985
  isNaN(V) && (V = 1), isNaN(ye) && (ye = 0), isNaN(Fe) && (Fe = 0), isNaN(We) && (We = 1), isNaN(Ze) && (Ze = 0), isNaN(lt) && (lt = 0), this._matrix = [V, ye, Fe, We, Ze, lt];
56023
55986
  };
56024
55987
  Object.defineProperty(Pt.prototype, "sx", {
@@ -56121,40 +56084,40 @@ function jsPDF(a) {
56121
56084
  get: function() {
56122
56085
  return !(this.sx !== 1 || this.shy !== 0 || this.shx !== 0 || this.sy !== 1 || this.tx !== 0 || this.ty !== 0);
56123
56086
  }
56124
- }), Pt.prototype.join = function(z) {
56125
- return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(L).join(z);
56126
- }, Pt.prototype.multiply = function(z) {
56127
- var V = z.sx * this.sx + z.shy * this.shx, ye = z.sx * this.shy + z.shy * this.sy, Fe = z.shx * this.sx + z.sy * this.shx, We = z.shx * this.shy + z.sy * this.sy, Ze = z.tx * this.sx + z.ty * this.shx + this.tx, lt = z.tx * this.shy + z.ty * this.sy + this.ty;
56087
+ }), Pt.prototype.join = function(W) {
56088
+ return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(L).join(W);
56089
+ }, Pt.prototype.multiply = function(W) {
56090
+ var V = W.sx * this.sx + W.shy * this.shx, ye = W.sx * this.shy + W.shy * this.sy, Fe = W.shx * this.sx + W.sy * this.shx, We = W.shx * this.shy + W.sy * this.sy, Ze = W.tx * this.sx + W.ty * this.shx + this.tx, lt = W.tx * this.shy + W.ty * this.sy + this.ty;
56128
56091
  return new Pt(V, ye, Fe, We, Ze, lt);
56129
56092
  }, Pt.prototype.decompose = function() {
56130
- var z = this.sx, V = this.shy, ye = this.shx, Fe = this.sy, We = this.tx, Ze = this.ty, lt = Math.sqrt(z * z + V * V);
56131
- z /= lt, V /= lt;
56132
- var ft = z * ye + V * Fe;
56133
- ye -= z * ft, Fe -= V * ft;
56093
+ var W = this.sx, V = this.shy, ye = this.shx, Fe = this.sy, We = this.tx, Ze = this.ty, lt = Math.sqrt(W * W + V * V);
56094
+ W /= lt, V /= lt;
56095
+ var ft = W * ye + V * Fe;
56096
+ ye -= W * ft, Fe -= V * ft;
56134
56097
  var mt = Math.sqrt(ye * ye + Fe * Fe);
56135
- return ye /= mt, Fe /= mt, ft /= mt, z * Fe < V * ye && (z = -z, V = -V, ft = -ft, lt = -lt), {
56098
+ return ye /= mt, Fe /= mt, ft /= mt, W * Fe < V * ye && (W = -W, V = -V, ft = -ft, lt = -lt), {
56136
56099
  scale: new Pt(lt, 0, 0, mt, 0, 0),
56137
56100
  translate: new Pt(1, 0, 0, 1, We, Ze),
56138
- rotate: new Pt(z, V, -V, z, 0, 0),
56101
+ rotate: new Pt(W, V, -V, W, 0, 0),
56139
56102
  skew: new Pt(1, 0, ft, 1, 0, 0)
56140
56103
  };
56141
- }, Pt.prototype.toString = function(z) {
56104
+ }, Pt.prototype.toString = function(W) {
56142
56105
  return this.join(" ");
56143
56106
  }, Pt.prototype.inversed = function() {
56144
- var z = this.sx, V = this.shy, ye = this.shx, Fe = this.sy, We = this.tx, Ze = this.ty, lt = 1 / (z * Fe - V * ye), ft = Fe * lt, mt = -V * lt, Bt = -ye * lt, Ht = z * lt, Kt = -ft * We - Bt * Ze, $t = -mt * We - Ht * Ze;
56107
+ var W = this.sx, V = this.shy, ye = this.shx, Fe = this.sy, We = this.tx, Ze = this.ty, lt = 1 / (W * Fe - V * ye), ft = Fe * lt, mt = -V * lt, Bt = -ye * lt, Ht = W * lt, Kt = -ft * We - Bt * Ze, $t = -mt * We - Ht * Ze;
56145
56108
  return new Pt(ft, mt, Bt, Ht, Kt, $t);
56146
- }, Pt.prototype.applyToPoint = function(z) {
56147
- var V = z.x * this.sx + z.y * this.shx + this.tx, ye = z.x * this.shy + z.y * this.sy + this.ty;
56109
+ }, Pt.prototype.applyToPoint = function(W) {
56110
+ var V = W.x * this.sx + W.y * this.shx + this.tx, ye = W.x * this.shy + W.y * this.sy + this.ty;
56148
56111
  return new xo(V, ye);
56149
- }, Pt.prototype.applyToRectangle = function(z) {
56150
- var V = this.applyToPoint(z), ye = this.applyToPoint(new xo(z.x + z.w, z.y + z.h));
56112
+ }, Pt.prototype.applyToRectangle = function(W) {
56113
+ var V = this.applyToPoint(W), ye = this.applyToPoint(new xo(W.x + W.w, W.y + W.h));
56151
56114
  return new bo(V.x, V.y, ye.x - V.x, ye.y - V.y);
56152
56115
  }, Pt.prototype.clone = function() {
56153
- var z = this.sx, V = this.shy, ye = this.shx, Fe = this.sy, We = this.tx, Ze = this.ty;
56154
- return new Pt(z, V, ye, Fe, We, Ze);
56116
+ var W = this.sx, V = this.shy, ye = this.shx, Fe = this.sy, We = this.tx, Ze = this.ty;
56117
+ return new Pt(W, V, ye, Fe, We, Ze);
56155
56118
  }, g.Matrix = Pt;
56156
- var Ot = g.matrixMult = function(z, V) {
56157
- return V.multiply(z);
56119
+ var Ot = g.matrixMult = function(W, V) {
56120
+ return V.multiply(W);
56158
56121
  }, Cr = new Pt(1, 0, 0, 1, 0, 0);
56159
56122
  g.unitMatrix = g.identityMatrix = Cr;
56160
56123
  var Nr = function(V, ye) {
@@ -56163,17 +56126,17 @@ function jsPDF(a) {
56163
56126
  ye.id = We, Qt[V] = We, St[We] = ye, se.publish("addPattern", ye);
56164
56127
  }
56165
56128
  };
56166
- g.ShadingPattern = ShadingPattern, g.TilingPattern = TilingPattern, g.addShadingPattern = function(z, V) {
56167
- return M("addShadingPattern()"), Nr(z, V), this;
56168
- }, g.beginTilingPattern = function(z) {
56169
- M("beginTilingPattern()"), wn(z.boundingBox[0], z.boundingBox[1], z.boundingBox[2] - z.boundingBox[0], z.boundingBox[3] - z.boundingBox[1], z.matrix);
56170
- }, g.endTilingPattern = function(z, V) {
56129
+ g.ShadingPattern = ShadingPattern, g.TilingPattern = TilingPattern, g.addShadingPattern = function(W, V) {
56130
+ return M("addShadingPattern()"), Nr(W, V), this;
56131
+ }, g.beginTilingPattern = function(W) {
56132
+ M("beginTilingPattern()"), wn(W.boundingBox[0], W.boundingBox[1], W.boundingBox[2] - W.boundingBox[0], W.boundingBox[3] - W.boundingBox[1], W.matrix);
56133
+ }, g.endTilingPattern = function(W, V) {
56171
56134
  M("endTilingPattern()"), V.stream = pe[Pe].join(`
56172
- `), Nr(z, V), se.publish("endTilingPattern", V), Dt.pop().restore();
56135
+ `), Nr(W, V), se.publish("endTilingPattern", V), Dt.pop().restore();
56173
56136
  };
56174
56137
  var Xt = g.__private__.newObject = function() {
56175
- var z = jt();
56176
- return tr(z, !0), z;
56138
+ var W = jt();
56139
+ return tr(W, !0), W;
56177
56140
  }, jt = g.__private__.newObjectDeferred = function() {
56178
56141
  return ne++, xe[ne] = function() {
56179
56142
  return ve;
@@ -56181,13 +56144,13 @@ function jsPDF(a) {
56181
56144
  }, tr = function(V, ye) {
56182
56145
  return ye = typeof ye == "boolean" ? ye : !1, xe[V] = ve, ye && we(V + " 0 obj"), V;
56183
56146
  }, Vt = g.__private__.newAdditionalObject = function() {
56184
- var z = jt(), V = {
56185
- objId: z,
56147
+ var W = jt(), V = {
56148
+ objId: W,
56186
56149
  content: ""
56187
56150
  };
56188
56151
  return _e.push(V), V;
56189
- }, Zt = jt(), lr = jt(), gr = g.__private__.decodeColorString = function(z) {
56190
- var V = z.split(" ");
56152
+ }, Zt = jt(), lr = jt(), gr = g.__private__.decodeColorString = function(W) {
56153
+ var V = W.split(" ");
56191
56154
  if (V.length === 2 && (V[1] === "g" || V[1] === "G")) {
56192
56155
  var ye = parseFloat(V[0]);
56193
56156
  V = [ye, ye, ye, "r"];
@@ -56198,12 +56161,12 @@ function jsPDF(a) {
56198
56161
  for (var lt = "#", ft = 0; ft < 3; ft++)
56199
56162
  lt += ("0" + Math.floor(parseFloat(V[ft]) * 255).toString(16)).slice(-2);
56200
56163
  return lt;
56201
- }, Rr = g.__private__.encodeColorString = function(z) {
56164
+ }, Rr = g.__private__.encodeColorString = function(W) {
56202
56165
  var V;
56203
- typeof z == "string" && (z = {
56204
- ch1: z
56166
+ typeof W == "string" && (W = {
56167
+ ch1: W
56205
56168
  });
56206
- var ye = z.ch1, Fe = z.ch2, We = z.ch3, Ze = z.ch4, lt = z.pdfColorType === "draw" ? ["G", "RG", "K"] : ["g", "rg", "k"];
56169
+ var ye = W.ch1, Fe = W.ch2, We = W.ch3, Ze = W.ch4, lt = W.pdfColorType === "draw" ? ["G", "RG", "K"] : ["g", "rg", "k"];
56207
56170
  if (typeof ye == "string" && ye.charAt(0) !== "#") {
56208
56171
  var ft = new RGBColor(ye);
56209
56172
  if (ft.ok)
@@ -56219,7 +56182,7 @@ function jsPDF(a) {
56219
56182
  if (typeof ye == "string")
56220
56183
  V = ye + " " + lt[0];
56221
56184
  else
56222
- switch (z.precision) {
56185
+ switch (W.precision) {
56223
56186
  case 2:
56224
56187
  V = H(ye / 255) + " " + lt[0];
56225
56188
  break;
@@ -56233,7 +56196,7 @@ function jsPDF(a) {
56233
56196
  if (typeof ye == "string")
56234
56197
  V = [ye, Fe, We, lt[1]].join(" ");
56235
56198
  else
56236
- switch (z.precision) {
56199
+ switch (W.precision) {
56237
56200
  case 2:
56238
56201
  V = [H(ye / 255), H(Fe / 255), H(We / 255), lt[1]].join(" ");
56239
56202
  break;
@@ -56244,7 +56207,7 @@ function jsPDF(a) {
56244
56207
  } else if (typeof ye == "string")
56245
56208
  V = [ye, Fe, We, Ze, lt[2]].join(" ");
56246
56209
  else
56247
- switch (z.precision) {
56210
+ switch (W.precision) {
56248
56211
  case 2:
56249
56212
  V = [H(ye), H(Fe), H(We), H(Ze), lt[2]].join(" ");
56250
56213
  break;
@@ -56255,9 +56218,9 @@ function jsPDF(a) {
56255
56218
  return V;
56256
56219
  }, hi = g.__private__.getFilters = function() {
56257
56220
  return s;
56258
- }, Or = g.__private__.putStream = function(z) {
56259
- z = z || {};
56260
- var V = z.data || "", ye = z.filters || hi(), Fe = z.alreadyAppliedFilters || [], We = z.addLength1 || !1, Ze = V.length, lt = z.objectId, ft = function(br) {
56221
+ }, Or = g.__private__.putStream = function(W) {
56222
+ W = W || {};
56223
+ var V = W.data || "", ye = W.filters || hi(), Fe = W.alreadyAppliedFilters || [], We = W.addLength1 || !1, Ze = V.length, lt = W.objectId, ft = function(br) {
56261
56224
  return br;
56262
56225
  };
56263
56226
  if (f !== null && typeof lt > "u")
@@ -56265,7 +56228,7 @@ function jsPDF(a) {
56265
56228
  f !== null && (ft = Pr.encryptor(lt, 0));
56266
56229
  var mt = {};
56267
56230
  ye === !0 && (ye = ["FlateEncode"]);
56268
- var Bt = z.additionalKeyValues || [];
56231
+ var Bt = W.additionalKeyValues || [];
56269
56232
  typeof jsPDF.API.processDataByFilters < "u" ? mt = jsPDF.API.processDataByFilters(V, ye) : mt = {
56270
56233
  data: V,
56271
56234
  reverseChain: []
@@ -56299,9 +56262,9 @@ function jsPDF(a) {
56299
56262
  for (var Sr = 0; Sr < Bt.length; Sr++)
56300
56263
  we("/" + Bt[Sr].key + " " + Bt[Sr].value);
56301
56264
  we(">>"), mt.data.length !== 0 && (we("stream"), we(ft(mt.data)), we("endstream"));
56302
- }, Ur = g.__private__.putPage = function(z) {
56303
- var V = z.number, ye = z.data, Fe = z.objId, We = z.contentsObjId;
56304
- tr(Fe, !0), we("<</Type /Page"), we("/Parent " + z.rootDictionaryObjId + " 0 R"), we("/Resources " + z.resourceDictionaryObjId + " 0 R"), we("/MediaBox [" + parseFloat(L(z.mediaBox.bottomLeftX)) + " " + parseFloat(L(z.mediaBox.bottomLeftY)) + " " + L(z.mediaBox.topRightX) + " " + L(z.mediaBox.topRightY) + "]"), z.cropBox !== null && we("/CropBox [" + L(z.cropBox.bottomLeftX) + " " + L(z.cropBox.bottomLeftY) + " " + L(z.cropBox.topRightX) + " " + L(z.cropBox.topRightY) + "]"), z.bleedBox !== null && we("/BleedBox [" + L(z.bleedBox.bottomLeftX) + " " + L(z.bleedBox.bottomLeftY) + " " + L(z.bleedBox.topRightX) + " " + L(z.bleedBox.topRightY) + "]"), z.trimBox !== null && we("/TrimBox [" + L(z.trimBox.bottomLeftX) + " " + L(z.trimBox.bottomLeftY) + " " + L(z.trimBox.topRightX) + " " + L(z.trimBox.topRightY) + "]"), z.artBox !== null && we("/ArtBox [" + L(z.artBox.bottomLeftX) + " " + L(z.artBox.bottomLeftY) + " " + L(z.artBox.topRightX) + " " + L(z.artBox.topRightY) + "]"), typeof z.userUnit == "number" && z.userUnit !== 1 && we("/UserUnit " + z.userUnit), se.publish("putPage", {
56265
+ }, Ur = g.__private__.putPage = function(W) {
56266
+ var V = W.number, ye = W.data, Fe = W.objId, We = W.contentsObjId;
56267
+ tr(Fe, !0), we("<</Type /Page"), we("/Parent " + W.rootDictionaryObjId + " 0 R"), we("/Resources " + W.resourceDictionaryObjId + " 0 R"), we("/MediaBox [" + parseFloat(L(W.mediaBox.bottomLeftX)) + " " + parseFloat(L(W.mediaBox.bottomLeftY)) + " " + L(W.mediaBox.topRightX) + " " + L(W.mediaBox.topRightY) + "]"), W.cropBox !== null && we("/CropBox [" + L(W.cropBox.bottomLeftX) + " " + L(W.cropBox.bottomLeftY) + " " + L(W.cropBox.topRightX) + " " + L(W.cropBox.topRightY) + "]"), W.bleedBox !== null && we("/BleedBox [" + L(W.bleedBox.bottomLeftX) + " " + L(W.bleedBox.bottomLeftY) + " " + L(W.bleedBox.topRightX) + " " + L(W.bleedBox.topRightY) + "]"), W.trimBox !== null && we("/TrimBox [" + L(W.trimBox.bottomLeftX) + " " + L(W.trimBox.bottomLeftY) + " " + L(W.trimBox.topRightX) + " " + L(W.trimBox.topRightY) + "]"), W.artBox !== null && we("/ArtBox [" + L(W.artBox.bottomLeftX) + " " + L(W.artBox.bottomLeftY) + " " + L(W.artBox.topRightX) + " " + L(W.artBox.topRightY) + "]"), typeof W.userUnit == "number" && W.userUnit !== 1 && we("/UserUnit " + W.userUnit), se.publish("putPage", {
56305
56268
  objId: Fe,
56306
56269
  pageContext: ee[V],
56307
56270
  pageNumber: V,
@@ -56316,21 +56279,21 @@ Q`), tr(We, !0), Or({
56316
56279
  objectId: We
56317
56280
  }), we("endobj"), Fe;
56318
56281
  }, Yr = g.__private__.putPages = function() {
56319
- var z, V, ye = [];
56320
- for (z = 1; z <= Gt; z++)
56321
- ee[z].objId = jt(), ee[z].contentsObjId = jt();
56322
- for (z = 1; z <= Gt; z++)
56282
+ var W, V, ye = [];
56283
+ for (W = 1; W <= Gt; W++)
56284
+ ee[W].objId = jt(), ee[W].contentsObjId = jt();
56285
+ for (W = 1; W <= Gt; W++)
56323
56286
  ye.push(Ur({
56324
- number: z,
56325
- data: pe[z],
56326
- objId: ee[z].objId,
56327
- contentsObjId: ee[z].contentsObjId,
56328
- mediaBox: ee[z].mediaBox,
56329
- cropBox: ee[z].cropBox,
56330
- bleedBox: ee[z].bleedBox,
56331
- trimBox: ee[z].trimBox,
56332
- artBox: ee[z].artBox,
56333
- userUnit: ee[z].userUnit,
56287
+ number: W,
56288
+ data: pe[W],
56289
+ objId: ee[W].objId,
56290
+ contentsObjId: ee[W].contentsObjId,
56291
+ mediaBox: ee[W].mediaBox,
56292
+ cropBox: ee[W].cropBox,
56293
+ bleedBox: ee[W].bleedBox,
56294
+ trimBox: ee[W].trimBox,
56295
+ artBox: ee[W].artBox,
56296
+ userUnit: ee[W].userUnit,
56334
56297
  rootDictionaryObjId: Zt,
56335
56298
  resourceDictionaryObjId: lr
56336
56299
  }));
@@ -56606,9 +56569,9 @@ Q`), tr(We, !0), Or({
56606
56569
  mt.push(Kt), mt.push(Ht - (Kt << 8));
56607
56570
  }
56608
56571
  return String.fromCharCode.apply(void 0, mt);
56609
- }, at = g.__private__.pdfEscape = g.pdfEscape = function(z, V) {
56610
- return ct(z, V).replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)");
56611
- }, ut = g.__private__.beginPage = function(z) {
56572
+ }, at = g.__private__.pdfEscape = g.pdfEscape = function(W, V) {
56573
+ return ct(W, V).replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)");
56574
+ }, ut = g.__private__.beginPage = function(W) {
56612
56575
  pe[++Gt] = [], ee[Gt] = {
56613
56576
  objId: 0,
56614
56577
  contentsObjId: 0,
@@ -56620,8 +56583,8 @@ Q`), tr(We, !0), Or({
56620
56583
  mediaBox: {
56621
56584
  bottomLeftX: 0,
56622
56585
  bottomLeftY: 0,
56623
- topRightX: Number(z[0]),
56624
- topRightY: Number(z[1])
56586
+ topRightX: Number(W[0]),
56587
+ topRightY: Number(W[1])
56625
56588
  }
56626
56589
  }, Yt(Gt), He(pe[Pe]);
56627
56590
  }, vt = function(V, ye) {
@@ -56647,16 +56610,16 @@ Q`), tr(We, !0), Or({
56647
56610
  var We = void 0, Ze;
56648
56611
  return Fe = Fe || {}, V = V !== void 0 ? V : pt[xt].fontName, ye = ye !== void 0 ? ye : pt[xt].fontStyle, Ze = V.toLowerCase(), Tt[Ze] !== void 0 && Tt[Ze][ye] !== void 0 ? We = Tt[Ze][ye] : Tt[V] !== void 0 && Tt[V][ye] !== void 0 ? We = Tt[V][ye] : Fe.disableWarning === !1 && console$1.warn("Unable to look up font label for font '" + V + "', '" + ye + "'. Refer to getFontList() for available fonts."), !We && !Fe.noFallback && (We = Tt.times[ye], We == null && (We = Tt.times.normal)), We;
56649
56612
  }, cr = g.__private__.putInfo = function() {
56650
- var z = Xt(), V = function(We) {
56613
+ var W = Xt(), V = function(We) {
56651
56614
  return We;
56652
56615
  };
56653
- f !== null && (V = Pr.encryptor(z, 0)), we("<<"), we("/Producer (" + at(V("jsPDF " + jsPDF.version)) + ")");
56616
+ f !== null && (V = Pr.encryptor(W, 0)), we("<<"), we("/Producer (" + at(V("jsPDF " + jsPDF.version)) + ")");
56654
56617
  for (var ye in _t)
56655
56618
  _t.hasOwnProperty(ye) && _t[ye] && we("/" + ye.substr(0, 1).toUpperCase() + ye.substr(1) + " (" + at(V(_t[ye])) + ")");
56656
56619
  we("/CreationDate (" + at(V(J)) + ")"), we(">>"), we("endobj");
56657
- }, kr = g.__private__.putCatalog = function(z) {
56658
- z = z || {};
56659
- var V = z.rootDictionaryObjId || Zt;
56620
+ }, kr = g.__private__.putCatalog = function(W) {
56621
+ W = W || {};
56622
+ var V = W.rootDictionaryObjId || Zt;
56660
56623
  switch (Xt(), we("<<"), we("/Type /Catalog"), we("/Pages " + V + " 0 R"), Me || (Me = "fullwidth"), Me) {
56661
56624
  case "fullwidth":
56662
56625
  we("/OpenAction [3 0 R /FitH null]");
@@ -56695,19 +56658,19 @@ Q`), tr(We, !0), Or({
56695
56658
  }, Qi = g.__private__.putHeader = function() {
56696
56659
  we("%PDF-" + y), we("%ºß¬à");
56697
56660
  }, Wo = g.__private__.putXRef = function() {
56698
- var z = "0000000000";
56661
+ var W = "0000000000";
56699
56662
  we("xref"), we("0 " + (ne + 1)), we("0000000000 65535 f ");
56700
56663
  for (var V = 1; V <= ne; V++) {
56701
56664
  var ye = xe[V];
56702
- typeof ye == "function" ? we((z + xe[V]()).slice(-10) + " 00000 n ") : typeof xe[V] < "u" ? we((z + xe[V]).slice(-10) + " 00000 n ") : we("0000000000 00000 n ");
56665
+ typeof ye == "function" ? we((W + xe[V]()).slice(-10) + " 00000 n ") : typeof xe[V] < "u" ? we((W + xe[V]).slice(-10) + " 00000 n ") : we("0000000000 00000 n ");
56703
56666
  }
56704
56667
  }, Zr = g.__private__.buildDocument = function() {
56705
56668
  Te(), He(Ie), se.publish("buildDocument"), Qi(), Yr(), ke(), be(), f !== null && mo(), cr(), kr();
56706
- var z = ve;
56707
- return Wo(), Pi(), we("startxref"), we("" + z), we("%%EOF"), He(pe[Pe]), Ie.join(`
56669
+ var W = ve;
56670
+ return Wo(), Pi(), we("startxref"), we("" + W), we("%%EOF"), He(pe[Pe]), Ie.join(`
56708
56671
  `);
56709
- }, Ji = g.__private__.getBlob = function(z) {
56710
- return new Blob([he(z)], {
56672
+ }, Ji = g.__private__.getBlob = function(W) {
56673
+ return new Blob([he(W)], {
56711
56674
  type: "application/pdf"
56712
56675
  });
56713
56676
  }, Ki = g.output = g.__private__.output = rt(function(V, ye) {
@@ -56810,20 +56773,20 @@ Q`), tr(We, !0), Or({
56810
56773
  return f !== null ? Pr.encryptor(V, 0) : function(ye) {
56811
56774
  return ye;
56812
56775
  };
56813
- }, un = g.__private__.getPageInfo = g.getPageInfo = function(z) {
56814
- if (isNaN(z) || z % 1 !== 0)
56776
+ }, un = g.__private__.getPageInfo = g.getPageInfo = function(W) {
56777
+ if (isNaN(W) || W % 1 !== 0)
56815
56778
  throw new Error("Invalid argument passed to jsPDF.getPageInfo");
56816
- var V = ee[z].objId;
56779
+ var V = ee[W].objId;
56817
56780
  return {
56818
56781
  objId: V,
56819
- pageNumber: z,
56820
- pageContext: ee[z]
56782
+ pageNumber: W,
56783
+ pageContext: ee[W]
56821
56784
  };
56822
- }, In = g.__private__.getPageInfoByObjId = function(z) {
56823
- if (isNaN(z) || z % 1 !== 0)
56785
+ }, In = g.__private__.getPageInfoByObjId = function(W) {
56786
+ if (isNaN(W) || W % 1 !== 0)
56824
56787
  throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");
56825
56788
  for (var V in ee)
56826
- if (ee[V].objId === z)
56789
+ if (ee[V].objId === W)
56827
56790
  break;
56828
56791
  return un(V);
56829
56792
  }, An = g.__private__.getCurrentPageInfo = g.getCurrentPageInfo = function() {
@@ -56837,39 +56800,39 @@ Q`), tr(We, !0), Or({
56837
56800
  return vt.apply(this, arguments), this;
56838
56801
  }, g.setPage = function() {
56839
56802
  return Yt.apply(this, arguments), He.call(this, pe[Pe]), this;
56840
- }, g.insertPage = function(z) {
56841
- return this.addPage(), this.movePage(Pe, z), this;
56842
- }, g.movePage = function(z, V) {
56803
+ }, g.insertPage = function(W) {
56804
+ return this.addPage(), this.movePage(Pe, W), this;
56805
+ }, g.movePage = function(W, V) {
56843
56806
  var ye, Fe;
56844
- if (z > V) {
56845
- ye = pe[z], Fe = ee[z];
56846
- for (var We = z; We > V; We--)
56807
+ if (W > V) {
56808
+ ye = pe[W], Fe = ee[W];
56809
+ for (var We = W; We > V; We--)
56847
56810
  pe[We] = pe[We - 1], ee[We] = ee[We - 1];
56848
56811
  pe[V] = ye, ee[V] = Fe, this.setPage(V);
56849
- } else if (z < V) {
56850
- ye = pe[z], Fe = ee[z];
56851
- for (var Ze = z; Ze < V; Ze++)
56812
+ } else if (W < V) {
56813
+ ye = pe[W], Fe = ee[W];
56814
+ for (var Ze = W; Ze < V; Ze++)
56852
56815
  pe[Ze] = pe[Ze + 1], ee[Ze] = ee[Ze + 1];
56853
56816
  pe[V] = ye, ee[V] = Fe, this.setPage(V);
56854
56817
  }
56855
56818
  return this;
56856
56819
  }, g.deletePage = function() {
56857
56820
  return zt.apply(this, arguments), this;
56858
- }, g.__private__.text = g.text = function(z, V, ye, Fe, We) {
56821
+ }, g.__private__.text = g.text = function(W, V, ye, Fe, We) {
56859
56822
  Fe = Fe || {};
56860
56823
  var Ze = Fe.scope || this, lt, ft, mt, Bt, Ht, Kt, $t, yr;
56861
- if (typeof z == "number" && typeof V == "number" && (typeof ye == "string" || Array.isArray(ye))) {
56824
+ if (typeof W == "number" && typeof V == "number" && (typeof ye == "string" || Array.isArray(ye))) {
56862
56825
  var Sr = ye;
56863
- ye = V, V = z, z = Sr;
56826
+ ye = V, V = W, W = Sr;
56864
56827
  }
56865
56828
  var ur;
56866
56829
  if (arguments[3] instanceof Pt ? (M("The transform parameter of text() with a Matrix value"), ur = We) : ($t = arguments[3], mt = arguments[4], Bt = arguments[5], (_typeof($t) !== "object" || $t === null) && (typeof mt == "string" && (Bt = mt, mt = null), typeof $t == "string" && (Bt = $t, $t = null), typeof $t == "number" && (mt = $t, $t = null), Fe = {
56867
56830
  flags: $t,
56868
56831
  angle: mt,
56869
56832
  align: Bt
56870
- })), isNaN(V) || isNaN(ye) || typeof z > "u" || z === null)
56833
+ })), isNaN(V) || isNaN(ye) || typeof W > "u" || W === null)
56871
56834
  throw new Error("Invalid arguments passed to jsPDF.text");
56872
- if (z.length === 0)
56835
+ if (W.length === 0)
56873
56836
  return Ze;
56874
56837
  var br = "", Br = !1, Oi = typeof Fe.lineHeightFactor == "number" ? Fe.lineHeightFactor : $i, _o = Ze.internal.scaleFactor;
56875
56838
  function fr(vr) {
@@ -56892,18 +56855,18 @@ Q`), tr(We, !0), Or({
56892
56855
  return dr;
56893
56856
  }
56894
56857
  var io = !1, Qo = !0;
56895
- if (typeof z == "string")
56858
+ if (typeof W == "string")
56896
56859
  io = !0;
56897
- else if (Array.isArray(z)) {
56898
- var Jr = z.concat();
56860
+ else if (Array.isArray(W)) {
56861
+ var Jr = W.concat();
56899
56862
  ft = [];
56900
56863
  for (var Dr = Jr.length, si; Dr--; )
56901
56864
  si = Jr.shift(), (typeof si != "string" || Array.isArray(si) && typeof si[0] != "string") && (Qo = !1);
56902
56865
  io = Qo;
56903
56866
  }
56904
56867
  if (io === !1)
56905
- throw new Error('Type of text must be string or Array. "' + z + '" is not recognized.');
56906
- typeof z == "string" && (z.match(/[\r?\n]/) ? z = [z.replace(/\r\n|\r|\n/g, "")] : z = [z]);
56868
+ throw new Error('Type of text must be string or Array. "' + W + '" is not recognized.');
56869
+ typeof W == "string" && (W.match(/[\r?\n]/) ? W = [W.replace(/\r\n|\r|\n/g, "")] : W = [W]);
56907
56870
  var oo = Ne / Ze.internal.scaleFactor, no = oo * (Oi - 1);
56908
56871
  switch (Fe.baseline) {
56909
56872
  case "bottom":
@@ -56919,10 +56882,10 @@ Q`), tr(We, !0), Or({
56919
56882
  ye += oo / 2 - no;
56920
56883
  break;
56921
56884
  }
56922
- if (Kt = Fe.maxWidth || 0, Kt > 0 && (typeof z == "string" ? z = Ze.splitTextToSize(z, Kt) : Object.prototype.toString.call(z) === "[object Array]" && (z = z.reduce(function(vr, ar) {
56885
+ if (Kt = Fe.maxWidth || 0, Kt > 0 && (typeof W == "string" ? W = Ze.splitTextToSize(W, Kt) : Object.prototype.toString.call(W) === "[object Array]" && (W = W.reduce(function(vr, ar) {
56923
56886
  return vr.concat(Ze.splitTextToSize(ar, Kt));
56924
56887
  }, []))), lt = {
56925
- text: z,
56888
+ text: W,
56926
56889
  x: V,
56927
56890
  y: ye,
56928
56891
  options: Fe,
@@ -56932,7 +56895,7 @@ Q`), tr(We, !0), Or({
56932
56895
  fonts: pt,
56933
56896
  activeFontSize: Ne
56934
56897
  }
56935
- }, se.publish("preProcessText", lt), z = lt.text, Fe = lt.options, mt = Fe.angle, !(ur instanceof Pt) && mt && typeof mt == "number") {
56898
+ }, se.publish("preProcessText", lt), W = lt.text, Fe = lt.options, mt = Fe.angle, !(ur instanceof Pt) && mt && typeof mt == "number") {
56936
56899
  mt *= Math.PI / 180, Fe.rotationDirection === 0 && (mt = -mt), D === _.ADVANCED && (mt = -mt);
56937
56900
  var Jo = Math.cos(mt), Bi = Math.sin(mt);
56938
56901
  ur = new Pt(Jo, Bi, -Bi, Jo, 0, 0);
@@ -56989,8 +56952,8 @@ Q`), tr(We, !0), Or({
56989
56952
  noBOM: !0
56990
56953
  }, Fe.flags);
56991
56954
  var lo = [];
56992
- if (Object.prototype.toString.call(z) === "[object Array]") {
56993
- ft = Xo(z);
56955
+ if (Object.prototype.toString.call(W) === "[object Array]") {
56956
+ ft = Xo(W);
56994
56957
  var xi;
56995
56958
  Bt !== "left" && (Kr = ft.map(function(vr) {
56996
56959
  return Ze.getStringUnitWidth(vr, {
@@ -57002,29 +56965,29 @@ Q`), tr(We, !0), Or({
57002
56965
  }));
57003
56966
  var co = 0, bi;
57004
56967
  if (Bt === "right") {
57005
- V -= Kr[0], z = [], Dr = ft.length;
56968
+ V -= Kr[0], W = [], Dr = ft.length;
57006
56969
  for (var zi = 0; zi < Dr; zi++)
57007
- zi === 0 ? (bi = Ni(V), xi = sr(ye)) : (bi = Y(co - Kr[zi]), xi = -Ko), z.push([ft[zi], bi, xi]), co = Kr[zi];
56970
+ zi === 0 ? (bi = Ni(V), xi = sr(ye)) : (bi = Y(co - Kr[zi]), xi = -Ko), W.push([ft[zi], bi, xi]), co = Kr[zi];
57008
56971
  } else if (Bt === "center") {
57009
- V -= Kr[0] / 2, z = [], Dr = ft.length;
56972
+ V -= Kr[0] / 2, W = [], Dr = ft.length;
57010
56973
  for (var Wi = 0; Wi < Dr; Wi++)
57011
- Wi === 0 ? (bi = Ni(V), xi = sr(ye)) : (bi = Y((co - Kr[Wi]) / 2), xi = -Ko), z.push([ft[Wi], bi, xi]), co = Kr[Wi];
56974
+ Wi === 0 ? (bi = Ni(V), xi = sr(ye)) : (bi = Y((co - Kr[Wi]) / 2), xi = -Ko), W.push([ft[Wi], bi, xi]), co = Kr[Wi];
57012
56975
  } else if (Bt === "left") {
57013
- z = [], Dr = ft.length;
56976
+ W = [], Dr = ft.length;
57014
56977
  for (var To = 0; To < Dr; To++)
57015
- z.push(ft[To]);
56978
+ W.push(ft[To]);
57016
56979
  } else if (Bt === "justify") {
57017
- z = [], Dr = ft.length, Kt = Kt !== 0 ? Kt : ao;
56980
+ W = [], Dr = ft.length, Kt = Kt !== 0 ? Kt : ao;
57018
56981
  for (var ai = 0; ai < Dr; ai++)
57019
- xi = ai === 0 ? sr(ye) : -Ko, bi = ai === 0 ? Ni(V) : 0, ai < Dr - 1 ? lo.push(L(Y((Kt - Kr[ai]) / (ft[ai].split("").length - 1)))) : lo.push(0), z.push([ft[ai], bi, xi]);
56982
+ xi = ai === 0 ? sr(ye) : -Ko, bi = ai === 0 ? Ni(V) : 0, ai < Dr - 1 ? lo.push(L(Y((Kt - Kr[ai]) / (ft[ai].split("").length - 1)))) : lo.push(0), W.push([ft[ai], bi, xi]);
57020
56983
  } else
57021
56984
  throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');
57022
56985
  }
57023
56986
  var $o = typeof Fe.R2L == "boolean" ? Fe.R2L : Qe;
57024
- $o === !0 && (z = qo(z, function(vr, ar, dr) {
56987
+ $o === !0 && (W = qo(W, function(vr, ar, dr) {
57025
56988
  return [vr.split("").reverse().join(""), ar, dr];
57026
56989
  })), lt = {
57027
- text: z,
56990
+ text: W,
57028
56991
  x: V,
57029
56992
  y: ye,
57030
56993
  options: Fe,
@@ -57034,11 +56997,11 @@ Q`), tr(We, !0), Or({
57034
56997
  fonts: pt,
57035
56998
  activeFontSize: Ne
57036
56999
  }
57037
- }, se.publish("postProcessText", lt), z = lt.text, Br = lt.mutex.isHex || !1;
57000
+ }, se.publish("postProcessText", lt), W = lt.text, Br = lt.mutex.isHex || !1;
57038
57001
  var en = pt[xt].encoding;
57039
- (en === "WinAnsiEncoding" || en === "StandardEncoding") && (z = qo(z, function(vr, ar, dr) {
57002
+ (en === "WinAnsiEncoding" || en === "StandardEncoding") && (W = qo(W, function(vr, ar, dr) {
57040
57003
  return [fr(vr), ar, dr];
57041
- })), ft = Xo(z), z = [];
57004
+ })), ft = Xo(W), W = [];
57042
57005
  for (var Ei = 0, ho = 1, uo = Array.isArray(ft[0]) ? ho : Ei, Hr, Gr, Fi, ji = "", So = function(ar, dr, Fr) {
57043
57006
  var xr = "";
57044
57007
  return Fr instanceof Pt ? (typeof Fe.angle == "number" ? Fr = Ot(Fr, new Pt(1, 0, 0, 1, ar, dr)) : Fr = Ot(new Pt(1, 0, 0, 1, ar, dr), Fr), D === _.ADVANCED && (Fr = Ot(new Pt(1, 0, 0, -1, 0, 0), Fr)), xr = Fr.join(" ") + ` Tm
@@ -57054,37 +57017,37 @@ Q`), tr(We, !0), Or({
57054
57017
  break;
57055
57018
  }
57056
57019
  typeof lo < "u" && typeof lo[Vr] < "u" && (ji = lo[Vr] + ` Tw
57057
- `), Vr === 0 ? z.push(ji + So(Hr, Gr, ur) + Fi) : uo === Ei ? z.push(ji + Fi) : uo === ho && z.push(ji + So(Hr, Gr, ur) + Fi);
57020
+ `), Vr === 0 ? W.push(ji + So(Hr, Gr, ur) + Fi) : uo === Ei ? W.push(ji + Fi) : uo === ho && W.push(ji + So(Hr, Gr, ur) + Fi);
57058
57021
  }
57059
- z = uo === Ei ? z.join(` Tj
57060
- T* `) : z.join(` Tj
57061
- `), z += ` Tj
57022
+ W = uo === Ei ? W.join(` Tj
57023
+ T* `) : W.join(` Tj
57024
+ `), W += ` Tj
57062
57025
  `;
57063
57026
  var li = `BT
57064
57027
  /`;
57065
57028
  return li += xt + " " + Ne + ` Tf
57066
57029
  `, li += L(Ne * Oi) + ` TL
57067
57030
  `, li += Hi + `
57068
- `, li += br, li += z, li += "ET", we(li), m[xt] = !0, Ze;
57031
+ `, li += br, li += W, li += "ET", we(li), m[xt] = !0, Ze;
57069
57032
  };
57070
- var vo = g.__private__.clip = g.clip = function(z) {
57071
- return we(z === "evenodd" ? "W*" : "W"), this;
57033
+ var vo = g.__private__.clip = g.clip = function(W) {
57034
+ return we(W === "evenodd" ? "W*" : "W"), this;
57072
57035
  };
57073
57036
  g.clipEvenOdd = function() {
57074
57037
  return vo("evenodd");
57075
57038
  }, g.__private__.discardPath = g.discardPath = function() {
57076
57039
  return we("n"), this;
57077
57040
  };
57078
- var mi = g.__private__.isValidStyle = function(z) {
57041
+ var mi = g.__private__.isValidStyle = function(W) {
57079
57042
  var V = [void 0, null, "S", "D", "F", "DF", "FD", "f", "f*", "B", "B*", "n"], ye = !1;
57080
- return V.indexOf(z) !== -1 && (ye = !0), ye;
57043
+ return V.indexOf(W) !== -1 && (ye = !0), ye;
57081
57044
  };
57082
- g.__private__.setDefaultPathOperation = g.setDefaultPathOperation = function(z) {
57083
- return mi(z) && (u = z), this;
57045
+ g.__private__.setDefaultPathOperation = g.setDefaultPathOperation = function(W) {
57046
+ return mi(W) && (u = W), this;
57084
57047
  };
57085
- var fn = g.__private__.getStyle = g.getStyle = function(z) {
57048
+ var fn = g.__private__.getStyle = g.getStyle = function(W) {
57086
57049
  var V = u;
57087
- switch (z) {
57050
+ switch (W) {
57088
57051
  case "D":
57089
57052
  case "S":
57090
57053
  V = "S";
@@ -57100,7 +57063,7 @@ T* `) : z.join(` Tj
57100
57063
  case "f*":
57101
57064
  case "B":
57102
57065
  case "B*":
57103
- V = z;
57066
+ V = W;
57104
57067
  break;
57105
57068
  }
57106
57069
  return V;
@@ -57109,24 +57072,24 @@ T* `) : z.join(` Tj
57109
57072
  };
57110
57073
  g.stroke = function() {
57111
57074
  return we("S"), this;
57112
- }, g.fill = function(z) {
57113
- return wo("f", z), this;
57114
- }, g.fillEvenOdd = function(z) {
57115
- return wo("f*", z), this;
57116
- }, g.fillStroke = function(z) {
57117
- return wo("B", z), this;
57118
- }, g.fillStrokeEvenOdd = function(z) {
57119
- return wo("B*", z), this;
57075
+ }, g.fill = function(W) {
57076
+ return wo("f", W), this;
57077
+ }, g.fillEvenOdd = function(W) {
57078
+ return wo("f*", W), this;
57079
+ }, g.fillStroke = function(W) {
57080
+ return wo("B", W), this;
57081
+ }, g.fillStrokeEvenOdd = function(W) {
57082
+ return wo("B*", W), this;
57120
57083
  };
57121
57084
  var wo = function(V, ye) {
57122
57085
  _typeof(ye) === "object" ? Mn(ye, V) : we(V);
57123
57086
  }, Rt = function(V) {
57124
57087
  V === null || D === _.ADVANCED && V === void 0 || (V = fn(V), we(V));
57125
57088
  };
57126
- function Ln(z, V, ye, Fe, We) {
57089
+ function Ln(W, V, ye, Fe, We) {
57127
57090
  var Ze = new TilingPattern(V || this.boundingBox, ye || this.xStep, Fe || this.yStep, this.gState, We || this.matrix);
57128
57091
  Ze.stream = this.stream;
57129
- var lt = z + "$$" + this.cloneIndex++ + "$$";
57092
+ var lt = W + "$$" + this.cloneIndex++ + "$$";
57130
57093
  return Nr(lt, Ze), Ze;
57131
57094
  }
57132
57095
  var Mn = function(V, ye) {
@@ -57155,27 +57118,27 @@ T* `) : z.join(` Tj
57155
57118
  case "n":
57156
57119
  return "W n";
57157
57120
  }
57158
- }, jo = g.moveTo = function(z, V) {
57159
- return we(L(Y(z)) + " " + L(U(V)) + " m"), this;
57160
- }, gn = g.lineTo = function(z, V) {
57161
- return we(L(Y(z)) + " " + L(U(V)) + " l"), this;
57162
- }, yi = g.curveTo = function(z, V, ye, Fe, We, Ze) {
57163
- return we([L(Y(z)), L(U(V)), L(Y(ye)), L(U(Fe)), L(Y(We)), L(U(Ze)), "c"].join(" ")), this;
57121
+ }, jo = g.moveTo = function(W, V) {
57122
+ return we(L(Y(W)) + " " + L(U(V)) + " m"), this;
57123
+ }, gn = g.lineTo = function(W, V) {
57124
+ return we(L(Y(W)) + " " + L(U(V)) + " l"), this;
57125
+ }, yi = g.curveTo = function(W, V, ye, Fe, We, Ze) {
57126
+ return we([L(Y(W)), L(U(V)), L(Y(ye)), L(U(Fe)), L(Y(We)), L(U(Ze)), "c"].join(" ")), this;
57164
57127
  };
57165
- g.__private__.line = g.line = function(z, V, ye, Fe, We) {
57166
- if (isNaN(z) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
57128
+ g.__private__.line = g.line = function(W, V, ye, Fe, We) {
57129
+ if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
57167
57130
  throw new Error("Invalid arguments passed to jsPDF.line");
57168
- return D === _.COMPAT ? this.lines([[ye - z, Fe - V]], z, V, [1, 1], We || "S") : this.lines([[ye - z, Fe - V]], z, V, [1, 1]).stroke();
57169
- }, g.__private__.lines = g.lines = function(z, V, ye, Fe, We, Ze) {
57131
+ return D === _.COMPAT ? this.lines([[ye - W, Fe - V]], W, V, [1, 1], We || "S") : this.lines([[ye - W, Fe - V]], W, V, [1, 1]).stroke();
57132
+ }, g.__private__.lines = g.lines = function(W, V, ye, Fe, We, Ze) {
57170
57133
  var lt, ft, mt, Bt, Ht, Kt, $t, yr, Sr, ur, br, Br;
57171
- if (typeof z == "number" && (Br = ye, ye = V, V = z, z = Br), Fe = Fe || [1, 1], Ze = Ze || !1, isNaN(V) || isNaN(ye) || !Array.isArray(z) || !Array.isArray(Fe) || !mi(We) || typeof Ze != "boolean")
57134
+ if (typeof W == "number" && (Br = ye, ye = V, V = W, W = Br), Fe = Fe || [1, 1], Ze = Ze || !1, isNaN(V) || isNaN(ye) || !Array.isArray(W) || !Array.isArray(Fe) || !mi(We) || typeof Ze != "boolean")
57172
57135
  throw new Error("Invalid arguments passed to jsPDF.lines");
57173
- for (jo(V, ye), lt = Fe[0], ft = Fe[1], Bt = z.length, ur = V, br = ye, mt = 0; mt < Bt; mt++)
57174
- Ht = z[mt], Ht.length === 2 ? (ur = Ht[0] * lt + ur, br = Ht[1] * ft + br, gn(ur, br)) : (Kt = Ht[0] * lt + ur, $t = Ht[1] * ft + br, yr = Ht[2] * lt + ur, Sr = Ht[3] * ft + br, ur = Ht[4] * lt + ur, br = Ht[5] * ft + br, yi(Kt, $t, yr, Sr, ur, br));
57136
+ for (jo(V, ye), lt = Fe[0], ft = Fe[1], Bt = W.length, ur = V, br = ye, mt = 0; mt < Bt; mt++)
57137
+ Ht = W[mt], Ht.length === 2 ? (ur = Ht[0] * lt + ur, br = Ht[1] * ft + br, gn(ur, br)) : (Kt = Ht[0] * lt + ur, $t = Ht[1] * ft + br, yr = Ht[2] * lt + ur, Sr = Ht[3] * ft + br, ur = Ht[4] * lt + ur, br = Ht[5] * ft + br, yi(Kt, $t, yr, Sr, ur, br));
57175
57138
  return Ze && pn(), Rt(We), this;
57176
- }, g.path = function(z) {
57177
- for (var V = 0; V < z.length; V++) {
57178
- var ye = z[V], Fe = ye.c;
57139
+ }, g.path = function(W) {
57140
+ for (var V = 0; V < W.length; V++) {
57141
+ var ye = W[V], Fe = ye.c;
57179
57142
  switch (ye.op) {
57180
57143
  case "m":
57181
57144
  jo(Fe[0], Fe[1]);
@@ -57192,53 +57155,53 @@ T* `) : z.join(` Tj
57192
57155
  }
57193
57156
  }
57194
57157
  return this;
57195
- }, g.__private__.rect = g.rect = function(z, V, ye, Fe, We) {
57196
- if (isNaN(z) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
57158
+ }, g.__private__.rect = g.rect = function(W, V, ye, Fe, We) {
57159
+ if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
57197
57160
  throw new Error("Invalid arguments passed to jsPDF.rect");
57198
- return D === _.COMPAT && (Fe = -Fe), we([L(Y(z)), L(U(V)), L(Y(ye)), L(Y(Fe)), "re"].join(" ")), Rt(We), this;
57199
- }, g.__private__.triangle = g.triangle = function(z, V, ye, Fe, We, Ze, lt) {
57200
- if (isNaN(z) || isNaN(V) || isNaN(ye) || isNaN(Fe) || isNaN(We) || isNaN(Ze) || !mi(lt))
57161
+ return D === _.COMPAT && (Fe = -Fe), we([L(Y(W)), L(U(V)), L(Y(ye)), L(Y(Fe)), "re"].join(" ")), Rt(We), this;
57162
+ }, g.__private__.triangle = g.triangle = function(W, V, ye, Fe, We, Ze, lt) {
57163
+ if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || isNaN(We) || isNaN(Ze) || !mi(lt))
57201
57164
  throw new Error("Invalid arguments passed to jsPDF.triangle");
57202
57165
  return this.lines(
57203
57166
  [
57204
- [ye - z, Fe - V],
57167
+ [ye - W, Fe - V],
57205
57168
  // vector to point 2
57206
57169
  [We - ye, Ze - Fe],
57207
57170
  // vector to point 3
57208
- [z - We, V - Ze]
57171
+ [W - We, V - Ze]
57209
57172
  // closing vector back to point 1
57210
57173
  ],
57211
- z,
57174
+ W,
57212
57175
  V,
57213
57176
  // start of path
57214
57177
  [1, 1],
57215
57178
  lt,
57216
57179
  !0
57217
57180
  ), this;
57218
- }, g.__private__.roundedRect = g.roundedRect = function(z, V, ye, Fe, We, Ze, lt) {
57219
- if (isNaN(z) || isNaN(V) || isNaN(ye) || isNaN(Fe) || isNaN(We) || isNaN(Ze) || !mi(lt))
57181
+ }, g.__private__.roundedRect = g.roundedRect = function(W, V, ye, Fe, We, Ze, lt) {
57182
+ if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || isNaN(We) || isNaN(Ze) || !mi(lt))
57220
57183
  throw new Error("Invalid arguments passed to jsPDF.roundedRect");
57221
57184
  var ft = 4 / 3 * (Math.SQRT2 - 1);
57222
57185
  return We = Math.min(We, ye * 0.5), Ze = Math.min(Ze, Fe * 0.5), this.lines(
57223
57186
  [[ye - 2 * We, 0], [We * ft, 0, We, Ze - Ze * ft, We, Ze], [0, Fe - 2 * Ze], [0, Ze * ft, -(We * ft), Ze, -We, Ze], [-ye + 2 * We, 0], [-(We * ft), 0, -We, -(Ze * ft), -We, -Ze], [0, -Fe + 2 * Ze], [0, -(Ze * ft), We * ft, -Ze, We, -Ze]],
57224
- z + We,
57187
+ W + We,
57225
57188
  V,
57226
57189
  // start of path
57227
57190
  [1, 1],
57228
57191
  lt,
57229
57192
  !0
57230
57193
  ), this;
57231
- }, g.__private__.ellipse = g.ellipse = function(z, V, ye, Fe, We) {
57232
- if (isNaN(z) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
57194
+ }, g.__private__.ellipse = g.ellipse = function(W, V, ye, Fe, We) {
57195
+ if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
57233
57196
  throw new Error("Invalid arguments passed to jsPDF.ellipse");
57234
57197
  var Ze = 4 / 3 * (Math.SQRT2 - 1) * ye, lt = 4 / 3 * (Math.SQRT2 - 1) * Fe;
57235
- return jo(z + ye, V), yi(z + ye, V - lt, z + Ze, V - Fe, z, V - Fe), yi(z - Ze, V - Fe, z - ye, V - lt, z - ye, V), yi(z - ye, V + lt, z - Ze, V + Fe, z, V + Fe), yi(z + Ze, V + Fe, z + ye, V + lt, z + ye, V), Rt(We), this;
57236
- }, g.__private__.circle = g.circle = function(z, V, ye, Fe) {
57237
- if (isNaN(z) || isNaN(V) || isNaN(ye) || !mi(Fe))
57198
+ return jo(W + ye, V), yi(W + ye, V - lt, W + Ze, V - Fe, W, V - Fe), yi(W - Ze, V - Fe, W - ye, V - lt, W - ye, V), yi(W - ye, V + lt, W - Ze, V + Fe, W, V + Fe), yi(W + Ze, V + Fe, W + ye, V + lt, W + ye, V), Rt(We), this;
57199
+ }, g.__private__.circle = g.circle = function(W, V, ye, Fe) {
57200
+ if (isNaN(W) || isNaN(V) || isNaN(ye) || !mi(Fe))
57238
57201
  throw new Error("Invalid arguments passed to jsPDF.circle");
57239
- return this.ellipse(z, V, ye, ye, Fe);
57240
- }, g.setFont = function(z, V, ye) {
57241
- return ye && (V = I(V, ye)), xt = hr(z, V, {
57202
+ return this.ellipse(W, V, ye, ye, Fe);
57203
+ }, g.setFont = function(W, V, ye) {
57204
+ return ye && (V = I(V, ye)), xt = hr(W, V, {
57242
57205
  disableWarning: !1
57243
57206
  }), this;
57244
57207
  };
@@ -57246,29 +57209,29 @@ T* `) : z.join(` Tj
57246
57209
  return pt[hr.apply(g, arguments)];
57247
57210
  };
57248
57211
  g.__private__.getFontList = g.getFontList = function() {
57249
- var z = {}, V, ye;
57212
+ var W = {}, V, ye;
57250
57213
  for (V in Tt)
57251
57214
  if (Tt.hasOwnProperty(V)) {
57252
- z[V] = [];
57215
+ W[V] = [];
57253
57216
  for (ye in Tt[V])
57254
- Tt[V].hasOwnProperty(ye) && z[V].push(ye);
57217
+ Tt[V].hasOwnProperty(ye) && W[V].push(ye);
57255
57218
  }
57256
- return z;
57257
- }, g.addFont = function(z, V, ye, Fe, We) {
57219
+ return W;
57220
+ }, g.addFont = function(W, V, ye, Fe, We) {
57258
57221
  var Ze = ["StandardEncoding", "MacRomanEncoding", "Identity-H", "WinAnsiEncoding"];
57259
- return arguments[3] && Ze.indexOf(arguments[3]) !== -1 ? We = arguments[3] : arguments[3] && Ze.indexOf(arguments[3]) == -1 && (ye = I(ye, Fe)), We = We || "Identity-H", Re.call(this, z, V, ye, We);
57222
+ return arguments[3] && Ze.indexOf(arguments[3]) !== -1 ? We = arguments[3] : arguments[3] && Ze.indexOf(arguments[3]) == -1 && (ye = I(ye, Fe)), We = We || "Identity-H", Re.call(this, W, V, ye, We);
57260
57223
  };
57261
57224
  var Yo = a.lineWidth || 0.200025, mn = g.__private__.getLineWidth = g.getLineWidth = function() {
57262
57225
  return Yo;
57263
- }, yn = g.__private__.setLineWidth = g.setLineWidth = function(z) {
57264
- return Yo = z, we(L(Y(z)) + " w"), this;
57226
+ }, yn = g.__private__.setLineWidth = g.setLineWidth = function(W) {
57227
+ return Yo = W, we(L(Y(W)) + " w"), this;
57265
57228
  };
57266
- g.__private__.setLineDash = jsPDF.API.setLineDash = jsPDF.API.setLineDashPattern = function(z, V) {
57267
- if (z = z || [], V = V || 0, isNaN(V) || !Array.isArray(z))
57229
+ g.__private__.setLineDash = jsPDF.API.setLineDash = jsPDF.API.setLineDashPattern = function(W, V) {
57230
+ if (W = W || [], V = V || 0, isNaN(V) || !Array.isArray(W))
57268
57231
  throw new Error("Invalid arguments passed to jsPDF.setLineDash");
57269
- return z = z.map(function(ye) {
57232
+ return W = W.map(function(ye) {
57270
57233
  return L(Y(ye));
57271
- }).join(" "), V = L(Y(V)), we("[" + z + "] " + V + " d"), this;
57234
+ }).join(" "), V = L(Y(V)), we("[" + W + "] " + V + " d"), this;
57272
57235
  };
57273
57236
  var $i, Co = g.__private__.getLineHeight = g.getLineHeight = function() {
57274
57237
  return Ne * $i;
@@ -57276,29 +57239,29 @@ T* `) : z.join(` Tj
57276
57239
  g.__private__.getLineHeight = g.getLineHeight = function() {
57277
57240
  return Ne * $i;
57278
57241
  };
57279
- var kn = g.__private__.setLineHeightFactor = g.setLineHeightFactor = function(z) {
57280
- return z = z || 1.15, typeof z == "number" && ($i = z), this;
57242
+ var kn = g.__private__.setLineHeightFactor = g.setLineHeightFactor = function(W) {
57243
+ return W = W || 1.15, typeof W == "number" && ($i = W), this;
57281
57244
  }, Hn = g.__private__.getLineHeightFactor = g.getLineHeightFactor = function() {
57282
57245
  return $i;
57283
57246
  };
57284
57247
  kn(a.lineHeight);
57285
- var Ni = g.__private__.getHorizontalCoordinate = function(z) {
57286
- return Y(z);
57287
- }, sr = g.__private__.getVerticalCoordinate = function(z) {
57248
+ var Ni = g.__private__.getHorizontalCoordinate = function(W) {
57249
+ return Y(W);
57250
+ }, sr = g.__private__.getVerticalCoordinate = function(W) {
57288
57251
  if (D === _.ADVANCED)
57289
- return z;
57252
+ return W;
57290
57253
  var V = ee[Pe].mediaBox.topRightY - ee[Pe].mediaBox.bottomLeftY;
57291
- return V - Y(z);
57292
- }, vi = g.__private__.getHorizontalCoordinateString = g.getHorizontalCoordinateString = function(z) {
57293
- return L(Ni(z));
57294
- }, ki = g.__private__.getVerticalCoordinateString = g.getVerticalCoordinateString = function(z) {
57295
- return L(sr(z));
57254
+ return V - Y(W);
57255
+ }, vi = g.__private__.getHorizontalCoordinateString = g.getHorizontalCoordinateString = function(W) {
57256
+ return L(Ni(W));
57257
+ }, ki = g.__private__.getVerticalCoordinateString = g.getVerticalCoordinateString = function(W) {
57258
+ return L(sr(W));
57296
57259
  }, eo = a.strokeColor || "0 G";
57297
57260
  g.__private__.getStrokeColor = g.getDrawColor = function() {
57298
57261
  return gr(eo);
57299
- }, g.__private__.setStrokeColor = g.setDrawColor = function(z, V, ye, Fe) {
57262
+ }, g.__private__.setStrokeColor = g.setDrawColor = function(W, V, ye, Fe) {
57300
57263
  var We = {
57301
- ch1: z,
57264
+ ch1: W,
57302
57265
  ch2: V,
57303
57266
  ch3: ye,
57304
57267
  ch4: Fe,
@@ -57310,9 +57273,9 @@ T* `) : z.join(` Tj
57310
57273
  var to = a.fillColor || "0 g";
57311
57274
  g.__private__.getFillColor = g.getFillColor = function() {
57312
57275
  return gr(to);
57313
- }, g.__private__.setFillColor = g.setFillColor = function(z, V, ye, Fe) {
57276
+ }, g.__private__.setFillColor = g.setFillColor = function(W, V, ye, Fe) {
57314
57277
  var We = {
57315
- ch1: z,
57278
+ ch1: W,
57316
57279
  ch2: V,
57317
57280
  ch3: ye,
57318
57281
  ch4: Fe,
@@ -57324,9 +57287,9 @@ T* `) : z.join(` Tj
57324
57287
  var Hi = a.textColor || "0 g", vn = g.__private__.getTextColor = g.getTextColor = function() {
57325
57288
  return gr(Hi);
57326
57289
  };
57327
- g.__private__.setTextColor = g.setTextColor = function(z, V, ye, Fe) {
57290
+ g.__private__.setTextColor = g.setTextColor = function(W, V, ye, Fe) {
57328
57291
  var We = {
57329
- ch1: z,
57292
+ ch1: W,
57330
57293
  ch2: V,
57331
57294
  ch3: ye,
57332
57295
  ch4: Fe,
@@ -57338,10 +57301,10 @@ T* `) : z.join(` Tj
57338
57301
  var Ti = a.charSpace, wi = g.__private__.getCharSpace = g.getCharSpace = function() {
57339
57302
  return parseFloat(Ti || 0);
57340
57303
  };
57341
- g.__private__.setCharSpace = g.setCharSpace = function(z) {
57342
- if (isNaN(z))
57304
+ g.__private__.setCharSpace = g.setCharSpace = function(W) {
57305
+ if (isNaN(W))
57343
57306
  throw new Error("Invalid argument passed to jsPDF.setCharSpace");
57344
- return Ti = z, this;
57307
+ return Ti = W, this;
57345
57308
  };
57346
57309
  var qr = 0;
57347
57310
  g.CapJoinStyles = {
@@ -57358,24 +57321,24 @@ T* `) : z.join(` Tj
57358
57321
  project: 2,
57359
57322
  square: 2,
57360
57323
  bevel: 2
57361
- }, g.__private__.setLineCap = g.setLineCap = function(z) {
57362
- var V = g.CapJoinStyles[z];
57324
+ }, g.__private__.setLineCap = g.setLineCap = function(W) {
57325
+ var V = g.CapJoinStyles[W];
57363
57326
  if (V === void 0)
57364
- throw new Error("Line cap style of '" + z + "' is not recognized. See or extend .CapJoinStyles property for valid styles");
57327
+ throw new Error("Line cap style of '" + W + "' is not recognized. See or extend .CapJoinStyles property for valid styles");
57365
57328
  return qr = V, we(V + " J"), this;
57366
57329
  };
57367
57330
  var Ci = 0;
57368
- g.__private__.setLineJoin = g.setLineJoin = function(z) {
57369
- var V = g.CapJoinStyles[z];
57331
+ g.__private__.setLineJoin = g.setLineJoin = function(W) {
57332
+ var V = g.CapJoinStyles[W];
57370
57333
  if (V === void 0)
57371
- throw new Error("Line join style of '" + z + "' is not recognized. See or extend .CapJoinStyles property for valid styles");
57334
+ throw new Error("Line join style of '" + W + "' is not recognized. See or extend .CapJoinStyles property for valid styles");
57372
57335
  return Ci = V, we(V + " j"), this;
57373
- }, g.__private__.setLineMiterLimit = g.__private__.setMiterLimit = g.setLineMiterLimit = g.setMiterLimit = function(z) {
57374
- if (z = z || 0, isNaN(z))
57336
+ }, g.__private__.setLineMiterLimit = g.__private__.setMiterLimit = g.setLineMiterLimit = g.setMiterLimit = function(W) {
57337
+ if (W = W || 0, isNaN(W))
57375
57338
  throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");
57376
- return we(L(Y(z)) + " M"), this;
57377
- }, g.GState = GState, g.setGState = function(z) {
57378
- typeof z == "string" ? z = At[or[z]] : z = Qr(null, z), z.equals(wr) || (we("/" + z.id + " gs"), wr = z);
57339
+ return we(L(Y(W)) + " M"), this;
57340
+ }, g.GState = GState, g.setGState = function(W) {
57341
+ typeof W == "string" ? W = At[or[W]] : W = Qr(null, W), W.equals(wr) || (we("/" + W.id + " gs"), wr = W);
57379
57342
  };
57380
57343
  var Qr = function(V, ye) {
57381
57344
  if (!(V && or[V])) {
@@ -57394,8 +57357,8 @@ T* `) : z.join(` Tj
57394
57357
  return V && (or[V] = ye.id), se.publish("addGState", ye), ye;
57395
57358
  }
57396
57359
  };
57397
- g.addGState = function(z, V) {
57398
- return Qr(z, V), this;
57360
+ g.addGState = function(W, V) {
57361
+ return Qr(W, V), this;
57399
57362
  }, g.saveGraphicsState = function() {
57400
57363
  return we("q"), It.push({
57401
57364
  key: xt,
@@ -57404,12 +57367,12 @@ T* `) : z.join(` Tj
57404
57367
  }), this;
57405
57368
  }, g.restoreGraphicsState = function() {
57406
57369
  we("Q");
57407
- var z = It.pop();
57408
- return xt = z.key, Ne = z.size, Hi = z.color, wr = null, this;
57409
- }, g.setCurrentTransformationMatrix = function(z) {
57410
- return we(z.toString() + " cm"), this;
57411
- }, g.comment = function(z) {
57412
- return we("#" + z), this;
57370
+ var W = It.pop();
57371
+ return xt = W.key, Ne = W.size, Hi = W.color, wr = null, this;
57372
+ }, g.setCurrentTransformationMatrix = function(W) {
57373
+ return we(W.toString() + " cm"), this;
57374
+ }, g.comment = function(W) {
57375
+ return we("#" + W), this;
57413
57376
  };
57414
57377
  var xo = function(V, ye) {
57415
57378
  var Fe = V || 0;
@@ -57480,15 +57443,15 @@ T* `) : z.join(` Tj
57480
57443
  var ye = new Zo(), Fe = "Xo" + (Object.keys(Ue).length + 1).toString(10);
57481
57444
  ye.id = Fe, Ge[V] = Fe, Ue[Fe] = ye, se.publish("addFormObject", ye), Dt.pop().restore();
57482
57445
  };
57483
- g.beginFormObject = function(z, V, ye, Fe, We) {
57484
- return wn(z, V, ye, Fe, We), this;
57485
- }, g.endFormObject = function(z) {
57486
- return On(z), this;
57487
- }, g.doFormObject = function(z, V) {
57488
- var ye = Ue[Ge[z]];
57446
+ g.beginFormObject = function(W, V, ye, Fe, We) {
57447
+ return wn(W, V, ye, Fe, We), this;
57448
+ }, g.endFormObject = function(W) {
57449
+ return On(W), this;
57450
+ }, g.doFormObject = function(W, V) {
57451
+ var ye = Ue[Ge[W]];
57489
57452
  return we("q"), we(V.toString() + " cm"), we("/" + ye.id + " Do"), we("Q"), this;
57490
- }, g.getFormObject = function(z) {
57491
- var V = Ue[Ge[z]];
57453
+ }, g.getFormObject = function(W) {
57454
+ var V = Ue[Ge[W]];
57492
57455
  return {
57493
57456
  x: V.x,
57494
57457
  y: V.y,
@@ -57496,10 +57459,10 @@ T* `) : z.join(` Tj
57496
57459
  height: V.height,
57497
57460
  matrix: V.matrix
57498
57461
  };
57499
- }, g.save = function(z, V) {
57500
- return z = z || "generated.pdf", V = V || {}, V.returnPromise = V.returnPromise || !1, V.returnPromise === !1 ? (saveAs(Ji(Zr()), z), typeof saveAs.unload == "function" && globalObject.setTimeout && setTimeout(saveAs.unload, 911), this) : new Promise(function(ye, Fe) {
57462
+ }, g.save = function(W, V) {
57463
+ return W = W || "generated.pdf", V = V || {}, V.returnPromise = V.returnPromise || !1, V.returnPromise === !1 ? (saveAs(Ji(Zr()), W), typeof saveAs.unload == "function" && globalObject.setTimeout && setTimeout(saveAs.unload, 911), this) : new Promise(function(ye, Fe) {
57501
57464
  try {
57502
- var We = saveAs(Ji(Zr()), z);
57465
+ var We = saveAs(Ji(Zr()), W);
57503
57466
  typeof saveAs.unload == "function" && globalObject.setTimeout && setTimeout(saveAs.unload, 911), ye(We);
57504
57467
  } catch (Ze) {
57505
57468
  Fe(Ze.message);
@@ -57507,19 +57470,19 @@ T* `) : z.join(` Tj
57507
57470
  });
57508
57471
  };
57509
57472
  for (var Si in jsPDF.API)
57510
- jsPDF.API.hasOwnProperty(Si) && (Si === "events" && jsPDF.API.events.length ? function(z, V) {
57473
+ jsPDF.API.hasOwnProperty(Si) && (Si === "events" && jsPDF.API.events.length ? function(W, V) {
57511
57474
  var ye, Fe, We;
57512
57475
  for (We = V.length - 1; We !== -1; We--)
57513
- ye = V[We][0], Fe = V[We][1], z.subscribe.apply(z, [ye].concat(typeof Fe == "function" ? [Fe] : Fe));
57476
+ ye = V[We][0], Fe = V[We][1], W.subscribe.apply(W, [ye].concat(typeof Fe == "function" ? [Fe] : Fe));
57514
57477
  }(se, jsPDF.API.events) : g[Si] = jsPDF.API[Si]);
57515
- var ro = g.getPageWidth = function(z) {
57516
- return z = z || Pe, (ee[z].mediaBox.topRightX - ee[z].mediaBox.bottomLeftX) / kt;
57517
- }, Go = g.setPageWidth = function(z, V) {
57518
- ee[z].mediaBox.topRightX = V * kt + ee[z].mediaBox.bottomLeftX;
57519
- }, Di = g.getPageHeight = function(z) {
57520
- return z = z || Pe, (ee[z].mediaBox.topRightY - ee[z].mediaBox.bottomLeftY) / kt;
57521
- }, Vo = g.setPageHeight = function(z, V) {
57522
- ee[z].mediaBox.topRightY = V * kt + ee[z].mediaBox.bottomLeftY;
57478
+ var ro = g.getPageWidth = function(W) {
57479
+ return W = W || Pe, (ee[W].mediaBox.topRightX - ee[W].mediaBox.bottomLeftX) / kt;
57480
+ }, Go = g.setPageWidth = function(W, V) {
57481
+ ee[W].mediaBox.topRightX = V * kt + ee[W].mediaBox.bottomLeftX;
57482
+ }, Di = g.getPageHeight = function(W) {
57483
+ return W = W || Pe, (ee[W].mediaBox.topRightY - ee[W].mediaBox.bottomLeftY) / kt;
57484
+ }, Vo = g.setPageHeight = function(W, V) {
57485
+ ee[W].mediaBox.topRightY = V * kt + ee[W].mediaBox.bottomLeftY;
57523
57486
  };
57524
57487
  return g.internal = {
57525
57488
  pdfEscape: at,
@@ -57670,8 +57633,8 @@ var inherit = function a(t, r) {
57670
57633
  f = f < 0 ? -f : f;
57671
57634
  var p = function(Y, j, U) {
57672
57635
  if (Y + 1 < s.length) {
57673
- var X = j + " " + s[Y + 1], W = calculateFontSpace(X, t, U).width, G = f - 2 * d;
57674
- return W <= G;
57636
+ var X = j + " " + s[Y + 1], z = calculateFontSpace(X, t, U).width, G = f - 2 * d;
57637
+ return z <= G;
57675
57638
  } else
57676
57639
  return !1;
57677
57640
  };
@@ -59057,16 +59020,16 @@ jsPDF.AcroForm;
59057
59020
  [80, 84]
59058
59021
  //PT - OS/2 pointer
59059
59022
  ]
59060
- }, s = a.__addimage__.getImageFileTypeByImageData = function(W, G) {
59023
+ }, s = a.__addimage__.getImageFileTypeByImageData = function(z, G) {
59061
59024
  G = G || r;
59062
59025
  var J, ae, Ce = r, oe, me, ue;
59063
- if (G === "RGBA" || W.data !== void 0 && W.data instanceof Uint8ClampedArray && "height" in W && "width" in W)
59026
+ if (G === "RGBA" || z.data !== void 0 && z.data instanceof Uint8ClampedArray && "height" in z && "width" in z)
59064
59027
  return "RGBA";
59065
- if (B(W))
59028
+ if (B(z))
59066
59029
  for (ue in n)
59067
59030
  for (oe = n[ue], J = 0; J < oe.length; J += 1) {
59068
59031
  for (me = !0, ae = 0; ae < oe[J].length; ae += 1)
59069
- if (oe[J][ae] !== void 0 && oe[J][ae] !== W[ae]) {
59032
+ if (oe[J][ae] !== void 0 && oe[J][ae] !== z[ae]) {
59070
59033
  me = !1;
59071
59034
  break;
59072
59035
  }
@@ -59079,7 +59042,7 @@ jsPDF.AcroForm;
59079
59042
  for (ue in n)
59080
59043
  for (oe = n[ue], J = 0; J < oe.length; J += 1) {
59081
59044
  for (me = !0, ae = 0; ae < oe[J].length; ae += 1)
59082
- if (oe[J][ae] !== void 0 && oe[J][ae] !== W.charCodeAt(ae)) {
59045
+ if (oe[J][ae] !== void 0 && oe[J][ae] !== z.charCodeAt(ae)) {
59083
59046
  me = !1;
59084
59047
  break;
59085
59048
  }
@@ -59089,7 +59052,7 @@ jsPDF.AcroForm;
59089
59052
  }
59090
59053
  }
59091
59054
  return Ce === r && G !== r && (Ce = G), Ce;
59092
- }, l = function W(G) {
59055
+ }, l = function z(G) {
59093
59056
  for (var J = this.internal.write, ae = this.internal.putStream, Ce = this.internal.getFilters, oe = Ce(); oe.indexOf("FlateEncode") !== -1; )
59094
59057
  oe.splice(oe.indexOf("FlateEncode"), 1);
59095
59058
  G.objectId = this.internal.newObject();
@@ -59149,7 +59112,7 @@ jsPDF.AcroForm;
59149
59112
  decodeParameters: Ie,
59150
59113
  data: G.sMask
59151
59114
  };
59152
- "filter" in G && (ve.filter = G.filter), W.call(this, ve);
59115
+ "filter" in G && (ve.filter = G.filter), z.call(this, ve);
59153
59116
  }
59154
59117
  if (G.colorSpace === T.INDEXED) {
59155
59118
  var _e = this.internal.newObject();
@@ -59267,22 +59230,22 @@ jsPDF.AcroForm;
59267
59230
  FAST: "FAST",
59268
59231
  MEDIUM: "MEDIUM",
59269
59232
  SLOW: "SLOW"
59270
- }, M = a.__addimage__.sHashCode = function(W) {
59233
+ }, M = a.__addimage__.sHashCode = function(z) {
59271
59234
  var G = 0, J, ae;
59272
- if (typeof W == "string")
59273
- for (ae = W.length, J = 0; J < ae; J++)
59274
- G = (G << 5) - G + W.charCodeAt(J), G |= 0;
59275
- else if (B(W))
59276
- for (ae = W.byteLength / 2, J = 0; J < ae; J++)
59277
- G = (G << 5) - G + W[J], G |= 0;
59235
+ if (typeof z == "string")
59236
+ for (ae = z.length, J = 0; J < ae; J++)
59237
+ G = (G << 5) - G + z.charCodeAt(J), G |= 0;
59238
+ else if (B(z))
59239
+ for (ae = z.byteLength / 2, J = 0; J < ae; J++)
59240
+ G = (G << 5) - G + z[J], G |= 0;
59278
59241
  return G;
59279
- }, k = a.__addimage__.validateStringAsBase64 = function(W) {
59280
- W = W || "", W.toString().trim();
59242
+ }, k = a.__addimage__.validateStringAsBase64 = function(z) {
59243
+ z = z || "", z.toString().trim();
59281
59244
  var G = !0;
59282
- return W.length === 0 && (G = !1), W.length % 4 !== 0 && (G = !1), /^[A-Za-z0-9+/]+$/.test(W.substr(0, W.length - 2)) === !1 && (G = !1), /^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(W.substr(-2)) === !1 && (G = !1), G;
59283
- }, L = a.__addimage__.extractImageFromDataUrl = function(W) {
59284
- W = W || "";
59285
- var G = W.split("base64,"), J = null;
59245
+ return z.length === 0 && (G = !1), z.length % 4 !== 0 && (G = !1), /^[A-Za-z0-9+/]+$/.test(z.substr(0, z.length - 2)) === !1 && (G = !1), /^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(z.substr(-2)) === !1 && (G = !1), G;
59246
+ }, L = a.__addimage__.extractImageFromDataUrl = function(z) {
59247
+ z = z || "";
59248
+ var G = z.split("base64,"), J = null;
59286
59249
  if (G.length === 2) {
59287
59250
  var ae = /^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(G[0]);
59288
59251
  Array.isArray(ae) && (J = {
@@ -59295,31 +59258,31 @@ jsPDF.AcroForm;
59295
59258
  }, H = a.__addimage__.supportsArrayBuffer = function() {
59296
59259
  return typeof ArrayBuffer < "u" && typeof Uint8Array < "u";
59297
59260
  };
59298
- a.__addimage__.isArrayBuffer = function(W) {
59299
- return H() && W instanceof ArrayBuffer;
59261
+ a.__addimage__.isArrayBuffer = function(z) {
59262
+ return H() && z instanceof ArrayBuffer;
59300
59263
  };
59301
- var B = a.__addimage__.isArrayBufferView = function(W) {
59302
- return H() && typeof Uint32Array < "u" && (W instanceof Int8Array || W instanceof Uint8Array || typeof Uint8ClampedArray < "u" && W instanceof Uint8ClampedArray || W instanceof Int16Array || W instanceof Uint16Array || W instanceof Int32Array || W instanceof Uint32Array || W instanceof Float32Array || W instanceof Float64Array);
59303
- }, Y = a.__addimage__.binaryStringToUint8Array = function(W) {
59304
- for (var G = W.length, J = new Uint8Array(G), ae = 0; ae < G; ae++)
59305
- J[ae] = W.charCodeAt(ae);
59264
+ var B = a.__addimage__.isArrayBufferView = function(z) {
59265
+ return H() && typeof Uint32Array < "u" && (z instanceof Int8Array || z instanceof Uint8Array || typeof Uint8ClampedArray < "u" && z instanceof Uint8ClampedArray || z instanceof Int16Array || z instanceof Uint16Array || z instanceof Int32Array || z instanceof Uint32Array || z instanceof Float32Array || z instanceof Float64Array);
59266
+ }, Y = a.__addimage__.binaryStringToUint8Array = function(z) {
59267
+ for (var G = z.length, J = new Uint8Array(G), ae = 0; ae < G; ae++)
59268
+ J[ae] = z.charCodeAt(ae);
59306
59269
  return J;
59307
- }, j = a.__addimage__.arrayBufferToBinaryString = function(W) {
59308
- for (var G = "", J = B(W) ? W : new Uint8Array(W), ae = 0; ae < J.length; ae += o)
59270
+ }, j = a.__addimage__.arrayBufferToBinaryString = function(z) {
59271
+ for (var G = "", J = B(z) ? z : new Uint8Array(z), ae = 0; ae < J.length; ae += o)
59309
59272
  G += String.fromCharCode.apply(null, J.subarray(ae, ae + o));
59310
- return releaseArrayBuffer(W), G;
59273
+ return releaseArrayBuffer(z), G;
59311
59274
  };
59312
59275
  a.addImage = function() {
59313
- var W, G, J, ae, Ce, oe, me, ue, Q;
59314
- if (W = arguments[0], typeof arguments[1] == "number" ? (G = r, J = arguments[1], ae = arguments[2], Ce = arguments[3], oe = arguments[4], me = arguments[5], ue = arguments[6], Q = arguments[7]) : (G = arguments[1], J = arguments[2], ae = arguments[3], Ce = arguments[4], oe = arguments[5], me = arguments[6], ue = arguments[7], Q = arguments[8]), _typeof(W) === "object" && !v(W) && "imageData" in W) {
59315
- var ne = W;
59316
- W = ne.imageData, G = ne.format || G || r, J = ne.x || J || 0, ae = ne.y || ae || 0, Ce = ne.w || ne.width || Ce, oe = ne.h || ne.height || oe, me = ne.alias || me, ue = ne.compression || ue, Q = ne.rotation || ne.angle || Q;
59276
+ var z, G, J, ae, Ce, oe, me, ue, Q;
59277
+ if (z = arguments[0], typeof arguments[1] == "number" ? (G = r, J = arguments[1], ae = arguments[2], Ce = arguments[3], oe = arguments[4], me = arguments[5], ue = arguments[6], Q = arguments[7]) : (G = arguments[1], J = arguments[2], ae = arguments[3], Ce = arguments[4], oe = arguments[5], me = arguments[6], ue = arguments[7], Q = arguments[8]), _typeof(z) === "object" && !v(z) && "imageData" in z) {
59278
+ var ne = z;
59279
+ z = ne.imageData, G = ne.format || G || r, J = ne.x || J || 0, ae = ne.y || ae || 0, Ce = ne.w || ne.width || Ce, oe = ne.h || ne.height || oe, me = ne.alias || me, ue = ne.compression || ue, Q = ne.rotation || ne.angle || Q;
59317
59280
  }
59318
59281
  var xe = this.internal.getFilters();
59319
59282
  if (ue === void 0 && xe.indexOf("FlateEncode") !== -1 && (ue = "SLOW"), ue = "SLOW", isNaN(J) || isNaN(ae))
59320
59283
  throw new Error("Invalid coordinates passed to jsPDF.addImage");
59321
59284
  f.call(this);
59322
- var Ie = U.call(this, W, G, me, ue);
59285
+ var Ie = U.call(this, z, G, me, ue);
59323
59286
  return E.call(this, J, ae, Ce, oe, Ie, Q), this;
59324
59287
  };
59325
59288
  var U = function(G, J, ae, Ce) {
@@ -59335,11 +59298,11 @@ jsPDF.AcroForm;
59335
59298
  if (g(ae) && (ae = y(G)), oe = _.call(this, ae), oe || (H() && !(G instanceof Uint8Array) && J !== "RGBA" && (me = G, G = Y(G)), oe = this["process" + J.toUpperCase()](G, m.call(this), ae, u(Ce), me)), releaseArrayBuffer(G.data), !oe)
59336
59299
  throw new Error("An unknown error occurred whilst processing the image.");
59337
59300
  return oe.exifdata = ue, oe;
59338
- }, X = a.__addimage__.convertBase64ToBinaryString = function(W, G) {
59301
+ }, X = a.__addimage__.convertBase64ToBinaryString = function(z, G) {
59339
59302
  G = typeof G == "boolean" ? G : !0;
59340
59303
  var J, ae = "", Ce;
59341
- if (typeof W == "string") {
59342
- J = L(W), Ce = J !== null ? J.data : W;
59304
+ if (typeof z == "string") {
59305
+ J = L(z), Ce = J !== null ? J.data : z;
59343
59306
  try {
59344
59307
  ae = atob$1(Ce);
59345
59308
  } catch (oe) {
@@ -59349,11 +59312,11 @@ jsPDF.AcroForm;
59349
59312
  }
59350
59313
  return ae;
59351
59314
  };
59352
- a.getImageProperties = function(W) {
59315
+ a.getImageProperties = function(z) {
59353
59316
  var G, J = "", ae;
59354
- if (v(W) && (W = C(W)), typeof W == "string" && s(W) === r && (J = X(W, !1), J === "" && (J = a.loadFile(W) || ""), W = J), ae = s(W), !w(ae))
59317
+ if (v(z) && (z = C(z)), typeof z == "string" && s(z) === r && (J = X(z, !1), J === "" && (J = a.loadFile(z) || ""), z = J), ae = s(z), !w(ae))
59355
59318
  throw new Error("addImage does not support files of type '" + ae + "', please ensure that a plugin for '" + ae + "' support is added.");
59356
- if (H() && !(W instanceof Uint8Array) && (W = Y(W)), G = this["process" + ae.toUpperCase()](W), !G)
59319
+ if (H() && !(z instanceof Uint8Array) && (z = Y(z)), G = this["process" + ae.toUpperCase()](z), !G)
59357
59320
  throw new Error("An unknown error occurred whilst processing the image");
59358
59321
  return G.fileType = ae, G;
59359
59322
  };
@@ -60004,12 +59967,12 @@ function releaseArrayBuffer(a) {
60004
59967
  }
60005
59968
  }
60006
59969
  if (L) {
60007
- var W = {};
59970
+ var z = {};
60008
59971
  for (C = 0; C < y.length; C += 1)
60009
- W[y[C]] = {}, W[y[C]].text = w[C], W[y[C]].align = v[C];
60010
- var G = d.call(this, W, D);
59972
+ z[y[C]] = {}, z[y[C]].text = w[C], z[y[C]].align = v[C];
59973
+ var G = d.call(this, z, D);
60011
59974
  M = y.map(function(oe) {
60012
- return new l(u, f, D[oe], G, W[oe].text, void 0, W[oe].align);
59975
+ return new l(u, f, D[oe], G, z[oe].text, void 0, z[oe].align);
60013
59976
  }), this.setTableHeaderRow(M), this.printHeaderRow(1, !1);
60014
59977
  }
60015
59978
  var J = m.reduce(function(oe, me) {
@@ -61045,7 +61008,7 @@ function parseFontFamily(a) {
61045
61008
  return this.createLinearGradient();
61046
61009
  };
61047
61010
  var k = function(Q, ne, xe, Ie, ve, _e, pe, Pe, De) {
61048
- for (var Ve = W.call(this, xe, Ie, ve, _e), Te = 0; Te < Ve.length; Te++) {
61011
+ for (var Ve = z.call(this, xe, Ie, ve, _e), Te = 0; Te < Ve.length; Te++) {
61049
61012
  var He = Ve[Te];
61050
61013
  Te === 0 && (De ? B.call(this, He.x1 + Q, He.y1 + ne) : j.call(this, He.x1 + Q, He.y1 + ne)), X.call(this, Q, ne, He.x2, He.y2, He.x3, He.y3, He.x4, He.y4);
61051
61014
  }
@@ -61130,7 +61093,7 @@ function parseFontFamily(a) {
61130
61093
  return this.pdf.lines(Q, ne, xe, null, null);
61131
61094
  }, X = function(Q, ne, xe, Ie, ve, _e, pe, Pe) {
61132
61095
  this.pdf.internal.out([r(s(xe + Q)), r(l(Ie + ne)), r(s(ve + Q)), r(l(_e + ne)), r(s(pe + Q)), r(l(Pe + ne)), "c"].join(" "));
61133
- }, W = function(Q, ne, xe, Ie) {
61096
+ }, z = function(Q, ne, xe, Ie) {
61134
61097
  for (var ve = 1e-5, _e = Math.PI * 2, pe = Math.PI / 2; ne > xe; )
61135
61098
  ne = ne - _e;
61136
61099
  var Pe = Math.abs(xe - ne);
@@ -61981,7 +61944,7 @@ var PNG = function() {
61981
61944
  return new Uint8Array(0);
61982
61945
  d = unzlibSync(d);
61983
61946
  function g(y, w, v, C) {
61984
- var _, D, E, T, I, M, k, L, H, B, Y, j, U, X, W, G, J, ae, Ce, oe, me, ue = Math.ceil((m.width - y) / v), Q = Math.ceil((m.height - w) / C), ne = m.width == ue && m.height == Q;
61947
+ var _, D, E, T, I, M, k, L, H, B, Y, j, U, X, z, G, J, ae, Ce, oe, me, ue = Math.ceil((m.width - y) / v), Q = Math.ceil((m.height - w) / C), ne = m.width == ue && m.height == Q;
61985
61948
  for (X = u * ue, j = ne ? f : new Uint8Array(X * Q), M = d.length, U = 0, D = 0; U < Q && p < M; ) {
61986
61949
  switch (d[p++]) {
61987
61950
  case 0:
@@ -61994,15 +61957,15 @@ var PNG = function() {
61994
61957
  break;
61995
61958
  case 2:
61996
61959
  for (T = Ce = 0; Ce < X; T = Ce += 1)
61997
- _ = d[p++], E = (T - T % u) / u, W = U && j[(U - 1) * X + E * u + T % u], j[D++] = (W + _) % 256;
61960
+ _ = d[p++], E = (T - T % u) / u, z = U && j[(U - 1) * X + E * u + T % u], j[D++] = (z + _) % 256;
61998
61961
  break;
61999
61962
  case 3:
62000
61963
  for (T = oe = 0; oe < X; T = oe += 1)
62001
- _ = d[p++], E = (T - T % u) / u, I = T < u ? 0 : j[D - u], W = U && j[(U - 1) * X + E * u + T % u], j[D++] = (_ + Math.floor((I + W) / 2)) % 256;
61964
+ _ = d[p++], E = (T - T % u) / u, I = T < u ? 0 : j[D - u], z = U && j[(U - 1) * X + E * u + T % u], j[D++] = (_ + Math.floor((I + z) / 2)) % 256;
62002
61965
  break;
62003
61966
  case 4:
62004
61967
  for (T = me = 0; me < X; T = me += 1)
62005
- _ = d[p++], E = (T - T % u) / u, I = T < u ? 0 : j[D - u], U === 0 ? W = G = 0 : (W = j[(U - 1) * X + E * u + T % u], G = E && j[(U - 1) * X + (E - 1) * u + T % u]), k = I + W - G, L = Math.abs(k - I), B = Math.abs(k - W), Y = Math.abs(k - G), L <= B && L <= Y ? H = I : B <= Y ? H = W : H = G, j[D++] = (_ + H) % 256;
61968
+ _ = d[p++], E = (T - T % u) / u, I = T < u ? 0 : j[D - u], U === 0 ? z = G = 0 : (z = j[(U - 1) * X + E * u + T % u], G = E && j[(U - 1) * X + (E - 1) * u + T % u]), k = I + z - G, L = Math.abs(k - I), B = Math.abs(k - z), Y = Math.abs(k - G), L <= B && L <= Y ? H = I : B <= Y ? H = z : H = G, j[D++] = (_ + H) % 256;
62006
61969
  break;
62007
61970
  default:
62008
61971
  console$1.warn(`Invalid filter algorithm: ${d[p - 1], d[p]}--png格式图片只包含[01234]`);
@@ -62199,7 +62162,7 @@ var PNG = function() {
62199
62162
  return v;
62200
62163
  };
62201
62164
  a.processPNG = function(y, w, v, C) {
62202
- var _, D = this.decode.FLATE_DECODE, E, T, I = "", M, k, L, H, B, Y, j, U, X, W, G, J;
62165
+ var _, D = this.decode.FLATE_DECODE, E, T, I = "", M, k, L, H, B, Y, j, U, X, z, G, J;
62203
62166
  if (this.__addimage__.isArrayBuffer(y) && (y = new Uint8Array(y)), this.__addimage__.isArrayBufferView(y)) {
62204
62167
  if (T = new PNG(y), y = T.imgData, E = T.bits, _ = T.colorSpace, k = T.colors, [4, 6].indexOf(T.colorType) !== -1) {
62205
62168
  if (T.bits === 8) {
@@ -62207,15 +62170,15 @@ var PNG = function() {
62207
62170
  var ae = T.pixelBitlength - T.bits;
62208
62171
  G = 0, J = 0;
62209
62172
  for (var Ce; G < Y; G++) {
62210
- for (W = B[G], Ce = 0; Ce < ae; )
62211
- U[J++] = W >>> Ce & 255, Ce = Ce + T.bits;
62212
- j[G] = W >>> Ce & 255;
62173
+ for (z = B[G], Ce = 0; Ce < ae; )
62174
+ U[J++] = z >>> Ce & 255, Ce = Ce + T.bits;
62175
+ j[G] = z >>> Ce & 255;
62213
62176
  }
62214
62177
  }
62215
62178
  if (T.bits === 16) {
62216
62179
  B = new Uint32Array(T.decodePixels().buffer), Y = B.length, U = new Uint8Array(Y * (32 / T.pixelBitlength) * T.colors), j = new Uint8Array(Y * (32 / T.pixelBitlength)), X = T.colors > 1, G = 0, J = 0;
62217
62180
  for (var oe = 0; G < Y; )
62218
- W = B[G++], U[J++] = W >>> 0 & 255, X && (U[J++] = W >>> 16 & 255, W = B[G++], U[J++] = W >>> 0 & 255), j[oe++] = W >>> 16 & 255;
62181
+ z = B[G++], U[J++] = z >>> 0 & 255, X && (U[J++] = z >>> 16 & 255, z = B[G++], U[J++] = z >>> 0 & 255), j[oe++] = z >>> 16 & 255;
62219
62182
  E = 8;
62220
62183
  }
62221
62184
  t(C) ? (y = o(U, T.width * T.colors, T.colors, C), H = o(j, T.width, 1, C)) : (y = U, H = j, D = void 0);
@@ -62365,7 +62328,7 @@ function GifReader(a) {
62365
62328
  }, this.frameInfo = function(X) {
62366
62329
  if (X < 0 || X >= p.length) throw new Error("Frame index out of range.");
62367
62330
  return p[X];
62368
- }, this.decodeAndBlitFrameBGRA = function(X, W) {
62331
+ }, this.decodeAndBlitFrameBGRA = function(X, z) {
62369
62332
  var G = this.frameInfo(X), J = G.width * G.height, ae = new Uint8Array(J);
62370
62333
  GifReaderLZWOutputIndexStream(a, G.data_offset, ae, J);
62371
62334
  var Ce = G.palette_offset, oe = G.transparent_index;
@@ -62378,11 +62341,11 @@ function GifReader(a) {
62378
62341
  Ie += 4;
62379
62342
  else {
62380
62343
  var Ve = a[Ce + De * 3], Te = a[Ce + De * 3 + 1], He = a[Ce + De * 3 + 2];
62381
- W[Ie++] = He, W[Ie++] = Te, W[Ie++] = Ve, W[Ie++] = 255;
62344
+ z[Ie++] = He, z[Ie++] = Te, z[Ie++] = Ve, z[Ie++] = 255;
62382
62345
  }
62383
62346
  --Q;
62384
62347
  }
62385
- }, this.decodeAndBlitFrameRGBA = function(X, W) {
62348
+ }, this.decodeAndBlitFrameRGBA = function(X, z) {
62386
62349
  var G = this.frameInfo(X), J = G.width * G.height, ae = new Uint8Array(J);
62387
62350
  GifReaderLZWOutputIndexStream(a, G.data_offset, ae, J);
62388
62351
  var Ce = G.palette_offset, oe = G.transparent_index;
@@ -62392,10 +62355,10 @@ function GifReader(a) {
62392
62355
  for (var _e = 8, pe = 0, Pe = ae.length; pe < Pe; ++pe) {
62393
62356
  var De = ae[pe];
62394
62357
  if (Q === 0 && (Ie += ve, Q = me, Ie >= xe && (ve = ue * 4 + r * 4 * (_e - 1), Ie = ne + (me + ue) * (_e << 1), _e >>= 1)), De === oe)
62395
- W[Ie++] = 255, W[Ie++] = 255, W[Ie++] = 255, W[Ie++] = 255;
62358
+ z[Ie++] = 255, z[Ie++] = 255, z[Ie++] = 255, z[Ie++] = 255;
62396
62359
  else {
62397
62360
  var Ve = a[Ce + De * 3], Te = a[Ce + De * 3 + 1], He = a[Ce + De * 3 + 2];
62398
- W[Ie++] = Ve, W[Ie++] = Te, W[Ie++] = He, W[Ie++] = 255;
62361
+ z[Ie++] = Ve, z[Ie++] = Te, z[Ie++] = He, z[Ie++] = 255;
62399
62362
  }
62400
62363
  --Q;
62401
62364
  }
@@ -62461,7 +62424,7 @@ function GifReaderLZWOutputIndexStream(a, t, r, o) {
62461
62424
  */
62462
62425
  function JPEGEncoder(a) {
62463
62426
  var t = Math.floor, r = new Array(64), o = new Array(64), n = new Array(64), s = new Array(64), l, c, d, u, f = new Array(65535), p = new Array(65535), m = new Array(64), g = new Array(64), y = [], w = 0, v = 7, C = new Array(64), _ = new Array(64), D = new Array(64), E = new Array(256), T = new Array(2048), I, M = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63], k = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0], L = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], H = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125], B = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], Y = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], j = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], U = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119], X = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];
62464
- function W(Te) {
62427
+ function z(Te) {
62465
62428
  for (var He = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99], we = 0; we < 64; we++) {
62466
62429
  var le = t((He[we] * Te + 50) / 100);
62467
62430
  le = Math.min(Math.max(le, 1), 255), r[M[we]] = le;
@@ -62620,7 +62583,7 @@ function JPEGEncoder(a) {
62620
62583
  function De(Te) {
62621
62584
  if (Te = Math.min(Math.max(Te, 1), 100), I != Te) {
62622
62585
  var He = Te < 50 ? Math.floor(5e3 / Te) : Math.floor(200 - Te * 2);
62623
- W(He), I = Te;
62586
+ z(He), I = Te;
62624
62587
  }
62625
62588
  }
62626
62589
  function Ve() {
@@ -62777,13 +62740,13 @@ function WebPDecoder(a) {
62777
62740
  if (Y[j + X] != U.charCodeAt(X)) return !0;
62778
62741
  return !1;
62779
62742
  }
62780
- function o(Y, j, U, X, W) {
62781
- for (var G = 0; G < W; G++)
62743
+ function o(Y, j, U, X, z) {
62744
+ for (var G = 0; G < z; G++)
62782
62745
  Y[j + G] = U[X + G];
62783
62746
  }
62784
62747
  function n(Y, j, U, X) {
62785
- for (var W = 0; W < X; W++)
62786
- Y[j + W] = U;
62748
+ for (var z = 0; z < X; z++)
62749
+ Y[j + z] = U;
62787
62750
  }
62788
62751
  function s(Y) {
62789
62752
  return new Int32Array(Y);
@@ -62794,17 +62757,17 @@ function WebPDecoder(a) {
62794
62757
  return U;
62795
62758
  }
62796
62759
  function c() {
62797
- function Y(U, X, W) {
62798
- for (var G = W[X], J = 0; J < G && (U.push(W.length > X + 1 ? [] : 0), !(W.length < X + 1)); J++)
62799
- Y(U[J], X + 1, W);
62760
+ function Y(U, X, z) {
62761
+ for (var G = z[X], J = 0; J < G && (U.push(z.length > X + 1 ? [] : 0), !(z.length < X + 1)); J++)
62762
+ Y(U[J], X + 1, z);
62800
62763
  }
62801
62764
  var j = [];
62802
62765
  return Y(j, 0, [3, 11]), j;
62803
62766
  }
62804
62767
  function d(Y, j) {
62805
- function U(W, G, J) {
62806
- for (var ae = J[G], Ce = 0; Ce < ae && (W.push(J.length > G + 1 ? [] : new j()), !(J.length < G + 1)); Ce++)
62807
- U(W[Ce], G + 1, J);
62768
+ function U(z, G, J) {
62769
+ for (var ae = J[G], Ce = 0; Ce < ae && (z.push(J.length > G + 1 ? [] : new j()), !(J.length < G + 1)); Ce++)
62770
+ U(z[Ce], G + 1, J);
62808
62771
  }
62809
62772
  var X = [];
62810
62773
  return U(X, 0, Y), X;
@@ -62822,7 +62785,7 @@ function WebPDecoder(a) {
62822
62785
  O -= R, N[F + O] = K;
62823
62786
  while (0 < O);
62824
62787
  }
62825
- function W(N, F, R, O, K, te) {
62788
+ function z(N, F, R, O, K, te) {
62826
62789
  var re = F, ie = 1 << R, de, fe, Ee = s(16), Oe = s(16);
62827
62790
  for (t(K != 0), t(O != null), t(N != null), t(0 < R), fe = 0; fe < K; ++fe) {
62828
62791
  if (15 < O[fe]) return 0;
@@ -62858,7 +62821,7 @@ function WebPDecoder(a) {
62858
62821
  function G(N, F, R, O, K) {
62859
62822
  if (t(2328 >= K), 512 >= K) var te = s(512);
62860
62823
  else if (te = s(K), te == null) return 0;
62861
- return W(N, F, R, O, K, te);
62824
+ return z(N, F, R, O, K, te);
62862
62825
  }
62863
62826
  function J() {
62864
62827
  this.value = this.g = 0;
@@ -64097,11 +64060,11 @@ function WebPDecoder(a) {
64097
64060
  function Vo() {
64098
64061
  this.nc = this.Ea = this.b = this.hc = 0, this.K = [], this.w = 0;
64099
64062
  }
64100
- function z() {
64063
+ function W() {
64101
64064
  this.ua = 0, this.Wa = new Qe(), this.vb = new Qe(), this.md = this.xc = this.wc = 0, this.vc = [], this.Wb = 0, this.Ya = new Ce(), this.yc = new J();
64102
64065
  }
64103
64066
  function V() {
64104
- this.xb = this.a = 0, this.l = new Re(), this.ca = new Ut(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new ve(), this.Pb = 0, this.wd = new ve(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new z(), this.ab = 0, this.gc = l(4, Vo), this.Oc = 0;
64067
+ this.xb = this.a = 0, this.l = new Re(), this.ca = new Ut(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new ve(), this.Pb = 0, this.wd = new ve(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new W(), this.ab = 0, this.gc = l(4, Vo), this.Oc = 0;
64105
64068
  }
64106
64069
  function ye() {
64107
64070
  this.Lc = this.Z = this.$a = this.i = this.c = 0, this.l = new Re(), this.ic = 0, this.ca = [], this.tb = 0, this.qd = null, this.rd = 0;
@@ -64679,8 +64642,8 @@ function WebPDecoder(a) {
64679
64642
  WebPRiffParser dominikhlbg@gmail.com
64680
64643
  */
64681
64644
  function f(Y, j, U, X) {
64682
- for (var W = 0; W < X; W++)
64683
- if (Y[j + W] != U.charCodeAt(W)) return !0;
64645
+ for (var z = 0; z < X; z++)
64646
+ if (Y[j + z] != U.charCodeAt(z)) return !0;
64684
64647
  return !1;
64685
64648
  }
64686
64649
  function p(Y, j) {
@@ -64698,7 +64661,7 @@ function WebPDecoder(a) {
64698
64661
  return (Y[j + 0] << 0 | Y[j + 1] << 8 | Y[j + 2] << 16 | Y[j + 3] << 24) >>> 0;
64699
64662
  }
64700
64663
  function w(Y, j) {
64701
- var U = {}, X = 0, W = !1, G = 0, J = 0;
64664
+ var U = {}, X = 0, z = !1, G = 0, J = 0;
64702
64665
  if (U.frames = [], !f(Y, j, "RIFF", 4)) {
64703
64666
  for (j += 4, y(Y, j) + 8, j += 8; j < Y.length; ) {
64704
64667
  var ae = p(Y, j);
@@ -64711,7 +64674,7 @@ function WebPDecoder(a) {
64711
64674
  case "VP8L":
64712
64675
  typeof U.frames[X] > "u" && (U.frames[X] = {});
64713
64676
  var Q = U.frames[X];
64714
- Q.src_off = W ? J : j - 8, Q.src_size = G + Ce + 8, X++, W && (W = !1, G = 0, J = 0);
64677
+ Q.src_off = z ? J : j - 8, Q.src_size = G + Ce + 8, X++, z && (z = !1, G = 0, J = 0);
64715
64678
  break;
64716
64679
  case "VP8X":
64717
64680
  var Q = U.header = {};
@@ -64720,7 +64683,7 @@ function WebPDecoder(a) {
64720
64683
  Q.canvas_width = 1 + g(Y, me), me += 3, Q.canvas_height = 1 + g(Y, me), me += 3;
64721
64684
  break;
64722
64685
  case "ALPH":
64723
- W = !0, G = oe + 8, J = j - 8;
64686
+ z = !0, G = oe + 8, J = j - 8;
64724
64687
  break;
64725
64688
  case "ANIM":
64726
64689
  var Q = U.header;
@@ -65250,7 +65213,7 @@ WebPDecoder.prototype.getData = function() {
65250
65213
  (function(a) {
65251
65214
  function t() {
65252
65215
  return function() {
65253
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-CPwo1lLP.mjs");
65216
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DqgjYlKP.mjs");
65254
65217
  }().catch(function(r) {
65255
65218
  return Promise.reject(new Error("Could not load canvg: " + r));
65256
65219
  }).then(function(r) {
@@ -65868,7 +65831,7 @@ end`, y;
65868
65831
  _e++;
65869
65832
  }
65870
65833
  }
65871
- }, W = function(ae, Ce, oe) {
65834
+ }, z = function(ae, Ce, oe) {
65872
65835
  if (oe.hiLevel !== 0 && I)
65873
65836
  for (var me = 0, ue; me < ae.length; me++)
65874
65837
  Ce[me] === 1 && (ue = p.indexOf(ae[me]), ue >= 0 && (ae[me] = p[ue + 1]));
@@ -65876,7 +65839,7 @@ end`, y;
65876
65839
  var me = ae.split(""), ue = {
65877
65840
  hiLevel: M
65878
65841
  };
65879
- return oe || (oe = []), U(me, oe, ue), W(me, oe, ue), X(C + 1, me, Ce, oe, ue), X(C, me, Ce, oe, ue), me.join("");
65842
+ return oe || (oe = []), U(me, oe, ue), z(me, oe, ue), X(C + 1, me, Ce, oe, ue), X(C, me, Ce, oe, ue), me.join("");
65880
65843
  };
65881
65844
  return this.__bidiEngine__.doBidiReorder = function(J, ae, Ce) {
65882
65845
  if (k(J, ae), !_ && E && !T)
@@ -66119,7 +66082,7 @@ var HeadTable = function(a) {
66119
66082
  t.pos = m;
66120
66083
  }
66121
66084
  return a.encode = function(t, r) {
66122
- var o, n, s, l, c, d, u, f, p, m, g, y, w, v, C, _, D, E, T, I, M, k, L, H, B, Y, j, U, X, W, G, J, ae, Ce, oe, me, ue, Q, ne, xe, Ie, ve, _e, pe, Pe, De;
66085
+ var o, n, s, l, c, d, u, f, p, m, g, y, w, v, C, _, D, E, T, I, M, k, L, H, B, Y, j, U, X, z, G, J, ae, Ce, oe, me, ue, Q, ne, xe, Ie, ve, _e, pe, Pe, De;
66123
66086
  switch (U = new Data(), l = Object.keys(t).sort(function(Ve, Te) {
66124
66087
  return Ve - Te;
66125
66088
  }), r) {
@@ -66142,8 +66105,8 @@ var HeadTable = function(a) {
66142
66105
  maxGlyphID: w + 1
66143
66106
  };
66144
66107
  case "unicode":
66145
- for (Y = [], p = [], D = 0, _ = {}, o = {}, C = u = null, W = 0, Ce = l.length; W < Ce; W++)
66146
- n = l[W], T = t[n], _[T] == null && (_[T] = ++D), o[n] = {
66108
+ for (Y = [], p = [], D = 0, _ = {}, o = {}, C = u = null, z = 0, Ce = l.length; z < Ce; z++)
66109
+ n = l[z], T = t[n], _[T] == null && (_[T] = ++D), o[n] = {
66147
66110
  old: T,
66148
66111
  new: _[T]
66149
66112
  }, c = _[T] - n, (C == null || c !== u) && (C && p.push(C), Y.push(n), u = c), C = n;
@@ -66647,7 +66610,7 @@ class PrintController {
66647
66610
  if (l.printStatus.printRange !== 2 && (d = l.vueController.getDocXml(!1, !0)), l.startPageNum = 0, l.firstPageStartTop = 0, !this._isSetFont) {
66648
66611
  this._waitPrint = !0, Modal.info({
66649
66612
  title: "提示",
66650
- content: "<p>打印所需文件正在加载中,请稍候</p><p>加载完成后会自动进行打印</p>",
66613
+ content: "<p>打印所需文件正在加载中,请稍候再试!</p>",
66651
66614
  okText: i18nHelper("04-001-009-EMR.3.3.347", null, "确定"),
66652
66615
  onOk() {
66653
66616
  }
@@ -67801,10 +67764,10 @@ function requireLocalforage() {
67801
67764
  j(T[B], B);
67802
67765
  return Y;
67803
67766
  function j(U, X) {
67804
- I.resolve(U).then(W, function(G) {
67767
+ I.resolve(U).then(z, function(G) {
67805
67768
  k || (k = !0, c.reject(Y, G));
67806
67769
  });
67807
- function W(G) {
67770
+ function z(G) {
67808
67771
  L[X] = G, ++H === M && !k && (k = !0, c.resolve(Y, L));
67809
67772
  }
67810
67773
  }
@@ -67993,7 +67956,7 @@ function requireLocalforage() {
67993
67956
  }
67994
67957
  return !1;
67995
67958
  }
67996
- function W(ge) {
67959
+ function z(ge) {
67997
67960
  return new p(function(Ae, be) {
67998
67961
  var ke = new FileReader();
67999
67962
  ke.onerror = be, ke.onloadend = function(je) {
@@ -68156,7 +68119,7 @@ function requireLocalforage() {
68156
68119
  var rt;
68157
68120
  ke.ready().then(function() {
68158
68121
  return rt = ke._dbInfo, D.call(Ae) === "[object Blob]" ? k(rt.db).then(function(ct) {
68159
- return ct ? Ae : W(Ae);
68122
+ return ct ? Ae : z(Ae);
68160
68123
  }) : Ae;
68161
68124
  }).then(function(ct) {
68162
68125
  oe(ke._dbInfo, T, function(at, ut) {
@@ -70389,10 +70352,10 @@ class DocController {
70389
70352
  do
70390
70353
  Y >= 0 && (j.set(Y, "old"), U.push(Y), Y = k.indexOf("(old)", Y + 5));
70391
70354
  while (Y >= 0);
70392
- U = U.sort((X, W) => X - W);
70355
+ U = U.sort((X, z) => X - z);
70393
70356
  for (let X = 0; X < U.length; X++) {
70394
- const W = a.docTree.styles[L], G = new TextStyle(this._hoEditorFactoryID);
70395
- G.copyProperty(W, G), G.creatorIndex = void 0, G.deleterIndex = void 0, G.modifierIndex = void 0;
70357
+ const z = a.docTree.styles[L], G = new TextStyle(this._hoEditorFactoryID);
70358
+ G.copyProperty(z, G), G.creatorIndex = void 0, G.deleterIndex = void 0, G.modifierIndex = void 0;
70396
70359
  const J = j.get(U[X]);
70397
70360
  if (J == "add") {
70398
70361
  const ae = k.indexOf("(/add)", U[X]), Ce = k.substring(U[X] + 5, ae), me = new UserHistory(this._hoEditorFactoryID, HistoryEditType.hetCreate).userCompare();
@@ -72942,7 +72905,7 @@ class HOEditorFactory {
72942
72905
  // 压缩xml
72943
72906
  b(this, "compressJSONData", {});
72944
72907
  b(this, "shiftKeyPress", !1);
72945
- // 是否按下shift
72908
+ // 是否按下shift
72946
72909
  b(this, "watermarkText", "");
72947
72910
  // 水印内容
72948
72911
  b(this, "isFixPrint", !1);
@@ -72952,9 +72915,11 @@ class HOEditorFactory {
72952
72915
  b(this, "firstLoad", !1);
72953
72916
  b(this, "isCreateBase64", !1);
72954
72917
  b(this, "saveDocLog", !1);
72918
+ // 记录文档信息
72919
+ b(this, "drawRadioAndCheckBoxMode", 1);
72955
72920
  this._hoEditorFactoryId = t;
72956
72921
  }
72957
- // 记录文档信息
72922
+ // 绘制模式 1: Unicode 转义 2: 字形
72958
72923
  /**
72959
72924
  * Getter hoLocalStorage
72960
72925
  * @return {HoLocalStorage}
@@ -78737,7 +78702,7 @@ function requireVueColor_min() {
78737
78702
  for (var j = 0; j < Y.length; j++) {
78738
78703
  var X = Y[j];
78739
78704
  if (X.refs === 0) {
78740
- for (var W = 0; W < X.parts.length; W++) X.parts[W]();
78705
+ for (var z = 0; z < X.parts.length; z++) X.parts[z]();
78741
78706
  delete m[X.id];
78742
78707
  }
78743
78708
  }
@@ -79087,9 +79052,9 @@ function requireVueColor_min() {
79087
79052
  return function() {
79088
79053
  return new D(this, Ce);
79089
79054
  };
79090
- }, Y = _ + " Iterator", j = T == "values", U = !1, X = C.prototype, W = X[y] || X["@@iterator"] || T && X[T], G = W || B(T), J = T ? j ? B("entries") : G : void 0, ae = _ == "Array" && X.entries || W;
79091
- if (ae && (H = g(ae.call(new C()))) !== Object.prototype && H.next && (m(H, Y, !0), s || u(H, y) || d(H, y, v)), j && W && W.name !== "values" && (U = !0, G = function() {
79092
- return W.call(this);
79055
+ }, Y = _ + " Iterator", j = T == "values", U = !1, X = C.prototype, z = X[y] || X["@@iterator"] || T && X[T], G = z || B(T), J = T ? j ? B("entries") : G : void 0, ae = _ == "Array" && X.entries || z;
79056
+ if (ae && (H = g(ae.call(new C()))) !== Object.prototype && H.next && (m(H, Y, !0), s || u(H, y) || d(H, y, v)), j && z && z.name !== "values" && (U = !0, G = function() {
79057
+ return z.call(this);
79093
79058
  }), s && !M || !w && !U && X[y] || d(X, y, G), f[_] = G, f[Y] = v, T) if (k = { values: j ? G : B("values"), keys: I ? G : B("keys"), entries: J }, M) for (L in k) L in X || c(X, L, k[L]);
79094
79059
  else l(l.P + l.F * (w || U), _, k);
79095
79060
  return k;
@@ -79400,7 +79365,7 @@ function requireVueColor_min() {
79400
79365
  function s(oe) {
79401
79366
  return oe && oe.__esModule ? oe : { default: oe };
79402
79367
  }
79403
- var l = n(60), c = s(l), d = n(69), u = s(d), f = n(73), p = s(f), m = n(77), g = s(m), y = n(115), w = s(y), v = n(120), C = s(v), _ = n(135), D = s(_), E = n(139), T = s(E), I = n(143), M = s(I), k = n(19), L = s(k), H = n(20), B = s(H), Y = n(5), j = s(Y), U = n(12), X = s(U), W = n(18), G = s(W), J = n(3), ae = s(J), Ce = { version: "2.8.2", Compact: c.default, Grayscale: u.default, Twitter: M.default, Material: p.default, Slider: g.default, Swatches: w.default, Photoshop: C.default, Sketch: D.default, Chrome: T.default, Alpha: L.default, Checkboard: B.default, EditableInput: j.default, Hue: X.default, Saturation: G.default, ColorMixin: ae.default };
79368
+ var l = n(60), c = s(l), d = n(69), u = s(d), f = n(73), p = s(f), m = n(77), g = s(m), y = n(115), w = s(y), v = n(120), C = s(v), _ = n(135), D = s(_), E = n(139), T = s(E), I = n(143), M = s(I), k = n(19), L = s(k), H = n(20), B = s(H), Y = n(5), j = s(Y), U = n(12), X = s(U), z = n(18), G = s(z), J = n(3), ae = s(J), Ce = { version: "2.8.2", Compact: c.default, Grayscale: u.default, Twitter: M.default, Material: p.default, Slider: g.default, Swatches: w.default, Photoshop: C.default, Sketch: D.default, Chrome: T.default, Alpha: L.default, Checkboard: B.default, EditableInput: j.default, Hue: X.default, Saturation: G.default, ColorMixin: ae.default };
79404
79369
  r.exports = Ce;
79405
79370
  }, function(r, o, n) {
79406
79371
  function s(g) {
@@ -79555,12 +79520,12 @@ function requireVueColor_min() {
79555
79520
  function C(le, he) {
79556
79521
  he = he === 0 ? 0 : he || 10;
79557
79522
  var $ = c(le).toHsl();
79558
- return $.s -= he / 100, $.s = W($.s), c($);
79523
+ return $.s -= he / 100, $.s = z($.s), c($);
79559
79524
  }
79560
79525
  function _(le, he) {
79561
79526
  he = he === 0 ? 0 : he || 10;
79562
79527
  var $ = c(le).toHsl();
79563
- return $.s += he / 100, $.s = W($.s), c($);
79528
+ return $.s += he / 100, $.s = z($.s), c($);
79564
79529
  }
79565
79530
  function D(le) {
79566
79531
  return c(le).desaturate(100);
@@ -79568,7 +79533,7 @@ function requireVueColor_min() {
79568
79533
  function E(le, he) {
79569
79534
  he = he === 0 ? 0 : he || 10;
79570
79535
  var $ = c(le).toHsl();
79571
- return $.l += he / 100, $.l = W($.l), c($);
79536
+ return $.l += he / 100, $.l = z($.l), c($);
79572
79537
  }
79573
79538
  function T(le, he) {
79574
79539
  he = he === 0 ? 0 : he || 10;
@@ -79578,7 +79543,7 @@ function requireVueColor_min() {
79578
79543
  function I(le, he) {
79579
79544
  he = he === 0 ? 0 : he || 10;
79580
79545
  var $ = c(le).toHsl();
79581
- return $.l -= he / 100, $.l = W($.l), c($);
79546
+ return $.l -= he / 100, $.l = z($.l), c($);
79582
79547
  }
79583
79548
  function M(le, he) {
79584
79549
  var $ = c(le).toHsl(), Ne = ($.h + he) % 360;
@@ -79619,7 +79584,7 @@ function requireVueColor_min() {
79619
79584
  var $ = ae(le);
79620
79585
  return le = Pe(he, De(0, parseFloat(le))), $ && (le = parseInt(le * he, 10) / 100), l.abs(le - he) < 1e-6 ? 1 : le % he / parseFloat(he);
79621
79586
  }
79622
- function W(le) {
79587
+ function z(le) {
79623
79588
  return Pe(1, De(0, le));
79624
79589
  }
79625
79590
  function G(le) {
@@ -80192,7 +80157,7 @@ function requireVueColor_min() {
80192
80157
  }, function(r, o, n) {
80193
80158
  n(102), n(108), n(109), n(110), r.exports = n(24).Symbol;
80194
80159
  }, function(r, o, n) {
80195
- var s = n(4), l = n(6), c = n(9), d = n(41), u = n(44), f = n(103).KEY, p = n(15), m = n(29), g = n(31), y = n(17), w = n(11), v = n(32), C = n(33), _ = n(104), D = n(105), E = n(13), T = n(10), I = n(25), M = n(16), k = n(45), L = n(106), H = n(107), B = n(8), Y = n(27), j = H.f, U = B.f, X = L.f, W = s.Symbol, G = s.JSON, J = G && G.stringify, ae = w("_hidden"), Ce = w("toPrimitive"), oe = {}.propertyIsEnumerable, me = m("symbol-registry"), ue = m("symbols"), Q = m("op-symbols"), ne = Object.prototype, xe = typeof W == "function", Ie = s.QObject, ve = !Ie || !Ie.prototype || !Ie.prototype.findChild, _e = c && p(function() {
80160
+ var s = n(4), l = n(6), c = n(9), d = n(41), u = n(44), f = n(103).KEY, p = n(15), m = n(29), g = n(31), y = n(17), w = n(11), v = n(32), C = n(33), _ = n(104), D = n(105), E = n(13), T = n(10), I = n(25), M = n(16), k = n(45), L = n(106), H = n(107), B = n(8), Y = n(27), j = H.f, U = B.f, X = L.f, z = s.Symbol, G = s.JSON, J = G && G.stringify, ae = w("_hidden"), Ce = w("toPrimitive"), oe = {}.propertyIsEnumerable, me = m("symbol-registry"), ue = m("symbols"), Q = m("op-symbols"), ne = Object.prototype, xe = typeof z == "function", Ie = s.QObject, ve = !Ie || !Ie.prototype || !Ie.prototype.findChild, _e = c && p(function() {
80196
80161
  return k(U({}, "a", { get: function() {
80197
80162
  return U(this, "a", { value: 7 }).a;
80198
80163
  } })).a != 7;
@@ -80200,12 +80165,12 @@ function requireVueColor_min() {
80200
80165
  var ht = j(ne, ze);
80201
80166
  ht && delete ne[ze], U(Me, ze, ot), ht && Me !== ne && U(ne, ze, ht);
80202
80167
  } : U, pe = function(Me) {
80203
- var ze = ue[Me] = k(W.prototype);
80168
+ var ze = ue[Me] = k(z.prototype);
80204
80169
  return ze._k = Me, ze;
80205
- }, Pe = xe && typeof W.iterator == "symbol" ? function(Me) {
80170
+ }, Pe = xe && typeof z.iterator == "symbol" ? function(Me) {
80206
80171
  return typeof Me == "symbol";
80207
80172
  } : function(Me) {
80208
- return Me instanceof W;
80173
+ return Me instanceof z;
80209
80174
  }, De = function(Me, ze, ot) {
80210
80175
  return Me === ne && De(Q, ze, ot), E(Me), ze = I(ze, !0), E(ot), l(ue, ze) ? (ot.enumerable ? (l(Me, ae) && Me[ae][ze] && (Me[ae][ze] = !1), ot = k(ot, { enumerable: M(0, !1) })) : (l(Me, ae) || U(Me, ae, M(1, {})), Me[ae][ze] = !0), _e(Me, ze, ot)) : U(Me, ze, ot);
80211
80176
  }, Ve = function(Me, ze) {
@@ -80229,21 +80194,21 @@ function requireVueColor_min() {
80229
80194
  for (var ze, ot = Me === ne, ht = X(ot ? Q : T(Me)), bt = [], gt = 0; ht.length > gt; ) !l(ue, ze = ht[gt++]) || ot && !l(ne, ze) || bt.push(ue[ze]);
80230
80195
  return bt;
80231
80196
  };
80232
- xe || (W = function() {
80233
- if (this instanceof W) throw TypeError("Symbol is not a constructor!");
80197
+ xe || (z = function() {
80198
+ if (this instanceof z) throw TypeError("Symbol is not a constructor!");
80234
80199
  var Me = y(arguments.length > 0 ? arguments[0] : void 0), ze = function(ot) {
80235
80200
  this === ne && ze.call(Q, ot), l(this, ae) && l(this[ae], Me) && (this[ae][Me] = !1), _e(this, Me, M(1, ot));
80236
80201
  };
80237
80202
  return c && ve && _e(ne, Me, { configurable: !0, set: ze }), pe(Me);
80238
- }, u(W.prototype, "toString", function() {
80203
+ }, u(z.prototype, "toString", function() {
80239
80204
  return this._k;
80240
80205
  }), H.f = we, B.f = De, n(49).f = L.f = le, n(34).f = He, n(48).f = he, c && !n(23) && u(ne, "propertyIsEnumerable", He, !0), v.f = function(Me) {
80241
80206
  return pe(w(Me));
80242
- }), d(d.G + d.W + d.F * !xe, { Symbol: W });
80207
+ }), d(d.G + d.W + d.F * !xe, { Symbol: z });
80243
80208
  for (var $ = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), Ne = 0; $.length > Ne; ) w($[Ne++]);
80244
80209
  for (var Be = Y(w.store), Qe = 0; Be.length > Qe; ) C(Be[Qe++]);
80245
80210
  d(d.S + d.F * !xe, "Symbol", { for: function(Me) {
80246
- return l(me, Me += "") ? me[Me] : me[Me] = W(Me);
80211
+ return l(me, Me += "") ? me[Me] : me[Me] = z(Me);
80247
80212
  }, keyFor: function(Me) {
80248
80213
  if (!Pe(Me)) throw TypeError(Me + " is not a symbol!");
80249
80214
  for (var ze in me) if (me[ze] === Me) return ze;
@@ -80252,7 +80217,7 @@ function requireVueColor_min() {
80252
80217
  }, useSimple: function() {
80253
80218
  ve = !1;
80254
80219
  } }), d(d.S + d.F * !xe, "Object", { create: Te, defineProperty: De, defineProperties: Ve, getOwnPropertyDescriptor: we, getOwnPropertyNames: le, getOwnPropertySymbols: he }), G && d(d.S + d.F * (!xe || p(function() {
80255
- var Me = W();
80220
+ var Me = z();
80256
80221
  return J([Me]) != "[null]" || J({ a: Me }) != "{}" || J(Object(Me)) != "{}";
80257
80222
  })), "JSON", { stringify: function(Me) {
80258
80223
  if (Me !== void 0 && !Pe(Me)) {
@@ -80261,7 +80226,7 @@ function requireVueColor_min() {
80261
80226
  if (ot && (_t = ot.call(this, gt, _t)), !Pe(_t)) return _t;
80262
80227
  }), ht[1] = ze, J.apply(G, ht);
80263
80228
  }
80264
- } }), W.prototype[Ce] || n(7)(W.prototype, Ce, W.prototype.valueOf), g(W, "Symbol"), g(Math, "Math", !0), g(s.JSON, "JSON", !0);
80229
+ } }), z.prototype[Ce] || n(7)(z.prototype, Ce, z.prototype.valueOf), g(z, "Symbol"), g(Math, "Math", !0), g(s.JSON, "JSON", !0);
80265
80230
  }, function(r, o, n) {
80266
80231
  var s = n(17)("meta"), l = n(14), c = n(6), d = n(8).f, u = 0, f = Object.isExtensible || function() {
80267
80232
  return !0;
@@ -80762,13 +80727,13 @@ function requireVueColor_min() {
80762
80727
  var Ve = De - Ie, Te = De - ve, He = B - Ve;
80763
80728
  return pe ? k(He, Q - Te) : He;
80764
80729
  }
80765
- function W(De) {
80730
+ function z(De) {
80766
80731
  var Ve = De - Ie, Te = De - ve;
80767
80732
  return Ie === void 0 || Ve >= B || Ve < 0 || pe && Te >= Q;
80768
80733
  }
80769
80734
  function G() {
80770
80735
  var De = L();
80771
- if (W(De)) return J(De);
80736
+ if (z(De)) return J(De);
80772
80737
  xe = setTimeout(G, X(De));
80773
80738
  }
80774
80739
  function J(De) {
@@ -80781,7 +80746,7 @@ function requireVueColor_min() {
80781
80746
  return xe === void 0 ? ne : J(L());
80782
80747
  }
80783
80748
  function oe() {
80784
- var De = L(), Ve = W(De);
80749
+ var De = L(), Ve = z(De);
80785
80750
  if (me = arguments, ue = this, Ie = De, Ve) {
80786
80751
  if (xe === void 0) return U(Ie);
80787
80752
  if (pe) return xe = setTimeout(G, B), j(Ie);
@@ -87891,10 +87856,10 @@ const HoRightMenu = __component__$1.exports, _sfc_main = defineComponent({
87891
87856
  D: H.d
87892
87857
  }) : H instanceof GestationNode ? (L.controlType = "gestation", L.controlStatus = "update", L.expressStyle = "") : (L.controlType = "", L.controlStatus = "add");
87893
87858
  }, s = () => {
87894
- var W, G;
87859
+ var z, G;
87895
87860
  let H = null;
87896
87861
  const B = HOEditorFactorys.instance().getFactory(L.activeDocId), Y = B.drawTree.selectRange.spStart, j = B.drawTree.selectRange.spEnd;
87897
- let U = (W = B.docTree.findNodePositionByPath(Y.path)) == null ? void 0 : W.node, X = (G = B.docTree.findNodePositionByPath(j.path)) == null ? void 0 : G.node;
87862
+ let U = (z = B.docTree.findNodePositionByPath(Y.path)) == null ? void 0 : z.node, X = (G = B.docTree.findNodePositionByPath(j.path)) == null ? void 0 : G.node;
87898
87863
  if (U instanceof MarkNode || U instanceof TextInputFieldNode) {
87899
87864
  const J = U.parentNode;
87900
87865
  J instanceof TextInputFieldNode ? H = J : H = U;