10 lines
32 KiB
JavaScript
10 lines
32 KiB
JavaScript
|
var e = function () {
|
||
|
"use strict"; function r(e, r) { postMessage({ action: xt, cbn: r, result: e }) } function t(e) { var r = []; return r[e - 1] = void 0, r } function o(e, r) { return i(e[0] + r[0], e[1] + r[1]) } function n(e, r) { return u(~~Math.max(Math.min(e[1] / Ot, 2147483647), -2147483648) & ~~Math.max(Math.min(r[1] / Ot, 2147483647), -2147483648), c(e) & c(r)) } function s(e, r) { var t, o; return e[0] == r[0] && e[1] == r[1] ? 0 : (t = 0 > e[1], o = 0 > r[1], t && !o ? -1 : !t && o ? 1 : h(e, r)[1] < 0 ? -1 : 1) } function i(e, r) { var t, o; for (r %= 0x10000000000000000, e %= 0x10000000000000000, t = r % Ot, o = Math.floor(e / Ot) * Ot, r = r - t + o, e = e - o + t; 0 > e;)e += Ot, r -= Ot; for (; e > 4294967295;)e -= Ot, r += Ot; for (r %= 0x10000000000000000; r > 0x7fffffff00000000;)r -= 0x10000000000000000; for (; -0x8000000000000000 > r;)r += 0x10000000000000000; return [e, r] } function _(e, r) { return e[0] == r[0] && e[1] == r[1] } function a(e) { return e >= 0 ? [e, 0] : [e + Ot, -Ot] } function c(e) { return e[0] >= 2147483648 ? ~~Math.max(Math.min(e[0] - Ot, 2147483647), -2147483648) : ~~Math.max(Math.min(e[0], 2147483647), -2147483648) } function u(e, r) { var t, o; return t = e * Ot, o = r, 0 > r && (o += Ot), [o, t] } function f(e) { return 30 >= e ? 1 << e : f(30) * f(e - 30) } function m(e, r) { var t, o, n, s; if (r &= 63, _(e, Ht)) return r ? Gt : e; if (0 > e[1]) throw Error("Neg"); return s = f(r), o = e[1] * s % 0x10000000000000000, n = e[0] * s, t = n - n % Ot, o += t, n -= t, o >= 0x8000000000000000 && (o -= 0x10000000000000000), [n, o] } function d(e, r) { var t; return r &= 63, t = f(r), i(Math.floor(e[0] / t), e[1] / t) } function p(e, r) { var t; return r &= 63, t = d(e, r), 0 > e[1] && (t = o(t, m([2, 0], 63 - r))), t } function h(e, r) { return i(e[0] - r[0], e[1] - r[1]) } function P(e, r) { return e.Mc = r, e.Lc = 0, e.Wb = r.length, e } function l(e) { return e.Lc >= e.Wb ? -1 : 255 & e.Mc[e.Lc++] } function v(e, r, t, o) { return e.Lc >= e.Wb ? -1 : (o = Math.min(o, e.Wb - e.Lc), M(e.Mc, e.Lc, r, t, o), e.Lc += o, o) } function B(e) { return e.Mc = t(32), e.Wb = 0, e } function S(e) { var r = e.Mc; return r.length = e.Wb, r } function g(e, r) { e.Mc[e.Wb++] = r << 24 >> 24 } function k(e, r, t, o) { M(r, t, e.Mc, e.Wb, o), e.Wb += o } function R(e, r, t, o, n) { var s; for (s = r; t > s; ++s)o[n++] = e.charCodeAt(s) } function M(e, r, t, o, n) { for (var s = 0; n > s; ++s)t[o + s] = e[r + s] } function D(e, r) { Ar(r, 1 << e.s), r.n = e.f, Hr(r, e.m), r.eb = 0, r.fb = 3, r.Y = 2, r.y = 3 } function b(r, t, o, n, i) { var _, a; if (s(n, At) < 0) throw Error("invalid length " + n); for (r.Ub = n, _ = Dr({}), D(i, _), _.Gc = void 0 === e.disableEndMark, Gr(_, o), a = 0; 64 > a; a += 8)g(o, 255 & c(d(n, a))); r.yb = (_.W = 0, _.oc = t, _.qc = 0, Mr(_), _.c.Bb = o, Fr(_), Lr(_), br(_), _.$.qb = _.n + 1 - 2, Qr(_.$, 1 << _.Y), _.i.qb = _.n + 1 - 2, Qr(_.i, 1 << _.Y), void (_.g = Gt), X({}, _)) } function L(e, r, t) { return e.vb = B({}), b(e, P({}, r), e.vb, a(r.length), t), e } function w(e, r, t) { var o, n, s, i, _ = "", c = []; for (n = 0; 5 > n; ++n) { if (s = l(r), -1 == s) throw Error("truncated input"); c[n] = s << 24 >> 24 } if (o = ir({}), !ar(o, c)) throw Error("corrupted input"); for (n = 0; 64 > n; n += 8) { if (s = l(r), -1 == s) throw Error("truncated input"); s = s.toString(16), 1 == s.length && (s = "0" + s), _ = s + "" + _ } /^0+$|^f+$/i.test(_) ? e.Ub = At : (i = parseInt(_, 16), e.Ub = i > 4294967295 ? At : a(i)), e.yb = nr(o, r, t, e.Ub) } function E(e, r) { return e.vb = B({}), w(e, P({}, r), e.vb), e } function y(e, r, o, n) { var s; e.xc = r, e.$b = o, s = r + o + n, (null == e.d || e.Lb != s) && (e.d = null, e.Lb = s, e.d = t(e.Lb)), e.H = e.Lb - o } function C(e, r) { return e.d[e.f + e.o + r] } function z(e, r, t, o) { var n, s; for (e.U && e.o + r + o > e.h && (o = e.h - (e.o + r)), ++t, s = e.f + e.o + r, n = 0; o > n && e.d[s + n] == e.d[s + n - t]; ++n); return n } function F(e) { return e.h - e.o } function I(e) { var r, t, o; for (o = e.f + e.o - e.xc, o > 0 && --
|
||
|
for (var r, t, o, n = 0, s = 0, i = e.length, _ = [], a = []; i > n; ++n, ++s) {
|
||
|
if (r = 255 & e[n], 128 & r) if (192 == (224 & r)) { if (n + 1 >= i) return e; if (t = 255 & e[++n], 128 != (192 & t)) return e; a[s] = (31 & r) << 6 | 63 & t } else {
|
||
|
if (224 != (240 & r)) return e;
|
||
|
if (n + 2 >= i) return e; if (t = 255 & e[++n], 128 != (192 & t)) return e; if (o = 255 & e[++n], 128 != (192 & o)) return e; a[s] = (15 & r) << 12 | (63 & t) << 6 | 63 & o
|
||
|
} else { if (!r) return e; a[s] = r } 16383 == s && (_.push(String.fromCharCode.apply(String, a)), s = -1)
|
||
|
} return s > 0 && (a.length = s, _.push(String.fromCharCode.apply(String, a))), _.join("")
|
||
|
} function Et(e) { var r, t, o, n = [], s = 0, i = e.length; if ("object" == typeof e) return e; for (R(e, 0, i, n, 0), o = 0; i > o; ++o)r = n[o], r >= 1 && 127 >= r ? ++s : s += !r || r >= 128 && 2047 >= r ? 2 : 3; for (t = [], s = 0, o = 0; i > o; ++o)r = n[o], r >= 1 && 127 >= r ? t[s++] = r << 24 >> 24 : !r || r >= 128 && 2047 >= r ? (t[s++] = (192 | r >> 6 & 31) << 24 >> 24, t[s++] = (128 | 63 & r) << 24 >> 24) : (t[s++] = (224 | r >> 12 & 15) << 24 >> 24, t[s++] = (128 | r >> 6 & 63) << 24 >> 24, t[s++] = (128 | 63 & r) << 24 >> 24); return t } function yt(e) { return e[1] + e[0] } function Ct(e, t, o, n) { function s() { try { for (var e, r = (new Date).getTime(); rr(a.c.yb);)if (i = yt(a.c.yb.Ob) / yt(a.c.Ub), (new Date).getTime() - r > 200) return n(i), Nt(s, 0), 0; n(1), e = S(a.c.vb), Nt(o.bind(null, e), 0) } catch (t) { o(null, t) } } var i, _, a = {}, c = void 0 === o && void 0 === n; if ("function" != typeof o && (_ = o, o = n = 0), n = n || function (e) { return void 0 !== _ ? r(e, _) : void 0 }, o = o || function (e, r) { return void 0 !== _ ? postMessage({ action: Ft, cbn: _, result: e, error: r }) : void 0 }, c) { for (a.c = L({}, Et(e), Vt(t)); rr(a.c.yb);); return S(a.c.vb) } try { a.c = L({}, Et(e), Vt(t)), n(0) } catch (u) { return o(null, u) } Nt(s, 0) } function zt(t, o, n) { function s() { try { for (var r, t = 0, _ = (new Date).getTime(); rr(u.d.yb);)if (++t % 1e3 == 0 && (new Date).getTime() - _ > 200) return a && (i = yt(u.d.yb.Z.g) / c, n(i)), Nt(s, 0), 0; n(1), r = void 0 === e.decodeBinary ? wt(S(u.d.vb)) : S(u.d.vb), Nt(o.bind(null, r), 0) } catch (f) { o(null, f) } } var i, _, a, c, u = {}, f = void 0 === o && void 0 === n; if ("function" != typeof o && (_ = o, o = n = 0), n = n || function (e) { return void 0 !== _ ? r(a ? e : -1, _) : void 0 }, o = o || function (e, r) { return void 0 !== _ ? postMessage({ action: It, cbn: _, result: e, error: r }) : void 0 }, f) { for (u.d = E({}, t); rr(u.d.yb);); return void 0 === e.decodeBinary ? wt(S(u.d.vb)) : S(u.d.vb) } try { u.d = E({}, t), c = yt(u.d.Ub), a = c > -1, n(0) } catch (m) { return o(null, m) } Nt(s, 0) } var Ft = 1, It = 2, xt = 3, Nt = "function" == typeof setImmediate ? setImmediate : setTimeout, Ot = 4294967296, At = [4294967295, -Ot], Ht = [0, -0x8000000000000000], Gt = [0, 0], Wt = [1, 0], Tt = function () { var e, r, t, o = []; for (e = 0; 256 > e; ++e) { for (t = e, r = 0; 8 > r; ++r)0 != (1 & t) ? t = t >>> 1 ^ -306674912 : t >>>= 1; o[e] = t } return o }(), Zt = function () { var e, r, t, o = 2, n = [0, 1]; for (t = 2; 22 > t; ++t)for (r = 1 << (t >> 1) - 1, e = 0; r > e; ++e, ++o)n[o] = t << 24 >> 24; return n }(), Yt = function () { var e, r, t, o, n = []; for (r = 8; r >= 0; --r)for (o = 1 << 9 - r - 1, e = 1 << 9 - r, t = o; e > t; ++t)n[t] = (r << 6) + (e - t << 6 >>> 9 - r - 1); return n }(), Vt = function () { var e = [{ s: 16, f: 64, m: 0 }, { s: 20, f: 64, m: 0 }, { s: 19, f: 64, m: 1 }, { s: 20, f: 64, m: 1 }, { s: 21, f: 128, m: 1 }, { s: 22, f: 128, m: 1 }, { s: 23, f: 128, m: 1 }, { s: 24, f: 255, m: 1 }, { s: 25, f: 255, m: 1 }]; return function (r) { return e[r - 1] || e[6] } }(); return "undefined" == typeof onmessage || "undefined" != typeof window && void 0 !== window.document || !function () { onmessage = function (r) { r && r.gc && (r.gc.action == It ? e.decompress(r.gc.gc, r.gc.cbn) : r.gc.action == Ft && e.compress(r.gc.gc, r.gc.Rc, r.gc.cbn)) } }(), { compress: Ct, decompress: zt }
|
||
|
}(); this.LZMA = this.LZMA_WORKER = e;
|