From c39a205ceaeae4b42161661c349356b8c854cb53 Mon Sep 17 00:00:00 2001 From: gaoxiongzaq Date: Wed, 16 Aug 2023 08:44:44 +0800 Subject: [PATCH] =?UTF-8?q?ofd=20=E5=A2=9E=E5=8A=A0=E6=94=AF=E6=8C=81jp2?= =?UTF-8?q?=E3=80=81tiff=E5=9B=BE=E7=89=87=E6=B8=B2=E6=9F=93=E5=A4=84?= =?UTF-8?q?=E7=90=86=EF=BC=9B=E4=BC=98=E5=8C=96=E5=8F=8C=E5=B1=82OFD?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E6=B8=B2=E6=9F=93=E6=95=88=E6=9E=9C=EF=BC=9B?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E6=9C=AC=E5=A4=8D=E5=88=B6=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=9B=E6=8F=90=E5=8D=87OFD=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=80=A7.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/ofd/index.html | 1 + .../resources/static/ofd/js/cnofd-view.js | 30 + .../resources/static/ofd/js/cnofd.umd.min.js | 11373 +++++++++++----- .../main/resources/static/ofd/js/openjpeg.js | 432 + 4 files changed, 8120 insertions(+), 3716 deletions(-) create mode 100644 server/src/main/resources/static/ofd/js/openjpeg.js diff --git a/server/src/main/resources/static/ofd/index.html b/server/src/main/resources/static/ofd/index.html index c87f564d..236c8d65 100644 --- a/server/src/main/resources/static/ofd/index.html +++ b/server/src/main/resources/static/ofd/index.html @@ -13,6 +13,7 @@ + diff --git a/server/src/main/resources/static/ofd/js/cnofd-view.js b/server/src/main/resources/static/ofd/js/cnofd-view.js index a94653a6..bf7eee00 100644 --- a/server/src/main/resources/static/ofd/js/cnofd-view.js +++ b/server/src/main/resources/static/ofd/js/cnofd-view.js @@ -53,6 +53,36 @@ window.onresize = function() { } (); }; + //监听整个页面的 copy 事件 +document.addEventListener('copy',function(event){ + let clipboardData = event.clipboardData || window.clipboardData; + if(!clipboardData) return; + + let text = window.getSelection().toString(); + + if(text){ + var copytext = text.replace(/\n|\r/g, ""); //去除换行符 + + if (window.clipboardData) { // Internet Explorer + window.clipboardData.setData ("Text", copytext); + } else { + var newdiv = document.createElement('div'); + newdiv.style.position='absolute'; + newdiv.style.left='-99999px'; + + var body_element = document.getElementsByTagName('body')[0]; + body_element.appendChild(newdiv); + newdiv.innerHTML = copytext; + + window.getSelection().selectAllChildren(newdiv); + + window.setTimeout(function() { + body_element.removeChild(newdiv); + },0); + } + } +}); + // 手机端,隐藏缩放比例选择框,打开文件和打印按钮 if (this.isMobile()) { if (document.getElementById("zoomSelect")) document.getElementById("zoomSelect").style.display = "none"; diff --git a/server/src/main/resources/static/ofd/js/cnofd.umd.min.js b/server/src/main/resources/static/ofd/js/cnofd.umd.min.js index 6331e8c6..9da19357 100644 --- a/server/src/main/resources/static/ofd/js/cnofd.umd.min.js +++ b/server/src/main/resources/static/ofd/js/cnofd.umd.min.js @@ -18,31 +18,32 @@ * */ (function(t, e) { - "object" === typeof exports && "object" === typeof module ? module.exports = e() : "function" === typeof define && define.amd ? define([], e) : "object" === typeof exports ? exports["cnofd"] = e() : t["cnofd"] = e() + "object" === typeof exports && "object" === typeof module ? module.exports = e() : "function" === typeof define && define.amd ? define([], e) : "object" === typeof exports ? exports["cnofd"] = e() : t["cnofd"] = e() } )("undefined" !== typeof self ? self : this, (function() { - return function(t) { + return function(t) { var e = {}; - function r(n) { + function r(n) { if (e[n]) return e[n].exports; var i = e[n] = { i: n, - l: !1, + l: !1, exports: {} }; return t[n].call(i.exports, i, i.exports, r), i.l = !0, i.exports - } - return r.m = t, - r.c = e, + } + return r.m = t, + r.c = e, r.d = function(t, e, n) { - r.o(t, e) || Object.defineProperty(t, e, { + r.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: n }) - }, + } + , r.r = function(t) { "undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" @@ -168,7 +169,7 @@ }, "0094": function(t, e, r) { "use strict"; - var n, i = r("da84"), o = r("e330"), a = r("6964"), s = r("f183"), c = r("6d61"), u = r("acac"), d = r("861d"), l = r("4fad"), f = r("69f3").enforce, h = r("7f9a"), p = !i.ActiveXObject && "ActiveXObject"in i, m = function(t) { + var n, i = r("da84"), o = r("e330"), a = r("6964"), s = r("f183"), c = r("6d61"), u = r("acac"), l = r("861d"), d = r("4fad"), f = r("69f3").enforce, h = r("7f9a"), p = !i.ActiveXObject && "ActiveXObject"in i, m = function(t) { return function() { return t(this, arguments.length ? arguments[0] : void 0) } @@ -177,40 +178,40 @@ n = u.getConstructor(m, "WeakMap", !0), s.enable(); var g = b.prototype - , y = o(g["delete"]) - , v = o(g.has) + , v = o(g["delete"]) + , y = o(g.has) , S = o(g.get) , w = o(g.set); a(g, { delete: function(t) { - if (d(t) && !l(t)) { + if (l(t) && !d(t)) { var e = f(this); return e.frozen || (e.frozen = new n), - y(this, t) || e.frozen["delete"](t) - } - return y(this, t) - }, - has: function(t) { - if (d(t) && !l(t)) { - var e = f(this); - return e.frozen || (e.frozen = new n), - v(this, t) || e.frozen.has(t) + v(this, t) || e.frozen["delete"](t) } return v(this, t) }, - get: function(t) { - if (d(t) && !l(t)) { + has: function(t) { + if (l(t) && !d(t)) { var e = f(this); return e.frozen || (e.frozen = new n), - v(this, t) ? S(this, t) : e.frozen.get(t) + y(this, t) || e.frozen.has(t) + } + return y(this, t) + }, + get: function(t) { + if (l(t) && !d(t)) { + var e = f(this); + return e.frozen || (e.frozen = new n), + y(this, t) ? S(this, t) : e.frozen.get(t) } return S(this, t) }, set: function(t, e) { - if (d(t) && !l(t)) { + if (l(t) && !d(t)) { var r = f(this); r.frozen || (r.frozen = new n), - v(this, t) ? w(this, t, e) : r.frozen.set(t, e) + y(this, t) ? w(this, t, e) : r.frozen.set(t, e) } else w(this, t, e); return this @@ -286,14 +287,14 @@ , s = r("fc6a") , c = r("a04b") , u = r("1a2d") - , d = r("0cfb") - , l = Object.getOwnPropertyDescriptor; - e.f = n ? l : function(t, e) { + , l = r("0cfb") + , d = Object.getOwnPropertyDescriptor; + e.f = n ? d : function(t, e) { if (t = s(t), e = c(e), - d) + l) try { - return l(t, e) + return d(t, e) } catch (r) {} if (u(t, e)) return a(!i(o.f, t, e), t[e]) @@ -406,19 +407,19 @@ , s = r("1d80") , c = n(a) , u = n("".slice) - , d = Math.ceil - , l = function(t) { + , l = Math.ceil + , d = function(t) { return function(e, r, n) { - var a, l, f = o(s(e)), h = i(r), p = f.length, m = void 0 === n ? " " : o(n); + var a, d, f = o(s(e)), h = i(r), p = f.length, m = void 0 === n ? " " : o(n); return h <= p || "" == m ? f : (a = h - p, - l = c(m, d(a / m.length)), - l.length > a && (l = u(l, 0, a)), - t ? f + l : l + f) + d = c(m, l(a / m.length)), + d.length > a && (d = u(d, 0, a)), + t ? f + d : d + f) } }; t.exports = { - start: l(!1), - end: l(!0) + start: d(!1), + end: d(!0) } }, "0cfb": function(t, e, r) { @@ -501,8 +502,8 @@ , s = r("5e77").CONFIGURABLE , c = r("8925") , u = r("69f3") - , d = u.enforce - , l = u.get + , l = u.enforce + , d = u.get , f = Object.defineProperty , h = a && !n((function() { return 8 !== f((function() {} @@ -532,13 +533,13 @@ } catch (i) {} } else t.prototype = void 0; - var n = d(t); + var n = l(t); return o(n, "source") || (n.source = p.join("string" == typeof e ? e : "")), t } ; Function.prototype.toString = m((function() { - return i(this) && l(this).source || c(this) + return i(this) && d(this).source || c(this) } ), "toString") }, @@ -616,7 +617,7 @@ var o = document.getElementById(r.watermark_parent_node) , s = o || document.body , c = Math.max(s.scrollWidth, s.clientWidth) - , l = Math.max(s.scrollHeight, s.clientHeight) + , d = Math.max(s.scrollHeight, s.clientHeight) , f = arguments[0] || {} , h = s , p = 0 @@ -637,21 +638,21 @@ g = "function" === typeof b.attachShadow ? b.attachShadow({ mode: "open" }) : b; - var y = s.children - , v = Math.floor(Math.random() * (y.length - 1)); - y[v] ? s.insertBefore(b, y[v]) : s.appendChild(b) + var v = s.children + , y = Math.floor(Math.random() * (v.length - 1)); + v[y] ? s.insertBefore(b, v[y]) : s.appendChild(b) } r.watermark_cols = parseInt((c - r.watermark_x) / (r.watermark_width + r.watermark_x_space) || 0); var S, w = parseInt((c - r.watermark_x - r.watermark_width * r.watermark_cols) / r.watermark_cols); r.watermark_x_space = w ? r.watermark_x_space : w, - r.watermark_rows = parseInt((l - r.watermark_y) / (r.watermark_height + r.watermark_y_space) || 0); - var C, _, A, I = parseInt((l - r.watermark_y - r.watermark_height * r.watermark_rows) / r.watermark_rows); + r.watermark_rows = parseInt((d - r.watermark_y) / (r.watermark_height + r.watermark_y_space) || 0); + var C, _, A, I = parseInt((d - r.watermark_y - r.watermark_height * r.watermark_rows) / r.watermark_rows); r.watermark_y_space = I ? r.watermark_y_space : I, o ? (S = r.watermark_x + r.watermark_width * r.watermark_cols + r.watermark_x_space * (r.watermark_cols - 1), C = r.watermark_y + r.watermark_height * r.watermark_rows + r.watermark_y_space * (r.watermark_rows - 1)) : (S = m + r.watermark_x + r.watermark_width * r.watermark_cols + r.watermark_x_space * (r.watermark_cols - 1), C = p + r.watermark_y + r.watermark_height * r.watermark_rows + r.watermark_y_space * (r.watermark_rows - 1)); for (var E = 0; E < r.watermark_rows; E++) { - A = o ? p + r.watermark_y + (l - C) / 2 + (r.watermark_y_space + r.watermark_height) * E : r.watermark_y + (l - C) / 2 + (r.watermark_y_space + r.watermark_height) * E; + A = o ? p + r.watermark_y + (d - C) / 2 + (r.watermark_y_space + r.watermark_height) * E : r.watermark_y + (d - C) / 2 + (r.watermark_y_space + r.watermark_height) * E; for (var T = 0; T < r.watermark_cols; T++) { _ = o ? m + r.watermark_x + (c - S) / 2 + (r.watermark_width + r.watermark_x_space) * T : r.watermark_x + (c - S) / 2 + (r.watermark_width + r.watermark_x_space) * T; var x = document.createElement("div") @@ -682,8 +683,8 @@ } } var k = void 0 === t.monitor ? r.monitor : t.monitor; - k && (u.observe(s, d), - u.observe(document.getElementById("wm_div_id").shadowRoot, d)) + k && (u.observe(s, l), + u.observe(document.getElementById("wm_div_id").shadowRoot, l)) } ; var i, o = function() { @@ -723,7 +724,7 @@ } , c = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver , u = new c(s) - , d = { + , l = { childList: !0, attributes: !0, subtree: !0 @@ -758,27 +759,27 @@ , r = a.f(e) , n = r.resolve , u = r.reject - , d = s((function() { + , l = s((function() { var r = o(e.resolve) , a = [] , s = 0 - , d = 1; + , l = 1; c(t, (function(t) { var o = s++ , c = !1; - d++, + l++, i(r, e, t).then((function(t) { c || (c = !0, a[o] = t, - --d || n(a)) + --l || n(a)) } ), u) } )), - --d || n(a) + --l || n(a) } )); - return d.error && u(d.value), + return l.error && u(l.value), r.promise } }) @@ -950,7 +951,7 @@ }, "1fb5": function(t, e, r) { "use strict"; - e.byteLength = d, + e.byteLength = l, e.toByteArray = f, e.fromByteArray = m; for (var n = [], i = [], o = "undefined" !== typeof Uint8Array ? Uint8Array : Array, a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = 0, c = a.length; s < c; ++s) @@ -965,27 +966,27 @@ var n = r === e ? 0 : 4 - r % 4; return [r, n] } - function d(t) { + function l(t) { var e = u(t) , r = e[0] , n = e[1]; return 3 * (r + n) / 4 - n } - function l(t, e, r) { + function d(t, e, r) { return 3 * (e + r) / 4 - r } function f(t) { - var e, r, n = u(t), a = n[0], s = n[1], c = new o(l(t, a, s)), d = 0, f = s > 0 ? a - 4 : a; + var e, r, n = u(t), a = n[0], s = n[1], c = new o(d(t, a, s)), l = 0, f = s > 0 ? a - 4 : a; for (r = 0; r < f; r += 4) e = i[t.charCodeAt(r)] << 18 | i[t.charCodeAt(r + 1)] << 12 | i[t.charCodeAt(r + 2)] << 6 | i[t.charCodeAt(r + 3)], - c[d++] = e >> 16 & 255, - c[d++] = e >> 8 & 255, - c[d++] = 255 & e; + c[l++] = e >> 16 & 255, + c[l++] = e >> 8 & 255, + c[l++] = 255 & e; return 2 === s && (e = i[t.charCodeAt(r)] << 2 | i[t.charCodeAt(r + 1)] >> 4, - c[d++] = 255 & e), + c[l++] = 255 & e), 1 === s && (e = i[t.charCodeAt(r)] << 10 | i[t.charCodeAt(r + 1)] << 4 | i[t.charCodeAt(r + 2)] >> 2, - c[d++] = e >> 8 & 255, - c[d++] = 255 & e), + c[l++] = e >> 8 & 255, + c[l++] = 255 & e), c } function h(t) { @@ -1019,8 +1020,8 @@ , s = r("0d51") , c = r("e95a") , u = r("07fa") - , d = r("3a9b") - , l = r("9a1f") + , l = r("3a9b") + , d = r("9a1f") , f = r("35a1") , h = r("2a62") , p = n.TypeError @@ -1030,7 +1031,7 @@ } , b = m.prototype; t.exports = function(t, e, r) { - var n, g, y, v, S, w, C, _ = r && r.that, A = !(!r || !r.AS_ENTRIES), I = !(!r || !r.IS_ITERATOR), E = !(!r || !r.INTERRUPTED), T = i(e, _), x = function(t) { + var n, g, v, y, S, w, C, _ = r && r.that, A = !(!r || !r.AS_ENTRIES), I = !(!r || !r.IS_ITERATOR), E = !(!r || !r.INTERRUPTED), T = i(e, _), x = function(t) { return n && h(n, "normal", t), new m(!0,t) }, P = function(t) { @@ -1044,14 +1045,14 @@ !g) throw p(s(t) + " is not iterable"); if (c(g)) { - for (y = 0, - v = u(t); v > y; y++) - if (S = P(t[y]), - S && d(b, S)) + for (v = 0, + y = u(t); y > v; v++) + if (S = P(t[v]), + S && l(b, S)) return S; return new m(!1) } - n = l(t, g) + n = d(t, g) } w = n.next; while (!(C = o(w, n)).done) { @@ -1060,7 +1061,7 @@ } catch (k) { h(n, "throw", k) } - if ("object" == typeof S && S && d(b, S)) + if ("object" == typeof S && S && l(b, S)) return S } return new m(!1) @@ -1092,21 +1093,21 @@ , c = r("e893") , u = r("94ca"); t.exports = function(t, e) { - var r, d, l, f, h, p, m = t.target, b = t.global, g = t.stat; - if (d = b ? n : g ? n[m] || s(m, {}) : (n[m] || {}).prototype, - d) - for (l in e) { - if (h = e[l], - t.noTargetGet ? (p = i(d, l), - f = p && p.value) : f = d[l], - r = u(b ? l : m + (g ? "." : "#") + l, t.forced), + var r, l, d, f, h, p, m = t.target, b = t.global, g = t.stat; + if (l = b ? n : g ? n[m] || s(m, {}) : (n[m] || {}).prototype, + l) + for (d in e) { + if (h = e[d], + t.noTargetGet ? (p = i(l, d), + f = p && p.value) : f = l[d], + r = u(b ? d : m + (g ? "." : "#") + d, t.forced), !r && void 0 !== f) { if (typeof h == typeof f) continue; c(h, f) } (t.sham || f && f.sham) && o(h, "sham", !0), - a(d, l, h, t) + a(l, d, h, t) } } }, @@ -1297,13 +1298,13 @@ , s = r("577e") , c = r("5a34") , u = r("1d80") - , d = r("ab13") - , l = r("c430") + , l = r("ab13") + , d = r("c430") , f = i("".startsWith) , h = i("".slice) , p = Math.min - , m = d("startsWith") - , b = !l && !m && !!function() { + , m = l("startsWith") + , b = !d && !m && !!function() { var t = o(String.prototype, "startsWith"); return t && !t.writable }(); @@ -1322,12 +1323,12 @@ }) }, "2cf4": function(t, e, r) { - var n, i, o, a, s = r("da84"), c = r("2ba4"), u = r("0366"), d = r("1626"), l = r("1a2d"), f = r("d039"), h = r("1be4"), p = r("f36a"), m = r("cc12"), b = r("d6d6"), g = r("1cdc"), y = r("605d"), v = s.setImmediate, S = s.clearImmediate, w = s.process, C = s.Dispatch, _ = s.Function, A = s.MessageChannel, I = s.String, E = 0, T = {}, x = "onreadystatechange"; + var n, i, o, a, s = r("da84"), c = r("2ba4"), u = r("0366"), l = r("1626"), d = r("1a2d"), f = r("d039"), h = r("1be4"), p = r("f36a"), m = r("cc12"), b = r("d6d6"), g = r("1cdc"), v = r("605d"), y = s.setImmediate, S = s.clearImmediate, w = s.process, C = s.Dispatch, _ = s.Function, A = s.MessageChannel, I = s.String, E = 0, T = {}, x = "onreadystatechange"; try { n = s.location } catch (R) {} var P = function(t) { - if (l(T, t)) { + if (d(T, t)) { var e = T[t]; delete T[t], e() @@ -1344,9 +1345,9 @@ , O = function(t) { s.postMessage(I(t), n.protocol + "//" + n.host) }; - v && S || (v = function(t) { + y && S || (y = function(t) { b(arguments.length, 1); - var e = d(t) ? t : _(t) + var e = l(t) ? t : _(t) , r = p(arguments, 1); return T[++E] = function() { c(e, void 0, r) @@ -1360,7 +1361,7 @@ delete T[t] } , - y ? i = function(t) { + v ? i = function(t) { w.nextTick(k(t)) } : C && C.now ? i = function(t) { @@ -1369,7 +1370,7 @@ : A && !g ? (o = new A, a = o.port2, o.port1.onmessage = D, - i = u(a.postMessage, a)) : s.addEventListener && d(s.postMessage) && !s.importScripts && n && "file:" !== n.protocol && !f(O) ? (i = O, + i = u(a.postMessage, a)) : s.addEventListener && l(s.postMessage) && !s.importScripts && n && "file:" !== n.protocol && !f(O) ? (i = O, s.addEventListener("message", D, !1)) : i = x in m("script") ? function(t) { h.appendChild(m("script"))[x] = function() { h.removeChild(this), @@ -1381,13 +1382,13 @@ } ), t.exports = { - set: v, + set: y, clear: S } }, "2d00": function(t, e, r) { - var n, i, o = r("da84"), a = r("342f"), s = o.process, c = o.Deno, u = s && s.versions || c && c.version, d = u && u.v8; - d && (n = d.split("."), + var n, i, o = r("da84"), a = r("342f"), s = o.process, c = o.Deno, u = s && s.versions || c && c.version, l = u && u.v8; + l && (n = l.split("."), i = n[0] > 0 && n[0] < 4 ? 1 : +(n[0] + n[1])), !i && a && (n = a.match(/Edge\/(\d+)/), (!n || n[1] >= 74) && (n = a.match(/Chrome\/(\d+)/), @@ -1530,7 +1531,7 @@ return t[e] = r } } - function d(t, e, r, n) { + function l(t, e, r, n) { var i = e && e.prototype instanceof h ? e : h , o = Object.create(i.prototype) , a = new I(n || []); @@ -1565,7 +1566,7 @@ } else "return" === r.method && r.abrupt("return", r.arg); n = "executing"; - var c = l(t, e, r); + var c = d(t, e, r); if ("normal" === c.type) { if (n = r.done ? "completed" : "suspendedYield", c.arg === f) @@ -1583,7 +1584,7 @@ }(t, r, a), o } - function l(t, e, r) { + function d(t, e, r) { try { return { type: "normal", @@ -1596,7 +1597,7 @@ } } } - t.wrap = d; + t.wrap = l; var f = {}; function h() {} function p() {} @@ -1607,9 +1608,9 @@ } )); var g = Object.getPrototypeOf - , y = g && g(g(E([]))); - y && y !== e && r.call(y, a) && (b = y); - var v = m.prototype = h.prototype = Object.create(b); + , v = g && g(g(E([]))); + v && v !== e && r.call(v, a) && (b = v); + var y = m.prototype = h.prototype = Object.create(b); function S(t) { ["next", "throw", "return"].forEach((function(e) { u(t, e, (function(t) { @@ -1621,10 +1622,10 @@ } function w(t, e) { function i(o, a, s, c) { - var u = l(t[o], t, a); + var u = d(t[o], t, a); if ("throw" !== u.type) { - var d = u.arg - , f = d.value; + var l = u.arg + , f = l.value; return f && "object" == n(f) && r.call(f, "__await") ? e.resolve(f.__await).then((function(t) { i("next", t, s, c) } @@ -1632,8 +1633,8 @@ i("throw", t, s, c) } )) : e.resolve(f).then((function(t) { - d.value = t, - s(d) + l.value = t, + s(l) } ), (function(t) { return i("throw", t, s, c) @@ -1668,7 +1669,7 @@ } return f } - var n = l(r, t.iterator, e.arg); + var n = d(r, t.iterator, e.arg); if ("throw" === n.type) return e.method = "throw", e.arg = n.arg, @@ -1740,7 +1741,7 @@ } } return p.prototype = m, - u(v, "constructor", m), + u(y, "constructor", m), u(m, "constructor", p), p.displayName = u(m, c, "GeneratorFunction"), t.isGeneratorFunction = function(t) { @@ -1751,7 +1752,7 @@ t.mark = function(t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, m) : (t.__proto__ = m, u(t, c, "GeneratorFunction")), - t.prototype = Object.create(v), + t.prototype = Object.create(y), t } , @@ -1769,20 +1770,20 @@ t.AsyncIterator = w, t.async = function(e, r, n, i, o) { void 0 === o && (o = Promise); - var a = new w(d(e, r, n, i),o); + var a = new w(l(e, r, n, i),o); return t.isGeneratorFunction(r) ? a : a.next().then((function(t) { return t.done ? t.value : a.next() } )) } , - S(v), - u(v, c, "Generator"), - u(v, a, (function() { + S(y), + u(y, c, "Generator"), + u(y, a, (function() { return this } )), - u(v, "toString", (function() { + u(y, "toString", (function() { return "[object Generator]" } )), @@ -2020,9 +2021,9 @@ , c = r("df75"); e.f = n && !i ? Object.defineProperties : function(t, e) { a(t); - var r, n = s(e), i = c(e), u = i.length, d = 0; - while (u > d) - o.f(t, r = i[d++], n[r]); + var r, n = s(e), i = c(e), u = i.length, l = 0; + while (u > l) + o.f(t, r = i[l++], n[r]); return t } }, @@ -2151,8 +2152,8 @@ 4002: function(t, e, r) { "use strict"; r("3ca3"); - var n, i = r("23e7"), o = r("83ab"), a = r("0d3b"), s = r("da84"), c = r("0366"), u = r("e330"), d = r("cb2d"), l = r("edd0"), f = r("19aa"), h = r("1a2d"), p = r("60da"), m = r("4df4"), b = r("4dae"), g = r("6547").codeAt, y = r("5fb2"), v = r("577e"), S = r("d44e"), w = r("d6d6"), C = r("5352"), _ = r("69f3"), A = _.set, I = _.getterFor("URL"), E = C.URLSearchParams, T = C.getState, x = s.URL, P = s.TypeError, k = s.parseInt, D = Math.floor, O = Math.pow, R = u("".charAt), N = u(/./.exec), M = u([].join), B = u(1..toString), F = u([].pop), j = u([].push), K = u("".replace), L = u([].shift), U = u("".split), X = u("".slice), z = u("".toLowerCase), G = u([].unshift), q = "Invalid authority", W = "Invalid scheme", V = "Invalid host", H = "Invalid port", Y = /[a-z]/i, Z = /[\d+-.a-z]/i, Q = /\d/, J = /^0x/i, $ = /^[0-7]+$/, tt = /^\d+$/, et = /^[\da-f]+$/i, rt = /[\0\t\n\r #%/:<>?@[\\\]^|]/, nt = /[\0\t\n\r #/:<>?@[\\\]^|]/, it = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g, ot = /[\t\n\r]/g, at = function(t) { - var e, r, n, i, o, a, s, c = U(t, "."); + var n, i = r("23e7"), o = r("83ab"), a = r("0d3b"), s = r("da84"), c = r("0366"), u = r("e330"), l = r("cb2d"), d = r("edd0"), f = r("19aa"), h = r("1a2d"), p = r("60da"), m = r("4df4"), b = r("4dae"), g = r("6547").codeAt, v = r("5fb2"), y = r("577e"), S = r("d44e"), w = r("d6d6"), C = r("5352"), _ = r("69f3"), A = _.set, I = _.getterFor("URL"), E = C.URLSearchParams, T = C.getState, x = s.URL, P = s.TypeError, k = s.parseInt, D = Math.floor, O = Math.pow, R = u("".charAt), M = u(/./.exec), N = u([].join), B = u(1..toString), F = u([].pop), j = u([].push), U = u("".replace), L = u([].shift), K = u("".split), X = u("".slice), z = u("".toLowerCase), G = u([].unshift), W = "Invalid authority", q = "Invalid scheme", H = "Invalid host", V = "Invalid port", Z = /[a-z]/i, Q = /[\d+-.a-z]/i, Y = /\d/, J = /^0x/i, $ = /^[0-7]+$/, tt = /^\d+$/, et = /^[\da-f]+$/i, rt = /[\0\t\n\r #%/:<>?@[\\\]^|]/, nt = /[\0\t\n\r #/:<>?@[\\\]^|]/, it = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g, ot = /[\t\n\r]/g, at = function(t) { + var e, r, n, i, o, a, s, c = K(t, "."); if (c.length && "" == c[c.length - 1] && c.length--, e = c.length, e > 4) @@ -2163,12 +2164,12 @@ "" == i) return t; if (o = 10, - i.length > 1 && "0" == R(i, 0) && (o = N(J, i) ? 16 : 8, + i.length > 1 && "0" == R(i, 0) && (o = M(J, i) ? 16 : 8, i = X(i, 8 == o ? 1 : 2)), "" === i) a = 0; else { - if (!N(10 == o ? tt : 8 == o ? $ : et, i)) + if (!M(10 == o ? tt : 8 == o ? $ : et, i)) return t; a = k(i, o) } @@ -2186,29 +2187,29 @@ s += r[n] * O(256, 3 - n); return s }, st = function(t) { - var e, r, n, i, o, a, s, c = [0, 0, 0, 0, 0, 0, 0, 0], u = 0, d = null, l = 0, f = function() { - return R(t, l) + var e, r, n, i, o, a, s, c = [0, 0, 0, 0, 0, 0, 0, 0], u = 0, l = null, d = 0, f = function() { + return R(t, d) }; if (":" == f()) { if (":" != R(t, 1)) return; - l += 2, + d += 2, u++, - d = u + l = u } while (f()) { if (8 == u) return; if (":" != f()) { e = r = 0; - while (r < 4 && N(et, f())) + while (r < 4 && M(et, f())) e = 16 * e + k(f(), 16), - l++, + d++, r++; if ("." == f()) { if (0 == r) return; - if (l -= r, + if (d -= r, u > 6) return; n = 0; @@ -2217,11 +2218,11 @@ n > 0) { if (!("." == f() && n < 4)) return; - l++ + d++ } - if (!N(Q, f())) + if (!M(Y, f())) return; - while (N(Q, f())) { + while (M(Y, f())) { if (o = k(f(), 10), null === i) i = o; @@ -2232,7 +2233,7 @@ } if (i > 255) return; - l++ + d++ } c[u] = 256 * c[u] + i, n++, @@ -2243,27 +2244,27 @@ break } if (":" == f()) { - if (l++, + if (d++, !f()) return } else if (f()) return; c[u++] = e } else { - if (null !== d) + if (null !== l) return; - l++, + d++, u++, - d = u + l = u } } - if (null !== d) { - a = u - d, + if (null !== l) { + a = u - l, u = 7; while (0 != u && a > 0) s = c[u], - c[u--] = c[d + a - 1], - c[d + --a] = s + c[u--] = c[l + a - 1], + c[l + --a] = s } else if (8 != u) return; return c @@ -2284,7 +2285,7 @@ r = 0; r < 4; r++) G(e, t % 256), t = D(t / 256); - return M(e, ".") + return N(e, ".") } if ("object" == typeof t) { for (e = "", @@ -2297,13 +2298,13 @@ return "[" + e + "]" } return t - }, dt = {}, lt = p({}, dt, { + }, lt = {}, dt = p({}, lt, { " ": 1, '"': 1, "<": 1, ">": 1, "`": 1 - }), ft = p({}, lt, { + }), ft = p({}, dt, { "#": 1, "?": 1, "{": 1, @@ -2331,24 +2332,24 @@ wss: 443 }, bt = function(t, e) { var r; - return 2 == t.length && N(Y, R(t, 0)) && (":" == (r = R(t, 1)) || !e && "|" == r) + return 2 == t.length && M(Z, R(t, 0)) && (":" == (r = R(t, 1)) || !e && "|" == r) }, gt = function(t) { var e; return t.length > 1 && bt(X(t, 0, 2)) && (2 == t.length || "/" === (e = R(t, 2)) || "\\" === e || "?" === e || "#" === e) - }, yt = function(t) { - return "." === t || "%2e" === z(t) }, vt = function(t) { + return "." === t || "%2e" === z(t) + }, yt = function(t) { return t = z(t), ".." === t || "%2e." === t || ".%2e" === t || "%2e%2e" === t - }, St = {}, wt = {}, Ct = {}, _t = {}, At = {}, It = {}, Et = {}, Tt = {}, xt = {}, Pt = {}, kt = {}, Dt = {}, Ot = {}, Rt = {}, Nt = {}, Mt = {}, Bt = {}, Ft = {}, jt = {}, Kt = {}, Lt = {}, Ut = function(t, e, r) { - var n, i, o, a = v(t); + }, St = {}, wt = {}, Ct = {}, _t = {}, At = {}, It = {}, Et = {}, Tt = {}, xt = {}, Pt = {}, kt = {}, Dt = {}, Ot = {}, Rt = {}, Mt = {}, Nt = {}, Bt = {}, Ft = {}, jt = {}, Ut = {}, Lt = {}, Kt = function(t, e, r) { + var n, i, o, a = y(t); if (e) { if (i = this.parse(a), i) throw P(i); this.searchParams = null } else { - if (void 0 !== r && (n = new Ut(r,!0)), + if (void 0 !== r && (n = new Kt(r,!0)), i = this.parse(a, null, n), i) throw P(i); @@ -2357,11 +2358,11 @@ this.searchParams = o } }; - Ut.prototype = { + Kt.prototype = { type: "URL", parse: function(t, e, r) { - var i, o, a, s, c = this, u = e || St, d = 0, l = "", f = !1, p = !1, g = !1; - t = v(t), + var i, o, a, s, c = this, u = e || St, l = 0, d = "", f = !1, p = !1, g = !1; + t = y(t), e || (c.scheme = "", c.username = "", c.password = "", @@ -2371,49 +2372,49 @@ c.query = null, c.fragment = null, c.cannotBeABaseURL = !1, - t = K(t, it, "")), - t = K(t, ot, ""), + t = U(t, it, "")), + t = U(t, ot, ""), i = m(t); - while (d <= i.length) { - switch (o = i[d], + while (l <= i.length) { + switch (o = i[l], u) { case St: - if (!o || !N(Y, o)) { + if (!o || !M(Z, o)) { if (e) - return W; + return q; u = Ct; continue } - l += z(o), + d += z(o), u = wt; break; case wt: - if (o && (N(Z, o) || "+" == o || "-" == o || "." == o)) - l += z(o); + if (o && (M(Q, o) || "+" == o || "-" == o || "." == o)) + d += z(o); else { if (":" != o) { if (e) - return W; - l = "", + return q; + d = "", u = Ct, - d = 0; + l = 0; continue } - if (e && (c.isSpecial() != h(mt, l) || "file" == l && (c.includesCredentials() || null !== c.port) || "file" == c.scheme && !c.host)) + if (e && (c.isSpecial() != h(mt, d) || "file" == d && (c.includesCredentials() || null !== c.port) || "file" == c.scheme && !c.host)) return; - if (c.scheme = l, + if (c.scheme = d, e) return void (c.isSpecial() && mt[c.scheme] == c.port && (c.port = null)); - l = "", - "file" == c.scheme ? u = Rt : c.isSpecial() && r && r.scheme == c.scheme ? u = _t : c.isSpecial() ? u = Tt : "/" == i[d + 1] ? (u = At, - d++) : (c.cannotBeABaseURL = !0, + d = "", + "file" == c.scheme ? u = Rt : c.isSpecial() && r && r.scheme == c.scheme ? u = _t : c.isSpecial() ? u = Tt : "/" == i[l + 1] ? (u = At, + l++) : (c.cannotBeABaseURL = !0, j(c.path, ""), u = jt) } break; case Ct: if (!r || r.cannotBeABaseURL && "#" != o) - return W; + return q; if (r.cannotBeABaseURL && "#" == o) { c.scheme = r.scheme, c.path = b(r.path), @@ -2426,12 +2427,12 @@ u = "file" == r.scheme ? Rt : It; continue; case _t: - if ("/" != o || "/" != i[d + 1]) { + if ("/" != o || "/" != i[l + 1]) { u = It; continue } u = xt, - d++; + l++; break; case At: if ("/" == o) { @@ -2458,7 +2459,7 @@ c.port = r.port, c.path = b(r.path), c.query = "", - u = Kt; + u = Ut; else { if ("#" != o) { c.username = r.username, @@ -2496,9 +2497,9 @@ break; case Tt: if (u = xt, - "/" != o || "/" != R(l, d + 1)) + "/" != o || "/" != R(d, l + 1)) continue; - d++; + l++; break; case xt: if ("/" != o && "\\" != o) { @@ -2508,85 +2509,85 @@ break; case Pt: if ("@" == o) { - f && (l = "%40" + l), + f && (d = "%40" + d), f = !0, - a = m(l); - for (var y = 0; y < a.length; y++) { - var S = a[y]; + a = m(d); + for (var v = 0; v < a.length; v++) { + var S = a[v]; if (":" != S || g) { var w = pt(S, ht); g ? c.password += w : c.username += w } else g = !0 } - l = "" + d = "" } else if (o == n || "/" == o || "?" == o || "#" == o || "\\" == o && c.isSpecial()) { - if (f && "" == l) - return q; - d -= m(l).length + 1, - l = "", + if (f && "" == d) + return W; + l -= m(d).length + 1, + d = "", u = kt } else - l += o; + d += o; break; case kt: case Dt: if (e && "file" == c.scheme) { - u = Mt; + u = Nt; continue } if (":" != o || p) { if (o == n || "/" == o || "?" == o || "#" == o || "\\" == o && c.isSpecial()) { - if (c.isSpecial() && "" == l) - return V; - if (e && "" == l && (c.includesCredentials() || null !== c.port)) + if (c.isSpecial() && "" == d) + return H; + if (e && "" == d && (c.includesCredentials() || null !== c.port)) return; - if (s = c.parseHost(l), + if (s = c.parseHost(d), s) return s; - if (l = "", + if (d = "", u = Bt, e) return; continue } "[" == o ? p = !0 : "]" == o && (p = !1), - l += o + d += o } else { - if ("" == l) - return V; - if (s = c.parseHost(l), + if ("" == d) + return H; + if (s = c.parseHost(d), s) return s; - if (l = "", + if (d = "", u = Ot, e == Dt) return } break; case Ot: - if (!N(Q, o)) { + if (!M(Y, o)) { if (o == n || "/" == o || "?" == o || "#" == o || "\\" == o && c.isSpecial() || e) { - if ("" != l) { - var C = k(l, 10); + if ("" != d) { + var C = k(d, 10); if (C > 65535) - return H; + return V; c.port = c.isSpecial() && C === mt[c.scheme] ? null : C, - l = "" + d = "" } if (e) return; u = Bt; continue } - return H + return V } - l += o; + d += o; break; case Rt: if (c.scheme = "file", "/" == o || "\\" == o) - u = Nt; + u = Mt; else { if (!r || "file" != r.scheme) { u = Ft; @@ -2600,10 +2601,10 @@ c.host = r.host, c.path = b(r.path), c.query = "", - u = Kt; + u = Ut; else { if ("#" != o) { - gt(M(b(i, d), "")) || (c.host = r.host, + gt(N(b(i, l), "")) || (c.host = r.host, c.path = b(r.path), c.shortenPath()), u = Ft; @@ -2617,36 +2618,36 @@ } } break; - case Nt: + case Mt: if ("/" == o || "\\" == o) { - u = Mt; + u = Nt; break } - r && "file" == r.scheme && !gt(M(b(i, d), "")) && (bt(r.path[0], !0) ? j(c.path, r.path[0]) : c.host = r.host), + r && "file" == r.scheme && !gt(N(b(i, l), "")) && (bt(r.path[0], !0) ? j(c.path, r.path[0]) : c.host = r.host), u = Ft; continue; - case Mt: + case Nt: if (o == n || "/" == o || "\\" == o || "?" == o || "#" == o) { - if (!e && bt(l)) + if (!e && bt(d)) u = Ft; - else if ("" == l) { + else if ("" == d) { if (c.host = "", e) return; u = Bt } else { - if (s = c.parseHost(l), + if (s = c.parseHost(d), s) return s; if ("localhost" == c.host && (c.host = ""), e) return; - l = "", + d = "", u = Bt } continue } - l += o; + d += o; break; case Bt: if (c.isSpecial()) { @@ -2663,64 +2664,64 @@ u = Lt; else c.query = "", - u = Kt; + u = Ut; break; case Ft: if (o == n || "/" == o || "\\" == o && c.isSpecial() || !e && ("?" == o || "#" == o)) { - if (vt(l) ? (c.shortenPath(), - "/" == o || "\\" == o && c.isSpecial() || j(c.path, "")) : yt(l) ? "/" == o || "\\" == o && c.isSpecial() || j(c.path, "") : ("file" == c.scheme && !c.path.length && bt(l) && (c.host && (c.host = ""), - l = R(l, 0) + ":"), - j(c.path, l)), - l = "", + if (yt(d) ? (c.shortenPath(), + "/" == o || "\\" == o && c.isSpecial() || j(c.path, "")) : vt(d) ? "/" == o || "\\" == o && c.isSpecial() || j(c.path, "") : ("file" == c.scheme && !c.path.length && bt(d) && (c.host && (c.host = ""), + d = R(d, 0) + ":"), + j(c.path, d)), + d = "", "file" == c.scheme && (o == n || "?" == o || "#" == o)) while (c.path.length > 1 && "" === c.path[0]) L(c.path); "?" == o ? (c.query = "", - u = Kt) : "#" == o && (c.fragment = "", + u = Ut) : "#" == o && (c.fragment = "", u = Lt) } else - l += pt(o, ft); + d += pt(o, ft); break; case jt: "?" == o ? (c.query = "", - u = Kt) : "#" == o ? (c.fragment = "", - u = Lt) : o != n && (c.path[0] += pt(o, dt)); + u = Ut) : "#" == o ? (c.fragment = "", + u = Lt) : o != n && (c.path[0] += pt(o, lt)); break; - case Kt: - e || "#" != o ? o != n && ("'" == o && c.isSpecial() ? c.query += "%27" : c.query += "#" == o ? "%23" : pt(o, dt)) : (c.fragment = "", + case Ut: + e || "#" != o ? o != n && ("'" == o && c.isSpecial() ? c.query += "%27" : c.query += "#" == o ? "%23" : pt(o, lt)) : (c.fragment = "", u = Lt); break; case Lt: - o != n && (c.fragment += pt(o, lt)); + o != n && (c.fragment += pt(o, dt)); break } - d++ + l++ } }, parseHost: function(t) { var e, r, n; if ("[" == R(t, 0)) { if ("]" != R(t, t.length - 1)) - return V; + return H; if (e = st(X(t, 1, -1)), !e) - return V; + return H; this.host = e } else if (this.isSpecial()) { - if (t = y(t), - N(rt, t)) - return V; + if (t = v(t), + M(rt, t)) + return H; if (e = at(t), null === e) - return V; + return H; this.host = e } else { - if (N(nt, t)) - return V; + if (M(nt, t)) + return H; for (e = "", r = m(t), n = 0; n < r.length; n++) - e += pt(r[n], dt); + e += pt(r[n], lt); this.host = e } }, @@ -2753,7 +2754,7 @@ t.includesCredentials() && (u += r + (n ? ":" + n : "") + "@"), u += ut(i), null !== o && (u += ":" + o)) : "file" == e && (u += "//"), - u += t.cannotBeABaseURL ? a[0] : a.length ? "/" + M(a, "/") : "", + u += t.cannotBeABaseURL ? a[0] : a.length ? "/" + N(a, "/") : "", null !== s && (u += "?" + s), null !== c && (u += "#" + c), u @@ -2779,13 +2780,13 @@ return this.scheme + ":" }, setProtocol: function(t) { - this.parse(v(t) + ":", St) + this.parse(y(t) + ":", St) }, getUsername: function() { return this.username }, setUsername: function(t) { - var e = m(v(t)); + var e = m(y(t)); if (!this.cannotHaveUsernamePasswordPort()) { this.username = ""; for (var r = 0; r < e.length; r++) @@ -2796,7 +2797,7 @@ return this.password }, setPassword: function(t) { - var e = m(v(t)); + var e = m(y(t)); if (!this.cannotHaveUsernamePasswordPort()) { this.password = ""; for (var r = 0; r < e.length; r++) @@ -2820,15 +2821,15 @@ }, getPort: function() { var t = this.port; - return null === t ? "" : v(t) + return null === t ? "" : y(t) }, setPort: function(t) { - this.cannotHaveUsernamePasswordPort() || (t = v(t), + this.cannotHaveUsernamePasswordPort() || (t = y(t), "" == t ? this.port = null : this.parse(t, Ot)) }, getPathname: function() { var t = this.path; - return this.cannotBeABaseURL ? t[0] : t.length ? "/" + M(t, "/") : "" + return this.cannotBeABaseURL ? t[0] : t.length ? "/" + N(t, "/") : "" }, setPathname: function(t) { this.cannotBeABaseURL || (this.path = [], @@ -2839,10 +2840,10 @@ return t ? "?" + t : "" }, setSearch: function(t) { - t = v(t), + t = y(t), "" == t ? this.query = null : ("?" == R(t, 0) && (t = X(t, 1)), this.query = "", - this.parse(t, Kt)), + this.parse(t, Ut)), this.searchParams.update() }, getSearchParams: function() { @@ -2853,7 +2854,7 @@ return t ? "#" + t : "" }, setHash: function(t) { - t = v(t), + t = y(t), "" != t ? ("#" == R(t, 0) && (t = X(t, 1)), this.fragment = "", this.parse(t, Lt)) : this.fragment = null @@ -2865,7 +2866,7 @@ var Xt = function(t) { var e = f(this, zt) , r = w(arguments.length, 1) > 1 ? arguments[1] : void 0 - , n = A(e, new Ut(t,!1,r)); + , n = A(e, new Kt(t,!1,r)); o || (e.href = n.serialize(), e.origin = n.getOrigin(), e.protocol = n.getProtocol(), @@ -2893,35 +2894,35 @@ enumerable: !0 } }; - if (o && (l(zt, "href", Gt("serialize", "setHref")), - l(zt, "origin", Gt("getOrigin")), - l(zt, "protocol", Gt("getProtocol", "setProtocol")), - l(zt, "username", Gt("getUsername", "setUsername")), - l(zt, "password", Gt("getPassword", "setPassword")), - l(zt, "host", Gt("getHost", "setHost")), - l(zt, "hostname", Gt("getHostname", "setHostname")), - l(zt, "port", Gt("getPort", "setPort")), - l(zt, "pathname", Gt("getPathname", "setPathname")), - l(zt, "search", Gt("getSearch", "setSearch")), - l(zt, "searchParams", Gt("getSearchParams")), - l(zt, "hash", Gt("getHash", "setHash"))), - d(zt, "toJSON", (function() { + if (o && (d(zt, "href", Gt("serialize", "setHref")), + d(zt, "origin", Gt("getOrigin")), + d(zt, "protocol", Gt("getProtocol", "setProtocol")), + d(zt, "username", Gt("getUsername", "setUsername")), + d(zt, "password", Gt("getPassword", "setPassword")), + d(zt, "host", Gt("getHost", "setHost")), + d(zt, "hostname", Gt("getHostname", "setHostname")), + d(zt, "port", Gt("getPort", "setPort")), + d(zt, "pathname", Gt("getPathname", "setPathname")), + d(zt, "search", Gt("getSearch", "setSearch")), + d(zt, "searchParams", Gt("getSearchParams")), + d(zt, "hash", Gt("getHash", "setHash"))), + l(zt, "toJSON", (function() { return I(this).serialize() } ), { enumerable: !0 }), - d(zt, "toString", (function() { + l(zt, "toString", (function() { return I(this).serialize() } ), { enumerable: !0 }), x) { - var qt = x.createObjectURL - , Wt = x.revokeObjectURL; - qt && d(Xt, "createObjectURL", c(qt, x)), - Wt && d(Xt, "revokeObjectURL", c(Wt, x)) + var Wt = x.createObjectURL + , qt = x.revokeObjectURL; + Wt && l(Xt, "createObjectURL", c(Wt, x)), + qt && l(Xt, "revokeObjectURL", c(qt, x)) } S(Xt, "URL"), i({ @@ -3047,8 +3048,8 @@ , s = r("8925") , c = r("b622") , u = r("6069") - , d = r("c430") - , l = r("2d00") + , l = r("c430") + , d = r("2d00") , f = i && i.prototype , h = c("species") , p = !1 @@ -3056,11 +3057,11 @@ , b = a("Promise", (function() { var t = s(i) , e = t !== String(i); - if (!e && 66 === l) + if (!e && 66 === d) return !0; - if (d && (!f["catch"] || !f["finally"])) + if (l && (!f["catch"] || !f["finally"])) return !0; - if (l >= 51 && /native code/.test(t)) + if (d >= 51 && /native code/.test(t)) return !1; var r = new i((function(t) { t(1) @@ -3154,12 +3155,12 @@ n in e ? r[n] = c(t[n], e[n]) : n in t && (r[n] = c(void 0, t[n])) } )); - var d = i.concat(o).concat(a).concat(s) - , l = Object.keys(t).concat(Object.keys(e)).filter((function(t) { - return -1 === d.indexOf(t) + var l = i.concat(o).concat(a).concat(s) + , d = Object.keys(t).concat(Object.keys(e)).filter((function(t) { + return -1 === l.indexOf(t) } )); - return n.forEach(l, u), + return n.forEach(d, u), r } }, @@ -3169,16 +3170,16 @@ , o = r("07fa") , a = function(t) { return function(e, r, a) { - var s, c = n(e), u = o(c), d = i(a, u); + var s, c = n(e), u = o(c), l = i(a, u); if (t && r != r) { - while (u > d) - if (s = c[d++], + while (u > l) + if (s = c[l++], s != s) return !0 } else - for (; u > d; d++) - if ((t || d in c) && c[d] === r) - return t || d || 0; + for (; u > l; l++) + if ((t || l in c) && c[l] === r) + return t || l || 0; return !t && -1 } }; @@ -3210,11 +3211,11 @@ , s = n.Array , c = Math.max; t.exports = function(t, e, r) { - for (var n = o(t), u = i(e, n), d = i(void 0 === r ? n : r, n), l = s(c(d - u, 0)), f = 0; u < d; u++, + for (var n = o(t), u = i(e, n), l = i(void 0 === r ? n : r, n), d = s(c(l - u, 0)), f = 0; u < l; u++, f++) - a(l, f, t[u]); - return l.length = f, - l + a(d, f, t[u]); + return d.length = f, + d } }, "4df4": function(t, e, r) { @@ -3226,8 +3227,8 @@ , s = r("9bdd") , c = r("e95a") , u = r("68ee") - , d = r("07fa") - , l = r("8418") + , l = r("07fa") + , d = r("8418") , f = r("9a1f") , h = r("35a1") , p = n.Array; @@ -3238,20 +3239,20 @@ , m = n > 1 ? arguments[1] : void 0 , b = void 0 !== m; b && (m = i(m, n > 2 ? arguments[2] : void 0)); - var g, y, v, S, w, C, _ = h(e), A = 0; + var g, v, y, S, w, C, _ = h(e), A = 0; if (!_ || this == p && c(_)) - for (g = d(e), - y = r ? new this(g) : p(g); g > A; A++) + for (g = l(e), + v = r ? new this(g) : p(g); g > A; A++) C = b ? m(e[A], A) : e[A], - l(y, A, C); + d(v, A, C); else for (S = f(e, _), w = S.next, - y = r ? new this : []; !(v = o(w, S)).done; A++) - C = b ? s(S, m, [v.value, A], !0) : v.value, - l(y, A, C); - return y.length = A, - y + v = r ? new this : []; !(y = o(w, S)).done; A++) + C = b ? s(S, m, [y.value, A], !0) : y.value, + d(v, A, C); + return v.length = A, + v } }, "4e28": function(t, e, r) { @@ -3349,16 +3350,16 @@ , s = r("83ab") , c = r("0d3b") , u = r("cb2d") - , d = r("6964") - , l = r("d44e") + , l = r("6964") + , d = r("d44e") , f = r("9ed3") , h = r("69f3") , p = r("19aa") , m = r("1626") , b = r("1a2d") , g = r("0366") - , y = r("f5df") - , v = r("825a") + , v = r("f5df") + , y = r("825a") , S = r("861d") , w = r("577e") , C = r("7c73") @@ -3373,29 +3374,29 @@ , D = k + "Iterator" , O = h.set , R = h.getterFor(k) - , N = h.getterFor(D) - , M = Object.getOwnPropertyDescriptor + , M = h.getterFor(D) + , N = Object.getOwnPropertyDescriptor , B = function(t) { if (!s) return i[t]; - var e = M(i, t); + var e = N(i, t); return e && e.value } , F = B("fetch") , j = B("Request") - , K = B("Headers") + , U = B("Headers") , L = j && j.prototype - , U = K && K.prototype + , K = U && U.prototype , X = i.RegExp , z = i.TypeError , G = i.decodeURIComponent - , q = i.encodeURIComponent - , W = a("".charAt) - , V = a([].join) - , H = a([].push) - , Y = a("".replace) - , Z = a([].shift) - , Q = a([].splice) + , W = i.encodeURIComponent + , q = a("".charAt) + , H = a([].join) + , V = a([].push) + , Z = a("".replace) + , Q = a([].shift) + , Y = a([].splice) , J = a("".split) , $ = a("".slice) , tt = /\+/g @@ -3411,13 +3412,13 @@ } } , it = function(t) { - var e = Y(t, tt, " ") + var e = Z(t, tt, " ") , r = 4; try { return G(e) } catch (n) { while (r) - e = Y(e, rt(r--), nt); + e = Z(e, rt(r--), nt); return e } } @@ -3434,7 +3435,7 @@ return at[t] } , ct = function(t) { - return Y(q(t), ot, st) + return Z(W(t), ot, st) } , ut = f((function(t, e) { O(this, { @@ -3444,7 +3445,7 @@ }) } ), "Iterator", (function() { - var t = N(this) + var t = M(this) , e = t.kind , r = t.iterator.next() , n = r.value; @@ -3452,12 +3453,12 @@ r } ), !0) - , dt = function(t) { + , lt = function(t) { this.entries = [], this.url = null, - void 0 !== t && (S(t) ? this.parseObject(t) : this.parseQuery("string" == typeof t ? "?" === W(t, 0) ? $(t, 1) : t : w(t))) + void 0 !== t && (S(t) ? this.parseObject(t) : this.parseQuery("string" == typeof t ? "?" === q(t, 0) ? $(t, 1) : t : w(t))) }; - dt.prototype = { + lt.prototype = { type: k, bindURL: function(t) { this.url = t, @@ -3469,20 +3470,20 @@ e = A(t, u), r = e.next; while (!(n = o(r, e)).done) { - if (i = A(v(n.value)), + if (i = A(y(n.value)), a = i.next, (s = o(a, i)).done || (c = o(a, i)).done || !o(a, i).done) throw z("Expected sequence with length 2"); - H(this.entries, { + V(this.entries, { key: w(s.value), value: w(c.value) }) } } else - for (var d in t) - b(t, d) && H(this.entries, { - key: d, - value: w(t[d]) + for (var l in t) + b(t, l) && V(this.entries, { + key: l, + value: w(t[l]) }) }, parseQuery: function(t) { @@ -3491,9 +3492,9 @@ while (i < n.length) e = n[i++], e.length && (r = J(e, "="), - H(this.entries, { - key: it(Z(r)), - value: it(V(r, "=")) + V(this.entries, { + key: it(Q(r)), + value: it(H(r, "=")) })) } }, @@ -3501,8 +3502,8 @@ var t, e = this.entries, r = [], n = 0; while (n < e.length) t = e[n++], - H(r, ct(t.key) + "=" + ct(t.value)); - return V(r, "&") + V(r, ct(t.key) + "=" + ct(t.value)); + return H(r, "&") }, update: function() { this.entries.length = 0, @@ -3512,17 +3513,17 @@ this.url && this.url.update() } }; - var lt = function() { + var dt = function() { p(this, ft); var t = arguments.length > 0 ? arguments[0] : void 0; - O(this, new dt(t)) + O(this, new lt(t)) } - , ft = lt.prototype; - if (d(ft, { + , ft = dt.prototype; + if (l(ft, { append: function(t, e) { E(arguments.length, 2); var r = R(this); - H(r.entries, { + V(r.entries, { key: w(t), value: w(e) }), @@ -3535,7 +3536,7 @@ , n = w(t) , i = 0; while (i < r.length) - r[i].key === n ? Q(r, i, 1) : i++; + r[i].key === n ? Y(r, i, 1) : i++; e.updateURL() }, get: function(t) { @@ -3548,7 +3549,7 @@ getAll: function(t) { E(arguments.length, 1); for (var e = R(this).entries, r = w(t), n = [], i = 0; i < e.length; i++) - e[i].key === r && H(n, e[i].value); + e[i].key === r && V(n, e[i].value); return n }, has: function(t) { @@ -3565,9 +3566,9 @@ E(arguments.length, 1); for (var r, n = R(this), i = n.entries, o = !1, a = w(t), s = w(e), c = 0; c < i.length; c++) r = i[c], - r.key === a && (o ? Q(i, c--, 1) : (o = !0, + r.key === a && (o ? Y(i, c--, 1) : (o = !0, r.value = s)); - o || H(i, { + o || V(i, { key: a, value: s }), @@ -3608,22 +3609,22 @@ ), { enumerable: !0 }), - l(lt, k), + d(dt, k), n({ global: !0, constructor: !0, forced: !c }, { - URLSearchParams: lt + URLSearchParams: dt }), - !c && m(K)) { - var ht = a(U.has) - , pt = a(U.set) + !c && m(U)) { + var ht = a(K.has) + , pt = a(K.set) , mt = function(t) { if (S(t)) { var e, r = t.body; - if (y(r) === k) - return e = t.headers ? new K(t.headers) : new K, + if (v(r) === k) + return e = t.headers ? new U(t.headers) : new U, ht(e, "content-type") || pt(e, "content-type", "application/x-www-form-urlencoded;charset=UTF-8"), C(t, { body: _(0, w(r)), @@ -3660,7 +3661,7 @@ } } t.exports = { - URLSearchParams: lt, + URLSearchParams: dt, getState: R } }, @@ -3864,21 +3865,21 @@ }, "5e7e": function(t, e, r) { "use strict"; - var n, i, o, a, s = r("23e7"), c = r("c430"), u = r("605d"), d = r("da84"), l = r("c65b"), f = r("cb2d"), h = r("d2bb"), p = r("d44e"), m = r("2626"), b = r("59ed"), g = r("1626"), y = r("861d"), v = r("19aa"), S = r("4840"), w = r("2cf4").set, C = r("b575"), _ = r("44de"), A = r("e667"), I = r("01b4"), E = r("69f3"), T = r("d256"), x = r("4738"), P = r("f069"), k = "Promise", D = x.CONSTRUCTOR, O = x.REJECTION_EVENT, R = x.SUBCLASSING, N = E.getterFor(k), M = E.set, B = T && T.prototype, F = T, j = B, K = d.TypeError, L = d.document, U = d.process, X = P.f, z = X, G = !!(L && L.createEvent && d.dispatchEvent), q = "unhandledrejection", W = "rejectionhandled", V = 0, H = 1, Y = 2, Z = 1, Q = 2, J = function(t) { + var n, i, o, a, s = r("23e7"), c = r("c430"), u = r("605d"), l = r("da84"), d = r("c65b"), f = r("cb2d"), h = r("d2bb"), p = r("d44e"), m = r("2626"), b = r("59ed"), g = r("1626"), v = r("861d"), y = r("19aa"), S = r("4840"), w = r("2cf4").set, C = r("b575"), _ = r("44de"), A = r("e667"), I = r("01b4"), E = r("69f3"), T = r("d256"), x = r("4738"), P = r("f069"), k = "Promise", D = x.CONSTRUCTOR, O = x.REJECTION_EVENT, R = x.SUBCLASSING, M = E.getterFor(k), N = E.set, B = T && T.prototype, F = T, j = B, U = l.TypeError, L = l.document, K = l.process, X = P.f, z = X, G = !!(L && L.createEvent && l.dispatchEvent), W = "unhandledrejection", q = "rejectionhandled", H = 0, V = 1, Z = 2, Q = 1, Y = 2, J = function(t) { var e; - return !(!y(t) || !g(e = t.then)) && e + return !(!v(t) || !g(e = t.then)) && e }, $ = function(t, e) { - var r, n, i, o = e.value, a = e.state == H, s = a ? t.ok : t.fail, c = t.resolve, u = t.reject, d = t.domain; + var r, n, i, o = e.value, a = e.state == V, s = a ? t.ok : t.fail, c = t.resolve, u = t.reject, l = t.domain; try { - s ? (a || (e.rejection === Q && it(e), - e.rejection = Z), - !0 === s ? r = o : (d && d.enter(), + s ? (a || (e.rejection === Y && it(e), + e.rejection = Q), + !0 === s ? r = o : (l && l.enter(), r = s(o), - d && (d.exit(), + l && (l.exit(), i = !0)), - r === t.promise ? u(K("Promise-chain cycle")) : (n = J(r)) ? l(n, r, c, u) : c(r)) : u(o) + r === t.promise ? u(U("Promise-chain cycle")) : (n = J(r)) ? d(n, r, c, u) : c(r)) : u(o) } catch (f) { - d && !i && d.exit(), + l && !i && l.exit(), u(f) } }, tt = function(t, e) { @@ -3897,29 +3898,29 @@ n.promise = e, n.reason = r, n.initEvent(t, !1, !0), - d.dispatchEvent(n)) : n = { + l.dispatchEvent(n)) : n = { promise: e, reason: r }, - !O && (i = d["on" + t]) ? i(n) : t === q && _("Unhandled promise rejection", r) + !O && (i = l["on" + t]) ? i(n) : t === W && _("Unhandled promise rejection", r) }, rt = function(t) { - l(w, d, (function() { + d(w, l, (function() { var e, r = t.facade, n = t.value, i = nt(t); if (i && (e = A((function() { - u ? U.emit("unhandledRejection", n, r) : et(q, r, n) + u ? K.emit("unhandledRejection", n, r) : et(W, r, n) } )), - t.rejection = u || nt(t) ? Q : Z, + t.rejection = u || nt(t) ? Y : Q, e.error)) throw e.value } )) }, nt = function(t) { - return t.rejection !== Z && !t.parent + return t.rejection !== Q && !t.parent }, it = function(t) { - l(w, d, (function() { + d(w, l, (function() { var e = t.facade; - u ? U.emit("rejectionHandled", e) : et(W, e, t.value) + u ? K.emit("rejectionHandled", e) : et(q, e, t.value) } )) }, ot = function(t, e, r) { @@ -3930,7 +3931,7 @@ t.done || (t.done = !0, r && (t = r), t.value = e, - t.state = Y, + t.state = Z, tt(t, !0)) }, st = function(t, e, r) { if (!t.done) { @@ -3938,20 +3939,20 @@ r && (t = r); try { if (t.facade === e) - throw K("Promise can't be resolved itself"); + throw U("Promise can't be resolved itself"); var n = J(e); n ? C((function() { var r = { done: !1 }; try { - l(n, e, ot(st, r, t), ot(at, r, t)) + d(n, e, ot(st, r, t), ot(at, r, t)) } catch (i) { at(r, i, t) } } )) : (t.value = e, - t.state = H, + t.state = V, tt(t, !1)) } catch (i) { at({ @@ -3961,10 +3962,10 @@ } }; if (D && (F = function(t) { - v(this, j), + y(this, j), b(t), - l(n, this); - var e = N(this); + d(n, this); + var e = M(this); try { t(ot(st, e), ot(at, e)) } catch (r) { @@ -3974,26 +3975,26 @@ , j = F.prototype, n = function(t) { - M(this, { + N(this, { type: k, done: !1, notified: !1, parent: !1, reactions: new I, rejection: !1, - state: V, + state: H, value: void 0 }) } , n.prototype = f(j, "then", (function(t, e) { - var r = N(this) + var r = M(this) , n = X(S(this, F)); return r.parent = !0, n.ok = !g(t) || t, n.fail = g(e) && e, - n.domain = u ? U.domain : void 0, - r.state == V ? r.reactions.add(n) : C((function() { + n.domain = u ? K.domain : void 0, + r.state == H ? r.reactions.add(n) : C((function() { $(n, r) } )), @@ -4002,7 +4003,7 @@ )), i = function() { var t = new n - , e = N(t); + , e = M(t); this.promise = t, this.resolve = ot(st, e), this.reject = ot(at, e) @@ -4017,7 +4018,7 @@ R || f(B, "then", (function(t, e) { var r = this; return new F((function(t, e) { - l(a, r, t, e) + d(a, r, t, e) } )).then(t, e) } @@ -4067,16 +4068,16 @@ , s = 1 , c = 26 , u = 38 - , d = 700 - , l = 72 + , l = 700 + , d = 72 , f = 128 , h = "-" , p = /[^\0-\u007E]/ , m = /[.\u3002\uFF0E\uFF61]/g , b = "Overflow: input needs wider integers to process" , g = a - s - , y = n.RangeError - , v = i(m.exec) + , v = n.RangeError + , y = i(m.exec) , S = Math.floor , w = String.fromCharCode , C = i("".charCodeAt) @@ -4105,7 +4106,7 @@ } , k = function(t, e, r) { var n = 0; - t = r ? S(t / d) : t >> 1, + t = r ? S(t / l) : t >> 1, t += S(t / e); while (t > g * c >> 1) t = S(t / g), @@ -4115,7 +4116,7 @@ , D = function(t) { var e = []; t = x(t); - var r, n, i = t.length, u = f, d = 0, p = l; + var r, n, i = t.length, u = f, l = 0, p = d; for (r = 0; r < t.length; r++) n = t[r], n < 128 && A(e, w(n)); @@ -4123,21 +4124,21 @@ , g = m; m && A(e, h); while (g < i) { - var v = o; + var y = o; for (r = 0; r < t.length; r++) n = t[r], - n >= u && n < v && (v = n); + n >= u && n < y && (y = n); var C = g + 1; - if (v - u > S((o - d) / C)) - throw y(b); - for (d += (v - u) * C, - u = v, + if (y - u > S((o - l) / C)) + throw v(b); + for (l += (y - u) * C, + u = y, r = 0; r < t.length; r++) { if (n = t[r], - n < u && ++d > o) - throw y(b); + n < u && ++l > o) + throw v(b); if (n == u) { - var I = d + var I = l , E = a; while (1) { var T = E <= p ? s : E >= p + c ? c : E - p; @@ -4150,12 +4151,12 @@ E += a } A(e, w(P(I))), - p = k(d, C, g == m), - d = 0, + p = k(l, C, g == m), + l = 0, g++ } } - d++, + l++, u++ } return _(e, "") @@ -4164,7 +4165,7 @@ var e, r, n = [], i = E(I(T(t), m, "."), "."); for (e = 0; e < i.length; e++) r = i[e], - A(n, v(p, r) ? "xn--" + D(r) : r); + A(n, y(p, r) ? "xn--" + D(r) : r); return _(n, ".") } }, @@ -4188,8 +4189,8 @@ , s = r("df75") , c = r("7418") , u = r("d1e7") - , d = r("7b0b") - , l = r("44ad") + , l = r("7b0b") + , d = r("44ad") , f = Object.assign , h = Object.defineProperty , p = i([].concat); @@ -4220,21 +4221,43 @@ 7 != f({}, t)[r] || s(f({}, e)).join("") != i } )) ? function(t, e) { - var r = d(t) + var r = l(t) , i = arguments.length , a = 1 , f = c.f , h = u.f; while (i > a) { - var m, b = l(arguments[a++]), g = f ? p(s(b), f(b)) : s(b), y = g.length, v = 0; - while (y > v) - m = g[v++], + var m, b = d(arguments[a++]), g = f ? p(s(b), f(b)) : s(b), v = g.length, y = 0; + while (v > y) + m = g[y++], n && !o(h, b, m) || (r[m] = b[m]) } return r } : f }, + "62e4": function(t, e) { + t.exports = function(t) { + return t.webpackPolyfill || (t.deprecate = function() {} + , + t.paths = [], + t.children || (t.children = []), + Object.defineProperty(t, "loaded", { + enumerable: !0, + get: function() { + return t.l + } + }), + Object.defineProperty(t, "id", { + enumerable: !0, + get: function() { + return t.i + } + }), + t.webpackPolyfill = 1), + t + } + }, "64c1": function(t, e, r) { var n; n = function() { @@ -4256,19 +4279,19 @@ var s = r ? new Uint8Array(3 * e.length >> 2) : [] , c = 0 , u = 0 - , d = 0; + , l = 0; for (n = 0; n < e.length; ++n) { - var l = i ? e.charCodeAt(n) : e[n]; - if (61 == l) + var d = i ? e.charCodeAt(n) : e[n]; + if (61 == d) break; - if (l = t[l], - -1 != l) { - if (void 0 === l) + if (d = t[d], + -1 != d) { + if (void 0 === d) throw "Illegal character at offset " + n; - c |= l, - ++u >= 4 ? (s[d++] = c >> 16, - s[d++] = c >> 8 & 255, - s[d++] = 255 & c, + c |= d, + ++u >= 4 ? (s[l++] = c >> 16, + s[l++] = c >> 8 & 255, + s[l++] = 255 & c, c = 0, u = 0) : c <<= 6 } @@ -4277,14 +4300,14 @@ case 1: throw "Base64 encoding incomplete: at least 2 bits missing"; case 2: - s[d++] = c >> 10; + s[l++] = c >> 10; break; case 3: - s[d++] = c >> 16, - s[d++] = c >> 8 & 255; + s[l++] = c >> 16, + s[l++] = c >> 8 & 255; break } - return r && s.length > d && (s = s.subarray(0, d)), + return r && s.length > l && (s = s.subarray(0, l)), s } , @@ -4323,16 +4346,16 @@ , s = n("".charAt) , c = n("".charCodeAt) , u = n("".slice) - , d = function(t) { + , l = function(t) { return function(e, r) { - var n, d, l = o(a(e)), f = i(r), h = l.length; - return f < 0 || f >= h ? t ? "" : void 0 : (n = c(l, f), - n < 55296 || n > 56319 || f + 1 === h || (d = c(l, f + 1)) < 56320 || d > 57343 ? t ? s(l, f) : n : t ? u(l, f, f + 2) : d - 56320 + (n - 55296 << 10) + 65536) + var n, l, d = o(a(e)), f = i(r), h = d.length; + return f < 0 || f >= h ? t ? "" : void 0 : (n = c(d, f), + n < 55296 || n > 56319 || f + 1 === h || (l = c(d, f + 1)) < 56320 || l > 57343 ? t ? s(d, f) : n : t ? u(d, f, f + 2) : l - 56320 + (n - 55296 << 10) + 65536) } }; t.exports = { - codeAt: d(!1), - charAt: d(!0) + codeAt: l(!1), + charAt: l(!0) } }, 6566: function(t, e, r) { @@ -4344,15 +4367,15 @@ , s = r("19aa") , c = r("2266") , u = r("7dd0") - , d = r("2626") - , l = r("83ab") + , l = r("2626") + , d = r("83ab") , f = r("f183").fastKey , h = r("69f3") , p = h.set , m = h.getterFor; t.exports = { getConstructor: function(t, e, r, u) { - var d = t((function(t, n) { + var l = t((function(t, n) { s(t, h), p(t, { type: e, @@ -4361,17 +4384,17 @@ last: void 0, size: 0 }), - l || (t.size = 0), + d || (t.size = 0), void 0 != n && c(n, t[u], { that: t, AS_ENTRIES: r }) } )) - , h = d.prototype + , h = l.prototype , b = m(e) , g = function(t, e, r) { - var n, i, o = b(t), a = y(t, e); + var n, i, o = b(t), a = v(t, e); return a ? a.value = r : (o.last = a = { index: i = f(e, !0), key: e, @@ -4382,11 +4405,11 @@ }, o.first || (o.first = a), n && (n.next = a), - l ? o.size++ : t.size++, + d ? o.size++ : t.size++, "F" !== i && (o.index[i] = a)), t } - , y = function(t, e) { + , v = function(t, e) { var r, n = b(t), i = f(e); if ("F" !== i) return n.index[i]; @@ -4406,12 +4429,12 @@ delete r[n.index], n = n.next; e.first = e.last = void 0, - l ? e.size = 0 : t.size = 0 + d ? e.size = 0 : t.size = 0 }, delete: function(t) { var e = this , r = b(e) - , n = y(e, t); + , n = v(e, t); if (n) { var i = n.next , o = n.previous; @@ -4421,7 +4444,7 @@ i && (i.previous = o), r.first == n && (r.first = i), r.last == n && (r.last = o), - l ? r.size-- : e.size-- + d ? r.size-- : e.size-- } return !!n }, @@ -4434,12 +4457,12 @@ } }, has: function(t) { - return !!y(this, t) + return !!v(this, t) } }), o(h, r ? { get: function(t) { - var e = y(this, t); + var e = v(this, t); return e && e.value }, set: function(t, e) { @@ -4450,12 +4473,12 @@ return g(this, t = 0 === t ? 0 : t, t) } }), - l && n(h, "size", { + d && n(h, "size", { get: function() { return b(this).size } }), - d + l }, setStrong: function(t, e, r) { var n = e + " Iterator" @@ -4492,7 +4515,7 @@ }) } ), r ? "entries" : "values", !r, !0), - d(e) + l(e) } } }, @@ -4502,20 +4525,19 @@ return new (n(t))(0 === e ? 0 : e) } }, - "67d3": function(t, e, r) { "use strict"; (function(t) { r.d(e, "d", (function() { - return x + return k } )), r.d(e, "b", (function() { - return P + return D } )), r.d(e, "c", (function() { - return k + return O } )); var n = r("3662") @@ -4525,20 +4547,22 @@ , s = r("73fd") , c = r("a9c6") , u = r("14a5") - , d = r.n(u) - , l = r("9a6e") - , f = r.n(l); - function h(t) { - return h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { + , l = r.n(u) + , d = r("9a6e") + , f = r.n(d) + , h = r("7b14") + , p = r.n(h); + function m(t) { + return m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t } : function(t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t } , - h(t) + m(t) } - function p(t, e, r) { + function b(t, e, r) { return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, @@ -4547,10 +4571,10 @@ }) : t[e] = r, t } - function m(t, e) { + function g(t, e) { var r = "undefined" !== typeof Symbol && t[Symbol.iterator] || t["@@iterator"]; if (!r) { - if (Array.isArray(t) || (r = y(t)) || e && t && "number" === typeof t.length) { + if (Array.isArray(t) || (r = S(t)) || e && t && "number" === typeof t.length) { r && (t = r); var n = 0 , i = function() {}; @@ -4596,28 +4620,28 @@ } } } - function b(t, e) { - return w(t) || S(t, e) || y(t, e) || g() + function v(t, e) { + return _(t) || C(t, e) || S(t, e) || y() } - function g() { + function y() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") } - function y(t, e) { + function S(t, e) { if (t) { if ("string" === typeof t) - return v(t, e); + return w(t, e); var r = Object.prototype.toString.call(t).slice(8, -1); return "Object" === r && t.constructor && (r = t.constructor.name), - "Map" === r || "Set" === r ? Array.from(t) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? v(t, e) : void 0 + "Map" === r || "Set" === r ? Array.from(t) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? w(t, e) : void 0 } } - function v(t, e) { + function w(t, e) { (null == e || e > t.length) && (e = t.length); for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r]; return n } - function S(t, e) { + function C(t, e) { var r = null == t ? null : "undefined" !== typeof Symbol && t[Symbol.iterator] || t["@@iterator"]; if (null != r) { var n, i, o = [], a = !0, s = !1; @@ -4640,13 +4664,13 @@ return o } } - function w(t) { + function _(t) { if (Array.isArray(t)) return t } - function C() { + function A() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ - C = function() { + A = function() { return t } ; @@ -4674,7 +4698,7 @@ } } function c(t, e, r, n) { - var i = e && e.prototype instanceof l ? e : l + var i = e && e.prototype instanceof d ? e : d , o = Object.create(i.prototype) , a = new I(n || []); return o._invoke = function(t, e, r) { @@ -4693,7 +4717,7 @@ if (a) { var s = w(a, r); if (s) { - if (s === d) + if (s === l) continue; return s } @@ -4711,7 +4735,7 @@ var c = u(t, e, r); if ("normal" === c.type) { if (n = r.done ? "completed" : "suspendedYield", - c.arg === d) + c.arg === l) continue; return { value: c.arg, @@ -4740,20 +4764,20 @@ } } t.wrap = c; - var d = {}; - function l() {} + var l = {}; + function d() {} function f() {} - function p() {} - var m = {}; - s(m, i, (function() { + function h() {} + var p = {}; + s(p, i, (function() { return this } )); var b = Object.getPrototypeOf , g = b && b(b(E([]))); - g && g !== e && r.call(g, i) && (m = g); - var y = p.prototype = l.prototype = Object.create(m); - function v(t) { + g && g !== e && r.call(g, i) && (p = g); + var v = h.prototype = d.prototype = Object.create(p); + function y(t) { ["next", "throw", "return"].forEach((function(e) { s(t, e, (function(t) { return this._invoke(e, t) @@ -4766,17 +4790,17 @@ function n(i, o, a, s) { var c = u(t[i], t, o); if ("throw" !== c.type) { - var d = c.arg - , l = d.value; - return l && "object" == h(l) && r.call(l, "__await") ? e.resolve(l.__await).then((function(t) { + var l = c.arg + , d = l.value; + return d && "object" == m(d) && r.call(d, "__await") ? e.resolve(d.__await).then((function(t) { n("next", t, a, s) } ), (function(t) { n("throw", t, a, s) } - )) : e.resolve(l).then((function(t) { - d.value = t, - a(d) + )) : e.resolve(d).then((function(t) { + l.value = t, + a(l) } ), (function(t) { return n("throw", t, a, s) @@ -4805,30 +4829,30 @@ e.arg = void 0, w(t, e), "throw" === e.method)) - return d; + return l; e.method = "throw", e.arg = new TypeError("The iterator does not provide a 'throw' method") } - return d + return l } var n = u(r, t.iterator, e.arg); if ("throw" === n.type) return e.method = "throw", e.arg = n.arg, e.delegate = null, - d; + l; var i = n.arg; return i ? i.done ? (e[t.resultName] = i.value, e.next = t.nextLoc, "return" !== e.method && (e.method = "next", e.arg = void 0), e.delegate = null, - d) : i : (e.method = "throw", + l) : i : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, - d) + l) } - function _(t) { + function C(t) { var e = { tryLoc: t[0] }; @@ -4837,7 +4861,7 @@ e.afterLoc = t[3]), this.tryEntries.push(e) } - function A(t) { + function _(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, @@ -4847,7 +4871,7 @@ this.tryEntries = [{ tryLoc: "root" }], - t.forEach(_, this), + t.forEach(C, this), this.reset(!0) } function E(t) { @@ -4882,19 +4906,19 @@ done: !0 } } - return f.prototype = p, - s(y, "constructor", p), - s(p, "constructor", f), - f.displayName = s(p, a, "GeneratorFunction"), + return f.prototype = h, + s(v, "constructor", h), + s(h, "constructor", f), + f.displayName = s(h, a, "GeneratorFunction"), t.isGeneratorFunction = function(t) { var e = "function" == typeof t && t.constructor; return !!e && (e === f || "GeneratorFunction" === (e.displayName || e.name)) } , t.mark = function(t) { - return Object.setPrototypeOf ? Object.setPrototypeOf(t, p) : (t.__proto__ = p, + return Object.setPrototypeOf ? Object.setPrototypeOf(t, h) : (t.__proto__ = h, s(t, a, "GeneratorFunction")), - t.prototype = Object.create(y), + t.prototype = Object.create(v), t } , @@ -4904,7 +4928,7 @@ } } , - v(S.prototype), + y(S.prototype), s(S.prototype, o, (function() { return this } @@ -4919,13 +4943,13 @@ )) } , - v(y), - s(y, a, "Generator"), - s(y, i, (function() { + y(v), + s(v, a, "Generator"), + s(v, i, (function() { return this } )), - s(y, "toString", (function() { + s(v, "toString", (function() { return "[object Generator]" } )), @@ -4958,7 +4982,7 @@ this.delegate = null, this.method = "next", this.arg = void 0, - this.tryEntries.forEach(A), + this.tryEntries.forEach(_), !t) for (var e in this) "t" === e.charAt(0) && r.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = void 0) @@ -5021,7 +5045,7 @@ a.arg = e, o ? (this.method = "next", this.next = o.finallyLoc, - d) : this.complete(a) + l) : this.complete(a) }, complete: function(t, e) { if ("throw" === t.type) @@ -5029,15 +5053,15 @@ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), - d + l }, finish: function(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), - A(r), - d + _(r), + l } }, catch: function(t) { @@ -5047,7 +5071,7 @@ var n = r.completion; if ("throw" === n.type) { var i = n.arg; - A(r) + _(r) } return i } @@ -5061,12 +5085,12 @@ nextLoc: r }, "next" === this.method && (this.arg = void 0), - d + l } }, t } - function _(t, e, r, n, i, o, a) { + function I(t, e, r, n, i, o, a) { try { var s = t[o](a) , c = s.value @@ -5075,28 +5099,41 @@ } s.done ? e(c) : Promise.resolve(c).then(n, i) } - function A(t) { + function E(t) { return function() { var e = this , r = arguments; return new Promise((function(n, i) { var o = t.apply(e, r); function a(t) { - _(o, n, i, a, s, "next", t) + I(o, n, i, a, s, "next", t) } function s(t) { - _(o, n, i, a, s, "throw", t) + I(o, n, i, a, s, "throw", t) } a(void 0) } )) } } - var I = r("74db") - , E = "" - , T = "" - , x = function(t, e) { - + var T = r("74db") + , x = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwImLbqWu58LE+LAgvR3Qwvizexn1TDfXldpBiq/ri5aghzOBnCgcaHIgdZc6RoUtiPl5CWtteCd5dLikQfxSJMBxhK2+gvhW4o+ImPbPq9o/3KGY4XdgsPOc12mIgZMQfLzRxkHJXk80v1tKBe2FYMAoUeqxbqdNR/aHkwS1EKOixCp2W8DwUKyQm2JXRjKT5KGJBhzOn9u8oETn2wrcLRmQmb/NXlENKrZ8Lv3A9wFZpFBRUUYkVLuOo/Qmc97uR4NHGQaeUd9aSaa+f2/30LklT/64F6vDB3RAqF4ve2vmoHxE7d5L0E993Rq/TB0HxtuDvxb2slRoGQAe9mvK1QIDAQAB" + , P = "" + , k = function(t, e) { + P = e; + var r = ""; + r = self.location.href; + var n = ""; + if (n = self.location.host, + r.startsWith("file://") || n.startsWith("localhost") || n.startsWith("127.0.0.1")) + ; + else if (P) { + var i = new f.a; + i.setPublicKey(x); + var a = i.decrypt(P, !1); + a ? -1 == n.indexOf(a) && rt() : rt() + } else + rt(); return new Promise((function(e, r) { o.a.loadAsync(t).then((function(t) { e(t) @@ -5108,15 +5145,15 @@ } )) } - , P = function() { - var t = A(C().mark((function t(e) { + , D = function() { + var t = E(A().mark((function t(e) { var r, n, i; - return C().wrap((function(t) { + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: return t.next = 2, - V(e, "OFD.xml"); + Z(e, "OFD.xml"); case 2: return r = t.sent, n = r["json"]["ofd:OFD"]["ofd:DocBody"], @@ -5135,18 +5172,18 @@ return t.apply(this, arguments) } }() - , k = function() { - var t = A(C().mark((function t(e) { + , O = function() { + var t = E(A().mark((function t(e) { var r, n, i, o, a, s, c, u; - return C().wrap((function(t) { + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: - r = b(e, 2), + r = v(e, 2), n = r[0], i = r[1], o = [], - a = m(i), + a = g(i), t.prev = 3, a.s(); case 5: @@ -5160,27 +5197,27 @@ break } return t.next = 10, - D(n, c); + R(n, c); case 10: return u = t.sent, t.next = 13, - O(u); + M(u); case 13: return u = t.sent, t.next = 16, - N(u); + B(u); case 16: return u = t.sent, t.next = 19, - M(u); + F(u); case 19: return u = t.sent, t.next = 22, - B(u); + j(u); case 22: return u = t.sent, t.next = 25, - F(u); + U(u); case 25: u = t.sent, u.docInfo = c["ofd:DocInfo"], @@ -5213,10 +5250,10 @@ return t.apply(this, arguments) } }() - , D = function() { - var t = A(C().mark((function t(e, r) { - var n, i, o, s, c, u, d, l, f, h, p, b, g, y, v, S, w, _, I, E, T, x, P, k, D, O, R; - return C().wrap((function(t) { + , R = function() { + var t = E(A().mark((function t(e, r) { + var n, i, o, s, c, u, l, d, f, h, p, m, b, v, y, S, w, C, _, I, T, x, P, k, D, O, R; + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: @@ -5225,59 +5262,67 @@ i = n.split("/")[0], o = r["ofd:Signatures"], t.next = 6, - z(e, o, i); + W(e, o, i); case 6: s = t.sent, c = {}, - u = m(s), + u = g(s), t.prev = 9, u.s(); case 11: - if ((d = u.n()).done) { - t.next = 57; + if ((l = u.n()).done) { + t.next = 63; break } - if (l = d.value, - !(l.sealObj && Object.keys(l.sealObj).length > 0)) { - t.next = 55; + if (d = l.value, + !(d.sealObj && Object.keys(d.sealObj).length > 0)) { + t.next = 61; break } - if ("ofd" !== l.sealObj.type) { - t.next = 22; + if ("ofd" !== d.sealObj.type) { + t.next = 28; break } - return t.next = 17, - W(l); - case 17: + return t.prev = 15, + t.next = 18, + V(d); + case 18: f = t.sent, - h = m(f); + h = g(f); try { for (h.s(); !(p = h.n()).done; ) - b = p.value, - l.stampAnnot.boundary = Object(a["k"])(l.stampAnnot["@_Boundary"]), - l.stampAnnot.pageRef = l.stampAnnot["@_PageRef"], - c[l.stampAnnot["@_PageRef"]] || (c[l.stampAnnot["@_PageRef"]] = []), - c[l.stampAnnot["@_PageRef"]].push({ + m = p.value, + d.stampAnnot.boundary = Object(a["k"])(d.stampAnnot["@_Boundary"]), + d.stampAnnot.pageRef = d.stampAnnot["@_PageRef"], + c[d.stampAnnot["@_PageRef"]] || (c[d.stampAnnot["@_PageRef"]] = []), + c[d.stampAnnot["@_PageRef"]].push({ type: "ofd", - obj: b, - stamp: l + obj: m, + stamp: d }) - } catch (N) { - h.e(N) + } catch (M) { + h.e(M) } finally { h.f() } - t.next = 55; + t.next = 26; break; - case 22: - if ("png" !== l.sealObj.type && "gif" !== l.sealObj.type && "jpg" !== l.sealObj.type && "jpeg" !== l.sealObj.type && 0 != l.sealObj.type.indexOf("png") && "bmp" !== l.sealObj.type) { - t.next = 54; + case 23: + t.prev = 23, + t.t0 = t["catch"](15), + console.log("电子印章解析失败!"); + case 26: + t.next = 61; + break; + case 28: + if ("png" !== d.sealObj.type && "gif" !== d.sealObj.type && "jpg" !== d.sealObj.type && "jpeg" !== d.sealObj.type && 0 != d.sealObj.type.indexOf("png") && "bmp" !== d.sealObj.type) { + t.next = 60; break } - if (g = function() { - var t = A(C().mark((function t(e) { + if (b = function() { + var t = E(A().mark((function t(e) { var r, n; - return C().wrap((function(t) { + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: @@ -5312,49 +5357,49 @@ return t.apply(this, arguments) } }(), - y = void 0, - "bmp" !== l.sealObj.type) { - t.next = 38; + v = void 0, + "bmp" !== d.sealObj.type) { + t.next = 44; break } - return t.next = 28, - g("data:image/bmp;base64," + Object(a["o"])(l.sealObj.ofdArray)); - case 28: - for (v = t.sent, + return t.next = 34, + b("data:image/bmp;base64," + Object(a["p"])(d.sealObj.ofdArray)); + case 34: + for (y = t.sent, S = document.createElement("canvas"), - S.width = v.width, - S.height = v.height, + S.width = y.width, + S.height = y.height, w = S.getContext("2d"), - _ = 0; _ < v.data.length / 4; _++) - v.data[4 * _] > 250 && v.data[4 * _ + 1] > 250 && v.data[4 * _ + 2] > 250 && (v.data[4 * _ + 3] = 0); - w.putImageData(v, 0, 0), - y = S.toDataURL("image/png", 1), - t.next = 48; + C = 0; C < y.data.length / 4; C++) + y.data[4 * C] > 250 && y.data[4 * C + 1] > 250 && y.data[4 * C + 2] > 250 && (y.data[4 * C + 3] = 0); + w.putImageData(y, 0, 0), + v = S.toDataURL("image/png", 1), + t.next = 54; break; - case 38: - return t.next = 40, - g("data:image/png;base64," + Object(a["o"])(l.sealObj.ofdArray)); - case 40: - for (I = t.sent, - E = document.createElement("canvas"), - E.width = I.width, - E.height = I.height, - T = E.getContext("2d"), + case 44: + return t.next = 46, + b("data:image/png;base64," + Object(a["p"])(d.sealObj.ofdArray)); + case 46: + for (_ = t.sent, + I = document.createElement("canvas"), + I.width = _.width, + I.height = _.height, + T = I.getContext("2d"), x = !1, - _ = 0; _ < I.data.length / 4; _++) - I.data[4 * _] > 250 && I.data[4 * _ + 1] > 250 && I.data[4 * _ + 2] > 250 && (I.data[4 * _ + 3] = 0, + C = 0; C < _.data.length / 4; C++) + _.data[4 * C] > 250 && _.data[4 * C + 1] > 250 && _.data[4 * C + 2] > 250 && (_.data[4 * C + 3] = 0, x = !0); - x ? (T.putImageData(I, 0, 0), - y = E.toDataURL("image/png", 1)) : y = "data:image/png;base64," + Object(a["o"])(l.sealObj.ofdArray); - case 48: + x ? (T.putImageData(_, 0, 0), + v = I.toDataURL("image/png", 1)) : v = "data:image/png;base64," + Object(a["p"])(d.sealObj.ofdArray); + case 54: P = [], - P = P.concat(l.stampAnnot), - k = m(P); + P = P.concat(d.stampAnnot), + k = g(P); try { for (k.s(); !(D = k.n()).done; ) O = D.value, O && (R = { - img: y, + img: v, pageId: O["@_PageRef"], boundary: Object(a["k"])(O["@_Boundary"]), clip: Object(a["k"])(O["@_Clip"]) @@ -5363,69 +5408,69 @@ c[O["@_PageRef"]].push({ type: "png", obj: R, - stamp: l + stamp: d })) - } catch (N) { - k.e(N) + } catch (M) { + k.e(M) } finally { k.f() } - t.next = 55; + t.next = 61; break; - case 54: - console.log(l.sealObj.type); - case 55: + case 60: + console.log(d.sealObj.type); + case 61: t.next = 11; break; - case 57: - t.next = 62; + case 63: + t.next = 68; break; - case 59: - t.prev = 59, - t.t0 = t["catch"](9), - u.e(t.t0); - case 62: - return t.prev = 62, - u.f(), - t.finish(62); case 65: + t.prev = 65, + t.t1 = t["catch"](9), + u.e(t.t1); + case 68: + return t.prev = 68, + u.f(), + t.finish(68); + case 71: return t.abrupt("return", [e, i, n, c]); - case 66: + case 72: case "end": return t.stop() } } - ), t, null, [[9, 59, 62, 65]]) + ), t, null, [[9, 65, 68, 71], [15, 23]]) } ))); return function(e, r) { return t.apply(this, arguments) } }() - , O = function() { - var t = A(C().mark((function t(e) { - var r, n, i, o, a, s, c, u, d, l, f; - return C().wrap((function(t) { + , M = function() { + var t = E(A().mark((function t(e) { + var r, n, i, o, a, s, c, u, l, d, f; + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: - return r = b(e, 4), + return r = v(e, 4), n = r[0], i = r[1], o = r[2], a = r[3], t.next = 3, - V(n, o); + Z(n, o); case 3: if (s = t.sent, c = s["json"]["ofd:Document"], u = c["ofd:Annotations"], - d = [], + l = [], !u) { t.next = 16; break } - if (-1 !== u.indexOf("/") && (l = u.substring(0, u.indexOf("/"))), + if (-1 !== u.indexOf("/") && (d = u.substring(0, u.indexOf("/"))), -1 === u.indexOf(i) && (u = "".concat(i, "/").concat(u)), 0 === u.indexOf("/") && (u = u.substring(1)), !n.files[u]) { @@ -5433,13 +5478,13 @@ break } return t.next = 14, - V(n, u); + Z(n, u); case 14: u = t.sent, - d = d.concat(u["json"]["ofd:Annotations"]["ofd:Page"]); + l = l.concat(u["json"]["ofd:Annotations"]["ofd:Page"]); case 16: return t.next = 18, - R(l, d, i, n); + N(d, l, i, n); case 18: return f = t.sent, t.abrupt("return", [n, i, c, a, f]); @@ -5455,15 +5500,15 @@ return t.apply(this, arguments) } }() - , R = function() { - var t = A(C().mark((function t(e, r, n, i) { - var o, s, c, u, d, l, f, h, p, b, g, y, v, S, w; - return C().wrap((function(t) { + , N = function() { + var t = E(A().mark((function t(e, r, n, i) { + var o, s, c, u, l, d, f, h, p, m, b, v, y, S, w; + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: o = {}, - s = m(r), + s = g(r), t.prev = 2, s.s(); case 4: @@ -5478,46 +5523,46 @@ } return t.abrupt("continue", 42); case 8: - if (d = u["@_PageID"], - l = u["ofd:FileLoc"], - l = Object(a["l"])(l), - e && -1 === l.indexOf(e) && (l = "".concat(e, "/").concat(l)), - -1 === l.indexOf(n) && (l = "".concat(n, "/").concat(l)), - !i.files[l]) { + if (l = u["@_PageID"], + d = u["ofd:FileLoc"], + d = Object(a["l"])(d), + e && -1 === d.indexOf(e) && (d = "".concat(e, "/").concat(d)), + -1 === d.indexOf(n) && (d = "".concat(n, "/").concat(d)), + !i.files[d]) { t.next = 42; break } return t.next = 16, - V(i, l); + Z(i, d); case 16: f = t.sent, h = [], h = h.concat(f["json"]["ofd:PageAnnot"]["ofd:Annot"]), - o[d] || (o[d] = []), - p = m(h), + o[l] || (o[l] = []), + p = g(h), t.prev = 21, p.s(); case 23: - if ((b = p.n()).done) { + if ((m = p.n()).done) { t.next = 34; break } - if (g = b.value, - g) { + if (b = m.value, + b) { t.next = 27; break } return t.abrupt("continue", 32); case 27: - y = g["@_Type"], - v = !g["@_Visible"] || g["@_Visible"], - S = g["ofd:Appearance"], + v = b["@_Type"], + y = !b["@_Visible"] || b["@_Visible"], + S = b["ofd:Appearance"], w = { - type: y, + type: v, appearance: S, - visible: v + visible: y }, - o[d].push(w); + o[l].push(w); case 32: t.next = 23; break; @@ -5560,14 +5605,14 @@ return t.apply(this, arguments) } }() - , N = function() { - var t = A(C().mark((function t(e) { - var r, n, i, o, a, s, c, u, d, l, f, h, p; - return C().wrap((function(t) { + , B = function() { + var t = E(A().mark((function t(e) { + var r, n, i, o, a, s, c, u, l, d, f, h, p, m, b, y, S, w, C, _, I, E, T; + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: - if (r = b(e, 5), + if (r = v(e, 5), n = r[0], i = r[1], o = r[2], @@ -5575,39 +5620,68 @@ s = r[4], c = o["ofd:CommonData"]["ofd:DocumentRes"], u = {}, - d = {}, l = {}, + d = {}, f = [], !c) { - t.next = 23; + t.next = 34; break } - if (-1 == c.indexOf(i) && (c = "".concat(i, "/").concat(c)), - !n.files[c]) { - t.next = 23; + if (h = [], + c instanceof Array) { + p = g(c); + try { + for (p.s(); !(m = p.n()).done; ) + b = m.value, + b && h.push(b) + } catch (A) { + p.e(A) + } finally { + p.f() + } + } else + h.push(c); + y = 0, + S = h; + case 10: + if (!(y < S.length)) { + t.next = 34; break } - return t.next = 11, - V(n, c); - case 11: - return h = t.sent, - p = h["json"]["ofd:Res"], - t.next = 15, - j(p, n, i); - case 15: - return u = t.sent, - t.next = 18, - K(p); - case 18: - return d = t.sent, - t.next = 21, - L(n, p, i); - case 21: - l = t.sent, - f = U(p); - case 23: - return t.abrupt("return", [n, i, o, a, s, u, d, l, f]); + if (w = S[y], + -1 == w.indexOf(i) && (w = "".concat(i, "/").concat(w)), + !n.files[w]) { + t.next = 31; + break + } + return t.next = 16, + Z(n, w); + case 16: + return C = t.sent, + _ = C["json"]["ofd:Res"], + t.next = 20, + L(_, n, i); + case 20: + return I = t.sent, + u = Object.assign(u, I), + t.next = 24, + K(_); case 24: + return E = t.sent, + l = Object.assign(l, E), + t.next = 28, + X(n, _, i); + case 28: + T = t.sent, + d = Object.assign(d, T), + f = z(_); + case 31: + y++, + t.next = 10; + break; + case 34: + return t.abrupt("return", [n, i, o, a, s, u, l, d, f]); + case 35: case "end": return t.stop() } @@ -5619,14 +5693,14 @@ return t.apply(this, arguments) } }() - , M = function() { - var t = A(C().mark((function t(e) { - var r, n, i, o, a, s, c, u, d, l, f, h, p, g, y, v, S, w, _, A, I, E, T; - return C().wrap((function(t) { + , F = function() { + var t = E(A().mark((function t(e) { + var r, n, i, o, a, s, c, u, l, d, f, h, p, m, b, y, S, w, C, _, I, E, T; + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: - if (r = b(e, 9), + if (r = v(e, 9), n = r[0], i = r[1], o = r[2], @@ -5634,8 +5708,8 @@ s = r[4], c = r[5], u = r[6], - d = r[7], - l = r[8], + l = r[7], + d = r[8], f = o["ofd:CommonData"]["ofd:PublicRes"], !f) { t.next = 30; @@ -5643,58 +5717,58 @@ } if (h = [], f instanceof Array) { - p = m(f); + p = g(f); try { - for (p.s(); !(g = p.n()).done; ) - y = g.value, - y && h.push(y) - } catch (C) { - p.e(C) + for (p.s(); !(m = p.n()).done; ) + b = m.value, + b && h.push(b) + } catch (A) { + p.e(A) } finally { p.f() } } else h.push(f); - v = 0, + y = 0, S = h; case 6: - if (!(v < S.length)) { + if (!(y < S.length)) { t.next = 30; break } - if (w = S[v], + if (w = S[y], -1 == w.indexOf(i) && (w = "".concat(i, "/").concat(w)), !n.files[w]) { t.next = 27; break } return t.next = 12, - V(n, w); + Z(n, w); case 12: - return _ = t.sent, - A = _["json"]["ofd:Res"], + return C = t.sent, + _ = C["json"]["ofd:Res"], t.next = 16, - j(A, n, i); + L(_, n, i); case 16: return I = t.sent, c = Object.assign(c, I), t.next = 20, - K(A); + K(_); case 20: return E = t.sent, u = Object.assign(u, E), t.next = 24, - L(n, A, i); + X(n, _, i); case 24: T = t.sent, - d = Object.assign(d, T), - l = l.concat(U(A)); + l = Object.assign(l, T), + d = d.concat(z(_)); case 27: - v++, + y++, t.next = 6; break; case 30: - return t.abrupt("return", [n, i, o, a, s, c, u, d, l]); + return t.abrupt("return", [n, i, o, a, s, c, u, l, d]); case 31: case "end": return t.stop() @@ -5707,14 +5781,14 @@ return t.apply(this, arguments) } }() - , B = function() { - var t = A(C().mark((function t(e) { - var r, n, i, o, a, s, c, u, d, l, f, h, p, g, y, v, S; - return C().wrap((function(t) { + , j = function() { + var t = E(A().mark((function t(e) { + var r, n, i, o, a, s, c, u, l, d, f, h, p, m, b, y, S; + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: - r = b(e, 9), + r = v(e, 9), n = r[0], i = r[1], o = r[2], @@ -5722,27 +5796,27 @@ s = r[4], c = r[5], u = r[6], - d = r[7], - l = r[8], + l = r[7], + d = r[8], f = o["ofd:CommonData"]["ofd:TemplatePage"], h = [], h = h.concat(f), p = {}, - g = m(h), + m = g(h), t.prev = 6, - g.s(); + m.s(); case 8: - if ((y = g.n()).done) { + if ((b = m.n()).done) { t.next = 17; break } - if (v = y.value, - !v) { + if (y = b.value, + !y) { t.next = 15; break } return t.next = 13, - X(n, v, i); + G(n, y, i); case 13: S = t.sent, S && (p[Object.keys(S)[0]] = S[Object.keys(S)[0]]); @@ -5755,13 +5829,13 @@ case 19: t.prev = 19, t.t0 = t["catch"](6), - g.e(t.t0); + m.e(t.t0); case 22: return t.prev = 22, - g.f(), + m.f(), t.finish(22); case 25: - return t.abrupt("return", [n, i, o, a, s, p, c, u, d, l]); + return t.abrupt("return", [n, i, o, a, s, p, c, u, l, d]); case 26: case "end": return t.stop() @@ -5774,14 +5848,14 @@ return t.apply(this, arguments) } }() - , F = function() { - var t = A(C().mark((function t(e) { - var r, n, i, o, a, s, c, u, d, l, h, p, g, y, v, S, w, _, A, I, x, P, k, D, O; - return C().wrap((function(t) { + , U = function() { + var t = E(A().mark((function t(e) { + var r, n, i, o, a, s, c, u, l, d, h, p, m, b, y, S, w, C, _, I, E, T, k, D, O, R, M, N, B; + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: - r = b(e, 10), + r = v(e, 10), n = r[0], i = r[1], o = r[2], @@ -5789,42 +5863,51 @@ s = r[4], c = r[5], u = r[6], - d = r[7], - l = r[8], + l = r[7], + d = r[8], h = r[9], p = o["ofd:Pages"]["ofd:Page"], - g = [], - g = g.concat(p), - y = [], - A = m(g), + m = [], + m = m.concat(p), + b = [], + P && (S = new f.a, + S.setPublicKey(x), + w = S.decrypt(P, !1), + w && (C = self.location.host, + _ = w.split(" ")[0], + I = w.split(" ")[1], + C.indexOf(_) >= 0 && (I ? (E = new Date(I), + T = new Date, + E > T && (y = 1e3)) : y = 1e3))), + k = g(m), t.prev = 9, - A.s(); + k.s(); case 11: - if ((I = A.n()).done) { + if ((D = k.n()).done) { t.next = 22; break } - if (x = I.value, - !(y.length >= v)) { + if (O = D.value, + !(b.length >= y)) { t.next = 15; break } return t.abrupt("break", 22); case 15: - if (!x) { + if (!O) { t.next = 20; break } return t.next = 18, - X(n, x, i); + G(n, O, i); case 18: - P = t.sent, - P && (k = Object.keys(P)[0], - D = a[k], - D && (P[k].stamp = D), - O = s[k], - O && (P[k].annotation = O), - y.push(P)); + R = t.sent, + R && (M = Object.keys(R)[0], + N = a[M], + N && (R[M].stamp = N), + B = s[M], + B && (R[M].annotation = B), + b.push(R)); case 20: t.next = 11; break; @@ -5834,21 +5917,21 @@ case 24: t.prev = 24, t.t0 = t["catch"](9), - A.e(t.t0); + k.e(t.t0); case 27: return t.prev = 27, - A.f(), + k.f(), t.finish(27); case 30: return t.abrupt("return", { doc: i, document: o, - pages: y, + pages: b, tpls: c, stampAnnot: a, fontResObj: u, - drawParamResObj: d, - multiMediaResObj: l, + drawParamResObj: l, + multiMediaResObj: d, compositeGraphicUnits: h }); case 31: @@ -5863,10 +5946,10 @@ return t.apply(this, arguments) } }() - , j = function() { - var t = A(C().mark((function t(e, r, n) { - var i, o, a, s, c, u, d, l, f, h, p, b, g, y; - return C().wrap((function(t) { + , L = function() { + var t = E(A().mark((function t(e, r, n) { + var i, o, a, s, c, u, l, d, f, h, p, m, b, v; + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: @@ -5878,32 +5961,32 @@ } if (a = [], i instanceof Array) { - s = m(i); + s = g(i); try { for (s.s(); !(c = s.n()).done; ) if (u = c.value, u) if (u["ofd:Font"]instanceof Array) { - d = m(u["ofd:Font"]); + l = g(u["ofd:Font"]); try { - for (d.s(); !(l = d.n()).done; ) - f = l.value, + for (l.s(); !(d = l.n()).done; ) + f = d.value, a.push(f) - } catch (v) { - d.e(v) + } catch (y) { + l.e(y) } finally { - d.f() + l.f() } } else a.push(u["ofd:Font"]) - } catch (v) { - s.e(v) + } catch (y) { + s.e(y) } finally { s.f() } } else a = a.concat(i["ofd:Font"]); - h = m(a), + h = g(a), t.prev = 6, h.s(); case 8: @@ -5911,29 +5994,29 @@ t.next = 23; break } - if (b = p.value, - !b) { + if (m = p.value, + !m) { t.next = 21; break } - if (g = null, - !b["ofd:FontFile"]) { + if (b = null, + !m["ofd:FontFile"]) { t.next = 20; break } - return y = b["ofd:FontFile"], - e["@_BaseLoc"] && -1 === y.indexOf(e["@_BaseLoc"]) && (y = "".concat(e["@_BaseLoc"], "/").concat(y)), - -1 === y.indexOf(n) && (y = "".concat(n, "/").concat(y)), - 0 === y.indexOf("/") && (y = y.substring(1)), + return v = m["ofd:FontFile"], + e["@_BaseLoc"] && -1 === v.indexOf(e["@_BaseLoc"]) && (v = "".concat(e["@_BaseLoc"], "/").concat(v)), + -1 === v.indexOf(n) && (v = "".concat(n, "/").concat(v)), + 0 === v.indexOf("/") && (v = v.substring(1)), t.next = 19, - J(r, y); + et(r, v); case 19: - g = t.sent; + b = t.sent; case 20: - o[b["@_ID"]] = { - familyName: b["@_FamilyName"], - fontName: b["@_FontName"], - fontByte: g + o[m["@_ID"]] = { + familyName: m["@_FamilyName"], + fontName: m["@_FontName"], + fontByte: b }; case 21: t.next = 8; @@ -5964,9 +6047,9 @@ } }() , K = function() { - var t = A(C().mark((function t(e) { + var t = E(A().mark((function t(e) { var r, n, i, o, a, s; - return C().wrap((function(t) { + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: @@ -5975,7 +6058,7 @@ r) { i = [], i = i.concat(r["ofd:DrawParam"]), - o = m(i); + o = g(i); try { for (o.s(); !(a = o.n()).done; ) s = a.value, @@ -6004,165 +6087,180 @@ return t.apply(this, arguments) } }() - , L = function() { - var t = A(C().mark((function t(e, r, n) { - var i, o, s, c, u, d, l, f, h, p, b, g, y, v, S, w, _, A, I; - return C().wrap((function(t) { + , X = function() { + var t = E(A().mark((function t(e, r, n) { + var i, o, s, c, u, l, d, f, h, p, m, b, v, y, S, w, C, _, I, E; + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: if (i = r["ofd:MultiMedias"], o = {}, !i) { - t.next = 58; + t.next = 65; break } if (s = [], i instanceof Array) { - c = m(i); + c = g(i); try { for (c.s(); !(u = c.n()).done; ) - if (d = u.value, - d) - if (d["ofd:MultiMedia"]instanceof Array) { - l = m(d["ofd:MultiMedia"]); + if (l = u.value, + l) + if (l["ofd:MultiMedia"]instanceof Array) { + d = g(l["ofd:MultiMedia"]); try { - for (l.s(); !(f = l.n()).done; ) + for (d.s(); !(f = d.n()).done; ) h = f.value, s.push(h) - } catch (C) { - l.e(C) + } catch (A) { + d.e(A) } finally { - l.f() + d.f() } } else - s.push(d["ofd:MultiMedia"]) - } catch (C) { - c.e(C) + s.push(l["ofd:MultiMedia"]) + } catch (A) { + c.e(A) } finally { c.f() } } else s = s.concat(i["ofd:MultiMedia"]); - p = m(s), + p = g(s), t.prev = 6, p.s(); case 8: - if ((b = p.n()).done) { - t.next = 50; + if ((m = p.n()).done) { + t.next = 57; break } - if (g = b.value, - null === g || void 0 === g || !g) { - t.next = 48; + if (b = m.value, + null === b || void 0 === b || !b) { + t.next = 55; break } - if (y = g["ofd:MediaFile"], - void 0 !== y) { + if (v = b["ofd:MediaFile"], + void 0 !== v) { t.next = 14; break } - return t.abrupt("continue", 48); + return t.abrupt("continue", 55); case 14: - if (r["@_BaseLoc"] && -1 === y.indexOf(r["@_BaseLoc"]) && (y = "".concat(r["@_BaseLoc"], "/").concat(y)), - -1 === y.indexOf(n) && (y = "".concat(n, "/").concat(y)), - 0 === y.indexOf("/") && 1 === y.indexOf(n) && (y = y.substring(1)), - "image" !== g["@_Type"].toLowerCase()) { - t.next = 47; + if (r["@_BaseLoc"] && -1 === v.indexOf(r["@_BaseLoc"]) && (v = "".concat(r["@_BaseLoc"], "/").concat(v)), + -1 === v.indexOf(n) && (v = "".concat(n, "/").concat(v)), + 0 === v.indexOf("/") && 1 === v.indexOf(n) && (v = v.substring(1)), + "image" !== b["@_Type"].toLowerCase()) { + t.next = 54; break } - if (v = g["@_Format"], - S = Object(a["f"])(y), - (!v || "gbig2" !== v.toLowerCase() && "jb2" !== v.toLowerCase()) && (!S || "jb2" !== S.toLowerCase() && "gbig2" !== S.toLowerCase())) { + if (y = b["@_Format"], + S = Object(a["f"])(v), + (!y || "gbig2" !== y.toLowerCase() && "jb2" !== y.toLowerCase()) && (!S || "jb2" !== S.toLowerCase() && "gbig2" !== S.toLowerCase())) { t.next = 27; break } return t.next = 23, - H(e, y); + Q(e, v); case 23: w = t.sent, - o[g["@_ID"]] = w, - t.next = 45; + o[b["@_ID"]] = w, + t.next = 52; break; case 27: - if ((!v || "jpg" !== v.toLowerCase() && "jpeg" !== v.toLowerCase()) && (!S || "jpg" !== S.toLowerCase() && "jpeg" !== S.toLowerCase())) { + if ((!y || "jpg" !== y.toLowerCase() && "jpeg" !== y.toLowerCase()) && (!S || "jpg" !== S.toLowerCase() && "jpeg" !== S.toLowerCase())) { t.next = 34; break } return t.next = 30, - Y(e, y); + Y(e, v); case 30: - _ = t.sent, - o[g["@_ID"]] = { - img: _, + C = t.sent, + o[b["@_ID"]] = { + img: C, format: "jpeg" }, - t.next = 45; + t.next = 52; break; case 34: - if (!(v && "jp2" === v.toLowerCase() || S && "jp2" === S.toLowerCase())) { + if (!(y && "jp2" === y.toLowerCase() || S && "jp2" === S.toLowerCase())) { t.next = 41; break } return t.next = 37, - Z(e, y); + J(e, v); case 37: - A = t.sent, - o[g["@_ID"]] = { - img: A, + _ = t.sent, + o[b["@_ID"]] = { + img: _, format: "jp2" }, - t.next = 45; + t.next = 52; break; case 41: - return t.next = 43, - Q(e, y); - case 43: + if (!(y && "tiff" === y.toLowerCase() || S && "tiff" === S.toLowerCase())) { + t.next = 48; + break + } + return t.next = 44, + $(e, v); + case 44: I = t.sent, - o[g["@_ID"]] = { + o[b["@_ID"]] = { img: I, + format: "bmp" + }, + t.next = 52; + break; + case 48: + return t.next = 50, + tt(e, v); + case 50: + E = t.sent, + o[b["@_ID"]] = { + img: E, format: "png" }; - case 45: - t.next = 48; - break; - case 47: - o[g["@_ID"]] = y; - case 48: - t.next = 8; - break; - case 50: + case 52: t.next = 55; break; - case 52: - t.prev = 52, + case 54: + o[b["@_ID"]] = v; + case 55: + t.next = 8; + break; + case 57: + t.next = 62; + break; + case 59: + t.prev = 59, t.t0 = t["catch"](6), p.e(t.t0); - case 55: - return t.prev = 55, + case 62: + return t.prev = 62, p.f(), - t.finish(55); - case 58: + t.finish(62); + case 65: return t.abrupt("return", o); - case 59: + case 66: case "end": return t.stop() } } - ), t, null, [[6, 52, 55, 58]]) + ), t, null, [[6, 59, 62, 65]]) } ))); return function(e, r, n) { return t.apply(this, arguments) } }() - , U = function(t) { + , z = function(t) { var e = t["ofd:CompositeGraphicUnits"] , r = []; if (e) { var n = []; n = n.concat(e["ofd:CompositeGraphicUnit"]); - var i, o = m(n); + var i, o = g(n); try { for (o.s(); !(i = o.n()).done; ) { var a = i.value; @@ -6176,16 +6274,16 @@ } return r } - , X = function() { - var t = A(C().mark((function t(e, r, n) { + , G = function() { + var t = E(A().mark((function t(e, r, n) { var i, o, a, s; - return C().wrap((function(t) { + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: i = r["@_BaseLoc"], -1 == i.indexOf(n) && (i = "".concat(n, "/").concat(i)), - t.t0 = C().keys(e.files); + t.t0 = A().keys(e.files); case 3: if ((t.t1 = t.t0()).done) { t.next = 10; @@ -6209,7 +6307,7 @@ return t.abrupt("return", null); case 12: return t.next = 14, - V(e, i); + Z(e, i); case 14: return a = t.sent, s = {}, @@ -6230,10 +6328,10 @@ return t.apply(this, arguments) } }() - , z = function() { - var t = A(C().mark((function t(e, r, n) { - var i, o, s, c, u, d, l, f, h; - return C().wrap((function(t) { + , W = function() { + var t = E(A().mark((function t(e, r, n) { + var i, o, s, c, u, l, d, f, h; + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: @@ -6249,33 +6347,33 @@ break } return t.next = 7, - V(e, r); + Z(e, r); case 7: o = t.sent, s = o["json"]["ofd:Signatures"]["ofd:Signature"], c = [], c = c.concat(s), - u = m(c), + u = g(c), t.prev = 12, u.s(); case 14: - if ((d = u.n()).done) { + if ((l = u.n()).done) { t.next = 29; break } - if (l = d.value, - !l) { + if (d = l.value, + !d) { t.next = 27; break } - return f = l["@_BaseLoc"], - h = l["@_ID"], + return f = d["@_BaseLoc"], + h = d["@_ID"], f = Object(a["l"])(f), -1 === f.indexOf("Signs") && (f = "Signs/".concat(f)), -1 === f.indexOf(n) && (f = "".concat(n, "/").concat(f)), t.t0 = i, t.next = 25, - q(e, f, h); + H(e, f, h); case 25: t.t1 = t.sent, t.t0.push.call(t.t0, t.t1); @@ -6307,9 +6405,9 @@ return t.apply(this, arguments) } }() - , G = function() { - var t = A(C().mark((function t(e, r) { - return C().wrap((function(t) { + , q = function() { + var t = E(A().mark((function t(e, r) { + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: @@ -6326,15 +6424,15 @@ return t.apply(this, arguments) } }() - , q = function() { - var e = A(C().mark((function e(r, n, i) { - var o, a, s, u, d, l; - return C().wrap((function(e) { + , H = function() { + var e = E(A().mark((function e(r, n, i) { + var o, a, s, u, l, d; + return A().wrap((function(e) { while (1) switch (e.prev = e.next) { case 0: return e.next = 2, - V(r, n); + Z(r, n); case 2: return o = e.sent, s = o["json"]["ofd:Signature"]["ofd:SignedValue"], @@ -6356,13 +6454,13 @@ case 15: a = e.sent; case 16: - return d = o["json"]["ofd:Signature"]["ofd:SignedInfo"]["ofd:References"]["@_CheckMethod"], + return l = o["json"]["ofd:Signature"]["ofd:SignedInfo"]["ofd:References"]["@_CheckMethod"], t.toBeChecked = new Map, - l = new Array, + d = new Array, o["json"]["ofd:Signature"]["ofd:SignedInfo"]["ofd:References"]["ofd:Reference"].forEach(function() { - var t = A(C().mark((function t(e) { + var t = E(A().mark((function t(e) { var n, i, o, a; - return C().wrap((function(t) { + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: @@ -6379,22 +6477,22 @@ break } return t.next = 7, - G(r, i); + q(r, i); case 7: o = t.sent, - l.push({ + d.push({ fileData: o, hashed: n, - checkMethod: d + checkMethod: l }), t.next = 12; break; case 11: - l.push((a = { + d.push((a = { hashed: n }, - p(a, "hashed", n), - p(a, "checkMethod", d), + b(a, "hashed", n), + b(a, "checkMethod", l), a)); case 12: case "end": @@ -6408,7 +6506,7 @@ return t.apply(this, arguments) } }()), - t.toBeChecked.set(i, l), + t.toBeChecked.set(i, d), e.abrupt("return", { stampAnnot: o["json"]["ofd:Signature"]["ofd:SignedInfo"]["ofd:StampAnnot"], sealObj: a, @@ -6432,16 +6530,16 @@ return e.apply(this, arguments) } }() - , W = function(t) { + , V = function(t) { var e = this; return new Promise((function(r, i) { - n["a"].call(e, A(C().mark((function e() { - return C().wrap((function(e) { + n["a"].call(e, E(A().mark((function e() { + return A().wrap((function(e) { while (1) switch (e.prev = e.next) { case 0: return e.next = 2, - x(t.sealObj.ofdArray); + k(t.sealObj.ofdArray); case 2: return e.abrupt("return", e.sent); case 3: @@ -6451,7 +6549,7 @@ } ), e) } - ))), P, k).then((function(t) { + ))), D, O).then((function(t) { r(t) } )).catch((function(t) { @@ -6461,9 +6559,9 @@ } )) } - , V = function() { - var t = A(C().mark((function t(e, r) { - return C().wrap((function(t) { + , Z = function() { + var t = E(A().mark((function t(e, r) { + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: @@ -6475,7 +6573,7 @@ parseNodeValue: !1, trimValues: !1 } - , n = I.parse(e, r) + , n = T.parse(e, r) , i = { xml: e, json: n @@ -6500,9 +6598,9 @@ return t.apply(this, arguments) } }() - , H = function() { - var t = A(C().mark((function t(e, r) { - return C().wrap((function(t) { + , Q = function() { + var t = E(A().mark((function t(e, r) { + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: @@ -6536,8 +6634,8 @@ } }() , Y = function() { - var t = A(C().mark((function t(e, r) { - return C().wrap((function(t) { + var t = E(A().mark((function t(e, r) { + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: @@ -6574,26 +6672,21 @@ return t.apply(this, arguments) } }() - , Z = function() { - var t = A(C().mark((function t(e, r) { - return C().wrap((function(t) { + , J = function() { + var t = E(A().mark((function t(e, r) { + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: return t.abrupt("return", new Promise((function(t, n) { - e.files[r].async("base64").then((function(e) { - var r = "data:image/jp2;base64," + e - , n = new Image; - n.src = r, - n.onload = function() { - t({ - width: n.width, - height: n.height, - img: r - }) - } - , - t(r) + e.files[r].async("uint8array").then((function(e) { + var r = openjpeg(e, "jp2") + , n = Object(a["m"])(r); + t({ + img: n, + width: r.width, + height: r.height + }) } ), (function(t) { n(t) @@ -6613,9 +6706,45 @@ return t.apply(this, arguments) } }() - , Q = function() { - var t = A(C().mark((function t(e, r) { - return C().wrap((function(t) { + , $ = function() { + var t = E(A().mark((function t(e, r) { + return A().wrap((function(t) { + while (1) + switch (t.prev = t.next) { + case 0: + return t.abrupt("return", new Promise((function(t, n) { + e.files[r].async("uint8array").then((function(e) { + var r = p.a.decode(e); + p.a.decodeImage(e, r[0]); + p.a.toRGBA8(r[0]); + var n = p.a.bufferToURI(e); + t({ + img: n, + width: r[0].width, + height: r[0].height + }) + } + ), (function(t) { + n(t) + } + )) + } + ))); + case 1: + case "end": + return t.stop() + } + } + ), t) + } + ))); + return function(e, r) { + return t.apply(this, arguments) + } + }() + , tt = function() { + var t = E(A().mark((function t(e, r) { + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: @@ -6658,9 +6787,9 @@ return t.apply(this, arguments) } }() - , J = function() { - var t = A(C().mark((function t(e, r) { - return C().wrap((function(t) { + , et = function() { + var t = E(A().mark((function t(e, r) { + return A().wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: @@ -6686,7 +6815,9 @@ return t.apply(this, arguments) } }(); - + function rt() { + + } } ).call(this, r("c8ba")) }, @@ -6698,8 +6829,8 @@ , s = r("d066") , c = r("8925") , u = function() {} - , d = [] - , l = s("Reflect", "construct") + , l = [] + , d = s("Reflect", "construct") , f = /^\s*(?:class|function)\b/ , h = n(f.exec) , p = !f.exec(u) @@ -6707,7 +6838,7 @@ if (!o(t)) return !1; try { - return l(u, d, t), + return d(u, l, t), !0 } catch (e) { return !1 @@ -6729,7 +6860,7 @@ } }; b.sham = !0, - t.exports = !l || i((function() { + t.exports = !d || i((function() { var t; return m(m.call) || !m(Object) || !m((function() { t = !0 @@ -17044,9 +17175,9 @@ void 0 === n || (t.exports = n) }, "69f3": function(t, e, r) { - var n, i, o, a = r("7f9a"), s = r("da84"), c = r("e330"), u = r("861d"), d = r("9112"), l = r("1a2d"), f = r("c6cd"), h = r("f772"), p = r("d012"), m = "Object already initialized", b = s.TypeError, g = s.WeakMap, y = function(t) { + var n, i, o, a = r("7f9a"), s = r("da84"), c = r("e330"), u = r("861d"), l = r("9112"), d = r("1a2d"), f = r("c6cd"), h = r("f772"), p = r("d012"), m = "Object already initialized", b = s.TypeError, g = s.WeakMap, v = function(t) { return o(t) ? i(t) : n(t, {}) - }, v = function(t) { + }, y = function(t) { return function(e) { var r; if (!u(e) || (r = i(e)).type !== t) @@ -17078,27 +17209,27 @@ var A = h("state"); p[A] = !0, n = function(t, e) { - if (l(t, A)) + if (d(t, A)) throw new b(m); return e.facade = t, - d(t, A, e), + l(t, A, e), e } , i = function(t) { - return l(t, A) ? t[A] : {} + return d(t, A) ? t[A] : {} } , o = function(t) { - return l(t, A) + return d(t, A) } } t.exports = { set: n, get: i, has: o, - enforce: y, - getterFor: v + enforce: v, + getterFor: y } }, "6b33": function(t, e, r) { @@ -17175,11 +17306,11 @@ return s } )), - r.d(e, "m", (function() { + r.d(e, "n", (function() { return f } )), - r.d(e, "n", (function() { + r.d(e, "o", (function() { return h } )), @@ -17196,11 +17327,11 @@ } )), r.d(e, "l", (function() { - return y + return v } )), r.d(e, "f", (function() { - return v + return y } )), r.d(e, "g", (function() { @@ -17223,9 +17354,13 @@ return x } )), - r.d(e, "o", (function() { + r.d(e, "p", (function() { return P } + )), + r.d(e, "m", (function() { + return k + } )); var a = function(t) { var e = t.split(" ") @@ -17313,16 +17448,16 @@ , s = n.y1 , c = n.x2 , u = n.y2 - , d = n.x3 - , l = n.y3 + , l = n.x3 + , d = n.y3 , f = { type: "B", x1: m(a), y1: m(s), x2: m(c), y2: m(u), - x3: m(d), - y3: m(l) + x3: m(l), + y3: m(d) }; e.push(f) } else if ("Q" === n.type) { @@ -17330,16 +17465,16 @@ , p = n.y1 , b = n.x2 , g = n.y2 - , y = { + , v = { type: "Q", x1: m(h), y1: m(p), x2: m(b), y2: m(g) }; - e.push(y) + e.push(v) } else if ("A" === n.type) { - var v = n.rx + var y = n.rx , S = n.ry , w = n.rotation , C = n.arc @@ -17348,7 +17483,7 @@ , I = n.y , E = { type: "A", - rx: m(v), + rx: m(y), ry: m(S), rotation: w, arc: C, @@ -17365,19 +17500,19 @@ return t * e / 25.4 } , u = 10 - , d = 1 - , l = u + , l = 1 + , d = u , f = function(t) {} , h = function(t) { - l = t > .1 ? t : .1, - l = l > u ? u : l, - d = t + d = t > .1 ? t : .1, + d = d > u ? u : d, + l = t } , p = function() { - return d + return l } , m = function(t) { - return c(t, 96 * l) + return c(t, 96 * d) } , b = function(t) { if (-1 === t.indexOf("g")) { @@ -17394,7 +17529,7 @@ } return r } - var a, s = t.split(" "), c = !1, u = !1, d = 0, l = [], f = n(s); + var a, s = t.split(" "), c = !1, u = !1, l = 0, d = [], f = n(s); try { for (f.s(); !(a = f.n()).done; ) { var h = a.value; @@ -17404,15 +17539,15 @@ if (!h || 0 == h.trim().length) continue; if (c) - d = parseInt(h), + l = parseInt(h), u = !0, c = !1; else if (u) { - for (var p = 0; p < d; p++) - l.push(parseFloat(h)); + for (var p = 0; p < l; p++) + d.push(parseFloat(h)); u = !1 } else - l.push(parseFloat(h)) + d.push(parseFloat(h)) } } } catch (m) { @@ -17420,7 +17555,7 @@ } finally { f.f() } - return l + return d } , g = function(t) { var e = 0 @@ -17441,16 +17576,16 @@ , u = []; s["@_DeltaX"] && s["@_DeltaX"].length > 0 && (c = b(s["@_DeltaX"])), s["@_DeltaY"] && s["@_DeltaY"].length > 0 && (u = b(s["@_DeltaY"])); - var d = s["#text"]; - if ("undefined" == typeof d && "string" == typeof s && (d = s), - d) { - d += "", - d = C(d), - d = d.replace(/ /g, " "); - for (var l = 0; l < d.length; l++) { - l > 0 && c.length > 0 && (l <= c.length ? e += c[l - 1] : e += c[c.length - 1]), - l > 0 && u.length > 0 && (l <= u.length ? r += u[l - 1] : r += u[u.length - 1]); - var f = d.substring(l, l + 1) + var l = s["#text"]; + if ("undefined" == typeof l && "string" == typeof s && (l = s), + l) { + l += "", + l = C(l), + l = l.replace(/ /g, " "); + for (var d = 0; d < l.length; d++) { + d > 0 && c.length > 0 && (d <= c.length ? e += c[d - 1] : e += c[c.length - 1]), + d > 0 && u.length > 0 && (d <= u.length ? r += u[d - 1] : r += u[u.length - 1]); + var f = l.substring(d, d + 1) , h = { x: m(e), y: m(r), @@ -17468,11 +17603,11 @@ } return i } - , y = function(t) { + , v = function(t) { return t && 0 === t.indexOf("/") && (t = t.replace("/", "")), t } - , v = function(t) { + , y = function(t) { return t || "string" === typeof t ? t.substring(t.lastIndexOf(".") + 1) : "" } , S = /&\w+;|&#(\d+);/g @@ -17571,11 +17706,31 @@ n += r[u >>> 2] + r[(3 & u) << 4] + "==" } else if (2 === c) { u = t[i]; - var d = t[i + 1]; - n += r[u >>> 2] + r[(3 & u) << 4 | d >>> 4] + r[(15 & d) << 2] + "=" + var l = t[i + 1]; + n += r[u >>> 2] + r[(3 & u) << 4 | l >>> 4] + r[(15 & l) << 2] + "=" } return n } + , k = function(t) { + var e = document.createElement("canvas"); + e.width = t.width, + e.height = t.height; + var r = t.width * t.height + , n = e.getContext("2d") + , i = n.createImageData(t.width, t.height) + , o = 0 + , a = 0; + while (o < i.data.length && a < r) + i.data[o] = t.data[a], + i.data[o + 1] = t.data[a + r], + i.data[o + 2] = t.data[a + 2 * r], + i.data[o + 3] = 255, + o += 4, + a += 1; + n.putImageData(i, 0, 0); + var s = e.toDataURL("image/png"); + return s + } }, "6b84": function(t, e, r) { r("3ca3"), @@ -17605,8 +17760,8 @@ , s = r("cb2d") , c = r("f183") , u = r("2266") - , d = r("19aa") - , l = r("1626") + , l = r("19aa") + , d = r("1626") , f = r("861d") , h = r("d039") , p = r("1c7e") @@ -17614,8 +17769,8 @@ , b = r("7156"); t.exports = function(t, e, r) { var g = -1 !== t.indexOf("Map") - , y = -1 !== t.indexOf("Weak") - , v = g ? "set" : "add" + , v = -1 !== t.indexOf("Weak") + , y = g ? "set" : "add" , S = i[t] , w = S && S.prototype , C = S @@ -17627,13 +17782,13 @@ this } : "delete" == t ? function(t) { - return !(y && !f(t)) && e(this, 0 === t ? 0 : t) + return !(v && !f(t)) && e(this, 0 === t ? 0 : t) } : "get" == t ? function(t) { - return y && !f(t) ? void 0 : e(this, 0 === t ? 0 : t) + return v && !f(t) ? void 0 : e(this, 0 === t ? 0 : t) } : "has" == t ? function(t) { - return !(y && !f(t)) && e(this, 0 === t ? 0 : t) + return !(v && !f(t)) && e(this, 0 === t ? 0 : t) } : function(t, r) { return e(this, 0 === t ? 0 : t, r), @@ -17641,16 +17796,16 @@ } ) } - , I = a(t, !l(S) || !(y || w.forEach && !h((function() { + , I = a(t, !d(S) || !(v || w.forEach && !h((function() { (new S).entries().next() } )))); if (I) - C = r.getConstructor(e, t, g, v), + C = r.getConstructor(e, t, g, y), c.enable(); else if (a(t, !0)) { var E = new C - , T = E[v](y ? {} : -0, 1) != E + , T = E[y](v ? {} : -0, 1) != E , x = h((function() { E.has(1) } @@ -17659,18 +17814,18 @@ new S(t) } )) - , k = !y && h((function() { + , k = !v && h((function() { var t = new S , e = 5; while (e--) - t[v](e, e); + t[y](e, e); return !t.has(-0) } )); P || (C = e((function(t, e) { - d(t, w); + l(t, w); var r = b(new S, t, C); - return void 0 != e && u(e, r[v], { + return void 0 != e && u(e, r[y], { that: r, AS_ENTRIES: g }), @@ -17682,8 +17837,8 @@ (x || k) && (A("delete"), A("has"), g && A("get")), - (k || T) && A(v), - y && w.clear && delete w.clear + (k || T) && A(y), + v && w.clear && delete w.clear } return _[t] = C, n({ @@ -17692,7 +17847,7 @@ forced: C != S }, _), m(C, t), - y || r.setStrong(C, t, g), + v || r.setStrong(C, t, g), C } }, @@ -17715,18 +17870,18 @@ , s = r("d1e7").f , c = i(s) , u = i([].push) - , d = function(t) { + , l = function(t) { return function(e) { - var r, i = a(e), s = o(i), d = s.length, l = 0, f = []; - while (d > l) - r = s[l++], + var r, i = a(e), s = o(i), l = s.length, d = 0, f = []; + while (l > d) + r = s[d++], n && !c(i, r) || u(f, t ? [r, i[r]] : i[r]); return f } }; t.exports = { - entries: d(!0), - values: d(!1) + entries: l(!0), + values: l(!1) } }, "6f9c": function(t, e, r) { @@ -17751,22 +17906,22 @@ var s = r ? new Uint8Array(e.length >> 1) : [] , c = 0 , u = 0 - , d = 0; + , l = 0; for (n = 0; n < e.length; ++n) { - var l = i ? e.charCodeAt(n) : e[n]; - if (l = t[l], - -1 != l) { - if (void 0 === l) + var d = i ? e.charCodeAt(n) : e[n]; + if (d = t[d], + -1 != d) { + if (void 0 === d) throw "Illegal character at offset " + n; - c |= l, - ++u >= 2 ? (s[d++] = c, + c |= d, + ++u >= 2 ? (s[l++] = c, c = 0, u = 0) : c <<= 4 } } if (u) throw "Hex encoding incomplete: 4 bits missing"; - return r && s.length > d && (s = s.subarray(0, d)), + return r && s.length > l && (s = s.subarray(0, l)), s } , @@ -17784,14 +17939,14 @@ , s = r("4738").CONSTRUCTOR , c = r("cdf9") , u = i("Promise") - , d = o && !s; + , l = o && !s; n({ target: "Promise", stat: !0, forced: o || s }, { resolve: function(t) { - return c(d && this === u ? a : this, t) + return c(l && this === u ? a : this, t) } }) }, @@ -17861,10 +18016,10 @@ function u(t) { return t <= 0 ? 0 : Math.ceil(Math.log2(t)) } - function d(t, e) { + function l(t, e) { return t[e] << 24 >> 24 } - function l(t, e) { + function d(t, e) { return t[e] << 8 | t[e + 1] } function f(t, e) { @@ -18192,7 +18347,7 @@ }]), t }() - , y = function() { + , v = function() { var t = -2 , e = -1 , r = 0 @@ -18202,15 +18357,15 @@ , s = 4 , c = 5 , u = 6 - , d = 7 - , l = 8 - , f = [[-1, -1], [-1, -1], [7, l], [7, d], [6, u], [6, u], [6, c], [6, c], [4, r], [4, r], [4, r], [4, r], [4, r], [4, r], [4, r], [4, r], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i]] + , l = 7 + , d = 8 + , f = [[-1, -1], [-1, -1], [7, d], [7, l], [6, u], [6, u], [6, c], [6, c], [4, r], [4, r], [4, r], [4, r], [4, r], [4, r], [4, r], [4, r], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, n], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, s], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [3, a], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i], [1, i]] , h = [[-1, -1], [12, t], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [11, 1792], [11, 1792], [12, 1984], [12, 2048], [12, 2112], [12, 2176], [12, 2240], [12, 2304], [11, 1856], [11, 1856], [11, 1920], [11, 1920], [12, 2368], [12, 2432], [12, 2496], [12, 2560]] , p = [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [8, 29], [8, 29], [8, 30], [8, 30], [8, 45], [8, 45], [8, 46], [8, 46], [7, 22], [7, 22], [7, 22], [7, 22], [7, 23], [7, 23], [7, 23], [7, 23], [8, 47], [8, 47], [8, 48], [8, 48], [6, 13], [6, 13], [6, 13], [6, 13], [6, 13], [6, 13], [6, 13], [6, 13], [7, 20], [7, 20], [7, 20], [7, 20], [8, 33], [8, 33], [8, 34], [8, 34], [8, 35], [8, 35], [8, 36], [8, 36], [8, 37], [8, 37], [8, 38], [8, 38], [7, 19], [7, 19], [7, 19], [7, 19], [8, 31], [8, 31], [8, 32], [8, 32], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [6, 12], [6, 12], [6, 12], [6, 12], [6, 12], [6, 12], [6, 12], [6, 12], [8, 53], [8, 53], [8, 54], [8, 54], [7, 26], [7, 26], [7, 26], [7, 26], [8, 39], [8, 39], [8, 40], [8, 40], [8, 41], [8, 41], [8, 42], [8, 42], [8, 43], [8, 43], [8, 44], [8, 44], [7, 21], [7, 21], [7, 21], [7, 21], [7, 28], [7, 28], [7, 28], [7, 28], [8, 61], [8, 61], [8, 62], [8, 62], [8, 63], [8, 63], [8, 0], [8, 0], [8, 320], [8, 320], [8, 384], [8, 384], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [7, 27], [7, 27], [7, 27], [7, 27], [8, 59], [8, 59], [8, 60], [8, 60], [9, 1472], [9, 1536], [9, 1600], [9, 1728], [7, 18], [7, 18], [7, 18], [7, 18], [7, 24], [7, 24], [7, 24], [7, 24], [8, 49], [8, 49], [8, 50], [8, 50], [8, 51], [8, 51], [8, 52], [8, 52], [7, 25], [7, 25], [7, 25], [7, 25], [8, 55], [8, 55], [8, 56], [8, 56], [8, 57], [8, 57], [8, 58], [8, 58], [6, 192], [6, 192], [6, 192], [6, 192], [6, 192], [6, 192], [6, 192], [6, 192], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [8, 448], [8, 448], [8, 512], [8, 512], [9, 704], [9, 768], [8, 640], [8, 640], [8, 576], [8, 576], [9, 832], [9, 896], [9, 960], [9, 1024], [9, 1088], [9, 1152], [9, 1216], [9, 1280], [9, 1344], [9, 1408], [7, 256], [7, 256], [7, 256], [7, 256], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [6, 16], [6, 16], [6, 16], [6, 16], [6, 16], [6, 16], [6, 16], [6, 16], [6, 17], [6, 17], [6, 17], [6, 17], [6, 17], [6, 17], [6, 17], [6, 17], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [6, 14], [6, 14], [6, 14], [6, 14], [6, 14], [6, 14], [6, 14], [6, 14], [6, 15], [6, 15], [6, 15], [6, 15], [6, 15], [6, 15], [6, 15], [6, 15], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7]] , m = [[-1, -1], [-1, -1], [12, t], [12, t], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [11, 1792], [11, 1792], [11, 1792], [11, 1792], [12, 1984], [12, 1984], [12, 2048], [12, 2048], [12, 2112], [12, 2112], [12, 2176], [12, 2176], [12, 2240], [12, 2240], [12, 2304], [12, 2304], [11, 1856], [11, 1856], [11, 1856], [11, 1856], [11, 1920], [11, 1920], [11, 1920], [11, 1920], [12, 2368], [12, 2368], [12, 2432], [12, 2432], [12, 2496], [12, 2496], [12, 2560], [12, 2560], [10, 18], [10, 18], [10, 18], [10, 18], [10, 18], [10, 18], [10, 18], [10, 18], [12, 52], [12, 52], [13, 640], [13, 704], [13, 768], [13, 832], [12, 55], [12, 55], [12, 56], [12, 56], [13, 1280], [13, 1344], [13, 1408], [13, 1472], [12, 59], [12, 59], [12, 60], [12, 60], [13, 1536], [13, 1600], [11, 24], [11, 24], [11, 24], [11, 24], [11, 25], [11, 25], [11, 25], [11, 25], [13, 1664], [13, 1728], [12, 320], [12, 320], [12, 384], [12, 384], [12, 448], [12, 448], [13, 512], [13, 576], [12, 53], [12, 53], [12, 54], [12, 54], [13, 896], [13, 960], [13, 1024], [13, 1088], [13, 1152], [13, 1216], [10, 64], [10, 64], [10, 64], [10, 64], [10, 64], [10, 64], [10, 64], [10, 64]] , b = [[8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [11, 23], [11, 23], [12, 50], [12, 51], [12, 44], [12, 45], [12, 46], [12, 47], [12, 57], [12, 58], [12, 61], [12, 256], [10, 16], [10, 16], [10, 16], [10, 16], [10, 17], [10, 17], [10, 17], [10, 17], [12, 48], [12, 49], [12, 62], [12, 63], [12, 30], [12, 31], [12, 32], [12, 33], [12, 40], [12, 41], [11, 22], [11, 22], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [9, 15], [9, 15], [9, 15], [9, 15], [9, 15], [9, 15], [9, 15], [9, 15], [12, 128], [12, 192], [12, 26], [12, 27], [12, 28], [12, 29], [11, 19], [11, 19], [11, 20], [11, 20], [12, 34], [12, 35], [12, 36], [12, 37], [12, 38], [12, 39], [11, 21], [11, 21], [12, 42], [12, 43], [10, 0], [10, 0], [10, 0], [10, 0], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12]] , g = [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [6, 9], [6, 8], [5, 7], [5, 7], [4, 6], [4, 6], [4, 6], [4, 6], [4, 5], [4, 5], [4, 5], [4, 5], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2]]; - function y(t) { + function v(t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; if (!t || "function" !== typeof t.next) throw new Error('CCITTFaxDecoder - invalid "source" parameter.'); @@ -18241,173 +18396,173 @@ this.encoding > 0 && (this.nextLine2D = !this._lookBits(1), this._eatBits(1)) } - return y.prototype = { + return v.prototype = { readNextChar: function() { if (this.eof) return -1; - var t, f, h, p, m, b = this.refLine, g = this.codingLine, y = this.columns; + var t, f, h, p, m, b = this.refLine, g = this.codingLine, v = this.columns; if (0 === this.outputBits) { if (this.rowsDone && (this.eof = !0), this.eof) return -1; - var v, S, w; + var y, S, w; if (this.err = !1, this.nextLine2D) { - for (p = 0; g[p] < y; ++p) + for (p = 0; g[p] < v; ++p) b[p] = g[p]; - b[p++] = y, - b[p] = y, + b[p++] = v, + b[p] = v, g[0] = 0, this.codingPos = 0, t = 0, f = 0; - while (g[this.codingPos] < y) - switch (v = this._getTwoDimCode(), - v) { + while (g[this.codingPos] < v) + switch (y = this._getTwoDimCode(), + y) { case r: this._addPixels(b[t + 1], f), - b[t + 1] < y && (t += 2); + b[t + 1] < v && (t += 2); break; case n: - if (v = S = 0, + if (y = S = 0, f) { do { - v += w = this._getBlackCode() + y += w = this._getBlackCode() } while (w >= 64); do { S += w = this._getWhiteCode() } while (w >= 64) } else { do { - v += w = this._getWhiteCode() + y += w = this._getWhiteCode() } while (w >= 64); do { S += w = this._getBlackCode() } while (w >= 64) } - this._addPixels(g[this.codingPos] + v, f), - g[this.codingPos] < y && this._addPixels(g[this.codingPos] + S, 1 ^ f); - while (b[t] <= g[this.codingPos] && b[t] < y) + this._addPixels(g[this.codingPos] + y, f), + g[this.codingPos] < v && this._addPixels(g[this.codingPos] + S, 1 ^ f); + while (b[t] <= g[this.codingPos] && b[t] < v) t += 2; break; - case d: + case l: if (this._addPixels(b[t] + 3, f), f ^= 1, - g[this.codingPos] < y) { + g[this.codingPos] < v) { ++t; - while (b[t] <= g[this.codingPos] && b[t] < y) + while (b[t] <= g[this.codingPos] && b[t] < v) t += 2 } break; case c: if (this._addPixels(b[t] + 2, f), f ^= 1, - g[this.codingPos] < y) { + g[this.codingPos] < v) { ++t; - while (b[t] <= g[this.codingPos] && b[t] < y) + while (b[t] <= g[this.codingPos] && b[t] < v) t += 2 } break; case a: if (this._addPixels(b[t] + 1, f), f ^= 1, - g[this.codingPos] < y) { + g[this.codingPos] < v) { ++t; - while (b[t] <= g[this.codingPos] && b[t] < y) + while (b[t] <= g[this.codingPos] && b[t] < v) t += 2 } break; case i: if (this._addPixels(b[t], f), f ^= 1, - g[this.codingPos] < y) { + g[this.codingPos] < v) { ++t; - while (b[t] <= g[this.codingPos] && b[t] < y) + while (b[t] <= g[this.codingPos] && b[t] < v) t += 2 } break; - case l: + case d: if (this._addPixelsNeg(b[t] - 3, f), f ^= 1, - g[this.codingPos] < y) { + g[this.codingPos] < v) { t > 0 ? --t : ++t; - while (b[t] <= g[this.codingPos] && b[t] < y) + while (b[t] <= g[this.codingPos] && b[t] < v) t += 2 } break; case u: if (this._addPixelsNeg(b[t] - 2, f), f ^= 1, - g[this.codingPos] < y) { + g[this.codingPos] < v) { t > 0 ? --t : ++t; - while (b[t] <= g[this.codingPos] && b[t] < y) + while (b[t] <= g[this.codingPos] && b[t] < v) t += 2 } break; case s: if (this._addPixelsNeg(b[t] - 1, f), f ^= 1, - g[this.codingPos] < y) { + g[this.codingPos] < v) { t > 0 ? --t : ++t; - while (b[t] <= g[this.codingPos] && b[t] < y) + while (b[t] <= g[this.codingPos] && b[t] < v) t += 2 } break; case e: - this._addPixels(y, 0), + this._addPixels(v, 0), this.eof = !0; break; default: o("bad 2d code"), - this._addPixels(y, 0), + this._addPixels(v, 0), this.err = !0 } } else { g[0] = 0, this.codingPos = 0, f = 0; - while (g[this.codingPos] < y) { - if (v = 0, + while (g[this.codingPos] < v) { + if (y = 0, f) do { - v += w = this._getBlackCode() + y += w = this._getBlackCode() } while (w >= 64); else do { - v += w = this._getWhiteCode() + y += w = this._getWhiteCode() } while (w >= 64); - this._addPixels(g[this.codingPos] + v, f), + this._addPixels(g[this.codingPos] + y, f), f ^= 1 } } var C = !1; if (this.byteAlign && (this.inputBits &= -8), this.eoblock || this.row !== this.rows - 1) { - if (v = this._lookBits(12), + if (y = this._lookBits(12), this.eoline) - while (v !== e && 1 !== v) + while (y !== e && 1 !== y) this._eatBits(1), - v = this._lookBits(12); + y = this._lookBits(12); else - while (0 === v) + while (0 === y) this._eatBits(1), - v = this._lookBits(12); - 1 === v ? (this._eatBits(12), - C = !0) : v === e && (this.eof = !0) + y = this._lookBits(12); + 1 === y ? (this._eatBits(12), + C = !0) : y === e && (this.eof = !0) } else this.rowsDone = !0; if (!this.eof && this.encoding > 0 && !this.rowsDone && (this.nextLine2D = !this._lookBits(1), this._eatBits(1)), this.eoblock && C && this.byteAlign) { - if (v = this._lookBits(12), - 1 === v) { + if (y = this._lookBits(12), + 1 === y) { if (this._eatBits(12), this.encoding > 0 && (this._lookBits(1), this._eatBits(1)), this.encoding >= 0) for (p = 0; p < 4; ++p) - v = this._lookBits(12), - 1 !== v && o("bad rtc code: " + v), + y = this._lookBits(12), + 1 !== y && o("bad rtc code: " + y), this._eatBits(12), this.encoding > 0 && (this._lookBits(1), this._eatBits(1)); @@ -18415,17 +18570,17 @@ } } else if (this.err && this.eoline) { while (1) { - if (v = this._lookBits(13), - v === e) + if (y = this._lookBits(13), + y === e) return this.eof = !0, -1; - if (v >> 1 === 1) + if (y >> 1 === 1) break; this._eatBits(1) } this._eatBits(12), this.encoding > 0 && (this._eatBits(1), - this.nextLine2D = !(1 & v)) + this.nextLine2D = !(1 & y)) } g[0] > 0 ? this.outputBits = g[this.codingPos = 0] : this.outputBits = g[this.codingPos = 1], this.row++ @@ -18433,7 +18588,7 @@ if (this.outputBits >= 8) m = 1 & this.codingPos ? 0 : 255, this.outputBits -= 8, - 0 === this.outputBits && g[this.codingPos] < y && (this.codingPos++, + 0 === this.outputBits && g[this.codingPos] < v && (this.codingPos++, this.outputBits = g[this.codingPos] - g[this.codingPos - 1]); else { h = 8, @@ -18446,7 +18601,7 @@ 1 & this.codingPos || (m |= 255 >> 8 - this.outputBits), h -= this.outputBits, this.outputBits = 0, - g[this.codingPos] < y ? (this.codingPos++, + g[this.codingPos] < v ? (this.codingPos++, this.outputBits = g[this.codingPos] - g[this.codingPos - 1]) : h > 0 && (m <<= h, h = 0)) } while (h) @@ -18575,17 +18730,17 @@ (this.inputBits -= t) < 0 && (this.inputBits = 0) } }, - y + v }(); - function v(t) { - return v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { + function y(t) { + return y = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t } : function(t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t } , - v(t) + y(t) } function S(t, e) { for (var r = 0; r < e.length; r++) { @@ -18644,7 +18799,7 @@ } } function E(t, e) { - if (e && ("object" === v(e) || "function" === typeof e)) + if (e && ("object" === y(e) || "function" === typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); @@ -18931,51 +19086,51 @@ , c = [39717, 1941, 229, 405] , h = [32, 8]; function p(t, e, r) { - var n, i, o, a, s, c, u, d = r.decoder, l = r.contextCache.getContexts("GB"), f = [], h = 31735; + var n, i, o, a, s, c, u, l = r.decoder, d = r.contextCache.getContexts("GB"), f = [], h = 31735; for (i = 0; i < e; i++) for (s = f[i] = new Uint8Array(t), c = i < 1 ? s : f[i - 1], u = i < 2 ? s : f[i - 2], n = u[0] << 13 | u[1] << 12 | u[2] << 11 | c[0] << 7 | c[1] << 6 | c[2] << 5 | c[3] << 4, o = 0; o < t; o++) - s[o] = a = d.readBit(l, n), + s[o] = a = l.readBit(d, n), n = (n & h) << 1 | (o + 3 < t ? u[o + 3] << 11 : 0) | (o + 4 < t ? c[o + 4] << 4 : 0) | a; return f } function m(t, e, r, n, i, a, s, u) { if (t) { - var d = new K(u.data,u.start,u.end); - return G(d, e, r, !1) + var l = new U(u.data,u.start,u.end); + return G(l, e, r, !1) } if (0 === n && !a && !i && 4 === s.length && 3 === s[0].x && -1 === s[0].y && -3 === s[1].x && -1 === s[1].y && 2 === s[2].x && -2 === s[2].y && -2 === s[3].x && -2 === s[3].y) return p(e, r, u); - var l = !!a + var d = !!a , f = o[n].concat(s); f.sort((function(t, e) { return t.y - e.y || t.x - e.x } )); - var h, m, b = f.length, g = new Int8Array(b), y = new Int8Array(b), v = [], S = 0, w = 0, C = 0, _ = 0; + var h, m, b = f.length, g = new Int8Array(b), v = new Int8Array(b), y = [], S = 0, w = 0, C = 0, _ = 0; for (m = 0; m < b; m++) g[m] = f[m].x, - y[m] = f[m].y, + v[m] = f[m].y, w = Math.min(w, f[m].x), C = Math.max(C, f[m].x), _ = Math.min(_, f[m].y), - m < b - 1 && f[m].y === f[m + 1].y && f[m].x === f[m + 1].x - 1 ? S |= 1 << b - 1 - m : v.push(m); - var A = v.length + m < b - 1 && f[m].y === f[m + 1].y && f[m].x === f[m + 1].x - 1 ? S |= 1 << b - 1 - m : y.push(m); + var A = y.length , I = new Int8Array(A) , E = new Int8Array(A) , T = new Uint16Array(A); for (h = 0; h < A; h++) - m = v[h], + m = y[h], I[h] = f[m].x, E[h] = f[m].y, T[h] = 1 << b - 1 - m; - for (var x, P, k, D, O, R = -w, N = -_, M = e - C, B = c[n], F = new Uint8Array(e), j = [], L = u.decoder, U = u.contextCache.getContexts("GB"), X = 0, z = 0, q = 0; q < r; q++) { + for (var x, P, k, D, O, R = -w, M = -_, N = e - C, B = c[n], F = new Uint8Array(e), j = [], L = u.decoder, K = u.contextCache.getContexts("GB"), X = 0, z = 0, W = 0; W < r; W++) { if (i) { - var W = L.readBit(U, B); - if (X ^= W, + var q = L.readBit(K, B); + if (X ^= q, X) { j.push(F); continue @@ -18984,13 +19139,13 @@ for (F = new Uint8Array(F), j.push(F), x = 0; x < e; x++) - if (l && a[q][x]) + if (d && a[W][x]) F[x] = 0; else { - if (x >= R && x < M && q >= N) + if (x >= R && x < N && W >= M) for (z = z << 1 & S, m = 0; m < A; m++) - P = q + E[m], + P = W + E[m], k = x + I[m], D = j[P][k], D && (D = T[m], @@ -19001,30 +19156,30 @@ m = 0; m < b; m++, O--) k = x + g[m], - k >= 0 && k < e && (P = q + y[m], + k >= 0 && k < e && (P = W + v[m], P >= 0 && (D = j[P][k], D && (z |= D << O))); - var V = L.readBit(U, z); - F[x] = V + var H = L.readBit(K, z); + F[x] = H } } return j } function b(t, e, r, n, i, o, s, c, u) { - var d = a[r].coding; - 0 === r && (d = d.concat([c[0]])); - var l, f = d.length, p = new Int32Array(f), m = new Int32Array(f); - for (l = 0; l < f; l++) - p[l] = d[l].x, - m[l] = d[l].y; + var l = a[r].coding; + 0 === r && (l = l.concat([c[0]])); + var d, f = l.length, p = new Int32Array(f), m = new Int32Array(f); + for (d = 0; d < f; d++) + p[d] = l[d].x, + m[d] = l[d].y; var b = a[r].reference; 0 === r && (b = b.concat([c[1]])); var g = b.length - , y = new Int32Array(g) - , v = new Int32Array(g); - for (l = 0; l < g; l++) - y[l] = b[l].x, - v[l] = b[l].y; + , v = new Int32Array(g) + , y = new Int32Array(g); + for (d = 0; d < g; d++) + v[d] = b[d].x, + y[d] = b[d].y; for (var S = n[0].length, w = n.length, C = h[r], _ = [], A = u.decoder, I = u.contextCache.getContexts("GR"), E = 0, T = 0; T < e; T++) { if (s) { var x = A.readBit(I, C); @@ -19035,34 +19190,34 @@ var P = new Uint8Array(t); _.push(P); for (var D = 0; D < t; D++) { - var O, R, N = 0; - for (l = 0; l < f; l++) - O = T + m[l], - R = D + p[l], - O < 0 || R < 0 || R >= t ? N <<= 1 : N = N << 1 | _[O][R]; - for (l = 0; l < g; l++) - O = T + v[l] - o, - R = D + y[l] - i, - O < 0 || O >= w || R < 0 || R >= S ? N <<= 1 : N = N << 1 | n[O][R]; - var M = A.readBit(I, N); - P[D] = M + var O, R, M = 0; + for (d = 0; d < f; d++) + O = T + m[d], + R = D + p[d], + O < 0 || R < 0 || R >= t ? M <<= 1 : M = M << 1 | _[O][R]; + for (d = 0; d < g; d++) + O = T + y[d] - o, + R = D + v[d] - i, + O < 0 || O >= w || R < 0 || R >= S ? M <<= 1 : M = M << 1 | n[O][R]; + var N = A.readBit(I, M); + P[D] = N } } return _ } - function v(t, e, i, o, a, s, c, d, l, f, h, p) { + function y(t, e, i, o, a, s, c, l, d, f, h, p) { if (t && e) throw new k("symbol refinement with Huffman is not supported"); - var g, y, v = [], w = 0, C = u(i.length + o), _ = h.decoder, A = h.contextCache; + var g, v, y = [], w = 0, C = u(i.length + o), _ = h.decoder, A = h.contextCache; t && (g = j(1), - y = [], + v = [], C = Math.max(C, 1)); - while (v.length < o) { + while (y.length < o) { var I = t ? s.tableDeltaHeight.decode(p) : r(A, "IADH", _); w += I; var E = 0 , T = 0 - , x = t ? y.length : 0; + , x = t ? v.length : 0; while (1) { var P, D = t ? s.tableDeltaWidth.decode(p) : r(A, "IADW", _); if (null === D) @@ -19072,56 +19227,56 @@ e) { var O = r(A, "IAAI", _); if (O > 1) - P = S(t, e, E, w, 0, O, 1, i.concat(v), C, 0, 0, 1, 0, s, l, f, h, 0, p); + P = S(t, e, E, w, 0, O, 1, i.concat(y), C, 0, 0, 1, 0, s, d, f, h, 0, p); else { var R = n(A, _, C) - , N = r(A, "IARDX", _) - , M = r(A, "IARDY", _) - , B = R < i.length ? i[R] : v[R - i.length]; - P = b(E, w, l, B, N, M, !1, f, h) + , M = r(A, "IARDX", _) + , N = r(A, "IARDY", _) + , B = R < i.length ? i[R] : y[R - i.length]; + P = b(E, w, d, B, M, N, !1, f, h) } - v.push(P) + y.push(P) } else - t ? y.push(E) : (P = m(!1, E, w, c, !1, null, d, h), - v.push(P)) + t ? v.push(E) : (P = m(!1, E, w, c, !1, null, l, h), + y.push(P)) } if (t && !e) { var F = s.tableBitmapSize.decode(p); p.byteAlign(); - var K = void 0; + var U = void 0; if (0 === F) - K = z(p, T, w); + U = z(p, T, w); else { var L = p.end - , U = p.position + F; - p.end = U, - K = G(p, T, w, !1), + , K = p.position + F; + p.end = K, + U = G(p, T, w, !1), p.end = L, - p.position = U + p.position = K } - var X = y.length; + var X = v.length; if (x === X - 1) - v.push(K); + y.push(U); else { - var q = void 0 - , W = void 0 - , V = 0 - , H = void 0 - , Y = void 0 - , Z = void 0; - for (q = x; q < X; q++) { - for (Y = y[q], - H = V + Y, - Z = [], - W = 0; W < w; W++) - Z.push(K[W].subarray(V, H)); - v.push(Z), - V = H + var W = void 0 + , q = void 0 + , H = 0 + , V = void 0 + , Z = void 0 + , Q = void 0; + for (W = x; W < X; W++) { + for (Z = v[W], + V = H + Z, + Q = [], + q = 0; q < w; q++) + Q.push(U[q].subarray(H, V)); + y.push(Q), + H = V } } } } - var Q = [] + var Y = [] , J = [] , $ = !1 , tt = i.length + o; @@ -19132,13 +19287,13 @@ $ = !$ } for (var rt = 0, nt = i.length; rt < nt; rt++) - J[rt] && Q.push(i[rt]); + J[rt] && Y.push(i[rt]); for (var it = 0; it < o; rt++, it++) - J[rt] && Q.push(v[it]); - return Q + J[rt] && Y.push(y[it]); + return Y } - function S(t, e, i, o, a, s, c, u, d, l, f, h, p, m, g, y, v, S, w) { + function S(t, e, i, o, a, s, c, u, l, d, f, h, p, m, g, v, y, S, w) { if (t && e) throw new k("refinement with Huffman is not supported"); var C, _, A = []; @@ -19149,8 +19304,8 @@ _[I] = a; A.push(_) } - var E = v.decoder - , T = v.contextCache + var E = y.decoder + , T = y.contextCache , x = t ? -m.tableDeltaT.decode(w) : -r(T, "IADT", E) , P = 0; C = 0; @@ -19161,38 +19316,38 @@ P += O; var R = P; do { - var N = 0; - c > 1 && (N = t ? w.readBits(S) : r(T, "IAIT", E)); - var M = c * x + N - , B = t ? m.symbolIDTable.decode(w) : n(T, E, d) + var M = 0; + c > 1 && (M = t ? w.readBits(S) : r(T, "IAIT", E)); + var N = c * x + M + , B = t ? m.symbolIDTable.decode(w) : n(T, E, l) , F = e && (t ? w.readBit() : r(T, "IARI", E)) , j = u[B] - , K = j[0].length + , U = j[0].length , L = j.length; if (F) { - var U = r(T, "IARDW", E) + var K = r(T, "IARDW", E) , X = r(T, "IARDH", E) , z = r(T, "IARDX", E) , G = r(T, "IARDY", E); - K += U, + U += K, L += X, - j = b(K, L, g, j, (U >> 1) + z, (X >> 1) + G, !1, y, v) + j = b(U, L, g, j, (K >> 1) + z, (X >> 1) + G, !1, v, y) } - var q, W, V, H = M - (1 & h ? 0 : L - 1), Y = R - (2 & h ? K - 1 : 0); - if (l) { - for (q = 0; q < L; q++) - if (_ = A[Y + q], + var W, q, H, V = N - (1 & h ? 0 : L - 1), Z = R - (2 & h ? U - 1 : 0); + if (d) { + for (W = 0; W < L; W++) + if (_ = A[Z + W], _) { - V = j[q]; - var Z = Math.min(i - H, K); + H = j[W]; + var Q = Math.min(i - V, U); switch (p) { case 0: - for (W = 0; W < Z; W++) - _[H + W] |= V[W]; + for (q = 0; q < Q; q++) + _[V + q] |= H[q]; break; case 2: - for (W = 0; W < Z; W++) - _[H + W] ^= V[W]; + for (q = 0; q < Q; q++) + _[V + q] ^= H[q]; break; default: throw new k("operator ".concat(p, " is not supported")) @@ -19200,29 +19355,29 @@ } R += L - 1 } else { - for (W = 0; W < L; W++) - if (_ = A[H + W], + for (q = 0; q < L; q++) + if (_ = A[V + q], _) - switch (V = j[W], + switch (H = j[q], p) { case 0: - for (q = 0; q < K; q++) - _[Y + q] |= V[q]; + for (W = 0; W < U; W++) + _[Z + W] |= H[W]; break; case 2: - for (q = 0; q < K; q++) - _[Y + q] ^= V[q]; + for (W = 0; W < U; W++) + _[Z + W] ^= H[W]; break; default: throw new k("operator ".concat(p, " is not supported")) } - R += K - 1 + R += U - 1 } C++; - var Q = t ? m.tableDeltaS.decode(w) : r(T, "IADS", E); - if (null === Q) + var Y = t ? m.tableDeltaS.decode(w) : r(T, "IADS", E); + if (null === Y) break; - R += Q + f + R += Y + f } while (1) } return A @@ -19245,25 +19400,25 @@ x: -2, y: -2 }))); - for (var s = (n + 1) * e, c = m(t, s, r, i, !1, null, a, o), u = [], d = 0; d <= n; d++) { - for (var l = [], f = e * d, h = f + e, p = 0; p < r; p++) - l.push(c[p].subarray(f, h)); - u.push(l) + for (var s = (n + 1) * e, c = m(t, s, r, i, !1, null, a, o), u = [], l = 0; l <= n; l++) { + for (var d = [], f = e * l, h = f + e, p = 0; p < r; p++) + d.push(c[p].subarray(f, h)); + u.push(d) } return u } - function C(t, e, r, n, i, o, a, s, c, d, l, f, h, p, b) { + function C(t, e, r, n, i, o, a, s, c, l, d, f, h, p, b) { var g = null; if (a) throw new k("skip is not supported"); if (0 !== s) throw new k("operator " + s + " is not supported in halftone region"); - var y, v, S, w = []; - for (y = 0; y < i; y++) { + var v, y, S, w = []; + for (v = 0; v < i; v++) { if (S = new Uint8Array(n), o) - for (v = 0; v < n; v++) - S[v] = o; + for (y = 0; y < n; y++) + S[y] = o; w.push(S) } var C = e.length @@ -19288,38 +19443,38 @@ x: -2, y: -2 }))); - var x, P, D, O, R, N, M, B, F, j, L, U = []; - for (t && (x = new K(b.data,b.start,b.end)), - y = E - 1; y >= 0; y--) - P = t ? G(x, c, d, !0) : m(!1, c, d, r, !1, g, T, b), - U[y] = P; - for (D = 0; D < d; D++) + var x, P, D, O, R, M, N, B, F, j, L, K = []; + for (t && (x = new U(b.data,b.start,b.end)), + v = E - 1; v >= 0; v--) + P = t ? G(x, c, l, !0) : m(!1, c, l, r, !1, g, T, b), + K[v] = P; + for (D = 0; D < l; D++) for (O = 0; O < c; O++) { for (R = 0, - N = 0, - v = E - 1; v >= 0; v--) - R = U[v][D][O] ^ R, - N |= R << v; - if (M = e[N], - B = l + D * p + O * h >> 8, + M = 0, + y = E - 1; y >= 0; y--) + R = K[y][D][O] ^ R, + M |= R << y; + if (N = e[M], + B = d + D * p + O * h >> 8, F = f + D * h - O * p >> 8, B >= 0 && B + A <= n && F >= 0 && F + I <= i) - for (y = 0; y < I; y++) - for (L = w[F + y], - j = M[y], - v = 0; v < A; v++) - L[B + v] |= j[v]; + for (v = 0; v < I; v++) + for (L = w[F + v], + j = N[v], + y = 0; y < A; y++) + L[B + y] |= j[y]; else { var X = void 0 , z = void 0; - for (y = 0; y < I; y++) - if (z = F + y, + for (v = 0; v < I; v++) + if (z = F + v, !(z < 0 || z >= i)) for (L = w[z], - j = M[y], - v = 0; v < A; v++) - X = B + v, - X >= 0 && X < n && (L[X] |= j[v]) + j = N[v], + y = 0; y < A; y++) + X = B + y, + X >= 0 && X < n && (L[X] |= j[y]) } } return w @@ -19338,14 +19493,14 @@ , s = t[e + 5] , c = s >> 5 & 7 , u = [31 & s] - , d = e + 6; + , l = e + 6; if (7 === s) { - c = 536870911 & f(t, d - 1), - d += 3; + c = 536870911 & f(t, l - 1), + l += 3; var h = c + 7 >> 3; - u[0] = t[d++]; + u[0] = t[l++]; while (--h > 0) - u.push(t[d++]) + u.push(t[l++]) } else if (5 === s || 6 === s) throw new k("invalid referred-to flags"); r.retainBits = u; @@ -19353,31 +19508,31 @@ r.number <= 256 ? p = 1 : r.number <= 65536 && (p = 2); var m, b, g = []; for (m = 0; m < c; m++) { - var y = void 0; - y = 1 === p ? t[d] : 2 === p ? l(t, d) : f(t, d), - g.push(y), - d += p + var v = void 0; + v = 1 === p ? t[l] : 2 === p ? d(t, l) : f(t, l), + g.push(v), + l += p } if (r.referredTo = g, - a ? (r.pageAssociation = f(t, d), - d += 4) : r.pageAssociation = t[d++], - r.length = f(t, d), - d += 4, + a ? (r.pageAssociation = f(t, l), + l += 4) : r.pageAssociation = t[l++], + r.length = f(t, l), + l += 4, 4294967295 === r.length) { if (38 !== o) throw new k("invalid unknown segment length"); - var v = I(t, d) - , S = t[d + E] + var y = I(t, l) + , S = t[l + E] , w = !!(1 & S) , C = 6 , _ = new Uint8Array(C); for (w || (_[0] = 255, _[1] = 172), - _[2] = v.height >>> 24 & 255, - _[3] = v.height >> 16 & 255, - _[4] = v.height >> 8 & 255, - _[5] = 255 & v.height, - m = d, + _[2] = y.height >>> 24 & 255, + _[3] = y.height >> 16 & 255, + _[4] = y.height >> 8 & 255, + _[5] = 255 & y.height, + m = l, b = t.length; m < b; m++) { var A = 0; while (A < C && _[A] === t[m + A]) @@ -19390,7 +19545,7 @@ if (4294967295 === r.length) throw new k("segment end was not found") } - return r.headerEnd = d, + return r.headerEnd = l, r } function A(t, e, r, n) { @@ -19432,7 +19587,7 @@ switch (a.type) { case 0: var h = {} - , p = l(s, c); + , p = d(s, c); if (h.huffman = !!(1 & p), h.refinement = !!(2 & p), h.huffmanDHSelector = p >> 2 & 3, @@ -19449,8 +19604,8 @@ n = [], i = 0; i < o; i++) n.push({ - x: d(s, c), - y: d(s, c + 1) + x: l(s, c), + y: l(s, c + 1) }), c += 2; h.at = n @@ -19459,8 +19614,8 @@ for (n = [], i = 0; i < 2; i++) n.push({ - x: d(s, c), - y: d(s, c + 1) + x: l(s, c), + y: l(s, c + 1) }), c += 2; h.refinementAt = n @@ -19476,7 +19631,7 @@ var m = {}; m.info = I(s, c), c += E; - var b = l(s, c); + var b = d(s, c); if (c += 2, m.huffman = !!(1 & b), m.refinement = !!(2 & b), @@ -19489,7 +19644,7 @@ m.dsOffset = b << 17 >> 27, m.refinementTemplate = b >> 15 & 1, m.huffman) { - var g = l(s, c); + var g = d(s, c); c += 2, m.huffmanFS = 3 & g, m.huffmanDS = g >> 2 & 3, @@ -19504,8 +19659,8 @@ for (n = [], i = 0; i < 2; i++) n.push({ - x: d(s, c), - y: d(s, c + 1) + x: l(s, c), + y: l(s, c + 1) }), c += 2; m.refinementAt = n @@ -19515,15 +19670,15 @@ r = [m, a.referredTo, s, c, u]; break; case 16: - var y = {} - , v = s[c++]; - y.mmr = !!(1 & v), - y.template = v >> 1 & 3, - y.patternWidth = s[c++], - y.patternHeight = s[c++], - y.maxPatternIndex = f(s, c), + var v = {} + , y = s[c++]; + v.mmr = !!(1 & y), + v.template = y >> 1 & 3, + v.patternWidth = s[c++], + v.patternHeight = s[c++], + v.maxPatternIndex = f(s, c), c += 4, - r = [y, a.number, s, c, u]; + r = [v, a.number, s, c, u]; break; case 22: case 23: @@ -19544,9 +19699,9 @@ c += 4, S.gridOffsetY = 4294967295 & f(s, c), c += 4, - S.gridVectorX = l(s, c), + S.gridVectorX = d(s, c), c += 2, - S.gridVectorY = l(s, c), + S.gridVectorY = d(s, c), c += 2, r = [S, a.referredTo, s, c, u]; break; @@ -19564,8 +19719,8 @@ n = [], i = 0; i < o; i++) n.push({ - x: d(s, c), - y: d(s, c + 1) + x: l(s, c), + y: l(s, c + 1) }), c += 2; C.at = n @@ -19581,7 +19736,7 @@ }; 4294967295 === A.height && delete A.height; var T = s[c + 16]; - l(s, c + 17), + d(s, c + 17), A.lossless = !!(1 & T), A.refinement = !!(2 & T), A.defaultPixelValue = T >> 2 & 1, @@ -19633,14 +19788,14 @@ var o = A(n, t, r, e) , a = new O; x(o, a); - for (var s = a.currentPageInfo, c = s.width, u = s.height, d = a.buffer, l = new Uint8ClampedArray(c * u), h = 0, p = 0, m = 0; m < u; m++) - for (var b = 0, g = void 0, y = 0; y < c; y++) + for (var s = a.currentPageInfo, c = s.width, u = s.height, l = a.buffer, d = new Uint8ClampedArray(c * u), h = 0, p = 0, m = 0; m < u; m++) + for (var b = 0, g = void 0, v = 0; v < c; v++) b || (b = 128, - g = d[p++]), - l[h++] = g & b ? 0 : 255, + g = l[p++]), + d[h++] = g & b ? 0 : 255, b >>= 1; return { - imgData: l, + imgData: d, width: c, height: u } @@ -19659,7 +19814,7 @@ this.prefixCode = t[3], this.isLowerRange = "lower" === t[4]) } - function N(t) { + function M(t) { this.children = [], t ? (this.isLeaf = !0, this.rangeLength = t.rangeLength, @@ -19667,29 +19822,29 @@ this.isLowerRange = t.isLowerRange, this.isOOB = t.isOOB) : this.isLeaf = !1 } - function M(t, e) { + function N(t, e) { e || this.assignPrefixCodes(t), - this.rootNode = new N(null); + this.rootNode = new M(null); for (var r = 0, n = t.length; r < n; r++) { var i = t[r]; i.prefixLength > 0 && this.rootNode.buildTree(i, i.prefixLength - 1) } } function B(t, e, r) { - var n, i, o = t[e], a = 4294967295 & f(t, e + 1), s = 4294967295 & f(t, e + 5), c = new K(t,e + 9,r), u = 1 + (o >> 1 & 7), d = 1 + (o >> 4 & 7), l = [], h = a; + var n, i, o = t[e], a = 4294967295 & f(t, e + 1), s = 4294967295 & f(t, e + 5), c = new U(t,e + 9,r), u = 1 + (o >> 1 & 7), l = 1 + (o >> 4 & 7), d = [], h = a; do { n = c.readBits(u), - i = c.readBits(d), - l.push(new R([h, n, i, 0])), + i = c.readBits(l), + d.push(new R([h, n, i, 0])), h += 1 << i } while (h < s); return n = c.readBits(u), - l.push(new R([a - 1, n, 32, 0, "lower"])), + d.push(new R([a - 1, n, 32, 0, "lower"])), n = c.readBits(u), - l.push(new R([s, n, 32, 0])), + d.push(new R([s, n, 32, 0])), 1 & o && (n = c.readBits(u), - l.push(new R([n, 0]))), - new M(l,!1) + d.push(new R([n, 0]))), + new N(d,!1) } O.prototype = { onPageInformation: function(t) { @@ -19702,14 +19857,14 @@ this.buffer = r }, drawBitmap: function(t, e) { - var r, n, i, o, a = this.currentPageInfo, s = t.width, c = t.height, u = a.width + 7 >> 3, d = a.combinationOperatorOverride ? t.combinationOperator : a.combinationOperator, l = this.buffer, f = 128 >> (7 & t.x), h = t.y * u + (t.x >> 3); - switch (d) { + var r, n, i, o, a = this.currentPageInfo, s = t.width, c = t.height, u = a.width + 7 >> 3, l = a.combinationOperatorOverride ? t.combinationOperator : a.combinationOperator, d = this.buffer, f = 128 >> (7 & t.x), h = t.y * u + (t.x >> 3); + switch (l) { case 0: for (r = 0; r < c; r++) { for (i = f, o = h, n = 0; n < s; n++) - e[r][n] && (l[o] |= i), + e[r][n] && (d[o] |= i), i >>= 1, i || (i = 128, o++); @@ -19721,7 +19876,7 @@ for (i = f, o = h, n = 0; n < s; n++) - e[r][n] && (l[o] ^= i), + e[r][n] && (d[o] ^= i), i >>= 1, i || (i = 128, o++); @@ -19729,7 +19884,7 @@ } break; default: - throw new k("operator ".concat(d, " is not supported")) + throw new k("operator ".concat(l, " is not supported")) } }, onImmediateGenericRegion: function(t, r, n, i) { @@ -19744,26 +19899,26 @@ onSymbolDictionary: function(t, r, n, i, o, a) { var s, c; t.huffman && (s = X(t, n, this.customTables), - c = new K(i,o,a)); + c = new U(i,o,a)); var u = this.symbols; u || (this.symbols = u = {}); - for (var d = [], l = 0, f = n.length; l < f; l++) { - var h = u[n[l]]; - h && (d = d.concat(h)) + for (var l = [], d = 0, f = n.length; d < f; d++) { + var h = u[n[d]]; + h && (l = l.concat(h)) } var p = new e(i,o,a); - u[r] = v(t.huffman, t.refinement, d, t.numberOfNewSymbols, t.numberOfExportedSymbols, s, t.template, t.at, t.refinementTemplate, t.refinementAt, p, c) + u[r] = y(t.huffman, t.refinement, l, t.numberOfNewSymbols, t.numberOfExportedSymbols, s, t.template, t.at, t.refinementTemplate, t.refinementAt, p, c) }, onImmediateTextRegion: function(t, r, n, i, o) { - for (var a, s, c = t.info, d = this.symbols, l = [], f = 0, h = r.length; f < h; f++) { - var p = d[r[f]]; - p && (l = l.concat(p)) + for (var a, s, c = t.info, l = this.symbols, d = [], f = 0, h = r.length; f < h; f++) { + var p = l[r[f]]; + p && (d = d.concat(p)) } - var m = u(l.length); - t.huffman && (s = new K(n,i,o), - a = U(t, r, this.customTables, l.length, s)); + var m = u(d.length); + t.huffman && (s = new U(n,i,o), + a = K(t, r, this.customTables, d.length, s)); var b = new e(n,i,o) - , g = S(t.huffman, t.refinement, c.width, c.height, t.defaultPixelValue, t.numberOfSymbolInstances, t.stripSize, l, m, t.transposed, t.dsOffset, t.referenceCorner, t.combinationOperator, a, t.refinementTemplate, t.refinementAt, b, t.logStripSize, s); + , g = S(t.huffman, t.refinement, c.width, c.height, t.defaultPixelValue, t.numberOfSymbolInstances, t.stripSize, d, m, t.transposed, t.dsOffset, t.referenceCorner, t.combinationOperator, a, t.refinementTemplate, t.refinementAt, b, t.logStripSize, s); this.drawBitmap(c, g) }, onImmediateLosslessTextRegion: function() { @@ -19791,14 +19946,14 @@ i[t] = B(e, r, n) } }, - N.prototype = { + M.prototype = { buildTree: function(t, e) { var r = t.prefixCode >> e & 1; if (e <= 0) - this.children[r] = new N(t); + this.children[r] = new M(t); else { var n = this.children[r]; - n || (this.children[r] = n = new N(null)), + n || (this.children[r] = n = new M(null)), n.buildTree(t, e - 1) } }, @@ -19815,7 +19970,7 @@ return r.decodeNode(t) } }, - M.prototype = { + N.prototype = { decode: function(t) { return this.rootNode.decodeNode(t) }, @@ -19824,11 +19979,11 @@ r = Math.max(r, t[n].prefixLength); for (var i = new Uint32Array(r + 1), o = 0; o < e; o++) i[t[o].prefixLength]++; - var a, s, c, u = 1, d = 0; + var a, s, c, u = 1, l = 0; i[0] = 0; while (u <= r) { - d = d + i[u - 1] << 1, - a = d, + l = l + i[u - 1] << 1, + a = l, s = 0; while (s < e) c = t[s], @@ -19895,11 +20050,11 @@ } for (var n = 0, i = e.length; n < i; n++) e[n] = new R(e[n]); - return r = new M(e,!0), + return r = new N(e,!0), F[t] = r, r } - function K(t, e, r) { + function U(t, e, r) { this.data = t, this.start = e, this.end = r, @@ -19918,54 +20073,54 @@ } throw new k("can't find custom Huffman table") } - function U(t, e, r, n, i) { + function K(t, e, r, n, i) { for (var o = [], a = 0; a <= 34; a++) { var s = i.readBits(4); o.push(new R([a, s, 0, 0])) } - var c = new M(o,!1); + var c = new N(o,!1); o.length = 0; for (var u = 0; u < n; ) { - var d = c.decode(i); - if (d >= 32) { - var l = void 0 + var l = c.decode(i); + if (l >= 32) { + var d = void 0 , f = void 0 , h = void 0; - switch (d) { + switch (l) { case 32: if (0 === u) throw new k("no previous value in symbol ID table"); f = i.readBits(2) + 3, - l = o[u - 1].prefixLength; + d = o[u - 1].prefixLength; break; case 33: f = i.readBits(3) + 3, - l = 0; + d = 0; break; case 34: f = i.readBits(7) + 11, - l = 0; + d = 0; break; default: throw new k("invalid code length in symbol ID table") } for (h = 0; h < f; h++) - o.push(new R([u, l, 0, 0])), + o.push(new R([u, d, 0, 0])), u++ } else - o.push(new R([u, d, 0, 0])), + o.push(new R([u, l, 0, 0])), u++ } i.byteAlign(); - var p, m, b, g = new M(o,!1), y = 0; + var p, m, b, g = new N(o,!1), v = 0; switch (t.huffmanFS) { case 0: case 1: p = j(t.huffmanFS + 6); break; case 3: - p = L(y, e, r), - y++; + p = L(v, e, r), + v++; break; default: throw new k("invalid Huffman FS selector") @@ -19977,8 +20132,8 @@ m = j(t.huffmanDS + 8); break; case 3: - m = L(y, e, r), - y++; + m = L(v, e, r), + v++; break; default: throw new k("invalid Huffman DS selector") @@ -19990,8 +20145,8 @@ b = j(t.huffmanDT + 11); break; case 3: - b = L(y, e, r), - y++; + b = L(v, e, r), + v++; break; default: throw new k("invalid Huffman DT selector") @@ -20058,16 +20213,16 @@ Rows: r, BlackIs1: !0, EndOfBlock: n - }, a = new y(t,o), s = [], c = !1, u = 0; u < r; u++) { - var d = new Uint8Array(e); - s.push(d); - for (var l = -1, f = 0; f < e; f++) - l < 0 && (i = a.readNextChar(), + }, a = new v(t,o), s = [], c = !1, u = 0; u < r; u++) { + var l = new Uint8Array(e); + s.push(l); + for (var d = -1, f = 0; f < e; f++) + d < 0 && (i = a.readNextChar(), -1 === i && (i = 0, c = !0), - l = 7), - d[f] = i >> l & 1, - l-- + d = 7), + l[f] = i >> d & 1, + d-- } if (n && !c) for (var h = 5, p = 0; p < h; p++) @@ -20075,8 +20230,8 @@ break; return s } - function q() {} - return K.prototype = { + function W() {} + return U.prototype = { readBit: function() { if (this.shift < 0) { if (this.position >= this.end) @@ -20101,7 +20256,7 @@ return this.position >= this.end ? -1 : this.data[this.position++] } }, - q.prototype = { + W.prototype = { parseChunks: function(t) { return P(t) }, @@ -20115,7 +20270,7 @@ r } }, - q + W }() }, 7418: function(t, e) { @@ -20217,16 +20372,3751 @@ return o(i(t)) } }, + "7b14": function(t, e, r) { + (function(t, e) { + function r(t) { + return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { + return typeof t + } + : function(t) { + return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t + } + , + r(t) + } + Array.prototype.fill || Object.defineProperty(Array.prototype, "fill", { + value: function(t) { + if (null == this) + throw new TypeError("this is null or not defined"); + var e = Object(this) + , r = e.length >>> 0 + , n = arguments[1] + , i = n >> 0 + , o = i < 0 ? Math.max(r + i, 0) : Math.min(i, r) + , a = arguments[2] + , s = void 0 === a ? r : a >> 0 + , c = s < 0 ? Math.max(r + s, 0) : Math.min(s, r); + while (o < c) + e[o] = t, + o++; + return e + } + }), + function() { + var n = {}; + function i() { + "undefined" == typeof e && console.log.apply(console, arguments) + } + "object" == r(t) ? t.exports = n : self.UTIF = n, + function(t) { + (function() { + "use strict"; + var e = function() { + function t(t) { + this.message = "JPEG error: " + t + } + return t.prototype = new Error, + t.prototype.name = "JpegError", + t.constructor = t, + t + }() + , n = function() { + var t = new Uint8Array([0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51, 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63]) + , n = 4017 + , o = 799 + , a = 3406 + , s = 2276 + , c = 1567 + , u = 3784 + , l = 5793 + , d = 2896; + function f(t) { + null == t && (t = {}), + null == t.w && (t.w = -1), + this.V = t.n, + this.N = t.w + } + function h(t, e) { + var r, n, i, o = 0, a = [], s = 16; + while (s > 0 && !t[s - 1]) + s--; + a.push({ + children: [], + index: 0 + }); + var c = a[0]; + for (r = 0; r < s; r++) { + for (n = 0; n < t[r]; n++) { + c = a.pop(), + c.children[c.index] = e[o]; + while (c.index > 0) + c = a.pop(); + c.index++, + a.push(c); + while (a.length <= r) + a.push(i = { + children: [], + index: 0 + }), + c.children[c.index] = i.children, + c = i; + o++ + } + r + 1 < s && (a.push(i = { + children: [], + index: 0 + }), + c.children[c.index] = i.children, + c = i) + } + return a[0].children + } + function p(t, e, r) { + return 64 * ((t.P + 1) * e + r) + } + function m(n, o, a, s, c, u, l, d, f, h) { + null == h && (h = !1); + var m, b, g, y, S, w, C, _, A, I, E, T = a.m, x = a.Z, P = o, k = 0, D = 0, O = 0, R = 0, M = 0, N = 0; + function B() { + if (D > 0) + return D--, + k >> D & 1; + if (k = n[o++], + 255 === k) { + var t = n[o++]; + if (t) { + if (220 === t && h) { + o += 2; + var r = i(n, o); + if (o += 2, + r > 0 && r !== a.s) + throw new DNLMarkerError("Found DNL marker (0xFFDC) while parsing scan data",r) + } else if (217 === t) { + if (h) { + var s = 8 * M; + if (s > 0 && s < a.s / 10) + throw new DNLMarkerError("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",s) + } + throw new EOIMarkerError("Found EOI marker (0xFFD9) while parsing scan data") + } + throw new e("unexpected marker") + } + } + return D = 7, + k >>> 7 + } + function F(t) { + var n = t; + while (1) { + switch (n = n[B()], + r(n)) { + case "number": + return n; + case "object": + continue + } + throw new e("invalid huffman sequence") + } + } + function j(t) { + var e = 0; + while (t > 0) + e = e << 1 | B(), + t--; + return e + } + function U(t) { + if (1 === t) + return 1 === B() ? 1 : -1; + var e = j(t); + return e >= 1 << t - 1 ? e : e + (-1 << t) + 1 + } + function L(e, r) { + var n = F(e.J) + , i = 0 === n ? 0 : U(n) + , o = 1; + e.D[r] = e.Q += i; + while (o < 64) { + var a = F(e.i) + , s = 15 & a + , c = a >> 4; + if (0 !== s) { + o += c; + var u = t[o]; + e.D[r + u] = U(s), + o++ + } else { + if (c < 15) + break; + o += 16 + } + } + } + function K(t, e) { + var r = F(t.J) + , n = 0 === r ? 0 : U(r) << f; + t.D[e] = t.Q += n + } + function X(t, e) { + t.D[e] |= B() << f + } + function z(e, r) { + if (O > 0) + O--; + else { + var n = u + , i = l; + while (n <= i) { + var o = F(e.i) + , a = 15 & o + , s = o >> 4; + if (0 !== a) { + n += s; + var c = t[n]; + e.D[r + c] = U(a) * (1 << f), + n++ + } else { + if (s < 15) { + O = j(s) + (1 << s) - 1; + break + } + n += 16 + } + } + } + } + function G(r, n) { + var i, o, a = u, s = l, c = 0; + while (a <= s) { + var d = n + t[a] + , h = r.D[d] < 0 ? -1 : 1; + switch (R) { + case 0: + if (o = F(r.i), + i = 15 & o, + c = o >> 4, + 0 === i) + c < 15 ? (O = j(c) + (1 << c), + R = 4) : (c = 16, + R = 1); + else { + if (1 !== i) + throw new e("invalid ACn encoding"); + m = U(i), + R = c ? 2 : 3 + } + continue; + case 1: + case 2: + r.D[d] ? r.D[d] += h * (B() << f) : (c--, + 0 === c && (R = 2 === R ? 3 : 0)); + break; + case 3: + r.D[d] ? r.D[d] += h * (B() << f) : (r.D[d] = m << f, + R = 0); + break; + case 4: + r.D[d] && (r.D[d] += h * (B() << f)); + break + } + a++ + } + 4 === R && (O--, + 0 === O && (R = 0)) + } + function W(t, e, r, n, i) { + var o = r / T | 0 + , a = r % T; + M = o * t.A + n; + var s = a * t.h + i + , c = p(t, M, s); + e(t, c) + } + function q(t, e, r) { + M = r / t.P | 0; + var n = r % t.P + , i = p(t, M, n); + e(t, i) + } + var H = s.length; + C = x ? 0 === u ? 0 === d ? K : X : 0 === d ? z : G : L, + A = 1 === H ? s[0].P * s[0].c : T * a.R; + while (N <= A) { + var V = c ? Math.min(A - N, c) : A; + if (V > 0) { + for (g = 0; g < H; g++) + s[g].Q = 0; + if (O = 0, + 1 === H) + for (b = s[0], + w = 0; w < V; w++) + q(b, C, N), + N++; + else + for (w = 0; w < V; w++) { + for (g = 0; g < H; g++) + for (b = s[g], + I = b.h, + E = b.A, + y = 0; y < E; y++) + for (S = 0; S < I; S++) + W(b, C, N, y, S); + N++ + } + } + if (D = 0, + _ = v(n, o), + !_) + break; + if (_.u) { + o = _.offset + } + if (!(_.M >= 65488 && _.M <= 65495)) + break; + o += 2 + } + return o - P + } + function b(t, r, i) { + var f, h, p, m, b, g, v, y, S, w, C, _, A, I, E, T, x, P = t.$, k = t.D; + if (!P) + throw new e("missing required Quantization Table."); + for (var D = 0; D < 64; D += 8) + S = k[r + D], + w = k[r + D + 1], + C = k[r + D + 2], + _ = k[r + D + 3], + A = k[r + D + 4], + I = k[r + D + 5], + E = k[r + D + 6], + T = k[r + D + 7], + S *= P[D], + 0 !== (w | C | _ | A | I | E | T) ? (w *= P[D + 1], + C *= P[D + 2], + _ *= P[D + 3], + A *= P[D + 4], + I *= P[D + 5], + E *= P[D + 6], + T *= P[D + 7], + f = l * S + 128 >> 8, + h = l * A + 128 >> 8, + p = C, + m = E, + b = d * (w - T) + 128 >> 8, + y = d * (w + T) + 128 >> 8, + g = _ << 4, + v = I << 4, + f = f + h + 1 >> 1, + h = f - h, + x = p * u + m * c + 128 >> 8, + p = p * c - m * u + 128 >> 8, + m = x, + b = b + v + 1 >> 1, + v = b - v, + y = y + g + 1 >> 1, + g = y - g, + f = f + m + 1 >> 1, + m = f - m, + h = h + p + 1 >> 1, + p = h - p, + x = b * s + y * a + 2048 >> 12, + b = b * a - y * s + 2048 >> 12, + y = x, + x = g * o + v * n + 2048 >> 12, + g = g * n - v * o + 2048 >> 12, + v = x, + i[D] = f + y, + i[D + 7] = f - y, + i[D + 1] = h + v, + i[D + 6] = h - v, + i[D + 2] = p + g, + i[D + 5] = p - g, + i[D + 3] = m + b, + i[D + 4] = m - b) : (x = l * S + 512 >> 10, + i[D] = x, + i[D + 1] = x, + i[D + 2] = x, + i[D + 3] = x, + i[D + 4] = x, + i[D + 5] = x, + i[D + 6] = x, + i[D + 7] = x); + for (var O = 0; O < 8; ++O) + S = i[O], + w = i[O + 8], + C = i[O + 16], + _ = i[O + 24], + A = i[O + 32], + I = i[O + 40], + E = i[O + 48], + T = i[O + 56], + 0 !== (w | C | _ | A | I | E | T) ? (f = l * S + 2048 >> 12, + h = l * A + 2048 >> 12, + p = C, + m = E, + b = d * (w - T) + 2048 >> 12, + y = d * (w + T) + 2048 >> 12, + g = _, + v = I, + f = 4112 + (f + h + 1 >> 1), + h = f - h, + x = p * u + m * c + 2048 >> 12, + p = p * c - m * u + 2048 >> 12, + m = x, + b = b + v + 1 >> 1, + v = b - v, + y = y + g + 1 >> 1, + g = y - g, + f = f + m + 1 >> 1, + m = f - m, + h = h + p + 1 >> 1, + p = h - p, + x = b * s + y * a + 2048 >> 12, + b = b * a - y * s + 2048 >> 12, + y = x, + x = g * o + v * n + 2048 >> 12, + g = g * n - v * o + 2048 >> 12, + v = x, + S = f + y, + T = f - y, + w = h + v, + E = h - v, + C = p + g, + I = p - g, + _ = m + b, + A = m - b, + S < 16 ? S = 0 : S >= 4080 ? S = 255 : S >>= 4, + w < 16 ? w = 0 : w >= 4080 ? w = 255 : w >>= 4, + C < 16 ? C = 0 : C >= 4080 ? C = 255 : C >>= 4, + _ < 16 ? _ = 0 : _ >= 4080 ? _ = 255 : _ >>= 4, + A < 16 ? A = 0 : A >= 4080 ? A = 255 : A >>= 4, + I < 16 ? I = 0 : I >= 4080 ? I = 255 : I >>= 4, + E < 16 ? E = 0 : E >= 4080 ? E = 255 : E >>= 4, + T < 16 ? T = 0 : T >= 4080 ? T = 255 : T >>= 4, + k[r + O] = S, + k[r + O + 8] = w, + k[r + O + 16] = C, + k[r + O + 24] = _, + k[r + O + 32] = A, + k[r + O + 40] = I, + k[r + O + 48] = E, + k[r + O + 56] = T) : (x = l * S + 8192 >> 14, + x = x < -2040 ? 0 : x >= 2024 ? 255 : x + 2056 >> 4, + k[r + O] = x, + k[r + O + 8] = x, + k[r + O + 16] = x, + k[r + O + 24] = x, + k[r + O + 32] = x, + k[r + O + 40] = x, + k[r + O + 48] = x, + k[r + O + 56] = x) + } + function g(t, e) { + for (var r = e.P, n = e.c, i = new Int16Array(64), o = 0; o < n; o++) + for (var a = 0; a < r; a++) { + var s = p(e, o, a); + b(e, s, i) + } + return e.D + } + function v(t, e, r) { + null == r && (r = e); + var n = t.length - 1 + , o = r < e ? r : e; + if (e >= n) + return null; + var a = i(t, e); + if (a >= 65472 && a <= 65534) + return { + u: null, + M: a, + offset: e + }; + var s = i(t, o); + while (!(s >= 65472 && s <= 65534)) { + if (++o >= n) + return null; + s = i(t, o) + } + return { + u: a.toString(16), + M: s, + offset: o + } + } + return f.prototype = { + parse: function(r, n) { + null == n && (n = {}); + var o, a, s = n.F, c = 0, u = null, l = null, d = 0; + function f() { + var t = i(r, c); + c += 2; + var e = c + t - 2 + , n = v(r, e, c); + n && n.u && (e = n.offset); + var o = r.subarray(c, e); + return c += o.length, + o + } + function p(t) { + for (var e = Math.ceil(t.o / 8 / t.X), r = Math.ceil(t.s / 8 / t.B), n = 0; n < t.W.length; n++) { + G = t.W[n]; + var i = Math.ceil(Math.ceil(t.o / 8) * G.h / t.X) + , o = Math.ceil(Math.ceil(t.s / 8) * G.A / t.B) + , a = e * G.h + , s = r * G.A + , c = 64 * s * (a + 1); + G.D = new Int16Array(c), + G.P = i, + G.c = o + } + t.m = e, + t.R = r + } + var b = [] + , y = [] + , S = [] + , w = i(r, c); + if (c += 2, + 65496 !== w) + throw new e("SOI not found"); + w = i(r, c), + c += 2; + t: while (65497 !== w) { + var C, _, A; + switch (w) { + case 65504: + case 65505: + case 65506: + case 65507: + case 65508: + case 65509: + case 65510: + case 65511: + case 65512: + case 65513: + case 65514: + case 65515: + case 65516: + case 65517: + case 65518: + case 65519: + case 65534: + var I = f(); + 65504 === w && 74 === I[0] && 70 === I[1] && 73 === I[2] && 70 === I[3] && 0 === I[4] && (u = { + version: { + d: I[5], + T: I[6] + }, + K: I[7], + j: I[8] << 8 | I[9], + H: I[10] << 8 | I[11], + S: I[12], + I: I[13], + C: I.subarray(14, 14 + 3 * I[12] * I[13]) + }), + 65518 === w && 65 === I[0] && 100 === I[1] && 111 === I[2] && 98 === I[3] && 101 === I[4] && (l = { + version: I[5] << 8 | I[6], + k: I[7] << 8 | I[8], + q: I[9] << 8 | I[10], + a: I[11] + }); + break; + case 65499: + var E, T = i(r, c); + c += 2; + var x = T + c - 2; + while (c < x) { + var P = r[c++] + , k = new Uint16Array(64); + if (P >> 4 === 0) + for (_ = 0; _ < 64; _++) + E = t[_], + k[E] = r[c++]; + else { + if (P >> 4 !== 1) + throw new e("DQT - invalid table spec"); + for (_ = 0; _ < 64; _++) + E = t[_], + k[E] = i(r, c), + c += 2 + } + b[15 & P] = k + } + break; + case 65472: + case 65473: + case 65474: + if (o) + throw new e("Only single frame JPEGs supported"); + c += 2, + o = {}, + o.G = 65473 === w, + o.Z = 65474 === w, + o.precision = r[c++]; + var D, O = i(r, c), R = 0, M = 0; + c += 2, + o.s = s || O, + o.o = i(r, c), + c += 2, + o.W = [], + o._ = {}; + var N = r[c++]; + for (C = 0; C < N; C++) { + D = r[c]; + var B = r[c + 1] >> 4 + , F = 15 & r[c + 1]; + R < B && (R = B), + M < F && (M = F); + var j = r[c + 2]; + A = o.W.push({ + h: B, + A: F, + L: j, + $: null + }), + o._[D] = A - 1, + c += 3 + } + o.X = R, + o.B = M, + p(o); + break; + case 65476: + var U = i(r, c); + for (c += 2, + C = 2; C < U; ) { + var L = r[c++] + , K = new Uint8Array(16) + , X = 0; + for (_ = 0; _ < 16; _++, + c++) + X += K[_] = r[c]; + var z = new Uint8Array(X); + for (_ = 0; _ < X; _++, + c++) + z[_] = r[c]; + C += 17 + X, + (L >> 4 === 0 ? S : y)[15 & L] = h(K, z) + } + break; + case 65501: + c += 2, + a = i(r, c), + c += 2; + break; + case 65498: + var G, W = 1 === ++d && !s; + c += 2; + var q = r[c++] + , H = []; + for (C = 0; C < q; C++) { + var V = r[c++] + , Z = o._[V]; + G = o.W[Z], + G.index = V; + var Q = r[c++]; + G.J = S[Q >> 4], + G.i = y[15 & Q], + H.push(G) + } + var Y = r[c++] + , J = r[c++] + , $ = r[c++]; + try { + var tt = m(r, c, o, H, a, Y, J, $ >> 4, 15 & $, W); + c += tt + } catch (nt) { + if (nt instanceof DNLMarkerError) + return this.parse(r, { + F: nt.s + }); + if (nt instanceof EOIMarkerError) + break t; + throw nt + } + break; + case 65500: + c += 4; + break; + case 65535: + 255 !== r[c] && c--; + break; + default: + var et = v(r, c - 2, c - 3); + if (et && et.u) { + c = et.offset; + break + } + if (c >= r.length - 1) + break t; + throw new e("JpegImage.parse - unknown marker: " + w.toString(16)) + } + w = i(r, c), + c += 2 + } + for (this.width = o.o, + this.height = o.s, + this.g = u, + this.b = l, + this.W = [], + C = 0; C < o.W.length; C++) { + G = o.W[C]; + var rt = b[G.L]; + rt && (G.$ = rt), + this.W.push({ + index: G.index, + e: g(o, G), + l: G.h / o.X, + t: G.A / o.B, + P: G.P, + c: G.c + }) + } + this.p = this.W.length + }, + Y: function(t, e, r) { + null == r && (r = !1); + var n, i, o, a, s, c, u, l, d, f, h, p, m = this.width / t, b = this.height / e, g = 0, v = this.W.length, y = t * e * v, S = new Uint8ClampedArray(y), w = new Uint32Array(t), C = 4294967288; + for (u = 0; u < v; u++) { + if (n = this.W[u], + i = n.l * m, + o = n.t * b, + g = u, + h = n.e, + a = n.P + 1 << 3, + i !== p) { + for (s = 0; s < t; s++) + l = 0 | s * i, + w[s] = (l & C) << 3 | 7 & l; + p = i + } + for (c = 0; c < e; c++) + for (l = 0 | c * o, + f = a * (l & C) | (7 & l) << 3, + s = 0; s < t; s++) + S[g] = h[f + w[s]], + g += v + } + var _ = this.V; + if (r || 4 !== v || _ || (_ = new Int32Array([-256, 255, -256, 255, -256, 255, -256, 255])), + _) + for (u = 0; u < y; ) + for (l = 0, + d = 0; l < v; l++, + u++, + d += 2) + S[u] = (S[u] * _[d] >> 8) + _[d + 1]; + return S + }, + get f() { + return this.b ? !!this.b.a : 3 === this.p ? 0 !== this.N && (82 !== this.W[0].index || 71 !== this.W[1].index || 66 !== this.W[2].index) : 1 === this.N + }, + z: function(t) { + for (var e, r, n, i = 0, o = t.length; i < o; i += 3) + e = t[i], + r = t[i + 1], + n = t[i + 2], + t[i] = e - 179.456 + 1.402 * n, + t[i + 1] = e + 135.459 - .344 * r - .714 * n, + t[i + 2] = e - 226.816 + 1.772 * r; + return t + }, + O: function(t) { + for (var e, r, n, i, o = 0, a = 0, s = t.length; a < s; a += 4) + e = t[a], + r = t[a + 1], + n = t[a + 2], + i = t[a + 3], + t[o++] = r * (-660635669420364e-19 * r + .000437130475926232 * n - 54080610064599e-18 * e + .00048449797120281 * i - .154362151871126) - 122.67195406894 + n * (-.000957964378445773 * n + .000817076911346625 * e - .00477271405408747 * i + 1.53380253221734) + e * (.000961250184130688 * e - .00266257332283933 * i + .48357088451265) + i * (-.000336197177618394 * i + .484791561490776), + t[o++] = 107.268039397724 + r * (219927104525741e-19 * r - .000640992018297945 * n + .000659397001245577 * e + .000426105652938837 * i - .176491792462875) + n * (-.000778269941513683 * n + .00130872261408275 * e + .000770482631801132 * i - .151051492775562) + e * (.00126935368114843 * e - .00265090189010898 * i + .25802910206845) + i * (-.000318913117588328 * i - .213742400323665), + t[o++] = r * (-.000570115196973677 * r - 263409051004589e-19 * n + .0020741088115012 * e - .00288260236853442 * i + .814272968359295) - 20.810012546947 + n * (-153496057440975e-19 * n - .000132689043961446 * e + .000560833691242812 * i - .195152027534049) + e * (.00174418132927582 * e - .00255243321439347 * i + .116935020465145) + i * (-.000343531996510555 * i + .24165260232407); + return t.subarray(0, o) + }, + r: function(t) { + for (var e, r, n, i = 0, o = t.length; i < o; i += 4) + e = t[i], + r = t[i + 1], + n = t[i + 2], + t[i] = 434.456 - e - 1.402 * n, + t[i + 1] = 119.541 - e + .344 * r + .714 * n, + t[i + 2] = 481.816 - e - 1.772 * r; + return t + }, + U: function(t) { + for (var e, r, n, i, o = 0, a = 0, s = t.length; a < s; a += 4) + e = t[a], + r = t[a + 1], + n = t[a + 2], + i = t[a + 3], + t[o++] = 255 + e * (-6747147073602441e-20 * e + .0008379262121013727 * r + .0002894718188643294 * n + .003264231057537806 * i - 1.1185611867203937) + r * (26374107616089405e-21 * r - 8626949158638572e-20 * n - .0002748769067499491 * i - .02155688794978967) + n * (-3878099212869363e-20 * n - .0003267808279485286 * i + .0686742238595345) - i * (.0003361971776183937 * i + .7430659151342254), + t[o++] = 255 + e * (.00013596372813588848 * e + .000924537132573585 * r + .00010567359618683593 * n + .0004791864687436512 * i - .3109689587515875) + r * (-.00023545346108370344 * r + .0002702845253534714 * n + .0020200308977307156 * i - .7488052167015494) + n * (6834815998235662e-20 * n + .00015168452363460973 * i - .09751927774728933) - i * (.0003189131175883281 * i + .7364883807733168), + t[o++] = 255 + e * (13598650411385307e-21 * e + .00012423956175490851 * r + .0004751985097583589 * n - 36729317476630422e-22 * i - .05562186980264034) + r * (.00016141380598724676 * r + .0009692239130725186 * n + .0007782692450036253 * i - .44015232367526463) + n * (5.068882914068769e-7 * n + .0017778369011375071 * i - .7591454649749609) - i * (.0003435319965105553 * i + .7063770186160144); + return t.subarray(0, o) + }, + getData: function(t) { + var r = t.width + , n = t.height + , i = t.forceRGB + , o = t.isSourcePDF; + if (this.p > 4) + throw new e("Unsupported color mode"); + var a = this.Y(r, n, o); + if (1 === this.p && i) { + for (var s = a.length, c = new Uint8ClampedArray(3 * s), u = 0, l = 0; l < s; l++) { + var d = a[l]; + c[u++] = d, + c[u++] = d, + c[u++] = d + } + return c + } + if (3 === this.p && this.f) + return this.z(a); + if (4 === this.p) { + if (this.f) + return i ? this.O(a) : this.r(a); + if (i) + return this.U(a) + } + return a + } + }, + f + }(); + function i(t, e) { + return t[e] << 8 | t[e + 1] + } + t.JpegDecoder = n + } + )(), + t.encodeImage = function(e, r, n, i) { + var o = { + t256: [r], + t257: [n], + t258: [8, 8, 8, 8], + t259: [1], + t262: [2], + t273: [1e3], + t277: [4], + t278: [n], + t279: [r * n * 4], + t282: [[72, 1]], + t283: [[72, 1]], + t284: [1], + t286: [[0, 1]], + t287: [[0, 1]], + t296: [1], + t305: ["Photopea (UTIF.js)"], + t338: [1] + }; + if (i) + for (var a in i) + o[a] = i[a]; + var s = new Uint8Array(t.encode([o])) + , c = new Uint8Array(e) + , u = new Uint8Array(1e3 + r * n * 4); + for (a = 0; a < s.length; a++) + u[a] = s[a]; + for (a = 0; a < c.length; a++) + u[1e3 + a] = c[a]; + return u.buffer + } + , + t.encode = function(e) { + var r = !1 + , n = new Uint8Array(2e4) + , i = 4 + , o = r ? t._binLE : t._binBE; + n[0] = n[1] = r ? 73 : 77, + o.writeUshort(n, 2, 42); + var a = 8; + o.writeUint(n, i, a), + i += 4; + for (var s = 0; s < e.length; s++) { + var c = t._writeIFD(o, t._types.basic, n, a, e[s]); + a = c[1], + s < e.length - 1 && (0 != (3 & a) && (a += 4 - (3 & a)), + o.writeUint(n, c[0], a)) + } + return n.slice(0, a).buffer + } + , + t.decode = function(e, r) { + null == r && (r = { + parseMN: !0, + debug: !1 + }); + var n = new Uint8Array(e) + , o = 0 + , a = t._binBE.readASCII(n, o, 2); + o += 2; + var s = "II" == a ? t._binLE : t._binBE; + s.readUshort(n, o); + o += 2; + var c = s.readUint(n, o); + o += 4; + var u = []; + while (1) { + var l = s.readUshort(n, c) + , d = s.readUshort(n, c + 4); + if (0 != l && (d < 1 || 13 < d)) { + i("error in TIFF"); + break + } + if (t._readIFD(s, n, c, u, 0, r), + c = s.readUint(n, c + 2 + 12 * l), + 0 == c) + break + } + return u + } + , + t.decodeImage = function(e, r, n) { + if (!r.data) { + var o = new Uint8Array(e) + , a = t._binBE.readASCII(o, 0, 2); + if (null != r["t256"]) { + r.isLE = "II" == a, + r.width = r["t256"][0], + r.height = r["t257"][0]; + var s = r["t259"] ? r["t259"][0] : 1 + , c = r["t266"] ? r["t266"][0] : 1; + r["t284"] && 2 == r["t284"][0] && i("PlanarConfiguration 2 should not be used!"), + 7 == s && r["t258"] && r["t258"].length > 3 && (r["t258"] = r["t258"].slice(0, 3)); + var u = r["t277"] ? r["t277"][0] : 1 + , l = r["t258"] ? r["t258"][0] : 1 + , d = l * u; + 1 == s && null != r["t279"] && r["t278"] && 32803 == r["t262"][0] && (d = Math.round(8 * r["t279"][0] / (r.width * r["t278"][0]))), + r["t50885"] && 4 == r["t50885"][0] && (d = 3 * r["t258"][0]); + var f = 8 * Math.ceil(r.width * d / 8) + , h = r["t273"]; + (null == h || r["t322"]) && (h = r["t324"]); + var p = r["t279"]; + 1 == s && 1 == h.length && (p = [r.height * (f >>> 3)]), + (null == p || r["t322"]) && (p = r["t325"]); + var m = new Uint8Array(r.height * (f >>> 3)) + , b = 0; + if (null != r["t322"]) { + var g = r["t322"][0] + , v = r["t323"][0] + , y = Math.floor((r.width + g - 1) / g) + , S = Math.floor((r.height + v - 1) / v) + , w = new Uint8Array(0 | Math.ceil(g * v * d / 8)); + console.log("====", y, S); + for (var C = 0; C < S; C++) + for (var _ = 0; _ < y; _++) { + var A = C * y + _; + w.fill(0), + t.decode._decompress(r, n, o, h[A], p[A], s, w, 0, c, g, v), + 6 == s ? m = w : t._copyTile(w, 0 | Math.ceil(g * d / 8), v, m, 0 | Math.ceil(r.width * d / 8), r.height, 0 | Math.ceil(_ * g * d / 8), C * v) + } + b = 8 * m.length + } else { + if (null == h) + return; + var I = r["t278"] ? r["t278"][0] : r.height; + I = Math.min(I, r.height); + for (A = 0; A < h.length; A++) + t.decode._decompress(r, n, o, h[A], p[A], s, m, 0 | Math.ceil(b / 8), c, r.width, I), + b += f * I; + b = Math.min(b, 8 * m.length) + } + r.data = new Uint8Array(m.buffer,0,0 | Math.ceil(b / 8)) + } + } + } + , + t.decode._decompress = function(e, r, n, o, a, s, c, u, l, d, f) { + if (e["t271"] && "Panasonic" == e["t271"][0] && e["t45"] && 6 == e["t45"][0] && (s = 34316), + 1 == s) + for (var h = 0; h < a; h++) + c[u + h] = n[o + h]; + else if (2 == s) + t.decode._decodeG2(n, o, a, c, u, d, l); + else if (3 == s) + t.decode._decodeG3(n, o, a, c, u, d, l, !!e["t292"] && 1 == (1 & e["t292"][0])); + else if (4 == s) + t.decode._decodeG4(n, o, a, c, u, d, l); + else if (5 == s) + t.decode._decodeLZW(n, o, a, c, u, 8); + else if (6 == s) + t.decode._decodeOldJPEG(e, n, o, a, c, u); + else if (7 == s || 34892 == s) + t.decode._decodeNewJPEG(e, n, o, a, c, u); + else if (8 == s || 32946 == s) { + var p = new Uint8Array(n.buffer,o + 2,a - 6) + , m = t._inflateRaw(p); + u + m.length <= c.length && c.set(m, u) + } else + 9 == s ? t.decode._decodeVC5(n, o, a, c, u, e["t33422"]) : 32767 == s ? t.decode._decodeARW(e, n, o, a, c, u) : 32773 == s ? t.decode._decodePackBits(n, o, a, c, u) : 32809 == s ? t.decode._decodeThunder(n, o, a, c, u) : 34316 == s ? t.decode._decodePanasonic(e, n, o, a, c, u) : 34713 == s ? t.decode._decodeNikon(e, r, n, o, a, c, u) : 34676 == s ? t.decode._decodeLogLuv32(e, n, o, a, c, u) : i("Unknown compression", s); + var b = e["t258"] ? Math.min(32, e["t258"][0]) : 1 + , g = e["t277"] ? e["t277"][0] : 1 + , v = b * g >>> 3 + , y = Math.ceil(b * g * d / 8); + if (16 == b && !e.isLE && null == e["t33422"]) + for (var S = 0; S < f; S++) + for (var w = u + S * y, C = 1; C < y; C += 2) { + var _ = c[w + C]; + c[w + C] = c[w + C - 1], + c[w + C - 1] = _ + } + if (e["t317"] && 2 == e["t317"][0]) + for (S = 0; S < f; S++) { + var A = u + S * y; + if (16 == b) + for (h = v; h < y; h += 2) { + var I = (c[A + h + 1] << 8 | c[A + h]) + (c[A + h - v + 1] << 8 | c[A + h - v]); + c[A + h] = 255 & I, + c[A + h + 1] = I >>> 8 & 255 + } + else if (3 == g) + for (h = 3; h < y; h += 3) + c[A + h] = c[A + h] + c[A + h - 3] & 255, + c[A + h + 1] = c[A + h + 1] + c[A + h - 2] & 255, + c[A + h + 2] = c[A + h + 2] + c[A + h - 1] & 255; + else + for (h = v; h < y; h++) + c[A + h] = c[A + h] + c[A + h - v] & 255 + } + } + , + t.decode._decodePanasonic = function(t, e, r, n, i, o) { + var a, s, c, u, l, d, f, h, p = e.buffer, m = t["t2"][0], b = t["t3"][0], g = t["t10"][0], v = t["t45"][0], y = 0, S = 0, w = 0, C = 0, _ = 6 == v ? new Uint32Array(18) : new Uint8Array(16), A = [0, 0], I = [0, 0], E = 0, T = new Uint8Array(16384), x = new Uint16Array(i.buffer); + function P(t) { + if (0 == w) { + var e = new Uint8Array(p,r + S + 8184,8200) + , n = new Uint8Array(p,r + S,8184); + T.set(e), + T.set(n, e.length), + S += 16384 + } + if (5 != v) + return w = w - t & 131071, + C = w >> 3 ^ 16368, + (T[C] | T[C + 1] << 8) >> (7 & w) & ~(-1 << t); + for (a = 0; a < 16; a++) + _[a] = T[w++], + w &= 16383 + } + function k(t) { + return T[w + 15 - t] + } + function D() { + _[0] = k(0) << 6 | k(1) >> 2, + _[1] = 16383 & ((3 & k(1)) << 12 | k(2) << 4 | k(3) >> 4), + _[2] = k(3) >> 2 & 3, + _[3] = (3 & k(3)) << 8 | k(4), + _[4] = k(5) << 2 | k(6) >> 6, + _[5] = (63 & k(6)) << 4 | k(7) >> 4, + _[6] = k(7) >> 2 & 3, + _[7] = (3 & k(7)) << 8 | k(8), + _[8] = k(9) << 2 & 1020 | k(10) >> 6, + _[9] = 1023 & (k(10) << 4 | k(11) >> 4), + _[10] = k(11) >> 2 & 3, + _[11] = (3 & k(11)) << 8 | k(12), + _[12] = 1023 & (k(13) << 2 & 1020 | k(14) >> 6), + _[13] = 1023 & (k(14) << 4 | k(15) >> 4), + w += 16, + C = 0 + } + function O() { + _[0] = k(0) << 4 | k(1) >> 4, + _[1] = 4095 & ((15 & k(1)) << 8 | k(2)), + _[2] = k(3) >> 6 & 3, + _[3] = (63 & k(3)) << 2 | k(4) >> 6, + _[4] = (63 & k(4)) << 2 | k(5) >> 6, + _[5] = (63 & k(5)) << 2 | k(6) >> 6, + _[6] = k(6) >> 4 & 3, + _[7] = (15 & k(6)) << 4 | k(7) >> 4, + _[8] = (15 & k(7)) << 4 | k(8) >> 4, + _[9] = (15 & k(8)) << 4 | k(9) >> 4, + _[10] = k(9) >> 2 & 3, + _[11] = (3 & k(9)) << 6 | k(10) >> 2, + _[12] = (3 & k(10)) << 6 | k(11) >> 2, + _[13] = (3 & k(11)) << 6 | k(12) >> 2, + _[14] = 3 & k(12), + _[15] = k(13), + _[16] = k(14), + _[17] = k(15), + w += 16, + C = 0 + } + function R() { + A[0] = 0, + A[1] = 0, + I[0] = 0, + I[1] = 0 + } + if (7 == v) + throw v; + if (6 == v) { + var M = 12 == g + , N = M ? O : D + , B = M ? 14 : 11 + , F = M ? 128 : 512 + , j = M ? 2048 : 8192 + , U = M ? 16383 : 65535 + , L = M ? 4095 : 16383 + , K = m / B + , X = 16 * K + , z = M ? 18 : 14; + for (d = 0; d < b - 15; d += 16) { + var G = Math.min(16, b - d) + , W = X * G; + for (T = new Uint8Array(p,r + y,W), + w = 0, + y += W, + h = 0, + f = 0; h < G; h++, + f = 0) { + E = (d + h) * m; + for (var q = 0; q < K; q++) + for (N(), + R(), + c = 0, + l = 0, + a = 0; a < B; a++) { + if (u = 1 & a, + a % 3 == 2) { + var H = C < z ? _[C++] : 0; + 3 == H && (H = 4), + l = F << H, + c = 1 << H + } + var V = C < z ? _[C++] : 0; + A[u] ? (V *= c, + l < j && I[u] > l && (V += I[u] - l), + I[u] = V) : (A[u] = V, + V ? I[u] = V : V = I[u]), + x[E + f++] = V - 15 <= U ? V - 15 & U : V + 2147483633 >> 31 & L + } + } + } + } else if (5 == v) { + var Z = 12 == g ? 10 : 9; + for (d = 0; d < b; d++) + for (f = 0; f < m; f += Z) + P(0), + 12 == g ? (x[E++] = ((15 & _[1]) << 8) + _[0], + x[E++] = 16 * _[2] + (_[1] >> 4), + x[E++] = ((15 & _[4]) << 8) + _[3], + x[E++] = 16 * _[5] + (_[4] >> 4), + x[E++] = ((15 & _[7]) << 8) + _[6], + x[E++] = 16 * _[8] + (_[7] >> 4), + x[E++] = ((15 & _[10]) << 8) + _[9], + x[E++] = 16 * _[11] + (_[10] >> 4), + x[E++] = ((15 & _[13]) << 8) + _[12], + x[E++] = 16 * _[14] + (_[13] >> 4)) : 14 == g && (x[E++] = _[0] + ((63 & _[1]) << 8), + x[E++] = (_[1] >> 6) + 4 * _[2] + ((15 & _[3]) << 10), + x[E++] = (_[3] >> 4) + 16 * _[4] + ((3 & _[5]) << 12), + x[E++] = ((252 & _[5]) >> 2) + (_[6] << 6), + x[E++] = _[7] + ((63 & _[8]) << 8), + x[E++] = (_[8] >> 6) + 4 * _[9] + ((15 & _[10]) << 10), + x[E++] = (_[10] >> 4) + 16 * _[11] + ((3 & _[12]) << 12), + x[E++] = ((252 & _[12]) >> 2) + (_[13] << 6), + x[E++] = _[14] + ((63 & _[15]) << 8)) + } else { + if (4 != v) + throw v; + for (d = 0; d < b; d++) + for (f = 0; f < m; f++) + a = f % 14, + u = 1 & a, + 0 == a && R(), + a % 3 == 2 && (c = 4 >> 3 - P(2)), + I[u] ? (s = P(8), + 0 != s && (A[u] -= 128 << c, + (A[u] < 0 || 4 == c) && (A[u] &= ~(-1 << c)), + A[u] += s << c)) : (I[u] = P(8), + (I[u] || a > 11) && (A[u] = I[u] << 4 | P(4))), + x[E++] = A[1 & f] + } + } + , + t.decode._decodeVC5 = function() { + var e, r, n, i = [1, 0, 1, 0, 2, 2, 1, 1, 3, 7, 1, 2, 5, 25, 1, 3, 6, 48, 1, 4, 6, 54, 1, 5, 7, 111, 1, 8, 7, 99, 1, 6, 7, 105, 12, 0, 7, 107, 1, 7, 8, 209, 20, 0, 8, 212, 1, 9, 8, 220, 1, 10, 9, 393, 1, 11, 9, 394, 32, 0, 9, 416, 1, 12, 9, 427, 1, 13, 10, 887, 1, 18, 10, 784, 1, 14, 10, 790, 1, 15, 10, 835, 60, 0, 10, 852, 1, 16, 10, 885, 1, 17, 11, 1571, 1, 19, 11, 1668, 1, 20, 11, 1669, 100, 0, 11, 1707, 1, 21, 11, 1772, 1, 22, 12, 3547, 1, 29, 12, 3164, 1, 24, 12, 3166, 1, 25, 12, 3140, 1, 23, 12, 3413, 1, 26, 12, 3537, 1, 27, 12, 3539, 1, 28, 13, 7093, 1, 35, 13, 6283, 1, 30, 13, 6331, 1, 31, 13, 6335, 180, 0, 13, 6824, 1, 32, 13, 7072, 1, 33, 13, 7077, 320, 0, 13, 7076, 1, 34, 14, 12565, 1, 36, 14, 12661, 1, 37, 14, 12669, 1, 38, 14, 13651, 1, 39, 14, 14184, 1, 40, 15, 28295, 1, 46, 15, 28371, 1, 47, 15, 25320, 1, 42, 15, 25336, 1, 43, 15, 25128, 1, 41, 15, 27300, 1, 44, 15, 28293, 1, 45, 16, 50259, 1, 48, 16, 50643, 1, 49, 16, 50675, 1, 50, 16, 56740, 1, 53, 16, 56584, 1, 51, 16, 56588, 1, 52, 17, 113483, 1, 61, 17, 113482, 1, 60, 17, 101285, 1, 55, 17, 101349, 1, 56, 17, 109205, 1, 57, 17, 109207, 1, 58, 17, 100516, 1, 54, 17, 113171, 1, 59, 18, 202568, 1, 62, 18, 202696, 1, 63, 18, 218408, 1, 64, 18, 218412, 1, 65, 18, 226340, 1, 66, 18, 226356, 1, 67, 18, 226358, 1, 68, 19, 402068, 1, 69, 19, 405138, 1, 70, 19, 405394, 1, 71, 19, 436818, 1, 72, 19, 436826, 1, 73, 19, 452714, 1, 75, 19, 452718, 1, 76, 19, 452682, 1, 74, 20, 804138, 1, 77, 20, 810279, 1, 78, 20, 810790, 1, 79, 20, 873638, 1, 80, 20, 873654, 1, 81, 20, 905366, 1, 82, 20, 905430, 1, 83, 20, 905438, 1, 84, 21, 1608278, 1, 85, 21, 1620557, 1, 86, 21, 1621582, 1, 87, 21, 1621583, 1, 88, 21, 1747310, 1, 89, 21, 1810734, 1, 90, 21, 1810735, 1, 91, 21, 1810863, 1, 92, 21, 1810879, 1, 93, 22, 3621725, 1, 99, 22, 3621757, 1, 100, 22, 3241112, 1, 94, 22, 3494556, 1, 95, 22, 3494557, 1, 96, 22, 3494622, 1, 97, 22, 3494623, 1, 98, 23, 6482227, 1, 102, 23, 6433117, 1, 101, 23, 6989117, 1, 103, 23, 6989119, 1, 105, 23, 6989118, 1, 104, 23, 7243449, 1, 106, 23, 7243512, 1, 107, 24, 13978233, 1, 111, 24, 12964453, 1, 109, 24, 12866232, 1, 108, 24, 14486897, 1, 113, 24, 13978232, 1, 110, 24, 14486896, 1, 112, 24, 14487026, 1, 114, 24, 14487027, 1, 115, 25, 25732598, 1, 225, 25, 25732597, 1, 189, 25, 25732596, 1, 188, 25, 25732595, 1, 203, 25, 25732594, 1, 202, 25, 25732593, 1, 197, 25, 25732592, 1, 207, 25, 25732591, 1, 169, 25, 25732590, 1, 223, 25, 25732589, 1, 159, 25, 25732522, 1, 235, 25, 25732579, 1, 152, 25, 25732575, 1, 192, 25, 25732489, 1, 179, 25, 25732573, 1, 201, 25, 25732472, 1, 172, 25, 25732576, 1, 149, 25, 25732488, 1, 178, 25, 25732566, 1, 120, 25, 25732571, 1, 219, 25, 25732577, 1, 150, 25, 25732487, 1, 127, 25, 25732506, 1, 211, 25, 25732548, 1, 125, 25, 25732588, 1, 158, 25, 25732486, 1, 247, 25, 25732467, 1, 238, 25, 25732508, 1, 163, 25, 25732552, 1, 228, 25, 25732603, 1, 183, 25, 25732513, 1, 217, 25, 25732587, 1, 168, 25, 25732520, 1, 122, 25, 25732484, 1, 128, 25, 25732562, 1, 249, 25, 25732505, 1, 187, 25, 25732504, 1, 186, 25, 25732483, 1, 136, 25, 25928905, 1, 181, 25, 25732560, 1, 255, 25, 25732500, 1, 230, 25, 25732482, 1, 135, 25, 25732555, 1, 233, 25, 25732568, 1, 222, 25, 25732583, 1, 145, 25, 25732481, 1, 134, 25, 25732586, 1, 167, 25, 25732521, 1, 248, 25, 25732518, 1, 209, 25, 25732480, 1, 243, 25, 25732512, 1, 216, 25, 25732509, 1, 164, 25, 25732547, 1, 140, 25, 25732479, 1, 157, 25, 25732544, 1, 239, 25, 25732574, 1, 191, 25, 25732564, 1, 251, 25, 25732478, 1, 156, 25, 25732546, 1, 139, 25, 25732498, 1, 242, 25, 25732557, 1, 133, 25, 25732477, 1, 162, 25, 25732515, 1, 213, 25, 25732584, 1, 165, 25, 25732514, 1, 212, 25, 25732476, 1, 227, 25, 25732494, 1, 198, 25, 25732531, 1, 236, 25, 25732530, 1, 234, 25, 25732529, 1, 117, 25, 25732528, 1, 215, 25, 25732527, 1, 124, 25, 25732526, 1, 123, 25, 25732525, 1, 254, 25, 25732524, 1, 253, 25, 25732523, 1, 148, 25, 25732570, 1, 218, 25, 25732580, 1, 146, 25, 25732581, 1, 147, 25, 25732569, 1, 224, 25, 25732533, 1, 143, 25, 25732540, 1, 184, 25, 25732541, 1, 185, 25, 25732585, 1, 166, 25, 25732556, 1, 132, 25, 25732485, 1, 129, 25, 25732563, 1, 250, 25, 25732578, 1, 151, 25, 25732501, 1, 119, 25, 25732502, 1, 193, 25, 25732536, 1, 176, 25, 25732496, 1, 245, 25, 25732553, 1, 229, 25, 25732516, 1, 206, 25, 25732582, 1, 144, 25, 25732517, 1, 208, 25, 25732558, 1, 137, 25, 25732543, 1, 241, 25, 25732466, 1, 237, 25, 25732507, 1, 190, 25, 25732542, 1, 240, 25, 25732551, 1, 131, 25, 25732554, 1, 232, 25, 25732565, 1, 252, 25, 25732475, 1, 171, 25, 25732493, 1, 205, 25, 25732492, 1, 204, 25, 25732491, 1, 118, 25, 25732490, 1, 214, 25, 25928904, 1, 180, 25, 25732549, 1, 126, 25, 25732602, 1, 182, 25, 25732539, 1, 175, 25, 25732545, 1, 141, 25, 25732559, 1, 138, 25, 25732537, 1, 177, 25, 25732534, 1, 153, 25, 25732503, 1, 194, 25, 25732606, 1, 160, 25, 25732567, 1, 121, 25, 25732538, 1, 174, 25, 25732497, 1, 246, 25, 25732550, 1, 130, 25, 25732572, 1, 200, 25, 25732474, 1, 170, 25, 25732511, 1, 221, 25, 25732601, 1, 196, 25, 25732532, 1, 142, 25, 25732519, 1, 210, 25, 25732495, 1, 199, 25, 25732605, 1, 155, 25, 25732535, 1, 154, 25, 25732499, 1, 244, 25, 25732510, 1, 220, 25, 25732600, 1, 195, 25, 25732607, 1, 161, 25, 25732604, 1, 231, 25, 25732473, 1, 173, 25, 25732599, 1, 226, 26, 51465122, 1, 116, 26, 51465123, 0, 1], o = [3, 3, 3, 3, 2, 2, 2, 1, 1, 1], a = 24576, s = 16384, c = 8192, u = s | c; + function l(t) { + var e = t[1] + , r = t[0][e >>> 3] >>> 7 - (7 & e) & 1; + return t[1]++, + r + } + function d(t, r) { + if (null == e) { + e = {}; + for (var n = 0; n < i.length; n += 4) + e[i[n + 1]] = i.slice(n, n + 4) + } + var o = l(t) + , a = e[o]; + while (null == a) + o = o << 1 | l(t), + a = e[o]; + var s = a[3]; + 0 != s && (s = 0 == l(t) ? s : -s), + r[0] = a[2], + r[1] = s + } + function f(t, e) { + for (var r = 0; r < e; r++) + 1 == (1 & t) && t++, + t >>>= 1; + return t + } + function h(t, e) { + return t >> e + } + function p(t, e, r, n, i, o) { + e[r] = h(h(11 * t[i] - 4 * t[i + o] + t[i + o + o] + 4, 3) + t[n], 1), + e[r + o] = h(h(5 * t[i] + 4 * t[i + o] - t[i + o + o] + 4, 3) - t[n], 1) + } + function m(t, e, r, n, i, o) { + var a = t[i - o] - t[i + o] + , s = t[i] + , c = t[n]; + e[r] = h(h(a + 4, 3) + s + c, 1), + e[r + o] = h(h(4 - a, 3) + s - c, 1) + } + function b(t, e, r, n, i, o) { + e[r] = h(h(5 * t[i] + 4 * t[i - o] - t[i - o - o] + 4, 3) + t[n], 1), + e[r + o] = h(h(11 * t[i] - 4 * t[i - o] + t[i - o - o] + 4, 3) - t[n], 1) + } + function g(t) { + return t = t < 0 ? 0 : t > 4095 ? 4095 : t, + t = n[t] >>> 2, + t + } + function v(e, i, s, l, h, v) { + l = new Uint16Array(l.buffer); + var y, S, w, C, _, A, I, E, T = Date.now(), x = t._binBE, P = i + s; + i += 4; + var k = 1 == v[0]; + while (i < P) { + var D = x.readShort(e, i) + , O = x.readUshort(e, i + 2); + if (i += 4, + 12 == D) + U = O; + else if (20 == D) + y = O; + else if (21 == D) + S = O; + else if (48 == D) + w = O; + else if (53 == D) + C = O; + else if (35 == D) + O; + else if (62 == D) + _ = O; + else if (101 == D) + O; + else if (109 == D) + A = O; + else if (84 == D) + O; + else if (106 == D) + O; + else if (107 == D) + O; + else if (108 == D) + O; + else if (102 == D) + O; + else if (104 == D) + at = O; + else if (105 == D) + O; + else { + var R = D < 0 ? -D : D + , M = 65280 & R + , N = 0; + if (R & u && (R & c ? (N = 65535 & O, + N += (255 & R) << 16) : N = 65535 & O), + (R & a) == a) { + if (null == I) { + I = []; + for (var B = 0; B < 4; B++) + I[B] = new Int16Array((y >>> 1) * (S >>> 1)); + E = new Int16Array((y >>> 1) * (S >>> 1)), + r = new Int16Array(1024); + for (B = 0; B < 1024; B++) { + var F = B - 512 + , j = Math.abs(F) + , U = Math.floor(768 * j * j * j / 16581375) + j; + r[B] = Math.sign(F) * U + } + n = new Uint16Array(4096); + var L = 65535; + for (B = 0; B < 4096; B++) { + var K = B + , X = L * (Math.pow(113, K / 4095) - 1) / 112; + n[B] = Math.min(X, L) + } + } + var z = I[_] + , G = f(y, 1 + o[w]) + , W = f(S, 1 + o[w]); + if (0 == w) + for (var q = 0; q < W; q++) + for (var H = 0; H < G; H++) { + var V = i + 2 * (q * G + H); + z[q * (y >>> 1) + H] = e[V] << 8 | e[V + 1] + } + else { + var Z = [e, 8 * i] + , Q = [] + , Y = 0 + , J = G * W + , $ = [0, 0] + , tt = 0; + O = 0; + while (Y < J) { + d(Z, $), + tt = $[0], + O = $[1]; + while (tt > 0) + Q[Y++] = O, + tt-- + } + var et = (w - 1) % 3 + , rt = 1 != et ? G : 0 + , nt = 0 != et ? W : 0; + for (q = 0; q < W; q++) { + var it = (q + nt) * (y >>> 1) + rt + , ot = q * G; + for (H = 0; H < G; H++) + z[it + H] = r[Q[ot + H] + 512] * C + } + if (2 == et) { + var at = y >>> 1 + , st = 2 * G + , ct = 2 * W; + for (q = 0; q < W; q++) + for (H = 0; H < st; H++) { + B = 2 * q * at + H; + var ut = q * at + H + , lt = W * at + ut; + 0 == q ? p(z, E, B, lt, ut, at) : q == W - 1 ? b(z, E, B, lt, ut, at) : m(z, E, B, lt, ut, at) + } + var dt = z; + z = E, + E = dt; + for (q = 0; q < ct; q++) + for (H = 0; H < G; H++) { + B = q * at + 2 * H, + ut = q * at + H, + lt = G + ut; + 0 == H ? p(z, E, B, lt, ut, 1) : H == G - 1 ? b(z, E, B, lt, ut, 1) : m(z, E, B, lt, ut, 1) + } + dt = z; + z = E, + E = dt; + for (var ft = [], ht = 2 - ~~((w - 1) / 3), pt = 0; pt < 3; pt++) + ft[pt] = A >> 14 - 2 * pt & 3; + var mt = ft[ht]; + if (0 != mt) + for (q = 0; q < ct; q++) + for (H = 0; H < st; H++) { + B = q * at + H; + z[B] = z[B] << mt + } + } + } + if (9 == w && 3 == _) { + var bt = I[0] + , gt = I[1] + , vt = I[2] + , yt = I[3]; + for (q = 0; q < S; q += 2) + for (H = 0; H < y; H += 2) { + var St = q * y + H + , wt = (V = (q >>> 1) * (y >>> 1) + (H >>> 1), + bt[V]) + , Ct = gt[V] - 2048 + , _t = vt[V] - 2048 + , At = yt[V] - 2048 + , It = (Ct << 1) + wt + , Et = (_t << 1) + wt + , Tt = wt + At + , xt = wt - At; + k ? (l[St] = g(Tt), + l[St + 1] = g(Et), + l[St + y] = g(It), + l[St + y + 1] = g(xt)) : (l[St] = g(It), + l[St + 1] = g(Tt), + l[St + y] = g(xt), + l[St + y + 1] = g(Et)) + } + } + i += 4 * N + } else if (16388 == R) + i += 4 * N; + else if (8192 != M && 8448 != M && 9216 != M) + throw R.toString(16) + } + } + console.log(Date.now() - T) + } + return v + }(), + t.decode._decodeLogLuv32 = function(t, e, r, n, i, o) { + var a = t.width + , s = 4 * a + , c = 0 + , u = new Uint8Array(s); + while (c < n) { + var l = 0; + while (l < s) { + var d = e[r + c]; + if (c++, + d < 128) { + for (var f = 0; f < d; f++) + u[l + f] = e[r + c + f]; + l += d, + c += d + } else { + d -= 126; + for (f = 0; f < d; f++) + u[l + f] = e[r + c]; + l += d, + c++ + } + } + for (var h = 0; h < a; h++) + i[o + 0] = u[h], + i[o + 1] = u[h + a], + i[o + 2] = u[h + 2 * a], + i[o + 4] = u[h + 3 * a], + o += 6 + } + } + , + t.decode._ljpeg_diff = function(e, r, n) { + var i, o, a = t.decode._getbithuff; + return i = a(e, r, n[0], n), + o = a(e, r, i, 0), + 0 == (o & 1 << i - 1) && (o -= (1 << i) - 1), + o + } + , + t.decode._decodeARW = function(e, r, n, i, o, a) { + var s = e["t256"][0] + , c = e["t257"][0] + , u = e["t258"][0] + , l = e.isLE ? t._binLE : t._binBE + , d = s * c == i || s * c * 1.5 == i; + if (d) + if (s * c * 1.5 != i) { + var f, h, p, m, b, g, v, y, S = new Uint16Array(16), w = new Uint8Array(s + 1); + for (P = 0; P < c; P++) { + for (var C = 0; C < s; C++) + w[C] = r[n++]; + for (y = 0, + x = 0; x < s - 30; y += 16) { + for (h = 2047 & (f = l.readUint(w, y)), + p = 2047 & f >>> 11, + m = 15 & f >>> 22, + b = 15 & f >>> 26, + g = 0; g < 4 && 128 << g <= h - p; g++) + ; + for (v = 30, + _ = 0; _ < 16; _++) + _ == m ? S[_] = h : _ == b ? S[_] = p : (S[_] = ((l.readUshort(w, y + (v >> 3)) >>> (7 & v) & 127) << g) + p, + S[_] > 2047 && (S[_] = 2047), + v += 7); + for (_ = 0; _ < 16; _++, + x += 2) { + F = S[_] << 1; + t.decode._putsF(o, (P * s + x) * u, F << 16 - u) + } + x -= 1 & x ? 1 : 31 + } + } + } else + for (var _ = 0; _ < i; _ += 3) { + var A = r[n + _ + 0] + , I = r[n + _ + 1] + , E = r[n + _ + 2]; + o[a + _] = I << 4 | A >>> 4, + o[a + _ + 1] = A << 4 | E >>> 4, + o[a + _ + 2] = E << 4 | I >>> 4 + } + else { + c += 8; + var T, x, P, k = [n, 0, 0, 0], D = new Uint16Array(32770), O = [3857, 3856, 3599, 3342, 3085, 2828, 2571, 2314, 2057, 1800, 1543, 1286, 1029, 772, 771, 768, 514, 513], R = 0, M = t.decode._ljpeg_diff; + for (D[0] = 15, + T = _ = 0; _ < 18; _++) + for (var N = 32768 >>> (O[_] >>> 8), B = 0; B < N; B++) + D[++T] = O[_]; + for (x = s; x--; ) + for (P = 0; P < c + 1; P += 2) + if (P == c && (P = 1), + R += M(r, k, D), + P < c) { + var F = 4095 & R; + t.decode._putsF(o, (P * s + x) * u, F << 16 - u) + } + } + } + , + t.decode._decodeNikon = function(e, r, n, i, o, a, s) { + var c = [[0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 5, 4, 3, 6, 2, 7, 1, 0, 8, 9, 11, 10, 12], [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 57, 90, 56, 39, 22, 5, 4, 3, 2, 1, 0, 11, 12, 12], [0, 0, 1, 4, 2, 3, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 4, 6, 3, 7, 2, 8, 1, 9, 0, 10, 11, 12], [0, 0, 1, 4, 3, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 5, 6, 4, 7, 8, 3, 9, 2, 1, 0, 10, 11, 12, 13, 14], [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 8, 92, 75, 58, 41, 7, 6, 5, 4, 3, 2, 1, 0, 13, 14], [0, 0, 1, 4, 2, 2, 3, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 7, 6, 8, 5, 9, 4, 10, 3, 11, 12, 2, 0, 1, 13, 14]] + , u = e["t256"][0] + , l = e["t257"][0] + , d = e["t258"][0] + , f = 0 + , h = 0 + , p = t.decode._make_decoder + , m = t.decode._getbithuff + , b = r[0].exifIFD.makerNote + , g = b["t150"] ? b["t150"] : b["t140"] + , v = 0 + , y = g[v++] + , S = g[v++]; + 73 != y && 88 != S || (v += 2110), + 70 == y && (f = 2), + 14 == d && (f += 3); + for (var w = [[0, 0], [0, 0]], C = e.isLE ? t._binLE : t._binBE, _ = 0; _ < 2; _++) + for (var A = 0; A < 2; A++) + w[_][A] = C.readShort(g, v), + v += 2; + var I, E, T, x, P, k = 1 << d & 32767, D = 0, O = C.readShort(g, v); + v += 2, + O > 1 && (D = Math.floor(k / (O - 1))), + 68 == y && 32 == S && D > 0 && (h = C.readShort(g, 562)); + var R = [0, 0] + , M = p(c[f]) + , N = [i, 0, 0, 0]; + for (I = 0; I < l; I++) + for (h && I == h && (M = p(c[f + 1])), + E = 0; E < u; E++) { + _ = m(n, N, M[0], M), + T = 15 & _, + x = _ >>> 4, + P = 1 + (m(n, N, T - x, 0) << 1) << x >>> 1, + 0 == (P & 1 << T - 1) && (P -= (1 << T) - (0 == x ? 1 : 0)), + E < 2 ? R[E] = w[1 & I][E] += P : R[1 & E] += P; + var B = Math.min(Math.max(R[1 & E], 0), (1 << d) - 1) + , F = (I * u + E) * d; + t.decode._putsF(a, F, B << 16 - d) + } + } + , + t.decode._putsF = function(t, e, r) { + r <<= 8 - (7 & e); + var n = e >>> 3; + t[n] |= r >>> 16, + t[n + 1] |= r >>> 8, + t[n + 2] |= r + } + , + t.decode._getbithuff = function(e, r, n, i) { + var o, a = 0, s = (t.decode._get_byte, + r[0]), c = r[1], u = r[2], l = r[3]; + if (0 == n || u < 0) + return 0; + while (!l && u < n && -1 != (o = e[s++]) && !(l = a && 255 == o && e[s++])) + c = (c << 8) + o, + u += 8; + if (o = c << 32 - u >>> 32 - n, + i ? (u -= i[o + 1] >>> 8, + o = 255 & i[o + 1]) : u -= n, + u < 0) + throw "e"; + return r[0] = s, + r[1] = c, + r[2] = u, + r[3] = l, + o + } + , + t.decode._make_decoder = function(t) { + var e, r, n, i, o, a = []; + for (e = 16; 0 != e && !t[e]; e--) + ; + var s = 17; + for (a[0] = e, + n = r = 1; r <= e; r++) + for (i = 0; i < t[r]; i++, + ++s) + for (o = 0; o < 1 << e - r; o++) + n <= 1 << e && (a[n++] = r << 8 | t[s]); + return a + } + , + t.decode._decodeNewJPEG = function(e, r, n, i, o, a) { + i = Math.min(i, r.length - n); + var s = e["t347"] + , c = s ? s.length : 0 + , u = new Uint8Array(c + i); + if (s) { + for (var l = 216, d = 217, f = 0, h = 0; h < c - 1; h++) { + if (255 == s[h] && s[h + 1] == d) + break; + u[f++] = s[h] + } + var p = r[n] + , m = r[n + 1]; + 255 == p && m == l || (u[f++] = p, + u[f++] = m); + for (h = 2; h < i; h++) + u[f++] = r[n + h] + } else + for (h = 0; h < i; h++) + u[h] = r[n + h]; + if (32803 == e["t262"][0] || 7 == e["t259"][0] && 34892 == e["t262"][0]) { + var b = e["t258"][0] + , g = t.LosslessJpegDecode(u) + , v = g.length; + if (16 == b) + if (e.isLE) + for (h = 0; h < v; h++) + o[a + (h << 1)] = 255 & g[h], + o[a + (h << 1) + 1] = g[h] >>> 8; + else + for (h = 0; h < v; h++) + o[a + (h << 1)] = g[h] >>> 8, + o[a + (h << 1) + 1] = 255 & g[h]; + else if (14 == b || 12 == b || 10 == b) { + var y = 16 - b; + for (h = 0; h < v; h++) + t.decode._putsF(o, h * b, g[h] << y) + } else { + if (8 != b) + throw new Error("unsupported bit depth " + b); + for (h = 0; h < v; h++) + o[a + h] = g[h] + } + } else { + var S = new t.JpegDecoder; + S.parse(u); + var w = S.getData({ + width: S.width, + height: S.height, + forceRGB: !0, + isSourcePDF: !1 + }); + for (h = 0; h < w.length; h++) + o[a + h] = w[h] + } + 6 == e["t262"][0] && (e["t262"][0] = 2) + } + , + t.decode._decodeOldJPEGInit = function(t, e, r, n) { + var o, a, s, c, u, l = 216, d = 219, f = 196, h = 221, p = 192, m = 218, b = 0, g = 0, v = !1, y = t["t513"], S = y ? y[0] : 0, w = t["t514"], C = w ? w[0] : 0, _ = t["t324"] || t["t273"] || y, A = t["t530"], I = 0, E = 0, T = t["t277"] ? t["t277"][0] : 1, x = t["t515"]; + if (_ && (g = _[0], + v = _.length > 1), + !v) { + if (255 == e[r] && e[r + 1] == l) + return { + jpegOffset: r + }; + if (null != y && (255 == e[r + S] && e[r + S + 1] == l ? b = r + S : i("JPEGInterchangeFormat does not point to SOI"), + null == w ? i("JPEGInterchangeFormatLength field is missing") : (S >= g || S + C <= g) && i("JPEGInterchangeFormatLength field value is invalid"), + null != b)) + return { + jpegOffset: b + } + } + if (null != A && (I = A[0], + E = A[1]), + null != y && null != w) + if (C >= 2 && S + C <= g) { + for (o = 255 == e[r + S + C - 2] && e[r + S + C - 1] == l ? new Uint8Array(C - 2) : new Uint8Array(C), + s = 0; s < o.length; s++) + o[s] = e[r + S + s]; + i("Incorrect JPEG interchange format: using JPEGInterchangeFormat offset to derive tables") + } else + i("JPEGInterchangeFormat+JPEGInterchangeFormatLength > offset to first strip or tile"); + if (null == o) { + var P = 0 + , k = []; + k[P++] = 255, + k[P++] = l; + var D = t["t519"]; + if (null == D) + throw new Error("JPEGQTables tag is missing"); + for (s = 0; s < D.length; s++) + for (k[P++] = 255, + k[P++] = d, + k[P++] = 0, + k[P++] = 67, + k[P++] = s, + c = 0; c < 64; c++) + k[P++] = e[r + D[s] + c]; + for (u = 0; u < 2; u++) { + var O = t[0 == u ? "t520" : "t521"]; + if (null == O) + throw new Error((0 == u ? "JPEGDCTables" : "JPEGACTables") + " tag is missing"); + for (s = 0; s < O.length; s++) { + k[P++] = 255, + k[P++] = f; + var R = 19; + for (c = 0; c < 16; c++) + R += e[r + O[s] + c]; + for (k[P++] = R >>> 8, + k[P++] = 255 & R, + k[P++] = s | u << 4, + c = 0; c < 16; c++) + k[P++] = e[r + O[s] + c]; + for (c = 0; c < R; c++) + k[P++] = e[r + O[s] + 16 + c] + } + } + if (k[P++] = 255, + k[P++] = p, + k[P++] = 0, + k[P++] = 8 + 3 * T, + k[P++] = 8, + k[P++] = t.height >>> 8 & 255, + k[P++] = 255 & t.height, + k[P++] = t.width >>> 8 & 255, + k[P++] = 255 & t.width, + k[P++] = T, + 1 == T) + k[P++] = 1, + k[P++] = 17, + k[P++] = 0; + else + for (s = 0; s < 3; s++) + k[P++] = s + 1, + k[P++] = 0 != s ? 17 : (15 & I) << 4 | 15 & E, + k[P++] = s; + null != x && 0 != x[0] && (k[P++] = 255, + k[P++] = h, + k[P++] = 0, + k[P++] = 4, + k[P++] = x[0] >>> 8 & 255, + k[P++] = 255 & x[0]), + o = new Uint8Array(k) + } + var M = -1; + s = 0; + while (s < o.length - 1) { + if (255 == o[s] && o[s + 1] == p) { + M = s; + break + } + s++ + } + if (-1 == M) { + var N = new Uint8Array(o.length + 10 + 3 * T); + N.set(o); + var B = o.length; + if (M = o.length, + o = N, + o[B++] = 255, + o[B++] = p, + o[B++] = 0, + o[B++] = 8 + 3 * T, + o[B++] = 8, + o[B++] = t.height >>> 8 & 255, + o[B++] = 255 & t.height, + o[B++] = t.width >>> 8 & 255, + o[B++] = 255 & t.width, + o[B++] = T, + 1 == T) + o[B++] = 1, + o[B++] = 17, + o[B++] = 0; + else + for (s = 0; s < 3; s++) + o[B++] = s + 1, + o[B++] = 0 != s ? 17 : (15 & I) << 4 | 15 & E, + o[B++] = s + } + if (255 == e[g] && e[g + 1] == m) { + var F = e[g + 2] << 8 | e[g + 3]; + for (a = new Uint8Array(F + 2), + a[0] = e[g], + a[1] = e[g + 1], + a[2] = e[g + 2], + a[3] = e[g + 3], + s = 0; s < F - 2; s++) + a[s + 4] = e[g + s + 4] + } else { + a = new Uint8Array(8 + 2 * T); + var j = 0; + if (a[j++] = 255, + a[j++] = m, + a[j++] = 0, + a[j++] = 6 + 2 * T, + a[j++] = T, + 1 == T) + a[j++] = 1, + a[j++] = 0; + else + for (s = 0; s < 3; s++) + a[j++] = s + 1, + a[j++] = s << 4 | s; + a[j++] = 0, + a[j++] = 63, + a[j++] = 0 + } + return { + jpegOffset: r, + tables: o, + sosMarker: a, + sofPosition: M + } + } + , + t.decode._decodeOldJPEG = function(e, r, n, i, o, a) { + var s, c, u, l, d = t.decode._decodeOldJPEGInit(e, r, n, i); + if (null != d.jpegOffset) + for (s = n + i - d.jpegOffset, + u = new Uint8Array(s), + p = 0; p < s; p++) + u[p] = r[d.jpegOffset + p]; + else { + for (c = d.tables.length, + u = new Uint8Array(c + d.sosMarker.length + i + 2), + u.set(d.tables), + l = c, + u[d.sofPosition + 5] = e.height >>> 8 & 255, + u[d.sofPosition + 6] = 255 & e.height, + u[d.sofPosition + 7] = e.width >>> 8 & 255, + u[d.sofPosition + 8] = 255 & e.width, + 255 == r[n] && r[n + 1] == SOS || (u.set(d.sosMarker, l), + l += sosMarker.length), + p = 0; p < i; p++) + u[l++] = r[n + p]; + u[l++] = 255, + u[l++] = EOI + } + var f = new t.JpegDecoder; + f.parse(u); + for (var h = f.getData({ + width: f.width, + height: f.height, + forceRGB: !0, + isSourcePDF: !1 + }), p = 0; p < h.length; p++) + o[a + p] = h[p]; + e["t262"] && 6 == e["t262"][0] && (e["t262"][0] = 2) + } + , + t.decode._decodePackBits = function(t, e, r, n, i) { + var o = new Int8Array(t.buffer) + , a = new Int8Array(n.buffer) + , s = e + r; + while (e < s) { + var c = o[e]; + if (e++, + c >= 0 && c < 128) + for (var u = 0; u < c + 1; u++) + a[i] = o[e], + i++, + e++; + if (c >= -127 && c < 0) { + for (u = 0; u < 1 - c; u++) + a[i] = o[e], + i++; + e++ + } + } + return i + } + , + t.decode._decodeThunder = function(t, e, r, n, i) { + var o = [0, 1, 0, -1] + , a = [0, 1, 2, 3, 0, -3, -2, -1] + , s = e + r + , c = 2 * i + , u = 0; + while (e < s) { + var l = t[e] + , d = l >>> 6 + , f = 63 & l; + if (e++, + 3 == d && (u = 15 & f, + n[c >>> 1] |= u << 4 * (1 - c & 1), + c++), + 0 == d) + for (var h = 0; h < f; h++) + n[c >>> 1] |= u << 4 * (1 - c & 1), + c++; + if (2 == d) + for (h = 0; h < 2; h++) { + var p = f >>> 3 * (1 - h) & 7; + 4 != p && (u += a[p], + n[c >>> 1] |= u << 4 * (1 - c & 1), + c++) + } + if (1 == d) + for (h = 0; h < 3; h++) { + p = f >>> 2 * (2 - h) & 3; + 2 != p && (u += o[p], + n[c >>> 1] |= u << 4 * (1 - c & 1), + c++) + } + } + } + , + t.decode._dmap = { + 1: 0, + "011": 1, + "000011": 2, + "0000011": 3, + "010": -1, + "000010": -2, + "0000010": -3 + }, + t.decode._lens = function() { + var t = function(t, e, r, n) { + for (var i = 0; i < e.length; i++) + t[e[i]] = r + i * n + } + , e = "00110101,000111,0111,1000,1011,1100,1110,1111,10011,10100,00111,01000,001000,000011,110100,110101,101010,101011,0100111,0001100,0001000,0010111,0000011,0000100,0101000,0101011,0010011,0100100,0011000,00000010,00000011,00011010,00011011,00010010,00010011,00010100,00010101,00010110,00010111,00101000,00101001,00101010,00101011,00101100,00101101,00000100,00000101,00001010,00001011,01010010,01010011,01010100,01010101,00100100,00100101,01011000,01011001,01011010,01011011,01001010,01001011,00110010,00110011,00110100" + , r = "0000110111,010,11,10,011,0011,0010,00011,000101,000100,0000100,0000101,0000111,00000100,00000111,000011000,0000010111,0000011000,0000001000,00001100111,00001101000,00001101100,00000110111,00000101000,00000010111,00000011000,000011001010,000011001011,000011001100,000011001101,000001101000,000001101001,000001101010,000001101011,000011010010,000011010011,000011010100,000011010101,000011010110,000011010111,000001101100,000001101101,000011011010,000011011011,000001010100,000001010101,000001010110,000001010111,000001100100,000001100101,000001010010,000001010011,000000100100,000000110111,000000111000,000000100111,000000101000,000001011000,000001011001,000000101011,000000101100,000001011010,000001100110,000001100111" + , n = "11011,10010,010111,0110111,00110110,00110111,01100100,01100101,01101000,01100111,011001100,011001101,011010010,011010011,011010100,011010101,011010110,011010111,011011000,011011001,011011010,011011011,010011000,010011001,010011010,011000,010011011" + , i = "0000001111,000011001000,000011001001,000001011011,000000110011,000000110100,000000110101,0000001101100,0000001101101,0000001001010,0000001001011,0000001001100,0000001001101,0000001110010,0000001110011,0000001110100,0000001110101,0000001110110,0000001110111,0000001010010,0000001010011,0000001010100,0000001010101,0000001011010,0000001011011,0000001100100,0000001100101" + , o = "00000001000,00000001100,00000001101,000000010010,000000010011,000000010100,000000010101,000000010110,000000010111,000000011100,000000011101,000000011110,000000011111"; + e = e.split(","), + r = r.split(","), + n = n.split(","), + i = i.split(","), + o = o.split(","); + var a = {} + , s = {}; + return t(a, e, 0, 1), + t(a, n, 64, 64), + t(a, o, 1792, 64), + t(s, r, 0, 1), + t(s, i, 64, 64), + t(s, o, 1792, 64), + [a, s] + }(), + t.decode._decodeG4 = function(e, r, n, i, o, a, s) { + for (var c = t.decode, u = r << 3, l = 0, d = "", f = [], h = [], p = 0; p < a; p++) + h.push(0); + h = c._makeDiff(h); + var m = 0 + , b = 0 + , g = 0 + , v = 0 + , y = 0 + , S = 0 + , w = "" + , C = 0 + , _ = 8 * Math.ceil(a / 8); + while (u >>> 3 < r + n) { + g = c._findDiff(h, m + (0 == m ? 0 : 1), 1 - y), + v = c._findDiff(h, g, y); + var A = 0; + if (1 == s && (A = e[u >>> 3] >>> 7 - (7 & u) & 1), + 2 == s && (A = e[u >>> 3] >>> (7 & u) & 1), + u++, + d += A, + "H" == w) { + if (null != c._lens[y][d]) { + var I = c._lens[y][d]; + d = "", + l += I, + I < 64 && (c._addNtimes(f, l, y), + m += l, + y = 1 - y, + l = 0, + C--, + 0 == C && (w = "")) + } + } else + "0001" == d && (d = "", + c._addNtimes(f, v - m, y), + m = v), + "001" == d && (d = "", + w = "H", + C = 2), + null != c._dmap[d] && (b = g + c._dmap[d], + c._addNtimes(f, b - m, y), + m = b, + d = "", + y = 1 - y); + f.length == a && "" == w && (c._writeBits(f, i, 8 * o + S * _), + y = 0, + S++, + m = 0, + h = c._makeDiff(f), + f = []) + } + } + , + t.decode._findDiff = function(t, e, r) { + for (var n = 0; n < t.length; n += 2) + if (t[n] >= e && t[n + 1] == r) + return t[n] + } + , + t.decode._makeDiff = function(t) { + var e = []; + 1 == t[0] && e.push(0, 1); + for (var r = 1; r < t.length; r++) + t[r - 1] != t[r] && e.push(r, t[r]); + return e.push(t.length, 0, t.length, 1), + e + } + , + t.decode._decodeG2 = function(e, r, n, i, o, a, s) { + var c = t.decode + , u = r << 3 + , l = 0 + , d = "" + , f = [] + , h = 0 + , p = 0 + , m = 8 * Math.ceil(a / 8); + while (u >>> 3 < r + n) { + var b = 0; + 1 == s && (b = e[u >>> 3] >>> 7 - (7 & u) & 1), + 2 == s && (b = e[u >>> 3] >>> (7 & u) & 1), + u++, + d += b, + l = c._lens[h][d], + null != l && (c._addNtimes(f, l, h), + d = "", + l < 64 && (h = 1 - h), + f.length == a && (c._writeBits(f, i, 8 * o + p * m), + f = [], + p++, + h = 0, + 0 != (7 & u) && (u += 8 - (7 & u)), + l >= 64 && (u += 8))) + } + } + , + t.decode._decodeG3 = function(e, r, n, i, o, a, s, c) { + for (var u = t.decode, l = r << 3, d = 0, f = "", h = [], p = [], m = 0; m < a; m++) + h.push(0); + var b = 0 + , g = 0 + , v = 0 + , y = 0 + , S = 0 + , w = -1 + , C = "" + , _ = 0 + , A = !0 + , I = 8 * Math.ceil(a / 8); + while (l >>> 3 < r + n) { + v = u._findDiff(p, b + (0 == b ? 0 : 1), 1 - S), + y = u._findDiff(p, v, S); + var E = 0; + if (1 == s && (E = e[l >>> 3] >>> 7 - (7 & l) & 1), + 2 == s && (E = e[l >>> 3] >>> (7 & l) & 1), + l++, + f += E, + A) { + if (null != u._lens[S][f]) { + var T = u._lens[S][f]; + f = "", + d += T, + T < 64 && (u._addNtimes(h, d, S), + S = 1 - S, + d = 0) + } + } else if ("H" == C) { + if (null != u._lens[S][f]) { + T = u._lens[S][f]; + f = "", + d += T, + T < 64 && (u._addNtimes(h, d, S), + b += d, + S = 1 - S, + d = 0, + _--, + 0 == _ && (C = "")) + } + } else + "0001" == f && (f = "", + u._addNtimes(h, y - b, S), + b = y), + "001" == f && (f = "", + C = "H", + _ = 2), + null != u._dmap[f] && (g = v + u._dmap[f], + u._addNtimes(h, g - b, S), + b = g, + f = "", + S = 1 - S); + f.endsWith("000000000001") && (w >= 0 && u._writeBits(h, i, 8 * o + w * I), + c && (1 == s && (A = 1 == (e[l >>> 3] >>> 7 - (7 & l) & 1)), + 2 == s && (A = 1 == (e[l >>> 3] >>> (7 & l) & 1)), + l++), + f = "", + S = 0, + w++, + b = 0, + p = u._makeDiff(h), + h = []) + } + h.length == a && u._writeBits(h, i, 8 * o + w * I) + } + , + t.decode._addNtimes = function(t, e, r) { + for (var n = 0; n < e; n++) + t.push(r) + } + , + t.decode._writeBits = function(t, e, r) { + for (var n = 0; n < t.length; n++) + e[r + n >>> 3] |= t[n] << 7 - (r + n & 7) + } + , + t.decode._decodeLZW = t.decode._decodeLZW = function() { + var t, e, r, n, i = 0, o = 0, a = 0, s = 0, c = function() { + var r = t >>> 3 + , n = e[r] << 16 | e[r + 1] << 8 | e[r + 2] + , i = n >>> 24 - (7 & t) - o & (1 << o) - 1; + return t += o, + i + }, u = new Uint32Array(16384), l = 0, d = function(t) { + if (t != l) { + l = t, + a = 1 << t, + s = a + 1; + for (var e = 0; e < s + 1; e++) + u[4 * e] = u[4 * e + 3] = e, + u[4 * e + 1] = 65535, + u[4 * e + 2] = 1 + } + }, f = function(t) { + o = t + 1, + i = s + 1 + }, h = function(t) { + var e = t << 2 + , i = u[e + 2] + , o = n + i - 1; + while (65535 != e) + r[o--] = u[e], + e = u[e + 1]; + n += i + }, p = function(t, e) { + var r = i << 2 + , n = t << 2; + u[r] = u[3 + (e << 2)], + u[r + 1] = n, + u[r + 2] = u[n + 2] + 1, + u[r + 3] = u[n + 3], + i++, + i + 1 == 1 << o && 12 != o && o++ + }, m = function(o, u, l, m, b, g) { + t = u << 3, + e = o, + r = m, + n = b; + var v = u + l << 3 + , y = 0 + , S = 0; + d(g), + f(g); + while (t < v && (y = c()) != s) { + if (y == a) { + if (f(g), + y = c(), + y == s) + break; + h(y) + } else + y < i ? (h(y), + p(S, y)) : (p(S, S), + h(i - 1)); + S = y + } + return n + }; + return m + }(), + t.tags = {}, + t._types = function() { + var t = new Array(250); + t.fill(0), + t = t.concat([0, 0, 0, 0, 4, 3, 3, 3, 3, 3, 0, 0, 3, 0, 0, 0, 3, 0, 0, 2, 2, 2, 2, 4, 3, 0, 0, 3, 4, 4, 3, 3, 5, 5, 3, 2, 5, 5, 0, 0, 0, 0, 4, 4, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 3, 5, 5, 3, 0, 3, 3, 4, 4, 4, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); + var e = { + 33432: 2, + 33434: 5, + 33437: 5, + 34665: 4, + 34850: 3, + 34853: 4, + 34855: 3, + 34864: 3, + 34866: 4, + 36864: 7, + 36867: 2, + 36868: 2, + 37121: 7, + 37377: 10, + 37378: 5, + 37380: 10, + 37381: 5, + 37383: 3, + 37384: 3, + 37385: 3, + 37386: 5, + 37510: 7, + 37520: 2, + 37521: 2, + 37522: 2, + 40960: 7, + 40961: 3, + 40962: 4, + 40963: 4, + 40965: 4, + 41486: 5, + 41487: 5, + 41488: 3, + 41985: 3, + 41986: 3, + 41987: 3, + 41988: 5, + 41989: 3, + 41990: 3, + 41993: 3, + 41994: 3, + 41995: 7, + 41996: 3, + 42032: 2, + 42033: 2, + 42034: 5, + 42036: 2, + 42037: 2, + 59932: 7 + }; + return { + basic: { + main: t, + rest: e + }, + gps: { + main: [1, 2, 5, 2, 5, 1, 5, 5, 0, 9], + rest: { + 18: 2, + 29: 2 + } + } + } + }(), + t._readIFD = function(e, r, n, o, a, s) { + var c = e.readUshort(r, n); + n += 2; + var u = {}; + s.debug && i(" ".repeat(a), o.length - 1, ">>>----------------"); + for (var l = 0; l < c; l++) { + var d = e.readUshort(r, n); + n += 2; + var f = e.readUshort(r, n); + n += 2; + var h = e.readUint(r, n); + n += 4; + var p = e.readUint(r, n); + n += 4; + var m = []; + if (1 == f || 7 == f) { + var b = h < 5 ? n - 4 : p; + b + h > r.buffer.byteLength && (h = r.buffer.byteLength - b), + m = new Uint8Array(r.buffer,b,h) + } + if (2 == f) { + var g = h < 5 ? n - 4 : p + , v = r[g] + , y = Math.max(0, Math.min(h - 1, r.length - g)); + v < 128 || 0 == y ? m.push(e.readASCII(r, g, y)) : m = new Uint8Array(r.buffer,g,y) + } + if (3 == f) + for (var S = 0; S < h; S++) + m.push(e.readUshort(r, (h < 3 ? n - 4 : p) + 2 * S)); + if (4 == f || 13 == f) + for (S = 0; S < h; S++) + m.push(e.readUint(r, (h < 2 ? n - 4 : p) + 4 * S)); + if (5 == f || 10 == f) { + var w = 5 == f ? e.readUint : e.readInt; + for (S = 0; S < h; S++) + m.push([w(r, p + 8 * S), w(r, p + 8 * S + 4)]) + } + if (8 == f) + for (S = 0; S < h; S++) + m.push(e.readShort(r, (h < 3 ? n - 4 : p) + 2 * S)); + if (9 == f) + for (S = 0; S < h; S++) + m.push(e.readInt(r, (h < 2 ? n - 4 : p) + 4 * S)); + if (11 == f) + for (S = 0; S < h; S++) + m.push(e.readFloat(r, p + 4 * S)); + if (12 == f) + for (S = 0; S < h; S++) + m.push(e.readDouble(r, p + 8 * S)); + if (0 == h || 0 != m.length) { + if (s.debug && i(" ".repeat(a), d, f, t.tags[d], m), + u["t" + d] = m, + 330 == d && u["t272"] && "DSLR-A100" == u["t272"][0]) + ; + else if (330 == d || 34665 == d || 34853 == d || 50740 == d && e.readUshort(r, e.readUint(m, 0)) < 300 || 61440 == d) { + var C = 50740 == d ? [e.readUint(m, 0)] : m + , _ = []; + for (S = 0; S < C.length; S++) + t._readIFD(e, r, C[S], _, a + 1, s); + 330 == d && (u.subIFD = _), + 34665 == d && (u.exifIFD = _[0]), + 34853 == d && (u.gpsiIFD = _[0]), + 50740 == d && (u.dngPrvt = _[0]), + 61440 == d && (u.fujiIFD = _[0]) + } + if (37500 == d && s.parseMN) { + var A = m; + if ("Nikon" == e.readASCII(A, 0, 5)) + u.makerNote = t["decode"](A.slice(10).buffer)[0]; + else if ("OLYMP" == e.readASCII(A, 0, 5) || "OM SYSTEM" == e.readASCII(A, 0, 9)) { + var I = [8208, 8224, 8240, 8256, 8272] + , E = []; + t._readIFD(e, A, 77 == A[1] ? 16 : 85 == A[5] ? 12 : 8, E, a + 1, s); + var T = u.makerNote = E.pop(); + for (S = 0; S < I.length; S++) { + var x = "t" + I[S]; + null != T[x] && (t._readIFD(e, A, T[x][0], E, a + 1, s), + T[x] = E.pop()) + } + T["t12288"] && (t._readIFD(e, T["t12288"], 0, E, a + 1, s), + T["t12288"] = E.pop()) + } else if (e.readUshort(r, p) < 300 && e.readUshort(r, p + 4) <= 12) { + E = []; + t._readIFD(e, r, p, E, a + 1, s), + u.makerNote = E[0] + } + } + } else if (i(d, "unknown TIFF tag type: ", f, "num:", h), + 0 == l) + return + } + return o.push(u), + s.debug && i(" ".repeat(a), "<<<---------------"), + n + } + , + t._writeIFD = function(e, r, n, i, o) { + var a = Object.keys(o) + , s = a.length; + o["exifIFD"] && s--, + o["gpsiIFD"] && s--, + e.writeUshort(n, i, s), + i += 2; + for (var c = i + 12 * s + 4, u = 0; u < a.length; u++) { + var l = a[u]; + if ("t34665" != l && "t34853" != l) { + "exifIFD" == l && (l = "t34665"), + "gpsiIFD" == l && (l = "t34853"); + var d = parseInt(l.slice(1)) + , f = r.main[d]; + if (null == f && (f = r.rest[d]), + null == f || 0 == f) + throw new Error("unknown type of tag: " + d); + var h = o[l]; + if (34665 == d) { + var p = t._writeIFD(e, r, n, c, o["exifIFD"]); + h = [c], + c = p[1] + } + if (34853 == d) { + p = t._writeIFD(e, t._types.gps, n, c, o["gpsiIFD"]); + h = [c], + c = p[1] + } + 2 == f && (h = h[0] + "\0"); + var m = h.length; + e.writeUshort(n, i, d), + i += 2, + e.writeUshort(n, i, f), + i += 2, + e.writeUint(n, i, m), + i += 4; + var b = [-1, 1, 1, 2, 4, 8, 0, 1, 0, 4, 8, 0, 8][f] * m + , g = i; + if (b > 4 && (e.writeUint(n, i, c), + g = c), + 1 == f || 7 == f) + for (var v = 0; v < m; v++) + n[g + v] = h[v]; + else if (2 == f) + e.writeASCII(n, g, h); + else if (3 == f) + for (v = 0; v < m; v++) + e.writeUshort(n, g + 2 * v, h[v]); + else if (4 == f) + for (v = 0; v < m; v++) + e.writeUint(n, g + 4 * v, h[v]); + else if (5 == f || 10 == f) { + var y = 5 == f ? e.writeUint : e.writeInt; + for (v = 0; v < m; v++) { + var S = h[v] + , w = S[0] + , C = S[1]; + if (null == w) + throw "e"; + y(n, g + 8 * v, w), + y(n, g + 8 * v + 4, C) + } + } else if (9 == f) + for (v = 0; v < m; v++) + e.writeInt(n, g + 4 * v, h[v]); + else { + if (12 != f) + throw f; + for (v = 0; v < m; v++) + e.writeDouble(n, g + 8 * v, h[v]) + } + b > 4 && (b += 1 & b, + c += b), + i += 4 + } + } + return [i, c] + } + , + t.toRGBA8 = function(t, e) { + function r(t) { + return t < .0031308 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - .055 + } + var n = t.width + , o = t.height + , a = n * o + , s = t.data + , c = new Uint8Array(4 * a) + , u = t["t262"] ? t["t262"][0] : 2 + , l = t["t258"] ? Math.min(32, t["t258"][0]) : 1; + null == t["t262"] && 1 == l && (u = 0); + var d = t["t277"] ? t["t277"][0] : t["t258"] ? t["t258"].length : [1, 1, 3, 1, 1, 4, 3][u] + , f = t["t339"] ? t["t339"][0] : null; + if (1 == u && 32 == l && 3 != f) + throw "e"; + var h = Math.ceil(d * l * n / 8); + if (0 == u) { + e = 1 / 256; + for (var p = 0; p < o; p++) { + var m = p * h + , b = p * n; + if (1 == l) + for (var g = 0; g < n; g++) { + var v = b + g << 2 + , y = s[m + (g >> 3)] >> 7 - (7 & g) & 1; + c[v] = c[v + 1] = c[v + 2] = 255 * (1 - y), + c[v + 3] = 255 + } + if (4 == l) + for (g = 0; g < n; g++) { + v = b + g << 2, + y = s[m + (g >> 1)] >> 4 - 4 * (1 & g) & 15; + c[v] = c[v + 1] = c[v + 2] = 17 * (15 - y), + c[v + 3] = 255 + } + if (8 == l) + for (g = 0; g < n; g++) { + v = b + g << 2, + y = s[m + g]; + c[v] = c[v + 1] = c[v + 2] = 255 - y, + c[v + 3] = 255 + } + if (16 == l) + for (g = 0; g < n; g++) { + v = b + g << 2; + var S = m + 2 * g; + y = s[S + 1] << 8 | s[S]; + c[v] = c[v + 1] = c[v + 2] = Math.min(255, 255 - ~~(y * e)), + c[v + 3] = 255 + } + } + } else if (1 == u) { + null == e && (e = 1 / 256); + var w = 0 == (3 & s.length) ? new Float32Array(s.buffer) : null; + for (p = 0; p < o; p++) { + m = p * h, + b = p * n; + if (1 == l) + for (g = 0; g < n; g++) { + v = b + g << 2, + y = s[m + (g >> 3)] >> 7 - (7 & g) & 1; + c[v] = c[v + 1] = c[v + 2] = 255 * y, + c[v + 3] = 255 + } + if (2 == l) + for (g = 0; g < n; g++) { + v = b + g << 2, + y = s[m + (g >> 2)] >> 6 - 2 * (3 & g) & 3; + c[v] = c[v + 1] = c[v + 2] = 85 * y, + c[v + 3] = 255 + } + if (8 == l) + for (g = 0; g < n; g++) { + v = b + g << 2, + y = s[m + g * d]; + c[v] = c[v + 1] = c[v + 2] = y, + c[v + 3] = 255 + } + if (16 == l) + for (g = 0; g < n; g++) { + v = b + g << 2, + S = m + 2 * g, + y = s[S + 1] << 8 | s[S]; + c[v] = c[v + 1] = c[v + 2] = Math.min(255, ~~(y * e)), + c[v + 3] = 255 + } + if (32 == l) + for (g = 0; g < n; g++) { + v = b + g << 2, + S = (m >>> 2) + g, + y = w[S]; + c[v] = c[v + 1] = c[v + 2] = ~~(.5 + 255 * y), + c[v + 3] = 255 + } + } + } else if (2 == u) + if (8 == l) { + if (1 == d) + for (g = 0; g < a; g++) + c[4 * g] = c[4 * g + 1] = c[4 * g + 2] = s[g], + c[4 * g + 3] = 255; + if (3 == d) + for (g = 0; g < a; g++) { + v = g << 2; + var C = 3 * g; + c[v] = s[C], + c[v + 1] = s[C + 1], + c[v + 2] = s[C + 2], + c[v + 3] = 255 + } + if (d >= 4) + for (g = 0; g < a; g++) { + v = g << 2, + C = g * d; + c[v] = s[C], + c[v + 1] = s[C + 1], + c[v + 2] = s[C + 2], + c[v + 3] = s[C + 3] + } + } else if (16 == l) { + if (4 == d) + for (g = 0; g < a; g++) { + v = g << 2, + C = 8 * g + 1; + c[v] = s[C], + c[v + 1] = s[C + 2], + c[v + 2] = s[C + 4], + c[v + 3] = s[C + 6] + } + if (3 == d) + for (g = 0; g < a; g++) { + v = g << 2, + C = 6 * g + 1; + c[v] = s[C], + c[v + 1] = s[C + 2], + c[v + 2] = s[C + 4], + c[v + 3] = 255 + } + } else { + if (32 != l) + throw l; + var _ = new Float32Array(s.buffer) + , A = 0; + for (g = 0; g < _.length; g++) + A = Math.min(A, _[g]); + if (A < 0) + for (g = 0; g < s.length; g += 4) { + var I = s[g]; + s[g] = s[g + 3], + s[g + 3] = I, + I = s[g + 1], + s[g + 1] = s[g + 2], + s[g + 2] = I + } + var E = []; + for (g = 0; g < 65536; g++) + E.push(r(g / 65535)); + for (g = 0; g < _.length; g++) { + var T = Math.max(0, Math.min(1, _[g])); + _[g] = E[~~(.5 + 65535 * T)] + } + if (3 == d) + for (g = 0; g < a; g++) { + v = g << 2, + C = 3 * g; + c[v] = ~~(.5 + 255 * _[C]), + c[v + 1] = ~~(.5 + 255 * _[C + 1]), + c[v + 2] = ~~(.5 + 255 * _[C + 2]), + c[v + 3] = 255 + } + else { + if (4 != d) + throw d; + for (g = 0; g < a; g++) { + v = g << 2, + C = 4 * g; + c[v] = ~~(.5 + 255 * _[C]), + c[v + 1] = ~~(.5 + 255 * _[C + 1]), + c[v + 2] = ~~(.5 + 255 * _[C + 2]), + c[v + 3] = ~~(.5 + 255 * _[C + 3]) + } + } + } + else if (3 == u) { + var x = t["t320"] + , P = 1 << l + , k = 8 == l && d > 1 && t["t338"] && 0 != t["t338"][0]; + for (p = 0; p < o; p++) + for (var D = 0; D < n; D++) { + g = p * n + D, + v = g << 2; + var O = 0 + , R = p * h; + if (1 == l) + O = s[R + (D >>> 3)] >>> 7 - (7 & D) & 1; + else if (2 == l) + O = s[R + (D >>> 2)] >>> 6 - 2 * (3 & D) & 3; + else if (4 == l) + O = s[R + (D >>> 1)] >>> 4 - 4 * (1 & D) & 15; + else { + if (8 != l) + throw l; + O = s[R + D * d] + } + c[v] = x[O] >> 8, + c[v + 1] = x[P + O] >> 8, + c[v + 2] = x[P + P + O] >> 8, + c[v + 3] = k ? s[R + D * d + 1] : 255 + } + } else if (5 == u) { + var M = d > 4 ? 1 : 0; + for (g = 0; g < a; g++) { + v = g << 2; + var N = g * d; + if (window.UDOC) { + var B = s[N] + , F = s[N + 1] + , j = s[N + 2] + , U = s[N + 3] + , L = UDOC.C.cmykToRgb([B * (1 / 255), F * (1 / 255), j * (1 / 255), U * (1 / 255)]); + c[v] = ~~(.5 + 255 * L[0]), + c[v + 1] = ~~(.5 + 255 * L[1]), + c[v + 2] = ~~(.5 + 255 * L[2]) + } else { + B = 255 - s[N], + F = 255 - s[N + 1], + j = 255 - s[N + 2], + U = (255 - s[N + 3]) * (1 / 255); + c[v] = ~~(B * U + .5), + c[v + 1] = ~~(F * U + .5), + c[v + 2] = ~~(j * U + .5) + } + c[v + 3] = 255 * (1 - M) + s[N + 4] * M + } + } else if (6 == u && t["t278"]) { + var K = t["t278"][0]; + for (p = 0; p < o; p += K) { + g = p * n; + for (var X = K * n, z = 0; z < X; z++) { + v = 4 * (g + z), + N = 3 * g + 4 * (z >>> 1), + j = s[N + (1 & z)]; + var G = s[N + 2] - 128 + , W = s[N + 3] - 128 + , q = j + ((W >> 2) + (W >> 3) + (W >> 5)) + , H = j - ((G >> 2) + (G >> 4) + (G >> 5)) - ((W >> 1) + (W >> 3) + (W >> 4) + (W >> 5)) + , V = j + (G + (G >> 1) + (G >> 2) + (G >> 6)); + c[v] = Math.max(0, Math.min(255, q)), + c[v + 1] = Math.max(0, Math.min(255, H)), + c[v + 2] = Math.max(0, Math.min(255, V)), + c[v + 3] = 255 + } + } + } else if (32845 == u) + for (p = 0; p < o; p++) + for (D = 0; D < n; D++) { + N = 6 * (p * n + D), + v = 4 * (p * n + D); + var Z = s[N + 1] << 8 | s[N] + , Q = (Z = Math.pow(2, (Z + .5) / 256 - 64), + (s[N + 3] + .5) / 410) + , Y = (s[N + 5] + .5) / 410 + , J = 9 * Q / (6 * Q - 16 * Y + 12) + , $ = 4 * Y / (6 * Q - 16 * Y + 12) + , tt = Z + , et = J * tt / $ + , rt = (j = tt, + (1 - J - $) * tt / $); + q = 2.69 * et - 1.276 * j - .414 * rt, + H = -1.022 * et + 1.978 * j + .044 * rt, + V = .061 * et - .224 * j + 1.163 * rt; + c[v] = 255 * r(Math.min(q, 1)), + c[v + 1] = 255 * r(Math.min(H, 1)), + c[v + 2] = 255 * r(Math.min(V, 1)), + c[v + 3] = 255 + } + else + i("Unknown Photometric interpretation: " + u); + return c + } + , + t.replaceIMG = function(e) { + null == e && (e = document.getElementsByTagName("img")); + for (var r = ["tif", "tiff", "dng", "cr2", "nef"], n = 0; n < e.length; n++) { + var i = e[n] + , o = i.getAttribute("src"); + if (null != o) { + var a = o.split(".").pop().toLowerCase(); + if (-1 != r.indexOf(a)) { + var s = new XMLHttpRequest; + t._xhrs.push(s), + t._imgs.push(i), + s.open("GET", o), + s.responseType = "arraybuffer", + s.onload = t._imgLoaded, + s.send() + } + } + } + } + , + t._xhrs = [], + t._imgs = [], + t._imgLoaded = function(e) { + var r = t._xhrs.indexOf(e.target) + , n = t._imgs[r]; + t._xhrs.splice(r, 1), + t._imgs.splice(r, 1), + n.setAttribute("src", t.bufferToURI(e.target.response)) + } + , + t.bufferToURI = function(e) { + var r = t.decode(e) + , n = r + , i = 0 + , o = n[0]; + r[0].subIFD && (n = n.concat(r[0].subIFD)); + for (var a = 0; a < n.length; a++) { + var s = n[a]; + if (!(null == s["t258"] || s["t258"].length < 3)) { + var c = s["t256"] * s["t257"]; + c > i && (i = c, + o = s) + } + } + t.decodeImage(e, o, r); + var u = t.toRGBA8(o) + , l = o.width + , d = o.height + , f = document.createElement("canvas"); + f.width = l, + f.height = d; + var h = f.getContext("2d") + , p = new ImageData(new Uint8ClampedArray(u.buffer),l,d); + return h.putImageData(p, 0, 0), + f.toDataURL() + } + , + t._binBE = { + nextZero: function(t, e) { + while (0 != t[e]) + e++; + return e + }, + readUshort: function(t, e) { + return t[e] << 8 | t[e + 1] + }, + readShort: function(e, r) { + var n = t._binBE.ui8; + return n[0] = e[r + 1], + n[1] = e[r + 0], + t._binBE.i16[0] + }, + readInt: function(e, r) { + var n = t._binBE.ui8; + return n[0] = e[r + 3], + n[1] = e[r + 2], + n[2] = e[r + 1], + n[3] = e[r + 0], + t._binBE.i32[0] + }, + readUint: function(e, r) { + var n = t._binBE.ui8; + return n[0] = e[r + 3], + n[1] = e[r + 2], + n[2] = e[r + 1], + n[3] = e[r + 0], + t._binBE.ui32[0] + }, + readASCII: function(t, e, r) { + for (var n = "", i = 0; i < r; i++) + n += String.fromCharCode(t[e + i]); + return n + }, + readFloat: function(e, r) { + for (var n = t._binBE.ui8, i = 0; i < 4; i++) + n[i] = e[r + 3 - i]; + return t._binBE.fl32[0] + }, + readDouble: function(e, r) { + for (var n = t._binBE.ui8, i = 0; i < 8; i++) + n[i] = e[r + 7 - i]; + return t._binBE.fl64[0] + }, + writeUshort: function(t, e, r) { + t[e] = r >> 8 & 255, + t[e + 1] = 255 & r + }, + writeInt: function(e, r, n) { + var i = t._binBE.ui8; + t._binBE.i32[0] = n, + e[r + 3] = i[0], + e[r + 2] = i[1], + e[r + 1] = i[2], + e[r + 0] = i[3] + }, + writeUint: function(t, e, r) { + t[e] = r >> 24 & 255, + t[e + 1] = r >> 16 & 255, + t[e + 2] = r >> 8 & 255, + t[e + 3] = r >> 0 & 255 + }, + writeASCII: function(t, e, r) { + for (var n = 0; n < r.length; n++) + t[e + n] = r.charCodeAt(n) + }, + writeDouble: function(e, r, n) { + t._binBE.fl64[0] = n; + for (var i = 0; i < 8; i++) + e[r + i] = t._binBE.ui8[7 - i] + } + }, + t._binBE.ui8 = new Uint8Array(8), + t._binBE.i16 = new Int16Array(t._binBE.ui8.buffer), + t._binBE.i32 = new Int32Array(t._binBE.ui8.buffer), + t._binBE.ui32 = new Uint32Array(t._binBE.ui8.buffer), + t._binBE.fl32 = new Float32Array(t._binBE.ui8.buffer), + t._binBE.fl64 = new Float64Array(t._binBE.ui8.buffer), + t._binLE = { + nextZero: t._binBE.nextZero, + readUshort: function(t, e) { + return t[e + 1] << 8 | t[e] + }, + readShort: function(e, r) { + var n = t._binBE.ui8; + return n[0] = e[r + 0], + n[1] = e[r + 1], + t._binBE.i16[0] + }, + readInt: function(e, r) { + var n = t._binBE.ui8; + return n[0] = e[r + 0], + n[1] = e[r + 1], + n[2] = e[r + 2], + n[3] = e[r + 3], + t._binBE.i32[0] + }, + readUint: function(e, r) { + var n = t._binBE.ui8; + return n[0] = e[r + 0], + n[1] = e[r + 1], + n[2] = e[r + 2], + n[3] = e[r + 3], + t._binBE.ui32[0] + }, + readASCII: t._binBE.readASCII, + readFloat: function(e, r) { + for (var n = t._binBE.ui8, i = 0; i < 4; i++) + n[i] = e[r + i]; + return t._binBE.fl32[0] + }, + readDouble: function(e, r) { + for (var n = t._binBE.ui8, i = 0; i < 8; i++) + n[i] = e[r + i]; + return t._binBE.fl64[0] + }, + writeUshort: function(t, e, r) { + t[e] = 255 & r, + t[e + 1] = r >> 8 & 255 + }, + writeInt: function(e, r, n) { + var i = t._binBE.ui8; + t._binBE.i32[0] = n, + e[r + 0] = i[0], + e[r + 1] = i[1], + e[r + 2] = i[2], + e[r + 3] = i[3] + }, + writeUint: function(t, e, r) { + t[e] = r >>> 0 & 255, + t[e + 1] = r >>> 8 & 255, + t[e + 2] = r >>> 16 & 255, + t[e + 3] = r >>> 24 & 255 + }, + writeASCII: t._binBE.writeASCII + }, + t._copyTile = function(t, e, r, n, i, o, a, s) { + for (var c = Math.min(e, i - a), u = Math.min(r, o - s), l = 0; l < u; l++) + for (var d = (s + l) * i + a, f = l * e, h = 0; h < c; h++) + n[d + h] = t[f + h] + } + , + t._inflateRaw = function() { + var t = { + H: {} + }; + return t.H.N = function(e, r) { + var n, i, o = Uint8Array, a = 0, s = 0, c = 0, u = 0, l = 0, d = 0, f = 0, h = 0, p = 0; + if (3 == e[0] && 0 == e[1]) + return r || new o(0); + var m = t.H + , b = m.b + , g = m.e + , v = m.R + , y = m.n + , S = m.A + , w = m.Z + , C = m.m + , _ = null == r; + _ && (r = new o(e.length >>> 2 << 5)); + while (0 == a) + if (a = b(e, p, 1), + s = b(e, p + 1, 2), + p += 3, + 0 != s) { + if (_ && (r = t.H.W(r, h + (1 << 17))), + 1 == s && (n = C.J, + i = C.h, + d = 511, + f = 31), + 2 == s) { + c = g(e, p, 5) + 257, + u = g(e, p + 5, 5) + 1, + l = g(e, p + 10, 4) + 4, + p += 14; + for (var A = 1, I = 0; I < 38; I += 2) + C.Q[I] = 0, + C.Q[I + 1] = 0; + for (I = 0; I < l; I++) { + var E = g(e, p + 3 * I, 3); + C.Q[1 + (C.X[I] << 1)] = E, + E > A && (A = E) + } + p += 3 * l, + y(C.Q, A), + S(C.Q, A, C.u), + n = C.w, + i = C.d, + p = v(C.u, (1 << A) - 1, c + u, e, p, C.v); + var T = m.V(C.v, 0, c, C.C); + d = (1 << T) - 1; + var x = m.V(C.v, c, u, C.D); + f = (1 << x) - 1, + y(C.C, T), + S(C.C, T, n), + y(C.D, x), + S(C.D, x, i) + } + while (1) { + var P = n[w(e, p) & d]; + p += 15 & P; + var k = P >>> 4; + if (k >>> 8 == 0) + r[h++] = k; + else { + if (256 == k) + break; + var D = h + k - 254; + if (k > 264) { + var O = C.q[k - 257]; + D = h + (O >>> 3) + g(e, p, 7 & O), + p += 7 & O + } + var R = i[w(e, p) & f]; + p += 15 & R; + var M = R >>> 4 + , N = C.c[M] + , B = (N >>> 4) + b(e, p, 15 & N); + p += 15 & N; + while (h < D) + r[h] = r[h++ - B], + r[h] = r[h++ - B], + r[h] = r[h++ - B], + r[h] = r[h++ - B]; + h = D + } + } + } else { + 0 != (7 & p) && (p += 8 - (7 & p)); + var F = 4 + (p >>> 3) + , j = e[F - 4] | e[F - 3] << 8; + _ && (r = t.H.W(r, h + j)), + r.set(new o(e.buffer,e.byteOffset + F,j), h), + p = F + j << 3, + h += j + } + return r.length == h ? r : r.slice(0, h) + } + , + t.H.W = function(t, e) { + var r = t.length; + if (e <= r) + return t; + var n = new Uint8Array(r << 1); + return n.set(t, 0), + n + } + , + t.H.R = function(e, r, n, i, o, a) { + var s = t.H.e + , c = t.H.Z + , u = 0; + while (u < n) { + var l = e[c(i, o) & r]; + o += 15 & l; + var d = l >>> 4; + if (d <= 15) + a[u] = d, + u++; + else { + var f = 0 + , h = 0; + 16 == d ? (h = 3 + s(i, o, 2), + o += 2, + f = a[u - 1]) : 17 == d ? (h = 3 + s(i, o, 3), + o += 3) : 18 == d && (h = 11 + s(i, o, 7), + o += 7); + var p = u + h; + while (u < p) + a[u] = f, + u++ + } + } + return o + } + , + t.H.V = function(t, e, r, n) { + var i = 0 + , o = 0 + , a = n.length >>> 1; + while (o < r) { + var s = t[o + e]; + n[o << 1] = 0, + n[1 + (o << 1)] = s, + s > i && (i = s), + o++ + } + while (o < a) + n[o << 1] = 0, + n[1 + (o << 1)] = 0, + o++; + return i + } + , + t.H.n = function(e, r) { + for (var n, i, o, a, s = t.H.m, c = e.length, u = s.j, l = 0; l <= r; l++) + u[l] = 0; + for (l = 1; l < c; l += 2) + u[e[l]]++; + var d = s.K; + for (n = 0, + u[0] = 0, + i = 1; i <= r; i++) + n = n + u[i - 1] << 1, + d[i] = n; + for (o = 0; o < c; o += 2) + a = e[o + 1], + 0 != a && (e[o] = d[a], + d[a]++) + } + , + t.H.A = function(e, r, n) { + for (var i = e.length, o = t.H.m, a = o.r, s = 0; s < i; s += 2) + if (0 != e[s + 1]) { + var c = s >> 1 + , u = e[s + 1] + , l = c << 4 | u + , d = r - u + , f = e[s] << d + , h = f + (1 << d); + while (f != h) { + var p = a[f] >>> 15 - r; + n[p] = l, + f++ + } + } + } + , + t.H.l = function(e, r) { + for (var n = t.H.m.r, i = 15 - r, o = 0; o < e.length; o += 2) { + var a = e[o] << r - e[o + 1]; + e[o] = n[a] >>> i + } + } + , + t.H.M = function(t, e, r) { + r <<= 7 & e; + var n = e >>> 3; + t[n] |= r, + t[n + 1] |= r >>> 8 + } + , + t.H.I = function(t, e, r) { + r <<= 7 & e; + var n = e >>> 3; + t[n] |= r, + t[n + 1] |= r >>> 8, + t[n + 2] |= r >>> 16 + } + , + t.H.e = function(t, e, r) { + return (t[e >>> 3] | t[1 + (e >>> 3)] << 8) >>> (7 & e) & (1 << r) - 1 + } + , + t.H.b = function(t, e, r) { + return (t[e >>> 3] | t[1 + (e >>> 3)] << 8 | t[2 + (e >>> 3)] << 16) >>> (7 & e) & (1 << r) - 1 + } + , + t.H.Z = function(t, e) { + return (t[e >>> 3] | t[1 + (e >>> 3)] << 8 | t[2 + (e >>> 3)] << 16) >>> (7 & e) + } + , + t.H.i = function(t, e) { + return (t[e >>> 3] | t[1 + (e >>> 3)] << 8 | t[2 + (e >>> 3)] << 16 | t[3 + (e >>> 3)] << 24) >>> (7 & e) + } + , + t.H.m = function() { + var t = Uint16Array + , e = Uint32Array; + return { + K: new t(16), + j: new t(16), + X: [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], + S: [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 999, 999, 999], + T: [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0], + q: new t(32), + p: [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 65535, 65535], + z: [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0], + c: new e(32), + J: new t(512), + _: [], + h: new t(32), + $: [], + w: new t(32768), + C: [], + v: [], + d: new t(32768), + D: [], + u: new t(512), + Q: [], + r: new t(32768), + s: new e(286), + Y: new e(30), + a: new e(19), + t: new e(15e3), + k: new t(65536), + g: new t(32768) + } + }(), + function() { + for (var e = t.H.m, r = 32768, n = 0; n < r; n++) { + var i = n; + i = (2863311530 & i) >>> 1 | (1431655765 & i) << 1, + i = (3435973836 & i) >>> 2 | (858993459 & i) << 2, + i = (4042322160 & i) >>> 4 | (252645135 & i) << 4, + i = (4278255360 & i) >>> 8 | (16711935 & i) << 8, + e.r[n] = (i >>> 16 | i << 16) >>> 17 + } + function o(t, e, r) { + while (0 != e--) + t.push(0, r) + } + for (n = 0; n < 32; n++) + e.q[n] = e.S[n] << 3 | e.T[n], + e.c[n] = e.p[n] << 4 | e.z[n]; + o(e._, 144, 8), + o(e._, 112, 9), + o(e._, 24, 7), + o(e._, 8, 8), + t.H.n(e._, 9), + t.H.A(e._, 9, e.J), + t.H.l(e._, 9), + o(e.$, 32, 5), + t.H.n(e.$, 5), + t.H.A(e.$, 5, e.h), + t.H.l(e.$, 5), + o(e.Q, 19, 0), + o(e.C, 286, 0), + o(e.D, 30, 0), + o(e.v, 320, 0) + }(), + t.H.N + }(), + t.LosslessJpegDecode = function() { + var t, e; + function r() { + return t[e++] + } + function n() { + return t[e++] << 8 | t[e++] + } + function i(t) { + for (var e = r(), n = [0, 0, 0, 255], i = [], a = 8, s = 0; s < 16; s++) + i[s] = r(); + for (s = 0; s < 16; s++) + for (var c = 0; c < i[s]; c++) { + var u = o(n, 0, s + 1, 1); + n[u + 3] = r() + } + var l = new Uint8Array(1 << a); + t[e] = [new Uint8Array(n), l]; + for (s = 0; s < 1 << a; s++) { + var d = a + , f = s + , h = 0 + , p = 0; + while (255 == n[h + 3] && 0 != d) + p = f >> --d & 1, + h = n[h + p]; + l[s] = h + } + } + function o(t, e, r, n) { + if (255 != t[e + 3]) + return 0; + if (0 == r) + return e; + for (var i = 0; i < 2; i++) { + 0 == t[e + i] && (t[e + i] = t.length, + t.push(0, 0, n, 255)); + var a = o(t, t[e + i], r - 1, n + 1); + if (0 != a) + return a + } + return 0 + } + function a(t) { + var e = t.b + , r = t.f; + while (e < 25 && t.a < t.d) { + var n = t.data[t.a++]; + 255 != n || t.c || t.a++, + r = r << 8 | n, + e += 8 + } + if (e < 0) + throw "e"; + t.b = e, + t.f = r + } + function s(t, e) { + return e.b < t && a(e), + e.f >> (e.b -= t) & 65535 >> 16 - t + } + function c(t, e) { + var r = t[0] + , n = 0 + , i = 255 + , o = 0; + e.b < 16 && a(e); + var s = e.f >> e.b - 8 & 255; + n = t[1][s], + i = r[n + 3], + e.b -= r[n + 2]; + while (255 == i) + o = e.f >> --e.b & 1, + n = r[n + o], + i = r[n + 3]; + return i + } + function u(t, e) { + return t < 32768 >> 16 - e && (t += 1 - (1 << e)), + t + } + function l(t, e) { + var r = c(t, e); + if (0 == r) + return 0; + if (16 == r) + return -32768; + var n = s(r, e); + return u(n, r) + } + function d(t, e, r, n, i, o) { + for (var a = 0, s = 0; s < o; s++) { + for (var c = s * e, u = 0; u < e; u += i) { + a++; + for (var d = 0; d < i; d++) + t[c + u + d] = l(n[d], r) + } + if (0 != r.e && a % r.e == 0 && 0 != s) { + var f = r.a + , h = r.data; + while (255 != h[f] || !(208 <= h[f + 1] && h[f + 1] <= 215)) + f--; + r.a = f + 2, + r.f = 0, + r.b = 0 + } + } + } + function f(t, e) { + return u(s(t, e), t) + } + function h(r, n, i, o, a) { + for (var s = t.length - e, u = 0; u < s; u += 4) { + var l = t[e + u]; + t[e + u] = t[e + u + 3], + t[e + u + 3] = l; + l = t[e + u + 1]; + t[e + u + 1] = t[e + u + 2], + t[e + u + 2] = l + } + for (var d = 0; d < a; d++) + for (var h = 32768, p = 32768, m = 0; m < n; m += 2) { + var b = c(o, i) + , g = c(o, i); + 0 != b && (h += f(b, i)), + 0 != g && (p += f(g, i)), + r[d * n + m] = 65535 & h, + r[d * n + m + 1] = 65535 & p + } + } + function p(o) { + if (t = o, + e = 0, + 65496 != n()) + throw "e"; + var a = [] + , s = 0 + , c = 0 + , u = 0 + , l = [] + , f = [] + , p = [] + , b = 0 + , g = 0 + , v = 0; + while (1) { + var y = n(); + if (65535 != y) { + var S = n(); + if (65475 == y) { + c = r(), + g = n(), + v = n(), + b = r(); + for (var w = 0; w < b; w++) { + var C = r() + , _ = r() + , A = r(); + if (0 != A) + throw "e"; + a[C] = [w, _ >> 4, 15 & _] + } + } else if (65476 == y) { + var I = e + S - 2; + while (e < I) + i(f) + } else { + if (65498 == y) { + e++; + for (w = 0; w < b; w++) { + var E = r() + , T = a[E]; + p[T[0]] = f[r() >>> 4], + l[T[0]] = T.slice(1) + } + s = r(), + e += 2; + break + } + 65501 == y ? u = n() : e += S - 2 + } + } else + e-- + } + var x = c > 8 ? Uint16Array : Uint8Array + , P = new x(g * v * b) + , k = { + b: 0, + f: 0, + c: 8 == s, + a: e, + data: t, + d: t.length, + e: u + }; + if (k.c) + h(P, v * b, k, p[0], g); + else { + var D = [] + , O = 0 + , R = 0; + for (w = 0; w < b; w++) { + var M = l[w] + , N = M[0] + , B = M[1]; + N > O && (O = N), + B > R && (R = B), + D.push(N * B) + } + if (1 != O || 1 != R) { + if (3 != b || 1 != D[1] || 1 != D[2]) + throw "e"; + if (2 != O || 1 != R && 2 != R) + throw "e"; + var F = [] + , j = 0; + for (w = 0; w < b; w++) { + for (var U = 0; U < D[w]; U++) + F.push(p[w]); + j += D[w] + } + var L = v / O + , K = g / R + , X = L * K; + d(P, L * j, k, F, j, K), + m(P, s, L, K, j - 2, j, j, c); + var z = new Uint16Array(X * D[0]); + if (2 == O && 2 == R) { + for (w = 0; w < X; w++) + z[4 * w] = P[6 * w], + z[4 * w + 1] = P[6 * w + 1], + z[4 * w + 2] = P[6 * w + 2], + z[4 * w + 3] = P[6 * w + 3]; + m(z, s, 4 * L, K, 0, 1, 1, c); + for (w = 0; w < X; w++) + P[6 * w] = z[4 * w], + P[6 * w + 1] = z[4 * w + 1], + P[6 * w + 2] = z[4 * w + 2], + P[6 * w + 3] = z[4 * w + 3] + } + if (2 == O && 1 == R) { + for (w = 0; w < X; w++) + z[2 * w] = P[4 * w], + z[2 * w + 1] = P[4 * w + 1]; + m(z, s, 2 * L, K, 0, 1, 1, c); + for (w = 0; w < X; w++) + P[4 * w] = z[2 * w], + P[4 * w + 1] = z[2 * w + 1] + } + var G = P.slice(0); + for (B = 0; B < g; B++) + if (2 == R) + for (N = 0; N < v; N++) { + var W = (B * v + N) * b + , q = ((B >>> 1) * L + (N >>> 1)) * j + , H = 2 * (1 & B) + (1 & N); + P[W] = G[q + H], + P[W + 1] = G[q + 4], + P[W + 2] = G[q + 5] + } + else + for (N = 0; N < v; N++) { + W = (B * v + N) * b, + q = (B * L + (N >>> 1)) * j, + H = 1 & N; + P[W] = G[q + H], + P[W + 1] = G[q + 2], + P[W + 2] = G[q + 3] + } + } else if (d(P, v * b, k, p, b, g), + 0 == u) + m(P, s, v, g, 0, b, b, c); + else { + var V = Math.floor(u / v); + for (B = 0; B < g; B += V) { + var Z = P.slice(B * v * b, (B + V) * v * b); + m(Z, s, v, V, 0, b, b, c), + P.set(Z, B * v * b) + } + } + } + return P + } + function m(t, e, r, n, i, o, a, s) { + for (var c = r * a, u = i; u < o; u++) + t[u] += 1 << s - 1; + for (var l = a; l < c; l += a) + for (u = i; u < o; u++) + t[l + u] += t[l + u - a]; + for (var d = 1; d < n; d++) { + var f = d * c; + for (u = i; u < o; u++) + t[f + u] += t[f + u - c]; + for (l = a; l < c; l += a) + for (u = i; u < o; u++) { + var h = f + l + u + , p = h - c + , m = t[h - a] + , b = 0; + if (0 == e) + b = 0; + else if (1 == e) + b = m; + else if (2 == e) + b = t[p]; + else if (3 == e) + b = t[p - a]; + else if (4 == e) + b = m + (t[p] - t[p - a]); + else if (5 == e) + b = m + (t[p] - t[p - a] >>> 1); + else if (6 == e) + b = t[p] + (m - t[p - a] >>> 1); + else { + if (7 != e) + throw e; + b = m + t[p] >>> 1 + } + t[h] += b + } + } + } + return p + }(), + function() { + var e = 0 + , r = 1 + , n = 2 + , i = 3 + , o = 4 + , a = 5 + , s = 6 + , c = 7 + , u = 8 + , l = 9 + , d = 10 + , f = 11 + , h = 12 + , p = 13 + , m = 14 + , b = 15 + , g = 16 + , v = 17 + , y = 18; + function S(e) { + var r = t._binBE.readUshort + , n = { + b: r(e, 0), + i: e[2], + C: e[3], + u: e[4], + q: r(e, 5), + k: r(e, 7), + e: r(e, 9), + l: r(e, 11), + s: e[13], + d: r(e, 14) + }; + if (18771 != n.b || n.i > 1 || n.q < 6 || n.q % 6 || n.e < 768 || n.e % 24 || 768 != n.l || n.k < n.l || n.k % n.l || n.k - n.e >= n.l || n.s > 16 || n.s != n.k / n.l || n.s != Math.ceil(n.e / n.l) || n.d != n.q / 6 || 12 != n.u && 14 != n.u && 16 != n.u || 16 != n.C && 0 != n.C) + throw "Invalid data"; + if (0 == n.i) + throw "Not implemented. We need this file!"; + return n.h = 16 == n.C, + n.m = 0 | (n.h ? 2 * n.l / 3 : n.l >>> 1), + n.A = n.m + 2, + n.f = 64, + n.g = (1 << n.u) - 1, + n.n = 4 * n.u, + n + } + function w(e, r) { + var n = new Array(r.s) + , i = 4 * r.s + , o = 16 + i; + 12 & i && (o += 16 - (12 & i)); + for (var a = 0, s = 16; a < r.s; s += 4) { + var c = t._binBE.readUint(e, s); + n[a] = e.slice(o, o + c), + n[a].j = 0, + n[a].a = 0, + o += c, + a++ + } + if (o != e.length) + throw "Invalid data"; + return n + } + function C(t, e) { + for (var r = -e[4], n = 0; r <= e[4]; n++, + r++) + t[n] = r <= -e[3] ? -4 : r <= -e[2] ? -3 : r <= -e[1] ? -2 : r < -e[0] ? -1 : r <= e[0] ? 0 : r < e[1] ? 1 : r < e[2] ? 2 : r < e[3] ? 3 : 4 + } + function _(t, e, r) { + var n = [e, 3 * e + 18, 5 * e + 67, 7 * e + 276, r]; + t.o = e, + t.w = (n[4] + 2 * e) / (2 * e + 1) + 1 | 0, + t.v = Math.ceil(Math.log2(t.w)), + t.t = 9, + C(t.c, n) + } + function A(t) { + var e = { + c: new Int8Array(2 << t.u) + }; + return _(e, 0, t.g), + e + } + function I(t) { + for (var e = [[], [], []], r = Math.max(2, t.w + 32 >>> 6), n = 0; n < 3; n++) + for (var i = 0; i < 41; i++) + e[n][i] = [r, 1]; + return e + } + function E(t) { + for (var e = -1, r = 0; !r; e++) + r = t[t.j] >>> 7 - t.a & 1, + t.a++, + t.a &= 7, + t.a || t.j++; + return e + } + function T(t, e) { + var r = 0 + , n = 8 - t.a; + t.j, + t.a; + if (e) { + if (e >= n) + do { + r <<= n, + e -= n, + r |= t[t.j] & (1 << n) - 1, + t.j++, + n = 8 + } while (e >= 8); + e && (r <<= e, + n -= e, + r |= t[t.j] >>> n & (1 << e) - 1), + t.a = 8 - n + } + return r + } + function x(t, e) { + var r = 0; + if (e < t) + while (r <= 14 && e << ++r < t) + ; + return r + } + function P(t, e, r, n, i, o, a, s) { + null == s && (s = 0); + var c, u, l, d, f, h, p = o + 1, m = p % 2, b = 0, g = n[i], v = n[i - 1], y = n[i - 2][p], S = v[p - 1], w = v[p], C = v[p + 1], _ = g[p - 1], A = g[p + 1], I = Math.abs; + if (m && (l = I(C - w), + d = I(y - w), + f = I(S - w)), + m) { + if (h = l > f && d < l ? y + S : l < f && d < f ? y + C : C + S, + h = h + 2 * w >>> 2, + s) + return void (g[p] = h); + c = e.t * e.c[t.g + w - y] + e.c[t.g + S - w] + } else + h = w > S && w > C || w < S && w < C ? A + _ + 2 * w >>> 2 : _ + A >>> 1, + c = e.t * e.c[t.g + w - S] + e.c[t.g + S - _]; + u = I(c); + var P = E(r); + if (P < t.n - e.v - 1) { + var k = x(a[u][0], a[u][1]); + b = T(r, k) + (P << k) + } else + b = T(r, e.v) + 1; + b = 1 & b ? -1 - (b >>> 1) : b >>> 1, + a[u][0] += I(b), + a[u][1] == t.f && (a[u][0] >>>= 1, + a[u][1] >>>= 1), + a[u][1]++, + h = c < 0 ? h - b : h + b, + t.i && (h < 0 ? h += e.w : h > t.g && (h -= e.w)), + g[p] = h >= 0 ? Math.min(h, t.g) : 0 + } + function k(t, e, r) { + for (var n = t[0].length, i = e; i <= r; i++) + t[i][0] = t[i - 1][1], + t[i][n - 1] = t[i - 1][n - 2] + } + function D(t) { + k(t, c, h), + k(t, n, o), + k(t, b, v) + } + function O(t, e, r, n, i, a, s, c, u, l, d, f, h) { + var m = 0 + , b = 1 + , g = i < p && i > o; + while (b < t.m) + m < t.m && (P(t, e, r, n, i, m, s[u], t.h && (g && l || !g && (d || (m & f) == h))), + P(t, e, r, n, a, m, s[u], t.h && (!g && l || g && (d || (m & f) == h))), + m += 2), + m > 8 && (P(t, e, r, n, i, b, c[u]), + P(t, e, r, n, a, b, c[u]), + b += 2); + D(n) + } + function R(t, e, r, a, s, p) { + O(t, e, r, a, n, c, s, p, 0, 0, 1, 0, 8), + O(t, e, r, a, u, b, s, p, 1, 0, 1, 0, 8), + O(t, e, r, a, i, l, s, p, 2, 1, 0, 3, 0), + O(t, e, r, a, d, g, s, p, 0, 0, 0, 3, 2), + O(t, e, r, a, o, f, s, p, 1, 0, 0, 3, 2), + O(t, e, r, a, h, v, s, p, 2, 1, 0, 3, 0) + } + function M(t, e, r, i, o, a) { + var s = a.length + , u = t.l; + o + 1 == t.s && (u = t.e - o * t.l); + for (var l = 6 * t.e * i + o * t.l, d = 0; d < 6; d++) { + for (var f = 0; f < u; f++) { + var h, p = a[d % s][f % s]; + h = 0 == p ? n + (d >>> 1) : 2 == p ? b + (d >>> 1) : c + d; + var m = t.h ? (2 * f / 3 & 2147483646 | f % 3 & 1) + (f % 3 >>> 1) : f >>> 1; + e[l + f] = r[h][m + 1] + } + l += t.e + } + } + t._decompressRAF = function(t, c) { + var u = S(t) + , l = w(t, u) + , d = A(u) + , b = new Int16Array(u.e * u.q); + null == c && (c = u.h ? [[1, 1, 0, 1, 1, 2], [1, 1, 2, 1, 1, 0], [2, 0, 1, 0, 2, 1], [1, 1, 2, 1, 1, 0], [1, 1, 0, 1, 1, 2], [0, 2, 1, 2, 0, 1]] : [[0, 1], [3, 2]]); + for (var C = [[e, i], [r, o], [a, f], [s, h], [p, g], [m, v]], _ = [], E = 0; E < y; E++) + _[E] = new Uint16Array(u.A); + for (var T = 0; T < u.s; T++) { + var x = I(d) + , P = I(d); + for (E = 0; E < y; E++) + for (var k = 0; k < u.A; k++) + _[E][k] = 0; + for (var O = 0; O < u.d; O++) { + R(u, d, l[T], _, x, P); + for (E = 0; E < 6; E++) + for (k = 0; k < u.A; k++) + _[C[E][0]][k] = _[C[E][1]][k]; + M(u, b, _, O, T, c); + for (E = n; E < y; E++) + if (-1 == [a, s, p, m].indexOf(E)) + for (k = 0; k < u.A; k++) + _[E][k] = 0; + D(_) + } + } + return b + } + }() + }(n) + }() + } + ).call(this, r("62e4")(t), r("4362")) + }, "7c73": function(t, e, r) { - var n, i = r("825a"), o = r("37e8"), a = r("7839"), s = r("d012"), c = r("1be4"), u = r("cc12"), d = r("f772"), l = ">", f = "<", h = "prototype", p = "script", m = d("IE_PROTO"), b = function() {}, g = function(t) { - return f + p + l + t + f + "/" + p + l - }, y = function(t) { + var n, i = r("825a"), o = r("37e8"), a = r("7839"), s = r("d012"), c = r("1be4"), u = r("cc12"), l = r("f772"), d = ">", f = "<", h = "prototype", p = "script", m = l("IE_PROTO"), b = function() {}, g = function(t) { + return f + p + d + t + f + "/" + p + d + }, v = function(t) { t.write(g("")), t.close(); var e = t.parentWindow.Object; return t = null, e - }, v = function() { + }, y = function() { var t, e = u("iframe"), r = "java" + p + ":"; return e.style.display = "none", c.appendChild(e), @@ -20240,7 +24130,7 @@ try { n = new ActiveXObject("htmlfile") } catch (e) {} - S = "undefined" != typeof document ? document.domain && n ? y(n) : v() : y(n); + S = "undefined" != typeof document ? document.domain && n ? v(n) : y() : v(n); var t = a.length; while (t--) delete S[h][a[t]]; @@ -20265,16 +24155,16 @@ , s = r("1626") , c = r("9ed3") , u = r("e163") - , d = r("d2bb") - , l = r("d44e") + , l = r("d2bb") + , d = r("d44e") , f = r("9112") , h = r("cb2d") , p = r("b622") , m = r("3f8c") , b = r("ae93") , g = a.PROPER - , y = a.CONFIGURABLE - , v = b.IteratorPrototype + , v = a.CONFIGURABLE + , y = b.IteratorPrototype , S = b.BUGGY_SAFARI_ITERATORS , w = p("iterator") , C = "keys" @@ -20286,8 +24176,8 @@ t.exports = function(t, e, r, a, p, b, E) { c(r, e, a); var T, x, P, k = function(t) { - if (t === p && M) - return M; + if (t === p && N) + return N; if (!S && t in R) return R[t]; switch (t) { @@ -20309,20 +24199,20 @@ return function() { return new r(this) } - }, D = e + " Iterator", O = !1, R = t.prototype, N = R[w] || R["@@iterator"] || p && R[p], M = !S && N || k(p), B = "Array" == e && R.entries || N; + }, D = e + " Iterator", O = !1, R = t.prototype, M = R[w] || R["@@iterator"] || p && R[p], N = !S && M || k(p), B = "Array" == e && R.entries || M; if (B && (T = u(B.call(new t)), - T !== Object.prototype && T.next && (o || u(T) === v || (d ? d(T, v) : s(T[w]) || h(T, w, I)), - l(T, D, !0, !0), + T !== Object.prototype && T.next && (o || u(T) === y || (l ? l(T, y) : s(T[w]) || h(T, w, I)), + d(T, D, !0, !0), o && (m[D] = I))), - g && p == _ && N && N.name !== _ && (!o && y ? f(R, "name", _) : (O = !0, - M = function() { - return i(N, this) + g && p == _ && M && M.name !== _ && (!o && v ? f(R, "name", _) : (O = !0, + N = function() { + return i(M, this) } )), p) if (x = { values: k(_), - keys: b ? M : k(C), + keys: b ? N : k(C), entries: k(A) }, E) @@ -20334,17 +24224,17 @@ proto: !0, forced: S || O }, x); - return o && !E || R[w] === M || h(R, w, M, { + return o && !E || R[w] === N || h(R, w, N, { name: p }), - m[e] = M, + m[e] = N, x } }, "7efc": function(t, e, r) { "use strict"; r.d(e, "a", (function() { - return l + return d } )), r.d(e, "b", (function() { @@ -20389,15 +24279,15 @@ for (var c in a) { var u = i["findTable"](t, c, r); if (u) { - var d = u[0] - , l = n[d]; - null == l && (l = a[c].parseTab(t, d, u[1], s)), - s[c] = n[d] = l + var l = u[0] + , d = n[l]; + null == d && (d = a[c].parseTab(t, l, u[1], s)), + s[c] = n[l] = d } } if (!s["head"]) { - l = a["CFF "].parseTab(t, 0, t.length); - s["CFF "] = l + d = a["CFF "].parseTab(t, 0, t.length); + s["CFF "] = d } return s } @@ -20413,10 +24303,10 @@ s += 2; var c = r.readUint(n, s); s += 4; - for (var u = [], d = 0; d < c; d++) { - var l = r.readUint(n, s); + for (var u = [], l = 0; l < c; l++) { + var d = r.readUint(n, s); s += 4, - u.push(e(n, d, l, o)) + u.push(e(n, l, d, o)) } return u } @@ -20427,9 +24317,9 @@ var c = n.readASCII(t, a, 4) , u = (n.readUint(t, a + 4), n.readUint(t, a + 8)) - , d = n.readUint(t, a + 12); + , l = n.readUint(t, a + 12); if (c == e) - return [u, d]; + return [u, l]; a += 16 } return null @@ -20566,32 +24456,32 @@ e += a[a.length - 1]; var u = []; e = o.readIndex(t, e, u); - var d = []; + var l = []; for (c = 0; c < u.length - 1; c++) - d.push(o.readDict(t, e + u[c], e + u[c + 1])); + l.push(o.readDict(t, e + u[c], e + u[c + 1])); e += u[u.length - 1]; - var l = d[0] + var d = l[0] , f = []; e = o.readIndex(t, e, f); var h = []; for (c = 0; c < f.length - 1; c++) h.push(n.readASCII(t, e + f[c], f[c + 1] - f[c])); if (e += f[f.length - 1], - o.readSubrs(t, e, l), - l["CharStrings"] && (l["CharStrings"] = o.readBytes(t, l["CharStrings"])), - l["ROS"]) { - e = l["FDArray"]; + o.readSubrs(t, e, d), + d["CharStrings"] && (d["CharStrings"] = o.readBytes(t, d["CharStrings"])), + d["ROS"]) { + e = d["FDArray"]; var p = []; e = o.readIndex(t, e, p), - l["FDArray"] = []; + d["FDArray"] = []; for (c = 0; c < p.length - 1; c++) { var m = o.readDict(t, e + p[c], e + p[c + 1]); o._readFDict(t, m, h), - l["FDArray"].push(m) + d["FDArray"].push(m) } e += p[p.length - 1], - e = l["FDSelect"], - l["FDSelect"] = []; + e = d["FDSelect"], + d["FDSelect"] = []; var b = t[e]; if (e++, 3 != b) @@ -20599,12 +24489,12 @@ var g = n.readUshort(t, e); e += 2; for (c = 0; c < g + 1; c++) - l["FDSelect"].push(n.readUshort(t, e), t[e + 2]), + d["FDSelect"].push(n.readUshort(t, e), t[e + 2]), e += 3 } - return l["charset"] && (l["charset"] = o.readCharset(t, l["charset"], l["CharStrings"].length)), - o._readFDict(t, l, h), - l + return d["charset"] && (d["charset"] = o.readCharset(t, d["charset"], d["CharStrings"].length)), + o._readFDict(t, d, h), + d }, _readFDict: function(t, e, r) { var n, o = i["T"].CFF; @@ -20733,29 +24623,29 @@ t[e + 3], t[e + 4], 1) - , d = null - , l = null; - s <= 20 && (d = s, + , l = null + , d = null; + s <= 20 && (l = s, u = 1), - 12 == s && (d = 100 * s + c, + 12 == s && (l = 100 * s + c, u = 2), - 19 != s && 20 != s || (d = s, + 19 != s && 20 != s || (l = s, u = 2), - 21 <= s && s <= 27 && (d = s, + 21 <= s && s <= 27 && (l = s, u = 1), - 28 == s && (l = o.readShort(t, e + 1), + 28 == s && (d = o.readShort(t, e + 1), u = 3), - 29 <= s && s <= 31 && (d = s, + 29 <= s && s <= 31 && (l = s, u = 1), - 32 <= s && s <= 246 && (l = s - 139, + 32 <= s && s <= 246 && (d = s - 139, u = 1), - 247 <= s && s <= 250 && (l = 256 * (s - 247) + c + 108, + 247 <= s && s <= 250 && (d = 256 * (s - 247) + c + 108, u = 2), - 251 <= s && s <= 254 && (l = 256 * -(s - 251) - c - 108, + 251 <= s && s <= 254 && (d = 256 * -(s - 251) - c - 108, u = 2), - 255 == s && (l = o.readInt(t, e + 1) / 65535, + 255 == s && (d = o.readInt(t, e + 1) / 65535, u = 5), - a.push(null != l ? l : "o" + d), + a.push(null != d ? d : "o" + l), e += u } return a @@ -20771,20 +24661,20 @@ t[e + 3], t[e + 4], 1) - , d = null - , l = null; - if (28 == s && (l = n.readShort(t, e + 1), + , l = null + , d = null; + if (28 == s && (d = n.readShort(t, e + 1), u = 3), - 29 == s && (l = n.readInt(t, e + 1), + 29 == s && (d = n.readInt(t, e + 1), u = 5), - 32 <= s && s <= 246 && (l = s - 139, + 32 <= s && s <= 246 && (d = s - 139, u = 1), - 247 <= s && s <= 250 && (l = 256 * (s - 247) + c + 108, + 247 <= s && s <= 250 && (d = 256 * (s - 247) + c + 108, u = 2), - 251 <= s && s <= 254 && (l = 256 * -(s - 251) - c - 108, + 251 <= s && s <= 254 && (d = 256 * -(s - 251) - c - 108, u = 2), 255 == s) - throw l = n.readInt(t, e + 1) / 65535, + throw d = n.readInt(t, e + 1) / 65535, u = 5, "unknown number"; if (30 == s) { @@ -20800,22 +24690,22 @@ 15 == m) break } - for (var b = "", g = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ".", "e", "e-", "reserved", "-", "endOfNumber"], y = 0; y < f.length; y++) - b += g[f[y]]; - l = parseFloat(b) + for (var b = "", g = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ".", "e", "e-", "reserved", "-", "endOfNumber"], v = 0; v < f.length; v++) + b += g[f[v]]; + d = parseFloat(b) } if (s <= 21) { - var v = ["version", "Notice", "FullName", "FamilyName", "Weight", "FontBBox", "BlueValues", "OtherBlues", "FamilyBlues", "FamilyOtherBlues", "StdHW", "StdVW", "escape", "UniqueID", "XUID", "charset", "Encoding", "CharStrings", "Private", "Subrs", "defaultWidthX", "nominalWidthX"]; - if (d = v[s], + var y = ["version", "Notice", "FullName", "FamilyName", "Weight", "FontBBox", "BlueValues", "OtherBlues", "FamilyBlues", "FamilyOtherBlues", "StdHW", "StdVW", "escape", "UniqueID", "XUID", "charset", "Encoding", "CharStrings", "Private", "Subrs", "defaultWidthX", "nominalWidthX"]; + if (l = y[s], u = 1, 12 == s) { - v = ["Copyright", "isFixedPitch", "ItalicAngle", "UnderlinePosition", "UnderlineThickness", "PaintType", "CharstringType", "FontMatrix", "StrokeWidth", "BlueScale", "BlueShift", "BlueFuzz", "StemSnapH", "StemSnapV", "ForceBold", "", "", "LanguageGroup", "ExpansionFactor", "initialRandomSeed", "SyntheticBase", "PostScript", "BaseFontName", "BaseFontBlend", "", "", "", "", "", "", "ROS", "CIDFontVersion", "CIDFontRevision", "CIDFontType", "CIDCount", "UIDBase", "FDArray", "FDSelect", "FontName"]; - d = v[c], + y = ["Copyright", "isFixedPitch", "ItalicAngle", "UnderlinePosition", "UnderlineThickness", "PaintType", "CharstringType", "FontMatrix", "StrokeWidth", "BlueScale", "BlueShift", "BlueFuzz", "StemSnapH", "StemSnapV", "ForceBold", "", "", "LanguageGroup", "ExpansionFactor", "initialRandomSeed", "SyntheticBase", "PostScript", "BaseFontName", "BaseFontBlend", "", "", "", "", "", "", "ROS", "CIDFontVersion", "CIDFontRevision", "CIDFontType", "CIDCount", "UIDBase", "FDArray", "FDSelect", "FontName"]; + l = y[c], u = 2 } } - null != d ? (o[d] = 1 == a.length ? a[0] : a, - a = []) : a.push(l), + null != l ? (o[l] = 1 == a.length ? a[0] : a, + a = []) : a.push(d), e += u } return o @@ -20837,14 +24727,14 @@ e += 2; var c = a(t, e); e += 2; - for (var u = [], d = 0; d < c; d++) { - var l = a(t, e); + for (var u = [], l = 0; l < c; l++) { + var d = a(t, e); e += 2; var f = a(t, e); e += 2; var h = o.readUint(t, e); e += 4; - var p = "p" + l + "e" + f + var p = "p" + d + "e" + f , m = u.indexOf(h); if (-1 == m) { m = n.tables.length; @@ -20883,24 +24773,24 @@ e += 2; var u = o(t, e); e += 2; - var d = u >>> 1; + var l = u >>> 1; r.searchRange = o(t, e), e += 2, r.entrySelector = o(t, e), e += 2, r.rangeShift = o(t, e), e += 2, - r.endCount = a(t, e, d), - e += 2 * d, + r.endCount = a(t, e, l), + e += 2 * l, e += 2, - r.startCount = a(t, e, d), - e += 2 * d, + r.startCount = a(t, e, l), + e += 2 * l, r.idDelta = []; - for (var l = 0; l < d; l++) + for (var d = 0; d < l; d++) r.idDelta.push(n.readShort(t, e)), e += 2; - return r.idRangeOffset = a(t, e, d), - e += 2 * d, + return r.idRangeOffset = a(t, e, l), + e += 2 * l, r.glyphIdArray = a(t, e, s + c - e >>> 1), r }, @@ -20962,28 +24852,28 @@ n.readUshort(t, e); e += 2, e += 4; - for (var d = o + u, l = 0; l < 3; l++) { - var f = n.readUshort(t, d); - d += 2; - var h = n.readUshort(t, d); - d += 2; - var p = n.readUint(t, d); - d += 4; + for (var l = o + u, d = 0; d < 3; d++) { + var f = n.readUshort(t, l); + l += 2; + var h = n.readUshort(t, l); + l += 2; + var p = n.readUint(t, l); + l += 4; var m = h - f + 1 , b = o + u + p , g = n.readUshort(t, b); if (b += 2, 1 != g) throw g; - var y = n.readUshort(t, b); + var v = n.readUshort(t, b); b += 2; - var v = n.readUint(t, b); + var y = n.readUint(t, b); b += 4; for (var S = [], w = 0; w < m; w++) { var C = n.readUint(t, b + 4 * w); - S.push(v + C) + S.push(y + C) } - s.push([f, h, y, S]) + s.push([f, h, v, S]) } } return s @@ -21032,22 +24922,22 @@ return null; s.instructions = r.readBytes(n, a, u), a += u; - var d = s.endPts[s.noc - 1] + 1; + var l = s.endPts[s.noc - 1] + 1; s.flags = []; - for (c = 0; c < d; c++) { - var l = n[a]; + for (c = 0; c < l; c++) { + var d = n[a]; if (a++, - s.flags.push(l), - 0 != (8 & l)) { + s.flags.push(d), + 0 != (8 & d)) { var f = n[a]; a++; for (var h = 0; h < f; h++) - s.flags.push(l), + s.flags.push(d), c++ } } s.xs = []; - for (c = 0; c < d; c++) { + for (c = 0; c < l; c++) { var p = 0 != (2 & s.flags[c]) , m = 0 != (16 & s.flags[c]); p ? (s.xs.push(m ? n[a] : -n[a]), @@ -21055,7 +24945,7 @@ a += 2) } s.ys = []; - for (c = 0; c < d; c++) { + for (c = 0; c < l; c++) { p = 0 != (4 & s.flags[c]), m = 0 != (32 & s.flags[c]); p ? (s.ys.push(m ? n[a] : -n[a]), @@ -21064,16 +24954,16 @@ } var b = 0 , g = 0; - for (c = 0; c < d; c++) + for (c = 0; c < l; c++) b += s.xs[c], g += s.ys[c], s.xs[c] = b, s.ys[c] = g } else { - var y, v = 1, S = 2, w = 8, C = 32, _ = 64, A = 128, I = 256; + var v, y = 1, S = 2, w = 8, C = 32, _ = 64, A = 128, I = 256; s.parts = []; do { - y = r.readUshort(n, a), + v = r.readUshort(n, a), a += 2; var E = { m: { @@ -21090,7 +24980,7 @@ if (s.parts.push(E), E.glyphIndex = r.readUshort(n, a), a += 2, - y & v) { + v & y) { var T = r.readShort(n, a); a += 2; var x = r.readShort(n, a); @@ -21101,14 +24991,14 @@ x = r.readInt8(n, a); a++ } - y & S ? (E.m.tx = T, + v & S ? (E.m.tx = T, E.m.ty = x) : (E.p1 = T, E.p2 = x), - y & w ? (E.m.a = E.m.d = r.readF2dot14(n, a), - a += 2) : y & _ ? (E.m.a = r.readF2dot14(n, a), + v & w ? (E.m.a = E.m.d = r.readF2dot14(n, a), + a += 2) : v & _ ? (E.m.a = r.readF2dot14(n, a), a += 2, E.m.d = r.readF2dot14(n, a), - a += 2) : y & A && (E.m.a = r.readF2dot14(n, a), + a += 2) : v & A && (E.m.a = r.readF2dot14(n, a), a += 2, E.m.b = r.readF2dot14(n, a), a += 2, @@ -21116,8 +25006,8 @@ a += 2, E.m.d = r.readF2dot14(n, a), a += 2) - } while (y & C); - if (y & I) { + } while (v & C); + if (v & I) { var P = r.readUshort(n, a); a += 2, s.instr = []; @@ -21180,7 +25070,7 @@ o += u } return c - }, c = a(n), u = s(n), d = (a(n), + }, c = a(n), u = s(n), l = (a(n), s(n), function(t) { for (var e, n = 0, i = t.length, o = 0; o <= i; o++) { @@ -21199,27 +25089,27 @@ break } if (28 == c || 29 == c || c >= 32 && c <= 254) { - var d; + var l; if (28 == c) - d = r.readShort(t, n), + l = r.readShort(t, n), n += 2; else if (29 == c) - d = r.readInt(t, n), + l = r.readInt(t, n), n += 4; else if (c >= 32 && c <= 246) - d = c - 139; + l = c - 139; else if (c >= 247 && c <= 250) { - var l = r.readUint8(t, n); + var d = r.readUint8(t, n); n += 1, - d = 256 * (c - 247) + l + 108 + l = 256 * (c - 247) + d + 108 } else { if (!(c >= 251 && c <= 254)) throw "IllegalArgumentExceptionnew"; - l = r.readUint8(t, n); + d = r.readUint8(t, n); n += 1, - d = 256 * -(c - 251) - l - 108 + l = 256 * -(c - 251) - d - 108 } - a[s] = d, + a[s] = l, s += 1 } else if (30 != c) throw "invalid DICT data b0 byte: " + c @@ -21227,9 +25117,9 @@ } return e } - ), l = (new ArrayBuffer(c.byteLength), - 0); l <= c.byteLength; l++) - d(u[l]); + ), d = (new ArrayBuffer(c.byteLength), + 0); d <= c.byteLength; d++) + l(u[d]); var f = {}; if (f.noc = r.readShort(n, o), o += 2, @@ -21243,7 +25133,7 @@ o += 2, f.noc > 0) { f.endPts = []; - for (l = 0; l < f.noc; l++) + for (d = 0; d < f.noc; d++) f.endPts.push(r.readUshort(n, o)), o += 2; var h = r.readUshort(n, o); @@ -21254,7 +25144,7 @@ o += h; var p = f.endPts[f.noc - 1] + 1; f.flags = []; - for (l = 0; l < p; l++) { + for (d = 0; d < p; d++) { var m = n[o]; if (o++, f.flags.push(m), @@ -21263,32 +25153,32 @@ o++; for (var g = 0; g < b; g++) f.flags.push(m), - l++ + d++ } } f.xs = []; - for (l = 0; l < p; l++) { - var y = 0 != (2 & f.flags[l]) - , v = 0 != (16 & f.flags[l]); - y ? (f.xs.push(v ? n[o] : -n[o]), - o++) : v ? f.xs.push(0) : (f.xs.push(r.readShort(n, o)), + for (d = 0; d < p; d++) { + var v = 0 != (2 & f.flags[d]) + , y = 0 != (16 & f.flags[d]); + v ? (f.xs.push(y ? n[o] : -n[o]), + o++) : y ? f.xs.push(0) : (f.xs.push(r.readShort(n, o)), o += 2) } f.ys = []; - for (l = 0; l < p; l++) { - y = 0 != (4 & f.flags[l]), - v = 0 != (32 & f.flags[l]); - y ? (f.ys.push(v ? n[o] : -n[o]), - o++) : v ? f.ys.push(0) : (f.ys.push(r.readShort(n, o)), + for (d = 0; d < p; d++) { + v = 0 != (4 & f.flags[d]), + y = 0 != (32 & f.flags[d]); + v ? (f.ys.push(y ? n[o] : -n[o]), + o++) : y ? f.ys.push(0) : (f.ys.push(r.readShort(n, o)), o += 2) } var S = 0 , w = 0; - for (l = 0; l < p; l++) - S += f.xs[l], - w += f.ys[l], - f.xs[l] = S, - f.ys[l] = w + for (d = 0; d < p; d++) + S += f.xs[d], + w += f.ys[d], + f.xs[d] = S, + f.ys[d] = w } else { var C, _ = 1, A = 2, I = 8, E = 32, T = 64, x = 128, P = 256; f.parts = []; @@ -21341,7 +25231,7 @@ var R = r.readUshort(n, o); o += 2, f.instr = []; - for (l = 0; l < R; l++) + for (d = 0; d < R; d++) f.instr.push(n[o]), o++ } @@ -21411,18 +25301,18 @@ , s = [] , c = n["maxp"]["numGlyphs"] , u = n["hhea"]["numberOfHMetrics"] - , d = 0 , l = 0 + , d = 0 , f = 0; while (f < u) - d = o.readUshort(t, e + (f << 2)), - l = o.readShort(t, e + (f << 2) + 2), - a.push(d), - s.push(l), + l = o.readUshort(t, e + (f << 2)), + d = o.readShort(t, e + (f << 2) + 2), + a.push(l), + s.push(d), f++; while (f < c) - a.push(d), - s.push(l), + a.push(l), + s.push(d), f++; return { aWidth: a, @@ -21442,13 +25332,13 @@ for (var u = { glyph1: [], rval: [] - }, d = 0; d < c; d++) { + }, l = 0; l < c; l++) { e += 2; r = o.readUshort(t, e); e += 2; - var l = o.readUshort(t, e); + var d = o.readUshort(t, e); e += 2; - var f = l >>> 8; + var f = d >>> 8; f &= 15, 0 == f && (e = a.readFormat0(t, e, u)) } @@ -21466,12 +25356,12 @@ }, u = 0; u < s; u++) { o.readUint(t, e); e += 4; - var d = o.readUshort(t, e); + var l = o.readUshort(t, e); e += 2; o.readUshort(t, e); e += 2; - var l = 255 & d; - 0 == l && (e = a.readFormat0(t, e, c)) + var d = 255 & l; + 0 == d && (e = a.readFormat0(t, e, c)) } return c }, @@ -21487,9 +25377,9 @@ for (var c = 0; c < s; c++) { var u = o(t, e); e += 2; - var d = o(t, e); + var l = o(t, e); e += 2; - var l = n.readShort(t, e); + var d = n.readShort(t, e); e += 2, u != a && (r.glyph1.push(u), r.rval.push({ @@ -21497,8 +25387,8 @@ vals: [] })); var f = r.rval[r.rval.length - 1]; - f.glyph2.push(d), - f.vals.push(l), + f.glyph2.push(l), + f.vals.push(d), a = u } return e @@ -21541,8 +25431,8 @@ e += 2; n.readUshort(t, e); e += 2; - for (var s = ["copyright", "fontFamily", "fontSubfamily", "ID", "fullName", "version", "postScriptName", "trademark", "manufacturer", "designer", "description", "urlVendor", "urlDesigner", "licence", "licenceURL", "---", "typoFamilyName", "typoSubfamilyName", "compatibleFull", "sampleText", "postScriptCID", "wwsFamilyName", "wwsSubfamilyName", "lightPalette", "darkPalette"], c = e, u = n.readUshort, d = 0; d < a; d++) { - var l = u(t, e); + for (var s = ["copyright", "fontFamily", "fontSubfamily", "ID", "fullName", "version", "postScriptName", "trademark", "manufacturer", "designer", "description", "urlVendor", "urlDesigner", "licence", "licenceURL", "---", "typoFamilyName", "typoSubfamilyName", "compatibleFull", "sampleText", "postScriptCID", "wwsFamilyName", "wwsSubfamilyName", "lightPalette", "darkPalette"], c = e, u = n.readUshort, l = 0; l < a; l++) { + var d = u(t, e); e += 2; var f = u(t, e); e += 2; @@ -21554,14 +25444,14 @@ e += 2; var b = u(t, e); e += 2; - var g, y = c + 12 * a + b; - 0 == l || 3 == l && 0 == f || 1 == l && 25 == f ? g = n.readUnicode(t, y, m / 2) : 0 == f ? g = n.readASCII(t, y, m) : 1 == f || 3 == f || 4 == f || 5 == f || 10 == f ? g = n.readUnicode(t, y, m / 2) : 1 == l ? (g = n.readASCII(t, y, m), - console.log("reading unknown MAC encoding " + f + " as ASCII")) : (console.log("unknown encoding " + f + ", platformID: " + l), - g = n.readASCII(t, y, m)); - var v = "p" + l + "," + h.toString(16); - null == o[v] && (o[v] = {}), - o[v][s[p]] = g, - o[v]["_lang"] = h + var g, v = c + 12 * a + b; + 0 == d || 3 == d && 0 == f || 1 == d && 25 == f ? g = n.readUnicode(t, v, m / 2) : 0 == f ? g = n.readASCII(t, v, m) : 1 == f || 3 == f || 4 == f || 5 == f || 10 == f ? g = n.readUnicode(t, v, m / 2) : 1 == d ? (g = n.readASCII(t, v, m), + console.log("reading unknown MAC encoding " + f + " as ASCII")) : (console.log("unknown encoding " + f + ", platformID: " + d), + g = n.readASCII(t, v, m)); + var y = "p" + d + "," + h.toString(16); + null == o[y] && (o[y] = {}), + o[y][s[p]] = g, + o[y]["_lang"] = h } var S = i["T"].name.selectOne(o) , w = "fontFamily"; @@ -21742,17 +25632,17 @@ var c = n.readUshort(t, e); e += 2; for (var u = 0; u < c; u++) { - var d = n.readUshort(t, e); - e += 2; var l = n.readUshort(t, e); e += 2; + var d = n.readUshort(t, e); + e += 2; var f = n.readUint(t, e); e += 4; var h = n.readUint(t, e); e += 4; var p = new Uint8Array(t.buffer,a + f + s,h); 31 == p[0] && 139 == p[1] && 8 == p[2] && (p = pako["inflate"](p)); - for (var m = n.readUTF8(p, 0, p.length), b = d; b <= l; b++) + for (var m = n.readUTF8(p, 0, p.length), b = l; b <= d; b++) o.entries[b] = m } return o @@ -21760,12 +25650,12 @@ }, i["T"].sbix = { parseTab: function(t, e, r, n) { - for (var o = n["maxp"]["numGlyphs"], a = e, s = i["B"], c = s.readUint(t, e + 4), u = [], d = c - 1; d < c; d++) - for (var l = a + s.readUint(t, e + 8 + 4 * d), f = 0; f < o; f++) { - var h = s.readUint(t, l + 4 + 4 * f) - , p = s.readUint(t, l + 4 + 4 * f + 4); + for (var o = n["maxp"]["numGlyphs"], a = e, s = i["B"], c = s.readUint(t, e + 4), u = [], l = c - 1; l < c; l++) + for (var d = a + s.readUint(t, e + 8 + 4 * l), f = 0; f < o; f++) { + var h = s.readUint(t, d + 4 + 4 * f) + , p = s.readUint(t, d + 4 + 4 * f + 4); if (h != p) { - var m = l + h + var m = d + h , b = s.readASCII(t, m + 4, 4); if ("png " != b) throw b; @@ -21789,15 +25679,15 @@ e += 4; var u = n.readUshort(t, e); e += 2; - for (var d = {}, l = o + s, f = 0; f < a; f++) - d["g" + n.readUshort(t, l)] = [n.readUshort(t, l + 2), n.readUshort(t, l + 4)], - l += 6; + for (var l = {}, d = o + s, f = 0; f < a; f++) + l["g" + n.readUshort(t, d)] = [n.readUshort(t, d + 2), n.readUshort(t, d + 4)], + d += 6; var h = []; - l = o + c; + d = o + c; for (f = 0; f < u; f++) - h.push(n.readUshort(t, l), n.readUshort(t, l + 2)), - l += 4; - return [d, h] + h.push(n.readUshort(t, d), n.readUshort(t, d + 2)), + d += 4; + return [l, h] } }, i["T"].cpal = { @@ -21843,17 +25733,17 @@ var c = []; for (a = 0; a < o.length; a++) { var u = n(t, o, a, r) - , d = o[a] - , l = t["hmtx"].aWidth[d] + u[2]; + , l = o[a] + , d = t["hmtx"].aWidth[l] + u[2]; c.push({ - g: d, + g: l, cl: a, dx: 0, dy: 0, - ax: l, + ax: d, ay: 0 }), - l + d } return c }, @@ -21862,12 +25752,12 @@ cmds: [], crds: [] }, o = 0, a = 0, s = 0; s < e.length; s++) { - for (var c = e[s], u = i["U"]["glyphToPath"](t, c["g"]), d = u["crds"], l = 0; l < d.length; l += 2) - n.crds.push(d[l] + o + c["dx"]), - n.crds.push(d[l + 1] + a + c["dy"]); + for (var c = e[s], u = i["U"]["glyphToPath"](t, c["g"]), l = u["crds"], d = 0; d < l.length; d += 2) + n.crds.push(l[d] + o + c["dx"]), + n.crds.push(l[d + 1] + a + c["dy"]); r && n.cmds.push(r); - for (l = 0; l < u["cmds"].length; l++) - n.cmds.push(u["cmds"][l]); + for (d = 0; d < u["cmds"].length; d++) + n.cmds.push(u["cmds"][d]); var f = n.cmds.length; r && 0 != f && "X" != n.cmds[f - 1] && n.cmds.push("X"), o += c["ax"], @@ -21905,39 +25795,39 @@ } var c = e["_ctab"] , u = c.format - , d = -1; + , l = -1; if (0 == u) - d = n >= c.map.length ? 0 : c.map[n]; + l = n >= c.map.length ? 0 : c.map[n]; else if (4 == u) { - var l = c.endCount; - if (d = 0, - n <= l[l.length - 1]) { - var f = t(l, 1, n); - if (l[f] < n && f++, + var d = c.endCount; + if (l = 0, + n <= d[d.length - 1]) { + var f = t(d, 1, n); + if (d[f] < n && f++, n >= c.startCount[f]) { var h = 0; h = 0 != c.idRangeOffset[f] ? c.glyphIdArray[n - c.startCount[f] + (c.idRangeOffset[f] >> 1) - (c.idRangeOffset.length - f)] : n + c.idDelta[f], - d = 65535 & h + l = 65535 & h } } } else if (6 == u) { var p = n - c.firstCode , m = c.glyphIdArray; - d = p < 0 || p >= m.length ? 0 : m[p] + l = p < 0 || p >= m.length ? 0 : m[p] } else { if (12 != u) throw "unknown cmap table format " + c.format; var b = c.groups; - if (d = 0, + if (l = 0, n <= b[b.length - 2]) { s = t(b, 3, n); - b[s] <= n && n <= b[s + 1] && (d = b[s + 2] + (n - b[s])) + b[s] <= n && n <= b[s + 1] && (l = b[s + 2] + (n - b[s])) } } var g = e["SVG "] - , y = e["loca"]; - return 0 == d || null != e["CFF "] || null != g && null != g.entries[d] || !y || y[d] != y[d + 1] || null != r[n] || (d = 0), - d + , v = e["loca"]; + return 0 == l || null != e["CFF "] || null != g && null != g.entries[l] || !v || v[l] != v[l + 1] || null != r[n] || (l = 0), + l } return i }(), @@ -21951,33 +25841,33 @@ , s = t["COLR"] , c = t["CBLC"] , u = t["CBDT"] - , d = t["sbix"] - , l = window["UPNG"] + , l = t["sbix"] + , d = window["UPNG"] , f = i["U"] , h = null; - if (c && l) + if (c && d) for (var p = 0; p < c.length; p++) c[p][0] <= e && e <= c[p][1] && (h = c[p]); - if (h || d && d[e]) { + if (h || l && l[e]) { if (h && 17 != h[2]) throw "not a PNG"; null == t["__tmp"] && (t["__tmp"] = {}); var m = t["__tmp"]["g" + e]; if (null == m) { var b, g; - if (d) - b = d[e], + if (l) + b = l[e], g = b.length; else { - var y = h[3][e - h[0]] + 5; - g = u[y + 1] << 16 | u[y + 2] << 8 | u[y + 3], - y += 4, - b = new Uint8Array(u.buffer,u.byteOffset + y,g) + var v = h[3][e - h[0]] + 5; + g = u[v + 1] << 16 | u[v + 2] << 8 | u[v + 3], + v += 4, + b = new Uint8Array(u.buffer,u.byteOffset + v,g) } - var v = ""; + var y = ""; for (p = 0; p < g; p++) - v += String.fromCharCode(b[p]); - m = t["__tmp"]["g" + e] = "data:image/png;base64," + btoa(v) + y += String.fromCharCode(b[p]); + m = t["__tmp"]["g" + e] = "data:image/png;base64," + btoa(y) } n.cmds.push(m); var S = 1.15 * t["head"]["unitsPerEm"] @@ -22010,7 +25900,7 @@ } } else if (a) { var R = a["Private"] - , N = { + , M = { x: 0, y: 0, stack: [], @@ -22020,17 +25910,14 @@ open: !1 }; if (a["ROS"]) { - var M = 0; - while (a["FDSelect"][M + 2] <= e) - M += 2; - try{ - R = a["FDArray"][a["FDSelect"][M + 1]]["Private"] - } - catch(e){ - R = a["FDArray"][a["FDSelect"][M + 1]] - } + var N = 0; + while (a["FDSelect"][N + 2] <= e) + N += 2; + R = a["FDArray"][a["FDSelect"][N + 1]]["Private"] } - f["_drawCFF"](a["CharStrings"][e], N, a, R, n) + if (!(e < a["CharStrings"].length)) + return null; + f["_drawCFF"](a["CharStrings"][e], M, a, R, n) } else if (t["glyf"]) f["_drawGlyf"](e, t, n); else { @@ -22052,21 +25939,21 @@ for (var o = 0 == n ? 0 : t.endPts[n - 1] + 1, a = t.endPts[n], s = o; s <= a; s++) { var c = s == o ? a : s - 1 , u = s == a ? o : s + 1 - , d = 1 & t.flags[s] - , l = 1 & t.flags[c] + , l = 1 & t.flags[s] + , d = 1 & t.flags[c] , f = 1 & t.flags[u] , h = t.xs[s] , p = t.ys[s]; if (s == o) - if (d) { - if (!l) { + if (l) { + if (!d) { r.MoveTo(e, h, p); continue } r.MoveTo(e, t.xs[c], t.ys[c]) } else - l ? r.MoveTo(e, t.xs[c], t.ys[c]) : r.MoveTo(e, Math.floor(.5 * (t.xs[c] + h)), Math.floor(.5 * (t.ys[c] + p))); - d ? l && r.LineTo(e, h, p) : f ? r.qCurveTo(e, h, p, t.xs[u], t.ys[u]) : r.qCurveTo(e, h, p, Math.floor(.5 * (h + t.xs[u])), Math.floor(.5 * (p + t.ys[u]))) + d ? r.MoveTo(e, t.xs[c], t.ys[c]) : r.MoveTo(e, Math.floor(.5 * (t.xs[c] + h)), Math.floor(.5 * (t.ys[c] + p))); + l ? d && r.LineTo(e, h, p) : f ? r.qCurveTo(e, h, p, t.xs[u], t.ys[u]) : r.qCurveTo(e, h, p, Math.floor(.5 * (h + t.xs[u])), Math.floor(.5 * (p + t.ys[u]))) } r.ClosePath(e) } @@ -22081,9 +25968,9 @@ i["U"]["_drawGlyf"](a.glyphIndex, e, o); for (var s = a.m, c = 0; c < o.crds.length; c += 2) { var u = o.crds[c] - , d = o.crds[c + 1]; - r.crds.push(u * s.a + d * s.c + s.tx), - r.crds.push(u * s.b + d * s.d + s.ty) + , l = o.crds[c + 1]; + r.crds.push(u * s.a + l * s.c + s.tx), + r.crds.push(u * s.b + l * s.d + s.ty) } for (c = 0; c < o.cmds.length; c++) r.cmds.push(o.cmds[c]) @@ -22116,36 +26003,36 @@ L: 2, Q: 4, C: 6 - }, u = 0, d = 0, l = 0, f = 0, h = 0, p = 0, m = 0; m < r.length; m++) { - var b, g, y, v, S = r[m], w = c[S] ? c[S] : 0, C = []; + }, u = 0, l = 0, d = 0, f = 0, h = 0, p = 0, m = 0; m < r.length; m++) { + var b, g, v, y, S = r[m], w = c[S] ? c[S] : 0, C = []; if ("L" == S) b = n[s] - u, - g = n[s + 1] - d, - y = i(b + l), - v = i(g + f), - "Z" == r[m + 1] && n[s] == h && n[s + 1] == p ? (y = b, - v = g) : 0 == y && 0 == v || (0 == y ? C.push("v", v) : 0 == v ? C.push("h", y) : C.push("l", y, v)); + g = n[s + 1] - l, + v = i(b + d), + y = i(g + f), + "Z" == r[m + 1] && n[s] == h && n[s + 1] == p ? (v = b, + y = g) : 0 == v && 0 == y || (0 == v ? C.push("v", y) : 0 == y ? C.push("h", v) : C.push("l", v, y)); else { C.push(S.toLowerCase()); for (var _ = 0; _ < w; _ += 2) b = n[s + _] - u, - g = n[s + _ + 1] - d, - y = i(b + l), - v = i(g + f), - C.push(y, v) + g = n[s + _ + 1] - l, + v = i(b + d), + y = i(g + f), + C.push(v, y) } - 0 != w && (l += b - y, - f += g - v); + 0 != w && (d += b - v, + f += g - y); var A = C; for (_ = 0; _ < A.length; _++) a.push(A[_]); 0 != w && (s += w, u = n[s - 2], - d = n[s - 1]), + l = n[s - 1]), "M" == S && (h = u, - p = d), + p = l), "Z" == S && (u = h, - d = p) + l = p) } return o(a) }, @@ -22179,8 +26066,8 @@ i += 4; else if ("d" == c[0]) { var u = window["UPNG"] - , d = a[i] - , l = a[i + 1] + , l = a[i] + , d = a[i + 1] , f = a[i + 2] , h = a[i + 3] , p = a[i + 4] @@ -22189,7 +26076,7 @@ , g = a[i + 7]; if (i += 8, null == u) { - n.moveTo(d, l), + n.moveTo(l, d), n.lineTo(f, h), n.lineTo(p, m), n.lineTo(b, g), @@ -22197,7 +26084,7 @@ continue } n.save(); - for (var y = f - d, v = h - l, S = Math.sqrt(y * y + v * v), w = Math.atan2(v, y), C = b - d, _ = g - l, A = Math.sqrt(C * C + _ * _), I = Math.sign(y * _ - v * C), E = atob(c.slice(22)), T = [], x = 0; x < E.length; x++) + for (var v = f - l, y = h - d, S = Math.sqrt(v * v + y * y), w = Math.atan2(y, v), C = b - l, _ = g - d, A = Math.sqrt(C * C + _ * _), I = Math.sign(v * _ - y * C), E = atob(c.slice(22)), T = [], x = 0; x < E.length; x++) T[x] = E.charCodeAt(x); var P = u["decode"](new Uint8Array(T)) , k = P["width"] @@ -22208,7 +26095,7 @@ t.width == k && t.height == D || (t.width = k, t.height = D), e.putImageData(new ImageData(new Uint8ClampedArray(O.buffer),k,D), 0, 0), - n.translate(d, l), + n.translate(l, d), n.rotate(w), n.scale(S * (k / D) / k, I * A / D), n.drawImage(t, 0, 0), @@ -22249,41 +26136,35 @@ } }, _drawCFF: function(t, e, r, n, o) { - try{ - var EE = n["nominalWidthX"]; - } - catch(e){ - var EE = 0; - } var a = e.stack , s = e.nStems , c = e.haveWidth , u = e.width - , d = e.open - , l = 0 + , l = e.open + , d = 0 , f = e.x , h = e.y , p = 0 , m = 0 , b = 0 , g = 0 - , y = 0 , v = 0 + , y = 0 , S = 0 , w = 0 , C = 0 , _ = 0 , A = i["T"].CFF , I = i["U"]["P"] - , E = EE + , E = n["nominalWidthX"] , T = { val: 0, size: 0 }; - while (t && l < t.length) { - A.getCharString(t, l, T); + while (t && d < t.length) { + A.getCharString(t, d, T); var x = T.val; - if (l += T.size, + if (d += T.size, "o1" == x || "o18" == x) L = a.length % 2 !== 0, L && !c && (u = a.shift() + E), @@ -22299,10 +26180,10 @@ } else if ("o4" == x) a.length > 1 && !c && (u = a.shift() + E, c = !0), - d && I.ClosePath(o), + l && I.ClosePath(o), h += a.pop(), I.MoveTo(o, f, h), - d = !0; + l = !0; else if ("o5" == x) while (a.length > 0) f += a.shift(), @@ -22340,71 +26221,71 @@ g = m + a.shift(), C = b + a.shift(), _ = g, - y = C + a.shift(), - v = g, - S = y + a.shift(), + v = C + a.shift(), + y = g, + S = v + a.shift(), w = h, f = S + a.shift(), I.CurveTo(o, p, m, b, g, C, _), - I.CurveTo(o, y, v, S, w, f, h)), + I.CurveTo(o, v, y, S, w, f, h)), "o1235" == x && (p = f + a.shift(), m = h + a.shift(), b = p + a.shift(), g = m + a.shift(), C = b + a.shift(), _ = g + a.shift(), - y = C + a.shift(), - v = _ + a.shift(), - S = y + a.shift(), - w = v + a.shift(), + v = C + a.shift(), + y = _ + a.shift(), + S = v + a.shift(), + w = y + a.shift(), f = S + a.shift(), h = w + a.shift(), a.shift(), I.CurveTo(o, p, m, b, g, C, _), - I.CurveTo(o, y, v, S, w, f, h)), + I.CurveTo(o, v, y, S, w, f, h)), "o1236" == x && (p = f + a.shift(), m = h + a.shift(), b = p + a.shift(), g = m + a.shift(), C = b + a.shift(), _ = g, - y = C + a.shift(), - v = g, - S = y + a.shift(), - w = v + a.shift(), + v = C + a.shift(), + y = g, + S = v + a.shift(), + w = y + a.shift(), f = S + a.shift(), I.CurveTo(o, p, m, b, g, C, _), - I.CurveTo(o, y, v, S, w, f, h)), + I.CurveTo(o, v, y, S, w, f, h)), "o1237" == x && (p = f + a.shift(), m = h + a.shift(), b = p + a.shift(), g = m + a.shift(), C = b + a.shift(), _ = g + a.shift(), - y = C + a.shift(), - v = _ + a.shift(), - S = y + a.shift(), - w = v + a.shift(), + v = C + a.shift(), + y = _ + a.shift(), + S = v + a.shift(), + w = y + a.shift(), Math.abs(S - f) > Math.abs(w - h) ? f = S + a.shift() : h = w + a.shift(), I.CurveTo(o, p, m, b, g, C, _), - I.CurveTo(o, y, v, S, w, f, h)); + I.CurveTo(o, v, y, S, w, f, h)); else if ("o14" == x) { if (a.length > 0 && 4 != a.length && !c && (u = a.shift() + r["nominalWidthX"], c = !0), 4 == a.length) { - var N = a.shift() - , M = a.shift() + var M = a.shift() + , N = a.shift() , B = a.shift() , F = a.shift() , j = A.glyphBySE(r, B) - , K = A.glyphBySE(r, F); + , U = A.glyphBySE(r, F); i["U"]["_drawCFF"](r["CharStrings"][j], e, r, n, o), - e.x = N, - e.y = M, - i["U"]["_drawCFF"](r["CharStrings"][K], e, r, n, o) + e.x = M, + e.y = N, + i["U"]["_drawCFF"](r["CharStrings"][U], e, r, n, o) } - d && (I.ClosePath(o), - d = !1) + l && (I.ClosePath(o), + l = !1) } else if ("o19" == x || "o20" == x) { var L; L = a.length % 2 !== 0, @@ -22412,22 +26293,22 @@ s += a.length >> 1, a.length = 0, c = !0, - l += s + 7 >> 3 + d += s + 7 >> 3 } else if ("o21" == x) a.length > 2 && !c && (u = a.shift() + E, c = !0), h += a.pop(), f += a.pop(), - d && I.ClosePath(o), + l && I.ClosePath(o), I.MoveTo(o, f, h), - d = !0; + l = !0; else if ("o22" == x) a.length > 1 && !c && (u = a.shift() + E, c = !0), f += a.pop(), - d && I.ClosePath(o), + l && I.ClosePath(o), I.MoveTo(o, f, h), - d = !0; + l = !0; else if ("o25" == x) { while (a.length > 6) f += a.shift(), @@ -22461,48 +26342,48 @@ h = g, I.CurveTo(o, p, m, b, g, f, h) } else if ("o10" == x || "o29" == x) { - var U = "o10" == x ? n : r; + var K = "o10" == x ? n : r; if (0 == a.length) console.log("error: empty stack"); else { var X = a.pop() - , z = U["Subrs"][X + U["Bias"]]; + , z = K["Subrs"][X + K["Bias"]]; e.x = f, e.y = h, e.nStems = s, e.haveWidth = c, e.width = u, - e.open = d, + e.open = l, i["U"]["_drawCFF"](z, e, r, n, o), f = e.x, h = e.y, s = e.nStems, c = e.haveWidth, u = e.width, - d = e.open + l = e.open } } else if ("o30" == x || "o31" == x) { var G = a.length - , q = (R = 0, + , W = (R = 0, "o31" == x); P = -3 & G, R += G - P; while (R < P) - q ? (p = f + a.shift(), + W ? (p = f + a.shift(), m = h, b = p + a.shift(), g = m + a.shift(), h = g + a.shift(), P - R == 5 ? (f = b + a.shift(), R++) : f = b, - q = !1) : (p = f, + W = !1) : (p = f, m = h + a.shift(), b = p + a.shift(), g = m + a.shift(), f = b + a.shift(), P - R == 5 ? (h = g + a.shift(), R++) : h = g, - q = !0), + W = !0), I.CurveTo(o, p, m, b, g, f, h), R += 4 } else { @@ -22518,7 +26399,7 @@ e.nStems = s, e.haveWidth = c, e.width = u, - e.open = d + e.open = l }, SVG: function() { var t = { @@ -22668,36 +26549,36 @@ for (var o = 0; o < e.length; o++) { var s = e[o] , c = s.tagName - , d = s.getAttribute("fill"); - if (null == d && (d = i), + , l = s.getAttribute("fill"); + if (null == l && (l = i), "g" == c) { - var l = { + var d = { crds: [], cmds: [] }; - a(s.children, l, d); + a(s.children, d, l); var f = s.getAttribute("transform"); if (f) { var h = n(f); - t.multArray(h, l.crds) + t.multArray(h, d.crds) } - r.crds = r.crds.concat(l.crds), - r.cmds = r.cmds.concat(l.cmds) + r.crds = r.crds.concat(d.crds), + r.cmds = r.cmds.concat(d.cmds) } else if ("path" == c || "circle" == c || "ellipse" == c) { var p; - if (r.cmds.push(d || "#000000"), + if (r.cmds.push(l || "#000000"), "path" == c && (p = s.getAttribute("d")), "circle" == c || "ellipse" == c) { for (var m = [0, 0, 0, 0], b = ["cx", "cy", "rx", "ry", "r"], g = 0; g < 5; g++) { - var y = s.getAttribute(b[g]); - y && (y = parseFloat(y), - g < 4 ? m[g] = y : m[2] = m[3] = y) + var v = s.getAttribute(b[g]); + v && (v = parseFloat(v), + g < 4 ? m[g] = v : m[2] = m[3] = v) } - var v = m[0] + var y = m[0] , S = m[1] , w = m[2] , C = m[3]; - p = ["M", v - w, S, "a", w, C, 0, 1, 0, 2 * w, 0, "a", w, C, 0, 1, 0, 2 * -w, 0].join(" ") + p = ["M", y - w, S, "a", w, C, 0, 1, 0, 2 * w, 0, "a", w, C, 0, 1, 0, 2 * -w, 0].join(" ") } u(p, r), r.cmds.push("X") @@ -22717,15 +26598,15 @@ var c = t.charCodeAt(r) , u = t.charAt(r); r++; - var d = 48 <= c && c <= 57 || "." == u || "-" == u || "+" == u || "e" == u || "E" == u; - n ? ("+" == u || "-" == u) && "e" != o || "." == u && -1 != i.indexOf(".") || d && ("a" == a || "A" == a) && (s % 7 == 3 || s % 7 == 4) ? (e.push(parseFloat(i)), + var l = 48 <= c && c <= 57 || "." == u || "-" == u || "+" == u || "e" == u || "E" == u; + n ? ("+" == u || "-" == u) && "e" != o || "." == u && -1 != i.indexOf(".") || l && ("a" == a || "A" == a) && (s % 7 == 3 || s % 7 == 4) ? (e.push(parseFloat(i)), s++, - i = u) : d ? i += u : (e.push(parseFloat(i)), + i = u) : l ? i += u : (e.push(parseFloat(i)), s++, "," != u && " " != u && (e.push(u), a = u, s = 0), - n = !1) : d ? (i = u, + n = !1) : l ? (i = u, n = !0) : "," != u && " " != u && (e.push(u), a = u, s = 0), @@ -22750,8 +26631,8 @@ , o = 0 , a = 0 , u = 0 - , d = e.crds.length - , l = { + , l = e.crds.length + , d = { M: 2, L: 2, H: 1, @@ -22773,27 +26654,27 @@ i = a, o = u; else - for (var b = l[m], g = c(r, n, b), y = 0; y < g; y++) { - 1 == y && "M" == m && (p = p == m ? "L" : "l", + for (var b = d[m], g = c(r, n, b), v = 0; v < g; v++) { + 1 == v && "M" == m && (p = p == m ? "L" : "l", m = "L"); - var v = 0 + var y = 0 , S = 0; - if (p != m && (v = i, + if (p != m && (y = i, S = o), "M" == m) - i = v + r[n++], + i = y + r[n++], o = S + r[n++], f.push("M"), h.push(i, o), a = i, u = o; else if ("L" == m) - i = v + r[n++], + i = y + r[n++], o = S + r[n++], f.push("L"), h.push(i, o); else if ("H" == m) - i = v + r[n++], + i = y + r[n++], f.push("L"), h.push(i, o); else if ("V" == m) @@ -22801,42 +26682,42 @@ f.push("L"), h.push(i, o); else if ("Q" == m) { - var w = v + r[n++] + var w = y + r[n++] , C = S + r[n++] - , _ = v + r[n++] + , _ = y + r[n++] , A = S + r[n++]; f.push("Q"), h.push(w, C, _, A), i = _, o = A } else if ("T" == m) { - var I = Math.max(h.length - ("Q" == f[f.length - 1] ? 4 : 2), d); + var I = Math.max(h.length - ("Q" == f[f.length - 1] ? 4 : 2), l); w = i + i - h[I], C = o + o - h[I + 1], - _ = v + r[n++], + _ = y + r[n++], A = S + r[n++]; f.push("Q"), h.push(w, C, _, A), i = _, o = A } else if ("C" == m) { - w = v + r[n++], + w = y + r[n++], C = S + r[n++], - _ = v + r[n++], + _ = y + r[n++], A = S + r[n++]; - var E = v + r[n++] + var E = y + r[n++] , T = S + r[n++]; f.push("C"), h.push(w, C, _, A, E, T), i = E, o = T } else if ("S" == m) { - I = Math.max(h.length - ("C" == f[f.length - 1] ? 4 : 2), d), + I = Math.max(h.length - ("C" == f[f.length - 1] ? 4 : 2), l), w = i + i - h[I], C = o + o - h[I + 1], - _ = v + r[n++], + _ = y + r[n++], A = S + r[n++], - E = v + r[n++], + E = y + r[n++], T = S + r[n++]; f.push("C"), h.push(w, C, _, A, E, T), @@ -22850,36 +26731,36 @@ , k = r[n++] * (Math.PI / 180) , D = r[n++] , O = r[n++]; - _ = v + r[n++], + _ = y + r[n++], A = S + r[n++]; if (_ == i && A == o && 0 == x && 0 == P) continue; var R = (w - _) / 2 - , N = (C - A) / 2 - , M = Math.cos(k) + , M = (C - A) / 2 + , N = Math.cos(k) , B = Math.sin(k) - , F = M * R + B * N - , j = -B * R + M * N - , K = x * x + , F = N * R + B * M + , j = -B * R + N * M + , U = x * x , L = P * P - , U = F * F + , K = F * F , X = j * j - , z = (K * L - K * X - L * U) / (K * X + L * U) + , z = (U * L - U * X - L * K) / (U * X + L * K) , G = (D != O ? 1 : -1) * Math.sqrt(Math.max(z, 0)) - , q = G * (x * j) / P - , W = P * F * -G / x - , V = M * q - B * W + (w + _) / 2 - , H = B * q + M * W + (C + A) / 2 - , Y = function(t, e, r, n) { + , W = G * (x * j) / P + , q = P * F * -G / x + , H = N * W - B * q + (w + _) / 2 + , V = B * W + N * q + (C + A) / 2 + , Z = function(t, e, r, n) { var i = Math.sqrt(t * t + e * e) , o = Math.sqrt(r * r + n * n) , a = (t * r + e * n) / (i * o); return (t * n - e * r >= 0 ? 1 : -1) * Math.acos(Math.max(-1, Math.min(1, a))) } - , Z = (F - q) / x - , Q = (j - W) / P - , J = Y(1, 0, Z, Q) - , $ = Y(Z, Q, (-F - q) / x, (-j - W) / P); + , Q = (F - W) / x + , Y = (j - q) / P + , J = Z(1, 0, Q, Y) + , $ = Z(Q, Y, (-F - W) / x, (-j - q) / P); $ %= 2 * Math.PI; var tt = function(t, e, r, n, i, o, a) { var s = function(t, e) { @@ -22906,7 +26787,7 @@ for (var r = 0; r < e.length; r++) t.push(e[r]) } - , d = function(t, e) { + , l = function(t, e) { u(t.cmds, e.cmds), u(t.crds, e.crds) }; @@ -22916,26 +26797,26 @@ else while (o < i) o += 2 * Math.PI; - var l = (o - i) / 4 - , f = Math.cos(l / 2) - , h = -Math.sin(l / 2) + var d = (o - i) / 4 + , f = Math.cos(d / 2) + , h = -Math.sin(d / 2) , p = (4 - f) / 3 , m = 0 == h ? h : (1 - f) * (3 - f) / (3 * h) , b = p , g = -m - , y = f - , v = -h - , S = [p, m, b, g, y, v] + , v = f + , y = -h + , S = [p, m, b, g, v, y] , w = { cmds: ["C", "C", "C", "C"], crds: S.slice(0) } , C = [1, 0, 0, 1, 0, 0]; - s(C, -l); + s(C, -d); for (var _ = 0; _ < 3; _++) c(C, S), u(w.crds, S); - s(C, l / 2 - i), + s(C, d / 2 - i), C[0] *= n, C[1] *= n, C[2] *= n, @@ -22944,11 +26825,11 @@ C[5] = r, c(C, w.crds), c(t.ctm, w.crds), - d(t.pth, w) + l(t.pth, w) } , et = { pth: e, - ctm: [x * M, x * B, -P * B, P * M, V, H] + ctm: [x * N, x * B, -P * B, P * N, H, V] }; tt(et, 0, 0, 1, J, J + $, 0 == O), i = _, @@ -22979,7 +26860,7 @@ } )).then((function(t) { console.log("HB ready"); - var n, o, a, s, c, u, d, l, f = t["instance"]["exports"], h = f["memory"]; + var n, o, a, s, c, u, l, d, f = t["instance"]["exports"], h = f["memory"]; i["U"]["shapeHB"] = function() { var t, e = function(t) { for (var e = f["hb_buffer_get_length"](t), r = [], n = f["hb_buffer_get_glyph_infos"](t, 0) >>> 2, i = f["hb_buffer_get_glyph_positions"](t, 0) >>> 2, s = 0; s < e; ++s) { @@ -22999,21 +26880,21 @@ return function(i, p, m) { var b = i["_data"] , g = i["name"]["postScriptName"] - , y = h.buffer.byteLength - , v = 2 * b.length + 16 * p.length + 4e6; - if (y < v && h["grow"](4 + (v - y >>> 16)), + , v = h.buffer.byteLength + , y = 2 * b.length + 16 * p.length + 4e6; + if (v < y && h["grow"](4 + (y - v >>> 16)), n = new Uint8Array(h.buffer), o = new Uint32Array(h.buffer), a = new Int32Array(h.buffer), s != g && (null != c && (f["hb_blob_destroy"](c), f["free"](u), - f["hb_face_destroy"](d), - f["hb_font_destroy"](l)), + f["hb_face_destroy"](l), + f["hb_font_destroy"](d)), u = f["malloc"](b.byteLength), n.set(b, u), c = f["hb_blob_create"](u, b.byteLength, 2, 0, 0), - d = f["hb_face_create"](c, 0), - l = f["hb_font_create"](d), + l = f["hb_face_create"](c, 0), + d = f["hb_font_create"](l), s = g), null != window["TextEncoder"]) { null == t && (t = new window["TextEncoder"]("utf8")); @@ -23026,7 +26907,7 @@ f["free"](_), f["hb_buffer_set_direction"](S, m ? 4 : 5), f["hb_buffer_guess_segment_properties"](S), - f["hb_shape"](l, S, 0, 0); + f["hb_shape"](d, S, 0, 0); var A = e(S); f["hb_buffer_destroy"](S); var I = A.slice(0); @@ -23092,10 +26973,10 @@ r.push(e[i - 1]); return r } - function d(t) { + function l(t) { return [].slice.call(t) } - function l() { + function d() { throw new Error("This cannot be instantiated") } function f(t, e) { @@ -23107,7 +26988,7 @@ } } function h(t) { - var o, a, s = d(arguments), c = []; + var o, a, s = l(arguments), c = []; return this.___get = function(t, e) { return c[a * (t - 1) + e - 1] } @@ -23146,34 +27027,34 @@ throw new f(f.ErrorCodes.INVALID_PARAMETERS,"Elements must be numbers"); c = s[0]; var u = s[1] - , d = s[2]; - if (e(u) || e(d)) - !e(u) && r(d) ? u = c.length / d : r(u) && !e(d) && (d = c.length / u); + , l = s[2]; + if (e(u) || e(l)) + !e(u) && r(l) ? u = c.length / l : r(u) && !e(l) && (l = c.length / u); else { var h = Math.sqrt(c.length); u = h, - d = h + l = h } - if (!r(u) || !r(d)) + if (!r(u) || !r(l)) throw new f(f.ErrorCodes.OUT_OF_BOUNDS,"Array must represent square matrix if no size is given"); o = u, - a = d + a = l } else if (1 === s.length && r(s[0])) o = s[0], a = s[0], - c = l.repeat(o * a, 0); + c = d.repeat(o * a, 0); else { if (2 !== s.length || !r(s[0]) || !r(s[1])) throw new f(f.ErrorCodes.INVALID_PARAMETERS,"Parameters must match a supported signature"); o = s[0], a = s[1], - c = l.repeat(o * a, 0) + c = d.repeat(o * a, 0) } }(), this } function p(t) { - var e, i, o = d(arguments), a = [], s = [], c = []; + var e, i, o = l(arguments), a = [], s = [], c = []; return this.___get = function(t, e) { for (var r = c[t - 1]; r < c[t]; r++) if (s[r] === e) @@ -23233,7 +27114,7 @@ i = o[1] || e, a = [], s = [], - c = l.repeat(e + 1, 0); + c = d.repeat(e + 1, 0); else { if (!(5 === o.length && r(o[0]) && r(o[1]) && n(o[2]) && n(o[3]) && n(o[4]))) { if (1 === o.length && o[0]instanceof b) @@ -23258,7 +27139,7 @@ this } function m(t) { - d(arguments); + l(arguments); var e, r = []; return this.___get = function(t, n) { return r[e ? t - 1 : n - 1] @@ -23316,7 +27197,7 @@ return t.row != e.row ? t.row < e.row ? -1 : 1 : t.column != e.column ? t.column < e.column ? -1 : 1 : 0 } )); - for (var e = [], r = l.repeat(t + 1, 0), o = [], a = 1, s = 0; s < i.length; s++) { + for (var e = [], r = d.repeat(t + 1, 0), o = [], a = 1, s = 0; s < i.length; s++) { var c = i[s]; if (e[s] = c.value, o[s] = c.column, @@ -23425,7 +27306,7 @@ } , h.prototype.isTriangular = function(t) { - if (t = a(t, l.options.isTriangular.mode), + if (t = a(t, d.options.isTriangular.mode), !this.isSquare()) throw new f(f.ErrorCodes.DIMENSION_MISMATCH,"Matrix must be square"); switch (t.toLowerCase()) { @@ -23480,7 +27361,7 @@ var e = this.rows() , r = this.columns(); if (arguments.length > 1) { - var n = d(arguments); + var n = l(arguments); return this.add.apply(this.add(n.shift()), n) } if (!this.isSameSizeAs(t)) @@ -23499,7 +27380,7 @@ var e = this.rows() , r = this.columns(); if (arguments.length > 1) { - var n = d(arguments); + var n = l(arguments); return this.subtract.apply(this.subtract(n.shift()), n) } if (!this.isSameSizeAs(t)) @@ -23533,8 +27414,8 @@ throw new f(f.ErrorCodes.DIMENSION_MISMATCH,"Inner dimensions must match"); for (var i = new h(e,n), o = 1; o <= e; o++) for (var a = 1; a <= n; a++) { - for (var s = 0, c = this.__getRow(o), u = t.__getColumn(a), d = 0; d < r; d++) - s += c[d] * u[d]; + for (var s = 0, c = this.__getRow(o), u = t.__getColumn(a), l = 0; l < r; l++) + s += c[l] * u[l]; i.___set(o, a, s) } return i @@ -23555,32 +27436,32 @@ } , h.prototype.decomposeLU = function() { - var t, e, r, n, i, o, a, s, c, u, d = 0, l = this.copy(), h = this.rows(), p = this.columns(); + var t, e, r, n, i, o, a, s, c, u, l = 0, d = this.copy(), h = this.rows(), p = this.columns(); for (r = 1; r <= h; r++) { for (a = 0, s = -1, - i = l.__getColumn(r), + i = d.__getColumn(r), t = r; t <= h; t++) c = Math.abs(i[t - 1]), c >= s && (a = t, s = c); if (0 === i[a - 1]) throw new f(f.ErrorCodes.MATRIX_IS_SINGULAR); - for (a !== r && (u = l.__getRow(a), - l.__setRow(a, l.__getRow(r)), - l.__setRow(r, u), - d++), - n = l.__getRow(r), + for (a !== r && (u = d.__getRow(a), + d.__setRow(a, d.__getRow(r)), + d.__setRow(r, u), + l++), + n = d.__getRow(r), t = r + 1; t <= h; t++) { - for (o = l.__getRow(t), + for (o = d.__getRow(t), e = r; e < p; e++) o[e] = o[e] - n[e] * o[r - 1] / n[r - 1]; o[r - 1] = 0, - l.__setRow(t, o) + d.__setRow(t, o) } } - return l.swappedRows = d, - l + return d.swappedRows = l, + d } , h.prototype.det = function() { @@ -23632,7 +27513,7 @@ r[o] = t[o] / t[i - 1]; u.__setRow(i, r) } - } catch (d) { + } catch (l) { throw new f(f.ErrorCodes.MATRIX_IS_SINGULAR) } return u.submatrix(1, s, this.columns() + 1, c) @@ -23664,7 +27545,7 @@ } , h.prototype.roundTo = function(t) { - t = o(t, l.options.roundTo.digits); + t = o(t, d.options.roundTo.digits); var e = Math.pow(10, t); return this.fun((function(t) { return Math.round(t * e) / e @@ -23709,8 +27590,8 @@ } , h.prototype.stringify = function(t, e) { - t = a(t, l.options.stringify.rowSeparator), - e = a(e, l.options.stringify.columnSeparator); + t = a(t, d.options.stringify.rowSeparator), + e = a(e, d.options.stringify.columnSeparator); for (var r, n = [], i = this.rows(), o = 1; o <= i; o++) r = this.__getRow(o), n.push(r.join(e)); @@ -23732,7 +27613,7 @@ } , h.prototype.fun = function(t, e) { - if (e = e || l.filters.all, + if (e = e || d.filters.all, "function" !== typeof t) throw new f(f.ErrorCodes.INVALID_PARAMETERS,"Applicator must be a function"); if ("function" !== typeof e) @@ -23748,11 +27629,11 @@ } , h.prototype.spfun = function(t) { - return this.fun(t, l.filters.nonZero) + return this.fun(t, d.filters.nonZero) } , h.prototype.pw_exp = function() { - return this.fun(l.applicators.exp, null) + return this.fun(d.applicators.exp, null) } , h.prototype.pw_pow = function(t) { @@ -23763,7 +27644,7 @@ } , h.prototype.norm = function(t, e) { - switch (t = a(t, l.options.norm.which), + switch (t = a(t, d.options.norm.which), e = e || {}, t.toLowerCase()) { case "p": @@ -23834,7 +27715,7 @@ } , h.prototype.toArray = function() { - return d(this.___getElements()) + return l(this.___getElements()) } , h.zeros = function(t, e) { @@ -23866,14 +27747,14 @@ , h.random = function(t, e, r, n, i) { e = o(e, t), - r = o(r, l.options.random.minVal), - n = o(n, l.options.random.maxVal), - i = s(i, l.options.random.onlyInteger); - for (var a, c = new h(t,e), u = n - r + (i ? 1 : 0), d = 1; d <= t; d++) + r = o(r, d.options.random.minVal), + n = o(n, d.options.random.maxVal), + i = s(i, d.options.random.onlyInteger); + for (var a, c = new h(t,e), u = n - r + (i ? 1 : 0), l = 1; l <= t; l++) for (var f = 1; f <= e; f++) a = r + Math.random() * u, i && (a |= 0), - c.___set(d, f, a); + c.___set(l, f, a); return c } , @@ -23898,7 +27779,7 @@ } , p.prototype.__getRow = function(t) { - for (var e = l.repeat(this.columns(), 0), r = this.___getRowPointer(), n = this.___getColumnIndicator(), i = this.___getElements(), o = r[t - 1]; o < r[t]; o++) + for (var e = d.repeat(this.columns(), 0), r = this.___getRowPointer(), n = this.___getColumnIndicator(), i = this.___getElements(), o = r[t - 1]; o < r[t]; o++) e[n[o] - 1] = i[o]; return e } @@ -23982,7 +27863,7 @@ var e = this.rows() , r = this.columns(); if (arguments.length > 1) { - var n = d(arguments); + var n = l(arguments); return this.add.apply(this.add(n.shift()), n) } if (!this.isSameSizeAs(t)) @@ -24000,7 +27881,7 @@ var e = this.rows() , r = this.columns(); if (arguments.length > 1) { - var n = d(arguments); + var n = l(arguments); return this.subtract.apply(this.subtract(n.shift()), n) } if (!this.isSameSizeAs(t)) @@ -24023,13 +27904,13 @@ return new p(r,n); if (1 === t) return this; - for (var i = d(this.___getElements()), o = 0; o < i.length; o++) + for (var i = l(this.___getElements()), o = 0; o < i.length; o++) i[o] *= t; - return new p(r,n,i,d(this.___getColumnIndicator()),d(this.___getRowPointer())) + return new p(r,n,i,l(this.___getColumnIndicator()),l(this.___getRowPointer())) } , p.prototype.copy = function() { - return new p(this.rows(),this.columns(),d(this.___getElements()),d(this.___getColumnIndicator()),d(this.___getRowPointer())) + return new p(this.rows(),this.columns(),l(this.___getElements()),l(this.___getColumnIndicator()),l(this.___getRowPointer())) } , p.prototype.equals = function(t) { @@ -24045,8 +27926,8 @@ } , p.prototype.stringify = function(t, e) { - t = a(t, l.options.stringify.rowSeparator), - e = a(e, l.options.stringify.columnSeparator); + t = a(t, d.options.stringify.rowSeparator), + e = a(e, d.options.stringify.columnSeparator); for (var r, n = [], i = this.rows(), o = this.columns(), s = 1; s <= i; s++) { r = []; for (var c = 1; c <= o; c++) @@ -24066,9 +27947,9 @@ } , p.eye = function(t) { - var e = l.repeat(t, 1) - , r = l.linspace(1, t) - , n = l.linspace(0, t); + var e = d.repeat(t, 1) + , r = d.linspace(1, t) + , n = d.linspace(0, t); return new p(t,t,e,r,n) } , @@ -24080,7 +27961,7 @@ return r.build() } , - l.options = { + d.options = { stringify: { rowSeparator: "\r\n", columnSeparator: "\t" @@ -24100,20 +27981,20 @@ onlyInteger: !0 } }, - l.linspace = function(t, e, r) { + d.linspace = function(t, e, r) { r = o(r, 1); for (var n = [], i = t; i <= e; i += r) n.push(i); return n } , - l.repeat = function(t, e) { + d.repeat = function(t, e) { for (var r = [], n = 1; n <= t; n++) r[n - 1] = e; return r } , - l.filters = { + d.filters = { all: function() { return !0 }, @@ -24124,7 +28005,7 @@ return e === r } }, - l.applicators = { + d.applicators = { exp: function(t) { return Math.exp(t) }, @@ -24159,7 +28040,7 @@ t.Matrix = h, t.SparseMatrix = p, t.Vector = m, - t.MatrixUtils = l, + t.MatrixUtils = d, t.SparseBuilder = b } )(window); @@ -24226,19 +28107,19 @@ function u(t, e) { if (t) { if ("string" === typeof t) - return d(t, e); + return l(t, e); var r = Object.prototype.toString.call(t).slice(8, -1); return "Object" === r && t.constructor && (r = t.constructor.name), - "Map" === r || "Set" === r ? Array.from(t) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? d(t, e) : void 0 + "Map" === r || "Set" === r ? Array.from(t) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? l(t, e) : void 0 } } - function d(t, e) { + function l(t, e) { (null == e || e > t.length) && (e = t.length); for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r]; return n } - var l = function(t, e, r) { + var d = function(t, e, r) { var i, o = r[Object.keys(r)[0]]["json"]["ofd:Area"]; if (o) { var a = o["ofd:PhysicalBox"]; @@ -24256,14 +28137,14 @@ } else { var u = e["ofd:CommonData"]["ofd:PageArea"]; "undefined" === typeof u && (u = e["ofd:CommonData"]["PageArea"]); - var d = u["ofd:PhysicalBox"]; - if ("undefined" === typeof d && (d = u["PhysicalBox"]), - d) - i = d; + var l = u["ofd:PhysicalBox"]; + if ("undefined" === typeof l && (l = u["PhysicalBox"]), + l) + i = l; else { - var l = u["ofd:ApplicationBox"]; - if (l) - i = l; + var d = u["ofd:ApplicationBox"]; + if (d) + i = d; else { var f = u["ofd:ContentBox"]; f && (i = f) @@ -24272,8 +28153,8 @@ } var h = i.split(" ") , p = ((t - 30) / parseFloat(h[2])).toFixed(1) / 96 * 25.4; - return Object(n["m"])(p), - Object(n["n"])(p), + return Object(n["n"])(p), + Object(n["o"])(p), i = Object(n["k"])(i), i = Object(n["d"])(i), i @@ -24301,12 +28182,12 @@ u) r = u; else { - var d = c["ofd:ApplicationBox"]; - if (d) - r = d; + var l = c["ofd:ApplicationBox"]; + if (l) + r = l; else { - var l = c["ofd:ContentBox"]; - l && (r = l) + var d = c["ofd:ContentBox"]; + d && (r = d) } } } @@ -24316,18 +28197,18 @@ } , h = function(t, e, r, i, o, a, s) { var u = Object.keys(e)[0] - , d = e[u]["json"]["ofd:Template"]; - if (d) { - var l = []; - if (r[d["@_TemplateID"]]) { - var f = r[d["@_TemplateID"]]["json"]["ofd:Content"]["ofd:Layer"]; - l = l.concat(f) + , l = e[u]["json"]["ofd:Template"]; + if (l) { + var d = []; + if (r[l["@_TemplateID"]]) { + var f = r[l["@_TemplateID"]]["json"]["ofd:Content"]["ofd:Layer"]; + d = d.concat(f) } - var h, g = c(l); + var h, g = c(d); try { for (g.s(); !(h = g.n()).done; ) { - var y = h.value; - y && b(t, i, o, a, s, y, !1, null, null, null, !0) + var v = h.value; + v && b(t, i, o, a, s, v, !1, null, null, null, !0) } } catch (B) { g.e(B) @@ -24361,7 +28242,7 @@ else if ("png" === x.type) { var P = Object(n["d"])(x.obj.boundary) , k = (Array.isArray(x.stamp.stampAnnot) ? x.stamp.stampAnnot[0]["@_ID"] : x.stamp.stampAnnot["@_ID"]) + E - , D = v(t.style.width, t.style.height, a, x.obj.img, P, x.obj.clip, !0, x.stamp.sealObj.SES_Signature, x.stamp.signedInfo, k); + , D = y(t.style.width, t.style.height, a, x.obj.img, P, x.obj.clip, !0, x.stamp.sealObj.SES_Signature, x.stamp.signedInfo, k); t.appendChild(D) } } @@ -24372,16 +28253,16 @@ } } if (e[u].annotation) { - var O, R = e[u].json.pfIndex, N = c(e[u].annotation); + var O, R = e[u].json.pfIndex, M = c(e[u].annotation); try { - for (N.s(); !(O = N.n()).done; ) { - var M = O.value; - p(t, M, i, o, a, s, R) + for (M.s(); !(O = M.n()).done; ) { + var N = O.value; + p(t, N, i, o, a, s, R) } } catch (B) { - N.e(B) + M.e(B) } finally { - N.f() + M.f() } } } @@ -24389,37 +28270,45 @@ var c = document.createElement("div"); if (c.setAttribute("style", "overflow: hidden;z-index:0;position:relative;"), "undefined" != typeof e["appearance"]) { - var u = e["appearance"]["@_Boundary"]; - if (u) { - var d = Object(n["d"])(Object(n["k"])(u)); - c.setAttribute("style", "overflow: hidden;z-index:0;position:absolute; left: ".concat(d.x, "px; top: ").concat(d.y, "px; width: ").concat(d.w, "px; height: ").concat(d.h, "px")) + var u = e["appearance"]["@_Boundary"] + , l = 0; + if ("undefined" != typeof e["@_ID"] && (l = e["@_ID"]), + u) { + var d = e["type"]; + if ("Watermark" === d || "Stamp" === d) { + var f = Object(n["d"])(Object(n["k"])(u)); + c.setAttribute("style", "overflow: hidden;z-index:".concat(1e3 + l + s, ";position:absolute; left: ").concat(f.x, "px; top: ").concat(f.y, "px; width: ").concat(f.w, "px; height: ").concat(f.h, "px")) + } else { + var h = Object(n["d"])(Object(n["k"])(u)); + c.setAttribute("style", "overflow: hidden;z-index:0;position:absolute; left: ".concat(h.x, "px; top: ").concat(h.y, "px; width: ").concat(h.w, "px; height: ").concat(h.h, "px")) + } } else - c.setAttribute("style", "overflow: visible;z-index:".concat(e["@_ID"] + s, ";position:absolute; left: 0px; top: 0px; width: 1px; height: 1px")); - var l = e["appearance"]; - b(c, r, i, o, a, l, !1), + c.setAttribute("style", "overflow: visible;z-index:".concat(l + s, ";position:absolute; left: 0px; top: 0px; width: 1px; height: 1px")); + var p = e["appearance"]; + b(c, r, i, o, a, p, !1), t.appendChild(c) } } - , m = function(t, e, r, i, o, a, s, u, d, l, f, h) { + , m = function(t, e, r, i, o, a, s, u, l, d, f, h) { var p, m = c(e); try { for (m.s(); !(p = m.n()).done; ) { var g = p.value - , y = Object.keys(g)[0] - , v = { + , v = Object.keys(g)[0] + , y = { x: 0, y: 0, w: 0, h: 0 }; - i && o && (v = o.boundary); - var S = Object(n["d"])(v) + i && o && (y = o.boundary); + var S = Object(n["d"])(y) , w = document.createElement("div"); w.setAttribute("name", "seal_img_div"), w.setAttribute("style", "z-index:".concat(h + 1e4, ";cursor: pointer; position:relative; left: ").concat(S.x, "px; top: ").concat(S.y, "px; width: ").concat(S.w, "px; height: ").concat(S.h, "px")), - w.setAttribute("data-ses-signature", "".concat(JSON.stringify(l))), + w.setAttribute("data-ses-signature", "".concat(JSON.stringify(d))), w.setAttribute("data-signed-info", "".concat(JSON.stringify(f))); - var C = g[y]["json"]["ofd:Template"]; + var C = g[v]["json"]["ofd:Template"]; if (C) { var _ = r[C["@_TemplateID"]]["json"]["ofd:Content"]["ofd:Layer"] , A = []; @@ -24428,7 +28317,7 @@ try { for (E.s(); !(I = E.n()).done; ) { var T = I.value; - T && b(w, a, s, u, d, T, i) + T && b(w, a, s, u, l, T, i) } } catch (R) { E.e(R) @@ -24436,14 +28325,14 @@ E.f() } } - var x = g[y]["json"]["ofd:Content"]["ofd:Layer"] + var x = g[v]["json"]["ofd:Content"]["ofd:Layer"] , P = []; P = P.concat(x); var k, D = c(P); try { for (D.s(); !(k = D.n()).done; ) { var O = k.value; - O && b(w, a, s, u, d, O, i) + O && b(w, a, s, u, l, O, i) } } catch (R) { D.e(R) @@ -24458,21 +28347,21 @@ m.f() } } - , b = function t(e, r, i, o, a, s, u, d, l, f, h) { + , b = function t(e, r, i, o, a, s, u, l, d, f, h) { var p = null , m = null , b = Object(n["e"])(.353) - , y = s["@_DrawParam"]; - if (y && Object.keys(i).length > 0 && i[y]) { - if (i[y]["relative"]) { - var v = i[y]["relative"]; - i[v]["FillColor"] && (p = Object(n["i"])(i[v]["FillColor"])), - i[v]["StrokeColor"] && (m = Object(n["i"])(i[v]["StrokeColor"])), - i[v]["LineWidth"] && (b = Object(n["e"])(i[v]["LineWidth"])) + , v = s["@_DrawParam"]; + if (v && Object.keys(i).length > 0 && i[v]) { + if (i[v]["relative"]) { + var y = i[v]["relative"]; + i[y]["FillColor"] && (p = Object(n["i"])(i[y]["FillColor"])), + i[y]["StrokeColor"] && (m = Object(n["i"])(i[y]["StrokeColor"])), + i[y]["LineWidth"] && (b = Object(n["e"])(i[y]["LineWidth"])) } - i[y]["FillColor"] && (p = Object(n["i"])(i[y]["FillColor"])), - i[y]["StrokeColor"] && (m = Object(n["i"])(i[y]["StrokeColor"])), - i[y]["LineWidth"] && (b = Object(n["e"])(i[y]["LineWidth"])) + i[v]["FillColor"] && (p = Object(n["i"])(i[v]["FillColor"])), + i[v]["StrokeColor"] && (m = Object(n["i"])(i[v]["StrokeColor"])), + i[v]["LineWidth"] && (b = Object(n["e"])(i[v]["LineWidth"])) } var C = s["ofd:ImageObject"] , _ = []; @@ -24485,7 +28374,7 @@ var T = E["@_ResourceID"]; if (null === o[T] || void 0 === o[T]) continue; - var x = g(e.style.width, e.style.height, o, E, u, l, h); + var x = g(e.style.width, e.style.height, o, E, u, d, f, h); e.appendChild(x) } } @@ -24502,8 +28391,8 @@ for (O.s(); !(D = O.n()).done; ) { var R = D.value; if (R) { - var N = w(i, R, p, m, b, u, d, l, f); - e.appendChild(N) + var M = w(i, R, p, m, b, u, l, d, f, e, o); + e.appendChild(M) } } } catch (ot) { @@ -24511,15 +28400,15 @@ } finally { O.f() } - var M = s["ofd:TextObject"] + var N = s["ofd:TextObject"] , B = []; - B = B.concat(M); + B = B.concat(N); var F, j = c(B); try { for (j.s(); !(F = j.n()).done; ) { - var K = F.value; - if (K) { - var L = S(r, K, p, m, i); + var U = F.value; + if (U) { + var L = S(r, U, p, m, i); e.appendChild(L) } } @@ -24528,37 +28417,37 @@ } finally { j.f() } - var U = s["ofd:CompositeObject"] + var K = s["ofd:CompositeObject"] , X = []; - X = X.concat(U); + X = X.concat(K); var z, G = c(X); try { for (G.s(); !(z = G.n()).done; ) { - var q = z.value; - if (q) { - var W, V = c(a); + var W = z.value; + if (W) { + var q, H = c(a); try { - for (V.s(); !(W = V.n()).done; ) { - var H = W.value; - if (H["@_ID"] === q["@_ResourceID"]) { - var Y = q["@_Alpha"] - , Z = q["@_Boundary"] - , Q = q["@_CTM"]; - if (Z) { - var J = Object(n["d"])(Object(n["k"])(Z)) + for (H.s(); !(q = H.n()).done; ) { + var V = q.value; + if (V["@_ID"] === W["@_ResourceID"]) { + var Z = W["@_Alpha"] + , Q = W["@_Boundary"] + , Y = W["@_CTM"]; + if (Q) { + var J = Object(n["d"])(Object(n["k"])(Q)) , $ = document.createElement("div"); $.setAttribute("style", "position:absolute; left: ".concat(J.x, "px; top: ").concat(J.y, "px; width: ").concat(J.w, "px; height: ").concat(J.h, "px")), e.appendChild($), - t($, r, i, o, a, H["ofd:Content"], !1, Y, null, Q) + t($, r, i, o, a, V["ofd:Content"], !1, Z, null, Y) } else - t(e, r, i, o, a, H["ofd:Content"], !1, Y, Z, Q); + t(e, r, i, o, a, V["ofd:Content"], !1, Z, Q, Y); break } } } catch (ot) { - V.e(ot) + H.e(ot) } finally { - V.f() + H.f() } } } @@ -24582,25 +28471,34 @@ nt.f() } } - , g = function(t, e, r, i, o, a, s) { - var c = Object(n["k"])(i["@_Boundary"]); - c = Object(n["d"])(c); - var u = i["@_ResourceID"]; - if ("gbig2" === r[u].format) { - var d = r[u].img - , l = r[u].width - , f = r[u].height - , h = window.navigator.userAgent; - if (h.indexOf("MSIE") > 0 || h.indexOf("Trident") > 0) { - var p = document.createElement("div"); - return p + , g = function(t, e, r, i, o, a, s, c) { + var u = Object(n["k"])(i["@_Boundary"]); + u = Object(n["d"])(u); + var l = i["@_ResourceID"]; + if ("gbig2" === r[l].format) { + var d = r[l].img + , f = r[l].width + , h = r[l].height + , p = window.navigator.userAgent; + if (p.indexOf("MSIE") > 0 || p.indexOf("Trident") > 0) { + var m = document.createElement("div"); + return m } - return y(d, l, f, c, i["@_ID"]) + return v(d, f, h, u, i["@_ID"]) } - var m = i["@_CTM"]; - return v(t, e, r, r[u].img, c, !1, o, null, null, i["@_ID"], m, a, s, i) + var b = i["@_CTM"]; + if (s) { + var g = _(Object(n["j"])(b)) + , S = _(Object(n["j"])(s)); + S = E(S, -S.getRow(3)[0], -S.getRow(3)[1]); + var w = S.multiply(g) + , C = A(w).join(" "); + return y(t, e, r, r[l].img, u, !1, o, null, null, i["@_ID"], C, a, i, c) + } + var I = b; + return y(t, e, r, r[l].img, u, !1, o, null, null, i["@_ID"], I, a, i, c) } - , y = function(t, e, r, n, i) { + , v = function(t, e, r, n, i) { for (var o = new Uint8ClampedArray(4 * e * r), a = 0; a < t.length; a++) o[4 * a] = t[a], o[4 * a + 1] = t[a], @@ -24615,65 +28513,55 @@ u.putImageData(c, 0, 0), s.setAttribute("style", "left: ".concat(n.x, "px; top: ").concat(n.y, "px; width: ").concat(n.w, "px; height: ").concat(n.h, "px;z-index: ").concat(i)), s.style.position = "absolute" - } catch (d) { - console.log(d) + } catch (l) { + console.log(l) } return s } - , v = function(t, e, r, i, o, a, c, u, d, l, f, h, p, m) { - var b = document.createElement("div"); - c && (b.setAttribute("name", "seal_img_div"), - b.setAttribute("data-ses-signature", "".concat(JSON.stringify(u))), - b.setAttribute("data-signed-info", "".concat(JSON.stringify(d)))); - var g = document.createElement("img"); - if ("object" === s(i) ? g.src = i.img : g.src = i, - c && (g.setAttribute("width", "100%"), - g.setAttribute("height", "100%"), - g.setAttribute("style", "opacity:0.85")), - "undefined" != typeof m) { - var y = m["@_Alpha"]; - "undefined" != typeof y && g.setAttribute("style", "opacity:".concat(y / 255, ";")) + , y = function(t, e, r, i, o, a, c, u, l, d, f, h, p, m) { + var b = parseFloat(t.replace("px", "")) + , g = parseFloat(e.replace("px", "")) + , v = o.w > b ? b : o.w + , y = o.h > g ? g : o.h + , S = document.createElementNS("http://www.w3.org/2000/svg", "svg"); + c && (S.setAttribute("name", "seal_img_div"), + S.setAttribute("data-ses-signature", "".concat(JSON.stringify(u))), + S.setAttribute("data-signed-info", "".concat(JSON.stringify(l)))); + var w = document.createElementNS("http://www.w3.org/2000/svg", "image") + , C = o.x + , _ = o.y; + C < 0 && w.setAttribute("x", "".concat(C, "px")), + _ < 0 && w.setAttribute("y", "".concat(_, "px")); + var A = v + , I = y; + if ("object" === s(i) ? (w.setAttribute("xlink:href", i.img), + w.href.baseVal = i.img, + A = i.width, + I = i.height) : (w.setAttribute("xlink:href", i), + w.href.baseVal = i), + w.setAttribute("width", "".concat(A, "px")), + w.setAttribute("height", "".concat(I, "px")), + f) { + var E = Object(n["j"])(f); + w.setAttribute("transform", "matrix(".concat(Object(n["e"])(E[0]) / A, " ").concat(Object(n["e"])(E[1]) / A, " ").concat(Object(n["e"])(E[2]) / I, " ").concat(Object(n["e"])(E[3]) / I, " ").concat(Object(n["e"])(E[4]), " ").concat(Object(n["e"])(E[5]), ")")), + w.setAttribute("preserveAspectRatio", "none") } - var v = 0 - , S = 0 - , w = 0 - , C = 0 - , _ = ""; - if (f) { - var A = Object(n["j"])(f); - if (g.setAttribute("width", "".concat(Object(n["e"])(A[0]), "px")), - g.setAttribute("height", "".concat(Object(n["e"])(A[3]), "px")), - w = Object(n["e"])(A[0]), - C = Object(n["e"])(A[3]), - v = Object(n["e"])(A[4]), - S = Object(n["e"])(A[5]), - 0 == A[1] && 0 == A[2] && A[0] * A[3] < 0 && (g.setAttribute("style", "transform:rotateX(180deg);"), - S += Object(n["e"])(A[3])), - 0 != A[1] && 0 != A[2] && A[1] * A[2] < 0) { - var I = -1 * Math.atan2(Math.sqrt(-1 * A[1] * A[2]), Math.sqrt(A[0] * A[3])) * 180 / Math.PI; - _ = "transform:rotate(".concat(I, "deg);") - } + if (h && (w.setAttribute("width", "100%"), + w.setAttribute("height", "100%"), + w.removeAttribute("transform")), + "undefined" != typeof p) { + var T = p["@_Alpha"]; + "undefined" != typeof T && w.setAttribute("style", "opacity:".concat(T / 255, ";")) } - h && (g.setAttribute("width", "100%"), - g.setAttribute("height", "100%"), - g.removeAttribute("transform")), - b.appendChild(g); - var E = parseFloat(t.replace("px", "")) - , T = parseFloat(e.replace("px", "")) - , x = o.w > E ? E : o.w - , P = o.h > T ? T : o.h - , k = ""; - a && (a = Object(n["d"])(a), - k = "clip: rect(".concat(a.y, "px, ").concat(a.w + a.x, "px, ").concat(a.h + a.y, "px, ").concat(a.x, "px)")); - var D = 0 - , O = 0; - return k ? (D = o.x, - O = o.y) : (D = o.x + v < 0 ? 0 : o.x + v, - O = o.y + S < 0 ? 0 : o.y + S), - w > 0 && (x = w, - P = C), - p ? b.setAttribute("style", "cursor: pointer; overflow: hidden; position: absolute; left: ".concat(D, "px; top: ").concat(O, "px; width: ").concat(x, "px; height: ").concat(P, "px; ").concat(k, ";")) : b.setAttribute("style", "cursor: pointer; overflow: hidden; position: absolute; left: ".concat(D, "px; top: ").concat(O, "px; width: ").concat(x, "px; height: ").concat(P, "px; ").concat(k, ";z-index: ").concat(l, "; ").concat(_)), - b + c && (w.setAttribute("width", "100%"), + w.setAttribute("height", "100%"), + w.setAttribute("style", "opacity:0.85")), + S.appendChild(w); + var x = ""; + return a && (a = Object(n["d"])(a), + x = "clip: rect(".concat(a.y, "px, ").concat(a.w + a.x, "px, ").concat(a.h + a.y, "px, ").concat(a.x, "px)")), + S.setAttribute("style", "cursor: pointer; overflow: hidden; position: absolute; left: ".concat(x ? o.x : o.x < 0 ? 0 : o.x, "px; top: ").concat(x ? o.y : o.y < 0 ? 0 : o.y, "px; width: ").concat(v, "px; height: ").concat(y, "px; ").concat(x, ";z-index: ").concat(d)), + S } , S = function(t, e, r, i, a) { var s = 1 @@ -24681,8 +28569,8 @@ u = Object(n["d"])(u); u.x, u.y; - var d = e["@_CTM"] - , l = e["@_HScale"] + var l = e["@_CTM"] + , d = e["@_HScale"] , f = e["@_Font"] , h = e["@_Weight"] , p = ""; @@ -24691,365 +28579,415 @@ , b = ""; "true" == m && (b = "font-style:italic;"); var g = e["@_Alpha"] - , y = ""; - "undefined" != typeof g && (y = "fill-opacity:".concat(g / 255, ";")); - var v = Object(n["e"])(parseFloat(e["@_Size"])) - , S = []; - S = S.concat(e["ofd:TextCode"]); - var w = Object(n["b"])(S) - , _ = document.createElementNS("http://www.w3.org/2000/svg", "svg"); - _.setAttribute("version", "1.1"); - var A = e["ofd:FillColor"] - , I = !1 - , E = e["@_DrawParam"]; - if (E && Object.keys(a).length > 0 && a[E] && a[E]["FillColor"] && (r = Object(n["i"])(a[E]["FillColor"])), - A) { - A["@_Value"] && (r = Object(n["i"])(A["@_Value"])); - var T = A["@_Alpha"]; - T && (s = T > 1 ? T / 255 : T); - var x = A["ofd:AxialShd"]; - if (x) { - I = !0; - var P = document.createElement("linearGradient"); - P.setAttribute("id", "".concat(e["@_ID"])), - P.setAttribute("x1", "0%"), - P.setAttribute("y1", "0%"), - P.setAttribute("x2", "100%"), - P.setAttribute("y2", "100%"); - var k, D = c(x["ofd:Segment"]); + , v = ""; + "undefined" != typeof g && (v = "fill-opacity:".concat(g / 255, ";")); + var y = e["@_Fill"] + , S = !0; + "undefined" != typeof y && "false" == y && (S = !1); + var w = Object(n["e"])(parseFloat(e["@_Size"])) + , _ = []; + _ = _.concat(e["ofd:TextCode"]); + var A = Object(n["b"])(_) + , I = document.createElementNS("http://www.w3.org/2000/svg", "svg"); + I.setAttribute("version", "1.1"); + var E = e["ofd:FillColor"] + , T = !1 + , x = e["@_DrawParam"]; + if (x && Object.keys(a).length > 0 && a[x] && a[x]["FillColor"] && (r = Object(n["i"])(a[x]["FillColor"])), + E && S) { + E["@_Value"] && (r = Object(n["i"])(E["@_Value"])); + var P = E["@_Alpha"]; + P && (s = P > 1 ? P / 255 : P); + var k = E["ofd:AxialShd"]; + if (k) { + T = !0; + var D = document.createElement("linearGradient"); + D.setAttribute("id", "".concat(e["@_ID"])), + D.setAttribute("x1", "0%"), + D.setAttribute("y1", "0%"), + D.setAttribute("x2", "100%"), + D.setAttribute("y2", "100%"); + var O, R = c(k["ofd:Segment"]); try { - for (D.s(); !(k = D.n()).done; ) { - var O = k.value; - if (O) { - var R = document.createElement("stop"); - R.setAttribute("offset", "".concat(100 * O["@_Position"], "%")), - R.setAttribute("style", "stop-color:".concat(Object(n["i"])(O["ofd:Color"]["@_Value"]), ";stop-opacity:1")), - P.appendChild(R), - r = Object(n["i"])(O["ofd:Color"]["@_Value"]) + for (R.s(); !(O = R.n()).done; ) { + var M = O.value; + if (M) { + var N = document.createElement("stop"); + N.setAttribute("offset", "".concat(100 * M["@_Position"], "%")), + N.setAttribute("style", "stop-color:".concat(Object(n["i"])(M["ofd:Color"]["@_Value"]), ";stop-opacity:1")), + D.appendChild(N), + r = Object(n["i"])(M["ofd:Color"]["@_Value"]) } } - } catch (Rt) { - D.e(Rt) + } catch (Lt) { + R.e(Lt) } finally { - D.f() + R.f() } - _.appendChild(P) + I.appendChild(D) } } - var N = e["@_CharDirection"] - , M = ""; - "90" === N ? M = " rotate(".concat(N, ") translate(").concat(v, ", ").concat(v, ")") : "180" === N ? M = " rotate(".concat(N, ") translate(-").concat(2 * v, ", ").concat(2 * v, ")") : "270" === N && (M = " rotate(".concat(N, ") translate(-").concat(v, ", ").concat(v, ")")); - var B = u.w - , F = u.h - , j = u.x - , K = u.y - , L = v - , U = v; - if (d) { - var X = Object(n["j"])(d) - , z = X[0] - , G = X[1] - , q = X[2] - , W = X[3] - , V = function(t) { + var B = e["ofd:StrokeColor"]; + B && (i = Object(n["i"])(B)); + var F = e["@_LineWidth"] + , j = null; + F && (j = 15 * F); + var U = e["@_CharDirection"] + , L = ""; + "90" === U ? L = " rotate(".concat(U, ") translate(").concat(w, ", ").concat(w, ")") : "180" === U ? L = " rotate(".concat(U, ") translate(-").concat(2 * w, ", ").concat(2 * w, ")") : "270" === U && (L = " rotate(".concat(U, ") translate(-").concat(w, ", ").concat(w, ")")); + var K = u.w + , X = u.h + , z = u.x + , G = u.y + , W = w + , q = w; + if (l) { + var H = Object(n["j"])(l) + , V = H[0] + , Z = H[1] + , Q = H[2] + , Y = H[3] + , J = function(t) { return 2 * (t >= 0) - 1 } - , H = z > 0 ? V(z) * Math.sqrt(z * z + q * q) : Math.sqrt(z * z + q * q) - , Y = W > 0 ? V(W) * Math.sqrt(G * G + W * W) : Math.sqrt(G * G + W * W) - , Z = Math.atan2(-G, W); - 0 == Z && 0 != z && 1 == W || (L *= H, - U *= Y), - 0 == Z && l > 0 && (L *= l) + , $ = V > 0 ? J(V) * Math.sqrt(V * V + Q * Q) : Math.sqrt(V * V + Q * Q) + , tt = Y > 0 ? J(Y) * Math.sqrt(Z * Z + Y * Y) : Math.sqrt(Z * Z + Y * Y) + , et = Math.atan2(-Z, Y); + 0 == et && 0 != V && 1 == Y || (W *= $, + q *= tt), + 0 == et && d > 0 && (W *= d) } - var Q, J = e["ofd:CGTransform"]; - if ("undefined" != typeof J) - if (J instanceof Array) { - var $, tt = "", et = c(J); + var rt, nt = e["ofd:CGTransform"]; + if ("undefined" != typeof nt) + if (nt instanceof Array) { + var it, ot = "", at = c(nt); try { - for (et.s(); !($ = et.n()).done; ) { - var rt = $.value; - rt && (tt += rt["ofd:Glyphs"]) + for (at.s(); !(it = at.n()).done; ) { + var st = it.value; + st && (ot += st["ofd:Glyphs"]) } - } catch (Rt) { - et.e(Rt) + } catch (Lt) { + at.e(Lt) } finally { - et.f() + at.f() } - Q = tt.split(" ") + rt = ot.split(" ") } else { - var nt = J["ofd:Glyphs"]; - Q = nt.split(" ") + var ct = nt["ofd:Glyphs"]; + rt = ct.split(" ") } - var it, ot = 0, at = c(w); + var ut, lt = 0, dt = c(A); try { - for (at.s(); !(it = at.n()).done; ) { - var st = it.value; - if (st && !isNaN(st.x)) { - var ct = !1; - if ("undefined" != typeof J && null != t[f].fontByte && st.text.charCodeAt() > 32 && 127 != st.text.charCodeAt()) { - var ut = o.parse(t[f].fontByte)[0]; - if (null != ut.head) { - var dt = Q[ot] - , lt = o.U.glyphToPath(ut, dt) - , ft = o.U.pathToSVG(lt) - , ht = document.createElementNS("http://www.w3.org/2000/svg", "g"); - I ? ht.setAttribute("style", "fill:".concat(r, ";stroke:none")) : ht.setAttribute("style", "fill:".concat(r, ";stroke:").concat(i, ";fill-opacity:").concat(s, ";")); - var pt = L / ut.head.unitsPerEm - , mt = U / ut.head.unitsPerEm; - if (d) { - var bt = Object(n["j"])(d) - , gt = (st.x, - bt[0], - st.y, - bt[2], - st.y, - bt[3], - Object(n["e"])(bt[5]), - C(l, bt, u, st.x, st.y, v, ut.head.unitsPerEm)); - ht.setAttribute("transform", "matrix(".concat(gt.getRow(1)[0], ", ").concat(gt.getRow(1)[1], ", ").concat(gt.getRow(2)[0], ", ").concat(gt.getRow(2)[1], ", ").concat(gt.getRow(3)[0], ", ").concat(gt.getRow(3)[1], ")") + M) + for (dt.s(); !(ut = dt.n()).done; ) { + var ft = ut.value; + if (ft && !isNaN(ft.x)) { + var ht = !1; + if ("undefined" != typeof nt && null != t[f].fontByte && ft.text.charCodeAt() > 32 && 127 != ft.text.charCodeAt()) { + var pt = o.parse(t[f].fontByte)[0]; + if (null != pt.head) { + var mt = rt[lt] + , bt = o.U.glyphToPath(pt, mt) + , gt = o.U.pathToSVG(bt) + , vt = document.createElementNS("http://www.w3.org/2000/svg", "g"); + T ? vt.setAttribute("style", "fill:".concat(r, ";stroke:none")) : vt.setAttribute("style", "fill:".concat(r, ";stroke:").concat(i, "; stroke-width:").concat(j, "; fill-opacity:").concat(s, ";")); + var yt = W / pt.head.unitsPerEm + , St = q / pt.head.unitsPerEm; + if (l) { + var wt = Object(n["j"])(l) + , Ct = (ft.x, + wt[0], + ft.y, + wt[2], + ft.y, + wt[3], + Object(n["e"])(wt[5]), + C(d, wt, u, ft.x, ft.y, w, pt.head.unitsPerEm)); + vt.setAttribute("transform", "matrix(".concat(Ct.getRow(1)[0], ", ").concat(Ct.getRow(1)[1], ", ").concat(Ct.getRow(2)[0], ", ").concat(Ct.getRow(2)[1], ", ").concat(Ct.getRow(3)[0], ", ").concat(Ct.getRow(3)[1], ")") + L) } else { - var yt = st.x - , vt = st.y; - ht.setAttribute("transform", "matrix(".concat(pt, ", 0, 0, ").concat(-mt, ", ").concat(yt, ",").concat(vt, ")") + M) + var _t = ft.x + , At = ft.y; + vt.setAttribute("transform", "matrix(".concat(yt, ", 0, 0, ").concat(-St, ", ").concat(_t, ",").concat(At, ")") + L) } - var St = document.createElementNS("http://www.w3.org/2000/svg", "path"); - St.setAttribute("d", ft), - ht.appendChild(St), - _.appendChild(ht), - ct = !0 + var It = document.createElementNS("http://www.w3.org/2000/svg", "path"); + It.setAttribute("d", gt), + vt.appendChild(It), + I.appendChild(vt), + ht = !0 } else { - dt = Q[ot], - lt = o.U.glyphToPath(ut, dt), - ft = o.U.pathToSVG(lt); - var wt = document.createElementNS("http://www.w3.org/2000/svg", "g"); - I ? wt.setAttribute("style", "fill:".concat(r, ";stroke:none")) : wt.setAttribute("style", "fill:".concat(r, ";stroke:").concat(i, ";fill-opacity:").concat(s, ";")); - var Ct = .001; - ut["CFF "] && ut["CFF "].FontMatrix && (Ct = ut["CFF "].FontMatrix[0]); - var _t = L * Ct - , At = U * Ct; - if (d) { - var It = Object(n["j"])(d) - , Et = (st.x, - It[0], - st.y, - It[2], - st.y, - It[3], - Object(n["e"])(It[5]), - C(l, It, u, st.x, st.y, v, 1 / Ct)); - wt.setAttribute("transform", "matrix(".concat(Et.getRow(1)[0], ", ").concat(Et.getRow(1)[1], ", ").concat(Et.getRow(2)[0], ", ").concat(Et.getRow(2)[1], ", ").concat(Et.getRow(3)[0], ", ").concat(Et.getRow(3)[1], ")")) - } else { - var Tt = st.x - , xt = st.y; - wt.setAttribute("transform", "matrix(".concat(_t, ", 0, 0, ").concat(-At, ", ").concat(Tt, ",").concat(xt, ")")) + mt = rt[lt]; + try { + bt = o.U.glyphToPath(pt, mt), + gt = o.U.pathToSVG(bt); + if ("string" === typeof gt && gt.length > 0 || "?" == ft.text) { + var Et = document.createElementNS("http://www.w3.org/2000/svg", "g"); + T ? Et.setAttribute("style", "fill:".concat(r, ";stroke:none")) : Et.setAttribute("style", "fill:".concat(r, ";stroke:").concat(i, ";fill-opacity:").concat(s, ";")); + var Tt = .001; + pt["CFF "] && pt["CFF "].FontMatrix && (Tt = pt["CFF "].FontMatrix[0]); + var xt = W * Tt + , Pt = q * Tt; + if (l) { + var kt = Object(n["j"])(l) + , Dt = (ft.x, + kt[0], + ft.y, + kt[2], + ft.y, + kt[3], + Object(n["e"])(kt[5]), + C(d, kt, u, ft.x, ft.y, w, 1 / Tt)); + Et.setAttribute("transform", "matrix(".concat(Dt.getRow(1)[0], ", ").concat(Dt.getRow(1)[1], ", ").concat(Dt.getRow(2)[0], ", ").concat(Dt.getRow(2)[1], ", ").concat(Dt.getRow(3)[0], ", ").concat(Dt.getRow(3)[1], ")")) + } else { + var Ot = ft.x + , Rt = ft.y; + Et.setAttribute("transform", "matrix(".concat(xt, ", 0, 0, ").concat(-Pt, ", ").concat(Ot, ",").concat(Rt, ")")) + } + var Mt = document.createElementNS("http://www.w3.org/2000/svg", "path"); + Mt.setAttribute("d", gt), + Et.appendChild(Mt), + I.appendChild(Et), + ht = !0 + } + } catch (Lt) { + console.log(Lt) } - var Pt = document.createElementNS("http://www.w3.org/2000/svg", "path"); - Pt.setAttribute("d", ft), - wt.appendChild(Pt), - _.appendChild(wt), - ct = !0 } } - if (!ct) { - var kt = document.createElementNS("http://www.w3.org/2000/svg", "text"); - kt.setAttribute("x", st.x), - kt.setAttribute("y", st.y); - var Dt = document.createTextNode(st.text); - if (kt.appendChild(Dt), - d) { - var Ot = Object(n["j"])(d); - kt.setAttribute("transform", "matrix(".concat(Ot[0], " ").concat(Ot[1], " ").concat(Ot[2], " ").concat(Ot[3], " ").concat(Object(n["e"])(Ot[4]), " ").concat(Object(n["e"])(Ot[5]), ")") + M) + if (ht) { + var Nt = document.createElementNS("http://www.w3.org/2000/svg", "text"); + Nt.setAttribute("x", ft.x), + Nt.setAttribute("y", ft.y); + jt = document.createTextNode(ft.text); + if (Nt.appendChild(jt), + l) { + var Bt = Object(n["j"])(l); + Nt.setAttribute("transform", "matrix(".concat(Bt[0], " ").concat(Bt[1], " ").concat(Bt[2], " ").concat(Bt[3], " ").concat(Object(n["e"])(Bt[4]), " ").concat(Object(n["e"])(Bt[5]), ")") + L) } - l && kt.setAttribute("transform", "matrix(".concat(l, ", 0, 0, 1, ").concat((1 - l) * st.x, ", 0)") + M), - I ? kt.setAttribute("fill", r) : (kt.setAttribute("fill", i), - kt.setAttribute("fill", r), - kt.setAttribute("fill-opacity", s)), - kt.setAttribute("style", "".concat(b, " ").concat(p, " ").concat(y, " font-size:").concat(v, "px;font-family: ").concat(Object(n["g"])(t[f]), ";")), - _.appendChild(kt) + d && Nt.setAttribute("transform", "matrix(".concat(d, ", 0, 0, 1, ").concat((1 - d) * ft.x, ", 0)") + L), + Nt.setAttribute("fill", "none"), + Nt.setAttribute("style", "".concat(b, " ").concat(p, " ").concat(v, " font-size:").concat(w, "px;font-family: ").concat(Object(n["g"])(t[f]), ";")), + I.appendChild(Nt) + } else { + var Ft = document.createElementNS("http://www.w3.org/2000/svg", "text"); + Ft.setAttribute("x", ft.x), + Ft.setAttribute("y", ft.y); + var jt = document.createTextNode(ft.text); + if (Ft.appendChild(jt), + l) { + var Ut = Object(n["j"])(l); + Ft.setAttribute("transform", "matrix(".concat(Ut[0], " ").concat(Ut[1], " ").concat(Ut[2], " ").concat(Ut[3], " ").concat(Object(n["e"])(Ut[4]), " ").concat(Object(n["e"])(Ut[5]), ")") + L) + } + d && Ft.setAttribute("transform", "matrix(".concat(d, ", 0, 0, 1, ").concat((1 - d) * ft.x, ", 0)") + L), + T ? Ft.setAttribute("fill", r) : (Ft.setAttribute("fill", i), + Ft.setAttribute("fill", r), + Ft.setAttribute("fill-opacity", s)), + S || Ft.setAttribute("fill", "none"), + Ft.setAttribute("style", "".concat(b, " ").concat(p, " ").concat(v, " font-size:").concat(w, "px;font-family: ").concat(Object(n["g"])(t[f]), ";")), + I.appendChild(Ft) } } - ot++ + lt++ } - } catch (Rt) { - at.e(Rt) + } catch (Lt) { + dt.e(Lt) } finally { - at.f() + dt.f() } - return _.setAttribute("style", "overflow:visible;position:absolute;width:".concat(B, "px;height:").concat(F, "px;left:").concat(j, "px;top:").concat(K, "px;z-index:").concat(e["@_ID"])), - _ + return I.setAttribute("style", "overflow:visible;position:absolute;width:".concat(K, "px;height:").concat(X, "px;left:").concat(z, "px;top:").concat(G, "px;z-index:").concat(e["@_ID"])), + I } - , w = function(t, e, r, i, o, a, s, u, d) { - var l = document.createElementNS("http://www.w3.org/2000/svg", "svg"); - l.setAttribute("version", "1.1"); - var f = Object(n["k"])(e["@_Boundary"]); - if (!f) - return l; - f = Object(n["d"])(f); - var h = e["@_LineWidth"] - , p = e["ofd:AbbreviatedData"]; + , w = function(t, e, r, i, o, a, s, u, l, d, f) { + var h = document.createElementNS("http://www.w3.org/2000/svg", "svg"); + h.setAttribute("version", "1.1"); + var p = Object(n["k"])(e["@_Boundary"]); if (!p) - return l; - var m = Object(n["a"])(Object(n["c"])(p)) - , b = e["@_CTM"] - , g = document.createElementNS("http://www.w3.org/2000/svg", "path"); - h && (o = Object(n["e"])(h)); - var y = e["@_DrawParam"]; - if (y && t[y] && (h = t[y].LineWidth, - h && (o = Object(n["e"])(h))), - b) { - var v = Object(n["j"])(b); - g.setAttribute("transform", "matrix(".concat(v[0], " ").concat(v[1], " ").concat(v[2], " ").concat(v[3], " ").concat(Object(n["e"])(v[4]), " ").concat(Object(n["e"])(v[5]), ")")) + return h; + p = Object(n["d"])(p); + var m = e["@_LineWidth"] + , b = e["ofd:AbbreviatedData"]; + if (!b) + return h; + var v = Object(n["a"])(Object(n["c"])(b)) + , y = e["@_CTM"] + , S = document.createElementNS("http://www.w3.org/2000/svg", "path"); + m && (o = Object(n["e"])(m)); + var w = e["@_DrawParam"]; + if (w && t[w] && (m = t[w].LineWidth, + m && (o = Object(n["e"])(m))), + y) { + var C = Object(n["j"])(y); + S.setAttribute("transform", "matrix(".concat(C[0], " ").concat(C[1], " ").concat(C[2], " ").concat(C[3], " ").concat(Object(n["e"])(C[4]), " ").concat(Object(n["e"])(C[5]), ")")) } - var S = e["ofd:StrokeColor"]; - if (S) { - S["@_Value"] && (i = Object(n["i"])(S["@_Value"])); - var w = S["ofd:AxialShd"]; - if (w) { + var _ = e["ofd:StrokeColor"]; + if (_) { + _["@_Value"] && (i = Object(n["i"])(_["@_Value"])); + var A = _["ofd:AxialShd"]; + if (A) { !0; - var C = document.createElement("linearGradient"); - C.setAttribute("id", "".concat(e["@_ID"])), - C.setAttribute("x1", "0%"), - C.setAttribute("y1", "0%"), - C.setAttribute("x2", "100%"), - C.setAttribute("y2", "100%"); - var _, A = c(w["ofd:Segment"]); + var I = document.createElement("linearGradient"); + I.setAttribute("id", "".concat(e["@_ID"])), + I.setAttribute("x1", "0%"), + I.setAttribute("y1", "0%"), + I.setAttribute("x2", "100%"), + I.setAttribute("y2", "100%"); + var E, T = c(A["ofd:Segment"]); try { - for (A.s(); !(_ = A.n()).done; ) { - var I = _.value; - if (I) { - var E = document.createElement("stop"); - E.setAttribute("offset", "".concat(100 * I["@_Position"], "%")), - E.setAttribute("style", "stop-color:".concat(Object(n["i"])(I["ofd:Color"]["@_Value"]), ";stop-opacity:1")), - C.appendChild(E), - i = Object(n["i"])(I["ofd:Color"]["@_Value"]) + for (T.s(); !(E = T.n()).done; ) { + var x = E.value; + if (x) { + var P = document.createElement("stop"); + P.setAttribute("offset", "".concat(100 * x["@_Position"], "%")), + P.setAttribute("style", "stop-color:".concat(Object(n["i"])(x["ofd:Color"]["@_Value"]), ";stop-opacity:1")), + I.appendChild(P), + i = Object(n["i"])(x["ofd:Color"]["@_Value"]) } } - } catch ($) { - A.e($) + } catch (lt) { + T.e(lt) } finally { - A.f() + T.f() } - l.appendChild(C) + h.appendChild(I) } } else - y && t[y] && t[y].StrokeColor && (i = Object(n["i"])(t[y].StrokeColor)); - var T = e["ofd:FillColor"]; - var url = window.location.href; + w && t[w] && t[w].StrokeColor && (i = Object(n["i"])(t[w].StrokeColor)); + var k = e["ofd:FillColor"]; + var url = window.location.href; var spliceLength2 = url.lastIndexOf("="); var pathType = url.slice(spliceLength2 + 1); - if (T) { - if(pathType ==1){ - T["@_Value"] && ((T["@_Value"])), T["@_Alpha"] && 0 == T["@_Alpha"] && (r = "none"); + if (k) { + if(pathType ==1){ + k["@_Value"] && ((k["@_Value"])),k["@_Alpha"] && 0 == k["@_Alpha"] && (r = "none"); }else{ - T["@_Value"] && (r = Object(n["i"])(T["@_Value"])), T["@_Alpha"] && 0 == T["@_Alpha"] && (r = "none"); + k["@_Value"] && (r = Object(n["i"])(k["@_Value"])),k["@_Alpha"] && 0 == k["@_Alpha"] && (r = "none"); } - var x = T["ofd:AxialShd"]; - if (x) { + var D = k["ofd:AxialShd"]; + if (D) { !0; - var P = document.createElement("linearGradient"); - P.setAttribute("id", "".concat(e["@_ID"])), - P.setAttribute("x1", "0%"), - P.setAttribute("y1", "0%"), - P.setAttribute("x2", "100%"), - P.setAttribute("y2", "100%"); - var k, D = c(x["ofd:Segment"]); + var O = document.createElement("linearGradient"); + O.setAttribute("id", "".concat(e["@_ID"])), + O.setAttribute("x1", "0%"), + O.setAttribute("y1", "0%"), + O.setAttribute("x2", "100%"), + O.setAttribute("y2", "100%"); + var R, M = c(D["ofd:Segment"]); try { - for (D.s(); !(k = D.n()).done; ) { - var O = k.value; - if (O) { - var R = document.createElement("stop"); - R.setAttribute("offset", "".concat(100 * O["@_Position"], "%")), - R.setAttribute("style", "stop-color:".concat(Object(n["i"])(O["ofd:Color"]["@_Value"]), ";stop-opacity:1")), - P.appendChild(R), - r = Object(n["i"])(O["ofd:Color"]["@_Value"]) + for (M.s(); !(R = M.n()).done; ) { + var N = R.value; + if (N) { + var B = document.createElement("stop"); + B.setAttribute("offset", "".concat(100 * N["@_Position"], "%")), + B.setAttribute("style", "stop-color:".concat(Object(n["i"])(N["ofd:Color"]["@_Value"]), ";stop-opacity:1")), + O.appendChild(B), + r = Object(n["i"])(N["ofd:Color"]["@_Value"]) } } - } catch ($) { - D.e($) + } catch (lt) { + M.e(lt) } finally { - D.f() + M.f() + } + h.appendChild(O) + } + var F = k["ofd:Pattern"]; + if (F) { + var j = F["@_Width"] + , U = F["@_Height"] + , L = F["@_CTM"] + , K = F["ofd:CellContent"] + , X = K["ofd:ImageObject"]; + if (X) { + var z = X["@_ResourceID"]; + if (null != f[z] || void 0 != f[z]) { + var G = g(j, U, f, X, !1, null, L, !1); + d.appendChild(G) + } } - l.appendChild(P) } } else - y && t[y] && t[y].FillColor && (r = Object(n["i"])(t[y].FillColor)); - o > 0 && !i && (i = r, - i || (i = "rgb(0, 0, 0)")); - var N = e["@_Alpha"]; - if ("undefined" != typeof N ? g.setAttribute("fill-opacity", "".concat(N / 255)) : s && g.setAttribute("fill-opacity", "".concat(s / 255)), - "false" != e["@_Stroke"] && (g.setAttribute("stroke", "".concat(i)), - g.setAttribute("stroke-width", "".concat(o, "px")), - g.setAttribute("fill", "none")), + w && t[w] && t[w].FillColor && (r = Object(n["i"])(t[w].FillColor)); + o > 0 && !i && (i || (i = "rgb(0, 0, 0)")); + var W = e["@_Alpha"]; + if ("undefined" != typeof W ? S.setAttribute("fill-opacity", "".concat(W / 255)) : s && S.setAttribute("fill-opacity", "".concat(s / 255)), + "false" != e["@_Stroke"] && (S.setAttribute("stroke", "".concat(i)), + S.setAttribute("stroke-width", "".concat(o, "px")), + S.setAttribute("fill", "none")), e.hasOwnProperty("@_Fill") || (r = "none"), - "false" != e["@_Fill"] && g.setAttribute("fill", "".concat(r || "none")), - e["@_Join"] && g.setAttribute("stroke-linejoin", "".concat(e["@_Join"])), - e["@_Cap"] && g.setAttribute("stroke-linecap", "".concat(e["@_Cap"])), + "false" != e["@_Fill"] && S.setAttribute("fill", "".concat(r || "none")), + e["@_Join"] && S.setAttribute("stroke-linejoin", "".concat(e["@_Join"])), + e["@_Cap"] && S.setAttribute("stroke-linecap", "".concat(e["@_Cap"])), e["@_DashPattern"]) { - var M = e["@_DashPattern"] - , B = Object(n["j"])(M) - , F = 0; - e["@_DashOffset"] && (F = e["@_DashOffset"]), - g.setAttribute("stroke-dasharray", "".concat(Object(n["e"])(B[0]), ",").concat(Object(n["e"])(B[1]))), - g.setAttribute("stroke-dashoffset", "".concat(Object(n["e"])(F), "px")) + var q = e["@_DashPattern"] + , H = Object(n["j"])(q) + , V = 0; + e["@_DashOffset"] && (V = e["@_DashOffset"]), + S.setAttribute("stroke-dasharray", "".concat(Object(n["e"])(H[0]), ",").concat(Object(n["e"])(H[1]))), + S.setAttribute("stroke-dashoffset", "".concat(Object(n["e"])(V), "px")) } - var j, K = "", L = c(m); + var Z, Q = "", Y = c(v); try { - for (L.s(); !(j = L.n()).done; ) { - var U = j.value; - "M" === U.type ? K += "M".concat(U.x, " ").concat(U.y, " ") : "L" === U.type ? K += "L".concat(U.x, " ").concat(U.y, " ") : "B" === U.type ? K += "C".concat(U.x1, " ").concat(U.y1, " ").concat(U.x2, " ").concat(U.y2, " ").concat(U.x3, " ").concat(U.y3, " ") : "Q" === U.type ? K += "Q".concat(U.x1, " ").concat(U.y1, " ").concat(U.x2, " ").concat(U.y2, " ") : "A" === U.type ? K += "A".concat(U.rx, ",").concat(U.ry, " ").concat(U.rotation, " ").concat(U.arc, ",").concat(U.sweep, " ").concat(U.x, ",").concat(U.y) : "C" === U.type && (K += "Z") + for (Y.s(); !(Z = Y.n()).done; ) { + var J = Z.value; + "M" === J.type ? Q += "M".concat(J.x, " ").concat(J.y, " ") : "L" === J.type ? Q += "L".concat(J.x, " ").concat(J.y, " ") : "B" === J.type ? Q += "C".concat(J.x1, " ").concat(J.y1, " ").concat(J.x2, " ").concat(J.y2, " ").concat(J.x3, " ").concat(J.y3, " ") : "Q" === J.type ? Q += "Q".concat(J.x1, " ").concat(J.y1, " ").concat(J.x2, " ").concat(J.y2, " ") : "A" === J.type ? Q += "A".concat(J.rx, ",").concat(J.ry, " ").concat(J.rotation, " ").concat(J.arc, ",").concat(J.sweep, " ").concat(J.x, ",").concat(J.y) : "C" === J.type && (Q += "Z") } - } catch ($) { - L.e($) + } catch (lt) { + Y.e(lt) } finally { - L.f() + Y.f() } - g.setAttribute("d", K), - l.appendChild(g); - var X = a ? f.w : Math.ceil(f.w) - , z = a ? f.h : Math.ceil(f.h) - , G = f.x - , q = f.y; - if (l.setAttribute("style", "overflow:visible;position:absolute;width:".concat(X, "px;height:").concat(z, "px;left:").concat(G, "px;top:").concat(q, "px;z-index:").concat(e["@_ID"])), + S.setAttribute("d", Q), + h.appendChild(S); + var $ = a ? p.w : Math.ceil(p.w) + , tt = a ? p.h : Math.ceil(p.h) + , et = p.x + , rt = p.y; + if (h.setAttribute("style", "overflow:visible;position:absolute;width:".concat($, "px;height:").concat(tt, "px;left:").concat(et, "px;top:").concat(rt, "px;z-index:").concat(e["@_ID"])), u) { - var W = document.createElementNS("http://www.w3.org/2000/svg", "svg"); - W.setAttribute("version", "1.1"); - var V = Object(n["k"])(u); - V = Object(n["d"])(V); - var H = Math.ceil(V.w) - , Y = Math.ceil(V.h) - , Z = V.x - , Q = V.y; - if (W.setAttribute("style", "overflow:hidden;position:absolute;width:".concat(H, "px;height:").concat(Y, "px;left:").concat(Z, "px;top:").concat(Q, "px;z-index:").concat(e["@_ID"])), - d) { - var J = Object(n["j"])(d); - l.setAttribute("transform", "matrix(".concat(J[0], " ").concat(J[1], " ").concat(J[2], " ").concat(J[3], " ").concat(Object(n["e"])(J[4]), " ").concat(Object(n["e"])(J[5]), ")")) + var nt = document.createElementNS("http://www.w3.org/2000/svg", "svg"); + nt.setAttribute("version", "1.1"); + var it = Object(n["k"])(u); + it = Object(n["d"])(it); + var ot = Math.ceil(it.w) + , at = Math.ceil(it.h) + , st = it.x + , ct = it.y; + if (nt.setAttribute("style", "overflow:hidden;position:absolute;width:".concat(ot, "px;height:").concat(at, "px;left:").concat(st, "px;top:").concat(ct, "px;z-index:").concat(e["@_ID"])), + l) { + var ut = Object(n["j"])(l); + h.setAttribute("transform", "matrix(".concat(ut[0], " ").concat(ut[1], " ").concat(ut[2], " ").concat(ut[3], " ").concat(Object(n["e"])(ut[4]), " ").concat(Object(n["e"])(ut[5]), ")")) } - return W.appendChild(l), - W + return nt.appendChild(h), + nt } - return l + return h } , C = function(t, e, r, n, i, o, s, c) { var u = new a([1, 0, 0, 0, -1, 0, 0, 0, 1]); "undefined" == typeof t && (t = 1), - u = _(u, Number(t), 1); - var d = new a([1 / s, 0, 0, 0, 1 / s, 0, 0, 0, 1]); - if (u = u.multiply(d), - u = _(u, o / 3.7795, o / 3.7795), - u = A(u, n / 3.7795, i / 3.7795), + u = I(u, Number(t), 1); + var l = new a([1 / s, 0, 0, 0, 1 / s, 0, 0, 0, 1]); + if (u = u.multiply(l), + u = I(u, o / 3.7795, o / 3.7795), + u = E(u, n / 3.7795, i / 3.7795), null != e) { - var l = new a([Number(e[0]), Number(e[1]), 0, Number(e[2]), Number(e[3]), 0, Number(e[4]), Number(e[5]), 1]); - u = u.multiply(l) + var d = new a([Number(e[0]), Number(e[1]), 0, Number(e[2]), Number(e[3]), 0, Number(e[4]), Number(e[5]), 1]); + u = u.multiply(d) } return "undefined" == typeof c && (c = new a([3.7795, 0, 0, 0, 3.7795, 0, 0, 0, 1])), u = u.multiply(c), u } - , _ = function(t, e, r) { + , _ = function(t) { + var e = new a([Number(t[0]), Number(t[1]), 0, Number(t[2]), Number(t[3]), 0, Number(t[4]), Number(t[5]), 1]); + return e + } + , A = function(t) { + return [t.getRow(1)[0], t.getRow(1)[1], t.getRow(2)[0], t.getRow(2)[1], t.getRow(3)[0], t.getRow(3)[1]] + } + , I = function(t, e, r) { var n = new a([e, 0, 0, 0, r, 0, 0, 0, 1]); return t.multiply(n) } - , A = function(t, e, r) { + , E = function(t, e, r) { var n = new a([1, 0, 0, 0, 1, 0, e, r, 1]); return t.multiply(n) } @@ -25191,7 +29129,7 @@ if ("string" === typeof e) return t && t[0] && void 0 !== t[0].val ? s(t[0].val, e) : s(t, e); { - const n = d(t); + const n = l(t); if (!0 === n) { let n = ""; if (Array.isArray(e)) { @@ -25244,13 +29182,13 @@ , u = function(t) { return -1 !== o.indexOf(t) }; - function d(t) { + function l(t) { return void 0 === t ? i.missingChar : null === t ? i.nilChar : !(t.child && 0 === Object.keys(t.child).length && (!t.attrsMap || 0 === Object.keys(t.attrsMap).length)) || i.emptyChar } - const l = r("8a24") + const d = r("8a24") , f = r("90da").buildOptions , h = function(t, e, r) { - return r = f(r, l.defaultOptions, l.props), + return r = f(r, d.defaultOptions, d.props), a(t, e, r) }; e.convert2nimn = h @@ -25311,17 +29249,17 @@ , s = r("0083") , c = r("bc3a") , u = r.n(c); - function d(t) { - return d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { + function l(t) { + return l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t } : function(t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t } , - d(t) + l(t) } - function l(t, e) { + function d(t, e) { var r = "undefined" !== typeof Symbol && t[Symbol.iterator] || t["@@iterator"]; if (!r) { if (Array.isArray(t) || (r = f(t)) || e && t && "number" === typeof t.length) { @@ -25434,7 +29372,7 @@ if (a) { var s = C(a, r); if (s) { - if (s === l) + if (s === d) continue; return s } @@ -25452,7 +29390,7 @@ var c = u(t, e, r); if ("normal" === c.type) { if (n = r.done ? "completed" : "suspendedYield", - c.arg === l) + c.arg === d) continue; return { value: c.arg, @@ -25481,7 +29419,7 @@ } } t.wrap = c; - var l = {}; + var d = {}; function f() {} function h() {} function m() {} @@ -25491,9 +29429,9 @@ } )); var g = Object.getPrototypeOf - , y = g && g(g(E([]))); - y && y !== e && r.call(y, i) && (b = y); - var v = m.prototype = f.prototype = Object.create(b); + , v = g && g(g(E([]))); + v && v !== e && r.call(v, i) && (b = v); + var y = m.prototype = f.prototype = Object.create(b); function S(t) { ["next", "throw", "return"].forEach((function(e) { s(t, e, (function(t) { @@ -25507,17 +29445,17 @@ function n(i, o, a, s) { var c = u(t[i], t, o); if ("throw" !== c.type) { - var l = c.arg - , f = l.value; - return f && "object" == d(f) && r.call(f, "__await") ? e.resolve(f.__await).then((function(t) { + var d = c.arg + , f = d.value; + return f && "object" == l(f) && r.call(f, "__await") ? e.resolve(f.__await).then((function(t) { n("next", t, a, s) } ), (function(t) { n("throw", t, a, s) } )) : e.resolve(f).then((function(t) { - l.value = t, - a(l) + d.value = t, + a(d) } ), (function(t) { return n("throw", t, a, s) @@ -25546,28 +29484,28 @@ e.arg = void 0, C(t, e), "throw" === e.method)) - return l; + return d; e.method = "throw", e.arg = new TypeError("The iterator does not provide a 'throw' method") } - return l + return d } var n = u(r, t.iterator, e.arg); if ("throw" === n.type) return e.method = "throw", e.arg = n.arg, e.delegate = null, - l; + d; var i = n.arg; return i ? i.done ? (e[t.resultName] = i.value, e.next = t.nextLoc, "return" !== e.method && (e.method = "next", e.arg = void 0), e.delegate = null, - l) : i : (e.method = "throw", + d) : i : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, - l) + d) } function _(t) { var e = { @@ -25624,7 +29562,7 @@ } } return h.prototype = m, - s(v, "constructor", m), + s(y, "constructor", m), s(m, "constructor", h), h.displayName = s(m, a, "GeneratorFunction"), t.isGeneratorFunction = function(t) { @@ -25635,7 +29573,7 @@ t.mark = function(t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, m) : (t.__proto__ = m, s(t, a, "GeneratorFunction")), - t.prototype = Object.create(v), + t.prototype = Object.create(y), t } , @@ -25660,13 +29598,13 @@ )) } , - S(v), - s(v, a, "Generator"), - s(v, i, (function() { + S(y), + s(y, a, "Generator"), + s(y, i, (function() { return this } )), - s(v, "toString", (function() { + s(y, "toString", (function() { return "[object Generator]" } )), @@ -25762,7 +29700,7 @@ a.arg = e, o ? (this.method = "next", this.next = o.finallyLoc, - l) : this.complete(a) + d) : this.complete(a) }, complete: function(t, e) { if ("throw" === t.type) @@ -25770,7 +29708,7 @@ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), - l + d }, finish: function(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { @@ -25778,7 +29716,7 @@ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), A(r), - l + d } }, catch: function(t) { @@ -25802,7 +29740,7 @@ nextLoc: r }, "next" === this.method && (this.arg = void 0), - l + d } }, t @@ -25835,13 +29773,13 @@ } u.a.defaults.timeout = 3e4; var g = "" - , y = !1 - , v = "" + , v = !1 + , y = "" , S = function(t) { - y = "Server" == t + v = "Server" == t } , w = function(t) { - v = t + y = t } , C = function(t) { g = t @@ -25854,7 +29792,7 @@ )) } , A = function(e) { - if (y && "" != v) { + if (v && "" != y) { var r = new FormData; r.append("file", e.ofd), r.append("zoomScale", Object(a["h"])()); @@ -25862,7 +29800,7 @@ r.append("accessId", n); var s = k(new Date, "yyyy-MM-dd hh:mm:ss"); r.append("reqTime", s), - u.a.post(v + "getPageSvgInfo", r, { + u.a.post(y + "getPageSvgInfo", r, { "Content-type": "multipart/form-data" }).then((function(t) { if (console.log(t), @@ -25910,16 +29848,16 @@ var r = []; if (!t) return r; - if (y && "" != v) { - var i, o = 0, s = l(t.pages); + if (v && "" != y) { + var i, o = 0, s = d(t.pages); try { for (s.s(); !(i = s.n()).done; ) { var c = i.value , u = Object(a["e"])(c[0]) - , d = Object(a["e"])(c[1]) + , l = Object(a["e"])(c[1]) , f = document.createElement("div"); f.id = o, - f.setAttribute("style", "margin-top: 15px; position: relative; width: ".concat(u, "px; height: ").concat(d, "px; background: white; box-shadow: 0px 0px 10px 3PX grey;")), + f.setAttribute("style", "margin-top: 15px; position: relative; width: ".concat(u, "px; height: ").concat(l, "px; background: white; box-shadow: 0px 0px 10px 3PX grey;")), f.className = "page-break", f.innerHTML = t.listPageSvg[o], r.push(f), @@ -25931,7 +29869,7 @@ s.f() } } else { - var h, p = l(t.pages); + var h, p = d(t.pages); try { for (p.s(); !(h = p.n()).done; ) { var m = h.value @@ -25956,8 +29894,8 @@ var e = []; if (!t) return e; - if (!y || "" == v) { - var r, i = l(t.pages); + if (!v || "" == y) { + var r, i = d(t.pages); try { for (i.s(); !(r = i.n()).done; ) { var o = r.value @@ -25978,7 +29916,7 @@ } } , T = function(t) { - Object(a["n"])(t) + Object(a["o"])(t) } , x = function() { return Object(a["h"])() @@ -26027,7 +29965,7 @@ , r = a.f(e) , n = r.resolve , u = r.reject - , d = s((function() { + , l = s((function() { var r = o(e.resolve) , a = [] , s = 0 @@ -26058,7 +29996,7 @@ --u || n(a) } )); - return d.error && u(d.value), + return l.error && u(l.value), r.promise } }) @@ -26154,12 +30092,12 @@ function u(t) { return "number" === typeof t && (!n(t) && !(t < 0)) } - function d(t, e, r) { + function l(t, e, r) { if ("function" !== typeof t) throw new TypeError("Argument is not a function"); return Function.prototype.apply.call(t, e, r) } - function l(t, e, r, n) { + function d(t, e, r, n) { var i = t[e]; if (void 0 !== i) { if ("function" !== typeof i) @@ -26184,11 +30122,11 @@ function f(t, e, r) { var n = t[e]; if (void 0 !== n) - return d(n, t, r) + return l(n, t, r) } function h(t, e, r) { try { - return _(d(t, e, r)) + return _(l(t, e, r)) } catch (n) { return A(n) } @@ -26217,12 +30155,12 @@ return t(e) } } - var y = Promise - , v = Promise.prototype.then - , S = Promise.resolve.bind(y) - , w = Promise.reject.bind(y); + var v = Promise + , y = Promise.prototype.then + , S = Promise.resolve.bind(v) + , w = Promise.reject.bind(v); function C(t) { - return new y(t) + return new v(t) } function _(t) { return S(t) @@ -26231,7 +30169,7 @@ return w(t) } function I(t, e, r) { - return v.call(t, e, r) + return y.call(t, e, r) } function E(t, e, r) { I(I(t, e, r), void 0, i) @@ -26328,18 +30266,18 @@ i.done = e, i } - function N(t, e) { + function M(t, e) { t._forAuthorCode = !0, t._ownerReadableStream = e, e._reader = t, - "readable" === e._state ? j(t) : "closed" === e._state ? L(t) : K(t, e._storedError) + "readable" === e._state ? j(t) : "closed" === e._state ? L(t) : U(t, e._storedError) } - function M(t, e) { + function N(t, e) { var r = t._ownerReadableStream; return Br(r, e) } function B(t) { - "readable" === t._ownerReadableStream._state ? U(t, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")) : X(t, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")), + "readable" === t._ownerReadableStream._state ? K(t, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")) : X(t, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")), t._ownerReadableStream._reader = void 0, t._ownerReadableStream = void 0 } @@ -26353,22 +30291,22 @@ } )) } - function K(t, e) { + function U(t, e) { j(t), - U(t, e) + K(t, e) } function L(t) { j(t), z(t) } - function U(t, e) { + function K(t, e) { k(t._closedPromise), t._closedPromise_reject(e), t._closedPromise_resolve = void 0, t._closedPromise_reject = void 0 } function X(t, e) { - K(t, e) + U(t, e) } function z(t) { t._closedPromise_resolve(void 0), @@ -26376,14 +30314,14 @@ t._closedPromise_reject = void 0 } var G = e("[[CancelSteps]]") - , q = e("[[PullSteps]]"); - function W(t, e) { + , W = e("[[PullSteps]]"); + function q(t, e) { void 0 === e && (e = !1); var r = new $(t); return r._forAuthorCode = e, r } - function V(t) { + function H(t) { var e = C((function(e, r) { var n = { _resolve: e, @@ -26394,25 +30332,25 @@ )); return e } - function H(t, e, r) { + function V(t, e, r) { var n = t._reader , i = n._readRequests.shift(); i._resolve(R(e, r, n._forAuthorCode)) } - function Y(t) { + function Z(t) { return t._reader._readRequests.length } - function Z(t) { + function Q(t) { var e = t._reader; return void 0 !== e && !!tt(e) } - var Q, J, $ = function() { + var Y, J, $ = function() { function t(t) { - if (!1 === Nr(t)) + if (!1 === Mr(t)) throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance"); - if (!0 === Mr(t)) + if (!0 === Nr(t)) throw new TypeError("This stream has already been locked for exclusive reading by another reader"); - N(this, t), + M(this, t), this._readRequests = new O } return Object.defineProperty(t.prototype, "closed", { @@ -26423,7 +30361,7 @@ configurable: !0 }), t.prototype.cancel = function(t) { - return tt(this) ? void 0 === this._ownerReadableStream ? A(F("cancel")) : M(this, t) : A(rt("cancel")) + return tt(this) ? void 0 === this._ownerReadableStream ? A(F("cancel")) : N(this, t) : A(rt("cancel")) } , t.prototype.read = function() { @@ -26448,17 +30386,17 @@ function et(t) { var e = t._ownerReadableStream; return e._disturbed = !0, - "closed" === e._state ? _(R(void 0, !0, t._forAuthorCode)) : "errored" === e._state ? A(e._storedError) : e._readableStreamController[q]() + "closed" === e._state ? _(R(void 0, !0, t._forAuthorCode)) : "errored" === e._state ? A(e._storedError) : e._readableStreamController[W]() } function rt(t) { return new TypeError("ReadableStreamDefaultReader.prototype." + t + " can only be used on a ReadableStreamDefaultReader") } - "symbol" === typeof e.asyncIterator && (Q = {}, - Q[e.asyncIterator] = function() { + "symbol" === typeof e.asyncIterator && (Y = {}, + Y[e.asyncIterator] = function() { return this } , - J = Q, + J = Y, Object.defineProperty(J, e.asyncIterator, { enumerable: !1 })); @@ -26484,7 +30422,7 @@ if (e._readRequests.length > 0) return A(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled")); if (!1 === this._preventCancel) { - var r = M(e, t); + var r = N(e, t); return B(e), P(r, (function() { return R(t, !0, !0) @@ -26497,7 +30435,7 @@ }; function it(t, e) { void 0 === e && (e = !1); - var r = W(t) + var r = q(t) , n = Object.create(nt); return n._asyncIteratorReader = r, n._preventCancel = Boolean(e), @@ -26529,7 +30467,7 @@ var e = t._queue.peek(); return e.value } - function dt(t) { + function lt(t) { t._queue = new O, t._queueTotalSize = 0 } @@ -26540,7 +30478,7 @@ Object.defineProperty(nt, "return", { enumerable: !1 }); - var lt = e("[[AbortSteps]]") + var dt = e("[[AbortSteps]]") , ft = e("[[ErrorSteps]]") , ht = function() { function t(t, e) { @@ -26555,23 +30493,23 @@ var o = g(r); void 0 === n && (n = 1), n = b(n), - Ht(this, t, n, o) + Vt(this, t, n, o) } return Object.defineProperty(t.prototype, "locked", { get: function() { if (!1 === gt(this)) throw ae("locked"); - return yt(this) + return vt(this) }, enumerable: !0, configurable: !0 }), t.prototype.abort = function(t) { - return !1 === gt(this) ? A(ae("abort")) : !0 === yt(this) ? A(new TypeError("Cannot abort a stream that already has a writer")) : vt(this, t) + return !1 === gt(this) ? A(ae("abort")) : !0 === vt(this) ? A(new TypeError("Cannot abort a stream that already has a writer")) : yt(this, t) } , t.prototype.close = function() { - return !1 === gt(this) ? A(ae("close")) : !0 === yt(this) ? A(new TypeError("Cannot close a stream that already has a writer")) : !0 === Pt(this) ? A(new TypeError("Cannot close an already-closing stream")) : St(this) + return !1 === gt(this) ? A(ae("close")) : !0 === vt(this) ? A(new TypeError("Cannot close a stream that already has a writer")) : !0 === Pt(this) ? A(new TypeError("Cannot close an already-closing stream")) : St(this) } , t.prototype.getWriter = function() { @@ -26583,7 +30521,7 @@ t }(); function pt(t) { - return new Mt(t) + return new Nt(t) } function mt(t, e, r, n, i, o) { void 0 === i && (i = 1), @@ -26593,8 +30531,8 @@ ); var a = Object.create(ht.prototype); bt(a); - var s = Object.create(qt.prototype); - return Vt(a, s, t, e, r, n, i, o), + var s = Object.create(Wt.prototype); + return Ht(a, s, t, e, r, n, i, o), a } function bt(t) { @@ -26612,10 +30550,10 @@ function gt(t) { return !!o(t) && !!Object.prototype.hasOwnProperty.call(t, "_writableStreamController") } - function yt(t) { + function vt(t) { return void 0 !== t._writer } - function vt(t, e) { + function yt(t, e) { var r = t._state; if ("closed" === r || "errored" === r) return _(void 0); @@ -26652,7 +30590,7 @@ )) , n = t._writer; return void 0 !== n && !0 === t._backpressure && "writable" === e && we(n), - Zt(t._writableStreamController), + Qt(t._writableStreamController), r } function wt(t) { @@ -26675,7 +30613,7 @@ t._state = "erroring", t._storedError = e; var n = t._writer; - void 0 !== n && Ut(n, e), + void 0 !== n && Kt(n, e), !1 === kt(t) && !0 === r._started && At(t) } function At(t) { @@ -26693,7 +30631,7 @@ !0 === r._wasAlreadyErroring) return r._reject(e), void Rt(t); - var n = t._writableStreamController[lt](r._reason); + var n = t._writableStreamController[dt](r._reason); E(n, (function() { r._resolve(), Rt(t) @@ -26752,16 +30690,16 @@ var e = t._writer; void 0 !== e && fe(e, t._storedError) } - function Nt(t, e) { + function Mt(t, e) { var r = t._writer; - void 0 !== r && e !== t._backpressure && (!0 === e ? ve(r) : we(r)), + void 0 !== r && e !== t._backpressure && (!0 === e ? ye(r) : we(r)), t._backpressure = e } - var Mt = function() { + var Nt = function() { function t(t) { if (!1 === gt(t)) throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance"); - if (!0 === yt(t)) + if (!0 === vt(t)) throw new TypeError("This stream has already been locked for exclusive writing by another writer"); this._ownerWritableStream = t, t._writer = this; @@ -26774,11 +30712,11 @@ ue(this); else if ("closed" === e) ge(this), - le(this); + de(this); else { var r = t._storedError; be(this, r), - de(this, r) + le(this, r) } } return Object.defineProperty(t.prototype, "closed", { @@ -26835,13 +30773,13 @@ } function Ft(t, e) { var r = t._ownerWritableStream; - return vt(r, e) + return yt(r, e) } function jt(t) { var e = t._ownerWritableStream; return St(e) } - function Kt(t) { + function Ut(t) { var e = t._ownerWritableStream , r = e._state; return !0 === Pt(e) || "closed" === r ? _(void 0) : "errored" === r ? A(e._storedError) : jt(t) @@ -26849,8 +30787,8 @@ function Lt(t, e) { "pending" === t._closedPromiseState ? fe(t, e) : he(t, e) } - function Ut(t, e) { - "pending" === t._readyPromiseState ? ye(t, e) : Se(t, e) + function Kt(t, e) { + "pending" === t._readyPromiseState ? ve(t, e) : Se(t, e) } function Xt(t) { var e = t._ownerWritableStream @@ -26860,7 +30798,7 @@ function zt(t) { var e = t._ownerWritableStream , r = new TypeError("Writer was released and can no longer be used to monitor the stream's closedness"); - Ut(t, r), + Kt(t, r), Lt(t, r), e._writer = void 0, t._ownerWritableStream = void 0 @@ -26868,7 +30806,7 @@ function Gt(t, e) { var r = t._ownerWritableStream , n = r._writableStreamController - , i = Qt(n, e); + , i = Yt(n, e); if (r !== t._ownerWritableStream) return A(ce("write to")); var o = r._state; @@ -26882,38 +30820,38 @@ return $t(n, e, i), a } - var qt = function() { + var Wt = function() { function t() { throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly") } return t.prototype.error = function(t) { - if (!1 === Wt(this)) + if (!1 === qt(this)) throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController"); var e = this._controlledWritableStream._state; "writable" === e && oe(this, t) } , - t.prototype[lt] = function(t) { + t.prototype[dt] = function(t) { var e = this._abortAlgorithm(t); - return Yt(this), + return Zt(this), e } , t.prototype[ft] = function() { - dt(this) + lt(this) } , t }(); - function Wt(t) { + function qt(t) { return !!o(t) && !!Object.prototype.hasOwnProperty.call(t, "_controlledWritableStream") } - function Vt(t, e, r, n, i, o, a, s) { + function Ht(t, e, r, n, i, o, a, s) { e._controlledWritableStream = t, t._writableStreamController = e, e._queue = void 0, e._queueTotalSize = void 0, - dt(e), + lt(e), e._started = !1, e._strategySizeAlgorithm = s, e._strategyHWM = a, @@ -26921,10 +30859,10 @@ e._closeAlgorithm = i, e._abortAlgorithm = o; var c = ie(e); - Nt(t, c); + Mt(t, c); var u = r() - , d = _(u); - E(d, (function() { + , l = _(u); + E(l, (function() { e._started = !0, te(e) } @@ -26934,27 +30872,27 @@ } )) } - function Ht(t, e, r, n) { - var i = Object.create(qt.prototype); + function Vt(t, e, r, n) { + var i = Object.create(Wt.prototype); function o() { return f(e, "start", [i]) } - var a = l(e, "write", 1, [i]) - , s = l(e, "close", 0, []) - , c = l(e, "abort", 1, []); - Vt(t, i, o, a, s, c, r, n) + var a = d(e, "write", 1, [i]) + , s = d(e, "close", 0, []) + , c = d(e, "abort", 1, []); + Ht(t, i, o, a, s, c, r, n) } - function Yt(t) { + function Zt(t) { t._writeAlgorithm = void 0, t._closeAlgorithm = void 0, t._abortAlgorithm = void 0, t._strategySizeAlgorithm = void 0 } - function Zt(t) { + function Qt(t) { ct(t, "close", 0), te(t) } - function Qt(t, e) { + function Yt(t, e) { try { return t._strategySizeAlgorithm(e) } catch (r) { @@ -26977,7 +30915,7 @@ var i = t._controlledWritableStream; if (!1 === Pt(i) && "writable" === i._state) { var o = ie(t); - Nt(i, o) + Mt(i, o) } te(t) } @@ -27002,7 +30940,7 @@ Dt(e), st(t); var r = t._closeAlgorithm(); - Yt(t), + Zt(t), E(r, (function() { Tt(e) } @@ -27021,12 +30959,12 @@ if (st(t), !1 === Pt(r) && "writable" === e) { var n = ie(t); - Nt(r, n) + Mt(r, n) } te(t) } ), (function(e) { - "writable" === r._state && Yt(t), + "writable" === r._state && Zt(t), Et(r, e) } )) @@ -27037,7 +30975,7 @@ } function oe(t, e) { var r = t._controlledWritableStream; - Yt(t), + Zt(t), _t(r, e) } function ae(t) { @@ -27057,11 +30995,11 @@ } )) } - function de(t, e) { + function le(t, e) { ue(t), fe(t, e) } - function le(t) { + function de(t) { ue(t), pe(t) } @@ -27073,7 +31011,7 @@ t._closedPromiseState = "rejected" } function he(t, e) { - de(t, e) + le(t, e) } function pe(t) { t._closedPromise_resolve(void 0), @@ -27091,20 +31029,20 @@ } function be(t, e) { me(t), - ye(t, e) + ve(t, e) } function ge(t) { me(t), we(t) } - function ye(t, e) { + function ve(t, e) { k(t._readyPromise), t._readyPromise_reject(e), t._readyPromise_resolve = void 0, t._readyPromise_reject = void 0, t._readyPromiseState = "rejected" } - function ve(t) { + function ye(t) { me(t) } function Se(t, e) { @@ -27121,7 +31059,7 @@ return !1; try { return "boolean" === typeof t.aborted - } catch (Q) { + } catch (Y) { return !1 } } @@ -27132,7 +31070,7 @@ try { return new t, !0 - } catch (Q) { + } catch (Y) { return !1 } } @@ -27152,19 +31090,19 @@ } var Ee = Ae(_e) ? _e : Ie(); function Te(t, e, n, i, o, a) { - var s = W(t) + var s = q(t) , c = pt(e); t._disturbed = !0; var u = !1 - , d = _(void 0); - return C((function(l, f) { + , l = _(void 0); + return C((function(d, f) { var h; if (void 0 !== a) { if (h = function() { var r = new Ee("Aborted","AbortError") , n = []; !1 === i && n.push((function() { - return "writable" === e._state ? vt(e, r) : _(void 0) + return "writable" === e._state ? yt(e, r) : _(void 0) } )), !1 === o && n.push((function() { @@ -27196,30 +31134,30 @@ function m() { return !0 === u ? _(!0) : I(c._readyPromise, (function() { return I(et(s), (function(t) { - return !0 === t.done || (d = I(Gt(c, t.value), void 0, r), + return !0 === t.done || (l = I(Gt(c, t.value), void 0, r), !1) } )) } )) } - if (y(t, s._closedPromise, (function(t) { + if (v(t, s._closedPromise, (function(t) { !1 === i ? S((function() { - return vt(e, t) + return yt(e, t) } ), !0, t) : w(!0, t) } )), - y(e, c._closedPromise, (function(e) { + v(e, c._closedPromise, (function(e) { !1 === o ? S((function() { return Br(t, e) } ), !0, e) : w(!0, e) } )), - v(t, s._closedPromise, (function() { + y(t, s._closedPromise, (function() { !1 === n ? S((function() { - return Kt(c) + return Ut(c) } )) : w() } @@ -27232,16 +31170,16 @@ ), !0, b) : w(!0, b) } function g() { - var t = d; - return I(d, (function() { - return t !== d ? g() : void 0 + var t = l; + return I(l, (function() { + return t !== l ? g() : void 0 } )) } - function y(t, e, r) { + function v(t, e, r) { "errored" === t._state ? r(t._storedError) : x(e, r) } - function v(t, e, r) { + function y(t, e, r) { "closed" === t._state ? r() : T(e, r) } function S(t, r, n) { @@ -27268,7 +31206,7 @@ zt(c), B(s), void 0 !== a && a.removeEventListener("abort", h), - t ? f(e) : l(void 0) + t ? f(e) : d(void 0) } k(p()) } @@ -27281,7 +31219,7 @@ return Object.defineProperty(t.prototype, "desiredSize", { get: function() { if (!1 === Pe(this)) - throw Ue("desiredSize"); + throw Ke("desiredSize"); return Be(this) }, enumerable: !0, @@ -27289,7 +31227,7 @@ }), t.prototype.close = function() { if (!1 === Pe(this)) - throw Ue("close"); + throw Ke("close"); if (!1 === je(this)) throw new TypeError("The stream is not in a state that permits close"); Re(this) @@ -27297,26 +31235,26 @@ , t.prototype.enqueue = function(t) { if (!1 === Pe(this)) - throw Ue("enqueue"); + throw Ke("enqueue"); if (!1 === je(this)) throw new TypeError("The stream is not in a state that permits enqueue"); - return Ne(this, t) + return Me(this, t) } , t.prototype.error = function(t) { if (!1 === Pe(this)) - throw Ue("error"); - Me(this, t) + throw Ke("error"); + Ne(this, t) } , t.prototype[G] = function(t) { - dt(this); + lt(this); var e = this._cancelAlgorithm(t); return Oe(this), e } , - t.prototype[q] = function() { + t.prototype[W] = function() { var t = this._controlledReadableStream; if (this._queue.length > 0) { var e = st(this); @@ -27324,7 +31262,7 @@ Fr(t)) : ke(this), _(R(e, !1, t._reader._forAuthorCode)) } - var r = V(t); + var r = H(t); return ke(this), r } @@ -27346,7 +31284,7 @@ ke(t)) } ), (function(e) { - Me(t, e) + Ne(t, e) } )) } else @@ -27358,7 +31296,7 @@ return !1; if (!1 === t._started) return !1; - if (!0 === Mr(e) && Y(e) > 0) + if (!0 === Nr(e) && Z(e) > 0) return !0; var r = Be(t); return r > 0 @@ -27374,30 +31312,30 @@ 0 === t._queue.length && (Oe(t), Fr(e)) } - function Ne(t, e) { + function Me(t, e) { var r = t._controlledReadableStream; - if (!0 === Mr(r) && Y(r) > 0) - H(r, e, !1); + if (!0 === Nr(r) && Z(r) > 0) + V(r, e, !1); else { var n = void 0; try { n = t._strategySizeAlgorithm(e) } catch (i) { - throw Me(t, i), + throw Ne(t, i), i } try { ct(t, e, n) } catch (o) { - throw Me(t, o), + throw Ne(t, o), o } } ke(t) } - function Me(t, e) { + function Ne(t, e) { var r = t._controlledReadableStream; - "readable" === r._state && (dt(t), + "readable" === r._state && (lt(t), Oe(t), jr(r, e)) } @@ -27413,11 +31351,11 @@ var e = t._controlledReadableStream._state; return !1 === t._closeRequested && "readable" === e } - function Ke(t, e, r, n, i, o, a) { + function Ue(t, e, r, n, i, o, a) { e._controlledReadableStream = t, e._queue = void 0, e._queueTotalSize = void 0, - dt(e), + lt(e), e._started = !1, e._closeRequested = !1, e._pullAgain = !1, @@ -27433,7 +31371,7 @@ ke(e) } ), (function(t) { - Me(e, t) + Ne(e, t) } )) } @@ -27442,15 +31380,15 @@ function o() { return f(e, "start", [i]) } - var a = l(e, "pull", 0, [i]) - , s = l(e, "cancel", 1, []); - Ke(t, i, o, a, s, r, n) + var a = d(e, "pull", 0, [i]) + , s = d(e, "cancel", 1, []); + Ue(t, i, o, a, s, r, n) } - function Ue(t) { + function Ke(t) { return new TypeError("ReadableStreamDefaultController.prototype." + t + " can only be used on a ReadableStreamDefaultController") } function Xe(t, e) { - var r, n, i, o, s, c = W(t), u = !1, d = !1, l = !1, f = C((function(t) { + var r, n, i, o, s, c = q(t), u = !1, l = !1, d = !1, f = C((function(t) { s = t } )); @@ -27462,22 +31400,22 @@ u = !1; var e = t.done; if (!0 === e) - return !1 === d && Re(i._readableStreamController), - void (!1 === l && Re(o._readableStreamController)); + return !1 === l && Re(i._readableStreamController), + void (!1 === d && Re(o._readableStreamController)); var r = t.value , n = r , a = r; - !1 === d && Ne(i._readableStreamController, n), - !1 === l && Ne(o._readableStreamController, a) + !1 === l && Me(i._readableStreamController, n), + !1 === d && Me(o._readableStreamController, a) } )); return k(t), _(void 0) } function p(e) { - if (d = !0, + if (l = !0, r = e, - !0 === l) { + !0 === d) { var i = a([r, n]) , o = Br(t, i); s(o) @@ -27485,9 +31423,9 @@ return f } function m(e) { - if (l = !0, + if (d = !0, n = e, - !0 === d) { + !0 === l) { var i = a([r, n]) , o = Br(t, i); s(o) @@ -27498,8 +31436,8 @@ return i = Or(b, h, p), o = Or(b, h, m), x(c._closedPromise, (function(t) { - Me(i._readableStreamController, t), - Me(o._readableStreamController, t) + Ne(i._readableStreamController, t), + Ne(o._readableStreamController, t) } )), [i, o] @@ -27513,7 +31451,7 @@ } return Object.defineProperty(t.prototype, "view", { get: function() { - if (!1 === Ve(this)) + if (!1 === He(this)) throw Sr("view"); return this._view }, @@ -27521,7 +31459,7 @@ configurable: !0 }), t.prototype.respond = function(t) { - if (!1 === Ve(this)) + if (!1 === He(this)) throw Sr("respond"); if (void 0 === this._associatedReadableByteStreamController) throw new TypeError("This BYOB request has been invalidated"); @@ -27530,7 +31468,7 @@ } , t.prototype.respondWithNewView = function(t) { - if (!1 === Ve(this)) + if (!1 === He(this)) throw Sr("respond"); if (void 0 === this._associatedReadableByteStreamController) throw new TypeError("This BYOB request has been invalidated"); @@ -27542,19 +31480,19 @@ , t }() - , qe = function() { + , We = function() { function t() { throw new TypeError("ReadableByteStreamController constructor cannot be used directly") } return Object.defineProperty(t.prototype, "byobRequest", { get: function() { - if (!1 === We(this)) + if (!1 === qe(this)) throw wr("byobRequest"); if (void 0 === this._byobRequest && this._pendingPullIntos.length > 0) { var t = this._pendingPullIntos.peek() , e = new Uint8Array(t.buffer,t.byteOffset + t.bytesFilled,t.byteLength - t.bytesFilled) , r = Object.create(Ge.prototype); - vr(r, this, e), + yr(r, this, e), this._byobRequest = r } return this._byobRequest @@ -27564,7 +31502,7 @@ }), Object.defineProperty(t.prototype, "desiredSize", { get: function() { - if (!1 === We(this)) + if (!1 === qe(this)) throw wr("desiredSize"); return pr(this) }, @@ -27572,18 +31510,18 @@ configurable: !0 }), t.prototype.close = function() { - if (!1 === We(this)) + if (!1 === qe(this)) throw wr("close"); if (!0 === this._closeRequested) throw new TypeError("The stream has already been closed; do not close it again!"); var t = this._controlledReadableByteStream._state; if ("readable" !== t) throw new TypeError("The stream (in " + t + " state) is not in the readable state and cannot be closed"); - lr(this) + dr(this) } , t.prototype.enqueue = function(t) { - if (!1 === We(this)) + if (!1 === qe(this)) throw wr("enqueue"); if (!0 === this._closeRequested) throw new TypeError("stream is closed or draining"); @@ -27597,7 +31535,7 @@ } , t.prototype.error = function(t) { - if (!1 === We(this)) + if (!1 === qe(this)) throw wr("error"); hr(this, t) } @@ -27607,13 +31545,13 @@ var e = this._pendingPullIntos.peek(); e.bytesFilled = 0 } - dt(this); + lt(this); var r = this._cancelAlgorithm(t); - return dr(this), + return lr(this), r } , - t.prototype[q] = function() { + t.prototype[W] = function() { var t = this._controlledReadableByteStream; if (this._queueTotalSize > 0) { var e = this._queue.shift(); @@ -27646,20 +31584,20 @@ }; this._pendingPullIntos.push(o) } - var a = V(t); - return He(this), + var a = H(t); + return Ve(this), a } , t }(); - function We(t) { + function qe(t) { return !!o(t) && !!Object.prototype.hasOwnProperty.call(t, "_controlledReadableByteStream") } - function Ve(t) { + function He(t) { return !!o(t) && !!Object.prototype.hasOwnProperty.call(t, "_associatedReadableByteStreamController") } - function He(t) { + function Ve(t) { var e = ur(t); if (!1 !== e) if (!0 !== t._pulling) { @@ -27668,7 +31606,7 @@ E(r, (function() { t._pulling = !1, !0 === t._pullAgain && (t._pullAgain = !1, - He(t)) + Ve(t)) } ), (function(e) { hr(t, e) @@ -27677,17 +31615,17 @@ } else t._pullAgain = !0 } - function Ye(t) { + function Ze(t) { rr(t), t._pendingPullIntos = new O } - function Ze(t, e) { + function Qe(t, e) { var r = !1; "closed" === t._state && (r = !0); - var n = Qe(e); - "default" === e.readerType ? H(t, n, r) : Ar(t, n, r) + var n = Ye(e); + "default" === e.readerType ? V(t, n, r) : Ar(t, n, r) } - function Qe(t) { + function Ye(t) { var e = t.bytesFilled , r = t.elementSize; return new t.ctor(t.buffer,t.byteOffset,e / r) @@ -27710,14 +31648,14 @@ , u = !1; a > n && (c = a - e.bytesFilled, u = !0); - var d = t._queue; + var l = t._queue; while (c > 0) { - var l = d.peek() - , f = Math.min(c, l.byteLength) + var d = l.peek() + , f = Math.min(c, d.byteLength) , h = e.byteOffset + e.bytesFilled; - s(e.buffer, h, l.buffer, l.byteOffset, f), - l.byteLength === f ? d.shift() : (l.byteOffset += f, - l.byteLength -= f), + s(e.buffer, h, d.buffer, d.byteOffset, f), + d.byteLength === f ? l.shift() : (d.byteOffset += f, + d.byteLength -= f), t._queueTotalSize -= f, tr(t, f, e), c -= f @@ -27729,8 +31667,8 @@ r.bytesFilled += e } function er(t) { - 0 === t._queueTotalSize && !0 === t._closeRequested ? (dr(t), - Fr(t._controlledReadableByteStream)) : He(t) + 0 === t._queueTotalSize && !0 === t._closeRequested ? (lr(t), + Fr(t._controlledReadableByteStream)) : Ve(t) } function rr(t) { void 0 !== t._byobRequest && (t._byobRequest._associatedReadableByteStreamController = void 0, @@ -27743,7 +31681,7 @@ return; var e = t._pendingPullIntos.peek(); !0 === $e(t, e) && (cr(t), - Ze(t._controlledReadableByteStream, e)) + Qe(t._controlledReadableByteStream, e)) } } function ir(t, e) { @@ -27770,7 +31708,7 @@ } if (t._queueTotalSize > 0) { if (!0 === $e(t, a)) { - var c = Qe(a); + var c = Ye(a); return er(t), _(R(c, !1, r._reader._forAuthorCode)) } @@ -27781,9 +31719,9 @@ } } t._pendingPullIntos.push(a); - var d = _r(r); - return He(t), - d + var l = _r(r); + return Ve(t), + l } function or(t, e) { e.buffer = p(e.buffer); @@ -27791,7 +31729,7 @@ if (!0 === Er(r)) while (Ir(r) > 0) { var n = cr(t); - Ze(r, n) + Qe(r, n) } } function ar(t, e, r) { @@ -27808,7 +31746,7 @@ } r.buffer = p(r.buffer), r.bytesFilled -= n, - Ze(t._controlledReadableByteStream, r), + Qe(t._controlledReadableByteStream, r), nr(t) } } @@ -27821,7 +31759,7 @@ or(t, r) } else ar(t, e, r); - He(t) + Ve(t) } function cr(t) { var e = t._pendingPullIntos.shift(); @@ -27836,18 +31774,18 @@ return !1; if (!1 === t._started) return !1; - if (!0 === Z(e) && Y(e) > 0) + if (!0 === Q(e) && Z(e) > 0) return !0; if (!0 === Er(e) && Ir(e) > 0) return !0; var r = pr(t); return r > 0 } - function dr(t) { + function lr(t) { t._pullAlgorithm = void 0, t._cancelAlgorithm = void 0 } - function lr(t) { + function dr(t) { var e = t._controlledReadableByteStream; if (t._queueTotalSize > 0) t._closeRequested = !0; @@ -27860,7 +31798,7 @@ n } } - dr(t), + lr(t), Fr(e) } } @@ -27870,23 +31808,23 @@ , i = e.byteOffset , o = e.byteLength , a = p(n); - if (!0 === Z(r)) - if (0 === Y(r)) + if (!0 === Q(r)) + if (0 === Z(r)) Je(t, a, i, o); else { var s = new Uint8Array(a,i,o); - H(r, s, !1) + V(r, s, !1) } else !0 === Er(r) ? (Je(t, a, i, o), nr(t)) : Je(t, a, i, o); - He(t) + Ve(t) } function hr(t, e) { var r = t._controlledReadableByteStream; - "readable" === r._state && (Ye(t), - dt(t), - dr(t), + "readable" === r._state && (Ze(t), + lt(t), + lr(t), jr(r, e)) } function pr(t) { @@ -27915,7 +31853,7 @@ e._pulling = !1, e._byobRequest = void 0, e._queue = e._queueTotalSize = void 0, - dt(e), + lt(e), e._closeRequested = !1, e._started = !1, e._strategyHWM = b(o), @@ -27927,27 +31865,27 @@ var s = r(); E(_(s), (function() { e._started = !0, - He(e) + Ve(e) } ), (function(t) { hr(e, t) } )) } - function yr(t, e, r) { - var n = Object.create(qe.prototype); + function vr(t, e, r) { + var n = Object.create(We.prototype); function i() { return f(e, "start", [n]) } - var o = l(e, "pull", 0, [n]) - , a = l(e, "cancel", 1, []) + var o = d(e, "pull", 0, [n]) + , a = d(e, "cancel", 1, []) , s = e.autoAllocateChunkSize; if (void 0 !== s && (s = Number(s), !1 === ze(s) || s <= 0)) throw new RangeError("autoAllocateChunkSize must be a positive integer"); gr(t, n, i, o, a, r, s) } - function vr(t, e, r) { + function yr(t, e, r) { t._associatedReadableByteStreamController = e, t._view = r } @@ -27988,13 +31926,13 @@ } var Tr = function() { function t(t) { - if (!Nr(t)) + if (!Mr(t)) throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source"); - if (!1 === We(t._readableStreamController)) + if (!1 === qe(t._readableStreamController)) throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source"); - if (Mr(t)) + if (Nr(t)) throw new TypeError("This stream has already been locked for exclusive reading by another reader"); - N(this, t), + M(this, t), this._readIntoRequests = new O } return Object.defineProperty(t.prototype, "closed", { @@ -28005,7 +31943,7 @@ configurable: !0 }), t.prototype.cancel = function(t) { - return xr(this) ? void 0 === this._ownerReadableStream ? A(F("cancel")) : M(this, t) : A(kr("cancel")) + return xr(this) ? void 0 === this._ownerReadableStream ? A(F("cancel")) : N(this, t) : A(kr("cancel")) } , t.prototype.read = function(t) { @@ -28050,7 +31988,7 @@ throw new RangeError("The strategy for a byte stream cannot have a size function"); void 0 === n && (n = 0), n = b(n), - yr(this, t, n) + vr(this, t, n) } else { if (void 0 !== i) throw new RangeError("Invalid type is specified"); @@ -28062,23 +32000,23 @@ } return Object.defineProperty(t.prototype, "locked", { get: function() { - if (!1 === Nr(this)) - throw Kr("locked"); - return Mr(this) + if (!1 === Mr(this)) + throw Ur("locked"); + return Nr(this) }, enumerable: !0, configurable: !0 }), t.prototype.cancel = function(t) { - return !1 === Nr(this) ? A(Kr("cancel")) : !0 === Mr(this) ? A(new TypeError("Cannot cancel a stream that already has a reader")) : Br(this, t) + return !1 === Mr(this) ? A(Ur("cancel")) : !0 === Nr(this) ? A(new TypeError("Cannot cancel a stream that already has a reader")) : Br(this, t) } , t.prototype.getReader = function(t) { var e = (void 0 === t ? {} : t).mode; - if (!1 === Nr(this)) - throw Kr("getReader"); + if (!1 === Mr(this)) + throw Ur("getReader"); if (void 0 === e) - return W(this, !0); + return q(this, !0); if (e = String(e), "byob" === e) return Cr(this, !0); @@ -28093,20 +32031,20 @@ , a = i.preventAbort , s = i.preventCancel , c = i.signal; - if (!1 === Nr(this)) - throw Kr("pipeThrough"); + if (!1 === Mr(this)) + throw Ur("pipeThrough"); if (!1 === gt(r)) throw new TypeError("writable argument to pipeThrough must be a WritableStream"); - if (!1 === Nr(n)) + if (!1 === Mr(n)) throw new TypeError("readable argument to pipeThrough must be a ReadableStream"); if (o = Boolean(o), a = Boolean(a), s = Boolean(s), void 0 !== c && !Ce(c)) throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal"); - if (!0 === Mr(this)) + if (!0 === Nr(this)) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream"); - if (!0 === yt(r)) + if (!0 === vt(r)) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream"); var u = Te(this, r, o, a, s, c); return k(u), @@ -28119,15 +32057,15 @@ , i = r.preventAbort , o = r.preventCancel , a = r.signal; - return !1 === Nr(this) ? A(Kr("pipeTo")) : !1 === gt(t) ? A(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")) : (n = Boolean(n), + return !1 === Mr(this) ? A(Ur("pipeTo")) : !1 === gt(t) ? A(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")) : (n = Boolean(n), i = Boolean(i), o = Boolean(o), - void 0 === a || Ce(a) ? !0 === Mr(this) ? A(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : !0 === yt(t) ? A(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")) : Te(this, t, n, i, o, a) : A(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal"))) + void 0 === a || Ce(a) ? !0 === Nr(this) ? A(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : !0 === vt(t) ? A(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")) : Te(this, t, n, i, o, a) : A(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal"))) } , t.prototype.tee = function() { - if (!1 === Nr(this)) - throw Kr("tee"); + if (!1 === Mr(this)) + throw Ur("tee"); var t = Xe(this); return a(t) } @@ -28135,8 +32073,8 @@ t.prototype.getIterator = function(t) { var e = (void 0 === t ? {} : t).preventCancel , r = void 0 !== e && e; - if (!1 === Nr(this)) - throw Kr("getIterator"); + if (!1 === Mr(this)) + throw Ur("getIterator"); return it(this, r) } , @@ -28151,7 +32089,7 @@ var o = Object.create(Dr.prototype); Rr(o); var a = Object.create(xe.prototype); - return Ke(o, a, t, e, r, n, i), + return Ue(o, a, t, e, r, n, i), o } function Rr(t) { @@ -28160,10 +32098,10 @@ t._storedError = void 0, t._disturbed = !1 } - function Nr(t) { + function Mr(t) { return !!o(t) && !!Object.prototype.hasOwnProperty.call(t, "_readableStreamController") } - function Mr(t) { + function Nr(t) { return void 0 !== t._reader } function Br(t, e) { @@ -28199,9 +32137,9 @@ } )), r._readIntoRequests = new O), - U(r, e)) + K(r, e)) } - function Kr(t) { + function Ur(t) { return new TypeError("ReadableStream.prototype." + t + " can only be used on a ReadableStream") } "symbol" === typeof e.asyncIterator && Object.defineProperty(Dr.prototype, e.asyncIterator, { @@ -28221,7 +32159,7 @@ , t }() - , Ur = function() { + , Kr = function() { function t(t) { var e = t.highWaterMark; this.highWaterMark = e @@ -28250,17 +32188,17 @@ var u = t.readableType; if (void 0 !== u) throw new RangeError("Invalid readable type specified"); - var d, l = g(o); + var l, d = g(o); void 0 === a && (a = 0), a = b(a); var h = C((function(t) { - d = t + l = t } )); - zr(this, h, i, c, a, l), - Qr(this, t); + zr(this, h, i, c, a, d), + Yr(this, t); var p = f(t, "start", [this._transformStreamController]); - d(p) + l(p) } return Object.defineProperty(t.prototype, "readable", { get: function() { @@ -28295,34 +32233,34 @@ function u() { return an(t) } - function d() { + function l() { return sn(t) } - function l(e) { - return Wr(t, e), + function d(e) { + return qr(t, e), _(void 0) } t._writable = mt(a, s, u, c, r, n), - t._readable = Or(a, d, l, i, o), + t._readable = Or(a, l, d, i, o), t._backpressure = void 0, t._backpressureChangePromise = void 0, t._backpressureChangePromise_resolve = void 0, - Vr(t, !0), + Hr(t, !0), t._transformStreamController = void 0 } function Gr(t) { return !!o(t) && !!Object.prototype.hasOwnProperty.call(t, "_transformStreamController") } - function qr(t, e) { - Me(t._readable._readableStreamController, e), - Wr(t, e) - } function Wr(t, e) { + Ne(t._readable._readableStreamController, e), + qr(t, e) + } + function qr(t, e) { Jr(t._transformStreamController), ee(t._writable._writableStreamController, e), - !0 === t._backpressure && Vr(t, !1) + !0 === t._backpressure && Hr(t, !1) } - function Vr(t, e) { + function Hr(t, e) { void 0 !== t._backpressureChangePromise && t._backpressureChangePromise_resolve(), t._backpressureChangePromise = C((function(e) { t._backpressureChangePromise_resolve = e @@ -28330,13 +32268,13 @@ )), t._backpressure = e } - var Hr = function() { + var Vr = function() { function t() { throw new TypeError("TransformStreamDefaultController instances cannot be created directly") } return Object.defineProperty(t.prototype, "desiredSize", { get: function() { - if (!1 === Yr(this)) + if (!1 === Zr(this)) throw cn("desiredSize"); var t = this._controlledTransformStream._readable._readableStreamController; return Be(t) @@ -28345,36 +32283,36 @@ configurable: !0 }), t.prototype.enqueue = function(t) { - if (!1 === Yr(this)) + if (!1 === Zr(this)) throw cn("enqueue"); $r(this, t) } , t.prototype.error = function(t) { - if (!1 === Yr(this)) + if (!1 === Zr(this)) throw cn("error"); tn(this, t) } , t.prototype.terminate = function() { - if (!1 === Yr(this)) + if (!1 === Zr(this)) throw cn("terminate"); rn(this) } , t }(); - function Yr(t) { + function Zr(t) { return !!o(t) && !!Object.prototype.hasOwnProperty.call(t, "_controlledTransformStream") } - function Zr(t, e, r, n) { + function Qr(t, e, r, n) { e._controlledTransformStream = t, t._transformStreamController = e, e._transformAlgorithm = r, e._flushAlgorithm = n } - function Qr(t, e) { - var r = Object.create(Hr.prototype) + function Yr(t, e) { + var r = Object.create(Vr.prototype) , n = function(t) { try { return $r(r, t), @@ -28391,8 +32329,8 @@ return h(i, e, [t, r]) } } - var o = l(e, "flush", 0, [r]); - Zr(t, r, n, o) + var o = d(e, "flush", 0, [r]); + Qr(t, r, n, o) } function Jr(t) { t._transformAlgorithm = void 0, @@ -28404,21 +32342,21 @@ if (!1 === je(n)) throw new TypeError("Readable side is not in a state that permits enqueue"); try { - Ne(n, e) + Me(n, e) } catch (o) { - throw Wr(r, o), + throw qr(r, o), r._readable._storedError } var i = Fe(n); - i !== r._backpressure && Vr(r, !0) + i !== r._backpressure && Hr(r, !0) } function tn(t, e) { - qr(t._controlledTransformStream, e) + Wr(t._controlledTransformStream, e) } function en(t, e) { var r = t._transformAlgorithm(e); return P(r, void 0, (function(e) { - throw qr(t._controlledTransformStream, e), + throw Wr(t._controlledTransformStream, e), e } )) @@ -28428,7 +32366,7 @@ , r = e._readable._readableStreamController; !0 === je(r) && Re(r); var n = new TypeError("TransformStream terminated"); - Wr(e, n) + qr(e, n) } function nn(t, e) { var r = t._transformStreamController; @@ -28446,7 +32384,7 @@ return en(r, e) } function on(t, e) { - return qr(t, e), + return Wr(t, e), _(void 0) } function an(t) { @@ -28461,13 +32399,13 @@ !0 === je(t) && Re(t) } ), (function(r) { - throw qr(t, r), + throw Wr(t, r), e._storedError } )) } function sn(t) { - return Vr(t, !1), + return Hr(t, !1), t._backpressureChangePromise } function cn(t) { @@ -28477,7 +32415,7 @@ return new TypeError("TransformStream.prototype." + t + " can only be used on a TransformStream") } t.ByteLengthQueuingStrategy = Lr, - t.CountQueuingStrategy = Ur, + t.CountQueuingStrategy = Kr, t.ReadableStream = Dr, t.TransformStream = Xr, t.WritableStream = ht, @@ -28505,17 +32443,17 @@ try { throw new Error } catch (h) { - var r, n, i, o = /.*at [^(]*\((.*):(.+):(.+)\)$/gi, a = /@([^@]*):(\d+):(\d+)\s*$/gi, s = o.exec(h.stack) || a.exec(h.stack), c = s && s[1] || !1, u = s && s[2] || !1, d = document.location.href.replace(document.location.hash, ""), l = document.getElementsByTagName("script"); - c === d && (r = document.documentElement.outerHTML, + var r, n, i, o = /.*at [^(]*\((.*):(.+):(.+)\)$/gi, a = /@([^@]*):(\d+):(\d+)\s*$/gi, s = o.exec(h.stack) || a.exec(h.stack), c = s && s[1] || !1, u = s && s[2] || !1, l = document.location.href.replace(document.location.hash, ""), d = document.getElementsByTagName("script"); + c === l && (r = document.documentElement.outerHTML, n = new RegExp("(?:[^\\n]+?\\n){0," + (u - 2) + "}[^<]*