vendor: 21,527 bytes, lines 1-310
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-dVNaLJx_.js","assets/vendor-react-Bay9Y7Lb.js","assets/vendor-i18n-R-bMoYp_.js","assets/vendor-DqKRdbjz.css"])))=>i.map(i=>d[i]); 2import { _ as __vitePreload } from "./vendor-react-three-MDLA5jog.js"; 3import { aS as _typeof, aT as decodePng, aU as _slicedToArray, aV as zlibSync } from "./vendor-dVNaLJx_.js"; 4import "./vendor-react-Bay9Y7Lb.js"; 5import "./vendor-i18n-R-bMoYp_.js"; 6var i = /* @__PURE__ */ function() { 7 return "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this; 8}(); 9function a() { 10 i.console && "function" == typeof i.console.log && i.console.log.apply(i.console, arguments); 11} 12var o = { log: a, warn: function(t2) { 13 i.console && ("function" == typeof i.console.warn ? i.console.warn.apply(i.console, arguments) : a.call(null, arguments)); 14}, error: function(t2) { 15 i.console && ("function" == typeof i.console.error ? i.console.error.apply(i.console, arguments) : a(t2)); 16} }; 17function s(t2, e, r) { 18 var n = new XMLHttpRequest(); 19 n.open("GET", t2), n.responseType = "blob", n.onload = function() { 20 l(n.response, e, r); 21 }, n.onerror = function() { 22 o.error("could not download file"); 23 }, n.send(); 24} 25function u(t2) { 26 var e = new XMLHttpRequest(); 27 e.open("HEAD", t2, false); 28 try { 29 e.send(); 30 } catch (r) { 31 } 32 return e.status >= 200 && e.status <= 299; 33} 34function c(t2) { 35 try { 36 t2.dispatchEvent(new MouseEvent("click")); 37 } catch (r) { 38 var e = document.createEvent("MouseEvents"); 39 e.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null), t2.dispatchEvent(e); 40 } 41} 42var l = i.saveAs || ("object" !== ("undefined" == typeof window ? "undefined" : _typeof(window)) || window !== i ? function() { 43} : "undefined" != typeof HTMLAnchorElement && "download" in HTMLAnchorElement.prototype ? function(t2, e, r) { 44 var n = i.URL || i.webkitURL, a2 = document.createElement("a"); 45 e = e || t2.name || "download", a2.download = e, a2.rel = "noopener", "string" == typeof t2 ? (a2.href = t2, a2.origin !== location.origin ? u(a2.href) ? s(t2, e, r) : c(a2, a2.target = "_blank") : c(a2)) : (a2.href = n.createObjectURL(t2), setTimeout(function() { 46 n.revokeObjectURL(a2.href); 47 }, 4e4), setTimeout(function() { 48 c(a2); 49 }, 0)); 50} : "msSaveOrOpenBlob" in navigator ? function(e, r, n) { 51 if (r = r || e.name || "download", "string" == typeof e) if (u(e)) s(e, r, n); 52 else { 53 var i2 = document.createElement("a"); 54 i2.href = e, i2.target = "_blank", setTimeout(function() { 55 c(i2); 56 }); 57 } 58 else navigator.msSaveOrOpenBlob(function(e2, r2) { 59 return void 0 === r2 ? r2 = { autoBom: false } : "object" !== _typeof(r2) && (o.warn("Deprecated: Expected third argument to be a object"), r2 = { autoBom: !r2 }), r2.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e2.type) ? new Blob([String.fromCharCode(65279), e2], { type: e2.type }) : e2; 60 }(e, n), r); 61} : function(e, r, n, a2) { 62 if ((a2 = a2 || open("", "_blank")) && (a2.document.title = a2.document.body.innerText = "downloading..."), "string" == typeof e) return s(e, r, n); 63 var o2 = "application/octet-stream" === e.type, u2 = /constructor/i.test(i.HTMLElement) || i.safari, c2 = /CriOS\/[\d]+/.test(navigator.userAgent); 64 if ((c2 || o2 && u2) && "object" === ("undefined" == typeof FileReader ? "undefined" : _typeof(FileReader))) { 65 var l2 = new FileReader(); 66 l2.onloadend = function() { 67 var t2 = l2.result; 68 t2 = c2 ? t2 : t2.replace(/^data:[^;]*;/, "data:attachment/file;"), a2 ? a2.location.href = t2 : location = t2, a2 = null; 69 }, l2.readAsDataURL(e); 70 } else { 71 var h2 = i.URL || i.webkitURL, f2 = h2.createObjectURL(e); 72 a2 ? a2.location = f2 : location.href = f2, a2 = null, setTimeout(function() { 73 h2.revokeObjectURL(f2); 74 }, 4e4); 75 } 76}); 77/** 78 * A class to parse color values 79 * @author Stoyan Stefanov <[email protected]> 80 * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} 81 * @license Use it if you like it 82 */ 83function h(t2) { 84 var e; 85 t2 = t2 || "", this.ok = false, "#" == t2.charAt(0) && (t2 = t2.substr(1, 6)), t2 = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "00ffff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000000", blanchedalmond: "ffebcd", blue: "0000ff", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "00ffff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dodgerblue: "1e90ff", feldspar: "d19275", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "ff00ff", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgrey: "d3d3d3", lightgreen: "90ee90", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslateblue: "8470ff", lightslategray: "778899", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "00ff00", limegreen: "32cd32", linen: "faf0e6", magenta: "ff00ff", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370d8", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "d87093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", red: "ff0000", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", violetred: "d02090", wheat: "f5deb3", white: "ffffff", whitesmoke: "f5f5f5", yellow: "ffff00", yellowgreen: "9acd32" }[t2 = (t2 = t2.replace(/ /g, "")).toLowerCase()] || t2; 86 for (var r = [{ re: /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/, example: ["rgb(123, 234, 45)", "rgb(255,234,245)"], process: function(t3) { 87 return [parseInt(t3[1]), parseInt(t3[2]), parseInt(t3[3])]; 88 } }, { re: /^(\w{2})(\w{2})(\w{2})$/, example: ["#00ff00", "336699"], process: function(t3) { 89 return [parseInt(t3[1], 16), parseInt(t3[2], 16), parseInt(t3[3], 16)]; 90 } }, { re: /^(\w{1})(\w{1})(\w{1})$/, example: ["#fb0", "f0f"], process: function(t3) { 91 return [parseInt(t3[1] + t3[1], 16), parseInt(t3[2] + t3[2], 16), parseInt(t3[3] + t3[3], 16)]; 92 } }], n = 0; n < r.length; n++) { 93 var i2 = r[n].re, a2 = r[n].process, o2 = i2.exec(t2); 94 o2 && (e = a2(o2), this.r = e[0], this.g = e[1], this.b = e[2], this.ok = true); 95 } 96 this.r = this.r < 0 || isNaN(this.r) ? 0 : this.r > 255 ? 255 : this.r, this.g = this.g < 0 || isNaN(this.g) ? 0 : this.g > 255 ? 255 : this.g, this.b = this.b < 0 || isNaN(this.b) ? 0 : this.b > 255 ? 255 : this.b, this.toRGB = function() { 97 return "rgb(" + this.r + ", " + this.g + ", " + this.b + ")"; 98 }, this.toHex = function() { 99 var t3 = this.r.toString(16), e2 = this.g.toString(16), r2 = this.b.toString(16); 100 return 1 == t3.length && (t3 = "0" + t3), 1 == e2.length && (e2 = "0" + e2), 1 == r2.length && (r2 = "0" + r2), "#" + t3 + e2 + r2; 101 }; 102} 103var f = i.atob.bind(i), d = i.btoa.bind(i); 104/** 105 * @license 106 * Joseph Myers does not specify a particular license for his work. 107 * 108 * Author: Joseph Myers 109 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js 110 * 111 * Modified by: Owen Leong 112 */ 113function p(t2, e) { 114 var r = t2[0], n = t2[1], i2 = t2[2], a2 = t2[3]; 115 r = m(r, n, i2, a2, e[0], 7, -680876936), a2 = m(a2, r, n, i2, e[1], 12, -389564586), i2 = m(i2, a2, r, n, e[2], 17, 606105819), n = m(n, i2, a2, r, e[3], 22, -1044525330), r = m(r, n, i2, a2, e[4], 7, -176418897), a2 = m(a2, r, n, i2, e[5], 12, 1200080426), i2 = m(i2, a2, r, n, e[6], 17, -1473231341), n = m(n, i2, a2, r, e[7], 22, -45705983), r = m(r, n, i2, a2, e[8], 7, 1770035416), a2 = m(a2, r, n, i2, e[9], 12, -1958414417), i2 = m(i2, a2, r, n, e[10], 17, -42063), n = m(n, i2, a2, r, e[11], 22, -1990404162), r = m(r, n, i2, a2, e[12], 7, 1804603682), a2 = m(a2, r, n, i2, e[13], 12, -40341101), i2 = m(i2, a2, r, n, e[14], 17, -1502002290), r = v(r, n = m(n, i2, a2, r, e[15], 22, 1236535329), i2, a2, e[1], 5, -165796510), a2 = v(a2, r, n, i2, e[6], 9, -1069501632), i2 = v(i2, a2, r, n, e[11], 14, 643717713), n = v(n, i2, a2, r, e[0], 20, -373897302), r = v(r, n, i2, a2, e[5], 5, -701558691), a2 = v(a2, r, n, i2, e[10], 9, 38016083), i2 = v(i2, a2, r, n, e[15], 14, -660478335), n = v(n, i2, a2, r, e[4], 20, -405537848), r = v(r, n, i2, a2, e[9], 5, 568446438), a2 = v(a2, r, n, i2, e[14], 9, -1019803690), i2 = v(i2, a2, r, n, e[3], 14, -187363961), n = v(n, i2, a2, r, e[8], 20, 1163531501), r = v(r, n, i2, a2, e[13], 5, -1444681467), a2 = v(a2, r, n, i2, e[2], 9, -51403784), i2 = v(i2, a2, r, n, e[7], 14, 1735328473), r = b(r, n = v(n, i2, a2, r, e[12], 20, -1926607734), i2, a2, e[5], 4, -378558), a2 = b(a2, r, n, i2, e[8], 11, -2022574463), i2 = b(i2, a2, r, n, e[11], 16, 1839030562), n = b(n, i2, a2, r, e[14], 23, -35309556), r = b(r, n, i2, a2, e[1], 4, -1530992060), a2 = b(a2, r, n, i2, e[4], 11, 1272893353), i2 = b(i2, a2, r, n, e[7], 16, -155497632), n = b(n, i2, a2, r, e[10], 23, -1094730640), r = b(r, n, i2, a2, e[13], 4, 681279174), a2 = b(a2, r, n, i2, e[0], 11, -358537222), i2 = b(i2, a2, r, n, e[3], 16, -722521979), n = b(n, i2, a2, r, e[6], 23, 76029189), r = b(r, n, i2, a2, e[9], 4, -640364487), a2 = b(a2, r, n, i2, e[12], 11, -421815835), i2 = b(i2, a2, r, n, e[15], 16, 530742520), r = y(r, n = b(n, i2, a2, r, e[2], 23, -995338651), i2, a2, e[0], 6, -198630844), a2 = y(a2, r, n, i2, e[7], 10, 1126891415), i2 = y(i2, a2, r, n, e[14], 15, -1416354905), n = y(n, i2, a2, r, e[5], 21, -57434055), r = y(r, n, i2, a2, e[12], 6, 1700485571), a2 = y(a2, r, n, i2, e[3], 10, -1894986606), i2 = y(i2, a2, r, n, e[10], 15, -1051523), n = y(n, i2, a2, r, e[1], 21, -2054922799), r = y(r, n, i2, a2, e[8], 6, 1873313359), a2 = y(a2, r, n, i2, e[15], 10, -30611744), i2 = y(i2, a2, r, n, e[6], 15, -1560198380), n = y(n, i2, a2, r, e[13], 21, 1309151649), r = y(r, n, i2, a2, e[4], 6, -145523070), a2 = y(a2, r, n, i2, e[11], 10, -1120210379), i2 = y(i2, a2, r, n, e[2], 15, 718787259), n = y(n, i2, a2, r, e[9], 21, -343485551), t2[0] = P(r, t2[0]), t2[1] = P(n, t2[1]), t2[2] = P(i2, t2[2]), t2[3] = P(a2, t2[3]); 116} 117function g(t2, e, r, n, i2, a2) { 118 return e = P(P(e, t2), P(n, a2)), P(e << i2 | e >>> 32 - i2, r); 119} 120function m(t2, e, r, n, i2, a2, o2) { 121 return g(e & r | ~e & n, t2, e, i2, a2, o2); 122} 123function v(t2, e, r, n, i2, a2, o2) { 124 return g(e & n | r & ~n, t2, e, i2, a2, o2); 125} 126function b(t2, e, r, n, i2, a2, o2) { 127 return g(e ^ r ^ n, t2, e, i2, a2, o2); 128} 129function y(t2, e, r, n, i2, a2, o2) { 130 return g(r ^ (e | ~n), t2, e, i2, a2, o2); 131} 132function w(t2) { 133 var e, r = t2.length, n = [1732584193, -271733879, -1732584194, 271733878]; 134 for (e = 64; e <= t2.length; e += 64) p(n, N(t2.substring(e - 64, e))); 135 t2 = t2.substring(e - 64); 136 var i2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; 137 for (e = 0; e < t2.length; e++) i2[e >> 2] |= t2.charCodeAt(e) << (e % 4 << 3); 138 if (i2[e >> 2] |= 128 << (e % 4 << 3), e > 55) for (p(n, i2), e = 0; e < 16; e++) i2[e] = 0; 139 return i2[14] = 8 * r, p(n, i2), n; 140} 141function N(t2) { 142 var e, r = []; 143 for (e = 0; e < 64; e += 4) r[e >> 2] = t2.charCodeAt(e) + (t2.charCodeAt(e + 1) << 8) + (t2.charCodeAt(e + 2) << 16) + (t2.charCodeAt(e + 3) << 24); 144 return r; 145} 146var L = "0123456789abcdef".split(""); 147function x(t2) { 148 for (var e = "", r = 0; r < 4; r++) e += L[t2 >> 8 * r + 4 & 15] + L[t2 >> 8 * r & 15]; 149 return e; 150} 151function A(t2) { 152 return String.fromCharCode(255 & t2, (65280 & t2) >> 8, (16711680 & t2) >> 16, (4278190080 & t2) >> 24); 153} 154function S(t2) { 155 return w(t2).map(A).join(""); 156} 157var _ = "5d41402abc4b2a76b9719d911017c592" != function(t2) { 158 for (var e = 0; e < t2.length; e++) t2[e] = x(t2[e]); 159 return t2.join(""); 160}(w("hello")); 161function P(t2, e) { 162 if (_) { 163 var r = (65535 & t2) + (65535 & e); 164 return (t2 >> 16) + (e >> 16) + (r >> 16) << 16 | 65535 & r; 165 } 166 return t2 + e & 4294967295; 167} 168/** 169 * @license 170 * FPDF is released under a permissive license: there is no usage restriction. 171 * You may embed it freely in your application (commercial or not), with or 172 * without modifications. 173 * 174 * Reference: http://www.fpdf.org/en/script/script37.php 175 */ 176function k(t2, e) { 177 var r, n, i2, a2; 178 if (t2 !== r) { 179 for (var o2 = (i2 = t2, a2 = 1 + (256 / t2.length | 0), new Array(a2 + 1).join(i2)), s2 = [], u2 = 0; u2 < 256; u2++) s2[u2] = u2; 180 var c2 = 0; 181 for (u2 = 0; u2 < 256; u2++) { 182 var l2 = s2[u2]; 183 c2 = (c2 + l2 + o2.charCodeAt(u2)) % 256, s2[u2] = s2[c2], s2[c2] = l2; 184 } 185 r = t2, n = s2; 186 } else s2 = n; 187 var h2 = e.length, f2 = 0, d2 = 0, p2 = ""; 188 for (u2 = 0; u2 < h2; u2++) d2 = (d2 + (l2 = s2[f2 = (f2 + 1) % 256])) % 256, s2[f2] = s2[d2], s2[d2] = l2, o2 = s2[(s2[f2] + s2[d2]) % 256], p2 += String.fromCharCode(e.charCodeAt(u2) ^ o2); 189 return p2; 190} 191/** 192 * @license 193 * Licensed under the MIT License. 194 * http://opensource.org/licenses/mit-license 195 * Author: Owen Leong (@owenl131) 196 * Date: 15 Oct 2020 197 * References: 198 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt 199 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js 200 * http://www.fpdf.org/en/script/script37.php 201 */ 202var F = { print: 4, modify: 8, copy: 16, "annot-forms": 32 }; 203function I(t2, e, r, n) { 204 this.v = 1, this.r = 2; 205 var i2 = 192; 206 t2.forEach(function(t3) { 207 if (void 0 !== F.perm) throw new Error("Invalid permission: " + t3); 208 i2 += F[t3]; 209 }), this.padding = "(¿N^NuÂAd\0NVÿú�\b..\0¶Ãh>Â/\f©þdSiz"; 210 var a2 = (e + this.padding).substr(0, 32), o2 = (r + this.padding).substr(0, 32); 211 this.O = this.processOwnerPassword(a2, o2), this.P = -(1 + (255 ^ i2)), this.encryptionKey = S(a2 + this.O + this.lsbFirstWord(this.P) + this.hexToBytes(n)).substr(0, 5), this.U = k(this.encryptionKey, this.padding); 212} 213function C(t2) { 214 if (/[^\u0000-\u00ff]/.test(t2)) throw new Error("Invalid PDF Name Object: " + t2 + ", Only accept ASCII characters."); 215 for (var e = "", r = t2.length, n = 0; n < r; n++) { 216 var i2 = t2.charCodeAt(n); 217 e += i2 < 33 || 35 === i2 || 37 === i2 || 40 === i2 || 41 === i2 || 47 === i2 || 60 === i2 || 62 === i2 || 91 === i2 || 93 === i2 || 123 === i2 || 125 === i2 || i2 > 126 ? "#" + ("0" + i2.toString(16)).slice(-2) : t2[n]; 218 } 219 return e; 220} 221function j(e) { 222 if ("object" !== _typeof(e)) throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)"); 223 var r = {}; 224 this.subscribe = function(t2, e2, n) { 225 if (n = n || false, "string" != typeof t2 || "function" != typeof e2 || "boolean" != typeof n) throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)"); 226 r.hasOwnProperty(t2) || (r[t2] = {}); 227 var i2 = Math.random().toString(35); 228 return r[t2][i2] = [e2, !!n], i2; 229 }, this.unsubscribe = function(t2) { 230 for (var e2 in r) if (r[e2][t2]) return delete r[e2][t2], 0 === Object.keys(r[e2]).length && delete r[e2], true; 231 return false; 232 }, this.publish = function(t2) { 233 if (r.hasOwnProperty(t2)) { 234 var n = Array.prototype.slice.call(arguments, 1), a2 = []; 235 for (var s2 in r[t2]) { 236 var u2 = r[t2][s2]; 237 try { 238 u2[0].apply(e, n); 239 } catch (c2) { 240 i.console && o.error("jsPDF PubSub Error", c2.message, c2); 241 } 242 u2[1] && a2.push(s2); 243 } 244 a2.length && a2.forEach(this.unsubscribe); 245 } 246 }, this.getTopics = function() { 247 return r; 248 }; 249} 250function O(t2) { 251 if (!(this instanceof O)) return new O(t2); 252 var e = "opacity,stroke-opacity".split(","); 253 for (var r in t2) t2.hasOwnProperty(r) && e.indexOf(r) >= 0 && (this[r] = t2[r]); 254 this.id = "", this.objectNumber = -1; 255} 256function B(t2, e) { 257 this.gState = t2, this.matrix = e, this.id = "", this.objectNumber = -1; 258} 259function M(t2, e, r, n, i2) { 260 if (!(this instanceof M)) return new M(t2, e, r, n, i2); 261 this.type = "axial" === t2 ? 2 : 3, this.coords = e, this.colors = r, B.call(this, n, i2); 262} 263function q(t2, e, r, n, i2) { 264 if (!(this instanceof q)) return new q(t2, e, r, n, i2); 265 this.boundingBox = t2, this.xStep = e, this.yStep = r, this.stream = "", this.cloneIndex = 0, B.call(this, n, i2); 266} 267function E(e) { 268 var r, n = "string" == typeof arguments[0] ? arguments[0] : "p", a2 = arguments[1], s2 = arguments[2], u2 = arguments[3], c2 = [], f2 = 1, p2 = 16, g2 = "S", m2 = null; 269 "object" === _typeof(e = e || {}) && (n = e.orientation, a2 = e.unit || a2, s2 = e.format || s2, u2 = e.compress || e.compressPdf || u2, null !== (m2 = e.encryption || null) && (m2.userPassword = m2.userPassword || "", m2.ownerPassword = m2.ownerPassword || "", m2.userPermissions = m2.userPermissions || []), f2 = "number" == typeof e.userUnit ? Math.abs(e.userUnit) : 1, void 0 !== e.precision && (r = e.precision), void 0 !== e.floatPrecision && (p2 = e.floatPrecision), g2 = e.defaultPathOperation || "S"), c2 = e.filters || (true === u2 ? ["FlateEncode"] : c2), a2 = a2 || "mm", n = ("" + (n || "P")).toLowerCase(); 270 var v2 = e.putOnlyUsedFonts || false, b2 = {}, y2 = { internal: {}, __private__: {} }; 271 y2.__private__.PubSub = j; 272 var w2 = "1.3", N2 = y2.__private__.getPdfVersion = function() { 273 return w2; 274 }; 275 y2.__private__.setPdfVersion = function(t2) { 276 w2 = t2; 277 }; 278 var L2 = { a0: [2383.94, 3370.39], a1: [1683.78, 2383.94], a2: [1190.55, 1683.78], a3: [841.89, 1190.55], a4: [595.28, 841.89], a5: [419.53, 595.28], a6: [297.64, 419.53], a7: [209.76, 297.64], a8: [147.4, 209.76], a9: [104.88, 147.4], a10: [73.7, 104.88], b0: [2834.65, 4008.19], b1: [2004.09, 2834.65], b2: [1417.32, 2004.09], b3: [1000.63, 1417.32], b4: [708.66, 1000.63], b5: [498.9, 708.66], b6: [354.33, 498.9], b7: [249.45, 354.33], b8: [175.75, 249.45], b9: [124.72, 175.75], b10: [87.87, 124.72], c0: [2599.37, 3676.54], c1: [1836.85, 2599.37], c2: [1298.27, 1836.85], c3: [918.43, 1298.27], c4: [649.13, 918.43], c5: [459.21, 649.13], c6: [323.15, 459.21], c7: [229.61, 323.15], c8: [161.57, 229.61], c9: [113.39, 161.57], c10: [79.37, 113.39], dl: [311.81, 623.62], letter: [612, 792], "government-letter": [576, 756], legal: [612, 1008], "junior-legal": [576, 360], ledger: [1224, 792], tabloid: [792, 1224], "credit-card": [153, 243] }; 279 y2.__private__.getPageFormats = function() { 280 return L2; 281 }; 282 var x2 = y2.__private__.getPageFormat = function(t2) { 283 return L2[t2]; 284 }; 285 s2 = s2 || "a4"; 286 var A2 = "compat", S2 = "advanced", _2 = A2; 287 function P2() { 288 this.saveGraphicsState(), lt2(new Wt2(St2, 0, 0, -St2, 0, Pr() * St2).toString() + " cm"), this.setFontSize(this.getFontSize() / St2), g2 = "n", _2 = S2; 289 } 290 function k2() { 291 this.restoreGraphicsState(), g2 = "S", _2 = A2; 292 } 293 var F2 = y2.__private__.combineFontStyleAndFontWeight = function(t2, e2) { 294 if ("bold" == t2 && "normal" == e2 || "bold" == t2 && 400 == e2 || "normal" == t2 && "italic" == e2 || "bold" == t2 && "italic" == e2) throw new Error("Invalid Combination of fontweight and fontstyle"); 295 return e2 && (t2 = 400 == e2 || "normal" === e2 ? "italic" === t2 ? "italic" : "normal" : 700 != e2 && "bold" !== e2 || "normal" !== t2 ? (700 == e2 ? "bold" : e2) + "" + t2 : "bold"), t2; 296 }; 297 y2.advancedAPI = function(t2) { 298 var e2 = _2 === A2; 299 return e2 && P2.call(this), "function" != typeof t2 || (t2(this), e2 && k2.call(this)), this; 300 }, y2.compatAPI = function(t2) { 301 var e2 = _2 === S2; 302 return e2 && k2.call(this), "function" != typeof t2 || (t2(this), e2 && P2.call(this)), this; 303 }, y2.isAdvancedAPI = function() { 304 return _2 === S2; 305 }; 306 var B2, R2 = function(t2) { 307 if (_2 !== S2) throw new Error(t2 + " is only available in 'advanced' API mode. You need to call advancedAPI() first."); 308 }, D2 = y2.roundToPrecision = y2.__private__.roundToPrecision = function(t2, e2) { 309 var n2 = r || e2; 310 if (isNaN(t2) || isNaN(n2)) throw new Error("Invalid argument passed to
vendor: 5,234 bytes, lines 310-398
310jsPDF.roundToPrecision"); 311 return t2.toFixed(n2).replace(/0+$/, ""); 312 }; 313 B2 = y2.hpf = y2.__private__.hpf = "number" == typeof p2 ? function(t2) { 314 if (isNaN(t2)) throw new Error("Invalid argument passed to jsPDF.hpf"); 315 return D2(t2, p2); 316 } : "smart" === p2 ? function(t2) { 317 if (isNaN(t2)) throw new Error("Invalid argument passed to jsPDF.hpf"); 318 return D2(t2, t2 > -1 && t2 < 1 ? 16 : 5); 319 } : function(t2) { 320 if (isNaN(t2)) throw new Error("Invalid argument passed to jsPDF.hpf"); 321 return D2(t2, 16); 322 }; 323 var T2 = y2.f2 = y2.__private__.f2 = function(t2) { 324 if (isNaN(t2)) throw new Error("Invalid argument passed to jsPDF.f2"); 325 return D2(t2, 2); 326 }, z2 = y2.__private__.f3 = function(t2) { 327 if (isNaN(t2)) throw new Error("Invalid argument passed to jsPDF.f3"); 328 return D2(t2, 3); 329 }, U2 = y2.scale = y2.__private__.scale = function(t2) { 330 if (isNaN(t2)) throw new Error("Invalid argument passed to jsPDF.scale"); 331 return _2 === A2 ? t2 * St2 : _2 === S2 ? t2 : void 0; 332 }, H2 = function(t2) { 333 return U2(function(t3) { 334 return _2 === A2 ? Pr() - t3 : _2 === S2 ? t3 : void 0; 335 }(t2)); 336 }; 337 y2.__private__.setPrecision = y2.setPrecision = function(t2) { 338 "number" == typeof parseInt(t2, 10) && (r = parseInt(t2, 10)); 339 }; 340 var W2, V2 = "00000000000000000000000000000000", G2 = y2.__private__.getFileId = function() { 341 return V2; 342 }, Y2 = y2.__private__.setFileId = function(t2) { 343 return V2 = void 0 !== t2 && /^[a-fA-F0-9]{32}$/.test(t2) ? t2.toUpperCase() : V2.split("").map(function() { 344 return "ABCDEF0123456789".charAt(Math.floor(16 * Math.random())); 345 }).join(""), null !== m2 && (Oe = new I(m2.userPermissions, m2.userPassword, m2.ownerPassword, V2)), V2; 346 }; 347 y2.setFileId = function(t2) { 348 return Y2(t2), this; 349 }, y2.getFileId = function() { 350 return G2(); 351 }; 352 var J2 = y2.__private__.convertDateToPDFDate = function(t2) { 353 var e2 = t2.getTimezoneOffset(), r2 = e2 < 0 ? "+" : "-", n2 = Math.floor(Math.abs(e2 / 60)), i2 = Math.abs(e2 % 60), a3 = [r2, Q2(n2), "'", Q2(i2), "'"].join(""); 354 return ["D:", t2.getFullYear(), Q2(t2.getMonth() + 1), Q2(t2.getDate()), Q2(t2.getHours()), Q2(t2.getMinutes()), Q2(t2.getSeconds()), a3].join(""); 355 }, X2 = y2.__private__.convertPDFDateToDate = function(t2) { 356 var e2 = parseInt(t2.substr(2, 4), 10), r2 = parseInt(t2.substr(6, 2), 10) - 1, n2 = parseInt(t2.substr(8, 2), 10), i2 = parseInt(t2.substr(10, 2), 10), a3 = parseInt(t2.substr(12, 2), 10), o2 = parseInt(t2.substr(14, 2), 10); 357 return new Date(e2, r2, n2, i2, a3, o2, 0); 358 }, K2 = y2.__private__.setCreationDate = function(t2) { 359 var e2; 360 if (void 0 === t2 && (t2 = /* @__PURE__ */ new Date()), t2 instanceof Date) e2 = J2(t2); 361 else { 362 if (!/^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])'?$/.test(t2)) throw new Error("Invalid argument passed to jsPDF.setCreationDate"); 363 e2 = t2; 364 } 365 return W2 = e2; 366 }, Z2 = y2.__private__.getCreationDate = function(t2) { 367 var e2 = W2; 368 return "jsDate" === t2 && (e2 = X2(W2)), e2; 369 }; 370 y2.setCreationDate = function(t2) { 371 return K2(t2), this; 372 }, y2.getCreationDate = function(t2) { 373 return Z2(t2); 374 }; 375 var $2, Q2 = y2.__private__.padd2 = function(t2) { 376 return ("0" + parseInt(t2)).slice(-2); 377 }, tt2 = y2.__private__.padd2Hex = function(t2) { 378 return ("00" + (t2 = t2.toString())).substr(t2.length); 379 }, et2 = 0, rt2 = [], nt2 = [], it2 = 0, at2 = [], ot2 = [], st2 = false, ut2 = nt2; 380 y2.__private__.setCustomOutputDestination = function(t2) { 381 st2 = true, ut2 = t2; 382 }; 383 var ct2 = function(t2) { 384 st2 || (ut2 = t2); 385 }; 386 y2.__private__.resetCustomOutputDestination = function() { 387 st2 = false, ut2 = nt2; 388 }; 389 var lt2 = y2.__private__.out = function(t2) { 390 return t2 = t2.toString(), it2 += t2.length + 1, ut2.push(t2), ut2; 391 }, ht2 = y2.__private__.write = function(t2) { 392 return lt2(1 === arguments.length ? t2.toString() : Array.prototype.join.call(arguments, " ")); 393 }, ft2 = y2.__private__.getArrayBuffer = function(t2) { 394 for (var e2 = t2.length, r2 = new ArrayBuffer(e2), n2 = new Uint8Array(r2); e2--; ) n2[e2] = t2.charCodeAt(e2); 395 return r2; 396 }, dt2 = [["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]]; 397 y2.__private__.getStandardFonts = function() { 398 return dt2;
vendor: 23,810 bytes, lines 399-737
399 }; 400 var pt2 = e.fontSize || 16; 401 y2.__private__.setFontSize = y2.setFontSize = function(t2) { 402 return pt2 = _2 === S2 ? t2 / St2 : t2, this; 403 }; 404 var gt2, mt2 = y2.__private__.getFontSize = y2.getFontSize = function() { 405 return _2 === A2 ? pt2 : pt2 * St2; 406 }, vt2 = e.R2L || false; 407 y2.__private__.setR2L = y2.setR2L = function(t2) { 408 return vt2 = t2, this; 409 }, y2.__private__.getR2L = y2.getR2L = function() { 410 return vt2; 411 }; 412 var bt2, yt2 = y2.__private__.setZoomMode = function(t2) { 413 if (/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t2)) gt2 = t2; 414 else if (isNaN(t2)) { 415 if (-1 === [void 0, null, "fullwidth", "fullheight", "fullpage", "original"].indexOf(t2)) throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "' + t2 + '" is not recognized.'); 416 gt2 = t2; 417 } else gt2 = parseInt(t2, 10); 418 }; 419 y2.__private__.getZoomMode = function() { 420 return gt2; 421 }; 422 var wt2, Nt2 = y2.__private__.setPageMode = function(t2) { 423 if (-1 == [void 0, null, "UseNone", "UseOutlines", "UseThumbs", "FullScreen"].indexOf(t2)) throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "' + t2 + '" is not recognized.'); 424 bt2 = t2; 425 }; 426 y2.__private__.getPageMode = function() { 427 return bt2; 428 }; 429 var Lt2 = y2.__private__.setLayoutMode = function(t2) { 430 if (-1 == [void 0, null, "continuous", "single", "twoleft", "tworight", "two"].indexOf(t2)) throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "' + t2 + '" is not recognized.'); 431 wt2 = t2; 432 }; 433 y2.__private__.getLayoutMode = function() { 434 return wt2; 435 }, y2.__private__.setDisplayMode = y2.setDisplayMode = function(t2, e2, r2) { 436 return yt2(t2), Lt2(e2), Nt2(r2), this; 437 }; 438 var xt2 = { title: "", subject: "", author: "", keywords: "", creator: "" }; 439 y2.__private__.getDocumentProperty = function(t2) { 440 if (-1 === Object.keys(xt2).indexOf(t2)) throw new Error("Invalid argument passed to jsPDF.getDocumentProperty"); 441 return xt2[t2]; 442 }, y2.__private__.getDocumentProperties = function() { 443 return xt2; 444 }, y2.__private__.setDocumentProperties = y2.setProperties = y2.setDocumentProperties = function(t2) { 445 for (var e2 in xt2) xt2.hasOwnProperty(e2) && t2[e2] && (xt2[e2] = t2[e2]); 446 return this; 447 }, y2.__private__.setDocumentProperty = function(t2, e2) { 448 if (-1 === Object.keys(xt2).indexOf(t2)) throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty"); 449 return xt2[t2] = e2; 450 }; 451 var At2, St2, _t2, Pt2, kt2, Ft2 = {}, It2 = {}, Ct2 = [], jt2 = {}, Ot2 = {}, Bt2 = {}, Mt2 = {}, qt2 = null, Et2 = 0, Rt2 = [], Dt2 = new j(y2), Tt2 = e.hotfixes || [], zt2 = {}, Ut2 = {}, Ht2 = [], Wt2 = function t2(e2, r2, n2, i2, a3, o2) { 452 if (!(this instanceof t2)) return new t2(e2, r2, n2, i2, a3, o2); 453 isNaN(e2) && (e2 = 1), isNaN(r2) && (r2 = 0), isNaN(n2) && (n2 = 0), isNaN(i2) && (i2 = 1), isNaN(a3) && (a3 = 0), isNaN(o2) && (o2 = 0), this._matrix = [e2, r2, n2, i2, a3, o2]; 454 }; 455 Object.defineProperty(Wt2.prototype, "sx", { get: function() { 456 return this._matrix[0]; 457 }, set: function(t2) { 458 this._matrix[0] = t2; 459 } }), Object.defineProperty(Wt2.prototype, "shy", { get: function() { 460 return this._matrix[1]; 461 }, set: function(t2) { 462 this._matrix[1] = t2; 463 } }), Object.defineProperty(Wt2.prototype, "shx", { get: function() { 464 return this._matrix[2]; 465 }, set: function(t2) { 466 this._matrix[2] = t2; 467 } }), Object.defineProperty(Wt2.prototype, "sy", { get: function() { 468 return this._matrix[3]; 469 }, set: function(t2) { 470 this._matrix[3] = t2; 471 } }), Object.defineProperty(Wt2.prototype, "tx", { get: function() { 472 return this._matrix[4]; 473 }, set: function(t2) { 474 this._matrix[4] = t2; 475 } }), Object.defineProperty(Wt2.prototype, "ty", { get: function() { 476 return this._matrix[5]; 477 }, set: function(t2) { 478 this._matrix[5] = t2; 479 } }), Object.defineProperty(Wt2.prototype, "a", { get: function() { 480 return this._matrix[0]; 481 }, set: function(t2) { 482 this._matrix[0] = t2; 483 } }), Object.defineProperty(Wt2.prototype, "b", { get: function() { 484 return this._matrix[1]; 485 }, set: function(t2) { 486 this._matrix[1] = t2; 487 } }), Object.defineProperty(Wt2.prototype, "c", { get: function() { 488 return this._matrix[2]; 489 }, set: function(t2) { 490 this._matrix[2] = t2; 491 } }), Object.defineProperty(Wt2.prototype, "d", { get: function() { 492 return this._matrix[3]; 493 }, set: function(t2) { 494 this._matrix[3] = t2; 495 } }), Object.defineProperty(Wt2.prototype, "e", { get: function() { 496 return this._matrix[4]; 497 }, set: function(t2) { 498 this._matrix[4] = t2; 499 } }), Object.defineProperty(Wt2.prototype, "f", { get: function() { 500 return this._matrix[5]; 501 }, set: function(t2) { 502 this._matrix[5] = t2; 503 } }), Object.defineProperty(Wt2.prototype, "rotation", { get: function() { 504 return Math.atan2(this.shx, this.sx); 505 } }), Object.defineProperty(Wt2.prototype, "scaleX", { get: function() { 506 return this.decompose().scale.sx; 507 } }), Object.defineProperty(Wt2.prototype, "scaleY", { get: function() { 508 return this.decompose().scale.sy; 509 } }), Object.defineProperty(Wt2.prototype, "isIdentity", { get: function() { 510 return 1 === this.sx && 0 === this.shy && 0 === this.shx && 1 === this.sy && 0 === this.tx && 0 === this.ty; 511 } }), Wt2.prototype.join = function(t2) { 512 return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(B2).join(t2); 513 }, Wt2.prototype.multiply = function(t2) { 514 var e2 = t2.sx * this.sx + t2.shy * this.shx, r2 = t2.sx * this.shy + t2.shy * this.sy, n2 = t2.shx * this.sx + t2.sy * this.shx, i2 = t2.shx * this.shy + t2.sy * this.sy, a3 = t2.tx * this.sx + t2.ty * this.shx + this.tx, o2 = t2.tx * this.shy + t2.ty * this.sy + this.ty; 515 return new Wt2(e2, r2, n2, i2, a3, o2); 516 }, Wt2.prototype.decompose = function() { 517 var t2 = this.sx, e2 = this.shy, r2 = this.shx, n2 = this.sy, i2 = this.tx, a3 = this.ty, o2 = Math.sqrt(t2 * t2 + e2 * e2), s3 = (t2 /= o2) * r2 + (e2 /= o2) * n2; 518 r2 -= t2 * s3, n2 -= e2 * s3; 519 var u3 = Math.sqrt(r2 * r2 + n2 * n2); 520 return s3 /= u3, t2 * (n2 /= u3) < e2 * (r2 /= u3) && (t2 = -t2, e2 = -e2, s3 = -s3, o2 = -o2), { scale: new Wt2(o2, 0, 0, u3, 0, 0), translate: new Wt2(1, 0, 0, 1, i2, a3), rotate: new Wt2(t2, e2, -e2, t2, 0, 0), skew: new Wt2(1, 0, s3, 1, 0, 0) }; 521 }, Wt2.prototype.toString = function(t2) { 522 return this.join(" "); 523 }, Wt2.prototype.inversed = function() { 524 var t2 = this.sx, e2 = this.shy, r2 = this.shx, n2 = this.sy, i2 = this.tx, a3 = this.ty, o2 = 1 / (t2 * n2 - e2 * r2), s3 = n2 * o2, u3 = -e2 * o2, c3 = -r2 * o2, l2 = t2 * o2; 525 return new Wt2(s3, u3, c3, l2, -s3 * i2 - c3 * a3, -u3 * i2 - l2 * a3); 526 }, Wt2.prototype.applyToPoint = function(t2) { 527 var e2 = t2.x * this.sx + t2.y * this.shx + this.tx, r2 = t2.x * this.shy + t2.y * this.sy + this.ty; 528 return new mr(e2, r2); 529 }, Wt2.prototype.applyToRectangle = function(t2) { 530 var e2 = this.applyToPoint(t2), r2 = this.applyToPoint(new mr(t2.x + t2.w, t2.y + t2.h)); 531 return new vr(e2.x, e2.y, r2.x - e2.x, r2.y - e2.y); 532 }, Wt2.prototype.clone = function() { 533 var t2 = this.sx, e2 = this.shy, r2 = this.shx, n2 = this.sy, i2 = this.tx, a3 = this.ty; 534 return new Wt2(t2, e2, r2, n2, i2, a3); 535 }, y2.Matrix = Wt2; 536 var Vt2 = y2.matrixMult = function(t2, e2) { 537 return e2.multiply(t2); 538 }, Gt2 = new Wt2(1, 0, 0, 1, 0, 0); 539 y2.unitMatrix = y2.identityMatrix = Gt2; 540 var Yt2 = function(t2, e2) { 541 if (!Ot2[t2]) { 542 var r2 = (e2 instanceof M ? "Sh" : "P") + (Object.keys(jt2).length + 1).toString(10); 543 e2.id = r2, Ot2[t2] = r2, jt2[r2] = e2, Dt2.publish("addPattern", e2); 544 } 545 }; 546 y2.ShadingPattern = M, y2.TilingPattern = q, y2.addShadingPattern = function(t2, e2) { 547 return R2("addShadingPattern()"), Yt2(t2, e2), this; 548 }, y2.beginTilingPattern = function(t2) { 549 R2("beginTilingPattern()"), yr(t2.boundingBox[0], t2.boundingBox[1], t2.boundingBox[2] - t2.boundingBox[0], t2.boundingBox[3] - t2.boundingBox[1], t2.matrix); 550 }, y2.endTilingPattern = function(t2, e2) { 551 R2("endTilingPattern()"), e2.stream = ot2[$2].join("\n"), Yt2(t2, e2), Dt2.publish("endTilingPattern", e2), Ht2.pop().restore(); 552 }; 553 var Jt2, Xt2 = y2.__private__.newObject = function() { 554 var t2 = Kt2(); 555 return Zt2(t2, true), t2; 556 }, Kt2 = y2.__private__.newObjectDeferred = function() { 557 return et2++, rt2[et2] = function() { 558 return it2; 559 }, et2; 560 }, Zt2 = function(t2, e2) { 561 return e2 = "boolean" == typeof e2 && e2, rt2[t2] = it2, e2 && lt2(t2 + " 0 obj"), t2; 562 }, $t2 = y2.__private__.newAdditionalObject = function() { 563 var t2 = { objId: Kt2(), content: "" }; 564 return at2.push(t2), t2; 565 }, Qt2 = Kt2(), te2 = Kt2(), ee2 = y2.__private__.decodeColorString = function(t2) { 566 var e2 = t2.split(" "); 567 if (2 !== e2.length || "g" !== e2[1] && "G" !== e2[1]) 5 !== e2.length || "k" !== e2[4] && "K" !== e2[4] || (e2 = [(1 - e2[0]) * (1 - e2[3]), (1 - e2[1]) * (1 - e2[3]), (1 - e2[2]) * (1 - e2[3]), "r"]); 568 else { 569 var r2 = parseFloat(e2[0]); 570 e2 = [r2, r2, r2, "r"]; 571 } 572 for (var n2 = "#", i2 = 0; i2 < 3; i2++) n2 += ("0" + Math.floor(255 * parseFloat(e2[i2])).toString(16)).slice(-2); 573 return n2; 574 }, re2 = y2.__private__.encodeColorString = function(e2) { 575 var r2; 576 "string" == typeof e2 && (e2 = { ch1: e2 }); 577 var n2 = e2.ch1, i2 = e2.ch2, a3 = e2.ch3, o2 = e2.ch4, s3 = "draw" === e2.pdfColorType ? ["G", "RG", "K"] : ["g", "rg", "k"]; 578 if ("string" == typeof n2 && "#" !== n2.charAt(0)) { 579 var u3 = new h(n2); 580 if (u3.ok) n2 = u3.toHex(); 581 else if (!/^\d*\.?\d*$/.test(n2)) throw new Error('Invalid color "' + n2 + '" passed to jsPDF.encodeColorString.'); 582 } 583 if ("string" == typeof n2 && /^#[0-9A-Fa-f]{3}$/.test(n2) && (n2 = "#" + n2[1] + n2[1] + n2[2] + n2[2] + n2[3] + n2[3]), "string" == typeof n2 && /^#[0-9A-Fa-f]{6}$/.test(n2)) { 584 var c3 = parseInt(n2.substr(1), 16); 585 n2 = c3 >> 16 & 255, i2 = c3 >> 8 & 255, a3 = 255 & c3; 586 } 587 if (void 0 === i2 || void 0 === o2 && n2 === i2 && i2 === a3) r2 = "string" == typeof n2 ? n2 + " " + s3[0] : 2 === e2.precision ? T2(n2 / 255) + " " + s3[0] : z2(n2 / 255) + " " + s3[0]; 588 else if (void 0 === o2 || "object" === _typeof(o2)) { 589 if (o2 && !isNaN(o2.a) && 0 === o2.a) return ["1.", "1.", "1.", s3[1]].join(" "); 590 r2 = "string" == typeof n2 ? [n2, i2, a3, s3[1]].join(" ") : 2 === e2.precision ? [T2(n2 / 255), T2(i2 / 255), T2(a3 / 255), s3[1]].join(" ") : [z2(n2 / 255), z2(i2 / 255), z2(a3 / 255), s3[1]].join(" "); 591 } else r2 = "string" == typeof n2 ? [n2, i2, a3, o2, s3[2]].join(" ") : 2 === e2.precision ? [T2(n2), T2(i2), T2(a3), T2(o2), s3[2]].join(" ") : [z2(n2), z2(i2), z2(a3), z2(o2), s3[2]].join(" "); 592 return r2; 593 }, ne2 = y2.__private__.getFilters = function() { 594 return c2; 595 }, ie2 = y2.__private__.putStream = function(t2) { 596 var e2 = (t2 = t2 || {}).data || "", r2 = t2.filters || ne2(), n2 = t2.alreadyAppliedFilters || [], i2 = t2.addLength1 || false, a3 = e2.length, o2 = t2.objectId, s3 = function(t3) { 597 return t3; 598 }; 599 if (null !== m2 && void 0 === o2) throw new Error("ObjectId must be passed to putStream for file encryption"); 600 null !== m2 && (s3 = Oe.encryptor(o2, 0)); 601 var u3 = {}; 602 true === r2 && (r2 = ["FlateEncode"]); 603 var c3 = t2.additionalKeyValues || [], l2 = (u3 = void 0 !== E.API.processDataByFilters ? E.API.processDataByFilters(e2, r2) : { data: e2, reverseChain: [] }).reverseChain + (Array.isArray(n2) ? n2.join(" ") : n2.toString()); 604 if (0 !== u3.data.length && (c3.push({ key: "Length", value: u3.data.length }), true === i2 && c3.push({ key: "Length1", value: a3 })), 0 != l2.length) if (l2.split("/").length - 1 == 1) c3.push({ key: "Filter", value: l2 }); 605 else { 606 c3.push({ key: "Filter", value: "[" + l2 + "]" }); 607 for (var h2 = 0; h2 < c3.length; h2 += 1) if ("DecodeParms" === c3[h2].key) { 608 for (var f3 = [], d2 = 0; d2 < u3.reverseChain.split("/").length - 1; d2 += 1) f3.push("null"); 609 f3.push(c3[h2].value), c3[h2].value = "[" + f3.join(" ") + "]"; 610 } 611 } 612 lt2("<<"); 613 for (var p3 = 0; p3 < c3.length; p3++) lt2("/" + c3[p3].key + " " + c3[p3].value); 614 lt2(">>"), 0 !== u3.data.length && (lt2("stream"), lt2(s3(u3.data)), lt2("endstream")); 615 }, ae2 = y2.__private__.putPage = function(t2) { 616 var e2 = t2.number, r2 = t2.data, n2 = t2.objId, i2 = t2.contentsObjId; 617 Zt2(n2, true), lt2("<</Type /Page"), lt2("/Parent " + t2.rootDictionaryObjId + " 0 R"), lt2("/Resources " + t2.resourceDictionaryObjId + " 0 R"), lt2("/MediaBox [" + parseFloat(B2(t2.mediaBox.bottomLeftX)) + " " + parseFloat(B2(t2.mediaBox.bottomLeftY)) + " " + B2(t2.mediaBox.topRightX) + " " + B2(t2.mediaBox.topRightY) + "]"), null !== t2.cropBox && lt2("/CropBox [" + B2(t2.cropBox.bottomLeftX) + " " + B2(t2.cropBox.bottomLeftY) + " " + B2(t2.cropBox.topRightX) + " " + B2(t2.cropBox.topRightY) + "]"), null !== t2.bleedBox && lt2("/BleedBox [" + B2(t2.bleedBox.bottomLeftX) + " " + B2(t2.bleedBox.bottomLeftY) + " " + B2(t2.bleedBox.topRightX) + " " + B2(t2.bleedBox.topRightY) + "]"), null !== t2.trimBox && lt2("/TrimBox [" + B2(t2.trimBox.bottomLeftX) + " " + B2(t2.trimBox.bottomLeftY) + " " + B2(t2.trimBox.topRightX) + " " + B2(t2.trimBox.topRightY) + "]"), null !== t2.artBox && lt2("/ArtBox [" + B2(t2.artBox.bottomLeftX) + " " + B2(t2.artBox.bottomLeftY) + " " + B2(t2.artBox.topRightX) + " " + B2(t2.artBox.topRightY) + "]"), "number" == typeof t2.userUnit && 1 !== t2.userUnit && lt2("/UserUnit " + t2.userUnit), Dt2.publish("putPage", { objId: n2, pageContext: Rt2[e2], pageNumber: e2, page: r2 }), lt2("/Contents " + i2 + " 0 R"), lt2(">>"), lt2("endobj"); 618 var a3 = r2.join("\n"); 619 return _2 === S2 && (a3 += "\nQ"), Zt2(i2, true), ie2({ data: a3, filters: ne2(), objectId: i2 }), lt2("endobj"), n2; 620 }, oe2 = y2.__private__.putPages = function() { 621 var t2, e2, r2 = []; 622 for (t2 = 1; t2 <= Et2; t2++) Rt2[t2].objId = Kt2(), Rt2[t2].contentsObjId = Kt2(); 623 for (t2 = 1; t2 <= Et2; t2++) r2.push(ae2({ number: t2, data: ot2[t2], objId: Rt2[t2].objId, contentsObjId: Rt2[t2].contentsObjId, mediaBox: Rt2[t2].mediaBox, cropBox: Rt2[t2].cropBox, bleedBox: Rt2[t2].bleedBox, trimBox: Rt2[t2].trimBox, artBox: Rt2[t2].artBox, userUnit: Rt2[t2].userUnit, rootDictionaryObjId: Qt2, resourceDictionaryObjId: te2 })); 624 Zt2(Qt2, true), lt2("<</Type /Pages"); 625 var n2 = "/Kids ["; 626 for (e2 = 0; e2 < Et2; e2++) n2 += r2[e2] + " 0 R "; 627 lt2(n2 + "]"), lt2("/Count " + Et2), lt2(">>"), lt2("endobj"), Dt2.publish("postPutPages"); 628 }, se2 = function(t2) { 629 Dt2.publish("putFont", { font: t2, out: lt2, newObject: Xt2, putStream: ie2 }), true !== t2.isAlreadyPutted && (t2.objectNumber = Xt2(), lt2("<<"), lt2("/Type /Font"), lt2("/BaseFont /" + C(t2.postScriptName)), lt2("/Subtype /Type1"), "string" == typeof t2.encoding && lt2("/Encoding /" + t2.encoding), lt2("/FirstChar 32"), lt2("/LastChar 255"), lt2(">>"), lt2("endobj")); 630 }, ue2 = function(t2) { 631 t2.objectNumber = Xt2(); 632 var e2 = []; 633 e2.push({ key: "Type", value: "/XObject" }), e2.push({ key: "Subtype", value: "/Form" }), e2.push({ key: "BBox", value: "[" + [B2(t2.x), B2(t2.y), B2(t2.x + t2.width), B2(t2.y + t2.height)].join(" ") + "]" }), e2.push({ key: "Matrix", value: "[" + t2.matrix.toString() + "]" }); 634 var r2 = t2.pages[1].join("\n"); 635 ie2({ data: r2, additionalKeyValues: e2, objectId: t2.objectNumber }), lt2("endobj"); 636 }, ce2 = function(t2, e2) { 637 e2 || (e2 = 21); 638 var r2 = Xt2(), n2 = function(t3, e3) { 639 var r3, n3 = [], i3 = 1 / (e3 - 1); 640 for (r3 = 0; r3 < 1; r3 += i3) n3.push(r3); 641 if (n3.push(1), 0 != t3[0].offset) { 642 var a4 = { offset: 0, color: t3[0].color }; 643 t3.unshift(a4); 644 } 645 if (1 != t3[t3.length - 1].offset) { 646 var o2 = { offset: 1, color: t3[t3.length - 1].color }; 647 t3.push(o2); 648 } 649 for (var s3 = "", u3 = 0, c3 = 0; c3 < n3.length; c3++) { 650 for (r3 = n3[c3]; r3 > t3[u3 + 1].offset; ) u3++; 651 var l2 = t3[u3].offset, h2 = (r3 - l2) / (t3[u3 + 1].offset - l2), f3 = t3[u3].color, d2 = t3[u3 + 1].color; 652 s3 += tt2(Math.round((1 - h2) * f3[0] + h2 * d2[0]).toString(16)) + tt2(Math.round((1 - h2) * f3[1] + h2 * d2[1]).toString(16)) + tt2(Math.round((1 - h2) * f3[2] + h2 * d2[2]).toString(16)); 653 } 654 return s3.trim(); 655 }(t2.colors, e2), i2 = []; 656 i2.push({ key: "FunctionType", value: "0" }), i2.push({ key: "Domain", value: "[0.0 1.0]" }), i2.push({ key: "Size", value: "[" + e2 + "]" }), i2.push({ key: "BitsPerSample", value: "8" }), i2.push({ key: "Range", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), i2.push({ key: "Decode", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), ie2({ data: n2, additionalKeyValues: i2, alreadyAppliedFilters: ["/ASCIIHexDecode"], objectId: r2 }), lt2("endobj"), t2.objectNumber = Xt2(), lt2("<< /ShadingType " + t2.type), lt2("/ColorSpace /DeviceRGB"); 657 var a3 = "/Coords [" + B2(parseFloat(t2.coords[0])) + " " + B2(parseFloat(t2.coords[1])) + " "; 658 2 === t2.type ? a3 += B2(parseFloat(t2.coords[2])) + " " + B2(parseFloat(t2.coords[3])) : a3 += B2(parseFloat(t2.coords[2])) + " " + B2(parseFloat(t2.coords[3])) + " " + B2(parseFloat(t2.coords[4])) + " " + B2(parseFloat(t2.coords[5])), lt2(a3 += "]"), t2.matrix && lt2("/Matrix [" + t2.matrix.toString() + "]"), lt2("/Function " + r2 + " 0 R"), lt2("/Extend [true true]"), lt2(">>"), lt2("endobj"); 659 }, le2 = function(t2, e2) { 660 var r2 = Kt2(), n2 = Xt2(); 661 e2.push({ resourcesOid: r2, objectOid: n2 }), t2.objectNumber = n2; 662 var i2 = []; 663 i2.push({ key: "Type", value: "/Pattern" }), i2.push({ key: "PatternType", value: "1" }), i2.push({ key: "PaintType", value: "1" }), i2.push({ key: "TilingType", value: "1" }), i2.push({ key: "BBox", value: "[" + t2.boundingBox.map(B2).join(" ") + "]" }), i2.push({ key: "XStep", value: B2(t2.xStep) }), i2.push({ key: "YStep", value: B2(t2.yStep) }), i2.push({ key: "Resources", value: r2 + " 0 R" }), t2.matrix && i2.push({ key: "Matrix", value: "[" + t2.matrix.toString() + "]" }), ie2({ data: t2.stream, additionalKeyValues: i2, objectId: t2.objectNumber }), lt2("endobj"); 664 }, he2 = function(t2) { 665 for (var e2 in t2.objectNumber = Xt2(), lt2("<<"), t2) switch (e2) { 666 case "opacity": 667 lt2("/ca " + T2(t2[e2])); 668 break; 669 case "stroke-opacity": 670 lt2("/CA " + T2(t2[e2])); 671 } 672 lt2(">>"), lt2("endobj"); 673 }, fe2 = function(t2) { 674 Zt2(t2.resourcesOid, true), lt2("<<"), lt2("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"), function() { 675 for (var t3 in lt2("/Font <<"), Ft2) Ft2.hasOwnProperty(t3) && (false === v2 || true === v2 && b2.hasOwnProperty(t3)) && lt2("/" + t3 + " " + Ft2[t3].objectNumber + " 0 R"); 676 lt2(">>"); 677 }(), function() { 678 if (Object.keys(jt2).length > 0) { 679 for (var t3 in lt2("/Shading <<"), jt2) jt2.hasOwnProperty(t3) && jt2[t3] instanceof M && jt2[t3].objectNumber >= 0 && lt2("/" + t3 + " " + jt2[t3].objectNumber + " 0 R"); 680 Dt2.publish("putShadingPatternDict"), lt2(">>"); 681 } 682 }(), function(t3) { 683 if (Object.keys(jt2).length > 0) { 684 for (var e2 in lt2("/Pattern <<"), jt2) jt2.hasOwnProperty(e2) && jt2[e2] instanceof y2.TilingPattern && jt2[e2].objectNumber >= 0 && jt2[e2].objectNumber < t3 && lt2("/" + e2 + " " + jt2[e2].objectNumber + " 0 R"); 685 Dt2.publish("putTilingPatternDict"), lt2(">>"); 686 } 687 }(t2.objectOid), function() { 688 if (Object.keys(Bt2).length > 0) { 689 var t3; 690 for (t3 in lt2("/ExtGState <<"), Bt2) Bt2.hasOwnProperty(t3) && Bt2[t3].objectNumber >= 0 && lt2("/" + t3 + " " + Bt2[t3].objectNumber + " 0 R"); 691 Dt2.publish("putGStateDict"), lt2(">>"); 692 } 693 }(), function() { 694 for (var t3 in lt2("/XObject <<"), zt2) zt2.hasOwnProperty(t3) && zt2[t3].objectNumber >= 0 && lt2("/" + t3 + " " + zt2[t3].objectNumber + " 0 R"); 695 Dt2.publish("putXobjectDict"), lt2(">>"); 696 }(), lt2(">>"), lt2("endobj"); 697 }, de2 = function(t2) { 698 It2[t2.fontName] = It2[t2.fontName] || {}, It2[t2.fontName][t2.fontStyle] = t2.id; 699 }, pe2 = function(t2, e2, r2, n2, i2) { 700 var a3 = { id: "F" + (Object.keys(Ft2).length + 1).toString(10), postScriptName: t2, fontName: e2, fontStyle: r2, encoding: n2, isStandardFont: i2 || false, metadata: {} }; 701 return Dt2.publish("addFont", { font: a3, instance: this }), Ft2[a3.id] = a3, de2(a3), a3.id; 702 }, ge2 = y2.__private__.pdfEscape = y2.pdfEscape = function(t2, e2) { 703 return function(t3, e3) { 704 var r2, n2, i2, a3, o2, s3, u3, c3, l2; 705 if (i2 = (e3 = e3 || {}).sourceEncoding || "Unicode", o2 = e3.outputEncoding, (e3.autoencode || o2) && Ft2[At2].metadata && Ft2[At2].metadata[i2] && Ft2[At2].metadata[i2].encoding && (a3 = Ft2[At2].metadata[i2].encoding, !o2 && Ft2[At2].encoding && (o2 = Ft2[At2].encoding), !o2 && a3.codePages && (o2 = a3.codePages[0]), "string" == typeof o2 && (o2 = a3[o2]), o2)) { 706 for (u3 = false, s3 = [], r2 = 0, n2 = t3.length; r2 < n2; r2++) (c3 = o2[t3.charCodeAt(r2)]) ? s3.push(String.fromCharCode(c3)) : s3.push(t3[r2]), s3[r2].charCodeAt(0) >> 8 && (u3 = true); 707 t3 = s3.join(""); 708 } 709 for (r2 = t3.length; void 0 === u3 && 0 !== r2; ) t3.charCodeAt(r2 - 1) >> 8 && (u3 = true), r2--; 710 if (!u3) return t3; 711 for (s3 = e3.noBOM ? [] : [254, 255], r2 = 0, n2 = t3.length; r2 < n2; r2++) { 712 if ((l2 = (c3 = t3.charCodeAt(r2)) >> 8) >> 8) throw new Error("Character at position " + r2 + " of string '" + t3 + "' exceeds 16bits. Cannot be encoded into UCS-2 BE"); 713 s3.push(l2), s3.push(c3 - (l2 << 8)); 714 } 715 return String.fromCharCode.apply(void 0, s3); 716 }(t2, e2).replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)"); 717 }, me2 = y2.__private__.beginPage = function(t2) { 718 ot2[++Et2] = [], Rt2[Et2] = { objId: 0, contentsObjId: 0, userUnit: Number(f2), artBox: null, bleedBox: null, cropBox: null, trimBox: null, mediaBox: { bottomLeftX: 0, bottomLeftY: 0, topRightX: Number(t2[0]), topRightY: Number(t2[1]) } }, ye2(Et2), ct2(ot2[$2]); 719 }, ve2 = function(t2, e2) { 720 var r2, i2, a3; 721 switch (n = e2 || n, "string" == typeof t2 && (r2 = x2(t2.toLowerCase()), Array.isArray(r2) && (i2 = r2[0], a3 = r2[1])), Array.isArray(t2) && (i2 = t2[0] * St2, a3 = t2[1] * St2), isNaN(i2) && (i2 = s2[0], a3 = s2[1]), (i2 > 14400 || a3 > 14400) && (o.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"), i2 = Math.min(14400, i2), a3 = Math.min(14400, a3)), s2 = [i2, a3], n.substr(0, 1)) { 722 case "l": 723 a3 > i2 && (s2 = [a3, i2]); 724 break; 725 case "p": 726 i2 > a3 && (s2 = [a3, i2]); 727 } 728 me2(s2), Qe(Ze), lt2(sr), 0 !== dr && lt2(dr + " J"), 0 !== pr && lt2(pr + " j"), Dt2.publish("addPage", { pageNumber: Et2 }); 729 }, be2 = function(t2) { 730 t2 > 0 && t2 <= Et2 && (ot2.splice(t2, 1), Rt2.splice(t2, 1), Et2--, $2 > Et2 && ($2 = Et2), this.setPage($2)); 731 }, ye2 = function(t2) { 732 t2 > 0 && t2 <= Et2 && ($2 = t2); 733 }, we2 = y2.__private__.getNumberOfPages = y2.getNumberOfPages = function() { 734 return ot2.length - 1; 735 }, Ne2 = function(t2, e2, r2) { 736 var n2, i2 = void 0; 737 return r2 = r2 || {}, t2 = void 0 !== t2 ? t2 : Ft2[At2].fontName, e2 = void 0 !== e2 ? e2 : Ft2[At2].fontStyle, n2 = t2.toLowerCase(), void 0 !== It2[n2] && void 0 !== It2[n2][e2] ? i2 = It2[n2][e2] : void 0 !== It2[t2] && void 0 !== It2[t2][e2] ? i2 = It2[t2][e2] : false === r2.disableWarning && o.warn("Unable to look up font label for font '" + t2 + "', '" + e2 + "'. Refer to getFontList(
vendor: 9,184 bytes, lines 737-924
737) for available fonts."), i2 || r2.noFallback || null == (i2 = It2.times[e2]) && (i2 = It2.times.normal), i2; 738 }, Le2 = y2.__private__.putInfo = function() { 739 var t2 = Xt2(), e2 = function(t3) { 740 return t3; 741 }; 742 for (var r2 in null !== m2 && (e2 = Oe.encryptor(t2, 0)), lt2("<<"), lt2("/Producer (" + ge2(e2("jsPDF " + E.version)) + ")"), xt2) xt2.hasOwnProperty(r2) && xt2[r2] && lt2("/" + r2.substr(0, 1).toUpperCase() + r2.substr(1) + " (" + ge2(e2(xt2[r2])) + ")"); 743 lt2("/CreationDate (" + ge2(e2(W2)) + ")"), lt2(">>"), lt2("endobj"); 744 }, xe2 = y2.__private__.putCatalog = function(t2) { 745 var e2 = (t2 = t2 || {}).rootDictionaryObjId || Qt2; 746 switch (Xt2(), lt2("<<"), lt2("/Type /Catalog"), lt2("/Pages " + e2 + " 0 R"), gt2 || (gt2 = "fullwidth"), gt2) { 747 case "fullwidth": 748 lt2("/OpenAction [3 0 R /FitH null]"); 749 break; 750 case "fullheight": 751 lt2("/OpenAction [3 0 R /FitV null]"); 752 break; 753 case "fullpage": 754 lt2("/OpenAction [3 0 R /Fit]"); 755 break; 756 case "original": 757 lt2("/OpenAction [3 0 R /XYZ null null 1]"); 758 break; 759 default: 760 var r2 = "" + gt2; 761 "%" === r2.substr(r2.length - 1) && (gt2 = parseInt(gt2) / 100), "number" == typeof gt2 && lt2("/OpenAction [3 0 R /XYZ null null " + T2(gt2) + "]"); 762 } 763 switch (wt2 || (wt2 = "continuous"), wt2) { 764 case "continuous": 765 lt2("/PageLayout /OneColumn"); 766 break; 767 case "single": 768 lt2("/PageLayout /SinglePage"); 769 break; 770 case "two": 771 case "twoleft": 772 lt2("/PageLayout /TwoColumnLeft"); 773 break; 774 case "tworight": 775 lt2("/PageLayout /TwoColumnRight"); 776 } 777 bt2 && lt2("/PageMode /" + bt2), Dt2.publish("putCatalog"), lt2(">>"), lt2("endobj"); 778 }, Ae2 = y2.__private__.putTrailer = function() { 779 lt2("trailer"), lt2("<<"), lt2("/Size " + (et2 + 1)), lt2("/Root " + et2 + " 0 R"), lt2("/Info " + (et2 - 1) + " 0 R"), null !== m2 && lt2("/Encrypt " + Oe.oid + " 0 R"), lt2("/ID [ <" + V2 + "> <" + V2 + "> ]"), lt2(">>"); 780 }, Se2 = y2.__private__.putHeader = function() { 781 lt2("%PDF-" + w2), lt2("%ºÃˆ "); 782 }, _e2 = y2.__private__.putXRef = function() { 783 var t2 = "0000000000"; 784 lt2("xref"), lt2("0 " + (et2 + 1)), lt2("0000000000 65535 f "); 785 for (var e2 = 1; e2 <= et2; e2++) "function" == typeof rt2[e2] ? lt2((t2 + rt2[e2]()).slice(-10) + " 00000 n ") : void 0 !== rt2[e2] ? lt2((t2 + rt2[e2]).slice(-10) + " 00000 n ") : lt2("0000000000 00000 n "); 786 }, Pe2 = y2.__private__.buildDocument = function() { 787 var t2; 788 et2 = 0, it2 = 0, nt2 = [], rt2 = [], at2 = [], Qt2 = Kt2(), te2 = Kt2(), ct2(nt2), Dt2.publish("buildDocument"), Se2(), oe2(), function() { 789 Dt2.publish("putAdditionalObjects"); 790 for (var t3 = 0; t3 < at2.length; t3++) { 791 var e3 = at2[t3]; 792 Zt2(e3.objId, true), lt2(e3.content), lt2("endobj"); 793 } 794 Dt2.publish("postPutAdditionalObjects"); 795 }(), t2 = [], function() { 796 for (var t3 in Ft2) Ft2.hasOwnProperty(t3) && (false === v2 || true === v2 && b2.hasOwnProperty(t3)) && se2(Ft2[t3]); 797 }(), function() { 798 var t3; 799 for (t3 in Bt2) Bt2.hasOwnProperty(t3) && he2(Bt2[t3]); 800 }(), function() { 801 for (var t3 in zt2) zt2.hasOwnProperty(t3) && ue2(zt2[t3]); 802 }(), function(t3) { 803 var e3; 804 for (e3 in jt2) jt2.hasOwnProperty(e3) && (jt2[e3] instanceof M ? ce2(jt2[e3]) : jt2[e3] instanceof q && le2(jt2[e3], t3)); 805 }(t2), Dt2.publish("putResources"), t2.forEach(fe2), fe2({ resourcesOid: te2, objectOid: Number.MAX_SAFE_INTEGER }), Dt2.publish("postPutResources"), null !== m2 && (Oe.oid = Xt2(), lt2("<<"), lt2("/Filter /Standard"), lt2("/V " + Oe.v), lt2("/R " + Oe.r), lt2("/U <" + Oe.toHexString(Oe.U) + ">"), lt2("/O <" + Oe.toHexString(Oe.O) + ">"), lt2("/P " + Oe.P), lt2(">>"), lt2("endobj")), Le2(), xe2(); 806 var e2 = it2; 807 return _e2(), Ae2(), lt2("startxref"), lt2("" + e2), lt2("%%EOF"), ct2(ot2[$2]), nt2.join("\n"); 808 }, ke2 = y2.__private__.getBlob = function(t2) { 809 return new Blob([ft2(t2)], { type: "application/pdf" }); 810 }, Fe2 = function(t2) { 811 for (; t2.firstChild; ) t2.removeChild(t2.firstChild); 812 }, Ie2 = function(t2) { 813 var e2, r2 = t2.document, n2 = r2.documentElement, i2 = r2.head, a3 = r2.body; 814 return i2 || (i2 = r2.createElement("head"), n2.appendChild(i2)), a3 || (a3 = r2.createElement("body"), n2.appendChild(a3)), Fe2(i2), Fe2(a3), (e2 = r2.createElement("style")).appendChild(r2.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")), i2.appendChild(e2), { document: r2, body: a3 }; 815 }, Ce2 = y2.output = y2.__private__.output = (Jt2 = function(t2, e2) { 816 switch ("string" == typeof (e2 = e2 || {}) ? e2 = { filename: e2 } : e2.filename = e2.filename || "generated.pdf", t2) { 817 case void 0: 818 return Pe2(); 819 case "save": 820 y2.save(e2.filename); 821 break; 822 case "arraybuffer": 823 return ft2(Pe2()); 824 case "blob": 825 return ke2(Pe2()); 826 case "bloburi": 827 case "bloburl": 828 if (void 0 !== i.URL && "function" == typeof i.URL.createObjectURL) return i.URL && i.URL.createObjectURL(ke2(Pe2())) || void 0; 829 o.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser."); 830 break; 831 case "datauristring": 832 case "dataurlstring": 833 var r2 = "", n2 = Pe2(); 834 try { 835 r2 = d(n2); 836 } catch (L3) { 837 r2 = d(unescape(encodeURIComponent(n2))); 838 } 839 return "data:application/pdf;filename=" + encodeURIComponent(e2.filename) + ";base64," + r2; 840 case "pdfobjectnewwindow": 841 if ("[object Window]" === Object.prototype.toString.call(i)) { 842 var a3 = "https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js", s3 = !e2.pdfObjectUrl; 843 s3 || (a3 = e2.pdfObjectUrl); 844 var u3 = i.open(); 845 if (null !== u3) { 846 var c3 = Ie2(u3), l2 = c3.document.createElement("script"), h2 = this; 847 l2.src = a3, s3 && (l2.integrity = "sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==", l2.crossOrigin = "anonymous"), l2.onload = function() { 848 u3.PDFObject.embed(h2.output("dataurlstring"), e2); 849 }, c3.body.appendChild(l2); 850 } 851 return u3; 852 } 853 throw new Error("The option pdfobjectnewwindow just works in a browser-environment."); 854 case "pdfjsnewwindow": 855 if ("[object Window]" === Object.prototype.toString.call(i)) { 856 var f3 = e2.pdfJsUrl || "examples/PDF.js/web/viewer.html", p3 = i.open(); 857 if (null !== p3) { 858 var g3 = Ie2(p3), m3 = g3.document.createElement("iframe"), v3 = -1 === f3.indexOf("?") ? "?" : "&"; 859 h2 = this, m3.id = "pdfViewer", m3.width = "500px", m3.height = "400px", m3.src = f3 + v3 + "file=&downloadName=" + encodeURIComponent(e2.filename), m3.onload = function() { 860 p3.document.title = e2.filename, m3.contentWindow.PDFViewerApplication.open(h2.output("bloburl")); 861 }, g3.body.appendChild(m3); 862 } 863 return p3; 864 } 865 throw new Error("The option pdfjsnewwindow just works in a browser-environment."); 866 case "dataurlnewwindow": 867 if ("[object Window]" !== Object.prototype.toString.call(i)) throw new Error("The option dataurlnewwindow just works in a browser-environment."); 868 var b3 = i.open(); 869 if (null !== b3) { 870 var w3 = Ie2(b3), N3 = w3.document.createElement("iframe"); 871 N3.src = this.output("datauristring", e2), w3.body.appendChild(N3), b3.document.title = e2.filename; 872 } 873 if (b3 || "undefined" == typeof safari) return b3; 874 break; 875 case "datauri": 876 case "dataurl": 877 return i.document.location.href = this.output("datauristring", e2); 878 default: 879 return null; 880 } 881 }, Jt2.foo = function() { 882 try { 883 return Jt2.apply(this, arguments); 884 } catch (r2) { 885 var t2 = r2.stack || ""; 886 ~t2.indexOf(" at ") && (t2 = t2.split(" at ")[1]); 887 var e2 = "Error in function " + t2.split("\n")[0].split("<")[0] + ": " + r2.message; 888 if (!i.console) throw new Error(e2); 889 i.console.error(e2, r2), i.alert && alert(e2); 890 } 891 }, Jt2.foo.bar = Jt2, Jt2.foo), je = function(t2) { 892 return true === Array.isArray(Tt2) && Tt2.indexOf(t2) > -1; 893 }; 894 switch (a2) { 895 case "pt": 896 St2 = 1; 897 break; 898 case "mm": 899 St2 = 72 / 25.4; 900 break; 901 case "cm": 902 St2 = 72 / 2.54; 903 break; 904 case "in": 905 St2 = 72; 906 break; 907 case "px": 908 St2 = 1 == je("px_scaling") ? 0.75 : 96 / 72; 909 break; 910 case "pc": 911 case "em": 912 St2 = 12; 913 break; 914 case "ex": 915 St2 = 6; 916 break; 917 default: 918 if ("number" != typeof a2) throw new Error("Invalid unit: " + a2); 919 St2 = a2; 920 } 921 var Oe = null; 922 K2(), Y2(); 923 var Be = y2.__private__.getPageInfo = y2.getPageInfo = function(t2) { 924 if (isNaN(t2) || t2 % 1 != 0) throw new Error("Invalid argument passed to
vendor: 20,238 bytes, lines 924-1308
924jsPDF.getPageInfo"); 925 return { objId: Rt2[t2].objId, pageNumber: t2, pageContext: Rt2[t2] }; 926 }, Me = y2.__private__.getPageInfoByObjId = function(t2) { 927 if (isNaN(t2) || t2 % 1 != 0) throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId"); 928 for (var e2 in Rt2) if (Rt2[e2].objId === t2) break; 929 return Be(e2); 930 }, qe = y2.__private__.getCurrentPageInfo = y2.getCurrentPageInfo = function() { 931 return { objId: Rt2[$2].objId, pageNumber: $2, pageContext: Rt2[$2] }; 932 }; 933 y2.addPage = function() { 934 return ve2.apply(this, arguments), this; 935 }, y2.setPage = function() { 936 return ye2.apply(this, arguments), ct2.call(this, ot2[$2]), this; 937 }, y2.insertPage = function(t2) { 938 return this.addPage(), this.movePage($2, t2), this; 939 }, y2.movePage = function(t2, e2) { 940 var r2, n2; 941 if (t2 > e2) { 942 r2 = ot2[t2], n2 = Rt2[t2]; 943 for (var i2 = t2; i2 > e2; i2--) ot2[i2] = ot2[i2 - 1], Rt2[i2] = Rt2[i2 - 1]; 944 ot2[e2] = r2, Rt2[e2] = n2, this.setPage(e2); 945 } else if (t2 < e2) { 946 r2 = ot2[t2], n2 = Rt2[t2]; 947 for (var a3 = t2; a3 < e2; a3++) ot2[a3] = ot2[a3 + 1], Rt2[a3] = Rt2[a3 + 1]; 948 ot2[e2] = r2, Rt2[e2] = n2, this.setPage(e2); 949 } 950 return this; 951 }, y2.deletePage = function() { 952 return be2.apply(this, arguments), this; 953 }, y2.__private__.text = y2.text = function(e2, r2, n2, i2, a3) { 954 var o2, s3, u3, c3, l2, h2, f3, d2, p3, g3 = (i2 = i2 || {}).scope || this; 955 if ("number" == typeof e2 && "number" == typeof r2 && ("string" == typeof n2 || Array.isArray(n2))) { 956 var m3 = n2; 957 n2 = r2, r2 = e2, e2 = m3; 958 } 959 if (arguments[3] instanceof Wt2 == 0 ? (u3 = arguments[4], c3 = arguments[5], "object" === _typeof(f3 = arguments[3]) && null !== f3 || ("string" == typeof u3 && (c3 = u3, u3 = null), "string" == typeof f3 && (c3 = f3, f3 = null), "number" == typeof f3 && (u3 = f3, f3 = null), i2 = { flags: f3, angle: u3, align: c3 })) : (R2("The transform parameter of text() with a Matrix value"), p3 = a3), isNaN(r2) || isNaN(n2) || null == e2) throw new Error("Invalid arguments passed to jsPDF.text"); 960 if (0 === e2.length) return g3; 961 var v3, y3 = "", w3 = "number" == typeof i2.lineHeightFactor ? i2.lineHeightFactor : Ke, N3 = g3.internal.scaleFactor; 962 function L3(t2) { 963 return t2 = t2.split(" ").join(Array(i2.TabLen || 9).join(" ")), ge2(t2, f3); 964 } 965 function x3(t2) { 966 for (var e3, r3 = t2.concat(), n3 = [], i3 = r3.length; i3--; ) "string" == typeof (e3 = r3.shift()) ? n3.push(e3) : Array.isArray(t2) && (1 === e3.length || void 0 === e3[1] && void 0 === e3[2]) ? n3.push(e3[0]) : n3.push([e3[0], e3[1], e3[2]]); 967 return n3; 968 } 969 function A3(t2, e3) { 970 var r3; 971 if ("string" == typeof t2) r3 = e3(t2)[0]; 972 else if (Array.isArray(t2)) { 973 for (var n3, i3, a4 = t2.concat(), o3 = [], s4 = a4.length; s4--; ) "string" == typeof (n3 = a4.shift()) ? o3.push(e3(n3)[0]) : Array.isArray(n3) && "string" == typeof n3[0] && (i3 = e3(n3[0], n3[1], n3[2]), o3.push([i3[0], i3[1], i3[2]])); 974 r3 = o3; 975 } 976 return r3; 977 } 978 var P3 = false, k3 = true; 979 if ("string" == typeof e2) P3 = true; 980 else if (Array.isArray(e2)) { 981 var F3 = e2.concat(); 982 s3 = []; 983 for (var I2, C2 = F3.length; C2--; ) ("string" != typeof (I2 = F3.shift()) || Array.isArray(I2) && "string" != typeof I2[0]) && (k3 = false); 984 P3 = k3; 985 } 986 if (false === P3) throw new Error('Type of text must be string or Array. "' + e2 + '" is not recognized.'); 987 "string" == typeof e2 && (e2 = e2.match(/[\r?\n]/) ? e2.split(/\r\n|\r|\n/g) : [e2]); 988 var j2 = pt2 / g3.internal.scaleFactor, O2 = j2 * (w3 - 1); 989 switch (i2.baseline) { 990 case "bottom": 991 n2 -= O2; 992 break; 993 case "top": 994 n2 += j2 - O2; 995 break; 996 case "hanging": 997 n2 += j2 - 2 * O2; 998 break; 999 case "middle": 1000 n2 += j2 / 2 - O2; 1001 } 1002 if ((h2 = i2.maxWidth || 0) > 0 && ("string" == typeof e2 ? e2 = g3.splitTextToSize(e2, h2) : "[object Array]" === Object.prototype.toString.call(e2) && (e2 = e2.reduce(function(t2, e3) { 1003 return t2.concat(g3.splitTextToSize(e3, h2)); 1004 }, []))), o2 = { text: e2, x: r2, y: n2, options: i2, mutex: { pdfEscape: ge2, activeFontKey: At2, fonts: Ft2, activeFontSize: pt2 } }, Dt2.publish("preProcessText", o2), e2 = o2.text, u3 = (i2 = o2.options).angle, p3 instanceof Wt2 == 0 && u3 && "number" == typeof u3) { 1005 u3 *= Math.PI / 180, 0 === i2.rotationDirection && (u3 = -u3), _2 === S2 && (u3 = -u3); 1006 var M2 = Math.cos(u3), q2 = Math.sin(u3); 1007 p3 = new Wt2(M2, q2, -q2, M2, 0, 0); 1008 } else u3 && u3 instanceof Wt2 && (p3 = u3); 1009 _2 !== S2 || p3 || (p3 = Gt2), void 0 !== (l2 = i2.charSpace || hr) && (y3 += B2(U2(l2)) + " Tc\n", this.setCharSpace(this.getCharSpace() || 0)), void 0 !== (d2 = i2.horizontalScale) && (y3 += B2(100 * d2) + " Tz\n"), i2.lang; 1010 var E2 = -1, D3 = void 0 !== i2.renderingMode ? i2.renderingMode : i2.stroke, T3 = g3.internal.getCurrentPageInfo().pageContext; 1011 switch (D3) { 1012 case 0: 1013 case false: 1014 case "fill": 1015 E2 = 0; 1016 break; 1017 case 1: 1018 case true: 1019 case "stroke": 1020 E2 = 1; 1021 break; 1022 case 2: 1023 case "fillThenStroke": 1024 E2 = 2; 1025 break; 1026 case 3: 1027 case "invisible": 1028 E2 = 3; 1029 break; 1030 case 4: 1031 case "fillAndAddForClipping": 1032 E2 = 4; 1033 break; 1034 case 5: 1035 case "strokeAndAddPathForClipping": 1036 E2 = 5; 1037 break; 1038 case 6: 1039 case "fillThenStrokeAndAddToPathForClipping": 1040 E2 = 6; 1041 break; 1042 case 7: 1043 case "addToPathForClipping": 1044 E2 = 7; 1045 } 1046 var z3 = void 0 !== T3.usedRenderingMode ? T3.usedRenderingMode : -1; 1047 -1 !== E2 ? y3 += E2 + " Tr\n" : -1 !== z3 && (y3 += "0 Tr\n"), -1 !== E2 && (T3.usedRenderingMode = E2), c3 = i2.align || "left"; 1048 var H3, W3 = pt2 * w3, V3 = g3.internal.pageSize.getWidth(), G3 = Ft2[At2]; 1049 l2 = i2.charSpace || hr, h2 = i2.maxWidth || 0, f3 = Object.assign({ autoencode: true, noBOM: true }, i2.flags); 1050 var Y3 = [], J3 = function(t2) { 1051 return g3.getStringUnitWidth(t2, { font: G3, charSpace: l2, fontSize: pt2, doKerning: false }) * pt2 / N3; 1052 }; 1053 if ("[object Array]" === Object.prototype.toString.call(e2)) { 1054 var X3; 1055 s3 = x3(e2), "left" !== c3 && (H3 = s3.map(J3)); 1056 var K3, Z3 = 0; 1057 if ("right" === c3) { 1058 r2 -= H3[0], e2 = [], C2 = s3.length; 1059 for (var $3 = 0; $3 < C2; $3++) 0 === $3 ? (K3 = nr(r2), X3 = ir(n2)) : (K3 = U2(Z3 - H3[$3]), X3 = -W3), e2.push([s3[$3], K3, X3]), Z3 = H3[$3]; 1060 } else if ("center" === c3) { 1061 r2 -= H3[0] / 2, e2 = [], C2 = s3.length; 1062 for (var Q3 = 0; Q3 < C2; Q3++) 0 === Q3 ? (K3 = nr(r2), X3 = ir(n2)) : (K3 = U2((Z3 - H3[Q3]) / 2), X3 = -W3), e2.push([s3[Q3], K3, X3]), Z3 = H3[Q3]; 1063 } else if ("left" === c3) { 1064 e2 = [], C2 = s3.length; 1065 for (var tt3 = 0; tt3 < C2; tt3++) e2.push(s3[tt3]); 1066 } else if ("justify" === c3 && "Identity-H" === G3.encoding) { 1067 e2 = [], C2 = s3.length, h2 = 0 !== h2 ? h2 : V3; 1068 for (var et3 = 0, rt3 = 0; rt3 < C2; rt3++) if (X3 = 0 === rt3 ? ir(n2) : -W3, K3 = 0 === rt3 ? nr(r2) : et3, rt3 < C2 - 1) { 1069 var nt3 = U2((h2 - H3[rt3]) / (s3[rt3].split(" ").length - 1)), it3 = s3[rt3].split(" "); 1070 e2.push([it3[0] + " ", K3, X3]), et3 = 0; 1071 for (var at3 = 1; at3 < it3.length; at3++) { 1072 var ot3 = (J3(it3[at3 - 1] + " " + it3[at3]) - J3(it3[at3])) * N3 + nt3; 1073 at3 == it3.length - 1 ? e2.push([it3[at3], ot3, 0]) : e2.push([it3[at3] + " ", ot3, 0]), et3 -= ot3; 1074 } 1075 } else e2.push([s3[rt3], K3, X3]); 1076 e2.push(["", et3, 0]); 1077 } else { 1078 if ("justify" !== c3) throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".'); 1079 for (e2 = [], C2 = s3.length, h2 = 0 !== h2 ? h2 : V3, rt3 = 0; rt3 < C2; rt3++) { 1080 X3 = 0 === rt3 ? ir(n2) : -W3, K3 = 0 === rt3 ? nr(r2) : 0; 1081 var st3 = s3[rt3].split(" ").length - 1, ut3 = st3 > 0 ? (h2 - H3[rt3]) / st3 : 0; 1082 rt3 < C2 - 1 ? Y3.push(B2(U2(ut3))) : Y3.push(0), e2.push([s3[rt3], K3, X3]); 1083 } 1084 } 1085 } 1086 true === ("boolean" == typeof i2.R2L ? i2.R2L : vt2) && (e2 = A3(e2, function(t2, e3, r3) { 1087 return [t2.split("").reverse().join(""), e3, r3]; 1088 })), o2 = { text: e2, x: r2, y: n2, options: i2, mutex: { pdfEscape: ge2, activeFontKey: At2, fonts: Ft2, activeFontSize: pt2 } }, Dt2.publish("postProcessText", o2), e2 = o2.text, v3 = o2.mutex.isHex || false; 1089 var ct3 = Ft2[At2].encoding; 1090 "WinAnsiEncoding" !== ct3 && "StandardEncoding" !== ct3 || (e2 = A3(e2, function(t2, e3, r3) { 1091 return [L3(t2), e3, r3]; 1092 })), s3 = x3(e2), e2 = []; 1093 for (var ht3, ft3, dt3, gt3 = Array.isArray(s3[0]) ? 1 : 0, mt3 = "", bt3 = function(t2, e3, r3) { 1094 var n3 = ""; 1095 return r3 instanceof Wt2 ? (r3 = "number" == typeof i2.angle ? Vt2(r3, new Wt2(1, 0, 0, 1, t2, e3)) : Vt2(new Wt2(1, 0, 0, 1, t2, e3), r3), _2 === S2 && (r3 = Vt2(new Wt2(1, 0, 0, -1, 0, 0), r3)), n3 = r3.join(" ") + " Tm\n") : n3 = B2(t2) + " " + B2(e3) + " Td\n", n3; 1096 }, yt3 = 0; yt3 < s3.length; yt3++) { 1097 switch (mt3 = "", gt3) { 1098 case 1: 1099 dt3 = (v3 ? "<" : "(") + s3[yt3][0] + (v3 ? ">" : ")"), ht3 = parseFloat(s3[yt3][1]), ft3 = parseFloat(s3[yt3][2]); 1100 break; 1101 case 0: 1102 dt3 = (v3 ? "<" : "(") + s3[yt3] + (v3 ? ">" : ")"), ht3 = nr(r2), ft3 = ir(n2); 1103 } 1104 void 0 !== Y3 && void 0 !== Y3[yt3] && (mt3 = Y3[yt3] + " Tw\n"), 0 === yt3 ? e2.push(mt3 + bt3(ht3, ft3, p3) + dt3) : 0 === gt3 ? e2.push(mt3 + dt3) : 1 === gt3 && e2.push(mt3 + bt3(ht3, ft3, p3) + dt3); 1105 } 1106 e2 = 0 === gt3 ? e2.join(" Tj\nT* ") : e2.join(" Tj\n"), e2 += " Tj\n"; 1107 var wt3 = "BT\n/"; 1108 return wt3 += At2 + " " + pt2 + " Tf\n", wt3 += B2(pt2 * w3) + " TL\n", wt3 += cr + "\n", wt3 += y3, wt3 += e2, lt2(wt3 += "ET"), b2[At2] = true, g3; 1109 }; 1110 var Ee = y2.__private__.clip = y2.clip = function(t2) { 1111 return lt2("evenodd" === t2 ? "W*" : "W"), this; 1112 }; 1113 y2.clipEvenOdd = function() { 1114 return Ee("evenodd"); 1115 }, y2.__private__.discardPath = y2.discardPath = function() { 1116 return lt2("n"), this; 1117 }; 1118 var Re = y2.__private__.isValidStyle = function(t2) { 1119 var e2 = false; 1120 return -1 !== [void 0, null, "S", "D", "F", "DF", "FD", "f", "f*", "B", "B*", "n"].indexOf(t2) && (e2 = true), e2; 1121 }; 1122 y2.__private__.setDefaultPathOperation = y2.setDefaultPathOperation = function(t2) { 1123 return Re(t2) && (g2 = t2), this; 1124 }; 1125 var De = y2.__private__.getStyle = y2.getStyle = function(t2) { 1126 var e2 = g2; 1127 switch (t2) { 1128 case "D": 1129 case "S": 1130 e2 = "S"; 1131 break; 1132 case "F": 1133 e2 = "f"; 1134 break; 1135 case "FD": 1136 case "DF": 1137 e2 = "B"; 1138 break; 1139 case "f": 1140 case "f*": 1141 case "B": 1142 case "B*": 1143 e2 = t2; 1144 } 1145 return e2; 1146 }, Te = y2.close = function() { 1147 return lt2("h"), this; 1148 }; 1149 y2.stroke = function() { 1150 return lt2("S"), this; 1151 }, y2.fill = function(t2) { 1152 return ze("f", t2), this; 1153 }, y2.fillEvenOdd = function(t2) { 1154 return ze("f*", t2), this; 1155 }, y2.fillStroke = function(t2) { 1156 return ze("B", t2), this; 1157 }, y2.fillStrokeEvenOdd = function(t2) { 1158 return ze("B*", t2), this; 1159 }; 1160 var ze = function(e2, r2) { 1161 "object" === _typeof(r2) ? We(r2, e2) : lt2(e2); 1162 }, Ue = function(t2) { 1163 null === t2 || _2 === S2 && void 0 === t2 || (t2 = De(t2), lt2(t2)); 1164 }; 1165 function He(t2, e2, r2, n2, i2) { 1166 var a3 = new q(e2 || this.boundingBox, r2 || this.xStep, n2 || this.yStep, this.gState, i2 || this.matrix); 1167 a3.stream = this.stream; 1168 var o2 = t2 + "$$" + this.cloneIndex++ + "$$"; 1169 return Yt2(o2, a3), a3; 1170 } 1171 var We = function(t2, e2) { 1172 var r2 = Ot2[t2.key], n2 = jt2[r2]; 1173 if (n2 instanceof M) lt2("q"), lt2(Ve(e2)), n2.gState && y2.setGState(n2.gState), lt2(t2.matrix.toString() + " cm"), lt2("/" + r2 + " sh"), lt2("Q"); 1174 else if (n2 instanceof q) { 1175 var i2 = new Wt2(1, 0, 0, -1, 0, Pr()); 1176 t2.matrix && (i2 = i2.multiply(t2.matrix || Gt2), r2 = He.call(n2, t2.key, t2.boundingBox, t2.xStep, t2.yStep, i2).id), lt2("q"), lt2("/Pattern cs"), lt2("/" + r2 + " scn"), n2.gState && y2.setGState(n2.gState), lt2(e2), lt2("Q"); 1177 } 1178 }, Ve = function(t2) { 1179 switch (t2) { 1180 case "f": 1181 case "F": 1182 case "n": 1183 return "W n"; 1184 case "f*": 1185 return "W* n"; 1186 case "B": 1187 case "S": 1188 return "W S"; 1189 case "B*": 1190 return "W* S"; 1191 } 1192 }, Ge = y2.moveTo = function(t2, e2) { 1193 return lt2(B2(U2(t2)) + " " + B2(H2(e2)) + " m"), this; 1194 }, Ye = y2.lineTo = function(t2, e2) { 1195 return lt2(B2(U2(t2)) + " " + B2(H2(e2)) + " l"), this; 1196 }, Je = y2.curveTo = function(t2, e2, r2, n2, i2, a3) { 1197 return lt2([B2(U2(t2)), B2(H2(e2)), B2(U2(r2)), B2(H2(n2)), B2(U2(i2)), B2(H2(a3)), "c"].join(" ")), this; 1198 }; 1199 y2.__private__.line = y2.line = function(t2, e2, r2, n2, i2) { 1200 if (isNaN(t2) || isNaN(e2) || isNaN(r2) || isNaN(n2) || !Re(i2)) throw new Error("Invalid arguments passed to jsPDF.line"); 1201 return _2 === A2 ? this.lines([[r2 - t2, n2 - e2]], t2, e2, [1, 1], i2 || "S") : this.lines([[r2 - t2, n2 - e2]], t2, e2, [1, 1]).stroke(); 1202 }, y2.__private__.lines = y2.lines = function(t2, e2, r2, n2, i2, a3) { 1203 var o2, s3, u3, c3, l2, h2, f3, d2, p3, g3, m3, v3; 1204 if ("number" == typeof t2 && (v3 = r2, r2 = e2, e2 = t2, t2 = v3), n2 = n2 || [1, 1], a3 = a3 || false, isNaN(e2) || isNaN(r2) || !Array.isArray(t2) || !Array.isArray(n2) || !Re(i2) || "boolean" != typeof a3) throw new Error("Invalid arguments passed to jsPDF.lines"); 1205 for (Ge(e2, r2), o2 = n2[0], s3 = n2[1], c3 = t2.length, g3 = e2, m3 = r2, u3 = 0; u3 < c3; u3++) 2 === (l2 = t2[u3]).length ? (g3 = l2[0] * o2 + g3, m3 = l2[1] * s3 + m3, Ye(g3, m3)) : (h2 = l2[0] * o2 + g3, f3 = l2[1] * s3 + m3, d2 = l2[2] * o2 + g3, p3 = l2[3] * s3 + m3, g3 = l2[4] * o2 + g3, m3 = l2[5] * s3 + m3, Je(h2, f3, d2, p3, g3, m3)); 1206 return a3 && Te(), Ue(i2), this; 1207 }, y2.path = function(t2) { 1208 for (var e2 = 0; e2 < t2.length; e2++) { 1209 var r2 = t2[e2], n2 = r2.c; 1210 switch (r2.op) { 1211 case "m": 1212 Ge(n2[0], n2[1]); 1213 break; 1214 case "l": 1215 Ye(n2[0], n2[1]); 1216 break; 1217 case "c": 1218 Je.apply(this, n2); 1219 break; 1220 case "h": 1221 Te(); 1222 } 1223 } 1224 return this; 1225 }, y2.__private__.rect = y2.rect = function(t2, e2, r2, n2, i2) { 1226 if (isNaN(t2) || isNaN(e2) || isNaN(r2) || isNaN(n2) || !Re(i2)) throw new Error("Invalid arguments passed to jsPDF.rect"); 1227 return _2 === A2 && (n2 = -n2), lt2([B2(U2(t2)), B2(H2(e2)), B2(U2(r2)), B2(U2(n2)), "re"].join(" ")), Ue(i2), this; 1228 }, y2.__private__.triangle = y2.triangle = function(t2, e2, r2, n2, i2, a3, o2) { 1229 if (isNaN(t2) || isNaN(e2) || isNaN(r2) || isNaN(n2) || isNaN(i2) || isNaN(a3) || !Re(o2)) throw new Error("Invalid arguments passed to jsPDF.triangle"); 1230 return this.lines([[r2 - t2, n2 - e2], [i2 - r2, a3 - n2], [t2 - i2, e2 - a3]], t2, e2, [1, 1], o2, true), this; 1231 }, y2.__private__.roundedRect = y2.roundedRect = function(t2, e2, r2, n2, i2, a3, o2) { 1232 if (isNaN(t2) || isNaN(e2) || isNaN(r2) || isNaN(n2) || isNaN(i2) || isNaN(a3) || !Re(o2)) throw new Error("Invalid arguments passed to jsPDF.roundedRect"); 1233 var s3 = 4 / 3 * (Math.SQRT2 - 1); 1234 return i2 = Math.min(i2, 0.5 * r2), a3 = Math.min(a3, 0.5 * n2), this.lines([[r2 - 2 * i2, 0], [i2 * s3, 0, i2, a3 - a3 * s3, i2, a3], [0, n2 - 2 * a3], [0, a3 * s3, -i2 * s3, a3, -i2, a3], [2 * i2 - r2, 0], [-i2 * s3, 0, -i2, -a3 * s3, -i2, -a3], [0, 2 * a3 - n2], [0, -a3 * s3, i2 * s3, -a3, i2, -a3]], t2 + i2, e2, [1, 1], o2, true), this; 1235 }, y2.__private__.ellipse = y2.ellipse = function(t2, e2, r2, n2, i2) { 1236 if (isNaN(t2) || isNaN(e2) || isNaN(r2) || isNaN(n2) || !Re(i2)) throw new Error("Invalid arguments passed to jsPDF.ellipse"); 1237 var a3 = 4 / 3 * (Math.SQRT2 - 1) * r2, o2 = 4 / 3 * (Math.SQRT2 - 1) * n2; 1238 return Ge(t2 + r2, e2), Je(t2 + r2, e2 - o2, t2 + a3, e2 - n2, t2, e2 - n2), Je(t2 - a3, e2 - n2, t2 - r2, e2 - o2, t2 - r2, e2), Je(t2 - r2, e2 + o2, t2 - a3, e2 + n2, t2, e2 + n2), Je(t2 + a3, e2 + n2, t2 + r2, e2 + o2, t2 + r2, e2), Ue(i2), this; 1239 }, y2.__private__.circle = y2.circle = function(t2, e2, r2, n2) { 1240 if (isNaN(t2) || isNaN(e2) || isNaN(r2) || !Re(n2)) throw new Error("Invalid arguments passed to jsPDF.circle"); 1241 return this.ellipse(t2, e2, r2, r2, n2); 1242 }, y2.setFont = function(t2, e2, r2) { 1243 return r2 && (e2 = F2(e2, r2)), At2 = Ne2(t2, e2, { disableWarning: false }), this; 1244 }; 1245 var Xe = y2.__private__.getFont = y2.getFont = function() { 1246 return Ft2[Ne2.apply(y2, arguments)]; 1247 }; 1248 y2.__private__.getFontList = y2.getFontList = function() { 1249 var t2, e2, r2 = {}; 1250 for (t2 in It2) if (It2.hasOwnProperty(t2)) for (e2 in r2[t2] = [], It2[t2]) It2[t2].hasOwnProperty(e2) && r2[t2].push(e2); 1251 return r2; 1252 }, y2.addFont = function(t2, e2, r2, n2, i2) { 1253 var a3 = ["StandardEncoding", "MacRomanEncoding", "Identity-H", "WinAnsiEncoding"]; 1254 return arguments[3] && -1 !== a3.indexOf(arguments[3]) ? i2 = arguments[3] : arguments[3] && -1 == a3.indexOf(arguments[3]) && (r2 = F2(r2, n2)), pe2.call(this, t2, e2, r2, i2 = i2 || "Identity-H"); 1255 }; 1256 var Ke, Ze = e.lineWidth || 0.200025, $e = y2.__private__.getLineWidth = y2.getLineWidth = function() { 1257 return Ze; 1258 }, Qe = y2.__private__.setLineWidth = y2.setLineWidth = function(t2) { 1259 return Ze = t2, lt2(B2(U2(t2)) + " w"), this; 1260 }; 1261 y2.__private__.setLineDash = E.API.setLineDash = E.API.setLineDashPattern = function(t2, e2) { 1262 if (t2 = t2 || [], e2 = e2 || 0, isNaN(e2) || !Array.isArray(t2)) throw new Error("Invalid arguments passed to jsPDF.setLineDash"); 1263 return t2 = t2.map(function(t3) { 1264 return B2(U2(t3)); 1265 }).join(" "), e2 = B2(U2(e2)), lt2("[" + t2 + "] " + e2 + " d"), this; 1266 }; 1267 var tr = y2.__private__.getLineHeight = y2.getLineHeight = function() { 1268 return pt2 * Ke; 1269 }; 1270 y2.__private__.getLineHeight = y2.getLineHeight = function() { 1271 return pt2 * Ke; 1272 }; 1273 var er = y2.__private__.setLineHeightFactor = y2.setLineHeightFactor = function(t2) { 1274 return "number" == typeof (t2 = t2 || 1.15) && (Ke = t2), this; 1275 }, rr = y2.__private__.getLineHeightFactor = y2.getLineHeightFactor = function() { 1276 return Ke; 1277 }; 1278 er(e.lineHeight); 1279 var nr = y2.__private__.getHorizontalCoordinate = function(t2) { 1280 return U2(t2); 1281 }, ir = y2.__private__.getVerticalCoordinate = function(t2) { 1282 return _2 === S2 ? t2 : Rt2[$2].mediaBox.topRightY - Rt2[$2].mediaBox.bottomLeftY - U2(t2); 1283 }, ar = y2.__private__.getHorizontalCoordinateString = y2.getHorizontalCoordinateString = function(t2) { 1284 return B2(nr(t2)); 1285 }, or = y2.__private__.getVerticalCoordinateString = y2.getVerticalCoordinateString = function(t2) { 1286 return B2(ir(t2)); 1287 }, sr = e.strokeColor || "0 G"; 1288 y2.__private__.getStrokeColor = y2.getDrawColor = function() { 1289 return ee2(sr); 1290 }, y2.__private__.setStrokeColor = y2.setDrawColor = function(t2, e2, r2, n2) { 1291 return sr = re2({ ch1: t2, ch2: e2, ch3: r2, ch4: n2, pdfColorType: "draw", precision: 2 }), lt2(sr), this; 1292 }; 1293 var ur = e.fillColor || "0 g"; 1294 y2.__private__.getFillColor = y2.getFillColor = function() { 1295 return ee2(ur); 1296 }, y2.__private__.setFillColor = y2.setFillColor = function(t2, e2, r2, n2) { 1297 return ur = re2({ ch1: t2, ch2: e2, ch3: r2, ch4: n2, pdfColorType: "fill", precision: 2 }), lt2(ur), this; 1298 }; 1299 var cr = e.textColor || "0 g", lr = y2.__private__.getTextColor = y2.getTextColor = function() { 1300 return ee2(cr); 1301 }; 1302 y2.__private__.setTextColor = y2.setTextColor = function(t2, e2, r2, n2) { 1303 return cr = re2({ ch1: t2, ch2: e2, ch3: r2, ch4: n2, pdfColorType: "text", precision: 3 }), this; 1304 }; 1305 var hr = e.charSpace, fr = y2.__private__.getCharSpace = y2.getCharSpace = function() { 1306 return parseFloat(hr || 0); 1307 }; 1308 y2.__private__.setCharSpace = y2.setCharSpace = function(t2) {
vendor: 4,198 bytes, lines 1309-1402
1309 if (isNaN(t2)) throw new Error("Invalid argument passed to jsPDF.setCharSpace"); 1310 return hr = t2, this; 1311 }; 1312 var dr = 0; 1313 y2.CapJoinStyles = { 0: 0, butt: 0, but: 0, miter: 0, 1: 1, round: 1, rounded: 1, circle: 1, 2: 2, projecting: 2, project: 2, square: 2, bevel: 2 }, y2.__private__.setLineCap = y2.setLineCap = function(t2) { 1314 var e2 = y2.CapJoinStyles[t2]; 1315 if (void 0 === e2) throw new Error("Line cap style of '" + t2 + "' is not recognized. See or extend .CapJoinStyles property for valid styles"); 1316 return dr = e2, lt2(e2 + " J"), this; 1317 }; 1318 var pr = 0; 1319 y2.__private__.setLineJoin = y2.setLineJoin = function(t2) { 1320 var e2 = y2.CapJoinStyles[t2]; 1321 if (void 0 === e2) throw new Error("Line join style of '" + t2 + "' is not recognized. See or extend .CapJoinStyles property for valid styles"); 1322 return pr = e2, lt2(e2 + " j"), this; 1323 }, y2.__private__.setLineMiterLimit = y2.__private__.setMiterLimit = y2.setLineMiterLimit = y2.setMiterLimit = function(t2) { 1324 if (t2 = t2 || 0, isNaN(t2)) throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit"); 1325 return lt2(B2(U2(t2)) + " M"), this; 1326 }, y2.GState = O, y2.setGState = function(t2) { 1327 (t2 = "string" == typeof t2 ? Bt2[Mt2[t2]] : gr(null, t2)).equals(qt2) || (lt2("/" + t2.id + " gs"), qt2 = t2); 1328 }; 1329 var gr = function(t2, e2) { 1330 if (!t2 || !Mt2[t2]) { 1331 var r2 = false; 1332 for (var n2 in Bt2) if (Bt2.hasOwnProperty(n2) && Bt2[n2].equals(e2)) { 1333 r2 = true; 1334 break; 1335 } 1336 if (r2) e2 = Bt2[n2]; 1337 else { 1338 var i2 = "GS" + (Object.keys(Bt2).length + 1).toString(10); 1339 Bt2[i2] = e2, e2.id = i2; 1340 } 1341 return t2 && (Mt2[t2] = e2.id), Dt2.publish("addGState", e2), e2; 1342 } 1343 }; 1344 y2.addGState = function(t2, e2) { 1345 return gr(t2, e2), this; 1346 }, y2.saveGraphicsState = function() { 1347 return lt2("q"), Ct2.push({ key: At2, size: pt2, color: cr }), this; 1348 }, y2.restoreGraphicsState = function() { 1349 lt2("Q"); 1350 var t2 = Ct2.pop(); 1351 return At2 = t2.key, pt2 = t2.size, cr = t2.color, qt2 = null, this; 1352 }, y2.setCurrentTransformationMatrix = function(t2) { 1353 return lt2(t2.toString() + " cm"), this; 1354 }, y2.comment = function(t2) { 1355 return lt2("#" + t2), this; 1356 }; 1357 var mr = function(t2, e2) { 1358 var r2 = t2 || 0; 1359 Object.defineProperty(this, "x", { enumerable: true, get: function() { 1360 return r2; 1361 }, set: function(t3) { 1362 isNaN(t3) || (r2 = parseFloat(t3)); 1363 } }); 1364 var n2 = e2 || 0; 1365 Object.defineProperty(this, "y", { enumerable: true, get: function() { 1366 return n2; 1367 }, set: function(t3) { 1368 isNaN(t3) || (n2 = parseFloat(t3)); 1369 } }); 1370 var i2 = "pt"; 1371 return Object.defineProperty(this, "type", { enumerable: true, get: function() { 1372 return i2; 1373 }, set: function(t3) { 1374 i2 = t3.toString(); 1375 } }), this; 1376 }, vr = function(t2, e2, r2, n2) { 1377 mr.call(this, t2, e2), this.type = "rect"; 1378 var i2 = r2 || 0; 1379 Object.defineProperty(this, "w", { enumerable: true, get: function() { 1380 return i2; 1381 }, set: function(t3) { 1382 isNaN(t3) || (i2 = parseFloat(t3)); 1383 } }); 1384 var a3 = n2 || 0; 1385 return Object.defineProperty(this, "h", { enumerable: true, get: function() { 1386 return a3; 1387 }, set: function(t3) { 1388 isNaN(t3) || (a3 = parseFloat(t3)); 1389 } }), this; 1390 }, br = function() { 1391 this.page = Et2, this.currentPage = $2, this.pages = ot2.slice(0), this.pagesContext = Rt2.slice(0), this.x = _t2, this.y = Pt2, this.matrix = kt2, this.width = Nr($2), this.height = xr($2), this.outputDestination = ut2, this.id = "", this.objectNumber = -1; 1392 }; 1393 br.prototype.restore = function() { 1394 Et2 = this.page, $2 = this.currentPage, Rt2 = this.pagesContext, ot2 = this.pages, _t2 = this.x, Pt2 = this.y, kt2 = this.matrix, Lr($2, this.width), Ar($2, this.height), ut2 = this.outputDestination; 1395 }; 1396 var yr = function(t2, e2, r2, n2, i2) { 1397 Ht2.push(new br()), Et2 = $2 = 0, ot2 = [], _t2 = t2, Pt2 = e2, kt2 = i2, me2([r2, n2]); 1398 }; 1399 for (var wr in y2.beginFormObject = function(t2, e2, r2, n2, i2) { 1400 return yr(t2, e2, r2, n2, i2), this; 1401 }, y2.endFormObject = function(t2) { 1402 return function(t3) {
vendor: 15,767 bytes, lines 1403-1696
1403 if (Ut2[t3]) Ht2.pop().restore(); 1404 else { 1405 var e2 = new br(), r2 = "Xo" + (Object.keys(zt2).length + 1).toString(10); 1406 e2.id = r2, Ut2[t3] = r2, zt2[r2] = e2, Dt2.publish("addFormObject", e2), Ht2.pop().restore(); 1407 } 1408 }(t2), this; 1409 }, y2.doFormObject = function(t2, e2) { 1410 var r2 = zt2[Ut2[t2]]; 1411 return lt2("q"), lt2(e2.toString() + " cm"), lt2("/" + r2.id + " Do"), lt2("Q"), this; 1412 }, y2.getFormObject = function(t2) { 1413 var e2 = zt2[Ut2[t2]]; 1414 return { x: e2.x, y: e2.y, width: e2.width, height: e2.height, matrix: e2.matrix }; 1415 }, y2.save = function(t2, e2) { 1416 return t2 = t2 || "generated.pdf", (e2 = e2 || {}).returnPromise = e2.returnPromise || false, false === e2.returnPromise ? (l(ke2(Pe2()), t2), "function" == typeof l.unload && i.setTimeout && setTimeout(l.unload, 911), this) : new Promise(function(e3, r2) { 1417 try { 1418 var n2 = l(ke2(Pe2()), t2); 1419 "function" == typeof l.unload && i.setTimeout && setTimeout(l.unload, 911), e3(n2); 1420 } catch (a3) { 1421 r2(a3.message); 1422 } 1423 }); 1424 }, E.API) E.API.hasOwnProperty(wr) && ("events" === wr && E.API.events.length ? function(t2, e2) { 1425 var r2, n2, i2; 1426 for (i2 = e2.length - 1; -1 !== i2; i2--) r2 = e2[i2][0], n2 = e2[i2][1], t2.subscribe.apply(t2, [r2].concat("function" == typeof n2 ? [n2] : n2)); 1427 }(Dt2, E.API.events) : y2[wr] = E.API[wr]); 1428 function Nr(t2) { 1429 return Rt2[t2].mediaBox.topRightX - Rt2[t2].mediaBox.bottomLeftX; 1430 } 1431 function Lr(t2, e2) { 1432 Rt2[t2].mediaBox.topRightX = e2 + Rt2[t2].mediaBox.bottomLeftX; 1433 } 1434 function xr(t2) { 1435 return Rt2[t2].mediaBox.topRightY - Rt2[t2].mediaBox.bottomLeftY; 1436 } 1437 function Ar(t2, e2) { 1438 Rt2[t2].mediaBox.topRightY = e2 + Rt2[t2].mediaBox.bottomLeftY; 1439 } 1440 var Sr = y2.getPageWidth = function(t2) { 1441 return Nr(t2 = t2 || $2) / St2; 1442 }, _r = y2.setPageWidth = function(t2, e2) { 1443 Lr(t2, e2 * St2); 1444 }, Pr = y2.getPageHeight = function(t2) { 1445 return xr(t2 = t2 || $2) / St2; 1446 }, kr = y2.setPageHeight = function(t2, e2) { 1447 Ar(t2, e2 * St2); 1448 }; 1449 return y2.internal = { pdfEscape: ge2, getStyle: De, getFont: Xe, getFontSize: mt2, getCharSpace: fr, getTextColor: lr, getLineHeight: tr, getLineHeightFactor: rr, getLineWidth: $e, write: ht2, getHorizontalCoordinate: nr, getVerticalCoordinate: ir, getCoordinateString: ar, getVerticalCoordinateString: or, collections: {}, newObject: Xt2, newAdditionalObject: $t2, newObjectDeferred: Kt2, newObjectDeferredBegin: Zt2, getFilters: ne2, putStream: ie2, events: Dt2, scaleFactor: St2, pageSize: { getWidth: function() { 1450 return Sr($2); 1451 }, setWidth: function(t2) { 1452 _r($2, t2); 1453 }, getHeight: function() { 1454 return Pr($2); 1455 }, setHeight: function(t2) { 1456 kr($2, t2); 1457 } }, encryptionOptions: m2, encryption: Oe, getEncryptor: function(t2) { 1458 return null !== m2 ? Oe.encryptor(t2, 0) : function(t3) { 1459 return t3; 1460 }; 1461 }, output: Ce2, getNumberOfPages: we2, get pages() { 1462 return ot2; 1463 }, out: lt2, f2: T2, f3: z2, getPageInfo: Be, getPageInfoByObjId: Me, getCurrentPageInfo: qe, getPDFVersion: N2, Point: mr, Rectangle: vr, Matrix: Wt2, hasHotfix: je }, Object.defineProperty(y2.internal.pageSize, "width", { get: function() { 1464 return Sr($2); 1465 }, set: function(t2) { 1466 _r($2, t2); 1467 }, enumerable: true, configurable: true }), Object.defineProperty(y2.internal.pageSize, "height", { get: function() { 1468 return Pr($2); 1469 }, set: function(t2) { 1470 kr($2, t2); 1471 }, enumerable: true, configurable: true }), (function(t2) { 1472 for (var e2 = 0, r2 = dt2.length; e2 < r2; e2++) { 1473 var n2 = pe2.call(this, t2[e2][0], t2[e2][1], t2[e2][2], dt2[e2][3], true); 1474 false === v2 && (b2[n2] = true); 1475 var i2 = t2[e2][0].split("-"); 1476 de2({ id: n2, fontName: i2[0], fontStyle: i2[1] || "" }); 1477 } 1478 Dt2.publish("addFonts", { fonts: Ft2, dictionary: It2 }); 1479 }).call(y2, dt2), At2 = "F1", ve2(s2, n), Dt2.publish("initialized"), y2; 1480} 1481I.prototype.lsbFirstWord = function(t2) { 1482 return String.fromCharCode(255 & t2, t2 >> 8 & 255, t2 >> 16 & 255, t2 >> 24 & 255); 1483}, I.prototype.toHexString = function(t2) { 1484 return t2.split("").map(function(t3) { 1485 return ("0" + (255 & t3.charCodeAt(0)).toString(16)).slice(-2); 1486 }).join(""); 1487}, I.prototype.hexToBytes = function(t2) { 1488 for (var e = [], r = 0; r < t2.length; r += 2) e.push(String.fromCharCode(parseInt(t2.substr(r, 2), 16))); 1489 return e.join(""); 1490}, I.prototype.processOwnerPassword = function(t2, e) { 1491 return k(S(e).substr(0, 5), t2); 1492}, I.prototype.encryptor = function(t2, e) { 1493 var r = S(this.encryptionKey + String.fromCharCode(255 & t2, t2 >> 8 & 255, t2 >> 16 & 255, 255 & e, e >> 8 & 255)).substr(0, 10); 1494 return function(t3) { 1495 return k(r, t3); 1496 }; 1497}, O.prototype.equals = function(e) { 1498 var r, n = "id,objectNumber,equals"; 1499 if (!e || _typeof(e) !== _typeof(this)) return false; 1500 var i2 = 0; 1501 for (r in this) if (!(n.indexOf(r) >= 0)) { 1502 if (this.hasOwnProperty(r) && !e.hasOwnProperty(r)) return false; 1503 if (this[r] !== e[r]) return false; 1504 i2++; 1505 } 1506 for (r in e) e.hasOwnProperty(r) && n.indexOf(r) < 0 && i2--; 1507 return 0 === i2; 1508}, E.API = { events: [] }, E.version = "4.2.1"; 1509var R = E.API, D = 1, T = function(t2) { 1510 return t2.replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)"); 1511}, z = function(t2) { 1512 return t2.replace(/\\\\/g, "\\").replace(/\\\(/g, "(").replace(/\\\)/g, ")"); 1513}, U = function(t2) { 1514 return t2.toString().replace(/#/g, "#23").replace(/[\s\n\r()<>[\]{}\/%]/g, function(t3) { 1515 var e = t3.charCodeAt(0).toString(16).toUpperCase(); 1516 return "#" + (1 === e.length ? "0" + e : e); 1517 }); 1518}, H = function(t2) { 1519 return t2.toFixed(2); 1520}, W = function(t2) { 1521 return t2.toFixed(5); 1522}; 1523R.__acroform__ = {}; 1524var V = function(t2, e) { 1525 t2.prototype = Object.create(e.prototype), t2.prototype.constructor = t2; 1526}, G = function(t2) { 1527 return t2 * D; 1528}, Y = function(t2) { 1529 var e = new lt(), r = At.internal.getHeight(t2) || 0, n = At.internal.getWidth(t2) || 0; 1530 return e.BBox = [0, 0, Number(H(n)), Number(H(r))], e; 1531}, J = R.__acroform__.setBit = function(t2, e) { 1532 if (t2 = t2 || 0, e = e || 0, isNaN(t2) || isNaN(e)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit"); 1533 return t2 | 1 << e; 1534}, X = R.__acroform__.clearBit = function(t2, e) { 1535 if (t2 = t2 || 0, e = e || 0, isNaN(t2) || isNaN(e)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit"); 1536 return t2 & ~(1 << e); 1537}, K = R.__acroform__.getBit = function(t2, e) { 1538 if (isNaN(t2) || isNaN(e)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit"); 1539 return t2 & 1 << e ? 1 : 0; 1540}, Z = R.__acroform__.getBitForPdf = function(t2, e) { 1541 if (isNaN(t2) || isNaN(e)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf"); 1542 return K(t2, e - 1); 1543}, $ = R.__acroform__.setBitForPdf = function(t2, e) { 1544 if (isNaN(t2) || isNaN(e)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf"); 1545 return J(t2, e - 1); 1546}, Q = R.__acroform__.clearBitForPdf = function(t2, e) { 1547 if (isNaN(t2) || isNaN(e)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf"); 1548 return X(t2, e - 1); 1549}, tt = R.__acroform__.calculateCoordinates = function(t2, e) { 1550 var r = e.internal.getHorizontalCoordinate, n = e.internal.getVerticalCoordinate, i2 = t2[0], a2 = t2[1], o2 = t2[2], s2 = t2[3], u2 = {}; 1551 return u2.lowerLeft_X = r(i2) || 0, u2.lowerLeft_Y = n(a2 + s2) || 0, u2.upperRight_X = r(i2 + o2) || 0, u2.upperRight_Y = n(a2) || 0, [Number(H(u2.lowerLeft_X)), Number(H(u2.lowerLeft_Y)), Number(H(u2.upperRight_X)), Number(H(u2.upperRight_Y))]; 1552}, et = function(t2) { 1553 if (t2.appearanceStreamContent) return t2.appearanceStreamContent; 1554 if (t2.V || t2.DV) { 1555 var e = [], r = t2._V || t2.DV, n = rt(t2, r), i2 = t2.scope.internal.getFont(t2.fontName, t2.fontStyle).id; 1556 e.push("/Tx BMC"), e.push("q"), e.push("BT"), e.push(t2.scope.__private__.encodeColorString(t2.color)), e.push("/" + i2 + " " + H(n.fontSize) + " Tf"), e.push("1 0 0 1 0 0 Tm"), e.push(n.text), e.push("ET"), e.push("Q"), e.push("EMC"); 1557 var a2 = Y(t2); 1558 return a2.scope = t2.scope, a2.stream = e.join("\n"), a2; 1559 } 1560}, rt = function(t2, e) { 1561 var r = 0 === t2.fontSize ? t2.maxFontSize : t2.fontSize, n = { 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(" "); 1562 i2 = t2.multiline ? i2.map(function(t3) { 1563 return t3.split("\n"); 1564 }) : i2.map(function(t3) { 1565 return [t3]; 1566 }); 1567 var a2 = r, o2 = At.internal.getHeight(t2) || 0; 1568 o2 = o2 < 0 ? -o2 : o2; 1569 var s2 = At.internal.getWidth(t2) || 0; 1570 s2 = s2 < 0 ? -s2 : s2; 1571 var u2 = function(e2, r2, n2) { 1572 if (e2 + 1 < i2.length) { 1573 var a3 = r2 + " " + i2[e2 + 1][0]; 1574 return nt(a3, t2, n2).width <= s2 - 4; 1575 } 1576 return false; 1577 }; 1578 a2++; 1579 t: for (; a2 > 0; ) { 1580 e = "", a2--; 1581 var c2, l2, h2 = nt("3", t2, a2).height, f2 = t2.multiline ? o2 - a2 : (o2 - h2) / 2, d2 = f2 += 2, p2 = 0, g2 = 0, m2 = 0; 1582 if (a2 <= 0) { 1583 e = "(...) Tj\n", e += "% Width of Text: " + nt(e, t2, a2 = 12).width + ", FieldWidth:" + s2 + "\n"; 1584 break; 1585 } 1586 for (var v2 = "", b2 = 0, y2 = 0; y2 < i2.length; y2++) if (i2.hasOwnProperty(y2)) { 1587 var w2 = false; 1588 if (1 !== i2[y2].length && m2 !== i2[y2].length - 1) { 1589 if ((h2 + 2) * (b2 + 2) + 2 > o2) continue t; 1590 v2 += i2[y2][m2], w2 = true, g2 = y2, y2--; 1591 } else { 1592 v2 = " " == (v2 += i2[y2][m2] + " ").substr(v2.length - 1) ? v2.substr(0, v2.length - 1) : v2; 1593 var N2 = parseInt(y2), L2 = u2(N2, v2, a2), x2 = y2 >= i2.length - 1; 1594 if (L2 && !x2) { 1595 v2 += " ", m2 = 0; 1596 continue; 1597 } 1598 if (L2 || x2) { 1599 if (x2) g2 = N2; 1600 else if (t2.multiline && (h2 + 2) * (b2 + 2) + 2 > o2) continue t; 1601 } else { 1602 if (!t2.multiline) continue t; 1603 if ((h2 + 2) * (b2 + 2) + 2 > o2) continue t; 1604 g2 = N2; 1605 } 1606 } 1607 for (var A2 = "", S2 = p2; S2 <= g2; S2++) { 1608 var _2 = i2[S2]; 1609 if (t2.multiline) { 1610 if (S2 === g2) { 1611 A2 += _2[m2] + " ", m2 = (m2 + 1) % _2.length; 1612 continue; 1613 } 1614 if (S2 === p2) { 1615 A2 += _2[_2.length - 1] + " "; 1616 continue; 1617 } 1618 } 1619 A2 += _2[0] + " "; 1620 } 1621 switch (A2 = " " == A2.substr(A2.length - 1) ? A2.substr(0, A2.length - 1) : A2, l2 = nt(A2, t2, a2).width, t2.textAlign) { 1622 case "right": 1623 c2 = s2 - l2 - 2; 1624 break; 1625 case "center": 1626 c2 = (s2 - l2) / 2; 1627 break; 1628 default: 1629 c2 = 2; 1630 } 1631 e += H(c2) + " " + H(d2) + " Td\n", e += "(" + T(A2) + ") Tj\n", e += -H(c2) + " 0 Td\n", d2 = -(a2 + 2), l2 = 0, p2 = w2 ? g2 : g2 + 1, b2++, v2 = ""; 1632 } 1633 break; 1634 } 1635 return n.text = e, n.fontSize = a2, n; 1636}, nt = function(t2, e, r) { 1637 var n = e.scope.internal.getFont(e.fontName, e.fontStyle), i2 = e.scope.getStringUnitWidth(t2, { font: n, fontSize: parseFloat(r), charSpace: 0 }) * parseFloat(r); 1638 return { height: e.scope.getStringUnitWidth("3", { font: n, fontSize: parseFloat(r), charSpace: 0 }) * parseFloat(r) * 1.5, width: i2 }; 1639}, it = { fields: [], xForms: [], acroFormDictionaryRoot: null, printedOut: false, internal: null, isInitialized: false }, at = function(t2, e) { 1640 var r = { type: "reference", object: t2 }; 1641 void 0 === e.internal.getPageInfo(t2.page).pageContext.annotations.find(function(t3) { 1642 return t3.type === r.type && t3.object === r.object; 1643 }) && e.internal.getPageInfo(t2.page).pageContext.annotations.push(r); 1644}, ot = function(e, r) { 1645 if (r.scope = e, void 0 !== e.internal && (void 0 === e.internal.acroformPlugin || false === e.internal.acroformPlugin.isInitialized)) { 1646 if (ft.FieldNum = 0, e.internal.acroformPlugin = JSON.parse(JSON.stringify(it)), e.internal.acroformPlugin.acroFormDictionaryRoot) throw new Error("Exception while creating AcroformDictionary"); 1647 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() { 1648 !function(t2) { 1649 t2.internal.events.unsubscribe(t2.internal.acroformPlugin.acroFormDictionaryRoot._eventID), delete t2.internal.acroformPlugin.acroFormDictionaryRoot._eventID, t2.internal.acroformPlugin.printedOut = true; 1650 }(e); 1651 }), e.internal.events.subscribe("buildDocument", function() { 1652 !function(t2) { 1653 t2.internal.acroformPlugin.acroFormDictionaryRoot.objId = void 0; 1654 var e2 = t2.internal.acroformPlugin.acroFormDictionaryRoot.Fields; 1655 for (var r2 in e2) if (e2.hasOwnProperty(r2)) { 1656 var n = e2[r2]; 1657 n.objId = void 0, n.hasAnnotation && at(n, t2); 1658 } 1659 }(e); 1660 }), e.internal.events.subscribe("putCatalog", function() { 1661 !function(t2) { 1662 if (void 0 === t2.internal.acroformPlugin.acroFormDictionaryRoot) throw new Error("putCatalogCallback: Root missing."); 1663 t2.internal.write("/AcroForm " + t2.internal.acroformPlugin.acroFormDictionaryRoot.objId + " 0 R"); 1664 }(e); 1665 }), e.internal.events.subscribe("postPutPages", function(r2) { 1666 !function(e2, r3) { 1667 var n = !e2; 1668 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)) { 1669 var a2 = e2[i2], o2 = [], s2 = a2.Rect; 1670 if (a2.Rect && (a2.Rect = tt(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) { 1671 var u2 = et(a2); 1672 o2.push({ key: "AP", value: "<</N " + u2 + ">>" }), r3.internal.acroformPlugin.xForms.push(u2); 1673 } 1674 if (a2.appearanceStreamContent) { 1675 var c2 = ""; 1676 for (var l2 in a2.appearanceStreamContent) if (a2.appearanceStreamContent.hasOwnProperty(l2)) { 1677 var h2 = a2.appearanceStreamContent[l2]; 1678 if (c2 += "/" + l2 + " ", c2 += "<<", Object.keys(h2).length >= 1 || Array.isArray(h2)) { 1679 for (var i2 in h2) if (h2.hasOwnProperty(i2)) { 1680 var f2 = h2[i2]; 1681 "function" == typeof f2 && (f2 = f2.call(r3, a2)), c2 += "/" + i2 + " " + f2 + " ", r3.internal.acroformPlugin.xForms.indexOf(f2) >= 0 || r3.internal.acroformPlugin.xForms.push(f2); 1682 } 1683 } else "function" == typeof (f2 = h2) && (f2 = f2.call(r3, a2)), c2 += "/" + i2 + " " + f2, r3.internal.acroformPlugin.xForms.indexOf(f2) >= 0 || r3.internal.acroformPlugin.xForms.push(f2); 1684 c2 += ">>"; 1685 } 1686 o2.push({ key: "AP", value: "<<\n" + c2 + ">>" }); 1687 } 1688 r3.internal.putStream({ additionalKeyValues: o2, objectId: a2.objId }), r3.internal.out("endobj"); 1689 } 1690 n && function(e3, r4) { 1691 for (var n2 in e3) if (e3.hasOwnProperty(n2)) { 1692 var i3 = n2, a3 = e3[n2]; 1693 r4.internal.newObjectDeferredBegin(a3.objId, true), "object" === _typeof(a3) && "function" == typeof a3.putStream && a3.putStream(), delete e3[i3]; 1694 } 1695 }(r3.internal.acroformPlugin.xForms, r3); 1696 }
vendor: 12,118 bytes, lines 1696-1995
1696(r2, e); 1697 }), e.internal.acroformPlugin.isInitialized = true; 1698 } 1699}, st = R.__acroform__.arrayToPdfArray = function(e, r, n) { 1700 var i2 = function(t2) { 1701 return t2; 1702 }; 1703 if (Array.isArray(e)) { 1704 for (var a2 = "[", o2 = 0; o2 < e.length; o2++) switch (0 !== o2 && (a2 += " "), _typeof(e[o2])) { 1705 case "boolean": 1706 case "number": 1707 case "object": 1708 a2 += e[o2].toString(); 1709 break; 1710 case "string": 1711 "/" === e[o2].substr(0, 1) ? a2 += "/" + U(e[o2].substr(1)) : (void 0 !== r && n && (i2 = n.internal.getEncryptor(r)), a2 += "(" + T(i2(e[o2].toString())) + ")"); 1712 } 1713 return a2 + "]"; 1714 } 1715 throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray"); 1716}, ut = function(t2, e, r) { 1717 var n = function(t3) { 1718 return t3; 1719 }; 1720 return void 0 !== e && r && (n = r.internal.getEncryptor(e)), (t2 = t2 || "").toString(), "(" + T(n(t2)) + ")"; 1721}, ct = function() { 1722 this._objId = void 0, this._scope = void 0, Object.defineProperty(this, "objId", { get: function() { 1723 if (void 0 === this._objId) { 1724 if (void 0 === this.scope) return; 1725 this._objId = this.scope.internal.newObjectDeferred(); 1726 } 1727 return this._objId; 1728 }, set: function(t2) { 1729 this._objId = t2; 1730 } }), Object.defineProperty(this, "scope", { value: this._scope, writable: true }); 1731}; 1732ct.prototype.toString = function() { 1733 return this.objId + " 0 R"; 1734}, ct.prototype.putStream = function() { 1735 var t2 = this.getKeyValueListForStream(); 1736 this.scope.internal.putStream({ data: this.stream, additionalKeyValues: t2, objectId: this.objId }), this.scope.internal.out("endobj"); 1737}, ct.prototype.getKeyValueListForStream = function() { 1738 var t2 = [], e = Object.getOwnPropertyNames(this).filter(function(t3) { 1739 return "content" != t3 && "appearanceStreamContent" != t3 && "scope" != t3 && "objId" != t3 && "_" != t3.substring(0, 1); 1740 }); 1741 for (var r in e) if (false === Object.getOwnPropertyDescriptor(this, e[r]).configurable) { 1742 var n = e[r], i2 = this[n]; 1743 i2 && (Array.isArray(i2) ? t2.push({ key: n, value: st(i2, this.objId, this.scope) }) : i2 instanceof ct ? (i2.scope = this.scope, t2.push({ key: n, value: i2.objId + " 0 R" })) : "function" != typeof i2 && t2.push({ key: n, value: i2 })); 1744 } 1745 return t2; 1746}; 1747var lt = function() { 1748 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 }); 1749 var t2, e = []; 1750 Object.defineProperty(this, "BBox", { configurable: false, get: function() { 1751 return e; 1752 }, set: function(t3) { 1753 e = t3; 1754 } }), Object.defineProperty(this, "Resources", { value: "2 0 R", configurable: false, writable: true }), Object.defineProperty(this, "stream", { enumerable: false, configurable: true, set: function(e2) { 1755 t2 = e2.trim(); 1756 }, get: function() { 1757 return t2 || null; 1758 } }); 1759}; 1760V(lt, ct); 1761var ht = function() { 1762 ct.call(this); 1763 var t2, e = []; 1764 Object.defineProperty(this, "Kids", { enumerable: false, configurable: true, get: function() { 1765 return e.length > 0 ? e : void 0; 1766 } }), Object.defineProperty(this, "Fields", { enumerable: false, configurable: false, get: function() { 1767 return e; 1768 } }), Object.defineProperty(this, "DA", { enumerable: false, configurable: false, get: function() { 1769 if (t2) { 1770 var e2 = function(t3) { 1771 return t3; 1772 }; 1773 return this.scope && (e2 = this.scope.internal.getEncryptor(this.objId)), "(" + T(e2(t2)) + ")"; 1774 } 1775 }, set: function(e2) { 1776 t2 = e2; 1777 } }); 1778}; 1779V(ht, ct); 1780var ft = function t() { 1781 ct.call(this); 1782 var e = 4; 1783 Object.defineProperty(this, "F", { enumerable: false, configurable: false, get: function() { 1784 return e; 1785 }, set: function(t2) { 1786 if (isNaN(t2)) throw new Error('Invalid value "' + t2 + '" for attribute F supplied.'); 1787 e = t2; 1788 } }), Object.defineProperty(this, "showWhenPrinted", { enumerable: true, configurable: true, get: function() { 1789 return Boolean(Z(e, 3)); 1790 }, set: function(t2) { 1791 true === Boolean(t2) ? this.F = $(e, 3) : this.F = Q(e, 3); 1792 } }); 1793 var r = 0; 1794 Object.defineProperty(this, "Ff", { enumerable: false, configurable: false, get: function() { 1795 return r; 1796 }, set: function(t2) { 1797 if (isNaN(t2)) throw new Error('Invalid value "' + t2 + '" for attribute Ff supplied.'); 1798 r = t2; 1799 } }); 1800 var n = []; 1801 Object.defineProperty(this, "Rect", { enumerable: false, configurable: false, get: function() { 1802 if (0 !== n.length) return n; 1803 }, set: function(t2) { 1804 n = void 0 !== t2 ? t2 : []; 1805 } }), Object.defineProperty(this, "x", { enumerable: true, configurable: true, get: function() { 1806 return !n || isNaN(n[0]) ? 0 : n[0]; 1807 }, set: function(t2) { 1808 n[0] = t2; 1809 } }), Object.defineProperty(this, "y", { enumerable: true, configurable: true, get: function() { 1810 return !n || isNaN(n[1]) ? 0 : n[1]; 1811 }, set: function(t2) { 1812 n[1] = t2; 1813 } }), Object.defineProperty(this, "width", { enumerable: true, configurable: true, get: function() { 1814 return !n || isNaN(n[2]) ? 0 : n[2]; 1815 }, set: function(t2) { 1816 n[2] = t2; 1817 } }), Object.defineProperty(this, "height", { enumerable: true, configurable: true, get: function() { 1818 return !n || isNaN(n[3]) ? 0 : n[3]; 1819 }, set: function(t2) { 1820 n[3] = t2; 1821 } }); 1822 var i2 = ""; 1823 Object.defineProperty(this, "FT", { enumerable: true, configurable: false, get: function() { 1824 return i2; 1825 }, set: function(t2) { 1826 switch (t2) { 1827 case "/Btn": 1828 case "/Tx": 1829 case "/Ch": 1830 case "/Sig": 1831 i2 = t2; 1832 break; 1833 default: 1834 throw new Error('Invalid value "' + t2 + '" for attribute FT supplied.'); 1835 } 1836 } }); 1837 var a2 = null; 1838 Object.defineProperty(this, "T", { enumerable: true, configurable: false, get: function() { 1839 if (!a2 || a2.length < 1) { 1840 if (this instanceof wt) return; 1841 a2 = "FieldObject" + t.FieldNum++; 1842 } 1843 var e2 = function(t2) { 1844 return t2; 1845 }; 1846 return this.scope && (e2 = this.scope.internal.getEncryptor(this.objId)), "(" + T(e2(a2)) + ")"; 1847 }, set: function(t2) { 1848 a2 = t2.toString(); 1849 } }), Object.defineProperty(this, "fieldName", { configurable: true, enumerable: true, get: function() { 1850 return a2; 1851 }, set: function(t2) { 1852 a2 = t2; 1853 } }); 1854 var o2 = "helvetica"; 1855 Object.defineProperty(this, "fontName", { enumerable: true, configurable: true, get: function() { 1856 return o2; 1857 }, set: function(t2) { 1858 o2 = t2; 1859 } }); 1860 var s2 = "normal"; 1861 Object.defineProperty(this, "fontStyle", { enumerable: true, configurable: true, get: function() { 1862 return s2; 1863 }, set: function(t2) { 1864 s2 = t2; 1865 } }); 1866 var u2 = 0; 1867 Object.defineProperty(this, "fontSize", { enumerable: true, configurable: true, get: function() { 1868 return u2; 1869 }, set: function(t2) { 1870 u2 = t2; 1871 } }); 1872 var c2 = void 0; 1873 Object.defineProperty(this, "maxFontSize", { enumerable: true, configurable: true, get: function() { 1874 return void 0 === c2 ? 50 / D : c2; 1875 }, set: function(t2) { 1876 c2 = t2; 1877 } }); 1878 var l2 = "black"; 1879 Object.defineProperty(this, "color", { enumerable: true, configurable: true, get: function() { 1880 return l2; 1881 }, set: function(t2) { 1882 l2 = t2; 1883 } }); 1884 var h2 = "/F1 0 Tf 0 g"; 1885 Object.defineProperty(this, "DA", { enumerable: true, configurable: false, get: function() { 1886 if (!(!h2 || this instanceof wt || this instanceof Lt)) return ut(h2, this.objId, this.scope); 1887 }, set: function(t2) { 1888 t2 = t2.toString(), h2 = t2; 1889 } }); 1890 var f2 = null; 1891 Object.defineProperty(this, "DV", { enumerable: false, configurable: false, get: function() { 1892 if (f2) return this instanceof vt == 0 ? ut(f2, this.objId, this.scope) : f2; 1893 }, set: function(t2) { 1894 t2 = t2.toString(), f2 = this instanceof vt == 0 ? "(" === t2.substr(0, 1) ? z(t2.substr(1, t2.length - 2)) : z(t2) : t2; 1895 } }), Object.defineProperty(this, "defaultValue", { enumerable: true, configurable: true, get: function() { 1896 return this instanceof vt == 1 ? z(f2.substr(1, f2.length - 1)) : f2; 1897 }, set: function(t2) { 1898 t2 = t2.toString(), f2 = this instanceof vt == 1 ? "/" + U(t2) : t2; 1899 } }); 1900 var d2 = null; 1901 Object.defineProperty(this, "_V", { enumerable: false, configurable: false, get: function() { 1902 if (d2) return d2; 1903 }, set: function(t2) { 1904 this.V = t2; 1905 } }), Object.defineProperty(this, "V", { enumerable: false, configurable: false, get: function() { 1906 if (d2) return this instanceof vt == 0 ? ut(d2, this.objId, this.scope) : d2; 1907 }, set: function(t2) { 1908 t2 = t2.toString(), d2 = this instanceof vt == 0 ? "(" === t2.substr(0, 1) ? z(t2.substr(1, t2.length - 2)) : z(t2) : t2; 1909 } }), Object.defineProperty(this, "value", { enumerable: true, configurable: true, get: function() { 1910 return this instanceof vt == 1 ? z(d2.substr(1, d2.length - 1)) : d2; 1911 }, set: function(t2) { 1912 t2 = t2.toString(), d2 = this instanceof vt == 1 ? "/" + U(t2) : t2; 1913 } }), Object.defineProperty(this, "hasAnnotation", { enumerable: true, configurable: true, get: function() { 1914 return this.Rect; 1915 } }), Object.defineProperty(this, "Type", { enumerable: true, configurable: false, get: function() { 1916 return this.hasAnnotation ? "/Annot" : null; 1917 } }), Object.defineProperty(this, "Subtype", { enumerable: true, configurable: false, get: function() { 1918 return this.hasAnnotation ? "/Widget" : null; 1919 } }); 1920 var p2, g2 = false; 1921 Object.defineProperty(this, "hasAppearanceStream", { enumerable: true, configurable: true, get: function() { 1922 return g2; 1923 }, set: function(t2) { 1924 t2 = Boolean(t2), g2 = t2; 1925 } }), Object.defineProperty(this, "page", { enumerable: true, configurable: true, get: function() { 1926 if (p2) return p2; 1927 }, set: function(t2) { 1928 p2 = t2; 1929 } }), Object.defineProperty(this, "readOnly", { enumerable: true, configurable: true, get: function() { 1930 return Boolean(Z(this.Ff, 1)); 1931 }, set: function(t2) { 1932 true === Boolean(t2) ? this.Ff = $(this.Ff, 1) : this.Ff = Q(this.Ff, 1); 1933 } }), Object.defineProperty(this, "required", { enumerable: true, configurable: true, get: function() { 1934 return Boolean(Z(this.Ff, 2)); 1935 }, set: function(t2) { 1936 true === Boolean(t2) ? this.Ff = $(this.Ff, 2) : this.Ff = Q(this.Ff, 2); 1937 } }), Object.defineProperty(this, "noExport", { enumerable: true, configurable: true, get: function() { 1938 return Boolean(Z(this.Ff, 3)); 1939 }, set: function(t2) { 1940 true === Boolean(t2) ? this.Ff = $(this.Ff, 3) : this.Ff = Q(this.Ff, 3); 1941 } }); 1942 var m2 = null; 1943 Object.defineProperty(this, "Q", { enumerable: true, configurable: false, get: function() { 1944 if (null !== m2) return m2; 1945 }, set: function(t2) { 1946 if (-1 === [0, 1, 2].indexOf(t2)) throw new Error('Invalid value "' + t2 + '" for attribute Q supplied.'); 1947 m2 = t2; 1948 } }), Object.defineProperty(this, "textAlign", { get: function() { 1949 var t2; 1950 switch (m2) { 1951 case 0: 1952 default: 1953 t2 = "left"; 1954 break; 1955 case 1: 1956 t2 = "center"; 1957 break; 1958 case 2: 1959 t2 = "right"; 1960 } 1961 return t2; 1962 }, configurable: true, enumerable: true, set: function(t2) { 1963 switch (t2) { 1964 case "right": 1965 case 2: 1966 m2 = 2; 1967 break; 1968 case "center": 1969 case 1: 1970 m2 = 1; 1971 break; 1972 default: 1973 m2 = 0; 1974 } 1975 } }); 1976}; 1977V(ft, ct); 1978var dt = function() { 1979 ft.call(this), this.FT = "/Ch", this.V = "()", this.fontName = "zapfdingbats"; 1980 var t2 = 0; 1981 Object.defineProperty(this, "TI", { enumerable: true, configurable: false, get: function() { 1982 return t2; 1983 }, set: function(e2) { 1984 t2 = e2; 1985 } }), Object.defineProperty(this, "topIndex", { enumerable: true, configurable: true, get: function() { 1986 return t2; 1987 }, set: function(e2) { 1988 t2 = e2; 1989 } }); 1990 var e = []; 1991 Object.defineProperty(this, "Opt", { enumerable: true, configurable: false, get: function() { 1992 return st(e, this.objId, this.scope); 1993 }, set: function(t3) { 1994 var r, n; 1995 n = [], "string" == typeof (r = t3) && (n =
1995function(t4, e2, r2) { 1996 r2 || (r2 = 1); 1997 for (var n2, i2 = []; n2 = e2.exec(t4); ) i2.push(n2[r2]); 1998 return i2; 1999 }
vendor: 18,188 bytes, lines 1999-2289
1999(r, /\((.*?)\)/g)), e = n; 2000 } }), this.getOptions = function() { 2001 return e; 2002 }, this.setOptions = function(t3) { 2003 e = t3, this.sort && e.sort(); 2004 }, this.addOption = function(t3) { 2005 t3 = (t3 = t3 || "").toString(), e.push(t3), this.sort && e.sort(); 2006 }, this.removeOption = function(t3, r) { 2007 for (r = r || false, t3 = (t3 = t3 || "").toString(); -1 !== e.indexOf(t3) && (e.splice(e.indexOf(t3), 1), false !== r); ) ; 2008 }, Object.defineProperty(this, "combo", { enumerable: true, configurable: true, get: function() { 2009 return Boolean(Z(this.Ff, 18)); 2010 }, set: function(t3) { 2011 true === Boolean(t3) ? this.Ff = $(this.Ff, 18) : this.Ff = Q(this.Ff, 18); 2012 } }), Object.defineProperty(this, "edit", { enumerable: true, configurable: true, get: function() { 2013 return Boolean(Z(this.Ff, 19)); 2014 }, set: function(t3) { 2015 true === this.combo && (true === Boolean(t3) ? this.Ff = $(this.Ff, 19) : this.Ff = Q(this.Ff, 19)); 2016 } }), Object.defineProperty(this, "sort", { enumerable: true, configurable: true, get: function() { 2017 return Boolean(Z(this.Ff, 20)); 2018 }, set: function(t3) { 2019 true === Boolean(t3) ? (this.Ff = $(this.Ff, 20), e.sort()) : this.Ff = Q(this.Ff, 20); 2020 } }), Object.defineProperty(this, "multiSelect", { enumerable: true, configurable: true, get: function() { 2021 return Boolean(Z(this.Ff, 22)); 2022 }, set: function(t3) { 2023 true === Boolean(t3) ? this.Ff = $(this.Ff, 22) : this.Ff = Q(this.Ff, 22); 2024 } }), Object.defineProperty(this, "doNotSpellCheck", { enumerable: true, configurable: true, get: function() { 2025 return Boolean(Z(this.Ff, 23)); 2026 }, set: function(t3) { 2027 true === Boolean(t3) ? this.Ff = $(this.Ff, 23) : this.Ff = Q(this.Ff, 23); 2028 } }), Object.defineProperty(this, "commitOnSelChange", { enumerable: true, configurable: true, get: function() { 2029 return Boolean(Z(this.Ff, 27)); 2030 }, set: function(t3) { 2031 true === Boolean(t3) ? this.Ff = $(this.Ff, 27) : this.Ff = Q(this.Ff, 27); 2032 } }), this.hasAppearanceStream = false; 2033}; 2034V(dt, ft); 2035var pt = function() { 2036 dt.call(this), this.fontName = "helvetica", this.combo = false; 2037}; 2038V(pt, dt); 2039var gt = function() { 2040 pt.call(this), this.combo = true; 2041}; 2042V(gt, pt); 2043var mt = function() { 2044 gt.call(this), this.edit = true; 2045}; 2046V(mt, gt); 2047var vt = function() { 2048 ft.call(this), this.FT = "/Btn", Object.defineProperty(this, "noToggleToOff", { enumerable: true, configurable: true, get: function() { 2049 return Boolean(Z(this.Ff, 15)); 2050 }, set: function(t2) { 2051 true === Boolean(t2) ? this.Ff = $(this.Ff, 15) : this.Ff = Q(this.Ff, 15); 2052 } }), Object.defineProperty(this, "radio", { enumerable: true, configurable: true, get: function() { 2053 return Boolean(Z(this.Ff, 16)); 2054 }, set: function(t2) { 2055 true === Boolean(t2) ? this.Ff = $(this.Ff, 16) : this.Ff = Q(this.Ff, 16); 2056 } }), Object.defineProperty(this, "pushButton", { enumerable: true, configurable: true, get: function() { 2057 return Boolean(Z(this.Ff, 17)); 2058 }, set: function(t2) { 2059 true === Boolean(t2) ? this.Ff = $(this.Ff, 17) : this.Ff = Q(this.Ff, 17); 2060 } }), Object.defineProperty(this, "radioIsUnison", { enumerable: true, configurable: true, get: function() { 2061 return Boolean(Z(this.Ff, 26)); 2062 }, set: function(t2) { 2063 true === Boolean(t2) ? this.Ff = $(this.Ff, 26) : this.Ff = Q(this.Ff, 26); 2064 } }); 2065 var e, r = {}; 2066 Object.defineProperty(this, "MK", { enumerable: false, configurable: false, get: function() { 2067 var t2 = function(t3) { 2068 return t3; 2069 }; 2070 if (this.scope && (t2 = this.scope.internal.getEncryptor(this.objId)), 0 !== Object.keys(r).length) { 2071 var e2, n = []; 2072 for (e2 in n.push("<<"), r) n.push("/" + e2 + " (" + T(t2(r[e2])) + ")"); 2073 return n.push(">>"), n.join("\n"); 2074 } 2075 }, set: function(e2) { 2076 "object" === _typeof(e2) && (r = e2); 2077 } }), Object.defineProperty(this, "caption", { enumerable: true, configurable: true, get: function() { 2078 return r.CA || ""; 2079 }, set: function(t2) { 2080 "string" == typeof t2 && (r.CA = t2); 2081 } }), Object.defineProperty(this, "AS", { enumerable: false, configurable: false, get: function() { 2082 return e; 2083 }, set: function(t2) { 2084 var r2 = null == t2 ? "" : t2.toString(); 2085 "/" === r2.substr(0, 1) && (r2 = r2.substr(1)), e = "/" + U(r2); 2086 } }), Object.defineProperty(this, "appearanceState", { enumerable: true, configurable: true, get: function() { 2087 return e.substr(1, e.length - 1); 2088 }, set: function(t2) { 2089 e = "/" + U(t2); 2090 } }); 2091}; 2092V(vt, ft); 2093var bt = function() { 2094 vt.call(this), this.pushButton = true; 2095}; 2096V(bt, vt); 2097var yt = function() { 2098 vt.call(this), this.radio = true, this.pushButton = false; 2099 var t2 = []; 2100 Object.defineProperty(this, "Kids", { enumerable: true, configurable: false, get: function() { 2101 return t2; 2102 }, set: function(e) { 2103 t2 = void 0 !== e ? e : []; 2104 } }); 2105}; 2106V(yt, vt); 2107var wt = function() { 2108 var e, r; 2109 ft.call(this), Object.defineProperty(this, "Parent", { enumerable: false, configurable: false, get: function() { 2110 return e; 2111 }, set: function(t2) { 2112 e = t2; 2113 } }), Object.defineProperty(this, "optionName", { enumerable: false, configurable: true, get: function() { 2114 return r; 2115 }, set: function(t2) { 2116 r = t2; 2117 } }); 2118 var n, i2 = {}; 2119 Object.defineProperty(this, "MK", { enumerable: false, configurable: false, get: function() { 2120 var t2 = function(t3) { 2121 return t3; 2122 }; 2123 this.scope && (t2 = this.scope.internal.getEncryptor(this.objId)); 2124 var e2, r2 = []; 2125 for (e2 in r2.push("<<"), i2) r2.push("/" + e2 + " (" + T(t2(i2[e2])) + ")"); 2126 return r2.push(">>"), r2.join("\n"); 2127 }, set: function(e2) { 2128 "object" === _typeof(e2) && (i2 = e2); 2129 } }), Object.defineProperty(this, "caption", { enumerable: true, configurable: true, get: function() { 2130 return i2.CA || ""; 2131 }, set: function(t2) { 2132 "string" == typeof t2 && (i2.CA = t2); 2133 } }), Object.defineProperty(this, "AS", { enumerable: false, configurable: false, get: function() { 2134 return n; 2135 }, set: function(t2) { 2136 var e2 = null == t2 ? "" : t2.toString(); 2137 "/" === e2.substr(0, 1) && (e2 = e2.substr(1)), n = "/" + U(e2); 2138 } }), Object.defineProperty(this, "appearanceState", { enumerable: true, configurable: true, get: function() { 2139 return n.substr(1, n.length - 1); 2140 }, set: function(t2) { 2141 var e2 = null == t2 ? "" : t2.toString(); 2142 "/" === e2.substr(0, 1) && (e2 = e2.substr(1)), n = "/" + U(e2); 2143 } }), this.caption = "l", this.appearanceState = "Off", this._AppearanceType = At.RadioButton.Circle, this.appearanceStreamContent = this._AppearanceType.createAppearanceStream(this.optionName); 2144}; 2145V(wt, ft), yt.prototype.setAppearance = function(t2) { 2146 if (!("createAppearanceStream" in t2) || !("getCA" in t2)) throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!"); 2147 for (var e in this.Kids) if (this.Kids.hasOwnProperty(e)) { 2148 var r = this.Kids[e]; 2149 r.appearanceStreamContent = t2.createAppearanceStream(r.optionName), r.caption = t2.getCA(); 2150 } 2151}, yt.prototype.createOption = function(t2) { 2152 var e = new wt(); 2153 return e.Parent = this, e.optionName = t2, this.Kids.push(e), St.call(this.scope, e), e; 2154}; 2155var Nt = function() { 2156 vt.call(this), this.fontName = "zapfdingbats", this.caption = "3", this.appearanceState = "On", this.value = "On", this.textAlign = "center", this.appearanceStreamContent = At.CheckBox.createAppearanceStream(); 2157}; 2158V(Nt, vt); 2159var Lt = function() { 2160 ft.call(this), this.FT = "/Tx", Object.defineProperty(this, "multiline", { enumerable: true, configurable: true, get: function() { 2161 return Boolean(Z(this.Ff, 13)); 2162 }, set: function(t3) { 2163 true === Boolean(t3) ? this.Ff = $(this.Ff, 13) : this.Ff = Q(this.Ff, 13); 2164 } }), Object.defineProperty(this, "fileSelect", { enumerable: true, configurable: true, get: function() { 2165 return Boolean(Z(this.Ff, 21)); 2166 }, set: function(t3) { 2167 true === Boolean(t3) ? this.Ff = $(this.Ff, 21) : this.Ff = Q(this.Ff, 21); 2168 } }), Object.defineProperty(this, "doNotSpellCheck", { enumerable: true, configurable: true, get: function() { 2169 return Boolean(Z(this.Ff, 23)); 2170 }, set: function(t3) { 2171 true === Boolean(t3) ? this.Ff = $(this.Ff, 23) : this.Ff = Q(this.Ff, 23); 2172 } }), Object.defineProperty(this, "doNotScroll", { enumerable: true, configurable: true, get: function() { 2173 return Boolean(Z(this.Ff, 24)); 2174 }, set: function(t3) { 2175 true === Boolean(t3) ? this.Ff = $(this.Ff, 24) : this.Ff = Q(this.Ff, 24); 2176 } }), Object.defineProperty(this, "comb", { enumerable: true, configurable: true, get: function() { 2177 return Boolean(Z(this.Ff, 25)); 2178 }, set: function(t3) { 2179 true === Boolean(t3) ? this.Ff = $(this.Ff, 25) : this.Ff = Q(this.Ff, 25); 2180 } }), Object.defineProperty(this, "richText", { enumerable: true, configurable: true, get: function() { 2181 return Boolean(Z(this.Ff, 26)); 2182 }, set: function(t3) { 2183 true === Boolean(t3) ? this.Ff = $(this.Ff, 26) : this.Ff = Q(this.Ff, 26); 2184 } }); 2185 var t2 = null; 2186 Object.defineProperty(this, "MaxLen", { enumerable: true, configurable: false, get: function() { 2187 return t2; 2188 }, set: function(e) { 2189 t2 = e; 2190 } }), Object.defineProperty(this, "maxLength", { enumerable: true, configurable: true, get: function() { 2191 return t2; 2192 }, set: function(e) { 2193 Number.isInteger(e) && (t2 = e); 2194 } }), Object.defineProperty(this, "hasAppearanceStream", { enumerable: true, configurable: true, get: function() { 2195 return this.V || this.DV; 2196 } }); 2197}; 2198V(Lt, ft); 2199var xt = function() { 2200 Lt.call(this), Object.defineProperty(this, "password", { enumerable: true, configurable: true, get: function() { 2201 return Boolean(Z(this.Ff, 14)); 2202 }, set: function(t2) { 2203 true === Boolean(t2) ? this.Ff = $(this.Ff, 14) : this.Ff = Q(this.Ff, 14); 2204 } }), this.password = true; 2205}; 2206V(xt, Lt); 2207var At = { CheckBox: { createAppearanceStream: function() { 2208 return { N: { On: At.CheckBox.YesNormal }, D: { On: At.CheckBox.YesPushDown, Off: At.CheckBox.OffPushDown } }; 2209}, YesPushDown: function(t2) { 2210 var e = Y(t2); 2211 e.scope = t2.scope; 2212 var r = [], n = t2.scope.internal.getFont(t2.fontName, t2.fontStyle).id, i2 = t2.scope.__private__.encodeColorString(t2.color), a2 = rt(t2, t2.caption); 2213 return r.push("0.749023 g"), r.push("0 0 " + H(At.internal.getWidth(t2)) + " " + H(At.internal.getHeight(t2)) + " re"), r.push("f"), r.push("BMC"), r.push("q"), r.push("0 0 1 rg"), r.push("/" + n + " " + H(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; 2214}, YesNormal: function(t2) { 2215 var e = Y(t2); 2216 e.scope = t2.scope; 2217 var r = t2.scope.internal.getFont(t2.fontName, t2.fontStyle).id, n = t2.scope.__private__.encodeColorString(t2.color), i2 = [], a2 = At.internal.getHeight(t2), o2 = At.internal.getWidth(t2), s2 = rt(t2, t2.caption); 2218 return i2.push("1 g"), i2.push("0 0 " + H(o2) + " " + H(a2) + " re"), i2.push("f"), i2.push("q"), i2.push("0 0 1 rg"), i2.push("0 0 " + H(o2 - 1) + " " + H(a2 - 1) + " re"), i2.push("W"), i2.push("n"), i2.push("0 g"), i2.push("BT"), i2.push("/" + r + " " + H(s2.fontSize) + " Tf " + n), i2.push(s2.text), i2.push("ET"), i2.push("Q"), e.stream = i2.join("\n"), e; 2219}, OffPushDown: function(t2) { 2220 var e = Y(t2); 2221 e.scope = t2.scope; 2222 var r = []; 2223 return r.push("0.749023 g"), r.push("0 0 " + H(At.internal.getWidth(t2)) + " " + H(At.internal.getHeight(t2)) + " re"), r.push("f"), e.stream = r.join("\n"), e; 2224} }, RadioButton: { Circle: { createAppearanceStream: function(t2) { 2225 var e = { D: { Off: At.RadioButton.Circle.OffPushDown }, N: {} }; 2226 return e.N[t2] = At.RadioButton.Circle.YesNormal, e.D[t2] = At.RadioButton.Circle.YesPushDown, e; 2227}, getCA: function() { 2228 return "l"; 2229}, YesNormal: function(t2) { 2230 var e = Y(t2); 2231 e.scope = t2.scope; 2232 var r = [], n = At.internal.getWidth(t2) <= At.internal.getHeight(t2) ? At.internal.getWidth(t2) / 4 : At.internal.getHeight(t2) / 4; 2233 n = Number((0.9 * n).toFixed(5)); 2234 var i2 = At.internal.Bezier_C, a2 = Number((n * i2).toFixed(5)); 2235 return r.push("q"), r.push("1 0 0 1 " + W(At.internal.getWidth(t2) / 2) + " " + W(At.internal.getHeight(t2) / 2) + " cm"), r.push(n + " 0 m"), r.push(n + " " + a2 + " " + a2 + " " + n + " 0 " + n + " c"), r.push("-" + a2 + " " + n + " -" + n + " " + a2 + " -" + n + " 0 c"), r.push("-" + n + " -" + a2 + " -" + a2 + " -" + n + " 0 -" + n + " c"), r.push(a2 + " -" + n + " " + n + " -" + a2 + " " + n + " 0 c"), r.push("f"), r.push("Q"), e.stream = r.join("\n"), e; 2236}, YesPushDown: function(t2) { 2237 var e = Y(t2); 2238 e.scope = t2.scope; 2239 var r = [], n = At.internal.getWidth(t2) <= At.internal.getHeight(t2) ? At.internal.getWidth(t2) / 4 : At.internal.getHeight(t2) / 4; 2240 n = Number((0.9 * n).toFixed(5)); 2241 var i2 = Number((2 * n).toFixed(5)), a2 = Number((i2 * At.internal.Bezier_C).toFixed(5)), o2 = Number((n * At.internal.Bezier_C).toFixed(5)); 2242 return r.push("0.749023 g"), r.push("q"), r.push("1 0 0 1 " + W(At.internal.getWidth(t2) / 2) + " " + W(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 " + W(At.internal.getWidth(t2) / 2) + " " + W(At.internal.getHeight(t2) / 2) + " cm"), r.push(n + " 0 m"), r.push(n + " " + o2 + " " + o2 + " " + n + " 0 " + n + " c"), r.push("-" + o2 + " " + n + " -" + n + " " + o2 + " -" + n + " 0 c"), r.push("-" + n + " -" + o2 + " -" + o2 + " -" + n + " 0 -" + n + " c"), r.push(o2 + " -" + n + " " + n + " -" + o2 + " " + n + " 0 c"), r.push("f"), r.push("Q"), e.stream = r.join("\n"), e; 2243}, OffPushDown: function(t2) { 2244 var e = Y(t2); 2245 e.scope = t2.scope; 2246 var r = [], n = At.internal.getWidth(t2) <= At.internal.getHeight(t2) ? At.internal.getWidth(t2) / 4 : At.internal.getHeight(t2) / 4; 2247 n = Number((0.9 * n).toFixed(5)); 2248 var i2 = Number((2 * n).toFixed(5)), a2 = Number((i2 * At.internal.Bezier_C).toFixed(5)); 2249 return r.push("0.749023 g"), r.push("q"), r.push("1 0 0 1 " + W(At.internal.getWidth(t2) / 2) + " " + W(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; 2250} }, Cross: { createAppearanceStream: function(t2) { 2251 var e = { D: { Off: At.RadioButton.Cross.OffPushDown }, N: {} }; 2252 return e.N[t2] = At.RadioButton.Cross.YesNormal, e.D[t2] = At.RadioButton.Cross.YesPushDown, e; 2253}, getCA: function() { 2254 return "8"; 2255}, YesNormal: function(t2) { 2256 var e = Y(t2); 2257 e.scope = t2.scope; 2258 var r = [], n = At.internal.calculateCross(t2); 2259 return r.push("q"), r.push("1 1 " + H(At.internal.getWidth(t2) - 2) + " " + H(At.internal.getHeight(t2) - 2) + " re"), r.push("W"), r.push("n"), r.push(H(n.x1.x) + " " + H(n.x1.y) + " m"), r.push(H(n.x2.x) + " " + H(n.x2.y) + " l"), r.push(H(n.x4.x) + " " + H(n.x4.y) + " m"), r.push(H(n.x3.x) + " " + H(n.x3.y) + " l"), r.push("s"), r.push("Q"), e.stream = r.join("\n"), e; 2260}, YesPushDown: function(t2) { 2261 var e = Y(t2); 2262 e.scope = t2.scope; 2263 var r = At.internal.calculateCross(t2), n = []; 2264 return n.push("0.749023 g"), n.push("0 0 " + H(At.internal.getWidth(t2)) + " " + H(At.internal.getHeight(t2)) + " re"), n.push("f"), n.push("q"), n.push("1 1 " + H(At.internal.getWidth(t2) - 2) + " " + H(At.internal.getHeight(t2) - 2) + " re"), n.push("W"), n.push("n"), n.push(H(r.x1.x) + " " + H(r.x1.y) + " m"), n.push(H(r.x2.x) + " " + H(r.x2.y) + " l"), n.push(H(r.x4.x) + " " + H(r.x4.y) + " m"), n.push(H(r.x3.x) + " " + H(r.x3.y) + " l"), n.push("s"), n.push("Q"), e.stream = n.join("\n"), e; 2265}, OffPushDown: function(t2) { 2266 var e = Y(t2); 2267 e.scope = t2.scope; 2268 var r = []; 2269 return r.push("0.749023 g"), r.push("0 0 " + H(At.internal.getWidth(t2)) + " " + H(At.internal.getHeight(t2)) + " re"), r.push("f"), e.stream = r.join("\n"), e; 2270} } }, createDefaultAppearanceStream: function(t2) { 2271 var e = t2.scope.internal.getFont(t2.fontName, t2.fontStyle).id, r = t2.scope.__private__.encodeColorString(t2.color); 2272 return "/" + e + " " + t2.fontSize + " Tf " + r; 2273} }; 2274At.internal = { Bezier_C: 0.551915024494, calculateCross: function(t2) { 2275 var e = At.internal.getWidth(t2), r = At.internal.getHeight(t2), n = Math.min(e, r); 2276 return { x1: { x: (e - n) / 2, y: (r - n) / 2 + n }, x2: { x: (e - n) / 2 + n, y: (r - n) / 2 }, x3: { x: (e - n) / 2, y: (r - n) / 2 }, x4: { x: (e - n) / 2 + n, y: (r - n) / 2 + n } }; 2277} }, At.internal.getWidth = function(e) { 2278 var r = 0; 2279 return "object" === _typeof(e) && (r = G(e.Rect[2])), r; 2280}, At.internal.getHeight = function(e) { 2281 var r = 0; 2282 return "object" === _typeof(e) && (r = G(e.Rect[3])), r; 2283}; 2284var St = R.addField = function(t2) { 2285 if (ot(this, t2), !(t2 instanceof ft)) throw new Error("Invalid argument passed to jsPDF.addField."); 2286 var e; 2287 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; 2288}; 2289R.AcroFormChoiceField = dt, R.AcroFormListBox = pt, R.AcroFormComboBox = gt, R.AcroFormEditBox = mt, R.AcroFormButton = vt, R.AcroFormPushButton = bt, R.AcroFormRadioButton = yt, R.AcroFormCheckBox = Nt, R.AcroFormTextField = Lt, R.AcroFormPasswordField = xt, R.AcroFormAppearance = At, R.AcroForm = { ChoiceField: dt, ListBox: pt, ComboBox: gt, EditBox: mt, Button: vt, PushButton: bt, RadioButton: yt, CheckBox: Nt, TextField: Lt, PasswordField: xt, Appearance: At }, E.AcroForm = { ChoiceField: dt, ListBox: pt, ComboBox: gt, EditBox: mt, Button: vt, PushButton: bt, RadioButton: yt, CheckBox: Nt, TextField: Lt, PasswordField: xt, Appearance: At };
2290var _t = E.AcroForm; 2291function Pt(t2) { 2292 return t2.reduce(function(t3, e, r) { 2293 return t3[e] = r, t3; 2294 }, {}); 2295} 2296!
vendor: 10,920 bytes, lines 2296-2445
2296function(e) { 2297 var r = "addImage_"; 2298 e.__addimage__ = {}; 2299 var n = "UNKNOWN", i2 = { 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]] }, a2 = e.__addimage__.getImageFileTypeByImageData = function(t2, e2) { 2300 var r2, a3, o3, s3, u3, c3 = n; 2301 if ("RGBA" === (e2 = e2 || n) || void 0 !== t2.data && t2.data instanceof Uint8ClampedArray && "height" in t2 && "width" in t2) return "RGBA"; 2302 if (A2(t2)) for (u3 in i2) for (o3 = i2[u3], r2 = 0; r2 < o3.length; r2 += 1) { 2303 for (s3 = true, a3 = 0; a3 < o3[r2].length; a3 += 1) if (void 0 !== o3[r2][a3] && o3[r2][a3] !== t2[a3]) { 2304 s3 = false; 2305 break; 2306 } 2307 if (true === s3) { 2308 c3 = u3; 2309 break; 2310 } 2311 } 2312 else for (u3 in i2) for (o3 = i2[u3], r2 = 0; r2 < o3.length; r2 += 1) { 2313 for (s3 = true, a3 = 0; a3 < o3[r2].length; a3 += 1) if (void 0 !== o3[r2][a3] && o3[r2][a3] !== t2.charCodeAt(a3)) { 2314 s3 = false; 2315 break; 2316 } 2317 if (true === s3) { 2318 c3 = u3; 2319 break; 2320 } 2321 } 2322 return c3 === n && e2 !== n && (c3 = e2), c3; 2323 }, o2 = function t2(e2) { 2324 for (var r2 = this.internal.write, n2 = this.internal.putStream, i3 = (0, this.internal.getFilters)(); -1 !== i3.indexOf("FlateEncode"); ) i3.splice(i3.indexOf("FlateEncode"), 1); 2325 e2.objectId = this.internal.newObject(); 2326 var a3 = []; 2327 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 === y2.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 === y2.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) && e2.transparency.length > 0) { 2328 for (var o3 = "", s3 = 0, u3 = e2.transparency.length; s3 < u3; s3++) o3 += e2.transparency[s3] + " " + e2.transparency[s3] + " "; 2329 a3.push({ key: "Mask", value: "[" + o3 + "]" }); 2330 } 2331 void 0 !== e2.sMask && a3.push({ key: "SMask", value: e2.objectId + 1 + " 0 R" }); 2332 var c3 = void 0 !== e2.filter ? ["/" + e2.filter] : void 0; 2333 if (n2({ data: e2.data, additionalKeyValues: a3, alreadyAppliedFilters: c3, objectId: e2.objectId }), r2("endobj"), "sMask" in e2 && void 0 !== e2.sMask) { 2334 var l3, h3 = null !== (l3 = e2.sMaskBitsPerComponent) && void 0 !== l3 ? l3 : e2.bitsPerComponent, f2 = { width: e2.width, height: e2.height, colorSpace: "DeviceGray", bitsPerComponent: h3, data: e2.sMask }; 2335 "filter" in e2 && (f2.decodeParameters = "/Predictor ".concat(e2.predictor, " /Colors 1 /BitsPerComponent ").concat(h3, " /Columns ").concat(e2.width), f2.filter = e2.filter), t2.call(this, f2); 2336 } 2337 if (e2.colorSpace === y2.INDEXED) { 2338 var d3 = this.internal.newObject(); 2339 n2({ data: _2(new Uint8Array(e2.palette)), objectId: d3 }), r2("endobj"); 2340 } 2341 }, s2 = function() { 2342 var t2 = this.internal.collections[r + "images"]; 2343 for (var e2 in t2) o2.call(this, t2[e2]); 2344 }, u2 = function() { 2345 var t2, e2 = this.internal.collections[r + "images"], n2 = this.internal.write; 2346 for (var i3 in e2) n2("/I" + (t2 = e2[i3]).index, t2.objectId, "0", "R"); 2347 }, c2 = function() { 2348 this.internal.collections[r + "images"] || (this.internal.collections[r + "images"] = {}, this.internal.events.subscribe("putResources", s2), this.internal.events.subscribe("putXobjectDict", u2)); 2349 }, l2 = function() { 2350 var t2 = this.internal.collections[r + "images"]; 2351 return c2.call(this), t2; 2352 }, h2 = function() { 2353 return Object.keys(this.internal.collections[r + "images"]).length; 2354 }, d2 = function(t2) { 2355 return "function" == typeof e["process" + t2.toUpperCase()]; 2356 }, p2 = function(e2) { 2357 return "object" === _typeof(e2) && 1 === e2.nodeType; 2358 }, g2 = function(t2, r2) { 2359 if ("IMG" === t2.nodeName && t2.hasAttribute("src")) { 2360 var n2 = "" + t2.getAttribute("src"); 2361 if (0 === n2.indexOf("data:image/")) return f(unescape(n2).split("base64,").pop()); 2362 var i3 = e.loadFile(n2, true); 2363 if (void 0 !== i3) return i3; 2364 } 2365 if ("CANVAS" === t2.nodeName) { 2366 if (0 === t2.width || 0 === t2.height) throw new Error("Given canvas must have data. Canvas width: " + t2.width + ", height: " + t2.height); 2367 var a3; 2368 switch (r2) { 2369 case "PNG": 2370 a3 = "image/png"; 2371 break; 2372 case "WEBP": 2373 a3 = "image/webp"; 2374 break; 2375 default: 2376 a3 = "image/jpeg"; 2377 } 2378 return f(t2.toDataURL(a3, 1).split("base64,").pop()); 2379 } 2380 }, m2 = function(t2) { 2381 var e2 = this.internal.collections[r + "images"]; 2382 if (e2) { 2383 for (var n2 in e2) if (t2 === e2[n2].alias) return e2[n2]; 2384 } 2385 }, v2 = function(t2, e2, r2) { 2386 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]; 2387 }, b2 = function(t2, e2, r2, n2, i3, a3) { 2388 var o3 = v2.call(this, r2, n2, i3), s3 = this.internal.getCoordinateString, u3 = this.internal.getVerticalCoordinateString, c3 = l2.call(this); 2389 if (r2 = o3[0], n2 = o3[1], c3[i3.index] = i3, a3) { 2390 a3 *= Math.PI / 180; 2391 var h3 = Math.cos(a3), f2 = Math.sin(a3), d3 = function(t3) { 2392 return t3.toFixed(4); 2393 }, p3 = [d3(h3), d3(f2), d3(-1 * f2), d3(h3), 0, 0, "cm"]; 2394 } 2395 this.internal.write("q"), a3 ? (this.internal.write([1, "0", "0", 1, s3(t2), u3(e2 + n2), "cm"].join(" ")), this.internal.write(p3.join(" ")), this.internal.write([s3(r2), "0", "0", s3(n2), "0", "0", "cm"].join(" "))) : this.internal.write([s3(r2), "0", "0", s3(n2), s3(t2), u3(e2 + n2), "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"); 2396 }, y2 = 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" }; 2397 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" }; 2398 var w2 = e.image_compression = { NONE: "NONE", FAST: "FAST", MEDIUM: "MEDIUM", SLOW: "SLOW" }, N2 = e.__addimage__.sHashCode = function(t2) { 2399 var e2, r2, n2 = 0; 2400 if ("string" == typeof t2) for (r2 = t2.length, e2 = 0; e2 < r2; e2++) n2 = (n2 << 5) - n2 + t2.charCodeAt(e2), n2 |= 0; 2401 else if (A2(t2)) for (r2 = t2.byteLength / 2, e2 = 0; e2 < r2; e2++) n2 = (n2 << 5) - n2 + t2[e2], n2 |= 0; 2402 return n2; 2403 }, L2 = e.__addimage__.validateStringAsBase64 = function(t2) { 2404 (t2 = t2 || "").toString().trim(); 2405 var e2 = true; 2406 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; 2407 }, x2 = e.__addimage__.extractImageFromDataUrl = function(t2) { 2408 if (null == t2) return null; 2409 if (!(t2 = t2.trim()).startsWith("data:")) return null; 2410 var e2 = t2.indexOf(","); 2411 return e2 < 0 ? null : t2.substring(0, e2).trim().endsWith("base64") ? t2.substring(e2 + 1) : null; 2412 }; 2413 e.__addimage__.isArrayBuffer = function(t2) { 2414 return t2 instanceof ArrayBuffer; 2415 }; 2416 var A2 = e.__addimage__.isArrayBufferView = function(t2) { 2417 return t2 instanceof Int8Array || t2 instanceof Uint8Array || t2 instanceof Uint8ClampedArray || t2 instanceof Int16Array || t2 instanceof Uint16Array || t2 instanceof Int32Array || t2 instanceof Uint32Array || t2 instanceof Float32Array || t2 instanceof Float64Array; 2418 }, S2 = e.__addimage__.binaryStringToUint8Array = function(t2) { 2419 for (var e2 = t2.length, r2 = new Uint8Array(e2), n2 = 0; n2 < e2; n2++) r2[n2] = t2.charCodeAt(n2); 2420 return r2; 2421 }, _2 = e.__addimage__.arrayBufferToBinaryString = function(t2) { 2422 for (var e2 = "", r2 = A2(t2) ? t2 : new Uint8Array(t2), n2 = 0; n2 < r2.length; n2 += 8192) e2 += String.fromCharCode.apply(null, r2.subarray(n2, n2 + 8192)); 2423 return e2; 2424 }; 2425 e.addImage = function() { 2426 var e2, r2, i3, a3, o3, s3, u3, l3, h3; 2427 if ("number" == typeof arguments[1] ? (r2 = n, i3 = arguments[1], a3 = arguments[2], o3 = arguments[3], s3 = arguments[4], u3 = arguments[5], l3 = arguments[6], h3 = arguments[7]) : (r2 = arguments[1], i3 = arguments[2], a3 = arguments[3], o3 = arguments[4], s3 = arguments[5], u3 = arguments[6], l3 = arguments[7], h3 = arguments[8]), "object" === _typeof(e2 = arguments[0]) && !p2(e2) && "imageData" in e2) { 2428 var f2 = e2; 2429 e2 = f2.imageData, r2 = f2.format || r2 || n, i3 = f2.x || i3 || 0, a3 = f2.y || a3 || 0, o3 = f2.w || f2.width || o3, s3 = f2.h || f2.height || s3, u3 = f2.alias || u3, l3 = f2.compression || l3, h3 = f2.rotation || f2.angle || h3; 2430 } 2431 var d3 = this.internal.getFilters(); 2432 if (void 0 === l3 && -1 !== d3.indexOf("FlateEncode") && (l3 = "SLOW"), isNaN(i3) || isNaN(a3)) throw new Error("Invalid coordinates passed to jsPDF.addImage"); 2433 c2.call(this); 2434 var g3 = P2.call(this, e2, r2, u3, l3); 2435 return b2.call(this, i3, a3, o3, s3, g3, h3), this; 2436 }; 2437 var P2 = function(t2, r2, i3, o3) { 2438 var s3, u3, c3; 2439 if ("string" == typeof t2 && a2(t2) === n) { 2440 t2 = unescape(t2); 2441 var l3 = k2(t2, false); 2442 ("" !== l3 || void 0 !== (l3 = e.loadFile(t2, true))) && (t2 = l3); 2443 } 2444 if (p2(t2) && (t2 = g2(t2, r2)), r2 = a2(t2, r2), !d2(r2)) throw new Error("addImage does not support files of type '" + r2 + "', please ensure that a plugin for '" + r2 + "' support is added."); 2445 if ((null == (c3 = i3) || 0 === c3.length) && (i3 =
vendor: 29,501 bytes, lines 2445-2957
2445function(t3) { 2446 return "string" == typeof t3 || A2(t3) ? N2(t3) : A2(t3.data) ? N2(t3.data) : null; 2447 }(t2)), (s3 = m2.call(this, i3)) || (t2 instanceof Uint8Array || "RGBA" === r2 || (u3 = t2, t2 = S2(t2)), s3 = this["process" + r2.toUpperCase()](t2, h2.call(this), i3, function(t3) { 2448 return t3 && "string" == typeof t3 && (t3 = t3.toUpperCase()), t3 in e.image_compression ? t3 : w2.NONE; 2449 }(o3), u3)), !s3) throw new Error("An unknown error occurred whilst processing the image."); 2450 return s3; 2451 }, k2 = e.__addimage__.convertBase64ToBinaryString = function(t2, e2) { 2452 e2 = "boolean" != typeof e2 || e2; 2453 var r2, n2 = ""; 2454 if ("string" == typeof t2) { 2455 var i3; 2456 r2 = null !== (i3 = x2(t2)) && void 0 !== i3 ? i3 : t2; 2457 try { 2458 n2 = f(r2); 2459 } catch (a3) { 2460 if (e2) throw L2(r2) ? new Error("atob-Error in jsPDF.convertBase64ToBinaryString " + a3.message) : new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString "); 2461 } 2462 } 2463 return n2; 2464 }; 2465 e.getImageProperties = function(t2) { 2466 var r2, i3, o3 = ""; 2467 if (p2(t2) && (t2 = g2(t2)), "string" == typeof t2 && a2(t2) === n && ("" === (o3 = k2(t2, false)) && (o3 = e.loadFile(t2) || ""), t2 = o3), i3 = a2(t2), !d2(i3)) throw new Error("addImage does not support files of type '" + i3 + "', please ensure that a plugin for '" + i3 + "' support is added."); 2468 if (t2 instanceof Uint8Array || (t2 = S2(t2)), !(r2 = this["process" + i3.toUpperCase()](t2))) throw new Error("An unknown error occurred whilst processing the image"); 2469 return r2.fileType = i3, r2; 2470 }; 2471}(E.API), /** 2472 * @license 2473 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected] 2474 * 2475 * Licensed under the MIT License. 2476 * http://opensource.org/licenses/mit-license 2477 */ 2478function(t2) { 2479 var e = function(t3) { 2480 if (void 0 !== t3 && "" != t3) return true; 2481 }; 2482 E.API.events.push(["addPage", function(t3) { 2483 this.internal.getPageInfo(t3.pageNumber).pageContext.annotations = []; 2484 }]), t2.events.push(["putPage", function(t3) { 2485 for (var r, n, i2, a2 = this.internal.getCoordinateString, o2 = this.internal.getVerticalCoordinateString, s2 = this.internal.getPageInfoByObjId(t3.objId), u2 = t3.pageContext.annotations, c2 = false, l2 = 0; l2 < u2.length && !c2; l2++) switch ((r = u2[l2]).type) { 2486 case "link": 2487 (e(r.options.url) || e(r.options.pageNumber)) && (c2 = true); 2488 break; 2489 case "reference": 2490 case "text": 2491 case "freetext": 2492 c2 = true; 2493 } 2494 if (0 != c2) { 2495 this.internal.write("/Annots ["); 2496 for (var h2 = 0; h2 < u2.length; h2++) { 2497 r = u2[h2]; 2498 var f2 = this.internal.pdfEscape, d2 = this.internal.getEncryptor(t3.objId); 2499 switch (r.type) { 2500 case "reference": 2501 this.internal.write(" " + r.object.objId + " 0 R "); 2502 break; 2503 case "text": 2504 var p2 = this.internal.newAdditionalObject(), g2 = this.internal.newAdditionalObject(), m2 = this.internal.getEncryptor(p2.objId), v2 = r.title || "Note"; 2505 i2 = "<</Type /Annot /Subtype /Text " + (n = "/Rect [" + a2(r.bounds.x) + " " + o2(r.bounds.y + r.bounds.h) + " " + a2(r.bounds.x + r.bounds.w) + " " + o2(r.bounds.y) + "] ") + "/Contents (" + f2(m2(r.contents)) + ")", i2 += " /Popup " + g2.objId + " 0 R", i2 += " /P " + s2.objId + " 0 R", i2 += " /T (" + f2(m2(v2)) + ") >>", p2.content = i2; 2506 var b2 = p2.objId + " 0 R"; 2507 i2 = "<</Type /Annot /Subtype /Popup " + (n = "/Rect [" + a2(r.bounds.x + 30) + " " + o2(r.bounds.y + r.bounds.h) + " " + a2(r.bounds.x + r.bounds.w + 30) + " " + o2(r.bounds.y) + "] ") + " /Parent " + b2, r.open && (i2 += " /Open true"), i2 += " >>", g2.content = i2, this.internal.write(p2.objId, "0 R", g2.objId, "0 R"); 2508 break; 2509 case "freetext": 2510 n = "/Rect [" + a2(r.bounds.x) + " " + o2(r.bounds.y) + " " + a2(r.bounds.x + r.bounds.w) + " " + o2(r.bounds.y + r.bounds.h) + "] "; 2511 var y2 = "font: Helvetica,sans-serif 12.0pt; text-align:left; color:#" + (r.color || "#000000"); 2512 i2 = "<</Type /Annot /Subtype /FreeText " + n + "/Contents (" + f2(d2(r.contents)) + ")", i2 += " /DS(" + f2(d2(y2)) + ")", i2 += " /Border [0 0 0]", i2 += " >>", this.internal.write(i2); 2513 break; 2514 case "link": 2515 if (r.options.name) { 2516 var w2 = this.annotations._nameMap[r.options.name]; 2517 r.options.pageNumber = w2.page, r.options.top = w2.y; 2518 } else r.options.top || (r.options.top = 0); 2519 if (n = "/Rect [" + r.finalBounds.x + " " + r.finalBounds.y + " " + r.finalBounds.w + " " + r.finalBounds.h + "] ", i2 = "", r.options.url) i2 = "<</Type /Annot /Subtype /Link " + n + "/Border [0 0 0] /A <</S /URI /URI (" + f2(d2(r.options.url)) + ") >>"; 2520 else if (r.options.pageNumber) switch (i2 = "<</Type /Annot /Subtype /Link " + n + "/Border [0 0 0] /Dest [" + this.internal.getPageInfo(r.options.pageNumber).objId + " 0 R", r.options.magFactor = r.options.magFactor || "XYZ", r.options.magFactor) { 2521 case "Fit": 2522 i2 += " /Fit]"; 2523 break; 2524 case "FitH": 2525 i2 += " /FitH " + r.options.top + "]"; 2526 break; 2527 case "FitV": 2528 r.options.left = r.options.left || 0, i2 += " /FitV " + r.options.left + "]"; 2529 break; 2530 default: 2531 var N2 = o2(r.options.top); 2532 r.options.left = r.options.left || 0, void 0 === r.options.zoom && (r.options.zoom = 0), i2 += " /XYZ " + r.options.left + " " + N2 + " " + r.options.zoom + "]"; 2533 } 2534 "" != i2 && (i2 += " >>", this.internal.write(i2)); 2535 } 2536 } 2537 this.internal.write("]"); 2538 } 2539 }]), t2.createAnnotation = function(t3) { 2540 var e2 = this.internal.getCurrentPageInfo(); 2541 switch (t3.type) { 2542 case "link": 2543 this.link(t3.bounds.x, t3.bounds.y, t3.bounds.w, t3.bounds.h, t3); 2544 break; 2545 case "text": 2546 case "freetext": 2547 e2.pageContext.annotations.push(t3); 2548 } 2549 }, t2.link = function(t3, e2, r, n, i2) { 2550 var a2 = this.internal.getCurrentPageInfo(), o2 = this.internal.getCoordinateString, s2 = this.internal.getVerticalCoordinateString; 2551 a2.pageContext.annotations.push({ finalBounds: { x: o2(t3), y: s2(e2), w: o2(t3 + r), h: s2(e2 + n) }, options: i2, type: "link" }); 2552 }, t2.textWithLink = function(t3, e2, r, n) { 2553 var i2, a2, o2 = this.getTextWidth(t3), s2 = this.internal.getLineHeight() / this.internal.scaleFactor; 2554 if (void 0 !== n.maxWidth) { 2555 a2 = n.maxWidth; 2556 var u2 = this.splitTextToSize(t3, a2).length; 2557 i2 = Math.ceil(s2 * u2); 2558 } else a2 = o2, i2 = s2; 2559 return this.text(t3, e2, r, n), r += 0.2 * s2, "center" === n.align && (e2 -= o2 / 2), "right" === n.align && (e2 -= o2), this.link(e2, r - s2, a2, i2, n), o2; 2560 }, t2.getTextWidth = function(t3) { 2561 var e2 = this.internal.getFontSize(); 2562 return this.getStringUnitWidth(t3) * e2 / this.internal.scaleFactor; 2563 }; 2564}(E.API), /** 2565 * @license 2566 * Copyright (c) 2017 Aras Abbasi 2567 * 2568 * Licensed under the MIT License. 2569 * http://opensource.org/licenses/mit-license 2570 */ 2571function(t2) { 2572 var e = { 1569: [65152], 1570: [65153, 65154], 1571: [65155, 65156], 1572: [65157, 65158], 1573: [65159, 65160], 1574: [65161, 65162, 65163, 65164], 1575: [65165, 65166], 1576: [65167, 65168, 65169, 65170], 1577: [65171, 65172], 1578: [65173, 65174, 65175, 65176], 1579: [65177, 65178, 65179, 65180], 1580: [65181, 65182, 65183, 65184], 1581: [65185, 65186, 65187, 65188], 1582: [65189, 65190, 65191, 65192], 1583: [65193, 65194], 1584: [65195, 65196], 1585: [65197, 65198], 1586: [65199, 65200], 1587: [65201, 65202, 65203, 65204], 1588: [65205, 65206, 65207, 65208], 1589: [65209, 65210, 65211, 65212], 1590: [65213, 65214, 65215, 65216], 1591: [65217, 65218, 65219, 65220], 1592: [65221, 65222, 65223, 65224], 1593: [65225, 65226, 65227, 65228], 1594: [65229, 65230, 65231, 65232], 1601: [65233, 65234, 65235, 65236], 1602: [65237, 65238, 65239, 65240], 1603: [65241, 65242, 65243, 65244], 1604: [65245, 65246, 65247, 65248], 1605: [65249, 65250, 65251, 65252], 1606: [65253, 65254, 65255, 65256], 1607: [65257, 65258, 65259, 65260], 1608: [65261, 65262], 1609: [65263, 65264, 64488, 64489], 1610: [65265, 65266, 65267, 65268], 1649: [64336, 64337], 1655: [64477], 1657: [64358, 64359, 64360, 64361], 1658: [64350, 64351, 64352, 64353], 1659: [64338, 64339, 64340, 64341], 1662: [64342, 64343, 64344, 64345], 1663: [64354, 64355, 64356, 64357], 1664: [64346, 64347, 64348, 64349], 1667: [64374, 64375, 64376, 64377], 1668: [64370, 64371, 64372, 64373], 1670: [64378, 64379, 64380, 64381], 1671: [64382, 64383, 64384, 64385], 1672: [64392, 64393], 1676: [64388, 64389], 1677: [64386, 64387], 1678: [64390, 64391], 1681: [64396, 64397], 1688: [64394, 64395], 1700: [64362, 64363, 64364, 64365], 1702: [64366, 64367, 64368, 64369], 1705: [64398, 64399, 64400, 64401], 1709: [64467, 64468, 64469, 64470], 1711: [64402, 64403, 64404, 64405], 1713: [64410, 64411, 64412, 64413], 1715: [64406, 64407, 64408, 64409], 1722: [64414, 64415], 1723: [64416, 64417, 64418, 64419], 1726: [64426, 64427, 64428, 64429], 1728: [64420, 64421], 1729: [64422, 64423, 64424, 64425], 1733: [64480, 64481], 1734: [64473, 64474], 1735: [64471, 64472], 1736: [64475, 64476], 1737: [64482, 64483], 1739: [64478, 64479], 1740: [64508, 64509, 64510, 64511], 1744: [64484, 64485, 64486, 64487], 1746: [64430, 64431], 1747: [64432, 64433] }, r = { 65247: { 65154: 65269, 65156: 65271, 65160: 65273, 65166: 65275 }, 65248: { 65154: 65270, 65156: 65272, 65160: 65274, 65166: 65276 }, 65165: { 65247: { 65248: { 65258: 65010 } } }, 1617: { 1612: 64606, 1613: 64607, 1614: 64608, 1615: 64609, 1616: 64610 } }, n = { 1612: 64606, 1613: 64607, 1614: 64608, 1615: 64609, 1616: 64610 }, i2 = [1570, 1571, 1573, 1575]; 2573 t2.__arabicParser__ = {}; 2574 var a2 = t2.__arabicParser__.isInArabicSubstitutionA = function(t3) { 2575 return void 0 !== e[t3.charCodeAt(0)]; 2576 }, o2 = t2.__arabicParser__.isArabicLetter = function(t3) { 2577 return "string" == typeof t3 && /^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t3); 2578 }, s2 = t2.__arabicParser__.isArabicEndLetter = function(t3) { 2579 return o2(t3) && a2(t3) && e[t3.charCodeAt(0)].length <= 2; 2580 }, u2 = t2.__arabicParser__.isArabicAlfLetter = function(t3) { 2581 return o2(t3) && i2.indexOf(t3.charCodeAt(0)) >= 0; 2582 }; 2583 t2.__arabicParser__.arabicLetterHasIsolatedForm = function(t3) { 2584 return o2(t3) && a2(t3) && e[t3.charCodeAt(0)].length >= 1; 2585 }; 2586 var c2 = t2.__arabicParser__.arabicLetterHasFinalForm = function(t3) { 2587 return o2(t3) && a2(t3) && e[t3.charCodeAt(0)].length >= 2; 2588 }; 2589 t2.__arabicParser__.arabicLetterHasInitialForm = function(t3) { 2590 return o2(t3) && a2(t3) && e[t3.charCodeAt(0)].length >= 3; 2591 }; 2592 var l2 = t2.__arabicParser__.arabicLetterHasMedialForm = function(t3) { 2593 return o2(t3) && a2(t3) && 4 == e[t3.charCodeAt(0)].length; 2594 }, h2 = t2.__arabicParser__.resolveLigatures = function(t3) { 2595 var e2 = 0, n2 = r, i3 = "", a3 = 0; 2596 for (e2 = 0; e2 < t3.length; e2 += 1) void 0 !== n2[t3.charCodeAt(e2)] ? (a3++, "number" == typeof (n2 = n2[t3.charCodeAt(e2)]) && (i3 += String.fromCharCode(n2), n2 = r, a3 = 0), e2 === t3.length - 1 && (n2 = r, i3 += t3.charAt(e2 - (a3 - 1)), e2 -= a3 - 1, a3 = 0)) : (n2 = r, i3 += t3.charAt(e2 - a3), e2 -= a3, a3 = 0); 2597 return i3; 2598 }; 2599 t2.__arabicParser__.isArabicDiacritic = function(t3) { 2600 return void 0 !== t3 && void 0 !== n[t3.charCodeAt(0)]; 2601 }; 2602 var f2 = t2.__arabicParser__.getCorrectForm = function(t3, e2, r2) { 2603 return o2(t3) ? false === a2(t3) ? -1 : !c2(t3) || !o2(e2) && !o2(r2) || !o2(r2) && s2(e2) || s2(t3) && !o2(e2) || s2(t3) && u2(e2) || s2(t3) && s2(e2) ? 0 : l2(t3) && o2(e2) && !s2(e2) && o2(r2) && c2(r2) ? 3 : s2(t3) || !o2(r2) ? 1 : 2 : -1; 2604 }, d2 = function(t3) { 2605 var r2 = 0, n2 = 0, i3 = 0, a3 = "", s3 = "", u3 = "", c3 = (t3 = t3 || "").split("\\s+"), l3 = []; 2606 for (r2 = 0; r2 < c3.length; r2 += 1) { 2607 for (l3.push(""), n2 = 0; n2 < c3[r2].length; n2 += 1) a3 = c3[r2][n2], s3 = c3[r2][n2 - 1], u3 = c3[r2][n2 + 1], o2(a3) ? (i3 = f2(a3, s3, u3), l3[r2] += -1 !== i3 ? String.fromCharCode(e[a3.charCodeAt(0)][i3]) : a3) : l3[r2] += a3; 2608 l3[r2] = h2(l3[r2]); 2609 } 2610 return l3.join(" "); 2611 }, p2 = t2.__arabicParser__.processArabic = t2.processArabic = function() { 2612 var t3, e2 = "string" == typeof arguments[0] ? arguments[0] : arguments[0].text, r2 = []; 2613 if (Array.isArray(e2)) { 2614 var n2 = 0; 2615 for (r2 = [], n2 = 0; n2 < e2.length; n2 += 1) Array.isArray(e2[n2]) ? r2.push([d2(e2[n2][0]), e2[n2][1], e2[n2][2]]) : r2.push([d2(e2[n2])]); 2616 t3 = r2; 2617 } else t3 = d2(e2); 2618 return "string" == typeof arguments[0] ? t3 : (arguments[0].text = t3, arguments[0]); 2619 }; 2620 t2.events.push(["preProcessText", p2]); 2621}(E.API), E.API.autoPrint = function(t2) { 2622 var e; 2623 return (t2 = t2 || {}).variant = t2.variant || "non-conform", "javascript" === t2.variant ? this.addJS("print({});") : (this.internal.events.subscribe("postPutResources", function() { 2624 e = this.internal.newObject(), this.internal.out("<<"), this.internal.out("/S /Named"), this.internal.out("/Type /Action"), this.internal.out("/N /Print"), this.internal.out(">>"), this.internal.out("endobj"); 2625 }), this.internal.events.subscribe("putCatalog", function() { 2626 this.internal.out("/OpenAction " + e + " 0 R"); 2627 })), this; 2628}, /** 2629 * @license 2630 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected] 2631 * 2632 * Licensed under the MIT License. 2633 * http://opensource.org/licenses/mit-license 2634 */ 2635function(t2) { 2636 var e = function() { 2637 var t3 = void 0; 2638 Object.defineProperty(this, "pdf", { get: function() { 2639 return t3; 2640 }, set: function(e3) { 2641 t3 = e3; 2642 } }); 2643 var e2 = 150; 2644 Object.defineProperty(this, "width", { get: function() { 2645 return e2; 2646 }, set: function(t4) { 2647 e2 = isNaN(t4) || false === Number.isInteger(t4) || t4 < 0 ? 150 : t4, this.getContext("2d").pageWrapXEnabled && (this.getContext("2d").pageWrapX = e2 + 1); 2648 } }); 2649 var r = 300; 2650 Object.defineProperty(this, "height", { get: function() { 2651 return r; 2652 }, set: function(t4) { 2653 r = isNaN(t4) || false === Number.isInteger(t4) || t4 < 0 ? 300 : t4, this.getContext("2d").pageWrapYEnabled && (this.getContext("2d").pageWrapY = r + 1); 2654 } }); 2655 var n = []; 2656 Object.defineProperty(this, "childNodes", { get: function() { 2657 return n; 2658 }, set: function(t4) { 2659 n = t4; 2660 } }); 2661 var i2 = {}; 2662 Object.defineProperty(this, "style", { get: function() { 2663 return i2; 2664 }, set: function(t4) { 2665 i2 = t4; 2666 } }), Object.defineProperty(this, "parentNode", {}); 2667 }; 2668 e.prototype.getContext = function(t3, e2) { 2669 var r; 2670 if ("2d" !== (t3 = t3 || "2d")) return null; 2671 for (r in e2) this.pdf.context2d.hasOwnProperty(r) && (this.pdf.context2d[r] = e2[r]); 2672 return this.pdf.context2d._canvas = this, this.pdf.context2d; 2673 }, e.prototype.toDataURL = function() { 2674 throw new Error("toDataURL is not implemented."); 2675 }, t2.events.push(["initialized", function() { 2676 this.canvas = new e(), this.canvas.pdf = this; 2677 }]); 2678}(E.API), function(e) { 2679 var r = { left: 0, top: 0, bottom: 0, right: 0 }, n = false, i2 = function() { 2680 void 0 === this.internal.__cell__ && (this.internal.__cell__ = {}, this.internal.__cell__.padding = 3, this.internal.__cell__.headerFunction = void 0, this.internal.__cell__.margins = Object.assign({}, r), this.internal.__cell__.margins.width = this.getPageWidth(), a2.call(this)); 2681 }, a2 = function() { 2682 this.internal.__cell__.lastCell = new o2(), this.internal.__cell__.pages = 1; 2683 }, o2 = function() { 2684 var t2 = arguments[0]; 2685 Object.defineProperty(this, "x", { enumerable: true, get: function() { 2686 return t2; 2687 }, set: function(e3) { 2688 t2 = e3; 2689 } }); 2690 var e2 = arguments[1]; 2691 Object.defineProperty(this, "y", { enumerable: true, get: function() { 2692 return e2; 2693 }, set: function(t3) { 2694 e2 = t3; 2695 } }); 2696 var r2 = arguments[2]; 2697 Object.defineProperty(this, "width", { enumerable: true, get: function() { 2698 return r2; 2699 }, set: function(t3) { 2700 r2 = t3; 2701 } }); 2702 var n2 = arguments[3]; 2703 Object.defineProperty(this, "height", { enumerable: true, get: function() { 2704 return n2; 2705 }, set: function(t3) { 2706 n2 = t3; 2707 } }); 2708 var i3 = arguments[4]; 2709 Object.defineProperty(this, "text", { enumerable: true, get: function() { 2710 return i3; 2711 }, set: function(t3) { 2712 i3 = t3; 2713 } }); 2714 var a3 = arguments[5]; 2715 Object.defineProperty(this, "lineNumber", { enumerable: true, get: function() { 2716 return a3; 2717 }, set: function(t3) { 2718 a3 = t3; 2719 } }); 2720 var o3 = arguments[6]; 2721 return Object.defineProperty(this, "align", { enumerable: true, get: function() { 2722 return o3; 2723 }, set: function(t3) { 2724 o3 = t3; 2725 } }), this; 2726 }; 2727 o2.prototype.clone = function() { 2728 return new o2(this.x, this.y, this.width, this.height, this.text, this.lineNumber, this.align); 2729 }, o2.prototype.toArray = function() { 2730 return [this.x, this.y, this.width, this.height, this.text, this.lineNumber, this.align]; 2731 }, e.setHeaderFunction = function(t2) { 2732 return i2.call(this), this.internal.__cell__.headerFunction = "function" == typeof t2 ? t2 : void 0, this; 2733 }, e.getTextDimensions = function(t2, e2) { 2734 i2.call(this); 2735 var r2 = (e2 = e2 || {}).fontSize || this.getFontSize(), n2 = e2.font || this.getFont(), a3 = e2.scaleFactor || this.internal.scaleFactor, o3 = 0, s3 = 0, u3 = 0, c2 = this; 2736 if (!Array.isArray(t2) && "string" != typeof t2) { 2737 if ("number" != typeof t2) throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings."); 2738 t2 = String(t2); 2739 } 2740 var l2 = e2.maxWidth; 2741 l2 > 0 ? "string" == typeof t2 ? t2 = this.splitTextToSize(t2, l2) : "[object Array]" === Object.prototype.toString.call(t2) && (t2 = t2.reduce(function(t3, e3) { 2742 return t3.concat(c2.splitTextToSize(e3, l2)); 2743 }, [])) : t2 = Array.isArray(t2) ? t2 : [t2]; 2744 for (var h2 = 0; h2 < t2.length; h2++) o3 < (u3 = this.getStringUnitWidth(t2[h2], { font: n2 }) * r2) && (o3 = u3); 2745 return 0 !== o3 && (s3 = t2.length), { w: o3 /= a3, h: Math.max((s3 * r2 * this.getLineHeightFactor() - r2 * (this.getLineHeightFactor() - 1)) / a3, 0) }; 2746 }, e.cellAddPage = function() { 2747 i2.call(this), this.addPage(); 2748 var t2 = this.internal.__cell__.margins || r; 2749 return this.internal.__cell__.lastCell = new o2(t2.left, t2.top, void 0, void 0), this.internal.__cell__.pages += 1, this; 2750 }; 2751 var s2 = e.cell = function() { 2752 var t2; 2753 t2 = arguments[0] instanceof o2 ? arguments[0] : new o2(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]), i2.call(this); 2754 var e2 = this.internal.__cell__.lastCell, a3 = this.internal.__cell__.padding, s3 = this.internal.__cell__.margins || r, u3 = this.internal.__cell__.tableHeaderRow, c2 = this.internal.__cell__.printHeaders; 2755 return void 0 !== e2.lineNumber && (e2.lineNumber === t2.lineNumber ? (t2.x = (e2.x || 0) + (e2.width || 0), t2.y = e2.y || 0) : e2.y + e2.height + t2.height + s3.bottom > this.getPageHeight() ? (this.cellAddPage(), t2.y = s3.top, c2 && u3 && (this.printHeaderRow(t2.lineNumber, true), t2.y += u3[0].height)) : t2.y = e2.y + e2.height || t2.y), void 0 !== t2.text[0] && (this.rect(t2.x, t2.y, t2.width, t2.height, true === n ? "FD" : void 0), "right" === t2.align ? this.text(t2.text, t2.x + t2.width - a3, t2.y + a3, { align: "right", baseline: "top" }) : "center" === t2.align ? this.text(t2.text, t2.x + t2.width / 2, t2.y + a3, { align: "center", baseline: "top", maxWidth: t2.width - a3 - a3 }) : this.text(t2.text, t2.x + a3, t2.y + a3, { align: "left", baseline: "top", maxWidth: t2.width - a3 - a3 })), this.internal.__cell__.lastCell = t2, this; 2756 }; 2757 e.table = function(e2, n2, c2, l2, h2) { 2758 if (i2.call(this), !c2) throw new Error("No data for PDF table."); 2759 var f2, d2, p2, g2, m2 = [], v2 = [], b2 = [], y2 = {}, w2 = {}, N2 = [], L2 = [], x2 = (h2 = h2 || {}).autoSize || false, A2 = false !== h2.printHeaders, S2 = h2.css && void 0 !== h2.css["font-size"] ? 16 * h2.css["font-size"] : h2.fontSize || 12, _2 = h2.margins || Object.assign({ width: this.getPageWidth() }, r), P2 = "number" == typeof h2.padding ? h2.padding : 3, k2 = h2.headerBackgroundColor || "#c8c8c8", F2 = h2.headerTextColor || "#000"; 2760 if (a2.call(this), this.internal.__cell__.printHeaders = A2, this.internal.__cell__.margins = _2, this.internal.__cell__.table_font_size = S2, this.internal.__cell__.padding = P2, this.internal.__cell__.headerBackgroundColor = k2, this.internal.__cell__.headerTextColor = F2, this.setFontSize(S2), null == l2) v2 = m2 = Object.keys(c2[0]), b2 = m2.map(function() { 2761 return "left"; 2762 }); 2763 else if (Array.isArray(l2) && "object" === _typeof(l2[0])) for (m2 = l2.map(function(t2) { 2764 return t2.name; 2765 }), v2 = l2.map(function(t2) { 2766 return t2.prompt || t2.name || ""; 2767 }), b2 = l2.map(function(t2) { 2768 return t2.align || "left"; 2769 }), f2 = 0; f2 < l2.length; f2 += 1) w2[l2[f2].name] = 0.7499990551181103 * l2[f2].width; 2770 else Array.isArray(l2) && "string" == typeof l2[0] && (v2 = m2 = l2, b2 = m2.map(function() { 2771 return "left"; 2772 })); 2773 if (x2 || Array.isArray(l2) && "string" == typeof l2[0]) for (f2 = 0; f2 < m2.length; f2 += 1) { 2774 for (y2[g2 = m2[f2]] = c2.map(function(t2) { 2775 return t2[g2]; 2776 }), this.setFont(void 0, "bold"), N2.push(this.getTextDimensions(v2[f2], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w), d2 = y2[g2], this.setFont(void 0, "normal"), p2 = 0; p2 < d2.length; p2 += 1) N2.push(this.getTextDimensions(d2[p2], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w); 2777 w2[g2] = Math.max.apply(null, N2) + P2 + P2, N2 = []; 2778 } 2779 if (A2) { 2780 var I2 = {}; 2781 for (f2 = 0; f2 < m2.length; f2 += 1) I2[m2[f2]] = {}, I2[m2[f2]].text = v2[f2], I2[m2[f2]].align = b2[f2]; 2782 var C2 = u2.call(this, I2, w2); 2783 L2 = m2.map(function(t2) { 2784 return new o2(e2, n2, w2[t2], C2, I2[t2].text, void 0, I2[t2].align); 2785 }), this.setTableHeaderRow(L2), this.printHeaderRow(1, false); 2786 } 2787 var j2 = l2.reduce(function(t2, e3) { 2788 return t2[e3.name] = e3.align, t2; 2789 }, {}); 2790 for (f2 = 0; f2 < c2.length; f2 += 1) { 2791 "rowStart" in h2 && h2.rowStart instanceof Function && h2.rowStart({ row: f2, data: c2[f2] }, this); 2792 var O2 = u2.call(this, c2[f2], w2); 2793 for (p2 = 0; p2 < m2.length; p2 += 1) { 2794 var B2 = c2[f2][m2[p2]]; 2795 "cellStart" in h2 && h2.cellStart instanceof Function && h2.cellStart({ row: f2, col: p2, data: B2 }, this), s2.call(this, new o2(e2, n2, w2[m2[p2]], O2, B2, f2 + 2, j2[m2[p2]])); 2796 } 2797 } 2798 return this.internal.__cell__.table_x = e2, this.internal.__cell__.table_y = n2, this; 2799 }; 2800 var u2 = function(t2, e2) { 2801 var r2 = this.internal.__cell__.padding, n2 = this.internal.__cell__.table_font_size, i3 = this.internal.scaleFactor; 2802 return Object.keys(t2).map(function(n3) { 2803 var i4 = t2[n3]; 2804 return this.splitTextToSize(i4.hasOwnProperty("text") ? i4.text : i4, e2[n3] - r2 - r2); 2805 }, this).map(function(t3) { 2806 return this.getLineHeightFactor() * t3.length * n2 / i3 + r2 + r2; 2807 }, this).reduce(function(t3, e3) { 2808 return Math.max(t3, e3); 2809 }, 0); 2810 }; 2811 e.setTableHeaderRow = function(t2) { 2812 i2.call(this), this.internal.__cell__.tableHeaderRow = t2; 2813 }, e.printHeaderRow = function(t2, e2) { 2814 if (i2.call(this), !this.internal.__cell__.tableHeaderRow) throw new Error("Property tableHeaderRow does not exist."); 2815 var r2; 2816 if (n = true, "function" == typeof this.internal.__cell__.headerFunction) { 2817 var a3 = this.internal.__cell__.headerFunction(this, this.internal.__cell__.pages); 2818 this.internal.__cell__.lastCell = new o2(a3[0], a3[1], a3[2], a3[3], void 0, -1); 2819 } 2820 this.setFont(void 0, "bold"); 2821 for (var u3 = [], c2 = 0; c2 < this.internal.__cell__.tableHeaderRow.length; c2 += 1) { 2822 r2 = this.internal.__cell__.tableHeaderRow[c2].clone(), e2 && (r2.y = this.internal.__cell__.margins.top || 0, u3.push(r2)), r2.lineNumber = t2; 2823 var l2 = this.getTextColor(); 2824 this.setTextColor(this.internal.__cell__.headerTextColor), this.setFillColor(this.internal.__cell__.headerBackgroundColor), s2.call(this, r2), this.setTextColor(l2); 2825 } 2826 u3.length > 0 && this.setTableHeaderRow(u3), this.setFont(void 0, "normal"), n = false; 2827 }; 2828}(E.API); 2829var kt = { italic: ["italic", "oblique", "normal"], oblique: ["oblique", "italic", "normal"], normal: ["normal", "oblique", "italic"] }, Ft = ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"], It = Pt(Ft), Ct = [100, 200, 300, 400, 500, 600, 700, 800, 900], jt = Pt(Ct); 2830function Ot(t2) { 2831 var e = t2.family.replace(/"|'/g, "").toLowerCase(), r = function(t3) { 2832 return kt[t3 = t3 || "normal"] ? t3 : "normal"; 2833 }(t2.style), n = function(t3) { 2834 return t3 ? "number" == typeof t3 ? t3 >= 100 && t3 <= 900 && t3 % 100 == 0 ? t3 : 400 : /^\d00$/.test(t3) ? parseInt(t3) : "bold" === t3 ? 700 : 400 : 400; 2835 }(t2.weight), i2 = function(t3) { 2836 return "number" == typeof It[t3 = t3 || "normal"] ? t3 : "normal"; 2837 }(t2.stretch); 2838 return { family: e, style: r, weight: n, stretch: i2, src: t2.src || [], ref: t2.ref || { name: e, style: [i2, r, n].join(" ") } }; 2839} 2840function Bt(t2, e, r, n) { 2841 var i2; 2842 for (i2 = r; i2 >= 0 && i2 < e.length; i2 += n) if (t2[e[i2]]) return t2[e[i2]]; 2843 for (i2 = r; i2 >= 0 && i2 < e.length; i2 -= n) if (t2[e[i2]]) return t2[e[i2]]; 2844} 2845var Mt = { "sans-serif": "helvetica", fixed: "courier", monospace: "courier", terminal: "courier", cursive: "times", fantasy: "times", serif: "times" }, qt = { caption: "times", icon: "times", menu: "times", "message-box": "times", "small-caption": "times", "status-bar": "times" }; 2846function Et(t2) { 2847 return [t2.stretch, t2.style, t2.weight, t2.family].join(" "); 2848} 2849function Rt(t2) { 2850 return t2.trimLeft(); 2851} 2852function Dt(t2, e) { 2853 for (var r = 0; r < t2.length; ) { 2854 if (t2.charAt(r) === e) return [t2.substring(0, r), t2.substring(r + 1)]; 2855 r += 1; 2856 } 2857 return null; 2858} 2859function Tt(t2) { 2860 var e = t2.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i); 2861 return null === e ? null : [e[0], t2.substring(e[0].length)]; 2862} 2863var zt, Ut, Ht, Wt, Vt, Gt = ["times"]; 2864function Yt(t2, r, n, i2, a2) { 2865 var o2 = 4, s2 = Kt; 2866 switch (a2) { 2867 case E.API.image_compression.FAST: 2868 o2 = 1, s2 = Xt; 2869 break; 2870 case E.API.image_compression.MEDIUM: 2871 o2 = 6, s2 = Zt; 2872 break; 2873 case E.API.image_compression.SLOW: 2874 o2 = 9, s2 = $t; 2875 } 2876 t2 = function(t3, e, r2, n2) { 2877 for (var i3, a3 = t3.length / e, o3 = new Uint8Array(t3.length + a3), s3 = [Jt, Xt, Kt, Zt, $t], u3 = 0; u3 < a3; u3 += 1) { 2878 var c2 = u3 * e, l2 = t3.subarray(c2, c2 + e); 2879 if (n2) o3.set(n2(l2, r2, i3), c2 + u3); 2880 else { 2881 for (var h2 = s3.length, f2 = [], d2 = 0; d2 < h2; d2 += 1) f2[d2] = s3[d2](l2, r2, i3); 2882 var p2 = te(f2.concat()); 2883 o3.set(f2[p2], c2 + u3); 2884 } 2885 i3 = l2; 2886 } 2887 return o3; 2888 }(t2, r, Math.ceil(n * i2 / 8), s2); 2889 var u2 = zlibSync(t2, { level: o2 }); 2890 return E.API.__addimage__.arrayBufferToBinaryString(u2); 2891} 2892function Jt(t2) { 2893 var e = Array.apply([], t2); 2894 return e.unshift(0), e; 2895} 2896function Xt(t2, e) { 2897 var r = t2.length, n = []; 2898 n[0] = 1; 2899 for (var i2 = 0; i2 < r; i2 += 1) { 2900 var a2 = t2[i2 - e] || 0; 2901 n[i2 + 1] = t2[i2] - a2 + 256 & 255; 2902 } 2903 return n; 2904} 2905function Kt(t2, e, r) { 2906 var n = t2.length, i2 = []; 2907 i2[0] = 2; 2908 for (var a2 = 0; a2 < n; a2 += 1) { 2909 var o2 = r && r[a2] || 0; 2910 i2[a2 + 1] = t2[a2] - o2 + 256 & 255; 2911 } 2912 return i2; 2913} 2914function Zt(t2, e, r) { 2915 var n = t2.length, i2 = []; 2916 i2[0] = 3; 2917 for (var a2 = 0; a2 < n; a2 += 1) { 2918 var o2 = t2[a2 - e] || 0, s2 = r && r[a2] || 0; 2919 i2[a2 + 1] = t2[a2] + 256 - (o2 + s2 >>> 1) & 255; 2920 } 2921 return i2; 2922} 2923function $t(t2, e, r) { 2924 var n = t2.length, i2 = []; 2925 i2[0] = 4; 2926 for (var a2 = 0; a2 < n; a2 += 1) { 2927 var o2 = Qt(t2[a2 - e] || 0, r && r[a2] || 0, r && r[a2 - e] || 0); 2928 i2[a2 + 1] = t2[a2] - o2 + 256 & 255; 2929 } 2930 return i2; 2931} 2932function Qt(t2, e, r) { 2933 if (t2 === e && e === r) return t2; 2934 var n = Math.abs(e - r), i2 = Math.abs(t2 - r), a2 = Math.abs(t2 + e - r - r); 2935 return n <= i2 && n <= a2 ? t2 : i2 <= a2 ? e : r; 2936} 2937function te(t2) { 2938 var e = t2.map(function(t3) { 2939 return t3.reduce(function(t4, e2) { 2940 return t4 + Math.abs(e2); 2941 }, 0); 2942 }); 2943 return e.indexOf(Math.min.apply(null, e)); 2944} 2945function ee(t2, e, r) { 2946 var n = e * r, i2 = Math.floor(n / 8), a2 = 16 - (n - 8 * i2 + r), o2 = (1 << r) - 1; 2947 return ne(t2, i2) >> a2 & o2; 2948} 2949function re(t2, e, r, n) { 2950 var i2 = r * n, a2 = Math.floor(i2 / 8), o2 = 16 - (i2 - 8 * a2 + n), s2 = (1 << n) - 1, u2 = (e & s2) << o2; 2951 !function(t3, e2, r2) { 2952 if (e2 + 1 < t3.byteLength) t3.setUint16(e2, r2, false); 2953 else { 2954 var n2 = r2 >> 8 & 255; 2955 t3.setUint8(e2, n2); 2956 } 2957 }
vendor: 5,984 bytes, lines 2957-3077
2957(t2, a2, ne(t2, a2) & ~(s2 << o2) & 65535 | u2); 2958} 2959function ne(t2, e) { 2960 return e + 1 < t2.byteLength ? t2.getUint16(e, false) : t2.getUint8(e) << 8; 2961} 2962function ie(t2) { 2963 var e = 0; 2964 if (71 !== t2[e++] || 73 !== t2[e++] || 70 !== t2[e++] || 56 !== t2[e++] || 56 != (t2[e++] + 1 & 253) || 97 !== t2[e++]) throw new Error("Invalid GIF 87a/89a header."); 2965 var r = t2[e++] | t2[e++] << 8, n = t2[e++] | t2[e++] << 8, i2 = t2[e++], a2 = i2 >> 7, o2 = 1 << 1 + (7 & i2); 2966 t2[e++], t2[e++]; 2967 var s2 = null, u2 = null; 2968 a2 && (s2 = e, u2 = o2, e += 3 * o2); 2969 var c2 = true, l2 = [], h2 = 0, f2 = null, d2 = 0, p2 = null; 2970 for (this.width = r, this.height = n; c2 && e < t2.length; ) switch (t2[e++]) { 2971 case 33: 2972 switch (t2[e++]) { 2973 case 255: 2974 if (11 !== t2[e] || 78 == t2[e + 1] && 69 == t2[e + 2] && 84 == t2[e + 3] && 83 == t2[e + 4] && 67 == t2[e + 5] && 65 == t2[e + 6] && 80 == t2[e + 7] && 69 == t2[e + 8] && 50 == t2[e + 9] && 46 == t2[e + 10] && 48 == t2[e + 11] && 3 == t2[e + 12] && 1 == t2[e + 13] && 0 == t2[e + 16]) e += 14, p2 = t2[e++] | t2[e++] << 8, e++; 2975 else for (e += 12; ; ) { 2976 if (!((P2 = t2[e++]) >= 0)) throw Error("Invalid block size"); 2977 if (0 === P2) break; 2978 e += P2; 2979 } 2980 break; 2981 case 249: 2982 if (4 !== t2[e++] || 0 !== t2[e + 4]) throw new Error("Invalid graphics extension block."); 2983 var g2 = t2[e++]; 2984 h2 = t2[e++] | t2[e++] << 8, f2 = t2[e++], 1 & g2 || (f2 = null), d2 = g2 >> 2 & 7, e++; 2985 break; 2986 case 254: 2987 for (; ; ) { 2988 if (!((P2 = t2[e++]) >= 0)) throw Error("Invalid block size"); 2989 if (0 === P2) break; 2990 e += P2; 2991 } 2992 break; 2993 default: 2994 throw new Error("Unknown graphic control label: 0x" + t2[e - 1].toString(16)); 2995 } 2996 break; 2997 case 44: 2998 var m2 = t2[e++] | t2[e++] << 8, v2 = t2[e++] | t2[e++] << 8, b2 = t2[e++] | t2[e++] << 8, y2 = t2[e++] | t2[e++] << 8, w2 = t2[e++], N2 = w2 >> 6 & 1, L2 = 1 << 1 + (7 & w2), x2 = s2, A2 = u2, S2 = false; 2999 w2 >> 7 && (S2 = true, x2 = e, A2 = L2, e += 3 * L2); 3000 var _2 = e; 3001 for (e++; ; ) { 3002 var P2; 3003 if (!((P2 = t2[e++]) >= 0)) throw Error("Invalid block size"); 3004 if (0 === P2) break; 3005 e += P2; 3006 } 3007 l2.push({ x: m2, y: v2, width: b2, height: y2, has_local_palette: S2, palette_offset: x2, palette_size: A2, data_offset: _2, data_length: e - _2, transparent_index: f2, interlaced: !!N2, delay: h2, disposal: d2 }); 3008 break; 3009 case 59: 3010 c2 = false; 3011 break; 3012 default: 3013 throw new Error("Unknown gif block: 0x" + t2[e - 1].toString(16)); 3014 } 3015 this.numFrames = function() { 3016 return l2.length; 3017 }, this.loopCount = function() { 3018 return p2; 3019 }, this.frameInfo = function(t3) { 3020 if (t3 < 0 || t3 >= l2.length) throw new Error("Frame index out of range."); 3021 return l2[t3]; 3022 }, this.decodeAndBlitFrameBGRA = function(e2, n2) { 3023 var i3 = this.frameInfo(e2), a3 = i3.width * i3.height; 3024 if (a3 > 536870912) throw new Error("Image dimensions exceed 512MB, which is too large."); 3025 var o3 = new Uint8Array(a3); 3026 ae(t2, i3.data_offset, o3, a3); 3027 var s3 = i3.palette_offset, u3 = i3.transparent_index; 3028 null === u3 && (u3 = 256); 3029 var c3 = i3.width, l3 = r - c3, h3 = c3, f3 = 4 * (i3.y * r + i3.x), d3 = 4 * ((i3.y + i3.height) * r + i3.x), p3 = f3, g3 = 4 * l3; 3030 true === i3.interlaced && (g3 += 4 * r * 7); 3031 for (var m3 = 8, v3 = 0, b3 = o3.length; v3 < b3; ++v3) { 3032 var y3 = o3[v3]; 3033 if (0 === h3 && (h3 = c3, (p3 += g3) >= d3 && (g3 = 4 * l3 + 4 * r * (m3 - 1), p3 = f3 + (c3 + l3) * (m3 << 1), m3 >>= 1)), y3 === u3) p3 += 4; 3034 else { 3035 var w3 = t2[s3 + 3 * y3], N3 = t2[s3 + 3 * y3 + 1], L3 = t2[s3 + 3 * y3 + 2]; 3036 n2[p3++] = L3, n2[p3++] = N3, n2[p3++] = w3, n2[p3++] = 255; 3037 } 3038 --h3; 3039 } 3040 }, this.decodeAndBlitFrameRGBA = function(e2, n2) { 3041 var i3 = this.frameInfo(e2), a3 = i3.width * i3.height; 3042 if (a3 > 536870912) throw new Error("Image dimensions exceed 512MB, which is too large."); 3043 var o3 = new Uint8Array(a3); 3044 ae(t2, i3.data_offset, o3, a3); 3045 var s3 = i3.palette_offset, u3 = i3.transparent_index; 3046 null === u3 && (u3 = 256); 3047 var c3 = i3.width, l3 = r - c3, h3 = c3, f3 = 4 * (i3.y * r + i3.x), d3 = 4 * ((i3.y + i3.height) * r + i3.x), p3 = f3, g3 = 4 * l3; 3048 true === i3.interlaced && (g3 += 4 * r * 7); 3049 for (var m3 = 8, v3 = 0, b3 = o3.length; v3 < b3; ++v3) { 3050 var y3 = o3[v3]; 3051 if (0 === h3 && (h3 = c3, (p3 += g3) >= d3 && (g3 = 4 * l3 + 4 * r * (m3 - 1), p3 = f3 + (c3 + l3) * (m3 << 1), m3 >>= 1)), y3 === u3) p3 += 4; 3052 else { 3053 var w3 = t2[s3 + 3 * y3], N3 = t2[s3 + 3 * y3 + 1], L3 = t2[s3 + 3 * y3 + 2]; 3054 n2[p3++] = w3, n2[p3++] = N3, n2[p3++] = L3, n2[p3++] = 255; 3055 } 3056 --h3; 3057 } 3058 }; 3059} 3060function ae(t2, e, r, n) { 3061 for (var i2 = t2[e++], a2 = 1 << i2, s2 = a2 + 1, u2 = s2 + 1, c2 = i2 + 1, l2 = (1 << c2) - 1, h2 = 0, f2 = 0, d2 = 0, p2 = t2[e++], g2 = new Int32Array(4096), m2 = null; ; ) { 3062 for (; h2 < 16 && 0 !== p2; ) f2 |= t2[e++] << h2, h2 += 8, 1 === p2 ? p2 = t2[e++] : --p2; 3063 if (h2 < c2) break; 3064 var v2 = f2 & l2; 3065 if (f2 >>= c2, h2 -= c2, v2 !== a2) { 3066 if (v2 === s2) break; 3067 for (var b2 = v2 < u2 ? v2 : m2, y2 = 0, w2 = b2; w2 > a2; ) w2 = g2[w2] >> 8, ++y2; 3068 var N2 = w2; 3069 if (d2 + y2 + (b2 !== v2 ? 1 : 0) > n) return void o.log("Warning, gif stream longer than expected."); 3070 r[d2++] = N2; 3071 var L2 = d2 += y2; 3072 for (b2 !== v2 && (r[d2++] = N2), w2 = b2; y2--; ) w2 = g2[w2], r[--L2] = 255 & w2, w2 >>= 8; 3073 null !== m2 && u2 < 4096 && (g2[u2++] = m2 << 8 | N2, u2 >= l2 + 1 && c2 < 12 && (++c2, l2 = l2 << 1 | 1)), m2 = v2; 3074 } else u2 = s2 + 1, l2 = (1 << (c2 = i2 + 1)) - 1, m2 = null; 3075 } 3076 return d2 !== n && o.log("Warning, gif stream shorter than expected."), r; 3077}
vendor: 6,275 bytes, lines 3078-3147
3078/** 3079 * @license 3080 Copyright (c) 2008, Adobe Systems Incorporated 3081 All rights reserved. 3082 3083 Redistribution and use in source and binary forms, with or without 3084 modification, are permitted provided that the following conditions are 3085 met: 3086 3087 * Redistributions of source code must retain the above copyright notice, 3088 this list of conditions and the following disclaimer. 3089 3090 * Redistributions in binary form must reproduce the above copyright 3091 notice, this list of conditions and the following disclaimer in the 3092 documentation and/or other materials provided with the distribution. 3093 3094 * Neither the name of Adobe Systems Incorporated nor the names of its 3095 contributors may be used to endorse or promote products derived from 3096 this software without specific prior written permission. 3097 3098 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 3099 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 3100 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 3101 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 3102 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 3103 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 3104 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 3105 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 3106 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 3107 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 3108 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3109*/ 3110function oe(t2) { 3111 var e, r, n, i2, a2, o2 = Math.floor, s2 = new Array(64), u2 = new Array(64), c2 = new Array(64), l2 = new Array(64), h2 = new Array(65535), f2 = new Array(65535), d2 = new Array(64), p2 = new Array(64), g2 = [], m2 = 0, v2 = 7, b2 = new Array(64), y2 = new Array(64), w2 = new Array(64), N2 = new Array(256), L2 = new Array(2048), x2 = [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], A2 = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0], S2 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], _2 = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125], P2 = [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], k2 = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], F2 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], I2 = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119], C2 = [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]; 3112 function j2(t3, e2) { 3113 for (var r2 = 0, n2 = 0, i3 = new Array(), a3 = 1; a3 <= 16; a3++) { 3114 for (var o3 = 1; o3 <= t3[a3]; o3++) i3[e2[n2]] = [], i3[e2[n2]][0] = r2, i3[e2[n2]][1] = a3, n2++, r2++; 3115 r2 *= 2; 3116 } 3117 return i3; 3118 } 3119 function O2(t3) { 3120 for (var e2 = t3[0], r2 = t3[1] - 1; r2 >= 0; ) e2 & 1 << r2 && (m2 |= 1 << v2), r2--, --v2 < 0 && (255 == m2 ? (B2(255), B2(0)) : B2(m2), v2 = 7, m2 = 0); 3121 } 3122 function B2(t3) { 3123 g2.push(t3); 3124 } 3125 function M2(t3) { 3126 B2(t3 >> 8 & 255), B2(255 & t3); 3127 } 3128 function q2(t3, e2, r2, n2, i3) { 3129 for (var a3, o3 = i3[0], s3 = i3[240], u3 = function(t4, e3) { 3130 var r3, n3, i4, a4, o4, s4, u4, c4, l4, h3, f3 = 0; 3131 for (l4 = 0; l4 < 8; ++l4) { 3132 r3 = t4[f3], n3 = t4[f3 + 1], i4 = t4[f3 + 2], a4 = t4[f3 + 3], o4 = t4[f3 + 4], s4 = t4[f3 + 5], u4 = t4[f3 + 6]; 3133 var p3 = r3 + (c4 = t4[f3 + 7]), g4 = r3 - c4, m4 = n3 + u4, v4 = n3 - u4, b4 = i4 + s4, y4 = i4 - s4, w4 = a4 + o4, N3 = a4 - o4, L3 = p3 + w4, x3 = p3 - w4, A3 = m4 + b4, S3 = m4 - b4; 3134 t4[f3] = L3 + A3, t4[f3 + 4] = L3 - A3; 3135 var _3 = 0.707106781 * (S3 + x3); 3136 t4[f3 + 2] = x3 + _3, t4[f3 + 6] = x3 - _3; 3137 var P3 = 0.382683433 * ((L3 = N3 + y4) - (S3 = v4 + g4)), k3 = 0.5411961 * L3 + P3, F3 = 1.306562965 * S3 + P3, I3 = 0.707106781 * (A3 = y4 + v4), C3 = g4 + I3, j3 = g4 - I3; 3138 t4[f3 + 5] = j3 + k3, t4[f3 + 3] = j3 - k3, t4[f3 + 1] = C3 + F3, t4[f3 + 7] = C3 - F3, f3 += 8; 3139 } 3140 for (f3 = 0, l4 = 0; l4 < 8; ++l4) { 3141 r3 = t4[f3], n3 = t4[f3 + 8], i4 = t4[f3 + 16], a4 = t4[f3 + 24], o4 = t4[f3 + 32], s4 = t4[f3 + 40], u4 = t4[f3 + 48]; 3142 var O3 = r3 + (c4 = t4[f3 + 56]), B3 = r3 - c4, M3 = n3 + u4, q3 = n3 - u4, E3 = i4 + s4, R2 = i4 - s4, D2 = a4 + o4, T2 = a4 - o4, z2 = O3 + D2, U2 = O3 - D2, H2 = M3 + E3, W2 = M3 - E3; 3143 t4[f3] = z2 + H2, t4[f3 + 32] = z2 - H2; 3144 var V2 = 0.707106781 * (W2 + U2); 3145 t4[f3 + 16] = U2 + V2, t4[f3 + 48] = U2 - V2; 3146 var G2 = 0.382683433 * ((z2 = T2 + R2) - (W2 = q3 + B3)), Y2 = 0.5411961 * z2 + G2, J2 = 1.306562965 * W2 + G2, X2 = 0.707106781 * (H2 = R2 + q3), K2 = B3 + X2, Z2 = B3 - X2; 3147 t4[f3 + 40] = Z2 + Y2, t4[f3 + 24] = Z2 - Y2, t4[f3 + 8] = K2 + J2, t4[f3 + 56] =
vendor: 5,848 bytes, lines 3147-3246
3147K2 - J2, f3++; 3148 } 3149 for (l4 = 0; l4 < 64; ++l4) h3 = t4[l4] * e3[l4], d2[l4] = h3 > 0 ? h3 + 0.5 | 0 : h3 - 0.5 | 0; 3150 return d2; 3151 }(t3, e2), c3 = 0; c3 < 64; ++c3) p2[x2[c3]] = u3[c3]; 3152 var l3 = p2[0] - r2; 3153 r2 = p2[0], 0 == l3 ? O2(n2[0]) : (O2(n2[f2[a3 = 32767 + l3]]), O2(h2[a3])); 3154 for (var g3 = 63; g3 > 0 && 0 == p2[g3]; ) g3--; 3155 if (0 == g3) return O2(o3), r2; 3156 for (var m3, v3 = 1; v3 <= g3; ) { 3157 for (var b3 = v3; 0 == p2[v3] && v3 <= g3; ) ++v3; 3158 var y3 = v3 - b3; 3159 if (y3 >= 16) { 3160 m3 = y3 >> 4; 3161 for (var w3 = 1; w3 <= m3; ++w3) O2(s3); 3162 y3 &= 15; 3163 } 3164 a3 = 32767 + p2[v3], O2(i3[(y3 << 4) + f2[a3]]), O2(h2[a3]), v3++; 3165 } 3166 return 63 != g3 && O2(o3), r2; 3167 } 3168 function E2(t3) { 3169 t3 = Math.min(Math.max(t3, 1), 100), a2 != t3 && (function(t4) { 3170 for (var e2 = [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], r2 = 0; r2 < 64; r2++) { 3171 var n2 = o2((e2[r2] * t4 + 50) / 100); 3172 n2 = Math.min(Math.max(n2, 1), 255), s2[x2[r2]] = n2; 3173 } 3174 for (var i3 = [17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99], a3 = 0; a3 < 64; a3++) { 3175 var h3 = o2((i3[a3] * t4 + 50) / 100); 3176 h3 = Math.min(Math.max(h3, 1), 255), u2[x2[a3]] = h3; 3177 } 3178 for (var f3 = [1, 1.387039845, 1.306562965, 1.175875602, 1, 0.785694958, 0.5411961, 0.275899379], d3 = 0, p3 = 0; p3 < 8; p3++) for (var g3 = 0; g3 < 8; g3++) c2[d3] = 1 / (s2[x2[d3]] * f3[p3] * f3[g3] * 8), l2[d3] = 1 / (u2[x2[d3]] * f3[p3] * f3[g3] * 8), d3++; 3179 }(t3 < 50 ? Math.floor(5e3 / t3) : Math.floor(200 - 2 * t3)), a2 = t3); 3180 } 3181 this.encode = function(t3, a3) { 3182 a3 && E2(a3), g2 = new Array(), m2 = 0, v2 = 7, M2(65496), M2(65504), M2(16), B2(74), B2(70), B2(73), B2(70), B2(0), B2(1), B2(1), B2(0), M2(1), M2(1), B2(0), B2(0), function() { 3183 M2(65499), M2(132), B2(0); 3184 for (var t4 = 0; t4 < 64; t4++) B2(s2[t4]); 3185 B2(1); 3186 for (var e2 = 0; e2 < 64; e2++) B2(u2[e2]); 3187 }(), function(t4, e2) { 3188 M2(65472), M2(17), B2(8), M2(e2), M2(t4), B2(3), B2(1), B2(17), B2(0), B2(2), B2(17), B2(1), B2(3), B2(17), B2(1); 3189 }(t3.width, t3.height), function() { 3190 M2(65476), M2(418), B2(0); 3191 for (var t4 = 0; t4 < 16; t4++) B2(A2[t4 + 1]); 3192 for (var e2 = 0; e2 <= 11; e2++) B2(S2[e2]); 3193 B2(16); 3194 for (var r2 = 0; r2 < 16; r2++) B2(_2[r2 + 1]); 3195 for (var n2 = 0; n2 <= 161; n2++) B2(P2[n2]); 3196 B2(1); 3197 for (var i3 = 0; i3 < 16; i3++) B2(k2[i3 + 1]); 3198 for (var a4 = 0; a4 <= 11; a4++) B2(F2[a4]); 3199 B2(17); 3200 for (var o4 = 0; o4 < 16; o4++) B2(I2[o4 + 1]); 3201 for (var s3 = 0; s3 <= 161; s3++) B2(C2[s3]); 3202 }(), M2(65498), M2(12), B2(3), B2(1), B2(0), B2(2), B2(17), B2(3), B2(17), B2(0), B2(63), B2(0); 3203 var o3 = 0, h3 = 0, f3 = 0; 3204 m2 = 0, v2 = 7, this.encode.displayName = "_encode_"; 3205 for (var d3, p3, N3, x3, j3, R2, D2, T2, z2, U2 = t3.data, H2 = t3.width, W2 = t3.height, V2 = 4 * H2, G2 = 0; G2 < W2; ) { 3206 for (d3 = 0; d3 < V2; ) { 3207 for (j3 = V2 * G2 + d3, D2 = -1, T2 = 0, z2 = 0; z2 < 64; z2++) R2 = j3 + (T2 = z2 >> 3) * V2 + (D2 = 4 * (7 & z2)), G2 + T2 >= W2 && (R2 -= V2 * (G2 + 1 + T2 - W2)), d3 + D2 >= V2 && (R2 -= d3 + D2 - V2 + 4), p3 = U2[R2++], N3 = U2[R2++], x3 = U2[R2++], b2[z2] = (L2[p3] + L2[N3 + 256 | 0] + L2[x3 + 512 | 0] >> 16) - 128, y2[z2] = (L2[p3 + 768 | 0] + L2[N3 + 1024 | 0] + L2[x3 + 1280 | 0] >> 16) - 128, w2[z2] = (L2[p3 + 1280 | 0] + L2[N3 + 1536 | 0] + L2[x3 + 1792 | 0] >> 16) - 128; 3208 o3 = q2(b2, c2, o3, e, n), h3 = q2(y2, l2, h3, r, i2), f3 = q2(w2, l2, f3, r, i2), d3 += 32; 3209 } 3210 G2 += 8; 3211 } 3212 if (v2 >= 0) { 3213 var Y2 = []; 3214 Y2[1] = v2 + 1, Y2[0] = (1 << v2 + 1) - 1, O2(Y2); 3215 } 3216 return M2(65497), new Uint8Array(g2); 3217 }, t2 = t2 || 50, function() { 3218 for (var t3 = String.fromCharCode, e2 = 0; e2 < 256; e2++) N2[e2] = t3(e2); 3219 }(), e = j2(A2, S2), r = j2(k2, F2), n = j2(_2, P2), i2 = j2(I2, C2), function() { 3220 for (var t3 = 1, e2 = 2, r2 = 1; r2 <= 15; r2++) { 3221 for (var n2 = t3; n2 < e2; n2++) f2[32767 + n2] = r2, h2[32767 + n2] = [], h2[32767 + n2][1] = r2, h2[32767 + n2][0] = n2; 3222 for (var i3 = -(e2 - 1); i3 <= -t3; i3++) f2[32767 + i3] = r2, h2[32767 + i3] = [], h2[32767 + i3][1] = r2, h2[32767 + i3][0] = e2 - 1 + i3; 3223 t3 <<= 1, e2 <<= 1; 3224 } 3225 }(), function() { 3226 for (var t3 = 0; t3 < 256; t3++) L2[t3] = 19595 * t3, L2[t3 + 256 | 0] = 38470 * t3, L2[t3 + 512 | 0] = 7471 * t3 + 32768, L2[t3 + 768 | 0] = -11059 * t3, L2[t3 + 1024 | 0] = -21709 * t3, L2[t3 + 1280 | 0] = 32768 * t3 + 8421375, L2[t3 + 1536 | 0] = -27439 * t3, L2[t3 + 1792 | 0] = -5329 * t3; 3227 }(), E2(t2); 3228} 3229/** 3230 * @license 3231 * Copyright (c) 2017 Aras Abbasi 3232 * 3233 * Licensed under the MIT License. 3234 * http://opensource.org/licenses/mit-license 3235 */ 3236function se(t2, e) { 3237 if (this.pos = 0, this.buffer = t2, this.datav = new DataView(t2.buffer), this.is_with_alpha = !!e, this.bottom_up = true, this.flag = String.fromCharCode(this.buffer[0]) + String.fromCharCode(this.buffer[1]), this.pos += 2, -1 === ["BM", "BA", "CI", "CP", "IC", "PT"].indexOf(this.flag)) throw new Error("Invalid BMP File"); 3238 this.parseHeader(), this.parseBGR(); 3239} 3240function ue(t2) { 3241 function e(t3) { 3242 if (!t3) throw Error("assert :P"); 3243 } 3244 function r(t3, e2, r2) { 3245 for (var n2 = 0; 4 > n2; n2++) if (t3[e2 + n2] != r2.charCodeAt(n2)) return true; 3246 return false;
vendor: 5,631 bytes, lines 3247-3389
3247 } 3248 function n(t3, e2, r2, n2, i3) { 3249 for (var a3 = 0; a3 < i3; a3++) t3[e2 + a3] = r2[n2 + a3]; 3250 } 3251 function i2(t3, e2, r2, n2) { 3252 for (var i3 = 0; i3 < n2; i3++) t3[e2 + i3] = r2; 3253 } 3254 function a2(t3) { 3255 return new Int32Array(t3); 3256 } 3257 function o2(t3, e2) { 3258 for (var r2 = [], n2 = 0; n2 < t3; n2++) r2.push(new e2()); 3259 return r2; 3260 } 3261 function s2(t3, e2) { 3262 var r2 = []; 3263 return function t4(r3, n2, i3) { 3264 for (var a3 = i3[n2], o3 = 0; o3 < a3 && (r3.push(i3.length > n2 + 1 ? [] : new e2()), !(i3.length < n2 + 1)); o3++) t4(r3[o3], n2 + 1, i3); 3265 }(r2, 0, t3), r2; 3266 } 3267 var u2 = function() { 3268 var t3 = this; 3269 function u3(t4, e2) { 3270 for (var r2 = 1 << e2 - 1 >>> 0; t4 & r2; ) r2 >>>= 1; 3271 return r2 ? (t4 & r2 - 1) + r2 : t4; 3272 } 3273 function c3(t4, r2, n2, i3, a3) { 3274 e(!(i3 % n2)); 3275 do { 3276 t4[r2 + (i3 -= n2)] = a3; 3277 } while (0 < i3); 3278 } 3279 function l3(t4, r2, n2, i3, o3) { 3280 if (e(2328 >= o3), 512 >= o3) var s3 = a2(512); 3281 else if (null == (s3 = a2(o3))) return 0; 3282 return function(t5, r3, n3, i4, o4, s4) { 3283 var l4, f4, d4 = r3, p4 = 1 << n3, g4 = a2(16), m4 = a2(16); 3284 for (e(0 != o4), e(null != i4), e(null != t5), e(0 < n3), f4 = 0; f4 < o4; ++f4) { 3285 if (15 < i4[f4]) return 0; 3286 ++g4[i4[f4]]; 3287 } 3288 if (g4[0] == o4) return 0; 3289 for (m4[1] = 0, l4 = 1; 15 > l4; ++l4) { 3290 if (g4[l4] > 1 << l4) return 0; 3291 m4[l4 + 1] = m4[l4] + g4[l4]; 3292 } 3293 for (f4 = 0; f4 < o4; ++f4) l4 = i4[f4], 0 < i4[f4] && (s4[m4[l4]++] = f4); 3294 if (1 == m4[15]) return (i4 = new h3()).g = 0, i4.value = s4[0], c3(t5, d4, 1, p4, i4), p4; 3295 var v4, b4 = -1, y4 = p4 - 1, w4 = 0, N4 = 1, L4 = 1, x4 = 1 << n3; 3296 for (f4 = 0, l4 = 1, o4 = 2; l4 <= n3; ++l4, o4 <<= 1) { 3297 if (N4 += L4 <<= 1, 0 > (L4 -= g4[l4])) return 0; 3298 for (; 0 < g4[l4]; --g4[l4]) (i4 = new h3()).g = l4, i4.value = s4[f4++], c3(t5, d4 + w4, o4, x4, i4), w4 = u3(w4, l4); 3299 } 3300 for (l4 = n3 + 1, o4 = 2; 15 >= l4; ++l4, o4 <<= 1) { 3301 if (N4 += L4 <<= 1, 0 > (L4 -= g4[l4])) return 0; 3302 for (; 0 < g4[l4]; --g4[l4]) { 3303 if (i4 = new h3(), (w4 & y4) != b4) { 3304 for (d4 += x4, v4 = 1 << (b4 = l4) - n3; 15 > b4 && !(0 >= (v4 -= g4[b4])); ) ++b4, v4 <<= 1; 3305 p4 += x4 = 1 << (v4 = b4 - n3), t5[r3 + (b4 = w4 & y4)].g = v4 + n3, t5[r3 + b4].value = d4 - r3 - b4; 3306 } 3307 i4.g = l4 - n3, i4.value = s4[f4++], c3(t5, d4 + (w4 >> n3), o4, x4, i4), w4 = u3(w4, l4); 3308 } 3309 } 3310 return N4 != 2 * m4[15] - 1 ? 0 : p4; 3311 }(t4, r2, n2, i3, o3, s3); 3312 } 3313 function h3() { 3314 this.value = this.g = 0; 3315 } 3316 function f3() { 3317 this.value = this.g = 0; 3318 } 3319 function d3() { 3320 this.G = o2(5, h3), this.H = a2(5), this.jc = this.Qb = this.qb = this.nd = 0, this.pd = o2(Er, f3); 3321 } 3322 function p3(t4, r2, n2, i3) { 3323 e(null != t4), e(null != r2), e(2147483648 > i3), t4.Ca = 254, t4.I = 0, t4.b = -8, t4.Ka = 0, t4.oa = r2, t4.pa = n2, t4.Jd = r2, t4.Yc = n2 + i3, t4.Zc = 4 <= i3 ? n2 + i3 - 4 + 1 : n2, _2(t4); 3324 } 3325 function g3(t4, e2) { 3326 for (var r2 = 0; 0 < e2--; ) r2 |= k2(t4, 128) << e2; 3327 return r2; 3328 } 3329 function m3(t4, e2) { 3330 var r2 = g3(t4, e2); 3331 return P2(t4) ? -r2 : r2; 3332 } 3333 function v3(t4, r2, n2, i3) { 3334 var a3, o3 = 0; 3335 for (e(null != t4), e(null != r2), e(4294967288 > i3), t4.Sb = i3, t4.Ra = 0, t4.u = 0, t4.h = 0, 4 < i3 && (i3 = 4), a3 = 0; a3 < i3; ++a3) o3 += r2[n2 + a3] << 8 * a3; 3336 t4.Ra = o3, t4.bb = i3, t4.oa = r2, t4.pa = n2; 3337 } 3338 function b3(t4) { 3339 for (; 8 <= t4.u && t4.bb < t4.Sb; ) t4.Ra >>>= 8, t4.Ra += t4.oa[t4.pa + t4.bb] << Tr - 8 >>> 0, ++t4.bb, t4.u -= 8; 3340 x3(t4) && (t4.h = 1, t4.u = 0); 3341 } 3342 function y3(t4, r2) { 3343 if (e(0 <= r2), !t4.h && r2 <= Dr) { 3344 var n2 = L3(t4) & Rr[r2]; 3345 return t4.u += r2, b3(t4), n2; 3346 } 3347 return t4.h = 1, t4.u = 0; 3348 } 3349 function w3() { 3350 this.b = this.Ca = this.I = 0, this.oa = [], this.pa = 0, this.Jd = [], this.Yc = 0, this.Zc = [], this.Ka = 0; 3351 } 3352 function N3() { 3353 this.Ra = 0, this.oa = [], this.h = this.u = this.bb = this.Sb = this.pa = 0; 3354 } 3355 function L3(t4) { 3356 return t4.Ra >>> (t4.u & Tr - 1) >>> 0; 3357 } 3358 function x3(t4) { 3359 return e(t4.bb <= t4.Sb), t4.h || t4.bb == t4.Sb && t4.u > Tr; 3360 } 3361 function A3(t4, e2) { 3362 t4.u = e2, t4.h = x3(t4); 3363 } 3364 function S2(t4) { 3365 t4.u >= zr && (e(t4.u >= zr), b3(t4)); 3366 } 3367 function _2(t4) { 3368 e(null != t4 && null != t4.oa), t4.pa < t4.Zc ? (t4.I = (t4.oa[t4.pa++] | t4.I << 8) >>> 0, t4.b += 8) : (e(null != t4 && null != t4.oa), t4.pa < t4.Yc ? (t4.b += 8, t4.I = t4.oa[t4.pa++] | t4.I << 8) : t4.Ka ? t4.b = 0 : (t4.I <<= 8, t4.b += 8, t4.Ka = 1)); 3369 } 3370 function P2(t4) { 3371 return g3(t4, 1); 3372 } 3373 function k2(t4, e2) { 3374 var r2 = t4.Ca; 3375 0 > t4.b && _2(t4); 3376 var n2 = t4.b, i3 = r2 * e2 >>> 8, a3 = (t4.I >>> n2 > i3) + 0; 3377 for (a3 ? (r2 -= i3, t4.I -= i3 + 1 << n2 >>> 0) : r2 = i3 + 1, n2 = r2, i3 = 0; 256 <= n2; ) i3 += 8, n2 >>= 8; 3378 return n2 = 7 ^ i3 + Ur[n2], t4.b -= n2, t4.Ca = (r2 << n2) - 1, a3; 3379 } 3380 function F2(t4, e2, r2) { 3381 t4[e2 + 0] = r2 >> 24 & 255, t4[e2 + 1] = r2 >> 16 & 255, t4[e2 + 2] = r2 >> 8 & 255, t4[e2 + 3] = 255 & r2; 3382 } 3383 function I2(t4, e2) { 3384 return t4[e2 + 0] | t4[e2 + 1] << 8; 3385 } 3386 function C2(t4, e2) { 3387 return I2(t4, e2) | t4[e2 + 2] << 16; 3388 } 3389 function j
vendor: 8,159 bytes, lines 3389-3558
33892(t4, e2) { 3390 return I2(t4, e2) | I2(t4, e2 + 2) << 16; 3391 } 3392 function O2(t4, r2) { 3393 var n2 = 1 << r2; 3394 return e(null != t4), e(0 < r2), t4.X = a2(n2), null == t4.X ? 0 : (t4.Mb = 32 - r2, t4.Xa = r2, 1); 3395 } 3396 function B2(t4, r2) { 3397 e(null != t4), e(null != r2), e(t4.Xa == r2.Xa), n(r2.X, 0, t4.X, 0, 1 << r2.Xa); 3398 } 3399 function M2() { 3400 this.X = [], this.Xa = this.Mb = 0; 3401 } 3402 function q2(t4, r2, n2, i3) { 3403 e(null != n2), e(null != i3); 3404 var a3 = n2[0], o3 = i3[0]; 3405 return 0 == a3 && (a3 = (t4 * o3 + r2 / 2) / r2), 0 == o3 && (o3 = (r2 * a3 + t4 / 2) / t4), 0 >= a3 || 0 >= o3 ? 0 : (n2[0] = a3, i3[0] = o3, 1); 3406 } 3407 function E2(t4, e2) { 3408 return t4 + (1 << e2) - 1 >>> e2; 3409 } 3410 function R2(t4, e2) { 3411 return ((4278255360 & t4) + (4278255360 & e2) >>> 0 & 4278255360) + ((16711935 & t4) + (16711935 & e2) >>> 0 & 16711935) >>> 0; 3412 } 3413 function D2(e2, r2) { 3414 t3[r2] = function(r3, n2, i3, a3, o3, s3, u4) { 3415 var c4; 3416 for (c4 = 0; c4 < o3; ++c4) { 3417 var l4 = t3[e2](s3[u4 + c4 - 1], i3, a3 + c4); 3418 s3[u4 + c4] = R2(r3[n2 + c4], l4); 3419 } 3420 }; 3421 } 3422 function T2() { 3423 this.ud = this.hd = this.jd = 0; 3424 } 3425 function z2(t4, e2) { 3426 return ((4278124286 & (t4 ^ e2)) >>> 1) + (t4 & e2) >>> 0; 3427 } 3428 function U2(t4) { 3429 return 0 <= t4 && 256 > t4 ? t4 : 0 > t4 ? 0 : 255 < t4 ? 255 : void 0; 3430 } 3431 function H2(t4, e2) { 3432 return U2(t4 + (t4 - e2 + 0.5 >> 1)); 3433 } 3434 function W2(t4, e2, r2) { 3435 return Math.abs(e2 - r2) - Math.abs(t4 - r2); 3436 } 3437 function V2(t4, e2, r2, n2, i3, a3, o3) { 3438 for (n2 = a3[o3 - 1], r2 = 0; r2 < i3; ++r2) a3[o3 + r2] = n2 = R2(t4[e2 + r2], n2); 3439 } 3440 function G2(t4, e2, r2, n2, i3) { 3441 var a3; 3442 for (a3 = 0; a3 < r2; ++a3) { 3443 var o3 = t4[e2 + a3], s3 = o3 >> 8 & 255, u4 = 16711935 & (u4 = (u4 = 16711935 & o3) + ((s3 << 16) + s3)); 3444 n2[i3 + a3] = (4278255360 & o3) + u4 >>> 0; 3445 } 3446 } 3447 function Y2(t4, e2) { 3448 e2.jd = 255 & t4, e2.hd = t4 >> 8 & 255, e2.ud = t4 >> 16 & 255; 3449 } 3450 function J2(t4, e2, r2, n2, i3, a3) { 3451 var o3; 3452 for (o3 = 0; o3 < n2; ++o3) { 3453 var s3 = e2[r2 + o3], u4 = s3 >>> 8, c4 = s3, l4 = 255 & (l4 = (l4 = s3 >>> 16) + ((t4.jd << 24 >> 24) * (u4 << 24 >> 24) >>> 5)); 3454 c4 = 255 & (c4 = (c4 += (t4.hd << 24 >> 24) * (u4 << 24 >> 24) >>> 5) + ((t4.ud << 24 >> 24) * (l4 << 24 >> 24) >>> 5)), i3[a3 + o3] = (4278255360 & s3) + (l4 << 16) + c4; 3455 } 3456 } 3457 function X2(e2, r2, n2, i3, a3) { 3458 t3[r2] = function(t4, e3, r3, n3, o3, s3, u4, c4, l4) { 3459 for (n3 = u4; n3 < c4; ++n3) for (u4 = 0; u4 < l4; ++u4) o3[s3++] = a3(r3[i3(t4[e3++])]); 3460 }, t3[e2] = function(e3, r3, o3, s3, u4, c4, l4) { 3461 var h4 = 8 >> e3.b, f4 = e3.Ea, d4 = e3.K[0], p4 = e3.w; 3462 if (8 > h4) for (e3 = (1 << e3.b) - 1, p4 = (1 << h4) - 1; r3 < o3; ++r3) { 3463 var g4, m4 = 0; 3464 for (g4 = 0; g4 < f4; ++g4) g4 & e3 || (m4 = i3(s3[u4++])), c4[l4++] = a3(d4[m4 & p4]), m4 >>= h4; 3465 } 3466 else t3["VP8LMapColor" + n2](s3, u4, d4, p4, c4, l4, r3, o3, f4); 3467 }; 3468 } 3469 function K2(t4, e2, r2, n2, i3) { 3470 for (r2 = e2 + r2; e2 < r2; ) { 3471 var a3 = t4[e2++]; 3472 n2[i3++] = a3 >> 16 & 255, n2[i3++] = a3 >> 8 & 255, n2[i3++] = 255 & a3; 3473 } 3474 } 3475 function Z2(t4, e2, r2, n2, i3) { 3476 for (r2 = e2 + r2; e2 < r2; ) { 3477 var a3 = t4[e2++]; 3478 n2[i3++] = a3 >> 16 & 255, n2[i3++] = a3 >> 8 & 255, n2[i3++] = 255 & a3, n2[i3++] = a3 >> 24 & 255; 3479 } 3480 } 3481 function $2(t4, e2, r2, n2, i3) { 3482 for (r2 = e2 + r2; e2 < r2; ) { 3483 var a3 = (o3 = t4[e2++]) >> 16 & 240 | o3 >> 12 & 15, o3 = 240 & o3 | o3 >> 28 & 15; 3484 n2[i3++] = a3, n2[i3++] = o3; 3485 } 3486 } 3487 function Q2(t4, e2, r2, n2, i3) { 3488 for (r2 = e2 + r2; e2 < r2; ) { 3489 var a3 = (o3 = t4[e2++]) >> 16 & 248 | o3 >> 13 & 7, o3 = o3 >> 5 & 224 | o3 >> 3 & 31; 3490 n2[i3++] = a3, n2[i3++] = o3; 3491 } 3492 } 3493 function tt2(t4, e2, r2, n2, i3) { 3494 for (r2 = e2 + r2; e2 < r2; ) { 3495 var a3 = t4[e2++]; 3496 n2[i3++] = 255 & a3, n2[i3++] = a3 >> 8 & 255, n2[i3++] = a3 >> 16 & 255; 3497 } 3498 } 3499 function et2(t4, e2, r2, i3, a3, o3) { 3500 if (0 == o3) for (r2 = e2 + r2; e2 < r2; ) F2(i3, ((o3 = t4[e2++])[0] >> 24 | o3[1] >> 8 & 65280 | o3[2] << 8 & 16711680 | o3[3] << 24) >>> 0), a3 += 32; 3501 else n(i3, a3, t4, e2, r2); 3502 } 3503 function rt2(e2, r2) { 3504 t3[r2][0] = t3[e2 + "0"], t3[r2][1] = t3[e2 + "1"], t3[r2][2] = t3[e2 + "2"], t3[r2][3] = t3[e2 + "3"], t3[r2][4] = t3[e2 + "4"], t3[r2][5] = t3[e2 + "5"], t3[r2][6] = t3[e2 + "6"], t3[r2][7] = t3[e2 + "7"], t3[r2][8] = t3[e2 + "8"], t3[r2][9] = t3[e2 + "9"], t3[r2][10] = t3[e2 + "10"], t3[r2][11] = t3[e2 + "11"], t3[r2][12] = t3[e2 + "12"], t3[r2][13] = t3[e2 + "13"], t3[r2][14] = t3[e2 + "0"], t3[r2][15] = t3[e2 + "0"]; 3505 } 3506 function nt2(t4) { 3507 return t4 == Un || t4 == Hn || t4 == Wn || t4 == Vn; 3508 } 3509 function it2() { 3510 this.eb = [], this.size = this.A = this.fb = 0; 3511 } 3512 function at2() { 3513 this.y = [], this.f = [], this.ea = [], this.F = [], this.Tc = this.Ed = this.Cd = this.Fd = this.lb = this.Db = this.Ab = this.fa = this.J = this.W = this.N = this.O = 0; 3514 } 3515 function ot2() { 3516 this.Rd = this.height = this.width = this.S = 0, this.f = {}, this.f.RGBA = new it2(), this.f.kb = new at2(), this.sd = null; 3517 } 3518 function st2() { 3519 this.width = [0], this.height = [0], this.Pd = [0], this.Qd = [0], this.format = [0]; 3520 } 3521 function ut2() { 3522 this.Id = this.fd = this.Md = this.hb = this.ib = this.da = this.bd = this.cd = this.j = this.v = this.Da = this.Sd = this.ob = 0; 3523 } 3524 function ct2(t4) { 3525 return alert("todo:WebPSamplerProcessPlane"), t4.T; 3526 } 3527 function lt2(t4, e2) { 3528 var r2 = t4.T, i3 = e2.ba.f.RGBA, a3 = i3.eb, o3 = i3.fb + t4.ka * i3.A, s3 = mi[e2.ba.S], u4 = t4.y, c4 = t4.O, l4 = t4.f, h4 = t4.N, f4 = t4.ea, d4 = t4.W, p4 = e2.cc, g4 = e2.dc, m4 = e2.Mc, v4 = e2.Nc, b4 = t4.ka, y4 = t4.ka + t4.T, w4 = t4.U, N4 = w4 + 1 >> 1; 3529 for (0 == b4 ? s3(u4, c4, null, null, l4, h4, f4, d4, l4, h4, f4, d4, a3, o3, null, null, w4) : (s3(e2.ec, e2.fc, u4, c4, p4, g4, m4, v4, l4, h4, f4, d4, a3, o3 - i3.A, a3, o3, w4), ++r2); b4 + 2 < y4; b4 += 2) p4 = l4, g4 = h4, m4 = f4, v4 = d4, h4 += t4.Rc, d4 += t4.Rc, o3 += 2 * i3.A, s3(u4, (c4 += 2 * t4.fa) - t4.fa, u4, c4, p4, g4, m4, v4, l4, h4, f4, d4, a3, o3 - i3.A, a3, o3, w4); 3530 return c4 += t4.fa, t4.j + y4 < t4.o ? (n(e2.ec, e2.fc, u4, c4, w4), n(e2.cc, e2.dc, l4, h4, N4), n(e2.Mc, e2.Nc, f4, d4, N4), r2--) : 1 & y4 || s3(u4, c4, null, null, l4, h4, f4, d4, l4, h4, f4, d4, a3, o3 + i3.A, null, null, w4), r2; 3531 } 3532 function ht2(t4, r2, n2) { 3533 var i3 = t4.F, a3 = [t4.J]; 3534 if (null != i3) { 3535 var o3 = t4.U, s3 = r2.ba.S, u4 = s3 == Dn || s3 == Wn; 3536 r2 = r2.ba.f.RGBA; 3537 var c4 = [0], l4 = t4.ka; 3538 c4[0] = t4.T, t4.Kb && (0 == l4 ? --c4[0] : (--l4, a3[0] -= t4.width), t4.j + t4.ka + t4.T == t4.o && (c4[0] = t4.o - t4.j - l4)); 3539 var h4 = r2.eb; 3540 l4 = r2.fb + l4 * r2.A, t4 = An(i3, a3[0], t4.width, o3, c4, h4, l4 + (u4 ? 0 : 3), r2.A), e(n2 == c4), t4 && nt2(s3) && Ln(h4, l4, u4, o3, c4, r2.A); 3541 } 3542 return 0; 3543 } 3544 function ft2(t4) { 3545 var e2 = t4.ma, r2 = e2.ba.S, n2 = 11 > r2, i3 = r2 == qn || r2 == Rn || r2 == Dn || r2 == Tn || 12 == r2 || nt2(r2); 3546 if (e2.memory = null, e2.Ib = null, e2.Jb = null, e2.Nd = null, !Br(e2.Oa, t4, i3 ? 11 : 12)) return 0; 3547 if (i3 && nt2(r2) && vr(), t4.da) alert("todo:use_scaling"); 3548 else { 3549 if (n2) { 3550 if (e2.Ib = ct2, t4.Kb) { 3551 if (r2 = t4.U + 1 >> 1, e2.memory = a2(t4.U + 2 * r2), null == e2.memory) return 0; 3552 e2.ec = e2.memory, e2.fc = 0, e2.cc = e2.ec, e2.dc = e2.fc + t4.U, e2.Mc = e2.cc, e2.Nc = e2.dc + r2, e2.Ib = lt2, vr(); 3553 } 3554 } else alert("todo:EmitYUV"); 3555 i3 && (e2.Jb = ht2, n2 && gr()); 3556 } 3557 if (n2 && !Ii) { 3558 for (t4 = 0; 256 > t4; ++t4)
vendor: 19,771 bytes, lines 3558-3979
3558Ci[t4] = 89858 * (t4 - 128) + Si >> Ai, Bi[t4] = -22014 * (t4 - 128) + Si, Oi[t4] = -45773 * (t4 - 128), ji[t4] = 113618 * (t4 - 128) + Si >> Ai; 3559 for (t4 = _i; t4 < Pi; ++t4) e2 = 76283 * (t4 - 16) + Si >> Ai, Mi[t4 - _i] = Vt2(e2, 255), qi[t4 - _i] = Vt2(e2 + 8 >> 4, 15); 3560 Ii = 1; 3561 } 3562 return 1; 3563 } 3564 function dt2(t4) { 3565 var r2 = t4.ma, n2 = t4.U, i3 = t4.T; 3566 return e(!(1 & t4.ka)), 0 >= n2 || 0 >= i3 ? 0 : (n2 = r2.Ib(t4, r2), null != r2.Jb && r2.Jb(t4, r2, n2), r2.Dc += n2, 1); 3567 } 3568 function pt2(t4) { 3569 t4.ma.memory = null; 3570 } 3571 function gt2(t4, e2, r2, n2) { 3572 return 47 != y3(t4, 8) ? 0 : (e2[0] = y3(t4, 14) + 1, r2[0] = y3(t4, 14) + 1, n2[0] = y3(t4, 1), 0 != y3(t4, 3) ? 0 : !t4.h); 3573 } 3574 function mt2(t4, e2) { 3575 if (4 > t4) return t4 + 1; 3576 var r2 = t4 - 2 >> 1; 3577 return (2 + (1 & t4) << r2) + y3(e2, r2) + 1; 3578 } 3579 function vt2(t4, e2) { 3580 return 120 < e2 ? e2 - 120 : 1 <= (r2 = ((r2 = Zn[e2 - 1]) >> 4) * t4 + (8 - (15 & r2))) ? r2 : 1; 3581 var r2; 3582 } 3583 function bt2(t4, e2, r2) { 3584 var n2 = L3(r2), i3 = t4[e2 += 255 & n2].g - 8; 3585 return 0 < i3 && (A3(r2, r2.u + 8), n2 = L3(r2), e2 += t4[e2].value, e2 += n2 & (1 << i3) - 1), A3(r2, r2.u + t4[e2].g), t4[e2].value; 3586 } 3587 function yt2(t4, r2, n2) { 3588 return n2.g += t4.g, n2.value += t4.value << r2 >>> 0, e(8 >= n2.g), t4.g; 3589 } 3590 function wt2(t4, r2, n2) { 3591 var i3 = t4.xc; 3592 return e((r2 = 0 == i3 ? 0 : t4.vc[t4.md * (n2 >> i3) + (r2 >> i3)]) < t4.Wb), t4.Ya[r2]; 3593 } 3594 function Nt2(t4, r2, i3, a3) { 3595 var o3 = t4.ab, s3 = t4.c * r2, u4 = t4.C; 3596 r2 = u4 + r2; 3597 var c4 = i3, l4 = a3; 3598 for (a3 = t4.Ta, i3 = t4.Ua; 0 < o3--; ) { 3599 var h4 = t4.gc[o3], f4 = u4, d4 = r2, p4 = c4, g4 = l4, m4 = (l4 = a3, c4 = i3, h4.Ea); 3600 switch (e(f4 < d4), e(d4 <= h4.nc), h4.hc) { 3601 case 2: 3602 Vr(p4, g4, (d4 - f4) * m4, l4, c4); 3603 break; 3604 case 0: 3605 var v4 = f4, b4 = d4, y4 = l4, w4 = c4, N4 = (_3 = h4).Ea; 3606 0 == v4 && (Hr(p4, g4, null, null, 1, y4, w4), V2(p4, g4 + 1, 0, 0, N4 - 1, y4, w4 + 1), g4 += N4, w4 += N4, ++v4); 3607 for (var L4 = 1 << _3.b, x4 = L4 - 1, A4 = E2(N4, _3.b), S3 = _3.K, _3 = _3.w + (v4 >> _3.b) * A4; v4 < b4; ) { 3608 var P3 = S3, k3 = _3, F3 = 1; 3609 for (Wr(p4, g4, y4, w4 - N4, 1, y4, w4); F3 < N4; ) { 3610 var I3 = (F3 & ~x4) + L4; 3611 I3 > N4 && (I3 = N4), (0, Kr[P3[k3++] >> 8 & 15])(p4, g4 + +F3, y4, w4 + F3 - N4, I3 - F3, y4, w4 + F3), F3 = I3; 3612 } 3613 g4 += N4, w4 += N4, ++v4 & x4 || (_3 += A4); 3614 } 3615 d4 != h4.nc && n(l4, c4 - m4, l4, c4 + (d4 - f4 - 1) * m4, m4); 3616 break; 3617 case 1: 3618 for (m4 = p4, b4 = g4, N4 = (p4 = h4.Ea) - (w4 = p4 & ~(y4 = (g4 = 1 << h4.b) - 1)), v4 = E2(p4, h4.b), L4 = h4.K, h4 = h4.w + (f4 >> h4.b) * v4; f4 < d4; ) { 3619 for (x4 = L4, A4 = h4, S3 = new T2(), _3 = b4 + w4, P3 = b4 + p4; b4 < _3; ) Y2(x4[A4++], S3), Zr(S3, m4, b4, g4, l4, c4), b4 += g4, c4 += g4; 3620 b4 < P3 && (Y2(x4[A4++], S3), Zr(S3, m4, b4, N4, l4, c4), b4 += N4, c4 += N4), ++f4 & y4 || (h4 += v4); 3621 } 3622 break; 3623 case 3: 3624 if (p4 == l4 && g4 == c4 && 0 < h4.b) { 3625 for (b4 = l4, p4 = m4 = c4 + (d4 - f4) * m4 - (w4 = (d4 - f4) * E2(h4.Ea, h4.b)), g4 = l4, y4 = c4, v4 = [], w4 = (N4 = w4) - 1; 0 <= w4; --w4) v4[w4] = g4[y4 + w4]; 3626 for (w4 = N4 - 1; 0 <= w4; --w4) b4[p4 + w4] = v4[w4]; 3627 Gr(h4, f4, d4, l4, m4, l4, c4); 3628 } else Gr(h4, f4, d4, p4, g4, l4, c4); 3629 } 3630 c4 = a3, l4 = i3; 3631 } 3632 l4 != i3 && n(a3, i3, c4, l4, s3); 3633 } 3634 function Lt2(t4, r2) { 3635 var n2 = t4.V, i3 = t4.Ba + t4.c * t4.C, a3 = r2 - t4.C; 3636 if (e(r2 <= t4.l.o), e(16 >= a3), 0 < a3) { 3637 var o3 = t4.l, s3 = t4.Ta, u4 = t4.Ua, c4 = o3.width; 3638 if (Nt2(t4, a3, n2, i3), a3 = u4 = [u4], e((n2 = t4.C) < (i3 = r2)), e(o3.v < o3.va), i3 > o3.o && (i3 = o3.o), n2 < o3.j) { 3639 var l4 = o3.j - n2; 3640 n2 = o3.j, a3[0] += l4 * c4; 3641 } 3642 if (n2 >= i3 ? n2 = 0 : (a3[0] += 4 * o3.v, o3.ka = n2 - o3.j, o3.U = o3.va - o3.v, o3.T = i3 - n2, n2 = 1), n2) { 3643 if (u4 = u4[0], 11 > (n2 = t4.ca).S) { 3644 var h4 = n2.f.RGBA, f4 = (i3 = n2.S, a3 = o3.U, o3 = o3.T, l4 = h4.eb, h4.A), d4 = o3; 3645 for (h4 = h4.fb + t4.Ma * h4.A; 0 < d4--; ) { 3646 var p4 = s3, g4 = u4, m4 = a3, v4 = l4, b4 = h4; 3647 switch (i3) { 3648 case Mn: 3649 $r(p4, g4, m4, v4, b4); 3650 break; 3651 case qn: 3652 Qr(p4, g4, m4, v4, b4); 3653 break; 3654 case Un: 3655 Qr(p4, g4, m4, v4, b4), Ln(v4, b4, 0, m4, 1, 0); 3656 break; 3657 case En: 3658 rn(p4, g4, m4, v4, b4); 3659 break; 3660 case Rn: 3661 et2(p4, g4, m4, v4, b4, 1); 3662 break; 3663 case Hn: 3664 et2(p4, g4, m4, v4, b4, 1), Ln(v4, b4, 0, m4, 1, 0); 3665 break; 3666 case Dn: 3667 et2(p4, g4, m4, v4, b4, 0); 3668 break; 3669 case Wn: 3670 et2(p4, g4, m4, v4, b4, 0), Ln(v4, b4, 1, m4, 1, 0); 3671 break; 3672 case Tn: 3673 tn(p4, g4, m4, v4, b4); 3674 break; 3675 case Vn: 3676 tn(p4, g4, m4, v4, b4), xn(v4, b4, m4, 1, 0); 3677 break; 3678 case zn: 3679 en(p4, g4, m4, v4, b4); 3680 break; 3681 default: 3682 e(0); 3683 } 3684 u4 += c4, h4 += f4; 3685 } 3686 t4.Ma += o3; 3687 } else alert("todo:EmitRescaledRowsYUVA"); 3688 e(t4.Ma <= n2.height); 3689 } 3690 } 3691 t4.C = r2, e(t4.C <= t4.i); 3692 } 3693 function xt2(t4) { 3694 var e2; 3695 if (0 < t4.ua) return 0; 3696 for (e2 = 0; e2 < t4.Wb; ++e2) { 3697 var r2 = t4.Ya[e2].G, n2 = t4.Ya[e2].H; 3698 if (0 < r2[1][n2[1] + 0].g || 0 < r2[2][n2[2] + 0].g || 0 < r2[3][n2[3] + 0].g) return 0; 3699 } 3700 return 1; 3701 } 3702 function At2(t4, r2, n2, i3, a3, o3) { 3703 if (0 != t4.Z) { 3704 var s3 = t4.qd, u4 = t4.rd; 3705 for (e(null != gi[t4.Z]); r2 < n2; ++r2) gi[t4.Z](s3, u4, i3, a3, i3, a3, o3), s3 = i3, u4 = a3, a3 += o3; 3706 t4.qd = s3, t4.rd = u4; 3707 } 3708 } 3709 function St2(t4, r2) { 3710 var n2 = t4.l.ma, i3 = 0 == n2.Z || 1 == n2.Z ? t4.l.j : t4.C; 3711 if (i3 = t4.C < i3 ? i3 : t4.C, e(r2 <= t4.l.o), r2 > i3) { 3712 var a3 = t4.l.width, o3 = n2.ca, s3 = n2.tb + a3 * i3, u4 = t4.V, c4 = t4.Ba + t4.c * i3, l4 = t4.gc; 3713 e(1 == t4.ab), e(3 == l4[0].hc), Jr(l4[0], i3, r2, u4, c4, o3, s3), At2(n2, i3, r2, o3, s3, a3); 3714 } 3715 t4.C = t4.Ma = r2; 3716 } 3717 function _t2(t4, r2, n2, i3, a3, o3, s3) { 3718 var u4 = t4.$ / i3, c4 = t4.$ % i3, l4 = t4.m, h4 = t4.s, f4 = n2 + t4.$, d4 = f4; 3719 a3 = n2 + i3 * a3; 3720 var p4 = n2 + i3 * o3, g4 = 280 + h4.ua, m4 = t4.Pb ? u4 : 16777216, v4 = 0 < h4.ua ? h4.Wa : null, b4 = h4.wc, y4 = f4 < p4 ? wt2(h4, c4, u4) : null; 3721 e(t4.C < o3), e(p4 <= a3); 3722 var w4 = false; 3723 t: for (; ; ) { 3724 for (; w4 || f4 < p4; ) { 3725 var N4 = 0; 3726 if (u4 >= m4) { 3727 var _3 = f4 - n2; 3728 e((m4 = t4).Pb), m4.wd = m4.m, m4.xd = _3, 0 < m4.s.ua && B2(m4.s.Wa, m4.s.vb), m4 = u4 + Qn; 3729 } 3730 if (c4 & b4 || (y4 = wt2(h4, c4, u4)), e(null != y4), y4.Qb && (r2[f4] = y4.qb, w4 = true), !w4) if (S2(l4), y4.jc) { 3731 N4 = l4, _3 = r2; 3732 var P3 = f4, k3 = y4.pd[L3(N4) & Er - 1]; 3733 e(y4.jc), 256 > k3.g ? (A3(N4, N4.u + k3.g), _3[P3] = k3.value, N4 = 0) : (A3(N4, N4.u + k3.g - 256), e(256 <= k3.value), N4 = k3.value), 0 == N4 && (w4 = true); 3734 } else N4 = bt2(y4.G[0], y4.H[0], l4); 3735 if (l4.h) break; 3736 if (w4 || 256 > N4) { 3737 if (!w4) if (y4.nd) r2[f4] = (y4.qb | N4 << 8) >>> 0; 3738 else { 3739 if (S2(l4), w4 = bt2(y4.G[1], y4.H[1], l4), S2(l4), _3 = bt2(y4.G[2], y4.H[2], l4), P3 = bt2(y4.G[3], y4.H[3], l4), l4.h) break; 3740 r2[f4] = (P3 << 24 | w4 << 16 | N4 << 8 | _3) >>> 0; 3741 } 3742 if (w4 = false, ++f4, ++c4 >= i3 && (c4 = 0, ++u4, null != s3 && u4 <= o3 && !(u4 % 16) && s3(t4, u4), null != v4)) for (; d4 < f4; ) N4 = r2[d4++], v4.X[(506832829 * N4 & 4294967295) >>> v4.Mb] = N4; 3743 } else if (280 > N4) { 3744 if (N4 = mt2(N4 - 256, l4), _3 = bt2(y4.G[4], y4.H[4], l4), S2(l4), _3 = vt2(i3, _3 = mt2(_3, l4)), l4.h) break; 3745 if (f4 - n2 < _3 || a3 - f4 < N4) break t; 3746 for (P3 = 0; P3 < N4; ++P3) r2[f4 + P3] = r2[f4 + P3 - _3]; 3747 for (f4 += N4, c4 += N4; c4 >= i3; ) c4 -= i3, ++u4, null != s3 && u4 <= o3 && !(u4 % 16) && s3(t4, u4); 3748 if (e(f4 <= a3), c4 & b4 && (y4 = wt2(h4, c4, u4)), null != v4) for (; d4 < f4; ) N4 = r2[d4++], v4.X[(506832829 * N4 & 4294967295) >>> v4.Mb] = N4; 3749 } else { 3750 if (!(N4 < g4)) break t; 3751 for (w4 = N4 - 280, e(null != v4); d4 < f4; ) N4 = r2[d4++], v4.X[(506832829 * N4 & 4294967295) >>> v4.Mb] = N4; 3752 N4 = f4, e(!(w4 >>> (_3 = v4).Xa)), r2[N4] = _3.X[w4], w4 = true; 3753 } 3754 w4 || e(l4.h == x3(l4)); 3755 } 3756 if (t4.Pb && l4.h && f4 < a3) e(t4.m.h), t4.a = 5, t4.m = t4.wd, t4.$ = t4.xd, 0 < t4.s.ua && B2(t4.s.vb, t4.s.Wa); 3757 else { 3758 if (l4.h) break t; 3759 null != s3 && s3(t4, u4 > o3 ? o3 : u4), t4.a = 0, t4.$ = f4 - n2; 3760 } 3761 return 1; 3762 } 3763 return t4.a = 3, 0; 3764 } 3765 function Pt2(t4) { 3766 e(null != t4), t4.vc = null, t4.yc = null, t4.Ya = null; 3767 var r2 = t4.Wa; 3768 null != r2 && (r2.X = null), t4.vb = null, e(null != t4); 3769 } 3770 function kt2() { 3771 var e2 = new ar(); 3772 return null == e2 ? null : (e2.a = 0, e2.xb = pi, rt2("Predictor", "VP8LPredictors"), rt2("Predictor", "VP8LPredictors_C"), rt2("PredictorAdd", "VP8LPredictorsAdd"), rt2("PredictorAdd", "VP8LPredictorsAdd_C"), Vr = G2, Zr = J2, $r = K2, Qr = Z2, tn = $2, en = Q2, rn = tt2, t3.VP8LMapColor32b = Yr, t3.VP8LMapColor8b = Xr, e2); 3773 } 3774 function Ft2(t4, r2, n2, s3, u4) { 3775 var c4 = 1, f4 = [t4], p4 = [r2], g4 = s3.m, m4 = s3.s, v4 = null, b4 = 0; 3776 t: for (; ; ) { 3777 if (n2) for (; c4 && y3(g4, 1); ) { 3778 var w4 = f4, N4 = p4, x4 = s3, _3 = 1, P3 = x4.m, k3 = x4.gc[x4.ab], F3 = y3(P3, 2); 3779 if (x4.Oc & 1 << F3) c4 = 0; 3780 else { 3781 switch (x4.Oc |= 1 << F3, k3.hc = F3, k3.Ea = w4[0], k3.nc = N4[0], k3.K = [null], ++x4.ab, e(4 >= x4.ab), F3) { 3782 case 0: 3783 case 1: 3784 k3.b = y3(P3, 3) + 2, _3 = Ft2(E2(k3.Ea, k3.b), E2(k3.nc, k3.b), 0, x4, k3.K), k3.K = k3.K[0]; 3785 break; 3786 case 3: 3787 var I3, C3 = y3(P3, 8) + 1, j3 = 16 < C3 ? 0 : 4 < C3 ? 1 : 2 < C3 ? 2 : 3; 3788 if (w4[0] = E2(k3.Ea, j3), k3.b = j3, I3 = _3 = Ft2(C3, 1, 0, x4, k3.K)) { 3789 var B3, M3 = C3, q3 = k3, D3 = 1 << (8 >> q3.b), T3 = a2(D3); 3790 if (null == T3) I3 = 0; 3791 else { 3792 var z3 = q3.K[0], U3 = q3.w; 3793 for (T3[0] = q3.K[0][0], B3 = 1; B3 < 1 * M3; ++B3) T3[B3] = R2(z3[U3 + B3], T3[B3 - 1]); 3794 for (; B3 < 4 * D3; ++B3) T3[B3] = 0; 3795 q3.K[0] = null, q3.K[0] = T3, I3 = 1; 3796 } 3797 } 3798 _3 = I3; 3799 break; 3800 case 2: 3801 break; 3802 default: 3803 e(0); 3804 } 3805 c4 = _3; 3806 } 3807 } 3808 if (f4 = f4[0], p4 = p4[0], c4 && y3(g4, 1) && !(c4 = 1 <= (b4 = y3(g4, 4)) && 11 >= b4)) { 3809 s3.a = 3; 3810 break t; 3811 } 3812 var H3; 3813 if (H3 = c4) e: { 3814 var W3, V3, G3, Y3 = s3, J3 = f4, X3 = p4, K3 = b4, Z3 = n2, $3 = Y3.m, Q3 = Y3.s, tt3 = [null], et3 = 1, rt3 = 0, nt3 = $n[K3]; 3815 r: for (; ; ) { 3816 if (Z3 && y3($3, 1)) { 3817 var it3 = y3($3, 3) + 2, at3 = E2(J3, it3), ot3 = E2(X3, it3), st3 = at3 * ot3; 3818 if (!Ft2(at3, ot3, 0, Y3, tt3)) break r; 3819 for (tt3 = tt3[0], Q3.xc = it3, W3 = 0; W3 < st3; ++W3) { 3820 var ut3 = tt3[W3] >> 8 & 65535; 3821 tt3[W3] = ut3, ut3 >= et3 && (et3 = ut3 + 1); 3822 } 3823 } 3824 if ($3.h) break r; 3825 for (V3 = 0; 5 > V3; ++V3) { 3826 var ct3 = Jn[V3]; 3827 !V3 && 0 < K3 && (ct3 += 1 << K3), rt3 < ct3 && (rt3 = ct3); 3828 } 3829 var lt3 = o2(et3 * nt3, h3), ht3 = et3, ft3 = o2(ht3, d3); 3830 if (null == ft3) var dt3 = null; 3831 else e(65536 >= ht3), dt3 = ft3; 3832 var pt3 = a2(rt3); 3833 if (null == dt3 || null == pt3 || null == lt3) { 3834 Y3.a = 1; 3835 break r; 3836 } 3837 var gt3 = lt3; 3838 for (W3 = G3 = 0; W3 < et3; ++W3) { 3839 var mt3 = dt3[W3], vt3 = mt3.G, bt3 = mt3.H, wt3 = 0, Nt3 = 1, Lt3 = 0; 3840 for (V3 = 0; 5 > V3; ++V3) { 3841 ct3 = Jn[V3], vt3[V3] = gt3, bt3[V3] = G3, !V3 && 0 < K3 && (ct3 += 1 << K3); 3842 n: { 3843 var xt3, At3 = ct3, St3 = Y3, kt3 = pt3, It3 = gt3, Ct3 = G3, jt3 = 0, Ot3 = St3.m, Bt3 = y3(Ot3, 1); 3844 if (i2(kt3, 0, 0, At3), Bt3) { 3845 var Mt3 = y3(Ot3, 1) + 1, qt3 = y3(Ot3, 1), Et3 = y3(Ot3, 0 == qt3 ? 1 : 8); 3846 kt3[Et3] = 1, 2 == Mt3 && (kt3[Et3 = y3(Ot3, 8)] = 1); 3847 var Rt3 = 1; 3848 } else { 3849 var Dt3 = a2(19), Tt3 = y3(Ot3, 4) + 4; 3850 if (19 < Tt3) { 3851 St3.a = 3; 3852 var zt3 = 0; 3853 break n; 3854 } 3855 for (xt3 = 0; xt3 < Tt3; ++xt3) Dt3[Kn[xt3]] = y3(Ot3, 3); 3856 var Ut3 = void 0, Ht3 = void 0, Wt3 = St3, Vt3 = Dt3, Gt3 = At3, Yt3 = kt3, Jt3 = 0, Xt3 = Wt3.m, Kt3 = 8, Zt3 = o2(128, h3); 3857 i: for (; l3(Zt3, 0, 7, Vt3, 19); ) { 3858 if (y3(Xt3, 1)) { 3859 var $t3 = 2 + 2 * y3(Xt3, 3); 3860 if ((Ut3 = 2 + y3(Xt3, $t3)) > Gt3) break i; 3861 } else Ut3 = Gt3; 3862 for (Ht3 = 0; Ht3 < Gt3 && Ut3--; ) { 3863 S2(Xt3); 3864 var Qt3 = Zt3[0 + (127 & L3(Xt3))]; 3865 A3(Xt3, Xt3.u + Qt3.g); 3866 var te3 = Qt3.value; 3867 if (16 > te3) Yt3[Ht3++] = te3, 0 != te3 && (Kt3 = te3); 3868 else { 3869 var ee3 = 16 == te3, re3 = te3 - 16, ne3 = Yn[re3], ie3 = y3(Xt3, Gn[re3]) + ne3; 3870 if (Ht3 + ie3 > Gt3) break i; 3871 for (var ae3 = ee3 ? Kt3 : 0; 0 < ie3--; ) Yt3[Ht3++] = ae3; 3872 } 3873 } 3874 Jt3 = 1; 3875 break i; 3876 } 3877 Jt3 || (Wt3.a = 3), Rt3 = Jt3; 3878 } 3879 (Rt3 = Rt3 && !Ot3.h) && (jt3 = l3(It3, Ct3, 8, kt3, At3)), Rt3 && 0 != jt3 ? zt3 = jt3 : (St3.a = 3, zt3 = 0); 3880 } 3881 if (0 == zt3) break r; 3882 if (Nt3 && 1 == Xn[V3] && (Nt3 = 0 == gt3[G3].g), wt3 += gt3[G3].g, G3 += zt3, 3 >= V3) { 3883 var oe3, se3 = pt3[0]; 3884 for (oe3 = 1; oe3 < ct3; ++oe3) pt3[oe3] > se3 && (se3 = pt3[oe3]); 3885 Lt3 += se3; 3886 } 3887 } 3888 if (mt3.nd = Nt3, mt3.Qb = 0, Nt3 && (mt3.qb = (vt3[3][bt3[3] + 0].value << 24 | vt3[1][bt3[1] + 0].value << 16 | vt3[2][bt3[2] + 0].value) >>> 0, 0 == wt3 && 256 > vt3[0][bt3[0] + 0].value && (mt3.Qb = 1, mt3.qb += vt3[0][bt3[0] + 0].value << 8)), mt3.jc = !mt3.Qb && 6 > Lt3, mt3.jc) { 3889 var ue3, ce3 = mt3; 3890 for (ue3 = 0; ue3 < Er; ++ue3) { 3891 var le3 = ue3, he3 = ce3.pd[le3], fe3 = ce3.G[0][ce3.H[0] + le3]; 3892 256 <= fe3.value ? (he3.g = fe3.g + 256, he3.value = fe3.value) : (he3.g = 0, he3.value = 0, le3 >>= yt2(fe3, 8, he3), le3 >>= yt2(ce3.G[1][ce3.H[1] + le3], 16, he3), le3 >>= yt2(ce3.G[2][ce3.H[2] + le3], 0, he3), yt2(ce3.G[3][ce3.H[3] + le3], 24, he3)); 3893 } 3894 } 3895 } 3896 Q3.vc = tt3, Q3.Wb = et3, Q3.Ya = dt3, Q3.yc = lt3, H3 = 1; 3897 break e; 3898 } 3899 H3 = 0; 3900 } 3901 if (!(c4 = H3)) { 3902 s3.a = 3; 3903 break t; 3904 } 3905 if (0 < b4) { 3906 if (m4.ua = 1 << b4, !O2(m4.Wa, b4)) { 3907 s3.a = 1, c4 = 0; 3908 break t; 3909 } 3910 } else m4.ua = 0; 3911 var de3 = s3, pe3 = f4, ge3 = p4, me3 = de3.s, ve3 = me3.xc; 3912 if (de3.c = pe3, de3.i = ge3, me3.md = E2(pe3, ve3), me3.wc = 0 == ve3 ? -1 : (1 << ve3) - 1, n2) { 3913 s3.xb = di; 3914 break t; 3915 } 3916 if (null == (v4 = a2(f4 * p4))) { 3917 s3.a = 1, c4 = 0; 3918 break t; 3919 } 3920 c4 = (c4 = _t2(s3, v4, 0, f4, p4, p4, null)) && !g4.h; 3921 break t; 3922 } 3923 return c4 ? (null != u4 ? u4[0] = v4 : (e(null == v4), e(n2)), s3.$ = 0, n2 || Pt2(m4)) : Pt2(m4), c4; 3924 } 3925 function It2(t4, r2) { 3926 var n2 = t4.c * t4.i, i3 = n2 + r2 + 16 * r2; 3927 return e(t4.c <= r2), t4.V = a2(i3), null == t4.V ? (t4.Ta = null, t4.Ua = 0, t4.a = 1, 0) : (t4.Ta = t4.V, t4.Ua = t4.Ba + n2 + r2, 1); 3928 } 3929 function Ct2(t4, r2) { 3930 var n2 = t4.C, i3 = r2 - n2, a3 = t4.V, o3 = t4.Ba + t4.c * n2; 3931 for (e(r2 <= t4.l.o); 0 < i3; ) { 3932 var s3 = 16 < i3 ? 16 : i3, u4 = t4.l.ma, c4 = t4.l.width, l4 = c4 * s3, h4 = u4.ca, f4 = u4.tb + c4 * n2, d4 = t4.Ta, p4 = t4.Ua; 3933 Nt2(t4, s3, a3, o3), Sn(d4, p4, h4, f4, l4), At2(u4, n2, n2 + s3, h4, f4, c4), i3 -= s3, a3 += s3 * t4.c, n2 += s3; 3934 } 3935 e(n2 == r2), t4.C = t4.Ma = r2; 3936 } 3937 function jt2() { 3938 this.ub = this.yd = this.td = this.Rb = 0; 3939 } 3940 function Ot2() { 3941 this.Kd = this.Ld = this.Ud = this.Td = this.i = this.c = 0; 3942 } 3943 function Bt2() { 3944 this.Fb = this.Bb = this.Cb = 0, this.Zb = a2(4), this.Lb = a2(4); 3945 } 3946 function Mt2() { 3947 this.Yb = function() { 3948 var t4 = []; 3949 return function t5(e2, r2, n2) { 3950 for (var i3 = n2[r2], a3 = 0; a3 < i3 && (e2.push(n2.length > r2 + 1 ? [] : 0), !(n2.length < r2 + 1)); a3++) t5(e2[a3], r2 + 1, n2); 3951 }(t4, 0, [3, 11]), t4; 3952 }(); 3953 } 3954 function qt2() { 3955 this.jb = a2(3), this.Wc = s2([4, 8], Mt2), this.Xc = s2([4, 17], Mt2); 3956 } 3957 function Et2() { 3958 this.Pc = this.wb = this.Tb = this.zd = 0, this.vd = new a2(4), this.od = new a2(4); 3959 } 3960 function Rt2() { 3961 this.ld = this.La = this.dd = this.tc = 0; 3962 } 3963 function Dt2() { 3964 this.Na = this.la = 0; 3965 } 3966 function Tt2() { 3967 this.Sc = [0, 0], this.Eb = [0, 0], this.Qc = [0, 0], this.ia = this.lc = 0; 3968 } 3969 function zt2() { 3970 this.ad = a2(384), this.Za = 0, this.Ob = a2(16), this.$b = this.Ad = this.ia = this.Gc = this.Hc = this.Dd = 0; 3971 } 3972 function Ut2() { 3973 this.uc = this.M = this.Nb = 0, this.wa = Array(new Rt2()), this.Y = 0, this.ya = Array(new zt2()), this.aa = 0, this.l = new Gt2(); 3974 } 3975 function Ht2() { 3976 this.y = a2(16), this.f = a2(8), this.ea = a2(8); 3977 } 3978 function Wt2() { 3979 this.cb = this.a = 0, this.sc = "", this.m = new w3(), this.Od = new j
vendor: 16,013 bytes, lines 3979-4217
3979t2(), this.Kc = new Ot2(), this.ed = new Et2(), this.Qa = new Bt2(), this.Ic = this.$c = this.Aa = 0, this.D = new Ut2(), this.Xb = this.Va = this.Hb = this.zb = this.yb = this.Ub = this.za = 0, this.Jc = o2(8, w3), this.ia = 0, this.pb = o2(4, Tt2), this.Pa = new qt2(), this.Bd = this.kc = 0, this.Ac = [], this.Bc = 0, this.zc = [0, 0, 0, 0], this.Gd = Array(new Ht2()), this.Hd = 0, this.rb = Array(new Dt2()), this.sb = 0, this.wa = Array(new Rt2()), this.Y = 0, this.oc = [], this.pc = 0, this.sa = [], this.ta = 0, this.qa = [], this.ra = 0, this.Ha = [], this.B = this.R = this.Ia = 0, this.Ec = [], this.M = this.ja = this.Vb = this.Fc = 0, this.ya = Array(new zt2()), this.L = this.aa = 0, this.gd = s2([4, 2], Rt2), this.ga = null, this.Fa = [], this.Cc = this.qc = this.P = 0, this.Gb = [], this.Uc = 0, this.mb = [], this.nb = 0, this.rc = [], this.Ga = this.Vc = 0; 3980 } 3981 function Vt2(t4, e2) { 3982 return 0 > t4 ? 0 : t4 > e2 ? e2 : t4; 3983 } 3984 function Gt2() { 3985 this.T = this.U = this.ka = this.height = this.width = 0, this.y = [], this.f = [], this.ea = [], this.Rc = this.fa = this.W = this.N = this.O = 0, this.ma = "void", this.put = "VP8IoPutHook", this.ac = "VP8IoSetupHook", this.bc = "VP8IoTeardownHook", this.ha = this.Kb = 0, this.data = [], this.hb = this.ib = this.da = this.o = this.j = this.va = this.v = this.Da = this.ob = this.w = 0, this.F = [], this.J = 0; 3986 } 3987 function Yt2() { 3988 var t4 = new Wt2(); 3989 return null != t4 && (t4.a = 0, t4.sc = "OK", t4.cb = 0, t4.Xb = 0, ri || (ri = Zt2)), t4; 3990 } 3991 function Jt2(t4, e2, r2) { 3992 return 0 == t4.a && (t4.a = e2, t4.sc = r2, t4.cb = 0), 0; 3993 } 3994 function Xt2(t4, e2, r2) { 3995 return 3 <= r2 && 157 == t4[e2 + 0] && 1 == t4[e2 + 1] && 42 == t4[e2 + 2]; 3996 } 3997 function Kt2(t4, r2) { 3998 if (null == t4) return 0; 3999 if (t4.a = 0, t4.sc = "OK", null == r2) return Jt2(t4, 2, "null VP8Io passed to VP8GetHeaders()"); 4000 var n2 = r2.data, a3 = r2.w, o3 = r2.ha; 4001 if (4 > o3) return Jt2(t4, 7, "Truncated header."); 4002 var s3 = n2[a3 + 0] | n2[a3 + 1] << 8 | n2[a3 + 2] << 16, u4 = t4.Od; 4003 if (u4.Rb = !(1 & s3), u4.td = s3 >> 1 & 7, u4.yd = s3 >> 4 & 1, u4.ub = s3 >> 5, 3 < u4.td) return Jt2(t4, 3, "Incorrect keyframe parameters."); 4004 if (!u4.yd) return Jt2(t4, 4, "Frame not displayable."); 4005 a3 += 3, o3 -= 3; 4006 var c4 = t4.Kc; 4007 if (u4.Rb) { 4008 if (7 > o3) return Jt2(t4, 7, "cannot parse picture header"); 4009 if (!Xt2(n2, a3, o3)) return Jt2(t4, 3, "Bad code word"); 4010 c4.c = 16383 & (n2[a3 + 4] << 8 | n2[a3 + 3]), c4.Td = n2[a3 + 4] >> 6, c4.i = 16383 & (n2[a3 + 6] << 8 | n2[a3 + 5]), c4.Ud = n2[a3 + 6] >> 6, a3 += 7, o3 -= 7, t4.za = c4.c + 15 >> 4, t4.Ub = c4.i + 15 >> 4, r2.width = c4.c, r2.height = c4.i, r2.Da = 0, r2.j = 0, r2.v = 0, r2.va = r2.width, r2.o = r2.height, r2.da = 0, r2.ib = r2.width, r2.hb = r2.height, r2.U = r2.width, r2.T = r2.height, i2((s3 = t4.Pa).jb, 0, 255, s3.jb.length), e(null != (s3 = t4.Qa)), s3.Cb = 0, s3.Bb = 0, s3.Fb = 1, i2(s3.Zb, 0, 0, s3.Zb.length), i2(s3.Lb, 0, 0, s3.Lb); 4011 } 4012 if (u4.ub > o3) return Jt2(t4, 7, "bad partition length"); 4013 p3(s3 = t4.m, n2, a3, u4.ub), a3 += u4.ub, o3 -= u4.ub, u4.Rb && (c4.Ld = P2(s3), c4.Kd = P2(s3)), c4 = t4.Qa; 4014 var l4, h4 = t4.Pa; 4015 if (e(null != s3), e(null != c4), c4.Cb = P2(s3), c4.Cb) { 4016 if (c4.Bb = P2(s3), P2(s3)) { 4017 for (c4.Fb = P2(s3), l4 = 0; 4 > l4; ++l4) c4.Zb[l4] = P2(s3) ? m3(s3, 7) : 0; 4018 for (l4 = 0; 4 > l4; ++l4) c4.Lb[l4] = P2(s3) ? m3(s3, 6) : 0; 4019 } 4020 if (c4.Bb) for (l4 = 0; 3 > l4; ++l4) h4.jb[l4] = P2(s3) ? g3(s3, 8) : 255; 4021 } else c4.Bb = 0; 4022 if (s3.Ka) return Jt2(t4, 3, "cannot parse segment header"); 4023 if ((c4 = t4.ed).zd = P2(s3), c4.Tb = g3(s3, 6), c4.wb = g3(s3, 3), c4.Pc = P2(s3), c4.Pc && P2(s3)) { 4024 for (h4 = 0; 4 > h4; ++h4) P2(s3) && (c4.vd[h4] = m3(s3, 6)); 4025 for (h4 = 0; 4 > h4; ++h4) P2(s3) && (c4.od[h4] = m3(s3, 6)); 4026 } 4027 if (t4.L = 0 == c4.Tb ? 0 : c4.zd ? 1 : 2, s3.Ka) return Jt2(t4, 3, "cannot parse filter header"); 4028 var f4 = o3; 4029 if (o3 = l4 = a3, a3 = l4 + f4, c4 = f4, t4.Xb = (1 << g3(t4.m, 2)) - 1, f4 < 3 * (h4 = t4.Xb)) n2 = 7; 4030 else { 4031 for (l4 += 3 * h4, c4 -= 3 * h4, f4 = 0; f4 < h4; ++f4) { 4032 var d4 = n2[o3 + 0] | n2[o3 + 1] << 8 | n2[o3 + 2] << 16; 4033 d4 > c4 && (d4 = c4), p3(t4.Jc[+f4], n2, l4, d4), l4 += d4, c4 -= d4, o3 += 3; 4034 } 4035 p3(t4.Jc[+h4], n2, l4, c4), n2 = l4 < a3 ? 0 : 5; 4036 } 4037 if (0 != n2) return Jt2(t4, n2, "cannot parse partitions"); 4038 for (n2 = g3(l4 = t4.m, 7), o3 = P2(l4) ? m3(l4, 4) : 0, a3 = P2(l4) ? m3(l4, 4) : 0, c4 = P2(l4) ? m3(l4, 4) : 0, h4 = P2(l4) ? m3(l4, 4) : 0, l4 = P2(l4) ? m3(l4, 4) : 0, f4 = t4.Qa, d4 = 0; 4 > d4; ++d4) { 4039 if (f4.Cb) { 4040 var v4 = f4.Zb[d4]; 4041 f4.Fb || (v4 += n2); 4042 } else { 4043 if (0 < d4) { 4044 t4.pb[d4] = t4.pb[0]; 4045 continue; 4046 } 4047 v4 = n2; 4048 } 4049 var b4 = t4.pb[d4]; 4050 b4.Sc[0] = ti[Vt2(v4 + o3, 127)], b4.Sc[1] = ei[Vt2(v4 + 0, 127)], b4.Eb[0] = 2 * ti[Vt2(v4 + a3, 127)], b4.Eb[1] = 101581 * ei[Vt2(v4 + c4, 127)] >> 16, 8 > b4.Eb[1] && (b4.Eb[1] = 8), b4.Qc[0] = ti[Vt2(v4 + h4, 117)], b4.Qc[1] = ei[Vt2(v4 + l4, 127)], b4.lc = v4 + l4; 4051 } 4052 if (!u4.Rb) return Jt2(t4, 4, "Not a key frame."); 4053 for (P2(s3), u4 = t4.Pa, n2 = 0; 4 > n2; ++n2) { 4054 for (o3 = 0; 8 > o3; ++o3) for (a3 = 0; 3 > a3; ++a3) for (c4 = 0; 11 > c4; ++c4) h4 = k2(s3, ui[n2][o3][a3][c4]) ? g3(s3, 8) : oi[n2][o3][a3][c4], u4.Wc[n2][o3].Yb[a3][c4] = h4; 4055 for (o3 = 0; 17 > o3; ++o3) u4.Xc[n2][o3] = u4.Wc[n2][ci[o3]]; 4056 } 4057 return t4.kc = P2(s3), t4.kc && (t4.Bd = g3(s3, 8)), t4.cb = 1; 4058 } 4059 function Zt2(t4, e2, r2, n2, i3, a3, o3) { 4060 var s3 = e2[i3].Yb[r2]; 4061 for (r2 = 0; 16 > i3; ++i3) { 4062 if (!k2(t4, s3[r2 + 0])) return i3; 4063 for (; !k2(t4, s3[r2 + 1]); ) if (s3 = e2[++i3].Yb[0], r2 = 0, 16 == i3) return 16; 4064 var u4 = e2[i3 + 1].Yb; 4065 if (k2(t4, s3[r2 + 2])) { 4066 var c4 = t4, l4 = 0; 4067 if (k2(c4, (f4 = s3)[(h4 = r2) + 3])) if (k2(c4, f4[h4 + 6])) { 4068 for (s3 = 0, h4 = 2 * (l4 = k2(c4, f4[h4 + 8])) + (f4 = k2(c4, f4[h4 + 9 + l4])), l4 = 0, f4 = ni[h4]; f4[s3]; ++s3) l4 += l4 + k2(c4, f4[s3]); 4069 l4 += 3 + (8 << h4); 4070 } else k2(c4, f4[h4 + 7]) ? (l4 = 7 + 2 * k2(c4, 165), l4 += k2(c4, 145)) : l4 = 5 + k2(c4, 159); 4071 else l4 = k2(c4, f4[h4 + 4]) ? 3 + k2(c4, f4[h4 + 5]) : 2; 4072 s3 = u4[2]; 4073 } else l4 = 1, s3 = u4[1]; 4074 u4 = o3 + ii[i3], 0 > (c4 = t4).b && _2(c4); 4075 var h4, f4 = c4.b, d4 = (h4 = c4.Ca >> 1) - (c4.I >> f4) >> 31; 4076 --c4.b, c4.Ca += d4, c4.Ca |= 1, c4.I -= (h4 + 1 & d4) << f4, a3[u4] = ((l4 ^ d4) - d4) * n2[(0 < i3) + 0]; 4077 } 4078 return 16; 4079 } 4080 function $t2(t4) { 4081 var e2 = t4.rb[t4.sb - 1]; 4082 e2.la = 0, e2.Na = 0, i2(t4.zc, 0, 0, t4.zc.length), t4.ja = 0; 4083 } 4084 function Qt2(t4, e2, r2, n2, i3) { 4085 i3 = t4[e2 + r2 + 32 * n2] + (i3 >> 3), t4[e2 + r2 + 32 * n2] = -256 & i3 ? 0 > i3 ? 0 : 255 : i3; 4086 } 4087 function te2(t4, e2, r2, n2, i3, a3) { 4088 Qt2(t4, e2, 0, r2, n2 + i3), Qt2(t4, e2, 1, r2, n2 + a3), Qt2(t4, e2, 2, r2, n2 - a3), Qt2(t4, e2, 3, r2, n2 - i3); 4089 } 4090 function ee2(t4) { 4091 return (20091 * t4 >> 16) + t4; 4092 } 4093 function re2(t4, e2, r2, n2) { 4094 var i3, o3 = 0, s3 = a2(16); 4095 for (i3 = 0; 4 > i3; ++i3) { 4096 var u4 = t4[e2 + 0] + t4[e2 + 8], c4 = t4[e2 + 0] - t4[e2 + 8], l4 = (35468 * t4[e2 + 4] >> 16) - ee2(t4[e2 + 12]), h4 = ee2(t4[e2 + 4]) + (35468 * t4[e2 + 12] >> 16); 4097 s3[o3 + 0] = u4 + h4, s3[o3 + 1] = c4 + l4, s3[o3 + 2] = c4 - l4, s3[o3 + 3] = u4 - h4, o3 += 4, e2++; 4098 } 4099 for (i3 = o3 = 0; 4 > i3; ++i3) u4 = (t4 = s3[o3 + 0] + 4) + s3[o3 + 8], c4 = t4 - s3[o3 + 8], l4 = (35468 * s3[o3 + 4] >> 16) - ee2(s3[o3 + 12]), Qt2(r2, n2, 0, 0, u4 + (h4 = ee2(s3[o3 + 4]) + (35468 * s3[o3 + 12] >> 16))), Qt2(r2, n2, 1, 0, c4 + l4), Qt2(r2, n2, 2, 0, c4 - l4), Qt2(r2, n2, 3, 0, u4 - h4), o3++, n2 += 32; 4100 } 4101 function ne2(t4, e2, r2, n2) { 4102 var i3 = t4[e2 + 0] + 4, a3 = 35468 * t4[e2 + 4] >> 16, o3 = ee2(t4[e2 + 4]), s3 = 35468 * t4[e2 + 1] >> 16; 4103 te2(r2, n2, 0, i3 + o3, t4 = ee2(t4[e2 + 1]), s3), te2(r2, n2, 1, i3 + a3, t4, s3), te2(r2, n2, 2, i3 - a3, t4, s3), te2(r2, n2, 3, i3 - o3, t4, s3); 4104 } 4105 function ie2(t4, e2, r2, n2, i3) { 4106 re2(t4, e2, r2, n2), i3 && re2(t4, e2 + 16, r2, n2 + 4); 4107 } 4108 function ae2(t4, e2, r2, n2) { 4109 an(t4, e2 + 0, r2, n2, 1), an(t4, e2 + 32, r2, n2 + 128, 1); 4110 } 4111 function oe2(t4, e2, r2, n2) { 4112 var i3; 4113 for (t4 = t4[e2 + 0] + 4, i3 = 0; 4 > i3; ++i3) for (e2 = 0; 4 > e2; ++e2) Qt2(r2, n2, e2, i3, t4); 4114 } 4115 function se2(t4, e2, r2, n2) { 4116 t4[e2 + 0] && un(t4, e2 + 0, r2, n2), t4[e2 + 16] && un(t4, e2 + 16, r2, n2 + 4), t4[e2 + 32] && un(t4, e2 + 32, r2, n2 + 128), t4[e2 + 48] && un(t4, e2 + 48, r2, n2 + 128 + 4); 4117 } 4118 function ue2(t4, e2, r2, n2) { 4119 var i3, o3 = a2(16); 4120 for (i3 = 0; 4 > i3; ++i3) { 4121 var s3 = t4[e2 + 0 + i3] + t4[e2 + 12 + i3], u4 = t4[e2 + 4 + i3] + t4[e2 + 8 + i3], c4 = t4[e2 + 4 + i3] - t4[e2 + 8 + i3], l4 = t4[e2 + 0 + i3] - t4[e2 + 12 + i3]; 4122 o3[0 + i3] = s3 + u4, o3[8 + i3] = s3 - u4, o3[4 + i3] = l4 + c4, o3[12 + i3] = l4 - c4; 4123 } 4124 for (i3 = 0; 4 > i3; ++i3) s3 = (t4 = o3[0 + 4 * i3] + 3) + o3[3 + 4 * i3], u4 = o3[1 + 4 * i3] + o3[2 + 4 * i3], c4 = o3[1 + 4 * i3] - o3[2 + 4 * i3], l4 = t4 - o3[3 + 4 * i3], r2[n2 + 0] = s3 + u4 >> 3, r2[n2 + 16] = l4 + c4 >> 3, r2[n2 + 32] = s3 - u4 >> 3, r2[n2 + 48] = l4 - c4 >> 3, n2 += 64; 4125 } 4126 function ce2(t4, e2, r2) { 4127 var n2, i3 = e2 - 32, a3 = On, o3 = 255 - t4[i3 - 1]; 4128 for (n2 = 0; n2 < r2; ++n2) { 4129 var s3, u4 = a3, c4 = o3 + t4[e2 - 1]; 4130 for (s3 = 0; s3 < r2; ++s3) t4[e2 + s3] = u4[c4 + t4[i3 + s3]]; 4131 e2 += 32; 4132 } 4133 } 4134 function le2(t4, e2) { 4135 ce2(t4, e2, 4); 4136 } 4137 function he2(t4, e2) { 4138 ce2(t4, e2, 8); 4139 } 4140 function fe2(t4, e2) { 4141 ce2(t4, e2, 16); 4142 } 4143 function de2(t4, e2) { 4144 var r2; 4145 for (r2 = 0; 16 > r2; ++r2) n(t4, e2 + 32 * r2, t4, e2 - 32, 16); 4146 } 4147 function pe2(t4, e2) { 4148 var r2; 4149 for (r2 = 16; 0 < r2; --r2) i2(t4, e2, t4[e2 - 1], 16), e2 += 32; 4150 } 4151 function ge2(t4, e2, r2) { 4152 var n2; 4153 for (n2 = 0; 16 > n2; ++n2) i2(e2, r2 + 32 * n2, t4, 16); 4154 } 4155 function me2(t4, e2) { 4156 var r2, n2 = 16; 4157 for (r2 = 0; 16 > r2; ++r2) n2 += t4[e2 - 1 + 32 * r2] + t4[e2 + r2 - 32]; 4158 ge2(n2 >> 5, t4, e2); 4159 } 4160 function ve2(t4, e2) { 4161 var r2, n2 = 8; 4162 for (r2 = 0; 16 > r2; ++r2) n2 += t4[e2 - 1 + 32 * r2]; 4163 ge2(n2 >> 4, t4, e2); 4164 } 4165 function be2(t4, e2) { 4166 var r2, n2 = 8; 4167 for (r2 = 0; 16 > r2; ++r2) n2 += t4[e2 + r2 - 32]; 4168 ge2(n2 >> 4, t4, e2); 4169 } 4170 function ye2(t4, e2) { 4171 ge2(128, t4, e2); 4172 } 4173 function we2(t4, e2, r2) { 4174 return t4 + 2 * e2 + r2 + 2 >> 2; 4175 } 4176 function Ne2(t4, e2) { 4177 var r2, i3 = e2 - 32; 4178 for (i3 = new Uint8Array([we2(t4[i3 - 1], t4[i3 + 0], t4[i3 + 1]), we2(t4[i3 + 0], t4[i3 + 1], t4[i3 + 2]), we2(t4[i3 + 1], t4[i3 + 2], t4[i3 + 3]), we2(t4[i3 + 2], t4[i3 + 3], t4[i3 + 4])]), r2 = 0; 4 > r2; ++r2) n(t4, e2 + 32 * r2, i3, 0, i3.length); 4179 } 4180 function Le2(t4, e2) { 4181 var r2 = t4[e2 - 1], n2 = t4[e2 - 1 + 32], i3 = t4[e2 - 1 + 64], a3 = t4[e2 - 1 + 96]; 4182 F2(t4, e2 + 0, 16843009 * we2(t4[e2 - 1 - 32], r2, n2)), F2(t4, e2 + 32, 16843009 * we2(r2, n2, i3)), F2(t4, e2 + 64, 16843009 * we2(n2, i3, a3)), F2(t4, e2 + 96, 16843009 * we2(i3, a3, a3)); 4183 } 4184 function xe2(t4, e2) { 4185 var r2, n2 = 4; 4186 for (r2 = 0; 4 > r2; ++r2) n2 += t4[e2 + r2 - 32] + t4[e2 - 1 + 32 * r2]; 4187 for (n2 >>= 3, r2 = 0; 4 > r2; ++r2) i2(t4, e2 + 32 * r2, n2, 4); 4188 } 4189 function Ae2(t4, e2) { 4190 var r2 = t4[e2 - 1 + 0], n2 = t4[e2 - 1 + 32], i3 = t4[e2 - 1 + 64], a3 = t4[e2 - 1 - 32], o3 = t4[e2 + 0 - 32], s3 = t4[e2 + 1 - 32], u4 = t4[e2 + 2 - 32], c4 = t4[e2 + 3 - 32]; 4191 t4[e2 + 0 + 96] = we2(n2, i3, t4[e2 - 1 + 96]), t4[e2 + 1 + 96] = t4[e2 + 0 + 64] = we2(r2, n2, i3), t4[e2 + 2 + 96] = t4[e2 + 1 + 64] = t4[e2 + 0 + 32] = we2(a3, r2, n2), t4[e2 + 3 + 96] = t4[e2 + 2 + 64] = t4[e2 + 1 + 32] = t4[e2 + 0 + 0] = we2(o3, a3, r2), t4[e2 + 3 + 64] = t4[e2 + 2 + 32] = t4[e2 + 1 + 0] = we2(s3, o3, a3), t4[e2 + 3 + 32] = t4[e2 + 2 + 0] = we2(u4, s3, o3), t4[e2 + 3 + 0] = we2(c4, u4, s3); 4192 } 4193 function Se2(t4, e2) { 4194 var r2 = t4[e2 + 1 - 32], n2 = t4[e2 + 2 - 32], i3 = t4[e2 + 3 - 32], a3 = t4[e2 + 4 - 32], o3 = t4[e2 + 5 - 32], s3 = t4[e2 + 6 - 32], u4 = t4[e2 + 7 - 32]; 4195 t4[e2 + 0 + 0] = we2(t4[e2 + 0 - 32], r2, n2), t4[e2 + 1 + 0] = t4[e2 + 0 + 32] = we2(r2, n2, i3), t4[e2 + 2 + 0] = t4[e2 + 1 + 32] = t4[e2 + 0 + 64] = we2(n2, i3, a3), t4[e2 + 3 + 0] = t4[e2 + 2 + 32] = t4[e2 + 1 + 64] = t4[e2 + 0 + 96] = we2(i3, a3, o3), t4[e2 + 3 + 32] = t4[e2 + 2 + 64] = t4[e2 + 1 + 96] = we2(a3, o3, s3), t4[e2 + 3 + 64] = t4[e2 + 2 + 96] = we2(o3, s3, u4), t4[e2 + 3 + 96] = we2(s3, u4, u4); 4196 } 4197 function _e2(t4, e2) { 4198 var r2 = t4[e2 - 1 + 0], n2 = t4[e2 - 1 + 32], i3 = t4[e2 - 1 + 64], a3 = t4[e2 - 1 - 32], o3 = t4[e2 + 0 - 32], s3 = t4[e2 + 1 - 32], u4 = t4[e2 + 2 - 32], c4 = t4[e2 + 3 - 32]; 4199 t4[e2 + 0 + 0] = t4[e2 + 1 + 64] = a3 + o3 + 1 >> 1, t4[e2 + 1 + 0] = t4[e2 + 2 + 64] = o3 + s3 + 1 >> 1, t4[e2 + 2 + 0] = t4[e2 + 3 + 64] = s3 + u4 + 1 >> 1, t4[e2 + 3 + 0] = u4 + c4 + 1 >> 1, t4[e2 + 0 + 96] = we2(i3, n2, r2), t4[e2 + 0 + 64] = we2(n2, r2, a3), t4[e2 + 0 + 32] = t4[e2 + 1 + 96] = we2(r2, a3, o3), t4[e2 + 1 + 32] = t4[e2 + 2 + 96] = we2(a3, o3, s3), t4[e2 + 2 + 32] = t4[e2 + 3 + 96] = we2(o3, s3, u4), t4[e2 + 3 + 32] = we2(s3, u4, c4); 4200 } 4201 function Pe2(t4, e2) { 4202 var r2 = t4[e2 + 0 - 32], n2 = t4[e2 + 1 - 32], i3 = t4[e2 + 2 - 32], a3 = t4[e2 + 3 - 32], o3 = t4[e2 + 4 - 32], s3 = t4[e2 + 5 - 32], u4 = t4[e2 + 6 - 32], c4 = t4[e2 + 7 - 32]; 4203 t4[e2 + 0 + 0] = r2 + n2 + 1 >> 1, t4[e2 + 1 + 0] = t4[e2 + 0 + 64] = n2 + i3 + 1 >> 1, t4[e2 + 2 + 0] = t4[e2 + 1 + 64] = i3 + a3 + 1 >> 1, t4[e2 + 3 + 0] = t4[e2 + 2 + 64] = a3 + o3 + 1 >> 1, t4[e2 + 0 + 32] = we2(r2, n2, i3), t4[e2 + 1 + 32] = t4[e2 + 0 + 96] = we2(n2, i3, a3), t4[e2 + 2 + 32] = t4[e2 + 1 + 96] = we2(i3, a3, o3), t4[e2 + 3 + 32] = t4[e2 + 2 + 96] = we2(a3, o3, s3), t4[e2 + 3 + 64] = we2(o3, s3, u4), t4[e2 + 3 + 96] = we2(s3, u4, c4); 4204 } 4205 function ke2(t4, e2) { 4206 var r2 = t4[e2 - 1 + 0], n2 = t4[e2 - 1 + 32], i3 = t4[e2 - 1 + 64], a3 = t4[e2 - 1 + 96]; 4207 t4[e2 + 0 + 0] = r2 + n2 + 1 >> 1, t4[e2 + 2 + 0] = t4[e2 + 0 + 32] = n2 + i3 + 1 >> 1, t4[e2 + 2 + 32] = t4[e2 + 0 + 64] = i3 + a3 + 1 >> 1, t4[e2 + 1 + 0] = we2(r2, n2, i3), t4[e2 + 3 + 0] = t4[e2 + 1 + 32] = we2(n2, i3, a3), t4[e2 + 3 + 32] = t4[e2 + 1 + 64] = we2(i3, a3, a3), t4[e2 + 3 + 64] = t4[e2 + 2 + 64] = t4[e2 + 0 + 96] = t4[e2 + 1 + 96] = t4[e2 + 2 + 96] = t4[e2 + 3 + 96] = a3; 4208 } 4209 function Fe2(t4, e2) { 4210 var r2 = t4[e2 - 1 + 0], n2 = t4[e2 - 1 + 32], i3 = t4[e2 - 1 + 64], a3 = t4[e2 - 1 + 96], o3 = t4[e2 - 1 - 32], s3 = t4[e2 + 0 - 32], u4 = t4[e2 + 1 - 32], c4 = t4[e2 + 2 - 32]; 4211 t4[e2 + 0 + 0] = t4[e2 + 2 + 32] = r2 + o3 + 1 >> 1, t4[e2 + 0 + 32] = t4[e2 + 2 + 64] = n2 + r2 + 1 >> 1, t4[e2 + 0 + 64] = t4[e2 + 2 + 96] = i3 + n2 + 1 >> 1, t4[e2 + 0 + 96] = a3 + i3 + 1 >> 1, t4[e2 + 3 + 0] = we2(s3, u4, c4), t4[e2 + 2 + 0] = we2(o3, s3, u4), t4[e2 + 1 + 0] = t4[e2 + 3 + 32] = we2(r2, o3, s3), t4[e2 + 1 + 32] = t4[e2 + 3 + 64] = we2(n2, r2, o3), t4[e2 + 1 + 64] = t4[e2 + 3 + 96] = we2(i3, n2, r2), t4[e2 + 1 + 96] = we2(a3, i3, n2); 4212 } 4213 function Ie2(t4, e2) { 4214 var r2; 4215 for (r2 = 0; 8 > r2; ++r2) n(t4, e2 + 32 * r2, t4, e2 - 32, 8); 4216 } 4217 function
vendor: 3,305 bytes, lines 4217-4288
4217Ce2(t4, e2) { 4218 var r2; 4219 for (r2 = 0; 8 > r2; ++r2) i2(t4, e2, t4[e2 - 1], 8), e2 += 32; 4220 } 4221 function je(t4, e2, r2) { 4222 var n2; 4223 for (n2 = 0; 8 > n2; ++n2) i2(e2, r2 + 32 * n2, t4, 8); 4224 } 4225 function Oe(t4, e2) { 4226 var r2, n2 = 8; 4227 for (r2 = 0; 8 > r2; ++r2) n2 += t4[e2 + r2 - 32] + t4[e2 - 1 + 32 * r2]; 4228 je(n2 >> 4, t4, e2); 4229 } 4230 function Be(t4, e2) { 4231 var r2, n2 = 4; 4232 for (r2 = 0; 8 > r2; ++r2) n2 += t4[e2 + r2 - 32]; 4233 je(n2 >> 3, t4, e2); 4234 } 4235 function Me(t4, e2) { 4236 var r2, n2 = 4; 4237 for (r2 = 0; 8 > r2; ++r2) n2 += t4[e2 - 1 + 32 * r2]; 4238 je(n2 >> 3, t4, e2); 4239 } 4240 function qe(t4, e2) { 4241 je(128, t4, e2); 4242 } 4243 function Ee(t4, e2, r2) { 4244 var n2 = t4[e2 - r2], i3 = t4[e2 + 0], a3 = 3 * (i3 - n2) + Cn[1020 + t4[e2 - 2 * r2] - t4[e2 + r2]], o3 = jn[112 + (a3 + 4 >> 3)]; 4245 t4[e2 - r2] = On[255 + n2 + jn[112 + (a3 + 3 >> 3)]], t4[e2 + 0] = On[255 + i3 - o3]; 4246 } 4247 function Re(t4, e2, r2, n2) { 4248 var i3 = t4[e2 + 0], a3 = t4[e2 + r2]; 4249 return Bn[255 + t4[e2 - 2 * r2] - t4[e2 - r2]] > n2 || Bn[255 + a3 - i3] > n2; 4250 } 4251 function De(t4, e2, r2, n2) { 4252 return 4 * Bn[255 + t4[e2 - r2] - t4[e2 + 0]] + Bn[255 + t4[e2 - 2 * r2] - t4[e2 + r2]] <= n2; 4253 } 4254 function Te(t4, e2, r2, n2, i3) { 4255 var a3 = t4[e2 - 3 * r2], o3 = t4[e2 - 2 * r2], s3 = t4[e2 - r2], u4 = t4[e2 + 0], c4 = t4[e2 + r2], l4 = t4[e2 + 2 * r2], h4 = t4[e2 + 3 * r2]; 4256 return 4 * Bn[255 + s3 - u4] + Bn[255 + o3 - c4] > n2 ? 0 : Bn[255 + t4[e2 - 4 * r2] - a3] <= i3 && Bn[255 + a3 - o3] <= i3 && Bn[255 + o3 - s3] <= i3 && Bn[255 + h4 - l4] <= i3 && Bn[255 + l4 - c4] <= i3 && Bn[255 + c4 - u4] <= i3; 4257 } 4258 function ze(t4, e2, r2, n2) { 4259 var i3 = 2 * n2 + 1; 4260 for (n2 = 0; 16 > n2; ++n2) De(t4, e2 + n2, r2, i3) && Ee(t4, e2 + n2, r2); 4261 } 4262 function Ue(t4, e2, r2, n2) { 4263 var i3 = 2 * n2 + 1; 4264 for (n2 = 0; 16 > n2; ++n2) De(t4, e2 + n2 * r2, 1, i3) && Ee(t4, e2 + n2 * r2, 1); 4265 } 4266 function He(t4, e2, r2, n2) { 4267 var i3; 4268 for (i3 = 3; 0 < i3; --i3) ze(t4, e2 += 4 * r2, r2, n2); 4269 } 4270 function We(t4, e2, r2, n2) { 4271 var i3; 4272 for (i3 = 3; 0 < i3; --i3) Ue(t4, e2 += 4, r2, n2); 4273 } 4274 function Ve(t4, e2, r2, n2, i3, a3, o3, s3) { 4275 for (a3 = 2 * a3 + 1; 0 < i3--; ) { 4276 if (Te(t4, e2, r2, a3, o3)) if (Re(t4, e2, r2, s3)) Ee(t4, e2, r2); 4277 else { 4278 var u4 = t4, c4 = e2, l4 = r2, h4 = u4[c4 - 2 * l4], f4 = u4[c4 - l4], d4 = u4[c4 + 0], p4 = u4[c4 + l4], g4 = u4[c4 + 2 * l4], m4 = 27 * (b4 = Cn[1020 + 3 * (d4 - f4) + Cn[1020 + h4 - p4]]) + 63 >> 7, v4 = 18 * b4 + 63 >> 7, b4 = 9 * b4 + 63 >> 7; 4279 u4[c4 - 3 * l4] = On[255 + u4[c4 - 3 * l4] + b4], u4[c4 - 2 * l4] = On[255 + h4 + v4], u4[c4 - l4] = On[255 + f4 + m4], u4[c4 + 0] = On[255 + d4 - m4], u4[c4 + l4] = On[255 + p4 - v4], u4[c4 + 2 * l4] = On[255 + g4 - b4]; 4280 } 4281 e2 += n2; 4282 } 4283 } 4284 function Ge(t4, e2, r2, n2, i3, a3, o3, s3) { 4285 for (a3 = 2 * a3 + 1; 0 < i3--; ) { 4286 if (Te(t4, e2, r2, a3, o3)) if (Re(t4, e2, r2, s3)) Ee(t4, e2, r2); 4287 else { 4288 var u4 = t4, c4 = e2, l4 = r2, h4 = u4[c4 - l4], f4 = u4[c4 + 0], d4 = u4[c4 + l4], p4 = jn[112 + (4 + (g4 = 3 * (f4 - h4)) >> 3)], g4 = j
vendor: 7,499 bytes, lines 4288-4420
4288n[112 + (g4 + 3 >> 3)], m4 = p4 + 1 >> 1; 4289 u4[c4 - 2 * l4] = On[255 + u4[c4 - 2 * l4] + m4], u4[c4 - l4] = On[255 + h4 + g4], u4[c4 + 0] = On[255 + f4 - p4], u4[c4 + l4] = On[255 + d4 - m4]; 4290 } 4291 e2 += n2; 4292 } 4293 } 4294 function Ye(t4, e2, r2, n2, i3, a3) { 4295 Ve(t4, e2, r2, 1, 16, n2, i3, a3); 4296 } 4297 function Je(t4, e2, r2, n2, i3, a3) { 4298 Ve(t4, e2, 1, r2, 16, n2, i3, a3); 4299 } 4300 function Xe(t4, e2, r2, n2, i3, a3) { 4301 var o3; 4302 for (o3 = 3; 0 < o3; --o3) Ge(t4, e2 += 4 * r2, r2, 1, 16, n2, i3, a3); 4303 } 4304 function Ke(t4, e2, r2, n2, i3, a3) { 4305 var o3; 4306 for (o3 = 3; 0 < o3; --o3) Ge(t4, e2 += 4, 1, r2, 16, n2, i3, a3); 4307 } 4308 function Ze(t4, e2, r2, n2, i3, a3, o3, s3) { 4309 Ve(t4, e2, i3, 1, 8, a3, o3, s3), Ve(r2, n2, i3, 1, 8, a3, o3, s3); 4310 } 4311 function $e(t4, e2, r2, n2, i3, a3, o3, s3) { 4312 Ve(t4, e2, 1, i3, 8, a3, o3, s3), Ve(r2, n2, 1, i3, 8, a3, o3, s3); 4313 } 4314 function Qe(t4, e2, r2, n2, i3, a3, o3, s3) { 4315 Ge(t4, e2 + 4 * i3, i3, 1, 8, a3, o3, s3), Ge(r2, n2 + 4 * i3, i3, 1, 8, a3, o3, s3); 4316 } 4317 function tr(t4, e2, r2, n2, i3, a3, o3, s3) { 4318 Ge(t4, e2 + 4, 1, i3, 8, a3, o3, s3), Ge(r2, n2 + 4, 1, i3, 8, a3, o3, s3); 4319 } 4320 function er() { 4321 this.ba = new ot2(), this.ec = [], this.cc = [], this.Mc = [], this.Dc = this.Nc = this.dc = this.fc = 0, this.Oa = new ut2(), this.memory = 0, this.Ib = "OutputFunc", this.Jb = "OutputAlphaFunc", this.Nd = "OutputRowFunc"; 4322 } 4323 function rr() { 4324 this.data = [], this.offset = this.kd = this.ha = this.w = 0, this.na = [], this.xa = this.gb = this.Ja = this.Sa = this.P = 0; 4325 } 4326 function nr() { 4327 this.nc = this.Ea = this.b = this.hc = 0, this.K = [], this.w = 0; 4328 } 4329 function ir() { 4330 this.ua = 0, this.Wa = new M2(), this.vb = new M2(), this.md = this.xc = this.wc = 0, this.vc = [], this.Wb = 0, this.Ya = new d3(), this.yc = new h3(); 4331 } 4332 function ar() { 4333 this.xb = this.a = 0, this.l = new Gt2(), this.ca = new ot2(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new N3(), this.Pb = 0, this.wd = new N3(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new ir(), this.ab = 0, this.gc = o2(4, nr), this.Oc = 0; 4334 } 4335 function or() { 4336 this.Lc = this.Z = this.$a = this.i = this.c = 0, this.l = new Gt2(), this.ic = 0, this.ca = [], this.tb = 0, this.qd = null, this.rd = 0; 4337 } 4338 function sr(t4, e2, r2, n2, i3, a3, o3) { 4339 for (t4 = null == t4 ? 0 : t4[e2 + 0], e2 = 0; e2 < o3; ++e2) i3[a3 + e2] = t4 + r2[n2 + e2] & 255, t4 = i3[a3 + e2]; 4340 } 4341 function ur(t4, e2, r2, n2, i3, a3, o3) { 4342 var s3; 4343 if (null == t4) sr(null, null, r2, n2, i3, a3, o3); 4344 else for (s3 = 0; s3 < o3; ++s3) i3[a3 + s3] = t4[e2 + s3] + r2[n2 + s3] & 255; 4345 } 4346 function cr(t4, e2, r2, n2, i3, a3, o3) { 4347 if (null == t4) sr(null, null, r2, n2, i3, a3, o3); 4348 else { 4349 var s3, u4 = t4[e2 + 0], c4 = u4, l4 = u4; 4350 for (s3 = 0; s3 < o3; ++s3) c4 = l4 + (u4 = t4[e2 + s3]) - c4, l4 = r2[n2 + s3] + (-256 & c4 ? 0 > c4 ? 0 : 255 : c4) & 255, c4 = u4, i3[a3 + s3] = l4; 4351 } 4352 } 4353 function lr(t4, r2, i3, o3) { 4354 var s3 = r2.width, u4 = r2.o; 4355 if (e(null != t4 && null != r2), 0 > i3 || 0 >= o3 || i3 + o3 > u4) return null; 4356 if (!t4.Cc) { 4357 if (null == t4.ga) { 4358 var c4; 4359 if (t4.ga = new or(), (c4 = null == t4.ga) || (c4 = r2.width * r2.o, e(0 == t4.Gb.length), t4.Gb = a2(c4), t4.Uc = 0, null == t4.Gb ? c4 = 0 : (t4.mb = t4.Gb, t4.nb = t4.Uc, t4.rc = null, c4 = 1), c4 = !c4), !c4) { 4360 c4 = t4.ga; 4361 var l4 = t4.Fa, h4 = t4.P, f4 = t4.qc, d4 = t4.mb, p4 = t4.nb, g4 = h4 + 1, m4 = f4 - 1, b4 = c4.l; 4362 if (e(null != l4 && null != d4 && null != r2), gi[0] = null, gi[1] = sr, gi[2] = ur, gi[3] = cr, c4.ca = d4, c4.tb = p4, c4.c = r2.width, c4.i = r2.height, e(0 < c4.c && 0 < c4.i), 1 >= f4) r2 = 0; 4363 else if (c4.$a = 3 & l4[h4 + 0], c4.Z = l4[h4 + 0] >> 2 & 3, c4.Lc = l4[h4 + 0] >> 4 & 3, h4 = l4[h4 + 0] >> 6 & 3, 0 > c4.$a || 1 < c4.$a || 4 <= c4.Z || 1 < c4.Lc || h4) r2 = 0; 4364 else if (b4.put = dt2, b4.ac = ft2, b4.bc = pt2, b4.ma = c4, b4.width = r2.width, b4.height = r2.height, b4.Da = r2.Da, b4.v = r2.v, b4.va = r2.va, b4.j = r2.j, b4.o = r2.o, c4.$a) t: { 4365 e(1 == c4.$a), r2 = kt2(); 4366 e: for (; ; ) { 4367 if (null == r2) { 4368 r2 = 0; 4369 break t; 4370 } 4371 if (e(null != c4), c4.mc = r2, r2.c = c4.c, r2.i = c4.i, r2.l = c4.l, r2.l.ma = c4, r2.l.width = c4.c, r2.l.height = c4.i, r2.a = 0, v3(r2.m, l4, g4, m4), !Ft2(c4.c, c4.i, 1, r2, null)) break e; 4372 if (1 == r2.ab && 3 == r2.gc[0].hc && xt2(r2.s) ? (c4.ic = 1, l4 = r2.c * r2.i, r2.Ta = null, r2.Ua = 0, r2.V = a2(l4), r2.Ba = 0, null == r2.V ? (r2.a = 1, r2 = 0) : r2 = 1) : (c4.ic = 0, r2 = It2(r2, c4.c)), !r2) break e; 4373 r2 = 1; 4374 break t; 4375 } 4376 c4.mc = null, r2 = 0; 4377 } 4378 else r2 = m4 >= c4.c * c4.i; 4379 c4 = !r2; 4380 } 4381 if (c4) return null; 4382 1 != t4.ga.Lc ? t4.Ga = 0 : o3 = u4 - i3; 4383 } 4384 e(null != t4.ga), e(i3 + o3 <= u4); 4385 t: { 4386 if (r2 = (l4 = t4.ga).c, u4 = l4.l.o, 0 == l4.$a) { 4387 if (g4 = t4.rc, m4 = t4.Vc, b4 = t4.Fa, h4 = t4.P + 1 + i3 * r2, f4 = t4.mb, d4 = t4.nb + i3 * r2, e(h4 <= t4.P + t4.qc), 0 != l4.Z) for (e(null != gi[l4.Z]), c4 = 0; c4 < o3; ++c4) gi[l4.Z](g4, m4, b4, h4, f4, d4, r2), g4 = f4, m4 = d4, d4 += r2, h4 += r2; 4388 else for (c4 = 0; c4 < o3; ++c4) n(f4, d4, b4, h4, r2), g4 = f4, m4 = d4, d4 += r2, h4 += r2; 4389 t4.rc = g4, t4.Vc = m4; 4390 } else { 4391 if (e(null != l4.mc), r2 = i3 + o3, e(null != (c4 = l4.mc)), e(r2 <= c4.i), c4.C >= r2) r2 = 1; 4392 else if (l4.ic || gr(), l4.ic) { 4393 l4 = c4.V, g4 = c4.Ba, m4 = c4.c; 4394 var y4 = c4.i, w4 = (b4 = 1, h4 = c4.$ / m4, f4 = c4.$ % m4, d4 = c4.m, p4 = c4.s, c4.$), N4 = m4 * y4, L4 = m4 * r2, A4 = p4.wc, _3 = w4 < L4 ? wt2(p4, f4, h4) : null; 4395 e(w4 <= N4), e(r2 <= y4), e(xt2(p4)); 4396 e: for (; ; ) { 4397 for (; !d4.h && w4 < L4; ) { 4398 if (f4 & A4 || (_3 = wt2(p4, f4, h4)), e(null != _3), S2(d4), 256 > (y4 = bt2(_3.G[0], _3.H[0], d4))) l4[g4 + w4] = y4, ++w4, ++f4 >= m4 && (f4 = 0, ++h4 <= r2 && !(h4 % 16) && St2(c4, h4)); 4399 else { 4400 if (!(280 > y4)) { 4401 b4 = 0; 4402 break e; 4403 } 4404 y4 = mt2(y4 - 256, d4); 4405 var P3, k3 = bt2(_3.G[4], _3.H[4], d4); 4406 if (S2(d4), !(w4 >= (k3 = vt2(m4, k3 = mt2(k3, d4))) && N4 - w4 >= y4)) { 4407 b4 = 0; 4408 break e; 4409 } 4410 for (P3 = 0; P3 < y4; ++P3) l4[g4 + w4 + P3] = l4[g4 + w4 + P3 - k3]; 4411 for (w4 += y4, f4 += y4; f4 >= m4; ) f4 -= m4, ++h4 <= r2 && !(h4 % 16) && St2(c4, h4); 4412 w4 < L4 && f4 & A4 && (_3 = wt2(p4, f4, h4)); 4413 } 4414 e(d4.h == x3(d4)); 4415 } 4416 St2(c4, h4 > r2 ? r2 : h4); 4417 break e; 4418 } 4419 !b4 || d4.h && w4 < N4 ? (b4 = 0, c4.a = d4.h ? 5 : 3) : c4.$ = w4, r2 = b4; 4420 } else r2 = _t
vendor: 16,722 bytes, lines 4420-4752
44202(c4, c4.V, c4.Ba, c4.c, c4.i, r2, Ct2); 4421 if (!r2) { 4422 o3 = 0; 4423 break t; 4424 } 4425 } 4426 i3 + o3 >= u4 && (t4.Cc = 1), o3 = 1; 4427 } 4428 if (!o3) return null; 4429 if (t4.Cc && (null != (o3 = t4.ga) && (o3.mc = null), t4.ga = null, 0 < t4.Ga)) return alert("todo:WebPDequantizeLevels"), null; 4430 } 4431 return t4.nb + i3 * s3; 4432 } 4433 function hr(t4, e2, r2, n2, i3, a3) { 4434 for (; 0 < i3--; ) { 4435 var o3, s3 = t4, u4 = e2 + (r2 ? 1 : 0), c4 = t4, l4 = e2 + (r2 ? 0 : 3); 4436 for (o3 = 0; o3 < n2; ++o3) { 4437 var h4 = c4[l4 + 4 * o3]; 4438 255 != h4 && (h4 *= 32897, s3[u4 + 4 * o3 + 0] = s3[u4 + 4 * o3 + 0] * h4 >> 23, s3[u4 + 4 * o3 + 1] = s3[u4 + 4 * o3 + 1] * h4 >> 23, s3[u4 + 4 * o3 + 2] = s3[u4 + 4 * o3 + 2] * h4 >> 23); 4439 } 4440 e2 += a3; 4441 } 4442 } 4443 function fr(t4, e2, r2, n2, i3) { 4444 for (; 0 < n2--; ) { 4445 var a3; 4446 for (a3 = 0; a3 < r2; ++a3) { 4447 var o3 = t4[e2 + 2 * a3 + 0], s3 = 15 & (c4 = t4[e2 + 2 * a3 + 1]), u4 = 4369 * s3, c4 = (240 & c4 | c4 >> 4) * u4 >> 16; 4448 t4[e2 + 2 * a3 + 0] = (240 & o3 | o3 >> 4) * u4 >> 16 & 240 | (15 & o3 | o3 << 4) * u4 >> 16 >> 4 & 15, t4[e2 + 2 * a3 + 1] = 240 & c4 | s3; 4449 } 4450 e2 += i3; 4451 } 4452 } 4453 function dr(t4, e2, r2, n2, i3, a3, o3, s3) { 4454 var u4, c4, l4 = 255; 4455 for (c4 = 0; c4 < i3; ++c4) { 4456 for (u4 = 0; u4 < n2; ++u4) { 4457 var h4 = t4[e2 + u4]; 4458 a3[o3 + 4 * u4] = h4, l4 &= h4; 4459 } 4460 e2 += r2, o3 += s3; 4461 } 4462 return 255 != l4; 4463 } 4464 function pr(t4, e2, r2, n2, i3) { 4465 var a3; 4466 for (a3 = 0; a3 < i3; ++a3) r2[n2 + a3] = t4[e2 + a3] >> 8; 4467 } 4468 function gr() { 4469 Ln = hr, xn = fr, An = dr, Sn = pr; 4470 } 4471 function mr(r2, n2, i3) { 4472 t3[r2] = function(t4, r3, a3, o3, s3, u4, c4, l4, h4, f4, d4, p4, g4, m4, v4, b4, y4) { 4473 var w4, N4 = y4 - 1 >> 1, L4 = s3[u4 + 0] | c4[l4 + 0] << 16, x4 = h4[f4 + 0] | d4[p4 + 0] << 16; 4474 e(null != t4); 4475 var A4 = 3 * L4 + x4 + 131074 >> 2; 4476 for (n2(t4[r3 + 0], 255 & A4, A4 >> 16, g4, m4), null != a3 && (A4 = 3 * x4 + L4 + 131074 >> 2, n2(a3[o3 + 0], 255 & A4, A4 >> 16, v4, b4)), w4 = 1; w4 <= N4; ++w4) { 4477 var S3 = s3[u4 + w4] | c4[l4 + w4] << 16, _3 = h4[f4 + w4] | d4[p4 + w4] << 16, P3 = L4 + S3 + x4 + _3 + 524296, k3 = P3 + 2 * (S3 + x4) >> 3; 4478 A4 = k3 + L4 >> 1, L4 = (P3 = P3 + 2 * (L4 + _3) >> 3) + S3 >> 1, n2(t4[r3 + 2 * w4 - 1], 255 & A4, A4 >> 16, g4, m4 + (2 * w4 - 1) * i3), n2(t4[r3 + 2 * w4 - 0], 255 & L4, L4 >> 16, g4, m4 + (2 * w4 - 0) * i3), null != a3 && (A4 = P3 + x4 >> 1, L4 = k3 + _3 >> 1, n2(a3[o3 + 2 * w4 - 1], 255 & A4, A4 >> 16, v4, b4 + (2 * w4 - 1) * i3), n2(a3[o3 + 2 * w4 + 0], 255 & L4, L4 >> 16, v4, b4 + (2 * w4 + 0) * i3)), L4 = S3, x4 = _3; 4479 } 4480 1 & y4 || (A4 = 3 * L4 + x4 + 131074 >> 2, n2(t4[r3 + y4 - 1], 255 & A4, A4 >> 16, g4, m4 + (y4 - 1) * i3), null != a3 && (A4 = 3 * x4 + L4 + 131074 >> 2, n2(a3[o3 + y4 - 1], 255 & A4, A4 >> 16, v4, b4 + (y4 - 1) * i3))); 4481 }; 4482 } 4483 function vr() { 4484 mi[Mn] = vi, mi[qn] = yi, mi[En] = bi, mi[Rn] = wi, mi[Dn] = Ni, mi[Tn] = Li, mi[zn] = xi, mi[Un] = yi, mi[Hn] = wi, mi[Wn] = Ni, mi[Vn] = Li; 4485 } 4486 function br(t4) { 4487 return t4 & -16384 ? 0 > t4 ? 0 : 255 : t4 >> ki; 4488 } 4489 function yr(t4, e2) { 4490 return br((19077 * t4 >> 8) + (26149 * e2 >> 8) - 14234); 4491 } 4492 function wr(t4, e2, r2) { 4493 return br((19077 * t4 >> 8) - (6419 * e2 >> 8) - (13320 * r2 >> 8) + 8708); 4494 } 4495 function Nr(t4, e2) { 4496 return br((19077 * t4 >> 8) + (33050 * e2 >> 8) - 17685); 4497 } 4498 function Lr(t4, e2, r2, n2, i3) { 4499 n2[i3 + 0] = yr(t4, r2), n2[i3 + 1] = wr(t4, e2, r2), n2[i3 + 2] = Nr(t4, e2); 4500 } 4501 function xr(t4, e2, r2, n2, i3) { 4502 n2[i3 + 0] = Nr(t4, e2), n2[i3 + 1] = wr(t4, e2, r2), n2[i3 + 2] = yr(t4, r2); 4503 } 4504 function Ar(t4, e2, r2, n2, i3) { 4505 var a3 = wr(t4, e2, r2); 4506 e2 = a3 << 3 & 224 | Nr(t4, e2) >> 3, n2[i3 + 0] = 248 & yr(t4, r2) | a3 >> 5, n2[i3 + 1] = e2; 4507 } 4508 function Sr(t4, e2, r2, n2, i3) { 4509 var a3 = 240 & Nr(t4, e2) | 15; 4510 n2[i3 + 0] = 240 & yr(t4, r2) | wr(t4, e2, r2) >> 4, n2[i3 + 1] = a3; 4511 } 4512 function _r(t4, e2, r2, n2, i3) { 4513 n2[i3 + 0] = 255, Lr(t4, e2, r2, n2, i3 + 1); 4514 } 4515 function Pr(t4, e2, r2, n2, i3) { 4516 xr(t4, e2, r2, n2, i3), n2[i3 + 3] = 255; 4517 } 4518 function kr(t4, e2, r2, n2, i3) { 4519 Lr(t4, e2, r2, n2, i3), n2[i3 + 3] = 255; 4520 } 4521 function Fr(e2, r2, n2) { 4522 t3[e2] = function(t4, e3, i3, a3, o3, s3, u4, c4, l4) { 4523 for (var h4 = c4 + (-2 & l4) * n2; c4 != h4; ) r2(t4[e3 + 0], i3[a3 + 0], o3[s3 + 0], u4, c4), r2(t4[e3 + 1], i3[a3 + 0], o3[s3 + 0], u4, c4 + n2), e3 += 2, ++a3, ++s3, c4 += 2 * n2; 4524 1 & l4 && r2(t4[e3 + 0], i3[a3 + 0], o3[s3 + 0], u4, c4); 4525 }; 4526 } 4527 function Ir(t4, e2, r2) { 4528 return 0 == r2 ? 0 == t4 ? 0 == e2 ? 6 : 5 : 0 == e2 ? 4 : 0 : r2; 4529 } 4530 function Cr(t4, e2, r2, n2, i3) { 4531 switch (t4 >>> 30) { 4532 case 3: 4533 an(e2, r2, n2, i3, 0); 4534 break; 4535 case 2: 4536 on(e2, r2, n2, i3); 4537 break; 4538 case 1: 4539 un(e2, r2, n2, i3); 4540 } 4541 } 4542 function jr(t4, e2) { 4543 var r2, a3, o3 = e2.M, s3 = e2.Nb, u4 = t4.oc, c4 = t4.pc + 40, l4 = t4.oc, h4 = t4.pc + 584, f4 = t4.oc, d4 = t4.pc + 600; 4544 for (r2 = 0; 16 > r2; ++r2) u4[c4 + 32 * r2 - 1] = 129; 4545 for (r2 = 0; 8 > r2; ++r2) l4[h4 + 32 * r2 - 1] = 129, f4[d4 + 32 * r2 - 1] = 129; 4546 for (0 < o3 ? u4[c4 - 1 - 32] = l4[h4 - 1 - 32] = f4[d4 - 1 - 32] = 129 : (i2(u4, c4 - 32 - 1, 127, 21), i2(l4, h4 - 32 - 1, 127, 9), i2(f4, d4 - 32 - 1, 127, 9)), a3 = 0; a3 < t4.za; ++a3) { 4547 var p4 = e2.ya[e2.aa + a3]; 4548 if (0 < a3) { 4549 for (r2 = -1; 16 > r2; ++r2) n(u4, c4 + 32 * r2 - 4, u4, c4 + 32 * r2 + 12, 4); 4550 for (r2 = -1; 8 > r2; ++r2) n(l4, h4 + 32 * r2 - 4, l4, h4 + 32 * r2 + 4, 4), n(f4, d4 + 32 * r2 - 4, f4, d4 + 32 * r2 + 4, 4); 4551 } 4552 var g4 = t4.Gd, m4 = t4.Hd + a3, v4 = p4.ad, b4 = p4.Hc; 4553 if (0 < o3 && (n(u4, c4 - 32, g4[m4].y, 0, 16), n(l4, h4 - 32, g4[m4].f, 0, 8), n(f4, d4 - 32, g4[m4].ea, 0, 8)), p4.Za) { 4554 var y4 = u4, w4 = c4 - 32 + 16; 4555 for (0 < o3 && (a3 >= t4.za - 1 ? i2(y4, w4, g4[m4].y[15], 4) : n(y4, w4, g4[m4 + 1].y, 0, 4)), r2 = 0; 4 > r2; r2++) y4[w4 + 128 + r2] = y4[w4 + 256 + r2] = y4[w4 + 384 + r2] = y4[w4 + 0 + r2]; 4556 for (r2 = 0; 16 > r2; ++r2, b4 <<= 2) y4 = u4, w4 = c4 + Ei[r2], hi[p4.Ob[r2]](y4, w4), Cr(b4, v4, 16 * +r2, y4, w4); 4557 } else if (y4 = Ir(a3, o3, p4.Ob[0]), li[y4](u4, c4), 0 != b4) for (r2 = 0; 16 > r2; ++r2, b4 <<= 2) Cr(b4, v4, 16 * +r2, u4, c4 + Ei[r2]); 4558 for (r2 = p4.Gc, y4 = Ir(a3, o3, p4.Dd), fi[y4](l4, h4), fi[y4](f4, d4), b4 = v4, y4 = l4, w4 = h4, 255 & (p4 = 0 | r2) && (170 & p4 ? sn(b4, 256, y4, w4) : cn(b4, 256, y4, w4)), p4 = f4, b4 = d4, 255 & (r2 >>= 8) && (170 & r2 ? sn(v4, 320, p4, b4) : cn(v4, 320, p4, b4)), o3 < t4.Ub - 1 && (n(g4[m4].y, 0, u4, c4 + 480, 16), n(g4[m4].f, 0, l4, h4 + 224, 8), n(g4[m4].ea, 0, f4, d4 + 224, 8)), r2 = 8 * s3 * t4.B, g4 = t4.sa, m4 = t4.ta + 16 * a3 + 16 * s3 * t4.R, v4 = t4.qa, p4 = t4.ra + 8 * a3 + r2, b4 = t4.Ha, y4 = t4.Ia + 8 * a3 + r2, r2 = 0; 16 > r2; ++r2) n(g4, m4 + r2 * t4.R, u4, c4 + 32 * r2, 16); 4559 for (r2 = 0; 8 > r2; ++r2) n(v4, p4 + r2 * t4.B, l4, h4 + 32 * r2, 8), n(b4, y4 + r2 * t4.B, f4, d4 + 32 * r2, 8); 4560 } 4561 } 4562 function Or(t4, n2, i3, a3, o3, s3, u4, c4, l4) { 4563 var h4 = [0], f4 = [0], d4 = 0, p4 = null != l4 ? l4.kd : 0, g4 = null != l4 ? l4 : new rr(); 4564 if (null == t4 || 12 > i3) return 7; 4565 g4.data = t4, g4.w = n2, g4.ha = i3, n2 = [n2], i3 = [i3], g4.gb = [g4.gb]; 4566 t: { 4567 var m4 = n2, b4 = i3, y4 = g4.gb; 4568 if (e(null != t4), e(null != b4), e(null != y4), y4[0] = 0, 12 <= b4[0] && !r(t4, m4[0], "RIFF")) { 4569 if (r(t4, m4[0] + 8, "WEBP")) { 4570 y4 = 3; 4571 break t; 4572 } 4573 var w4 = j2(t4, m4[0] + 4); 4574 if (12 > w4 || 4294967286 < w4) { 4575 y4 = 3; 4576 break t; 4577 } 4578 if (p4 && w4 > b4[0] - 8) { 4579 y4 = 7; 4580 break t; 4581 } 4582 y4[0] = w4, m4[0] += 12, b4[0] -= 12; 4583 } 4584 y4 = 0; 4585 } 4586 if (0 != y4) return y4; 4587 for (w4 = 0 < g4.gb[0], i3 = i3[0]; ; ) { 4588 t: { 4589 var L4 = t4; 4590 b4 = n2, y4 = i3; 4591 var x4 = h4, A4 = f4, S3 = m4 = [0]; 4592 if ((k3 = d4 = [d4])[0] = 0, 8 > y4[0]) y4 = 7; 4593 else { 4594 if (!r(L4, b4[0], "VP8X")) { 4595 if (10 != j2(L4, b4[0] + 4)) { 4596 y4 = 3; 4597 break t; 4598 } 4599 if (18 > y4[0]) { 4600 y4 = 7; 4601 break t; 4602 } 4603 var _3 = j2(L4, b4[0] + 8), P3 = 1 + C2(L4, b4[0] + 12); 4604 if (2147483648 <= P3 * (L4 = 1 + C2(L4, b4[0] + 15))) { 4605 y4 = 3; 4606 break t; 4607 } 4608 null != S3 && (S3[0] = _3), null != x4 && (x4[0] = P3), null != A4 && (A4[0] = L4), b4[0] += 18, y4[0] -= 18, k3[0] = 1; 4609 } 4610 y4 = 0; 4611 } 4612 } 4613 if (d4 = d4[0], m4 = m4[0], 0 != y4) return y4; 4614 if (b4 = !!(2 & m4), !w4 && d4) return 3; 4615 if (null != s3 && (s3[0] = !!(16 & m4)), null != u4 && (u4[0] = b4), null != c4 && (c4[0] = 0), u4 = h4[0], m4 = f4[0], d4 && b4 && null == l4) { 4616 y4 = 0; 4617 break; 4618 } 4619 if (4 > i3) { 4620 y4 = 7; 4621 break; 4622 } 4623 if (w4 && d4 || !w4 && !d4 && !r(t4, n2[0], "ALPH")) { 4624 i3 = [i3], g4.na = [g4.na], g4.P = [g4.P], g4.Sa = [g4.Sa]; 4625 t: { 4626 _3 = t4, y4 = n2, w4 = i3; 4627 var k3 = g4.gb; 4628 x4 = g4.na, A4 = g4.P, S3 = g4.Sa, P3 = 22, e(null != _3), e(null != w4), L4 = y4[0]; 4629 var F3 = w4[0]; 4630 for (e(null != x4), e(null != S3), x4[0] = null, A4[0] = null, S3[0] = 0; ; ) { 4631 if (y4[0] = L4, w4[0] = F3, 8 > F3) { 4632 y4 = 7; 4633 break t; 4634 } 4635 var I3 = j2(_3, L4 + 4); 4636 if (4294967286 < I3) { 4637 y4 = 3; 4638 break t; 4639 } 4640 var O3 = 8 + I3 + 1 & -2; 4641 if (P3 += O3, 0 < k3 && P3 > k3) { 4642 y4 = 3; 4643 break t; 4644 } 4645 if (!r(_3, L4, "VP8 ") || !r(_3, L4, "VP8L")) { 4646 y4 = 0; 4647 break t; 4648 } 4649 if (F3[0] < O3) { 4650 y4 = 7; 4651 break t; 4652 } 4653 r(_3, L4, "ALPH") || (x4[0] = _3, A4[0] = L4 + 8, S3[0] = I3), L4 += O3, F3 -= O3; 4654 } 4655 } 4656 if (i3 = i3[0], g4.na = g4.na[0], g4.P = g4.P[0], g4.Sa = g4.Sa[0], 0 != y4) break; 4657 } 4658 i3 = [i3], g4.Ja = [g4.Ja], g4.xa = [g4.xa]; 4659 t: if (k3 = t4, y4 = n2, w4 = i3, x4 = g4.gb[0], A4 = g4.Ja, S3 = g4.xa, _3 = y4[0], L4 = !r(k3, _3, "VP8 "), P3 = !r(k3, _3, "VP8L"), e(null != k3), e(null != w4), e(null != A4), e(null != S3), 8 > w4[0]) y4 = 7; 4660 else { 4661 if (L4 || P3) { 4662 if (k3 = j2(k3, _3 + 4), 12 <= x4 && k3 > x4 - 12) { 4663 y4 = 3; 4664 break t; 4665 } 4666 if (p4 && k3 > w4[0] - 8) { 4667 y4 = 7; 4668 break t; 4669 } 4670 A4[0] = k3, y4[0] += 8, w4[0] -= 8, S3[0] = P3; 4671 } else S3[0] = 5 <= w4[0] && 47 == k3[_3 + 0] && !(k3[_3 + 4] >> 5), A4[0] = w4[0]; 4672 y4 = 0; 4673 } 4674 if (i3 = i3[0], g4.Ja = g4.Ja[0], g4.xa = g4.xa[0], n2 = n2[0], 0 != y4) break; 4675 if (4294967286 < g4.Ja) return 3; 4676 if (null == c4 || b4 || (c4[0] = g4.xa ? 2 : 1), u4 = [u4], m4 = [m4], g4.xa) { 4677 if (5 > i3) { 4678 y4 = 7; 4679 break; 4680 } 4681 c4 = u4, p4 = m4, b4 = s3, null == t4 || 5 > i3 ? t4 = 0 : 5 <= i3 && 47 == t4[n2 + 0] && !(t4[n2 + 4] >> 5) ? (w4 = [0], k3 = [0], x4 = [0], v3(A4 = new N3(), t4, n2, i3), gt2(A4, w4, k3, x4) ? (null != c4 && (c4[0] = w4[0]), null != p4 && (p4[0] = k3[0]), null != b4 && (b4[0] = x4[0]), t4 = 1) : t4 = 0) : t4 = 0; 4682 } else { 4683 if (10 > i3) { 4684 y4 = 7; 4685 break; 4686 } 4687 c4 = m4, null == t4 || 10 > i3 || !Xt2(t4, n2 + 3, i3 - 3) ? t4 = 0 : (p4 = t4[n2 + 0] | t4[n2 + 1] << 8 | t4[n2 + 2] << 16, b4 = 16383 & (t4[n2 + 7] << 8 | t4[n2 + 6]), t4 = 16383 & (t4[n2 + 9] << 8 | t4[n2 + 8]), 1 & p4 || 3 < (p4 >> 1 & 7) || !(p4 >> 4 & 1) || p4 >> 5 >= g4.Ja || !b4 || !t4 ? t4 = 0 : (u4 && (u4[0] = b4), c4 && (c4[0] = t4), t4 = 1)); 4688 } 4689 if (!t4) return 3; 4690 if (u4 = u4[0], m4 = m4[0], d4 && (h4[0] != u4 || f4[0] != m4)) return 3; 4691 null != l4 && (l4[0] = g4, l4.offset = n2 - l4.w, e(4294967286 > n2 - l4.w), e(l4.offset == l4.ha - i3)); 4692 break; 4693 } 4694 return 0 == y4 || 7 == y4 && d4 && null == l4 ? (null != s3 && (s3[0] |= null != g4.na && 0 < g4.na.length), null != a3 && (a3[0] = u4), null != o3 && (o3[0] = m4), 0) : y4; 4695 } 4696 function Br(t4, e2, r2) { 4697 var n2 = e2.width, i3 = e2.height, a3 = 0, o3 = 0, s3 = n2, u4 = i3; 4698 if (e2.Da = null != t4 && 0 < t4.Da, e2.Da && (s3 = t4.cd, u4 = t4.bd, a3 = t4.v, o3 = t4.j, 11 > r2 || (a3 &= -2, o3 &= -2), 0 > a3 || 0 > o3 || 0 >= s3 || 0 >= u4 || a3 + s3 > n2 || o3 + u4 > i3)) return 0; 4699 if (e2.v = a3, e2.j = o3, e2.va = a3 + s3, e2.o = o3 + u4, e2.U = s3, e2.T = u4, e2.da = null != t4 && 0 < t4.da, e2.da) { 4700 if (!q2(s3, u4, r2 = [t4.ib], a3 = [t4.hb])) return 0; 4701 e2.ib = r2[0], e2.hb = a3[0]; 4702 } 4703 return e2.ob = null != t4 && t4.ob, e2.Kb = null == t4 || !t4.Sd, e2.da && (e2.ob = e2.ib < 3 * n2 / 4 && e2.hb < 3 * i3 / 4, e2.Kb = 0), 1; 4704 } 4705 function Mr(t4) { 4706 if (null == t4) return 2; 4707 if (11 > t4.S) { 4708 var e2 = t4.f.RGBA; 4709 e2.fb += (t4.height - 1) * e2.A, e2.A = -e2.A; 4710 } else e2 = t4.f.kb, t4 = t4.height, e2.O += (t4 - 1) * e2.fa, e2.fa = -e2.fa, e2.N += (t4 - 1 >> 1) * e2.Ab, e2.Ab = -e2.Ab, e2.W += (t4 - 1 >> 1) * e2.Db, e2.Db = -e2.Db, null != e2.F && (e2.J += (t4 - 1) * e2.lb, e2.lb = -e2.lb); 4711 return 0; 4712 } 4713 function qr(t4, e2, r2, n2) { 4714 if (null == n2 || 0 >= t4 || 0 >= e2) return 2; 4715 if (null != r2) { 4716 if (r2.Da) { 4717 var i3 = r2.cd, o3 = r2.bd, s3 = -2 & r2.v, u4 = -2 & r2.j; 4718 if (0 > s3 || 0 > u4 || 0 >= i3 || 0 >= o3 || s3 + i3 > t4 || u4 + o3 > e2) return 2; 4719 t4 = i3, e2 = o3; 4720 } 4721 if (r2.da) { 4722 if (!q2(t4, e2, i3 = [r2.ib], o3 = [r2.hb])) return 2; 4723 t4 = i3[0], e2 = o3[0]; 4724 } 4725 } 4726 n2.width = t4, n2.height = e2; 4727 t: { 4728 var c4 = n2.width, l4 = n2.height; 4729 if (t4 = n2.S, 0 >= c4 || 0 >= l4 || !(t4 >= Mn && 13 > t4)) t4 = 2; 4730 else { 4731 if (0 >= n2.Rd && null == n2.sd) { 4732 s3 = o3 = i3 = e2 = 0; 4733 var h4 = (u4 = c4 * zi[t4]) * l4; 4734 if (11 > t4 || (o3 = (l4 + 1) / 2 * (e2 = (c4 + 1) / 2), 12 == t4 && (s3 = (i3 = c4) * l4)), null == (l4 = a2(h4 + 2 * o3 + s3))) { 4735 t4 = 1; 4736 break t; 4737 } 4738 n2.sd = l4, 11 > t4 ? ((c4 = n2.f.RGBA).eb = l4, c4.fb = 0, c4.A = u4, c4.size = h4) : ((c4 = n2.f.kb).y = l4, c4.O = 0, c4.fa = u4, c4.Fd = h4, c4.f = l4, c4.N = 0 + h4, c4.Ab = e2, c4.Cd = o3, c4.ea = l4, c4.W = 0 + h4 + o3, c4.Db = e2, c4.Ed = o3, 12 == t4 && (c4.F = l4, c4.J = 0 + h4 + 2 * o3), c4.Tc = s3, c4.lb = i3); 4739 } 4740 if (e2 = 1, i3 = n2.S, o3 = n2.width, s3 = n2.height, i3 >= Mn && 13 > i3) if (11 > i3) t4 = n2.f.RGBA, e2 &= (u4 = Math.abs(t4.A)) * (s3 - 1) + o3 <= t4.size, e2 &= u4 >= o3 * zi[i3], e2 &= null != t4.eb; 4741 else { 4742 t4 = n2.f.kb, u4 = (o3 + 1) / 2, h4 = (s3 + 1) / 2, c4 = Math.abs(t4.fa), l4 = Math.abs(t4.Ab); 4743 var f4 = Math.abs(t4.Db), d4 = Math.abs(t4.lb), p4 = d4 * (s3 - 1) + o3; 4744 e2 &= c4 * (s3 - 1) + o3 <= t4.Fd, e2 &= l4 * (h4 - 1) + u4 <= t4.Cd, e2 = (e2 &= f4 * (h4 - 1) + u4 <= t4.Ed) & c4 >= o3 & l4 >= u4 & f4 >= u4, e2 &= null != t4.y, e2 &= null != t4.f, e2 &= null != t4.ea, 12 == i3 && (e2 &= d4 >= o3, e2 &= p4 <= t4.Tc, e2 &= null != t4.F); 4745 } 4746 else e2 = 0; 4747 t4 = e2 ? 0 : 2; 4748 } 4749 } 4750 return 0 != t4 || null != r2 && r2.fd && (t4 = Mr(n2)), t4; 4751 } 4752 var Er = 64, Rr = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535, 131071, 262143, 524287, 1048575, 2097151, 41943
vendor: 3,964 bytes, lines 4752-4799
475203, 8388607, 16777215], Dr = 24, Tr = 32, zr = 8, Ur = [0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7]; 4753 D2("Predictor0", "PredictorAdd0"), t3.Predictor0 = function() { 4754 return 4278190080; 4755 }, t3.Predictor1 = function(t4) { 4756 return t4; 4757 }, t3.Predictor2 = function(t4, e2, r2) { 4758 return e2[r2 + 0]; 4759 }, t3.Predictor3 = function(t4, e2, r2) { 4760 return e2[r2 + 1]; 4761 }, t3.Predictor4 = function(t4, e2, r2) { 4762 return e2[r2 - 1]; 4763 }, t3.Predictor5 = function(t4, e2, r2) { 4764 return z2(z2(t4, e2[r2 + 1]), e2[r2 + 0]); 4765 }, t3.Predictor6 = function(t4, e2, r2) { 4766 return z2(t4, e2[r2 - 1]); 4767 }, t3.Predictor7 = function(t4, e2, r2) { 4768 return z2(t4, e2[r2 + 0]); 4769 }, t3.Predictor8 = function(t4, e2, r2) { 4770 return z2(e2[r2 - 1], e2[r2 + 0]); 4771 }, t3.Predictor9 = function(t4, e2, r2) { 4772 return z2(e2[r2 + 0], e2[r2 + 1]); 4773 }, t3.Predictor10 = function(t4, e2, r2) { 4774 return z2(z2(t4, e2[r2 - 1]), z2(e2[r2 + 0], e2[r2 + 1])); 4775 }, t3.Predictor11 = function(t4, e2, r2) { 4776 var n2 = e2[r2 + 0]; 4777 return 0 >= W2(n2 >> 24 & 255, t4 >> 24 & 255, (e2 = e2[r2 - 1]) >> 24 & 255) + W2(n2 >> 16 & 255, t4 >> 16 & 255, e2 >> 16 & 255) + W2(n2 >> 8 & 255, t4 >> 8 & 255, e2 >> 8 & 255) + W2(255 & n2, 255 & t4, 255 & e2) ? n2 : t4; 4778 }, t3.Predictor12 = function(t4, e2, r2) { 4779 var n2 = e2[r2 + 0]; 4780 return (U2((t4 >> 24 & 255) + (n2 >> 24 & 255) - ((e2 = e2[r2 - 1]) >> 24 & 255)) << 24 | U2((t4 >> 16 & 255) + (n2 >> 16 & 255) - (e2 >> 16 & 255)) << 16 | U2((t4 >> 8 & 255) + (n2 >> 8 & 255) - (e2 >> 8 & 255)) << 8 | U2((255 & t4) + (255 & n2) - (255 & e2))) >>> 0; 4781 }, t3.Predictor13 = function(t4, e2, r2) { 4782 var n2 = e2[r2 - 1]; 4783 return (H2((t4 = z2(t4, e2[r2 + 0])) >> 24 & 255, n2 >> 24 & 255) << 24 | H2(t4 >> 16 & 255, n2 >> 16 & 255) << 16 | H2(t4 >> 8 & 255, n2 >> 8 & 255) << 8 | H2(255 & t4, 255 & n2)) >>> 0; 4784 }; 4785 var Hr = t3.PredictorAdd0; 4786 t3.PredictorAdd1 = V2, D2("Predictor2", "PredictorAdd2"), D2("Predictor3", "PredictorAdd3"), D2("Predictor4", "PredictorAdd4"), D2("Predictor5", "PredictorAdd5"), D2("Predictor6", "PredictorAdd6"), D2("Predictor7", "PredictorAdd7"), D2("Predictor8", "PredictorAdd8"), D2("Predictor9", "PredictorAdd9"), D2("Predictor10", "PredictorAdd10"), D2("Predictor11", "PredictorAdd11"), D2("Predictor12", "PredictorAdd12"), D2("Predictor13", "PredictorAdd13"); 4787 var Wr = t3.PredictorAdd2; 4788 X2("ColorIndexInverseTransform", "MapARGB", "32b", function(t4) { 4789 return t4 >> 8 & 255; 4790 }, function(t4) { 4791 return t4; 4792 }), X2("VP8LColorIndexInverseTransformAlpha", "MapAlpha", "8b", function(t4) { 4793 return t4; 4794 }, function(t4) { 4795 return t4 >> 8 & 255; 4796 }); 4797 var Vr, Gr = t3.ColorIndexInverseTransform, Yr = t3.MapARGB, Jr = t3.VP8LColorIndexInverseTransformAlpha, Xr = t3.MapAlpha, Kr = t3.VP8LPredictorsAdd = []; 4798 Kr.length = 16, (t3.VP8LPredictors = []).length = 16, (t3.VP8LPredictorsAdd_C = []).length = 16, (t3.VP8LPredictors_C = []).length = 16; 4799 var Zr, $r, Qr, tn, en, rn, nn, an, on, sn, un, cn, ln, hn, fn, dn, pn, gn, mn, vn, bn, yn, wn, Nn, Ln, xn, An, Sn, _n = a2(511), Pn = a2(2041), kn = a2(225), Fn = a2(767), In = 0, Cn = Pn, j
vendor: 17,998 bytes, lines 4799-4801
4799n = kn, On = Fn, Bn = _n, Mn = 0, qn = 1, En = 2, Rn = 3, Dn = 4, Tn = 5, zn = 6, Un = 7, Hn = 8, Wn = 9, Vn = 10, Gn = [2, 3, 7], Yn = [3, 3, 11], Jn = [280, 256, 256, 256, 40], Xn = [0, 1, 1, 1, 0], Kn = [17, 18, 0, 1, 2, 3, 4, 5, 16, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], Zn = [24, 7, 23, 25, 40, 6, 39, 41, 22, 26, 38, 42, 56, 5, 55, 57, 21, 27, 54, 58, 37, 43, 72, 4, 71, 73, 20, 28, 53, 59, 70, 74, 36, 44, 88, 69, 75, 52, 60, 3, 87, 89, 19, 29, 86, 90, 35, 45, 68, 76, 85, 91, 51, 61, 104, 2, 103, 105, 18, 30, 102, 106, 34, 46, 84, 92, 67, 77, 101, 107, 50, 62, 120, 1, 119, 121, 83, 93, 17, 31, 100, 108, 66, 78, 118, 122, 33, 47, 117, 123, 49, 63, 99, 109, 82, 94, 0, 116, 124, 65, 79, 16, 32, 98, 110, 48, 115, 125, 81, 95, 64, 114, 126, 97, 111, 80, 113, 127, 96, 112], $n = [2954, 2956, 2958, 2962, 2970, 2986, 3018, 3082, 3212, 3468, 3980, 5004], Qn = 8, ti = [4, 5, 6, 7, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16, 17, 17, 18, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 25, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 91, 93, 95, 96, 98, 100, 101, 102, 104, 106, 108, 110, 112, 114, 116, 118, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 143, 145, 148, 151, 154, 157], ei = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, 167, 170, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 234, 239, 245, 249, 254, 259, 264, 269, 274, 279, 284], ri = null, ni = [[173, 148, 140, 0], [176, 155, 140, 135, 0], [180, 157, 141, 134, 130, 0], [254, 254, 243, 230, 196, 177, 153, 140, 133, 130, 129, 0]], ii = [0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15], ai = [-0, 1, -1, 2, -2, 3, 4, 6, -3, 5, -4, -5, -6, 7, -7, 8, -8, -9], oi = [[[[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]], [[253, 136, 254, 255, 228, 219, 128, 128, 128, 128, 128], [189, 129, 242, 255, 227, 213, 255, 219, 128, 128, 128], [106, 126, 227, 252, 214, 209, 255, 255, 128, 128, 128]], [[1, 98, 248, 255, 236, 226, 255, 255, 128, 128, 128], [181, 133, 238, 254, 221, 234, 255, 154, 128, 128, 128], [78, 134, 202, 247, 198, 180, 255, 219, 128, 128, 128]], [[1, 185, 249, 255, 243, 255, 128, 128, 128, 128, 128], [184, 150, 247, 255, 236, 224, 128, 128, 128, 128, 128], [77, 110, 216, 255, 236, 230, 128, 128, 128, 128, 128]], [[1, 101, 251, 255, 241, 255, 128, 128, 128, 128, 128], [170, 139, 241, 252, 236, 209, 255, 255, 128, 128, 128], [37, 116, 196, 243, 228, 255, 255, 255, 128, 128, 128]], [[1, 204, 254, 255, 245, 255, 128, 128, 128, 128, 128], [207, 160, 250, 255, 238, 128, 128, 128, 128, 128, 128], [102, 103, 231, 255, 211, 171, 128, 128, 128, 128, 128]], [[1, 152, 252, 255, 240, 255, 128, 128, 128, 128, 128], [177, 135, 243, 255, 234, 225, 128, 128, 128, 128, 128], [80, 129, 211, 255, 194, 224, 128, 128, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [246, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [255, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[198, 35, 237, 223, 193, 187, 162, 160, 145, 155, 62], [131, 45, 198, 221, 172, 176, 220, 157, 252, 221, 1], [68, 47, 146, 208, 149, 167, 221, 162, 255, 223, 128]], [[1, 149, 241, 255, 221, 224, 255, 255, 128, 128, 128], [184, 141, 234, 253, 222, 220, 255, 199, 128, 128, 128], [81, 99, 181, 242, 176, 190, 249, 202, 255, 255, 128]], [[1, 129, 232, 253, 214, 197, 242, 196, 255, 255, 128], [99, 121, 210, 250, 201, 198, 255, 202, 128, 128, 128], [23, 91, 163, 242, 170, 187, 247, 210, 255, 255, 128]], [[1, 200, 246, 255, 234, 255, 128, 128, 128, 128, 128], [109, 178, 241, 255, 231, 245, 255, 255, 128, 128, 128], [44, 130, 201, 253, 205, 192, 255, 255, 128, 128, 128]], [[1, 132, 239, 251, 219, 209, 255, 165, 128, 128, 128], [94, 136, 225, 251, 218, 190, 255, 255, 128, 128, 128], [22, 100, 174, 245, 186, 161, 255, 199, 128, 128, 128]], [[1, 182, 249, 255, 232, 235, 128, 128, 128, 128, 128], [124, 143, 241, 255, 227, 234, 128, 128, 128, 128, 128], [35, 77, 181, 251, 193, 211, 255, 205, 128, 128, 128]], [[1, 157, 247, 255, 236, 231, 255, 255, 128, 128, 128], [121, 141, 235, 255, 225, 227, 255, 255, 128, 128, 128], [45, 99, 188, 251, 195, 217, 255, 224, 128, 128, 128]], [[1, 1, 251, 255, 213, 255, 128, 128, 128, 128, 128], [203, 1, 248, 255, 255, 128, 128, 128, 128, 128, 128], [137, 1, 177, 255, 224, 255, 128, 128, 128, 128, 128]]], [[[253, 9, 248, 251, 207, 208, 255, 192, 128, 128, 128], [175, 13, 224, 243, 193, 185, 249, 198, 255, 255, 128], [73, 17, 171, 221, 161, 179, 236, 167, 255, 234, 128]], [[1, 95, 247, 253, 212, 183, 255, 255, 128, 128, 128], [239, 90, 244, 250, 211, 209, 255, 255, 128, 128, 128], [155, 77, 195, 248, 188, 195, 255, 255, 128, 128, 128]], [[1, 24, 239, 251, 218, 219, 255, 205, 128, 128, 128], [201, 51, 219, 255, 196, 186, 128, 128, 128, 128, 128], [69, 46, 190, 239, 201, 218, 255, 228, 128, 128, 128]], [[1, 191, 251, 255, 255, 128, 128, 128, 128, 128, 128], [223, 165, 249, 255, 213, 255, 128, 128, 128, 128, 128], [141, 124, 248, 255, 255, 128, 128, 128, 128, 128, 128]], [[1, 16, 248, 255, 255, 128, 128, 128, 128, 128, 128], [190, 36, 230, 255, 236, 255, 128, 128, 128, 128, 128], [149, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 226, 255, 128, 128, 128, 128, 128, 128, 128, 128], [247, 192, 255, 128, 128, 128, 128, 128, 128, 128, 128], [240, 128, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 134, 252, 255, 255, 128, 128, 128, 128, 128, 128], [213, 62, 250, 255, 255, 128, 128, 128, 128, 128, 128], [55, 93, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[202, 24, 213, 235, 186, 191, 220, 160, 240, 175, 255], [126, 38, 182, 232, 169, 184, 228, 174, 255, 187, 128], [61, 46, 138, 219, 151, 178, 240, 170, 255, 216, 128]], [[1, 112, 230, 250, 199, 191, 247, 159, 255, 255, 128], [166, 109, 228, 252, 211, 215, 255, 174, 128, 128, 128], [39, 77, 162, 232, 172, 180, 245, 178, 255, 255, 128]], [[1, 52, 220, 246, 198, 199, 249, 220, 255, 255, 128], [124, 74, 191, 243, 183, 193, 250, 221, 255, 255, 128], [24, 71, 130, 219, 154, 170, 243, 182, 255, 255, 128]], [[1, 182, 225, 249, 219, 240, 255, 224, 128, 128, 128], [149, 150, 226, 252, 216, 205, 255, 171, 128, 128, 128], [28, 108, 170, 242, 183, 194, 254, 223, 255, 255, 128]], [[1, 81, 230, 252, 204, 203, 255, 192, 128, 128, 128], [123, 102, 209, 247, 188, 196, 255, 233, 128, 128, 128], [20, 95, 153, 243, 164, 173, 255, 203, 128, 128, 128]], [[1, 222, 248, 255, 216, 213, 128, 128, 128, 128, 128], [168, 175, 246, 252, 235, 205, 255, 255, 128, 128, 128], [47, 116, 215, 255, 211, 212, 255, 255, 128, 128, 128]], [[1, 121, 236, 253, 212, 214, 255, 255, 128, 128, 128], [141, 84, 213, 252, 201, 202, 255, 219, 128, 128, 128], [42, 80, 160, 240, 162, 185, 255, 205, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [244, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [238, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]]]], si = [[[231, 120, 48, 89, 115, 113, 120, 152, 112], [152, 179, 64, 126, 170, 118, 46, 70, 95], [175, 69, 143, 80, 85, 82, 72, 155, 103], [56, 58, 10, 171, 218, 189, 17, 13, 152], [114, 26, 17, 163, 44, 195, 21, 10, 173], [121, 24, 80, 195, 26, 62, 44, 64, 85], [144, 71, 10, 38, 171, 213, 144, 34, 26], [170, 46, 55, 19, 136, 160, 33, 206, 71], [63, 20, 8, 114, 114, 208, 12, 9, 226], [81, 40, 11, 96, 182, 84, 29, 16, 36]], [[134, 183, 89, 137, 98, 101, 106, 165, 148], [72, 187, 100, 130, 157, 111, 32, 75, 80], [66, 102, 167, 99, 74, 62, 40, 234, 128], [41, 53, 9, 178, 241, 141, 26, 8, 107], [74, 43, 26, 146, 73, 166, 49, 23, 157], [65, 38, 105, 160, 51, 52, 31, 115, 128], [104, 79, 12, 27, 217, 255, 87, 17, 7], [87, 68, 71, 44, 114, 51, 15, 186, 23], [47, 41, 14, 110, 182, 183, 21, 17, 194], [66, 45, 25, 102, 197, 189, 23, 18, 22]], [[88, 88, 147, 150, 42, 46, 45, 196, 205], [43, 97, 183, 117, 85, 38, 35, 179, 61], [39, 53, 200, 87, 26, 21, 43, 232, 171], [56, 34, 51, 104, 114, 102, 29, 93, 77], [39, 28, 85, 171, 58, 165, 90, 98, 64], [34, 22, 116, 206, 23, 34, 43, 166, 73], [107, 54, 32, 26, 51, 1, 81, 43, 31], [68, 25, 106, 22, 64, 171, 36, 225, 114], [34, 19, 21, 102, 132, 188, 16, 76, 124], [62, 18, 78, 95, 85, 57, 50, 48, 51]], [[193, 101, 35, 159, 215, 111, 89, 46, 111], [60, 148, 31, 172, 219, 228, 21, 18, 111], [112, 113, 77, 85, 179, 255, 38, 120, 114], [40, 42, 1, 196, 245, 209, 10, 25, 109], [88, 43, 29, 140, 166, 213, 37, 43, 154], [61, 63, 30, 155, 67, 45, 68, 1, 209], [100, 80, 8, 43, 154, 1, 51, 26, 71], [142, 78, 78, 16, 255, 128, 34, 197, 171], [41, 40, 5, 102, 211, 183, 4, 1, 221], [51, 50, 17, 168, 209, 192, 23, 25, 82]], [[138, 31, 36, 171, 27, 166, 38, 44, 229], [67, 87, 58, 169, 82, 115, 26, 59, 179], [63, 59, 90, 180, 59, 166, 93, 73, 154], [40, 40, 21, 116, 143, 209, 34, 39, 175], [47, 15, 16, 183, 34, 223, 49, 45, 183], [46, 17, 33, 183, 6, 98, 15, 32, 183], [57, 46, 22, 24, 128, 1, 54, 17, 37], [65, 32, 73, 115, 28, 128, 23, 128, 205], [40, 3, 9, 115, 51, 192, 18, 6, 223], [87, 37, 9, 115, 59, 77, 64, 21, 47]], [[104, 55, 44, 218, 9, 54, 53, 130, 226], [64, 90, 70, 205, 40, 41, 23, 26, 57], [54, 57, 112, 184, 5, 41, 38, 166, 213], [30, 34, 26, 133, 152, 116, 10, 32, 134], [39, 19, 53, 221, 26, 114, 32, 73, 255], [31, 9, 65, 234, 2, 15, 1, 118, 73], [75, 32, 12, 51, 192, 255, 160, 43, 51], [88, 31, 35, 67, 102, 85, 55, 186, 85], [56, 21, 23, 111, 59, 205, 45, 37, 192], [55, 38, 70, 124, 73, 102, 1, 34, 98]], [[125, 98, 42, 88, 104, 85, 117, 175, 82], [95, 84, 53, 89, 128, 100, 113, 101, 45], [75, 79, 123, 47, 51, 128, 81, 171, 1], [57, 17, 5, 71, 102, 57, 53, 41, 49], [38, 33, 13, 121, 57, 73, 26, 1, 85], [41, 10, 67, 138, 77, 110, 90, 47, 114], [115, 21, 2, 10, 102, 255, 166, 23, 6], [101, 29, 16, 10, 85, 128, 101, 196, 26], [57, 18, 10, 102, 102, 213, 34, 20, 43], [117, 20, 15, 36, 163, 128, 68, 1, 26]], [[102, 61, 71, 37, 34, 53, 31, 243, 192], [69, 60, 71, 38, 73, 119, 28, 222, 37], [68, 45, 128, 34, 1, 47, 11, 245, 171], [62, 17, 19, 70, 146, 85, 55, 62, 70], [37, 43, 37, 154, 100, 163, 85, 160, 1], [63, 9, 92, 136, 28, 64, 32, 201, 85], [75, 15, 9, 9, 64, 255, 184, 119, 16], [86, 6, 28, 5, 64, 255, 25, 248, 1], [56, 8, 17, 132, 137, 255, 55, 116, 128], [58, 15, 20, 82, 135, 57, 26, 121, 40]], [[164, 50, 31, 137, 154, 133, 25, 35, 218], [51, 103, 44, 131, 131, 123, 31, 6, 158], [86, 40, 64, 135, 148, 224, 45, 183, 128], [22, 26, 17, 131, 240, 154, 14, 1, 209], [45, 16, 21, 91, 64, 222, 7, 1, 197], [56, 21, 39, 155, 60, 138, 23, 102, 213], [83, 12, 13, 54, 192, 255, 68, 47, 28], [85, 26, 85, 85, 128, 128, 32, 146, 171], [18, 11, 7, 63, 144, 171, 4, 4, 246], [35, 27, 10, 146, 174, 171, 12, 26, 128]], [[190, 80, 35, 99, 180, 80, 126, 54, 45], [85, 126, 47, 87, 176, 51, 41, 20, 32], [101, 75, 128, 139, 118, 146, 116, 128, 85], [56, 41, 15, 176, 236, 85, 37, 9, 62], [71, 30, 17, 119, 118, 255, 17, 18, 138], [101, 38, 60, 138, 55, 70, 43, 26, 142], [146, 36, 19, 30, 171, 255, 97, 27, 20], [138, 45, 61, 62, 219, 1, 81, 188, 64], [32, 41, 20, 117, 151, 142, 20, 21, 163], [112, 19, 12, 61, 195, 128, 48, 4, 24]]], ui = [[[[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[176, 246, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 241, 252, 255, 255, 255, 255, 255, 255, 255, 255], [249, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 244, 252, 255, 255, 255, 255, 255, 255, 255, 255], [234, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 246, 254, 255, 255, 255, 255, 255, 255, 255, 255], [239, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 254, 255, 255, 255, 255, 255, 255], [250, 255, 254, 255, 254, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[217, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [225, 252, 241, 253, 255, 255, 254, 255, 255, 255, 255], [234, 250, 241, 250, 253, 255, 253, 254, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [238, 253, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [249, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 255, 255, 255, 255, 255, 255, 255, 255, 255], [247, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[186, 251, 250, 255, 255, 255, 255, 255, 255, 255, 255], [234, 251, 244, 254, 255, 255, 255, 255, 255, 255, 255], [251, 251, 243, 253, 254, 255, 254, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [236, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 253, 253, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[248, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [250, 254, 252, 254, 255, 255, 255, 255, 255, 255, 255], [248, 254, 249, 253, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [246, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 254, 251, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 252, 255, 255, 255, 255, 255, 255, 255, 255], [248, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [245, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255], [249, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]]], ci = [0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0], li = [], hi = [], fi = [], di = 1, pi = 2, gi = [], mi = []; 4800 mr("UpsampleRgbLinePair", Lr, 3), mr("UpsampleBgrLinePair", xr, 3), mr("UpsampleRgbaLinePair", kr, 4), mr("UpsampleBgraLinePair", Pr, 4), mr("UpsampleArgbLinePair", _r, 4), mr("UpsampleRgba4444LinePair", Sr, 2), mr("UpsampleRgb565LinePair", Ar, 2); 4801 var vi = t3.UpsampleRgbLinePair, bi = t3.UpsampleBgrLinePair, yi = t3.UpsampleRgbaLinePair, wi = t3.UpsampleBgraLinePair, Ni = t3.UpsampleArgbLinePair, Li = t3.UpsampleRgba4444LinePair, xi = t3.UpsampleRgb565LinePair, Ai = 16, Si = 1 << Ai - 1, _i = -227, Pi = 482, ki = 6, Ii = 0,
4801Ci = a2(256), ji = a2(256), Oi = a2(256), Bi = a2(256), Mi = a2(Pi - _i), qi = a2(Pi - _i); 4802 Fr("YuvToRgbRow", Lr, 3), Fr("YuvToBgrRow", xr, 3), Fr("YuvToRgbaRow", kr, 4), Fr
vendor: 29,357 bytes, lines 4802-5246
4802("YuvToBgraRow", Pr, 4), Fr("YuvToArgbRow", _r, 4), Fr("YuvToRgba4444Row", Sr, 2), Fr("YuvToRgb565Row", Ar, 2); 4803 var Ei = [0, 4, 8, 12, 128, 132, 136, 140, 256, 260, 264, 268, 384, 388, 392, 396], Ri = [0, 2, 8], Di = [8, 7, 6, 4, 4, 2, 2, 2, 1, 1, 1, 1], Ti = 1; 4804 this.WebPDecodeRGBA = function(t4, r2, s3, u4, c4) { 4805 var l4 = qn, h4 = new er(), f4 = new ot2(); 4806 h4.ba = f4, f4.S = l4, f4.width = [f4.width], f4.height = [f4.height]; 4807 var d4 = f4.width, p4 = f4.height, g4 = new st2(); 4808 if (null == g4 || null == t4) var m4 = 2; 4809 else e(null != g4), m4 = Or(t4, r2, s3, g4.width, g4.height, g4.Pd, g4.Qd, g4.format, null); 4810 if (0 != m4 ? d4 = 0 : (null != d4 && (d4[0] = g4.width[0]), null != p4 && (p4[0] = g4.height[0]), d4 = 1), d4) { 4811 f4.width = f4.width[0], f4.height = f4.height[0], null != u4 && (u4[0] = f4.width), null != c4 && (c4[0] = f4.height); 4812 t: { 4813 if (u4 = new Gt2(), (c4 = new rr()).data = t4, c4.w = r2, c4.ha = s3, c4.kd = 1, r2 = [0], e(null != c4), (0 == (t4 = Or(c4.data, c4.w, c4.ha, null, null, null, r2, null, c4)) || 7 == t4) && r2[0] && (t4 = 4), 0 == (r2 = t4)) { 4814 if (e(null != h4), u4.data = c4.data, u4.w = c4.w + c4.offset, u4.ha = c4.ha - c4.offset, u4.put = dt2, u4.ac = ft2, u4.bc = pt2, u4.ma = h4, c4.xa) { 4815 if (null == (t4 = kt2())) { 4816 h4 = 1; 4817 break t; 4818 } 4819 if (function(t5, r3) { 4820 var n2 = [0], i3 = [0], a3 = [0]; 4821 e: for (; ; ) { 4822 if (null == t5) return 0; 4823 if (null == r3) return t5.a = 2, 0; 4824 if (t5.l = r3, t5.a = 0, v3(t5.m, r3.data, r3.w, r3.ha), !gt2(t5.m, n2, i3, a3)) { 4825 t5.a = 3; 4826 break e; 4827 } 4828 if (t5.xb = pi, r3.width = n2[0], r3.height = i3[0], !Ft2(n2[0], i3[0], 1, t5, null)) break e; 4829 return 1; 4830 } 4831 return e(0 != t5.a), 0; 4832 }(t4, u4)) { 4833 if (u4 = 0 == (r2 = qr(u4.width, u4.height, h4.Oa, h4.ba))) { 4834 e: { 4835 u4 = t4; 4836 r: for (; ; ) { 4837 if (null == u4) { 4838 u4 = 0; 4839 break e; 4840 } 4841 if (e(null != u4.s.yc), e(null != u4.s.Ya), e(0 < u4.s.Wb), e(null != (s3 = u4.l)), e(null != (c4 = s3.ma)), 0 != u4.xb) { 4842 if (u4.ca = c4.ba, u4.tb = c4.tb, e(null != u4.ca), !Br(c4.Oa, s3, Rn)) { 4843 u4.a = 2; 4844 break r; 4845 } 4846 if (!It2(u4, s3.width)) break r; 4847 if (s3.da) break r; 4848 if ((s3.da || nt2(u4.ca.S)) && gr(), 11 > u4.ca.S || (alert("todo:WebPInitConvertARGBToYUV"), null != u4.ca.f.kb.F && gr()), u4.Pb && 0 < u4.s.ua && null == u4.s.vb.X && !O2(u4.s.vb, u4.s.Wa.Xa)) { 4849 u4.a = 1; 4850 break r; 4851 } 4852 u4.xb = 0; 4853 } 4854 if (!_t2(u4, u4.V, u4.Ba, u4.c, u4.i, s3.o, Lt2)) break r; 4855 c4.Dc = u4.Ma, u4 = 1; 4856 break e; 4857 } 4858 e(0 != u4.a), u4 = 0; 4859 } 4860 u4 = !u4; 4861 } 4862 u4 && (r2 = t4.a); 4863 } else r2 = t4.a; 4864 } else { 4865 if (null == (t4 = new Yt2())) { 4866 h4 = 1; 4867 break t; 4868 } 4869 if (t4.Fa = c4.na, t4.P = c4.P, t4.qc = c4.Sa, Kt2(t4, u4)) { 4870 if (0 == (r2 = qr(u4.width, u4.height, h4.Oa, h4.ba))) { 4871 if (t4.Aa = 0, s3 = h4.Oa, e(null != (c4 = t4)), null != s3) { 4872 if (0 < (d4 = 0 > (d4 = s3.Md) ? 0 : 100 < d4 ? 255 : 255 * d4 / 100)) { 4873 for (p4 = g4 = 0; 4 > p4; ++p4) 12 > (m4 = c4.pb[p4]).lc && (m4.ia = d4 * Di[0 > m4.lc ? 0 : m4.lc] >> 3), g4 |= m4.ia; 4874 g4 && (alert("todo:VP8InitRandom"), c4.ia = 1); 4875 } 4876 c4.Ga = s3.Id, 100 < c4.Ga ? c4.Ga = 100 : 0 > c4.Ga && (c4.Ga = 0); 4877 } 4878 (function(t5, r3) { 4879 if (null == t5) return 0; 4880 if (null == r3) return Jt2(t5, 2, "NULL VP8Io parameter in VP8Decode()."); 4881 if (!t5.cb && !Kt2(t5, r3)) return 0; 4882 if (e(t5.cb), null == r3.ac || r3.ac(r3)) { 4883 r3.ob && (t5.L = 0); 4884 var s4 = Ri[t5.L]; 4885 if (2 == t5.L ? (t5.yb = 0, t5.zb = 0) : (t5.yb = r3.v - s4 >> 4, t5.zb = r3.j - s4 >> 4, 0 > t5.yb && (t5.yb = 0), 0 > t5.zb && (t5.zb = 0)), t5.Va = r3.o + 15 + s4 >> 4, t5.Hb = r3.va + 15 + s4 >> 4, t5.Hb > t5.za && (t5.Hb = t5.za), t5.Va > t5.Ub && (t5.Va = t5.Ub), 0 < t5.L) { 4886 var u5 = t5.ed; 4887 for (s4 = 0; 4 > s4; ++s4) { 4888 var c5; 4889 if (t5.Qa.Cb) { 4890 var l5 = t5.Qa.Lb[s4]; 4891 t5.Qa.Fb || (l5 += u5.Tb); 4892 } else l5 = u5.Tb; 4893 for (c5 = 0; 1 >= c5; ++c5) { 4894 var h5 = t5.gd[s4][c5], f5 = l5; 4895 if (u5.Pc && (f5 += u5.vd[0], c5 && (f5 += u5.od[0])), 0 < (f5 = 0 > f5 ? 0 : 63 < f5 ? 63 : f5)) { 4896 var d5 = f5; 4897 0 < u5.wb && (d5 = 4 < u5.wb ? d5 >> 2 : d5 >> 1) > 9 - u5.wb && (d5 = 9 - u5.wb), 1 > d5 && (d5 = 1), h5.dd = d5, h5.tc = 2 * f5 + d5, h5.ld = 40 <= f5 ? 2 : 15 <= f5 ? 1 : 0; 4898 } else h5.tc = 0; 4899 h5.La = c5; 4900 } 4901 } 4902 } 4903 s4 = 0; 4904 } else Jt2(t5, 6, "Frame setup failed"), s4 = t5.a; 4905 if (s4 = 0 == s4) { 4906 if (s4) { 4907 t5.$c = 0, 0 < t5.Aa || (t5.Ic = Ti); 4908 e: { 4909 s4 = t5.Ic, u5 = 4 * (d5 = t5.za); 4910 var p5 = 32 * d5, g5 = d5 + 1, m5 = 0 < t5.L ? d5 * (0 < t5.Aa ? 2 : 1) : 0, v4 = (2 == t5.Aa ? 2 : 1) * d5; 4911 if ((h5 = u5 + 832 + (c5 = 3 * (16 * s4 + Ri[t5.L]) / 2 * p5) + (l5 = null != t5.Fa && 0 < t5.Fa.length ? t5.Kc.c * t5.Kc.i : 0)) != h5) s4 = 0; 4912 else { 4913 if (h5 > t5.Vb) { 4914 if (t5.Vb = 0, t5.Ec = a2(h5), t5.Fc = 0, null == t5.Ec) { 4915 s4 = Jt2(t5, 1, "no memory during frame initialization."); 4916 break e; 4917 } 4918 t5.Vb = h5; 4919 } 4920 h5 = t5.Ec, f5 = t5.Fc, t5.Ac = h5, t5.Bc = f5, f5 += u5, t5.Gd = o2(p5, Ht2), t5.Hd = 0, t5.rb = o2(g5 + 1, Dt2), t5.sb = 1, t5.wa = m5 ? o2(m5, Rt2) : null, t5.Y = 0, t5.D.Nb = 0, t5.D.wa = t5.wa, t5.D.Y = t5.Y, 0 < t5.Aa && (t5.D.Y += d5), e(true), t5.oc = h5, t5.pc = f5, f5 += 832, t5.ya = o2(v4, zt2), t5.aa = 0, t5.D.ya = t5.ya, t5.D.aa = t5.aa, 2 == t5.Aa && (t5.D.aa += d5), t5.R = 16 * d5, t5.B = 8 * d5, d5 = (p5 = Ri[t5.L]) * t5.R, p5 = p5 / 2 * t5.B, t5.sa = h5, t5.ta = f5 + d5, t5.qa = t5.sa, t5.ra = t5.ta + 16 * s4 * t5.R + p5, t5.Ha = t5.qa, t5.Ia = t5.ra + 8 * s4 * t5.B + p5, t5.$c = 0, f5 += c5, t5.mb = l5 ? h5 : null, t5.nb = l5 ? f5 : null, e(f5 + l5 <= t5.Fc + t5.Vb), $t2(t5), i2(t5.Ac, t5.Bc, 0, u5), s4 = 1; 4921 } 4922 } 4923 if (s4) { 4924 if (r3.ka = 0, r3.y = t5.sa, r3.O = t5.ta, r3.f = t5.qa, r3.N = t5.ra, r3.ea = t5.Ha, r3.Vd = t5.Ia, r3.fa = t5.R, r3.Rc = t5.B, r3.F = null, r3.J = 0, !In) { 4925 for (s4 = -255; 255 >= s4; ++s4) _n[255 + s4] = 0 > s4 ? -s4 : s4; 4926 for (s4 = -1020; 1020 >= s4; ++s4) Pn[1020 + s4] = -128 > s4 ? -128 : 127 < s4 ? 127 : s4; 4927 for (s4 = -112; 112 >= s4; ++s4) kn[112 + s4] = -16 > s4 ? -16 : 15 < s4 ? 15 : s4; 4928 for (s4 = -255; 510 >= s4; ++s4) Fn[255 + s4] = 0 > s4 ? 0 : 255 < s4 ? 255 : s4; 4929 In = 1; 4930 } 4931 nn = ue2, an = ie2, sn = ae2, un = oe2, cn = se2, on = ne2, ln = Ye, hn = Je, fn = Ze, dn = $e, pn = Xe, gn = Ke, mn = Qe, vn = tr, bn = ze, yn = Ue, wn = He, Nn = We, hi[0] = xe2, hi[1] = le2, hi[2] = Ne2, hi[3] = Le2, hi[4] = Ae2, hi[5] = _e2, hi[6] = Se2, hi[7] = Pe2, hi[8] = Fe2, hi[9] = ke2, li[0] = me2, li[1] = fe2, li[2] = de2, li[3] = pe2, li[4] = ve2, li[5] = be2, li[6] = ye2, fi[0] = Oe, fi[1] = he2, fi[2] = Ie2, fi[3] = Ce2, fi[4] = Me, fi[5] = Be, fi[6] = qe, s4 = 1; 4932 } else s4 = 0; 4933 } 4934 s4 && (s4 = function(t6, r4) { 4935 for (t6.M = 0; t6.M < t6.Va; ++t6.M) { 4936 var o3, s5 = t6.Jc[t6.M & t6.Xb], u6 = t6.m, c6 = t6; 4937 for (o3 = 0; o3 < c6.za; ++o3) { 4938 var l6 = u6, h6 = c6, f6 = h6.Ac, d6 = h6.Bc + 4 * o3, p6 = h6.zc, g6 = h6.ya[h6.aa + o3]; 4939 if (h6.Qa.Bb ? g6.$b = k2(l6, h6.Pa.jb[0]) ? 2 + k2(l6, h6.Pa.jb[2]) : k2(l6, h6.Pa.jb[1]) : g6.$b = 0, h6.kc && (g6.Ad = k2(l6, h6.Bd)), g6.Za = !k2(l6, 145) + 0, g6.Za) { 4940 var m6 = g6.Ob, v5 = 0; 4941 for (h6 = 0; 4 > h6; ++h6) { 4942 var b4, y4 = p6[0 + h6]; 4943 for (b4 = 0; 4 > b4; ++b4) { 4944 y4 = si[f6[d6 + b4]][y4]; 4945 for (var w4 = ai[k2(l6, y4[0])]; 0 < w4; ) w4 = ai[2 * w4 + k2(l6, y4[w4])]; 4946 y4 = -w4, f6[d6 + b4] = y4; 4947 } 4948 n(m6, v5, f6, d6, 4), v5 += 4, p6[0 + h6] = y4; 4949 } 4950 } else y4 = k2(l6, 156) ? k2(l6, 128) ? 1 : 3 : k2(l6, 163) ? 2 : 0, g6.Ob[0] = y4, i2(f6, d6, y4, 4), i2(p6, 0, y4, 4); 4951 g6.Dd = k2(l6, 142) ? k2(l6, 114) ? k2(l6, 183) ? 1 : 3 : 2 : 0; 4952 } 4953 if (c6.m.Ka) return Jt2(t6, 7, "Premature end-of-partition0 encountered."); 4954 for (; t6.ja < t6.za; ++t6.ja) { 4955 if (c6 = s5, l6 = (u6 = t6).rb[u6.sb - 1], f6 = u6.rb[u6.sb + u6.ja], o3 = u6.ya[u6.aa + u6.ja], d6 = u6.kc ? o3.Ad : 0) l6.la = f6.la = 0, o3.Za || (l6.Na = f6.Na = 0), o3.Hc = 0, o3.Gc = 0, o3.ia = 0; 4956 else { 4957 var N4, L4; 4958 if (l6 = f6, f6 = c6, d6 = u6.Pa.Xc, p6 = u6.ya[u6.aa + u6.ja], g6 = u6.pb[p6.$b], h6 = p6.ad, m6 = 0, v5 = u6.rb[u6.sb - 1], y4 = b4 = 0, i2(h6, m6, 0, 384), p6.Za) var x4 = 0, A4 = d6[3]; 4959 else { 4960 w4 = a2(16); 4961 var S3 = l6.Na + v5.Na; 4962 if (S3 = ri(f6, d6[1], S3, g6.Eb, 0, w4, 0), l6.Na = v5.Na = (0 < S3) + 0, 1 < S3) nn(w4, 0, h6, m6); 4963 else { 4964 var _3 = w4[0] + 3 >> 3; 4965 for (w4 = 0; 256 > w4; w4 += 16) h6[m6 + w4] = _3; 4966 } 4967 x4 = 1, A4 = d6[0]; 4968 } 4969 var P3 = 15 & l6.la, F3 = 15 & v5.la; 4970 for (w4 = 0; 4 > w4; ++w4) { 4971 var I3 = 1 & F3; 4972 for (_3 = L4 = 0; 4 > _3; ++_3) P3 = P3 >> 1 | (I3 = (S3 = ri(f6, A4, S3 = I3 + (1 & P3), g6.Sc, x4, h6, m6)) > x4) << 7, L4 = L4 << 2 | (3 < S3 ? 3 : 1 < S3 ? 2 : 0 != h6[m6 + 0]), m6 += 16; 4973 P3 >>= 4, F3 = F3 >> 1 | I3 << 7, b4 = (b4 << 8 | L4) >>> 0; 4974 } 4975 for (A4 = P3, x4 = F3 >> 4, N4 = 0; 4 > N4; N4 += 2) { 4976 for (L4 = 0, P3 = l6.la >> 4 + N4, F3 = v5.la >> 4 + N4, w4 = 0; 2 > w4; ++w4) { 4977 for (I3 = 1 & F3, _3 = 0; 2 > _3; ++_3) S3 = I3 + (1 & P3), P3 = P3 >> 1 | (I3 = 0 < (S3 = ri(f6, d6[2], S3, g6.Qc, 0, h6, m6))) << 3, L4 = L4 << 2 | (3 < S3 ? 3 : 1 < S3 ? 2 : 0 != h6[m6 + 0]), m6 += 16; 4978 P3 >>= 2, F3 = F3 >> 1 | I3 << 5; 4979 } 4980 y4 |= L4 << 4 * N4, A4 |= P3 << 4 << N4, x4 |= (240 & F3) << N4; 4981 } 4982 l6.la = A4, v5.la = x4, p6.Hc = b4, p6.Gc = y4, p6.ia = 43690 & y4 ? 0 : g6.ia, d6 = !(b4 | y4); 4983 } 4984 if (0 < u6.L && (u6.wa[u6.Y + u6.ja] = u6.gd[o3.$b][o3.Za], u6.wa[u6.Y + u6.ja].La |= !d6), c6.Ka) return Jt2(t6, 7, "Premature end-of-file encountered."); 4985 } 4986 if ($t2(t6), u6 = r4, c6 = 1, o3 = (s5 = t6).D, l6 = 0 < s5.L && s5.M >= s5.zb && s5.M <= s5.Va, 0 == s5.Aa) e: { 4987 if (o3.M = s5.M, o3.uc = l6, jr(s5, o3), c6 = 1, o3 = (L4 = s5.D).Nb, l6 = (y4 = Ri[s5.L]) * s5.R, f6 = y4 / 2 * s5.B, w4 = 16 * o3 * s5.R, _3 = 8 * o3 * s5.B, d6 = s5.sa, p6 = s5.ta - l6 + w4, g6 = s5.qa, h6 = s5.ra - f6 + _3, m6 = s5.Ha, v5 = s5.Ia - f6 + _3, F3 = 0 == (P3 = L4.M), b4 = P3 >= s5.Va - 1, 2 == s5.Aa && jr(s5, L4), L4.uc) for (I3 = (S3 = s5).D.M, e(S3.D.uc), L4 = S3.yb; L4 < S3.Hb; ++L4) { 4988 x4 = L4, A4 = I3; 4989 var C3 = (j3 = (z3 = S3).D).Nb; 4990 N4 = z3.R; 4991 var j3 = j3.wa[j3.Y + x4], O3 = z3.sa, B3 = z3.ta + 16 * C3 * N4 + 16 * x4, M3 = j3.dd, q3 = j3.tc; 4992 if (0 != q3) if (e(3 <= q3), 1 == z3.L) 0 < x4 && yn(O3, B3, N4, q3 + 4), j3.La && Nn(O3, B3, N4, q3), 0 < A4 && bn(O3, B3, N4, q3 + 4), j3.La && wn(O3, B3, N4, q3); 4993 else { 4994 var E3 = z3.B, R3 = z3.qa, D3 = z3.ra + 8 * C3 * E3 + 8 * x4, T3 = z3.Ha, z3 = z3.Ia + 8 * C3 * E3 + 8 * x4; 4995 C3 = j3.ld, 0 < x4 && (hn(O3, B3, N4, q3 + 4, M3, C3), dn(R3, D3, T3, z3, E3, q3 + 4, M3, C3)), j3.La && (gn(O3, B3, N4, q3, M3, C3), vn(R3, D3, T3, z3, E3, q3, M3, C3)), 0 < A4 && (ln(O3, B3, N4, q3 + 4, M3, C3), fn(R3, D3, T3, z3, E3, q3 + 4, M3, C3)), j3.La && (pn(O3, B3, N4, q3, M3, C3), mn(R3, D3, T3, z3, E3, q3, M3, C3)); 4996 } 4997 } 4998 if (s5.ia && alert("todo:DitherRow"), null != u6.put) { 4999 if (L4 = 16 * P3, P3 = 16 * (P3 + 1), F3 ? (u6.y = s5.sa, u6.O = s5.ta + w4, u6.f = s5.qa, u6.N = s5.ra + _3, u6.ea = s5.Ha, u6.W = s5.Ia + _3) : (L4 -= y4, u6.y = d6, u6.O = p6, u6.f = g6, u6.N = h6, u6.ea = m6, u6.W = v5), b4 || (P3 -= y4), P3 > u6.o && (P3 = u6.o), u6.F = null, u6.J = null, null != s5.Fa && 0 < s5.Fa.length && L4 < P3 && (u6.J = lr(s5, u6, L4, P3 - L4), u6.F = s5.mb, null == u6.F && 0 == u6.F.length)) { 5000 c6 = Jt2(s5, 3, "Could not decode alpha data."); 5001 break e; 5002 } 5003 L4 < u6.j && (y4 = u6.j - L4, L4 = u6.j, e(!(1 & y4)), u6.O += s5.R * y4, u6.N += s5.B * (y4 >> 1), u6.W += s5.B * (y4 >> 1), null != u6.F && (u6.J += u6.width * y4)), L4 < P3 && (u6.O += u6.v, u6.N += u6.v >> 1, u6.W += u6.v >> 1, null != u6.F && (u6.J += u6.v), u6.ka = L4 - u6.j, u6.U = u6.va - u6.v, u6.T = P3 - L4, c6 = u6.put(u6)); 5004 } 5005 o3 + 1 != s5.Ic || b4 || (n(s5.sa, s5.ta - l6, d6, p6 + 16 * s5.R, l6), n(s5.qa, s5.ra - f6, g6, h6 + 8 * s5.B, f6), n(s5.Ha, s5.Ia - f6, m6, v5 + 8 * s5.B, f6)); 5006 } 5007 if (!c6) return Jt2(t6, 6, "Output aborted."); 5008 } 5009 return 1; 5010 }(t5, r3)), null != r3.bc && r3.bc(r3), s4 &= 1; 5011 } 5012 return s4 ? (t5.cb = 0, s4) : 0; 5013 })(t4, u4) || (r2 = t4.a); 5014 } 5015 } else r2 = t4.a; 5016 } 5017 0 == r2 && null != h4.Oa && h4.Oa.fd && (r2 = Mr(h4.ba)); 5018 } 5019 h4 = r2; 5020 } 5021 l4 = 0 != h4 ? null : 11 > l4 ? f4.f.RGBA.eb : f4.f.kb.y; 5022 } else l4 = null; 5023 return l4; 5024 }; 5025 var zi = [3, 4, 3, 4, 4, 2, 2, 4, 4, 4, 2, 1, 1]; 5026 }; 5027 function c2(t3, e2) { 5028 for (var r2 = "", n2 = 0; n2 < 4; n2++) r2 += String.fromCharCode(t3[e2++]); 5029 return r2; 5030 } 5031 function l2(t3, e2) { 5032 return t3[e2 + 0] | t3[e2 + 1] << 8; 5033 } 5034 function h2(t3, e2) { 5035 return (t3[e2 + 0] | t3[e2 + 1] << 8 | t3[e2 + 2] << 16) >>> 0; 5036 } 5037 function f2(t3, e2) { 5038 return (t3[e2 + 0] | t3[e2 + 1] << 8 | t3[e2 + 2] << 16 | t3[e2 + 3] << 24) >>> 0; 5039 } 5040 new u2(); 5041 var d2 = [0], p2 = [0], g2 = [], m2 = new u2(), v2 = t2, b2 = function(t3, e2) { 5042 var r2 = {}, n2 = 0, i3 = false, a3 = 0, o3 = 0; 5043 if (r2.frames = [], !/** @license 5044 * Copyright (c) 2017 Dominik Homberger 5045 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 5046 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 5047 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 5048 https://webpjs.appspot.com 5049 WebPRiffParser [email protected] 5050 */ 5051 function(t4, e3) { 5052 for (var r3 = 0; r3 < 4; r3++) if (t4[e3 + r3] != "RIFF".charCodeAt(r3)) return true; 5053 return false; 5054 }(t3, e2)) { 5055 for (f2(t3, e2 += 4), e2 += 8; e2 < t3.length; ) { 5056 var s3 = c2(t3, e2), u3 = f2(t3, e2 += 4); 5057 e2 += 4; 5058 var d3 = u3 + (1 & u3); 5059 switch (s3) { 5060 case "VP8 ": 5061 case "VP8L": 5062 void 0 === r2.frames[n2] && (r2.frames[n2] = {}), (m3 = r2.frames[n2]).src_off = i3 ? o3 : e2 - 8, m3.src_size = a3 + u3 + 8, n2++, i3 && (i3 = false, a3 = 0, o3 = 0); 5063 break; 5064 case "VP8X": 5065 (m3 = r2.header = {}).feature_flags = t3[e2]; 5066 var p3 = e2 + 4; 5067 m3.canvas_width = 1 + h2(t3, p3), p3 += 3, m3.canvas_height = 1 + h2(t3, p3), p3 += 3; 5068 break; 5069 case "ALPH": 5070 i3 = true, a3 = d3 + 8, o3 = e2 - 8; 5071 break; 5072 case "ANIM": 5073 (m3 = r2.header).bgcolor = f2(t3, e2), p3 = e2 + 4, m3.loop_count = l2(t3, p3), p3 += 2; 5074 break; 5075 case "ANMF": 5076 var g3, m3; 5077 (m3 = r2.frames[n2] = {}).offset_x = 2 * h2(t3, e2), e2 += 3, m3.offset_y = 2 * h2(t3, e2), e2 += 3, m3.width = 1 + h2(t3, e2), e2 += 3, m3.height = 1 + h2(t3, e2), e2 += 3, m3.duration = h2(t3, e2), e2 += 3, g3 = t3[e2++], m3.dispose = 1 & g3, m3.blend = g3 >> 1 & 1; 5078 } 5079 "ANMF" != s3 && (e2 += d3); 5080 } 5081 return r2; 5082 } 5083 }(v2, 0); 5084 b2.response = v2, b2.rgbaoutput = true, b2.dataurl = false; 5085 var y2 = b2.header ? b2.header : null, w2 = b2.frames ? b2.frames : null; 5086 if (y2) { 5087 y2.loop_counter = y2.loop_count, d2 = [y2.canvas_height], p2 = [y2.canvas_width]; 5088 for (var N2 = 0; N2 < w2.length && 0 != w2[N2].blend; N2++) ; 5089 } 5090 var L2 = w2[0], x2 = m2.WebPDecodeRGBA(v2, L2.src_off, L2.src_size, p2, d2); 5091 L2.rgba = x2, L2.imgwidth = p2[0], L2.imgheight = d2[0]; 5092 for (var A2 = 0; A2 < p2[0] * d2[0] * 4; A2++) g2[A2] = x2[A2]; 5093 return this.width = p2, this.height = d2, this.data = g2, this; 5094} 5095/** ==================================================================== 5096 * @license 5097 * jsPDF XMP metadata plugin 5098 * Copyright (c) 2016 Jussi Utunen, [email protected] 5099 * 5100 * Permission is hereby granted, free of charge, to any person obtaining 5101 * a copy of this software and associated documentation files (the 5102 * "Software"), to deal in the Software without restriction, including 5103 * without limitation the rights to use, copy, modify, merge, publish, 5104 * distribute, sublicense, and/or sell copies of the Software, and to 5105 * permit persons to whom the Software is furnished to do so, subject to 5106 * the following conditions: 5107 * 5108 * The above copyright notice and this permission notice shall be 5109 * included in all copies or substantial portions of the Software. 5110 * 5111 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 5112 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 5113 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 5114 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 5115 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 5116 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 5117 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 5118 * ==================================================================== 5119 */ 5120function ce() { 5121 var t2, e = this.internal.__metadata__.metadata, r = unescape(encodeURIComponent(e)); 5122 t2 = this.internal.__metadata__.rawXml ? r : '<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="' + this.internal.__metadata__.namespaceUri + '"><jspdf:metadata>' + r.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'") + "</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>", this.internal.__metadata__.metadataObjectNumber = this.internal.newObject(), this.internal.write("<< /Type /Metadata /Subtype /XML /Length " + t2.length + " >>"), this.internal.write("stream"), this.internal.write(t2), this.internal.write("endstream"), this.internal.write("endobj"); 5123} 5124function le() { 5125 this.internal.__metadata__.metadataObjectNumber && this.internal.write("/Metadata " + this.internal.__metadata__.metadataObjectNumber + " 0 R"); 5126} 5127!function(e) { 5128 var r, n, i2, a2, s2, u2, c2, l2, f2, d2 = function(t2) { 5129 return t2 = t2 || {}, this.isStrokeTransparent = t2.isStrokeTransparent || false, this.strokeOpacity = t2.strokeOpacity || 1, this.strokeStyle = t2.strokeStyle || "#000000", this.fillStyle = t2.fillStyle || "#000000", this.isFillTransparent = t2.isFillTransparent || false, this.fillOpacity = t2.fillOpacity || 1, this.font = t2.font || "10px sans-serif", this.textBaseline = t2.textBaseline || "alphabetic", this.textAlign = t2.textAlign || "left", this.lineWidth = t2.lineWidth || 1, this.lineJoin = t2.lineJoin || "miter", this.lineCap = t2.lineCap || "butt", this.path = t2.path || [], this.transform = void 0 !== t2.transform ? t2.transform.clone() : new l2(), this.globalCompositeOperation = t2.globalCompositeOperation || "normal", this.globalAlpha = t2.globalAlpha || 1, this.clip_path = t2.clip_path || [], this.currentPoint = t2.currentPoint || new u2(), this.miterLimit = t2.miterLimit || 10, this.lastPoint = t2.lastPoint || new u2(), this.lineDashOffset = t2.lineDashOffset || 0, this.lineDash = t2.lineDash || [], this.margin = t2.margin || [0, 0, 0, 0], this.prevPageLastElemOffset = t2.prevPageLastElemOffset || 0, this.ignoreClearRect = "boolean" != typeof t2.ignoreClearRect || t2.ignoreClearRect, this; 5130 }; 5131 e.events.push(["initialized", function() { 5132 this.context2d = new p2(this), r = this.internal.f2, n = this.internal.getCoordinateString, i2 = this.internal.getVerticalCoordinateString, a2 = this.internal.getHorizontalCoordinate, s2 = this.internal.getVerticalCoordinate, u2 = this.internal.Point, c2 = this.internal.Rectangle, l2 = this.internal.Matrix, f2 = new d2(); 5133 }]); 5134 var p2 = function(t2) { 5135 Object.defineProperty(this, "canvas", { get: function() { 5136 return { parentNode: false, style: false }; 5137 } }); 5138 var e2 = t2; 5139 Object.defineProperty(this, "pdf", { get: function() { 5140 return e2; 5141 } }); 5142 var r2 = false; 5143 Object.defineProperty(this, "pageWrapXEnabled", { get: function() { 5144 return r2; 5145 }, set: function(t3) { 5146 r2 = Boolean(t3); 5147 } }); 5148 var n2 = false; 5149 Object.defineProperty(this, "pageWrapYEnabled", { get: function() { 5150 return n2; 5151 }, set: function(t3) { 5152 n2 = Boolean(t3); 5153 } }); 5154 var i3 = 0; 5155 Object.defineProperty(this, "posX", { get: function() { 5156 return i3; 5157 }, set: function(t3) { 5158 isNaN(t3) || (i3 = t3); 5159 } }); 5160 var a3 = 0; 5161 Object.defineProperty(this, "posY", { get: function() { 5162 return a3; 5163 }, set: function(t3) { 5164 isNaN(t3) || (a3 = t3); 5165 } }), Object.defineProperty(this, "margin", { get: function() { 5166 return f2.margin; 5167 }, set: function(t3) { 5168 var e3; 5169 "number" == typeof t3 ? e3 = [t3, t3, t3, t3] : ((e3 = new Array(4))[0] = t3[0], e3[1] = t3.length >= 2 ? t3[1] : e3[0], e3[2] = t3.length >= 3 ? t3[2] : e3[0], e3[3] = t3.length >= 4 ? t3[3] : e3[1]), f2.margin = e3; 5170 } }); 5171 var o2 = false; 5172 Object.defineProperty(this, "autoPaging", { get: function() { 5173 return o2; 5174 }, set: function(t3) { 5175 o2 = t3; 5176 } }); 5177 var s3 = 0; 5178 Object.defineProperty(this, "lastBreak", { get: function() { 5179 return s3; 5180 }, set: function(t3) { 5181 s3 = t3; 5182 } }); 5183 var u3 = []; 5184 Object.defineProperty(this, "pageBreaks", { get: function() { 5185 return u3; 5186 }, set: function(t3) { 5187 u3 = t3; 5188 } }), Object.defineProperty(this, "ctx", { get: function() { 5189 return f2; 5190 }, set: function(t3) { 5191 t3 instanceof d2 && (f2 = t3); 5192 } }), Object.defineProperty(this, "path", { get: function() { 5193 return f2.path; 5194 }, set: function(t3) { 5195 f2.path = t3; 5196 } }); 5197 var c3 = []; 5198 Object.defineProperty(this, "ctxStack", { get: function() { 5199 return c3; 5200 }, set: function(t3) { 5201 c3 = t3; 5202 } }), Object.defineProperty(this, "fillStyle", { get: function() { 5203 return this.ctx.fillStyle; 5204 }, set: function(t3) { 5205 var e3; 5206 e3 = g2(t3), this.ctx.fillStyle = e3.style, this.ctx.isFillTransparent = 0 === e3.a, this.ctx.fillOpacity = e3.a, this.pdf.setFillColor(e3.r, e3.g, e3.b, { a: e3.a }), this.pdf.setTextColor(e3.r, e3.g, e3.b, { a: e3.a }); 5207 } }), Object.defineProperty(this, "strokeStyle", { get: function() { 5208 return this.ctx.strokeStyle; 5209 }, set: function(t3) { 5210 var e3 = g2(t3); 5211 this.ctx.strokeStyle = e3.style, this.ctx.isStrokeTransparent = 0 === e3.a, this.ctx.strokeOpacity = e3.a, 0 === e3.a ? this.pdf.setDrawColor(255, 255, 255) : (e3.a, this.pdf.setDrawColor(e3.r, e3.g, e3.b)); 5212 } }), Object.defineProperty(this, "lineCap", { get: function() { 5213 return this.ctx.lineCap; 5214 }, set: function(t3) { 5215 -1 !== ["butt", "round", "square"].indexOf(t3) && (this.ctx.lineCap = t3, this.pdf.setLineCap(t3)); 5216 } }), Object.defineProperty(this, "lineWidth", { get: function() { 5217 return this.ctx.lineWidth; 5218 }, set: function(t3) { 5219 isNaN(t3) || (this.ctx.lineWidth = t3, this.pdf.setLineWidth(t3)); 5220 } }), Object.defineProperty(this, "lineJoin", { get: function() { 5221 return this.ctx.lineJoin; 5222 }, set: function(t3) { 5223 -1 !== ["bevel", "round", "miter"].indexOf(t3) && (this.ctx.lineJoin = t3, this.pdf.setLineJoin(t3)); 5224 } }), Object.defineProperty(this, "miterLimit", { get: function() { 5225 return this.ctx.miterLimit; 5226 }, set: function(t3) { 5227 isNaN(t3) || (this.ctx.miterLimit = t3, this.pdf.setMiterLimit(t3)); 5228 } }), Object.defineProperty(this, "textBaseline", { get: function() { 5229 return this.ctx.textBaseline; 5230 }, set: function(t3) { 5231 this.ctx.textBaseline = t3; 5232 } }), Object.defineProperty(this, "textAlign", { get: function() { 5233 return this.ctx.textAlign; 5234 }, set: function(t3) { 5235 -1 !== ["right", "end", "center", "left", "start"].indexOf(t3) && (this.ctx.textAlign = t3); 5236 } }); 5237 var l3 = null, h2 = null; 5238 var p3 = null; 5239 Object.defineProperty(this, "fontFaces", { get: function() { 5240 return p3; 5241 }, set: function(t3) { 5242 l3 = null, h2 = null, p3 = t3; 5243 } }), Object.defineProperty(this, "font", { get: function() { 5244 return this.ctx.font; 5245 }, set: function(t3) { 5246 var e3;
vendor: 4,842 bytes, lines 5247-5335
5247 if (this.ctx.font = t3, null !== (e3 = /^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(t3))) { 5248 var r3 = e3[1]; 5249 e3[2]; 5250 var n3 = e3[3], i4 = e3[4]; 5251 e3[5]; 5252 var a4 = e3[6], o3 = /^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i4)[2]; 5253 i4 = "px" === o3 ? Math.floor(parseFloat(i4) * this.pdf.internal.scaleFactor) : "em" === o3 ? Math.floor(parseFloat(i4) * this.pdf.getFontSize()) : Math.floor(parseFloat(i4) * this.pdf.internal.scaleFactor), this.pdf.setFontSize(i4); 5254 var s4 = function(t4) { 5255 var e4, r4, n4 = [], i5 = t4.trim(); 5256 if ("" === i5) return Gt; 5257 if (i5 in qt) return [qt[i5]]; 5258 for (; "" !== i5; ) { 5259 switch (r4 = null, e4 = (i5 = Rt(i5)).charAt(0)) { 5260 case '"': 5261 case "'": 5262 r4 = Dt(i5.substring(1), e4); 5263 break; 5264 default: 5265 r4 = Tt(i5); 5266 } 5267 if (null === r4) return Gt; 5268 if (n4.push(r4[0]), "" !== (i5 = Rt(r4[1])) && "," !== i5.charAt(0)) return Gt; 5269 i5 = i5.replace(/^,/, ""); 5270 } 5271 return n4; 5272 }(a4); 5273 if (this.fontFaces) { 5274 var u4 = function(t4, e4) { 5275 var r4 = t4.getFontList(), n4 = JSON.stringify(r4); 5276 if (null === l3 || h2 !== n4) { 5277 var i5 = function(t5) { 5278 var e5 = []; 5279 return Object.keys(t5).forEach(function(r5) { 5280 t5[r5].forEach(function(t6) { 5281 var n5 = null; 5282 switch (t6) { 5283 case "bold": 5284 n5 = { family: r5, weight: "bold" }; 5285 break; 5286 case "italic": 5287 n5 = { family: r5, style: "italic" }; 5288 break; 5289 case "bolditalic": 5290 n5 = { family: r5, weight: "bold", style: "italic" }; 5291 break; 5292 case "": 5293 case "normal": 5294 n5 = { family: r5 }; 5295 } 5296 null !== n5 && (n5.ref = { name: r5, style: t6 }, e5.push(n5)); 5297 }); 5298 }), e5; 5299 }(r4); 5300 l3 = function(t5) { 5301 for (var e5 = {}, r5 = 0; r5 < t5.length; ++r5) { 5302 var n5 = Ot(t5[r5]), i6 = n5.family, a5 = n5.stretch, o4 = n5.style, s5 = n5.weight; 5303 e5[i6] = e5[i6] || {}, e5[i6][a5] = e5[i6][a5] || {}, e5[i6][a5][o4] = e5[i6][a5][o4] || {}, e5[i6][a5][o4][s5] = n5; 5304 } 5305 return e5; 5306 }(i5.concat(e4)), h2 = n4; 5307 } 5308 return l3; 5309 }(this.pdf, this.fontFaces), c4 = s4.map(function(t4) { 5310 return { family: t4, stretch: "normal", weight: n3, style: r3 }; 5311 }), f3 = function(t4, e4, r4) { 5312 for (var n4 = (r4 = r4 || {}).defaultFontFamily || "times", i5 = Object.assign({}, Mt, r4.genericFontFamilies || {}), a5 = null, o4 = null, s5 = 0; s5 < e4.length; ++s5) if (i5[(a5 = Ot(e4[s5])).family] && (a5.family = i5[a5.family]), t4.hasOwnProperty(a5.family)) { 5313 o4 = t4[a5.family]; 5314 break; 5315 } 5316 if (!(o4 = o4 || t4[n4])) throw new Error("Could not find a font-family for the rule '" + Et(a5) + "' and default family '" + n4 + "'."); 5317 if (o4 = function(t5, e5) { 5318 if (e5[t5]) return e5[t5]; 5319 var r5 = It[t5], n5 = r5 <= It.normal ? -1 : 1, i6 = Bt(e5, Ft, r5, n5); 5320 if (!i6) throw new Error("Could not find a matching font-stretch value for " + t5); 5321 return i6; 5322 }(a5.stretch, o4), o4 = function(t5, e5) { 5323 if (e5[t5]) return e5[t5]; 5324 for (var r5 = kt[t5], n5 = 0; n5 < r5.length; ++n5) if (e5[r5[n5]]) return e5[r5[n5]]; 5325 throw new Error("Could not find a matching font-style for " + t5); 5326 }(a5.style, o4), !(o4 = function(t5, e5) { 5327 if (e5[t5]) return e5[t5]; 5328 if (400 === t5 && e5[500]) return e5[500]; 5329 if (500 === t5 && e5[400]) return e5[400]; 5330 var r5 = jt[t5], n5 = Bt(e5, Ct, r5, t5 < 400 ? -1 : 1); 5331 if (!n5) throw new Error("Could not find a matching font-weight for value " + t5); 5332 return n5; 5333 }(a5.weight, o4))) throw new Error("Failed to resolve a font for the rule '" + Et(a5) + "'."); 5334 return o4; 5335 }
vendor: 10,807 bytes, lines 5335-5484
5335(u4, c4); 5336 this.pdf.setFont(f3.ref.name, f3.ref.style); 5337 } else { 5338 var d3 = ""; 5339 ("bold" === n3 || parseInt(n3, 10) >= 700 || "bold" === r3) && (d3 = "bold"), "italic" === r3 && (d3 += "italic"), 0 === d3.length && (d3 = "normal"); 5340 for (var p4 = "", g3 = { arial: "Helvetica", Arial: "Helvetica", verdana: "Helvetica", Verdana: "Helvetica", helvetica: "Helvetica", Helvetica: "Helvetica", "sans-serif": "Helvetica", fixed: "Courier", monospace: "Courier", terminal: "Courier", cursive: "Times", fantasy: "Times", serif: "Times" }, m3 = 0; m3 < s4.length; m3++) { 5341 if (void 0 !== this.pdf.internal.getFont(s4[m3], d3, { noFallback: true, disableWarning: true })) { 5342 p4 = s4[m3]; 5343 break; 5344 } 5345 if ("bolditalic" === d3 && void 0 !== this.pdf.internal.getFont(s4[m3], "bold", { noFallback: true, disableWarning: true })) p4 = s4[m3], d3 = "bold"; 5346 else if (void 0 !== this.pdf.internal.getFont(s4[m3], "normal", { noFallback: true, disableWarning: true })) { 5347 p4 = s4[m3], d3 = "normal"; 5348 break; 5349 } 5350 } 5351 if ("" === p4) { 5352 for (var v3 = 0; v3 < s4.length; v3++) if (g3[s4[v3]]) { 5353 p4 = g3[s4[v3]]; 5354 break; 5355 } 5356 } 5357 p4 = "" === p4 ? "Times" : p4, this.pdf.setFont(p4, d3); 5358 } 5359 } 5360 } }), Object.defineProperty(this, "globalCompositeOperation", { get: function() { 5361 return this.ctx.globalCompositeOperation; 5362 }, set: function(t3) { 5363 this.ctx.globalCompositeOperation = t3; 5364 } }), Object.defineProperty(this, "globalAlpha", { get: function() { 5365 return this.ctx.globalAlpha; 5366 }, set: function(t3) { 5367 this.ctx.globalAlpha = t3; 5368 } }), Object.defineProperty(this, "lineDashOffset", { get: function() { 5369 return this.ctx.lineDashOffset; 5370 }, set: function(t3) { 5371 this.ctx.lineDashOffset = t3, T2.call(this); 5372 } }), Object.defineProperty(this, "lineDash", { get: function() { 5373 return this.ctx.lineDash; 5374 }, set: function(t3) { 5375 this.ctx.lineDash = t3, T2.call(this); 5376 } }), Object.defineProperty(this, "ignoreClearRect", { get: function() { 5377 return this.ctx.ignoreClearRect; 5378 }, set: function(t3) { 5379 this.ctx.ignoreClearRect = Boolean(t3); 5380 } }); 5381 }; 5382 p2.prototype.setLineDash = function(t2) { 5383 this.lineDash = t2; 5384 }, p2.prototype.getLineDash = function() { 5385 return this.lineDash.length % 2 ? this.lineDash.concat(this.lineDash) : this.lineDash.slice(); 5386 }, p2.prototype.fill = function() { 5387 x2.call(this, "fill", false); 5388 }, p2.prototype.stroke = function() { 5389 x2.call(this, "stroke", false); 5390 }, p2.prototype.beginPath = function() { 5391 this.path = [{ type: "begin" }]; 5392 }, p2.prototype.moveTo = function(t2, e2) { 5393 if (isNaN(t2) || isNaN(e2)) throw o.error("jsPDF.context2d.moveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.moveTo"); 5394 var r2 = this.ctx.transform.applyToPoint(new u2(t2, e2)); 5395 this.path.push({ type: "mt", x: r2.x, y: r2.y }), this.ctx.lastPoint = new u2(t2, e2); 5396 }, p2.prototype.closePath = function() { 5397 var e2 = new u2(0, 0), r2 = 0; 5398 for (r2 = this.path.length - 1; -1 !== r2; r2--) if ("begin" === this.path[r2].type && "object" === _typeof(this.path[r2 + 1]) && "number" == typeof this.path[r2 + 1].x) { 5399 e2 = new u2(this.path[r2 + 1].x, this.path[r2 + 1].y); 5400 break; 5401 } 5402 this.path.push({ type: "close" }), this.ctx.lastPoint = new u2(e2.x, e2.y); 5403 }, p2.prototype.lineTo = function(t2, e2) { 5404 if (isNaN(t2) || isNaN(e2)) throw o.error("jsPDF.context2d.lineTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.lineTo"); 5405 var r2 = this.ctx.transform.applyToPoint(new u2(t2, e2)); 5406 this.path.push({ type: "lt", x: r2.x, y: r2.y }), this.ctx.lastPoint = new u2(r2.x, r2.y); 5407 }, p2.prototype.clip = function() { 5408 this.ctx.clip_path = JSON.parse(JSON.stringify(this.path)), x2.call(this, null, true); 5409 }, p2.prototype.quadraticCurveTo = function(t2, e2, r2, n2) { 5410 if (isNaN(r2) || isNaN(n2) || isNaN(t2) || isNaN(e2)) throw o.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo"); 5411 var i3 = this.ctx.transform.applyToPoint(new u2(r2, n2)), a3 = this.ctx.transform.applyToPoint(new u2(t2, e2)); 5412 this.path.push({ type: "qct", x1: a3.x, y1: a3.y, x: i3.x, y: i3.y }), this.ctx.lastPoint = new u2(i3.x, i3.y); 5413 }, p2.prototype.bezierCurveTo = function(t2, e2, r2, n2, i3, a3) { 5414 if (isNaN(i3) || isNaN(a3) || isNaN(t2) || isNaN(e2) || isNaN(r2) || isNaN(n2)) throw o.error("jsPDF.context2d.bezierCurveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo"); 5415 var s3 = this.ctx.transform.applyToPoint(new u2(i3, a3)), c3 = this.ctx.transform.applyToPoint(new u2(t2, e2)), l3 = this.ctx.transform.applyToPoint(new u2(r2, n2)); 5416 this.path.push({ type: "bct", x1: c3.x, y1: c3.y, x2: l3.x, y2: l3.y, x: s3.x, y: s3.y }), this.ctx.lastPoint = new u2(s3.x, s3.y); 5417 }, p2.prototype.arc = function(t2, e2, r2, n2, i3, a3) { 5418 if (isNaN(t2) || isNaN(e2) || isNaN(r2) || isNaN(n2) || isNaN(i3)) throw o.error("jsPDF.context2d.arc: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.arc"); 5419 if (a3 = Boolean(a3), !this.ctx.transform.isIdentity) { 5420 var s3 = this.ctx.transform.applyToPoint(new u2(t2, e2)); 5421 t2 = s3.x, e2 = s3.y; 5422 var c3 = this.ctx.transform.applyToPoint(new u2(0, r2)), l3 = this.ctx.transform.applyToPoint(new u2(0, 0)); 5423 r2 = Math.sqrt(Math.pow(c3.x - l3.x, 2) + Math.pow(c3.y - l3.y, 2)); 5424 } 5425 Math.abs(i3 - n2) >= 2 * Math.PI && (n2 = 0, i3 = 2 * Math.PI), this.path.push({ type: "arc", x: t2, y: e2, radius: r2, startAngle: n2, endAngle: i3, counterclockwise: a3 }); 5426 }, p2.prototype.arcTo = function(t2, e2, r2, n2, i3) { 5427 throw new Error("arcTo not implemented."); 5428 }, p2.prototype.rect = function(t2, e2, r2, n2) { 5429 if (isNaN(t2) || isNaN(e2) || isNaN(r2) || isNaN(n2)) throw o.error("jsPDF.context2d.rect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.rect"); 5430 this.moveTo(t2, e2), this.lineTo(t2 + r2, e2), this.lineTo(t2 + r2, e2 + n2), this.lineTo(t2, e2 + n2), this.lineTo(t2, e2), this.lineTo(t2 + r2, e2), this.lineTo(t2, e2); 5431 }, p2.prototype.fillRect = function(t2, e2, r2, n2) { 5432 if (isNaN(t2) || isNaN(e2) || isNaN(r2) || isNaN(n2)) throw o.error("jsPDF.context2d.fillRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.fillRect"); 5433 if (!m2.call(this)) { 5434 var i3 = {}; 5435 "butt" !== this.lineCap && (i3.lineCap = this.lineCap, this.lineCap = "butt"), "miter" !== this.lineJoin && (i3.lineJoin = this.lineJoin, this.lineJoin = "miter"), this.beginPath(), this.rect(t2, e2, r2, n2), this.fill(), i3.hasOwnProperty("lineCap") && (this.lineCap = i3.lineCap), i3.hasOwnProperty("lineJoin") && (this.lineJoin = i3.lineJoin); 5436 } 5437 }, p2.prototype.strokeRect = function(t2, e2, r2, n2) { 5438 if (isNaN(t2) || isNaN(e2) || isNaN(r2) || isNaN(n2)) throw o.error("jsPDF.context2d.strokeRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.strokeRect"); 5439 v2.call(this) || (this.beginPath(), this.rect(t2, e2, r2, n2), this.stroke()); 5440 }, p2.prototype.clearRect = function(t2, e2, r2, n2) { 5441 if (isNaN(t2) || isNaN(e2) || isNaN(r2) || isNaN(n2)) throw o.error("jsPDF.context2d.clearRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.clearRect"); 5442 this.ignoreClearRect || (this.fillStyle = "#ffffff", this.fillRect(t2, e2, r2, n2)); 5443 }, p2.prototype.save = function(t2) { 5444 t2 = "boolean" != typeof t2 || t2; 5445 for (var e2 = this.pdf.internal.getCurrentPageInfo().pageNumber, r2 = 0; r2 < this.pdf.internal.getNumberOfPages(); r2++) this.pdf.setPage(r2 + 1), this.pdf.internal.out("q"); 5446 if (this.pdf.setPage(e2), t2) { 5447 this.ctx.fontSize = this.pdf.internal.getFontSize(); 5448 var n2 = new d2(this.ctx); 5449 this.ctxStack.push(this.ctx), this.ctx = n2; 5450 } 5451 }, p2.prototype.restore = function(t2) { 5452 t2 = "boolean" != typeof t2 || t2; 5453 for (var e2 = this.pdf.internal.getCurrentPageInfo().pageNumber, r2 = 0; r2 < this.pdf.internal.getNumberOfPages(); r2++) this.pdf.setPage(r2 + 1), this.pdf.internal.out("Q"); 5454 this.pdf.setPage(e2), t2 && 0 !== this.ctxStack.length && (this.ctx = this.ctxStack.pop(), this.fillStyle = this.ctx.fillStyle, this.strokeStyle = this.ctx.strokeStyle, this.font = this.ctx.font, this.lineCap = this.ctx.lineCap, this.lineWidth = this.ctx.lineWidth, this.lineJoin = this.ctx.lineJoin, this.lineDash = this.ctx.lineDash, this.lineDashOffset = this.ctx.lineDashOffset); 5455 }, p2.prototype.toDataURL = function() { 5456 throw new Error("toDataUrl not implemented."); 5457 }; 5458 var g2 = function(t2) { 5459 var e2, r2, n2, i3; 5460 if (true === t2.isCanvasGradient && (t2 = t2.getColor()), !t2) return { r: 0, g: 0, b: 0, a: 0, style: t2 }; 5461 if (/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t2)) e2 = 0, r2 = 0, n2 = 0, i3 = 0; 5462 else { 5463 var a3 = /rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t2); 5464 if (null !== a3) e2 = parseInt(a3[1]), r2 = parseInt(a3[2]), n2 = parseInt(a3[3]), i3 = 1; 5465 else if (null !== (a3 = /rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t2))) e2 = parseInt(a3[1]), r2 = parseInt(a3[2]), n2 = parseInt(a3[3]), i3 = parseFloat(a3[4]); 5466 else { 5467 if (i3 = 1, "string" == typeof t2 && "#" !== t2.charAt(0)) { 5468 var o2 = new h(t2); 5469 t2 = o2.ok ? o2.toHex() : "#000000"; 5470 } 5471 4 === t2.length ? (e2 = t2.substring(1, 2), e2 += e2, r2 = t2.substring(2, 3), r2 += r2, n2 = t2.substring(3, 4), n2 += n2) : (e2 = t2.substring(1, 3), r2 = t2.substring(3, 5), n2 = t2.substring(5, 7)), e2 = parseInt(e2, 16), r2 = parseInt(r2, 16), n2 = parseInt(n2, 16); 5472 } 5473 } 5474 return { r: e2, g: r2, b: n2, a: i3, style: t2 }; 5475 }, m2 = function() { 5476 return this.ctx.isFillTransparent || 0 == this.globalAlpha; 5477 }, v2 = function() { 5478 return Boolean(this.ctx.isStrokeTransparent || 0 == this.globalAlpha); 5479 }; 5480 p2.prototype.fillText = function(t2, e2, r2, n2) { 5481 if (isNaN(e2) || isNaN(r2) || "string" != typeof t2) throw o.error("jsPDF.context2d.fillText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.fillText"); 5482 if (n2 = isNaN(n2) ? void 0 : n2, !m2.call(this)) { 5483 var i3 = E2(this.ctx.transform.rotation), a3 = this.ctx.transform.scaleX; 5484
vendor: 26,822 bytes, lines 5484-5913
5484C2.call(this, { text: t2, x: e2, y: r2, scale: a3, angle: i3, align: this.textAlign, maxWidth: n2 }); 5485 } 5486 }, p2.prototype.strokeText = function(t2, e2, r2, n2) { 5487 if (isNaN(e2) || isNaN(r2) || "string" != typeof t2) throw o.error("jsPDF.context2d.strokeText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.strokeText"); 5488 if (!v2.call(this)) { 5489 n2 = isNaN(n2) ? void 0 : n2; 5490 var i3 = E2(this.ctx.transform.rotation), a3 = this.ctx.transform.scaleX; 5491 C2.call(this, { text: t2, x: e2, y: r2, scale: a3, renderingMode: "stroke", angle: i3, align: this.textAlign, maxWidth: n2 }); 5492 } 5493 }, p2.prototype.measureText = function(t2) { 5494 if ("string" != typeof t2) throw o.error("jsPDF.context2d.measureText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.measureText"); 5495 var e2 = this.pdf, r2 = this.pdf.internal.scaleFactor, n2 = e2.internal.getFontSize(), i3 = e2.getStringUnitWidth(t2) * n2 / e2.internal.scaleFactor; 5496 return new function(t3) { 5497 var e3 = (t3 = t3 || {}).width || 0; 5498 return Object.defineProperty(this, "width", { get: function() { 5499 return e3; 5500 } }), this; 5501 }({ width: i3 *= Math.round(96 * r2 / 72 * 1e4) / 1e4 }); 5502 }, p2.prototype.scale = function(t2, e2) { 5503 if (isNaN(t2) || isNaN(e2)) throw o.error("jsPDF.context2d.scale: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.scale"); 5504 var r2 = new l2(t2, 0, 0, e2, 0, 0); 5505 this.ctx.transform = this.ctx.transform.multiply(r2); 5506 }, p2.prototype.rotate = function(t2) { 5507 if (isNaN(t2)) throw o.error("jsPDF.context2d.rotate: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.rotate"); 5508 var e2 = new l2(Math.cos(t2), Math.sin(t2), -Math.sin(t2), Math.cos(t2), 0, 0); 5509 this.ctx.transform = this.ctx.transform.multiply(e2); 5510 }, p2.prototype.translate = function(t2, e2) { 5511 if (isNaN(t2) || isNaN(e2)) throw o.error("jsPDF.context2d.translate: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.translate"); 5512 var r2 = new l2(1, 0, 0, 1, t2, e2); 5513 this.ctx.transform = this.ctx.transform.multiply(r2); 5514 }, p2.prototype.transform = function(t2, e2, r2, n2, i3, a3) { 5515 if (isNaN(t2) || isNaN(e2) || isNaN(r2) || isNaN(n2) || isNaN(i3) || isNaN(a3)) throw o.error("jsPDF.context2d.transform: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.transform"); 5516 var s3 = new l2(t2, e2, r2, n2, i3, a3); 5517 this.ctx.transform = this.ctx.transform.multiply(s3); 5518 }, p2.prototype.setTransform = function(t2, e2, r2, n2, i3, a3) { 5519 t2 = isNaN(t2) ? 1 : t2, e2 = isNaN(e2) ? 0 : e2, r2 = isNaN(r2) ? 0 : r2, n2 = isNaN(n2) ? 1 : n2, i3 = isNaN(i3) ? 0 : i3, a3 = isNaN(a3) ? 0 : a3, this.ctx.transform = new l2(t2, e2, r2, n2, i3, a3); 5520 }; 5521 var b2 = function() { 5522 return this.margin[0] > 0 || this.margin[1] > 0 || this.margin[2] > 0 || this.margin[3] > 0; 5523 }; 5524 p2.prototype.drawImage = function(t2, e2, r2, n2, i3, a3, o2, s3, u3) { 5525 var h2 = this.pdf.getImageProperties(t2), f3 = 1, d3 = 1, p3 = 1, g3 = 1; 5526 void 0 !== n2 && void 0 !== s3 && (p3 = s3 / n2, g3 = u3 / i3, f3 = h2.width / n2 * s3 / n2, d3 = h2.height / i3 * u3 / i3), void 0 === a3 && (a3 = e2, o2 = r2, e2 = 0, r2 = 0), void 0 !== n2 && void 0 === s3 && (s3 = n2, u3 = i3), void 0 === n2 && void 0 === s3 && (s3 = h2.width, u3 = h2.height); 5527 var m3 = this.ctx.transform.decompose(), v3 = E2(m3.rotate.shx), w3 = new l2(), x3 = (w3 = (w3 = (w3 = w3.multiply(m3.translate)).multiply(m3.skew)).multiply(m3.scale)).applyToRectangle(new c2(a3 - e2 * p3, o2 - r2 * g3, n2 * f3, i3 * d3)); 5528 if (this.autoPaging) { 5529 for (var S3, _3 = y2.call(this, x3), P3 = [], k3 = 0; k3 < _3.length; k3 += 1) -1 === P3.indexOf(_3[k3]) && P3.push(_3[k3]); 5530 L2(P3); 5531 for (var F3 = P3[0], I3 = P3[P3.length - 1], C3 = F3; C3 < I3 + 1; C3++) { 5532 this.pdf.setPage(C3); 5533 var j3 = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1], O3 = 1 === C3 ? this.posY + this.margin[0] : this.margin[0], B3 = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2], M3 = this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2], q3 = 1 === C3 ? 0 : B3 + (C3 - 2) * M3; 5534 if (0 !== this.ctx.clip_path.length) { 5535 var R3 = this.path; 5536 S3 = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = N2(S3, this.posX + this.margin[3], -q3 + O3 + this.ctx.prevPageLastElemOffset), A2.call(this, "fill", true), this.path = R3; 5537 } 5538 var D3 = JSON.parse(JSON.stringify(x3)); 5539 D3 = N2([D3], this.posX + this.margin[3], -q3 + O3 + this.ctx.prevPageLastElemOffset)[0]; 5540 var T3 = (C3 > F3 || C3 < I3) && b2.call(this); 5541 T3 && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], j3, M3, null).clip().discardPath()), this.pdf.addImage(t2, "JPEG", D3.x, D3.y, D3.w, D3.h, null, null, v3), T3 && this.pdf.restoreGraphicsState(); 5542 } 5543 } else this.pdf.addImage(t2, "JPEG", x3.x, x3.y, x3.w, x3.h, null, null, v3); 5544 }; 5545 var y2 = function(t2, e2, r2) { 5546 var n2 = []; 5547 e2 = e2 || this.pdf.internal.pageSize.width, r2 = r2 || this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2]; 5548 var i3 = this.posY + this.ctx.prevPageLastElemOffset; 5549 switch (t2.type) { 5550 default: 5551 case "mt": 5552 case "lt": 5553 n2.push(Math.floor((t2.y + i3) / r2) + 1); 5554 break; 5555 case "arc": 5556 n2.push(Math.floor((t2.y + i3 - t2.radius) / r2) + 1), n2.push(Math.floor((t2.y + i3 + t2.radius) / r2) + 1); 5557 break; 5558 case "qct": 5559 var a3 = R2(this.ctx.lastPoint.x, this.ctx.lastPoint.y, t2.x1, t2.y1, t2.x, t2.y); 5560 n2.push(Math.floor((a3.y + i3) / r2) + 1), n2.push(Math.floor((a3.y + a3.h + i3) / r2) + 1); 5561 break; 5562 case "bct": 5563 var o2 = D2(this.ctx.lastPoint.x, this.ctx.lastPoint.y, t2.x1, t2.y1, t2.x2, t2.y2, t2.x, t2.y); 5564 n2.push(Math.floor((o2.y + i3) / r2) + 1), n2.push(Math.floor((o2.y + o2.h + i3) / r2) + 1); 5565 break; 5566 case "rect": 5567 n2.push(Math.floor((t2.y + i3) / r2) + 1), n2.push(Math.floor((t2.y + t2.h + i3) / r2) + 1); 5568 } 5569 for (var s3 = 0; s3 < n2.length; s3 += 1) for (; this.pdf.internal.getNumberOfPages() < n2[s3]; ) w2.call(this); 5570 return n2; 5571 }, w2 = function() { 5572 var t2 = this.fillStyle, e2 = this.strokeStyle, r2 = this.font, n2 = this.lineCap, i3 = this.lineWidth, a3 = this.lineJoin; 5573 this.pdf.addPage(), this.fillStyle = t2, this.strokeStyle = e2, this.font = r2, this.lineCap = n2, this.lineWidth = i3, this.lineJoin = a3; 5574 }, N2 = function(t2, e2, r2) { 5575 for (var n2 = 0; n2 < t2.length; n2++) switch (t2[n2].type) { 5576 case "bct": 5577 t2[n2].x2 += e2, t2[n2].y2 += r2; 5578 case "qct": 5579 t2[n2].x1 += e2, t2[n2].y1 += r2; 5580 default: 5581 t2[n2].x += e2, t2[n2].y += r2; 5582 } 5583 return t2; 5584 }, L2 = function(t2) { 5585 return t2.sort(function(t3, e2) { 5586 return t3 - e2; 5587 }); 5588 }, x2 = function(t2, e2) { 5589 var r2 = this.fillStyle, n2 = this.strokeStyle, i3 = this.lineCap, a3 = this.lineWidth, o2 = Math.abs(a3 * this.ctx.transform.scaleX), s3 = this.lineJoin; 5590 if (this.autoPaging) { 5591 for (var u3, c3, l3 = JSON.parse(JSON.stringify(this.path)), h2 = JSON.parse(JSON.stringify(this.path)), f3 = [], d3 = 0; d3 < h2.length; d3++) if (void 0 !== h2[d3].x) for (var p3 = y2.call(this, h2[d3]), g3 = 0; g3 < p3.length; g3 += 1) -1 === f3.indexOf(p3[g3]) && f3.push(p3[g3]); 5592 for (var m3 = 0; m3 < f3.length; m3++) for (; this.pdf.internal.getNumberOfPages() < f3[m3]; ) w2.call(this); 5593 L2(f3); 5594 for (var v3 = f3[0], x3 = f3[f3.length - 1], S3 = v3; S3 < x3 + 1; S3++) { 5595 this.pdf.setPage(S3), this.fillStyle = r2, this.strokeStyle = n2, this.lineCap = i3, this.lineWidth = o2, this.lineJoin = s3; 5596 var _3 = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1], P3 = 1 === S3 ? this.posY + this.margin[0] : this.margin[0], k3 = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2], F3 = this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2], I3 = 1 === S3 ? 0 : k3 + (S3 - 2) * F3; 5597 if (0 !== this.ctx.clip_path.length) { 5598 var C3 = this.path; 5599 u3 = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = N2(u3, this.posX + this.margin[3], -I3 + P3 + this.ctx.prevPageLastElemOffset), A2.call(this, t2, true), this.path = C3; 5600 } 5601 if (c3 = JSON.parse(JSON.stringify(l3)), this.path = N2(c3, this.posX + this.margin[3], -I3 + P3 + this.ctx.prevPageLastElemOffset), false === e2 || 0 === S3) { 5602 var j3 = (S3 > v3 || S3 < x3) && b2.call(this); 5603 j3 && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], _3, F3, null).clip().discardPath()), A2.call(this, t2, e2), j3 && this.pdf.restoreGraphicsState(); 5604 } 5605 this.lineWidth = a3; 5606 } 5607 this.path = l3; 5608 } else this.lineWidth = o2, A2.call(this, t2, e2), this.lineWidth = a3; 5609 }, A2 = function(t2, e2) { 5610 if (("stroke" !== t2 || e2 || !v2.call(this)) && ("stroke" === t2 || e2 || !m2.call(this))) { 5611 for (var r2, n2, i3 = [], a3 = this.path, o2 = 0; o2 < a3.length; o2++) { 5612 var s3 = a3[o2]; 5613 switch (s3.type) { 5614 case "begin": 5615 i3.push({ begin: true }); 5616 break; 5617 case "close": 5618 i3.push({ close: true }); 5619 break; 5620 case "mt": 5621 i3.push({ start: s3, deltas: [], abs: [] }); 5622 break; 5623 case "lt": 5624 var u3 = i3.length; 5625 if (a3[o2 - 1] && !isNaN(a3[o2 - 1].x) && (r2 = [s3.x - a3[o2 - 1].x, s3.y - a3[o2 - 1].y], u3 > 0)) { 5626 for (; u3 >= 0; u3--) if (true !== i3[u3 - 1].close && true !== i3[u3 - 1].begin) { 5627 i3[u3 - 1].deltas.push(r2), i3[u3 - 1].abs.push(s3); 5628 break; 5629 } 5630 } 5631 break; 5632 case "bct": 5633 r2 = [s3.x1 - a3[o2 - 1].x, s3.y1 - a3[o2 - 1].y, s3.x2 - a3[o2 - 1].x, s3.y2 - a3[o2 - 1].y, s3.x - a3[o2 - 1].x, s3.y - a3[o2 - 1].y], i3[i3.length - 1].deltas.push(r2); 5634 break; 5635 case "qct": 5636 var c3 = a3[o2 - 1].x + 2 / 3 * (s3.x1 - a3[o2 - 1].x), l3 = a3[o2 - 1].y + 2 / 3 * (s3.y1 - a3[o2 - 1].y), h2 = s3.x + 2 / 3 * (s3.x1 - s3.x), f3 = s3.y + 2 / 3 * (s3.y1 - s3.y), d3 = s3.x, p3 = s3.y; 5637 r2 = [c3 - a3[o2 - 1].x, l3 - a3[o2 - 1].y, h2 - a3[o2 - 1].x, f3 - a3[o2 - 1].y, d3 - a3[o2 - 1].x, p3 - a3[o2 - 1].y], i3[i3.length - 1].deltas.push(r2); 5638 break; 5639 case "arc": 5640 i3.push({ deltas: [], abs: [], arc: true }), Array.isArray(i3[i3.length - 1].abs) && i3[i3.length - 1].abs.push(s3); 5641 } 5642 } 5643 n2 = e2 ? null : "stroke" === t2 ? "stroke" : "fill"; 5644 for (var g3 = false, b3 = 0; b3 < i3.length; b3++) if (i3[b3].arc) for (var y3 = i3[b3].abs, w3 = 0; w3 < y3.length; w3++) { 5645 var N3 = y3[w3]; 5646 "arc" === N3.type ? P2.call(this, N3.x, N3.y, N3.radius, N3.startAngle, N3.endAngle, N3.counterclockwise, void 0, e2, !g3) : j2.call(this, N3.x, N3.y), g3 = true; 5647 } 5648 else if (true === i3[b3].close) this.pdf.internal.out("h"), g3 = false; 5649 else if (true !== i3[b3].begin) { 5650 var L3 = i3[b3].start.x, x3 = i3[b3].start.y; 5651 O2.call(this, i3[b3].deltas, L3, x3), g3 = true; 5652 } 5653 n2 && k2.call(this, n2), e2 && F2.call(this); 5654 } 5655 }, S2 = function(t2) { 5656 var e2 = this.pdf.internal.getFontSize() / this.pdf.internal.scaleFactor, r2 = e2 * (this.pdf.internal.getLineHeightFactor() - 1); 5657 switch (this.ctx.textBaseline) { 5658 case "bottom": 5659 return t2 - r2; 5660 case "top": 5661 return t2 + e2 - r2; 5662 case "hanging": 5663 return t2 + e2 - 2 * r2; 5664 case "middle": 5665 return t2 + e2 / 2 - r2; 5666 default: 5667 return t2; 5668 } 5669 }, _2 = function(t2) { 5670 return t2 + this.pdf.internal.getFontSize() / this.pdf.internal.scaleFactor * (this.pdf.internal.getLineHeightFactor() - 1); 5671 }; 5672 p2.prototype.createLinearGradient = function() { 5673 var t2 = function() { 5674 }; 5675 return t2.colorStops = [], t2.addColorStop = function(t3, e2) { 5676 this.colorStops.push([t3, e2]); 5677 }, t2.getColor = function() { 5678 return 0 === this.colorStops.length ? "#000000" : this.colorStops[0][1]; 5679 }, t2.isCanvasGradient = true, t2; 5680 }, p2.prototype.createPattern = function() { 5681 return this.createLinearGradient(); 5682 }, p2.prototype.createRadialGradient = function() { 5683 return this.createLinearGradient(); 5684 }; 5685 var P2 = function(t2, e2, r2, n2, i3, a3, o2, s3, u3) { 5686 for (var c3 = M2.call(this, r2, n2, i3, a3), l3 = 0; l3 < c3.length; l3++) { 5687 var h2 = c3[l3]; 5688 0 === l3 && (u3 ? I2.call(this, h2.x1 + t2, h2.y1 + e2) : j2.call(this, h2.x1 + t2, h2.y1 + e2)), B2.call(this, t2, e2, h2.x2, h2.y2, h2.x3, h2.y3, h2.x4, h2.y4); 5689 } 5690 s3 ? F2.call(this) : k2.call(this, o2); 5691 }, k2 = function(t2) { 5692 switch (t2) { 5693 case "stroke": 5694 this.pdf.internal.out("S"); 5695 break; 5696 case "fill": 5697 this.pdf.internal.out("f"); 5698 } 5699 }, F2 = function() { 5700 this.pdf.clip(), this.pdf.discardPath(); 5701 }, I2 = function(t2, e2) { 5702 this.pdf.internal.out(n(t2) + " " + i2(e2) + " m"); 5703 }, C2 = function(t2) { 5704 var e2; 5705 switch (t2.align) { 5706 case "right": 5707 case "end": 5708 e2 = "right"; 5709 break; 5710 case "center": 5711 e2 = "center"; 5712 break; 5713 default: 5714 e2 = "left"; 5715 } 5716 var r2, n2, i3, a3 = this.pdf.getTextDimensions(t2.text), o2 = S2.call(this, t2.y), s3 = _2.call(this, o2) - a3.h, h2 = this.ctx.transform.applyToPoint(new u2(t2.x, o2)); 5717 if (this.autoPaging) { 5718 var f3 = this.ctx.transform.decompose(), d3 = new l2(); 5719 d3 = (d3 = (d3 = d3.multiply(f3.translate)).multiply(f3.skew)).multiply(f3.scale); 5720 for (var p3 = this.ctx.transform.applyToRectangle(new c2(t2.x, o2, a3.w, a3.h)), g3 = d3.applyToRectangle(new c2(t2.x, s3, a3.w, a3.h)), m3 = y2.call(this, g3), v3 = [], w3 = 0; w3 < m3.length; w3 += 1) -1 === v3.indexOf(m3[w3]) && v3.push(m3[w3]); 5721 L2(v3); 5722 for (var x3 = v3[0], P3 = v3[v3.length - 1], k3 = x3; k3 < P3 + 1; k3++) { 5723 this.pdf.setPage(k3); 5724 var F3 = 1 === k3 ? this.posY + this.margin[0] : this.margin[0], I3 = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2], C3 = this.pdf.internal.pageSize.height - this.margin[2], j3 = C3 - this.margin[0], O3 = this.pdf.internal.pageSize.width - this.margin[1], B3 = O3 - this.margin[3], M3 = 1 === k3 ? 0 : I3 + (k3 - 2) * j3; 5725 if (0 !== this.ctx.clip_path.length) { 5726 var q3 = this.path; 5727 r2 = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = N2(r2, this.posX + this.margin[3], -1 * M3 + F3), A2.call(this, "fill", true), this.path = q3; 5728 } 5729 var E3 = N2([JSON.parse(JSON.stringify(g3))], this.posX + this.margin[3], -M3 + F3 + this.ctx.prevPageLastElemOffset)[0]; 5730 t2.scale >= 0.01 && (n2 = this.pdf.internal.getFontSize(), this.pdf.setFontSize(n2 * t2.scale), i3 = this.lineWidth, this.lineWidth = i3 * t2.scale); 5731 var R3 = "text" !== this.autoPaging; 5732 if (R3 || E3.y + E3.h <= C3) { 5733 if (R3 || E3.y >= F3 && E3.x <= O3) { 5734 var D3 = R3 ? t2.text : this.pdf.splitTextToSize(t2.text, t2.maxWidth || O3 - E3.x)[0], T3 = N2([JSON.parse(JSON.stringify(p3))], this.posX + this.margin[3], -M3 + F3 + this.ctx.prevPageLastElemOffset)[0], z2 = R3 && (k3 > x3 || k3 < P3) && b2.call(this); 5735 z2 && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], B3, j3, null).clip().discardPath()), this.pdf.text(D3, T3.x, T3.y, { angle: t2.angle, align: e2, renderingMode: t2.renderingMode }), z2 && this.pdf.restoreGraphicsState(); 5736 } 5737 } else E3.y < C3 && (this.ctx.prevPageLastElemOffset += C3 - E3.y); 5738 t2.scale >= 0.01 && (this.pdf.setFontSize(n2), this.lineWidth = i3); 5739 } 5740 } else t2.scale >= 0.01 && (n2 = this.pdf.internal.getFontSize(), this.pdf.setFontSize(n2 * t2.scale), i3 = this.lineWidth, this.lineWidth = i3 * t2.scale), this.pdf.text(t2.text, h2.x + this.posX, h2.y + this.posY, { angle: t2.angle, align: e2, renderingMode: t2.renderingMode, maxWidth: t2.maxWidth }), t2.scale >= 0.01 && (this.pdf.setFontSize(n2), this.lineWidth = i3); 5741 }, j2 = function(t2, e2, r2, a3) { 5742 r2 = r2 || 0, a3 = a3 || 0, this.pdf.internal.out(n(t2 + r2) + " " + i2(e2 + a3) + " l"); 5743 }, O2 = function(t2, e2, r2) { 5744 return this.pdf.lines(t2, e2, r2, null, null); 5745 }, B2 = function(t2, e2, n2, i3, o2, u3, c3, l3) { 5746 this.pdf.internal.out([r(a2(n2 + t2)), r(s2(i3 + e2)), r(a2(o2 + t2)), r(s2(u3 + e2)), r(a2(c3 + t2)), r(s2(l3 + e2)), "c"].join(" ")); 5747 }, M2 = function(t2, e2, r2, n2) { 5748 for (var i3 = 2 * Math.PI, a3 = Math.PI / 2; e2 > r2; ) e2 -= i3; 5749 var o2 = Math.abs(r2 - e2); 5750 o2 < i3 && n2 && (o2 = i3 - o2); 5751 for (var s3 = [], u3 = n2 ? -1 : 1, c3 = e2; o2 > 1e-5; ) { 5752 var l3 = c3 + u3 * Math.min(o2, a3); 5753 s3.push(q2.call(this, t2, c3, l3)), o2 -= Math.abs(l3 - c3), c3 = l3; 5754 } 5755 return s3; 5756 }, q2 = function(t2, e2, r2) { 5757 var n2 = (r2 - e2) / 2, i3 = t2 * Math.cos(n2), a3 = t2 * Math.sin(n2), o2 = i3, s3 = -a3, u3 = o2 * o2 + s3 * s3, c3 = u3 + o2 * i3 + s3 * a3, l3 = 4 / 3 * (Math.sqrt(2 * u3 * c3) - c3) / (o2 * a3 - s3 * i3), h2 = o2 - l3 * s3, f3 = s3 + l3 * o2, d3 = h2, p3 = -f3, g3 = n2 + e2, m3 = Math.cos(g3), v3 = Math.sin(g3); 5758 return { x1: t2 * Math.cos(e2), y1: t2 * Math.sin(e2), x2: h2 * m3 - f3 * v3, y2: h2 * v3 + f3 * m3, x3: d3 * m3 - p3 * v3, y3: d3 * v3 + p3 * m3, x4: t2 * Math.cos(r2), y4: t2 * Math.sin(r2) }; 5759 }, E2 = function(t2) { 5760 return 180 * t2 / Math.PI; 5761 }, R2 = function(t2, e2, r2, n2, i3, a3) { 5762 var o2 = t2 + 0.5 * (r2 - t2), s3 = e2 + 0.5 * (n2 - e2), u3 = i3 + 0.5 * (r2 - i3), l3 = a3 + 0.5 * (n2 - a3), h2 = Math.min(t2, i3, o2, u3), f3 = Math.max(t2, i3, o2, u3), d3 = Math.min(e2, a3, s3, l3), p3 = Math.max(e2, a3, s3, l3); 5763 return new c2(h2, d3, f3 - h2, p3 - d3); 5764 }, D2 = function(t2, e2, r2, n2, i3, a3, o2, s3) { 5765 var u3, l3, h2, f3, d3, p3, g3, m3, v3, b3, y3, w3, N3, L3, x3 = r2 - t2, A3 = n2 - e2, S3 = i3 - r2, _3 = a3 - n2, P3 = o2 - i3, k3 = s3 - a3; 5766 for (l3 = 0; l3 < 41; l3++) v3 = (g3 = (h2 = t2 + (u3 = l3 / 40) * x3) + u3 * ((d3 = r2 + u3 * S3) - h2)) + u3 * (d3 + u3 * (i3 + u3 * P3 - d3) - g3), b3 = (m3 = (f3 = e2 + u3 * A3) + u3 * ((p3 = n2 + u3 * _3) - f3)) + u3 * (p3 + u3 * (a3 + u3 * k3 - p3) - m3), 0 == l3 ? (y3 = v3, w3 = b3, N3 = v3, L3 = b3) : (y3 = Math.min(y3, v3), w3 = Math.min(w3, b3), N3 = Math.max(N3, v3), L3 = Math.max(L3, b3)); 5767 return new c2(Math.round(y3), Math.round(w3), Math.round(N3 - y3), Math.round(L3 - w3)); 5768 }, T2 = function() { 5769 if (this.prevLineDash || this.ctx.lineDash.length || this.ctx.lineDashOffset) { 5770 var t2, e2, r2 = (t2 = this.ctx.lineDash, e2 = this.ctx.lineDashOffset, JSON.stringify({ lineDash: t2, lineDashOffset: e2 })); 5771 this.prevLineDash !== r2 && (this.pdf.setLineDash(this.ctx.lineDash, this.ctx.lineDashOffset), this.prevLineDash = r2); 5772 } 5773 }; 5774}(E.API), /** 5775 * @license 5776 * jsPDF filters PlugIn 5777 * Copyright (c) 2014 Aras Abbasi 5778 * 5779 * Licensed under the MIT License. 5780 * http://opensource.org/licenses/mit-license 5781 */ 5782function(t2) { 5783 var r = function(t3) { 5784 var e, r2, n2, i3, a3, o3, s2, u2, c2, l2; 5785 for (r2 = [], n2 = 0, i3 = (t3 += e = "\0\0\0\0".slice(t3.length % 4 || 4)).length; i3 > n2; n2 += 4) 0 !== (a3 = (t3.charCodeAt(n2) << 24) + (t3.charCodeAt(n2 + 1) << 16) + (t3.charCodeAt(n2 + 2) << 8) + t3.charCodeAt(n2 + 3)) ? (o3 = (a3 = ((a3 = ((a3 = ((a3 = (a3 - (l2 = a3 % 85)) / 85) - (c2 = a3 % 85)) / 85) - (u2 = a3 % 85)) / 85) - (s2 = a3 % 85)) / 85) % 85, r2.push(o3 + 33, s2 + 33, u2 + 33, c2 + 33, l2 + 33)) : r2.push(122); 5786 return function(t4, e2) { 5787 for (var r3 = e2; r3 > 0; r3--) t4.pop(); 5788 }(r2, e.length), String.fromCharCode.apply(String, r2) + "~>"; 5789 }, n = function(t3) { 5790 var e, r2, n2, i3, a3, o3 = String, s2 = "length", u2 = 255, c2 = "charCodeAt", l2 = "slice", h2 = "replace"; 5791 for (t3[l2](-2), t3 = t3[l2](0, -2)[h2](/\s/g, "")[h2]("z", "!!!!!"), n2 = [], i3 = 0, a3 = (t3 += e = "uuuuu"[l2](t3[s2] % 5 || 5))[s2]; a3 > i3; i3 += 5) r2 = 52200625 * (t3[c2](i3) - 33) + 614125 * (t3[c2](i3 + 1) - 33) + 7225 * (t3[c2](i3 + 2) - 33) + 85 * (t3[c2](i3 + 3) - 33) + (t3[c2](i3 + 4) - 33), n2.push(u2 & r2 >> 24, u2 & r2 >> 16, u2 & r2 >> 8, u2 & r2); 5792 return function(t4, e2) { 5793 for (var r3 = e2; r3 > 0; r3--) t4.pop(); 5794 }(n2, e[s2]), o3.fromCharCode.apply(o3, n2); 5795 }, i2 = function(t3) { 5796 return t3.split("").map(function(t4) { 5797 return ("0" + t4.charCodeAt().toString(16)).slice(-2); 5798 }).join("") + ">"; 5799 }, a2 = function(t3) { 5800 var e = new RegExp(/^([0-9A-Fa-f]{2})+$/); 5801 if (-1 !== (t3 = t3.replace(/\s/g, "")).indexOf(">") && (t3 = t3.substr(0, t3.indexOf(">"))), t3.length % 2 && (t3 += "0"), false === e.test(t3)) return ""; 5802 for (var r2 = "", n2 = 0; n2 < t3.length; n2 += 2) r2 += String.fromCharCode("0x" + (t3[n2] + t3[n2 + 1])); 5803 return r2; 5804 }, o2 = function(t3) { 5805 for (var r2 = new Uint8Array(t3.length), n2 = t3.length; n2--; ) r2[n2] = t3.charCodeAt(n2); 5806 return (r2 = zlibSync(r2)).reduce(function(t4, e) { 5807 return t4 + String.fromCharCode(e); 5808 }, ""); 5809 }; 5810 t2.processDataByFilters = function(t3, e) { 5811 var s2 = 0, u2 = t3 || "", c2 = []; 5812 for ("string" == typeof (e = e || []) && (e = [e]), s2 = 0; s2 < e.length; s2 += 1) switch (e[s2]) { 5813 case "ASCII85Decode": 5814 case "/ASCII85Decode": 5815 u2 = n(u2), c2.push("/ASCII85Encode"); 5816 break; 5817 case "ASCII85Encode": 5818 case "/ASCII85Encode": 5819 u2 = r(u2), c2.push("/ASCII85Decode"); 5820 break; 5821 case "ASCIIHexDecode": 5822 case "/ASCIIHexDecode": 5823 u2 = a2(u2), c2.push("/ASCIIHexEncode"); 5824 break; 5825 case "ASCIIHexEncode": 5826 case "/ASCIIHexEncode": 5827 u2 = i2(u2), c2.push("/ASCIIHexDecode"); 5828 break; 5829 case "FlateEncode": 5830 case "/FlateEncode": 5831 u2 = o2(u2), c2.push("/FlateDecode"); 5832 break; 5833 default: 5834 throw new Error('The filter: "' + e[s2] + '" is not implemented'); 5835 } 5836 return { data: u2, reverseChain: c2.reverse().join(" ") }; 5837 }; 5838}(E.API), /** 5839 * @license 5840 * jsPDF fileloading PlugIn 5841 * Copyright (c) 2018 Aras Abbasi ([email protected]) 5842 * 5843 * Licensed under the MIT License. 5844 * http://opensource.org/licenses/mit-license 5845 */ 5846function(t2) { 5847 t2.loadFile = function(t3, e, r) { 5848 return function(t4, e2, r2) { 5849 e2 = false !== e2, r2 = "function" == typeof r2 ? r2 : function() { 5850 }; 5851 var n = void 0; 5852 try { 5853 n = function(t5, e3, r3) { 5854 var n2 = new XMLHttpRequest(), i2 = 0, a2 = function(t6) { 5855 var e4 = t6.length, r4 = [], n3 = String.fromCharCode; 5856 for (i2 = 0; i2 < e4; i2 += 1) r4.push(n3(255 & t6.charCodeAt(i2))); 5857 return r4.join(""); 5858 }; 5859 if (n2.open("GET", t5, !e3), n2.overrideMimeType("text/plain; charset=x-user-defined"), false === e3 && (n2.onload = function() { 5860 200 === n2.status ? r3(a2(this.responseText)) : r3(void 0); 5861 }), n2.send(null), e3 && 200 === n2.status) return a2(n2.responseText); 5862 }(t4, e2, r2); 5863 } catch (i2) { 5864 } 5865 return n; 5866 }(t3, e, r); 5867 }, t2.allowFsRead = void 0, t2.loadImageFile = t2.loadFile; 5868}(E.API), function(e) { 5869 function r() { 5870 return (i.html2canvas ? Promise.resolve(i.html2canvas) : __vitePreload(() => import("./vendor-dVNaLJx_.js").then((n2) => n2.gf), true ? __vite__mapDeps([0,1,2,3]) : void 0)).catch(function(t2) { 5871 return Promise.reject(new Error("Could not load html2canvas: " + t2)); 5872 }).then(function(t2) { 5873 return t2.default ? t2.default : t2; 5874 }); 5875 } 5876 function n() { 5877 return (i.DOMPurify ? Promise.resolve(i.DOMPurify) : __vitePreload(() => import("./vendor-dVNaLJx_.js").then((n2) => n2.ge), true ? __vite__mapDeps([0,1,2,3]) : void 0)).catch(function(t2) { 5878 return Promise.reject(new Error("Could not load dompurify: " + t2)); 5879 }).then(function(t2) { 5880 return t2.default ? t2.default : t2; 5881 }); 5882 } 5883 var a2 = function(e2) { 5884 var r2 = _typeof(e2); 5885 return "undefined" === r2 ? "undefined" : "string" === r2 || e2 instanceof String ? "string" : "number" === r2 || e2 instanceof Number ? "number" : "function" === r2 || e2 instanceof Function ? "function" : e2 && e2.constructor === Array ? "array" : e2 && 1 === e2.nodeType ? "element" : "object" === r2 ? "object" : "unknown"; 5886 }, o2 = function(t2, e2) { 5887 var r2 = document.createElement(t2); 5888 for (var n2 in e2.className && (r2.className = e2.className), e2.innerHTML && e2.dompurify && (r2.innerHTML = e2.dompurify.sanitize(e2.innerHTML)), e2.style) r2.style[n2] = e2.style[n2]; 5889 return r2; 5890 }, s2 = function t2(e2, r2) { 5891 for (var n2 = 3 === e2.nodeType ? document.createTextNode(e2.nodeValue) : e2.cloneNode(false), i2 = e2.firstChild; i2; i2 = i2.nextSibling) true !== r2 && 1 === i2.nodeType && "SCRIPT" === i2.nodeName || n2.appendChild(t2(i2, r2)); 5892 return 1 === e2.nodeType && ("CANVAS" === e2.nodeName ? (n2.width = e2.width, n2.height = e2.height, n2.getContext("2d").drawImage(e2, 0, 0)) : "TEXTAREA" !== e2.nodeName && "SELECT" !== e2.nodeName || (n2.value = e2.value), n2.addEventListener("load", function() { 5893 n2.scrollTop = e2.scrollTop, n2.scrollLeft = e2.scrollLeft; 5894 }, true)), n2; 5895 }, u2 = function t2(e2) { 5896 var r2 = Object.assign(t2.convert(Promise.resolve()), JSON.parse(JSON.stringify(t2.template))), n2 = t2.convert(Promise.resolve(), r2); 5897 return (n2 = n2.setProgress(1, t2, 1, [t2])).set(e2); 5898 }; 5899 (u2.prototype = Object.create(Promise.prototype)).constructor = u2, u2.convert = function(t2, e2) { 5900 return t2.__proto__ = e2 || u2.prototype, t2; 5901 }, u2.template = { prop: { src: null, container: null, overlay: null, canvas: null, img: null, pdf: null, pageSize: null, callback: function() { 5902 } }, progress: { val: 0, state: null, n: 0, stack: [] }, opt: { filename: "file.pdf", margin: [0, 0, 0, 0], enableLinks: true, x: 0, y: 0, html2canvas: {}, jsPDF: {}, backgroundColor: "transparent" } }, u2.prototype.from = function(t2, e2) { 5903 return this.then(function() { 5904 switch (e2 = e2 || function(t3) { 5905 switch (a2(t3)) { 5906 case "string": 5907 return "string"; 5908 case "element": 5909 return "canvas" === t3.nodeName.toLowerCase() ? "canvas" : "element"; 5910 default: 5911 return "unknown"; 5912 } 5913 }
vendor: 13,269 bytes, lines 5913-6165
5913(t2), e2) { 5914 case "string": 5915 return this.then(n).then(function(e3) { 5916 return this.set({ src: o2("div", { innerHTML: t2, dompurify: e3 }) }); 5917 }); 5918 case "element": 5919 return this.set({ src: t2 }); 5920 case "canvas": 5921 return this.set({ canvas: t2 }); 5922 case "img": 5923 return this.set({ img: t2 }); 5924 default: 5925 return this.error("Unknown source type."); 5926 } 5927 }); 5928 }, u2.prototype.to = function(t2) { 5929 switch (t2) { 5930 case "container": 5931 return this.toContainer(); 5932 case "canvas": 5933 return this.toCanvas(); 5934 case "img": 5935 return this.toImg(); 5936 case "pdf": 5937 return this.toPdf(); 5938 default: 5939 return this.error("Invalid target."); 5940 } 5941 }, u2.prototype.toContainer = function() { 5942 return this.thenList([function() { 5943 return this.prop.src || this.error("Cannot duplicate - no source HTML."); 5944 }, function() { 5945 return this.prop.pageSize || this.setPageSize(); 5946 }]).then(function() { 5947 var t2 = { position: "relative", display: "inline-block", width: ("number" != typeof this.opt.width || isNaN(this.opt.width) || "number" != typeof this.opt.windowWidth || isNaN(this.opt.windowWidth) ? Math.max(this.prop.src.clientWidth, this.prop.src.scrollWidth, this.prop.src.offsetWidth) : this.opt.windowWidth) + "px", left: 0, right: 0, top: 0, margin: "auto", backgroundColor: this.opt.backgroundColor }, e2 = s2(this.prop.src, this.opt.html2canvas.javascriptEnabled); 5948 "BODY" === e2.tagName && (t2.height = Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight) + "px"), this.prop.overlay = o2("div", { className: "html2pdf__overlay", style: { position: "fixed", overflow: "hidden", zIndex: 1e3, left: "-100000px", right: 0, bottom: 0, top: 0 } }), this.prop.container = o2("div", { className: "html2pdf__container", style: t2 }), this.prop.container.appendChild(e2), this.prop.container.firstChild.appendChild(o2("div", { style: { clear: "both", border: "0 none transparent", margin: 0, padding: 0, height: 0 } })), this.prop.container.style.float = "none", this.prop.overlay.appendChild(this.prop.container), document.body.appendChild(this.prop.overlay), this.prop.container.firstChild.style.position = "relative", this.prop.container.height = Math.max(this.prop.container.firstChild.clientHeight, this.prop.container.firstChild.scrollHeight, this.prop.container.firstChild.offsetHeight) + "px"; 5949 }); 5950 }, u2.prototype.toCanvas = function() { 5951 var t2 = [function() { 5952 return document.body.contains(this.prop.container) || this.toContainer(); 5953 }]; 5954 return this.thenList(t2).then(r).then(function(t3) { 5955 var e2 = Object.assign({}, this.opt.html2canvas); 5956 return delete e2.onrendered, t3(this.prop.container, e2); 5957 }).then(function(t3) { 5958 (this.opt.html2canvas.onrendered || function() { 5959 })(t3), this.prop.canvas = t3, document.body.removeChild(this.prop.overlay); 5960 }); 5961 }, u2.prototype.toContext2d = function() { 5962 var t2 = [function() { 5963 return document.body.contains(this.prop.container) || this.toContainer(); 5964 }]; 5965 return this.thenList(t2).then(r).then(function(t3) { 5966 var e2 = this.opt.jsPDF, r2 = this.opt.fontFaces, n2 = "number" != typeof this.opt.width || isNaN(this.opt.width) || "number" != typeof this.opt.windowWidth || isNaN(this.opt.windowWidth) ? 1 : this.opt.width / this.opt.windowWidth, i2 = Object.assign({ async: true, allowTaint: true, scale: n2, scrollX: this.opt.scrollX || 0, scrollY: this.opt.scrollY || 0, backgroundColor: "#ffffff", imageTimeout: 15e3, logging: true, proxy: null, removeContainer: true, foreignObjectRendering: false, useCORS: false }, this.opt.html2canvas); 5967 if (delete i2.onrendered, e2.context2d.autoPaging = void 0 === this.opt.autoPaging || this.opt.autoPaging, e2.context2d.posX = this.opt.x, e2.context2d.posY = this.opt.y, e2.context2d.margin = this.opt.margin, e2.context2d.fontFaces = r2, r2) for (var a3 = 0; a3 < r2.length; ++a3) { 5968 var o3 = r2[a3], s3 = o3.src.find(function(t4) { 5969 return "truetype" === t4.format; 5970 }); 5971 s3 && e2.addFont(s3.url, o3.ref.name, o3.ref.style); 5972 } 5973 return i2.windowHeight = i2.windowHeight || 0, i2.windowHeight = 0 == i2.windowHeight ? Math.max(this.prop.container.clientHeight, this.prop.container.scrollHeight, this.prop.container.offsetHeight) : i2.windowHeight, e2.context2d.save(true), t3(this.prop.container, i2); 5974 }).then(function(t3) { 5975 this.opt.jsPDF.context2d.restore(true), (this.opt.html2canvas.onrendered || function() { 5976 })(t3), this.prop.canvas = t3, document.body.removeChild(this.prop.overlay); 5977 }); 5978 }, u2.prototype.toImg = function() { 5979 return this.thenList([function() { 5980 return this.prop.canvas || this.toCanvas(); 5981 }]).then(function() { 5982 var t2 = this.prop.canvas.toDataURL("image/" + this.opt.image.type, this.opt.image.quality); 5983 this.prop.img = document.createElement("img"), this.prop.img.src = t2; 5984 }); 5985 }, u2.prototype.toPdf = function() { 5986 return this.thenList([function() { 5987 return this.toContext2d(); 5988 }]).then(function() { 5989 this.prop.pdf = this.prop.pdf || this.opt.jsPDF; 5990 }); 5991 }, u2.prototype.output = function(t2, e2, r2) { 5992 return "img" === (r2 = r2 || "pdf").toLowerCase() || "image" === r2.toLowerCase() ? this.outputImg(t2, e2) : this.outputPdf(t2, e2); 5993 }, u2.prototype.outputPdf = function(t2, e2) { 5994 return this.thenList([function() { 5995 return this.prop.pdf || this.toPdf(); 5996 }]).then(function() { 5997 return this.prop.pdf.output(t2, e2); 5998 }); 5999 }, u2.prototype.outputImg = function(t2) { 6000 return this.thenList([function() { 6001 return this.prop.img || this.toImg(); 6002 }]).then(function() { 6003 switch (t2) { 6004 case void 0: 6005 case "img": 6006 return this.prop.img; 6007 case "datauristring": 6008 case "dataurlstring": 6009 return this.prop.img.src; 6010 case "datauri": 6011 case "dataurl": 6012 return document.location.href = this.prop.img.src; 6013 default: 6014 throw 'Image output type "' + t2 + '" is not supported.'; 6015 } 6016 }); 6017 }, u2.prototype.save = function(t2) { 6018 return this.thenList([function() { 6019 return this.prop.pdf || this.toPdf(); 6020 }]).set(t2 ? { filename: t2 } : null).then(function() { 6021 this.prop.pdf.save(this.opt.filename); 6022 }); 6023 }, u2.prototype.doCallback = function() { 6024 return this.thenList([function() { 6025 return this.prop.pdf || this.toPdf(); 6026 }]).then(function() { 6027 this.prop.callback(this.prop.pdf); 6028 }); 6029 }, u2.prototype.set = function(t2) { 6030 if ("object" !== a2(t2)) return this; 6031 var e2 = Object.keys(t2 || {}).map(function(e3) { 6032 if (e3 in u2.template.prop) return function() { 6033 this.prop[e3] = t2[e3]; 6034 }; 6035 switch (e3) { 6036 case "margin": 6037 return this.setMargin.bind(this, t2.margin); 6038 case "jsPDF": 6039 return function() { 6040 return this.opt.jsPDF = t2.jsPDF, this.setPageSize(); 6041 }; 6042 case "pageSize": 6043 return this.setPageSize.bind(this, t2.pageSize); 6044 default: 6045 return function() { 6046 this.opt[e3] = t2[e3]; 6047 }; 6048 } 6049 }, this); 6050 return this.then(function() { 6051 return this.thenList(e2); 6052 }); 6053 }, u2.prototype.get = function(t2, e2) { 6054 return this.then(function() { 6055 var r2 = t2 in u2.template.prop ? this.prop[t2] : this.opt[t2]; 6056 return e2 ? e2(r2) : r2; 6057 }); 6058 }, u2.prototype.setMargin = function(t2) { 6059 return this.then(function() { 6060 switch (a2(t2)) { 6061 case "number": 6062 t2 = [t2, t2, t2, t2]; 6063 case "array": 6064 if (2 === t2.length && (t2 = [t2[0], t2[1], t2[0], t2[1]]), 4 === t2.length) break; 6065 default: 6066 return this.error("Invalid margin array."); 6067 } 6068 this.opt.margin = t2; 6069 }).then(this.setPageSize); 6070 }, u2.prototype.setPageSize = function(t2) { 6071 function e2(t3, e3) { 6072 return Math.floor(t3 * e3 / 72 * 96); 6073 } 6074 return this.then(function() { 6075 (t2 = t2 || E.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner") || (t2.inner = { width: t2.width - this.opt.margin[1] - this.opt.margin[3], height: t2.height - this.opt.margin[0] - this.opt.margin[2] }, t2.inner.px = { width: e2(t2.inner.width, t2.k), height: e2(t2.inner.height, t2.k) }, t2.inner.ratio = t2.inner.height / t2.inner.width), this.prop.pageSize = t2; 6076 }); 6077 }, u2.prototype.setProgress = function(t2, e2, r2, n2) { 6078 return null != t2 && (this.progress.val = t2), null != e2 && (this.progress.state = e2), null != r2 && (this.progress.n = r2), null != n2 && (this.progress.stack = n2), this.progress.ratio = this.progress.val / this.progress.state, this; 6079 }, u2.prototype.updateProgress = function(t2, e2, r2, n2) { 6080 return this.setProgress(t2 ? this.progress.val + t2 : null, e2 || null, r2 ? this.progress.n + r2 : null, n2 ? this.progress.stack.concat(n2) : null); 6081 }, u2.prototype.then = function(t2, e2) { 6082 var r2 = this; 6083 return this.thenCore(t2, e2, function(t3, e3) { 6084 return r2.updateProgress(null, null, 1, [t3]), Promise.prototype.then.call(this, function(e4) { 6085 return r2.updateProgress(null, t3), e4; 6086 }).then(t3, e3).then(function(t4) { 6087 return r2.updateProgress(1), t4; 6088 }); 6089 }); 6090 }, u2.prototype.thenCore = function(t2, e2, r2) { 6091 r2 = r2 || Promise.prototype.then; 6092 var n2 = this; 6093 t2 && (t2 = t2.bind(n2)), e2 && (e2 = e2.bind(n2)); 6094 var i2 = -1 !== Promise.toString().indexOf("[native code]") && "Promise" === Promise.name ? n2 : u2.convert(Object.assign({}, n2), Promise.prototype), a3 = r2.call(i2, t2, e2); 6095 return u2.convert(a3, n2.__proto__); 6096 }, u2.prototype.thenExternal = function(t2, e2) { 6097 return Promise.prototype.then.call(this, t2, e2); 6098 }, u2.prototype.thenList = function(t2) { 6099 var e2 = this; 6100 return t2.forEach(function(t3) { 6101 e2 = e2.thenCore(t3); 6102 }), e2; 6103 }, u2.prototype.catch = function(t2) { 6104 t2 && (t2 = t2.bind(this)); 6105 var e2 = Promise.prototype.catch.call(this, t2); 6106 return u2.convert(e2, this); 6107 }, u2.prototype.catchExternal = function(t2) { 6108 return Promise.prototype.catch.call(this, t2); 6109 }, u2.prototype.error = function(t2) { 6110 return this.then(function() { 6111 throw new Error(t2); 6112 }); 6113 }, u2.prototype.using = u2.prototype.set, u2.prototype.saveAs = u2.prototype.save, u2.prototype.export = u2.prototype.output, u2.prototype.run = u2.prototype.then, E.getPageSize = function(e2, r2, n2) { 6114 if ("object" === _typeof(e2)) { 6115 var i2 = e2; 6116 e2 = i2.orientation, r2 = i2.unit || r2, n2 = i2.format || n2; 6117 } 6118 r2 = r2 || "mm", n2 = n2 || "a4", e2 = ("" + (e2 || "P")).toLowerCase(); 6119 var a3, o3 = ("" + n2).toLowerCase(), s3 = { a0: [2383.94, 3370.39], a1: [1683.78, 2383.94], a2: [1190.55, 1683.78], a3: [841.89, 1190.55], a4: [595.28, 841.89], a5: [419.53, 595.28], a6: [297.64, 419.53], a7: [209.76, 297.64], a8: [147.4, 209.76], a9: [104.88, 147.4], a10: [73.7, 104.88], b0: [2834.65, 4008.19], b1: [2004.09, 2834.65], b2: [1417.32, 2004.09], b3: [1000.63, 1417.32], b4: [708.66, 1000.63], b5: [498.9, 708.66], b6: [354.33, 498.9], b7: [249.45, 354.33], b8: [175.75, 249.45], b9: [124.72, 175.75], b10: [87.87, 124.72], c0: [2599.37, 3676.54], c1: [1836.85, 2599.37], c2: [1298.27, 1836.85], c3: [918.43, 1298.27], c4: [649.13, 918.43], c5: [459.21, 649.13], c6: [323.15, 459.21], c7: [229.61, 323.15], c8: [161.57, 229.61], c9: [113.39, 161.57], c10: [79.37, 113.39], dl: [311.81, 623.62], letter: [612, 792], "government-letter": [576, 756], legal: [612, 1008], "junior-legal": [576, 360], ledger: [1224, 792], tabloid: [792, 1224], "credit-card": [153, 243] }; 6120 switch (r2) { 6121 case "pt": 6122 a3 = 1; 6123 break; 6124 case "mm": 6125 a3 = 72 / 25.4; 6126 break; 6127 case "cm": 6128 a3 = 72 / 2.54; 6129 break; 6130 case "in": 6131 a3 = 72; 6132 break; 6133 case "px": 6134 a3 = 0.75; 6135 break; 6136 case "pc": 6137 case "em": 6138 a3 = 12; 6139 break; 6140 case "ex": 6141 a3 = 6; 6142 break; 6143 default: 6144 throw "Invalid unit: " + r2; 6145 } 6146 var u3, c2 = 0, l2 = 0; 6147 if (s3.hasOwnProperty(o3)) c2 = s3[o3][1] / a3, l2 = s3[o3][0] / a3; 6148 else try { 6149 c2 = n2[1], l2 = n2[0]; 6150 } catch (h2) { 6151 throw new Error("Invalid format: " + n2); 6152 } 6153 if ("p" === e2 || "portrait" === e2) e2 = "p", l2 > c2 && (u3 = l2, l2 = c2, c2 = u3); 6154 else { 6155 if ("l" !== e2 && "landscape" !== e2) throw "Invalid orientation: " + e2; 6156 e2 = "l", c2 > l2 && (u3 = l2, l2 = c2, c2 = u3); 6157 } 6158 return { width: l2, height: c2, unit: r2, k: a3, orientation: e2 }; 6159 }, e.html = function(t2, e2) { 6160 (e2 = e2 || {}).callback = e2.callback || function() { 6161 }, e2.html2canvas = e2.html2canvas || {}, e2.html2canvas.canvas = e2.html2canvas.canvas || this.canvas, e2.jsPDF = e2.jsPDF || this, e2.fontFaces = e2.fontFaces ? e2.fontFaces.map(Ot) : null; 6162 var r2 = new u2(e2); 6163 return e2.worker ? r2 : r2.from(t2).doCallback(); 6164 }; 6165}
vendor: 18,029 bytes, lines 6165-6456
6165(E.API), E.API.addJS = function(t2) { 6166 var e, r, n = function(t3) { 6167 for (var e2 = "", r2 = 0; r2 < t3.length; r2++) { 6168 var n2 = t3[r2]; 6169 if ("(" === n2 || ")" === n2) { 6170 for (var i2 = 0, a2 = r2 - 1; a2 >= 0 && "\\" === t3[a2]; a2--) i2++; 6171 e2 += i2 % 2 == 0 ? "\\" + n2 : n2; 6172 } else e2 += n2; 6173 } 6174 return e2; 6175 }(t2); 6176 return this.internal.events.subscribe("postPutResources", function() { 6177 e = this.internal.newObject(), this.internal.out("<<"), this.internal.out("/Names [(EmbeddedJS) " + (e + 1) + " 0 R]"), this.internal.out(">>"), this.internal.out("endobj"), r = this.internal.newObject(), this.internal.out("<<"), this.internal.out("/S /JavaScript"), this.internal.out("/JS (" + n + ")"), this.internal.out(">>"), this.internal.out("endobj"); 6178 }), this.internal.events.subscribe("putCatalog", function() { 6179 void 0 !== e && void 0 !== r && this.internal.out("/Names <</JavaScript " + e + " 0 R>>"); 6180 }), this; 6181}, /** 6182 * @license 6183 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected] 6184 * 6185 * Licensed under the MIT License. 6186 * http://opensource.org/licenses/mit-license 6187 */ 6188function(t2) { 6189 var e; 6190 t2.events.push(["postPutResources", function() { 6191 var t3 = this, r = /^(\d+) 0 obj$/; 6192 if (this.outline.root.children.length > 0) for (var n = t3.outline.render().split(/\r\n/), i2 = 0; i2 < n.length; i2++) { 6193 var a2 = n[i2], o2 = r.exec(a2); 6194 if (null != o2) { 6195 var s2 = o2[1]; 6196 t3.internal.newObjectDeferredBegin(s2, false); 6197 } 6198 t3.internal.write(a2); 6199 } 6200 if (this.outline.createNamedDestinations) { 6201 var u2 = this.internal.pages.length, c2 = []; 6202 for (i2 = 0; i2 < u2; i2++) { 6203 var l2 = t3.internal.newObject(); 6204 c2.push(l2); 6205 var h2 = t3.internal.getPageInfo(i2 + 1); 6206 t3.internal.write("<< /D[" + h2.objId + " 0 R /XYZ null null null]>> endobj"); 6207 } 6208 var f2 = t3.internal.newObject(); 6209 for (t3.internal.write("<< /Names [ "), i2 = 0; i2 < c2.length; i2++) t3.internal.write("(page_" + (i2 + 1) + ")" + c2[i2] + " 0 R"); 6210 t3.internal.write(" ] >>", "endobj"), e = t3.internal.newObject(), t3.internal.write("<< /Dests " + f2 + " 0 R"), t3.internal.write(">>", "endobj"); 6211 } 6212 }]), t2.events.push(["putCatalog", function() { 6213 var t3 = this; 6214 t3.outline.root.children.length > 0 && (t3.internal.write("/Outlines", this.outline.makeRef(this.outline.root)), this.outline.createNamedDestinations && t3.internal.write("/Names " + e + " 0 R")); 6215 }]), t2.events.push(["initialized", function() { 6216 var t3 = this; 6217 t3.outline = { createNamedDestinations: false, root: { children: [] } }, t3.outline.add = function(t4, e2, r) { 6218 var n = { title: e2, options: r, children: [] }; 6219 return null == t4 && (t4 = this.root), t4.children.push(n), n; 6220 }, t3.outline.render = function() { 6221 return this.ctx = {}, this.ctx.val = "", this.ctx.pdf = t3, this.genIds_r(this.root), this.renderRoot(this.root), this.renderItems(this.root), this.ctx.val; 6222 }, t3.outline.genIds_r = function(e2) { 6223 e2.id = t3.internal.newObjectDeferred(); 6224 for (var r = 0; r < e2.children.length; r++) this.genIds_r(e2.children[r]); 6225 }, t3.outline.renderRoot = function(t4) { 6226 this.objStart(t4), this.line("/Type /Outlines"), t4.children.length > 0 && (this.line("/First " + this.makeRef(t4.children[0])), this.line("/Last " + this.makeRef(t4.children[t4.children.length - 1]))), this.line("/Count " + this.count_r({ count: 0 }, t4)), this.objEnd(); 6227 }, t3.outline.renderItems = function(e2) { 6228 for (var r = this.ctx.pdf.internal.getVerticalCoordinateString, n = 0; n < e2.children.length; n++) { 6229 var i2 = e2.children[n]; 6230 this.objStart(i2), this.line("/Title " + this.makeString(i2.title)), this.line("/Parent " + this.makeRef(e2)), n > 0 && this.line("/Prev " + this.makeRef(e2.children[n - 1])), n < e2.children.length - 1 && this.line("/Next " + this.makeRef(e2.children[n + 1])), i2.children.length > 0 && (this.line("/First " + this.makeRef(i2.children[0])), this.line("/Last " + this.makeRef(i2.children[i2.children.length - 1]))); 6231 var a2 = this.count = this.count_r({ count: 0 }, i2); 6232 if (a2 > 0 && this.line("/Count " + a2), i2.options && i2.options.pageNumber) { 6233 var o2 = t3.internal.getPageInfo(i2.options.pageNumber); 6234 this.line("/Dest [" + o2.objId + " 0 R /XYZ 0 " + r(0) + " 0]"); 6235 } 6236 this.objEnd(); 6237 } 6238 for (var s2 = 0; s2 < e2.children.length; s2++) this.renderItems(e2.children[s2]); 6239 }, t3.outline.line = function(t4) { 6240 this.ctx.val += t4 + "\r\n"; 6241 }, t3.outline.makeRef = function(t4) { 6242 return t4.id + " 0 R"; 6243 }, t3.outline.makeString = function(e2) { 6244 return "(" + t3.internal.pdfEscape(e2) + ")"; 6245 }, t3.outline.objStart = function(t4) { 6246 this.ctx.val += "\r\n" + t4.id + " 0 obj\r\n<<\r\n"; 6247 }, t3.outline.objEnd = function() { 6248 this.ctx.val += ">> \r\nendobj\r\n"; 6249 }, t3.outline.count_r = function(t4, e2) { 6250 for (var r = 0; r < e2.children.length; r++) t4.count++, this.count_r(t4, e2.children[r]); 6251 return t4.count; 6252 }; 6253 }]); 6254}(E.API), /** 6255 * @license 6256 * 6257 * Licensed under the MIT License. 6258 * http://opensource.org/licenses/mit-license 6259 */ 6260function(t2) { 6261 var e = [192, 193, 194, 195, 196, 197, 198, 199]; 6262 t2.processJPEG = function(t3, r, n, i2, a2, o2) { 6263 var s2, u2 = this.decode.DCT_DECODE, c2 = null; 6264 if ("string" == typeof t3 || this.__addimage__.isArrayBuffer(t3) || this.__addimage__.isArrayBufferView(t3)) { 6265 switch (t3 = a2 || t3, t3 = this.__addimage__.isArrayBuffer(t3) ? new Uint8Array(t3) : t3, s2 = function(t4) { 6266 for (var r2, n2 = 256 * t4.charCodeAt(4) + t4.charCodeAt(5), i3 = t4.length, a3 = { width: 0, height: 0, numcomponents: 1 }, o3 = 4; o3 < i3; o3 += 2) { 6267 if (o3 += n2, -1 !== e.indexOf(t4.charCodeAt(o3 + 1))) { 6268 r2 = 256 * t4.charCodeAt(o3 + 5) + t4.charCodeAt(o3 + 6), a3 = { width: 256 * t4.charCodeAt(o3 + 7) + t4.charCodeAt(o3 + 8), height: r2, numcomponents: t4.charCodeAt(o3 + 9) }; 6269 break; 6270 } 6271 n2 = 256 * t4.charCodeAt(o3 + 2) + t4.charCodeAt(o3 + 3); 6272 } 6273 return a3; 6274 }(t3 = this.__addimage__.isArrayBufferView(t3) ? this.__addimage__.arrayBufferToBinaryString(t3) : t3), s2.numcomponents) { 6275 case 1: 6276 o2 = this.color_spaces.DEVICE_GRAY; 6277 break; 6278 case 4: 6279 o2 = this.color_spaces.DEVICE_CMYK; 6280 break; 6281 case 3: 6282 o2 = this.color_spaces.DEVICE_RGB; 6283 } 6284 c2 = { data: t3, width: s2.width, height: s2.height, colorSpace: o2, bitsPerComponent: 8, filter: u2, index: r, alias: n }; 6285 } 6286 return c2; 6287 }; 6288}(E.API), E.API.processPNG = function(t2, i2, a2, o2) { 6289 if (this.__addimage__.isArrayBuffer(t2) && (t2 = new Uint8Array(t2)), this.__addimage__.isArrayBufferView(t2)) { 6290 var s2, u2 = decodePng(t2, { checkCrc: true }), c2 = u2.width, l2 = u2.height, h2 = u2.channels, f2 = u2.palette, d2 = u2.depth; 6291 s2 = f2 && 1 === h2 ? function(t3) { 6292 for (var e = t3.width, n = t3.height, i3 = t3.data, a3 = t3.palette, o3 = t3.depth, s3 = false, u3 = [], c3 = [], l3 = void 0, h3 = false, f3 = 0, d3 = 0; d3 < a3.length; d3++) { 6293 var p3 = _slicedToArray(a3[d3], 4), g3 = p3[0], m3 = p3[1], v3 = p3[2], b3 = p3[3]; 6294 u3.push(g3, m3, v3), null != b3 && (0 === b3 ? (f3++, c3.length < 1 && c3.push(d3)) : b3 < 255 && (h3 = true)); 6295 } 6296 if (h3 || f3 > 1) { 6297 s3 = true, c3 = void 0; 6298 var y3 = e * n; 6299 l3 = new Uint8Array(y3); 6300 for (var w3 = new DataView(i3.buffer), N3 = 0; N3 < y3; N3++) { 6301 var L3 = ee(w3, N3, o3), x3 = _slicedToArray(a3[L3], 4)[3]; 6302 l3[N3] = x3; 6303 } 6304 } else 0 === f3 && (c3 = void 0); 6305 return { colorSpace: "Indexed", colorsPerPixel: 1, sMaskBitsPerComponent: s3 ? 8 : void 0, colorBytes: i3, alphaBytes: l3, needSMask: s3, palette: u3, mask: c3 }; 6306 }(u2) : 2 === h2 || 4 === h2 ? function(t3) { 6307 for (var e = t3.data, r = t3.width, n = t3.height, i3 = t3.channels, a3 = t3.depth, o3 = 2 === i3 ? "DeviceGray" : "DeviceRGB", s3 = i3 - 1, u3 = r * n, c3 = s3, l3 = u3 * c3, h3 = 1 * u3, f3 = Math.ceil(l3 * a3 / 8), d3 = Math.ceil(h3 * a3 / 8), p3 = new Uint8Array(f3), g3 = new Uint8Array(d3), m3 = new DataView(e.buffer), v3 = new DataView(p3.buffer), b3 = new DataView(g3.buffer), y3 = false, w3 = 0; w3 < u3; w3++) { 6308 for (var N3 = w3 * i3, L3 = 0; L3 < c3; L3++) re(v3, ee(m3, N3 + L3, a3), w3 * c3 + L3, a3); 6309 var x3 = ee(m3, N3 + c3, a3); 6310 x3 < (1 << a3) - 1 && (y3 = true), re(b3, x3, 1 * w3, a3); 6311 } 6312 return { colorSpace: o3, colorsPerPixel: s3, sMaskBitsPerComponent: y3 ? a3 : void 0, colorBytes: p3, alphaBytes: g3, needSMask: y3 }; 6313 }(u2) : function(t3) { 6314 var e = t3.data, r = 1 === t3.channels ? "DeviceGray" : "DeviceRGB"; 6315 return { colorSpace: r, colorsPerPixel: "DeviceGray" === r ? 1 : 3, colorBytes: e instanceof Uint16Array ? function(t4) { 6316 for (var e2 = t4.length, r2 = new Uint8Array(2 * e2), n = new DataView(r2.buffer, r2.byteOffset, r2.byteLength), i3 = 0; i3 < e2; i3++) n.setUint16(2 * i3, t4[i3], false); 6317 return r2; 6318 }(e) : e, needSMask: false }; 6319 }(u2); 6320 var p2, g2, m2, v2 = s2, b2 = v2.colorSpace, y2 = v2.colorsPerPixel, w2 = v2.sMaskBitsPerComponent, N2 = v2.colorBytes, L2 = v2.alphaBytes, x2 = v2.needSMask, A2 = v2.palette, S2 = v2.mask, _2 = null; 6321 return o2 !== E.API.image_compression.NONE && "function" == typeof zlibSync ? (_2 = function(t3) { 6322 var e; 6323 switch (t3) { 6324 case E.API.image_compression.FAST: 6325 e = 11; 6326 break; 6327 case E.API.image_compression.MEDIUM: 6328 e = 13; 6329 break; 6330 case E.API.image_compression.SLOW: 6331 e = 14; 6332 break; 6333 default: 6334 e = 12; 6335 } 6336 return e; 6337 }(o2), p2 = this.decode.FLATE_DECODE, g2 = "/Predictor ".concat(_2, " /Colors ").concat(y2, " /BitsPerComponent ").concat(d2, " /Columns ").concat(c2), t2 = Yt(N2, Math.ceil(c2 * y2 * d2 / 8), y2, d2, o2), x2 && (m2 = Yt(L2, Math.ceil(c2 * w2 / 8), 1, w2, o2))) : (p2 = void 0, g2 = void 0, t2 = N2, x2 && (m2 = L2)), (this.__addimage__.isArrayBuffer(t2) || this.__addimage__.isArrayBufferView(t2)) && (t2 = this.__addimage__.arrayBufferToBinaryString(t2)), (m2 && this.__addimage__.isArrayBuffer(m2) || this.__addimage__.isArrayBufferView(m2)) && (m2 = this.__addimage__.arrayBufferToBinaryString(m2)), { alias: a2, data: t2, index: i2, filter: p2, decodeParameters: g2, transparency: S2, palette: A2, sMask: m2, predictor: _2, width: c2, height: l2, bitsPerComponent: d2, sMaskBitsPerComponent: w2, colorSpace: b2 }; 6338 } 6339}, function(t2) { 6340 t2.processGIF89A = function(e, r, n, i2) { 6341 var a2 = new ie(e), o2 = a2.width, s2 = a2.height, u2 = []; 6342 a2.decodeAndBlitFrameRGBA(0, u2); 6343 var c2 = { data: u2, width: o2, height: s2 }, l2 = new oe(100).encode(c2, 100); 6344 return t2.processJPEG.call(this, l2, r, n, i2); 6345 }, t2.processGIF87A = t2.processGIF89A; 6346}(E.API), se.prototype.parseHeader = function() { 6347 if (this.fileSize = this.datav.getUint32(this.pos, true), this.pos += 4, this.reserved = this.datav.getUint32(this.pos, true), this.pos += 4, this.offset = this.datav.getUint32(this.pos, true), this.pos += 4, this.headerSize = this.datav.getUint32(this.pos, true), this.pos += 4, this.width = this.datav.getUint32(this.pos, true), this.pos += 4, this.height = this.datav.getInt32(this.pos, true), this.pos += 4, this.planes = this.datav.getUint16(this.pos, true), this.pos += 2, this.bitPP = this.datav.getUint16(this.pos, true), this.pos += 2, this.compress = this.datav.getUint32(this.pos, true), this.pos += 4, this.rawSize = this.datav.getUint32(this.pos, true), this.pos += 4, this.hr = this.datav.getUint32(this.pos, true), this.pos += 4, this.vr = this.datav.getUint32(this.pos, true), this.pos += 4, this.colors = this.datav.getUint32(this.pos, true), this.pos += 4, this.importantColors = this.datav.getUint32(this.pos, true), this.pos += 4, 16 === this.bitPP && this.is_with_alpha && (this.bitPP = 15), this.bitPP < 15) { 6348 var t2 = 0 === this.colors ? 1 << this.bitPP : this.colors; 6349 this.palette = new Array(t2); 6350 for (var e = 0; e < t2; e++) { 6351 var r = this.datav.getUint8(this.pos++, true), n = this.datav.getUint8(this.pos++, true), i2 = this.datav.getUint8(this.pos++, true), a2 = this.datav.getUint8(this.pos++, true); 6352 this.palette[e] = { red: i2, green: n, blue: r, quad: a2 }; 6353 } 6354 } 6355 this.height < 0 && (this.height *= -1, this.bottom_up = false); 6356}, se.prototype.parseBGR = function() { 6357 this.pos = this.offset; 6358 var t2 = "bit" + this.bitPP, e = this.width * this.height * 4; 6359 if (e > 536870912) throw new Error("Image dimensions exceed 512MB, which is too large."); 6360 this.data = new Uint8Array(e); 6361 try { 6362 this[t2](); 6363 } catch (r) { 6364 o.log("bit decode error:" + r); 6365 } 6366}, se.prototype.bit1 = function() { 6367 var t2, e = Math.ceil(this.width / 8), r = e % 4; 6368 for (t2 = this.height - 1; t2 >= 0; t2--) { 6369 for (var n = this.bottom_up ? t2 : this.height - 1 - t2, i2 = 0; i2 < e; i2++) for (var a2 = this.datav.getUint8(this.pos++, true), o2 = n * this.width * 4 + 8 * i2 * 4, s2 = 0; s2 < 8 && 8 * i2 + s2 < this.width; s2++) { 6370 var u2 = this.palette[a2 >> 7 - s2 & 1]; 6371 this.data[o2 + 4 * s2] = u2.blue, this.data[o2 + 4 * s2 + 1] = u2.green, this.data[o2 + 4 * s2 + 2] = u2.red, this.data[o2 + 4 * s2 + 3] = 255; 6372 } 6373 0 !== r && (this.pos += 4 - r); 6374 } 6375}, se.prototype.bit4 = function() { 6376 for (var t2 = Math.ceil(this.width / 2), e = t2 % 4, r = this.height - 1; r >= 0; r--) { 6377 for (var n = this.bottom_up ? r : this.height - 1 - r, i2 = 0; i2 < t2; i2++) { 6378 var a2 = this.datav.getUint8(this.pos++, true), o2 = n * this.width * 4 + 2 * i2 * 4, s2 = a2 >> 4, u2 = 15 & a2, c2 = this.palette[s2]; 6379 if (this.data[o2] = c2.blue, this.data[o2 + 1] = c2.green, this.data[o2 + 2] = c2.red, this.data[o2 + 3] = 255, 2 * i2 + 1 >= this.width) break; 6380 c2 = this.palette[u2], this.data[o2 + 4] = c2.blue, this.data[o2 + 4 + 1] = c2.green, this.data[o2 + 4 + 2] = c2.red, this.data[o2 + 4 + 3] = 255; 6381 } 6382 0 !== e && (this.pos += 4 - e); 6383 } 6384}, se.prototype.bit8 = function() { 6385 for (var t2 = this.width % 4, e = this.height - 1; e >= 0; e--) { 6386 for (var r = this.bottom_up ? e : this.height - 1 - e, n = 0; n < this.width; n++) { 6387 var i2 = this.datav.getUint8(this.pos++, true), a2 = r * this.width * 4 + 4 * n; 6388 if (i2 < this.palette.length) { 6389 var o2 = this.palette[i2]; 6390 this.data[a2] = o2.red, this.data[a2 + 1] = o2.green, this.data[a2 + 2] = o2.blue, this.data[a2 + 3] = 255; 6391 } else this.data[a2] = 255, this.data[a2 + 1] = 255, this.data[a2 + 2] = 255, this.data[a2 + 3] = 255; 6392 } 6393 0 !== t2 && (this.pos += 4 - t2); 6394 } 6395}, se.prototype.bit15 = function() { 6396 for (var t2 = this.width % 3, e = parseInt("11111", 2), r = this.height - 1; r >= 0; r--) { 6397 for (var n = this.bottom_up ? r : this.height - 1 - r, i2 = 0; i2 < this.width; i2++) { 6398 var a2 = this.datav.getUint16(this.pos, true); 6399 this.pos += 2; 6400 var o2 = (a2 & e) / e * 255 | 0, s2 = (a2 >> 5 & e) / e * 255 | 0, u2 = (a2 >> 10 & e) / e * 255 | 0, c2 = a2 >> 15 ? 255 : 0, l2 = n * this.width * 4 + 4 * i2; 6401 this.data[l2] = u2, this.data[l2 + 1] = s2, this.data[l2 + 2] = o2, this.data[l2 + 3] = c2; 6402 } 6403 this.pos += t2; 6404 } 6405}, se.prototype.bit16 = function() { 6406 for (var t2 = this.width % 3, e = parseInt("11111", 2), r = parseInt("111111", 2), n = this.height - 1; n >= 0; n--) { 6407 for (var i2 = this.bottom_up ? n : this.height - 1 - n, a2 = 0; a2 < this.width; a2++) { 6408 var o2 = this.datav.getUint16(this.pos, true); 6409 this.pos += 2; 6410 var s2 = (o2 & e) / e * 255 | 0, u2 = (o2 >> 5 & r) / r * 255 | 0, c2 = (o2 >> 11) / e * 255 | 0, l2 = i2 * this.width * 4 + 4 * a2; 6411 this.data[l2] = c2, this.data[l2 + 1] = u2, this.data[l2 + 2] = s2, this.data[l2 + 3] = 255; 6412 } 6413 this.pos += t2; 6414 } 6415}, se.prototype.bit24 = function() { 6416 for (var t2 = this.height - 1; t2 >= 0; t2--) { 6417 for (var e = this.bottom_up ? t2 : this.height - 1 - t2, r = 0; r < this.width; r++) { 6418 var n = this.datav.getUint8(this.pos++, true), i2 = this.datav.getUint8(this.pos++, true), a2 = this.datav.getUint8(this.pos++, true), o2 = e * this.width * 4 + 4 * r; 6419 this.data[o2] = a2, this.data[o2 + 1] = i2, this.data[o2 + 2] = n, this.data[o2 + 3] = 255; 6420 } 6421 this.pos += this.width % 4; 6422 } 6423}, se.prototype.bit32 = function() { 6424 for (var t2 = this.height - 1; t2 >= 0; t2--) for (var e = this.bottom_up ? t2 : this.height - 1 - t2, r = 0; r < this.width; r++) { 6425 var n = this.datav.getUint8(this.pos++, true), i2 = this.datav.getUint8(this.pos++, true), a2 = this.datav.getUint8(this.pos++, true), o2 = this.datav.getUint8(this.pos++, true), s2 = e * this.width * 4 + 4 * r; 6426 this.data[s2] = a2, this.data[s2 + 1] = i2, this.data[s2 + 2] = n, this.data[s2 + 3] = o2; 6427 } 6428}, se.prototype.getData = function() { 6429 return this.data; 6430}, /** 6431 * @license 6432 * Copyright (c) 2018 Aras Abbasi 6433 * 6434 * Licensed under the MIT License. 6435 * http://opensource.org/licenses/mit-license 6436 */ 6437function(t2) { 6438 t2.processBMP = function(e, r, n, i2) { 6439 var a2 = new se(e, false), o2 = a2.width, s2 = a2.height, u2 = { data: a2.getData(), width: o2, height: s2 }, c2 = new oe(100).encode(u2, 100); 6440 return t2.processJPEG.call(this, c2, r, n, i2); 6441 }; 6442}(E.API), ue.prototype.getData = function() { 6443 return this.data; 6444}, /** 6445 * @license 6446 * Copyright (c) 2019 Aras Abbasi 6447 * 6448 * Licensed under the MIT License. 6449 * http://opensource.org/licenses/mit-license 6450 */ 6451function(t2) { 6452 t2.processWEBP = function(e, r, n, i2) { 6453 var a2 = new ue(e), o2 = a2.width, s2 = a2.height, u2 = { data: a2.getData(), width: o2, height: s2 }, c2 = new oe(100).encode(u2, 100); 6454 return t2.processJPEG.call(this, c2, r, n, i2); 6455 }; 6456}
vendor: 26,440 bytes, lines 6456-6551
6456(E.API), E.API.processRGBA = function(t2, e, r) { 6457 for (var n = t2.data, i2 = n.length, a2 = new Uint8Array(i2 / 4 * 3), o2 = new Uint8Array(i2 / 4), s2 = 0, u2 = 0, c2 = 0; c2 < i2; c2 += 4) { 6458 var l2 = n[c2], h2 = n[c2 + 1], f2 = n[c2 + 2], d2 = n[c2 + 3]; 6459 a2[s2++] = l2, a2[s2++] = h2, a2[s2++] = f2, o2[u2++] = d2; 6460 } 6461 var p2 = this.__addimage__.arrayBufferToBinaryString(a2); 6462 return { alpha: this.__addimage__.arrayBufferToBinaryString(o2), data: p2, index: e, alias: r, colorSpace: "DeviceRGB", bitsPerComponent: 8, width: t2.width, height: t2.height }; 6463}, E.API.setLanguage = function(t2) { 6464 return void 0 === this.internal.languageSettings && (this.internal.languageSettings = {}, this.internal.languageSettings.isSubscribed = false), void 0 !== { af: "Afrikaans", sq: "Albanian", ar: "Arabic (Standard)", "ar-DZ": "Arabic (Algeria)", "ar-BH": "Arabic (Bahrain)", "ar-EG": "Arabic (Egypt)", "ar-IQ": "Arabic (Iraq)", "ar-JO": "Arabic (Jordan)", "ar-KW": "Arabic (Kuwait)", "ar-LB": "Arabic (Lebanon)", "ar-LY": "Arabic (Libya)", "ar-MA": "Arabic (Morocco)", "ar-OM": "Arabic (Oman)", "ar-QA": "Arabic (Qatar)", "ar-SA": "Arabic (Saudi Arabia)", "ar-SY": "Arabic (Syria)", "ar-TN": "Arabic (Tunisia)", "ar-AE": "Arabic (U.A.E.)", "ar-YE": "Arabic (Yemen)", an: "Aragonese", hy: "Armenian", as: "Assamese", ast: "Asturian", az: "Azerbaijani", eu: "Basque", be: "Belarusian", bn: "Bengali", bs: "Bosnian", br: "Breton", bg: "Bulgarian", my: "Burmese", ca: "Catalan", ch: "Chamorro", ce: "Chechen", zh: "Chinese", "zh-HK": "Chinese (Hong Kong)", "zh-CN": "Chinese (PRC)", "zh-SG": "Chinese (Singapore)", "zh-TW": "Chinese (Taiwan)", cv: "Chuvash", co: "Corsican", cr: "Cree", hr: "Croatian", cs: "Czech", da: "Danish", nl: "Dutch (Standard)", "nl-BE": "Dutch (Belgian)", en: "English", "en-AU": "English (Australia)", "en-BZ": "English (Belize)", "en-CA": "English (Canada)", "en-IE": "English (Ireland)", "en-JM": "English (Jamaica)", "en-NZ": "English (New Zealand)", "en-PH": "English (Philippines)", "en-ZA": "English (South Africa)", "en-TT": "English (Trinidad & Tobago)", "en-GB": "English (United Kingdom)", "en-US": "English (United States)", "en-ZW": "English (Zimbabwe)", eo: "Esperanto", et: "Estonian", fo: "Faeroese", fj: "Fijian", fi: "Finnish", fr: "French (Standard)", "fr-BE": "French (Belgium)", "fr-CA": "French (Canada)", "fr-FR": "French (France)", "fr-LU": "French (Luxembourg)", "fr-MC": "French (Monaco)", "fr-CH": "French (Switzerland)", fy: "Frisian", fur: "Friulian", gd: "Gaelic (Scots)", "gd-IE": "Gaelic (Irish)", gl: "Galacian", ka: "Georgian", de: "German (Standard)", "de-AT": "German (Austria)", "de-DE": "German (Germany)", "de-LI": "German (Liechtenstein)", "de-LU": "German (Luxembourg)", "de-CH": "German (Switzerland)", el: "Greek", gu: "Gujurati", ht: "Haitian", he: "Hebrew", hi: "Hindi", hu: "Hungarian", is: "Icelandic", id: "Indonesian", iu: "Inuktitut", ga: "Irish", it: "Italian (Standard)", "it-CH": "Italian (Switzerland)", ja: "Japanese", kn: "Kannada", ks: "Kashmiri", kk: "Kazakh", km: "Khmer", ky: "Kirghiz", tlh: "Klingon", ko: "Korean", "ko-KP": "Korean (North Korea)", "ko-KR": "Korean (South Korea)", la: "Latin", lv: "Latvian", lt: "Lithuanian", lb: "Luxembourgish", mk: "North Macedonia", ms: "Malay", ml: "Malayalam", mt: "Maltese", mi: "Maori", mr: "Marathi", mo: "Moldavian", nv: "Navajo", ng: "Ndonga", ne: "Nepali", no: "Norwegian", nb: "Norwegian (Bokmal)", nn: "Norwegian (Nynorsk)", oc: "Occitan", or: "Oriya", om: "Oromo", fa: "Persian", "fa-IR": "Persian/Iran", pl: "Polish", pt: "Portuguese", "pt-BR": "Portuguese (Brazil)", pa: "Punjabi", "pa-IN": "Punjabi (India)", "pa-PK": "Punjabi (Pakistan)", qu: "Quechua", rm: "Rhaeto-Romanic", ro: "Romanian", "ro-MO": "Romanian (Moldavia)", ru: "Russian", "ru-MO": "Russian (Moldavia)", sz: "Sami (Lappish)", sg: "Sango", sa: "Sanskrit", sc: "Sardinian", sd: "Sindhi", si: "Singhalese", sr: "Serbian", sk: "Slovak", sl: "Slovenian", so: "Somani", sb: "Sorbian", es: "Spanish", "es-AR": "Spanish (Argentina)", "es-BO": "Spanish (Bolivia)", "es-CL": "Spanish (Chile)", "es-CO": "Spanish (Colombia)", "es-CR": "Spanish (Costa Rica)", "es-DO": "Spanish (Dominican Republic)", "es-EC": "Spanish (Ecuador)", "es-SV": "Spanish (El Salvador)", "es-GT": "Spanish (Guatemala)", "es-HN": "Spanish (Honduras)", "es-MX": "Spanish (Mexico)", "es-NI": "Spanish (Nicaragua)", "es-PA": "Spanish (Panama)", "es-PY": "Spanish (Paraguay)", "es-PE": "Spanish (Peru)", "es-PR": "Spanish (Puerto Rico)", "es-ES": "Spanish (Spain)", "es-UY": "Spanish (Uruguay)", "es-VE": "Spanish (Venezuela)", sx: "Sutu", sw: "Swahili", sv: "Swedish", "sv-FI": "Swedish (Finland)", "sv-SV": "Swedish (Sweden)", ta: "Tamil", tt: "Tatar", te: "Teluga", th: "Thai", tig: "Tigre", ts: "Tsonga", tn: "Tswana", tr: "Turkish", tk: "Turkmen", uk: "Ukrainian", hsb: "Upper Sorbian", ur: "Urdu", ve: "Venda", vi: "Vietnamese", vo: "Volapuk", wa: "Walloon", cy: "Welsh", xh: "Xhosa", ji: "Yiddish", zu: "Zulu" }[t2] && (this.internal.languageSettings.languageCode = t2, false === this.internal.languageSettings.isSubscribed && (this.internal.events.subscribe("putCatalog", function() { 6465 this.internal.write("/Lang (" + this.internal.languageSettings.languageCode + ")"); 6466 }), this.internal.languageSettings.isSubscribed = true)), this; 6467}, zt = E.API, Ut = zt.getCharWidthsArray = function(e, r) { 6468 var n, i2, a2 = (r = r || {}).font || this.internal.getFont(), o2 = r.fontSize || this.internal.getFontSize(), s2 = r.charSpace || this.internal.getCharSpace(), u2 = r.widths ? r.widths : a2.metadata.Unicode.widths, c2 = u2.fof ? u2.fof : 1, l2 = r.kerning ? r.kerning : a2.metadata.Unicode.kerning, h2 = l2.fof ? l2.fof : 1, f2 = false !== r.doKerning, d2 = 0, p2 = e.length, g2 = 0, m2 = u2[0] || c2, v2 = []; 6469 for (n = 0; n < p2; n++) i2 = e.charCodeAt(n), "function" == typeof a2.metadata.widthOfString ? v2.push((a2.metadata.widthOfGlyph(a2.metadata.characterToGlyph(i2)) + s2 * (1e3 / o2) || 0) / 1e3) : (d2 = f2 && "object" === _typeof(l2[i2]) && !isNaN(parseInt(l2[i2][g2], 10)) ? l2[i2][g2] / h2 : 0, v2.push((u2[i2] || m2) / c2 + d2)), g2 = i2; 6470 return v2; 6471}, Ht = zt.getStringUnitWidth = function(t2, e) { 6472 var r = (e = e || {}).fontSize || this.internal.getFontSize(), n = e.font || this.internal.getFont(), i2 = e.charSpace || this.internal.getCharSpace(); 6473 return zt.processArabic && (t2 = zt.processArabic(t2)), "function" == typeof n.metadata.widthOfString ? n.metadata.widthOfString(t2, r, i2) / r : Ut.apply(this, arguments).reduce(function(t3, e2) { 6474 return t3 + e2; 6475 }, 0); 6476}, Wt = function(t2, e, r, n) { 6477 for (var i2 = [], a2 = 0, o2 = t2.length, s2 = 0; a2 !== o2 && s2 + e[a2] < r; ) s2 += e[a2], a2++; 6478 i2.push(t2.slice(0, a2)); 6479 var u2 = a2; 6480 for (s2 = 0; a2 !== o2; ) s2 + e[a2] > n && (i2.push(t2.slice(u2, a2)), s2 = 0, u2 = a2), s2 += e[a2], a2++; 6481 return u2 !== a2 && i2.push(t2.slice(u2, a2)), i2; 6482}, Vt = function(t2, e, r) { 6483 r || (r = {}); 6484 var n, i2, a2, o2, s2, u2, c2, l2 = [], h2 = [l2], f2 = r.textIndent || 0, d2 = 0, p2 = 0, g2 = t2.split(" "), m2 = Ut.apply(this, [" ", r])[0]; 6485 if (u2 = -1 === r.lineIndent ? g2[0].length + 2 : r.lineIndent || 0) { 6486 var v2 = Array(u2).join(" "), b2 = []; 6487 g2.map(function(t3) { 6488 (t3 = t3.split(/\s*\n/)).length > 1 ? b2 = b2.concat(t3.map(function(t4, e2) { 6489 return (e2 && t4.length ? "\n" : "") + t4; 6490 })) : b2.push(t3[0]); 6491 }), g2 = b2, u2 = Ht.apply(this, [v2, r]); 6492 } 6493 for (a2 = 0, o2 = g2.length; a2 < o2; a2++) { 6494 var y2 = 0; 6495 if (n = g2[a2], u2 && "\n" == n[0] && (n = n.substr(1), y2 = 1), f2 + d2 + (p2 = (i2 = Ut.apply(this, [n, r])).reduce(function(t3, e2) { 6496 return t3 + e2; 6497 }, 0)) > e || y2) { 6498 if (p2 > e) { 6499 for (s2 = Wt.apply(this, [n, i2, e - (f2 + d2), e]), l2.push(s2.shift()), l2 = [s2.pop()]; s2.length; ) h2.push([s2.shift()]); 6500 p2 = i2.slice(n.length - (l2[0] ? l2[0].length : 0)).reduce(function(t3, e2) { 6501 return t3 + e2; 6502 }, 0); 6503 } else l2 = [n]; 6504 h2.push(l2), f2 = p2 + u2, d2 = m2; 6505 } else l2.push(n), f2 += d2 + p2, d2 = m2; 6506 } 6507 return c2 = u2 ? function(t3, e2) { 6508 return (e2 ? v2 : "") + t3.join(" "); 6509 } : function(t3) { 6510 return t3.join(" "); 6511 }, h2.map(c2); 6512}, zt.splitTextToSize = function(t2, e, r) { 6513 var n, i2 = (r = r || {}).fontSize || this.internal.getFontSize(), a2 = (function(t3) { 6514 if (t3.widths && t3.kerning) return { widths: t3.widths, kerning: t3.kerning }; 6515 var e2 = this.internal.getFont(t3.fontName, t3.fontStyle), r2 = "Unicode"; 6516 return e2.metadata[r2] ? { widths: e2.metadata[r2].widths || { 0: 1 }, kerning: e2.metadata[r2].kerning || {} } : { font: e2.metadata, fontSize: this.internal.getFontSize(), charSpace: this.internal.getCharSpace() }; 6517 }).call(this, r); 6518 n = Array.isArray(t2) ? t2 : String(t2).split(/\r?\n/); 6519 var o2 = 1 * this.internal.scaleFactor * e / i2; 6520 a2.textIndent = r.textIndent ? 1 * r.textIndent * this.internal.scaleFactor / i2 : 0, a2.lineIndent = r.lineIndent; 6521 var s2, u2, c2 = []; 6522 for (s2 = 0, u2 = n.length; s2 < u2; s2++) c2 = c2.concat(Vt.apply(this, [n[s2], o2, a2])); 6523 return c2; 6524}, function(e) { 6525 e.__fontmetrics__ = e.__fontmetrics__ || {}; 6526 for (var r = "0123456789abcdef", n = "klmnopqrstuvwxyz", i2 = {}, a2 = {}, o2 = 0; o2 < 16; o2++) i2[n[o2]] = r[o2], a2[r[o2]] = n[o2]; 6527 var s2 = function(t2) { 6528 return "0x" + parseInt(t2, 10).toString(16); 6529 }, u2 = e.__fontmetrics__.compress = function(e2) { 6530 var r2, n2, i3, o3, c3 = ["{"]; 6531 for (var l3 in e2) { 6532 if (r2 = e2[l3], isNaN(parseInt(l3, 10)) ? n2 = "'" + l3 + "'" : (l3 = parseInt(l3, 10), n2 = (n2 = s2(l3).slice(2)).slice(0, -1) + a2[n2.slice(-1)]), "number" == typeof r2) r2 < 0 ? (i3 = s2(r2).slice(3), o3 = "-") : (i3 = s2(r2).slice(2), o3 = ""), i3 = o3 + i3.slice(0, -1) + a2[i3.slice(-1)]; 6533 else { 6534 if ("object" !== _typeof(r2)) throw new Error("Don't know what to do with value type " + _typeof(r2) + "."); 6535 i3 = u2(r2); 6536 } 6537 c3.push(n2 + i3); 6538 } 6539 return c3.push("}"), c3.join(""); 6540 }, c2 = e.__fontmetrics__.uncompress = function(t2) { 6541 if ("string" != typeof t2) throw new Error("Invalid argument passed to uncompress."); 6542 for (var e2, r2, n2, a3, o3 = {}, s3 = 1, u3 = o3, c3 = [], l3 = "", h3 = "", f3 = t2.length - 1, d2 = 1; d2 < f3; d2 += 1) "'" == (a3 = t2[d2]) ? e2 ? (n2 = e2.join(""), e2 = void 0) : e2 = [] : e2 ? e2.push(a3) : "{" == a3 ? (c3.push([u3, n2]), u3 = {}, n2 = void 0) : "}" == a3 ? ((r2 = c3.pop())[0][r2[1]] = u3, n2 = void 0, u3 = r2[0]) : "-" == a3 ? s3 = -1 : void 0 === n2 ? i2.hasOwnProperty(a3) ? (l3 += i2[a3], n2 = parseInt(l3, 16) * s3, s3 = 1, l3 = "") : l3 += a3 : i2.hasOwnProperty(a3) ? (h3 += i2[a3], u3[n2] = parseInt(h3, 16) * s3, s3 = 1, n2 = void 0, h3 = "") : h3 += a3; 6543 return o3; 6544 }, l2 = { codePages: ["WinAnsiEncoding"], WinAnsiEncoding: c2("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}") }, h2 = { Unicode: { Courier: l2, "Courier-Bold": l2, "Courier-BoldOblique": l2, "Courier-Oblique": l2, Helvetica: l2, "Helvetica-Bold": l2, "Helvetica-BoldOblique": l2, "Helvetica-Oblique": l2, "Times-Roman": l2, "Times-Bold": l2, "Times-BoldItalic": l2, "Times-Italic": l2 } }, f2 = { Unicode: { "Courier-Oblique": c2("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-BoldItalic": c2("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"), "Helvetica-Bold": c2("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"), Courier: c2("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Courier-BoldOblique": c2("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-Bold": c2("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"), Symbol: c2("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"), Helvetica: c2("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"), "Helvetica-BoldOblique": c2("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"), ZapfDingbats: c2("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"), "Courier-Bold": c2("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-Italic": c2("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"), "Times-Roman": c2("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"), "Helvetica-Oblique": c2("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}") } }; 6545 e.events.push(["addFont", function(t2) { 6546 var e2 = t2.font, r2 = f2.Unicode[e2.postScriptName]; 6547 r2 && (e2.metadata.Unicode = {}, e2.metadata.Unicode.widths = r2.widths, e2.metadata.Unicode.kerning = r2.kerning); 6548 var n2 = h2.Unicode[e2.postScriptName]; 6549 n2 && (e2.metadata.Unicode.encoding = n2, e2.encoding = n2.codePages[0]); 6550 }]); 6551}
vendor: 37,919 bytes, lines 6551-6919
6551(E.API), /** 6552 * @license 6553 * Licensed under the MIT License. 6554 * http://opensource.org/licenses/mit-license 6555 */ 6556function(t2) { 6557 var e = function(t3) { 6558 for (var e2 = t3.length, r = new Uint8Array(e2), n = 0; n < e2; n++) r[n] = t3.charCodeAt(n); 6559 return r; 6560 }; 6561 t2.API.events.push(["addFont", function(r) { 6562 var n = void 0, i2 = r.font, a2 = r.instance; 6563 if (!i2.isStandardFont) { 6564 if (void 0 === a2) throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('" + i2.postScriptName + "')."); 6565 if ("string" != typeof (n = false === a2.existsFileInVFS(i2.postScriptName) ? a2.loadFile(i2.postScriptName) : a2.getFileFromVFS(i2.postScriptName))) throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('" + i2.postScriptName + "')."); 6566 !function(r2, n2) { 6567 n2 = /^\x00\x01\x00\x00/.test(n2) ? e(n2) : e(f(n2)), r2.metadata = t2.API.TTFFont.open(n2), r2.metadata.Unicode = r2.metadata.Unicode || { encoding: {}, kerning: {}, widths: [] }, r2.metadata.glyIdsUsed = [0]; 6568 }(i2, n); 6569 } 6570 }]); 6571}(E), E.API.addSvgAsImage = function(t2, e, r, n, a2, s2, u2, c2) { 6572 if (isNaN(e) || isNaN(r)) throw o.error("jsPDF.addSvgAsImage: Invalid coordinates", arguments), new Error("Invalid coordinates passed to jsPDF.addSvgAsImage"); 6573 if (isNaN(n) || isNaN(a2)) throw o.error("jsPDF.addSvgAsImage: Invalid measurements", arguments), new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage"); 6574 var l2 = document.createElement("canvas"); 6575 l2.width = n, l2.height = a2; 6576 var h2 = l2.getContext("2d"); 6577 h2.fillStyle = "#fff", h2.fillRect(0, 0, l2.width, l2.height); 6578 var f2 = { ignoreMouse: true, ignoreAnimation: true, ignoreDimensions: true }, d2 = this; 6579 return (i.canvg ? Promise.resolve(i.canvg) : __vitePreload(() => import("./vendor-dVNaLJx_.js").then((n2) => n2.gg), true ? __vite__mapDeps([0,1,2,3]) : void 0)).catch(function(t3) { 6580 return Promise.reject(new Error("Could not load canvg: " + t3)); 6581 }).then(function(t3) { 6582 return t3.default ? t3.default : t3; 6583 }).then(function(e2) { 6584 return e2.fromString(h2, t2, f2); 6585 }, function() { 6586 return Promise.reject(new Error("Could not load canvg.")); 6587 }).then(function(t3) { 6588 return t3.render(f2); 6589 }).then(function() { 6590 d2.addImage(l2.toDataURL("image/jpeg", 1), e, r, n, a2, u2, c2); 6591 }); 6592}, E.API.putTotalPages = function(t2) { 6593 var e, r = 0; 6594 parseInt(this.internal.getFont().id.substr(1), 10) < 15 ? (e = new RegExp(t2, "g"), r = this.internal.getNumberOfPages()) : (e = new RegExp(this.pdfEscape16(t2, this.internal.getFont()), "g"), r = this.pdfEscape16(this.internal.getNumberOfPages() + "", this.internal.getFont())); 6595 for (var n = 1; n <= this.internal.getNumberOfPages(); n++) for (var i2 = 0; i2 < this.internal.pages[n].length; i2++) this.internal.pages[n][i2] = this.internal.pages[n][i2].replace(e, r); 6596 return this; 6597}, E.API.viewerPreferences = function(e, r) { 6598 var n; 6599 e = e || {}, r = r || false; 6600 var i2, a2, o2, s2 = { HideToolbar: { defaultValue: false, value: false, type: "boolean", explicitSet: false, valueSet: [true, false], pdfVersion: 1.3 }, HideMenubar: { defaultValue: false, value: false, type: "boolean", explicitSet: false, valueSet: [true, false], pdfVersion: 1.3 }, HideWindowUI: { defaultValue: false, value: false, type: "boolean", explicitSet: false, valueSet: [true, false], pdfVersion: 1.3 }, FitWindow: { defaultValue: false, value: false, type: "boolean", explicitSet: false, valueSet: [true, false], pdfVersion: 1.3 }, CenterWindow: { defaultValue: false, value: false, type: "boolean", explicitSet: false, valueSet: [true, false], pdfVersion: 1.3 }, DisplayDocTitle: { defaultValue: false, value: false, type: "boolean", explicitSet: false, valueSet: [true, false], pdfVersion: 1.4 }, NonFullScreenPageMode: { defaultValue: "UseNone", value: "UseNone", type: "name", explicitSet: false, valueSet: ["UseNone", "UseOutlines", "UseThumbs", "UseOC"], pdfVersion: 1.3 }, Direction: { defaultValue: "L2R", value: "L2R", type: "name", explicitSet: false, valueSet: ["L2R", "R2L"], pdfVersion: 1.3 }, ViewArea: { defaultValue: "CropBox", value: "CropBox", type: "name", explicitSet: false, valueSet: ["MediaBox", "CropBox", "TrimBox", "BleedBox", "ArtBox"], pdfVersion: 1.4 }, ViewClip: { defaultValue: "CropBox", value: "CropBox", type: "name", explicitSet: false, valueSet: ["MediaBox", "CropBox", "TrimBox", "BleedBox", "ArtBox"], pdfVersion: 1.4 }, PrintArea: { defaultValue: "CropBox", value: "CropBox", type: "name", explicitSet: false, valueSet: ["MediaBox", "CropBox", "TrimBox", "BleedBox", "ArtBox"], pdfVersion: 1.4 }, PrintClip: { defaultValue: "CropBox", value: "CropBox", type: "name", explicitSet: false, valueSet: ["MediaBox", "CropBox", "TrimBox", "BleedBox", "ArtBox"], pdfVersion: 1.4 }, PrintScaling: { defaultValue: "AppDefault", value: "AppDefault", type: "name", explicitSet: false, valueSet: ["AppDefault", "None"], pdfVersion: 1.6 }, Duplex: { defaultValue: "", value: "none", type: "name", explicitSet: false, valueSet: ["Simplex", "DuplexFlipShortEdge", "DuplexFlipLongEdge", "none"], pdfVersion: 1.7 }, PickTrayByPDFSize: { defaultValue: false, value: false, type: "boolean", explicitSet: false, valueSet: [true, false], pdfVersion: 1.7 }, PrintPageRange: { defaultValue: "", value: "", type: "array", explicitSet: false, valueSet: null, pdfVersion: 1.7 }, NumCopies: { defaultValue: 1, value: 1, type: "integer", explicitSet: false, valueSet: null, pdfVersion: 1.7 } }, u2 = Object.keys(s2), c2 = [], l2 = 0, h2 = 0, f2 = 0; 6601 function d2(t2, e2) { 6602 var r2, n2 = false; 6603 for (r2 = 0; r2 < t2.length; r2 += 1) t2[r2] === e2 && (n2 = true); 6604 return n2; 6605 } 6606 if (void 0 === this.internal.viewerpreferences && (this.internal.viewerpreferences = {}, this.internal.viewerpreferences.configuration = JSON.parse(JSON.stringify(s2)), this.internal.viewerpreferences.isSubscribed = false), n = this.internal.viewerpreferences.configuration, "reset" === e || true === r) { 6607 var p2 = u2.length; 6608 for (f2 = 0; f2 < p2; f2 += 1) n[u2[f2]].value = n[u2[f2]].defaultValue, n[u2[f2]].explicitSet = false; 6609 } 6610 if ("object" === _typeof(e)) { 6611 for (a2 in e) if (o2 = e[a2], d2(u2, a2) && void 0 !== o2) { 6612 if ("boolean" === n[a2].type && "boolean" == typeof o2) n[a2].value = o2; 6613 else if ("name" === n[a2].type && d2(n[a2].valueSet, o2)) n[a2].value = o2; 6614 else if ("integer" === n[a2].type && Number.isInteger(o2)) n[a2].value = o2; 6615 else if ("array" === n[a2].type) { 6616 for (l2 = 0; l2 < o2.length; l2 += 1) if (i2 = true, 1 === o2[l2].length && "number" == typeof o2[l2][0]) c2.push(String(o2[l2] - 1)); 6617 else if (o2[l2].length > 1) { 6618 for (h2 = 0; h2 < o2[l2].length; h2 += 1) "number" != typeof o2[l2][h2] && (i2 = false); 6619 true === i2 && c2.push([o2[l2][0] - 1, o2[l2][1] - 1].join(" ")); 6620 } 6621 n[a2].value = "[" + c2.join(" ") + "]"; 6622 } else n[a2].value = n[a2].defaultValue; 6623 n[a2].explicitSet = true; 6624 } 6625 } 6626 return false === this.internal.viewerpreferences.isSubscribed && (this.internal.events.subscribe("putCatalog", function() { 6627 var t2, e2 = []; 6628 for (t2 in n) true === n[t2].explicitSet && ("name" === n[t2].type ? e2.push("/" + t2 + " /" + n[t2].value) : e2.push("/" + t2 + " " + n[t2].value)); 6629 0 !== e2.length && this.internal.write("/ViewerPreferences\n<<\n" + e2.join("\n") + "\n>>"); 6630 }), this.internal.viewerpreferences.isSubscribed = true), this.internal.viewerpreferences.configuration = n, this; 6631}, E.API.addMetadata = function(t2, e) { 6632 return void 0 === this.internal.__metadata__ && (this.internal.__metadata__ = { metadata: t2, namespaceUri: null != e ? e : "http://jspdf.default.namespaceuri/", rawXml: "boolean" == typeof e && e }, this.internal.events.subscribe("putCatalog", le), this.internal.events.subscribe("postPutResources", ce)), this; 6633}, function(t2) { 6634 var e = t2.API, r = e.pdfEscape16 = function(t3, e2) { 6635 for (var r2, n2 = e2.metadata.Unicode.widths, i3 = ["", "0", "00", "000", "0000"], a2 = [""], o2 = 0, s2 = t3.length; o2 < s2; ++o2) { 6636 if (r2 = e2.metadata.characterToGlyph(t3.charCodeAt(o2)), e2.metadata.glyIdsUsed.push(r2), e2.metadata.toUnicode[r2] = t3.charCodeAt(o2), -1 == n2.indexOf(r2) && (n2.push(r2), n2.push([parseInt(e2.metadata.widthOfGlyph(r2), 10)])), "0" == r2) return a2.join(""); 6637 r2 = r2.toString(16), a2.push(i3[4 - r2.length], r2); 6638 } 6639 return a2.join(""); 6640 }, n = function(t3) { 6641 var e2, r2, n2, i3, a2, o2, s2; 6642 for (a2 = "/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange", n2 = [], o2 = 0, s2 = (r2 = Object.keys(t3).sort(function(t4, e3) { 6643 return t4 - e3; 6644 })).length; o2 < s2; o2++) e2 = r2[o2], n2.length >= 100 && (a2 += "\n" + n2.length + " beginbfchar\n" + n2.join("\n") + "\nendbfchar", n2 = []), void 0 !== t3[e2] && null !== t3[e2] && "function" == typeof t3[e2].toString && (i3 = ("0000" + t3[e2].toString(16)).slice(-4), e2 = ("0000" + (+e2).toString(16)).slice(-4), n2.push("<" + e2 + "><" + i3 + ">")); 6645 return n2.length && (a2 += "\n" + n2.length + " beginbfchar\n" + n2.join("\n") + "\nendbfchar\n"), a2 + "endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"; 6646 }; 6647 e.events.push(["putFont", function(e2) { 6648 !function(e3) { 6649 var r2 = e3.font, i3 = e3.out, a2 = e3.newObject, o2 = e3.putStream; 6650 if (r2.metadata instanceof t2.API.TTFFont && "Identity-H" === r2.encoding) { 6651 for (var s2 = r2.metadata.Unicode.widths, u2 = r2.metadata.subset.encode(r2.metadata.glyIdsUsed, 1), c2 = "", l2 = 0; l2 < u2.length; l2++) c2 += String.fromCharCode(u2[l2]); 6652 var h2 = a2(); 6653 o2({ data: c2, addLength1: true, objectId: h2 }), i3("endobj"); 6654 var f2 = a2(); 6655 o2({ data: n(r2.metadata.toUnicode), addLength1: true, objectId: f2 }), i3("endobj"); 6656 var d2 = a2(); 6657 i3("<<"), i3("/Type /FontDescriptor"), i3("/FontName /" + C(r2.fontName)), i3("/FontFile2 " + h2 + " 0 R"), i3("/FontBBox " + t2.API.PDFObject.convert(r2.metadata.bbox)), i3("/Flags " + r2.metadata.flags), i3("/StemV " + r2.metadata.stemV), i3("/ItalicAngle " + r2.metadata.italicAngle), i3("/Ascent " + r2.metadata.ascender), i3("/Descent " + r2.metadata.decender), i3("/CapHeight " + r2.metadata.capHeight), i3(">>"), i3("endobj"); 6658 var p2 = a2(); 6659 i3("<<"), i3("/Type /Font"), i3("/BaseFont /" + C(r2.fontName)), i3("/FontDescriptor " + d2 + " 0 R"), i3("/W " + t2.API.PDFObject.convert(s2)), i3("/CIDToGIDMap /Identity"), i3("/DW 1000"), i3("/Subtype /CIDFontType2"), i3("/CIDSystemInfo"), i3("<<"), i3("/Supplement 0"), i3("/Registry (Adobe)"), i3("/Ordering (" + r2.encoding + ")"), i3(">>"), i3(">>"), i3("endobj"), r2.objectNumber = a2(), i3("<<"), i3("/Type /Font"), i3("/Subtype /Type0"), i3("/ToUnicode " + f2 + " 0 R"), i3("/BaseFont /" + C(r2.fontName)), i3("/Encoding /" + r2.encoding), i3("/DescendantFonts [" + p2 + " 0 R]"), i3(">>"), i3("endobj"), r2.isAlreadyPutted = true; 6660 } 6661 }(e2); 6662 }]), e.events.push(["putFont", function(e2) { 6663 !function(e3) { 6664 var r2 = e3.font, i3 = e3.out, a2 = e3.newObject, o2 = e3.putStream; 6665 if (r2.metadata instanceof t2.API.TTFFont && "WinAnsiEncoding" === r2.encoding) { 6666 for (var s2 = r2.metadata.rawData, u2 = "", c2 = 0; c2 < s2.length; c2++) u2 += String.fromCharCode(s2[c2]); 6667 var l2 = a2(); 6668 o2({ data: u2, addLength1: true, objectId: l2 }), i3("endobj"); 6669 var h2 = a2(); 6670 o2({ data: n(r2.metadata.toUnicode), addLength1: true, objectId: h2 }), i3("endobj"); 6671 var f2 = a2(); 6672 i3("<<"), i3("/Descent " + r2.metadata.decender), i3("/CapHeight " + r2.metadata.capHeight), i3("/StemV " + r2.metadata.stemV), i3("/Type /FontDescriptor"), i3("/FontFile2 " + l2 + " 0 R"), i3("/Flags 96"), i3("/FontBBox " + t2.API.PDFObject.convert(r2.metadata.bbox)), i3("/FontName /" + C(r2.fontName)), i3("/ItalicAngle " + r2.metadata.italicAngle), i3("/Ascent " + r2.metadata.ascender), i3(">>"), i3("endobj"), r2.objectNumber = a2(); 6673 for (var d2 = 0; d2 < r2.metadata.hmtx.widths.length; d2++) r2.metadata.hmtx.widths[d2] = parseInt(r2.metadata.hmtx.widths[d2] * (1e3 / r2.metadata.head.unitsPerEm)); 6674 i3("<</Subtype/TrueType/Type/Font/ToUnicode " + h2 + " 0 R/BaseFont/" + C(r2.fontName) + "/FontDescriptor " + f2 + " 0 R/Encoding/" + r2.encoding + " /FirstChar 29 /LastChar 255 /Widths " + t2.API.PDFObject.convert(r2.metadata.hmtx.widths) + ">>"), i3("endobj"), r2.isAlreadyPutted = true; 6675 } 6676 }(e2); 6677 }]); 6678 var i2 = function(t3) { 6679 var e2, n2 = t3.text || "", i3 = t3.x, a2 = t3.y, o2 = t3.options || {}, s2 = t3.mutex || {}, u2 = s2.pdfEscape, c2 = s2.activeFontKey, l2 = s2.fonts, h2 = c2, f2 = "", d2 = 0, p2 = "", g2 = l2[h2].encoding; 6680 if ("Identity-H" !== l2[h2].encoding) return { text: n2, x: i3, y: a2, options: o2, mutex: s2 }; 6681 for (p2 = n2, h2 = c2, Array.isArray(n2) && (p2 = n2[0]), d2 = 0; d2 < p2.length; d2 += 1) l2[h2].metadata.hasOwnProperty("cmap") && (e2 = l2[h2].metadata.cmap.unicode.codeMap[p2[d2].charCodeAt(0)]), e2 || p2[d2].charCodeAt(0) < 256 && l2[h2].metadata.hasOwnProperty("Unicode") ? f2 += p2[d2] : f2 += ""; 6682 var m2 = ""; 6683 return parseInt(h2.slice(1)) < 14 || "WinAnsiEncoding" === g2 ? m2 = u2(f2, h2).split("").map(function(t4) { 6684 return t4.charCodeAt(0).toString(16); 6685 }).join("") : "Identity-H" === g2 && (m2 = r(f2, l2[h2])), s2.isHex = true, { text: m2, x: i3, y: a2, options: o2, mutex: s2 }; 6686 }; 6687 e.events.push(["postProcessText", function(t3) { 6688 var e2 = t3.text || "", r2 = [], n2 = { text: e2, x: t3.x, y: t3.y, options: t3.options, mutex: t3.mutex }; 6689 if (Array.isArray(e2)) { 6690 var a2 = 0; 6691 for (a2 = 0; a2 < e2.length; a2 += 1) Array.isArray(e2[a2]) && 3 === e2[a2].length ? r2.push([i2(Object.assign({}, n2, { text: e2[a2][0] })).text, e2[a2][1], e2[a2][2]]) : r2.push(i2(Object.assign({}, n2, { text: e2[a2] })).text); 6692 t3.text = r2; 6693 } else t3.text = i2(Object.assign({}, n2, { text: e2 })).text; 6694 }]); 6695}(E), /** 6696 * @license 6697 * jsPDF virtual FileSystem functionality 6698 * 6699 * Licensed under the MIT License. 6700 * http://opensource.org/licenses/mit-license 6701 */ 6702function(t2) { 6703 var e = function() { 6704 return void 0 === this.internal.vFS && (this.internal.vFS = {}), true; 6705 }; 6706 t2.existsFileInVFS = function(t3) { 6707 return e.call(this), void 0 !== this.internal.vFS[t3]; 6708 }, t2.addFileToVFS = function(t3, r) { 6709 return e.call(this), this.internal.vFS[t3] = r, this; 6710 }, t2.getFileFromVFS = function(t3) { 6711 return e.call(this), void 0 !== this.internal.vFS[t3] ? this.internal.vFS[t3] : null; 6712 }; 6713}(E.API), /** 6714 * @license 6715 * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis) 6716 * MIT License 6717 */ 6718function(t2) { 6719 t2.__bidiEngine__ = t2.prototype.__bidiEngine__ = function(t3) { 6720 var r2, n, i2, a2, o2, s2, u2, c2 = e, l2 = [[0, 3, 0, 1, 0, 0, 0], [0, 3, 0, 1, 2, 2, 0], [0, 3, 0, 17, 2, 0, 1], [0, 3, 5, 5, 4, 1, 0], [0, 3, 21, 21, 4, 0, 1], [0, 3, 5, 5, 4, 2, 0]], h2 = [[2, 0, 1, 1, 0, 1, 0], [2, 0, 1, 1, 0, 2, 0], [2, 0, 2, 1, 3, 2, 0], [2, 0, 2, 33, 3, 1, 1]], f2 = { L: 0, R: 1, EN: 2, AN: 3, N: 4, B: 5, S: 6 }, d2 = { 0: 0, 5: 1, 6: 2, 7: 3, 32: 4, 251: 5, 254: 6, 255: 7 }, p2 = ["(", ")", "(", "<", ">", "<", "[", "]", "[", "{", "}", "{", "«", "»", "«", "â¹", "âº", "â¹", "â ", "â", "â ", "â½", "â¾", "â½", "â", "â", "â", "â¤", "â¥", "â¤", "â©", "âª", "â©", "ï¹", "ï¹", "ï¹", "ï¹", "ï¹", "ï¹", "ï¹", "ï¹", "ï¹", "﹤", "ï¹¥", "﹤"], g2 = new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/), m2 = false, v2 = 0; 6721 this.__bidiEngine__ = {}; 6722 var b2 = function(t4) { 6723 var e2 = t4.charCodeAt(), r3 = e2 >> 8, n2 = d2[r3]; 6724 return void 0 !== n2 ? c2[256 * n2 + (255 & e2)] : 252 === r3 || 253 === r3 ? "AL" : g2.test(r3) ? "L" : 8 === r3 ? "R" : "N"; 6725 }, y2 = function(t4) { 6726 for (var e2, r3 = 0; r3 < t4.length; r3++) { 6727 if ("L" === (e2 = b2(t4.charAt(r3)))) return false; 6728 if ("R" === e2) return true; 6729 } 6730 return false; 6731 }, w2 = function(t4, e2, o3, s3) { 6732 var u3, c3, l3, h3, f3 = e2[s3]; 6733 switch (f3) { 6734 case "L": 6735 case "R": 6736 case "LRE": 6737 case "RLE": 6738 case "LRO": 6739 case "RLO": 6740 case "PDF": 6741 m2 = false; 6742 break; 6743 case "N": 6744 case "AN": 6745 break; 6746 case "EN": 6747 m2 && (f3 = "AN"); 6748 break; 6749 case "AL": 6750 m2 = true, f3 = "R"; 6751 break; 6752 case "WS": 6753 case "BN": 6754 f3 = "N"; 6755 break; 6756 case "CS": 6757 s3 < 1 || s3 + 1 >= e2.length || "EN" !== (u3 = o3[s3 - 1]) && "AN" !== u3 || "EN" !== (c3 = e2[s3 + 1]) && "AN" !== c3 ? f3 = "N" : m2 && (c3 = "AN"), f3 = c3 === u3 ? c3 : "N"; 6758 break; 6759 case "ES": 6760 f3 = "EN" === (u3 = s3 > 0 ? o3[s3 - 1] : "B") && s3 + 1 < e2.length && "EN" === e2[s3 + 1] ? "EN" : "N"; 6761 break; 6762 case "ET": 6763 if (s3 > 0 && "EN" === o3[s3 - 1]) { 6764 f3 = "EN"; 6765 break; 6766 } 6767 if (m2) { 6768 f3 = "N"; 6769 break; 6770 } 6771 for (l3 = s3 + 1, h3 = e2.length; l3 < h3 && "ET" === e2[l3]; ) l3++; 6772 f3 = l3 < h3 && "EN" === e2[l3] ? "EN" : "N"; 6773 break; 6774 case "NSM": 6775 if (i2 && !a2) { 6776 for (h3 = e2.length, l3 = s3 + 1; l3 < h3 && "NSM" === e2[l3]; ) l3++; 6777 if (l3 < h3) { 6778 var d3 = t4[s3], p3 = d3 >= 1425 && d3 <= 2303 || 64286 === d3; 6779 if (u3 = e2[l3], p3 && ("R" === u3 || "AL" === u3)) { 6780 f3 = "R"; 6781 break; 6782 } 6783 } 6784 } 6785 f3 = s3 < 1 || "B" === (u3 = e2[s3 - 1]) ? "N" : o3[s3 - 1]; 6786 break; 6787 case "B": 6788 m2 = false, r2 = true, f3 = v2; 6789 break; 6790 case "S": 6791 n = true, f3 = "N"; 6792 } 6793 return f3; 6794 }, N2 = function(t4, e2, r3) { 6795 var n2 = t4.split(""); 6796 return r3 && L2(n2, r3, { hiLevel: v2 }), n2.reverse(), e2 && e2.reverse(), n2.join(""); 6797 }, L2 = function(t4, e2, i3) { 6798 var a3, o3, s3, u3, c3, d3 = -1, p3 = t4.length, g3 = 0, y3 = [], N3 = v2 ? h2 : l2, L3 = []; 6799 for (m2 = false, r2 = false, n = false, o3 = 0; o3 < p3; o3++) L3[o3] = b2(t4[o3]); 6800 for (s3 = 0; s3 < p3; s3++) { 6801 if (c3 = g3, y3[s3] = w2(t4, L3, y3, s3), a3 = 240 & (g3 = N3[c3][f2[y3[s3]]]), g3 &= 15, e2[s3] = u3 = N3[g3][5], a3 > 0) if (16 === a3) { 6802 for (o3 = d3; o3 < s3; o3++) e2[o3] = 1; 6803 d3 = -1; 6804 } else d3 = -1; 6805 if (N3[g3][6]) -1 === d3 && (d3 = s3); 6806 else if (d3 > -1) { 6807 for (o3 = d3; o3 < s3; o3++) e2[o3] = u3; 6808 d3 = -1; 6809 } 6810 "B" === L3[s3] && (e2[s3] = 0), i3.hiLevel |= u3; 6811 } 6812 n && function(t5, e3, r3) { 6813 for (var n2 = 0; n2 < r3; n2++) if ("S" === t5[n2]) { 6814 e3[n2] = v2; 6815 for (var i4 = n2 - 1; i4 >= 0 && "WS" === t5[i4]; i4--) e3[i4] = v2; 6816 } 6817 }(L3, e2, p3); 6818 }, x2 = function(t4, e2, n2, i3, a3) { 6819 if (!(a3.hiLevel < t4)) { 6820 if (1 === t4 && 1 === v2 && !r2) return e2.reverse(), void (n2 && n2.reverse()); 6821 for (var o3, s3, u3, c3, l3 = e2.length, h3 = 0; h3 < l3; ) { 6822 if (i3[h3] >= t4) { 6823 for (u3 = h3 + 1; u3 < l3 && i3[u3] >= t4; ) u3++; 6824 for (c3 = h3, s3 = u3 - 1; c3 < s3; c3++, s3--) o3 = e2[c3], e2[c3] = e2[s3], e2[s3] = o3, n2 && (o3 = n2[c3], n2[c3] = n2[s3], n2[s3] = o3); 6825 h3 = u3; 6826 } 6827 h3++; 6828 } 6829 } 6830 }, A2 = function(t4, e2, r3) { 6831 var n2 = t4.split(""), i3 = { hiLevel: v2 }; 6832 return r3 || (r3 = []), L2(n2, r3, i3), function(t5, e3, r4) { 6833 if (0 !== r4.hiLevel && u2) for (var n3, i4 = 0; i4 < t5.length; i4++) 1 === e3[i4] && (n3 = p2.indexOf(t5[i4])) >= 0 && (t5[i4] = p2[n3 + 1]); 6834 }(n2, r3, i3), x2(2, n2, e2, r3, i3), x2(1, n2, e2, r3, i3), n2.join(""); 6835 }; 6836 return this.__bidiEngine__.doBidiReorder = function(t4, e2, r3) { 6837 if (function(t5, e3) { 6838 if (e3) for (var r4 = 0; r4 < t5.length; r4++) e3[r4] = r4; 6839 void 0 === a2 && (a2 = y2(t5)), void 0 === s2 && (s2 = y2(t5)); 6840 }(t4, e2), i2 || !o2 || s2) if (i2 && o2 && a2 ^ s2) v2 = a2 ? 1 : 0, t4 = N2(t4, e2, r3); 6841 else if (!i2 && o2 && s2) v2 = a2 ? 1 : 0, t4 = A2(t4, e2, r3), t4 = N2(t4, e2); 6842 else if (!i2 || a2 || o2 || s2) { 6843 if (i2 && !o2 && a2 ^ s2) t4 = N2(t4, e2), a2 ? (v2 = 0, t4 = A2(t4, e2, r3)) : (v2 = 1, t4 = A2(t4, e2, r3), t4 = N2(t4, e2)); 6844 else if (i2 && a2 && !o2 && s2) v2 = 1, t4 = A2(t4, e2, r3), t4 = N2(t4, e2); 6845 else if (!i2 && !o2 && a2 ^ s2) { 6846 var n2 = u2; 6847 a2 ? (v2 = 1, t4 = A2(t4, e2, r3), v2 = 0, u2 = false, t4 = A2(t4, e2, r3), u2 = n2) : (v2 = 0, t4 = A2(t4, e2, r3), t4 = N2(t4, e2), v2 = 1, u2 = false, t4 = A2(t4, e2, r3), u2 = n2, t4 = N2(t4, e2)); 6848 } 6849 } else v2 = 0, t4 = A2(t4, e2, r3); 6850 else v2 = a2 ? 1 : 0, t4 = A2(t4, e2, r3); 6851 return t4; 6852 }, this.__bidiEngine__.setOptions = function(t4) { 6853 t4 && (i2 = t4.isInputVisual, o2 = t4.isOutputVisual, a2 = t4.isInputRtl, s2 = t4.isOutputRtl, u2 = t4.isSymmetricSwapping); 6854 }, this.__bidiEngine__.setOptions(t3), this.__bidiEngine__; 6855 }; 6856 var e = ["BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "S", "B", "S", "WS", "B", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "B", "B", "B", "S", "WS", "N", "N", "ET", "ET", "ET", "N", "N", "N", "N", "N", "ES", "CS", "ES", "CS", "CS", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "CS", "N", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "N", "N", "N", "BN", "BN", "BN", "BN", "BN", "BN", "B", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "CS", "N", "ET", "ET", "ET", "ET", "N", "N", "N", "N", "L", "N", "N", "BN", "N", "N", "ET", "ET", "EN", "EN", "N", "L", "N", "N", "N", "EN", "L", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "N", "L", "L", "L", "L", "L", "L", "L", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "L", "N", "N", "N", "N", "N", "ET", "N", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "R", "NSM", "R", "NSM", "NSM", "R", "NSM", "NSM", "R", "NSM", "N", "N", "N", "N", "N", "N", "N", "N", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "N", "N", "N", "N", "N", "R", "R", "R", "R", "R", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "AN", "AN", "AN", "AN", "AN", "AN", "N", "N", "AL", "ET", "ET", "AL", "CS", "AL", "N", "N", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AL", "AL", "N", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "ET", "AN", "AN", "AL", "AL", "AL", "NSM", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AN", "N", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AL", "AL", "NSM", "NSM", "N", "NSM", "NSM", "NSM", "NSM", "AL", "AL", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "N", "AL", "AL", "NSM", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "N", "N", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AL", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "R", "R", "N", "N", "N", "N", "R", "N", "N", "N", "N", "N", "WS", "WS", "WS", "WS", "WS", "WS", "WS", "WS", "WS", "WS", "WS", "BN", "BN", "BN", "L", "R", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "WS", "B", "LRE", "RLE", "PDF", "LRO", "RLO", "CS", "ET", "ET", "ET", "ET", "ET", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "CS", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "WS", "BN", "BN", "BN", "BN", "BN", "N", "LRI", "RLI", "FSI", "PDI", "BN", "BN", "BN", "BN", "BN", "BN", "EN", "L", "N", "N", "EN", "EN", "EN", "EN", "EN", "EN", "ES", "ES", "N", "N", "N", "L", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "ES", "ES", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "N", "N", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "N", "N", "N", "N", "N", "R", "NSM", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "ES", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "N", "R", "R", "R", "R", "R", "N", "R", "N", "R", "R", "N", "R", "R", "N", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "CS", "N", "CS", "N", "N", "CS", "N", "N", "N", "N", "N", "N", "N", "N", "N", "ET", "N", "N", "ES", "ES", "N", "N", "N", "N", "N", "ET", "ET", "N", "N", "N", "N", "N", "AL", "AL", "AL", "AL", "AL", "N", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "N", "N", "BN", "N", "N", "N", "ET", "ET", "ET", "N", "N", "N", "N", "N", "ES", "CS", "ES", "CS", "CS", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "CS", "N", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "N", "N", "L", "L", "L", "L", "L", "L", "N", "N", "L", "L", "L", "L", "L", "L", "N", "N", "L", "L", "L", "L", "L", "L", "N", "N", "L", "L", "L", "N", "N", "N", "ET", "ET", "N", "N", "N", "ET", "ET", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N"], r = new t2.__bidiEngine__({ isInputVisual: true }); 6857 t2.API.events.push(["postProcessText", function(t3) { 6858 var e2 = t3.text; 6859 t3.x, t3.y; 6860 var n = t3.options || {}; 6861 t3.mutex, n.lang; 6862 var i2 = []; 6863 if (n.isInputVisual = "boolean" != typeof n.isInputVisual || n.isInputVisual, r.setOptions(n), "[object Array]" === Object.prototype.toString.call(e2)) { 6864 var a2 = 0; 6865 for (i2 = [], a2 = 0; a2 < e2.length; a2 += 1) "[object Array]" === Object.prototype.toString.call(e2[a2]) ? i2.push([r.doBidiReorder(e2[a2][0]), e2[a2][1], e2[a2][2]]) : i2.push([r.doBidiReorder(e2[a2])]); 6866 t3.text = i2; 6867 } else t3.text = r.doBidiReorder(e2); 6868 r.setOptions({ isInputVisual: true }); 6869 }]); 6870}(E), E.API.TTFFont = function() { 6871 function t2(t3) { 6872 var e; 6873 if (this.rawData = t3, e = this.contents = new fe(t3), this.contents.pos = 4, "ttcf" === e.readString(4)) throw new Error("TTCF not supported."); 6874 e.pos = 0, this.parse(), this.subset = new Ce(this), this.registerTTF(); 6875 } 6876 return t2.open = function(e) { 6877 return new t2(e); 6878 }, t2.prototype.parse = function() { 6879 return this.directory = new de(this.contents), this.head = new me(this), this.name = new xe(this), this.cmap = new be(this), this.toUnicode = {}, this.hhea = new ye(this), this.maxp = new Ae(this), this.hmtx = new Se(this), this.post = new Ne(this), this.os2 = new we(this), this.loca = new Ie(this), this.glyf = new Pe(this), this.ascender = this.os2.exists && this.os2.ascender || this.hhea.ascender, this.decender = this.os2.exists && this.os2.decender || this.hhea.decender, this.lineGap = this.os2.exists && this.os2.lineGap || this.hhea.lineGap, this.bbox = [this.head.xMin, this.head.yMin, this.head.xMax, this.head.yMax]; 6880 }, t2.prototype.registerTTF = function() { 6881 var t3, e, r, n, i2; 6882 if (this.scaleFactor = 1e3 / this.head.unitsPerEm, this.bbox = (function() { 6883 var e2, r2, n2, i3; 6884 for (i3 = [], e2 = 0, r2 = (n2 = this.bbox).length; e2 < r2; e2++) t3 = n2[e2], i3.push(Math.round(t3 * this.scaleFactor)); 6885 return i3; 6886 }).call(this), this.stemV = 0, this.post.exists ? (r = 255 & (n = this.post.italic_angle), 32768 & (e = n >> 16) && (e = -(1 + (65535 ^ e))), this.italicAngle = +(e + "." + r)) : this.italicAngle = 0, this.ascender = Math.round(this.ascender * this.scaleFactor), this.decender = Math.round(this.decender * this.scaleFactor), this.lineGap = Math.round(this.lineGap * this.scaleFactor), this.capHeight = this.os2.exists && this.os2.capHeight || this.ascender, this.xHeight = this.os2.exists && this.os2.xHeight || 0, this.familyClass = (this.os2.exists && this.os2.familyClass || 0) >> 8, this.isSerif = 1 === (i2 = this.familyClass) || 2 === i2 || 3 === i2 || 4 === i2 || 5 === i2 || 7 === i2, this.isScript = 10 === this.familyClass, this.flags = 0, this.post.isFixedPitch && (this.flags |= 1), this.isSerif && (this.flags |= 2), this.isScript && (this.flags |= 8), 0 !== this.italicAngle && (this.flags |= 64), this.flags |= 32, !this.cmap.unicode) throw new Error("No unicode cmap for font"); 6887 }, t2.prototype.characterToGlyph = function(t3) { 6888 var e; 6889 return (null != (e = this.cmap.unicode) ? e.codeMap[t3] : void 0) || 0; 6890 }, t2.prototype.widthOfGlyph = function(t3) { 6891 var e; 6892 return e = 1e3 / this.head.unitsPerEm, this.hmtx.forGlyph(t3).advance * e; 6893 }, t2.prototype.widthOfString = function(t3, e, r) { 6894 var n, i2, a2, o2; 6895 for (a2 = 0, i2 = 0, o2 = (t3 = "" + t3).length; 0 <= o2 ? i2 < o2 : i2 > o2; i2 = 0 <= o2 ? ++i2 : --i2) n = t3.charCodeAt(i2), a2 += this.widthOfGlyph(this.characterToGlyph(n)) + r * (1e3 / e) || 0; 6896 return a2 * (e / 1e3); 6897 }, t2.prototype.lineHeight = function(t3, e) { 6898 var r; 6899 return null == e && (e = false), r = e ? this.lineGap : 0, (this.ascender + r - this.decender) / 1e3 * t3; 6900 }, t2; 6901}(); 6902var he, fe = function() { 6903 function t2(t3) { 6904 this.data = null != t3 ? t3 : [], this.pos = 0, this.length = this.data.length; 6905 } 6906 return t2.prototype.readByte = function() { 6907 return this.data[this.pos++]; 6908 }, t2.prototype.writeByte = function(t3) { 6909 return this.data[this.pos++] = t3; 6910 }, t2.prototype.readUInt32 = function() { 6911 return 16777216 * this.readByte() + (this.readByte() << 16) + (this.readByte() << 8) + this.readByte(); 6912 }, t2.prototype.writeUInt32 = function(t3) { 6913 return this.writeByte(t3 >>> 24 & 255), this.writeByte(t3 >> 16 & 255), this.writeByte(t3 >> 8 & 255), this.writeByte(255 & t3); 6914 }, t2.prototype.readInt32 = function() { 6915 var t3; 6916 return (t3 = this.readUInt32()) >= 2147483648 ? t3 - 4294967296 : t3; 6917 }, t2.prototype.writeInt32 = function(t3) { 6918 return t3 < 0 && (t3 += 4294967296), this.writeUInt32(t3); 6919 }
vendor: 5,784 bytes, lines 6919-7001
6919, t2.prototype.readUInt16 = function() { 6920 return this.readByte() << 8 | this.readByte(); 6921 }, t2.prototype.writeUInt16 = function(t3) { 6922 return this.writeByte(t3 >> 8 & 255), this.writeByte(255 & t3); 6923 }, t2.prototype.readInt16 = function() { 6924 var t3; 6925 return (t3 = this.readUInt16()) >= 32768 ? t3 - 65536 : t3; 6926 }, t2.prototype.writeInt16 = function(t3) { 6927 return t3 < 0 && (t3 += 65536), this.writeUInt16(t3); 6928 }, t2.prototype.readString = function(t3) { 6929 var e, r; 6930 for (r = [], e = 0; 0 <= t3 ? e < t3 : e > t3; e = 0 <= t3 ? ++e : --e) r[e] = String.fromCharCode(this.readByte()); 6931 return r.join(""); 6932 }, t2.prototype.writeString = function(t3) { 6933 var e, r, n; 6934 for (n = [], e = 0, r = t3.length; 0 <= r ? e < r : e > r; e = 0 <= r ? ++e : --e) n.push(this.writeByte(t3.charCodeAt(e))); 6935 return n; 6936 }, t2.prototype.readShort = function() { 6937 return this.readInt16(); 6938 }, t2.prototype.writeShort = function(t3) { 6939 return this.writeInt16(t3); 6940 }, t2.prototype.readLongLong = function() { 6941 var t3, e, r, n, i2, a2, o2, s2; 6942 return t3 = this.readByte(), e = this.readByte(), r = this.readByte(), n = this.readByte(), i2 = this.readByte(), a2 = this.readByte(), o2 = this.readByte(), s2 = this.readByte(), 128 & t3 ? -1 * (72057594037927940 * (255 ^ t3) + 281474976710656 * (255 ^ e) + 1099511627776 * (255 ^ r) + 4294967296 * (255 ^ n) + 16777216 * (255 ^ i2) + 65536 * (255 ^ a2) + 256 * (255 ^ o2) + (255 ^ s2) + 1) : 72057594037927940 * t3 + 281474976710656 * e + 1099511627776 * r + 4294967296 * n + 16777216 * i2 + 65536 * a2 + 256 * o2 + s2; 6943 }, t2.prototype.writeLongLong = function(t3) { 6944 var e, r; 6945 return e = Math.floor(t3 / 4294967296), r = 4294967295 & t3, this.writeByte(e >> 24 & 255), this.writeByte(e >> 16 & 255), this.writeByte(e >> 8 & 255), this.writeByte(255 & e), this.writeByte(r >> 24 & 255), this.writeByte(r >> 16 & 255), this.writeByte(r >> 8 & 255), this.writeByte(255 & r); 6946 }, t2.prototype.readInt = function() { 6947 return this.readInt32(); 6948 }, t2.prototype.writeInt = function(t3) { 6949 return this.writeInt32(t3); 6950 }, t2.prototype.read = function(t3) { 6951 var e, r; 6952 for (e = [], r = 0; 0 <= t3 ? r < t3 : r > t3; r = 0 <= t3 ? ++r : --r) e.push(this.readByte()); 6953 return e; 6954 }, t2.prototype.write = function(t3) { 6955 var e, r, n, i2; 6956 for (i2 = [], r = 0, n = t3.length; r < n; r++) e = t3[r], i2.push(this.writeByte(e)); 6957 return i2; 6958 }, t2; 6959}(), de = function() { 6960 var t2; 6961 function e(t3) { 6962 var e2, r, n; 6963 for (this.scalarType = t3.readInt(), this.tableCount = t3.readShort(), this.searchRange = t3.readShort(), this.entrySelector = t3.readShort(), this.rangeShift = t3.readShort(), this.tables = {}, r = 0, n = this.tableCount; 0 <= n ? r < n : r > n; r = 0 <= n ? ++r : --r) e2 = { tag: t3.readString(4), checksum: t3.readInt(), offset: t3.readInt(), length: t3.readInt() }, this.tables[e2.tag] = e2; 6964 } 6965 return e.prototype.encode = function(e2) { 6966 var r, n, i2, a2, o2, s2, u2, c2, l2, h2, f2, d2, p2; 6967 for (p2 in f2 = Object.keys(e2).length, s2 = Math.log(2), l2 = 16 * Math.floor(Math.log(f2) / s2), a2 = Math.floor(l2 / s2), c2 = 16 * f2 - l2, (n = new fe()).writeInt(this.scalarType), n.writeShort(f2), n.writeShort(l2), n.writeShort(a2), n.writeShort(c2), i2 = 16 * f2, u2 = n.pos + i2, o2 = null, d2 = [], e2) for (h2 = e2[p2], n.writeString(p2), n.writeInt(t2(h2)), n.writeInt(u2), n.writeInt(h2.length), d2 = d2.concat(h2), "head" === p2 && (o2 = u2), u2 += h2.length; u2 % 4; ) d2.push(0), u2++; 6968 return n.write(d2), r = 2981146554 - t2(n.data), n.pos = o2 + 8, n.writeUInt32(r), n.data; 6969 }, t2 = function(t3) { 6970 var e2, r, n, i2; 6971 for (t3 = _e.call(t3); t3.length % 4; ) t3.push(0); 6972 for (n = new fe(t3), r = 0, e2 = 0, i2 = t3.length; e2 < i2; e2 = e2 += 4) r += n.readUInt32(); 6973 return 4294967295 & r; 6974 }, e; 6975}(), pe = {}.hasOwnProperty, ge = function(t2, e) { 6976 for (var r in e) pe.call(e, r) && (t2[r] = e[r]); 6977 function n() { 6978 this.constructor = t2; 6979 } 6980 return n.prototype = e.prototype, t2.prototype = new n(), t2.__super__ = e.prototype, t2; 6981}; 6982he = function() { 6983 function t2(t3) { 6984 var e; 6985 this.file = t3, e = this.file.directory.tables[this.tag], this.exists = !!e, e && (this.offset = e.offset, this.length = e.length, this.parse(this.file.contents)); 6986 } 6987 return t2.prototype.parse = function() { 6988 }, t2.prototype.encode = function() { 6989 }, t2.prototype.raw = function() { 6990 return this.exists ? (this.file.contents.pos = this.offset, this.file.contents.read(this.length)) : null; 6991 }, t2; 6992}(); 6993var me = function() { 6994 function t2() { 6995 return t2.__super__.constructor.apply(this, arguments); 6996 } 6997 return ge(t2, he), t2.prototype.tag = "head", t2.prototype.parse = function(t3) { 6998 return t3.pos = this.offset, this.version = t3.readInt(), this.revision = t3.readInt(), this.checkSumAdjustment = t3.readInt(), this.magicNumber = t3.readInt(), this.flags = t3.readShort(), this.unitsPerEm = t3.readShort(), this.created = t3.readLongLong(), this.modified = t3.readLongLong(), this.xMin = t3.readShort(), this.yMin = t3.readShort(), this.xMax = t3.readShort(), this.yMax = t3.readShort(), this.macStyle = t3.readShort(), this.lowestRecPPEM = t3.readShort(), this.fontDirectionHint = t3.readShort(), this.indexToLocFormat = t3.readShort(), this.glyphDataFormat = t3.readShort(); 6999 }, t2.prototype.encode = function(t3) { 7000 var e; 7001 return (e = new fe()).writeInt(this.version), e.writeInt(this.revision), e.writeInt(this.checkSumAdjustment), e.writeInt(this.magicNumber), e.writeShort(this.flags), e.writeShort(this.unitsPerEm), e.writeLongLong(this.created), e.writeLongLong(this.modified), e.writeShort(this.xMin), e.writeShort(this.yMin), e.writeShort(this.xMax), e.writeShort(this.yMax
vendor: 5,231 bytes, lines 7001-7071
7001), e.writeShort(this.macStyle), e.writeShort(this.lowestRecPPEM), e.writeShort(this.fontDirectionHint), e.writeShort(t3), e.writeShort(this.glyphDataFormat), e.data; 7002 }, t2; 7003}(), ve = function() { 7004 function t2(t3, e) { 7005 var r, n, i2, a2, o2, s2, u2, c2, l2, h2, f2, d2, p2, g2, m2, v2, b2; 7006 switch (this.platformID = t3.readUInt16(), this.encodingID = t3.readShort(), this.offset = e + t3.readInt(), l2 = t3.pos, t3.pos = this.offset, this.format = t3.readUInt16(), this.length = t3.readUInt16(), this.language = t3.readUInt16(), this.isUnicode = 3 === this.platformID && 1 === this.encodingID && 4 === this.format || 0 === this.platformID && 4 === this.format, this.codeMap = {}, this.format) { 7007 case 0: 7008 for (s2 = 0; s2 < 256; ++s2) this.codeMap[s2] = t3.readByte(); 7009 break; 7010 case 4: 7011 for (f2 = t3.readUInt16(), h2 = f2 / 2, t3.pos += 6, i2 = function() { 7012 var e2, r2; 7013 for (r2 = [], s2 = e2 = 0; 0 <= h2 ? e2 < h2 : e2 > h2; s2 = 0 <= h2 ? ++e2 : --e2) r2.push(t3.readUInt16()); 7014 return r2; 7015 }(), t3.pos += 2, p2 = function() { 7016 var e2, r2; 7017 for (r2 = [], s2 = e2 = 0; 0 <= h2 ? e2 < h2 : e2 > h2; s2 = 0 <= h2 ? ++e2 : --e2) r2.push(t3.readUInt16()); 7018 return r2; 7019 }(), u2 = function() { 7020 var e2, r2; 7021 for (r2 = [], s2 = e2 = 0; 0 <= h2 ? e2 < h2 : e2 > h2; s2 = 0 <= h2 ? ++e2 : --e2) r2.push(t3.readUInt16()); 7022 return r2; 7023 }(), c2 = function() { 7024 var e2, r2; 7025 for (r2 = [], s2 = e2 = 0; 0 <= h2 ? e2 < h2 : e2 > h2; s2 = 0 <= h2 ? ++e2 : --e2) r2.push(t3.readUInt16()); 7026 return r2; 7027 }(), n = (this.length - t3.pos + this.offset) / 2, o2 = function() { 7028 var e2, r2; 7029 for (r2 = [], s2 = e2 = 0; 0 <= n ? e2 < n : e2 > n; s2 = 0 <= n ? ++e2 : --e2) r2.push(t3.readUInt16()); 7030 return r2; 7031 }(), s2 = m2 = 0, b2 = i2.length; m2 < b2; s2 = ++m2) for (g2 = i2[s2], r = v2 = d2 = p2[s2]; d2 <= g2 ? v2 <= g2 : v2 >= g2; r = d2 <= g2 ? ++v2 : --v2) 0 === c2[s2] ? a2 = r + u2[s2] : 0 !== (a2 = o2[c2[s2] / 2 + (r - d2) - (h2 - s2)] || 0) && (a2 += u2[s2]), this.codeMap[r] = 65535 & a2; 7032 } 7033 t3.pos = l2; 7034 } 7035 return t2.encode = function(t3, e) { 7036 var r, n, i2, a2, o2, s2, u2, c2, l2, h2, f2, d2, p2, g2, m2, v2, b2, y2, w2, N2, L2, x2, A2, S2, _2, P2, k2, F2, I2, C2, j2, O2, B2, M2, q2, E2, R2, D2, T2, z2, U2, H2, W2, V2, G2, Y2; 7037 switch (F2 = new fe(), a2 = Object.keys(t3).sort(function(t4, e2) { 7038 return t4 - e2; 7039 }), e) { 7040 case "macroman": 7041 for (p2 = 0, g2 = function() { 7042 var t4 = []; 7043 for (d2 = 0; d2 < 256; ++d2) t4.push(0); 7044 return t4; 7045 }(), v2 = { 0: 0 }, i2 = {}, I2 = 0, B2 = a2.length; I2 < B2; I2++) null == v2[W2 = t3[n = a2[I2]]] && (v2[W2] = ++p2), i2[n] = { old: t3[n], new: v2[t3[n]] }, g2[n] = v2[t3[n]]; 7046 return F2.writeUInt16(1), F2.writeUInt16(0), F2.writeUInt32(12), F2.writeUInt16(0), F2.writeUInt16(262), F2.writeUInt16(0), F2.write(g2), { charMap: i2, subtable: F2.data, maxGlyphID: p2 + 1 }; 7047 case "unicode": 7048 for (P2 = [], l2 = [], b2 = 0, v2 = {}, r = {}, m2 = u2 = null, C2 = 0, M2 = a2.length; C2 < M2; C2++) null == v2[w2 = t3[n = a2[C2]]] && (v2[w2] = ++b2), r[n] = { old: w2, new: v2[w2] }, o2 = v2[w2] - n, null != m2 && o2 === u2 || (m2 && l2.push(m2), P2.push(n), u2 = o2), m2 = n; 7049 for (m2 && l2.push(m2), l2.push(65535), P2.push(65535), S2 = 2 * (A2 = P2.length), x2 = 2 * Math.pow(Math.log(A2) / Math.LN2, 2), h2 = Math.log(x2 / 2) / Math.LN2, L2 = 2 * A2 - x2, s2 = [], N2 = [], f2 = [], d2 = j2 = 0, q2 = P2.length; j2 < q2; d2 = ++j2) { 7050 if (_2 = P2[d2], c2 = l2[d2], 65535 === _2) { 7051 s2.push(0), N2.push(0); 7052 break; 7053 } 7054 if (_2 - (k2 = r[_2].new) >= 32768) for (s2.push(0), N2.push(2 * (f2.length + A2 - d2)), n = O2 = _2; _2 <= c2 ? O2 <= c2 : O2 >= c2; n = _2 <= c2 ? ++O2 : --O2) f2.push(r[n].new); 7055 else s2.push(k2 - _2), N2.push(0); 7056 } 7057 for (F2.writeUInt16(3), F2.writeUInt16(1), F2.writeUInt32(12), F2.writeUInt16(4), F2.writeUInt16(16 + 8 * A2 + 2 * f2.length), F2.writeUInt16(0), F2.writeUInt16(S2), F2.writeUInt16(x2), F2.writeUInt16(h2), F2.writeUInt16(L2), U2 = 0, E2 = l2.length; U2 < E2; U2++) n = l2[U2], F2.writeUInt16(n); 7058 for (F2.writeUInt16(0), H2 = 0, R2 = P2.length; H2 < R2; H2++) n = P2[H2], F2.writeUInt16(n); 7059 for (V2 = 0, D2 = s2.length; V2 < D2; V2++) o2 = s2[V2], F2.writeUInt16(o2); 7060 for (G2 = 0, T2 = N2.length; G2 < T2; G2++) y2 = N2[G2], F2.writeUInt16(y2); 7061 for (Y2 = 0, z2 = f2.length; Y2 < z2; Y2++) p2 = f2[Y2], F2.writeUInt16(p2); 7062 return { charMap: r, subtable: F2.data, maxGlyphID: b2 + 1 }; 7063 } 7064 }, t2; 7065}(), be = function() { 7066 function t2() { 7067 return t2.__super__.constructor.apply(this, arguments); 7068 } 7069 return ge(t2, he), t2.prototype.tag = "cmap", t2.prototype.parse = function(t3) { 7070 var e, r, n; 7071 for (t3.pos = this.offset, this.version = t3.readUInt16(), n = t3.readUInt16(), this.tables = [], this.unicode = null, r = 0; 0 <= n ? r < n : r > n; r = 0 <= n ? ++r : --r) e = new ve(t3, this.offset), this.tables.push(e), e.
vendor: 14,322 bytes, lines 7071-7304
7071isUnicode && null == this.unicode && (this.unicode = e); 7072 return true; 7073 }, t2.encode = function(t3, e) { 7074 var r, n; 7075 return null == e && (e = "macroman"), r = ve.encode(t3, e), (n = new fe()).writeUInt16(0), n.writeUInt16(1), r.table = n.data.concat(r.subtable), r; 7076 }, t2; 7077}(), ye = function() { 7078 function t2() { 7079 return t2.__super__.constructor.apply(this, arguments); 7080 } 7081 return ge(t2, he), t2.prototype.tag = "hhea", t2.prototype.parse = function(t3) { 7082 return t3.pos = this.offset, this.version = t3.readInt(), this.ascender = t3.readShort(), this.decender = t3.readShort(), this.lineGap = t3.readShort(), this.advanceWidthMax = t3.readShort(), this.minLeftSideBearing = t3.readShort(), this.minRightSideBearing = t3.readShort(), this.xMaxExtent = t3.readShort(), this.caretSlopeRise = t3.readShort(), this.caretSlopeRun = t3.readShort(), this.caretOffset = t3.readShort(), t3.pos += 8, this.metricDataFormat = t3.readShort(), this.numberOfMetrics = t3.readUInt16(); 7083 }, t2; 7084}(), we = function() { 7085 function t2() { 7086 return t2.__super__.constructor.apply(this, arguments); 7087 } 7088 return ge(t2, he), t2.prototype.tag = "OS/2", t2.prototype.parse = function(t3) { 7089 if (t3.pos = this.offset, this.version = t3.readUInt16(), this.averageCharWidth = t3.readShort(), this.weightClass = t3.readUInt16(), this.widthClass = t3.readUInt16(), this.type = t3.readShort(), this.ySubscriptXSize = t3.readShort(), this.ySubscriptYSize = t3.readShort(), this.ySubscriptXOffset = t3.readShort(), this.ySubscriptYOffset = t3.readShort(), this.ySuperscriptXSize = t3.readShort(), this.ySuperscriptYSize = t3.readShort(), this.ySuperscriptXOffset = t3.readShort(), this.ySuperscriptYOffset = t3.readShort(), this.yStrikeoutSize = t3.readShort(), this.yStrikeoutPosition = t3.readShort(), this.familyClass = t3.readShort(), this.panose = function() { 7090 var e, r; 7091 for (r = [], e = 0; e < 10; ++e) r.push(t3.readByte()); 7092 return r; 7093 }(), this.charRange = function() { 7094 var e, r; 7095 for (r = [], e = 0; e < 4; ++e) r.push(t3.readInt()); 7096 return r; 7097 }(), this.vendorID = t3.readString(4), this.selection = t3.readShort(), this.firstCharIndex = t3.readShort(), this.lastCharIndex = t3.readShort(), this.version > 0 && (this.ascent = t3.readShort(), this.descent = t3.readShort(), this.lineGap = t3.readShort(), this.winAscent = t3.readShort(), this.winDescent = t3.readShort(), this.codePageRange = function() { 7098 var e, r; 7099 for (r = [], e = 0; e < 2; e = ++e) r.push(t3.readInt()); 7100 return r; 7101 }(), this.version > 1)) return this.xHeight = t3.readShort(), this.capHeight = t3.readShort(), this.defaultChar = t3.readShort(), this.breakChar = t3.readShort(), this.maxContext = t3.readShort(); 7102 }, t2; 7103}(), Ne = function() { 7104 function t2() { 7105 return t2.__super__.constructor.apply(this, arguments); 7106 } 7107 return ge(t2, he), t2.prototype.tag = "post", t2.prototype.parse = function(t3) { 7108 var e, r, n; 7109 switch (t3.pos = this.offset, this.format = t3.readInt(), this.italicAngle = t3.readInt(), this.underlinePosition = t3.readShort(), this.underlineThickness = t3.readShort(), this.isFixedPitch = t3.readInt(), this.minMemType42 = t3.readInt(), this.maxMemType42 = t3.readInt(), this.minMemType1 = t3.readInt(), this.maxMemType1 = t3.readInt(), this.format) { 7110 case 65536: 7111 case 196608: 7112 break; 7113 case 131072: 7114 var i2; 7115 for (r = t3.readUInt16(), this.glyphNameIndex = [], i2 = 0; 0 <= r ? i2 < r : i2 > r; i2 = 0 <= r ? ++i2 : --i2) this.glyphNameIndex.push(t3.readUInt16()); 7116 for (this.names = [], n = []; t3.pos < this.offset + this.length; ) e = t3.readByte(), n.push(this.names.push(t3.readString(e))); 7117 return n; 7118 case 151552: 7119 return r = t3.readUInt16(), this.offsets = t3.read(r); 7120 case 262144: 7121 return this.map = (function() { 7122 var e2, r2, n2; 7123 for (n2 = [], i2 = e2 = 0, r2 = this.file.maxp.numGlyphs; 0 <= r2 ? e2 < r2 : e2 > r2; i2 = 0 <= r2 ? ++e2 : --e2) n2.push(t3.readUInt32()); 7124 return n2; 7125 }).call(this); 7126 } 7127 }, t2; 7128}(), Le = function(t2, e) { 7129 this.raw = t2, this.length = t2.length, this.platformID = e.platformID, this.encodingID = e.encodingID, this.languageID = e.languageID; 7130}, xe = function() { 7131 function t2() { 7132 return t2.__super__.constructor.apply(this, arguments); 7133 } 7134 return ge(t2, he), t2.prototype.tag = "name", t2.prototype.parse = function(t3) { 7135 var e, r, n, i2, a2, o2, s2, u2, c2, l2, h2; 7136 for (t3.pos = this.offset, t3.readShort(), e = t3.readShort(), o2 = t3.readShort(), r = [], i2 = 0; 0 <= e ? i2 < e : i2 > e; i2 = 0 <= e ? ++i2 : --i2) r.push({ platformID: t3.readShort(), encodingID: t3.readShort(), languageID: t3.readShort(), nameID: t3.readShort(), length: t3.readShort(), offset: this.offset + o2 + t3.readShort() }); 7137 for (s2 = {}, i2 = c2 = 0, l2 = r.length; c2 < l2; i2 = ++c2) n = r[i2], t3.pos = n.offset, u2 = t3.readString(n.length), a2 = new Le(u2, n), null == s2[h2 = n.nameID] && (s2[h2] = []), s2[n.nameID].push(a2); 7138 this.strings = s2, this.copyright = s2[0], this.fontFamily = s2[1], this.fontSubfamily = s2[2], this.uniqueSubfamily = s2[3], this.fontName = s2[4], this.version = s2[5]; 7139 try { 7140 this.postscriptName = s2[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g, ""); 7141 } catch (f2) { 7142 this.postscriptName = s2[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g, ""); 7143 } 7144 return this.trademark = s2[7], this.manufacturer = s2[8], this.designer = s2[9], this.description = s2[10], this.vendorUrl = s2[11], this.designerUrl = s2[12], this.license = s2[13], this.licenseUrl = s2[14], this.preferredFamily = s2[15], this.preferredSubfamily = s2[17], this.compatibleFull = s2[18], this.sampleText = s2[19]; 7145 }, t2; 7146}(), Ae = function() { 7147 function t2() { 7148 return t2.__super__.constructor.apply(this, arguments); 7149 } 7150 return ge(t2, he), t2.prototype.tag = "maxp", t2.prototype.parse = function(t3) { 7151 return t3.pos = this.offset, this.version = t3.readInt(), this.numGlyphs = t3.readUInt16(), this.maxPoints = t3.readUInt16(), this.maxContours = t3.readUInt16(), this.maxCompositePoints = t3.readUInt16(), this.maxComponentContours = t3.readUInt16(), this.maxZones = t3.readUInt16(), this.maxTwilightPoints = t3.readUInt16(), this.maxStorage = t3.readUInt16(), this.maxFunctionDefs = t3.readUInt16(), this.maxInstructionDefs = t3.readUInt16(), this.maxStackElements = t3.readUInt16(), this.maxSizeOfInstructions = t3.readUInt16(), this.maxComponentElements = t3.readUInt16(), this.maxComponentDepth = t3.readUInt16(); 7152 }, t2; 7153}(), Se = function() { 7154 function t2() { 7155 return t2.__super__.constructor.apply(this, arguments); 7156 } 7157 return ge(t2, he), t2.prototype.tag = "hmtx", t2.prototype.parse = function(t3) { 7158 var e, r, n, i2, a2, o2, s2; 7159 for (t3.pos = this.offset, this.metrics = [], e = 0, o2 = this.file.hhea.numberOfMetrics; 0 <= o2 ? e < o2 : e > o2; e = 0 <= o2 ? ++e : --e) this.metrics.push({ advance: t3.readUInt16(), lsb: t3.readInt16() }); 7160 for (n = this.file.maxp.numGlyphs - this.file.hhea.numberOfMetrics, this.leftSideBearings = function() { 7161 var r2, i3; 7162 for (i3 = [], e = r2 = 0; 0 <= n ? r2 < n : r2 > n; e = 0 <= n ? ++r2 : --r2) i3.push(t3.readInt16()); 7163 return i3; 7164 }(), this.widths = (function() { 7165 var t4, e2, r2, n2; 7166 for (n2 = [], t4 = 0, e2 = (r2 = this.metrics).length; t4 < e2; t4++) i2 = r2[t4], n2.push(i2.advance); 7167 return n2; 7168 }).call(this), r = this.widths[this.widths.length - 1], s2 = [], e = a2 = 0; 0 <= n ? a2 < n : a2 > n; e = 0 <= n ? ++a2 : --a2) s2.push(this.widths.push(r)); 7169 return s2; 7170 }, t2.prototype.forGlyph = function(t3) { 7171 return t3 in this.metrics ? this.metrics[t3] : { advance: this.metrics[this.metrics.length - 1].advance, lsb: this.leftSideBearings[t3 - this.metrics.length] }; 7172 }, t2; 7173}(), _e = [].slice, Pe = function() { 7174 function t2() { 7175 return t2.__super__.constructor.apply(this, arguments); 7176 } 7177 return ge(t2, he), t2.prototype.tag = "glyf", t2.prototype.parse = function() { 7178 return this.cache = {}; 7179 }, t2.prototype.glyphFor = function(t3) { 7180 var e, r, n, i2, a2, o2, s2, u2, c2, l2; 7181 return t3 in this.cache ? this.cache[t3] : (i2 = this.file.loca, e = this.file.contents, r = i2.indexOf(t3), 0 === (n = i2.lengthOf(t3)) ? this.cache[t3] = null : (e.pos = this.offset + r, a2 = (o2 = new fe(e.read(n))).readShort(), u2 = o2.readShort(), l2 = o2.readShort(), s2 = o2.readShort(), c2 = o2.readShort(), this.cache[t3] = -1 === a2 ? new Fe(o2, u2, l2, s2, c2) : new ke(o2, a2, u2, l2, s2, c2), this.cache[t3])); 7182 }, t2.prototype.encode = function(t3, e, r) { 7183 var n, i2, a2, o2, s2; 7184 for (a2 = [], i2 = [], o2 = 0, s2 = e.length; o2 < s2; o2++) n = t3[e[o2]], i2.push(a2.length), n && (a2 = a2.concat(n.encode(r))); 7185 return i2.push(a2.length), { table: a2, offsets: i2 }; 7186 }, t2; 7187}(), ke = function() { 7188 function t2(t3, e, r, n, i2, a2) { 7189 this.raw = t3, this.numberOfContours = e, this.xMin = r, this.yMin = n, this.xMax = i2, this.yMax = a2, this.compound = false; 7190 } 7191 return t2.prototype.encode = function() { 7192 return this.raw.data; 7193 }, t2; 7194}(), Fe = function() { 7195 function t2(t3, e, r, n, i2) { 7196 var a2, o2; 7197 for (this.raw = t3, this.xMin = e, this.yMin = r, this.xMax = n, this.yMax = i2, this.compound = true, this.glyphIDs = [], this.glyphOffsets = [], a2 = this.raw; o2 = a2.readShort(), this.glyphOffsets.push(a2.pos), this.glyphIDs.push(a2.readUInt16()), 32 & o2; ) a2.pos += 1 & o2 ? 4 : 2, 128 & o2 ? a2.pos += 8 : 64 & o2 ? a2.pos += 4 : 8 & o2 && (a2.pos += 2); 7198 } 7199 return t2.prototype.encode = function() { 7200 var t3, e, r; 7201 for (e = new fe(_e.call(this.raw.data)), t3 = 0, r = this.glyphIDs.length; t3 < r; ++t3) e.pos = this.glyphOffsets[t3]; 7202 return e.data; 7203 }, t2; 7204}(), Ie = function() { 7205 function t2() { 7206 return t2.__super__.constructor.apply(this, arguments); 7207 } 7208 return ge(t2, he), t2.prototype.tag = "loca", t2.prototype.parse = function(t3) { 7209 var e, r; 7210 return t3.pos = this.offset, e = this.file.head.indexToLocFormat, this.offsets = 0 === e ? (function() { 7211 var e2, n; 7212 for (n = [], r = 0, e2 = this.length; r < e2; r += 2) n.push(2 * t3.readUInt16()); 7213 return n; 7214 }).call(this) : (function() { 7215 var e2, n; 7216 for (n = [], r = 0, e2 = this.length; r < e2; r += 4) n.push(t3.readUInt32()); 7217 return n; 7218 }).call(this); 7219 }, t2.prototype.indexOf = function(t3) { 7220 return this.offsets[t3]; 7221 }, t2.prototype.lengthOf = function(t3) { 7222 return this.offsets[t3 + 1] - this.offsets[t3]; 7223 }, t2.prototype.encode = function(t3, e) { 7224 for (var r = new Uint32Array(this.offsets.length), n = 0, i2 = 0, a2 = 0; a2 < r.length; ++a2) if (r[a2] = n, i2 < e.length && e[i2] == a2) { 7225 ++i2, r[a2] = n; 7226 var o2 = this.offsets[a2], s2 = this.offsets[a2 + 1] - o2; 7227 s2 > 0 && (n += s2); 7228 } 7229 for (var u2 = new Array(4 * r.length), c2 = 0; c2 < r.length; ++c2) u2[4 * c2 + 3] = 255 & r[c2], u2[4 * c2 + 2] = (65280 & r[c2]) >> 8, u2[4 * c2 + 1] = (16711680 & r[c2]) >> 16, u2[4 * c2] = (4278190080 & r[c2]) >> 24; 7230 return u2; 7231 }, t2; 7232}(), Ce = function() { 7233 function t2(t3) { 7234 this.font = t3, this.subset = {}, this.unicodes = {}, this.next = 33; 7235 } 7236 return t2.prototype.generateCmap = function() { 7237 var t3, e, r, n, i2; 7238 for (e in n = this.font.cmap.tables[0].codeMap, t3 = {}, i2 = this.subset) r = i2[e], t3[e] = n[r]; 7239 return t3; 7240 }, t2.prototype.glyphsFor = function(t3) { 7241 var e, r, n, i2, a2, o2, s2; 7242 for (n = {}, a2 = 0, o2 = t3.length; a2 < o2; a2++) n[i2 = t3[a2]] = this.font.glyf.glyphFor(i2); 7243 for (i2 in e = [], n) (null != (r = n[i2]) ? r.compound : void 0) && e.push.apply(e, r.glyphIDs); 7244 if (e.length > 0) for (i2 in s2 = this.glyphsFor(e)) r = s2[i2], n[i2] = r; 7245 return n; 7246 }, t2.prototype.encode = function(t3, e) { 7247 var r, n, i2, a2, o2, s2, u2, c2, l2, h2, f2, d2, p2, g2, m2; 7248 for (n in r = be.encode(this.generateCmap(), "unicode"), a2 = this.glyphsFor(t3), f2 = { 0: 0 }, m2 = r.charMap) f2[(s2 = m2[n]).old] = s2.new; 7249 for (d2 in h2 = r.maxGlyphID, a2) d2 in f2 || (f2[d2] = h2++); 7250 return c2 = function(t4) { 7251 var e2, r2; 7252 for (e2 in r2 = {}, t4) r2[t4[e2]] = e2; 7253 return r2; 7254 }(f2), l2 = Object.keys(c2).sort(function(t4, e2) { 7255 return t4 - e2; 7256 }), p2 = function() { 7257 var t4, e2, r2; 7258 for (r2 = [], t4 = 0, e2 = l2.length; t4 < e2; t4++) o2 = l2[t4], r2.push(c2[o2]); 7259 return r2; 7260 }(), i2 = this.font.glyf.encode(a2, p2, f2), u2 = this.font.loca.encode(i2.offsets, p2), g2 = { cmap: this.font.cmap.raw(), glyf: i2.table, loca: u2, hmtx: this.font.hmtx.raw(), hhea: this.font.hhea.raw(), maxp: this.font.maxp.raw(), post: this.font.post.raw(), name: this.font.name.raw(), head: this.font.head.encode(e) }, this.font.os2.exists && (g2["OS/2"] = this.font.os2.raw()), this.font.directory.encode(g2); 7261 }, t2; 7262}(); 7263E.API.PDFObject = function() { 7264 var t2; 7265 function e() { 7266 } 7267 return t2 = function(t3, e2) { 7268 return (Array(e2 + 1).join("0") + t3).slice(-e2); 7269 }, e.convert = function(r) { 7270 var n, i2, a2, o2; 7271 if (Array.isArray(r)) return "[" + function() { 7272 var t3, i3, a3; 7273 for (a3 = [], t3 = 0, i3 = r.length; t3 < i3; t3++) n = r[t3], a3.push(e.convert(n)); 7274 return a3; 7275 }().join(" ") + "]"; 7276 if ("string" == typeof r) return "/" + r; 7277 if (null != r ? r.isString : void 0) return "(" + r + ")"; 7278 if (r instanceof Date) return "(D:" + t2(r.getUTCFullYear(), 4) + t2(r.getUTCMonth(), 2) + t2(r.getUTCDate(), 2) + t2(r.getUTCHours(), 2) + t2(r.getUTCMinutes(), 2) + t2(r.getUTCSeconds(), 2) + "Z)"; 7279 if ("[object Object]" === {}.toString.call(r)) { 7280 for (i2 in a2 = ["<<"], r) o2 = r[i2], a2.push("/" + i2 + " " + e.convert(o2)); 7281 return a2.push(">>"), a2.join("\n"); 7282 } 7283 return "" + r; 7284 }, e; 7285}(); 7286export { 7287 _t as AcroForm, 7288 At as AcroFormAppearance, 7289 vt as AcroFormButton, 7290 Nt as AcroFormCheckBox, 7291 dt as AcroFormChoiceField, 7292 gt as AcroFormComboBox, 7293 mt as AcroFormEditBox, 7294 pt as AcroFormListBox, 7295 xt as AcroFormPasswordField, 7296 bt as AcroFormPushButton, 7297 yt as AcroFormRadioButton, 7298 Lt as AcroFormTextField, 7299 O as GState, 7300 M as ShadingPattern, 7301 q as TilingPattern, 7302 E as default, 7303 E as jsPDF 7304};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.