hoeditor-web 3.3.3-beta.0 → 3.3.3-beta.10
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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",
|
|
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(
|
|
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,
|
|
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[
|
|
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,
|
|
8741
|
-
if (!X || !X[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 ?
|
|
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 || !
|
|
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 =
|
|
8750
|
-
if (
|
|
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,
|
|
8755
|
-
M = m * d + (X[p] || 0), _[p] = M /
|
|
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 / (
|
|
8759
|
-
Y =
|
|
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(
|
|
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" ?
|
|
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 =
|
|
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
|
|
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, _ = _ &&
|
|
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
|
|
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
|
-
_ = _ &&
|
|
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.
|
|
15245
|
+
const version = "3.3.3-beta.10";
|
|
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:
|
|
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
|
|
15572
|
-
SignNode:
|
|
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 = {},
|
|
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
|
-
|
|
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
|
-
|
|
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(),
|
|
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
|
|
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) && (
|
|
16094
|
-
|
|
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],
|
|
16391
|
-
j.push(I(
|
|
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,
|
|
16598
|
-
L[X * M + U] =
|
|
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,
|
|
16585
|
+
var X = 2, z = Y(X);
|
|
16602
16586
|
U.writeByte(X);
|
|
16603
|
-
for (var G = 0;
|
|
16604
|
-
U.writeByte(255), U.writeBytes(
|
|
16605
|
-
U.writeByte(
|
|
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,
|
|
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 (;
|
|
16613
|
-
X.writeByte(255 & (ae <<
|
|
16614
|
-
G = ae <<
|
|
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
|
-
|
|
16600
|
+
z > 0 && X.writeByte(G);
|
|
16617
16601
|
}, J;
|
|
16618
16602
|
}, Y = function(U) {
|
|
16619
|
-
for (var X = 1 << U,
|
|
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(
|
|
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(
|
|
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,
|
|
16632
|
-
return
|
|
16633
|
-
if (
|
|
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
|
-
},
|
|
16620
|
+
}, z.size = function() {
|
|
16637
16621
|
return X;
|
|
16638
|
-
},
|
|
16622
|
+
}, z.indexOf = function(G) {
|
|
16639
16623
|
return U[G];
|
|
16640
|
-
},
|
|
16624
|
+
}, z.contains = function(G) {
|
|
16641
16625
|
return typeof U[G] < "u";
|
|
16642
|
-
},
|
|
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
|
-
},
|
|
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),
|
|
16920
|
-
L.w =
|
|
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
|
|
18479
|
+
let z = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(X).node;
|
|
18496
18480
|
for (; ; ) {
|
|
18497
|
-
if (!
|
|
18498
|
-
if (
|
|
18499
|
-
if (
|
|
18500
|
-
return
|
|
18501
|
-
|
|
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
|
-
|
|
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,
|
|
18511
|
-
u.col =
|
|
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,
|
|
18515
|
-
f.col =
|
|
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
|
|
18536
|
-
customProperties: { customProperty: Array(
|
|
18519
|
+
const z = this.rowInfos[X], J = {
|
|
18520
|
+
customProperties: { customProperty: Array(z.rowProperty.customProperties) },
|
|
18537
18521
|
//dataSource: rowInfo.rowProperty.dataSource,
|
|
18538
|
-
forcedPageBreak:
|
|
18522
|
+
forcedPageBreak: z.rowProperty.forcedPageBreak,
|
|
18539
18523
|
//isAutoRaiseHeight: rowInfo.rowProperty.isAutoRaiseHeight,
|
|
18540
|
-
isSpecifyHeight:
|
|
18541
|
-
printCellBg:
|
|
18542
|
-
printCellBorders:
|
|
18543
|
-
repeatAsTitleAtPageTop:
|
|
18544
|
-
rowHeight:
|
|
18545
|
-
sameLineCanAcrossPages:
|
|
18546
|
-
tabKeyInsNewLine:
|
|
18547
|
-
isLockRowHeight:
|
|
18548
|
-
newLineWithCellContent:
|
|
18549
|
-
withFormula:
|
|
18550
|
-
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" ?
|
|
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:
|
|
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
|
|
18578
|
-
editorProperty: EditorProperty[
|
|
18579
|
-
align: VAlign[
|
|
18580
|
-
width:
|
|
18581
|
-
specifyWidth:
|
|
18582
|
-
downListProperty:
|
|
18583
|
-
dateTimeProperty:
|
|
18584
|
-
numberProperty:
|
|
18585
|
-
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:
|
|
18588
|
-
isLock:
|
|
18589
|
-
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
|
-
(
|
|
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:
|
|
18580
|
+
colWidth: z.colWidth
|
|
18597
18581
|
//widthFixed: colInfo.widthFixed,
|
|
18598
18582
|
//dLeft: colInfo.dLeft,
|
|
18599
18583
|
//colProperty: colPropertyJson
|
|
18600
18584
|
};
|
|
18601
|
-
|
|
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
|
|
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 =
|
|
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
|
|
18649
|
-
for (let G = 0; G <
|
|
18650
|
-
|
|
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
|
|
27605
|
-
|
|
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((
|
|
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
|
-
|
|
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((
|
|
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((
|
|
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,
|
|
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 && ((
|
|
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
|
|
31828
|
-
k = M.getDrawPageCellByPos(_.x,
|
|
31829
|
-
const G = M.localToGlobal(_.x,
|
|
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
|
|
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
|
|
31845
|
-
_.cell.cellProperty.align == 1 ?
|
|
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,
|
|
33267
|
+
let j, U = 0, X = u - 1, z = ~~(u / 2), G;
|
|
33285
33268
|
do
|
|
33286
|
-
G =
|
|
33287
|
-
while (
|
|
33288
|
-
for (
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 (
|
|
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
|
-
|
|
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 =
|
|
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
|
|
39470
|
-
c.drawPageTable.table.drawTable.drawUpdate(Y, X, j.y,
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 &&
|
|
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 :
|
|
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
|
|
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
|
-
|
|
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 "="'),
|
|
43878
|
-
G = L.slice(H, J), X(
|
|
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(
|
|
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 =
|
|
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
|
-
|
|
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(
|
|
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[""]) || !
|
|
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"' +
|
|
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,
|
|
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] =
|
|
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),
|
|
44024
|
-
if (
|
|
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
|
-
|
|
44027
|
-
var Ce = X[
|
|
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
|
|
44251
|
-
return
|
|
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
|
|
44257
|
-
return this.getUTCFullYear() + "-" + U(this.getUTCMonth() + 1) + "-" + U(this.getUTCDate()) + "T" + U(this.getUTCHours()) + ":" + U(this.getUTCMinutes()) + ":" + U(this.getUTCSeconds()) + "." + String((this.getUTCMilliseconds() /
|
|
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(/</g, "<").replace(/>/g, ">").replace(/"/g, '"').replace(/'/g, "'").replace(/&/g, "&");
|
|
44280
44263
|
}
|
|
44281
|
-
function m(U, X,
|
|
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 ===
|
|
44274
|
+
if (ae === z) {
|
|
44292
44275
|
G = !0;
|
|
44293
44276
|
break;
|
|
44294
44277
|
}
|
|
44295
44278
|
} else if (ae instanceof RegExp) {
|
|
44296
|
-
if (ae.test(
|
|
44279
|
+
if (ae.test(z)) {
|
|
44297
44280
|
G = !0;
|
|
44298
44281
|
break;
|
|
44299
44282
|
}
|
|
44300
|
-
} else if (typeof ae == "function" && ae(X,
|
|
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,
|
|
44310
|
-
if (G.setHours(
|
|
44311
|
-
var ae =
|
|
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,
|
|
44299
|
+
function y(U, X, z) {
|
|
44317
44300
|
if (o.datetimeAccessFormPaths.length > 0)
|
|
44318
|
-
for (var G =
|
|
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 = {},
|
|
44333
|
-
var J =
|
|
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
|
|
44343
|
-
|
|
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 && (
|
|
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
|
-
|
|
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
|
-
|
|
44338
|
+
z[o.attributePrefix + me.name] = ue;
|
|
44356
44339
|
}
|
|
44357
44340
|
var xe = u(U);
|
|
44358
|
-
return xe && (
|
|
44359
|
-
`)), o.escapeMode && (
|
|
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
|
-
}),
|
|
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,
|
|
44349
|
+
function _(U, X, z, G) {
|
|
44367
44350
|
var J = "<" + (U && U.__prefix ? U.__prefix + ":" : "") + X;
|
|
44368
|
-
if (
|
|
44369
|
-
for (var ae = 0; ae <
|
|
44370
|
-
var 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
|
|
44388
|
-
T(U,
|
|
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
|
|
44395
|
-
|
|
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,
|
|
44389
|
+
function H(U, X, z) {
|
|
44407
44390
|
var G = "";
|
|
44408
44391
|
if (U.length === 0)
|
|
44409
|
-
G += _(U, X,
|
|
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,
|
|
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,
|
|
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,
|
|
44406
|
+
G += H(U, X, z);
|
|
44424
44407
|
else if (U instanceof Date)
|
|
44425
|
-
G += _(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,
|
|
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,
|
|
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 = "",
|
|
44436
|
-
if (
|
|
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,
|
|
44431
|
+
var X = null, z = null;
|
|
44449
44432
|
if (t)
|
|
44450
|
-
X = new t(o.xmldomOptions),
|
|
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
|
-
|
|
44444
|
+
z = X.parseFromString(U, "text/xml"), G !== null && z.getElementsByTagNameNS(G, "parsererror").length > 0 && (z = null);
|
|
44462
44445
|
} catch {
|
|
44463
|
-
|
|
44446
|
+
z = null;
|
|
44464
44447
|
}
|
|
44465
44448
|
} else
|
|
44466
|
-
U.indexOf("<?") === 0 && (U = U.substr(U.indexOf("?>") + 2)),
|
|
44467
|
-
return
|
|
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
|
|
44481
|
-
return j(
|
|
44463
|
+
var z = this.js2xml(X);
|
|
44464
|
+
return j(z);
|
|
44482
44465
|
}, this.xml2js = function(X) {
|
|
44483
|
-
var
|
|
44484
|
-
return
|
|
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("正确:"),
|
|
46234
|
-
|
|
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 =
|
|
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 =
|
|
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
|
}
|
|
@@ -50049,27 +50032,27 @@ class VueController {
|
|
|
50049
50032
|
let L = [];
|
|
50050
50033
|
if (T != "" && T != null) {
|
|
50051
50034
|
Array.isArray(T) ? L = T : L = [T];
|
|
50052
|
-
for (let
|
|
50053
|
-
const G = f(L[
|
|
50054
|
-
ae >= 0 ? _.set(
|
|
50035
|
+
for (let z = 0; z < L.length; z++) {
|
|
50036
|
+
const G = f(L[z], I), J = JSON.stringify(G), ae = d.lastIndexOf(J);
|
|
50037
|
+
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
50038
|
}
|
|
50056
50039
|
}
|
|
50057
50040
|
const H = E.styles.paraStyle ? E.styles.paraStyle : E.styles.para, B = E.styles.defaultPara, Y = JSON.stringify(B), j = u.indexOf(Y);
|
|
50058
50041
|
j >= 0 ? D.set(0, j) : (p.styles.paraStyle.push(B), u.push(Y), D.set(0, u.length - 1));
|
|
50059
|
-
const U = (
|
|
50042
|
+
const U = (z) => {
|
|
50060
50043
|
const G = JSON.stringify(B), J = JSON.parse(G);
|
|
50061
|
-
return
|
|
50044
|
+
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
50045
|
};
|
|
50063
50046
|
let X = [];
|
|
50064
50047
|
H != "" && H != null && (H && !Array.isArray(H) ? X = [H] : X = H);
|
|
50065
|
-
for (let
|
|
50066
|
-
const G = U(X[
|
|
50067
|
-
ae >= 0 ? D.set(
|
|
50048
|
+
for (let z = 0; z < X.length; z++) {
|
|
50049
|
+
const G = U(X[z]), J = JSON.stringify(G), ae = u.indexOf(J);
|
|
50050
|
+
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
50051
|
}
|
|
50069
50052
|
if (w(E.main, _, D), p.pageSettingsTree = [], t[C][0]) {
|
|
50070
50053
|
w(E.header[0].subDocNodes, _, D);
|
|
50071
|
-
const
|
|
50072
|
-
E.header[0].beginPath =
|
|
50054
|
+
const z = o.gernerateCode.generateID("DocId");
|
|
50055
|
+
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
50056
|
widthMm: Number(E.pageSettings.widthMm),
|
|
50074
50057
|
heightMm: Number(E.pageSettings.heightMm),
|
|
50075
50058
|
pageSize: E.pageSettings.pageSize,
|
|
@@ -50077,8 +50060,8 @@ class VueController {
|
|
|
50077
50060
|
});
|
|
50078
50061
|
} else if (t[C][2]) {
|
|
50079
50062
|
w(E.header[0].subDocNodes, _, D);
|
|
50080
|
-
const
|
|
50081
|
-
E.header[0].beginPath =
|
|
50063
|
+
const z = o.gernerateCode.generateID("DocId");
|
|
50064
|
+
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
50065
|
}
|
|
50083
50066
|
y(t[C][3], E.main), Array.isArray(E.main) ? p.main.push(...E.main) : p.main.push(...Array(E.main));
|
|
50084
50067
|
}
|
|
@@ -52342,7 +52325,7 @@ class VueController {
|
|
|
52342
52325
|
for (let me = 0; me < oe.length; me++)
|
|
52343
52326
|
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
52327
|
}
|
|
52345
|
-
const
|
|
52328
|
+
const z = { defaultRowProperty: E, item: I }, G = { defaultColProperty: L, item: B }, J = { defaultCellProperty: Y, item: U };
|
|
52346
52329
|
return { TableNode: {
|
|
52347
52330
|
nodeType: NodeType$1[1],
|
|
52348
52331
|
rowCount: v.rowCount,
|
|
@@ -52351,7 +52334,7 @@ class VueController {
|
|
|
52351
52334
|
borderWidth: v.borderWidth,
|
|
52352
52335
|
headerRowCount: v.headerRowCount,
|
|
52353
52336
|
tableProperty: D,
|
|
52354
|
-
rowInfos:
|
|
52337
|
+
rowInfos: z,
|
|
52355
52338
|
colInfos: G,
|
|
52356
52339
|
childNodes: J
|
|
52357
52340
|
} };
|
|
@@ -54911,8 +54894,8 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
54911
54894
|
I[k++] = j;
|
|
54912
54895
|
}
|
|
54913
54896
|
}
|
|
54914
|
-
var X = I.subarray(0, D),
|
|
54915
|
-
m = max(X), g = max(
|
|
54897
|
+
var X = I.subarray(0, D), z = I.subarray(D);
|
|
54898
|
+
m = max(X), g = max(z), f = hMap(X, m, 1), p = hMap(z, g, 1);
|
|
54916
54899
|
} else
|
|
54917
54900
|
throw "invalid block type";
|
|
54918
54901
|
else {
|
|
@@ -54950,16 +54933,16 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
54950
54933
|
if (!ue)
|
|
54951
54934
|
throw "invalid distance";
|
|
54952
54935
|
d += ue & 15;
|
|
54953
|
-
var
|
|
54936
|
+
var z = fd[Q];
|
|
54954
54937
|
if (Q > 3) {
|
|
54955
54938
|
var me = fdeb[Q];
|
|
54956
|
-
|
|
54939
|
+
z += bits16(a, d) & (1 << me) - 1, d += me;
|
|
54957
54940
|
}
|
|
54958
54941
|
if (d > y)
|
|
54959
54942
|
throw "unexpected EOF";
|
|
54960
54943
|
n && l(u + 131072);
|
|
54961
54944
|
for (var ne = u + oe; u < ne; u += 4)
|
|
54962
|
-
t[u] = t[u -
|
|
54945
|
+
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
54946
|
u = ne;
|
|
54964
54947
|
}
|
|
54965
54948
|
}
|
|
@@ -55061,9 +55044,9 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
55061
55044
|
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
55045
|
if (j <= U && j <= X)
|
|
55063
55046
|
return wfblk(t, f, a.subarray(d, d + u));
|
|
55064
|
-
var
|
|
55047
|
+
var z, G, J, ae;
|
|
55065
55048
|
if (wbits(t, f, 1 + (X < U)), f += 2, X < U) {
|
|
55066
|
-
|
|
55049
|
+
z = hMap(m, g, 0), G = m, J = hMap(w, v, 0), ae = w;
|
|
55067
55050
|
var Ce = hMap(H, B, 0);
|
|
55068
55051
|
wbits(t, f, D - 257), wbits(t, f + 5, I - 1), wbits(t, f + 10, Y - 4), f += 14;
|
|
55069
55052
|
for (var k = 0; k < Y; ++k)
|
|
@@ -55075,16 +55058,16 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
55075
55058
|
wbits(t, f, Ce[Q]), f += H[Q], Q > 15 && (wbits(t, f, ue[k] >>> 5 & 127), f += ue[k] >>> 12);
|
|
55076
55059
|
}
|
|
55077
55060
|
} else
|
|
55078
|
-
|
|
55061
|
+
z = flm, G = flt, J = fdm, ae = fdt;
|
|
55079
55062
|
for (var k = 0; k < c; ++k)
|
|
55080
55063
|
if (o[k] > 255) {
|
|
55081
55064
|
var Q = o[k] >>> 18 & 31;
|
|
55082
|
-
wbits16(t, f,
|
|
55065
|
+
wbits16(t, f, z[Q + 257]), f += G[Q + 257], Q > 7 && (wbits(t, f, o[k] >>> 23 & 31), f += fleb[Q]);
|
|
55083
55066
|
var ne = o[k] & 31;
|
|
55084
55067
|
wbits16(t, f, J[ne]), f += ae[ne], ne > 3 && (wbits16(t, f, o[k] >>> 5 & 8191), f += fdeb[ne]);
|
|
55085
55068
|
} else
|
|
55086
|
-
wbits16(t, f,
|
|
55087
|
-
return wbits16(t, f,
|
|
55069
|
+
wbits16(t, f, z[o[k]]), f += G[o[k]];
|
|
55070
|
+
return wbits16(t, f, z[256]), f + G[256];
|
|
55088
55071
|
}, deo = /* @__PURE__ */ new u32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), dflt = function(a, t, r, o, n, s) {
|
|
55089
55072
|
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
55073
|
if (!t || l < 8)
|
|
@@ -55098,8 +55081,8 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
55098
55081
|
}, 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
55082
|
var j = E(f), U = f & 32767, X = C[j];
|
|
55100
55083
|
if (v[U] = X, C[j] = U, B <= f) {
|
|
55101
|
-
var
|
|
55102
|
-
if ((k > 7e3 || H > 24576) &&
|
|
55084
|
+
var z = l - f;
|
|
55085
|
+
if ((k > 7e3 || H > 24576) && z > 423) {
|
|
55103
55086
|
u = wblk(a, d, 0, T, I, M, L, H, Y, f - Y, u), H = k = L = 0, Y = f;
|
|
55104
55087
|
for (var G = 0; G < 286; ++G)
|
|
55105
55088
|
I[G] = 0;
|
|
@@ -55107,8 +55090,8 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
55107
55090
|
M[G] = 0;
|
|
55108
55091
|
}
|
|
55109
55092
|
var J = 2, ae = 0, Ce = y, oe = U - X & 32767;
|
|
55110
|
-
if (
|
|
55111
|
-
for (var me = Math.min(g,
|
|
55093
|
+
if (z > 2 && j == E(f - oe))
|
|
55094
|
+
for (var me = Math.min(g, z) - 1, ue = Math.min(32767, f), Q = Math.min(258, z); oe <= ue && --Ce && U != X; ) {
|
|
55112
55095
|
if (a[f + J] == a[f + J - oe]) {
|
|
55113
55096
|
for (var ne = 0; ne < Q && a[f + ne] == a[f + ne - oe]; ++ne)
|
|
55114
55097
|
;
|
|
@@ -55753,8 +55736,8 @@ function jsPDF(a) {
|
|
|
55753
55736
|
var y = "1.3", w = g.__private__.getPdfVersion = function() {
|
|
55754
55737
|
return y;
|
|
55755
55738
|
};
|
|
55756
|
-
g.__private__.setPdfVersion = function(
|
|
55757
|
-
y =
|
|
55739
|
+
g.__private__.setPdfVersion = function(W) {
|
|
55740
|
+
y = W;
|
|
55758
55741
|
};
|
|
55759
55742
|
var v = {
|
|
55760
55743
|
a0: [2383.94, 3370.39],
|
|
@@ -55802,8 +55785,8 @@ function jsPDF(a) {
|
|
|
55802
55785
|
g.__private__.getPageFormats = function() {
|
|
55803
55786
|
return v;
|
|
55804
55787
|
};
|
|
55805
|
-
var C = g.__private__.getPageFormat = function(
|
|
55806
|
-
return v[
|
|
55788
|
+
var C = g.__private__.getPageFormat = function(W) {
|
|
55789
|
+
return v[W];
|
|
55807
55790
|
};
|
|
55808
55791
|
o = o || "a4";
|
|
55809
55792
|
var _ = {
|
|
@@ -55816,57 +55799,57 @@ function jsPDF(a) {
|
|
|
55816
55799
|
function T() {
|
|
55817
55800
|
this.restoreGraphicsState(), u = "S", D = _.COMPAT;
|
|
55818
55801
|
}
|
|
55819
|
-
var I = g.__private__.combineFontStyleAndFontWeight = function(
|
|
55820
|
-
if (
|
|
55802
|
+
var I = g.__private__.combineFontStyleAndFontWeight = function(W, V) {
|
|
55803
|
+
if (W == "bold" && V == "normal" || W == "bold" && V == 400 || W == "normal" && V == "italic" || W == "bold" && V == "italic")
|
|
55821
55804
|
throw new Error("Invalid Combination of fontweight and fontstyle");
|
|
55822
|
-
return V && (
|
|
55805
|
+
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
55806
|
};
|
|
55824
|
-
g.advancedAPI = function(
|
|
55807
|
+
g.advancedAPI = function(W) {
|
|
55825
55808
|
var V = D === _.COMPAT;
|
|
55826
|
-
return V && E.call(this), typeof
|
|
55827
|
-
}, g.compatAPI = function(
|
|
55809
|
+
return V && E.call(this), typeof W != "function" ? this : (W(this), V && T.call(this), this);
|
|
55810
|
+
}, g.compatAPI = function(W) {
|
|
55828
55811
|
var V = D === _.ADVANCED;
|
|
55829
|
-
return V && T.call(this), typeof
|
|
55812
|
+
return V && T.call(this), typeof W != "function" ? this : (W(this), V && E.call(this), this);
|
|
55830
55813
|
}, g.isAdvancedAPI = function() {
|
|
55831
55814
|
return D === _.ADVANCED;
|
|
55832
55815
|
};
|
|
55833
55816
|
var M = function(V) {
|
|
55834
55817
|
if (D !== _.ADVANCED)
|
|
55835
55818
|
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(
|
|
55819
|
+
}, k = g.roundToPrecision = g.__private__.roundToPrecision = function(W, V) {
|
|
55837
55820
|
var ye = c || V;
|
|
55838
|
-
if (isNaN(
|
|
55821
|
+
if (isNaN(W) || isNaN(ye))
|
|
55839
55822
|
throw new Error("Invalid argument passed to jsPDF.roundToPrecision");
|
|
55840
|
-
return
|
|
55823
|
+
return W.toFixed(ye).replace(/0+$/, "");
|
|
55841
55824
|
}, L;
|
|
55842
|
-
typeof d == "number" ? L = g.hpf = g.__private__.hpf = function(
|
|
55843
|
-
if (isNaN(
|
|
55825
|
+
typeof d == "number" ? L = g.hpf = g.__private__.hpf = function(W) {
|
|
55826
|
+
if (isNaN(W))
|
|
55844
55827
|
throw new Error("Invalid argument passed to jsPDF.hpf");
|
|
55845
|
-
return k(
|
|
55846
|
-
} : d === "smart" ? L = g.hpf = g.__private__.hpf = function(
|
|
55847
|
-
if (isNaN(
|
|
55828
|
+
return k(W, d);
|
|
55829
|
+
} : d === "smart" ? L = g.hpf = g.__private__.hpf = function(W) {
|
|
55830
|
+
if (isNaN(W))
|
|
55848
55831
|
throw new Error("Invalid argument passed to jsPDF.hpf");
|
|
55849
|
-
return
|
|
55850
|
-
} : L = g.hpf = g.__private__.hpf = function(
|
|
55851
|
-
if (isNaN(
|
|
55832
|
+
return W > -1 && W < 1 ? k(W, 16) : k(W, 5);
|
|
55833
|
+
} : L = g.hpf = g.__private__.hpf = function(W) {
|
|
55834
|
+
if (isNaN(W))
|
|
55852
55835
|
throw new Error("Invalid argument passed to jsPDF.hpf");
|
|
55853
|
-
return k(
|
|
55836
|
+
return k(W, 16);
|
|
55854
55837
|
};
|
|
55855
|
-
var H = g.f2 = g.__private__.f2 = function(
|
|
55856
|
-
if (isNaN(
|
|
55838
|
+
var H = g.f2 = g.__private__.f2 = function(W) {
|
|
55839
|
+
if (isNaN(W))
|
|
55857
55840
|
throw new Error("Invalid argument passed to jsPDF.f2");
|
|
55858
|
-
return k(
|
|
55859
|
-
}, B = g.__private__.f3 = function(
|
|
55860
|
-
if (isNaN(
|
|
55841
|
+
return k(W, 2);
|
|
55842
|
+
}, B = g.__private__.f3 = function(W) {
|
|
55843
|
+
if (isNaN(W))
|
|
55861
55844
|
throw new Error("Invalid argument passed to jsPDF.f3");
|
|
55862
|
-
return k(
|
|
55863
|
-
}, Y = g.scale = g.__private__.scale = function(
|
|
55864
|
-
if (isNaN(
|
|
55845
|
+
return k(W, 3);
|
|
55846
|
+
}, Y = g.scale = g.__private__.scale = function(W) {
|
|
55847
|
+
if (isNaN(W))
|
|
55865
55848
|
throw new Error("Invalid argument passed to jsPDF.scale");
|
|
55866
55849
|
if (D === _.COMPAT)
|
|
55867
|
-
return
|
|
55850
|
+
return W * kt;
|
|
55868
55851
|
if (D === _.ADVANCED)
|
|
55869
|
-
return
|
|
55852
|
+
return W;
|
|
55870
55853
|
}, j = function(V) {
|
|
55871
55854
|
if (D === _.COMPAT)
|
|
55872
55855
|
return Di() - V;
|
|
@@ -55875,54 +55858,54 @@ function jsPDF(a) {
|
|
|
55875
55858
|
}, U = function(V) {
|
|
55876
55859
|
return Y(j(V));
|
|
55877
55860
|
};
|
|
55878
|
-
g.__private__.setPrecision = g.setPrecision = function(
|
|
55879
|
-
typeof parseInt(
|
|
55861
|
+
g.__private__.setPrecision = g.setPrecision = function(W) {
|
|
55862
|
+
typeof parseInt(W, 10) == "number" && (c = parseInt(W, 10));
|
|
55880
55863
|
};
|
|
55881
|
-
var X = "00000000000000000000000000000000",
|
|
55864
|
+
var X = "00000000000000000000000000000000", z = g.__private__.getFileId = function() {
|
|
55882
55865
|
return X;
|
|
55883
|
-
}, G = g.__private__.setFileId = function(
|
|
55884
|
-
return typeof
|
|
55866
|
+
}, G = g.__private__.setFileId = function(W) {
|
|
55867
|
+
return typeof W < "u" && /^[a-fA-F0-9]{32}$/.test(W) ? X = W.toUpperCase() : X = X.split("").map(function() {
|
|
55885
55868
|
return "ABCDEF0123456789".charAt(Math.floor(Math.random() * 16));
|
|
55886
55869
|
}).join(""), f !== null && (Pr = new PDFSecurity(f.userPermissions, f.userPassword, f.ownerPassword, X)), X;
|
|
55887
55870
|
};
|
|
55888
|
-
g.setFileId = function(
|
|
55889
|
-
return G(
|
|
55871
|
+
g.setFileId = function(W) {
|
|
55872
|
+
return G(W), this;
|
|
55890
55873
|
}, g.getFileId = function() {
|
|
55891
|
-
return
|
|
55874
|
+
return z();
|
|
55892
55875
|
};
|
|
55893
|
-
var J, ae = g.__private__.convertDateToPDFDate = function(
|
|
55894
|
-
var V = "", ye =
|
|
55895
|
-
return V = ["D:",
|
|
55896
|
-
}, Ce = g.__private__.convertPDFDateToDate = function(
|
|
55897
|
-
var V = parseInt(
|
|
55876
|
+
var J, ae = g.__private__.convertDateToPDFDate = function(W) {
|
|
55877
|
+
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("");
|
|
55878
|
+
return V = ["D:", W.getFullYear(), ue(W.getMonth() + 1), ue(W.getDate()), ue(W.getHours()), ue(W.getMinutes()), ue(W.getSeconds()), lt].join(""), V;
|
|
55879
|
+
}, Ce = g.__private__.convertPDFDateToDate = function(W) {
|
|
55880
|
+
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
55881
|
return ft;
|
|
55899
|
-
}, oe = g.__private__.setCreationDate = function(
|
|
55882
|
+
}, oe = g.__private__.setCreationDate = function(W) {
|
|
55900
55883
|
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
|
|
55902
|
-
V = ae(
|
|
55903
|
-
else if (ye.test(
|
|
55904
|
-
V =
|
|
55884
|
+
if (typeof W > "u" && (W = /* @__PURE__ */ new Date()), W instanceof Date)
|
|
55885
|
+
V = ae(W);
|
|
55886
|
+
else if (ye.test(W))
|
|
55887
|
+
V = W;
|
|
55905
55888
|
else
|
|
55906
55889
|
throw new Error("Invalid argument passed to jsPDF.setCreationDate");
|
|
55907
55890
|
return J = V, J;
|
|
55908
|
-
}, me = g.__private__.getCreationDate = function(
|
|
55891
|
+
}, me = g.__private__.getCreationDate = function(W) {
|
|
55909
55892
|
var V = J;
|
|
55910
|
-
return
|
|
55893
|
+
return W === "jsDate" && (V = Ce(J)), V;
|
|
55911
55894
|
};
|
|
55912
|
-
g.setCreationDate = function(
|
|
55913
|
-
return oe(
|
|
55914
|
-
}, g.getCreationDate = function(
|
|
55915
|
-
return me(
|
|
55895
|
+
g.setCreationDate = function(W) {
|
|
55896
|
+
return oe(W), this;
|
|
55897
|
+
}, g.getCreationDate = function(W) {
|
|
55898
|
+
return me(W);
|
|
55916
55899
|
};
|
|
55917
|
-
var ue = g.__private__.padd2 = function(
|
|
55918
|
-
return ("0" + parseInt(
|
|
55919
|
-
}, Q = g.__private__.padd2Hex = function(
|
|
55920
|
-
return
|
|
55900
|
+
var ue = g.__private__.padd2 = function(W) {
|
|
55901
|
+
return ("0" + parseInt(W)).slice(-2);
|
|
55902
|
+
}, Q = g.__private__.padd2Hex = function(W) {
|
|
55903
|
+
return W = W.toString(), ("00" + W).substr(W.length);
|
|
55921
55904
|
}, ne = 0, xe = [], Ie = [], ve = 0, _e = [], pe = [], Pe, De = !1, Ve = Ie, Te = function() {
|
|
55922
55905
|
ne = 0, ve = 0, Ie = [], xe = [], _e = [], Zt = jt(), lr = jt();
|
|
55923
55906
|
};
|
|
55924
|
-
g.__private__.setCustomOutputDestination = function(
|
|
55925
|
-
De = !0, Ve =
|
|
55907
|
+
g.__private__.setCustomOutputDestination = function(W) {
|
|
55908
|
+
De = !0, Ve = W;
|
|
55926
55909
|
};
|
|
55927
55910
|
var He = function(V) {
|
|
55928
55911
|
De || (Ve = V);
|
|
@@ -55930,63 +55913,63 @@ function jsPDF(a) {
|
|
|
55930
55913
|
g.__private__.resetCustomOutputDestination = function() {
|
|
55931
55914
|
De = !1, Ve = Ie;
|
|
55932
55915
|
};
|
|
55933
|
-
var we = g.__private__.out = function(
|
|
55934
|
-
return
|
|
55935
|
-
}, le = g.__private__.write = function(
|
|
55936
|
-
return we(arguments.length === 1 ?
|
|
55937
|
-
}, he = g.__private__.getArrayBuffer = function(
|
|
55938
|
-
for (var V =
|
|
55939
|
-
Fe[V] =
|
|
55916
|
+
var we = g.__private__.out = function(W) {
|
|
55917
|
+
return W = W.toString(), ve += W.length + 1, Ve.push(W), Ve;
|
|
55918
|
+
}, le = g.__private__.write = function(W) {
|
|
55919
|
+
return we(arguments.length === 1 ? W.toString() : Array.prototype.join.call(arguments, " "));
|
|
55920
|
+
}, he = g.__private__.getArrayBuffer = function(W) {
|
|
55921
|
+
for (var V = W.length, ye = new ArrayBuffer(V), Fe = new Uint8Array(ye); V--; )
|
|
55922
|
+
Fe[V] = W.charCodeAt(V);
|
|
55940
55923
|
return ye;
|
|
55941
55924
|
}, $ = [["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
55925
|
g.__private__.getStandardFonts = function() {
|
|
55943
55926
|
return $;
|
|
55944
55927
|
};
|
|
55945
55928
|
var Ne = a.fontSize || 16;
|
|
55946
|
-
g.__private__.setFontSize = g.setFontSize = function(
|
|
55947
|
-
return D === _.ADVANCED ? Ne =
|
|
55929
|
+
g.__private__.setFontSize = g.setFontSize = function(W) {
|
|
55930
|
+
return D === _.ADVANCED ? Ne = W / kt : Ne = W, this;
|
|
55948
55931
|
};
|
|
55949
55932
|
var Be = g.__private__.getFontSize = g.getFontSize = function() {
|
|
55950
55933
|
return D === _.COMPAT ? Ne : Ne * kt;
|
|
55951
55934
|
}, Qe = a.R2L || !1;
|
|
55952
|
-
g.__private__.setR2L = g.setR2L = function(
|
|
55953
|
-
return Qe =
|
|
55935
|
+
g.__private__.setR2L = g.setR2L = function(W) {
|
|
55936
|
+
return Qe = W, this;
|
|
55954
55937
|
}, g.__private__.getR2L = g.getR2L = function() {
|
|
55955
55938
|
return Qe;
|
|
55956
55939
|
};
|
|
55957
|
-
var Me, ze = g.__private__.setZoomMode = function(
|
|
55940
|
+
var Me, ze = g.__private__.setZoomMode = function(W) {
|
|
55958
55941
|
var V = [void 0, null, "fullwidth", "fullheight", "fullpage", "original"];
|
|
55959
|
-
if (/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(
|
|
55960
|
-
Me =
|
|
55961
|
-
else if (!isNaN(
|
|
55962
|
-
Me = parseInt(
|
|
55963
|
-
else if (V.indexOf(
|
|
55964
|
-
Me =
|
|
55942
|
+
if (/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(W))
|
|
55943
|
+
Me = W;
|
|
55944
|
+
else if (!isNaN(W))
|
|
55945
|
+
Me = parseInt(W, 10);
|
|
55946
|
+
else if (V.indexOf(W) !== -1)
|
|
55947
|
+
Me = W;
|
|
55965
55948
|
else
|
|
55966
|
-
throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "' +
|
|
55949
|
+
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
55950
|
};
|
|
55968
55951
|
g.__private__.getZoomMode = function() {
|
|
55969
55952
|
return Me;
|
|
55970
55953
|
};
|
|
55971
|
-
var ot, ht = g.__private__.setPageMode = function(
|
|
55954
|
+
var ot, ht = g.__private__.setPageMode = function(W) {
|
|
55972
55955
|
var V = [void 0, null, "UseNone", "UseOutlines", "UseThumbs", "FullScreen"];
|
|
55973
|
-
if (V.indexOf(
|
|
55974
|
-
throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "' +
|
|
55975
|
-
ot =
|
|
55956
|
+
if (V.indexOf(W) == -1)
|
|
55957
|
+
throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "' + W + '" is not recognized.');
|
|
55958
|
+
ot = W;
|
|
55976
55959
|
};
|
|
55977
55960
|
g.__private__.getPageMode = function() {
|
|
55978
55961
|
return ot;
|
|
55979
55962
|
};
|
|
55980
|
-
var bt, gt = g.__private__.setLayoutMode = function(
|
|
55963
|
+
var bt, gt = g.__private__.setLayoutMode = function(W) {
|
|
55981
55964
|
var V = [void 0, null, "continuous", "single", "twoleft", "tworight", "two"];
|
|
55982
|
-
if (V.indexOf(
|
|
55983
|
-
throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "' +
|
|
55984
|
-
bt =
|
|
55965
|
+
if (V.indexOf(W) == -1)
|
|
55966
|
+
throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "' + W + '" is not recognized.');
|
|
55967
|
+
bt = W;
|
|
55985
55968
|
};
|
|
55986
55969
|
g.__private__.getLayoutMode = function() {
|
|
55987
55970
|
return bt;
|
|
55988
|
-
}, g.__private__.setDisplayMode = g.setDisplayMode = function(
|
|
55989
|
-
return ze(
|
|
55971
|
+
}, g.__private__.setDisplayMode = g.setDisplayMode = function(W, V, ye) {
|
|
55972
|
+
return ze(W), gt(V), ht(ye), this;
|
|
55990
55973
|
};
|
|
55991
55974
|
var _t = {
|
|
55992
55975
|
title: "",
|
|
@@ -55995,30 +55978,30 @@ function jsPDF(a) {
|
|
|
55995
55978
|
keywords: "",
|
|
55996
55979
|
creator: ""
|
|
55997
55980
|
};
|
|
55998
|
-
g.__private__.getDocumentProperty = function(
|
|
55999
|
-
if (Object.keys(_t).indexOf(
|
|
55981
|
+
g.__private__.getDocumentProperty = function(W) {
|
|
55982
|
+
if (Object.keys(_t).indexOf(W) === -1)
|
|
56000
55983
|
throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");
|
|
56001
|
-
return _t[
|
|
55984
|
+
return _t[W];
|
|
56002
55985
|
}, g.__private__.getDocumentProperties = function() {
|
|
56003
55986
|
return _t;
|
|
56004
|
-
}, g.__private__.setDocumentProperties = g.setProperties = g.setDocumentProperties = function(
|
|
55987
|
+
}, g.__private__.setDocumentProperties = g.setProperties = g.setDocumentProperties = function(W) {
|
|
56005
55988
|
for (var V in _t)
|
|
56006
|
-
_t.hasOwnProperty(V) &&
|
|
55989
|
+
_t.hasOwnProperty(V) && W[V] && (_t[V] = W[V]);
|
|
56007
55990
|
return this;
|
|
56008
|
-
}, g.__private__.setDocumentProperty = function(
|
|
56009
|
-
if (Object.keys(_t).indexOf(
|
|
55991
|
+
}, g.__private__.setDocumentProperty = function(W, V) {
|
|
55992
|
+
if (Object.keys(_t).indexOf(W) === -1)
|
|
56010
55993
|
throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");
|
|
56011
|
-
return _t[
|
|
55994
|
+
return _t[W] = V;
|
|
56012
55995
|
};
|
|
56013
55996
|
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((
|
|
56015
|
-
delete this.vFS[
|
|
56016
|
-
}), this.vFS = {}), Ie = [], Ve = [], pe = [], Object.keys(this).forEach((
|
|
56017
|
-
|
|
55997
|
+
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) => {
|
|
55998
|
+
delete this.vFS[W];
|
|
55999
|
+
}), this.vFS = {}), Ie = [], Ve = [], pe = [], Object.keys(this).forEach((W) => {
|
|
56000
|
+
W != "destory" && delete this[W];
|
|
56018
56001
|
});
|
|
56019
|
-
}, Pt = function
|
|
56020
|
-
if (!(this instanceof
|
|
56021
|
-
return new
|
|
56002
|
+
}, Pt = function W(V, ye, Fe, We, Ze, lt) {
|
|
56003
|
+
if (!(this instanceof W))
|
|
56004
|
+
return new W(V, ye, Fe, We, Ze, lt);
|
|
56022
56005
|
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
56006
|
};
|
|
56024
56007
|
Object.defineProperty(Pt.prototype, "sx", {
|
|
@@ -56121,40 +56104,40 @@ function jsPDF(a) {
|
|
|
56121
56104
|
get: function() {
|
|
56122
56105
|
return !(this.sx !== 1 || this.shy !== 0 || this.shx !== 0 || this.sy !== 1 || this.tx !== 0 || this.ty !== 0);
|
|
56123
56106
|
}
|
|
56124
|
-
}), Pt.prototype.join = function(
|
|
56125
|
-
return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(L).join(
|
|
56126
|
-
}, Pt.prototype.multiply = function(
|
|
56127
|
-
var V =
|
|
56107
|
+
}), Pt.prototype.join = function(W) {
|
|
56108
|
+
return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(L).join(W);
|
|
56109
|
+
}, Pt.prototype.multiply = function(W) {
|
|
56110
|
+
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
56111
|
return new Pt(V, ye, Fe, We, Ze, lt);
|
|
56129
56112
|
}, Pt.prototype.decompose = function() {
|
|
56130
|
-
var
|
|
56131
|
-
|
|
56132
|
-
var ft =
|
|
56133
|
-
ye -=
|
|
56113
|
+
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);
|
|
56114
|
+
W /= lt, V /= lt;
|
|
56115
|
+
var ft = W * ye + V * Fe;
|
|
56116
|
+
ye -= W * ft, Fe -= V * ft;
|
|
56134
56117
|
var mt = Math.sqrt(ye * ye + Fe * Fe);
|
|
56135
|
-
return ye /= mt, Fe /= mt, ft /= mt,
|
|
56118
|
+
return ye /= mt, Fe /= mt, ft /= mt, W * Fe < V * ye && (W = -W, V = -V, ft = -ft, lt = -lt), {
|
|
56136
56119
|
scale: new Pt(lt, 0, 0, mt, 0, 0),
|
|
56137
56120
|
translate: new Pt(1, 0, 0, 1, We, Ze),
|
|
56138
|
-
rotate: new Pt(
|
|
56121
|
+
rotate: new Pt(W, V, -V, W, 0, 0),
|
|
56139
56122
|
skew: new Pt(1, 0, ft, 1, 0, 0)
|
|
56140
56123
|
};
|
|
56141
|
-
}, Pt.prototype.toString = function(
|
|
56124
|
+
}, Pt.prototype.toString = function(W) {
|
|
56142
56125
|
return this.join(" ");
|
|
56143
56126
|
}, Pt.prototype.inversed = function() {
|
|
56144
|
-
var
|
|
56127
|
+
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
56128
|
return new Pt(ft, mt, Bt, Ht, Kt, $t);
|
|
56146
|
-
}, Pt.prototype.applyToPoint = function(
|
|
56147
|
-
var V =
|
|
56129
|
+
}, Pt.prototype.applyToPoint = function(W) {
|
|
56130
|
+
var V = W.x * this.sx + W.y * this.shx + this.tx, ye = W.x * this.shy + W.y * this.sy + this.ty;
|
|
56148
56131
|
return new xo(V, ye);
|
|
56149
|
-
}, Pt.prototype.applyToRectangle = function(
|
|
56150
|
-
var V = this.applyToPoint(
|
|
56132
|
+
}, Pt.prototype.applyToRectangle = function(W) {
|
|
56133
|
+
var V = this.applyToPoint(W), ye = this.applyToPoint(new xo(W.x + W.w, W.y + W.h));
|
|
56151
56134
|
return new bo(V.x, V.y, ye.x - V.x, ye.y - V.y);
|
|
56152
56135
|
}, Pt.prototype.clone = function() {
|
|
56153
|
-
var
|
|
56154
|
-
return new Pt(
|
|
56136
|
+
var W = this.sx, V = this.shy, ye = this.shx, Fe = this.sy, We = this.tx, Ze = this.ty;
|
|
56137
|
+
return new Pt(W, V, ye, Fe, We, Ze);
|
|
56155
56138
|
}, g.Matrix = Pt;
|
|
56156
|
-
var Ot = g.matrixMult = function(
|
|
56157
|
-
return V.multiply(
|
|
56139
|
+
var Ot = g.matrixMult = function(W, V) {
|
|
56140
|
+
return V.multiply(W);
|
|
56158
56141
|
}, Cr = new Pt(1, 0, 0, 1, 0, 0);
|
|
56159
56142
|
g.unitMatrix = g.identityMatrix = Cr;
|
|
56160
56143
|
var Nr = function(V, ye) {
|
|
@@ -56163,17 +56146,17 @@ function jsPDF(a) {
|
|
|
56163
56146
|
ye.id = We, Qt[V] = We, St[We] = ye, se.publish("addPattern", ye);
|
|
56164
56147
|
}
|
|
56165
56148
|
};
|
|
56166
|
-
g.ShadingPattern = ShadingPattern, g.TilingPattern = TilingPattern, g.addShadingPattern = function(
|
|
56167
|
-
return M("addShadingPattern()"), Nr(
|
|
56168
|
-
}, g.beginTilingPattern = function(
|
|
56169
|
-
M("beginTilingPattern()"), wn(
|
|
56170
|
-
}, g.endTilingPattern = function(
|
|
56149
|
+
g.ShadingPattern = ShadingPattern, g.TilingPattern = TilingPattern, g.addShadingPattern = function(W, V) {
|
|
56150
|
+
return M("addShadingPattern()"), Nr(W, V), this;
|
|
56151
|
+
}, g.beginTilingPattern = function(W) {
|
|
56152
|
+
M("beginTilingPattern()"), wn(W.boundingBox[0], W.boundingBox[1], W.boundingBox[2] - W.boundingBox[0], W.boundingBox[3] - W.boundingBox[1], W.matrix);
|
|
56153
|
+
}, g.endTilingPattern = function(W, V) {
|
|
56171
56154
|
M("endTilingPattern()"), V.stream = pe[Pe].join(`
|
|
56172
|
-
`), Nr(
|
|
56155
|
+
`), Nr(W, V), se.publish("endTilingPattern", V), Dt.pop().restore();
|
|
56173
56156
|
};
|
|
56174
56157
|
var Xt = g.__private__.newObject = function() {
|
|
56175
|
-
var
|
|
56176
|
-
return tr(
|
|
56158
|
+
var W = jt();
|
|
56159
|
+
return tr(W, !0), W;
|
|
56177
56160
|
}, jt = g.__private__.newObjectDeferred = function() {
|
|
56178
56161
|
return ne++, xe[ne] = function() {
|
|
56179
56162
|
return ve;
|
|
@@ -56181,13 +56164,13 @@ function jsPDF(a) {
|
|
|
56181
56164
|
}, tr = function(V, ye) {
|
|
56182
56165
|
return ye = typeof ye == "boolean" ? ye : !1, xe[V] = ve, ye && we(V + " 0 obj"), V;
|
|
56183
56166
|
}, Vt = g.__private__.newAdditionalObject = function() {
|
|
56184
|
-
var
|
|
56185
|
-
objId:
|
|
56167
|
+
var W = jt(), V = {
|
|
56168
|
+
objId: W,
|
|
56186
56169
|
content: ""
|
|
56187
56170
|
};
|
|
56188
56171
|
return _e.push(V), V;
|
|
56189
|
-
}, Zt = jt(), lr = jt(), gr = g.__private__.decodeColorString = function(
|
|
56190
|
-
var V =
|
|
56172
|
+
}, Zt = jt(), lr = jt(), gr = g.__private__.decodeColorString = function(W) {
|
|
56173
|
+
var V = W.split(" ");
|
|
56191
56174
|
if (V.length === 2 && (V[1] === "g" || V[1] === "G")) {
|
|
56192
56175
|
var ye = parseFloat(V[0]);
|
|
56193
56176
|
V = [ye, ye, ye, "r"];
|
|
@@ -56198,12 +56181,12 @@ function jsPDF(a) {
|
|
|
56198
56181
|
for (var lt = "#", ft = 0; ft < 3; ft++)
|
|
56199
56182
|
lt += ("0" + Math.floor(parseFloat(V[ft]) * 255).toString(16)).slice(-2);
|
|
56200
56183
|
return lt;
|
|
56201
|
-
}, Rr = g.__private__.encodeColorString = function(
|
|
56184
|
+
}, Rr = g.__private__.encodeColorString = function(W) {
|
|
56202
56185
|
var V;
|
|
56203
|
-
typeof
|
|
56204
|
-
ch1:
|
|
56186
|
+
typeof W == "string" && (W = {
|
|
56187
|
+
ch1: W
|
|
56205
56188
|
});
|
|
56206
|
-
var ye =
|
|
56189
|
+
var ye = W.ch1, Fe = W.ch2, We = W.ch3, Ze = W.ch4, lt = W.pdfColorType === "draw" ? ["G", "RG", "K"] : ["g", "rg", "k"];
|
|
56207
56190
|
if (typeof ye == "string" && ye.charAt(0) !== "#") {
|
|
56208
56191
|
var ft = new RGBColor(ye);
|
|
56209
56192
|
if (ft.ok)
|
|
@@ -56219,7 +56202,7 @@ function jsPDF(a) {
|
|
|
56219
56202
|
if (typeof ye == "string")
|
|
56220
56203
|
V = ye + " " + lt[0];
|
|
56221
56204
|
else
|
|
56222
|
-
switch (
|
|
56205
|
+
switch (W.precision) {
|
|
56223
56206
|
case 2:
|
|
56224
56207
|
V = H(ye / 255) + " " + lt[0];
|
|
56225
56208
|
break;
|
|
@@ -56233,7 +56216,7 @@ function jsPDF(a) {
|
|
|
56233
56216
|
if (typeof ye == "string")
|
|
56234
56217
|
V = [ye, Fe, We, lt[1]].join(" ");
|
|
56235
56218
|
else
|
|
56236
|
-
switch (
|
|
56219
|
+
switch (W.precision) {
|
|
56237
56220
|
case 2:
|
|
56238
56221
|
V = [H(ye / 255), H(Fe / 255), H(We / 255), lt[1]].join(" ");
|
|
56239
56222
|
break;
|
|
@@ -56244,7 +56227,7 @@ function jsPDF(a) {
|
|
|
56244
56227
|
} else if (typeof ye == "string")
|
|
56245
56228
|
V = [ye, Fe, We, Ze, lt[2]].join(" ");
|
|
56246
56229
|
else
|
|
56247
|
-
switch (
|
|
56230
|
+
switch (W.precision) {
|
|
56248
56231
|
case 2:
|
|
56249
56232
|
V = [H(ye), H(Fe), H(We), H(Ze), lt[2]].join(" ");
|
|
56250
56233
|
break;
|
|
@@ -56255,9 +56238,9 @@ function jsPDF(a) {
|
|
|
56255
56238
|
return V;
|
|
56256
56239
|
}, hi = g.__private__.getFilters = function() {
|
|
56257
56240
|
return s;
|
|
56258
|
-
}, Or = g.__private__.putStream = function(
|
|
56259
|
-
|
|
56260
|
-
var V =
|
|
56241
|
+
}, Or = g.__private__.putStream = function(W) {
|
|
56242
|
+
W = W || {};
|
|
56243
|
+
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
56244
|
return br;
|
|
56262
56245
|
};
|
|
56263
56246
|
if (f !== null && typeof lt > "u")
|
|
@@ -56265,7 +56248,7 @@ function jsPDF(a) {
|
|
|
56265
56248
|
f !== null && (ft = Pr.encryptor(lt, 0));
|
|
56266
56249
|
var mt = {};
|
|
56267
56250
|
ye === !0 && (ye = ["FlateEncode"]);
|
|
56268
|
-
var Bt =
|
|
56251
|
+
var Bt = W.additionalKeyValues || [];
|
|
56269
56252
|
typeof jsPDF.API.processDataByFilters < "u" ? mt = jsPDF.API.processDataByFilters(V, ye) : mt = {
|
|
56270
56253
|
data: V,
|
|
56271
56254
|
reverseChain: []
|
|
@@ -56299,9 +56282,9 @@ function jsPDF(a) {
|
|
|
56299
56282
|
for (var Sr = 0; Sr < Bt.length; Sr++)
|
|
56300
56283
|
we("/" + Bt[Sr].key + " " + Bt[Sr].value);
|
|
56301
56284
|
we(">>"), mt.data.length !== 0 && (we("stream"), we(ft(mt.data)), we("endstream"));
|
|
56302
|
-
}, Ur = g.__private__.putPage = function(
|
|
56303
|
-
var V =
|
|
56304
|
-
tr(Fe, !0), we("<</Type /Page"), we("/Parent " +
|
|
56285
|
+
}, Ur = g.__private__.putPage = function(W) {
|
|
56286
|
+
var V = W.number, ye = W.data, Fe = W.objId, We = W.contentsObjId;
|
|
56287
|
+
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
56288
|
objId: Fe,
|
|
56306
56289
|
pageContext: ee[V],
|
|
56307
56290
|
pageNumber: V,
|
|
@@ -56316,21 +56299,21 @@ Q`), tr(We, !0), Or({
|
|
|
56316
56299
|
objectId: We
|
|
56317
56300
|
}), we("endobj"), Fe;
|
|
56318
56301
|
}, Yr = g.__private__.putPages = function() {
|
|
56319
|
-
var
|
|
56320
|
-
for (
|
|
56321
|
-
ee[
|
|
56322
|
-
for (
|
|
56302
|
+
var W, V, ye = [];
|
|
56303
|
+
for (W = 1; W <= Gt; W++)
|
|
56304
|
+
ee[W].objId = jt(), ee[W].contentsObjId = jt();
|
|
56305
|
+
for (W = 1; W <= Gt; W++)
|
|
56323
56306
|
ye.push(Ur({
|
|
56324
|
-
number:
|
|
56325
|
-
data: pe[
|
|
56326
|
-
objId: ee[
|
|
56327
|
-
contentsObjId: ee[
|
|
56328
|
-
mediaBox: ee[
|
|
56329
|
-
cropBox: ee[
|
|
56330
|
-
bleedBox: ee[
|
|
56331
|
-
trimBox: ee[
|
|
56332
|
-
artBox: ee[
|
|
56333
|
-
userUnit: ee[
|
|
56307
|
+
number: W,
|
|
56308
|
+
data: pe[W],
|
|
56309
|
+
objId: ee[W].objId,
|
|
56310
|
+
contentsObjId: ee[W].contentsObjId,
|
|
56311
|
+
mediaBox: ee[W].mediaBox,
|
|
56312
|
+
cropBox: ee[W].cropBox,
|
|
56313
|
+
bleedBox: ee[W].bleedBox,
|
|
56314
|
+
trimBox: ee[W].trimBox,
|
|
56315
|
+
artBox: ee[W].artBox,
|
|
56316
|
+
userUnit: ee[W].userUnit,
|
|
56334
56317
|
rootDictionaryObjId: Zt,
|
|
56335
56318
|
resourceDictionaryObjId: lr
|
|
56336
56319
|
}));
|
|
@@ -56606,9 +56589,9 @@ Q`), tr(We, !0), Or({
|
|
|
56606
56589
|
mt.push(Kt), mt.push(Ht - (Kt << 8));
|
|
56607
56590
|
}
|
|
56608
56591
|
return String.fromCharCode.apply(void 0, mt);
|
|
56609
|
-
}, at = g.__private__.pdfEscape = g.pdfEscape = function(
|
|
56610
|
-
return ct(
|
|
56611
|
-
}, ut = g.__private__.beginPage = function(
|
|
56592
|
+
}, at = g.__private__.pdfEscape = g.pdfEscape = function(W, V) {
|
|
56593
|
+
return ct(W, V).replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)");
|
|
56594
|
+
}, ut = g.__private__.beginPage = function(W) {
|
|
56612
56595
|
pe[++Gt] = [], ee[Gt] = {
|
|
56613
56596
|
objId: 0,
|
|
56614
56597
|
contentsObjId: 0,
|
|
@@ -56620,8 +56603,8 @@ Q`), tr(We, !0), Or({
|
|
|
56620
56603
|
mediaBox: {
|
|
56621
56604
|
bottomLeftX: 0,
|
|
56622
56605
|
bottomLeftY: 0,
|
|
56623
|
-
topRightX: Number(
|
|
56624
|
-
topRightY: Number(
|
|
56606
|
+
topRightX: Number(W[0]),
|
|
56607
|
+
topRightY: Number(W[1])
|
|
56625
56608
|
}
|
|
56626
56609
|
}, Yt(Gt), He(pe[Pe]);
|
|
56627
56610
|
}, vt = function(V, ye) {
|
|
@@ -56647,16 +56630,16 @@ Q`), tr(We, !0), Or({
|
|
|
56647
56630
|
var We = void 0, Ze;
|
|
56648
56631
|
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
56632
|
}, cr = g.__private__.putInfo = function() {
|
|
56650
|
-
var
|
|
56633
|
+
var W = Xt(), V = function(We) {
|
|
56651
56634
|
return We;
|
|
56652
56635
|
};
|
|
56653
|
-
f !== null && (V = Pr.encryptor(
|
|
56636
|
+
f !== null && (V = Pr.encryptor(W, 0)), we("<<"), we("/Producer (" + at(V("jsPDF " + jsPDF.version)) + ")");
|
|
56654
56637
|
for (var ye in _t)
|
|
56655
56638
|
_t.hasOwnProperty(ye) && _t[ye] && we("/" + ye.substr(0, 1).toUpperCase() + ye.substr(1) + " (" + at(V(_t[ye])) + ")");
|
|
56656
56639
|
we("/CreationDate (" + at(V(J)) + ")"), we(">>"), we("endobj");
|
|
56657
|
-
}, kr = g.__private__.putCatalog = function(
|
|
56658
|
-
|
|
56659
|
-
var V =
|
|
56640
|
+
}, kr = g.__private__.putCatalog = function(W) {
|
|
56641
|
+
W = W || {};
|
|
56642
|
+
var V = W.rootDictionaryObjId || Zt;
|
|
56660
56643
|
switch (Xt(), we("<<"), we("/Type /Catalog"), we("/Pages " + V + " 0 R"), Me || (Me = "fullwidth"), Me) {
|
|
56661
56644
|
case "fullwidth":
|
|
56662
56645
|
we("/OpenAction [3 0 R /FitH null]");
|
|
@@ -56695,19 +56678,19 @@ Q`), tr(We, !0), Or({
|
|
|
56695
56678
|
}, Qi = g.__private__.putHeader = function() {
|
|
56696
56679
|
we("%PDF-" + y), we("%ºß¬à");
|
|
56697
56680
|
}, Wo = g.__private__.putXRef = function() {
|
|
56698
|
-
var
|
|
56681
|
+
var W = "0000000000";
|
|
56699
56682
|
we("xref"), we("0 " + (ne + 1)), we("0000000000 65535 f ");
|
|
56700
56683
|
for (var V = 1; V <= ne; V++) {
|
|
56701
56684
|
var ye = xe[V];
|
|
56702
|
-
typeof ye == "function" ? we((
|
|
56685
|
+
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
56686
|
}
|
|
56704
56687
|
}, Zr = g.__private__.buildDocument = function() {
|
|
56705
56688
|
Te(), He(Ie), se.publish("buildDocument"), Qi(), Yr(), ke(), be(), f !== null && mo(), cr(), kr();
|
|
56706
|
-
var
|
|
56707
|
-
return Wo(), Pi(), we("startxref"), we("" +
|
|
56689
|
+
var W = ve;
|
|
56690
|
+
return Wo(), Pi(), we("startxref"), we("" + W), we("%%EOF"), He(pe[Pe]), Ie.join(`
|
|
56708
56691
|
`);
|
|
56709
|
-
}, Ji = g.__private__.getBlob = function(
|
|
56710
|
-
return new Blob([he(
|
|
56692
|
+
}, Ji = g.__private__.getBlob = function(W) {
|
|
56693
|
+
return new Blob([he(W)], {
|
|
56711
56694
|
type: "application/pdf"
|
|
56712
56695
|
});
|
|
56713
56696
|
}, Ki = g.output = g.__private__.output = rt(function(V, ye) {
|
|
@@ -56810,20 +56793,20 @@ Q`), tr(We, !0), Or({
|
|
|
56810
56793
|
return f !== null ? Pr.encryptor(V, 0) : function(ye) {
|
|
56811
56794
|
return ye;
|
|
56812
56795
|
};
|
|
56813
|
-
}, un = g.__private__.getPageInfo = g.getPageInfo = function(
|
|
56814
|
-
if (isNaN(
|
|
56796
|
+
}, un = g.__private__.getPageInfo = g.getPageInfo = function(W) {
|
|
56797
|
+
if (isNaN(W) || W % 1 !== 0)
|
|
56815
56798
|
throw new Error("Invalid argument passed to jsPDF.getPageInfo");
|
|
56816
|
-
var V = ee[
|
|
56799
|
+
var V = ee[W].objId;
|
|
56817
56800
|
return {
|
|
56818
56801
|
objId: V,
|
|
56819
|
-
pageNumber:
|
|
56820
|
-
pageContext: ee[
|
|
56802
|
+
pageNumber: W,
|
|
56803
|
+
pageContext: ee[W]
|
|
56821
56804
|
};
|
|
56822
|
-
}, In = g.__private__.getPageInfoByObjId = function(
|
|
56823
|
-
if (isNaN(
|
|
56805
|
+
}, In = g.__private__.getPageInfoByObjId = function(W) {
|
|
56806
|
+
if (isNaN(W) || W % 1 !== 0)
|
|
56824
56807
|
throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");
|
|
56825
56808
|
for (var V in ee)
|
|
56826
|
-
if (ee[V].objId ===
|
|
56809
|
+
if (ee[V].objId === W)
|
|
56827
56810
|
break;
|
|
56828
56811
|
return un(V);
|
|
56829
56812
|
}, An = g.__private__.getCurrentPageInfo = g.getCurrentPageInfo = function() {
|
|
@@ -56837,39 +56820,39 @@ Q`), tr(We, !0), Or({
|
|
|
56837
56820
|
return vt.apply(this, arguments), this;
|
|
56838
56821
|
}, g.setPage = function() {
|
|
56839
56822
|
return Yt.apply(this, arguments), He.call(this, pe[Pe]), this;
|
|
56840
|
-
}, g.insertPage = function(
|
|
56841
|
-
return this.addPage(), this.movePage(Pe,
|
|
56842
|
-
}, g.movePage = function(
|
|
56823
|
+
}, g.insertPage = function(W) {
|
|
56824
|
+
return this.addPage(), this.movePage(Pe, W), this;
|
|
56825
|
+
}, g.movePage = function(W, V) {
|
|
56843
56826
|
var ye, Fe;
|
|
56844
|
-
if (
|
|
56845
|
-
ye = pe[
|
|
56846
|
-
for (var We =
|
|
56827
|
+
if (W > V) {
|
|
56828
|
+
ye = pe[W], Fe = ee[W];
|
|
56829
|
+
for (var We = W; We > V; We--)
|
|
56847
56830
|
pe[We] = pe[We - 1], ee[We] = ee[We - 1];
|
|
56848
56831
|
pe[V] = ye, ee[V] = Fe, this.setPage(V);
|
|
56849
|
-
} else if (
|
|
56850
|
-
ye = pe[
|
|
56851
|
-
for (var Ze =
|
|
56832
|
+
} else if (W < V) {
|
|
56833
|
+
ye = pe[W], Fe = ee[W];
|
|
56834
|
+
for (var Ze = W; Ze < V; Ze++)
|
|
56852
56835
|
pe[Ze] = pe[Ze + 1], ee[Ze] = ee[Ze + 1];
|
|
56853
56836
|
pe[V] = ye, ee[V] = Fe, this.setPage(V);
|
|
56854
56837
|
}
|
|
56855
56838
|
return this;
|
|
56856
56839
|
}, g.deletePage = function() {
|
|
56857
56840
|
return zt.apply(this, arguments), this;
|
|
56858
|
-
}, g.__private__.text = g.text = function(
|
|
56841
|
+
}, g.__private__.text = g.text = function(W, V, ye, Fe, We) {
|
|
56859
56842
|
Fe = Fe || {};
|
|
56860
56843
|
var Ze = Fe.scope || this, lt, ft, mt, Bt, Ht, Kt, $t, yr;
|
|
56861
|
-
if (typeof
|
|
56844
|
+
if (typeof W == "number" && typeof V == "number" && (typeof ye == "string" || Array.isArray(ye))) {
|
|
56862
56845
|
var Sr = ye;
|
|
56863
|
-
ye = V, V =
|
|
56846
|
+
ye = V, V = W, W = Sr;
|
|
56864
56847
|
}
|
|
56865
56848
|
var ur;
|
|
56866
56849
|
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
56850
|
flags: $t,
|
|
56868
56851
|
angle: mt,
|
|
56869
56852
|
align: Bt
|
|
56870
|
-
})), isNaN(V) || isNaN(ye) || typeof
|
|
56853
|
+
})), isNaN(V) || isNaN(ye) || typeof W > "u" || W === null)
|
|
56871
56854
|
throw new Error("Invalid arguments passed to jsPDF.text");
|
|
56872
|
-
if (
|
|
56855
|
+
if (W.length === 0)
|
|
56873
56856
|
return Ze;
|
|
56874
56857
|
var br = "", Br = !1, Oi = typeof Fe.lineHeightFactor == "number" ? Fe.lineHeightFactor : $i, _o = Ze.internal.scaleFactor;
|
|
56875
56858
|
function fr(vr) {
|
|
@@ -56892,18 +56875,18 @@ Q`), tr(We, !0), Or({
|
|
|
56892
56875
|
return dr;
|
|
56893
56876
|
}
|
|
56894
56877
|
var io = !1, Qo = !0;
|
|
56895
|
-
if (typeof
|
|
56878
|
+
if (typeof W == "string")
|
|
56896
56879
|
io = !0;
|
|
56897
|
-
else if (Array.isArray(
|
|
56898
|
-
var Jr =
|
|
56880
|
+
else if (Array.isArray(W)) {
|
|
56881
|
+
var Jr = W.concat();
|
|
56899
56882
|
ft = [];
|
|
56900
56883
|
for (var Dr = Jr.length, si; Dr--; )
|
|
56901
56884
|
si = Jr.shift(), (typeof si != "string" || Array.isArray(si) && typeof si[0] != "string") && (Qo = !1);
|
|
56902
56885
|
io = Qo;
|
|
56903
56886
|
}
|
|
56904
56887
|
if (io === !1)
|
|
56905
|
-
throw new Error('Type of text must be string or Array. "' +
|
|
56906
|
-
typeof
|
|
56888
|
+
throw new Error('Type of text must be string or Array. "' + W + '" is not recognized.');
|
|
56889
|
+
typeof W == "string" && (W.match(/[\r?\n]/) ? W = [W.replace(/\r\n|\r|\n/g, "")] : W = [W]);
|
|
56907
56890
|
var oo = Ne / Ze.internal.scaleFactor, no = oo * (Oi - 1);
|
|
56908
56891
|
switch (Fe.baseline) {
|
|
56909
56892
|
case "bottom":
|
|
@@ -56919,10 +56902,10 @@ Q`), tr(We, !0), Or({
|
|
|
56919
56902
|
ye += oo / 2 - no;
|
|
56920
56903
|
break;
|
|
56921
56904
|
}
|
|
56922
|
-
if (Kt = Fe.maxWidth || 0, Kt > 0 && (typeof
|
|
56905
|
+
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
56906
|
return vr.concat(Ze.splitTextToSize(ar, Kt));
|
|
56924
56907
|
}, []))), lt = {
|
|
56925
|
-
text:
|
|
56908
|
+
text: W,
|
|
56926
56909
|
x: V,
|
|
56927
56910
|
y: ye,
|
|
56928
56911
|
options: Fe,
|
|
@@ -56932,7 +56915,7 @@ Q`), tr(We, !0), Or({
|
|
|
56932
56915
|
fonts: pt,
|
|
56933
56916
|
activeFontSize: Ne
|
|
56934
56917
|
}
|
|
56935
|
-
}, se.publish("preProcessText", lt),
|
|
56918
|
+
}, se.publish("preProcessText", lt), W = lt.text, Fe = lt.options, mt = Fe.angle, !(ur instanceof Pt) && mt && typeof mt == "number") {
|
|
56936
56919
|
mt *= Math.PI / 180, Fe.rotationDirection === 0 && (mt = -mt), D === _.ADVANCED && (mt = -mt);
|
|
56937
56920
|
var Jo = Math.cos(mt), Bi = Math.sin(mt);
|
|
56938
56921
|
ur = new Pt(Jo, Bi, -Bi, Jo, 0, 0);
|
|
@@ -56989,8 +56972,8 @@ Q`), tr(We, !0), Or({
|
|
|
56989
56972
|
noBOM: !0
|
|
56990
56973
|
}, Fe.flags);
|
|
56991
56974
|
var lo = [];
|
|
56992
|
-
if (Object.prototype.toString.call(
|
|
56993
|
-
ft = Xo(
|
|
56975
|
+
if (Object.prototype.toString.call(W) === "[object Array]") {
|
|
56976
|
+
ft = Xo(W);
|
|
56994
56977
|
var xi;
|
|
56995
56978
|
Bt !== "left" && (Kr = ft.map(function(vr) {
|
|
56996
56979
|
return Ze.getStringUnitWidth(vr, {
|
|
@@ -57002,29 +56985,29 @@ Q`), tr(We, !0), Or({
|
|
|
57002
56985
|
}));
|
|
57003
56986
|
var co = 0, bi;
|
|
57004
56987
|
if (Bt === "right") {
|
|
57005
|
-
V -= Kr[0],
|
|
56988
|
+
V -= Kr[0], W = [], Dr = ft.length;
|
|
57006
56989
|
for (var zi = 0; zi < Dr; zi++)
|
|
57007
|
-
zi === 0 ? (bi = Ni(V), xi = sr(ye)) : (bi = Y(co - Kr[zi]), xi = -Ko),
|
|
56990
|
+
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
56991
|
} else if (Bt === "center") {
|
|
57009
|
-
V -= Kr[0] / 2,
|
|
56992
|
+
V -= Kr[0] / 2, W = [], Dr = ft.length;
|
|
57010
56993
|
for (var Wi = 0; Wi < Dr; Wi++)
|
|
57011
|
-
Wi === 0 ? (bi = Ni(V), xi = sr(ye)) : (bi = Y((co - Kr[Wi]) / 2), xi = -Ko),
|
|
56994
|
+
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
56995
|
} else if (Bt === "left") {
|
|
57013
|
-
|
|
56996
|
+
W = [], Dr = ft.length;
|
|
57014
56997
|
for (var To = 0; To < Dr; To++)
|
|
57015
|
-
|
|
56998
|
+
W.push(ft[To]);
|
|
57016
56999
|
} else if (Bt === "justify") {
|
|
57017
|
-
|
|
57000
|
+
W = [], Dr = ft.length, Kt = Kt !== 0 ? Kt : ao;
|
|
57018
57001
|
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),
|
|
57002
|
+
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
57003
|
} else
|
|
57021
57004
|
throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');
|
|
57022
57005
|
}
|
|
57023
57006
|
var $o = typeof Fe.R2L == "boolean" ? Fe.R2L : Qe;
|
|
57024
|
-
$o === !0 && (
|
|
57007
|
+
$o === !0 && (W = qo(W, function(vr, ar, dr) {
|
|
57025
57008
|
return [vr.split("").reverse().join(""), ar, dr];
|
|
57026
57009
|
})), lt = {
|
|
57027
|
-
text:
|
|
57010
|
+
text: W,
|
|
57028
57011
|
x: V,
|
|
57029
57012
|
y: ye,
|
|
57030
57013
|
options: Fe,
|
|
@@ -57034,11 +57017,11 @@ Q`), tr(We, !0), Or({
|
|
|
57034
57017
|
fonts: pt,
|
|
57035
57018
|
activeFontSize: Ne
|
|
57036
57019
|
}
|
|
57037
|
-
}, se.publish("postProcessText", lt),
|
|
57020
|
+
}, se.publish("postProcessText", lt), W = lt.text, Br = lt.mutex.isHex || !1;
|
|
57038
57021
|
var en = pt[xt].encoding;
|
|
57039
|
-
(en === "WinAnsiEncoding" || en === "StandardEncoding") && (
|
|
57022
|
+
(en === "WinAnsiEncoding" || en === "StandardEncoding") && (W = qo(W, function(vr, ar, dr) {
|
|
57040
57023
|
return [fr(vr), ar, dr];
|
|
57041
|
-
})), ft = Xo(
|
|
57024
|
+
})), ft = Xo(W), W = [];
|
|
57042
57025
|
for (var Ei = 0, ho = 1, uo = Array.isArray(ft[0]) ? ho : Ei, Hr, Gr, Fi, ji = "", So = function(ar, dr, Fr) {
|
|
57043
57026
|
var xr = "";
|
|
57044
57027
|
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 +57037,37 @@ Q`), tr(We, !0), Or({
|
|
|
57054
57037
|
break;
|
|
57055
57038
|
}
|
|
57056
57039
|
typeof lo < "u" && typeof lo[Vr] < "u" && (ji = lo[Vr] + ` Tw
|
|
57057
|
-
`), Vr === 0 ?
|
|
57040
|
+
`), 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
57041
|
}
|
|
57059
|
-
|
|
57060
|
-
T* `) :
|
|
57061
|
-
`),
|
|
57042
|
+
W = uo === Ei ? W.join(` Tj
|
|
57043
|
+
T* `) : W.join(` Tj
|
|
57044
|
+
`), W += ` Tj
|
|
57062
57045
|
`;
|
|
57063
57046
|
var li = `BT
|
|
57064
57047
|
/`;
|
|
57065
57048
|
return li += xt + " " + Ne + ` Tf
|
|
57066
57049
|
`, li += L(Ne * Oi) + ` TL
|
|
57067
57050
|
`, li += Hi + `
|
|
57068
|
-
`, li += br, li +=
|
|
57051
|
+
`, li += br, li += W, li += "ET", we(li), m[xt] = !0, Ze;
|
|
57069
57052
|
};
|
|
57070
|
-
var vo = g.__private__.clip = g.clip = function(
|
|
57071
|
-
return we(
|
|
57053
|
+
var vo = g.__private__.clip = g.clip = function(W) {
|
|
57054
|
+
return we(W === "evenodd" ? "W*" : "W"), this;
|
|
57072
57055
|
};
|
|
57073
57056
|
g.clipEvenOdd = function() {
|
|
57074
57057
|
return vo("evenodd");
|
|
57075
57058
|
}, g.__private__.discardPath = g.discardPath = function() {
|
|
57076
57059
|
return we("n"), this;
|
|
57077
57060
|
};
|
|
57078
|
-
var mi = g.__private__.isValidStyle = function(
|
|
57061
|
+
var mi = g.__private__.isValidStyle = function(W) {
|
|
57079
57062
|
var V = [void 0, null, "S", "D", "F", "DF", "FD", "f", "f*", "B", "B*", "n"], ye = !1;
|
|
57080
|
-
return V.indexOf(
|
|
57063
|
+
return V.indexOf(W) !== -1 && (ye = !0), ye;
|
|
57081
57064
|
};
|
|
57082
|
-
g.__private__.setDefaultPathOperation = g.setDefaultPathOperation = function(
|
|
57083
|
-
return mi(
|
|
57065
|
+
g.__private__.setDefaultPathOperation = g.setDefaultPathOperation = function(W) {
|
|
57066
|
+
return mi(W) && (u = W), this;
|
|
57084
57067
|
};
|
|
57085
|
-
var fn = g.__private__.getStyle = g.getStyle = function(
|
|
57068
|
+
var fn = g.__private__.getStyle = g.getStyle = function(W) {
|
|
57086
57069
|
var V = u;
|
|
57087
|
-
switch (
|
|
57070
|
+
switch (W) {
|
|
57088
57071
|
case "D":
|
|
57089
57072
|
case "S":
|
|
57090
57073
|
V = "S";
|
|
@@ -57100,7 +57083,7 @@ T* `) : z.join(` Tj
|
|
|
57100
57083
|
case "f*":
|
|
57101
57084
|
case "B":
|
|
57102
57085
|
case "B*":
|
|
57103
|
-
V =
|
|
57086
|
+
V = W;
|
|
57104
57087
|
break;
|
|
57105
57088
|
}
|
|
57106
57089
|
return V;
|
|
@@ -57109,24 +57092,24 @@ T* `) : z.join(` Tj
|
|
|
57109
57092
|
};
|
|
57110
57093
|
g.stroke = function() {
|
|
57111
57094
|
return we("S"), this;
|
|
57112
|
-
}, g.fill = function(
|
|
57113
|
-
return wo("f",
|
|
57114
|
-
}, g.fillEvenOdd = function(
|
|
57115
|
-
return wo("f*",
|
|
57116
|
-
}, g.fillStroke = function(
|
|
57117
|
-
return wo("B",
|
|
57118
|
-
}, g.fillStrokeEvenOdd = function(
|
|
57119
|
-
return wo("B*",
|
|
57095
|
+
}, g.fill = function(W) {
|
|
57096
|
+
return wo("f", W), this;
|
|
57097
|
+
}, g.fillEvenOdd = function(W) {
|
|
57098
|
+
return wo("f*", W), this;
|
|
57099
|
+
}, g.fillStroke = function(W) {
|
|
57100
|
+
return wo("B", W), this;
|
|
57101
|
+
}, g.fillStrokeEvenOdd = function(W) {
|
|
57102
|
+
return wo("B*", W), this;
|
|
57120
57103
|
};
|
|
57121
57104
|
var wo = function(V, ye) {
|
|
57122
57105
|
_typeof(ye) === "object" ? Mn(ye, V) : we(V);
|
|
57123
57106
|
}, Rt = function(V) {
|
|
57124
57107
|
V === null || D === _.ADVANCED && V === void 0 || (V = fn(V), we(V));
|
|
57125
57108
|
};
|
|
57126
|
-
function Ln(
|
|
57109
|
+
function Ln(W, V, ye, Fe, We) {
|
|
57127
57110
|
var Ze = new TilingPattern(V || this.boundingBox, ye || this.xStep, Fe || this.yStep, this.gState, We || this.matrix);
|
|
57128
57111
|
Ze.stream = this.stream;
|
|
57129
|
-
var lt =
|
|
57112
|
+
var lt = W + "$$" + this.cloneIndex++ + "$$";
|
|
57130
57113
|
return Nr(lt, Ze), Ze;
|
|
57131
57114
|
}
|
|
57132
57115
|
var Mn = function(V, ye) {
|
|
@@ -57155,27 +57138,27 @@ T* `) : z.join(` Tj
|
|
|
57155
57138
|
case "n":
|
|
57156
57139
|
return "W n";
|
|
57157
57140
|
}
|
|
57158
|
-
}, jo = g.moveTo = function(
|
|
57159
|
-
return we(L(Y(
|
|
57160
|
-
}, gn = g.lineTo = function(
|
|
57161
|
-
return we(L(Y(
|
|
57162
|
-
}, yi = g.curveTo = function(
|
|
57163
|
-
return we([L(Y(
|
|
57141
|
+
}, jo = g.moveTo = function(W, V) {
|
|
57142
|
+
return we(L(Y(W)) + " " + L(U(V)) + " m"), this;
|
|
57143
|
+
}, gn = g.lineTo = function(W, V) {
|
|
57144
|
+
return we(L(Y(W)) + " " + L(U(V)) + " l"), this;
|
|
57145
|
+
}, yi = g.curveTo = function(W, V, ye, Fe, We, Ze) {
|
|
57146
|
+
return we([L(Y(W)), L(U(V)), L(Y(ye)), L(U(Fe)), L(Y(We)), L(U(Ze)), "c"].join(" ")), this;
|
|
57164
57147
|
};
|
|
57165
|
-
g.__private__.line = g.line = function(
|
|
57166
|
-
if (isNaN(
|
|
57148
|
+
g.__private__.line = g.line = function(W, V, ye, Fe, We) {
|
|
57149
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
|
|
57167
57150
|
throw new Error("Invalid arguments passed to jsPDF.line");
|
|
57168
|
-
return D === _.COMPAT ? this.lines([[ye -
|
|
57169
|
-
}, g.__private__.lines = g.lines = function(
|
|
57151
|
+
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();
|
|
57152
|
+
}, g.__private__.lines = g.lines = function(W, V, ye, Fe, We, Ze) {
|
|
57170
57153
|
var lt, ft, mt, Bt, Ht, Kt, $t, yr, Sr, ur, br, Br;
|
|
57171
|
-
if (typeof
|
|
57154
|
+
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
57155
|
throw new Error("Invalid arguments passed to jsPDF.lines");
|
|
57173
|
-
for (jo(V, ye), lt = Fe[0], ft = Fe[1], Bt =
|
|
57174
|
-
Ht =
|
|
57156
|
+
for (jo(V, ye), lt = Fe[0], ft = Fe[1], Bt = W.length, ur = V, br = ye, mt = 0; mt < Bt; mt++)
|
|
57157
|
+
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
57158
|
return Ze && pn(), Rt(We), this;
|
|
57176
|
-
}, g.path = function(
|
|
57177
|
-
for (var V = 0; V <
|
|
57178
|
-
var ye =
|
|
57159
|
+
}, g.path = function(W) {
|
|
57160
|
+
for (var V = 0; V < W.length; V++) {
|
|
57161
|
+
var ye = W[V], Fe = ye.c;
|
|
57179
57162
|
switch (ye.op) {
|
|
57180
57163
|
case "m":
|
|
57181
57164
|
jo(Fe[0], Fe[1]);
|
|
@@ -57192,53 +57175,53 @@ T* `) : z.join(` Tj
|
|
|
57192
57175
|
}
|
|
57193
57176
|
}
|
|
57194
57177
|
return this;
|
|
57195
|
-
}, g.__private__.rect = g.rect = function(
|
|
57196
|
-
if (isNaN(
|
|
57178
|
+
}, g.__private__.rect = g.rect = function(W, V, ye, Fe, We) {
|
|
57179
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
|
|
57197
57180
|
throw new Error("Invalid arguments passed to jsPDF.rect");
|
|
57198
|
-
return D === _.COMPAT && (Fe = -Fe), we([L(Y(
|
|
57199
|
-
}, g.__private__.triangle = g.triangle = function(
|
|
57200
|
-
if (isNaN(
|
|
57181
|
+
return D === _.COMPAT && (Fe = -Fe), we([L(Y(W)), L(U(V)), L(Y(ye)), L(Y(Fe)), "re"].join(" ")), Rt(We), this;
|
|
57182
|
+
}, g.__private__.triangle = g.triangle = function(W, V, ye, Fe, We, Ze, lt) {
|
|
57183
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || isNaN(We) || isNaN(Ze) || !mi(lt))
|
|
57201
57184
|
throw new Error("Invalid arguments passed to jsPDF.triangle");
|
|
57202
57185
|
return this.lines(
|
|
57203
57186
|
[
|
|
57204
|
-
[ye -
|
|
57187
|
+
[ye - W, Fe - V],
|
|
57205
57188
|
// vector to point 2
|
|
57206
57189
|
[We - ye, Ze - Fe],
|
|
57207
57190
|
// vector to point 3
|
|
57208
|
-
[
|
|
57191
|
+
[W - We, V - Ze]
|
|
57209
57192
|
// closing vector back to point 1
|
|
57210
57193
|
],
|
|
57211
|
-
|
|
57194
|
+
W,
|
|
57212
57195
|
V,
|
|
57213
57196
|
// start of path
|
|
57214
57197
|
[1, 1],
|
|
57215
57198
|
lt,
|
|
57216
57199
|
!0
|
|
57217
57200
|
), this;
|
|
57218
|
-
}, g.__private__.roundedRect = g.roundedRect = function(
|
|
57219
|
-
if (isNaN(
|
|
57201
|
+
}, g.__private__.roundedRect = g.roundedRect = function(W, V, ye, Fe, We, Ze, lt) {
|
|
57202
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || isNaN(We) || isNaN(Ze) || !mi(lt))
|
|
57220
57203
|
throw new Error("Invalid arguments passed to jsPDF.roundedRect");
|
|
57221
57204
|
var ft = 4 / 3 * (Math.SQRT2 - 1);
|
|
57222
57205
|
return We = Math.min(We, ye * 0.5), Ze = Math.min(Ze, Fe * 0.5), this.lines(
|
|
57223
57206
|
[[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
|
-
|
|
57207
|
+
W + We,
|
|
57225
57208
|
V,
|
|
57226
57209
|
// start of path
|
|
57227
57210
|
[1, 1],
|
|
57228
57211
|
lt,
|
|
57229
57212
|
!0
|
|
57230
57213
|
), this;
|
|
57231
|
-
}, g.__private__.ellipse = g.ellipse = function(
|
|
57232
|
-
if (isNaN(
|
|
57214
|
+
}, g.__private__.ellipse = g.ellipse = function(W, V, ye, Fe, We) {
|
|
57215
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
|
|
57233
57216
|
throw new Error("Invalid arguments passed to jsPDF.ellipse");
|
|
57234
57217
|
var Ze = 4 / 3 * (Math.SQRT2 - 1) * ye, lt = 4 / 3 * (Math.SQRT2 - 1) * Fe;
|
|
57235
|
-
return jo(
|
|
57236
|
-
}, g.__private__.circle = g.circle = function(
|
|
57237
|
-
if (isNaN(
|
|
57218
|
+
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;
|
|
57219
|
+
}, g.__private__.circle = g.circle = function(W, V, ye, Fe) {
|
|
57220
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || !mi(Fe))
|
|
57238
57221
|
throw new Error("Invalid arguments passed to jsPDF.circle");
|
|
57239
|
-
return this.ellipse(
|
|
57240
|
-
}, g.setFont = function(
|
|
57241
|
-
return ye && (V = I(V, ye)), xt = hr(
|
|
57222
|
+
return this.ellipse(W, V, ye, ye, Fe);
|
|
57223
|
+
}, g.setFont = function(W, V, ye) {
|
|
57224
|
+
return ye && (V = I(V, ye)), xt = hr(W, V, {
|
|
57242
57225
|
disableWarning: !1
|
|
57243
57226
|
}), this;
|
|
57244
57227
|
};
|
|
@@ -57246,29 +57229,29 @@ T* `) : z.join(` Tj
|
|
|
57246
57229
|
return pt[hr.apply(g, arguments)];
|
|
57247
57230
|
};
|
|
57248
57231
|
g.__private__.getFontList = g.getFontList = function() {
|
|
57249
|
-
var
|
|
57232
|
+
var W = {}, V, ye;
|
|
57250
57233
|
for (V in Tt)
|
|
57251
57234
|
if (Tt.hasOwnProperty(V)) {
|
|
57252
|
-
|
|
57235
|
+
W[V] = [];
|
|
57253
57236
|
for (ye in Tt[V])
|
|
57254
|
-
Tt[V].hasOwnProperty(ye) &&
|
|
57237
|
+
Tt[V].hasOwnProperty(ye) && W[V].push(ye);
|
|
57255
57238
|
}
|
|
57256
|
-
return
|
|
57257
|
-
}, g.addFont = function(
|
|
57239
|
+
return W;
|
|
57240
|
+
}, g.addFont = function(W, V, ye, Fe, We) {
|
|
57258
57241
|
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,
|
|
57242
|
+
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
57243
|
};
|
|
57261
57244
|
var Yo = a.lineWidth || 0.200025, mn = g.__private__.getLineWidth = g.getLineWidth = function() {
|
|
57262
57245
|
return Yo;
|
|
57263
|
-
}, yn = g.__private__.setLineWidth = g.setLineWidth = function(
|
|
57264
|
-
return Yo =
|
|
57246
|
+
}, yn = g.__private__.setLineWidth = g.setLineWidth = function(W) {
|
|
57247
|
+
return Yo = W, we(L(Y(W)) + " w"), this;
|
|
57265
57248
|
};
|
|
57266
|
-
g.__private__.setLineDash = jsPDF.API.setLineDash = jsPDF.API.setLineDashPattern = function(
|
|
57267
|
-
if (
|
|
57249
|
+
g.__private__.setLineDash = jsPDF.API.setLineDash = jsPDF.API.setLineDashPattern = function(W, V) {
|
|
57250
|
+
if (W = W || [], V = V || 0, isNaN(V) || !Array.isArray(W))
|
|
57268
57251
|
throw new Error("Invalid arguments passed to jsPDF.setLineDash");
|
|
57269
|
-
return
|
|
57252
|
+
return W = W.map(function(ye) {
|
|
57270
57253
|
return L(Y(ye));
|
|
57271
|
-
}).join(" "), V = L(Y(V)), we("[" +
|
|
57254
|
+
}).join(" "), V = L(Y(V)), we("[" + W + "] " + V + " d"), this;
|
|
57272
57255
|
};
|
|
57273
57256
|
var $i, Co = g.__private__.getLineHeight = g.getLineHeight = function() {
|
|
57274
57257
|
return Ne * $i;
|
|
@@ -57276,29 +57259,29 @@ T* `) : z.join(` Tj
|
|
|
57276
57259
|
g.__private__.getLineHeight = g.getLineHeight = function() {
|
|
57277
57260
|
return Ne * $i;
|
|
57278
57261
|
};
|
|
57279
|
-
var kn = g.__private__.setLineHeightFactor = g.setLineHeightFactor = function(
|
|
57280
|
-
return
|
|
57262
|
+
var kn = g.__private__.setLineHeightFactor = g.setLineHeightFactor = function(W) {
|
|
57263
|
+
return W = W || 1.15, typeof W == "number" && ($i = W), this;
|
|
57281
57264
|
}, Hn = g.__private__.getLineHeightFactor = g.getLineHeightFactor = function() {
|
|
57282
57265
|
return $i;
|
|
57283
57266
|
};
|
|
57284
57267
|
kn(a.lineHeight);
|
|
57285
|
-
var Ni = g.__private__.getHorizontalCoordinate = function(
|
|
57286
|
-
return Y(
|
|
57287
|
-
}, sr = g.__private__.getVerticalCoordinate = function(
|
|
57268
|
+
var Ni = g.__private__.getHorizontalCoordinate = function(W) {
|
|
57269
|
+
return Y(W);
|
|
57270
|
+
}, sr = g.__private__.getVerticalCoordinate = function(W) {
|
|
57288
57271
|
if (D === _.ADVANCED)
|
|
57289
|
-
return
|
|
57272
|
+
return W;
|
|
57290
57273
|
var V = ee[Pe].mediaBox.topRightY - ee[Pe].mediaBox.bottomLeftY;
|
|
57291
|
-
return V - Y(
|
|
57292
|
-
}, vi = g.__private__.getHorizontalCoordinateString = g.getHorizontalCoordinateString = function(
|
|
57293
|
-
return L(Ni(
|
|
57294
|
-
}, ki = g.__private__.getVerticalCoordinateString = g.getVerticalCoordinateString = function(
|
|
57295
|
-
return L(sr(
|
|
57274
|
+
return V - Y(W);
|
|
57275
|
+
}, vi = g.__private__.getHorizontalCoordinateString = g.getHorizontalCoordinateString = function(W) {
|
|
57276
|
+
return L(Ni(W));
|
|
57277
|
+
}, ki = g.__private__.getVerticalCoordinateString = g.getVerticalCoordinateString = function(W) {
|
|
57278
|
+
return L(sr(W));
|
|
57296
57279
|
}, eo = a.strokeColor || "0 G";
|
|
57297
57280
|
g.__private__.getStrokeColor = g.getDrawColor = function() {
|
|
57298
57281
|
return gr(eo);
|
|
57299
|
-
}, g.__private__.setStrokeColor = g.setDrawColor = function(
|
|
57282
|
+
}, g.__private__.setStrokeColor = g.setDrawColor = function(W, V, ye, Fe) {
|
|
57300
57283
|
var We = {
|
|
57301
|
-
ch1:
|
|
57284
|
+
ch1: W,
|
|
57302
57285
|
ch2: V,
|
|
57303
57286
|
ch3: ye,
|
|
57304
57287
|
ch4: Fe,
|
|
@@ -57310,9 +57293,9 @@ T* `) : z.join(` Tj
|
|
|
57310
57293
|
var to = a.fillColor || "0 g";
|
|
57311
57294
|
g.__private__.getFillColor = g.getFillColor = function() {
|
|
57312
57295
|
return gr(to);
|
|
57313
|
-
}, g.__private__.setFillColor = g.setFillColor = function(
|
|
57296
|
+
}, g.__private__.setFillColor = g.setFillColor = function(W, V, ye, Fe) {
|
|
57314
57297
|
var We = {
|
|
57315
|
-
ch1:
|
|
57298
|
+
ch1: W,
|
|
57316
57299
|
ch2: V,
|
|
57317
57300
|
ch3: ye,
|
|
57318
57301
|
ch4: Fe,
|
|
@@ -57324,9 +57307,9 @@ T* `) : z.join(` Tj
|
|
|
57324
57307
|
var Hi = a.textColor || "0 g", vn = g.__private__.getTextColor = g.getTextColor = function() {
|
|
57325
57308
|
return gr(Hi);
|
|
57326
57309
|
};
|
|
57327
|
-
g.__private__.setTextColor = g.setTextColor = function(
|
|
57310
|
+
g.__private__.setTextColor = g.setTextColor = function(W, V, ye, Fe) {
|
|
57328
57311
|
var We = {
|
|
57329
|
-
ch1:
|
|
57312
|
+
ch1: W,
|
|
57330
57313
|
ch2: V,
|
|
57331
57314
|
ch3: ye,
|
|
57332
57315
|
ch4: Fe,
|
|
@@ -57338,10 +57321,10 @@ T* `) : z.join(` Tj
|
|
|
57338
57321
|
var Ti = a.charSpace, wi = g.__private__.getCharSpace = g.getCharSpace = function() {
|
|
57339
57322
|
return parseFloat(Ti || 0);
|
|
57340
57323
|
};
|
|
57341
|
-
g.__private__.setCharSpace = g.setCharSpace = function(
|
|
57342
|
-
if (isNaN(
|
|
57324
|
+
g.__private__.setCharSpace = g.setCharSpace = function(W) {
|
|
57325
|
+
if (isNaN(W))
|
|
57343
57326
|
throw new Error("Invalid argument passed to jsPDF.setCharSpace");
|
|
57344
|
-
return Ti =
|
|
57327
|
+
return Ti = W, this;
|
|
57345
57328
|
};
|
|
57346
57329
|
var qr = 0;
|
|
57347
57330
|
g.CapJoinStyles = {
|
|
@@ -57358,24 +57341,24 @@ T* `) : z.join(` Tj
|
|
|
57358
57341
|
project: 2,
|
|
57359
57342
|
square: 2,
|
|
57360
57343
|
bevel: 2
|
|
57361
|
-
}, g.__private__.setLineCap = g.setLineCap = function(
|
|
57362
|
-
var V = g.CapJoinStyles[
|
|
57344
|
+
}, g.__private__.setLineCap = g.setLineCap = function(W) {
|
|
57345
|
+
var V = g.CapJoinStyles[W];
|
|
57363
57346
|
if (V === void 0)
|
|
57364
|
-
throw new Error("Line cap style of '" +
|
|
57347
|
+
throw new Error("Line cap style of '" + W + "' is not recognized. See or extend .CapJoinStyles property for valid styles");
|
|
57365
57348
|
return qr = V, we(V + " J"), this;
|
|
57366
57349
|
};
|
|
57367
57350
|
var Ci = 0;
|
|
57368
|
-
g.__private__.setLineJoin = g.setLineJoin = function(
|
|
57369
|
-
var V = g.CapJoinStyles[
|
|
57351
|
+
g.__private__.setLineJoin = g.setLineJoin = function(W) {
|
|
57352
|
+
var V = g.CapJoinStyles[W];
|
|
57370
57353
|
if (V === void 0)
|
|
57371
|
-
throw new Error("Line join style of '" +
|
|
57354
|
+
throw new Error("Line join style of '" + W + "' is not recognized. See or extend .CapJoinStyles property for valid styles");
|
|
57372
57355
|
return Ci = V, we(V + " j"), this;
|
|
57373
|
-
}, g.__private__.setLineMiterLimit = g.__private__.setMiterLimit = g.setLineMiterLimit = g.setMiterLimit = function(
|
|
57374
|
-
if (
|
|
57356
|
+
}, g.__private__.setLineMiterLimit = g.__private__.setMiterLimit = g.setLineMiterLimit = g.setMiterLimit = function(W) {
|
|
57357
|
+
if (W = W || 0, isNaN(W))
|
|
57375
57358
|
throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");
|
|
57376
|
-
return we(L(Y(
|
|
57377
|
-
}, g.GState = GState, g.setGState = function(
|
|
57378
|
-
typeof
|
|
57359
|
+
return we(L(Y(W)) + " M"), this;
|
|
57360
|
+
}, g.GState = GState, g.setGState = function(W) {
|
|
57361
|
+
typeof W == "string" ? W = At[or[W]] : W = Qr(null, W), W.equals(wr) || (we("/" + W.id + " gs"), wr = W);
|
|
57379
57362
|
};
|
|
57380
57363
|
var Qr = function(V, ye) {
|
|
57381
57364
|
if (!(V && or[V])) {
|
|
@@ -57394,8 +57377,8 @@ T* `) : z.join(` Tj
|
|
|
57394
57377
|
return V && (or[V] = ye.id), se.publish("addGState", ye), ye;
|
|
57395
57378
|
}
|
|
57396
57379
|
};
|
|
57397
|
-
g.addGState = function(
|
|
57398
|
-
return Qr(
|
|
57380
|
+
g.addGState = function(W, V) {
|
|
57381
|
+
return Qr(W, V), this;
|
|
57399
57382
|
}, g.saveGraphicsState = function() {
|
|
57400
57383
|
return we("q"), It.push({
|
|
57401
57384
|
key: xt,
|
|
@@ -57404,12 +57387,12 @@ T* `) : z.join(` Tj
|
|
|
57404
57387
|
}), this;
|
|
57405
57388
|
}, g.restoreGraphicsState = function() {
|
|
57406
57389
|
we("Q");
|
|
57407
|
-
var
|
|
57408
|
-
return xt =
|
|
57409
|
-
}, g.setCurrentTransformationMatrix = function(
|
|
57410
|
-
return we(
|
|
57411
|
-
}, g.comment = function(
|
|
57412
|
-
return we("#" +
|
|
57390
|
+
var W = It.pop();
|
|
57391
|
+
return xt = W.key, Ne = W.size, Hi = W.color, wr = null, this;
|
|
57392
|
+
}, g.setCurrentTransformationMatrix = function(W) {
|
|
57393
|
+
return we(W.toString() + " cm"), this;
|
|
57394
|
+
}, g.comment = function(W) {
|
|
57395
|
+
return we("#" + W), this;
|
|
57413
57396
|
};
|
|
57414
57397
|
var xo = function(V, ye) {
|
|
57415
57398
|
var Fe = V || 0;
|
|
@@ -57480,15 +57463,15 @@ T* `) : z.join(` Tj
|
|
|
57480
57463
|
var ye = new Zo(), Fe = "Xo" + (Object.keys(Ue).length + 1).toString(10);
|
|
57481
57464
|
ye.id = Fe, Ge[V] = Fe, Ue[Fe] = ye, se.publish("addFormObject", ye), Dt.pop().restore();
|
|
57482
57465
|
};
|
|
57483
|
-
g.beginFormObject = function(
|
|
57484
|
-
return wn(
|
|
57485
|
-
}, g.endFormObject = function(
|
|
57486
|
-
return On(
|
|
57487
|
-
}, g.doFormObject = function(
|
|
57488
|
-
var ye = Ue[Ge[
|
|
57466
|
+
g.beginFormObject = function(W, V, ye, Fe, We) {
|
|
57467
|
+
return wn(W, V, ye, Fe, We), this;
|
|
57468
|
+
}, g.endFormObject = function(W) {
|
|
57469
|
+
return On(W), this;
|
|
57470
|
+
}, g.doFormObject = function(W, V) {
|
|
57471
|
+
var ye = Ue[Ge[W]];
|
|
57489
57472
|
return we("q"), we(V.toString() + " cm"), we("/" + ye.id + " Do"), we("Q"), this;
|
|
57490
|
-
}, g.getFormObject = function(
|
|
57491
|
-
var V = Ue[Ge[
|
|
57473
|
+
}, g.getFormObject = function(W) {
|
|
57474
|
+
var V = Ue[Ge[W]];
|
|
57492
57475
|
return {
|
|
57493
57476
|
x: V.x,
|
|
57494
57477
|
y: V.y,
|
|
@@ -57496,10 +57479,10 @@ T* `) : z.join(` Tj
|
|
|
57496
57479
|
height: V.height,
|
|
57497
57480
|
matrix: V.matrix
|
|
57498
57481
|
};
|
|
57499
|
-
}, g.save = function(
|
|
57500
|
-
return
|
|
57482
|
+
}, g.save = function(W, V) {
|
|
57483
|
+
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
57484
|
try {
|
|
57502
|
-
var We = saveAs(Ji(Zr()),
|
|
57485
|
+
var We = saveAs(Ji(Zr()), W);
|
|
57503
57486
|
typeof saveAs.unload == "function" && globalObject.setTimeout && setTimeout(saveAs.unload, 911), ye(We);
|
|
57504
57487
|
} catch (Ze) {
|
|
57505
57488
|
Fe(Ze.message);
|
|
@@ -57507,19 +57490,19 @@ T* `) : z.join(` Tj
|
|
|
57507
57490
|
});
|
|
57508
57491
|
};
|
|
57509
57492
|
for (var Si in jsPDF.API)
|
|
57510
|
-
jsPDF.API.hasOwnProperty(Si) && (Si === "events" && jsPDF.API.events.length ? function(
|
|
57493
|
+
jsPDF.API.hasOwnProperty(Si) && (Si === "events" && jsPDF.API.events.length ? function(W, V) {
|
|
57511
57494
|
var ye, Fe, We;
|
|
57512
57495
|
for (We = V.length - 1; We !== -1; We--)
|
|
57513
|
-
ye = V[We][0], Fe = V[We][1],
|
|
57496
|
+
ye = V[We][0], Fe = V[We][1], W.subscribe.apply(W, [ye].concat(typeof Fe == "function" ? [Fe] : Fe));
|
|
57514
57497
|
}(se, jsPDF.API.events) : g[Si] = jsPDF.API[Si]);
|
|
57515
|
-
var ro = g.getPageWidth = function(
|
|
57516
|
-
return
|
|
57517
|
-
}, Go = g.setPageWidth = function(
|
|
57518
|
-
ee[
|
|
57519
|
-
}, Di = g.getPageHeight = function(
|
|
57520
|
-
return
|
|
57521
|
-
}, Vo = g.setPageHeight = function(
|
|
57522
|
-
ee[
|
|
57498
|
+
var ro = g.getPageWidth = function(W) {
|
|
57499
|
+
return W = W || Pe, (ee[W].mediaBox.topRightX - ee[W].mediaBox.bottomLeftX) / kt;
|
|
57500
|
+
}, Go = g.setPageWidth = function(W, V) {
|
|
57501
|
+
ee[W].mediaBox.topRightX = V * kt + ee[W].mediaBox.bottomLeftX;
|
|
57502
|
+
}, Di = g.getPageHeight = function(W) {
|
|
57503
|
+
return W = W || Pe, (ee[W].mediaBox.topRightY - ee[W].mediaBox.bottomLeftY) / kt;
|
|
57504
|
+
}, Vo = g.setPageHeight = function(W, V) {
|
|
57505
|
+
ee[W].mediaBox.topRightY = V * kt + ee[W].mediaBox.bottomLeftY;
|
|
57523
57506
|
};
|
|
57524
57507
|
return g.internal = {
|
|
57525
57508
|
pdfEscape: at,
|
|
@@ -57670,8 +57653,8 @@ var inherit = function a(t, r) {
|
|
|
57670
57653
|
f = f < 0 ? -f : f;
|
|
57671
57654
|
var p = function(Y, j, U) {
|
|
57672
57655
|
if (Y + 1 < s.length) {
|
|
57673
|
-
var X = j + " " + s[Y + 1],
|
|
57674
|
-
return
|
|
57656
|
+
var X = j + " " + s[Y + 1], z = calculateFontSpace(X, t, U).width, G = f - 2 * d;
|
|
57657
|
+
return z <= G;
|
|
57675
57658
|
} else
|
|
57676
57659
|
return !1;
|
|
57677
57660
|
};
|
|
@@ -59057,16 +59040,16 @@ jsPDF.AcroForm;
|
|
|
59057
59040
|
[80, 84]
|
|
59058
59041
|
//PT - OS/2 pointer
|
|
59059
59042
|
]
|
|
59060
|
-
}, s = a.__addimage__.getImageFileTypeByImageData = function(
|
|
59043
|
+
}, s = a.__addimage__.getImageFileTypeByImageData = function(z, G) {
|
|
59061
59044
|
G = G || r;
|
|
59062
59045
|
var J, ae, Ce = r, oe, me, ue;
|
|
59063
|
-
if (G === "RGBA" ||
|
|
59046
|
+
if (G === "RGBA" || z.data !== void 0 && z.data instanceof Uint8ClampedArray && "height" in z && "width" in z)
|
|
59064
59047
|
return "RGBA";
|
|
59065
|
-
if (B(
|
|
59048
|
+
if (B(z))
|
|
59066
59049
|
for (ue in n)
|
|
59067
59050
|
for (oe = n[ue], J = 0; J < oe.length; J += 1) {
|
|
59068
59051
|
for (me = !0, ae = 0; ae < oe[J].length; ae += 1)
|
|
59069
|
-
if (oe[J][ae] !== void 0 && oe[J][ae] !==
|
|
59052
|
+
if (oe[J][ae] !== void 0 && oe[J][ae] !== z[ae]) {
|
|
59070
59053
|
me = !1;
|
|
59071
59054
|
break;
|
|
59072
59055
|
}
|
|
@@ -59079,7 +59062,7 @@ jsPDF.AcroForm;
|
|
|
59079
59062
|
for (ue in n)
|
|
59080
59063
|
for (oe = n[ue], J = 0; J < oe.length; J += 1) {
|
|
59081
59064
|
for (me = !0, ae = 0; ae < oe[J].length; ae += 1)
|
|
59082
|
-
if (oe[J][ae] !== void 0 && oe[J][ae] !==
|
|
59065
|
+
if (oe[J][ae] !== void 0 && oe[J][ae] !== z.charCodeAt(ae)) {
|
|
59083
59066
|
me = !1;
|
|
59084
59067
|
break;
|
|
59085
59068
|
}
|
|
@@ -59089,7 +59072,7 @@ jsPDF.AcroForm;
|
|
|
59089
59072
|
}
|
|
59090
59073
|
}
|
|
59091
59074
|
return Ce === r && G !== r && (Ce = G), Ce;
|
|
59092
|
-
}, l = function
|
|
59075
|
+
}, l = function z(G) {
|
|
59093
59076
|
for (var J = this.internal.write, ae = this.internal.putStream, Ce = this.internal.getFilters, oe = Ce(); oe.indexOf("FlateEncode") !== -1; )
|
|
59094
59077
|
oe.splice(oe.indexOf("FlateEncode"), 1);
|
|
59095
59078
|
G.objectId = this.internal.newObject();
|
|
@@ -59149,7 +59132,7 @@ jsPDF.AcroForm;
|
|
|
59149
59132
|
decodeParameters: Ie,
|
|
59150
59133
|
data: G.sMask
|
|
59151
59134
|
};
|
|
59152
|
-
"filter" in G && (ve.filter = G.filter),
|
|
59135
|
+
"filter" in G && (ve.filter = G.filter), z.call(this, ve);
|
|
59153
59136
|
}
|
|
59154
59137
|
if (G.colorSpace === T.INDEXED) {
|
|
59155
59138
|
var _e = this.internal.newObject();
|
|
@@ -59267,22 +59250,22 @@ jsPDF.AcroForm;
|
|
|
59267
59250
|
FAST: "FAST",
|
|
59268
59251
|
MEDIUM: "MEDIUM",
|
|
59269
59252
|
SLOW: "SLOW"
|
|
59270
|
-
}, M = a.__addimage__.sHashCode = function(
|
|
59253
|
+
}, M = a.__addimage__.sHashCode = function(z) {
|
|
59271
59254
|
var G = 0, J, ae;
|
|
59272
|
-
if (typeof
|
|
59273
|
-
for (ae =
|
|
59274
|
-
G = (G << 5) - G +
|
|
59275
|
-
else if (B(
|
|
59276
|
-
for (ae =
|
|
59277
|
-
G = (G << 5) - G +
|
|
59255
|
+
if (typeof z == "string")
|
|
59256
|
+
for (ae = z.length, J = 0; J < ae; J++)
|
|
59257
|
+
G = (G << 5) - G + z.charCodeAt(J), G |= 0;
|
|
59258
|
+
else if (B(z))
|
|
59259
|
+
for (ae = z.byteLength / 2, J = 0; J < ae; J++)
|
|
59260
|
+
G = (G << 5) - G + z[J], G |= 0;
|
|
59278
59261
|
return G;
|
|
59279
|
-
}, k = a.__addimage__.validateStringAsBase64 = function(
|
|
59280
|
-
|
|
59262
|
+
}, k = a.__addimage__.validateStringAsBase64 = function(z) {
|
|
59263
|
+
z = z || "", z.toString().trim();
|
|
59281
59264
|
var G = !0;
|
|
59282
|
-
return
|
|
59283
|
-
}, L = a.__addimage__.extractImageFromDataUrl = function(
|
|
59284
|
-
|
|
59285
|
-
var G =
|
|
59265
|
+
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;
|
|
59266
|
+
}, L = a.__addimage__.extractImageFromDataUrl = function(z) {
|
|
59267
|
+
z = z || "";
|
|
59268
|
+
var G = z.split("base64,"), J = null;
|
|
59286
59269
|
if (G.length === 2) {
|
|
59287
59270
|
var ae = /^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(G[0]);
|
|
59288
59271
|
Array.isArray(ae) && (J = {
|
|
@@ -59295,31 +59278,31 @@ jsPDF.AcroForm;
|
|
|
59295
59278
|
}, H = a.__addimage__.supportsArrayBuffer = function() {
|
|
59296
59279
|
return typeof ArrayBuffer < "u" && typeof Uint8Array < "u";
|
|
59297
59280
|
};
|
|
59298
|
-
a.__addimage__.isArrayBuffer = function(
|
|
59299
|
-
return H() &&
|
|
59281
|
+
a.__addimage__.isArrayBuffer = function(z) {
|
|
59282
|
+
return H() && z instanceof ArrayBuffer;
|
|
59300
59283
|
};
|
|
59301
|
-
var B = a.__addimage__.isArrayBufferView = function(
|
|
59302
|
-
return H() && typeof Uint32Array < "u" && (
|
|
59303
|
-
}, Y = a.__addimage__.binaryStringToUint8Array = function(
|
|
59304
|
-
for (var G =
|
|
59305
|
-
J[ae] =
|
|
59284
|
+
var B = a.__addimage__.isArrayBufferView = function(z) {
|
|
59285
|
+
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);
|
|
59286
|
+
}, Y = a.__addimage__.binaryStringToUint8Array = function(z) {
|
|
59287
|
+
for (var G = z.length, J = new Uint8Array(G), ae = 0; ae < G; ae++)
|
|
59288
|
+
J[ae] = z.charCodeAt(ae);
|
|
59306
59289
|
return J;
|
|
59307
|
-
}, j = a.__addimage__.arrayBufferToBinaryString = function(
|
|
59308
|
-
for (var G = "", J = B(
|
|
59290
|
+
}, j = a.__addimage__.arrayBufferToBinaryString = function(z) {
|
|
59291
|
+
for (var G = "", J = B(z) ? z : new Uint8Array(z), ae = 0; ae < J.length; ae += o)
|
|
59309
59292
|
G += String.fromCharCode.apply(null, J.subarray(ae, ae + o));
|
|
59310
|
-
return releaseArrayBuffer(
|
|
59293
|
+
return releaseArrayBuffer(z), G;
|
|
59311
59294
|
};
|
|
59312
59295
|
a.addImage = function() {
|
|
59313
|
-
var
|
|
59314
|
-
if (
|
|
59315
|
-
var ne =
|
|
59316
|
-
|
|
59296
|
+
var z, G, J, ae, Ce, oe, me, ue, Q;
|
|
59297
|
+
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) {
|
|
59298
|
+
var ne = z;
|
|
59299
|
+
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
59300
|
}
|
|
59318
59301
|
var xe = this.internal.getFilters();
|
|
59319
59302
|
if (ue === void 0 && xe.indexOf("FlateEncode") !== -1 && (ue = "SLOW"), ue = "SLOW", isNaN(J) || isNaN(ae))
|
|
59320
59303
|
throw new Error("Invalid coordinates passed to jsPDF.addImage");
|
|
59321
59304
|
f.call(this);
|
|
59322
|
-
var Ie = U.call(this,
|
|
59305
|
+
var Ie = U.call(this, z, G, me, ue);
|
|
59323
59306
|
return E.call(this, J, ae, Ce, oe, Ie, Q), this;
|
|
59324
59307
|
};
|
|
59325
59308
|
var U = function(G, J, ae, Ce) {
|
|
@@ -59335,11 +59318,11 @@ jsPDF.AcroForm;
|
|
|
59335
59318
|
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
59319
|
throw new Error("An unknown error occurred whilst processing the image.");
|
|
59337
59320
|
return oe.exifdata = ue, oe;
|
|
59338
|
-
}, X = a.__addimage__.convertBase64ToBinaryString = function(
|
|
59321
|
+
}, X = a.__addimage__.convertBase64ToBinaryString = function(z, G) {
|
|
59339
59322
|
G = typeof G == "boolean" ? G : !0;
|
|
59340
59323
|
var J, ae = "", Ce;
|
|
59341
|
-
if (typeof
|
|
59342
|
-
J = L(
|
|
59324
|
+
if (typeof z == "string") {
|
|
59325
|
+
J = L(z), Ce = J !== null ? J.data : z;
|
|
59343
59326
|
try {
|
|
59344
59327
|
ae = atob$1(Ce);
|
|
59345
59328
|
} catch (oe) {
|
|
@@ -59349,11 +59332,11 @@ jsPDF.AcroForm;
|
|
|
59349
59332
|
}
|
|
59350
59333
|
return ae;
|
|
59351
59334
|
};
|
|
59352
|
-
a.getImageProperties = function(
|
|
59335
|
+
a.getImageProperties = function(z) {
|
|
59353
59336
|
var G, J = "", ae;
|
|
59354
|
-
if (v(
|
|
59337
|
+
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
59338
|
throw new Error("addImage does not support files of type '" + ae + "', please ensure that a plugin for '" + ae + "' support is added.");
|
|
59356
|
-
if (H() && !(
|
|
59339
|
+
if (H() && !(z instanceof Uint8Array) && (z = Y(z)), G = this["process" + ae.toUpperCase()](z), !G)
|
|
59357
59340
|
throw new Error("An unknown error occurred whilst processing the image");
|
|
59358
59341
|
return G.fileType = ae, G;
|
|
59359
59342
|
};
|
|
@@ -60004,12 +59987,12 @@ function releaseArrayBuffer(a) {
|
|
|
60004
59987
|
}
|
|
60005
59988
|
}
|
|
60006
59989
|
if (L) {
|
|
60007
|
-
var
|
|
59990
|
+
var z = {};
|
|
60008
59991
|
for (C = 0; C < y.length; C += 1)
|
|
60009
|
-
|
|
60010
|
-
var G = d.call(this,
|
|
59992
|
+
z[y[C]] = {}, z[y[C]].text = w[C], z[y[C]].align = v[C];
|
|
59993
|
+
var G = d.call(this, z, D);
|
|
60011
59994
|
M = y.map(function(oe) {
|
|
60012
|
-
return new l(u, f, D[oe], G,
|
|
59995
|
+
return new l(u, f, D[oe], G, z[oe].text, void 0, z[oe].align);
|
|
60013
59996
|
}), this.setTableHeaderRow(M), this.printHeaderRow(1, !1);
|
|
60014
59997
|
}
|
|
60015
59998
|
var J = m.reduce(function(oe, me) {
|
|
@@ -61045,7 +61028,7 @@ function parseFontFamily(a) {
|
|
|
61045
61028
|
return this.createLinearGradient();
|
|
61046
61029
|
};
|
|
61047
61030
|
var k = function(Q, ne, xe, Ie, ve, _e, pe, Pe, De) {
|
|
61048
|
-
for (var Ve =
|
|
61031
|
+
for (var Ve = z.call(this, xe, Ie, ve, _e), Te = 0; Te < Ve.length; Te++) {
|
|
61049
61032
|
var He = Ve[Te];
|
|
61050
61033
|
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
61034
|
}
|
|
@@ -61130,7 +61113,7 @@ function parseFontFamily(a) {
|
|
|
61130
61113
|
return this.pdf.lines(Q, ne, xe, null, null);
|
|
61131
61114
|
}, X = function(Q, ne, xe, Ie, ve, _e, pe, Pe) {
|
|
61132
61115
|
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
|
-
},
|
|
61116
|
+
}, z = function(Q, ne, xe, Ie) {
|
|
61134
61117
|
for (var ve = 1e-5, _e = Math.PI * 2, pe = Math.PI / 2; ne > xe; )
|
|
61135
61118
|
ne = ne - _e;
|
|
61136
61119
|
var Pe = Math.abs(xe - ne);
|
|
@@ -61981,7 +61964,7 @@ var PNG = function() {
|
|
|
61981
61964
|
return new Uint8Array(0);
|
|
61982
61965
|
d = unzlibSync(d);
|
|
61983
61966
|
function g(y, w, v, C) {
|
|
61984
|
-
var _, D, E, T, I, M, k, L, H, B, Y, j, U, X,
|
|
61967
|
+
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
61968
|
for (X = u * ue, j = ne ? f : new Uint8Array(X * Q), M = d.length, U = 0, D = 0; U < Q && p < M; ) {
|
|
61986
61969
|
switch (d[p++]) {
|
|
61987
61970
|
case 0:
|
|
@@ -61994,15 +61977,15 @@ var PNG = function() {
|
|
|
61994
61977
|
break;
|
|
61995
61978
|
case 2:
|
|
61996
61979
|
for (T = Ce = 0; Ce < X; T = Ce += 1)
|
|
61997
|
-
_ = d[p++], E = (T - T % u) / u,
|
|
61980
|
+
_ = d[p++], E = (T - T % u) / u, z = U && j[(U - 1) * X + E * u + T % u], j[D++] = (z + _) % 256;
|
|
61998
61981
|
break;
|
|
61999
61982
|
case 3:
|
|
62000
61983
|
for (T = oe = 0; oe < X; T = oe += 1)
|
|
62001
|
-
_ = d[p++], E = (T - T % u) / u, I = T < u ? 0 : j[D - u],
|
|
61984
|
+
_ = 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
61985
|
break;
|
|
62003
61986
|
case 4:
|
|
62004
61987
|
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 ?
|
|
61988
|
+
_ = 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
61989
|
break;
|
|
62007
61990
|
default:
|
|
62008
61991
|
console$1.warn(`Invalid filter algorithm: ${d[p - 1], d[p]}--png格式图片只包含[01234]`);
|
|
@@ -62199,7 +62182,7 @@ var PNG = function() {
|
|
|
62199
62182
|
return v;
|
|
62200
62183
|
};
|
|
62201
62184
|
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,
|
|
62185
|
+
var _, D = this.decode.FLATE_DECODE, E, T, I = "", M, k, L, H, B, Y, j, U, X, z, G, J;
|
|
62203
62186
|
if (this.__addimage__.isArrayBuffer(y) && (y = new Uint8Array(y)), this.__addimage__.isArrayBufferView(y)) {
|
|
62204
62187
|
if (T = new PNG(y), y = T.imgData, E = T.bits, _ = T.colorSpace, k = T.colors, [4, 6].indexOf(T.colorType) !== -1) {
|
|
62205
62188
|
if (T.bits === 8) {
|
|
@@ -62207,15 +62190,15 @@ var PNG = function() {
|
|
|
62207
62190
|
var ae = T.pixelBitlength - T.bits;
|
|
62208
62191
|
G = 0, J = 0;
|
|
62209
62192
|
for (var Ce; G < Y; G++) {
|
|
62210
|
-
for (
|
|
62211
|
-
U[J++] =
|
|
62212
|
-
j[G] =
|
|
62193
|
+
for (z = B[G], Ce = 0; Ce < ae; )
|
|
62194
|
+
U[J++] = z >>> Ce & 255, Ce = Ce + T.bits;
|
|
62195
|
+
j[G] = z >>> Ce & 255;
|
|
62213
62196
|
}
|
|
62214
62197
|
}
|
|
62215
62198
|
if (T.bits === 16) {
|
|
62216
62199
|
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
62200
|
for (var oe = 0; G < Y; )
|
|
62218
|
-
|
|
62201
|
+
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
62202
|
E = 8;
|
|
62220
62203
|
}
|
|
62221
62204
|
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 +62348,7 @@ function GifReader(a) {
|
|
|
62365
62348
|
}, this.frameInfo = function(X) {
|
|
62366
62349
|
if (X < 0 || X >= p.length) throw new Error("Frame index out of range.");
|
|
62367
62350
|
return p[X];
|
|
62368
|
-
}, this.decodeAndBlitFrameBGRA = function(X,
|
|
62351
|
+
}, this.decodeAndBlitFrameBGRA = function(X, z) {
|
|
62369
62352
|
var G = this.frameInfo(X), J = G.width * G.height, ae = new Uint8Array(J);
|
|
62370
62353
|
GifReaderLZWOutputIndexStream(a, G.data_offset, ae, J);
|
|
62371
62354
|
var Ce = G.palette_offset, oe = G.transparent_index;
|
|
@@ -62378,11 +62361,11 @@ function GifReader(a) {
|
|
|
62378
62361
|
Ie += 4;
|
|
62379
62362
|
else {
|
|
62380
62363
|
var Ve = a[Ce + De * 3], Te = a[Ce + De * 3 + 1], He = a[Ce + De * 3 + 2];
|
|
62381
|
-
|
|
62364
|
+
z[Ie++] = He, z[Ie++] = Te, z[Ie++] = Ve, z[Ie++] = 255;
|
|
62382
62365
|
}
|
|
62383
62366
|
--Q;
|
|
62384
62367
|
}
|
|
62385
|
-
}, this.decodeAndBlitFrameRGBA = function(X,
|
|
62368
|
+
}, this.decodeAndBlitFrameRGBA = function(X, z) {
|
|
62386
62369
|
var G = this.frameInfo(X), J = G.width * G.height, ae = new Uint8Array(J);
|
|
62387
62370
|
GifReaderLZWOutputIndexStream(a, G.data_offset, ae, J);
|
|
62388
62371
|
var Ce = G.palette_offset, oe = G.transparent_index;
|
|
@@ -62392,10 +62375,10 @@ function GifReader(a) {
|
|
|
62392
62375
|
for (var _e = 8, pe = 0, Pe = ae.length; pe < Pe; ++pe) {
|
|
62393
62376
|
var De = ae[pe];
|
|
62394
62377
|
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
|
-
|
|
62378
|
+
z[Ie++] = 255, z[Ie++] = 255, z[Ie++] = 255, z[Ie++] = 255;
|
|
62396
62379
|
else {
|
|
62397
62380
|
var Ve = a[Ce + De * 3], Te = a[Ce + De * 3 + 1], He = a[Ce + De * 3 + 2];
|
|
62398
|
-
|
|
62381
|
+
z[Ie++] = Ve, z[Ie++] = Te, z[Ie++] = He, z[Ie++] = 255;
|
|
62399
62382
|
}
|
|
62400
62383
|
--Q;
|
|
62401
62384
|
}
|
|
@@ -62461,7 +62444,7 @@ function GifReaderLZWOutputIndexStream(a, t, r, o) {
|
|
|
62461
62444
|
*/
|
|
62462
62445
|
function JPEGEncoder(a) {
|
|
62463
62446
|
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
|
|
62447
|
+
function z(Te) {
|
|
62465
62448
|
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
62449
|
var le = t((He[we] * Te + 50) / 100);
|
|
62467
62450
|
le = Math.min(Math.max(le, 1), 255), r[M[we]] = le;
|
|
@@ -62620,7 +62603,7 @@ function JPEGEncoder(a) {
|
|
|
62620
62603
|
function De(Te) {
|
|
62621
62604
|
if (Te = Math.min(Math.max(Te, 1), 100), I != Te) {
|
|
62622
62605
|
var He = Te < 50 ? Math.floor(5e3 / Te) : Math.floor(200 - Te * 2);
|
|
62623
|
-
|
|
62606
|
+
z(He), I = Te;
|
|
62624
62607
|
}
|
|
62625
62608
|
}
|
|
62626
62609
|
function Ve() {
|
|
@@ -62777,13 +62760,13 @@ function WebPDecoder(a) {
|
|
|
62777
62760
|
if (Y[j + X] != U.charCodeAt(X)) return !0;
|
|
62778
62761
|
return !1;
|
|
62779
62762
|
}
|
|
62780
|
-
function o(Y, j, U, X,
|
|
62781
|
-
for (var G = 0; G <
|
|
62763
|
+
function o(Y, j, U, X, z) {
|
|
62764
|
+
for (var G = 0; G < z; G++)
|
|
62782
62765
|
Y[j + G] = U[X + G];
|
|
62783
62766
|
}
|
|
62784
62767
|
function n(Y, j, U, X) {
|
|
62785
|
-
for (var
|
|
62786
|
-
Y[j +
|
|
62768
|
+
for (var z = 0; z < X; z++)
|
|
62769
|
+
Y[j + z] = U;
|
|
62787
62770
|
}
|
|
62788
62771
|
function s(Y) {
|
|
62789
62772
|
return new Int32Array(Y);
|
|
@@ -62794,17 +62777,17 @@ function WebPDecoder(a) {
|
|
|
62794
62777
|
return U;
|
|
62795
62778
|
}
|
|
62796
62779
|
function c() {
|
|
62797
|
-
function Y(U, X,
|
|
62798
|
-
for (var G =
|
|
62799
|
-
Y(U[J], X + 1,
|
|
62780
|
+
function Y(U, X, z) {
|
|
62781
|
+
for (var G = z[X], J = 0; J < G && (U.push(z.length > X + 1 ? [] : 0), !(z.length < X + 1)); J++)
|
|
62782
|
+
Y(U[J], X + 1, z);
|
|
62800
62783
|
}
|
|
62801
62784
|
var j = [];
|
|
62802
62785
|
return Y(j, 0, [3, 11]), j;
|
|
62803
62786
|
}
|
|
62804
62787
|
function d(Y, j) {
|
|
62805
|
-
function U(
|
|
62806
|
-
for (var ae = J[G], Ce = 0; Ce < ae && (
|
|
62807
|
-
U(
|
|
62788
|
+
function U(z, G, J) {
|
|
62789
|
+
for (var ae = J[G], Ce = 0; Ce < ae && (z.push(J.length > G + 1 ? [] : new j()), !(J.length < G + 1)); Ce++)
|
|
62790
|
+
U(z[Ce], G + 1, J);
|
|
62808
62791
|
}
|
|
62809
62792
|
var X = [];
|
|
62810
62793
|
return U(X, 0, Y), X;
|
|
@@ -62822,7 +62805,7 @@ function WebPDecoder(a) {
|
|
|
62822
62805
|
O -= R, N[F + O] = K;
|
|
62823
62806
|
while (0 < O);
|
|
62824
62807
|
}
|
|
62825
|
-
function
|
|
62808
|
+
function z(N, F, R, O, K, te) {
|
|
62826
62809
|
var re = F, ie = 1 << R, de, fe, Ee = s(16), Oe = s(16);
|
|
62827
62810
|
for (t(K != 0), t(O != null), t(N != null), t(0 < R), fe = 0; fe < K; ++fe) {
|
|
62828
62811
|
if (15 < O[fe]) return 0;
|
|
@@ -62858,7 +62841,7 @@ function WebPDecoder(a) {
|
|
|
62858
62841
|
function G(N, F, R, O, K) {
|
|
62859
62842
|
if (t(2328 >= K), 512 >= K) var te = s(512);
|
|
62860
62843
|
else if (te = s(K), te == null) return 0;
|
|
62861
|
-
return
|
|
62844
|
+
return z(N, F, R, O, K, te);
|
|
62862
62845
|
}
|
|
62863
62846
|
function J() {
|
|
62864
62847
|
this.value = this.g = 0;
|
|
@@ -64097,11 +64080,11 @@ function WebPDecoder(a) {
|
|
|
64097
64080
|
function Vo() {
|
|
64098
64081
|
this.nc = this.Ea = this.b = this.hc = 0, this.K = [], this.w = 0;
|
|
64099
64082
|
}
|
|
64100
|
-
function
|
|
64083
|
+
function W() {
|
|
64101
64084
|
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
64085
|
}
|
|
64103
64086
|
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
|
|
64087
|
+
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
64088
|
}
|
|
64106
64089
|
function ye() {
|
|
64107
64090
|
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 +64662,8 @@ function WebPDecoder(a) {
|
|
|
64679
64662
|
WebPRiffParser dominikhlbg@gmail.com
|
|
64680
64663
|
*/
|
|
64681
64664
|
function f(Y, j, U, X) {
|
|
64682
|
-
for (var
|
|
64683
|
-
if (Y[j +
|
|
64665
|
+
for (var z = 0; z < X; z++)
|
|
64666
|
+
if (Y[j + z] != U.charCodeAt(z)) return !0;
|
|
64684
64667
|
return !1;
|
|
64685
64668
|
}
|
|
64686
64669
|
function p(Y, j) {
|
|
@@ -64698,7 +64681,7 @@ function WebPDecoder(a) {
|
|
|
64698
64681
|
return (Y[j + 0] << 0 | Y[j + 1] << 8 | Y[j + 2] << 16 | Y[j + 3] << 24) >>> 0;
|
|
64699
64682
|
}
|
|
64700
64683
|
function w(Y, j) {
|
|
64701
|
-
var U = {}, X = 0,
|
|
64684
|
+
var U = {}, X = 0, z = !1, G = 0, J = 0;
|
|
64702
64685
|
if (U.frames = [], !f(Y, j, "RIFF", 4)) {
|
|
64703
64686
|
for (j += 4, y(Y, j) + 8, j += 8; j < Y.length; ) {
|
|
64704
64687
|
var ae = p(Y, j);
|
|
@@ -64711,7 +64694,7 @@ function WebPDecoder(a) {
|
|
|
64711
64694
|
case "VP8L":
|
|
64712
64695
|
typeof U.frames[X] > "u" && (U.frames[X] = {});
|
|
64713
64696
|
var Q = U.frames[X];
|
|
64714
|
-
Q.src_off =
|
|
64697
|
+
Q.src_off = z ? J : j - 8, Q.src_size = G + Ce + 8, X++, z && (z = !1, G = 0, J = 0);
|
|
64715
64698
|
break;
|
|
64716
64699
|
case "VP8X":
|
|
64717
64700
|
var Q = U.header = {};
|
|
@@ -64720,7 +64703,7 @@ function WebPDecoder(a) {
|
|
|
64720
64703
|
Q.canvas_width = 1 + g(Y, me), me += 3, Q.canvas_height = 1 + g(Y, me), me += 3;
|
|
64721
64704
|
break;
|
|
64722
64705
|
case "ALPH":
|
|
64723
|
-
|
|
64706
|
+
z = !0, G = oe + 8, J = j - 8;
|
|
64724
64707
|
break;
|
|
64725
64708
|
case "ANIM":
|
|
64726
64709
|
var Q = U.header;
|
|
@@ -65250,7 +65233,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65250
65233
|
(function(a) {
|
|
65251
65234
|
function t() {
|
|
65252
65235
|
return function() {
|
|
65253
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65236
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-B9uQ5dNC.mjs");
|
|
65254
65237
|
}().catch(function(r) {
|
|
65255
65238
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65256
65239
|
}).then(function(r) {
|
|
@@ -65868,7 +65851,7 @@ end`, y;
|
|
|
65868
65851
|
_e++;
|
|
65869
65852
|
}
|
|
65870
65853
|
}
|
|
65871
|
-
},
|
|
65854
|
+
}, z = function(ae, Ce, oe) {
|
|
65872
65855
|
if (oe.hiLevel !== 0 && I)
|
|
65873
65856
|
for (var me = 0, ue; me < ae.length; me++)
|
|
65874
65857
|
Ce[me] === 1 && (ue = p.indexOf(ae[me]), ue >= 0 && (ae[me] = p[ue + 1]));
|
|
@@ -65876,7 +65859,7 @@ end`, y;
|
|
|
65876
65859
|
var me = ae.split(""), ue = {
|
|
65877
65860
|
hiLevel: M
|
|
65878
65861
|
};
|
|
65879
|
-
return oe || (oe = []), U(me, oe, ue),
|
|
65862
|
+
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
65863
|
};
|
|
65881
65864
|
return this.__bidiEngine__.doBidiReorder = function(J, ae, Ce) {
|
|
65882
65865
|
if (k(J, ae), !_ && E && !T)
|
|
@@ -66119,7 +66102,7 @@ var HeadTable = function(a) {
|
|
|
66119
66102
|
t.pos = m;
|
|
66120
66103
|
}
|
|
66121
66104
|
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,
|
|
66105
|
+
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
66106
|
switch (U = new Data(), l = Object.keys(t).sort(function(Ve, Te) {
|
|
66124
66107
|
return Ve - Te;
|
|
66125
66108
|
}), r) {
|
|
@@ -66142,8 +66125,8 @@ var HeadTable = function(a) {
|
|
|
66142
66125
|
maxGlyphID: w + 1
|
|
66143
66126
|
};
|
|
66144
66127
|
case "unicode":
|
|
66145
|
-
for (Y = [], p = [], D = 0, _ = {}, o = {}, C = u = null,
|
|
66146
|
-
n = l[
|
|
66128
|
+
for (Y = [], p = [], D = 0, _ = {}, o = {}, C = u = null, z = 0, Ce = l.length; z < Ce; z++)
|
|
66129
|
+
n = l[z], T = t[n], _[T] == null && (_[T] = ++D), o[n] = {
|
|
66147
66130
|
old: T,
|
|
66148
66131
|
new: _[T]
|
|
66149
66132
|
}, c = _[T] - n, (C == null || c !== u) && (C && p.push(C), Y.push(n), u = c), C = n;
|
|
@@ -66647,7 +66630,7 @@ class PrintController {
|
|
|
66647
66630
|
if (l.printStatus.printRange !== 2 && (d = l.vueController.getDocXml(!1, !0)), l.startPageNum = 0, l.firstPageStartTop = 0, !this._isSetFont) {
|
|
66648
66631
|
this._waitPrint = !0, Modal.info({
|
|
66649
66632
|
title: "提示",
|
|
66650
|
-
content: "<p
|
|
66633
|
+
content: "<p>打印所需文件正在加载中,请稍候再试!</p>",
|
|
66651
66634
|
okText: i18nHelper("04-001-009-EMR.3.3.347", null, "确定"),
|
|
66652
66635
|
onOk() {
|
|
66653
66636
|
}
|
|
@@ -67801,10 +67784,10 @@ function requireLocalforage() {
|
|
|
67801
67784
|
j(T[B], B);
|
|
67802
67785
|
return Y;
|
|
67803
67786
|
function j(U, X) {
|
|
67804
|
-
I.resolve(U).then(
|
|
67787
|
+
I.resolve(U).then(z, function(G) {
|
|
67805
67788
|
k || (k = !0, c.reject(Y, G));
|
|
67806
67789
|
});
|
|
67807
|
-
function
|
|
67790
|
+
function z(G) {
|
|
67808
67791
|
L[X] = G, ++H === M && !k && (k = !0, c.resolve(Y, L));
|
|
67809
67792
|
}
|
|
67810
67793
|
}
|
|
@@ -67993,7 +67976,7 @@ function requireLocalforage() {
|
|
|
67993
67976
|
}
|
|
67994
67977
|
return !1;
|
|
67995
67978
|
}
|
|
67996
|
-
function
|
|
67979
|
+
function z(ge) {
|
|
67997
67980
|
return new p(function(Ae, be) {
|
|
67998
67981
|
var ke = new FileReader();
|
|
67999
67982
|
ke.onerror = be, ke.onloadend = function(je) {
|
|
@@ -68156,7 +68139,7 @@ function requireLocalforage() {
|
|
|
68156
68139
|
var rt;
|
|
68157
68140
|
ke.ready().then(function() {
|
|
68158
68141
|
return rt = ke._dbInfo, D.call(Ae) === "[object Blob]" ? k(rt.db).then(function(ct) {
|
|
68159
|
-
return ct ? Ae :
|
|
68142
|
+
return ct ? Ae : z(Ae);
|
|
68160
68143
|
}) : Ae;
|
|
68161
68144
|
}).then(function(ct) {
|
|
68162
68145
|
oe(ke._dbInfo, T, function(at, ut) {
|
|
@@ -70389,10 +70372,10 @@ class DocController {
|
|
|
70389
70372
|
do
|
|
70390
70373
|
Y >= 0 && (j.set(Y, "old"), U.push(Y), Y = k.indexOf("(old)", Y + 5));
|
|
70391
70374
|
while (Y >= 0);
|
|
70392
|
-
U = U.sort((X,
|
|
70375
|
+
U = U.sort((X, z) => X - z);
|
|
70393
70376
|
for (let X = 0; X < U.length; X++) {
|
|
70394
|
-
const
|
|
70395
|
-
G.copyProperty(
|
|
70377
|
+
const z = a.docTree.styles[L], G = new TextStyle(this._hoEditorFactoryID);
|
|
70378
|
+
G.copyProperty(z, G), G.creatorIndex = void 0, G.deleterIndex = void 0, G.modifierIndex = void 0;
|
|
70396
70379
|
const J = j.get(U[X]);
|
|
70397
70380
|
if (J == "add") {
|
|
70398
70381
|
const ae = k.indexOf("(/add)", U[X]), Ce = k.substring(U[X] + 5, ae), me = new UserHistory(this._hoEditorFactoryID, HistoryEditType.hetCreate).userCompare();
|
|
@@ -72942,7 +72925,7 @@ class HOEditorFactory {
|
|
|
72942
72925
|
// 压缩xml
|
|
72943
72926
|
b(this, "compressJSONData", {});
|
|
72944
72927
|
b(this, "shiftKeyPress", !1);
|
|
72945
|
-
// 是否按下shift
|
|
72928
|
+
// 是否按下shift
|
|
72946
72929
|
b(this, "watermarkText", "");
|
|
72947
72930
|
// 水印内容
|
|
72948
72931
|
b(this, "isFixPrint", !1);
|
|
@@ -72952,9 +72935,11 @@ class HOEditorFactory {
|
|
|
72952
72935
|
b(this, "firstLoad", !1);
|
|
72953
72936
|
b(this, "isCreateBase64", !1);
|
|
72954
72937
|
b(this, "saveDocLog", !1);
|
|
72938
|
+
// 记录文档信息
|
|
72939
|
+
b(this, "drawRadioAndCheckBoxMode", 1);
|
|
72955
72940
|
this._hoEditorFactoryId = t;
|
|
72956
72941
|
}
|
|
72957
|
-
//
|
|
72942
|
+
// 绘制模式 1: 绘制文本 2: 绘制图标
|
|
72958
72943
|
/**
|
|
72959
72944
|
* Getter hoLocalStorage
|
|
72960
72945
|
* @return {HoLocalStorage}
|
|
@@ -73763,7 +73748,7 @@ var _sfc_render$16 = function a() {
|
|
|
73763
73748
|
t.innerIdentifier = o;
|
|
73764
73749
|
}, expression: "innerIdentifier" } }, t._l(t.innerIdentifierList, function(o) {
|
|
73765
73750
|
return r("a-select-option", { key: o.code, attrs: { value: o.code } }, [t._v(t._s(o.name))]);
|
|
73766
|
-
}), 1)], 1), r("li", { staticClass: "control-item" }, [r("span", { staticClass: "label" }, [t._v(i18nHelper("04-001-009-EMR.3.3.242", null, "内部标识符"))]), r("a-input", { attrs: { size: "small", placeholder: i18nHelper("04-001-009-EMR.3.3.242", null, "内部标识符") }, model: { value: t.innerIdentifier, callback: function(o) {
|
|
73751
|
+
}), 1)], 1), r("li", { staticClass: "control-item" }, [r("span", { staticClass: "label" }, [t._v(i18nHelper("04-001-009-EMR.3.3.242", null, "内部标识符"))]), r("a-input", { attrs: { size: "small", disabled: !0, placeholder: i18nHelper("04-001-009-EMR.3.3.242", null, "内部标识符") }, model: { value: t.innerIdentifier, callback: function(o) {
|
|
73767
73752
|
t.innerIdentifier = o;
|
|
73768
73753
|
}, expression: "innerIdentifier" } })], 1), r("li", { staticClass: "control-item" }, [r("span", { staticClass: "label" }, [t._v(i18nHelper("04-001-009-EMR.3.3.226", null, "文本内容"))]), r("a-input", { attrs: { clearable: "", "show-word-limit": "", size: "small", type: "textarea", placeholder: i18nHelper("04-001-009-EMR.3.3.226", null, "文本内容"), "max-length": 256, "auto-size": { minRows: 2, maxRows: 4 } }, on: { input: t.codeChange }, model: { value: t.textContent, callback: function(o) {
|
|
73769
73754
|
t.textContent = o;
|
|
@@ -78737,7 +78722,7 @@ function requireVueColor_min() {
|
|
|
78737
78722
|
for (var j = 0; j < Y.length; j++) {
|
|
78738
78723
|
var X = Y[j];
|
|
78739
78724
|
if (X.refs === 0) {
|
|
78740
|
-
for (var
|
|
78725
|
+
for (var z = 0; z < X.parts.length; z++) X.parts[z]();
|
|
78741
78726
|
delete m[X.id];
|
|
78742
78727
|
}
|
|
78743
78728
|
}
|
|
@@ -79087,9 +79072,9 @@ function requireVueColor_min() {
|
|
|
79087
79072
|
return function() {
|
|
79088
79073
|
return new D(this, Ce);
|
|
79089
79074
|
};
|
|
79090
|
-
}, Y = _ + " Iterator", j = T == "values", U = !1, X = C.prototype,
|
|
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 &&
|
|
79092
|
-
return
|
|
79075
|
+
}, 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;
|
|
79076
|
+
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() {
|
|
79077
|
+
return z.call(this);
|
|
79093
79078
|
}), 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
79079
|
else l(l.P + l.F * (w || U), _, k);
|
|
79095
79080
|
return k;
|
|
@@ -79400,7 +79385,7 @@ function requireVueColor_min() {
|
|
|
79400
79385
|
function s(oe) {
|
|
79401
79386
|
return oe && oe.__esModule ? oe : { default: oe };
|
|
79402
79387
|
}
|
|
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),
|
|
79388
|
+
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
79389
|
r.exports = Ce;
|
|
79405
79390
|
}, function(r, o, n) {
|
|
79406
79391
|
function s(g) {
|
|
@@ -79555,12 +79540,12 @@ function requireVueColor_min() {
|
|
|
79555
79540
|
function C(le, he) {
|
|
79556
79541
|
he = he === 0 ? 0 : he || 10;
|
|
79557
79542
|
var $ = c(le).toHsl();
|
|
79558
|
-
return $.s -= he / 100, $.s =
|
|
79543
|
+
return $.s -= he / 100, $.s = z($.s), c($);
|
|
79559
79544
|
}
|
|
79560
79545
|
function _(le, he) {
|
|
79561
79546
|
he = he === 0 ? 0 : he || 10;
|
|
79562
79547
|
var $ = c(le).toHsl();
|
|
79563
|
-
return $.s += he / 100, $.s =
|
|
79548
|
+
return $.s += he / 100, $.s = z($.s), c($);
|
|
79564
79549
|
}
|
|
79565
79550
|
function D(le) {
|
|
79566
79551
|
return c(le).desaturate(100);
|
|
@@ -79568,7 +79553,7 @@ function requireVueColor_min() {
|
|
|
79568
79553
|
function E(le, he) {
|
|
79569
79554
|
he = he === 0 ? 0 : he || 10;
|
|
79570
79555
|
var $ = c(le).toHsl();
|
|
79571
|
-
return $.l += he / 100, $.l =
|
|
79556
|
+
return $.l += he / 100, $.l = z($.l), c($);
|
|
79572
79557
|
}
|
|
79573
79558
|
function T(le, he) {
|
|
79574
79559
|
he = he === 0 ? 0 : he || 10;
|
|
@@ -79578,7 +79563,7 @@ function requireVueColor_min() {
|
|
|
79578
79563
|
function I(le, he) {
|
|
79579
79564
|
he = he === 0 ? 0 : he || 10;
|
|
79580
79565
|
var $ = c(le).toHsl();
|
|
79581
|
-
return $.l -= he / 100, $.l =
|
|
79566
|
+
return $.l -= he / 100, $.l = z($.l), c($);
|
|
79582
79567
|
}
|
|
79583
79568
|
function M(le, he) {
|
|
79584
79569
|
var $ = c(le).toHsl(), Ne = ($.h + he) % 360;
|
|
@@ -79619,7 +79604,7 @@ function requireVueColor_min() {
|
|
|
79619
79604
|
var $ = ae(le);
|
|
79620
79605
|
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
79606
|
}
|
|
79622
|
-
function
|
|
79607
|
+
function z(le) {
|
|
79623
79608
|
return Pe(1, De(0, le));
|
|
79624
79609
|
}
|
|
79625
79610
|
function G(le) {
|
|
@@ -80192,7 +80177,7 @@ function requireVueColor_min() {
|
|
|
80192
80177
|
}, function(r, o, n) {
|
|
80193
80178
|
n(102), n(108), n(109), n(110), r.exports = n(24).Symbol;
|
|
80194
80179
|
}, 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,
|
|
80180
|
+
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
80181
|
return k(U({}, "a", { get: function() {
|
|
80197
80182
|
return U(this, "a", { value: 7 }).a;
|
|
80198
80183
|
} })).a != 7;
|
|
@@ -80200,12 +80185,12 @@ function requireVueColor_min() {
|
|
|
80200
80185
|
var ht = j(ne, ze);
|
|
80201
80186
|
ht && delete ne[ze], U(Me, ze, ot), ht && Me !== ne && U(ne, ze, ht);
|
|
80202
80187
|
} : U, pe = function(Me) {
|
|
80203
|
-
var ze = ue[Me] = k(
|
|
80188
|
+
var ze = ue[Me] = k(z.prototype);
|
|
80204
80189
|
return ze._k = Me, ze;
|
|
80205
|
-
}, Pe = xe && typeof
|
|
80190
|
+
}, Pe = xe && typeof z.iterator == "symbol" ? function(Me) {
|
|
80206
80191
|
return typeof Me == "symbol";
|
|
80207
80192
|
} : function(Me) {
|
|
80208
|
-
return Me instanceof
|
|
80193
|
+
return Me instanceof z;
|
|
80209
80194
|
}, De = function(Me, ze, ot) {
|
|
80210
80195
|
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
80196
|
}, Ve = function(Me, ze) {
|
|
@@ -80229,21 +80214,21 @@ function requireVueColor_min() {
|
|
|
80229
80214
|
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
80215
|
return bt;
|
|
80231
80216
|
};
|
|
80232
|
-
xe || (
|
|
80233
|
-
if (this instanceof
|
|
80217
|
+
xe || (z = function() {
|
|
80218
|
+
if (this instanceof z) throw TypeError("Symbol is not a constructor!");
|
|
80234
80219
|
var Me = y(arguments.length > 0 ? arguments[0] : void 0), ze = function(ot) {
|
|
80235
80220
|
this === ne && ze.call(Q, ot), l(this, ae) && l(this[ae], Me) && (this[ae][Me] = !1), _e(this, Me, M(1, ot));
|
|
80236
80221
|
};
|
|
80237
80222
|
return c && ve && _e(ne, Me, { configurable: !0, set: ze }), pe(Me);
|
|
80238
|
-
}, u(
|
|
80223
|
+
}, u(z.prototype, "toString", function() {
|
|
80239
80224
|
return this._k;
|
|
80240
80225
|
}), 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
80226
|
return pe(w(Me));
|
|
80242
|
-
}), d(d.G + d.W + d.F * !xe, { Symbol:
|
|
80227
|
+
}), d(d.G + d.W + d.F * !xe, { Symbol: z });
|
|
80243
80228
|
for (var $ = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), Ne = 0; $.length > Ne; ) w($[Ne++]);
|
|
80244
80229
|
for (var Be = Y(w.store), Qe = 0; Be.length > Qe; ) C(Be[Qe++]);
|
|
80245
80230
|
d(d.S + d.F * !xe, "Symbol", { for: function(Me) {
|
|
80246
|
-
return l(me, Me += "") ? me[Me] : me[Me] =
|
|
80231
|
+
return l(me, Me += "") ? me[Me] : me[Me] = z(Me);
|
|
80247
80232
|
}, keyFor: function(Me) {
|
|
80248
80233
|
if (!Pe(Me)) throw TypeError(Me + " is not a symbol!");
|
|
80249
80234
|
for (var ze in me) if (me[ze] === Me) return ze;
|
|
@@ -80252,7 +80237,7 @@ function requireVueColor_min() {
|
|
|
80252
80237
|
}, useSimple: function() {
|
|
80253
80238
|
ve = !1;
|
|
80254
80239
|
} }), 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 =
|
|
80240
|
+
var Me = z();
|
|
80256
80241
|
return J([Me]) != "[null]" || J({ a: Me }) != "{}" || J(Object(Me)) != "{}";
|
|
80257
80242
|
})), "JSON", { stringify: function(Me) {
|
|
80258
80243
|
if (Me !== void 0 && !Pe(Me)) {
|
|
@@ -80261,7 +80246,7 @@ function requireVueColor_min() {
|
|
|
80261
80246
|
if (ot && (_t = ot.call(this, gt, _t)), !Pe(_t)) return _t;
|
|
80262
80247
|
}), ht[1] = ze, J.apply(G, ht);
|
|
80263
80248
|
}
|
|
80264
|
-
} }),
|
|
80249
|
+
} }), z.prototype[Ce] || n(7)(z.prototype, Ce, z.prototype.valueOf), g(z, "Symbol"), g(Math, "Math", !0), g(s.JSON, "JSON", !0);
|
|
80265
80250
|
}, function(r, o, n) {
|
|
80266
80251
|
var s = n(17)("meta"), l = n(14), c = n(6), d = n(8).f, u = 0, f = Object.isExtensible || function() {
|
|
80267
80252
|
return !0;
|
|
@@ -80762,13 +80747,13 @@ function requireVueColor_min() {
|
|
|
80762
80747
|
var Ve = De - Ie, Te = De - ve, He = B - Ve;
|
|
80763
80748
|
return pe ? k(He, Q - Te) : He;
|
|
80764
80749
|
}
|
|
80765
|
-
function
|
|
80750
|
+
function z(De) {
|
|
80766
80751
|
var Ve = De - Ie, Te = De - ve;
|
|
80767
80752
|
return Ie === void 0 || Ve >= B || Ve < 0 || pe && Te >= Q;
|
|
80768
80753
|
}
|
|
80769
80754
|
function G() {
|
|
80770
80755
|
var De = L();
|
|
80771
|
-
if (
|
|
80756
|
+
if (z(De)) return J(De);
|
|
80772
80757
|
xe = setTimeout(G, X(De));
|
|
80773
80758
|
}
|
|
80774
80759
|
function J(De) {
|
|
@@ -80781,7 +80766,7 @@ function requireVueColor_min() {
|
|
|
80781
80766
|
return xe === void 0 ? ne : J(L());
|
|
80782
80767
|
}
|
|
80783
80768
|
function oe() {
|
|
80784
|
-
var De = L(), Ve =
|
|
80769
|
+
var De = L(), Ve = z(De);
|
|
80785
80770
|
if (me = arguments, ue = this, Ie = De, Ve) {
|
|
80786
80771
|
if (xe === void 0) return U(Ie);
|
|
80787
80772
|
if (pe) return xe = setTimeout(G, B), j(Ie);
|
|
@@ -87891,10 +87876,10 @@ const HoRightMenu = __component__$1.exports, _sfc_main = defineComponent({
|
|
|
87891
87876
|
D: H.d
|
|
87892
87877
|
}) : H instanceof GestationNode ? (L.controlType = "gestation", L.controlStatus = "update", L.expressStyle = "") : (L.controlType = "", L.controlStatus = "add");
|
|
87893
87878
|
}, s = () => {
|
|
87894
|
-
var
|
|
87879
|
+
var z, G;
|
|
87895
87880
|
let H = null;
|
|
87896
87881
|
const B = HOEditorFactorys.instance().getFactory(L.activeDocId), Y = B.drawTree.selectRange.spStart, j = B.drawTree.selectRange.spEnd;
|
|
87897
|
-
let U = (
|
|
87882
|
+
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
87883
|
if (U instanceof MarkNode || U instanceof TextInputFieldNode) {
|
|
87899
87884
|
const J = U.parentNode;
|
|
87900
87885
|
J instanceof TextInputFieldNode ? H = J : H = U;
|