r flt = new u8(288); for (i2 = 0; i2 < 144; ++i2) flt[i2] = 8; var i2; for (i2 = 144; i2 < 256; ++i2) flt[i2] = 9; var i2; for (i2 = 256; i2 < 280; ++i2) flt[i2] = 7; var i2; for (i2 = 280; i2 < 288; ++i2) flt[i2] = 8; var i2; var fdt = new u8(32); for (i2 = 0; i2 < 32; ++i2) fdt[i2] = 5; var i2; var flm = hMap(flt, 9, 0); var flrm = hMap(flt, 9, 1); var fdm = hMap(fdt, 5, 0); var fdrm = hMap(fdt, 5, 1); var max = function(a2) { var m2 = a2[0]; for (var i2 = 1; i2 < a2.length; ++i2) { if (a2[i2] > m2) m2 = a2[i2]; } return m2; }; var bits = function(d2, p2, m2) { var o2 = p2 / 8 | 0; return (d2[o2] | d2[o2 + 1] << 8) >> (p2 & 7) & m2; }; var bits16 = function(d2, p2) { var o2 = p2 / 8 | 0; return (d2[o2] | d2[o2 + 1] << 8 | d2[o2 + 2] << 16) >> (p2 & 7); }; var shft = function(p2) { return (p2 + 7) / 8 | 0; }; var slc = function(v2, s2, e) { if (s2 == null || s2 < 0) s2 = 0; if (e == null || e > v2.length) e = v2.length; return new u8(v2.subarray(s2, e)); }; var ec = [ "unexpected EOF", "invalid block type", "invalid length/literal", "invalid distance", "stream finished", "no stream handler", , "no callback", "invalid UTF-8 data", "extra field too long", "date not in range 1980-2099", "filename too long", "stream finishing", "invalid zip data" // determined by unknown compression method ]; var err = function(ind, msg, nt2) { var e = new Error(msg || ec[ind]); e.code = ind; if (Error.captureStackTrace) Error.captureStackTrace(e, err); if (!nt2) throw e; return e; }; var inflt = function(dat, st2, buf, dict) { var sl = dat.length, dl = dict ? dict.length : 0; if (!sl || st2.f && !st2.l) return buf || new u8(0); var noBuf = !buf; var resize = noBuf || st2.i != 2; var noSt = st2.i; if (noBuf) buf = new u8(sl * 3); var cbuf = function(l3) { var bl = buf.length; if (l3 > bl) { var nbuf = new u8(Math.max(bl * 2, l3)); nbuf.set(buf); buf = nbuf; } }; var final = st2.f || 0, pos = st2.p || 0, bt2 = st2.b || 0, lm = st2.l, dm = st2.d, lbt = st2.m, dbt = st2.n; var tbts = sl * 8; do { if (!lm) { final = bits(dat, pos, 1); var type = bits(dat, pos + 1, 3); pos += 3; if (!type) { var s2 = shft(pos) + 4, l2 = dat[s2 - 4] | dat[s2 - 3] << 8, t2 = s2 + l2; if (t2 > sl) { if (noSt) err(0); break; } if (resize) cbuf(bt2 + l2); buf.set(dat.subarray(s2, t2), bt2); st2.b = bt2 += l2, st2.p = pos = t2 * 8, st2.f = final; continue; } else if (type == 1) lm = flrm, dm = fdrm, lbt = 9, dbt = 5; else if (type == 2) { var hLit = bits(dat, pos, 31) + 257, hcLen = bits(dat, pos + 10, 15) + 4; var tl = hLit + bits(dat, pos + 5, 31) + 1; pos += 14; var ldt = new u8(tl); var clt = new u8(19); for (var i2 = 0; i2 < hcLen; ++i2) { clt[clim[i2]] = bits(dat, pos + i2 * 3, 7); } pos += hcLen * 3; var clb = max(clt), clbmsk = (1 << clb) - 1; var clm = hMap(clt, clb, 1); for (var i2 = 0; i2 < tl; ) { var r = clm[bits(dat, pos, clbmsk)]; pos += r & 15; var s2 = r >> 4; if (s2 < 16) { ldt[i2++] = s2; } else { var c2 = 0, n2 = 0; if (s2 == 16) n2 = 3 + bits(dat, pos, 3), pos += 2, c2 = ldt[i2 - 1]; else if (s2 == 17) n2 = 3 + bits(dat, pos, 7), pos += 3; else if (s2 == 18) n2 = 11 + bits(dat, pos, 127), pos += 7; while (n2--) ldt[i2++] = c2; } } var lt2 = ldt.subarray(0, hLit), dt2 = ldt.subarray(hLit); lbt = max(lt2); dbt = max(dt2); lm = hMap(lt2, lbt, 1); dm = hMap(dt2, dbt, 1); } else err(1); if (pos > tbts) { if (noSt) err(0); break; } } if (resize) cbuf(bt2 + 131072); var lms = (1 << lbt) - 1, dms = (1 << dbt) - 1; var lpos = pos; for (; ; lpos = pos) { var c2 = lm[bits16(dat, pos) & lms], sym = c2 >> 4; pos += c2 & 15; if (pos > tbts) { if (noSt) err(0); break; } if (!c2) err(2); if (sym < 256) buf[bt2++] = sym; else if (sym == 256) { lpos = pos, lm = null; break; } else { var add = sym - 254; if (sym > 264) { var i2 = sym - 257, b3 = fleb[i2]; add = bits(dat, pos, (1 << b3) - 1) + fl[i2]; pos += b3; } var d2 = dm[bits16(dat, pos) & dms], dsym = d2 >> 4; if (!d2) err(3); pos += d2 & 15; var dt2 = fd[dsym]; if (dsym > 3) { var b3 = fdeb[dsym]; dt2 += bits16(dat, pos) & (1 << b3) - 1, pos += b3; } if (pos > tbts) { if (noSt) err(0); break; } if (resize) cbuf(bt2 + 131072); var end = bt2 + add; if (bt2 < dt2) { var shift = dl - dt2, dend = Math.min(dt2, end); if (shift + bt2 < 0) err(3); for (; bt2 < dend; ++bt2) buf[bt2] = dict[shift + bt2]; } for (; bt2 < end; ++bt2) buf[bt2] = buf[bt2 - dt2]; } } st2.l = lm, st2.p = lpos, st2.b = bt2, st2.f = final; if (lm) final = 1, st2.m = lbt, st2.d = dm, st2.n = dbt; } while (!final); return bt2 != buf.length && noBuf ? slc(buf, 0, bt2) : buf.subarray(0, bt2); }; var wbits = function(d2, p2, v2) { v2 <<= p2 & 7; var o2 = p2 / 8 | 0; d2[o2] |= v2; d2[o2 + 1] |= v2 >> 8; }; var wbits16 = function(d2, p2, v2) { v2 <<= p2 & 7; var o2 = p2 / 8 | 0; d2[o2] |= v2; d2[o2 + 1] |= v2 >> 8; d2[o2 + 2] |= v2 >> 16; }; var hTree = function(d2, mb) { var t2 = []; for (var i2 = 0; i2 < d2.length; ++i2) { if (d2[i2]) t2.push({ s: i2, f: d2[i2] }); } var s2 = t2.length; var t22 = t2.slice(); if (!s2) return { t: et, l: 0 }; if (s2 == 1) { var v2 = new u8(t2[0].s + 1); v2[t2[0].s] = 1; return { t: v2, l: 1 }; } t2.sort(function(a2, b3) { return a2.f - b3.f; }); t2.push({ s: -1, f: 25001 }); var l2 = t2[0], r = t2[1], i0 = 0, i1 = 1, i22 = 2; t2[0] = { s: -1, f: l2.f + r.f, l: l2, r }; while (i1 != s2 - 1) { l2 = t2[t2[i0].f < t2[i22].f ? i0++ : i22++]; r = t2[i0 != i1 && t2[i0].f < t2[i22].f ? i0++ : i22++]; t2[i1++] = { s: -1, f: l2.f + r.f, l: l2, r }; } var maxSym = t22[0].s; for (var i2 = 1; i2 < s2; ++i2) { if (t22[i2].s > maxSym) maxSym = t22[i2].s; } var tr = new u16(maxSym + 1); var mbt = ln(t2[i1 - 1], tr, 0); if (mbt > mb) { var i2 = 0, dt2 = 0; var lft = mbt - mb, cst = 1 << lft; t22.sort(function(a2, b3) { return tr[b3.s] - tr[a2.s] || a2.f - b3.f; }); for (; i2 < s2; ++i2) { var i2_1 = t22[i2].s; if (tr[i2_1] > mb) { dt2 += cst - (1 << mbt - tr[i2_1]); tr[i2_1] = mb; } else break; } dt2 >>= lft; while (dt2 > 0) { var i2_2 = t22[i2].s; if (tr[i2_2] < mb) dt2 -= 1 << mb - tr[i2_2]++ - 1; else ++i2; } for (; i2 >= 0 && dt2; --i2) { var i2_3 = t22[i2].s; if (tr[i2_3] == mb) { --tr[i2_3]; ++dt2; } } mbt = mb; } return { t: new u8(tr), l: mbt }; }; var ln = function(n2, l2, d2) { return n2.s == -1 ? Math.max(ln(n2.l, l2, d2 + 1), ln(n2.r, l2, d2 + 1)) : l2[n2.s] = d2; }; var lc = function(c2) { var s2 = c2.length; while (s2 && !c2[--s2]) ; var cl = new u16(++s2); var cli = 0, cln = c2[0], cls = 1; var w2 = function(v2) { cl[cli++] = v2; }; for (var i2 = 1; i2 <= s2; ++i2) { if (c2[i2] == cln && i2 != s2) ++cls; else { if (!cln && cls > 2) { for (; cls > 138; cls -= 138) w2(32754); if (cls > 2) { w2(cls > 10 ? cls - 11 << 5 | 28690 : cls - 3 << 5 | 12305); cls = 0; } } else if (cls > 3) { w2(cln), --cls; for (; cls > 6; cls -= 6) w2(8304); if (cls > 2) w2(cls - 3 << 5 | 8208), cls = 0; } while (cls--) w2(cln); cls = 1; cln = c2[i2]; } } return { c: cl.subarray(0, cli), n: s2 }; }; var clen = function(cf, cl) { var l2 = 0; for (var i2 = 0; i2 < cl.length; ++i2) l2 += cf[i2] * cl[i2]; return l2; }; var wfblk = function(out, pos, dat) { var s2 = dat.length; var o2 = shft(pos + 2); out[o2] = s2 & 255; out[o2 + 1] = s2 >> 8; out[o2 + 2] = out[o2] ^ 255; out[o2 + 3] = out[o2 + 1] ^ 255; for (var i2 = 0; i2 < s2; ++i2) out[o2 + i2 + 4] = dat[i2]; return (o2 + 4 + s2) * 8; }; var wblk = function(dat, out, final, syms, lf, df, eb, li, bs, bl, p2) { wbits(out, p2++, final); ++lf[256]; var _a2 = hTree(lf, 15), dlt = _a2.t, mlb = _a2.l; var _b2 = hTree(df, 15), ddt = _b2.t, mdb = _b2.l; var _c = lc(dlt), lclt = _c.c, nlc = _c.n; var _d = lc(ddt), lcdt = _d.c, ndc = _d.n; var lcfreq = new u16(19); for (var i2 = 0; i2 < lclt.length; ++i2) ++lcfreq[lclt[i2] & 31]; for (var i2 = 0; i2 < lcdt.length; ++i2) ++lcfreq[lcdt[i2] & 31]; var _e = hTree(lcfreq, 7), lct = _e.t, mlcb = _e.l; var nlcc = 19; for (; nlcc > 4 && !lct[clim[nlcc - 1]]; --nlcc) ; var flen = bl + 5 << 3; var ftlen = clen(lf, flt) + clen(df, fdt) + eb; var dtlen = clen(lf, dlt) + clen(df, ddt) + eb + 14 + 3 * nlcc + clen(lcfreq, lct) + 2 * lcfreq[16] + 3 * lcfreq[17] + 7 * lcfreq[18]; if (bs >= 0 && flen <= ftlen && flen <= dtlen) return wfblk(out, p2, dat.subarray(bs, bs + bl)); var lm, ll, dm, dl; wbits(out, p2, 1 + (dtlen < ftlen)), p2 += 2; if (dtlen < ftlen) { lm = hMap(dlt, mlb, 0), ll = dlt, dm = hMap(ddt, mdb, 0), dl = ddt; var llm = hMap(lct, mlcb, 0); wbits(out, p2, nlc - 257); wbits(out, p2 + 5, ndc - 1); wbits(out, p2 + 10, nlcc - 4); p2 += 14; for (var i2 = 0; i2 < nlcc; ++i2) wbits(out, p2 + 3 * i2, lct[clim[i2]]); p2 += 3 * nlcc; var lcts = [lclt, lcdt]; for (var it2 = 0; it2 < 2; ++it2) { var clct = lcts[it2]; for (var i2 = 0; i2 < clct.length; ++i2) { var len = clct[i2] & 31; wbits(out, p2, llm[len]), p2 += lct[len]; if (len > 15) wbits(out, p2, clct[i2] >> 5 & 127), p2 += clct[i2] >> 12; } } } else { lm = flm, ll = flt, dm = fdm, dl = fdt; } for (var i2 = 0; i2 < li; ++i2) { var sym = syms[i2]; if (sym > 255) { var len = sym >> 18 & 31; wbits16(out, p2, lm[len + 257]), p2 += ll[len + 257]; if (len > 7) wbits(out, p2, sym >> 23 & 31), p2 += fleb[len]; var dst = sym & 31; wbits16(out, p2, dm[dst]), p2 += dl[dst]; if (dst > 3) wbits16(out, p2, sym >> 5 & 8191), p2 += fdeb[dst]; } else { wbits16(out, p2, lm[sym]), p2 += ll[sym]; } } wbits16(out, p2, lm[256]); return p2 + ll[256]; }; var deo = new i32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]); var et = new u8(0); var dflt = function(dat, lvl, plvl, pre, post, st2) { var s2 = st2.z || dat.length; var o2 = new u8(pre + s2 + 5 * (1 + Math.ceil(s2 / 7e3)) + post); var w2 = o2.subarray(pre, o2.length - post); var lst = st2.l; var pos = (st2.r || 0) & 7; if (lvl) { if (pos) w2[0] = st2.r >> 3; var opt = deo[lvl - 1]; var n2 = opt >> 13, c2 = opt & 8191; var msk_1 = (1 << plvl) - 1; var prev = st2.p || new u16(32768), head = st2.h || new u16(msk_1 + 1); var bs1_1 = Math.ceil(plvl / 3), bs2_1 = 2 * bs1_1; var hsh = function(i3) { return (dat[i3] ^ dat[i3 + 1] << bs1_1 ^ dat[i3 + 2] << bs2_1) & msk_1; }; var syms = new i32(25e3); var lf = new u16(288), df = new u16(32); var lc_1 = 0, eb = 0, i2 = st2.i || 0, li = 0, wi = st2.w || 0, bs = 0; for (; i2 + 2 < s2; ++i2) { var hv = hsh(i2); var imod = i2 & 32767, pimod = head[hv]; prev[imod] = pimod; head[hv] = imod; if (wi <= i2) { var rem = s2 - i2; if ((lc_1 > 7e3 || li > 24576) && (rem > 423 || !lst)) { pos = wblk(dat, w2, 0, syms, lf, df, eb, li, bs, i2 - bs, pos); li = lc_1 = eb = 0, bs = i2; for (var j2 = 0; j2 < 286; ++j2) lf[j2] = 0; for (var j2 = 0; j2 < 30; ++j2) df[j2] = 0; } var l2 = 2, d2 = 0, ch_1 = c2, dif = imod - pimod & 32767; if (rem > 2 && hv == hsh(i2 - dif)) { var maxn = Math.min(n2, rem) - 1; var maxd = Math.min(32767, i2); var ml = Math.min(258, rem); while (dif <= maxd && --ch_1 && imod != pimod) { if (dat[i2 + l2] == dat[i2 + l2 - dif]) { var nl = 0; for (; nl < ml && dat[i2 + nl] == dat[i2 + nl - dif]; ++nl) ; if (nl > l2) { l2 = nl, d2 = dif; if (nl > maxn) break; var mmd = Math.min(dif, nl - 2); var md = 0; for (var j2 = 0; j2 < mmd; ++j2) { var ti = i2 - dif + j2 & 32767; var pti = prev[ti]; var cd = ti - pti & 32767; if (cd > md) md = cd, pimod = ti; } } } imod = pimod, pimod = prev[imod]; dif += imod - pimod & 32767; } } if (d2) { syms[li++] = 268435456 | revfl[l2] << 18 | revfd[d2]; var lin = revfl[l2] & 31, din = revfd[d2] & 31; eb += fleb[lin] + fdeb[din]; ++lf[257 + lin]; ++df[din]; wi = i2 + l2; ++lc_1; } else { syms[li++] = dat[i2]; ++lf[dat[i2]]; } } } for (i2 = Math.max(i2, wi); i2 < s2; ++i2) { syms[li++] = dat[i2]; ++lf[dat[i2]]; } pos = wblk(dat, w2, lst, syms, lf, df, eb, li, bs, i2 - bs, pos); if (!lst) { st2.r = pos & 7 | w2[pos / 8 | 0] << 3; pos -= 7; st2.h = head, st2.p = prev, st2.i = i2, st2.w = wi; } } else { for (var i2 = st2.w || 0; i2 < s2 + lst; i2 += 65535) { var e = i2 + 65535; if (e >= s2) { w2[pos / 8 | 0] = lst; e = s2; } pos = wfblk(w2, pos + 1, dat.subarray(i2, e)); } st2.i = s2; } return slc(o2, 0, pre + shft(pos) + post); }; var crct = function() { var t2 = new Int32Array(256); for (var i2 = 0; i2 < 256; ++i2) { var c2 = i2, k2 = 9; while (--k2) c2 = (c2 & 1 && -306674912) ^ c2 >>> 1; t2[i2] = c2; } return t2; }(); var crc = function() { var c2 = -1; return { p: function(d2) { var cr = c2; for (var i2 = 0; i2 < d2.length; ++i2) cr = crct[cr & 255 ^ d2[i2]] ^ cr >>> 8; c2 = cr; }, d: function() { return ~c2; } }; }; var adler = function() { var a2 = 1, b3 = 0; return { p: function(d2) { var n2 = a2, m2 = b3; var l2 = d2.length | 0; for (var i2 = 0; i2 != l2; ) { var e = Math.min(i2 + 2655, l2); for (; i2 < e; ++i2) m2 += n2 += d2[i2]; n2 = (n2 & 65535) + 15 * (n2 >> 16), m2 = (m2 & 65535) + 15 * (m2 >> 16); } a2 = n2, b3 = m2; }, d: function() { a2 %= 65521, b3 %= 65521; return (a2 & 255) << 24 | (a2 & 65280) << 8 | (b3 & 255) << 8 | b3 >> 8; } }; }; var dopt = function(dat, opt, pre, post, st2) { if (!st2) { st2 = { l: 1 }; if (opt.dictionary) { var dict = opt.dictionary.subarray(-32768); var newDat = new u8(dict.length + dat.length); newDat.set(dict); newDat.set(dat, dict.length); dat = newDat; st2.w = dict.length; } } return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? st2.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : 20 : 12 + opt.mem, pre, post, st2); }; var mrg = function(a2, b3) { var o2 = {}; for (var k2 in a2) o2[k2] = a2[k2]; for (var k2 in b3) o2[k2] = b3[k2]; return o2; }; var wcln = function(fn, fnStr, td2) { var dt2 = fn(); var st2 = fn.toString(); var ks = st2.slice(st2.indexOf("[") + 1, st2.lastIndexOf("]")).replace(/\s+/g, "").split(","); for (var i2 = 0; i2 < dt2.length; ++i2) { var v2 = dt2[i2], k2 = ks[i2]; if (typeof v2 == "function") { fnStr += ";" + k2 + "="; var st_1 = v2.toString(); if (v2.prototype) { if (st_1.indexOf("[native code]") != -1) { var spInd = st_1.indexOf(" ", 8) + 1; fnStr += st_1.slice(spInd, st_1.indexOf("(", spInd)); } else { fnStr += st_1; for (var t2 in v2.prototype) fnStr += ";" + k2 + ".prototype." + t2 + "=" + v2.prototype[t2].toString(); } } else fnStr += st_1; } else td2[k2] = v2; } return fnStr; }; var ch = []; var cbfs = function(v2) { var tl = []; for (var k2 in v2) { if (v2[k2].buffer) { tl.push((v2[k2] = new v2[k2].constructor(v2[k2])).buffer); } } return tl; }; var wrkr = function(fns, init, id, cb) { if (!ch[id]) { var fnStr = "", td_1 = {}, m2 = fns.length - 1; for (var i2 = 0; i2 < m2; ++i2) fnStr = wcln(fns[i2], fnStr, td_1); ch[id] = { c: wcln(fns[m2], fnStr, td_1), e: td_1 }; } var td2 = mrg({}, ch[id].e); return wk(ch[id].c + ";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=" + init.toString() + "}", id, td2, cbfs(td2), cb); }; var bInflt = function() { return [u8, u16, i32, fleb, fdeb, clim, fl, fd, flrm, fdrm, rev, ec, hMap, max, bits, bits16, shft, slc, err, inflt, inflateSync, pbf, gopt]; }; var bDflt = function() { return [u8, u16, i32, fleb, fdeb, clim, revfl, revfd, flm, flt, fdm, fdt, rev, deo, et, hMap, wbits, wbits16, hTree, ln, lc, clen, wfblk, wblk, shft, slc, dflt, dopt, deflateSync, pbf]; }; var guze = function() { return [gzs, gzl]; }; var zule = function() { return [zls]; }; var pbf = function(msg) { return postMessage(msg, [msg.buffer]); }; var gopt = function(o2) { return o2 && { out: o2.size && new u8(o2.size), dictionary: o2.dictionary }; }; var astrm = function(strm) { strm.ondata = function(dat, final) { return postMessage([dat, final], [dat.buffer]); }; return function(ev) { if (ev.data.length) { strm.push(ev.data[0], ev.data[1]); postMessage([ev.data[0].length]); } else strm.flush(); }; }; var astrmify = function(fns, strm, opts, init, id, flush, ext) { var t2; var w2 = wrkr(fns, init, id, function(err2, dat) { if (err2) w2.terminate(), strm.ondata.call(strm, err2); else if (!Array.isArray(dat)) ext(dat); else if (dat.length == 1) { strm.queuedSize -= dat[0]; if (strm.ondrain) strm.ondrain(dat[0]); } else { if (dat[1]) w2.terminate(); strm.ondata.call(strm, err2, dat[0], dat[1]); } }); w2.postMessage(opts); strm.queuedSize = 0; strm.push = function(d2, f2) { if (!strm.ondata) err(5); if (t2) strm.ondata(err(4, 0, 1), null, !!f2); strm.queuedSize += d2.length; w2.postMessage([d2, t2 = f2], [d2.buffer]); }; strm.terminate = function() { w2.terminate(); }; if (flush) { strm.flush = function() { w2.postMessage([]); }; } }; var b2 = function(d2, b3) { return d2[b3] | d2[b3 + 1] << 8; }; var b4 = function(d2, b3) { return (d2[b3] | d2[b3 + 1] << 8 | d2[b3 + 2] << 16 | d2[b3 + 3] << 24) >>> 0; }; var b8 = function(d2, b3) { return b4(d2, b3) + b4(d2, b3 + 4) * 4294967296; }; var wbytes = function(d2, b3, v2) { for (; v2; ++b3) d2[b3] = v2, v2 >>>= 8; }; var gzh = function(c2, o2) { var fn = o2.filename; c2[0] = 31, c2[1] = 139, c2[2] = 8, c2[8] = o2.level < 2 ? 4 : o2.level == 9 ? 2 : 0, c2[9] = 3; if (o2.mtime != 0) wbytes(c2, 4, Math.floor(new Date(o2.mtime || Date.now()) / 1e3)); if (fn) { c2[3] = 8; for (var i2 = 0; i2 <= fn.length; ++i2) c2[i2 + 10] = fn.charCodeAt(i2); } }; var gzs = function(d2) { if (d2[0] != 31 || d2[1] != 139 || d2[2] != 8) err(6, "invalid gzip data"); var flg = d2[3]; var st2 = 10; if (flg & 4) st2 += (d2[10] | d2[11] << 8) + 2; for (var zs = (flg >> 3 & 1) + (flg >> 4 & 1); zs > 0; zs -= !d2[st2++]) ; return st2 + (flg & 2); }; var gzl = function(d2) { var l2 = d2.length; return (d2[l2 - 4] | d2[l2 - 3] << 8 | d2[l2 - 2] << 16 | d2[l2 - 1] << 24) >>> 0; }; var gzhl = function(o2) { return 10 + (o2.filename ? o2.filename.length + 1 : 0); }; var zlh = function(c2, o2) { var lv = o2.level, fl2 = lv == 0 ? 0 : lv < 6 ? 1 : lv == 9 ? 3 : 2; c2[0] = 120, c2[1] = fl2 << 6 | (o2.dictionary && 32); c2[1] |= 31 - (c2[0] << 8 | c2[1]) % 31; if (o2.dictionary) { var h2 = adler(); h2.p(o2.dictionary); wbytes(c2, 2, h2.d()); } }; var zls = function(d2, dict) { if ((d2[0] & 15) != 8 || d2[0] >> 4 > 7 || (d2[0] << 8 | d2[1]) % 31) err(6, "invalid zlib data"); if ((d2[1] >> 5 & 1) == +!dict) err(6, "invalid zlib data: " + (d2[1] & 32 ? "need" : "unexpected") + " dictionary"); return (d2[1] >> 3 & 4) + 2; }; function StrmOpt(opts, cb) { if (typeof opts == "function") cb = opts, opts = {}; this.ondata = cb; return opts; } var Deflate = function() { function Deflate2(opts, cb) { if (typeof opts == "function") cb = opts, opts = {}; this.ondata = cb; this.o = opts || {}; this.s = { l: 0, i: 32768, w: 32768, z: 32768 }; this.b = new u8(98304); if (this.o.dictionary) { var dict = this.o.dictionary.subarray(-32768); this.b.set(dict, 32768 - dict.length); this.s.i = 32768 - dict.length; } } Deflate2.prototype.p = function(c2, f2) { this.ondata(dopt(c2, this.o, 0, 0, this.s), f2); }; Deflate2.prototype.push = function(chunk, final) { if (!this.ondata) err(5); if (this.s.l) err(4); var endLen = chunk.length + this.s.z; if (endLen > this.b.length) { if (endLen > 2 * this.b.length - 32768) { var newBuf = new u8(endLen & -32768); newBuf.set(this.b.subarray(0, this.s.z)); this.b = newBuf; } var split = this.b.length - this.s.z; this.b.set(chunk.subarray(0, split), this.s.z); this.s.z = this.b.length; this.p(this.b, false); this.b.set(this.b.subarray(-32768)); this.b.set(chunk.subarray(split), 32768); this.s.z = chunk.length - split + 32768; this.s.i = 32766, this.s.w = 32768; } else { this.b.set(chunk, this.s.z); this.s.z += chunk.length; } this.s.l = final & 1; if (this.s.z > this.s.w + 8191 || final) { this.p(this.b, final || false); this.s.w = this.s.i, this.s.i -= 2; } }; Deflate2.prototype.flush = function() { if (!this.ondata) err(5); if (this.s.l) err(4); this.p(this.b, false); this.s.w = this.s.i, this.s.i -= 2; }; return Deflate2; }(); var AsyncDeflate = /* @__PURE__ */ function() { function AsyncDeflate2(opts, cb) { astrmify([ bDflt, function() { return [astrm, Deflate]; } ], this, StrmOpt.call(this, opts, cb), function(ev) { var strm = new Deflate(ev.data); onmessage = astrm(strm); }, 6, 1); } return AsyncDeflate2; }(); function deflateSync(data, opts) { return dopt(data, opts || {}, 0, 0); } var Inflate = function() { function Inflate2(opts, cb) { if (typeof opts == "function") cb = opts, opts = {}; this.ondata = cb; var dict = opts && opts.dictionary && opts.dictionary.subarray(-32768); this.s = { i: 0, b: dict ? dict.length : 0 }; this.o = new u8(32768); this.p = new u8(0); if (dict) this.o.set(dict); } Inflate2.prototype.e = function(c2) { if (!this.ondata) err(5); if (this.d) err(4); if (!this.p.length) this.p = c2; else if (c2.length) { var n2 = new u8(this.p.length + c2.length); n2.set(this.p), n2.set(c2, this.p.length), this.p = n2; } }; Inflate2.prototype.c = function(final) { this.s.i = +(this.d = final || false); var bts = this.s.b; var dt2 = inflt(this.p, this.s, this.o); this.ondata(slc(dt2, bts, this.s.b), this.d); this.o = slc(dt2, this.s.b - 32768), this.s.b = this.o.length; this.p = slc(this.p, this.s.p / 8 | 0), this.s.p &= 7; }; Inflate2.prototype.push = function(chunk, final) { this.e(chunk), this.c(final); }; return Inflate2; }(); var AsyncInflate = /* @__PURE__ */ function() { function AsyncInflate2(opts, cb) { astrmify([ bInflt, function() { return [astrm, Inflate]; } ], this, StrmOpt.call(this, opts, cb), function(ev) { var strm = new Inflate(ev.data); onmessage = astrm(strm); }, 7, 0); } return AsyncInflate2; }(); function inflateSync(data, opts) { return inflt(data, { i: 2 }, opts && opts.out, opts && opts.dictionary); } var Gzip = function() { function Gzip2(opts, cb) { this.c = crc(); this.l = 0; this.v = 1; Deflate.call(this, opts, cb); } Gzip2.prototype.push = function(chunk, final) { this.c.p(chunk); this.l += chunk.length; Deflate.prototype.push.call(this, chunk, final); }; Gzip2.prototype.p = function(c2, f2) { var raw = dopt(c2, this.o, this.v && gzhl(this.o), f2 && 8, this.s); if (this.v) gzh(raw, this.o), this.v = 0; if (f2) wbytes(raw, raw.length - 8, this.c.d()), wbytes(raw, raw.length - 4, this.l); this.ondata(raw, f2); }; Gzip2.prototype.flush = function() { Deflate.prototype.flush.call(this); }; return Gzip2; }(); var Gunzip = function() { function Gunzip2(opts, cb) { this.v = 1; this.r = 0; Inflate.call(this, opts, cb); } Gunzip2.prototype.push = function(chunk, final) { Inflate.prototype.e.call(this, chunk); this.r += chunk.length; if (this.v) { var p2 = this.p.subarray(this.v - 1); var s2 = p2.length > 3 ? gzs(p2) : 4; if (s2 > p2.length) { if (!final) return; } else if (this.v > 1 && this.onmember) { this.onmember(this.r - p2.length); } this.p = p2.subarray(s2), this.v = 0; } Inflate.prototype.c.call(this, final); if (this.s.f && !this.s.l && !final) { this.v = shft(this.s.p) + 9; this.s = { i: 0 }; this.o = new u8(0); this.push(new u8(0), final); } }; return Gunzip2; }(); var AsyncGunzip = /* @__PURE__ */ function() { function AsyncGunzip2(opts, cb) { var _this = this; astrmify([ bInflt, guze, function() { return [astrm, Inflate, Gunzip]; } ], this, StrmOpt.call(this, opts, cb), function(ev) { var strm = new Gunzip(ev.data); strm.onmember = function(offset) { return postMessage(offset); }; onmessage = astrm(strm); }, 9, 0, function(offset) { return _this.onmember && _this.onmember(offset); }); } return AsyncGunzip2; }(); var Zlib = function() { function Zlib2(opts, cb) { this.c = adler(); this.v = 1; Deflate.call(this, opts, cb); } Zlib2.prototype.push = function(chunk, final) { this.c.p(chunk); Deflate.prototype.push.call(this, chunk, final); }; Zlib2.prototype.p = function(c2, f2) { var raw = dopt(c2, this.o, this.v && (this.o.dictionary ? 6 : 2), f2 && 4, this.s); if (this.v) zlh(raw, this.o), this.v = 0; if (f2) wbytes(raw, raw.length - 4, this.c.d()); this.ondata(raw, f2); }; Zlib2.prototype.flush = function() { Deflate.prototype.flush.call(this); }; return Zlib2; }(); function zlibSync(data, opts) { if (!opts) opts = {}; var a2 = adler(); a2.p(data); var d2 = dopt(data, opts, opts.dictionary ? 6 : 2, 4); return zlh(d2, opts), wbytes(d2, d2.length - 4, a2.d()), d2; } var Unzlib = function() { function Unzlib2(opts, cb) { Inflate.call(this, opts, cb); this.v = opts && opts.dictionary ? 2 : 1; } Unzlib2.prototype.push = function(chunk, final) { Inflate.prototype.e.call(this, chunk); if (this.v) { if (this.p.length < 6 && !final) return; this.p = this.p.subarray(zls(this.p, this.v - 1)), this.v = 0; } if (final) { if (this.p.length < 4) err(6, "invalid zlib data"); this.p = this.p.subarray(0, -4); } Inflate.prototype.c.call(this, final); }; return Unzlib2; }(); var AsyncUnzlib = /* @__PURE__ */ function() { function AsyncUnzlib2(opts, cb) { astrmify([ bInflt, zule, function() { return [astrm, Inflate, Unzlib]; } ], this, StrmOpt.call(this, opts, cb), function(ev) { var strm = new Unzlib(ev.data); onmessage = astrm(strm); }, 11, 0); } return AsyncUnzlib2; }(); function unzlibSync(data, opts) { return inflt(data.subarray(zls(data, opts && opts.dictionary), -4), { i: 2 }, opts && opts.out, opts && opts.dictionary); } var Decompress = function() { function Decompress2(opts, cb) { this.o = StrmOpt.call(this, opts, cb) || {}; this.G = Gunzip; this.I = Inflate; this.Z = Unzlib; } Decompress2.prototype.i = function() { var _this = this; this.s.ondata = function(dat, final) { _this.ondata(dat, final); }; }; Decompress2.prototype.push = function(chunk, final) { if (!this.ondata) err(5); if (!this.s) { if (this.p && this.p.length) { var n2 = new u8(this.p.length + chunk.length); n2.set(this.p), n2.set(chunk, this.p.length); } else this.p = chunk; if (this.p.length > 2) { this.s = this.p[0] == 31 && this.p[1] == 139 && this.p[2] == 8 ? new this.G(this.o) : (this.p[0] & 15) != 8 || this.p[0] >> 4 > 7 || (this.p[0] << 8 | this.p[1]) % 31 ? new this.I(this.o) : new this.Z(this.o); this.i(); this.s.push(this.p, final); this.p = null; } } else this.s.push(chunk, final); }; return Decompress2; }(); var AsyncDecompress = function() { function AsyncDecompress2(opts, cb) { Decompress.call(this, opts, cb); this.queuedSize = 0; this.G = AsyncGunzip; this.I = AsyncInflate; this.Z = AsyncUnzlib; } AsyncDecompress2.prototype.i = function() { var _this = this; this.s.ondata = function(err2, dat, final) { _this.ondata(err2, dat, final); }; this.s.ondrain = function(size) { _this.queuedSize -= size; if (_this.ondrain) _this.ondrain(size); }; }; AsyncDecompress2.prototype.push = function(chunk, final) { this.queuedSize += chunk.length; Decompress.prototype.push.call(this, chunk, final); }; return AsyncDecompress2; }(); var te = typeof TextEncoder != "undefined" && new TextEncoder(); var td = typeof TextDecoder != "undefined" && new TextDecoder(); var tds = 0; try { td.decode(et, { stream: true }); tds = 1; } catch (e) { } var dutf8 = function(d2) { for (var r = "", i2 = 0; ; ) { var c2 = d2[i2++]; var eb = (c2 > 127) + (c2 > 223) + (c2 > 239); if (i2 + eb > d2.length) return { s: r, r: slc(d2, i2 - 1) }; if (!eb) r += String.fromCharCode(c2); else if (eb == 3) { c2 = ((c2 & 15) << 18 | (d2[i2++] & 63) << 12 | (d2[i2++] & 63) << 6 | d2[i2++] & 63) - 65536, r += String.fromCharCode(55296 | c2 >> 10, 56320 | c2 & 1023); } else if (eb & 1) r += String.fromCharCode((c2 & 31) << 6 | d2[i2++] & 63); else r += String.fromCharCode((c2 & 15) << 12 | (d2[i2++] & 63) << 6 | d2[i2++] & 63); } }; var DecodeUTF8 = function() { function DecodeUTF82(cb) { this.ondata = cb; if (tds) this.t = new TextDecoder(); else this.p = et; } DecodeUTF82.prototype.push = function(chunk, final) { if (!this.ondata) err(5); final = !!final; if (this.t) { this.ondata(this.t.decode(chunk, { stream: true }), final); if (final) { if (this.t.decode().length) err(8); this.t = null; } return; } if (!this.p) err(4); var dat = new u8(this.p.length + chunk.length); dat.set(this.p); dat.set(chunk, this.p.length); var _a2 = dutf8(dat), s2 = _a2.s, r = _a2.r; if (final) { if (r.length) err(8); this.p = null; } else this.p = r; this.ondata(s2, final); }; return DecodeUTF82; }(); var EncodeUTF8 = function() { function EncodeUTF82(cb) { this.ondata = cb; } EncodeUTF82.prototype.push = function(chunk, final) { if (!this.ondata) err(5); if (this.d) err(4); this.ondata(strToU8(chunk), this.d = final || false); }; return EncodeUTF82; }(); function strToU8(str, latin1) { if (latin1) { var ar_1 = new u8(str.length); for (var i2 = 0; i2 < str.length; ++i2) ar_1[i2] = str.charCodeAt(i2); return ar_1; } if (te) return te.encode(str); var l2 = str.length; var ar = new u8(str.length + (str.length >> 1)); var ai = 0; var w2 = function(v2) { ar[ai++] = v2; }; for (var i2 = 0; i2 < l2; ++i2) { if (ai + 5 > ar.length) { var n2 = new u8(ai + 8 + (l2 - i2 << 1)); n2.set(ar); ar = n2; } var c2 = str.charCodeAt(i2); if (c2 < 128 || latin1) w2(c2); else if (c2 < 2048) w2(192 | c2 >> 6), w2(128 | c2 & 63); else if (c2 > 55295 && c2 < 57344) c2 = 65536 + (c2 & 1023 << 10) | str.charCodeAt(++i2) & 1023, w2(240 | c2 >> 18), w2(128 | c2 >> 12 & 63), w2(128 | c2 >> 6 & 63), w2(128 | c2 & 63); else w2(224 | c2 >> 12), w2(128 | c2 >> 6 & 63), w2(128 | c2 & 63); } return slc(ar, 0, ai); } function strFromU8(dat, latin1) { if (latin1) { var r = ""; for (var i2 = 0; i2 < dat.length; i2 += 16384) r += String.fromCharCode.apply(null, dat.subarray(i2, i2 + 16384)); return r; } else if (td) { return td.decode(dat); } else { var _a2 = dutf8(dat), s2 = _a2.s, r = _a2.r; if (r.length) err(8); return s2; } } var dbf = function(l2) { return l2 == 1 ? 3 : l2 < 6 ? 2 : l2 == 9 ? 1 : 0; }; var z64e = function(d2, b3) { for (; b2(d2, b3) != 1; b3 += 4 + b2(d2, b3 + 2)) ; return [b8(d2, b3 + 12), b8(d2, b3 + 4), b8(d2, b3 + 20)]; }; var exfl = function(ex) { var le2 = 0; if (ex) { for (var k2 in ex) { var l2 = ex[k2].length; if (l2 > 65535) err(9); le2 += l2 + 4; } } return le2; }; var wzh = function(d2, b3, f2, fn, u2, c2, ce2, co) { var fl2 = fn.length, ex = f2.extra, col = co && co.length; var exl = exfl(ex); wbytes(d2, b3, ce2 != null ? 33639248 : 67324752), b3 += 4; if (ce2 != null) d2[b3++] = 20, d2[b3++] = f2.os; d2[b3] = 20, b3 += 2; d2[b3++] = f2.flag << 1 | (c2 < 0 && 8), d2[b3++] = u2 && 8; d2[b3++] = f2.compression & 255, d2[b3++] = f2.compression >> 8; var dt2 = new Date(f2.mtime == null ? Date.now() : f2.mtime), y2 = dt2.getFullYear() - 1980; if (y2 < 0 || y2 > 119) err(10); wbytes(d2, b3, y2 << 25 | dt2.getMonth() + 1 << 21 | dt2.getDate() << 16 | dt2.getHours() << 11 | dt2.getMinutes() << 5 | dt2.getSeconds() >> 1), b3 += 4; if (c2 != -1) { wbytes(d2, b3, f2.crc); wbytes(d2, b3 + 4, c2 < 0 ? -c2 - 2 : c2); wbytes(d2, b3 + 8, f2.size); } wbytes(d2, b3 + 12, fl2); wbytes(d2, b3 + 14, exl), b3 += 16; if (ce2 != null) { wbytes(d2, b3, col); wbytes(d2, b3 + 6, f2.attrs); wbytes(d2, b3 + 10, ce2), b3 += 14; } d2.set(fn, b3); b3 += fl2; if (exl) { for (var k2 in ex) { var exf = ex[k2], l2 = exf.length; wbytes(d2, b3, +k2); wbytes(d2, b3 + 2, l2); d2.set(exf, b3 + 4), b3 += 4 + l2; } } if (col) d2.set(co, b3), b3 += col; return b3; }; var wzf = function(o2, b3, c2, d2, e) { wbytes(o2, b3, 101010256); wbytes(o2, b3 + 8, c2); wbytes(o2, b3 + 10, c2); wbytes(o2, b3 + 12, d2); wbytes(o2, b3 + 16, e); }; var ZipPassThrough = function() { function ZipPassThrough2(filename) { this.filename = filename; this.c = crc(); this.size = 0; this.compression = 0; } ZipPassThrough2.prototype.process = function(chunk, final) { this.ondata(null, chunk, final); }; ZipPassThrough2.prototype.push = function(chunk, final) { if (!this.ondata) err(5); this.c.p(chunk); this.size += chunk.length; if (final) this.crc = this.c.d(); this.process(chunk, final || false); }; return ZipPassThrough2; }(); var ZipDeflate = function() { function ZipDeflate2(filename, opts) { var _this = this; if (!opts) opts = {}; ZipPassThrough.call(this, filename); this.d = new Deflate(opts, function(dat, final) { _this.ondata(null, dat, final); }); this.compression = 8; this.flag = dbf(opts.level); } ZipDeflate2.prototype.process = function(chunk, final) { try { this.d.push(chunk, final); } catch (e) { this.ondata(e, null, final); } }; ZipDeflate2.prototype.push = function(chunk, final) { ZipPassThrough.prototype.push.call(this, chunk, final); }; return ZipDeflate2; }(); var AsyncZipDeflate = function() { function AsyncZipDeflate2(filename, opts) { var _this = this; if (!opts) opts = {}; ZipPassThrough.call(this, filename); this.d = new AsyncDeflate(opts, function(err2, dat, final) { _this.ondata(err2, dat, final); }); this.compression = 8; this.flag = dbf(opts.level); this.terminate = this.d.terminate; } AsyncZipDeflate2.prototype.process = function(chunk, final) { this.d.push(chunk, final); }; AsyncZipDeflate2.prototype.push = function(chunk, final) { ZipPassThrough.prototype.push.call(this, chunk, final); }; return AsyncZipDeflate2; }(); var Zip = function() { function Zip2(cb) { this.ondata = cb; this.u = []; this.d = 1; } Zip2.prototype.add = function(file) { var _this = this; if (!this.ondata) err(5); if (this.d & 2) this.ondata(err(4 + (this.d & 1) * 8, 0, 1), null, false); else { var f2 = strToU8(file.filename), fl_1 = f2.length; var com = file.comment, o2 = com && strToU8(com); var u2 = fl_1 != file.filename.length || o2 && com.length != o2.length; var hl_1 = fl_1 + exfl(file.extra) + 30; if (fl_1 > 65535) this.ondata(err(11, 0, 1), null, false); var header = new u8(hl_1); wzh(header, 0, file, f2, u2, -1); var chks_1 = [header]; var pAll_1 = function() { for (var _i = 0, chks_2 = chks_1; _i < chks_2.length; _i++) { var chk = chks_2[_i]; _this.ondata(null, chk, false); } chks_1 = []; }; var tr_1 = this.d; this.d = 0; var ind_1 = this.u.length; var uf_1 = mrg(file, { f: f2, u: u2, o: o2, t: function() { if (file.terminate) file.terminate(); }, r: function() { pAll_1(); if (tr_1) { var nxt = _this.u[ind_1 + 1]; if (nxt) nxt.r(); else _this.d = 1; } tr_1 = 1; } }); var cl_1 = 0; file.ondata = function(err2, dat, final) { if (err2) { _this.ondata(err2, dat, final); _this.terminate(); } else { cl_1 += dat.length; chks_1.push(dat); if (final) { var dd = new u8(16); wbytes(dd, 0, 134695760); wbytes(dd, 4, file.crc); wbytes(dd, 8, cl_1); wbytes(dd, 12, file.size); chks_1.push(dd); uf_1.c = cl_1, uf_1.b = hl_1 + cl_1 + 16, uf_1.crc = file.crc, uf_1.size = file.size; if (tr_1) uf_1.r(); tr_1 = 1; } else if (tr_1) pAll_1(); } }; this.u.push(uf_1); } }; Zip2.prototype.end = function() { var _this = this; if (this.d & 2) { this.ondata(err(4 + (this.d & 1) * 8, 0, 1), null, true); return; } if (this.d) this.e(); else this.u.push({ r: function() { if (!(_this.d & 1)) return; _this.u.splice(-1, 1); _this.e(); }, t: function() { } }); this.d = 3; }; Zip2.prototype.e = function() { var bt2 = 0, l2 = 0, tl = 0; for (var _i = 0, _a2 = this.u; _i < _a2.length; _i++) { var f2 = _a2[_i]; tl += 46 + f2.f.length + exfl(f2.extra) + (f2.o ? f2.o.length : 0); } var out = new u8(tl + 22); for (var _b2 = 0, _c = this.u; _b2 < _c.length; _b2++) { var f2 = _c[_b2]; wzh(out, bt2, f2, f2.f, f2.u, -f2.c - 2, l2, f2.o); bt2 += 46 + f2.f.length + exfl(f2.extra) + (f2.o ? f2.o.length : 0), l2 += f2.b; } wzf(out, bt2, this.u.length, tl, l2); this.ondata(null, out, true); this.d = 2; }; Zip2.prototype.terminate = function() { for (var _i = 0, _a2 = this.u; _i < _a2.length; _i++) { var f2 = _a2[_i]; f2.t(); } this.d = 2; }; return Zip2; }(); var UnzipPassThrough = function() { function UnzipPassThrough2() { } UnzipPassThrough2.prototype.push = function(data, final) { this.ondata(null, data, final); }; UnzipPassThrough2.compression = 0; return UnzipPassThrough2; }(); var UnzipInflate = function() { function UnzipInflate2() { var _this = this; this.i = new Inflate(function(dat, final) { _this.ondata(null, dat, final); }); } UnzipInflate2.prototype.push = function(data, final) { try { this.i.push(data, final); } catch (e) { this.ondata(e, null, final); } }; UnzipInflate2.compression = 8; return UnzipInflate2; }(); var AsyncUnzipInflate = function() { function AsyncUnzipInflate2(_2, sz) { var _this = this; if (sz < 32e4) { this.i = new Inflate(function(dat, final) { _this.ondata(null, dat, final); }); } else { this.i = new AsyncInflate(function(err2, dat, final) { _this.ondata(err2, dat, final); }); this.terminate = this.i.terminate; } } AsyncUnzipInflate2.prototype.push = function(data, final) { if (this.i.terminate) data = slc(data, 0); this.i.push(data, final); }; AsyncUnzipInflate2.compression = 8; return AsyncUnzipInflate2; }(); var Unzip = function() { function Unzip2(cb) { this.onfile = cb; this.k = []; this.o = { 0: UnzipPassThrough }; this.p = et; } Unzip2.prototype.push = function(chunk, final) { var _this = this; if (!this.onfile) err(5); if (!this.p) err(4); if (this.c > 0) { var len = Math.min(this.c, chunk.length); var toAdd = chunk.subarray(0, len); this.c -= len; if (this.d) this.d.push(toAdd, !this.c); else this.k[0].push(toAdd); chunk = chunk.subarray(len); if (chunk.length) return this.push(chunk, final); } else { var f2 = 0, i2 = 0, is = void 0, buf = void 0; if (!this.p.length) buf = chunk; else if (!chunk.length) buf = this.p; else { buf = new u8(this.p.length + chunk.length); buf.set(this.p), buf.set(chunk, this.p.length); } var l2 = buf.length, oc = this.c, add = oc && this.d; var _loop_2 = function() { var _a2; var sig = b4(buf, i2); if (sig == 67324752) { f2 = 1, is = i2; this_1.d = null; this_1.c = 0; var bf = b2(buf, i2 + 6), cmp_1 = b2(buf, i2 + 8), u2 = bf & 2048, dd = bf & 8, fnl = b2(buf, i2 + 26), es = b2(buf, i2 + 28); if (l2 > i2 + 30 + fnl + es) { var chks_3 = []; this_1.k.unshift(chks_3); f2 = 2; var sc_1 = b4(buf, i2 + 18), su_1 = b4(buf, i2 + 22); var fn_1 = strFromU8(buf.subarray(i2 + 30, i2 += 30 + fnl), !u2); if (sc_1 == 4294967295) { _a2 = dd ? [-2] : z64e(buf, i2), sc_1 = _a2[0], su_1 = _a2[1]; } else if (dd) sc_1 = -1; i2 += es; this_1.c = sc_1; var d_1; var file_1 = { name: fn_1, compression: cmp_1, start: function() { if (!file_1.ondata) err(5); if (!sc_1) file_1.ondata(null, et, true); else { var ctr = _this.o[cmp_1]; if (!ctr) file_1.ondata(err(14, "unknown compression type " + cmp_1, 1), null, false); d_1 = sc_1 < 0 ? new ctr(fn_1) : new ctr(fn_1, sc_1, su_1); d_1.ondata = function(err2, dat3, final2) { file_1.ondata(err2, dat3, final2); }; for (var _i = 0, chks_4 = chks_3; _i < chks_4.length; _i++) { var dat2 = chks_4[_i]; d_1.push(dat2, false); } if (_this.k[0] == chks_3 && _this.c) _this.d = d_1; else d_1.push(et, true); } }, terminate: function() { if (d_1 && d_1.terminate) d_1.terminate(); } }; if (sc_1 >= 0) file_1.size = sc_1, file_1.originalSize = su_1; this_1.onfile(file_1); } return "break"; } else if (oc) { if (sig == 134695760) { is = i2 += 12 + (oc == -2 && 8), f2 = 3, this_1.c = 0; return "break"; } else if (sig == 33639248) { is = i2 -= 4, f2 = 3, this_1.c = 0; return "break"; } } }; var this_1 = this; for (; i2 < l2 - 4; ++i2) { var state_1 = _loop_2(); if (state_1 === "break") break; } this.p = et; if (oc < 0) { var dat = f2 ? buf.subarray(0, is - 12 - (oc == -2 && 8) - (b4(buf, is - 16) == 134695760 && 4)) : buf.subarray(0, i2); if (add) add.push(dat, !!f2); else this.k[+(f2 == 2)].push(dat); } if (f2 & 2) return this.push(buf.subarray(i2), final); this.p = buf.subarray(i2); } if (final) { if (this.c) err(13); this.p = null; } }; Unzip2.prototype.register = function(decoder) { this.o[decoder.compression] = decoder; }; return Unzip2; }(); // node_modules/jspdf/dist/jspdf.es.min.js var n = /* @__PURE__ */ function() { return "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this; }(); function i() { n.console && "function" == typeof n.console.log && n.console.log.apply(n.console, arguments); } var a = { log: i, warn: function(t2) { n.console && ("function" == typeof n.console.warn ? n.console.warn.apply(n.console, arguments) : i.call(null, arguments)); }, error: function(t2) { n.console && ("function" == typeof n.console.error ? n.console.error.apply(n.console, arguments) : i(t2)); } }; function o(t2, e, r) { var n2 = new XMLHttpRequest(); n2.open("GET", t2), n2.responseType = "blob", n2.onload = function() { l(n2.response, e, r); }, n2.onerror = function() { a.error("could not download file"); }, n2.send(); } function s(t2) { var e = new XMLHttpRequest(); e.open("HEAD", t2, false); try { e.send(); } catch (t3) { } return e.status >= 200 && e.status <= 299; } function c(t2) { try { t2.dispatchEvent(new MouseEvent("click")); } catch (r) { var e = document.createEvent("MouseEvents"); e.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null), t2.dispatchEvent(e); } } var u; var h; var l = n.saveAs || ("object" !== ("undefined" == typeof window ? "undefined" : _typeof(window)) || window !== n ? function() { } : "undefined" != typeof HTMLAnchorElement && "download" in HTMLAnchorElement.prototype ? function(t2, e, r) { var i2 = n.URL || n.webkitURL, a2 = document.createElement("a"); e = e || t2.name || "download", a2.download = e, a2.rel = "noopener", "string" == typeof t2 ? (a2.href = t2, a2.origin !== location.origin ? s(a2.href) ? o(t2, e, r) : c(a2, a2.target = "_blank") : c(a2)) : (a2.href = i2.createObjectURL(t2), setTimeout(function() { i2.revokeObjectURL(a2.href); }, 4e4), setTimeout(function() { c(a2); }, 0)); } : "msSaveOrOpenBlob" in navigator ? function(e, r, n2) { if (r = r || e.name || "download", "string" == typeof e) if (s(e)) o(e, r, n2); else { var i2 = document.createElement("a"); i2.href = e, i2.target = "_blank", setTimeout(function() { c(i2); }); } else navigator.msSaveOrOpenBlob(function(e2, r2) { return void 0 === r2 ? r2 = { autoBom: false } : "object" !== _typeof(r2) && (a.warn("Deprecated: Expected third argument to be a object"), r2 = { autoBom: !r2 }), r2.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e2.type) ? new Blob([String.fromCharCode(65279), e2], { type: e2.type }) : e2; }(e, n2), r); } : function(e, r, i2, a2) { if ((a2 = a2 || open("", "_blank")) && (a2.document.title = a2.document.body.innerText = "downloading..."), "string" == typeof e) return o(e, r, i2); var s2 = "application/octet-stream" === e.type, c2 = /constructor/i.test(n.HTMLElement) || n.safari, u2 = /CriOS\/[\d]+/.test(navigator.userAgent); if ((u2 || s2 && c2) && "object" === ("undefined" == typeof FileReader ? "undefined" : _typeof(FileReader))) { var h2 = new FileReader(); h2.onloadend = function() { var t2 = h2.result; t2 = u2 ? t2 : t2.replace(/^data:[^;]*;/, "data:attachment/file;"), a2 ? a2.location.href = t2 : location = t2, a2 = null; }, h2.readAsDataURL(e); } else { var l2 = n.URL || n.webkitURL, f2 = l2.createObjectURL(e); a2 ? a2.location = f2 : location.href = f2, a2 = null, setTimeout(function() { l2.revokeObjectURL(f2); }, 4e4); } }); function f(t2) { var e; t2 = t2 || "", this.ok = false, "#" == t2.charAt(0) && (t2 = t2.substr(1, 6)); t2 = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "00ffff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000000", blanchedalmond: "ffebcd", blue: "0000ff", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "00ffff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dodgerblue: "1e90ff", feldspar: "d19275", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "ff00ff", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgrey: "d3d3d3", lightgreen: "90ee90", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslateblue: "8470ff", lightslategray: "778899", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "00ff00", limegreen: "32cd32", linen: "faf0e6", magenta: "ff00ff", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370d8", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "d87093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", red: "ff0000", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", violetred: "d02090", wheat: "f5deb3", white: "ffffff", whitesmoke: "f5f5f5", yellow: "ffff00", yellowgreen: "9acd32" }[t2 = (t2 = t2.replace(/ /g, "")).toLowerCase()] || t2; for (var r = [{ re: /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/, example: ["rgb(123, 234, 45)", "rgb(255,234,245)"], process: function(t3) { return [parseInt(t3[1]), parseInt(t3[2]), parseInt(t3[3])]; } }, { re: /^(\w{2})(\w{2})(\w{2})$/, example: ["#00ff00", "336699"], process: function(t3) { return [parseInt(t3[1], 16), parseInt(t3[2], 16), parseInt(t3[3], 16)]; } }, { re: /^(\w{1})(\w{1})(\w{1})$/, example: ["#fb0", "f0f"], process: function(t3) { return [parseInt(t3[1] + t3[1], 16), parseInt(t3[2] + t3[2], 16), parseInt(t3[3] + t3[3], 16)]; } }], n2 = 0; n2 < r.length; n2++) { var i2 = r[n2].re, a2 = r[n2].process, o2 = i2.exec(t2); o2 && (e = a2(o2), this.r = e[0], this.g = e[1], this.b = e[2], this.ok = true); } this.r = this.r < 0 || isNaN(this.r) ? 0 : this.r > 255 ? 255 : this.r, this.g = this.g < 0 || isNaN(this.g) ? 0 : this.g > 255 ? 255 : this.g, this.b = this.b < 0 || isNaN(this.b) ? 0 : this.b > 255 ? 255 : this.b, this.toRGB = function() { return "rgb(" + this.r + ", " + this.g + ", " + this.b + ")"; }, this.toHex = function() { var t3 = this.r.toString(16), e2 = this.g.toString(16), r2 = this.b.toString(16); return 1 == t3.length && (t3 = "0" + t3), 1 == e2.length && (e2 = "0" + e2), 1 == r2.length && (r2 = "0" + r2), "#" + t3 + e2 + r2; }; } function d(t2, e) { var r = t2[0], n2 = t2[1], i2 = t2[2], a2 = t2[3]; r = g(r, n2, i2, a2, e[0], 7, -680876936), a2 = g(a2, r, n2, i2, e[1], 12, -389564586), i2 = g(i2, a2, r, n2, e[2], 17, 606105819), n2 = g(n2, i2, a2, r, e[3], 22, -1044525330), r = g(r, n2, i2, a2, e[4], 7, -176418897), a2 = g(a2, r, n2, i2, e[5], 12, 1200080426), i2 = g(i2, a2, r, n2, e[6], 17, -1473231341), n2 = g(n2, i2, a2, r, e[7], 22, -45705983), r = g(r, n2, i2, a2, e[8], 7, 1770035416), a2 = g(a2, r, n2, i2, e[9], 12, -1958414417), i2 = g(i2, a2, r, n2, e[10], 17, -42063), n2 = g(n2, i2, a2, r, e[11], 22, -1990404162), r = g(r, n2, i2, a2, e[12], 7, 1804603682), a2 = g(a2, r, n2, i2, e[13], 12, -40341101), i2 = g(i2, a2, r, n2, e[14], 17, -1502002290), r = m(r, n2 = g(n2, i2, a2, r, e[15], 22, 1236535329), i2, a2, e[1], 5, -165796510), a2 = m(a2, r, n2, i2, e[6], 9, -1069501632), i2 = m(i2, a2, r, n2, e[11], 14, 643717713), n2 = m(n2, i2, a2, r, e[0], 20, -373897302), r = m(r, n2, i2, a2, e[5], 5, -701558691), a2 = m(a2, r, n2, i2, e[10], 9, 38016083), i2 = m(i2, a2, r, n2, e[15], 14, -660478335), n2 = m(n2, i2, a2, r, e[4], 20, -405537848), r = m(r, n2, i2, a2, e[9], 5, 568446438), a2 = m(a2, r, n2, i2, e[14], 9, -1019803690), i2 = m(i2, a2, r, n2, e[3], 14, -187363961), n2 = m(n2, i2, a2, r, e[8], 20, 1163531501), r = m(r, n2, i2, a2, e[13], 5, -1444681467), a2 = m(a2, r, n2, i2, e[2], 9, -51403784), i2 = m(i2, a2, r, n2, e[7], 14, 1735328473), r = v(r, n2 = m(n2, i2, a2, r, e[12], 20, -1926607734), i2, a2, e[5], 4, -378558), a2 = v(a2, r, n2, i2, e[8], 11, -2022574463), i2 = v(i2, a2, r, n2, e[11], 16, 1839030562), n2 = v(n2, i2, a2, r, e[14], 23, -35309556), r = v(r, n2, i2, a2, e[1], 4, -1530992060), a2 = v(a2, r, n2, i2, e[4], 11, 1272893353), i2 = v(i2, a2, r, n2, e[7], 16, -155497632), n2 = v(n2, i2, a2, r, e[10], 23, -1094730640), r = v(r, n2, i2, a2, e[13], 4, 681279174), a2 = v(a2, r, n2, i2, e[0], 11, -358537222), i2 = v(i2, a2, r, n2, e[3], 16, -722521979), n2 = v(n2, i2, a2, r, e[6], 23, 76029189), r = v(r, n2, i2, a2, e[9], 4, -640364487), a2 = v(a2, r, n2, i2, e[12], 11, -421815835), i2 = v(i2, a2, r, n2, e[15], 16, 530742520), r = b(r, n2 = v(n2, i2, a2, r, e[2], 23, -995338651), i2, a2, e[0], 6, -198630844), a2 = b(a2, r, n2, i2, e[7], 10, 1126891415), i2 = b(i2, a2, r, n2, e[14], 15, -1416354905), n2 = b(n2, i2, a2, r, e[5], 21, -57434055), r = b(r, n2, i2, a2, e[12], 6, 1700485571), a2 = b(a2, r, n2, i2, e[3], 10, -1894986606), i2 = b(i2, a2, r, n2, e[10], 15, -1051523), n2 = b(n2, i2, a2, r, e[1], 21, -2054922799), r = b(r, n2, i2, a2, e[8], 6, 1873313359), a2 = b(a2, r, n2, i2, e[15], 10, -30611744), i2 = b(i2, a2, r, n2, e[6], 15, -1560198380), n2 = b(n2, i2, a2, r, e[13], 21, 1309151649), r = b(r, n2, i2, a2, e[4], 6, -145523070), a2 = b(a2, r, n2, i2, e[11], 10, -1120210379), i2 = b(i2, a2, r, n2, e[2], 15, 718787259), n2 = b(n2, i2, a2, r, e[9], 21, -343485551), t2[0] = _(r, t2[0]), t2[1] = _(n2, t2[1]), t2[2] = _(i2, t2[2]), t2[3] = _(a2, t2[3]); } function p(t2, e, r, n2, i2, a2) { return e = _(_(e, t2), _(n2, a2)), _(e << i2 | e >>> 32 - i2, r); } function g(t2, e, r, n2, i2, a2, o2) { return p(e & r | ~e & n2, t2, e, i2, a2, o2); } function m(t2, e, r, n2, i2, a2, o2) { return p(e & n2 | r & ~n2, t2, e, i2, a2, o2); } function v(t2, e, r, n2, i2, a2, o2) { return p(e ^ r ^ n2, t2, e, i2, a2, o2); } function b(t2, e, r, n2, i2, a2, o2) { return p(r ^ (e | ~n2), t2, e, i2, a2, o2); } function y(t2) { var e, r = t2.length, n2 = [1732584193, -271733879, -1732584194, 271733878]; for (e = 64; e <= t2.length; e += 64) d(n2, w(t2.substring(e - 64, e))); t2 = t2.substring(e - 64); var i2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; for (e = 0; e < t2.length; e++) i2[e >> 2] |= t2.charCodeAt(e) << (e % 4 << 3); if (i2[e >> 2] |= 128 << (e % 4 << 3), e > 55) for (d(n2, i2), e = 0; e < 16; e++) i2[e] = 0; return i2[14] = 8 * r, d(n2, i2), n2; } function w(t2) { var e, r = []; for (e = 0; e < 64; e += 4) r[e >> 2] = t2.charCodeAt(e) + (t2.charCodeAt(e + 1) << 8) + (t2.charCodeAt(e + 2) << 16) + (t2.charCodeAt(e + 3) << 24); return r; } u = n.atob.bind(n), h = n.btoa.bind(n); var N = "0123456789abcdef".split(""); function L(t2) { for (var e = "", r = 0; r < 4; r++) e += N[t2 >> 8 * r + 4 & 15] + N[t2 >> 8 * r & 15]; return e; } function A(t2) { return String.fromCharCode((255 & t2) >> 0, (65280 & t2) >> 8, (16711680 & t2) >> 16, (4278190080 & t2) >> 24); } function x(t2) { return y(t2).map(A).join(""); } var S = "5d41402abc4b2a76b9719d911017c592" != function(t2) { for (var e = 0; e < t2.length; e++) t2[e] = L(t2[e]); return t2.join(""); }(y("hello")); function _(t2, e) { if (S) { var r = (65535 & t2) + (65535 & e); return (t2 >> 16) + (e >> 16) + (r >> 16) << 16 | 65535 & r; } return t2 + e & 4294967295; } function P(t2, e) { var r, n2, i2, a2; if (t2 !== r) { for (var o2 = (i2 = t2, a2 = 1 + (256 / t2.length >> 0), new Array(a2 + 1).join(i2)), s2 = [], c2 = 0; c2 < 256; c2++) s2[c2] = c2; var u2 = 0; for (c2 = 0; c2 < 256; c2++) { var h2 = s2[c2]; u2 = (u2 + h2 + o2.charCodeAt(c2)) % 256, s2[c2] = s2[u2], s2[u2] = h2; } r = t2, n2 = s2; } else s2 = n2; var l2 = e.length, f2 = 0, d2 = 0, p2 = ""; for (c2 = 0; c2 < l2; c2++) d2 = (d2 + (h2 = s2[f2 = (f2 + 1) % 256])) % 256, s2[f2] = s2[d2], s2[d2] = h2, o2 = s2[(s2[f2] + s2[d2]) % 256], p2 += String.fromCharCode(e.charCodeAt(c2) ^ o2); return p2; } var k = { print: 4, modify: 8, copy: 16, "annot-forms": 32 }; function I(t2, e, r, n2) { this.v = 1, this.r = 2; var i2 = 192; t2.forEach(function(t3) { if (void 0 !== k.perm) throw new Error("Invalid permission: " + t3); i2 += k[t3]; }), this.padding = "(¿N^NuŠAd\0NVÿú