r2 = zt2[Ht2[t2]]; return lt2("q"), lt2(e2.toString() + " cm"), lt2("/" + r2.id + " Do"), lt2("Q"), this; }, y2.getFormObject = function(t2) { var e2 = zt2[Ht2[t2]]; return { x: e2.x, y: e2.y, width: e2.width, height: e2.height, matrix: e2.matrix }; }, y2.save = function(t2, e2) { return t2 = t2 || "generated.pdf", (e2 = e2 || {}).returnPromise = e2.returnPromise || false, false === e2.returnPromise ? (l(We(He()), t2), "function" == typeof l.unload && n.setTimeout && setTimeout(l.unload, 911), this) : new Promise(function(e3, r2) { try { var i3 = l(We(He()), t2); "function" == typeof l.unload && n.setTimeout && setTimeout(l.unload, 911), e3(i3); } catch (t3) { r2(t3.message); } }); }, E.API) E.API.hasOwnProperty(Er) && ("events" === Er && E.API.events.length ? function(t2, e2) { var r2, n2, i3; for (i3 = e2.length - 1; -1 !== i3; i3--) r2 = e2[i3][0], n2 = e2[i3][1], t2.subscribe.apply(t2, [r2].concat("function" == typeof n2 ? [n2] : n2)); }(Tt2, E.API.events) : y2[Er] = E.API[Er]); var qr = y2.getPageWidth = function(t2) { return (Rt2[t2 = t2 || $2].mediaBox.topRightX - Rt2[t2].mediaBox.bottomLeftX) / _t2; }, Dr = y2.setPageWidth = function(t2, e2) { Rt2[t2].mediaBox.topRightX = e2 * _t2 + Rt2[t2].mediaBox.bottomLeftX; }, Rr = y2.getPageHeight = function(t2) { return (Rt2[t2 = t2 || $2].mediaBox.topRightY - Rt2[t2].mediaBox.bottomLeftY) / _t2; }, Tr = y2.setPageHeight = function(t2, e2) { Rt2[t2].mediaBox.topRightY = e2 * _t2 + Rt2[t2].mediaBox.bottomLeftY; }; return y2.internal = { pdfEscape: Ce, getStyle: tr, getFont: hr, getFontSize: vt2, getCharSpace: Pr, getTextColor: Sr, getLineHeight: gr, getLineHeightFactor: vr, getLineWidth: dr, write: ft2, getHorizontalCoordinate: br, getVerticalCoordinate: yr, getCoordinateString: wr, getVerticalCoordinateString: Nr, collections: {}, newObject: Xt2, newAdditionalObject: $t2, newObjectDeferred: Kt2, newObjectDeferredBegin: Zt2, getFilters: ne2, putStream: ie2, events: Tt2, scaleFactor: _t2, pageSize: { getWidth: function() { return qr($2); }, setWidth: function(t2) { Dr($2, t2); }, getHeight: function() { return Rr($2); }, setHeight: function(t2) { Tr($2, t2); } }, encryptionOptions: m2, encryption: Ye, getEncryptor: Je, output: Ve, getNumberOfPages: Ee, pages: ot2, out: lt2, f2: R2, f3: T2, getPageInfo: Xe, getPageInfoByObjId: Ke, getCurrentPageInfo: Ze, getPDFVersion: N2, Point: Cr, Rectangle: jr, Matrix: Vt2, hasHotfix: Ge }, Object.defineProperty(y2.internal.pageSize, "width", { get: function() { return qr($2); }, set: function(t2) { Dr($2, t2); }, enumerable: true, configurable: true }), Object.defineProperty(y2.internal.pageSize, "height", { get: function() { return Rr($2); }, set: function(t2) { Tr($2, t2); }, enumerable: true, configurable: true }), ke.call(y2, pt2), St2 = "F1", Oe(s2, i2), Tt2.publish("initialized"), y2; } I.prototype.lsbFirstWord = function(t2) { return String.fromCharCode(t2 >> 0 & 255, t2 >> 8 & 255, t2 >> 16 & 255, t2 >> 24 & 255); }, I.prototype.toHexString = function(t2) { return t2.split("").map(function(t3) { return ("0" + (255 & t3.charCodeAt(0)).toString(16)).slice(-2); }).join(""); }, I.prototype.hexToBytes = function(t2) { for (var e = [], r = 0; r < t2.length; r += 2) e.push(String.fromCharCode(parseInt(t2.substr(r, 2), 16))); return e.join(""); }, I.prototype.processOwnerPassword = function(t2, e) { return P(x(e).substr(0, 5), t2); }, I.prototype.encryptor = function(t2, e) { var r = x(this.encryptionKey + String.fromCharCode(255 & t2, t2 >> 8 & 255, t2 >> 16 & 255, 255 & e, e >> 8 & 255)).substr(0, 10); return function(t3) { return P(r, t3); }; }, j.prototype.equals = function(e) { var r, n2 = "id,objectNumber,equals"; if (!e || _typeof(e) !== _typeof(this)) return false; var i2 = 0; for (r in this) if (!(n2.indexOf(r) >= 0)) { if (this.hasOwnProperty(r) && !e.hasOwnProperty(r)) return false; if (this[r] !== e[r]) return false; i2++; } for (r in e) e.hasOwnProperty(r) && n2.indexOf(r) < 0 && i2--; return 0 === i2; }, E.API = { events: [] }, E.version = "2.5.2"; var q = E.API; var D = 1; var R = function(t2) { return t2.replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)"); }; var T = function(t2) { return t2.replace(/\\\\/g, "\\").replace(/\\\(/g, "(").replace(/\\\)/g, ")"); }; var U = function(t2) { return t2.toFixed(2); }; var z = function(t2) { return t2.toFixed(5); }; q.__acroform__ = {}; var H = function(t2, e) { t2.prototype = Object.create(e.prototype), t2.prototype.constructor = t2; }; var W = function(t2) { return t2 * D; }; var V = function(t2) { var e = new ut(), r = At.internal.getHeight(t2) || 0, n2 = At.internal.getWidth(t2) || 0; return e.BBox = [0, 0, Number(U(n2)), Number(U(r))], e; }; var G = q.__acroform__.setBit = function(t2, e) { if (t2 = t2 || 0, e = e || 0, isNaN(t2) || isNaN(e)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit"); return t2 |= 1 << e; }; var Y = q.__acroform__.clearBit = function(t2, e) { if (t2 = t2 || 0, e = e || 0, isNaN(t2) || isNaN(e)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit"); return t2 &= ~(1 << e); }; var J = q.__acroform__.getBit = function(t2, e) { if (isNaN(t2) || isNaN(e)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit"); return 0 == (t2 & 1 << e) ? 0 : 1; }; var X = q.__acroform__.getBitForPdf = function(t2, e) { if (isNaN(t2) || isNaN(e)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf"); return J(t2, e - 1); }; var K = q.__acroform__.setBitForPdf = function(t2, e) { if (isNaN(t2) || isNaN(e)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf"); return G(t2, e - 1); }; var Z = q.__acroform__.clearBitForPdf = function(t2, e) { if (isNaN(t2) || isNaN(e)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf"); return Y(t2, e - 1); }; var $ = q.__acroform__.calculateCoordinates = function(t2, e) { var r = e.internal.getHorizontalCoordinate, n2 = e.internal.getVerticalCoordinate, i2 = t2[0], a2 = t2[1], o2 = t2[2], s2 = t2[3], c2 = {}; return c2.lowerLeft_X = r(i2) || 0, c2.lowerLeft_Y = n2(a2 + s2) || 0, c2.upperRight_X = r(i2 + o2) || 0, c2.upperRight_Y = n2(a2) || 0, [Number(U(c2.lowerLeft_X)), Number(U(c2.lowerLeft_Y)), Number(U(c2.upperRight_X)), Number(U(c2.upperRight_Y))]; }; var Q = function(t2) { if (t2.appearanceStreamContent) return t2.appearanceStreamContent; if (t2.V || t2.DV) { var e = [], r = t2._V || t2.DV, n2 = tt(t2, r), i2 = t2.scope.internal.getFont(t2.fontName, t2.fontStyle).id; e.push("/Tx BMC"), e.push("q"), e.push("BT"), e.push(t2.scope.__private__.encodeColorString(t2.color)), e.push("/" + i2 + " " + U(n2.fontSize) + " Tf"), e.push("1 0 0 1 0 0 Tm"), e.push(n2.text), e.push("ET"), e.push("Q"), e.push("EMC"); var a2 = V(t2); return a2.scope = t2.scope, a2.stream = e.join("\n"), a2; } }; var tt = function(t2, e) { var r = 0 === t2.fontSize ? t2.maxFontSize : t2.fontSize, n2 = { text: "", fontSize: "" }, i2 = (e = ")" == (e = "(" == e.substr(0, 1) ? e.substr(1) : e).substr(e.length - 1) ? e.substr(0, e.length - 1) : e).split(" "); i2 = t2.multiline ? i2.map(function(t3) { return t3.split("\n"); }) : i2.map(function(t3) { return [t3]; }); var a2 = r, o2 = At.internal.getHeight(t2) || 0; o2 = o2 < 0 ? -o2 : o2; var s2 = At.internal.getWidth(t2) || 0; s2 = s2 < 0 ? -s2 : s2; var c2 = function(e2, r2, n3) { if (e2 + 1 < i2.length) { var a3 = r2 + " " + i2[e2 + 1][0]; return et2(a3, t2, n3).width <= s2 - 4; } return false; }; a2++; t: for (; a2 > 0; ) { e = "", a2--; var u2, h2, l2 = et2("3", t2, a2).height, f2 = t2.multiline ? o2 - a2 : (o2 - l2) / 2, d2 = f2 += 2, p2 = 0, g2 = 0, m2 = 0; if (a2 <= 0) { e = "(...) Tj\n", e += "% Width of Text: " + et2(e, t2, a2 = 12).width + ", FieldWidth:" + s2 + "\n"; break; } for (var v2 = "", b3 = 0, y2 = 0; y2 < i2.length; y2++) if (i2.hasOwnProperty(y2)) { var w2 = false; if (1 !== i2[y2].length && m2 !== i2[y2].length - 1) { if ((l2 + 2) * (b3 + 2) + 2 > o2) continue t; v2 += i2[y2][m2], w2 = true, g2 = y2, y2--; } else { v2 = " " == (v2 += i2[y2][m2] + " ").substr(v2.length - 1) ? v2.substr(0, v2.length - 1) : v2; var N2 = parseInt(y2), L2 = c2(N2, v2, a2), A2 = y2 >= i2.length - 1; if (L2 && !A2) { v2 += " ", m2 = 0; continue; } if (L2 || A2) { if (A2) g2 = N2; else if (t2.multiline && (l2 + 2) * (b3 + 2) + 2 > o2) continue t; } else { if (!t2.multiline) continue t; if ((l2 + 2) * (b3 + 2) + 2 > o2) continue t; g2 = N2; } } for (var x2 = "", S2 = p2; S2 <= g2; S2++) { var _2 = i2[S2]; if (t2.multiline) { if (S2 === g2) { x2 += _2[m2] + " ", m2 = (m2 + 1) % _2.length; continue; } if (S2 === p2) { x2 += _2[_2.length - 1] + " "; continue; } } x2 += _2[0] + " "; } switch (x2 = " " == x2.substr(x2.length - 1) ? x2.substr(0, x2.length - 1) : x2, h2 = et2(x2, t2, a2).width, t2.textAlign) { case "right": u2 = s2 - h2 - 2; break; case "center": u2 = (s2 - h2) / 2; break; case "left": default: u2 = 2; } e += U(u2) + " " + U(d2) + " Td\n", e += "(" + R(x2) + ") Tj\n", e += -U(u2) + " 0 Td\n", d2 = -(a2 + 2), h2 = 0, p2 = w2 ? g2 : g2 + 1, b3++, v2 = ""; } else ; break; } return n2.text = e, n2.fontSize = a2, n2; }; var et2 = function(t2, e, r) { var n2 = e.scope.internal.getFont(e.fontName, e.fontStyle), i2 = e.scope.getStringUnitWidth(t2, { font: n2, fontSize: parseFloat(r), charSpace: 0 }) * parseFloat(r); return { height: e.scope.getStringUnitWidth("3", { font: n2, fontSize: parseFloat(r), charSpace: 0 }) * parseFloat(r) * 1.5, width: i2 }; }; var rt = { fields: [], xForms: [], acroFormDictionaryRoot: null, printedOut: false, internal: null, isInitialized: false }; var nt = function(t2, e) { var r = { type: "reference", object: t2 }; void 0 === e.internal.getPageInfo(t2.page).pageContext.annotations.find(function(t3) { return t3.type === r.type && t3.object === r.object; }) && e.internal.getPageInfo(t2.page).pageContext.annotations.push(r); }; var it = function(e, r) { for (var n2 in e) if (e.hasOwnProperty(n2)) { var i2 = n2, a2 = e[n2]; r.internal.newObjectDeferredBegin(a2.objId, true), "object" === _typeof(a2) && "function" == typeof a2.putStream && a2.putStream(), delete e[i2]; } }; var at = function(e, r) { if (r.scope = e, void 0 !== e.internal && (void 0 === e.internal.acroformPlugin || false === e.internal.acroformPlugin.isInitialized)) { if (lt.FieldNum = 0, e.internal.acroformPlugin = JSON.parse(JSON.stringify(rt)), e.internal.acroformPlugin.acroFormDictionaryRoot) throw new Error("Exception while creating AcroformDictionary"); D = e.internal.scaleFactor, e.internal.acroformPlugin.acroFormDictionaryRoot = new ht(), e.internal.acroformPlugin.acroFormDictionaryRoot.scope = e, e.internal.acroformPlugin.acroFormDictionaryRoot._eventID = e.internal.events.subscribe("postPutResources", function() { !function(t2) { t2.internal.events.unsubscribe(t2.internal.acroformPlugin.acroFormDictionaryRoot._eventID), delete t2.internal.acroformPlugin.acroFormDictionaryRoot._eventID, t2.internal.acroformPlugin.printedOut = true; }(e); }), e.internal.events.subscribe("buildDocument", function() { !function(t2) { t2.internal.acroformPlugin.acroFormDictionaryRoot.objId = void 0; var e2 = t2.internal.acroformPlugin.acroFormDictionaryRoot.Fields; for (var r2 in e2) if (e2.hasOwnProperty(r2)) { var n2 = e2[r2]; n2.objId = void 0, n2.hasAnnotation && nt(n2, t2); } }(e); }), e.internal.events.subscribe("putCatalog", function() { !function(t2) { if (void 0 === t2.internal.acroformPlugin.acroFormDictionaryRoot) throw new Error("putCatalogCallback: Root missing."); t2.internal.write("/AcroForm " + t2.internal.acroformPlugin.acroFormDictionaryRoot.objId + " 0 R"); }(e); }), e.internal.events.subscribe("postPutPages", function(r2) { !function(e2, r3) { var n2 = !e2; for (var i2 in e2 || (r3.internal.newObjectDeferredBegin(r3.internal.acroformPlugin.acroFormDictionaryRoot.objId, true), r3.internal.acroformPlugin.acroFormDictionaryRoot.putStream()), e2 = e2 || r3.internal.acroformPlugin.acroFormDictionaryRoot.Kids) if (e2.hasOwnProperty(i2)) { var a2 = e2[i2], o2 = [], s2 = a2.Rect; if (a2.Rect && (a2.Rect = $(a2.Rect, r3)), r3.internal.newObjectDeferredBegin(a2.objId, true), a2.DA = At.createDefaultAppearanceStream(a2), "object" === _typeof(a2) && "function" == typeof a2.getKeyValueListForStream && (o2 = a2.getKeyValueListForStream()), a2.Rect = s2, a2.hasAppearanceStream && !a2.appearanceStreamContent) { var c2 = Q(a2); o2.push({ key: "AP", value: "<>" }), r3.internal.acroformPlugin.xForms.push(c2); } if (a2.appearanceStreamContent) { var u2 = ""; for (var h2 in a2.appearanceStreamContent) if (a2.appearanceStreamContent.hasOwnProperty(h2)) { var l2 = a2.appearanceStreamContent[h2]; if (u2 += "/" + h2 + " ", u2 += "<<", Object.keys(l2).length >= 1 || Array.isArray(l2)) { for (var i2 in l2) if (l2.hasOwnProperty(i2)) { var f2 = l2[i2]; "function" == typeof f2 && (f2 = f2.call(r3, a2)), u2 += "/" + i2 + " " + f2 + " ", r3.internal.acroformPlugin.xForms.indexOf(f2) >= 0 || r3.internal.acroformPlugin.xForms.push(f2); } } else "function" == typeof (f2 = l2) && (f2 = f2.call(r3, a2)), u2 += "/" + i2 + " " + f2, r3.internal.acroformPlugin.xForms.indexOf(f2) >= 0 || r3.internal.acroformPlugin.xForms.push(f2); u2 += ">>"; } o2.push({ key: "AP", value: "<<\n" + u2 + ">>" }); } r3.internal.putStream({ additionalKeyValues: o2, objectId: a2.objId }), r3.internal.out("endobj"); } n2 && it(r3.internal.acroformPlugin.xForms, r3); }(r2, e); }), e.internal.acroformPlugin.isInitialized = true; } }; var ot = q.__acroform__.arrayToPdfArray = function(e, r, n2) { var i2 = function(t2) { return t2; }; if (Array.isArray(e)) { for (var a2 = "[", o2 = 0; o2 < e.length; o2++) switch (0 !== o2 && (a2 += " "), _typeof(e[o2])) { case "boolean": case "number": case "object": a2 += e[o2].toString(); break; case "string": "/" !== e[o2].substr(0, 1) ? (void 0 !== r && n2 && (i2 = n2.internal.getEncryptor(r)), a2 += "(" + R(i2(e[o2].toString())) + ")") : a2 += e[o2].toString(); } return a2 += "]"; } throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray"); }; var st = function(t2, e, r) { var n2 = function(t3) { return t3; }; return void 0 !== e && r && (n2 = r.internal.getEncryptor(e)), (t2 = t2 || "").toString(), t2 = "(" + R(n2(t2)) + ")"; }; var ct = function() { this._objId = void 0, this._scope = void 0, Object.defineProperty(this, "objId", { get: function() { if (void 0 === this._objId) { if (void 0 === this.scope) return; this._objId = this.scope.internal.newObjectDeferred(); } return this._objId; }, set: function(t2) { this._objId = t2; } }), Object.defineProperty(this, "scope", { value: this._scope, writable: true }); }; ct.prototype.toString = function() { return this.objId + " 0 R"; }, ct.prototype.putStream = function() { var t2 = this.getKeyValueListForStream(); this.scope.internal.putStream({ data: this.stream, additionalKeyValues: t2, objectId: this.objId }), this.scope.internal.out("endobj"); }, ct.prototype.getKeyValueListForStream = function() { var t2 = [], e = Object.getOwnPropertyNames(this).filter(function(t3) { return "content" != t3 && "appearanceStreamContent" != t3 && "scope" != t3 && "objId" != t3 && "_" != t3.substring(0, 1); }); for (var r in e) if (false === Object.getOwnPropertyDescriptor(this, e[r]).configurable) { var n2 = e[r], i2 = this[n2]; i2 && (Array.isArray(i2) ? t2.push({ key: n2, value: ot(i2, this.objId, this.scope) }) : i2 instanceof ct ? (i2.scope = this.scope, t2.push({ key: n2, value: i2.objId + " 0 R" })) : "function" != typeof i2 && t2.push({ key: n2, value: i2 })); } return t2; }; var ut = function() { ct.call(this), Object.defineProperty(this, "Type", { value: "/XObject", configurable: false, writable: true }), Object.defineProperty(this, "Subtype", { value: "/Form", configurable: false, writable: true }), Object.defineProperty(this, "FormType", { value: 1, configurable: false, writable: true }); var t2, e = []; Object.defineProperty(this, "BBox", { configurable: false, get: function() { return e; }, set: function(t3) { e = t3; } }), Object.defineProperty(this, "Resources", { value: "2 0 R", configurable: false, writable: true }), Object.defineProperty(this, "stream", { enumerable: false, configurable: true, set: function(e2) { t2 = e2.trim(); }, get: function() { return t2 || null; } }); }; H(ut, ct); var ht = function() { ct.call(this); var t2, e = []; Object.defineProperty(this, "Kids", { enumerable: false, configurable: true, get: function() { return e.length > 0 ? e : void 0; } }), Object.defineProperty(this, "Fields", { enumerable: false, configurable: false, get: function() { return e; } }), Object.defineProperty(this, "DA", { enumerable: false, configurable: false, get: function() { if (t2) { var e2 = function(t3) { return t3; }; return this.scope && (e2 = this.scope.internal.getEncryptor(this.objId)), "(" + R(e2(t2)) + ")"; } }, set: function(e2) { t2 = e2; } }); }; H(ht, ct); var lt = function t() { ct.call(this); var e = 4; Object.defineProperty(this, "F", { enumerable: false, configurable: false, get: function() { return e; }, set: function(t2) { if (isNaN(t2)) throw new Error('Invalid value "' + t2 + '" for attribute F supplied.'); e = t2; } }), Object.defineProperty(this, "showWhenPrinted", { enumerable: true, configurable: true, get: function() { return Boolean(X(e, 3)); }, set: function(t2) { true === Boolean(t2) ? this.F = K(e, 3) : this.F = Z(e, 3); } }); var r = 0; Object.defineProperty(this, "Ff", { enumerable: false, configurable: false, get: function() { return r; }, set: function(t2) { if (isNaN(t2)) throw new Error('Invalid value "' + t2 + '" for attribute Ff supplied.'); r = t2; } }); var n2 = []; Object.defineProperty(this, "Rect", { enumerable: false, configurable: false, get: function() { if (0 !== n2.length) return n2; }, set: function(t2) { n2 = void 0 !== t2 ? t2 : []; } }), Object.defineProperty(this, "x", { enumerable: true, configurable: true, get: function() { return !n2 || isNaN(n2[0]) ? 0 : n2[0]; }, set: function(t2) { n2[0] = t2; } }), Object.defineProperty(this, "y", { enumerable: true, configurable: true, get: function() { return !n2 || isNaN(n2[1]) ? 0 : n2[1]; }, set: function(t2) { n2[1] = t2; } }), Object.defineProperty(this, "width", { enumerable: true, configurable: true, get: function() { return !n2 || isNaN(n2[2]) ? 0 : n2[2]; }, set: function(t2) { n2[2] = t2; } }), Object.defineProperty(this, "height", { enumerable: true, configurable: true, get: function() { return !n2 || isNaN(n2[3]) ? 0 : n2[3]; }, set: function(t2) { n2[3] = t2; } }); var i2 = ""; Object.defineProperty(this, "FT", { enumerable: true, configurable: false, get: function() { return i2; }, set: function(t2) { switch (t2) { case "/Btn": case "/Tx": case "/Ch": case "/Sig": i2 = t2; break; default: throw new Error('Invalid value "' + t2 + '" for attribute FT supplied.'); } } }); var a2 = null; Object.defineProperty(this, "T", { enumerable: true, configurable: false, get: function() { if (!a2 || a2.length < 1) { if (this instanceof yt) return; a2 = "FieldObject" + t.FieldNum++; } var e2 = function(t2) { return t2; }; return this.scope && (e2 = this.scope.internal.getEncryptor(this.objId)), "(" + R(e2(a2)) + ")"; }, set: function(t2) { a2 = t2.toString(); } }), Object.defineProperty(this, "fieldName", { configurable: true, enumerable: true, get: function() { return a2; }, set: function(t2) { a2 = t2; } }); var o2 = "helvetica"; Object.defineProperty(this, "fontName", { enumerable: true, configurable: true, get: function() { return o2; }, set: function(t2) { o2 = t2; } }); var s2 = "normal"; Object.defineProperty(this, "fontStyle", { enumerable: true, configurable: true, get: function() { return s2; }, set: function(t2) { s2 = t2; } }); var c2 = 0; Object.defineProperty(this, "fontSize", { enumerable: true, configurable: true, get: function() { return c2; }, set: function(t2) { c2 = t2; } }); var u2 = void 0; Object.defineProperty(this, "maxFontSize", { enumerable: true, configurable: true, get: function() { return void 0 === u2 ? 50 / D : u2; }, set: function(t2) { u2 = t2; } }); var h2 = "black"; Object.defineProperty(this, "color", { enumerable: true, configurable: true, get: function() { return h2; }, set: function(t2) { h2 = t2; } }); var l2 = "/F1 0 Tf 0 g"; Object.defineProperty(this, "DA", { enumerable: true, configurable: false, get: function() { if (!(!l2 || this instanceof yt || this instanceof Nt)) return st(l2, this.objId, this.scope); }, set: function(t2) { t2 = t2.toString(), l2 = t2; } }); var f2 = null; Object.defineProperty(this, "DV", { enumerable: false, configurable: false, get: function() { if (f2) return this instanceof mt == false ? st(f2, this.objId, this.scope) : f2; }, set: function(t2) { t2 = t2.toString(), f2 = this instanceof mt == false ? "(" === t2.substr(0, 1) ? T(t2.substr(1, t2.length - 2)) : T(t2) : t2; } }), Object.defineProperty(this, "defaultValue", { enumerable: true, configurable: true, get: function() { return this instanceof mt == true ? T(f2.substr(1, f2.length - 1)) : f2; }, set: function(t2) { t2 = t2.toString(), f2 = this instanceof mt == true ? "/" + t2 : t2; } }); var d2 = null; Object.defineProperty(this, "_V", { enumerable: false, configurable: false, get: function() { if (d2) return d2; }, set: function(t2) { this.V = t2; } }), Object.defineProperty(this, "V", { enumerable: false, configurable: false, get: function() { if (d2) return this instanceof mt == false ? st(d2, this.objId, this.scope) : d2; }, set: function(t2) { t2 = t2.toString(), d2 = this instanceof mt == false ? "(" === t2.substr(0, 1) ? T(t2.substr(1, t2.length - 2)) : T(t2) : t2; } }), Object.defineProperty(this, "value", { enumerable: true, configurable: true, get: function() { return this instanceof mt == true ? T(d2.substr(1, d2.length - 1)) : d2; }, set: function(t2) { t2 = t2.toString(), d2 = this instanceof mt == true ? "/" + t2 : t2; } }), Object.defineProperty(this, "hasAnnotation", { enumerable: true, configurable: true, get: function() { return this.Rect; } }), Object.defineProperty(this, "Type", { enumerable: true, configurable: false, get: function() { return this.hasAnnotation ? "/Annot" : null; } }), Object.defineProperty(this, "Subtype", { enumerable: true, configurable: false, get: function() { return this.hasAnnotation ? "/Widget" : null; } }); var p2, g2 = false; Object.defineProperty(this, "hasAppearanceStream", { enumerable: true, configurable: true, get: function() { return g2; }, set: function(t2) { t2 = Boolean(t2), g2 = t2; } }), Object.defineProperty(this, "page", { enumerable: true, configurable: true, get: function() { if (p2) return p2; }, set: function(t2) { p2 = t2; } }), Object.defineProperty(this, "readOnly", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 1)); }, set: function(t2) { true === Boolean(t2) ? this.Ff = K(this.Ff, 1) : this.Ff = Z(this.Ff, 1); } }), Object.defineProperty(this, "required", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 2)); }, set: function(t2) { true === Boolean(t2) ? this.Ff = K(this.Ff, 2) : this.Ff = Z(this.Ff, 2); } }), Object.defineProperty(this, "noExport", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 3)); }, set: function(t2) { true === Boolean(t2) ? this.Ff = K(this.Ff, 3) : this.Ff = Z(this.Ff, 3); } }); var m2 = null; Object.defineProperty(this, "Q", { enumerable: true, configurable: false, get: function() { if (null !== m2) return m2; }, set: function(t2) { if (-1 === [0, 1, 2].indexOf(t2)) throw new Error('Invalid value "' + t2 + '" for attribute Q supplied.'); m2 = t2; } }), Object.defineProperty(this, "textAlign", { get: function() { var t2; switch (m2) { case 0: default: t2 = "left"; break; case 1: t2 = "center"; break; case 2: t2 = "right"; } return t2; }, configurable: true, enumerable: true, set: function(t2) { switch (t2) { case "right": case 2: m2 = 2; break; case "center": case 1: m2 = 1; break; case "left": case 0: default: m2 = 0; } } }); }; H(lt, ct); var ft = function() { lt.call(this), this.FT = "/Ch", this.V = "()", this.fontName = "zapfdingbats"; var t2 = 0; Object.defineProperty(this, "TI", { enumerable: true, configurable: false, get: function() { return t2; }, set: function(e2) { t2 = e2; } }), Object.defineProperty(this, "topIndex", { enumerable: true, configurable: true, get: function() { return t2; }, set: function(e2) { t2 = e2; } }); var e = []; Object.defineProperty(this, "Opt", { enumerable: true, configurable: false, get: function() { return ot(e, this.objId, this.scope); }, set: function(t3) { var r, n2; n2 = [], "string" == typeof (r = t3) && (n2 = function(t4, e2, r2) { r2 || (r2 = 1); for (var n3, i2 = []; n3 = e2.exec(t4); ) i2.push(n3[r2]); return i2; }(r, /\((.*?)\)/g)), e = n2; } }), this.getOptions = function() { return e; }, this.setOptions = function(t3) { e = t3, this.sort && e.sort(); }, this.addOption = function(t3) { t3 = (t3 = t3 || "").toString(), e.push(t3), this.sort && e.sort(); }, this.removeOption = function(t3, r) { for (r = r || false, t3 = (t3 = t3 || "").toString(); -1 !== e.indexOf(t3) && (e.splice(e.indexOf(t3), 1), false !== r); ) ; }, Object.defineProperty(this, "combo", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 18)); }, set: function(t3) { true === Boolean(t3) ? this.Ff = K(this.Ff, 18) : this.Ff = Z(this.Ff, 18); } }), Object.defineProperty(this, "edit", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 19)); }, set: function(t3) { true === this.combo && (true === Boolean(t3) ? this.Ff = K(this.Ff, 19) : this.Ff = Z(this.Ff, 19)); } }), Object.defineProperty(this, "sort", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 20)); }, set: function(t3) { true === Boolean(t3) ? (this.Ff = K(this.Ff, 20), e.sort()) : this.Ff = Z(this.Ff, 20); } }), Object.defineProperty(this, "multiSelect", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 22)); }, set: function(t3) { true === Boolean(t3) ? this.Ff = K(this.Ff, 22) : this.Ff = Z(this.Ff, 22); } }), Object.defineProperty(this, "doNotSpellCheck", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 23)); }, set: function(t3) { true === Boolean(t3) ? this.Ff = K(this.Ff, 23) : this.Ff = Z(this.Ff, 23); } }), Object.defineProperty(this, "commitOnSelChange", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 27)); }, set: function(t3) { true === Boolean(t3) ? this.Ff = K(this.Ff, 27) : this.Ff = Z(this.Ff, 27); } }), this.hasAppearanceStream = false; }; H(ft, lt); var dt = function() { ft.call(this), this.fontName = "helvetica", this.combo = false; }; H(dt, ft); var pt = function() { dt.call(this), this.combo = true; }; H(pt, dt); var gt = function() { pt.call(this), this.edit = true; }; H(gt, pt); var mt = function() { lt.call(this), this.FT = "/Btn", Object.defineProperty(this, "noToggleToOff", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 15)); }, set: function(t2) { true === Boolean(t2) ? this.Ff = K(this.Ff, 15) : this.Ff = Z(this.Ff, 15); } }), Object.defineProperty(this, "radio", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 16)); }, set: function(t2) { true === Boolean(t2) ? this.Ff = K(this.Ff, 16) : this.Ff = Z(this.Ff, 16); } }), Object.defineProperty(this, "pushButton", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 17)); }, set: function(t2) { true === Boolean(t2) ? this.Ff = K(this.Ff, 17) : this.Ff = Z(this.Ff, 17); } }), Object.defineProperty(this, "radioIsUnison", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 26)); }, set: function(t2) { true === Boolean(t2) ? this.Ff = K(this.Ff, 26) : this.Ff = Z(this.Ff, 26); } }); var e, r = {}; Object.defineProperty(this, "MK", { enumerable: false, configurable: false, get: function() { var t2 = function(t3) { return t3; }; if (this.scope && (t2 = this.scope.internal.getEncryptor(this.objId)), 0 !== Object.keys(r).length) { var e2, n2 = []; for (e2 in n2.push("<<"), r) n2.push("/" + e2 + " (" + R(t2(r[e2])) + ")"); return n2.push(">>"), n2.join("\n"); } }, set: function(e2) { "object" === _typeof(e2) && (r = e2); } }), Object.defineProperty(this, "caption", { enumerable: true, configurable: true, get: function() { return r.CA || ""; }, set: function(t2) { "string" == typeof t2 && (r.CA = t2); } }), Object.defineProperty(this, "AS", { enumerable: false, configurable: false, get: function() { return e; }, set: function(t2) { e = t2; } }), Object.defineProperty(this, "appearanceState", { enumerable: true, configurable: true, get: function() { return e.substr(1, e.length - 1); }, set: function(t2) { e = "/" + t2; } }); }; H(mt, lt); var vt = function() { mt.call(this), this.pushButton = true; }; H(vt, mt); var bt = function() { mt.call(this), this.radio = true, this.pushButton = false; var t2 = []; Object.defineProperty(this, "Kids", { enumerable: true, configurable: false, get: function() { return t2; }, set: function(e) { t2 = void 0 !== e ? e : []; } }); }; H(bt, mt); var yt = function() { var e, r; lt.call(this), Object.defineProperty(this, "Parent", { enumerable: false, configurable: false, get: function() { return e; }, set: function(t2) { e = t2; } }), Object.defineProperty(this, "optionName", { enumerable: false, configurable: true, get: function() { return r; }, set: function(t2) { r = t2; } }); var n2, i2 = {}; Object.defineProperty(this, "MK", { enumerable: false, configurable: false, get: function() { var t2 = function(t3) { return t3; }; this.scope && (t2 = this.scope.internal.getEncryptor(this.objId)); var e2, r2 = []; for (e2 in r2.push("<<"), i2) r2.push("/" + e2 + " (" + R(t2(i2[e2])) + ")"); return r2.push(">>"), r2.join("\n"); }, set: function(e2) { "object" === _typeof(e2) && (i2 = e2); } }), Object.defineProperty(this, "caption", { enumerable: true, configurable: true, get: function() { return i2.CA || ""; }, set: function(t2) { "string" == typeof t2 && (i2.CA = t2); } }), Object.defineProperty(this, "AS", { enumerable: false, configurable: false, get: function() { return n2; }, set: function(t2) { n2 = t2; } }), Object.defineProperty(this, "appearanceState", { enumerable: true, configurable: true, get: function() { return n2.substr(1, n2.length - 1); }, set: function(t2) { n2 = "/" + t2; } }), this.caption = "l", this.appearanceState = "Off", this._AppearanceType = At.RadioButton.Circle, this.appearanceStreamContent = this._AppearanceType.createAppearanceStream(this.optionName); }; H(yt, lt), bt.prototype.setAppearance = function(t2) { if (!("createAppearanceStream" in t2) || !("getCA" in t2)) throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!"); for (var e in this.Kids) if (this.Kids.hasOwnProperty(e)) { var r = this.Kids[e]; r.appearanceStreamContent = t2.createAppearanceStream(r.optionName), r.caption = t2.getCA(); } }, bt.prototype.createOption = function(t2) { var e = new yt(); return e.Parent = this, e.optionName = t2, this.Kids.push(e), xt.call(this.scope, e), e; }; var wt = function() { mt.call(this), this.fontName = "zapfdingbats", this.caption = "3", this.appearanceState = "On", this.value = "On", this.textAlign = "center", this.appearanceStreamContent = At.CheckBox.createAppearanceStream(); }; H(wt, mt); var Nt = function() { lt.call(this), this.FT = "/Tx", Object.defineProperty(this, "multiline", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 13)); }, set: function(t3) { true === Boolean(t3) ? this.Ff = K(this.Ff, 13) : this.Ff = Z(this.Ff, 13); } }), Object.defineProperty(this, "fileSelect", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 21)); }, set: function(t3) { true === Boolean(t3) ? this.Ff = K(this.Ff, 21) : this.Ff = Z(this.Ff, 21); } }), Object.defineProperty(this, "doNotSpellCheck", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 23)); }, set: function(t3) { true === Boolean(t3) ? this.Ff = K(this.Ff, 23) : this.Ff = Z(this.Ff, 23); } }), Object.defineProperty(this, "doNotScroll", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 24)); }, set: function(t3) { true === Boolean(t3) ? this.Ff = K(this.Ff, 24) : this.Ff = Z(this.Ff, 24); } }), Object.defineProperty(this, "comb", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 25)); }, set: function(t3) { true === Boolean(t3) ? this.Ff = K(this.Ff, 25) : this.Ff = Z(this.Ff, 25); } }), Object.defineProperty(this, "richText", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 26)); }, set: function(t3) { true === Boolean(t3) ? this.Ff = K(this.Ff, 26) : this.Ff = Z(this.Ff, 26); } }); var t2 = null; Object.defineProperty(this, "MaxLen", { enumerable: true, configurable: false, get: function() { return t2; }, set: function(e) { t2 = e; } }), Object.defineProperty(this, "maxLength", { enumerable: true, configurable: true, get: function() { return t2; }, set: function(e) { Number.isInteger(e) && (t2 = e); } }), Object.defineProperty(this, "hasAppearanceStream", { enumerable: true, configurable: true, get: function() { return this.V || this.DV; } }); }; H(Nt, lt); var Lt = function() { Nt.call(this), Object.defineProperty(this, "password", { enumerable: true, configurable: true, get: function() { return Boolean(X(this.Ff, 14)); }, set: function(t2) { true === Boolean(t2) ? this.Ff = K(this.Ff, 14) : this.Ff = Z(this.Ff, 14); } }), this.password = true; }; H(Lt, Nt); var At = { CheckBox: { createAppearanceStream: function() { return { N: { On: At.CheckBox.YesNormal }, D: { On: At.CheckBox.YesPushDown, Off: At.CheckBox.OffPushDown } }; }, YesPushDown: function(t2) { var e = V(t2); e.scope = t2.scope; var r = [], n2 = t2.scope.internal.getFont(t2.fontName, t2.fontStyle).id, i2 = t2.scope.__private__.encodeColorString(t2.color), a2 = tt(t2, t2.caption); return r.push("0.749023 g"), r.push("0 0 " + U(At.internal.getWidth(t2)) + " " + U(At.internal.getHeight(t2)) + " re"), r.push("f"), r.push("BMC"), r.push("q"), r.push("0 0 1 rg"), r.push("/" + n2 + " " + U(a2.fontSize) + " Tf " + i2), r.push("BT"), r.push(a2.text), r.push("ET"), r.push("Q"), r.push("EMC"), e.stream = r.join("\n"), e; }, YesNormal: function(t2) { var e = V(t2); e.scope = t2.scope; var r = t2.scope.internal.getFont(t2.fontName, t2.fontStyle).id, n2 = t2.scope.__private__.encodeColorString(t2.color), i2 = [], a2 = At.internal.getHeight(t2), o2 = At.internal.getWidth(t2), s2 = tt(t2, t2.caption); return i2.push("1 g"), i2.push("0 0 " + U(o2) + " " + U(a2) + " re"), i2.push("f"), i2.push("q"), i2.push("0 0 1 rg"), i2.push("0 0 " + U(o2 - 1) + " " + U(a2 - 1) + " re"), i2.push("W"), i2.push("n"), i2.push("0 g"), i2.push("BT"), i2.push("/" + r + " " + U(s2.fontSize) + " Tf " + n2), i2.push(s2.text), i2.push("ET"), i2.push("Q"), e.stream = i2.join("\n"), e; }, OffPushDown: function(t2) { var e = V(t2); e.scope = t2.scope; var r = []; return r.push("0.749023 g"), r.push("0 0 " + U(At.internal.getWidth(t2)) + " " + U(At.internal.getHeight(t2)) + " re"), r.push("f"), e.stream = r.join("\n"), e; } }, RadioButton: { Circle: { createAppearanceStream: function(t2) { var e = { D: { Off: At.RadioButton.Circle.OffPushDown }, N: {} }; return e.N[t2] = At.RadioButton.Circle.YesNormal, e.D[t2] = At.RadioButton.Circle.YesPushDown, e; }, getCA: function() { return "l"; }, YesNormal: function(t2) { var e = V(t2); e.scope = t2.scope; var r = [], n2 = At.internal.getWidth(t2) <= At.internal.getHeight(t2) ? At.internal.getWidth(t2) / 4 : At.internal.getHeight(t2) / 4; n2 = Number((0.9 * n2).toFixed(5)); var i2 = At.internal.Bezier_C, a2 = Number((n2 * i2).toFixed(5)); return r.push("q"), r.push("1 0 0 1 " + z(At.internal.getWidth(t2) / 2) + " " + z(At.internal.getHeight(t2) / 2) + " cm"), r.push(n2 + " 0 m"), r.push(n2 + " " + a2 + " " + a2 + " " + n2 + " 0 " + n2 + " c"), r.push("-" + a2 + " " + n2 + " -" + n2 + " " + a2 + " -" + n2 + " 0 c"), r.push("-" + n2 + " -" + a2 + " -" + a2 + " -" + n2 + " 0 -" + n2 + " c"), r.push(a2 + " -" + n2 + " " + n2 + " -" + a2 + " " + n2 + " 0 c"), r.push("f"), r.push("Q"), e.stream = r.join("\n"), e; }, YesPushDown: function(t2) { var e = V(t2); e.scope = t2.scope; var r = [], n2 = At.internal.getWidth(t2) <= At.internal.getHeight(t2) ? At.internal.getWidth(t2) / 4 : At.internal.getHeight(t2) / 4; n2 = Number((0.9 * n2).toFixed(5)); var i2 = Number((2 * n2).toFixed(5)), a2 = Number((i2 * At.internal.Bezier_C).toFixed(5)), o2 = Number((n2 * At.internal.Bezier_C).toFixed(5)); return r.push("0.749023 g"), r.push("q"), r.push("1 0 0 1 " + z(At.internal.getWidth(t2) / 2) + " " + z(At.internal.getHeight(t2) / 2) + " cm"), r.push(i2 + " 0 m"), r.push(i2 + " " + a2 + " " + a2 + " " + i2 + " 0 " + i2 + " c"), r.push("-" + a2 + " " + i2 + " -" + i2 + " " + a2 + " -" + i2 + " 0 c"), r.push("-" + i2 + " -" + a2 + " -" + a2 + " -" + i2 + " 0 -" + i2 + " c"), r.push(a2 + " -" + i2 + " " + i2 + " -" + a2 + " " + i2 + " 0 c"), r.push("f"), r.push("Q"), r.push("0 g"), r.push("q"), r.push("1 0 0 1 " + z(At.internal.getWidth(t2) / 2) + " " + z(At.internal.getHeight(t2) / 2) + " cm"), r.push(n2 + " 0 m"), r.push(n2 + " " + o2 + " " + o2 + " " + n2 + " 0 " + n2 + " c"), r.push("-" + o2 + " " + n2 + " -" + n2 + " " + o2 + " -" + n2 + " 0 c"), r.push("-" + n2 + " -" + o2 + " -" + o2 + " -" + n2 + " 0 -" + n2 + " c"), r.push(o2 + " -" + n2 + " " + n2 + " -" + o2 + " " + n2 + " 0 c"), r.push("f"), r.push("Q"), e.stream = r.join("\n"), e; }, OffPushDown: function(t2) { var e = V(t2); e.scope = t2.scope; var r = [], n2 = At.internal.getWidth(t2) <= At.internal.getHeight(t2) ? At.internal.getWidth(t2) / 4 : At.internal.getHeight(t2) / 4; n2 = Number((0.9 * n2).toFixed(5)); var i2 = Number((2 * n2).toFixed(5)), a2 = Number((i2 * At.internal.Bezier_C).toFixed(5)); return r.push("0.749023 g"), r.push("q"), r.push("1 0 0 1 " + z(At.internal.getWidth(t2) / 2) + " " + z(At.internal.getHeight(t2) / 2) + " cm"), r.push(i2 + " 0 m"), r.push(i2 + " " + a2 + " " + a2 + " " + i2 + " 0 " + i2 + " c"), r.push("-" + a2 + " " + i2 + " -" + i2 + " " + a2 + " -" + i2 + " 0 c"), r.push("-" + i2 + " -" + a2 + " -" + a2 + " -" + i2 + " 0 -" + i2 + " c"), r.push(a2 + " -" + i2 + " " + i2 + " -" + a2 + " " + i2 + " 0 c"), r.push("f"), r.push("Q"), e.stream = r.join("\n"), e; } }, Cross: { createAppearanceStream: function(t2) { var e = { D: { Off: At.RadioButton.Cross.OffPushDown }, N: {} }; return e.N[t2] = At.RadioButton.Cross.YesNormal, e.D[t2] = At.RadioButton.Cross.YesPushDown, e; }, getCA: function() { return "8"; }, YesNormal: function(t2) { var e = V(t2); e.scope = t2.scope; var r = [], n2 = At.internal.calculateCross(t2); return r.push("q"), r.push("1 1 " + U(At.internal.getWidth(t2) - 2) + " " + U(At.internal.getHeight(t2) - 2) + " re"), r.push("W"), r.push("n"), r.push(U(n2.x1.x) + " " + U(n2.x1.y) + " m"), r.push(U(n2.x2.x) + " " + U(n2.x2.y) + " l"), r.push(U(n2.x4.x) + " " + U(n2.x4.y) + " m"), r.push(U(n2.x3.x) + " " + U(n2.x3.y) + " l"), r.push("s"), r.push("Q"), e.stream = r.join("\n"), e; }, YesPushDown: function(t2) { var e = V(t2); e.scope = t2.scope; var r = At.internal.calculateCross(t2), n2 = []; return n2.push("0.749023 g"), n2.push("0 0 " + U(At.internal.getWidth(t2)) + " " + U(At.internal.getHeight(t2)) + " re"), n2.push("f"), n2.push("q"), n2.push("1 1 " + U(At.internal.getWidth(t2) - 2) + " " + U(At.internal.getHeight(t2) - 2) + " re"), n2.push("W"), n2.push("n"), n2.push(U(r.x1.x) + " " + U(r.x1.y) + " m"), n2.push(U(r.x2.x) + " " + U(r.x2.y) + " l"), n2.push(U(r.x4.x) + " " + U(r.x4.y) + " m"), n2.push(U(r.x3.x) + " " + U(r.x3.y) + " l"), n2.push("s"), n2.push("Q"), e.stream = n2.join("\n"), e; }, OffPushDown: function(t2) { var e = V(t2); e.scope = t2.scope; var r = []; return r.push("0.749023 g"), r.push("0 0 " + U(At.internal.getWidth(t2)) + " " + U(At.internal.getHeight(t2)) + " re"), r.push("f"), e.stream = r.join("\n"), e; } } }, createDefaultAppearanceStream: function(t2) { var e = t2.scope.internal.getFont(t2.fontName, t2.fontStyle).id, r = t2.scope.__private__.encodeColorString(t2.color); return "/" + e + " " + t2.fontSize + " Tf " + r; } }; At.internal = { Bezier_C: 0.551915024494, calculateCross: function(t2) { var e = At.internal.getWidth(t2), r = At.internal.getHeight(t2), n2 = Math.min(e, r); return { x1: { x: (e - n2) / 2, y: (r - n2) / 2 + n2 }, x2: { x: (e - n2) / 2 + n2, y: (r - n2) / 2 }, x3: { x: (e - n2) / 2, y: (r - n2) / 2 }, x4: { x: (e - n2) / 2 + n2, y: (r - n2) / 2 + n2 } }; } }, At.internal.getWidth = function(e) { var r = 0; return "object" === _typeof(e) && (r = W(e.Rect[2])), r; }, At.internal.getHeight = function(e) { var r = 0; return "object" === _typeof(e) && (r = W(e.Rect[3])), r; }; var xt = q.addField = function(t2) { if (at(this, t2), !(t2 instanceof lt)) throw new Error("Invalid argument passed to jsPDF.addField."); var e; return (e = t2).scope.internal.acroformPlugin.printedOut && (e.scope.internal.acroformPlugin.printedOut = false, e.scope.internal.acroformPlugin.acroFormDictionaryRoot = null), e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e), t2.page = t2.scope.internal.getCurrentPageInfo().pageNumber, this; }; q.AcroFormChoiceField = ft, q.AcroFormListBox = dt, q.AcroFormComboBox = pt, q.AcroFormEditBox = gt, q.AcroFormButton = mt, q.AcroFormPushButton = vt, q.AcroFormRadioButton = bt, q.AcroFormCheckBox = wt, q.AcroFormTextField = Nt, q.AcroFormPasswordField = Lt, q.AcroFormAppearance = At, q.AcroForm = { ChoiceField: ft, ListBox: dt, ComboBox: pt, EditBox: gt, Button: mt, PushButton: vt, RadioButton: bt, CheckBox: wt, TextField: Nt, PasswordField: Lt, Appearance: At }, E.AcroForm = { ChoiceField: ft, ListBox: dt, ComboBox: pt, EditBox: gt, Button: mt, PushButton: vt, RadioButton: bt, CheckBox: wt, TextField: Nt, PasswordField: Lt, Appearance: At }; var St = E.AcroForm; function _t(t2) { return t2.reduce(function(t3, e, r) { return t3[e] = r, t3; }, {}); } !function(e) { e.__addimage__ = {}; var r = "UNKNOWN", n2 = { PNG: [[137, 80, 78, 71]], TIFF: [[77, 77, 0, 42], [73, 73, 42, 0]], JPEG: [[255, 216, 255, 224, void 0, void 0, 74, 70, 73, 70, 0], [255, 216, 255, 225, void 0, void 0, 69, 120, 105, 102, 0, 0], [255, 216, 255, 219], [255, 216, 255, 238]], JPEG2000: [[0, 0, 0, 12, 106, 80, 32, 32]], GIF87a: [[71, 73, 70, 56, 55, 97]], GIF89a: [[71, 73, 70, 56, 57, 97]], WEBP: [[82, 73, 70, 70, void 0, void 0, void 0, void 0, 87, 69, 66, 80]], BMP: [[66, 77], [66, 65], [67, 73], [67, 80], [73, 67], [80, 84]] }, i2 = e.__addimage__.getImageFileTypeByImageData = function(t2, e2) { var i3, a3, o3, s3, c3, u2 = r; if ("RGBA" === (e2 = e2 || r) || void 0 !== t2.data && t2.data instanceof Uint8ClampedArray && "height" in t2 && "width" in t2) return "RGBA"; if (x2(t2)) for (c3 in n2) for (o3 = n2[c3], i3 = 0; i3 < o3.length; i3 += 1) { for (s3 = true, a3 = 0; a3 < o3[i3].length; a3 += 1) if (void 0 !== o3[i3][a3] && o3[i3][a3] !== t2[a3]) { s3 = false; break; } if (true === s3) { u2 = c3; break; } } else for (c3 in n2) for (o3 = n2[c3], i3 = 0; i3 < o3.length; i3 += 1) { for (s3 = true, a3 = 0; a3 < o3[i3].length; a3 += 1) if (void 0 !== o3[i3][a3] && o3[i3][a3] !== t2.charCodeAt(a3)) { s3 = false; break; } if (true === s3) { u2 = c3; break; } } return u2 === r && e2 !== r && (u2 = e2), u2; }, a2 = function t2(e2) { for (var r2 = this.internal.write, n3 = this.internal.putStream, i3 = (0, this.internal.getFilters)(); -1 !== i3.indexOf("FlateEncode"); ) i3.splice(i3.indexOf("FlateEncode"), 1); e2.objectId = this.internal.newObject(); var a3 = []; if (a3.push({ key: "Type", value: "/XObject" }), a3.push({ key: "Subtype", value: "/Image" }), a3.push({ key: "Width", value: e2.width }), a3.push({ key: "Height", value: e2.height }), e2.colorSpace === b3.INDEXED ? a3.push({ key: "ColorSpace", value: "[/Indexed /DeviceRGB " + (e2.palette.length / 3 - 1) + " " + ("sMask" in e2 && void 0 !== e2.sMask ? e2.objectId + 2 : e2.objectId + 1) + " 0 R]" }) : (a3.push({ key: "ColorSpace", value: "/" + e2.colorSpace }), e2.colorSpace === b3.DEVICE_CMYK && a3.push({ key: "Decode", value: "[1 0 1 0 1 0 1 0]" })), a3.push({ key: "BitsPerComponent", value: e2.bitsPerComponent }), "decodeParameters" in e2 && void 0 !== e2.decodeParameters && a3.push({ key: "DecodeParms", value: "<<" + e2.decodeParameters + ">>" }), "transparency" in e2 && Array.isArray(e2.transparency)) { for (var o3 = "", s3 = 0, c3 = e2.transparency.length; s3 < c3; s3++) o3 += e2.transparency[s3] + " " + e2.transparency[s3] + " "; a3.push({ key: "Mask", value: "[" + o3 + "]" }); } void 0 !== e2.sMask && a3.push({ key: "SMask", value: e2.objectId + 1 + " 0 R" }); var u2 = void 0 !== e2.filter ? ["/" + e2.filter] : void 0; if (n3({ data: e2.data, additionalKeyValues: a3, alreadyAppliedFilters: u2, objectId: e2.objectId }), r2("endobj"), "sMask" in e2 && void 0 !== e2.sMask) { var h3 = "/Predictor " + e2.predictor + " /Colors 1 /BitsPerComponent " + e2.bitsPerComponent + " /Columns " + e2.width, l3 = { width: e2.width, height: e2.height, colorSpace: "DeviceGray", bitsPerComponent: e2.bitsPerComponent, decodeParameters: h3, data: e2.sMask }; "filter" in e2 && (l3.filter = e2.filter), t2.call(this, l3); } if (e2.colorSpace === b3.INDEXED) { var f3 = this.internal.newObject(); n3({ data: _2(new Uint8Array(e2.palette)), objectId: f3 }), r2("endobj"); } }, o2 = function() { var t2 = this.internal.collections.addImage_images; for (var e2 in t2) a2.call(this, t2[e2]); }, s2 = function() { var t2, e2 = this.internal.collections.addImage_images, r2 = this.internal.write; for (var n3 in e2) r2("/I" + (t2 = e2[n3]).index, t2.objectId, "0", "R"); }, c2 = function() { this.internal.collections.addImage_images || (this.internal.collections.addImage_images = {}, this.internal.events.subscribe("putResources", o2), this.internal.events.subscribe("putXobjectDict", s2)); }, h2 = function() { var t2 = this.internal.collections.addImage_images; return c2.call(this), t2; }, l2 = function() { return Object.keys(this.internal.collections.addImage_images).length; }, f2 = function(t2) { return "function" == typeof e["process" + t2.toUpperCase()]; }, d2 = function(e2) { return "object" === _typeof(e2) && 1 === e2.nodeType; }, p2 = function(t2, r2) { if ("IMG" === t2.nodeName && t2.hasAttribute("src")) { var n3 = "" + t2.getAttribute("src"); if (0 === n3.indexOf("data:image/")) return u(unescape(n3).split("base64,").pop()); var i3 = e.loadFile(n3, true); if (void 0 !== i3) return i3; } if ("CANVAS" === t2.nodeName) { if (0 === t2.width || 0 === t2.height) throw new Error("Given canvas must have data. Canvas width: " + t2.width + ", height: " + t2.height); var a3; switch (r2) { case "PNG": a3 = "image/png"; break; case "WEBP": a3 = "image/webp"; break; case "JPEG": case "JPG": default: a3 = "image/jpeg"; } return u(t2.toDataURL(a3, 1).split("base64,").pop()); } }, g2 = function(t2) { var e2 = this.internal.collections.addImage_images; if (e2) { for (var r2 in e2) if (t2 === e2[r2].alias) return e2[r2]; } }, m2 = function(t2, e2, r2) { return t2 || e2 || (t2 = -96, e2 = -96), t2 < 0 && (t2 = -1 * r2.width * 72 / t2 / this.internal.scaleFactor), e2 < 0 && (e2 = -1 * r2.height * 72 / e2 / this.internal.scaleFactor), 0 === t2 && (t2 = e2 * r2.width / r2.height), 0 === e2 && (e2 = t2 * r2.height / r2.width), [t2, e2]; }, v2 = function(t2, e2, r2, n3, i3, a3) { var o3 = m2.call(this, r2, n3, i3), s3 = this.internal.getCoordinateString, c3 = this.internal.getVerticalCoordinateString, u2 = h2.call(this); if (r2 = o3[0], n3 = o3[1], u2[i3.index] = i3, a3) { a3 *= Math.PI / 180; var l3 = Math.cos(a3), f3 = Math.sin(a3), d3 = function(t3) { return t3.toFixed(4); }, p3 = [d3(l3), d3(f3), d3(-1 * f3), d3(l3), 0, 0, "cm"]; } this.internal.write("q"), a3 ? (this.internal.write([1, "0", "0", 1, s3(t2), c3(e2 + n3), "cm"].join(" ")), this.internal.write(p3.join(" ")), this.internal.write([s3(r2), "0", "0", s3(n3), "0", "0", "cm"].join(" "))) : this.internal.write([s3(r2), "0", "0", s3(n3), s3(t2), c3(e2 + n3), "cm"].join(" ")), this.isAdvancedAPI() && this.internal.write([1, 0, 0, -1, 0, 0, "cm"].join(" ")), this.internal.write("/I" + i3.index + " Do"), this.internal.write("Q"); }, b3 = e.color_spaces = { DEVICE_RGB: "DeviceRGB", DEVICE_GRAY: "DeviceGray", DEVICE_CMYK: "DeviceCMYK", CAL_GREY: "CalGray", CAL_RGB: "CalRGB", LAB: "Lab", ICC_BASED: "ICCBased", INDEXED: "Indexed", PATTERN: "Pattern", SEPARATION: "Separation", DEVICE_N: "DeviceN" }; e.decode = { DCT_DECODE: "DCTDecode", FLATE_DECODE: "FlateDecode", LZW_DECODE: "LZWDecode", JPX_DECODE: "JPXDecode", JBIG2_DECODE: "JBIG2Decode", ASCII85_DECODE: "ASCII85Decode", ASCII_HEX_DECODE: "ASCIIHexDecode", RUN_LENGTH_DECODE: "RunLengthDecode", CCITT_FAX_DECODE: "CCITTFaxDecode" }; var y2 = e.image_compression = { NONE: "NONE", FAST: "FAST", MEDIUM: "MEDIUM", SLOW: "SLOW" }, w2 = e.__addimage__.sHashCode = function(t2) { var e2, r2, n3 = 0; if ("string" == typeof t2) for (r2 = t2.length, e2 = 0; e2 < r2; e2++) n3 = (n3 << 5) - n3 + t2.charCodeAt(e2), n3 |= 0; else if (x2(t2)) for (r2 = t2.byteLength / 2, e2 = 0; e2 < r2; e2++) n3 = (n3 << 5) - n3 + t2[e2], n3 |= 0; return n3; }, N2 = e.__addimage__.validateStringAsBase64 = function(t2) { (t2 = t2 || "").toString().trim(); var e2 = true; return 0 === t2.length && (e2 = false), t2.length % 4 != 0 && (e2 = false), false === /^[A-Za-z0-9+/]+$/.test(t2.substr(0, t2.length - 2)) && (e2 = false), false === /^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t2.substr(-2)) && (e2 = false), e2; }, L2 = e.__addimage__.extractImageFromDataUrl = function(t2) { var e2 = (t2 = t2 || "").split("base64,"), r2 = null; if (2 === e2.length) { var n3 = /^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e2[0]); Array.isArray(n3) && (r2 = { mimeType: n3[1], charset: n3[2], data: e2[1] }); } return r2; }, A2 = e.__addimage__.supportsArrayBuffer = function() { return "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array; }; e.__addimage__.isArrayBuffer = function(t2) { return A2() && t2 instanceof ArrayBuffer; }; var x2 = e.__addimage__.isArrayBufferView = function(t2) { return A2() && "undefined" != typeof Uint32Array && (t2 instanceof Int8Array || t2 instanceof Uint8Array || "undefined" != typeof Uint8ClampedArray && t2 instanceof Uint8ClampedArray || t2 instanceof Int16Array || t2 instanceof Uint16Array || t2 instanceof Int32Array || t2 instanceof Uint32Array || t2 instanceof Float32Array || t2 instanceof Float64Array); }, S2 = e.__addimage__.binaryStringToUint8Array = function(t2) { for (var e2 = t2.length, r2 = new Uint8Array(e2), n3 = 0; n3 < e2; n3++) r2[n3] = t2.charCodeAt(n3); return r2; }, _2 = e.__addimage__.arrayBufferToBinaryString = function(t2) { for (var e2 = "", r2 = x2(t2) ? t2 : new Uint8Array(t2), n3 = 0; n3 < r2.length; n3 += 8192) e2 += String.fromCharCode.apply(null, r2.subarray(n3, n3 + 8192)); return e2; }; e.addImage = function() { var e2, n3, i3, a3, o3, s3, u2, h3, l3; if ("number" == typeof arguments[1] ? (n3 = r, i3 = arguments[1], a3 = arguments[2], o3 = arguments[3], s3 = arguments[4], u2 = arguments[5], h3 = arguments[6], l3 = arguments[7]) : (n3 = arguments[1], i3 = arguments[2], a3 = arguments[3], o3 = arguments[4], s3 = arguments[5], u2 = arguments[6], h3 = arguments[7], l3 = arguments[8]), "object" === _typeof(e2 = arguments[0]) && !d2(e2) && "imageData" in e2) { var f3 = e2; e2 = f3.imageData, n3 = f3.format || n3 || r, i3 = f3.x || i3 || 0, a3 = f3.y || a3 || 0, o3 = f3.w || f3.width || o3, s3 = f3.h || f3.height || s3, u2 = f3.alias || u2, h3 = f3.compression || h3, l3 = f3.rotation || f3.angle || l3; } var p3 = this.internal.getFilters(); if (void 0 === h3 && -1 !== p3.indexOf("FlateEncode") && (h3 = "SLOW"), isNaN(i3) || isNaN(a3)) throw new Error("Invalid coordinates passed to jsPDF.addImage"); c2.call(this); var g3 = P2.call(this, e2, n3, u2, h3); return v2.call(this, i3, a3, o3, s3, g3, l3), this; }; var P2 = function(t2, n3, a3, o3) { var s3, c3, u2; if ("string" == typeof t2 && i2(t2) === r) { t2 = unescape(t2); var h3 = k2(t2, false); ("" !== h3 || void 0 !== (h3 = e.loadFile(t2, true))) && (t2 = h3); } if (d2(t2) && (t2 = p2(t2, n3)), n3 = i2(t2, n3), !f2(n3)) throw new Error("addImage does not support files of type '" + n3 + "', please ensure that a plugin for '" + n3 + "' support is added."); if ((null == (u2 = a3) || 0 === u2.length) && (a3 = function(t3) { return "string" == typeof t3 || x2(t3) ? w2(t3) : x2(t3.data) ? w2(t3.data) : null; }(t2)), (s3 = g2.call(this, a3)) || (A2() && (t2 instanceof Uint8Array || "RGBA" === n3 || (c3 = t2, t2 = S2(t2))), s3 = this["process" + n3.toUpperCase()](t2, l2.call(this), a3, function(t3) { return t3 && "string" == typeof t3 && (t3 = t3.toUpperCase()), t3 in e.image_compression ? t3 : y2.NONE; }(o3), c3)), !s3) throw new Error("An unknown error occurred whilst processing the image."); return s3; }, k2 = e.__addimage__.convertBase64ToBinaryString = function(t2, e2) { var r2; e2 = "boolean" != typeof e2 || e2; var n3, i3 = ""; if ("string" == typeof t2) { n3 = null !== (r2 = L2(t2)) ? r2.data : t2; try { i3 = u(n3); } catch (t3) { if (e2) throw N2(n3) ? new Error("atob-Error in jsPDF.convertBase64ToBinaryString " + t3.message) : new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString "); } } return i3; }; e.getImageProperties = function(t2) { var n3, a3, o3 = ""; if (d2(t2) && (t2 = p2(t2)), "string" == typeof t2 && i2(t2) === r && ("" === (o3 = k2(t2, false)) && (o3 = e.loadFile(t2) || ""), t2 = o3), a3 = i2(t2), !f2(a3)) throw new Error("addImage does not support files of type '" + a3 + "', please ensure that a plugin for '" + a3 + "' support is added."); if (!A2() || t2 instanceof Uint8Array || (t2 = S2(t2)), !(n3 = this["process" + a3.toUpperCase()](t2))) throw new Error("An unknown error occurred whilst processing the image"); return n3.fileType = a3, n3; }; }(E.API), /** * @license * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv * * Licensed under the MIT License. * http://opensource.org/licenses/mit-license */ function(t2) { var e = function(t3) { if (void 0 !== t3 && "" != t3) return true; }; E.API.events.push(["addPage", function(t3) { this.internal.getPageInfo(t3.pageNumber).pageContext.annotations = []; }]), t2.events.push(["putPage", function(t3) { for (var r, n2, i2, a2 = this.internal.getCoordinateString, o2 = this.internal.getVerticalCoordinateString, s2 = this.internal.getPageInfoByObjId(t3.objId), c2 = t3.pageContext.annotations, u2 = false, h2 = 0; h2 < c2.length && !u2; h2++) switch ((r = c2[h2]).type) { case "link": (e(r.options.url) || e(r.options.pageNumber)) && (u2 = true); break; case "reference": case "text": case "freetext": u2 = true; } if (0 != u2) { this.internal.write("/Annots ["); for (var l2 = 0; l2 < c2.length; l2++) { r = c2[l2]; var f2 = this.internal.pdfEscape, d2 = this.internal.getEncryptor(t3.objId); switch (r.type) { case "reference": this.internal.write(" " + r.object.objId + " 0 R "); break; case "text": var p2 = this.internal.newAdditionalObject(), g2 = this.internal.newAdditionalObject(), m2 = this.internal.getEncryptor(p2.objId), v2 = r.title || "Note"; i2 = "<>", p2.content = i2; var b3 = p2.objId + " 0 R"; i2 = "<>"; else if (r.options.pageNumber) { switch (i2 = "<