hoeditor-web 3.3.3-beta.7 → 3.3.3-beta.9
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
|
}
|
|
@@ -9406,8 +9406,8 @@ class DrawRadioAndCheckBox extends DrawCombineNode {
|
|
|
9406
9406
|
p.getStyleKey(),
|
|
9407
9407
|
p.color
|
|
9408
9408
|
), p.size <= 12 || p.size <= 16 || p.size <= 22, l === "CheckBox" ? this._dBox = new createjs$1.Text(
|
|
9409
|
-
//"\u00FE",
|
|
9410
|
-
//fontSize.toString() + "px wingdings",
|
|
9409
|
+
// "\u00FE",
|
|
9410
|
+
// fontSize.toString() + "px wingdings",
|
|
9411
9411
|
"☐",
|
|
9412
9412
|
p.getStyleKey(),
|
|
9413
9413
|
p.color
|
|
@@ -9468,30 +9468,30 @@ class DrawRadioAndCheckBox extends DrawCombineNode {
|
|
|
9468
9468
|
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());
|
|
9469
9469
|
}
|
|
9470
9470
|
drawBox() {
|
|
9471
|
-
let r
|
|
9472
|
-
this.textStyle.size <= 12
|
|
9473
|
-
"
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9471
|
+
let r;
|
|
9472
|
+
this.textStyle.size <= 12 || this.textStyle.size <= 16 || this.textStyle.size <= 22, this.controlStyle === "CheckBox" ? this.isSelected ? r = new createjs$1.Text(
|
|
9473
|
+
// "\u00FE",
|
|
9474
|
+
// fontSize.toString() + "px wingdings",
|
|
9475
|
+
"☑",
|
|
9476
|
+
this.textStyle.getStyleKey(),
|
|
9477
9477
|
this.textStyle.color
|
|
9478
9478
|
) : r = new createjs$1.Text(
|
|
9479
|
-
"
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9479
|
+
// "\u00A8",
|
|
9480
|
+
// fontSize.toString() + "px wingdings",
|
|
9481
|
+
"☐",
|
|
9482
|
+
this.textStyle.getStyleKey(),
|
|
9483
9483
|
this.textStyle.color
|
|
9484
9484
|
) : this.isSelected ? r = new createjs$1.Text(
|
|
9485
|
-
"
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9485
|
+
// "\u00A4",
|
|
9486
|
+
// fontSize.toString() + "px wingdings",
|
|
9487
|
+
"◉",
|
|
9488
|
+
this.textStyle.getStyleKey(),
|
|
9489
9489
|
this.textStyle.color
|
|
9490
9490
|
) : r = new createjs$1.Text(
|
|
9491
|
-
"
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9491
|
+
// "\u00A1",
|
|
9492
|
+
// fontSize.toString() + "px wingdings",
|
|
9493
|
+
"○",
|
|
9494
|
+
this.textStyle.getStyleKey(),
|
|
9495
9495
|
this.textStyle.color
|
|
9496
9496
|
), 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);
|
|
9497
9497
|
}
|
|
@@ -11544,24 +11544,24 @@ class DrawPageTable extends DrawRect {
|
|
|
11544
11544
|
k,
|
|
11545
11545
|
X
|
|
11546
11546
|
), T.drawCell.drawPageCells.push(B), B.y = U, M > 0 && (B.x = Y), this.addChild(B);
|
|
11547
|
-
const
|
|
11547
|
+
const z = B.update(
|
|
11548
11548
|
H,
|
|
11549
11549
|
T.drawCell.drawLines,
|
|
11550
11550
|
k,
|
|
11551
11551
|
B.valignTop,
|
|
11552
11552
|
X
|
|
11553
11553
|
);
|
|
11554
|
-
B.y = U, _ = _ &&
|
|
11554
|
+
B.y = U, _ = _ && z;
|
|
11555
11555
|
} 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) {
|
|
11556
11556
|
T.drawCell.needUpdate || (T.drawCell.needUpdate = !0), C === I ? (B.maxHeight = s, B.dHeight = Math.min(m, s)) : B.maxHeight = u - U, g = !0;
|
|
11557
|
-
const
|
|
11557
|
+
const z = B.update(
|
|
11558
11558
|
H,
|
|
11559
11559
|
T.drawCell.drawLines,
|
|
11560
11560
|
k,
|
|
11561
11561
|
B.valignTop,
|
|
11562
11562
|
X
|
|
11563
11563
|
);
|
|
11564
|
-
_ = _ &&
|
|
11564
|
+
_ = _ && z;
|
|
11565
11565
|
} else T.drawCell.drawPageCells.length > 1 && L + 1 < T.drawCell.drawPageCells.length - 1 && !this._table.rowInfos[C].rowProperty.repeatAsTitleAtPageTop && (_ = !1);
|
|
11566
11566
|
}
|
|
11567
11567
|
}
|
|
@@ -15270,7 +15270,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
15270
15270
|
}
|
|
15271
15271
|
}
|
|
15272
15272
|
}
|
|
15273
|
-
const version = "3.3.3-beta.
|
|
15273
|
+
const version = "3.3.3-beta.9";
|
|
15274
15274
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
15275
15275
|
class SignNode extends BaseNode {
|
|
15276
15276
|
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) {
|
|
@@ -15550,7 +15550,9 @@ class SignNode extends BaseNode {
|
|
|
15550
15550
|
return o.addChild(u), o.drawItems.push(u), o.fitLines(), o.updateLineStyle(), o.paragraphNode.getLastDrawline();
|
|
15551
15551
|
}
|
|
15552
15552
|
node2Json(t, r, o, n) {
|
|
15553
|
-
const s =
|
|
15553
|
+
const s = n ? new Object() : this.customProperty;
|
|
15554
|
+
s.elementDataId = this.customProperty.elementDataId || "";
|
|
15555
|
+
const l = {
|
|
15554
15556
|
nodeType: NodeType$1[this.nodeType],
|
|
15555
15557
|
number: n ? 0 : this.number,
|
|
15556
15558
|
type: n ? 0 : this.type,
|
|
@@ -15564,7 +15566,7 @@ class SignNode extends BaseNode {
|
|
|
15564
15566
|
imgSrc: n ? "" : this.imgSrc,
|
|
15565
15567
|
imgWidth: n ? 0 : this.imgWidth,
|
|
15566
15568
|
imgHeight: n ? 0 : this.imgHeight,
|
|
15567
|
-
customProperty:
|
|
15569
|
+
customProperty: s,
|
|
15568
15570
|
isTemplate: this.isTemplate,
|
|
15569
15571
|
isTemp: this.isTemp,
|
|
15570
15572
|
styleIndex: this.styleIndex,
|
|
@@ -15578,8 +15580,8 @@ class SignNode extends BaseNode {
|
|
|
15578
15580
|
otherProperties: this.otherProperties,
|
|
15579
15581
|
innerIdentifier: this.innerIdentifier
|
|
15580
15582
|
};
|
|
15581
|
-
return
|
|
15582
|
-
SignNode:
|
|
15583
|
+
return l.imgSrc.substring(0, 4) == "http" && (l.imgSrc = l.imgSrc.replace(`?_=${version}`, "")), this.associatedElement && (l.associatedElement = this.associatedElement), r ? l : {
|
|
15584
|
+
SignNode: l
|
|
15583
15585
|
};
|
|
15584
15586
|
}
|
|
15585
15587
|
static json2Node(t, r, o, n, s, l) {
|
|
@@ -15652,7 +15654,7 @@ function requireQrcode() {
|
|
|
15652
15654
|
return hasRequiredQrcode || (hasRequiredQrcode = 1, function(a, t) {
|
|
15653
15655
|
var r = function() {
|
|
15654
15656
|
var o = function(T, I) {
|
|
15655
|
-
var M = 236, k = 17, L = T, H = s[I], B = null, Y = 0, j = null, U = [], X = {},
|
|
15657
|
+
var M = 236, k = 17, L = T, H = s[I], B = null, Y = 0, j = null, U = [], X = {}, z = function(ve, _e) {
|
|
15656
15658
|
Y = L * 4 + 17, B = function(pe) {
|
|
15657
15659
|
for (var Pe = new Array(pe), De = 0; De < pe; De += 1) {
|
|
15658
15660
|
Pe[De] = new Array(pe);
|
|
@@ -15668,7 +15670,7 @@ function requireQrcode() {
|
|
|
15668
15670
|
_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);
|
|
15669
15671
|
}, J = function() {
|
|
15670
15672
|
for (var ve = 0, _e = 0, pe = 0; pe < 8; pe += 1) {
|
|
15671
|
-
|
|
15673
|
+
z(!0, pe);
|
|
15672
15674
|
var Pe = c.getLostPoint(X);
|
|
15673
15675
|
(pe == 0 || ve > Pe) && (ve = Pe, _e = pe);
|
|
15674
15676
|
}
|
|
@@ -15799,7 +15801,7 @@ function requireQrcode() {
|
|
|
15799
15801
|
}
|
|
15800
15802
|
L = ve;
|
|
15801
15803
|
}
|
|
15802
|
-
|
|
15804
|
+
z(!1, J());
|
|
15803
15805
|
}, X.createTableTag = function(ve, _e) {
|
|
15804
15806
|
ve = ve || 2, _e = typeof _e > "u" ? ve * 4 : _e;
|
|
15805
15807
|
var pe = "";
|
|
@@ -15915,7 +15917,7 @@ function requireQrcode() {
|
|
|
15915
15917
|
}, B = 0, Y = {}; ; ) {
|
|
15916
15918
|
var j = L.read();
|
|
15917
15919
|
if (j == -1) break;
|
|
15918
|
-
var U = H(), X = H(),
|
|
15920
|
+
var U = H(), X = H(), z = H(), G = String.fromCharCode(j << 8 | U), J = X << 8 | z;
|
|
15919
15921
|
Y[G] = J, B += 1;
|
|
15920
15922
|
}
|
|
15921
15923
|
if (B != I)
|
|
@@ -16097,11 +16099,11 @@ function requireQrcode() {
|
|
|
16097
16099
|
}, L.getLostPoint = function(B) {
|
|
16098
16100
|
for (var Y = B.getModuleCount(), j = 0, U = 0; U < Y; U += 1)
|
|
16099
16101
|
for (var X = 0; X < Y; X += 1) {
|
|
16100
|
-
for (var
|
|
16102
|
+
for (var z = 0, G = B.isDark(U, X), J = -1; J <= 1; J += 1)
|
|
16101
16103
|
if (!(U + J < 0 || Y <= U + J))
|
|
16102
16104
|
for (var ae = -1; ae <= 1; ae += 1)
|
|
16103
|
-
X + ae < 0 || Y <= X + ae || J == 0 && ae == 0 || G == B.isDark(U + J, X + ae) && (
|
|
16104
|
-
|
|
16105
|
+
X + ae < 0 || Y <= X + ae || J == 0 && ae == 0 || G == B.isDark(U + J, X + ae) && (z += 1);
|
|
16106
|
+
z > 5 && (j += 3 + z - 5);
|
|
16105
16107
|
}
|
|
16106
16108
|
for (var U = 0; U < Y - 1; U += 1)
|
|
16107
16109
|
for (var X = 0; X < Y - 1; X += 1) {
|
|
@@ -16397,8 +16399,8 @@ function requireQrcode() {
|
|
|
16397
16399
|
if (typeof B > "u")
|
|
16398
16400
|
throw "bad rs block @ typeNumber:" + L + "/errorCorrectionLevel:" + H;
|
|
16399
16401
|
for (var Y = B.length / 3, j = [], U = 0; U < Y; U += 1)
|
|
16400
|
-
for (var X = B[U * 3 + 0],
|
|
16401
|
-
j.push(I(
|
|
16402
|
+
for (var X = B[U * 3 + 0], z = B[U * 3 + 1], G = B[U * 3 + 2], J = 0; J < X; J += 1)
|
|
16403
|
+
j.push(I(z, G));
|
|
16402
16404
|
return j;
|
|
16403
16405
|
}, M;
|
|
16404
16406
|
}(), p = function() {
|
|
@@ -16604,31 +16606,31 @@ function requireQrcode() {
|
|
|
16604
16606
|
return H;
|
|
16605
16607
|
}, D = function(T, I) {
|
|
16606
16608
|
var M = T, k = I, L = new Array(T * I), H = {};
|
|
16607
|
-
H.setPixel = function(U, X,
|
|
16608
|
-
L[X * M + U] =
|
|
16609
|
+
H.setPixel = function(U, X, z) {
|
|
16610
|
+
L[X * M + U] = z;
|
|
16609
16611
|
}, H.write = function(U) {
|
|
16610
16612
|
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);
|
|
16611
|
-
var X = 2,
|
|
16613
|
+
var X = 2, z = Y(X);
|
|
16612
16614
|
U.writeByte(X);
|
|
16613
|
-
for (var G = 0;
|
|
16614
|
-
U.writeByte(255), U.writeBytes(
|
|
16615
|
-
U.writeByte(
|
|
16615
|
+
for (var G = 0; z.length - G > 255; )
|
|
16616
|
+
U.writeByte(255), U.writeBytes(z, G, 255), G += 255;
|
|
16617
|
+
U.writeByte(z.length - G), U.writeBytes(z, G, z.length - G), U.writeByte(0), U.writeString(";");
|
|
16616
16618
|
};
|
|
16617
16619
|
var B = function(U) {
|
|
16618
|
-
var X = U,
|
|
16620
|
+
var X = U, z = 0, G = 0, J = {};
|
|
16619
16621
|
return J.write = function(ae, Ce) {
|
|
16620
16622
|
if (ae >>> Ce)
|
|
16621
16623
|
throw "length over";
|
|
16622
|
-
for (;
|
|
16623
|
-
X.writeByte(255 & (ae <<
|
|
16624
|
-
G = ae <<
|
|
16624
|
+
for (; z + Ce >= 8; )
|
|
16625
|
+
X.writeByte(255 & (ae << z | G)), Ce -= 8 - z, ae >>>= 8 - z, G = 0, z = 0;
|
|
16626
|
+
G = ae << z | G, z = z + Ce;
|
|
16625
16627
|
}, J.flush = function() {
|
|
16626
|
-
|
|
16628
|
+
z > 0 && X.writeByte(G);
|
|
16627
16629
|
}, J;
|
|
16628
16630
|
}, Y = function(U) {
|
|
16629
|
-
for (var X = 1 << U,
|
|
16631
|
+
for (var X = 1 << U, z = (1 << U) + 1, G = U + 1, J = j(), ae = 0; ae < X; ae += 1)
|
|
16630
16632
|
J.add(String.fromCharCode(ae));
|
|
16631
|
-
J.add(String.fromCharCode(X)), J.add(String.fromCharCode(
|
|
16633
|
+
J.add(String.fromCharCode(X)), J.add(String.fromCharCode(z));
|
|
16632
16634
|
var Ce = v(), oe = B(Ce);
|
|
16633
16635
|
oe.write(X, G);
|
|
16634
16636
|
var me = 0, ue = String.fromCharCode(L[me]);
|
|
@@ -16636,20 +16638,20 @@ function requireQrcode() {
|
|
|
16636
16638
|
var Q = String.fromCharCode(L[me]);
|
|
16637
16639
|
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);
|
|
16638
16640
|
}
|
|
16639
|
-
return oe.write(J.indexOf(ue), G), oe.write(
|
|
16641
|
+
return oe.write(J.indexOf(ue), G), oe.write(z, G), oe.flush(), Ce.toByteArray();
|
|
16640
16642
|
}, j = function() {
|
|
16641
|
-
var U = {}, X = 0,
|
|
16642
|
-
return
|
|
16643
|
-
if (
|
|
16643
|
+
var U = {}, X = 0, z = {};
|
|
16644
|
+
return z.add = function(G) {
|
|
16645
|
+
if (z.contains(G))
|
|
16644
16646
|
throw "dup key:" + G;
|
|
16645
16647
|
U[G] = X, X += 1;
|
|
16646
|
-
},
|
|
16648
|
+
}, z.size = function() {
|
|
16647
16649
|
return X;
|
|
16648
|
-
},
|
|
16650
|
+
}, z.indexOf = function(G) {
|
|
16649
16651
|
return U[G];
|
|
16650
|
-
},
|
|
16652
|
+
}, z.contains = function(G) {
|
|
16651
16653
|
return typeof U[G] < "u";
|
|
16652
|
-
},
|
|
16654
|
+
}, z;
|
|
16653
16655
|
};
|
|
16654
16656
|
return H;
|
|
16655
16657
|
}, E = function(T, I, M) {
|
|
@@ -16781,7 +16783,7 @@ function drawText(a, t) {
|
|
|
16781
16783
|
for (var ne = 0; ne < 4; ne += 1)
|
|
16782
16784
|
B[Q + ne] = D[ne];
|
|
16783
16785
|
});
|
|
16784
|
-
},
|
|
16786
|
+
}, z = 0; z < m; z += 1)
|
|
16785
16787
|
X();
|
|
16786
16788
|
_.putImageData(H, 0, 0);
|
|
16787
16789
|
}()), C;
|
|
@@ -16926,8 +16928,8 @@ var DEFAULTS = {
|
|
|
16926
16928
|
}, this.cache), this.options.effect), f) {
|
|
16927
16929
|
var L = _extends$2({}, f);
|
|
16928
16930
|
if (!f.w && !f.h && !f.cols && !f.rows) {
|
|
16929
|
-
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),
|
|
16930
|
-
L.w =
|
|
16931
|
+
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;
|
|
16932
|
+
L.w = z, L.h = X, L.x = G, L.y = J;
|
|
16931
16933
|
}
|
|
16932
16934
|
y(D, L, {
|
|
16933
16935
|
clear: !1
|
|
@@ -18502,27 +18504,27 @@ class TableNode extends RectNode {
|
|
|
18502
18504
|
let s = this.range();
|
|
18503
18505
|
t && (s = this.mixed(t));
|
|
18504
18506
|
const l = (X) => {
|
|
18505
|
-
let
|
|
18507
|
+
let z = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(X).node;
|
|
18506
18508
|
for (; ; ) {
|
|
18507
|
-
if (!
|
|
18508
|
-
if (
|
|
18509
|
-
if (
|
|
18510
|
-
return
|
|
18511
|
-
|
|
18509
|
+
if (!z) throw Exception.NodeNotFound();
|
|
18510
|
+
if (z instanceof CellNode) {
|
|
18511
|
+
if (z.table == this)
|
|
18512
|
+
return z;
|
|
18513
|
+
z = z.parentNode;
|
|
18512
18514
|
continue;
|
|
18513
18515
|
} else {
|
|
18514
|
-
|
|
18516
|
+
z = z.parentNode;
|
|
18515
18517
|
continue;
|
|
18516
18518
|
}
|
|
18517
18519
|
}
|
|
18518
18520
|
}, c = l(s.from), d = l(s.to), u = { col: 0, row: 0 }, f = { col: 0, row: 0 };
|
|
18519
18521
|
if (c && c instanceof CellNode) {
|
|
18520
|
-
const [X,
|
|
18521
|
-
u.col =
|
|
18522
|
+
const [X, z] = c.table.getCellInfos(c);
|
|
18523
|
+
u.col = z, u.row = X;
|
|
18522
18524
|
}
|
|
18523
18525
|
if (d && d instanceof CellNode) {
|
|
18524
|
-
const [X,
|
|
18525
|
-
f.col =
|
|
18526
|
+
const [X, z] = d.table.getCellInfos(d);
|
|
18527
|
+
f.col = z, f.row = X;
|
|
18526
18528
|
}
|
|
18527
18529
|
const p = {
|
|
18528
18530
|
customProperties: "",
|
|
@@ -18542,27 +18544,27 @@ class TableNode extends RectNode {
|
|
|
18542
18544
|
let y = this.rowInfos.length - 1, w = this.colInfos.length - 1;
|
|
18543
18545
|
r && (y = f.row, w = f.col, d.colSpan > 1 && (w = f.col + d.colSpan - 1));
|
|
18544
18546
|
for (let X = u.row; X <= y; X++) {
|
|
18545
|
-
const
|
|
18546
|
-
customProperties: { customProperty: Array(
|
|
18547
|
+
const z = this.rowInfos[X], J = {
|
|
18548
|
+
customProperties: { customProperty: Array(z.rowProperty.customProperties) },
|
|
18547
18549
|
//dataSource: rowInfo.rowProperty.dataSource,
|
|
18548
|
-
forcedPageBreak:
|
|
18550
|
+
forcedPageBreak: z.rowProperty.forcedPageBreak,
|
|
18549
18551
|
//isAutoRaiseHeight: rowInfo.rowProperty.isAutoRaiseHeight,
|
|
18550
|
-
isSpecifyHeight:
|
|
18551
|
-
printCellBg:
|
|
18552
|
-
printCellBorders:
|
|
18553
|
-
repeatAsTitleAtPageTop:
|
|
18554
|
-
rowHeight:
|
|
18555
|
-
sameLineCanAcrossPages:
|
|
18556
|
-
tabKeyInsNewLine:
|
|
18557
|
-
isLockRowHeight:
|
|
18558
|
-
newLineWithCellContent:
|
|
18559
|
-
withFormula:
|
|
18560
|
-
isSignLock:
|
|
18552
|
+
isSpecifyHeight: z.rowProperty.isSpecifyHeight,
|
|
18553
|
+
printCellBg: z.rowProperty.printCellBg,
|
|
18554
|
+
printCellBorders: z.rowProperty.printCellBorders,
|
|
18555
|
+
repeatAsTitleAtPageTop: z.rowProperty.repeatAsTitleAtPageTop,
|
|
18556
|
+
rowHeight: z.rowProperty.rowHeight,
|
|
18557
|
+
sameLineCanAcrossPages: z.rowProperty.sameLineCanAcrossPages,
|
|
18558
|
+
tabKeyInsNewLine: z.rowProperty.tabKeyInsNewLine,
|
|
18559
|
+
isLockRowHeight: z.rowProperty.isLockRowHeight,
|
|
18560
|
+
newLineWithCellContent: z.rowProperty.newLineWithCellContent,
|
|
18561
|
+
withFormula: z.rowProperty.withFormula,
|
|
18562
|
+
isSignLock: z.rowProperty.isSignLock
|
|
18561
18563
|
}, ae = JSON.parse(JSON.stringify(J)), Ce = Object.keys(p);
|
|
18562
18564
|
for (let me = 0; me < Ce.length; me++)
|
|
18563
|
-
Ce[me] === "customProperties" ?
|
|
18565
|
+
Ce[me] === "customProperties" ? z.rowProperty.customProperties.length === 0 && delete ae.customProperties : ae[Ce[me]] === m[Ce[me]] && delete ae[Ce[me]];
|
|
18564
18566
|
const oe = {
|
|
18565
|
-
rowHeight:
|
|
18567
|
+
rowHeight: z.rowHeight
|
|
18566
18568
|
//heightFixed: rowInfo.heightFixed,
|
|
18567
18569
|
//rowBaseDTop: rowInfo.rowBaseDTop,
|
|
18568
18570
|
//rowProperty: rowPropertyJson
|
|
@@ -18584,31 +18586,31 @@ class TableNode extends RectNode {
|
|
|
18584
18586
|
addWithDefaultValue: !1
|
|
18585
18587
|
}, C = JSON.parse(JSON.stringify(v)), _ = new Array();
|
|
18586
18588
|
for (let X = u.col; X <= w; X++) {
|
|
18587
|
-
const
|
|
18588
|
-
editorProperty: EditorProperty[
|
|
18589
|
-
align: VAlign[
|
|
18590
|
-
width:
|
|
18591
|
-
specifyWidth:
|
|
18592
|
-
downListProperty:
|
|
18593
|
-
dateTimeProperty:
|
|
18594
|
-
numberProperty:
|
|
18595
|
-
signProperty:
|
|
18589
|
+
const z = this.colInfos[X], G = { customProperty: Array(z.colProperty.customProperties) }, J = {
|
|
18590
|
+
editorProperty: EditorProperty[z.colProperty.editorProperty],
|
|
18591
|
+
align: VAlign[z.colProperty.align],
|
|
18592
|
+
width: z.colProperty.width ? z.colProperty.width : 0,
|
|
18593
|
+
specifyWidth: z.colProperty.isSpecifyWidth,
|
|
18594
|
+
downListProperty: z.colProperty.downListProperty,
|
|
18595
|
+
dateTimeProperty: z.colProperty.dateTimeProperty,
|
|
18596
|
+
numberProperty: z.colProperty.numberProperty,
|
|
18597
|
+
signProperty: z.colProperty.signProperty,
|
|
18596
18598
|
//customProperties: colInfo.colProperty.customProperties
|
|
18597
|
-
isSignLock:
|
|
18598
|
-
isLock:
|
|
18599
|
-
addWithDefaultValue:
|
|
18599
|
+
isSignLock: z.colProperty.isSignLock,
|
|
18600
|
+
isLock: z.colProperty.isLock,
|
|
18601
|
+
addWithDefaultValue: z.colProperty.addWithDefaultValue,
|
|
18600
18602
|
customProperties: G
|
|
18601
18603
|
}, ae = JSON.parse(JSON.stringify(J)), Ce = Object.keys(v);
|
|
18602
|
-
(
|
|
18604
|
+
(z.colProperty.customProperties.length === 0 || z.colProperty.customProperties[0].length === 0) && delete ae.customProperties;
|
|
18603
18605
|
for (let me = 0; me < Ce.length; me++)
|
|
18604
18606
|
ae[Ce[me]] === C[Ce[me]] && delete ae[Ce[me]];
|
|
18605
18607
|
const oe = {
|
|
18606
|
-
colWidth:
|
|
18608
|
+
colWidth: z.colWidth
|
|
18607
18609
|
//widthFixed: colInfo.widthFixed,
|
|
18608
18610
|
//dLeft: colInfo.dLeft,
|
|
18609
18611
|
//colProperty: colPropertyJson
|
|
18610
18612
|
};
|
|
18611
|
-
|
|
18613
|
+
z.widthFixed && (oe.widthFixed = z.widthFixed), z.dLeft > 0 && (oe.dLeft = z.dLeft), Object.keys(ae).length > 0 && (oe.colProperty = ae), _.push(oe);
|
|
18612
18614
|
}
|
|
18613
18615
|
const D = {
|
|
18614
18616
|
//title: "",
|
|
@@ -18636,7 +18638,7 @@ class TableNode extends RectNode {
|
|
|
18636
18638
|
formula: ""
|
|
18637
18639
|
}, E = JSON.parse(JSON.stringify(D)), T = new Array(), I = new Array();
|
|
18638
18640
|
for (let X = u.row; X <= y; X++) {
|
|
18639
|
-
const
|
|
18641
|
+
const z = this.rows[X];
|
|
18640
18642
|
let G = "";
|
|
18641
18643
|
r ? G = "item" : G = "CellNode";
|
|
18642
18644
|
const J = {
|
|
@@ -18646,7 +18648,7 @@ class TableNode extends RectNode {
|
|
|
18646
18648
|
}, ae = { base: {}, childNodes: Array() };
|
|
18647
18649
|
T.push(J), I.push(ae);
|
|
18648
18650
|
for (let Ce = u.col; Ce <= w; Ce++) {
|
|
18649
|
-
const oe =
|
|
18651
|
+
const oe = z[Ce];
|
|
18650
18652
|
if (oe) {
|
|
18651
18653
|
const me = oe.node2Json(s, r, o, n, E);
|
|
18652
18654
|
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;
|
|
@@ -18655,9 +18657,9 @@ class TableNode extends RectNode {
|
|
|
18655
18657
|
}
|
|
18656
18658
|
}
|
|
18657
18659
|
for (let X = 0; X < T.length; X++) {
|
|
18658
|
-
const
|
|
18659
|
-
for (let G = 0; G <
|
|
18660
|
-
|
|
18660
|
+
const z = T[X].childNodes;
|
|
18661
|
+
for (let G = 0; G < z.length; G++)
|
|
18662
|
+
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));
|
|
18661
18663
|
}
|
|
18662
18664
|
const M = { item: g }, k = { item: _ }, L = { item: T }, H = { customProperty: Array(this.tableProperty.customProperties) }, B = M.item.length, Y = k.item.length, j = {};
|
|
18663
18665
|
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;
|
|
@@ -27708,7 +27710,7 @@ class Print {
|
|
|
27708
27710
|
* 打印到PDF文件
|
|
27709
27711
|
*/
|
|
27710
27712
|
static async printToPDF(t, r, o, n, s, l, c, d) {
|
|
27711
|
-
var _, D, E, T, I, M, k, L, H, B, Y, j, U, X,
|
|
27713
|
+
var _, D, E, T, I, M, k, L, H, B, Y, j, U, X, z;
|
|
27712
27714
|
const u = HOEditorFactorys.instance().getFactory(t);
|
|
27713
27715
|
if (u.drawTree.drawPages.length < u.startPageNum) {
|
|
27714
27716
|
message.warn(i18nHelper("04-001-009-EMR.3.3.485", null, "病程记录已打印文件有删除、内容减少或者新起一页打印参数变更,导致已记录的打印位置错误无法使用,请用重打进行打印或者删除所有打印记录后续打")), s && s(null);
|
|
@@ -27768,7 +27770,7 @@ class Print {
|
|
|
27768
27770
|
const me = oe == null ? void 0 : oe.getSvg();
|
|
27769
27771
|
me && (f == null || f.appendChild(me)), oe = null;
|
|
27770
27772
|
}
|
|
27771
|
-
G > 0 && J.drawDomLevel && ((
|
|
27773
|
+
G > 0 && J.drawDomLevel && ((z = J.drawDomLevel.stage) == null || z.removeAllChildren(), J.drawDomLevel.clearStage());
|
|
27772
27774
|
}
|
|
27773
27775
|
if (u.printStatus.printRange !== 1 && u.printStatus.recordLastPosByPageIndex(w), u.printStatus.DrawPrintRange().PrintOver(), l || u.startPageNum !== 0 && l !== void 0) {
|
|
27774
27776
|
const G = u.printStatus.printRecord.last();
|
|
@@ -31833,9 +31835,9 @@ class DocTree {
|
|
|
31833
31835
|
if (t === "up") {
|
|
31834
31836
|
if (Y === I.startRow && Y !== 0 && j > 0) {
|
|
31835
31837
|
T = o.drawTree.drawPages[j - 1], E = o.drawPageTree.drawMainDocs[j - 1], M = L[H - 1];
|
|
31836
|
-
const
|
|
31837
|
-
k = M.getDrawPageCellByPos(_.x,
|
|
31838
|
-
const G = M.localToGlobal(_.x,
|
|
31838
|
+
const z = M.dHeight;
|
|
31839
|
+
k = M.getDrawPageCellByPos(_.x, z);
|
|
31840
|
+
const G = M.localToGlobal(_.x, z), J = o.drawTree.getStagePosition(T, k, G.x, G.y);
|
|
31839
31841
|
if (J)
|
|
31840
31842
|
return D = J.path, D;
|
|
31841
31843
|
}
|
|
@@ -31843,15 +31845,15 @@ class DocTree {
|
|
|
31843
31845
|
} else if (Y === I.endRow && Y !== I.table.rowCount - 1) {
|
|
31844
31846
|
if (j < o.drawTree.drawPages.length - 1) {
|
|
31845
31847
|
T = o.drawTree.drawPages[j + 1], E = o.drawPageTree.drawMainDocs[j + 1], M = L[H + 1], k = M.getDrawPageCellByPos(_.x, 0);
|
|
31846
|
-
const
|
|
31848
|
+
const z = M.localToGlobal(_.x, 0), G = o.drawTree.getStagePosition(T, k, z.x, z.y);
|
|
31847
31849
|
if (G)
|
|
31848
31850
|
return D = G.path, D;
|
|
31849
31851
|
}
|
|
31850
31852
|
} else if (Y === I.endRow && Y === I.table.rowCount - 1)
|
|
31851
31853
|
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;
|
|
31852
31854
|
else {
|
|
31853
|
-
let
|
|
31854
|
-
_.cell.cellProperty.align == 1 ?
|
|
31855
|
+
let z = 0;
|
|
31856
|
+
_.cell.cellProperty.align == 1 ? z = _.dHeight / 2 + 10 : z = _.dHeight, B = z - c.dTop + c.paragraphNode.combineParagraph.lineSpace + 11;
|
|
31855
31857
|
}
|
|
31856
31858
|
const U = c.localToGlobal(p, B), X = o.drawTree.getStagePosition(
|
|
31857
31859
|
T,
|
|
@@ -33290,11 +33292,11 @@ var script$2 = {
|
|
|
33290
33292
|
H.end += j;
|
|
33291
33293
|
}
|
|
33292
33294
|
if (r === null) {
|
|
33293
|
-
let j, U = 0, X = u - 1,
|
|
33295
|
+
let j, U = 0, X = u - 1, z = ~~(u / 2), G;
|
|
33294
33296
|
do
|
|
33295
|
-
G =
|
|
33296
|
-
while (
|
|
33297
|
-
for (
|
|
33297
|
+
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);
|
|
33298
|
+
while (z !== G);
|
|
33299
|
+
for (z < 0 && (z = 0), y = z, v = f[u - 1].accumulator, w = z; w < u && f[w].accumulator < H.end; w++) ;
|
|
33298
33300
|
for (w === -1 ? w = d.length - 1 : (w++, w > u && (w = u)), C = y; C < u && Y + f[C].accumulator < H.start; C++) ;
|
|
33299
33301
|
for (_ = C; _ < u && Y + f[_].accumulator < H.end; _++) ;
|
|
33300
33302
|
} else {
|
|
@@ -34456,7 +34458,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
|
|
|
34456
34458
|
c(S, q) && !c(A, q) && l(S[q]) && (Z[q] = g({}, Z[q]));
|
|
34457
34459
|
return Z;
|
|
34458
34460
|
}
|
|
34459
|
-
function
|
|
34461
|
+
function z(S) {
|
|
34460
34462
|
S != null && this.set(S);
|
|
34461
34463
|
}
|
|
34462
34464
|
var G;
|
|
@@ -35220,7 +35222,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
|
|
|
35220
35222
|
name: S,
|
|
35221
35223
|
config: A
|
|
35222
35224
|
}), null;
|
|
35223
|
-
return sr[S] = new
|
|
35225
|
+
return sr[S] = new z(X(q, A)), vi[S] && vi[S].forEach(function(ce) {
|
|
35224
35226
|
qr(ce.name, ce.config);
|
|
35225
35227
|
}), wi(S), sr[S];
|
|
35226
35228
|
} else
|
|
@@ -35229,7 +35231,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
|
|
|
35229
35231
|
function Ci(S, A) {
|
|
35230
35232
|
if (A != null) {
|
|
35231
35233
|
var Z, q, ce = Ni;
|
|
35232
|
-
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
|
|
35234
|
+
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);
|
|
35233
35235
|
} else
|
|
35234
35236
|
sr[S] != null && (sr[S].parentLocale != null ? (sr[S] = sr[S].parentLocale, S === wi() && wi(S)) : sr[S] != null && delete sr[S]);
|
|
35235
35237
|
return sr[S];
|
|
@@ -35288,7 +35290,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
|
|
|
35288
35290
|
PDT: -7 * 60,
|
|
35289
35291
|
PST: -8 * 60
|
|
35290
35292
|
};
|
|
35291
|
-
function
|
|
35293
|
+
function W(S) {
|
|
35292
35294
|
var A, Z, q = S._i, ce = Zo.exec(q) || wn.exec(q), Le, $e, Ct, Mt, qt = Si.length, Lr = ro.length;
|
|
35293
35295
|
if (ce) {
|
|
35294
35296
|
for (v(S).iso = !0, A = 0, Z = qt; A < Z; A++)
|
|
@@ -35385,7 +35387,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
|
|
|
35385
35387
|
S._d = /* @__PURE__ */ new Date(+A[1]);
|
|
35386
35388
|
return;
|
|
35387
35389
|
}
|
|
35388
|
-
if (
|
|
35390
|
+
if (W(S), S._isValid === !1)
|
|
35389
35391
|
delete S._isValid;
|
|
35390
35392
|
else
|
|
35391
35393
|
return;
|
|
@@ -35438,7 +35440,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
|
|
|
35438
35440
|
};
|
|
35439
35441
|
function $t(S) {
|
|
35440
35442
|
if (S._f === o.ISO_8601) {
|
|
35441
|
-
|
|
35443
|
+
W(S);
|
|
35442
35444
|
return;
|
|
35443
35445
|
}
|
|
35444
35446
|
if (S._f === o.RFC_2822) {
|
|
@@ -36331,7 +36333,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
|
|
|
36331
36333
|
function Qn(S) {
|
|
36332
36334
|
return S;
|
|
36333
36335
|
}
|
|
36334
|
-
var N =
|
|
36336
|
+
var N = z.prototype;
|
|
36335
36337
|
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;
|
|
36336
36338
|
function F(S, A, Z, q) {
|
|
36337
36339
|
var ce = Qr(), Le = y().set(q, A);
|
|
@@ -39475,8 +39477,8 @@ class DrawPageTree {
|
|
|
39475
39477
|
const j = c.drawPageTable, U = j.table.drawTable.drawPageTables.indexOf(j);
|
|
39476
39478
|
let X = null;
|
|
39477
39479
|
U > 0 && (X = j.table.drawTable.drawPageTables[U - 1]);
|
|
39478
|
-
let
|
|
39479
|
-
c.drawPageTable.table.drawTable.drawUpdate(Y, X, j.y,
|
|
39480
|
+
let z = j.getMainRestHeight();
|
|
39481
|
+
c.drawPageTable.table.drawTable.drawUpdate(Y, X, j.y, z);
|
|
39480
39482
|
break;
|
|
39481
39483
|
}
|
|
39482
39484
|
(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);
|
|
@@ -40738,7 +40740,7 @@ function requireDom() {
|
|
|
40738
40740
|
U.prototype.item = function(ee) {
|
|
40739
40741
|
return X(this), this[ee] || null;
|
|
40740
40742
|
}, u(U, j);
|
|
40741
|
-
function
|
|
40743
|
+
function z() {
|
|
40742
40744
|
}
|
|
40743
40745
|
function G(ee, se) {
|
|
40744
40746
|
for (var Se = ee.length; Se--; )
|
|
@@ -40764,7 +40766,7 @@ function requireDom() {
|
|
|
40764
40766
|
} else
|
|
40765
40767
|
throw new Y(H, new Error(ee.tagName + "@" + Se));
|
|
40766
40768
|
}
|
|
40767
|
-
|
|
40769
|
+
z.prototype = {
|
|
40768
40770
|
length: 0,
|
|
40769
40771
|
item: j.prototype.item,
|
|
40770
40772
|
getNamedItem: function(ee) {
|
|
@@ -41212,7 +41214,7 @@ function requireDom() {
|
|
|
41212
41214
|
createElement: function(ee) {
|
|
41213
41215
|
var se = new Be();
|
|
41214
41216
|
se.ownerDocument = this, se.nodeName = ee, se.tagName = ee, se.localName = ee, se.childNodes = new j();
|
|
41215
|
-
var Se = se.attributes = new
|
|
41217
|
+
var Se = se.attributes = new z();
|
|
41216
41218
|
return Se._ownerElement = se, se;
|
|
41217
41219
|
},
|
|
41218
41220
|
createDocumentFragment: function() {
|
|
@@ -41245,7 +41247,7 @@ function requireDom() {
|
|
|
41245
41247
|
},
|
|
41246
41248
|
// Introduced in DOM Level 2:
|
|
41247
41249
|
createElementNS: function(ee, se) {
|
|
41248
|
-
var Se = new Be(), Ue = se.split(":"), Ge = Se.attributes = new
|
|
41250
|
+
var Se = new Be(), Ue = se.split(":"), Ge = Se.attributes = new z();
|
|
41249
41251
|
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;
|
|
41250
41252
|
},
|
|
41251
41253
|
// Introduced in DOM Level 2:
|
|
@@ -41557,7 +41559,7 @@ function requireDom() {
|
|
|
41557
41559
|
}
|
|
41558
41560
|
switch (se.childNodes && (Ue.childNodes = new j()), Ue.ownerDocument = ee, Ue.nodeType) {
|
|
41559
41561
|
case p:
|
|
41560
|
-
var Ut = se.attributes, Jt = Ue.attributes = new
|
|
41562
|
+
var Ut = se.attributes, Jt = Ue.attributes = new z(), nr = Ut.length;
|
|
41561
41563
|
Jt._ownerElement = Ue;
|
|
41562
41564
|
for (var Et = 0; Et < nr; Et++)
|
|
41563
41565
|
Ue.setAttributeNode(kt(ee, Ut.item(Et), !0));
|
|
@@ -43791,7 +43793,7 @@ function requireSax() {
|
|
|
43791
43793
|
var Qe = Be.slice(1, -1);
|
|
43792
43794
|
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);
|
|
43793
43795
|
}
|
|
43794
|
-
function
|
|
43796
|
+
function z(Be) {
|
|
43795
43797
|
if (Be > Q) {
|
|
43796
43798
|
var Qe = L.substring(Q, Be).replace(/&#?\w+;/g, X);
|
|
43797
43799
|
oe && G(Q), Y.characters(Qe, 0, Be - Q), Q = Be;
|
|
@@ -43812,7 +43814,7 @@ function requireSax() {
|
|
|
43812
43814
|
}
|
|
43813
43815
|
return;
|
|
43814
43816
|
}
|
|
43815
|
-
switch (ne > Q &&
|
|
43817
|
+
switch (ne > Q && z(ne), L.charAt(ne + 1)) {
|
|
43816
43818
|
case "/":
|
|
43817
43819
|
var we = L.indexOf(">", ne + 3), ve = L.substring(ne + 2, we).replace(/[ \t\n\r]+$/g, ""), _e = me.pop();
|
|
43818
43820
|
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);
|
|
@@ -43851,7 +43853,7 @@ function requireSax() {
|
|
|
43851
43853
|
throw Be;
|
|
43852
43854
|
j.error("element parse error: " + Be), we = -1;
|
|
43853
43855
|
}
|
|
43854
|
-
we > Q ? Q = we :
|
|
43856
|
+
we > Q ? Q = we : z(Math.max(ne, Q) + 1);
|
|
43855
43857
|
}
|
|
43856
43858
|
}
|
|
43857
43859
|
function w(L, H) {
|
|
@@ -43869,12 +43871,12 @@ function requireSax() {
|
|
|
43869
43871
|
ue
|
|
43870
43872
|
);
|
|
43871
43873
|
}
|
|
43872
|
-
for (var
|
|
43874
|
+
for (var z, G, J = ++H, ae = n; ; ) {
|
|
43873
43875
|
var Ce = L.charAt(J);
|
|
43874
43876
|
switch (Ce) {
|
|
43875
43877
|
case "=":
|
|
43876
43878
|
if (ae === s)
|
|
43877
|
-
|
|
43879
|
+
z = L.slice(H, J), ae = c;
|
|
43878
43880
|
else if (ae === l)
|
|
43879
43881
|
ae = c;
|
|
43880
43882
|
else
|
|
@@ -43883,12 +43885,12 @@ function requireSax() {
|
|
|
43883
43885
|
case "'":
|
|
43884
43886
|
case '"':
|
|
43885
43887
|
if (ae === c || ae === s)
|
|
43886
|
-
if (ae === s && (U.warning('attribute value must after "="'),
|
|
43887
|
-
G = L.slice(H, J), X(
|
|
43888
|
+
if (ae === s && (U.warning('attribute value must after "="'), z = L.slice(H, J)), H = J + 1, J = L.indexOf(Ce, H), J > 0)
|
|
43889
|
+
G = L.slice(H, J), X(z, G, H - 1), ae = u;
|
|
43888
43890
|
else
|
|
43889
43891
|
throw new Error("attribute value no end '" + Ce + "' match");
|
|
43890
43892
|
else if (ae == d)
|
|
43891
|
-
G = L.slice(H, J), X(
|
|
43893
|
+
G = L.slice(H, J), X(z, G, H), U.warning('attribute "' + z + '" missed start quot(' + Ce + ")!!"), H = J + 1, ae = u;
|
|
43892
43894
|
else
|
|
43893
43895
|
throw new Error('attribute value must after "="');
|
|
43894
43896
|
break;
|
|
@@ -43927,7 +43929,7 @@ function requireSax() {
|
|
|
43927
43929
|
case s:
|
|
43928
43930
|
G = L.slice(H, J), G.slice(-1) === "/" && (B.closed = !0, G = G.slice(0, -1));
|
|
43929
43931
|
case l:
|
|
43930
|
-
ae === l && (G =
|
|
43932
|
+
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));
|
|
43931
43933
|
break;
|
|
43932
43934
|
case c:
|
|
43933
43935
|
throw new Error("attribute value missed!!");
|
|
@@ -43943,11 +43945,11 @@ function requireSax() {
|
|
|
43943
43945
|
B.setTagName(L.slice(H, J)), ae = f;
|
|
43944
43946
|
break;
|
|
43945
43947
|
case s:
|
|
43946
|
-
|
|
43948
|
+
z = L.slice(H, J), ae = l;
|
|
43947
43949
|
break;
|
|
43948
43950
|
case d:
|
|
43949
43951
|
var G = L.slice(H, J);
|
|
43950
|
-
U.warning('attribute "' + G + '" missed quot(")!!'), X(
|
|
43952
|
+
U.warning('attribute "' + G + '" missed quot(")!!'), X(z, G, H);
|
|
43951
43953
|
case u:
|
|
43952
43954
|
ae = f;
|
|
43953
43955
|
break;
|
|
@@ -43958,10 +43960,10 @@ function requireSax() {
|
|
|
43958
43960
|
//case S_ATTR:void();break;
|
|
43959
43961
|
//case S_ATTR_NOQUOT_VALUE:void();break;
|
|
43960
43962
|
case l:
|
|
43961
|
-
B.tagName, (!a.isHTML(Y[""]) || !
|
|
43963
|
+
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;
|
|
43962
43964
|
break;
|
|
43963
43965
|
case u:
|
|
43964
|
-
U.warning('attribute space is required"' +
|
|
43966
|
+
U.warning('attribute space is required"' + z + '"!!');
|
|
43965
43967
|
case f:
|
|
43966
43968
|
ae = s, H = J;
|
|
43967
43969
|
break;
|
|
@@ -43977,12 +43979,12 @@ function requireSax() {
|
|
|
43977
43979
|
}
|
|
43978
43980
|
function C(L, H, B) {
|
|
43979
43981
|
for (var Y = L.tagName, j = null, Ce = L.length; Ce--; ) {
|
|
43980
|
-
var U = L[Ce], X = U.qName,
|
|
43982
|
+
var U = L[Ce], X = U.qName, z = U.value, oe = X.indexOf(":");
|
|
43981
43983
|
if (oe > 0)
|
|
43982
43984
|
var G = U.prefix = X.slice(0, oe), J = X.slice(oe + 1), ae = G === "xmlns" && J;
|
|
43983
43985
|
else
|
|
43984
43986
|
J = X, G = null, ae = X === "xmlns" && "";
|
|
43985
|
-
U.localName = J, ae !== !1 && (j == null && (j = {}, E(B, B = {})), B[ae] = j[ae] =
|
|
43987
|
+
U.localName = J, ae !== !1 && (j == null && (j = {}, E(B, B = {})), B[ae] = j[ae] = z, U.uri = a.XMLNS, H.startPrefixMapping(ae, z));
|
|
43986
43988
|
}
|
|
43987
43989
|
for (var Ce = L.length; Ce--; ) {
|
|
43988
43990
|
U = L[Ce];
|
|
@@ -44029,11 +44031,11 @@ function requireSax() {
|
|
|
44029
44031
|
var U = L.indexOf("]]>", H + 9);
|
|
44030
44032
|
return B.startCDATA(), B.characters(L, H + 9, U - H - 9), B.endCDATA(), U + 3;
|
|
44031
44033
|
}
|
|
44032
|
-
var X = k(L, H),
|
|
44033
|
-
if (
|
|
44034
|
+
var X = k(L, H), z = X.length;
|
|
44035
|
+
if (z > 1 && /!doctype/i.test(X[0][0])) {
|
|
44034
44036
|
var G = X[1][0], J = !1, ae = !1;
|
|
44035
|
-
|
|
44036
|
-
var Ce = X[
|
|
44037
|
+
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]));
|
|
44038
|
+
var Ce = X[z - 1];
|
|
44037
44039
|
return B.startDTD(G, J, ae), B.endDTD(), Ce.index + Ce[0].length;
|
|
44038
44040
|
}
|
|
44039
44041
|
}
|
|
@@ -44256,14 +44258,14 @@ function requireX2js() {
|
|
|
44256
44258
|
}
|
|
44257
44259
|
function l() {
|
|
44258
44260
|
function U(X) {
|
|
44259
|
-
var
|
|
44260
|
-
return
|
|
44261
|
+
var z = String(X);
|
|
44262
|
+
return z.length === 1 && (z = "0" + z), z;
|
|
44261
44263
|
}
|
|
44262
44264
|
typeof String.prototype.trim != "function" && (String.prototype.trim = function() {
|
|
44263
44265
|
return this.replace(/^\s+|^\n+|(\s|\n)+$/g, "");
|
|
44264
44266
|
}), typeof Date.prototype.toISOString != "function" && (Date.prototype.toISOString = function() {
|
|
44265
|
-
var
|
|
44266
|
-
return this.getUTCFullYear() + "-" + U(this.getUTCMonth() + 1) + "-" + U(this.getUTCDate()) + "T" + U(this.getUTCHours()) + ":" + U(this.getUTCMinutes()) + ":" + U(this.getUTCSeconds()) + "." + String((this.getUTCMilliseconds() /
|
|
44267
|
+
var z = 1e3;
|
|
44268
|
+
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";
|
|
44267
44269
|
});
|
|
44268
44270
|
}
|
|
44269
44271
|
s(), l();
|
|
@@ -44287,7 +44289,7 @@ function requireX2js() {
|
|
|
44287
44289
|
function p(U) {
|
|
44288
44290
|
return U.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, '"').replace(/'/g, "'").replace(/&/g, "&");
|
|
44289
44291
|
}
|
|
44290
|
-
function m(U, X,
|
|
44292
|
+
function m(U, X, z) {
|
|
44291
44293
|
switch (o.arrayAccessForm) {
|
|
44292
44294
|
case "property":
|
|
44293
44295
|
U[X] instanceof Array ? U[X + "_asArray"] = U[X] : U[X + "_asArray"] = [U[X]];
|
|
@@ -44297,16 +44299,16 @@ function requireX2js() {
|
|
|
44297
44299
|
for (var G = !1, J = 0; J < o.arrayAccessFormPaths.length; J++) {
|
|
44298
44300
|
var ae = o.arrayAccessFormPaths[J];
|
|
44299
44301
|
if (typeof ae == "string") {
|
|
44300
|
-
if (ae ===
|
|
44302
|
+
if (ae === z) {
|
|
44301
44303
|
G = !0;
|
|
44302
44304
|
break;
|
|
44303
44305
|
}
|
|
44304
44306
|
} else if (ae instanceof RegExp) {
|
|
44305
|
-
if (ae.test(
|
|
44307
|
+
if (ae.test(z)) {
|
|
44306
44308
|
G = !0;
|
|
44307
44309
|
break;
|
|
44308
44310
|
}
|
|
44309
|
-
} else if (typeof ae == "function" && ae(X,
|
|
44311
|
+
} else if (typeof ae == "function" && ae(X, z)) {
|
|
44310
44312
|
G = !0;
|
|
44311
44313
|
break;
|
|
44312
44314
|
}
|
|
@@ -44315,16 +44317,16 @@ function requireX2js() {
|
|
|
44315
44317
|
}
|
|
44316
44318
|
}
|
|
44317
44319
|
function g(U) {
|
|
44318
|
-
var X = 60,
|
|
44319
|
-
if (G.setHours(
|
|
44320
|
-
var ae =
|
|
44320
|
+
var X = 60, z = U.split(/[-T:+Z]/g), G = new Date(z[0], z[1] - 1, z[2]), J = z[5].split(".");
|
|
44321
|
+
if (G.setHours(z[3], z[4], J[0]), J.length > 1 && G.setMilliseconds(J[1]), z[6] && z[7]) {
|
|
44322
|
+
var ae = z[6] * X + Number(z[7]), Ce = /\d\d-\d\d:\d\d$/.test(U) ? "-" : "+";
|
|
44321
44323
|
ae = 0 + (Ce === "-" ? -1 * ae : ae), G.setMinutes(G.getMinutes() - ae - G.getTimezoneOffset());
|
|
44322
44324
|
} 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())));
|
|
44323
44325
|
return G;
|
|
44324
44326
|
}
|
|
44325
|
-
function y(U, X,
|
|
44327
|
+
function y(U, X, z) {
|
|
44326
44328
|
if (o.datetimeAccessFormPaths.length > 0)
|
|
44327
|
-
for (var G =
|
|
44329
|
+
for (var G = z.split(".#")[0], J = 0; J < o.datetimeAccessFormPaths.length; J++) {
|
|
44328
44330
|
var ae = o.datetimeAccessFormPaths[J];
|
|
44329
44331
|
if (typeof ae == "string") {
|
|
44330
44332
|
if (ae === G)
|
|
@@ -44338,8 +44340,8 @@ function requireX2js() {
|
|
|
44338
44340
|
return U;
|
|
44339
44341
|
}
|
|
44340
44342
|
function w(U) {
|
|
44341
|
-
for (var X = {},
|
|
44342
|
-
var J =
|
|
44343
|
+
for (var X = {}, z = U.childNodes, G = 0; G < z.length; G++) {
|
|
44344
|
+
var J = z.item(G);
|
|
44343
44345
|
if (J.nodeType === c.ELEMENT_NODE) {
|
|
44344
44346
|
var ae = d(J);
|
|
44345
44347
|
o.ignoreRoot ? X = C(J, ae) : X[ae] = C(J, ae);
|
|
@@ -44348,35 +44350,35 @@ function requireX2js() {
|
|
|
44348
44350
|
return X;
|
|
44349
44351
|
}
|
|
44350
44352
|
function v(U, X) {
|
|
44351
|
-
var
|
|
44352
|
-
|
|
44353
|
+
var z = {};
|
|
44354
|
+
z.__cnt = 0;
|
|
44353
44355
|
for (var G = U.childNodes, J = 0; J < G.length; J++) {
|
|
44354
44356
|
var ae = G.item(J), Ce = d(ae);
|
|
44355
|
-
ae.nodeType !== c.COMMENT_NODE && (
|
|
44357
|
+
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)));
|
|
44356
44358
|
}
|
|
44357
44359
|
for (var oe = 0; oe < U.attributes.length; oe++) {
|
|
44358
44360
|
var me = U.attributes.item(oe);
|
|
44359
|
-
|
|
44361
|
+
z.__cnt++;
|
|
44360
44362
|
for (var ue = me.value, Q = 0; Q < o.attributeConverters.length; Q++) {
|
|
44361
44363
|
var ne = o.attributeConverters[Q];
|
|
44362
44364
|
ne.test.call(null, me.name, me.value) && (ue = ne.convert.call(null, me.name, me.value));
|
|
44363
44365
|
}
|
|
44364
|
-
|
|
44366
|
+
z[o.attributePrefix + me.name] = ue;
|
|
44365
44367
|
}
|
|
44366
44368
|
var xe = u(U);
|
|
44367
|
-
return xe && (
|
|
44368
|
-
`)), o.escapeMode && (
|
|
44369
|
+
return xe && (z.__cnt++, z.__prefix = xe), z["#text"] && (z.__text = z["#text"], z.__text instanceof Array && (z.__text = z.__text.join(`
|
|
44370
|
+
`)), 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() {
|
|
44369
44371
|
return (this.__text ? this.__text : "") + (this.__cdata ? this.__cdata : "");
|
|
44370
|
-
}),
|
|
44372
|
+
}), z);
|
|
44371
44373
|
}
|
|
44372
44374
|
function C(U, X) {
|
|
44373
44375
|
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;
|
|
44374
44376
|
}
|
|
44375
|
-
function _(U, X,
|
|
44377
|
+
function _(U, X, z, G) {
|
|
44376
44378
|
var J = "<" + (U && U.__prefix ? U.__prefix + ":" : "") + X;
|
|
44377
|
-
if (
|
|
44378
|
-
for (var ae = 0; ae <
|
|
44379
|
-
var Ce =
|
|
44379
|
+
if (z)
|
|
44380
|
+
for (var ae = 0; ae < z.length; ae++) {
|
|
44381
|
+
var Ce = z[ae], oe = U[Ce];
|
|
44380
44382
|
o.escapeMode && (oe = f(oe)), J += " " + Ce.substr(o.attributePrefix.length) + "=", o.useDoubleQuotes ? J += '"' + oe + '"' : J += "'" + oe + "'";
|
|
44381
44383
|
}
|
|
44382
44384
|
return G ? J += " />" : J += ">", J;
|
|
@@ -44393,15 +44395,15 @@ function requireX2js() {
|
|
|
44393
44395
|
function I(U) {
|
|
44394
44396
|
var X = 0;
|
|
44395
44397
|
if (U instanceof Object)
|
|
44396
|
-
for (var
|
|
44397
|
-
T(U,
|
|
44398
|
+
for (var z in U)
|
|
44399
|
+
T(U, z) || X++;
|
|
44398
44400
|
return X;
|
|
44399
44401
|
}
|
|
44400
44402
|
function M(U) {
|
|
44401
44403
|
var X = [];
|
|
44402
44404
|
if (U instanceof Object)
|
|
44403
|
-
for (var
|
|
44404
|
-
|
|
44405
|
+
for (var z in U)
|
|
44406
|
+
z.toString().indexOf("__") === -1 && z.toString().indexOf(o.attributePrefix) === 0 && X.push(z);
|
|
44405
44407
|
return X;
|
|
44406
44408
|
}
|
|
44407
44409
|
function k(U) {
|
|
@@ -44412,37 +44414,37 @@ function requireX2js() {
|
|
|
44412
44414
|
var X = "";
|
|
44413
44415
|
return U instanceof Object ? X += k(U) : U !== null && (o.escapeMode ? X += f(U) : X += U), X;
|
|
44414
44416
|
}
|
|
44415
|
-
function H(U, X,
|
|
44417
|
+
function H(U, X, z) {
|
|
44416
44418
|
var G = "";
|
|
44417
44419
|
if (U.length === 0)
|
|
44418
|
-
G += _(U, X,
|
|
44420
|
+
G += _(U, X, z, !0);
|
|
44419
44421
|
else
|
|
44420
44422
|
for (var J = 0; J < U.length; J++)
|
|
44421
44423
|
G += B(U[J], X, M(U[J]));
|
|
44422
44424
|
return G;
|
|
44423
44425
|
}
|
|
44424
|
-
function B(U, X,
|
|
44426
|
+
function B(U, X, z) {
|
|
44425
44427
|
var G = "";
|
|
44426
44428
|
if (o.jsAttributeFilter && o.jsAttributeFilter.call(null, X, U))
|
|
44427
44429
|
return G;
|
|
44428
44430
|
if (o.jsAttributeConverter && (U = o.jsAttributeConverter.call(null, X, U)), (U == null || U === "") && o.selfClosingElements)
|
|
44429
|
-
G += _(U, X,
|
|
44431
|
+
G += _(U, X, z, !0);
|
|
44430
44432
|
else if (typeof U == "object")
|
|
44431
44433
|
if (Object.prototype.toString.call(U) === "[object Array]")
|
|
44432
|
-
G += H(U, X,
|
|
44434
|
+
G += H(U, X, z);
|
|
44433
44435
|
else if (U instanceof Date)
|
|
44434
|
-
G += _(U, X,
|
|
44436
|
+
G += _(U, X, z, !1), G += o.jsDateUTC ? U.toUTCString() : U.toISOString(), G += D(U, X);
|
|
44435
44437
|
else {
|
|
44436
44438
|
var J = I(U);
|
|
44437
|
-
J > 0 || typeof U.__text == "number" || typeof U.__text == "boolean" || U.__text || U.__cdata ? (G += _(U, X,
|
|
44439
|
+
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));
|
|
44438
44440
|
}
|
|
44439
44441
|
else
|
|
44440
|
-
G += _(U, X,
|
|
44442
|
+
G += _(U, X, z, !1), G += L(U), G += D(U, X);
|
|
44441
44443
|
return G;
|
|
44442
44444
|
}
|
|
44443
44445
|
function Y(U) {
|
|
44444
|
-
var X = "",
|
|
44445
|
-
if (
|
|
44446
|
+
var X = "", z = I(U);
|
|
44447
|
+
if (z > 0) {
|
|
44446
44448
|
for (var G in U)
|
|
44447
44449
|
if (!T(U, G)) {
|
|
44448
44450
|
var J = U[G], ae = M(J);
|
|
@@ -44454,9 +44456,9 @@ function requireX2js() {
|
|
|
44454
44456
|
function j(U) {
|
|
44455
44457
|
if (U === void 0 || typeof U != "string")
|
|
44456
44458
|
return null;
|
|
44457
|
-
var X = null,
|
|
44459
|
+
var X = null, z = null;
|
|
44458
44460
|
if (t)
|
|
44459
|
-
X = new t(o.xmldomOptions),
|
|
44461
|
+
X = new t(o.xmldomOptions), z = X.parseFromString(U, "text/xml");
|
|
44460
44462
|
else if (window && window.DOMParser) {
|
|
44461
44463
|
X = new window.DOMParser();
|
|
44462
44464
|
var G = null, J = window.ActiveXObject || "ActiveXObject" in window;
|
|
@@ -44467,13 +44469,13 @@ function requireX2js() {
|
|
|
44467
44469
|
G = null;
|
|
44468
44470
|
}
|
|
44469
44471
|
try {
|
|
44470
|
-
|
|
44472
|
+
z = X.parseFromString(U, "text/xml"), G !== null && z.getElementsByTagNameNS(G, "parsererror").length > 0 && (z = null);
|
|
44471
44473
|
} catch {
|
|
44472
|
-
|
|
44474
|
+
z = null;
|
|
44473
44475
|
}
|
|
44474
44476
|
} else
|
|
44475
|
-
U.indexOf("<?") === 0 && (U = U.substr(U.indexOf("?>") + 2)),
|
|
44476
|
-
return
|
|
44477
|
+
U.indexOf("<?") === 0 && (U = U.substr(U.indexOf("?>") + 2)), z = new ActiveXObject("Microsoft.XMLDOM"), z.async = "false", z.loadXML(U);
|
|
44478
|
+
return z;
|
|
44477
44479
|
}
|
|
44478
44480
|
this.asArray = function(X) {
|
|
44479
44481
|
return X == null ? [] : X instanceof Array ? X : [X];
|
|
@@ -44486,11 +44488,11 @@ function requireX2js() {
|
|
|
44486
44488
|
}, this.dom2js = function(X) {
|
|
44487
44489
|
return C(X, null);
|
|
44488
44490
|
}, this.js2dom = function(X) {
|
|
44489
|
-
var
|
|
44490
|
-
return j(
|
|
44491
|
+
var z = this.js2xml(X);
|
|
44492
|
+
return j(z);
|
|
44491
44493
|
}, this.xml2js = function(X) {
|
|
44492
|
-
var
|
|
44493
|
-
return
|
|
44494
|
+
var z = j(X);
|
|
44495
|
+
return z != null ? this.dom2js(z) : null;
|
|
44494
44496
|
}, this.js2xml = function(X) {
|
|
44495
44497
|
return Y(X);
|
|
44496
44498
|
}, this.getVersion = function() {
|
|
@@ -46239,12 +46241,12 @@ class StructureConvert {
|
|
|
46239
46241
|
k++;
|
|
46240
46242
|
for (let B = 0; B < L.length; B++) {
|
|
46241
46243
|
B > 0 && k++;
|
|
46242
|
-
const j = L[B][2], U = j.indexOf("错误:"), X = j.indexOf("正确:"),
|
|
46243
|
-
|
|
46244
|
+
const j = L[B][2], U = j.indexOf("错误:"), X = j.indexOf("正确:"), z = new createjs$1.Text(j.substring(U + 3, X - 1), "12px 微软雅黑", "#F31A1A");
|
|
46245
|
+
z.lineWidth = E - 25, z.lineHeight = 20, z.name = "tip", z.x = 15, z.y = 10 + 30 * k, T.addChild(z);
|
|
46244
46246
|
const G = new createjs$1.Text("-->", "12px 微软雅黑", "#666");
|
|
46245
|
-
G.lineWidth = E - 25, G.lineHeight = 20, G.name = "tip", G.x =
|
|
46247
|
+
G.lineWidth = E - 25, G.lineHeight = 20, G.name = "tip", G.x = z.x + z.getMeasuredWidth() + 5, G.y = z.y, T.addChild(G);
|
|
46246
46248
|
const J = new createjs$1.Text(j.substring(X + 3, j.length), "12px 微软雅黑", "#21B41E");
|
|
46247
|
-
J.lineWidth = E - 25, J.lineHeight = 20, J.name = "tip", J.x = G.x + G.getMeasuredWidth() + 5, J.y =
|
|
46249
|
+
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);
|
|
46248
46250
|
}
|
|
46249
46251
|
}), _.addChild(T), n.drawPageTree.updateDrawPage(_.index);
|
|
46250
46252
|
}
|
|
@@ -50058,27 +50060,27 @@ class VueController {
|
|
|
50058
50060
|
let L = [];
|
|
50059
50061
|
if (T != "" && T != null) {
|
|
50060
50062
|
Array.isArray(T) ? L = T : L = [T];
|
|
50061
|
-
for (let
|
|
50062
|
-
const G = f(L[
|
|
50063
|
-
ae >= 0 ? _.set(
|
|
50063
|
+
for (let z = 0; z < L.length; z++) {
|
|
50064
|
+
const G = f(L[z], I), J = JSON.stringify(G), ae = d.lastIndexOf(J);
|
|
50065
|
+
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));
|
|
50064
50066
|
}
|
|
50065
50067
|
}
|
|
50066
50068
|
const H = E.styles.paraStyle ? E.styles.paraStyle : E.styles.para, B = E.styles.defaultPara, Y = JSON.stringify(B), j = u.indexOf(Y);
|
|
50067
50069
|
j >= 0 ? D.set(0, j) : (p.styles.paraStyle.push(B), u.push(Y), D.set(0, u.length - 1));
|
|
50068
|
-
const U = (
|
|
50070
|
+
const U = (z) => {
|
|
50069
50071
|
const G = JSON.stringify(B), J = JSON.parse(G);
|
|
50070
|
-
return
|
|
50072
|
+
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;
|
|
50071
50073
|
};
|
|
50072
50074
|
let X = [];
|
|
50073
50075
|
H != "" && H != null && (H && !Array.isArray(H) ? X = [H] : X = H);
|
|
50074
|
-
for (let
|
|
50075
|
-
const G = U(X[
|
|
50076
|
-
ae >= 0 ? D.set(
|
|
50076
|
+
for (let z = 0; z < X.length; z++) {
|
|
50077
|
+
const G = U(X[z]), J = JSON.stringify(G), ae = u.indexOf(J);
|
|
50078
|
+
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));
|
|
50077
50079
|
}
|
|
50078
50080
|
if (w(E.main, _, D), p.pageSettingsTree = [], t[C][0]) {
|
|
50079
50081
|
w(E.header[0].subDocNodes, _, D);
|
|
50080
|
-
const
|
|
50081
|
-
E.header[0].beginPath =
|
|
50082
|
+
const z = o.gernerateCode.generateID("DocId");
|
|
50083
|
+
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, {
|
|
50082
50084
|
widthMm: Number(E.pageSettings.widthMm),
|
|
50083
50085
|
heightMm: Number(E.pageSettings.heightMm),
|
|
50084
50086
|
pageSize: E.pageSettings.pageSize,
|
|
@@ -50086,8 +50088,8 @@ class VueController {
|
|
|
50086
50088
|
});
|
|
50087
50089
|
} else if (t[C][2]) {
|
|
50088
50090
|
w(E.header[0].subDocNodes, _, D);
|
|
50089
|
-
const
|
|
50090
|
-
E.header[0].beginPath =
|
|
50091
|
+
const z = o.gernerateCode.generateID("DocId");
|
|
50092
|
+
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);
|
|
50091
50093
|
}
|
|
50092
50094
|
y(t[C][3], E.main), Array.isArray(E.main) ? p.main.push(...E.main) : p.main.push(...Array(E.main));
|
|
50093
50095
|
}
|
|
@@ -52351,7 +52353,7 @@ class VueController {
|
|
|
52351
52353
|
for (let me = 0; me < oe.length; me++)
|
|
52352
52354
|
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));
|
|
52353
52355
|
}
|
|
52354
|
-
const
|
|
52356
|
+
const z = { defaultRowProperty: E, item: I }, G = { defaultColProperty: L, item: B }, J = { defaultCellProperty: Y, item: U };
|
|
52355
52357
|
return { TableNode: {
|
|
52356
52358
|
nodeType: NodeType$1[1],
|
|
52357
52359
|
rowCount: v.rowCount,
|
|
@@ -52360,7 +52362,7 @@ class VueController {
|
|
|
52360
52362
|
borderWidth: v.borderWidth,
|
|
52361
52363
|
headerRowCount: v.headerRowCount,
|
|
52362
52364
|
tableProperty: D,
|
|
52363
|
-
rowInfos:
|
|
52365
|
+
rowInfos: z,
|
|
52364
52366
|
colInfos: G,
|
|
52365
52367
|
childNodes: J
|
|
52366
52368
|
} };
|
|
@@ -54920,8 +54922,8 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
54920
54922
|
I[k++] = j;
|
|
54921
54923
|
}
|
|
54922
54924
|
}
|
|
54923
|
-
var X = I.subarray(0, D),
|
|
54924
|
-
m = max(X), g = max(
|
|
54925
|
+
var X = I.subarray(0, D), z = I.subarray(D);
|
|
54926
|
+
m = max(X), g = max(z), f = hMap(X, m, 1), p = hMap(z, g, 1);
|
|
54925
54927
|
} else
|
|
54926
54928
|
throw "invalid block type";
|
|
54927
54929
|
else {
|
|
@@ -54959,16 +54961,16 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
54959
54961
|
if (!ue)
|
|
54960
54962
|
throw "invalid distance";
|
|
54961
54963
|
d += ue & 15;
|
|
54962
|
-
var
|
|
54964
|
+
var z = fd[Q];
|
|
54963
54965
|
if (Q > 3) {
|
|
54964
54966
|
var me = fdeb[Q];
|
|
54965
|
-
|
|
54967
|
+
z += bits16(a, d) & (1 << me) - 1, d += me;
|
|
54966
54968
|
}
|
|
54967
54969
|
if (d > y)
|
|
54968
54970
|
throw "unexpected EOF";
|
|
54969
54971
|
n && l(u + 131072);
|
|
54970
54972
|
for (var ne = u + oe; u < ne; u += 4)
|
|
54971
|
-
t[u] = t[u -
|
|
54973
|
+
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];
|
|
54972
54974
|
u = ne;
|
|
54973
54975
|
}
|
|
54974
54976
|
}
|
|
@@ -55070,9 +55072,9 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
55070
55072
|
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]);
|
|
55071
55073
|
if (j <= U && j <= X)
|
|
55072
55074
|
return wfblk(t, f, a.subarray(d, d + u));
|
|
55073
|
-
var
|
|
55075
|
+
var z, G, J, ae;
|
|
55074
55076
|
if (wbits(t, f, 1 + (X < U)), f += 2, X < U) {
|
|
55075
|
-
|
|
55077
|
+
z = hMap(m, g, 0), G = m, J = hMap(w, v, 0), ae = w;
|
|
55076
55078
|
var Ce = hMap(H, B, 0);
|
|
55077
55079
|
wbits(t, f, D - 257), wbits(t, f + 5, I - 1), wbits(t, f + 10, Y - 4), f += 14;
|
|
55078
55080
|
for (var k = 0; k < Y; ++k)
|
|
@@ -55084,16 +55086,16 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
55084
55086
|
wbits(t, f, Ce[Q]), f += H[Q], Q > 15 && (wbits(t, f, ue[k] >>> 5 & 127), f += ue[k] >>> 12);
|
|
55085
55087
|
}
|
|
55086
55088
|
} else
|
|
55087
|
-
|
|
55089
|
+
z = flm, G = flt, J = fdm, ae = fdt;
|
|
55088
55090
|
for (var k = 0; k < c; ++k)
|
|
55089
55091
|
if (o[k] > 255) {
|
|
55090
55092
|
var Q = o[k] >>> 18 & 31;
|
|
55091
|
-
wbits16(t, f,
|
|
55093
|
+
wbits16(t, f, z[Q + 257]), f += G[Q + 257], Q > 7 && (wbits(t, f, o[k] >>> 23 & 31), f += fleb[Q]);
|
|
55092
55094
|
var ne = o[k] & 31;
|
|
55093
55095
|
wbits16(t, f, J[ne]), f += ae[ne], ne > 3 && (wbits16(t, f, o[k] >>> 5 & 8191), f += fdeb[ne]);
|
|
55094
55096
|
} else
|
|
55095
|
-
wbits16(t, f,
|
|
55096
|
-
return wbits16(t, f,
|
|
55097
|
+
wbits16(t, f, z[o[k]]), f += G[o[k]];
|
|
55098
|
+
return wbits16(t, f, z[256]), f + G[256];
|
|
55097
55099
|
}, deo = /* @__PURE__ */ new u32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), dflt = function(a, t, r, o, n, s) {
|
|
55098
55100
|
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;
|
|
55099
55101
|
if (!t || l < 8)
|
|
@@ -55107,8 +55109,8 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
55107
55109
|
}, 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) {
|
|
55108
55110
|
var j = E(f), U = f & 32767, X = C[j];
|
|
55109
55111
|
if (v[U] = X, C[j] = U, B <= f) {
|
|
55110
|
-
var
|
|
55111
|
-
if ((k > 7e3 || H > 24576) &&
|
|
55112
|
+
var z = l - f;
|
|
55113
|
+
if ((k > 7e3 || H > 24576) && z > 423) {
|
|
55112
55114
|
u = wblk(a, d, 0, T, I, M, L, H, Y, f - Y, u), H = k = L = 0, Y = f;
|
|
55113
55115
|
for (var G = 0; G < 286; ++G)
|
|
55114
55116
|
I[G] = 0;
|
|
@@ -55116,8 +55118,8 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
55116
55118
|
M[G] = 0;
|
|
55117
55119
|
}
|
|
55118
55120
|
var J = 2, ae = 0, Ce = y, oe = U - X & 32767;
|
|
55119
|
-
if (
|
|
55120
|
-
for (var me = Math.min(g,
|
|
55121
|
+
if (z > 2 && j == E(f - oe))
|
|
55122
|
+
for (var me = Math.min(g, z) - 1, ue = Math.min(32767, f), Q = Math.min(258, z); oe <= ue && --Ce && U != X; ) {
|
|
55121
55123
|
if (a[f + J] == a[f + J - oe]) {
|
|
55122
55124
|
for (var ne = 0; ne < Q && a[f + ne] == a[f + ne - oe]; ++ne)
|
|
55123
55125
|
;
|
|
@@ -55762,8 +55764,8 @@ function jsPDF(a) {
|
|
|
55762
55764
|
var y = "1.3", w = g.__private__.getPdfVersion = function() {
|
|
55763
55765
|
return y;
|
|
55764
55766
|
};
|
|
55765
|
-
g.__private__.setPdfVersion = function(
|
|
55766
|
-
y =
|
|
55767
|
+
g.__private__.setPdfVersion = function(W) {
|
|
55768
|
+
y = W;
|
|
55767
55769
|
};
|
|
55768
55770
|
var v = {
|
|
55769
55771
|
a0: [2383.94, 3370.39],
|
|
@@ -55811,8 +55813,8 @@ function jsPDF(a) {
|
|
|
55811
55813
|
g.__private__.getPageFormats = function() {
|
|
55812
55814
|
return v;
|
|
55813
55815
|
};
|
|
55814
|
-
var C = g.__private__.getPageFormat = function(
|
|
55815
|
-
return v[
|
|
55816
|
+
var C = g.__private__.getPageFormat = function(W) {
|
|
55817
|
+
return v[W];
|
|
55816
55818
|
};
|
|
55817
55819
|
o = o || "a4";
|
|
55818
55820
|
var _ = {
|
|
@@ -55825,57 +55827,57 @@ function jsPDF(a) {
|
|
|
55825
55827
|
function T() {
|
|
55826
55828
|
this.restoreGraphicsState(), u = "S", D = _.COMPAT;
|
|
55827
55829
|
}
|
|
55828
|
-
var I = g.__private__.combineFontStyleAndFontWeight = function(
|
|
55829
|
-
if (
|
|
55830
|
+
var I = g.__private__.combineFontStyleAndFontWeight = function(W, V) {
|
|
55831
|
+
if (W == "bold" && V == "normal" || W == "bold" && V == 400 || W == "normal" && V == "italic" || W == "bold" && V == "italic")
|
|
55830
55832
|
throw new Error("Invalid Combination of fontweight and fontstyle");
|
|
55831
|
-
return V && (
|
|
55833
|
+
return V && (W = V == 400 || V === "normal" ? W === "italic" ? "italic" : "normal" : (V == 700 || V === "bold") && W === "normal" ? "bold" : (V == 700 ? "bold" : V) + "" + W), W;
|
|
55832
55834
|
};
|
|
55833
|
-
g.advancedAPI = function(
|
|
55835
|
+
g.advancedAPI = function(W) {
|
|
55834
55836
|
var V = D === _.COMPAT;
|
|
55835
|
-
return V && E.call(this), typeof
|
|
55836
|
-
}, g.compatAPI = function(
|
|
55837
|
+
return V && E.call(this), typeof W != "function" ? this : (W(this), V && T.call(this), this);
|
|
55838
|
+
}, g.compatAPI = function(W) {
|
|
55837
55839
|
var V = D === _.ADVANCED;
|
|
55838
|
-
return V && T.call(this), typeof
|
|
55840
|
+
return V && T.call(this), typeof W != "function" ? this : (W(this), V && E.call(this), this);
|
|
55839
55841
|
}, g.isAdvancedAPI = function() {
|
|
55840
55842
|
return D === _.ADVANCED;
|
|
55841
55843
|
};
|
|
55842
55844
|
var M = function(V) {
|
|
55843
55845
|
if (D !== _.ADVANCED)
|
|
55844
55846
|
throw new Error(V + " is only available in 'advanced' API mode. You need to call advancedAPI() first.");
|
|
55845
|
-
}, k = g.roundToPrecision = g.__private__.roundToPrecision = function(
|
|
55847
|
+
}, k = g.roundToPrecision = g.__private__.roundToPrecision = function(W, V) {
|
|
55846
55848
|
var ye = c || V;
|
|
55847
|
-
if (isNaN(
|
|
55849
|
+
if (isNaN(W) || isNaN(ye))
|
|
55848
55850
|
throw new Error("Invalid argument passed to jsPDF.roundToPrecision");
|
|
55849
|
-
return
|
|
55851
|
+
return W.toFixed(ye).replace(/0+$/, "");
|
|
55850
55852
|
}, L;
|
|
55851
|
-
typeof d == "number" ? L = g.hpf = g.__private__.hpf = function(
|
|
55852
|
-
if (isNaN(
|
|
55853
|
+
typeof d == "number" ? L = g.hpf = g.__private__.hpf = function(W) {
|
|
55854
|
+
if (isNaN(W))
|
|
55853
55855
|
throw new Error("Invalid argument passed to jsPDF.hpf");
|
|
55854
|
-
return k(
|
|
55855
|
-
} : d === "smart" ? L = g.hpf = g.__private__.hpf = function(
|
|
55856
|
-
if (isNaN(
|
|
55856
|
+
return k(W, d);
|
|
55857
|
+
} : d === "smart" ? L = g.hpf = g.__private__.hpf = function(W) {
|
|
55858
|
+
if (isNaN(W))
|
|
55857
55859
|
throw new Error("Invalid argument passed to jsPDF.hpf");
|
|
55858
|
-
return
|
|
55859
|
-
} : L = g.hpf = g.__private__.hpf = function(
|
|
55860
|
-
if (isNaN(
|
|
55860
|
+
return W > -1 && W < 1 ? k(W, 16) : k(W, 5);
|
|
55861
|
+
} : L = g.hpf = g.__private__.hpf = function(W) {
|
|
55862
|
+
if (isNaN(W))
|
|
55861
55863
|
throw new Error("Invalid argument passed to jsPDF.hpf");
|
|
55862
|
-
return k(
|
|
55864
|
+
return k(W, 16);
|
|
55863
55865
|
};
|
|
55864
|
-
var H = g.f2 = g.__private__.f2 = function(
|
|
55865
|
-
if (isNaN(
|
|
55866
|
+
var H = g.f2 = g.__private__.f2 = function(W) {
|
|
55867
|
+
if (isNaN(W))
|
|
55866
55868
|
throw new Error("Invalid argument passed to jsPDF.f2");
|
|
55867
|
-
return k(
|
|
55868
|
-
}, B = g.__private__.f3 = function(
|
|
55869
|
-
if (isNaN(
|
|
55869
|
+
return k(W, 2);
|
|
55870
|
+
}, B = g.__private__.f3 = function(W) {
|
|
55871
|
+
if (isNaN(W))
|
|
55870
55872
|
throw new Error("Invalid argument passed to jsPDF.f3");
|
|
55871
|
-
return k(
|
|
55872
|
-
}, Y = g.scale = g.__private__.scale = function(
|
|
55873
|
-
if (isNaN(
|
|
55873
|
+
return k(W, 3);
|
|
55874
|
+
}, Y = g.scale = g.__private__.scale = function(W) {
|
|
55875
|
+
if (isNaN(W))
|
|
55874
55876
|
throw new Error("Invalid argument passed to jsPDF.scale");
|
|
55875
55877
|
if (D === _.COMPAT)
|
|
55876
|
-
return
|
|
55878
|
+
return W * kt;
|
|
55877
55879
|
if (D === _.ADVANCED)
|
|
55878
|
-
return
|
|
55880
|
+
return W;
|
|
55879
55881
|
}, j = function(V) {
|
|
55880
55882
|
if (D === _.COMPAT)
|
|
55881
55883
|
return Di() - V;
|
|
@@ -55884,54 +55886,54 @@ function jsPDF(a) {
|
|
|
55884
55886
|
}, U = function(V) {
|
|
55885
55887
|
return Y(j(V));
|
|
55886
55888
|
};
|
|
55887
|
-
g.__private__.setPrecision = g.setPrecision = function(
|
|
55888
|
-
typeof parseInt(
|
|
55889
|
+
g.__private__.setPrecision = g.setPrecision = function(W) {
|
|
55890
|
+
typeof parseInt(W, 10) == "number" && (c = parseInt(W, 10));
|
|
55889
55891
|
};
|
|
55890
|
-
var X = "00000000000000000000000000000000",
|
|
55892
|
+
var X = "00000000000000000000000000000000", z = g.__private__.getFileId = function() {
|
|
55891
55893
|
return X;
|
|
55892
|
-
}, G = g.__private__.setFileId = function(
|
|
55893
|
-
return typeof
|
|
55894
|
+
}, G = g.__private__.setFileId = function(W) {
|
|
55895
|
+
return typeof W < "u" && /^[a-fA-F0-9]{32}$/.test(W) ? X = W.toUpperCase() : X = X.split("").map(function() {
|
|
55894
55896
|
return "ABCDEF0123456789".charAt(Math.floor(Math.random() * 16));
|
|
55895
55897
|
}).join(""), f !== null && (Pr = new PDFSecurity(f.userPermissions, f.userPassword, f.ownerPassword, X)), X;
|
|
55896
55898
|
};
|
|
55897
|
-
g.setFileId = function(
|
|
55898
|
-
return G(
|
|
55899
|
+
g.setFileId = function(W) {
|
|
55900
|
+
return G(W), this;
|
|
55899
55901
|
}, g.getFileId = function() {
|
|
55900
|
-
return
|
|
55902
|
+
return z();
|
|
55901
55903
|
};
|
|
55902
|
-
var J, ae = g.__private__.convertDateToPDFDate = function(
|
|
55903
|
-
var V = "", ye =
|
|
55904
|
-
return V = ["D:",
|
|
55905
|
-
}, Ce = g.__private__.convertPDFDateToDate = function(
|
|
55906
|
-
var V = parseInt(
|
|
55904
|
+
var J, ae = g.__private__.convertDateToPDFDate = function(W) {
|
|
55905
|
+
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("");
|
|
55906
|
+
return V = ["D:", W.getFullYear(), ue(W.getMonth() + 1), ue(W.getDate()), ue(W.getHours()), ue(W.getMinutes()), ue(W.getSeconds()), lt].join(""), V;
|
|
55907
|
+
}, Ce = g.__private__.convertPDFDateToDate = function(W) {
|
|
55908
|
+
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);
|
|
55907
55909
|
return ft;
|
|
55908
|
-
}, oe = g.__private__.setCreationDate = function(
|
|
55910
|
+
}, oe = g.__private__.setCreationDate = function(W) {
|
|
55909
55911
|
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])'?$/;
|
|
55910
|
-
if (typeof
|
|
55911
|
-
V = ae(
|
|
55912
|
-
else if (ye.test(
|
|
55913
|
-
V =
|
|
55912
|
+
if (typeof W > "u" && (W = /* @__PURE__ */ new Date()), W instanceof Date)
|
|
55913
|
+
V = ae(W);
|
|
55914
|
+
else if (ye.test(W))
|
|
55915
|
+
V = W;
|
|
55914
55916
|
else
|
|
55915
55917
|
throw new Error("Invalid argument passed to jsPDF.setCreationDate");
|
|
55916
55918
|
return J = V, J;
|
|
55917
|
-
}, me = g.__private__.getCreationDate = function(
|
|
55919
|
+
}, me = g.__private__.getCreationDate = function(W) {
|
|
55918
55920
|
var V = J;
|
|
55919
|
-
return
|
|
55921
|
+
return W === "jsDate" && (V = Ce(J)), V;
|
|
55920
55922
|
};
|
|
55921
|
-
g.setCreationDate = function(
|
|
55922
|
-
return oe(
|
|
55923
|
-
}, g.getCreationDate = function(
|
|
55924
|
-
return me(
|
|
55923
|
+
g.setCreationDate = function(W) {
|
|
55924
|
+
return oe(W), this;
|
|
55925
|
+
}, g.getCreationDate = function(W) {
|
|
55926
|
+
return me(W);
|
|
55925
55927
|
};
|
|
55926
|
-
var ue = g.__private__.padd2 = function(
|
|
55927
|
-
return ("0" + parseInt(
|
|
55928
|
-
}, Q = g.__private__.padd2Hex = function(
|
|
55929
|
-
return
|
|
55928
|
+
var ue = g.__private__.padd2 = function(W) {
|
|
55929
|
+
return ("0" + parseInt(W)).slice(-2);
|
|
55930
|
+
}, Q = g.__private__.padd2Hex = function(W) {
|
|
55931
|
+
return W = W.toString(), ("00" + W).substr(W.length);
|
|
55930
55932
|
}, ne = 0, xe = [], Ie = [], ve = 0, _e = [], pe = [], Pe, De = !1, Ve = Ie, Te = function() {
|
|
55931
55933
|
ne = 0, ve = 0, Ie = [], xe = [], _e = [], Zt = jt(), lr = jt();
|
|
55932
55934
|
};
|
|
55933
|
-
g.__private__.setCustomOutputDestination = function(
|
|
55934
|
-
De = !0, Ve =
|
|
55935
|
+
g.__private__.setCustomOutputDestination = function(W) {
|
|
55936
|
+
De = !0, Ve = W;
|
|
55935
55937
|
};
|
|
55936
55938
|
var He = function(V) {
|
|
55937
55939
|
De || (Ve = V);
|
|
@@ -55939,63 +55941,63 @@ function jsPDF(a) {
|
|
|
55939
55941
|
g.__private__.resetCustomOutputDestination = function() {
|
|
55940
55942
|
De = !1, Ve = Ie;
|
|
55941
55943
|
};
|
|
55942
|
-
var we = g.__private__.out = function(
|
|
55943
|
-
return
|
|
55944
|
-
}, le = g.__private__.write = function(
|
|
55945
|
-
return we(arguments.length === 1 ?
|
|
55946
|
-
}, he = g.__private__.getArrayBuffer = function(
|
|
55947
|
-
for (var V =
|
|
55948
|
-
Fe[V] =
|
|
55944
|
+
var we = g.__private__.out = function(W) {
|
|
55945
|
+
return W = W.toString(), ve += W.length + 1, Ve.push(W), Ve;
|
|
55946
|
+
}, le = g.__private__.write = function(W) {
|
|
55947
|
+
return we(arguments.length === 1 ? W.toString() : Array.prototype.join.call(arguments, " "));
|
|
55948
|
+
}, he = g.__private__.getArrayBuffer = function(W) {
|
|
55949
|
+
for (var V = W.length, ye = new ArrayBuffer(V), Fe = new Uint8Array(ye); V--; )
|
|
55950
|
+
Fe[V] = W.charCodeAt(V);
|
|
55949
55951
|
return ye;
|
|
55950
55952
|
}, $ = [["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]];
|
|
55951
55953
|
g.__private__.getStandardFonts = function() {
|
|
55952
55954
|
return $;
|
|
55953
55955
|
};
|
|
55954
55956
|
var Ne = a.fontSize || 16;
|
|
55955
|
-
g.__private__.setFontSize = g.setFontSize = function(
|
|
55956
|
-
return D === _.ADVANCED ? Ne =
|
|
55957
|
+
g.__private__.setFontSize = g.setFontSize = function(W) {
|
|
55958
|
+
return D === _.ADVANCED ? Ne = W / kt : Ne = W, this;
|
|
55957
55959
|
};
|
|
55958
55960
|
var Be = g.__private__.getFontSize = g.getFontSize = function() {
|
|
55959
55961
|
return D === _.COMPAT ? Ne : Ne * kt;
|
|
55960
55962
|
}, Qe = a.R2L || !1;
|
|
55961
|
-
g.__private__.setR2L = g.setR2L = function(
|
|
55962
|
-
return Qe =
|
|
55963
|
+
g.__private__.setR2L = g.setR2L = function(W) {
|
|
55964
|
+
return Qe = W, this;
|
|
55963
55965
|
}, g.__private__.getR2L = g.getR2L = function() {
|
|
55964
55966
|
return Qe;
|
|
55965
55967
|
};
|
|
55966
|
-
var Me, ze = g.__private__.setZoomMode = function(
|
|
55968
|
+
var Me, ze = g.__private__.setZoomMode = function(W) {
|
|
55967
55969
|
var V = [void 0, null, "fullwidth", "fullheight", "fullpage", "original"];
|
|
55968
|
-
if (/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(
|
|
55969
|
-
Me =
|
|
55970
|
-
else if (!isNaN(
|
|
55971
|
-
Me = parseInt(
|
|
55972
|
-
else if (V.indexOf(
|
|
55973
|
-
Me =
|
|
55970
|
+
if (/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(W))
|
|
55971
|
+
Me = W;
|
|
55972
|
+
else if (!isNaN(W))
|
|
55973
|
+
Me = parseInt(W, 10);
|
|
55974
|
+
else if (V.indexOf(W) !== -1)
|
|
55975
|
+
Me = W;
|
|
55974
55976
|
else
|
|
55975
|
-
throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "' +
|
|
55977
|
+
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.');
|
|
55976
55978
|
};
|
|
55977
55979
|
g.__private__.getZoomMode = function() {
|
|
55978
55980
|
return Me;
|
|
55979
55981
|
};
|
|
55980
|
-
var ot, ht = g.__private__.setPageMode = function(
|
|
55982
|
+
var ot, ht = g.__private__.setPageMode = function(W) {
|
|
55981
55983
|
var V = [void 0, null, "UseNone", "UseOutlines", "UseThumbs", "FullScreen"];
|
|
55982
|
-
if (V.indexOf(
|
|
55983
|
-
throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "' +
|
|
55984
|
-
ot =
|
|
55984
|
+
if (V.indexOf(W) == -1)
|
|
55985
|
+
throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "' + W + '" is not recognized.');
|
|
55986
|
+
ot = W;
|
|
55985
55987
|
};
|
|
55986
55988
|
g.__private__.getPageMode = function() {
|
|
55987
55989
|
return ot;
|
|
55988
55990
|
};
|
|
55989
|
-
var bt, gt = g.__private__.setLayoutMode = function(
|
|
55991
|
+
var bt, gt = g.__private__.setLayoutMode = function(W) {
|
|
55990
55992
|
var V = [void 0, null, "continuous", "single", "twoleft", "tworight", "two"];
|
|
55991
|
-
if (V.indexOf(
|
|
55992
|
-
throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "' +
|
|
55993
|
-
bt =
|
|
55993
|
+
if (V.indexOf(W) == -1)
|
|
55994
|
+
throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "' + W + '" is not recognized.');
|
|
55995
|
+
bt = W;
|
|
55994
55996
|
};
|
|
55995
55997
|
g.__private__.getLayoutMode = function() {
|
|
55996
55998
|
return bt;
|
|
55997
|
-
}, g.__private__.setDisplayMode = g.setDisplayMode = function(
|
|
55998
|
-
return ze(
|
|
55999
|
+
}, g.__private__.setDisplayMode = g.setDisplayMode = function(W, V, ye) {
|
|
56000
|
+
return ze(W), gt(V), ht(ye), this;
|
|
55999
56001
|
};
|
|
56000
56002
|
var _t = {
|
|
56001
56003
|
title: "",
|
|
@@ -56004,30 +56006,30 @@ function jsPDF(a) {
|
|
|
56004
56006
|
keywords: "",
|
|
56005
56007
|
creator: ""
|
|
56006
56008
|
};
|
|
56007
|
-
g.__private__.getDocumentProperty = function(
|
|
56008
|
-
if (Object.keys(_t).indexOf(
|
|
56009
|
+
g.__private__.getDocumentProperty = function(W) {
|
|
56010
|
+
if (Object.keys(_t).indexOf(W) === -1)
|
|
56009
56011
|
throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");
|
|
56010
|
-
return _t[
|
|
56012
|
+
return _t[W];
|
|
56011
56013
|
}, g.__private__.getDocumentProperties = function() {
|
|
56012
56014
|
return _t;
|
|
56013
|
-
}, g.__private__.setDocumentProperties = g.setProperties = g.setDocumentProperties = function(
|
|
56015
|
+
}, g.__private__.setDocumentProperties = g.setProperties = g.setDocumentProperties = function(W) {
|
|
56014
56016
|
for (var V in _t)
|
|
56015
|
-
_t.hasOwnProperty(V) &&
|
|
56017
|
+
_t.hasOwnProperty(V) && W[V] && (_t[V] = W[V]);
|
|
56016
56018
|
return this;
|
|
56017
|
-
}, g.__private__.setDocumentProperty = function(
|
|
56018
|
-
if (Object.keys(_t).indexOf(
|
|
56019
|
+
}, g.__private__.setDocumentProperty = function(W, V) {
|
|
56020
|
+
if (Object.keys(_t).indexOf(W) === -1)
|
|
56019
56021
|
throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");
|
|
56020
|
-
return _t[
|
|
56022
|
+
return _t[W] = V;
|
|
56021
56023
|
};
|
|
56022
56024
|
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() {
|
|
56023
|
-
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((
|
|
56024
|
-
delete this.vFS[
|
|
56025
|
-
}), this.vFS = {}), Ie = [], Ve = [], pe = [], Object.keys(this).forEach((
|
|
56026
|
-
|
|
56025
|
+
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) => {
|
|
56026
|
+
delete this.vFS[W];
|
|
56027
|
+
}), this.vFS = {}), Ie = [], Ve = [], pe = [], Object.keys(this).forEach((W) => {
|
|
56028
|
+
W != "destory" && delete this[W];
|
|
56027
56029
|
});
|
|
56028
|
-
}, Pt = function
|
|
56029
|
-
if (!(this instanceof
|
|
56030
|
-
return new
|
|
56030
|
+
}, Pt = function W(V, ye, Fe, We, Ze, lt) {
|
|
56031
|
+
if (!(this instanceof W))
|
|
56032
|
+
return new W(V, ye, Fe, We, Ze, lt);
|
|
56031
56033
|
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];
|
|
56032
56034
|
};
|
|
56033
56035
|
Object.defineProperty(Pt.prototype, "sx", {
|
|
@@ -56130,40 +56132,40 @@ function jsPDF(a) {
|
|
|
56130
56132
|
get: function() {
|
|
56131
56133
|
return !(this.sx !== 1 || this.shy !== 0 || this.shx !== 0 || this.sy !== 1 || this.tx !== 0 || this.ty !== 0);
|
|
56132
56134
|
}
|
|
56133
|
-
}), Pt.prototype.join = function(
|
|
56134
|
-
return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(L).join(
|
|
56135
|
-
}, Pt.prototype.multiply = function(
|
|
56136
|
-
var V =
|
|
56135
|
+
}), Pt.prototype.join = function(W) {
|
|
56136
|
+
return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(L).join(W);
|
|
56137
|
+
}, Pt.prototype.multiply = function(W) {
|
|
56138
|
+
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;
|
|
56137
56139
|
return new Pt(V, ye, Fe, We, Ze, lt);
|
|
56138
56140
|
}, Pt.prototype.decompose = function() {
|
|
56139
|
-
var
|
|
56140
|
-
|
|
56141
|
-
var ft =
|
|
56142
|
-
ye -=
|
|
56141
|
+
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);
|
|
56142
|
+
W /= lt, V /= lt;
|
|
56143
|
+
var ft = W * ye + V * Fe;
|
|
56144
|
+
ye -= W * ft, Fe -= V * ft;
|
|
56143
56145
|
var mt = Math.sqrt(ye * ye + Fe * Fe);
|
|
56144
|
-
return ye /= mt, Fe /= mt, ft /= mt,
|
|
56146
|
+
return ye /= mt, Fe /= mt, ft /= mt, W * Fe < V * ye && (W = -W, V = -V, ft = -ft, lt = -lt), {
|
|
56145
56147
|
scale: new Pt(lt, 0, 0, mt, 0, 0),
|
|
56146
56148
|
translate: new Pt(1, 0, 0, 1, We, Ze),
|
|
56147
|
-
rotate: new Pt(
|
|
56149
|
+
rotate: new Pt(W, V, -V, W, 0, 0),
|
|
56148
56150
|
skew: new Pt(1, 0, ft, 1, 0, 0)
|
|
56149
56151
|
};
|
|
56150
|
-
}, Pt.prototype.toString = function(
|
|
56152
|
+
}, Pt.prototype.toString = function(W) {
|
|
56151
56153
|
return this.join(" ");
|
|
56152
56154
|
}, Pt.prototype.inversed = function() {
|
|
56153
|
-
var
|
|
56155
|
+
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;
|
|
56154
56156
|
return new Pt(ft, mt, Bt, Ht, Kt, $t);
|
|
56155
|
-
}, Pt.prototype.applyToPoint = function(
|
|
56156
|
-
var V =
|
|
56157
|
+
}, Pt.prototype.applyToPoint = function(W) {
|
|
56158
|
+
var V = W.x * this.sx + W.y * this.shx + this.tx, ye = W.x * this.shy + W.y * this.sy + this.ty;
|
|
56157
56159
|
return new xo(V, ye);
|
|
56158
|
-
}, Pt.prototype.applyToRectangle = function(
|
|
56159
|
-
var V = this.applyToPoint(
|
|
56160
|
+
}, Pt.prototype.applyToRectangle = function(W) {
|
|
56161
|
+
var V = this.applyToPoint(W), ye = this.applyToPoint(new xo(W.x + W.w, W.y + W.h));
|
|
56160
56162
|
return new bo(V.x, V.y, ye.x - V.x, ye.y - V.y);
|
|
56161
56163
|
}, Pt.prototype.clone = function() {
|
|
56162
|
-
var
|
|
56163
|
-
return new Pt(
|
|
56164
|
+
var W = this.sx, V = this.shy, ye = this.shx, Fe = this.sy, We = this.tx, Ze = this.ty;
|
|
56165
|
+
return new Pt(W, V, ye, Fe, We, Ze);
|
|
56164
56166
|
}, g.Matrix = Pt;
|
|
56165
|
-
var Ot = g.matrixMult = function(
|
|
56166
|
-
return V.multiply(
|
|
56167
|
+
var Ot = g.matrixMult = function(W, V) {
|
|
56168
|
+
return V.multiply(W);
|
|
56167
56169
|
}, Cr = new Pt(1, 0, 0, 1, 0, 0);
|
|
56168
56170
|
g.unitMatrix = g.identityMatrix = Cr;
|
|
56169
56171
|
var Nr = function(V, ye) {
|
|
@@ -56172,17 +56174,17 @@ function jsPDF(a) {
|
|
|
56172
56174
|
ye.id = We, Qt[V] = We, St[We] = ye, se.publish("addPattern", ye);
|
|
56173
56175
|
}
|
|
56174
56176
|
};
|
|
56175
|
-
g.ShadingPattern = ShadingPattern, g.TilingPattern = TilingPattern, g.addShadingPattern = function(
|
|
56176
|
-
return M("addShadingPattern()"), Nr(
|
|
56177
|
-
}, g.beginTilingPattern = function(
|
|
56178
|
-
M("beginTilingPattern()"), wn(
|
|
56179
|
-
}, g.endTilingPattern = function(
|
|
56177
|
+
g.ShadingPattern = ShadingPattern, g.TilingPattern = TilingPattern, g.addShadingPattern = function(W, V) {
|
|
56178
|
+
return M("addShadingPattern()"), Nr(W, V), this;
|
|
56179
|
+
}, g.beginTilingPattern = function(W) {
|
|
56180
|
+
M("beginTilingPattern()"), wn(W.boundingBox[0], W.boundingBox[1], W.boundingBox[2] - W.boundingBox[0], W.boundingBox[3] - W.boundingBox[1], W.matrix);
|
|
56181
|
+
}, g.endTilingPattern = function(W, V) {
|
|
56180
56182
|
M("endTilingPattern()"), V.stream = pe[Pe].join(`
|
|
56181
|
-
`), Nr(
|
|
56183
|
+
`), Nr(W, V), se.publish("endTilingPattern", V), Dt.pop().restore();
|
|
56182
56184
|
};
|
|
56183
56185
|
var Xt = g.__private__.newObject = function() {
|
|
56184
|
-
var
|
|
56185
|
-
return tr(
|
|
56186
|
+
var W = jt();
|
|
56187
|
+
return tr(W, !0), W;
|
|
56186
56188
|
}, jt = g.__private__.newObjectDeferred = function() {
|
|
56187
56189
|
return ne++, xe[ne] = function() {
|
|
56188
56190
|
return ve;
|
|
@@ -56190,13 +56192,13 @@ function jsPDF(a) {
|
|
|
56190
56192
|
}, tr = function(V, ye) {
|
|
56191
56193
|
return ye = typeof ye == "boolean" ? ye : !1, xe[V] = ve, ye && we(V + " 0 obj"), V;
|
|
56192
56194
|
}, Vt = g.__private__.newAdditionalObject = function() {
|
|
56193
|
-
var
|
|
56194
|
-
objId:
|
|
56195
|
+
var W = jt(), V = {
|
|
56196
|
+
objId: W,
|
|
56195
56197
|
content: ""
|
|
56196
56198
|
};
|
|
56197
56199
|
return _e.push(V), V;
|
|
56198
|
-
}, Zt = jt(), lr = jt(), gr = g.__private__.decodeColorString = function(
|
|
56199
|
-
var V =
|
|
56200
|
+
}, Zt = jt(), lr = jt(), gr = g.__private__.decodeColorString = function(W) {
|
|
56201
|
+
var V = W.split(" ");
|
|
56200
56202
|
if (V.length === 2 && (V[1] === "g" || V[1] === "G")) {
|
|
56201
56203
|
var ye = parseFloat(V[0]);
|
|
56202
56204
|
V = [ye, ye, ye, "r"];
|
|
@@ -56207,12 +56209,12 @@ function jsPDF(a) {
|
|
|
56207
56209
|
for (var lt = "#", ft = 0; ft < 3; ft++)
|
|
56208
56210
|
lt += ("0" + Math.floor(parseFloat(V[ft]) * 255).toString(16)).slice(-2);
|
|
56209
56211
|
return lt;
|
|
56210
|
-
}, Rr = g.__private__.encodeColorString = function(
|
|
56212
|
+
}, Rr = g.__private__.encodeColorString = function(W) {
|
|
56211
56213
|
var V;
|
|
56212
|
-
typeof
|
|
56213
|
-
ch1:
|
|
56214
|
+
typeof W == "string" && (W = {
|
|
56215
|
+
ch1: W
|
|
56214
56216
|
});
|
|
56215
|
-
var ye =
|
|
56217
|
+
var ye = W.ch1, Fe = W.ch2, We = W.ch3, Ze = W.ch4, lt = W.pdfColorType === "draw" ? ["G", "RG", "K"] : ["g", "rg", "k"];
|
|
56216
56218
|
if (typeof ye == "string" && ye.charAt(0) !== "#") {
|
|
56217
56219
|
var ft = new RGBColor(ye);
|
|
56218
56220
|
if (ft.ok)
|
|
@@ -56228,7 +56230,7 @@ function jsPDF(a) {
|
|
|
56228
56230
|
if (typeof ye == "string")
|
|
56229
56231
|
V = ye + " " + lt[0];
|
|
56230
56232
|
else
|
|
56231
|
-
switch (
|
|
56233
|
+
switch (W.precision) {
|
|
56232
56234
|
case 2:
|
|
56233
56235
|
V = H(ye / 255) + " " + lt[0];
|
|
56234
56236
|
break;
|
|
@@ -56242,7 +56244,7 @@ function jsPDF(a) {
|
|
|
56242
56244
|
if (typeof ye == "string")
|
|
56243
56245
|
V = [ye, Fe, We, lt[1]].join(" ");
|
|
56244
56246
|
else
|
|
56245
|
-
switch (
|
|
56247
|
+
switch (W.precision) {
|
|
56246
56248
|
case 2:
|
|
56247
56249
|
V = [H(ye / 255), H(Fe / 255), H(We / 255), lt[1]].join(" ");
|
|
56248
56250
|
break;
|
|
@@ -56253,7 +56255,7 @@ function jsPDF(a) {
|
|
|
56253
56255
|
} else if (typeof ye == "string")
|
|
56254
56256
|
V = [ye, Fe, We, Ze, lt[2]].join(" ");
|
|
56255
56257
|
else
|
|
56256
|
-
switch (
|
|
56258
|
+
switch (W.precision) {
|
|
56257
56259
|
case 2:
|
|
56258
56260
|
V = [H(ye), H(Fe), H(We), H(Ze), lt[2]].join(" ");
|
|
56259
56261
|
break;
|
|
@@ -56264,9 +56266,9 @@ function jsPDF(a) {
|
|
|
56264
56266
|
return V;
|
|
56265
56267
|
}, hi = g.__private__.getFilters = function() {
|
|
56266
56268
|
return s;
|
|
56267
|
-
}, Or = g.__private__.putStream = function(
|
|
56268
|
-
|
|
56269
|
-
var V =
|
|
56269
|
+
}, Or = g.__private__.putStream = function(W) {
|
|
56270
|
+
W = W || {};
|
|
56271
|
+
var V = W.data || "", ye = W.filters || hi(), Fe = W.alreadyAppliedFilters || [], We = W.addLength1 || !1, Ze = V.length, lt = W.objectId, ft = function(br) {
|
|
56270
56272
|
return br;
|
|
56271
56273
|
};
|
|
56272
56274
|
if (f !== null && typeof lt > "u")
|
|
@@ -56274,7 +56276,7 @@ function jsPDF(a) {
|
|
|
56274
56276
|
f !== null && (ft = Pr.encryptor(lt, 0));
|
|
56275
56277
|
var mt = {};
|
|
56276
56278
|
ye === !0 && (ye = ["FlateEncode"]);
|
|
56277
|
-
var Bt =
|
|
56279
|
+
var Bt = W.additionalKeyValues || [];
|
|
56278
56280
|
typeof jsPDF.API.processDataByFilters < "u" ? mt = jsPDF.API.processDataByFilters(V, ye) : mt = {
|
|
56279
56281
|
data: V,
|
|
56280
56282
|
reverseChain: []
|
|
@@ -56308,9 +56310,9 @@ function jsPDF(a) {
|
|
|
56308
56310
|
for (var Sr = 0; Sr < Bt.length; Sr++)
|
|
56309
56311
|
we("/" + Bt[Sr].key + " " + Bt[Sr].value);
|
|
56310
56312
|
we(">>"), mt.data.length !== 0 && (we("stream"), we(ft(mt.data)), we("endstream"));
|
|
56311
|
-
}, Ur = g.__private__.putPage = function(
|
|
56312
|
-
var V =
|
|
56313
|
-
tr(Fe, !0), we("<</Type /Page"), we("/Parent " +
|
|
56313
|
+
}, Ur = g.__private__.putPage = function(W) {
|
|
56314
|
+
var V = W.number, ye = W.data, Fe = W.objId, We = W.contentsObjId;
|
|
56315
|
+
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", {
|
|
56314
56316
|
objId: Fe,
|
|
56315
56317
|
pageContext: ee[V],
|
|
56316
56318
|
pageNumber: V,
|
|
@@ -56325,21 +56327,21 @@ Q`), tr(We, !0), Or({
|
|
|
56325
56327
|
objectId: We
|
|
56326
56328
|
}), we("endobj"), Fe;
|
|
56327
56329
|
}, Yr = g.__private__.putPages = function() {
|
|
56328
|
-
var
|
|
56329
|
-
for (
|
|
56330
|
-
ee[
|
|
56331
|
-
for (
|
|
56330
|
+
var W, V, ye = [];
|
|
56331
|
+
for (W = 1; W <= Gt; W++)
|
|
56332
|
+
ee[W].objId = jt(), ee[W].contentsObjId = jt();
|
|
56333
|
+
for (W = 1; W <= Gt; W++)
|
|
56332
56334
|
ye.push(Ur({
|
|
56333
|
-
number:
|
|
56334
|
-
data: pe[
|
|
56335
|
-
objId: ee[
|
|
56336
|
-
contentsObjId: ee[
|
|
56337
|
-
mediaBox: ee[
|
|
56338
|
-
cropBox: ee[
|
|
56339
|
-
bleedBox: ee[
|
|
56340
|
-
trimBox: ee[
|
|
56341
|
-
artBox: ee[
|
|
56342
|
-
userUnit: ee[
|
|
56335
|
+
number: W,
|
|
56336
|
+
data: pe[W],
|
|
56337
|
+
objId: ee[W].objId,
|
|
56338
|
+
contentsObjId: ee[W].contentsObjId,
|
|
56339
|
+
mediaBox: ee[W].mediaBox,
|
|
56340
|
+
cropBox: ee[W].cropBox,
|
|
56341
|
+
bleedBox: ee[W].bleedBox,
|
|
56342
|
+
trimBox: ee[W].trimBox,
|
|
56343
|
+
artBox: ee[W].artBox,
|
|
56344
|
+
userUnit: ee[W].userUnit,
|
|
56343
56345
|
rootDictionaryObjId: Zt,
|
|
56344
56346
|
resourceDictionaryObjId: lr
|
|
56345
56347
|
}));
|
|
@@ -56615,9 +56617,9 @@ Q`), tr(We, !0), Or({
|
|
|
56615
56617
|
mt.push(Kt), mt.push(Ht - (Kt << 8));
|
|
56616
56618
|
}
|
|
56617
56619
|
return String.fromCharCode.apply(void 0, mt);
|
|
56618
|
-
}, at = g.__private__.pdfEscape = g.pdfEscape = function(
|
|
56619
|
-
return ct(
|
|
56620
|
-
}, ut = g.__private__.beginPage = function(
|
|
56620
|
+
}, at = g.__private__.pdfEscape = g.pdfEscape = function(W, V) {
|
|
56621
|
+
return ct(W, V).replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)");
|
|
56622
|
+
}, ut = g.__private__.beginPage = function(W) {
|
|
56621
56623
|
pe[++Gt] = [], ee[Gt] = {
|
|
56622
56624
|
objId: 0,
|
|
56623
56625
|
contentsObjId: 0,
|
|
@@ -56629,8 +56631,8 @@ Q`), tr(We, !0), Or({
|
|
|
56629
56631
|
mediaBox: {
|
|
56630
56632
|
bottomLeftX: 0,
|
|
56631
56633
|
bottomLeftY: 0,
|
|
56632
|
-
topRightX: Number(
|
|
56633
|
-
topRightY: Number(
|
|
56634
|
+
topRightX: Number(W[0]),
|
|
56635
|
+
topRightY: Number(W[1])
|
|
56634
56636
|
}
|
|
56635
56637
|
}, Yt(Gt), He(pe[Pe]);
|
|
56636
56638
|
}, vt = function(V, ye) {
|
|
@@ -56656,16 +56658,16 @@ Q`), tr(We, !0), Or({
|
|
|
56656
56658
|
var We = void 0, Ze;
|
|
56657
56659
|
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;
|
|
56658
56660
|
}, cr = g.__private__.putInfo = function() {
|
|
56659
|
-
var
|
|
56661
|
+
var W = Xt(), V = function(We) {
|
|
56660
56662
|
return We;
|
|
56661
56663
|
};
|
|
56662
|
-
f !== null && (V = Pr.encryptor(
|
|
56664
|
+
f !== null && (V = Pr.encryptor(W, 0)), we("<<"), we("/Producer (" + at(V("jsPDF " + jsPDF.version)) + ")");
|
|
56663
56665
|
for (var ye in _t)
|
|
56664
56666
|
_t.hasOwnProperty(ye) && _t[ye] && we("/" + ye.substr(0, 1).toUpperCase() + ye.substr(1) + " (" + at(V(_t[ye])) + ")");
|
|
56665
56667
|
we("/CreationDate (" + at(V(J)) + ")"), we(">>"), we("endobj");
|
|
56666
|
-
}, kr = g.__private__.putCatalog = function(
|
|
56667
|
-
|
|
56668
|
-
var V =
|
|
56668
|
+
}, kr = g.__private__.putCatalog = function(W) {
|
|
56669
|
+
W = W || {};
|
|
56670
|
+
var V = W.rootDictionaryObjId || Zt;
|
|
56669
56671
|
switch (Xt(), we("<<"), we("/Type /Catalog"), we("/Pages " + V + " 0 R"), Me || (Me = "fullwidth"), Me) {
|
|
56670
56672
|
case "fullwidth":
|
|
56671
56673
|
we("/OpenAction [3 0 R /FitH null]");
|
|
@@ -56704,19 +56706,19 @@ Q`), tr(We, !0), Or({
|
|
|
56704
56706
|
}, Qi = g.__private__.putHeader = function() {
|
|
56705
56707
|
we("%PDF-" + y), we("%ºß¬à");
|
|
56706
56708
|
}, Wo = g.__private__.putXRef = function() {
|
|
56707
|
-
var
|
|
56709
|
+
var W = "0000000000";
|
|
56708
56710
|
we("xref"), we("0 " + (ne + 1)), we("0000000000 65535 f ");
|
|
56709
56711
|
for (var V = 1; V <= ne; V++) {
|
|
56710
56712
|
var ye = xe[V];
|
|
56711
|
-
typeof ye == "function" ? we((
|
|
56713
|
+
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 ");
|
|
56712
56714
|
}
|
|
56713
56715
|
}, Zr = g.__private__.buildDocument = function() {
|
|
56714
56716
|
Te(), He(Ie), se.publish("buildDocument"), Qi(), Yr(), ke(), be(), f !== null && mo(), cr(), kr();
|
|
56715
|
-
var
|
|
56716
|
-
return Wo(), Pi(), we("startxref"), we("" +
|
|
56717
|
+
var W = ve;
|
|
56718
|
+
return Wo(), Pi(), we("startxref"), we("" + W), we("%%EOF"), He(pe[Pe]), Ie.join(`
|
|
56717
56719
|
`);
|
|
56718
|
-
}, Ji = g.__private__.getBlob = function(
|
|
56719
|
-
return new Blob([he(
|
|
56720
|
+
}, Ji = g.__private__.getBlob = function(W) {
|
|
56721
|
+
return new Blob([he(W)], {
|
|
56720
56722
|
type: "application/pdf"
|
|
56721
56723
|
});
|
|
56722
56724
|
}, Ki = g.output = g.__private__.output = rt(function(V, ye) {
|
|
@@ -56819,20 +56821,20 @@ Q`), tr(We, !0), Or({
|
|
|
56819
56821
|
return f !== null ? Pr.encryptor(V, 0) : function(ye) {
|
|
56820
56822
|
return ye;
|
|
56821
56823
|
};
|
|
56822
|
-
}, un = g.__private__.getPageInfo = g.getPageInfo = function(
|
|
56823
|
-
if (isNaN(
|
|
56824
|
+
}, un = g.__private__.getPageInfo = g.getPageInfo = function(W) {
|
|
56825
|
+
if (isNaN(W) || W % 1 !== 0)
|
|
56824
56826
|
throw new Error("Invalid argument passed to jsPDF.getPageInfo");
|
|
56825
|
-
var V = ee[
|
|
56827
|
+
var V = ee[W].objId;
|
|
56826
56828
|
return {
|
|
56827
56829
|
objId: V,
|
|
56828
|
-
pageNumber:
|
|
56829
|
-
pageContext: ee[
|
|
56830
|
+
pageNumber: W,
|
|
56831
|
+
pageContext: ee[W]
|
|
56830
56832
|
};
|
|
56831
|
-
}, In = g.__private__.getPageInfoByObjId = function(
|
|
56832
|
-
if (isNaN(
|
|
56833
|
+
}, In = g.__private__.getPageInfoByObjId = function(W) {
|
|
56834
|
+
if (isNaN(W) || W % 1 !== 0)
|
|
56833
56835
|
throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");
|
|
56834
56836
|
for (var V in ee)
|
|
56835
|
-
if (ee[V].objId ===
|
|
56837
|
+
if (ee[V].objId === W)
|
|
56836
56838
|
break;
|
|
56837
56839
|
return un(V);
|
|
56838
56840
|
}, An = g.__private__.getCurrentPageInfo = g.getCurrentPageInfo = function() {
|
|
@@ -56846,39 +56848,39 @@ Q`), tr(We, !0), Or({
|
|
|
56846
56848
|
return vt.apply(this, arguments), this;
|
|
56847
56849
|
}, g.setPage = function() {
|
|
56848
56850
|
return Yt.apply(this, arguments), He.call(this, pe[Pe]), this;
|
|
56849
|
-
}, g.insertPage = function(
|
|
56850
|
-
return this.addPage(), this.movePage(Pe,
|
|
56851
|
-
}, g.movePage = function(
|
|
56851
|
+
}, g.insertPage = function(W) {
|
|
56852
|
+
return this.addPage(), this.movePage(Pe, W), this;
|
|
56853
|
+
}, g.movePage = function(W, V) {
|
|
56852
56854
|
var ye, Fe;
|
|
56853
|
-
if (
|
|
56854
|
-
ye = pe[
|
|
56855
|
-
for (var We =
|
|
56855
|
+
if (W > V) {
|
|
56856
|
+
ye = pe[W], Fe = ee[W];
|
|
56857
|
+
for (var We = W; We > V; We--)
|
|
56856
56858
|
pe[We] = pe[We - 1], ee[We] = ee[We - 1];
|
|
56857
56859
|
pe[V] = ye, ee[V] = Fe, this.setPage(V);
|
|
56858
|
-
} else if (
|
|
56859
|
-
ye = pe[
|
|
56860
|
-
for (var Ze =
|
|
56860
|
+
} else if (W < V) {
|
|
56861
|
+
ye = pe[W], Fe = ee[W];
|
|
56862
|
+
for (var Ze = W; Ze < V; Ze++)
|
|
56861
56863
|
pe[Ze] = pe[Ze + 1], ee[Ze] = ee[Ze + 1];
|
|
56862
56864
|
pe[V] = ye, ee[V] = Fe, this.setPage(V);
|
|
56863
56865
|
}
|
|
56864
56866
|
return this;
|
|
56865
56867
|
}, g.deletePage = function() {
|
|
56866
56868
|
return zt.apply(this, arguments), this;
|
|
56867
|
-
}, g.__private__.text = g.text = function(
|
|
56869
|
+
}, g.__private__.text = g.text = function(W, V, ye, Fe, We) {
|
|
56868
56870
|
Fe = Fe || {};
|
|
56869
56871
|
var Ze = Fe.scope || this, lt, ft, mt, Bt, Ht, Kt, $t, yr;
|
|
56870
|
-
if (typeof
|
|
56872
|
+
if (typeof W == "number" && typeof V == "number" && (typeof ye == "string" || Array.isArray(ye))) {
|
|
56871
56873
|
var Sr = ye;
|
|
56872
|
-
ye = V, V =
|
|
56874
|
+
ye = V, V = W, W = Sr;
|
|
56873
56875
|
}
|
|
56874
56876
|
var ur;
|
|
56875
56877
|
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 = {
|
|
56876
56878
|
flags: $t,
|
|
56877
56879
|
angle: mt,
|
|
56878
56880
|
align: Bt
|
|
56879
|
-
})), isNaN(V) || isNaN(ye) || typeof
|
|
56881
|
+
})), isNaN(V) || isNaN(ye) || typeof W > "u" || W === null)
|
|
56880
56882
|
throw new Error("Invalid arguments passed to jsPDF.text");
|
|
56881
|
-
if (
|
|
56883
|
+
if (W.length === 0)
|
|
56882
56884
|
return Ze;
|
|
56883
56885
|
var br = "", Br = !1, Oi = typeof Fe.lineHeightFactor == "number" ? Fe.lineHeightFactor : $i, _o = Ze.internal.scaleFactor;
|
|
56884
56886
|
function fr(vr) {
|
|
@@ -56901,18 +56903,18 @@ Q`), tr(We, !0), Or({
|
|
|
56901
56903
|
return dr;
|
|
56902
56904
|
}
|
|
56903
56905
|
var io = !1, Qo = !0;
|
|
56904
|
-
if (typeof
|
|
56906
|
+
if (typeof W == "string")
|
|
56905
56907
|
io = !0;
|
|
56906
|
-
else if (Array.isArray(
|
|
56907
|
-
var Jr =
|
|
56908
|
+
else if (Array.isArray(W)) {
|
|
56909
|
+
var Jr = W.concat();
|
|
56908
56910
|
ft = [];
|
|
56909
56911
|
for (var Dr = Jr.length, si; Dr--; )
|
|
56910
56912
|
si = Jr.shift(), (typeof si != "string" || Array.isArray(si) && typeof si[0] != "string") && (Qo = !1);
|
|
56911
56913
|
io = Qo;
|
|
56912
56914
|
}
|
|
56913
56915
|
if (io === !1)
|
|
56914
|
-
throw new Error('Type of text must be string or Array. "' +
|
|
56915
|
-
typeof
|
|
56916
|
+
throw new Error('Type of text must be string or Array. "' + W + '" is not recognized.');
|
|
56917
|
+
typeof W == "string" && (W.match(/[\r?\n]/) ? W = [W.replace(/\r\n|\r|\n/g, "")] : W = [W]);
|
|
56916
56918
|
var oo = Ne / Ze.internal.scaleFactor, no = oo * (Oi - 1);
|
|
56917
56919
|
switch (Fe.baseline) {
|
|
56918
56920
|
case "bottom":
|
|
@@ -56928,10 +56930,10 @@ Q`), tr(We, !0), Or({
|
|
|
56928
56930
|
ye += oo / 2 - no;
|
|
56929
56931
|
break;
|
|
56930
56932
|
}
|
|
56931
|
-
if (Kt = Fe.maxWidth || 0, Kt > 0 && (typeof
|
|
56933
|
+
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) {
|
|
56932
56934
|
return vr.concat(Ze.splitTextToSize(ar, Kt));
|
|
56933
56935
|
}, []))), lt = {
|
|
56934
|
-
text:
|
|
56936
|
+
text: W,
|
|
56935
56937
|
x: V,
|
|
56936
56938
|
y: ye,
|
|
56937
56939
|
options: Fe,
|
|
@@ -56941,7 +56943,7 @@ Q`), tr(We, !0), Or({
|
|
|
56941
56943
|
fonts: pt,
|
|
56942
56944
|
activeFontSize: Ne
|
|
56943
56945
|
}
|
|
56944
|
-
}, se.publish("preProcessText", lt),
|
|
56946
|
+
}, se.publish("preProcessText", lt), W = lt.text, Fe = lt.options, mt = Fe.angle, !(ur instanceof Pt) && mt && typeof mt == "number") {
|
|
56945
56947
|
mt *= Math.PI / 180, Fe.rotationDirection === 0 && (mt = -mt), D === _.ADVANCED && (mt = -mt);
|
|
56946
56948
|
var Jo = Math.cos(mt), Bi = Math.sin(mt);
|
|
56947
56949
|
ur = new Pt(Jo, Bi, -Bi, Jo, 0, 0);
|
|
@@ -56998,8 +57000,8 @@ Q`), tr(We, !0), Or({
|
|
|
56998
57000
|
noBOM: !0
|
|
56999
57001
|
}, Fe.flags);
|
|
57000
57002
|
var lo = [];
|
|
57001
|
-
if (Object.prototype.toString.call(
|
|
57002
|
-
ft = Xo(
|
|
57003
|
+
if (Object.prototype.toString.call(W) === "[object Array]") {
|
|
57004
|
+
ft = Xo(W);
|
|
57003
57005
|
var xi;
|
|
57004
57006
|
Bt !== "left" && (Kr = ft.map(function(vr) {
|
|
57005
57007
|
return Ze.getStringUnitWidth(vr, {
|
|
@@ -57011,29 +57013,29 @@ Q`), tr(We, !0), Or({
|
|
|
57011
57013
|
}));
|
|
57012
57014
|
var co = 0, bi;
|
|
57013
57015
|
if (Bt === "right") {
|
|
57014
|
-
V -= Kr[0],
|
|
57016
|
+
V -= Kr[0], W = [], Dr = ft.length;
|
|
57015
57017
|
for (var zi = 0; zi < Dr; zi++)
|
|
57016
|
-
zi === 0 ? (bi = Ni(V), xi = sr(ye)) : (bi = Y(co - Kr[zi]), xi = -Ko),
|
|
57018
|
+
zi === 0 ? (bi = Ni(V), xi = sr(ye)) : (bi = Y(co - Kr[zi]), xi = -Ko), W.push([ft[zi], bi, xi]), co = Kr[zi];
|
|
57017
57019
|
} else if (Bt === "center") {
|
|
57018
|
-
V -= Kr[0] / 2,
|
|
57020
|
+
V -= Kr[0] / 2, W = [], Dr = ft.length;
|
|
57019
57021
|
for (var Wi = 0; Wi < Dr; Wi++)
|
|
57020
|
-
Wi === 0 ? (bi = Ni(V), xi = sr(ye)) : (bi = Y((co - Kr[Wi]) / 2), xi = -Ko),
|
|
57022
|
+
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];
|
|
57021
57023
|
} else if (Bt === "left") {
|
|
57022
|
-
|
|
57024
|
+
W = [], Dr = ft.length;
|
|
57023
57025
|
for (var To = 0; To < Dr; To++)
|
|
57024
|
-
|
|
57026
|
+
W.push(ft[To]);
|
|
57025
57027
|
} else if (Bt === "justify") {
|
|
57026
|
-
|
|
57028
|
+
W = [], Dr = ft.length, Kt = Kt !== 0 ? Kt : ao;
|
|
57027
57029
|
for (var ai = 0; ai < Dr; ai++)
|
|
57028
|
-
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),
|
|
57030
|
+
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]);
|
|
57029
57031
|
} else
|
|
57030
57032
|
throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');
|
|
57031
57033
|
}
|
|
57032
57034
|
var $o = typeof Fe.R2L == "boolean" ? Fe.R2L : Qe;
|
|
57033
|
-
$o === !0 && (
|
|
57035
|
+
$o === !0 && (W = qo(W, function(vr, ar, dr) {
|
|
57034
57036
|
return [vr.split("").reverse().join(""), ar, dr];
|
|
57035
57037
|
})), lt = {
|
|
57036
|
-
text:
|
|
57038
|
+
text: W,
|
|
57037
57039
|
x: V,
|
|
57038
57040
|
y: ye,
|
|
57039
57041
|
options: Fe,
|
|
@@ -57043,11 +57045,11 @@ Q`), tr(We, !0), Or({
|
|
|
57043
57045
|
fonts: pt,
|
|
57044
57046
|
activeFontSize: Ne
|
|
57045
57047
|
}
|
|
57046
|
-
}, se.publish("postProcessText", lt),
|
|
57048
|
+
}, se.publish("postProcessText", lt), W = lt.text, Br = lt.mutex.isHex || !1;
|
|
57047
57049
|
var en = pt[xt].encoding;
|
|
57048
|
-
(en === "WinAnsiEncoding" || en === "StandardEncoding") && (
|
|
57050
|
+
(en === "WinAnsiEncoding" || en === "StandardEncoding") && (W = qo(W, function(vr, ar, dr) {
|
|
57049
57051
|
return [fr(vr), ar, dr];
|
|
57050
|
-
})), ft = Xo(
|
|
57052
|
+
})), ft = Xo(W), W = [];
|
|
57051
57053
|
for (var Ei = 0, ho = 1, uo = Array.isArray(ft[0]) ? ho : Ei, Hr, Gr, Fi, ji = "", So = function(ar, dr, Fr) {
|
|
57052
57054
|
var xr = "";
|
|
57053
57055
|
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
|
|
@@ -57063,37 +57065,37 @@ Q`), tr(We, !0), Or({
|
|
|
57063
57065
|
break;
|
|
57064
57066
|
}
|
|
57065
57067
|
typeof lo < "u" && typeof lo[Vr] < "u" && (ji = lo[Vr] + ` Tw
|
|
57066
|
-
`), Vr === 0 ?
|
|
57068
|
+
`), 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);
|
|
57067
57069
|
}
|
|
57068
|
-
|
|
57069
|
-
T* `) :
|
|
57070
|
-
`),
|
|
57070
|
+
W = uo === Ei ? W.join(` Tj
|
|
57071
|
+
T* `) : W.join(` Tj
|
|
57072
|
+
`), W += ` Tj
|
|
57071
57073
|
`;
|
|
57072
57074
|
var li = `BT
|
|
57073
57075
|
/`;
|
|
57074
57076
|
return li += xt + " " + Ne + ` Tf
|
|
57075
57077
|
`, li += L(Ne * Oi) + ` TL
|
|
57076
57078
|
`, li += Hi + `
|
|
57077
|
-
`, li += br, li +=
|
|
57079
|
+
`, li += br, li += W, li += "ET", we(li), m[xt] = !0, Ze;
|
|
57078
57080
|
};
|
|
57079
|
-
var vo = g.__private__.clip = g.clip = function(
|
|
57080
|
-
return we(
|
|
57081
|
+
var vo = g.__private__.clip = g.clip = function(W) {
|
|
57082
|
+
return we(W === "evenodd" ? "W*" : "W"), this;
|
|
57081
57083
|
};
|
|
57082
57084
|
g.clipEvenOdd = function() {
|
|
57083
57085
|
return vo("evenodd");
|
|
57084
57086
|
}, g.__private__.discardPath = g.discardPath = function() {
|
|
57085
57087
|
return we("n"), this;
|
|
57086
57088
|
};
|
|
57087
|
-
var mi = g.__private__.isValidStyle = function(
|
|
57089
|
+
var mi = g.__private__.isValidStyle = function(W) {
|
|
57088
57090
|
var V = [void 0, null, "S", "D", "F", "DF", "FD", "f", "f*", "B", "B*", "n"], ye = !1;
|
|
57089
|
-
return V.indexOf(
|
|
57091
|
+
return V.indexOf(W) !== -1 && (ye = !0), ye;
|
|
57090
57092
|
};
|
|
57091
|
-
g.__private__.setDefaultPathOperation = g.setDefaultPathOperation = function(
|
|
57092
|
-
return mi(
|
|
57093
|
+
g.__private__.setDefaultPathOperation = g.setDefaultPathOperation = function(W) {
|
|
57094
|
+
return mi(W) && (u = W), this;
|
|
57093
57095
|
};
|
|
57094
|
-
var fn = g.__private__.getStyle = g.getStyle = function(
|
|
57096
|
+
var fn = g.__private__.getStyle = g.getStyle = function(W) {
|
|
57095
57097
|
var V = u;
|
|
57096
|
-
switch (
|
|
57098
|
+
switch (W) {
|
|
57097
57099
|
case "D":
|
|
57098
57100
|
case "S":
|
|
57099
57101
|
V = "S";
|
|
@@ -57109,7 +57111,7 @@ T* `) : z.join(` Tj
|
|
|
57109
57111
|
case "f*":
|
|
57110
57112
|
case "B":
|
|
57111
57113
|
case "B*":
|
|
57112
|
-
V =
|
|
57114
|
+
V = W;
|
|
57113
57115
|
break;
|
|
57114
57116
|
}
|
|
57115
57117
|
return V;
|
|
@@ -57118,24 +57120,24 @@ T* `) : z.join(` Tj
|
|
|
57118
57120
|
};
|
|
57119
57121
|
g.stroke = function() {
|
|
57120
57122
|
return we("S"), this;
|
|
57121
|
-
}, g.fill = function(
|
|
57122
|
-
return wo("f",
|
|
57123
|
-
}, g.fillEvenOdd = function(
|
|
57124
|
-
return wo("f*",
|
|
57125
|
-
}, g.fillStroke = function(
|
|
57126
|
-
return wo("B",
|
|
57127
|
-
}, g.fillStrokeEvenOdd = function(
|
|
57128
|
-
return wo("B*",
|
|
57123
|
+
}, g.fill = function(W) {
|
|
57124
|
+
return wo("f", W), this;
|
|
57125
|
+
}, g.fillEvenOdd = function(W) {
|
|
57126
|
+
return wo("f*", W), this;
|
|
57127
|
+
}, g.fillStroke = function(W) {
|
|
57128
|
+
return wo("B", W), this;
|
|
57129
|
+
}, g.fillStrokeEvenOdd = function(W) {
|
|
57130
|
+
return wo("B*", W), this;
|
|
57129
57131
|
};
|
|
57130
57132
|
var wo = function(V, ye) {
|
|
57131
57133
|
_typeof(ye) === "object" ? Mn(ye, V) : we(V);
|
|
57132
57134
|
}, Rt = function(V) {
|
|
57133
57135
|
V === null || D === _.ADVANCED && V === void 0 || (V = fn(V), we(V));
|
|
57134
57136
|
};
|
|
57135
|
-
function Ln(
|
|
57137
|
+
function Ln(W, V, ye, Fe, We) {
|
|
57136
57138
|
var Ze = new TilingPattern(V || this.boundingBox, ye || this.xStep, Fe || this.yStep, this.gState, We || this.matrix);
|
|
57137
57139
|
Ze.stream = this.stream;
|
|
57138
|
-
var lt =
|
|
57140
|
+
var lt = W + "$$" + this.cloneIndex++ + "$$";
|
|
57139
57141
|
return Nr(lt, Ze), Ze;
|
|
57140
57142
|
}
|
|
57141
57143
|
var Mn = function(V, ye) {
|
|
@@ -57164,27 +57166,27 @@ T* `) : z.join(` Tj
|
|
|
57164
57166
|
case "n":
|
|
57165
57167
|
return "W n";
|
|
57166
57168
|
}
|
|
57167
|
-
}, jo = g.moveTo = function(
|
|
57168
|
-
return we(L(Y(
|
|
57169
|
-
}, gn = g.lineTo = function(
|
|
57170
|
-
return we(L(Y(
|
|
57171
|
-
}, yi = g.curveTo = function(
|
|
57172
|
-
return we([L(Y(
|
|
57169
|
+
}, jo = g.moveTo = function(W, V) {
|
|
57170
|
+
return we(L(Y(W)) + " " + L(U(V)) + " m"), this;
|
|
57171
|
+
}, gn = g.lineTo = function(W, V) {
|
|
57172
|
+
return we(L(Y(W)) + " " + L(U(V)) + " l"), this;
|
|
57173
|
+
}, yi = g.curveTo = function(W, V, ye, Fe, We, Ze) {
|
|
57174
|
+
return we([L(Y(W)), L(U(V)), L(Y(ye)), L(U(Fe)), L(Y(We)), L(U(Ze)), "c"].join(" ")), this;
|
|
57173
57175
|
};
|
|
57174
|
-
g.__private__.line = g.line = function(
|
|
57175
|
-
if (isNaN(
|
|
57176
|
+
g.__private__.line = g.line = function(W, V, ye, Fe, We) {
|
|
57177
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
|
|
57176
57178
|
throw new Error("Invalid arguments passed to jsPDF.line");
|
|
57177
|
-
return D === _.COMPAT ? this.lines([[ye -
|
|
57178
|
-
}, g.__private__.lines = g.lines = function(
|
|
57179
|
+
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();
|
|
57180
|
+
}, g.__private__.lines = g.lines = function(W, V, ye, Fe, We, Ze) {
|
|
57179
57181
|
var lt, ft, mt, Bt, Ht, Kt, $t, yr, Sr, ur, br, Br;
|
|
57180
|
-
if (typeof
|
|
57182
|
+
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")
|
|
57181
57183
|
throw new Error("Invalid arguments passed to jsPDF.lines");
|
|
57182
|
-
for (jo(V, ye), lt = Fe[0], ft = Fe[1], Bt =
|
|
57183
|
-
Ht =
|
|
57184
|
+
for (jo(V, ye), lt = Fe[0], ft = Fe[1], Bt = W.length, ur = V, br = ye, mt = 0; mt < Bt; mt++)
|
|
57185
|
+
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));
|
|
57184
57186
|
return Ze && pn(), Rt(We), this;
|
|
57185
|
-
}, g.path = function(
|
|
57186
|
-
for (var V = 0; V <
|
|
57187
|
-
var ye =
|
|
57187
|
+
}, g.path = function(W) {
|
|
57188
|
+
for (var V = 0; V < W.length; V++) {
|
|
57189
|
+
var ye = W[V], Fe = ye.c;
|
|
57188
57190
|
switch (ye.op) {
|
|
57189
57191
|
case "m":
|
|
57190
57192
|
jo(Fe[0], Fe[1]);
|
|
@@ -57201,53 +57203,53 @@ T* `) : z.join(` Tj
|
|
|
57201
57203
|
}
|
|
57202
57204
|
}
|
|
57203
57205
|
return this;
|
|
57204
|
-
}, g.__private__.rect = g.rect = function(
|
|
57205
|
-
if (isNaN(
|
|
57206
|
+
}, g.__private__.rect = g.rect = function(W, V, ye, Fe, We) {
|
|
57207
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
|
|
57206
57208
|
throw new Error("Invalid arguments passed to jsPDF.rect");
|
|
57207
|
-
return D === _.COMPAT && (Fe = -Fe), we([L(Y(
|
|
57208
|
-
}, g.__private__.triangle = g.triangle = function(
|
|
57209
|
-
if (isNaN(
|
|
57209
|
+
return D === _.COMPAT && (Fe = -Fe), we([L(Y(W)), L(U(V)), L(Y(ye)), L(Y(Fe)), "re"].join(" ")), Rt(We), this;
|
|
57210
|
+
}, g.__private__.triangle = g.triangle = function(W, V, ye, Fe, We, Ze, lt) {
|
|
57211
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || isNaN(We) || isNaN(Ze) || !mi(lt))
|
|
57210
57212
|
throw new Error("Invalid arguments passed to jsPDF.triangle");
|
|
57211
57213
|
return this.lines(
|
|
57212
57214
|
[
|
|
57213
|
-
[ye -
|
|
57215
|
+
[ye - W, Fe - V],
|
|
57214
57216
|
// vector to point 2
|
|
57215
57217
|
[We - ye, Ze - Fe],
|
|
57216
57218
|
// vector to point 3
|
|
57217
|
-
[
|
|
57219
|
+
[W - We, V - Ze]
|
|
57218
57220
|
// closing vector back to point 1
|
|
57219
57221
|
],
|
|
57220
|
-
|
|
57222
|
+
W,
|
|
57221
57223
|
V,
|
|
57222
57224
|
// start of path
|
|
57223
57225
|
[1, 1],
|
|
57224
57226
|
lt,
|
|
57225
57227
|
!0
|
|
57226
57228
|
), this;
|
|
57227
|
-
}, g.__private__.roundedRect = g.roundedRect = function(
|
|
57228
|
-
if (isNaN(
|
|
57229
|
+
}, g.__private__.roundedRect = g.roundedRect = function(W, V, ye, Fe, We, Ze, lt) {
|
|
57230
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || isNaN(We) || isNaN(Ze) || !mi(lt))
|
|
57229
57231
|
throw new Error("Invalid arguments passed to jsPDF.roundedRect");
|
|
57230
57232
|
var ft = 4 / 3 * (Math.SQRT2 - 1);
|
|
57231
57233
|
return We = Math.min(We, ye * 0.5), Ze = Math.min(Ze, Fe * 0.5), this.lines(
|
|
57232
57234
|
[[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]],
|
|
57233
|
-
|
|
57235
|
+
W + We,
|
|
57234
57236
|
V,
|
|
57235
57237
|
// start of path
|
|
57236
57238
|
[1, 1],
|
|
57237
57239
|
lt,
|
|
57238
57240
|
!0
|
|
57239
57241
|
), this;
|
|
57240
|
-
}, g.__private__.ellipse = g.ellipse = function(
|
|
57241
|
-
if (isNaN(
|
|
57242
|
+
}, g.__private__.ellipse = g.ellipse = function(W, V, ye, Fe, We) {
|
|
57243
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
|
|
57242
57244
|
throw new Error("Invalid arguments passed to jsPDF.ellipse");
|
|
57243
57245
|
var Ze = 4 / 3 * (Math.SQRT2 - 1) * ye, lt = 4 / 3 * (Math.SQRT2 - 1) * Fe;
|
|
57244
|
-
return jo(
|
|
57245
|
-
}, g.__private__.circle = g.circle = function(
|
|
57246
|
-
if (isNaN(
|
|
57246
|
+
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;
|
|
57247
|
+
}, g.__private__.circle = g.circle = function(W, V, ye, Fe) {
|
|
57248
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || !mi(Fe))
|
|
57247
57249
|
throw new Error("Invalid arguments passed to jsPDF.circle");
|
|
57248
|
-
return this.ellipse(
|
|
57249
|
-
}, g.setFont = function(
|
|
57250
|
-
return ye && (V = I(V, ye)), xt = hr(
|
|
57250
|
+
return this.ellipse(W, V, ye, ye, Fe);
|
|
57251
|
+
}, g.setFont = function(W, V, ye) {
|
|
57252
|
+
return ye && (V = I(V, ye)), xt = hr(W, V, {
|
|
57251
57253
|
disableWarning: !1
|
|
57252
57254
|
}), this;
|
|
57253
57255
|
};
|
|
@@ -57255,29 +57257,29 @@ T* `) : z.join(` Tj
|
|
|
57255
57257
|
return pt[hr.apply(g, arguments)];
|
|
57256
57258
|
};
|
|
57257
57259
|
g.__private__.getFontList = g.getFontList = function() {
|
|
57258
|
-
var
|
|
57260
|
+
var W = {}, V, ye;
|
|
57259
57261
|
for (V in Tt)
|
|
57260
57262
|
if (Tt.hasOwnProperty(V)) {
|
|
57261
|
-
|
|
57263
|
+
W[V] = [];
|
|
57262
57264
|
for (ye in Tt[V])
|
|
57263
|
-
Tt[V].hasOwnProperty(ye) &&
|
|
57265
|
+
Tt[V].hasOwnProperty(ye) && W[V].push(ye);
|
|
57264
57266
|
}
|
|
57265
|
-
return
|
|
57266
|
-
}, g.addFont = function(
|
|
57267
|
+
return W;
|
|
57268
|
+
}, g.addFont = function(W, V, ye, Fe, We) {
|
|
57267
57269
|
var Ze = ["StandardEncoding", "MacRomanEncoding", "Identity-H", "WinAnsiEncoding"];
|
|
57268
|
-
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,
|
|
57270
|
+
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);
|
|
57269
57271
|
};
|
|
57270
57272
|
var Yo = a.lineWidth || 0.200025, mn = g.__private__.getLineWidth = g.getLineWidth = function() {
|
|
57271
57273
|
return Yo;
|
|
57272
|
-
}, yn = g.__private__.setLineWidth = g.setLineWidth = function(
|
|
57273
|
-
return Yo =
|
|
57274
|
+
}, yn = g.__private__.setLineWidth = g.setLineWidth = function(W) {
|
|
57275
|
+
return Yo = W, we(L(Y(W)) + " w"), this;
|
|
57274
57276
|
};
|
|
57275
|
-
g.__private__.setLineDash = jsPDF.API.setLineDash = jsPDF.API.setLineDashPattern = function(
|
|
57276
|
-
if (
|
|
57277
|
+
g.__private__.setLineDash = jsPDF.API.setLineDash = jsPDF.API.setLineDashPattern = function(W, V) {
|
|
57278
|
+
if (W = W || [], V = V || 0, isNaN(V) || !Array.isArray(W))
|
|
57277
57279
|
throw new Error("Invalid arguments passed to jsPDF.setLineDash");
|
|
57278
|
-
return
|
|
57280
|
+
return W = W.map(function(ye) {
|
|
57279
57281
|
return L(Y(ye));
|
|
57280
|
-
}).join(" "), V = L(Y(V)), we("[" +
|
|
57282
|
+
}).join(" "), V = L(Y(V)), we("[" + W + "] " + V + " d"), this;
|
|
57281
57283
|
};
|
|
57282
57284
|
var $i, Co = g.__private__.getLineHeight = g.getLineHeight = function() {
|
|
57283
57285
|
return Ne * $i;
|
|
@@ -57285,29 +57287,29 @@ T* `) : z.join(` Tj
|
|
|
57285
57287
|
g.__private__.getLineHeight = g.getLineHeight = function() {
|
|
57286
57288
|
return Ne * $i;
|
|
57287
57289
|
};
|
|
57288
|
-
var kn = g.__private__.setLineHeightFactor = g.setLineHeightFactor = function(
|
|
57289
|
-
return
|
|
57290
|
+
var kn = g.__private__.setLineHeightFactor = g.setLineHeightFactor = function(W) {
|
|
57291
|
+
return W = W || 1.15, typeof W == "number" && ($i = W), this;
|
|
57290
57292
|
}, Hn = g.__private__.getLineHeightFactor = g.getLineHeightFactor = function() {
|
|
57291
57293
|
return $i;
|
|
57292
57294
|
};
|
|
57293
57295
|
kn(a.lineHeight);
|
|
57294
|
-
var Ni = g.__private__.getHorizontalCoordinate = function(
|
|
57295
|
-
return Y(
|
|
57296
|
-
}, sr = g.__private__.getVerticalCoordinate = function(
|
|
57296
|
+
var Ni = g.__private__.getHorizontalCoordinate = function(W) {
|
|
57297
|
+
return Y(W);
|
|
57298
|
+
}, sr = g.__private__.getVerticalCoordinate = function(W) {
|
|
57297
57299
|
if (D === _.ADVANCED)
|
|
57298
|
-
return
|
|
57300
|
+
return W;
|
|
57299
57301
|
var V = ee[Pe].mediaBox.topRightY - ee[Pe].mediaBox.bottomLeftY;
|
|
57300
|
-
return V - Y(
|
|
57301
|
-
}, vi = g.__private__.getHorizontalCoordinateString = g.getHorizontalCoordinateString = function(
|
|
57302
|
-
return L(Ni(
|
|
57303
|
-
}, ki = g.__private__.getVerticalCoordinateString = g.getVerticalCoordinateString = function(
|
|
57304
|
-
return L(sr(
|
|
57302
|
+
return V - Y(W);
|
|
57303
|
+
}, vi = g.__private__.getHorizontalCoordinateString = g.getHorizontalCoordinateString = function(W) {
|
|
57304
|
+
return L(Ni(W));
|
|
57305
|
+
}, ki = g.__private__.getVerticalCoordinateString = g.getVerticalCoordinateString = function(W) {
|
|
57306
|
+
return L(sr(W));
|
|
57305
57307
|
}, eo = a.strokeColor || "0 G";
|
|
57306
57308
|
g.__private__.getStrokeColor = g.getDrawColor = function() {
|
|
57307
57309
|
return gr(eo);
|
|
57308
|
-
}, g.__private__.setStrokeColor = g.setDrawColor = function(
|
|
57310
|
+
}, g.__private__.setStrokeColor = g.setDrawColor = function(W, V, ye, Fe) {
|
|
57309
57311
|
var We = {
|
|
57310
|
-
ch1:
|
|
57312
|
+
ch1: W,
|
|
57311
57313
|
ch2: V,
|
|
57312
57314
|
ch3: ye,
|
|
57313
57315
|
ch4: Fe,
|
|
@@ -57319,9 +57321,9 @@ T* `) : z.join(` Tj
|
|
|
57319
57321
|
var to = a.fillColor || "0 g";
|
|
57320
57322
|
g.__private__.getFillColor = g.getFillColor = function() {
|
|
57321
57323
|
return gr(to);
|
|
57322
|
-
}, g.__private__.setFillColor = g.setFillColor = function(
|
|
57324
|
+
}, g.__private__.setFillColor = g.setFillColor = function(W, V, ye, Fe) {
|
|
57323
57325
|
var We = {
|
|
57324
|
-
ch1:
|
|
57326
|
+
ch1: W,
|
|
57325
57327
|
ch2: V,
|
|
57326
57328
|
ch3: ye,
|
|
57327
57329
|
ch4: Fe,
|
|
@@ -57333,9 +57335,9 @@ T* `) : z.join(` Tj
|
|
|
57333
57335
|
var Hi = a.textColor || "0 g", vn = g.__private__.getTextColor = g.getTextColor = function() {
|
|
57334
57336
|
return gr(Hi);
|
|
57335
57337
|
};
|
|
57336
|
-
g.__private__.setTextColor = g.setTextColor = function(
|
|
57338
|
+
g.__private__.setTextColor = g.setTextColor = function(W, V, ye, Fe) {
|
|
57337
57339
|
var We = {
|
|
57338
|
-
ch1:
|
|
57340
|
+
ch1: W,
|
|
57339
57341
|
ch2: V,
|
|
57340
57342
|
ch3: ye,
|
|
57341
57343
|
ch4: Fe,
|
|
@@ -57347,10 +57349,10 @@ T* `) : z.join(` Tj
|
|
|
57347
57349
|
var Ti = a.charSpace, wi = g.__private__.getCharSpace = g.getCharSpace = function() {
|
|
57348
57350
|
return parseFloat(Ti || 0);
|
|
57349
57351
|
};
|
|
57350
|
-
g.__private__.setCharSpace = g.setCharSpace = function(
|
|
57351
|
-
if (isNaN(
|
|
57352
|
+
g.__private__.setCharSpace = g.setCharSpace = function(W) {
|
|
57353
|
+
if (isNaN(W))
|
|
57352
57354
|
throw new Error("Invalid argument passed to jsPDF.setCharSpace");
|
|
57353
|
-
return Ti =
|
|
57355
|
+
return Ti = W, this;
|
|
57354
57356
|
};
|
|
57355
57357
|
var qr = 0;
|
|
57356
57358
|
g.CapJoinStyles = {
|
|
@@ -57367,24 +57369,24 @@ T* `) : z.join(` Tj
|
|
|
57367
57369
|
project: 2,
|
|
57368
57370
|
square: 2,
|
|
57369
57371
|
bevel: 2
|
|
57370
|
-
}, g.__private__.setLineCap = g.setLineCap = function(
|
|
57371
|
-
var V = g.CapJoinStyles[
|
|
57372
|
+
}, g.__private__.setLineCap = g.setLineCap = function(W) {
|
|
57373
|
+
var V = g.CapJoinStyles[W];
|
|
57372
57374
|
if (V === void 0)
|
|
57373
|
-
throw new Error("Line cap style of '" +
|
|
57375
|
+
throw new Error("Line cap style of '" + W + "' is not recognized. See or extend .CapJoinStyles property for valid styles");
|
|
57374
57376
|
return qr = V, we(V + " J"), this;
|
|
57375
57377
|
};
|
|
57376
57378
|
var Ci = 0;
|
|
57377
|
-
g.__private__.setLineJoin = g.setLineJoin = function(
|
|
57378
|
-
var V = g.CapJoinStyles[
|
|
57379
|
+
g.__private__.setLineJoin = g.setLineJoin = function(W) {
|
|
57380
|
+
var V = g.CapJoinStyles[W];
|
|
57379
57381
|
if (V === void 0)
|
|
57380
|
-
throw new Error("Line join style of '" +
|
|
57382
|
+
throw new Error("Line join style of '" + W + "' is not recognized. See or extend .CapJoinStyles property for valid styles");
|
|
57381
57383
|
return Ci = V, we(V + " j"), this;
|
|
57382
|
-
}, g.__private__.setLineMiterLimit = g.__private__.setMiterLimit = g.setLineMiterLimit = g.setMiterLimit = function(
|
|
57383
|
-
if (
|
|
57384
|
+
}, g.__private__.setLineMiterLimit = g.__private__.setMiterLimit = g.setLineMiterLimit = g.setMiterLimit = function(W) {
|
|
57385
|
+
if (W = W || 0, isNaN(W))
|
|
57384
57386
|
throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");
|
|
57385
|
-
return we(L(Y(
|
|
57386
|
-
}, g.GState = GState, g.setGState = function(
|
|
57387
|
-
typeof
|
|
57387
|
+
return we(L(Y(W)) + " M"), this;
|
|
57388
|
+
}, g.GState = GState, g.setGState = function(W) {
|
|
57389
|
+
typeof W == "string" ? W = At[or[W]] : W = Qr(null, W), W.equals(wr) || (we("/" + W.id + " gs"), wr = W);
|
|
57388
57390
|
};
|
|
57389
57391
|
var Qr = function(V, ye) {
|
|
57390
57392
|
if (!(V && or[V])) {
|
|
@@ -57403,8 +57405,8 @@ T* `) : z.join(` Tj
|
|
|
57403
57405
|
return V && (or[V] = ye.id), se.publish("addGState", ye), ye;
|
|
57404
57406
|
}
|
|
57405
57407
|
};
|
|
57406
|
-
g.addGState = function(
|
|
57407
|
-
return Qr(
|
|
57408
|
+
g.addGState = function(W, V) {
|
|
57409
|
+
return Qr(W, V), this;
|
|
57408
57410
|
}, g.saveGraphicsState = function() {
|
|
57409
57411
|
return we("q"), It.push({
|
|
57410
57412
|
key: xt,
|
|
@@ -57413,12 +57415,12 @@ T* `) : z.join(` Tj
|
|
|
57413
57415
|
}), this;
|
|
57414
57416
|
}, g.restoreGraphicsState = function() {
|
|
57415
57417
|
we("Q");
|
|
57416
|
-
var
|
|
57417
|
-
return xt =
|
|
57418
|
-
}, g.setCurrentTransformationMatrix = function(
|
|
57419
|
-
return we(
|
|
57420
|
-
}, g.comment = function(
|
|
57421
|
-
return we("#" +
|
|
57418
|
+
var W = It.pop();
|
|
57419
|
+
return xt = W.key, Ne = W.size, Hi = W.color, wr = null, this;
|
|
57420
|
+
}, g.setCurrentTransformationMatrix = function(W) {
|
|
57421
|
+
return we(W.toString() + " cm"), this;
|
|
57422
|
+
}, g.comment = function(W) {
|
|
57423
|
+
return we("#" + W), this;
|
|
57422
57424
|
};
|
|
57423
57425
|
var xo = function(V, ye) {
|
|
57424
57426
|
var Fe = V || 0;
|
|
@@ -57489,15 +57491,15 @@ T* `) : z.join(` Tj
|
|
|
57489
57491
|
var ye = new Zo(), Fe = "Xo" + (Object.keys(Ue).length + 1).toString(10);
|
|
57490
57492
|
ye.id = Fe, Ge[V] = Fe, Ue[Fe] = ye, se.publish("addFormObject", ye), Dt.pop().restore();
|
|
57491
57493
|
};
|
|
57492
|
-
g.beginFormObject = function(
|
|
57493
|
-
return wn(
|
|
57494
|
-
}, g.endFormObject = function(
|
|
57495
|
-
return On(
|
|
57496
|
-
}, g.doFormObject = function(
|
|
57497
|
-
var ye = Ue[Ge[
|
|
57494
|
+
g.beginFormObject = function(W, V, ye, Fe, We) {
|
|
57495
|
+
return wn(W, V, ye, Fe, We), this;
|
|
57496
|
+
}, g.endFormObject = function(W) {
|
|
57497
|
+
return On(W), this;
|
|
57498
|
+
}, g.doFormObject = function(W, V) {
|
|
57499
|
+
var ye = Ue[Ge[W]];
|
|
57498
57500
|
return we("q"), we(V.toString() + " cm"), we("/" + ye.id + " Do"), we("Q"), this;
|
|
57499
|
-
}, g.getFormObject = function(
|
|
57500
|
-
var V = Ue[Ge[
|
|
57501
|
+
}, g.getFormObject = function(W) {
|
|
57502
|
+
var V = Ue[Ge[W]];
|
|
57501
57503
|
return {
|
|
57502
57504
|
x: V.x,
|
|
57503
57505
|
y: V.y,
|
|
@@ -57505,10 +57507,10 @@ T* `) : z.join(` Tj
|
|
|
57505
57507
|
height: V.height,
|
|
57506
57508
|
matrix: V.matrix
|
|
57507
57509
|
};
|
|
57508
|
-
}, g.save = function(
|
|
57509
|
-
return
|
|
57510
|
+
}, g.save = function(W, V) {
|
|
57511
|
+
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) {
|
|
57510
57512
|
try {
|
|
57511
|
-
var We = saveAs(Ji(Zr()),
|
|
57513
|
+
var We = saveAs(Ji(Zr()), W);
|
|
57512
57514
|
typeof saveAs.unload == "function" && globalObject.setTimeout && setTimeout(saveAs.unload, 911), ye(We);
|
|
57513
57515
|
} catch (Ze) {
|
|
57514
57516
|
Fe(Ze.message);
|
|
@@ -57516,19 +57518,19 @@ T* `) : z.join(` Tj
|
|
|
57516
57518
|
});
|
|
57517
57519
|
};
|
|
57518
57520
|
for (var Si in jsPDF.API)
|
|
57519
|
-
jsPDF.API.hasOwnProperty(Si) && (Si === "events" && jsPDF.API.events.length ? function(
|
|
57521
|
+
jsPDF.API.hasOwnProperty(Si) && (Si === "events" && jsPDF.API.events.length ? function(W, V) {
|
|
57520
57522
|
var ye, Fe, We;
|
|
57521
57523
|
for (We = V.length - 1; We !== -1; We--)
|
|
57522
|
-
ye = V[We][0], Fe = V[We][1],
|
|
57524
|
+
ye = V[We][0], Fe = V[We][1], W.subscribe.apply(W, [ye].concat(typeof Fe == "function" ? [Fe] : Fe));
|
|
57523
57525
|
}(se, jsPDF.API.events) : g[Si] = jsPDF.API[Si]);
|
|
57524
|
-
var ro = g.getPageWidth = function(
|
|
57525
|
-
return
|
|
57526
|
-
}, Go = g.setPageWidth = function(
|
|
57527
|
-
ee[
|
|
57528
|
-
}, Di = g.getPageHeight = function(
|
|
57529
|
-
return
|
|
57530
|
-
}, Vo = g.setPageHeight = function(
|
|
57531
|
-
ee[
|
|
57526
|
+
var ro = g.getPageWidth = function(W) {
|
|
57527
|
+
return W = W || Pe, (ee[W].mediaBox.topRightX - ee[W].mediaBox.bottomLeftX) / kt;
|
|
57528
|
+
}, Go = g.setPageWidth = function(W, V) {
|
|
57529
|
+
ee[W].mediaBox.topRightX = V * kt + ee[W].mediaBox.bottomLeftX;
|
|
57530
|
+
}, Di = g.getPageHeight = function(W) {
|
|
57531
|
+
return W = W || Pe, (ee[W].mediaBox.topRightY - ee[W].mediaBox.bottomLeftY) / kt;
|
|
57532
|
+
}, Vo = g.setPageHeight = function(W, V) {
|
|
57533
|
+
ee[W].mediaBox.topRightY = V * kt + ee[W].mediaBox.bottomLeftY;
|
|
57532
57534
|
};
|
|
57533
57535
|
return g.internal = {
|
|
57534
57536
|
pdfEscape: at,
|
|
@@ -57679,8 +57681,8 @@ var inherit = function a(t, r) {
|
|
|
57679
57681
|
f = f < 0 ? -f : f;
|
|
57680
57682
|
var p = function(Y, j, U) {
|
|
57681
57683
|
if (Y + 1 < s.length) {
|
|
57682
|
-
var X = j + " " + s[Y + 1],
|
|
57683
|
-
return
|
|
57684
|
+
var X = j + " " + s[Y + 1], z = calculateFontSpace(X, t, U).width, G = f - 2 * d;
|
|
57685
|
+
return z <= G;
|
|
57684
57686
|
} else
|
|
57685
57687
|
return !1;
|
|
57686
57688
|
};
|
|
@@ -59066,16 +59068,16 @@ jsPDF.AcroForm;
|
|
|
59066
59068
|
[80, 84]
|
|
59067
59069
|
//PT - OS/2 pointer
|
|
59068
59070
|
]
|
|
59069
|
-
}, s = a.__addimage__.getImageFileTypeByImageData = function(
|
|
59071
|
+
}, s = a.__addimage__.getImageFileTypeByImageData = function(z, G) {
|
|
59070
59072
|
G = G || r;
|
|
59071
59073
|
var J, ae, Ce = r, oe, me, ue;
|
|
59072
|
-
if (G === "RGBA" ||
|
|
59074
|
+
if (G === "RGBA" || z.data !== void 0 && z.data instanceof Uint8ClampedArray && "height" in z && "width" in z)
|
|
59073
59075
|
return "RGBA";
|
|
59074
|
-
if (B(
|
|
59076
|
+
if (B(z))
|
|
59075
59077
|
for (ue in n)
|
|
59076
59078
|
for (oe = n[ue], J = 0; J < oe.length; J += 1) {
|
|
59077
59079
|
for (me = !0, ae = 0; ae < oe[J].length; ae += 1)
|
|
59078
|
-
if (oe[J][ae] !== void 0 && oe[J][ae] !==
|
|
59080
|
+
if (oe[J][ae] !== void 0 && oe[J][ae] !== z[ae]) {
|
|
59079
59081
|
me = !1;
|
|
59080
59082
|
break;
|
|
59081
59083
|
}
|
|
@@ -59088,7 +59090,7 @@ jsPDF.AcroForm;
|
|
|
59088
59090
|
for (ue in n)
|
|
59089
59091
|
for (oe = n[ue], J = 0; J < oe.length; J += 1) {
|
|
59090
59092
|
for (me = !0, ae = 0; ae < oe[J].length; ae += 1)
|
|
59091
|
-
if (oe[J][ae] !== void 0 && oe[J][ae] !==
|
|
59093
|
+
if (oe[J][ae] !== void 0 && oe[J][ae] !== z.charCodeAt(ae)) {
|
|
59092
59094
|
me = !1;
|
|
59093
59095
|
break;
|
|
59094
59096
|
}
|
|
@@ -59098,7 +59100,7 @@ jsPDF.AcroForm;
|
|
|
59098
59100
|
}
|
|
59099
59101
|
}
|
|
59100
59102
|
return Ce === r && G !== r && (Ce = G), Ce;
|
|
59101
|
-
}, l = function
|
|
59103
|
+
}, l = function z(G) {
|
|
59102
59104
|
for (var J = this.internal.write, ae = this.internal.putStream, Ce = this.internal.getFilters, oe = Ce(); oe.indexOf("FlateEncode") !== -1; )
|
|
59103
59105
|
oe.splice(oe.indexOf("FlateEncode"), 1);
|
|
59104
59106
|
G.objectId = this.internal.newObject();
|
|
@@ -59158,7 +59160,7 @@ jsPDF.AcroForm;
|
|
|
59158
59160
|
decodeParameters: Ie,
|
|
59159
59161
|
data: G.sMask
|
|
59160
59162
|
};
|
|
59161
|
-
"filter" in G && (ve.filter = G.filter),
|
|
59163
|
+
"filter" in G && (ve.filter = G.filter), z.call(this, ve);
|
|
59162
59164
|
}
|
|
59163
59165
|
if (G.colorSpace === T.INDEXED) {
|
|
59164
59166
|
var _e = this.internal.newObject();
|
|
@@ -59276,22 +59278,22 @@ jsPDF.AcroForm;
|
|
|
59276
59278
|
FAST: "FAST",
|
|
59277
59279
|
MEDIUM: "MEDIUM",
|
|
59278
59280
|
SLOW: "SLOW"
|
|
59279
|
-
}, M = a.__addimage__.sHashCode = function(
|
|
59281
|
+
}, M = a.__addimage__.sHashCode = function(z) {
|
|
59280
59282
|
var G = 0, J, ae;
|
|
59281
|
-
if (typeof
|
|
59282
|
-
for (ae =
|
|
59283
|
-
G = (G << 5) - G +
|
|
59284
|
-
else if (B(
|
|
59285
|
-
for (ae =
|
|
59286
|
-
G = (G << 5) - G +
|
|
59283
|
+
if (typeof z == "string")
|
|
59284
|
+
for (ae = z.length, J = 0; J < ae; J++)
|
|
59285
|
+
G = (G << 5) - G + z.charCodeAt(J), G |= 0;
|
|
59286
|
+
else if (B(z))
|
|
59287
|
+
for (ae = z.byteLength / 2, J = 0; J < ae; J++)
|
|
59288
|
+
G = (G << 5) - G + z[J], G |= 0;
|
|
59287
59289
|
return G;
|
|
59288
|
-
}, k = a.__addimage__.validateStringAsBase64 = function(
|
|
59289
|
-
|
|
59290
|
+
}, k = a.__addimage__.validateStringAsBase64 = function(z) {
|
|
59291
|
+
z = z || "", z.toString().trim();
|
|
59290
59292
|
var G = !0;
|
|
59291
|
-
return
|
|
59292
|
-
}, L = a.__addimage__.extractImageFromDataUrl = function(
|
|
59293
|
-
|
|
59294
|
-
var G =
|
|
59293
|
+
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;
|
|
59294
|
+
}, L = a.__addimage__.extractImageFromDataUrl = function(z) {
|
|
59295
|
+
z = z || "";
|
|
59296
|
+
var G = z.split("base64,"), J = null;
|
|
59295
59297
|
if (G.length === 2) {
|
|
59296
59298
|
var ae = /^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(G[0]);
|
|
59297
59299
|
Array.isArray(ae) && (J = {
|
|
@@ -59304,31 +59306,31 @@ jsPDF.AcroForm;
|
|
|
59304
59306
|
}, H = a.__addimage__.supportsArrayBuffer = function() {
|
|
59305
59307
|
return typeof ArrayBuffer < "u" && typeof Uint8Array < "u";
|
|
59306
59308
|
};
|
|
59307
|
-
a.__addimage__.isArrayBuffer = function(
|
|
59308
|
-
return H() &&
|
|
59309
|
+
a.__addimage__.isArrayBuffer = function(z) {
|
|
59310
|
+
return H() && z instanceof ArrayBuffer;
|
|
59309
59311
|
};
|
|
59310
|
-
var B = a.__addimage__.isArrayBufferView = function(
|
|
59311
|
-
return H() && typeof Uint32Array < "u" && (
|
|
59312
|
-
}, Y = a.__addimage__.binaryStringToUint8Array = function(
|
|
59313
|
-
for (var G =
|
|
59314
|
-
J[ae] =
|
|
59312
|
+
var B = a.__addimage__.isArrayBufferView = function(z) {
|
|
59313
|
+
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);
|
|
59314
|
+
}, Y = a.__addimage__.binaryStringToUint8Array = function(z) {
|
|
59315
|
+
for (var G = z.length, J = new Uint8Array(G), ae = 0; ae < G; ae++)
|
|
59316
|
+
J[ae] = z.charCodeAt(ae);
|
|
59315
59317
|
return J;
|
|
59316
|
-
}, j = a.__addimage__.arrayBufferToBinaryString = function(
|
|
59317
|
-
for (var G = "", J = B(
|
|
59318
|
+
}, j = a.__addimage__.arrayBufferToBinaryString = function(z) {
|
|
59319
|
+
for (var G = "", J = B(z) ? z : new Uint8Array(z), ae = 0; ae < J.length; ae += o)
|
|
59318
59320
|
G += String.fromCharCode.apply(null, J.subarray(ae, ae + o));
|
|
59319
|
-
return releaseArrayBuffer(
|
|
59321
|
+
return releaseArrayBuffer(z), G;
|
|
59320
59322
|
};
|
|
59321
59323
|
a.addImage = function() {
|
|
59322
|
-
var
|
|
59323
|
-
if (
|
|
59324
|
-
var ne =
|
|
59325
|
-
|
|
59324
|
+
var z, G, J, ae, Ce, oe, me, ue, Q;
|
|
59325
|
+
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) {
|
|
59326
|
+
var ne = z;
|
|
59327
|
+
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;
|
|
59326
59328
|
}
|
|
59327
59329
|
var xe = this.internal.getFilters();
|
|
59328
59330
|
if (ue === void 0 && xe.indexOf("FlateEncode") !== -1 && (ue = "SLOW"), ue = "SLOW", isNaN(J) || isNaN(ae))
|
|
59329
59331
|
throw new Error("Invalid coordinates passed to jsPDF.addImage");
|
|
59330
59332
|
f.call(this);
|
|
59331
|
-
var Ie = U.call(this,
|
|
59333
|
+
var Ie = U.call(this, z, G, me, ue);
|
|
59332
59334
|
return E.call(this, J, ae, Ce, oe, Ie, Q), this;
|
|
59333
59335
|
};
|
|
59334
59336
|
var U = function(G, J, ae, Ce) {
|
|
@@ -59344,11 +59346,11 @@ jsPDF.AcroForm;
|
|
|
59344
59346
|
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)
|
|
59345
59347
|
throw new Error("An unknown error occurred whilst processing the image.");
|
|
59346
59348
|
return oe.exifdata = ue, oe;
|
|
59347
|
-
}, X = a.__addimage__.convertBase64ToBinaryString = function(
|
|
59349
|
+
}, X = a.__addimage__.convertBase64ToBinaryString = function(z, G) {
|
|
59348
59350
|
G = typeof G == "boolean" ? G : !0;
|
|
59349
59351
|
var J, ae = "", Ce;
|
|
59350
|
-
if (typeof
|
|
59351
|
-
J = L(
|
|
59352
|
+
if (typeof z == "string") {
|
|
59353
|
+
J = L(z), Ce = J !== null ? J.data : z;
|
|
59352
59354
|
try {
|
|
59353
59355
|
ae = atob$1(Ce);
|
|
59354
59356
|
} catch (oe) {
|
|
@@ -59358,11 +59360,11 @@ jsPDF.AcroForm;
|
|
|
59358
59360
|
}
|
|
59359
59361
|
return ae;
|
|
59360
59362
|
};
|
|
59361
|
-
a.getImageProperties = function(
|
|
59363
|
+
a.getImageProperties = function(z) {
|
|
59362
59364
|
var G, J = "", ae;
|
|
59363
|
-
if (v(
|
|
59365
|
+
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))
|
|
59364
59366
|
throw new Error("addImage does not support files of type '" + ae + "', please ensure that a plugin for '" + ae + "' support is added.");
|
|
59365
|
-
if (H() && !(
|
|
59367
|
+
if (H() && !(z instanceof Uint8Array) && (z = Y(z)), G = this["process" + ae.toUpperCase()](z), !G)
|
|
59366
59368
|
throw new Error("An unknown error occurred whilst processing the image");
|
|
59367
59369
|
return G.fileType = ae, G;
|
|
59368
59370
|
};
|
|
@@ -60013,12 +60015,12 @@ function releaseArrayBuffer(a) {
|
|
|
60013
60015
|
}
|
|
60014
60016
|
}
|
|
60015
60017
|
if (L) {
|
|
60016
|
-
var
|
|
60018
|
+
var z = {};
|
|
60017
60019
|
for (C = 0; C < y.length; C += 1)
|
|
60018
|
-
|
|
60019
|
-
var G = d.call(this,
|
|
60020
|
+
z[y[C]] = {}, z[y[C]].text = w[C], z[y[C]].align = v[C];
|
|
60021
|
+
var G = d.call(this, z, D);
|
|
60020
60022
|
M = y.map(function(oe) {
|
|
60021
|
-
return new l(u, f, D[oe], G,
|
|
60023
|
+
return new l(u, f, D[oe], G, z[oe].text, void 0, z[oe].align);
|
|
60022
60024
|
}), this.setTableHeaderRow(M), this.printHeaderRow(1, !1);
|
|
60023
60025
|
}
|
|
60024
60026
|
var J = m.reduce(function(oe, me) {
|
|
@@ -61054,7 +61056,7 @@ function parseFontFamily(a) {
|
|
|
61054
61056
|
return this.createLinearGradient();
|
|
61055
61057
|
};
|
|
61056
61058
|
var k = function(Q, ne, xe, Ie, ve, _e, pe, Pe, De) {
|
|
61057
|
-
for (var Ve =
|
|
61059
|
+
for (var Ve = z.call(this, xe, Ie, ve, _e), Te = 0; Te < Ve.length; Te++) {
|
|
61058
61060
|
var He = Ve[Te];
|
|
61059
61061
|
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);
|
|
61060
61062
|
}
|
|
@@ -61139,7 +61141,7 @@ function parseFontFamily(a) {
|
|
|
61139
61141
|
return this.pdf.lines(Q, ne, xe, null, null);
|
|
61140
61142
|
}, X = function(Q, ne, xe, Ie, ve, _e, pe, Pe) {
|
|
61141
61143
|
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(" "));
|
|
61142
|
-
},
|
|
61144
|
+
}, z = function(Q, ne, xe, Ie) {
|
|
61143
61145
|
for (var ve = 1e-5, _e = Math.PI * 2, pe = Math.PI / 2; ne > xe; )
|
|
61144
61146
|
ne = ne - _e;
|
|
61145
61147
|
var Pe = Math.abs(xe - ne);
|
|
@@ -61990,7 +61992,7 @@ var PNG = function() {
|
|
|
61990
61992
|
return new Uint8Array(0);
|
|
61991
61993
|
d = unzlibSync(d);
|
|
61992
61994
|
function g(y, w, v, C) {
|
|
61993
|
-
var _, D, E, T, I, M, k, L, H, B, Y, j, U, X,
|
|
61995
|
+
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;
|
|
61994
61996
|
for (X = u * ue, j = ne ? f : new Uint8Array(X * Q), M = d.length, U = 0, D = 0; U < Q && p < M; ) {
|
|
61995
61997
|
switch (d[p++]) {
|
|
61996
61998
|
case 0:
|
|
@@ -62003,15 +62005,15 @@ var PNG = function() {
|
|
|
62003
62005
|
break;
|
|
62004
62006
|
case 2:
|
|
62005
62007
|
for (T = Ce = 0; Ce < X; T = Ce += 1)
|
|
62006
|
-
_ = d[p++], E = (T - T % u) / u,
|
|
62008
|
+
_ = d[p++], E = (T - T % u) / u, z = U && j[(U - 1) * X + E * u + T % u], j[D++] = (z + _) % 256;
|
|
62007
62009
|
break;
|
|
62008
62010
|
case 3:
|
|
62009
62011
|
for (T = oe = 0; oe < X; T = oe += 1)
|
|
62010
|
-
_ = d[p++], E = (T - T % u) / u, I = T < u ? 0 : j[D - u],
|
|
62012
|
+
_ = 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;
|
|
62011
62013
|
break;
|
|
62012
62014
|
case 4:
|
|
62013
62015
|
for (T = me = 0; me < X; T = me += 1)
|
|
62014
|
-
_ = d[p++], E = (T - T % u) / u, I = T < u ? 0 : j[D - u], U === 0 ?
|
|
62016
|
+
_ = 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;
|
|
62015
62017
|
break;
|
|
62016
62018
|
default:
|
|
62017
62019
|
console$1.warn(`Invalid filter algorithm: ${d[p - 1], d[p]}--png格式图片只包含[01234]`);
|
|
@@ -62208,7 +62210,7 @@ var PNG = function() {
|
|
|
62208
62210
|
return v;
|
|
62209
62211
|
};
|
|
62210
62212
|
a.processPNG = function(y, w, v, C) {
|
|
62211
|
-
var _, D = this.decode.FLATE_DECODE, E, T, I = "", M, k, L, H, B, Y, j, U, X,
|
|
62213
|
+
var _, D = this.decode.FLATE_DECODE, E, T, I = "", M, k, L, H, B, Y, j, U, X, z, G, J;
|
|
62212
62214
|
if (this.__addimage__.isArrayBuffer(y) && (y = new Uint8Array(y)), this.__addimage__.isArrayBufferView(y)) {
|
|
62213
62215
|
if (T = new PNG(y), y = T.imgData, E = T.bits, _ = T.colorSpace, k = T.colors, [4, 6].indexOf(T.colorType) !== -1) {
|
|
62214
62216
|
if (T.bits === 8) {
|
|
@@ -62216,15 +62218,15 @@ var PNG = function() {
|
|
|
62216
62218
|
var ae = T.pixelBitlength - T.bits;
|
|
62217
62219
|
G = 0, J = 0;
|
|
62218
62220
|
for (var Ce; G < Y; G++) {
|
|
62219
|
-
for (
|
|
62220
|
-
U[J++] =
|
|
62221
|
-
j[G] =
|
|
62221
|
+
for (z = B[G], Ce = 0; Ce < ae; )
|
|
62222
|
+
U[J++] = z >>> Ce & 255, Ce = Ce + T.bits;
|
|
62223
|
+
j[G] = z >>> Ce & 255;
|
|
62222
62224
|
}
|
|
62223
62225
|
}
|
|
62224
62226
|
if (T.bits === 16) {
|
|
62225
62227
|
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;
|
|
62226
62228
|
for (var oe = 0; G < Y; )
|
|
62227
|
-
|
|
62229
|
+
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;
|
|
62228
62230
|
E = 8;
|
|
62229
62231
|
}
|
|
62230
62232
|
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);
|
|
@@ -62374,7 +62376,7 @@ function GifReader(a) {
|
|
|
62374
62376
|
}, this.frameInfo = function(X) {
|
|
62375
62377
|
if (X < 0 || X >= p.length) throw new Error("Frame index out of range.");
|
|
62376
62378
|
return p[X];
|
|
62377
|
-
}, this.decodeAndBlitFrameBGRA = function(X,
|
|
62379
|
+
}, this.decodeAndBlitFrameBGRA = function(X, z) {
|
|
62378
62380
|
var G = this.frameInfo(X), J = G.width * G.height, ae = new Uint8Array(J);
|
|
62379
62381
|
GifReaderLZWOutputIndexStream(a, G.data_offset, ae, J);
|
|
62380
62382
|
var Ce = G.palette_offset, oe = G.transparent_index;
|
|
@@ -62387,11 +62389,11 @@ function GifReader(a) {
|
|
|
62387
62389
|
Ie += 4;
|
|
62388
62390
|
else {
|
|
62389
62391
|
var Ve = a[Ce + De * 3], Te = a[Ce + De * 3 + 1], He = a[Ce + De * 3 + 2];
|
|
62390
|
-
|
|
62392
|
+
z[Ie++] = He, z[Ie++] = Te, z[Ie++] = Ve, z[Ie++] = 255;
|
|
62391
62393
|
}
|
|
62392
62394
|
--Q;
|
|
62393
62395
|
}
|
|
62394
|
-
}, this.decodeAndBlitFrameRGBA = function(X,
|
|
62396
|
+
}, this.decodeAndBlitFrameRGBA = function(X, z) {
|
|
62395
62397
|
var G = this.frameInfo(X), J = G.width * G.height, ae = new Uint8Array(J);
|
|
62396
62398
|
GifReaderLZWOutputIndexStream(a, G.data_offset, ae, J);
|
|
62397
62399
|
var Ce = G.palette_offset, oe = G.transparent_index;
|
|
@@ -62401,10 +62403,10 @@ function GifReader(a) {
|
|
|
62401
62403
|
for (var _e = 8, pe = 0, Pe = ae.length; pe < Pe; ++pe) {
|
|
62402
62404
|
var De = ae[pe];
|
|
62403
62405
|
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)
|
|
62404
|
-
|
|
62406
|
+
z[Ie++] = 255, z[Ie++] = 255, z[Ie++] = 255, z[Ie++] = 255;
|
|
62405
62407
|
else {
|
|
62406
62408
|
var Ve = a[Ce + De * 3], Te = a[Ce + De * 3 + 1], He = a[Ce + De * 3 + 2];
|
|
62407
|
-
|
|
62409
|
+
z[Ie++] = Ve, z[Ie++] = Te, z[Ie++] = He, z[Ie++] = 255;
|
|
62408
62410
|
}
|
|
62409
62411
|
--Q;
|
|
62410
62412
|
}
|
|
@@ -62470,7 +62472,7 @@ function GifReaderLZWOutputIndexStream(a, t, r, o) {
|
|
|
62470
62472
|
*/
|
|
62471
62473
|
function JPEGEncoder(a) {
|
|
62472
62474
|
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];
|
|
62473
|
-
function
|
|
62475
|
+
function z(Te) {
|
|
62474
62476
|
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++) {
|
|
62475
62477
|
var le = t((He[we] * Te + 50) / 100);
|
|
62476
62478
|
le = Math.min(Math.max(le, 1), 255), r[M[we]] = le;
|
|
@@ -62629,7 +62631,7 @@ function JPEGEncoder(a) {
|
|
|
62629
62631
|
function De(Te) {
|
|
62630
62632
|
if (Te = Math.min(Math.max(Te, 1), 100), I != Te) {
|
|
62631
62633
|
var He = Te < 50 ? Math.floor(5e3 / Te) : Math.floor(200 - Te * 2);
|
|
62632
|
-
|
|
62634
|
+
z(He), I = Te;
|
|
62633
62635
|
}
|
|
62634
62636
|
}
|
|
62635
62637
|
function Ve() {
|
|
@@ -62786,13 +62788,13 @@ function WebPDecoder(a) {
|
|
|
62786
62788
|
if (Y[j + X] != U.charCodeAt(X)) return !0;
|
|
62787
62789
|
return !1;
|
|
62788
62790
|
}
|
|
62789
|
-
function o(Y, j, U, X,
|
|
62790
|
-
for (var G = 0; G <
|
|
62791
|
+
function o(Y, j, U, X, z) {
|
|
62792
|
+
for (var G = 0; G < z; G++)
|
|
62791
62793
|
Y[j + G] = U[X + G];
|
|
62792
62794
|
}
|
|
62793
62795
|
function n(Y, j, U, X) {
|
|
62794
|
-
for (var
|
|
62795
|
-
Y[j +
|
|
62796
|
+
for (var z = 0; z < X; z++)
|
|
62797
|
+
Y[j + z] = U;
|
|
62796
62798
|
}
|
|
62797
62799
|
function s(Y) {
|
|
62798
62800
|
return new Int32Array(Y);
|
|
@@ -62803,17 +62805,17 @@ function WebPDecoder(a) {
|
|
|
62803
62805
|
return U;
|
|
62804
62806
|
}
|
|
62805
62807
|
function c() {
|
|
62806
|
-
function Y(U, X,
|
|
62807
|
-
for (var G =
|
|
62808
|
-
Y(U[J], X + 1,
|
|
62808
|
+
function Y(U, X, z) {
|
|
62809
|
+
for (var G = z[X], J = 0; J < G && (U.push(z.length > X + 1 ? [] : 0), !(z.length < X + 1)); J++)
|
|
62810
|
+
Y(U[J], X + 1, z);
|
|
62809
62811
|
}
|
|
62810
62812
|
var j = [];
|
|
62811
62813
|
return Y(j, 0, [3, 11]), j;
|
|
62812
62814
|
}
|
|
62813
62815
|
function d(Y, j) {
|
|
62814
|
-
function U(
|
|
62815
|
-
for (var ae = J[G], Ce = 0; Ce < ae && (
|
|
62816
|
-
U(
|
|
62816
|
+
function U(z, G, J) {
|
|
62817
|
+
for (var ae = J[G], Ce = 0; Ce < ae && (z.push(J.length > G + 1 ? [] : new j()), !(J.length < G + 1)); Ce++)
|
|
62818
|
+
U(z[Ce], G + 1, J);
|
|
62817
62819
|
}
|
|
62818
62820
|
var X = [];
|
|
62819
62821
|
return U(X, 0, Y), X;
|
|
@@ -62831,7 +62833,7 @@ function WebPDecoder(a) {
|
|
|
62831
62833
|
O -= R, N[F + O] = K;
|
|
62832
62834
|
while (0 < O);
|
|
62833
62835
|
}
|
|
62834
|
-
function
|
|
62836
|
+
function z(N, F, R, O, K, te) {
|
|
62835
62837
|
var re = F, ie = 1 << R, de, fe, Ee = s(16), Oe = s(16);
|
|
62836
62838
|
for (t(K != 0), t(O != null), t(N != null), t(0 < R), fe = 0; fe < K; ++fe) {
|
|
62837
62839
|
if (15 < O[fe]) return 0;
|
|
@@ -62867,7 +62869,7 @@ function WebPDecoder(a) {
|
|
|
62867
62869
|
function G(N, F, R, O, K) {
|
|
62868
62870
|
if (t(2328 >= K), 512 >= K) var te = s(512);
|
|
62869
62871
|
else if (te = s(K), te == null) return 0;
|
|
62870
|
-
return
|
|
62872
|
+
return z(N, F, R, O, K, te);
|
|
62871
62873
|
}
|
|
62872
62874
|
function J() {
|
|
62873
62875
|
this.value = this.g = 0;
|
|
@@ -64106,11 +64108,11 @@ function WebPDecoder(a) {
|
|
|
64106
64108
|
function Vo() {
|
|
64107
64109
|
this.nc = this.Ea = this.b = this.hc = 0, this.K = [], this.w = 0;
|
|
64108
64110
|
}
|
|
64109
|
-
function
|
|
64111
|
+
function W() {
|
|
64110
64112
|
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();
|
|
64111
64113
|
}
|
|
64112
64114
|
function V() {
|
|
64113
|
-
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
|
|
64115
|
+
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;
|
|
64114
64116
|
}
|
|
64115
64117
|
function ye() {
|
|
64116
64118
|
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;
|
|
@@ -64688,8 +64690,8 @@ function WebPDecoder(a) {
|
|
|
64688
64690
|
WebPRiffParser dominikhlbg@gmail.com
|
|
64689
64691
|
*/
|
|
64690
64692
|
function f(Y, j, U, X) {
|
|
64691
|
-
for (var
|
|
64692
|
-
if (Y[j +
|
|
64693
|
+
for (var z = 0; z < X; z++)
|
|
64694
|
+
if (Y[j + z] != U.charCodeAt(z)) return !0;
|
|
64693
64695
|
return !1;
|
|
64694
64696
|
}
|
|
64695
64697
|
function p(Y, j) {
|
|
@@ -64707,7 +64709,7 @@ function WebPDecoder(a) {
|
|
|
64707
64709
|
return (Y[j + 0] << 0 | Y[j + 1] << 8 | Y[j + 2] << 16 | Y[j + 3] << 24) >>> 0;
|
|
64708
64710
|
}
|
|
64709
64711
|
function w(Y, j) {
|
|
64710
|
-
var U = {}, X = 0,
|
|
64712
|
+
var U = {}, X = 0, z = !1, G = 0, J = 0;
|
|
64711
64713
|
if (U.frames = [], !f(Y, j, "RIFF", 4)) {
|
|
64712
64714
|
for (j += 4, y(Y, j) + 8, j += 8; j < Y.length; ) {
|
|
64713
64715
|
var ae = p(Y, j);
|
|
@@ -64720,7 +64722,7 @@ function WebPDecoder(a) {
|
|
|
64720
64722
|
case "VP8L":
|
|
64721
64723
|
typeof U.frames[X] > "u" && (U.frames[X] = {});
|
|
64722
64724
|
var Q = U.frames[X];
|
|
64723
|
-
Q.src_off =
|
|
64725
|
+
Q.src_off = z ? J : j - 8, Q.src_size = G + Ce + 8, X++, z && (z = !1, G = 0, J = 0);
|
|
64724
64726
|
break;
|
|
64725
64727
|
case "VP8X":
|
|
64726
64728
|
var Q = U.header = {};
|
|
@@ -64729,7 +64731,7 @@ function WebPDecoder(a) {
|
|
|
64729
64731
|
Q.canvas_width = 1 + g(Y, me), me += 3, Q.canvas_height = 1 + g(Y, me), me += 3;
|
|
64730
64732
|
break;
|
|
64731
64733
|
case "ALPH":
|
|
64732
|
-
|
|
64734
|
+
z = !0, G = oe + 8, J = j - 8;
|
|
64733
64735
|
break;
|
|
64734
64736
|
case "ANIM":
|
|
64735
64737
|
var Q = U.header;
|
|
@@ -65259,7 +65261,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65259
65261
|
(function(a) {
|
|
65260
65262
|
function t() {
|
|
65261
65263
|
return function() {
|
|
65262
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65264
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-D47avd7h.mjs");
|
|
65263
65265
|
}().catch(function(r) {
|
|
65264
65266
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65265
65267
|
}).then(function(r) {
|
|
@@ -65877,7 +65879,7 @@ end`, y;
|
|
|
65877
65879
|
_e++;
|
|
65878
65880
|
}
|
|
65879
65881
|
}
|
|
65880
|
-
},
|
|
65882
|
+
}, z = function(ae, Ce, oe) {
|
|
65881
65883
|
if (oe.hiLevel !== 0 && I)
|
|
65882
65884
|
for (var me = 0, ue; me < ae.length; me++)
|
|
65883
65885
|
Ce[me] === 1 && (ue = p.indexOf(ae[me]), ue >= 0 && (ae[me] = p[ue + 1]));
|
|
@@ -65885,7 +65887,7 @@ end`, y;
|
|
|
65885
65887
|
var me = ae.split(""), ue = {
|
|
65886
65888
|
hiLevel: M
|
|
65887
65889
|
};
|
|
65888
|
-
return oe || (oe = []), U(me, oe, ue),
|
|
65890
|
+
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("");
|
|
65889
65891
|
};
|
|
65890
65892
|
return this.__bidiEngine__.doBidiReorder = function(J, ae, Ce) {
|
|
65891
65893
|
if (k(J, ae), !_ && E && !T)
|
|
@@ -66128,7 +66130,7 @@ var HeadTable = function(a) {
|
|
|
66128
66130
|
t.pos = m;
|
|
66129
66131
|
}
|
|
66130
66132
|
return a.encode = function(t, r) {
|
|
66131
|
-
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,
|
|
66133
|
+
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;
|
|
66132
66134
|
switch (U = new Data(), l = Object.keys(t).sort(function(Ve, Te) {
|
|
66133
66135
|
return Ve - Te;
|
|
66134
66136
|
}), r) {
|
|
@@ -66151,8 +66153,8 @@ var HeadTable = function(a) {
|
|
|
66151
66153
|
maxGlyphID: w + 1
|
|
66152
66154
|
};
|
|
66153
66155
|
case "unicode":
|
|
66154
|
-
for (Y = [], p = [], D = 0, _ = {}, o = {}, C = u = null,
|
|
66155
|
-
n = l[
|
|
66156
|
+
for (Y = [], p = [], D = 0, _ = {}, o = {}, C = u = null, z = 0, Ce = l.length; z < Ce; z++)
|
|
66157
|
+
n = l[z], T = t[n], _[T] == null && (_[T] = ++D), o[n] = {
|
|
66156
66158
|
old: T,
|
|
66157
66159
|
new: _[T]
|
|
66158
66160
|
}, c = _[T] - n, (C == null || c !== u) && (C && p.push(C), Y.push(n), u = c), C = n;
|
|
@@ -67810,10 +67812,10 @@ function requireLocalforage() {
|
|
|
67810
67812
|
j(T[B], B);
|
|
67811
67813
|
return Y;
|
|
67812
67814
|
function j(U, X) {
|
|
67813
|
-
I.resolve(U).then(
|
|
67815
|
+
I.resolve(U).then(z, function(G) {
|
|
67814
67816
|
k || (k = !0, c.reject(Y, G));
|
|
67815
67817
|
});
|
|
67816
|
-
function
|
|
67818
|
+
function z(G) {
|
|
67817
67819
|
L[X] = G, ++H === M && !k && (k = !0, c.resolve(Y, L));
|
|
67818
67820
|
}
|
|
67819
67821
|
}
|
|
@@ -68002,7 +68004,7 @@ function requireLocalforage() {
|
|
|
68002
68004
|
}
|
|
68003
68005
|
return !1;
|
|
68004
68006
|
}
|
|
68005
|
-
function
|
|
68007
|
+
function z(ge) {
|
|
68006
68008
|
return new p(function(Ae, be) {
|
|
68007
68009
|
var ke = new FileReader();
|
|
68008
68010
|
ke.onerror = be, ke.onloadend = function(je) {
|
|
@@ -68165,7 +68167,7 @@ function requireLocalforage() {
|
|
|
68165
68167
|
var rt;
|
|
68166
68168
|
ke.ready().then(function() {
|
|
68167
68169
|
return rt = ke._dbInfo, D.call(Ae) === "[object Blob]" ? k(rt.db).then(function(ct) {
|
|
68168
|
-
return ct ? Ae :
|
|
68170
|
+
return ct ? Ae : z(Ae);
|
|
68169
68171
|
}) : Ae;
|
|
68170
68172
|
}).then(function(ct) {
|
|
68171
68173
|
oe(ke._dbInfo, T, function(at, ut) {
|
|
@@ -70398,10 +70400,10 @@ class DocController {
|
|
|
70398
70400
|
do
|
|
70399
70401
|
Y >= 0 && (j.set(Y, "old"), U.push(Y), Y = k.indexOf("(old)", Y + 5));
|
|
70400
70402
|
while (Y >= 0);
|
|
70401
|
-
U = U.sort((X,
|
|
70403
|
+
U = U.sort((X, z) => X - z);
|
|
70402
70404
|
for (let X = 0; X < U.length; X++) {
|
|
70403
|
-
const
|
|
70404
|
-
G.copyProperty(
|
|
70405
|
+
const z = a.docTree.styles[L], G = new TextStyle(this._hoEditorFactoryID);
|
|
70406
|
+
G.copyProperty(z, G), G.creatorIndex = void 0, G.deleterIndex = void 0, G.modifierIndex = void 0;
|
|
70405
70407
|
const J = j.get(U[X]);
|
|
70406
70408
|
if (J == "add") {
|
|
70407
70409
|
const ae = k.indexOf("(/add)", U[X]), Ce = k.substring(U[X] + 5, ae), me = new UserHistory(this._hoEditorFactoryID, HistoryEditType.hetCreate).userCompare();
|
|
@@ -78746,7 +78748,7 @@ function requireVueColor_min() {
|
|
|
78746
78748
|
for (var j = 0; j < Y.length; j++) {
|
|
78747
78749
|
var X = Y[j];
|
|
78748
78750
|
if (X.refs === 0) {
|
|
78749
|
-
for (var
|
|
78751
|
+
for (var z = 0; z < X.parts.length; z++) X.parts[z]();
|
|
78750
78752
|
delete m[X.id];
|
|
78751
78753
|
}
|
|
78752
78754
|
}
|
|
@@ -79096,9 +79098,9 @@ function requireVueColor_min() {
|
|
|
79096
79098
|
return function() {
|
|
79097
79099
|
return new D(this, Ce);
|
|
79098
79100
|
};
|
|
79099
|
-
}, Y = _ + " Iterator", j = T == "values", U = !1, X = C.prototype,
|
|
79100
|
-
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 &&
|
|
79101
|
-
return
|
|
79101
|
+
}, 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;
|
|
79102
|
+
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() {
|
|
79103
|
+
return z.call(this);
|
|
79102
79104
|
}), 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]);
|
|
79103
79105
|
else l(l.P + l.F * (w || U), _, k);
|
|
79104
79106
|
return k;
|
|
@@ -79409,7 +79411,7 @@ function requireVueColor_min() {
|
|
|
79409
79411
|
function s(oe) {
|
|
79410
79412
|
return oe && oe.__esModule ? oe : { default: oe };
|
|
79411
79413
|
}
|
|
79412
|
-
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),
|
|
79414
|
+
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 };
|
|
79413
79415
|
r.exports = Ce;
|
|
79414
79416
|
}, function(r, o, n) {
|
|
79415
79417
|
function s(g) {
|
|
@@ -79564,12 +79566,12 @@ function requireVueColor_min() {
|
|
|
79564
79566
|
function C(le, he) {
|
|
79565
79567
|
he = he === 0 ? 0 : he || 10;
|
|
79566
79568
|
var $ = c(le).toHsl();
|
|
79567
|
-
return $.s -= he / 100, $.s =
|
|
79569
|
+
return $.s -= he / 100, $.s = z($.s), c($);
|
|
79568
79570
|
}
|
|
79569
79571
|
function _(le, he) {
|
|
79570
79572
|
he = he === 0 ? 0 : he || 10;
|
|
79571
79573
|
var $ = c(le).toHsl();
|
|
79572
|
-
return $.s += he / 100, $.s =
|
|
79574
|
+
return $.s += he / 100, $.s = z($.s), c($);
|
|
79573
79575
|
}
|
|
79574
79576
|
function D(le) {
|
|
79575
79577
|
return c(le).desaturate(100);
|
|
@@ -79577,7 +79579,7 @@ function requireVueColor_min() {
|
|
|
79577
79579
|
function E(le, he) {
|
|
79578
79580
|
he = he === 0 ? 0 : he || 10;
|
|
79579
79581
|
var $ = c(le).toHsl();
|
|
79580
|
-
return $.l += he / 100, $.l =
|
|
79582
|
+
return $.l += he / 100, $.l = z($.l), c($);
|
|
79581
79583
|
}
|
|
79582
79584
|
function T(le, he) {
|
|
79583
79585
|
he = he === 0 ? 0 : he || 10;
|
|
@@ -79587,7 +79589,7 @@ function requireVueColor_min() {
|
|
|
79587
79589
|
function I(le, he) {
|
|
79588
79590
|
he = he === 0 ? 0 : he || 10;
|
|
79589
79591
|
var $ = c(le).toHsl();
|
|
79590
|
-
return $.l -= he / 100, $.l =
|
|
79592
|
+
return $.l -= he / 100, $.l = z($.l), c($);
|
|
79591
79593
|
}
|
|
79592
79594
|
function M(le, he) {
|
|
79593
79595
|
var $ = c(le).toHsl(), Ne = ($.h + he) % 360;
|
|
@@ -79628,7 +79630,7 @@ function requireVueColor_min() {
|
|
|
79628
79630
|
var $ = ae(le);
|
|
79629
79631
|
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);
|
|
79630
79632
|
}
|
|
79631
|
-
function
|
|
79633
|
+
function z(le) {
|
|
79632
79634
|
return Pe(1, De(0, le));
|
|
79633
79635
|
}
|
|
79634
79636
|
function G(le) {
|
|
@@ -80201,7 +80203,7 @@ function requireVueColor_min() {
|
|
|
80201
80203
|
}, function(r, o, n) {
|
|
80202
80204
|
n(102), n(108), n(109), n(110), r.exports = n(24).Symbol;
|
|
80203
80205
|
}, function(r, o, n) {
|
|
80204
|
-
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,
|
|
80206
|
+
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() {
|
|
80205
80207
|
return k(U({}, "a", { get: function() {
|
|
80206
80208
|
return U(this, "a", { value: 7 }).a;
|
|
80207
80209
|
} })).a != 7;
|
|
@@ -80209,12 +80211,12 @@ function requireVueColor_min() {
|
|
|
80209
80211
|
var ht = j(ne, ze);
|
|
80210
80212
|
ht && delete ne[ze], U(Me, ze, ot), ht && Me !== ne && U(ne, ze, ht);
|
|
80211
80213
|
} : U, pe = function(Me) {
|
|
80212
|
-
var ze = ue[Me] = k(
|
|
80214
|
+
var ze = ue[Me] = k(z.prototype);
|
|
80213
80215
|
return ze._k = Me, ze;
|
|
80214
|
-
}, Pe = xe && typeof
|
|
80216
|
+
}, Pe = xe && typeof z.iterator == "symbol" ? function(Me) {
|
|
80215
80217
|
return typeof Me == "symbol";
|
|
80216
80218
|
} : function(Me) {
|
|
80217
|
-
return Me instanceof
|
|
80219
|
+
return Me instanceof z;
|
|
80218
80220
|
}, De = function(Me, ze, ot) {
|
|
80219
80221
|
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);
|
|
80220
80222
|
}, Ve = function(Me, ze) {
|
|
@@ -80238,21 +80240,21 @@ function requireVueColor_min() {
|
|
|
80238
80240
|
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]);
|
|
80239
80241
|
return bt;
|
|
80240
80242
|
};
|
|
80241
|
-
xe || (
|
|
80242
|
-
if (this instanceof
|
|
80243
|
+
xe || (z = function() {
|
|
80244
|
+
if (this instanceof z) throw TypeError("Symbol is not a constructor!");
|
|
80243
80245
|
var Me = y(arguments.length > 0 ? arguments[0] : void 0), ze = function(ot) {
|
|
80244
80246
|
this === ne && ze.call(Q, ot), l(this, ae) && l(this[ae], Me) && (this[ae][Me] = !1), _e(this, Me, M(1, ot));
|
|
80245
80247
|
};
|
|
80246
80248
|
return c && ve && _e(ne, Me, { configurable: !0, set: ze }), pe(Me);
|
|
80247
|
-
}, u(
|
|
80249
|
+
}, u(z.prototype, "toString", function() {
|
|
80248
80250
|
return this._k;
|
|
80249
80251
|
}), 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) {
|
|
80250
80252
|
return pe(w(Me));
|
|
80251
|
-
}), d(d.G + d.W + d.F * !xe, { Symbol:
|
|
80253
|
+
}), d(d.G + d.W + d.F * !xe, { Symbol: z });
|
|
80252
80254
|
for (var $ = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), Ne = 0; $.length > Ne; ) w($[Ne++]);
|
|
80253
80255
|
for (var Be = Y(w.store), Qe = 0; Be.length > Qe; ) C(Be[Qe++]);
|
|
80254
80256
|
d(d.S + d.F * !xe, "Symbol", { for: function(Me) {
|
|
80255
|
-
return l(me, Me += "") ? me[Me] : me[Me] =
|
|
80257
|
+
return l(me, Me += "") ? me[Me] : me[Me] = z(Me);
|
|
80256
80258
|
}, keyFor: function(Me) {
|
|
80257
80259
|
if (!Pe(Me)) throw TypeError(Me + " is not a symbol!");
|
|
80258
80260
|
for (var ze in me) if (me[ze] === Me) return ze;
|
|
@@ -80261,7 +80263,7 @@ function requireVueColor_min() {
|
|
|
80261
80263
|
}, useSimple: function() {
|
|
80262
80264
|
ve = !1;
|
|
80263
80265
|
} }), 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() {
|
|
80264
|
-
var Me =
|
|
80266
|
+
var Me = z();
|
|
80265
80267
|
return J([Me]) != "[null]" || J({ a: Me }) != "{}" || J(Object(Me)) != "{}";
|
|
80266
80268
|
})), "JSON", { stringify: function(Me) {
|
|
80267
80269
|
if (Me !== void 0 && !Pe(Me)) {
|
|
@@ -80270,7 +80272,7 @@ function requireVueColor_min() {
|
|
|
80270
80272
|
if (ot && (_t = ot.call(this, gt, _t)), !Pe(_t)) return _t;
|
|
80271
80273
|
}), ht[1] = ze, J.apply(G, ht);
|
|
80272
80274
|
}
|
|
80273
|
-
} }),
|
|
80275
|
+
} }), z.prototype[Ce] || n(7)(z.prototype, Ce, z.prototype.valueOf), g(z, "Symbol"), g(Math, "Math", !0), g(s.JSON, "JSON", !0);
|
|
80274
80276
|
}, function(r, o, n) {
|
|
80275
80277
|
var s = n(17)("meta"), l = n(14), c = n(6), d = n(8).f, u = 0, f = Object.isExtensible || function() {
|
|
80276
80278
|
return !0;
|
|
@@ -80771,13 +80773,13 @@ function requireVueColor_min() {
|
|
|
80771
80773
|
var Ve = De - Ie, Te = De - ve, He = B - Ve;
|
|
80772
80774
|
return pe ? k(He, Q - Te) : He;
|
|
80773
80775
|
}
|
|
80774
|
-
function
|
|
80776
|
+
function z(De) {
|
|
80775
80777
|
var Ve = De - Ie, Te = De - ve;
|
|
80776
80778
|
return Ie === void 0 || Ve >= B || Ve < 0 || pe && Te >= Q;
|
|
80777
80779
|
}
|
|
80778
80780
|
function G() {
|
|
80779
80781
|
var De = L();
|
|
80780
|
-
if (
|
|
80782
|
+
if (z(De)) return J(De);
|
|
80781
80783
|
xe = setTimeout(G, X(De));
|
|
80782
80784
|
}
|
|
80783
80785
|
function J(De) {
|
|
@@ -80790,7 +80792,7 @@ function requireVueColor_min() {
|
|
|
80790
80792
|
return xe === void 0 ? ne : J(L());
|
|
80791
80793
|
}
|
|
80792
80794
|
function oe() {
|
|
80793
|
-
var De = L(), Ve =
|
|
80795
|
+
var De = L(), Ve = z(De);
|
|
80794
80796
|
if (me = arguments, ue = this, Ie = De, Ve) {
|
|
80795
80797
|
if (xe === void 0) return U(Ie);
|
|
80796
80798
|
if (pe) return xe = setTimeout(G, B), j(Ie);
|
|
@@ -87900,10 +87902,10 @@ const HoRightMenu = __component__$1.exports, _sfc_main = defineComponent({
|
|
|
87900
87902
|
D: H.d
|
|
87901
87903
|
}) : H instanceof GestationNode ? (L.controlType = "gestation", L.controlStatus = "update", L.expressStyle = "") : (L.controlType = "", L.controlStatus = "add");
|
|
87902
87904
|
}, s = () => {
|
|
87903
|
-
var
|
|
87905
|
+
var z, G;
|
|
87904
87906
|
let H = null;
|
|
87905
87907
|
const B = HOEditorFactorys.instance().getFactory(L.activeDocId), Y = B.drawTree.selectRange.spStart, j = B.drawTree.selectRange.spEnd;
|
|
87906
|
-
let U = (
|
|
87908
|
+
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;
|
|
87907
87909
|
if (U instanceof MarkNode || U instanceof TextInputFieldNode) {
|
|
87908
87910
|
const J = U.parentNode;
|
|
87909
87911
|
J instanceof TextInputFieldNode ? H = J : H = U;
|