kopia lustrzana https://github.com/viljoviitanen/pako
2 wiersze
26 KiB
JavaScript
2 wiersze
26 KiB
JavaScript
/* pako 0.0.0 nodeca/pako */
|
|
!function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.pako=t()}}(function(){return function t(e,a,i){function n(s,_){if(!a[s]){if(!e[s]){var l="function"==typeof require&&require;if(!_&&l)return l(s,!0);if(r)return r(s,!0);throw new Error("Cannot find module '"+s+"'")}var h=a[s]={exports:{}};e[s][0].call(h.exports,function(t){var a=e[s][1][t];return n(a?a:t)},h,h.exports,t,e,a,i)}return a[s].exports}for(var r="function"==typeof require&&require,s=0;s<i.length;s++)n(i[s]);return n}({1:[function(t,e){"use strict";var a=t("./lib/zlib/utils").assign,i=t("./lib/deflate"),n=t("./lib/inflate"),r=t("./lib/zlib/constants"),s={};a(s,i,n,r),e.exports=s},{"./lib/deflate":2,"./lib/inflate":3,"./lib/zlib/constants":5,"./lib/zlib/utils":11}],2:[function(t,e,a){"use strict";function i(t,e){return t.length===e?t:l.typedOk()?t.subarray(0,e):t.slice(0,e)}function n(t,e){var a=new v(e);if(a.push(t,!0),a.err)throw h[a.err];return a.result}function r(t,e){return e=e||{},e.raw=!0,n(t,e)}function s(t,e){return e=e||{},e.gzip=!0,n(t,e)}var _=t("./zlib/deflate.js"),l=t("./zlib/utils"),h=t("./zlib/messages"),o=t("./zlib/zstream"),u=0,d=4,f=0,c=1,p=-1,w=0,b=8,v=function(t){this.options=l.assign({level:p,method:b,chunkSize:16384,windowBits:15,memLevel:8,strategy:w},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o;var a=_.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==f)throw new Error(h[a])};v.prototype.push=function(t,e){var a,n,r=this.strm,s=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:e===!0?d:u,r.next_in=t,r.next_in_index=0,r.avail_in=r.next_in.length,r.next_out=l.arrayCreate(s);do{if(r.avail_out=this.options.chunkSize,r.next_out_index=0,a=_.deflate(r,n),a!==c&&a!==f)return this.onEnd(a),this.ended=!0,!1;r.next_out_index&&(this.onData(i(r.next_out,r.next_out_index)),(r.avail_in>0||0===r.avail_out)&&(r.next_out=l.arrayCreate(this.options.chunkSize)))}while(r.avail_in>0||0===r.avail_out);return n===d?(a=_.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===f):!0},v.prototype.onData=function(t){this.chunks.push(t)},v.prototype.onEnd=function(t){t===f&&(this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=h[t]},a.Deflate=v,a.deflate=n,a.deflateRaw=r,a.gzip=s},{"./zlib/deflate.js":7,"./zlib/messages":9,"./zlib/utils":11,"./zlib/zstream":12}],3:[function(t,e,a){"use strict";function i(t,e){return t.length===e?t:_.typedOk()?t.subarray(0,e):t.slice(0,e)}function n(t,e){var a=new u(e);if(a.push(t,!0),a.err)throw h[a.err];return a.result}function r(t,e){return e=e||{},e.raw=!0,n(t,e)}var s=t("./zlib/inflate.js"),_=t("./zlib/utils"),l=t("./zlib/constants"),h=t("./zlib/messages"),o=t("./zlib/zstream"),u=function(t){this.options=_.assign({chunkSize:16384,windowBits:47},t||{});var e=this.options;e.raw&&e.windowBits>0&&(e.windowBits=-e.windowBits),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o;var a=s.inflateInit2(this.strm,e.windowBits);if(a!==l.Z_OK)throw new Error(h[a])};u.prototype.push=function(t,e){var a,n,r=this.strm,h=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:e===!0?l.Z_FINISH:l.Z_NO_FLUSH,r.next_in=t,r.next_in_index=0,r.avail_in=r.next_in.length,r.next_out=_.arrayCreate(h);do{if(r.avail_out=this.options.chunkSize,r.next_out_index=0,a=s.inflate(r,n),a!==l.Z_STREAM_END&&a!==l.Z_OK)return this.onEnd(a),this.ended=!0,!1;r.next_out_index&&(this.onData(i(r.next_out,r.next_out_index)),(r.avail_in>0||0===r.avail_out)&&(r.next_out=_.arrayCreate(this.options.chunkSize)))}while(r.avail_in>0||0===r.avail_out);return n===l.Z_FINISH?(a=s.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===l.Z_OK):!0},u.prototype.onData=function(t){this.chunks.push(t)},u.prototype.onEnd=function(t){t===l.Z_OK&&(this.result=_.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=h[t]},a.Inflate=u,a.inflate=n,a.inflateRaw=r},{"./zlib/constants":5,"./zlib/inflate.js":8,"./zlib/messages":9,"./zlib/utils":11,"./zlib/zstream":12}],4:[function(t,e){"use strict";function a(t,e,a,i){for(var n=65535&t,r=t>>>16&65535,s=0;0!==a;){s=a>5552?5552:a,a-=s;do n+=e[i++],r+=n;while(--s);n%=65521,r%=65521}return n|r<<16}e.exports=a},{}],5:[function(t,e){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],6:[function(t,e){"use strict";function a(){for(var t,e=[],a=0;256>a;a++){t=a;for(var i=0;8>i;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}function i(t,e,a,i){var r=n,s=i+a;t=-1^t;for(var _=i;s>_;_++)t=t>>>8^r[255&(t^e[_])];return-1^t}var n=a();e.exports=i},{}],7:[function(t,e,a){"use strict";function i(t){return(t<<1)-(t>4?9:0)}function n(t){for(var e=t.length;--e;)t[e]=0}function r(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(S.arraySet(t.next_out,e.pending_buf,e.pending_out,a,t.next_out_index),t.next_out_index+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))}function s(t,e){Z._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,r(t.strm)}function _(t,e){t.pending_buf[t.pending++]=e}function l(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function h(t,e,a,i){var n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,S.arraySet(e,t.next_in,t.next_in_index,n,a),1===t.state.wrap?t.adler=A(t.adler,e,n,a):2===t.state.wrap&&(t.adler=R(t.adler,e,n,a)),t.next_in_index+=n,t.total_in+=n,n)}function o(t,e){var a,i,n=t.max_chain_length,r=t.strstart,s=t.prev_length,_=t.nice_match,l=t.strstart>t.w_size-se?t.strstart-(t.w_size-se):0,h=t.window,o=t.w_mask,u=t.prev,d=t.strstart+re,f=h[r+s-1],c=h[r+s];t.prev_length>=t.good_match&&(n>>=2),_>t.lookahead&&(_=t.lookahead);do if(a=e,h[a+s]===c&&h[a+s-1]===f&&h[a]===h[r]&&h[++a]===h[r+1]){r+=2,a++;do;while(h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&d>r);if(i=re-(d-r),r=d-re,i>s){if(t.match_start=e,s=i,i>=_)break;f=h[r+s-1],c=h[r+s]}}while((e=u[e&o])>l&&0!==--n);return s<=t.lookahead?s:t.lookahead}function u(t){var e,a,i,n,r,s=t.w_size;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-se)){S.arraySet(t.window,t.window,s,s,0),t.match_start-=s,t.strstart-=s,t.block_start-=s,a=t.hash_size,e=a;do i=t.head[--e],t.head[e]=i>=s?i-s:0;while(--a);a=s,e=a;do i=t.prev[--e],t.prev[e]=i>=s?i-s:0;while(--a);n+=s}if(0===t.strm.avail_in)break;if(a=h(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=a,t.lookahead+t.insert>=ne)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=(t.ins_h<<t.hash_shift^t.window[r+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[r+ne-1])&t.hash_mask,t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert<ne)););}while(t.lookahead<se&&0!==t.strm.avail_in)}function d(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(u(t),0===t.lookahead&&e===O)return pe;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+a;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,s(t,!1),0===t.strm.avail_out))return pe;if(t.strstart-t.block_start>=t.w_size-se&&(s(t,!1),0===t.strm.avail_out))return pe}return t.insert=0,e===N?(s(t,!0),0===t.strm.avail_out?be:ve):t.strstart>t.block_start&&(s(t,!1),0===t.strm.avail_out)?pe:pe}function f(t,e){for(var a,i;;){if(t.lookahead<se){if(u(t),t.lookahead<se&&e===O)return pe;if(0===t.lookahead)break}if(a=0,t.lookahead>=ne&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+ne-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-se&&(t.match_length=o(t,a)),t.match_length>=ne)if(i=Z._tr_tally(t,t.strstart-t.match_start,t.match_length-ne),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=ne){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+ne-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=Z._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(s(t,!1),0===t.strm.avail_out))return pe}return t.insert=t.strstart<ne-1?t.strstart:ne-1,e===N?(s(t,!0),0===t.strm.avail_out?be:ve):t.last_lit&&(s(t,!1),0===t.strm.avail_out)?pe:we}function c(t,e){for(var a,i,n;;){if(t.lookahead<se){if(u(t),t.lookahead<se&&e===O)return pe;if(0===t.lookahead)break}if(a=0,t.lookahead>=ne&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+ne-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=ne-1,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-se&&(t.match_length=o(t,a),t.match_length<=5&&(t.strategy===M||t.match_length===ne&&t.strstart-t.match_start>4096)&&(t.match_length=ne-1)),t.prev_length>=ne&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-ne,i=Z._tr_tally(t,t.strstart-1-t.match_start,t.prev_length-ne),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=n&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+ne-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(0!==--t.prev_length);if(t.match_available=0,t.match_length=ne-1,t.strstart++,i&&(s(t,!1),0===t.strm.avail_out))return pe}else if(t.match_available){if(i=Z._tr_tally(t,0,t.window[t.strstart-1]),i&&s(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return pe}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=Z._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<ne-1?t.strstart:ne-1,e===N?(s(t,!0),0===t.strm.avail_out?be:ve):t.last_lit&&(s(t,!1),0===t.strm.avail_out)?pe:we}function p(t,e){for(var a,i,n,r,_=t.window;;){if(t.lookahead<=re){if(u(t),t.lookahead<=re&&e===O)return pe;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=ne&&t.strstart>0&&(n=t.strstart-1,i=_[n],i===_[++n]&&i===_[++n]&&i===_[++n])){r=t.strstart+re;do;while(i===_[++n]&&i===_[++n]&&i===_[++n]&&i===_[++n]&&i===_[++n]&&i===_[++n]&&i===_[++n]&&i===_[++n]&&r>n);t.match_length=re-(r-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=ne?(a=Z._tr_tally(t,1,t.match_length-ne),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=Z._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(s(t,!1),0===t.strm.avail_out))return pe}return t.insert=0,e===N?(s(t,!0),0===t.strm.avail_out?be:ve):t.last_lit&&(s(t,!1),0===t.strm.avail_out)?pe:we}function w(t,e){for(var a;;){if(0===t.lookahead&&(u(t),0===t.lookahead)){if(e===O)return pe;break}if(t.match_length=0,a=Z._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(s(t,!1),0===t.strm.avail_out))return pe}return t.insert=0,e===N?(s(t,!0),0===t.strm.avail_out?be:ve):t.last_lit&&(s(t,!1),0===t.strm.avail_out)?pe:we}function b(t){t.window_size=2*t.w_size,n(t.head),t.max_lazy_match=E[t.level].max_lazy,t.good_match=E[t.level].good_length,t.nice_match=E[t.level].nice_length,t.max_chain_length=E[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=ne-1,t.match_available=0,t.ins_h=0}function v(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=S.array16Create(2*ae),this.dyn_dtree=S.array16Create(2*(2*te+1)),this.bl_tree=S.array16Create(2*(2*ee+1)),n(this.dyn_ltree),n(this.dyn_dtree),n(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=S.array16Create(ie+1),this.heap=S.array16Create(2*$+1),n(this.heap),this.heap_len=0,this.heap_max=0,this.depth=S.array16Create(2*$+1),n(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0,this.high_water=0}function m(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=G,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?le:fe,t.adler=2===e.wrap?0:1,e.last_flush=O,Z._tr_init(e),D):F}function g(t){var e=m(t);return e===D&&b(t.state),e}function y(t,e,a,i,n,r){if(!t)return F;var s=1;if(e===H&&(e=6),0>i?(s=0,i=-i):i>15&&(s=2,i-=16),1>n||n>X||a!==Y||8>i||i>15||0>e||e>9||0>r||r>K)return F;8===i&&(i=9);var _=new v;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=i,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=n+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+ne-1)/ne),_.window=S.arrayCreate(2*_.w_size),_.head=S.array16Create(_.hash_size),_.prev=S.array16Create(_.w_size),_.high_water=0,_.lit_bufsize=1<<n+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=S.arrayCreate(_.pending_buf_size),_.d_buf=_.lit_bufsize>>1,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=r,_.method=a,g(t)}function k(t,e){return y(t,e,Y,V,W,q)}function x(t,e){var a,s;if(!t||!t.state||e>U||0>e)return F;if(s=t.state,!t.next_out||!t.next_in&&0!==t.avail_in||s.status===ce&&e!==N)return 0===t.avail_out?L:F;if(s.strm=t,a=s.last_flush,s.last_flush=e,s.status===le)if(2===s.wrap){if(t.adler=0,_(s,31),_(s,139),_(s,8),s.gzhead)throw new Error("Custom GZIP headers not supported");_(s,0),_(s,0),_(s,0),_(s,0),_(s,0),_(s,9===s.level?2:s.strategy>=j||s.level<2?4:0),_(s,me),s.status=fe}else{var h=Y+(s.w_bits-8<<4)<<8,o=-1;o=s.strategy>=j||s.level<2?0:s.level<6?1:6===s.level?2:3,h|=o<<6,0!==s.strstart&&(h|=_e),h+=31-h%31,s.status=fe,l(s,h),0!==s.strstart&&(l(s,t.adler>>>16),l(s,65535&t.adler)),t.adler=1}if(0!==s.pending){if(r(t),0===t.avail_out)return s.last_flush=-1,D}else if(0===t.avail_in&&i(e)<=i(a)&&e!==N)return L;if(s.status===ce&&0!==t.avail_in)return L;if(0!==t.avail_in||0!==s.lookahead||e!==O&&s.status!==ce){var u=s.strategy===j?w(s,e):s.strategy===P?p(s,e):E[s.level].func(s,e);if((u===be||u===ve)&&(s.status=ce),u===pe||u===be)return 0===t.avail_out&&(s.last_flush=-1),D;if(u===we&&(e===C?Z._tr_align(s):e!==U&&(Z._tr_stored_block(s,0,0,!1),e===I&&(n(s.head),0===s.lookahead&&(s.strstart=0,s.block_start=0,s.insert=0))),r(t),0===t.avail_out))return s.last_flush=-1,D}return e!==N?D:s.wrap<=0?B:(2===s.wrap?(_(s,255&t.adler),_(s,t.adler>>8&255),_(s,t.adler>>16&255),_(s,t.adler>>24&255),_(s,255&t.total_in),_(s,t.total_in>>8&255),_(s,t.total_in>>16&255),_(s,t.total_in>>24&255)):(l(s,t.adler>>>16),l(s,65535&t.adler)),r(t),s.wrap>0&&(s.wrap=-s.wrap),0!==s.pending?D:B)}function z(t){var e=t.state.status;return e!==le&&e!==he&&e!==oe&&e!==ue&&e!==de&&e!==fe&&e!==ce?F:(t.state=null,e===fe?T:D)}var E,S=t("./utils"),Z=t("./trees"),A=t("./adler32"),R=t("./crc32"),O=0,C=1,I=3,N=4,U=5,D=0,B=1,F=-2,T=-3,L=-5,H=-1,M=1,j=2,P=3,K=4,q=0,G=2,Y=8,X=9,V=15,W=8,J=29,Q=256,$=Q+1+J,te=30,ee=19,ae=2*$+1,ie=15,ne=3,re=258,se=re+ne+1,_e=32,le=42,he=69,oe=73,ue=91,de=103,fe=113,ce=666,pe=1,we=2,be=3,ve=4,me=3,ge=function(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n};E=[new ge(0,0,0,0,d),new ge(4,4,8,4,f),new ge(4,5,16,8,f),new ge(4,6,32,32,f),new ge(4,4,16,16,c),new ge(8,16,32,32,c),new ge(8,16,128,128,c),new ge(8,32,128,256,c),new ge(32,128,258,1024,c),new ge(32,258,258,4096,c)],a.deflateInit=k,a.deflateInit2=y,a.deflateReset=g,a.deflate=x,a.deflateEnd=z,a.deflate_info="pako deflate"},{"./adler32":4,"./crc32":6,"./trees":10,"./utils":11}],8:[function(t,e,a){"use strict";function i(){this.mode=-1,this.last=0,this.wrap=0,this.havedict=0,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=0,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=-1,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=-1,this.distcode=-1,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=0,this.lens=new Array(320),this.work=new Array(280),this.codes=new Array(k),this.sane=0,this.back=0,this.was=0}function n(){}function r(){}function s(){}function _(t){t.state=new i}function l(){}function h(){}function o(){}function u(){}function d(){}function f(){}function c(){}function p(){}function w(){}function b(){}function v(){}function m(){}var g=852,y=592,k=g+y;a.inflateResetKeep=n,a.inflateReset=r,a.inflateReset2=s,a.inflateInit2=_,a.inflateInit=l,a.inflatePrime=h,a.inflate=o,a.inflateEnd=u,a.inflateGetDictionary=d,a.inflateGetHeader=c,a.inflateSetDictionary=f,a.inflateSync=p,a.inflateSyncPoint=w,a.inflateCopy=b,a.inflateUndermine=v,a.inflateMark=m},{}],9:[function(t,e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],10:[function(t,e,a){"use strict";function i(t){for(var e=t.length;--e;)t[e]=0}function n(t){return 256>t?se[t]:se[256+(t>>>7)]}function r(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function s(t,e,a){t.bi_valid>Y-a?(t.bi_buf|=e<<t.bi_valid&65535,r(t,t.bi_buf),t.bi_buf=e>>Y-t.bi_valid,t.bi_valid+=a-Y):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)}function _(t,e,a){s(t,a[2*e],a[2*e+1])}function l(t,e){var a=0;do a|=1&t,t>>>=1,a<<=1;while(--e>0);return a>>>1}function h(t){16===t.bi_valid?(r(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}function o(t,e){var a,i,n,r,s,_,l=e.dyn_tree,h=e.max_code,o=e.stat_desc.static_tree,u=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(r=0;G>=r;r++)t.bl_count[r]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;q>a;a++)i=t.heap[a],r=l[2*l[2*i+1]+1]+1,r>c&&(r=c,p++),l[2*i+1]=r,i>h||(t.bl_count[r]++,s=0,i>=f&&(s=d[i-f]),_=l[2*i],t.opt_len+=_*(r+s),u&&(t.static_len+=_*(o[2*i+1]+s)));if(0!==p){do{for(r=c-1;0===t.bl_count[r];)r--;t.bl_count[r]--,t.bl_count[r+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(r=c;0!==r;r--)for(i=t.bl_count[r];0!==i;)n=t.heap[--a],n>h||(l[2*n+1]!==r&&(t.opt_len+=(r-l[2*n+1])*l[2*n],l[2*n+1]=r),i--)}}function u(t,e,a){var i,n,r=new Array(G+1),s=0;for(i=1;G>=i;i++)r[i]=s=s+a[i-1]<<1;for(n=0;e>=n;n++){var _=t[2*n+1];0!==_&&(t[2*n]=l(r[_]++,_))}}function d(){var t,e,a,i,n,r=new Array(G+1);for(a=0,i=0;H-1>i;i++)for(le[i]=a,t=0;t<1<<$[i];t++)_e[a++]=i;for(_e[a-1]=i,n=0,i=0;16>i;i++)for(he[i]=n,t=0;t<1<<te[i];t++)se[n++]=i;for(n>>=7;P>i;i++)for(he[i]=n<<7,t=0;t<1<<te[i]-7;t++)se[256+n++]=i;for(e=0;G>=e;e++)r[e]=0;for(t=0;143>=t;)ne[2*t+1]=8,t++,r[8]++;for(;255>=t;)ne[2*t+1]=9,t++,r[9]++;for(;279>=t;)ne[2*t+1]=7,t++,r[7]++;for(;287>=t;)ne[2*t+1]=8,t++,r[8]++;for(u(ne,j+1,r),t=0;P>t;t++)re[2*t+1]=5,re[2*t]=l(t,5);oe=new fe(ne,$,M+1,j,G),ue=new fe(re,te,0,P,G),de=new fe(new Array(0),ee,0,K,X)}function f(t){var e;for(e=0;j>e;e++)t.dyn_ltree[2*e]=0;for(e=0;P>e;e++)t.dyn_dtree[2*e]=0;for(e=0;K>e;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*V]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function c(t){t.bi_valid>8?r(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function p(t,e,a,i){c(t),i&&(r(t,a),r(t,~a)),O.arraySet(t.pending_buf,t.window,e,a,t.pending),t.pending+=a}function w(t,e,a,i){var n=2*e,r=2*a;return t[n]<t[r]||t[n]===t[r]&&i[e]<=i[a]}function b(t,e,a){for(var i=t.heap[a],n=a<<1;n<=t.heap_len&&(n<t.heap_len&&w(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!w(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i}function v(t,e,a){var i,r,l,h,o=0;if(0!==t.last_lit)do i=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],r=t.pending_buf[t.l_buf+o],o++,0===i?_(t,r,e):(l=_e[r],_(t,l+M+1,e),h=$[l],0!==h&&(r-=le[l],s(t,r,h)),i--,l=n(i),_(t,l,a),h=te[l],0!==h&&(i-=he[l],s(t,i,h)));while(o<t.last_lit);_(t,V,e)}function m(t,e){var a,i,n,r=e.dyn_tree,s=e.stat_desc.static_tree,_=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(t.heap_len=0,t.heap_max=q,a=0;l>a;a++)0!==r[2*a]?(t.heap[++t.heap_len]=h=a,t.depth[a]=0):r[2*a+1]=0;for(;t.heap_len<2;)n=t.heap[++t.heap_len]=2>h?++h:0,r[2*n]=1,t.depth[n]=0,t.opt_len--,_&&(t.static_len-=s[2*n+1]);for(e.max_code=h,a=t.heap_len>>1;a>=1;a--)b(t,r,a);n=l;do a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],b(t,r,1),i=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=i,r[2*n]=r[2*a]+r[2*i],t.depth[n]=(t.depth[a]>=t.depth[i]?t.depth[a]:t.depth[i])+1,r[2*a+1]=r[2*i+1]=n,t.heap[1]=n++,b(t,r,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],o(t,e),u(r,h,t.bl_count)}function g(t,e,a){var i,n,r=-1,s=e[1],_=0,l=7,h=4;for(0===s&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;a>=i;i++)n=s,s=e[2*(i+1)+1],++_<l&&n===s||(h>_?t.bl_tree[2*n]+=_:0!==n?(n!==r&&t.bl_tree[2*n]++,t.bl_tree[2*W]++):10>=_?t.bl_tree[2*J]++:t.bl_tree[2*Q]++,_=0,r=n,0===s?(l=138,h=3):n===s?(l=6,h=3):(l=7,h=4))}function y(t,e,a){var i,n,r=-1,l=e[1],h=0,o=7,u=4;for(0===l&&(o=138,u=3),i=0;a>=i;i++)if(n=l,l=e[2*(i+1)+1],!(++h<o&&n===l)){if(u>h){do _(t,n,t.bl_tree);while(0!==--h)}else 0!==n?(n!==r&&(_(t,n,t.bl_tree),h--),_(t,W,t.bl_tree),s(t,h-3,2)):10>=h?(_(t,J,t.bl_tree),s(t,h-3,3)):(_(t,Q,t.bl_tree),s(t,h-11,7));h=0,r=n,0===l?(o=138,u=3):n===l?(o=6,u=3):(o=7,u=4)}}function k(t){var e;for(g(t,t.dyn_ltree,t.l_desc.max_code),g(t,t.dyn_dtree,t.d_desc.max_code),m(t,t.bl_desc),e=K-1;e>=3&&0===t.bl_tree[2*ae[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}function x(t,e,a,i){var n;for(s(t,e-257,5),s(t,a-1,5),s(t,i-4,4),n=0;i>n;n++)s(t,t.bl_tree[2*ae[n]+1],3);y(t,t.dyn_ltree,e-1),y(t,t.dyn_dtree,a-1)}function z(t){var e,a=4093624447;for(e=0;31>=e;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return I;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return N;for(e=32;M>e;e++)if(0!==t.dyn_ltree[2*e])return N;return I}function E(t){pe||(d(),pe=!0),t.l_desc=new ce(t.dyn_ltree,oe),t.d_desc=new ce(t.dyn_dtree,ue),t.bl_desc=new ce(t.bl_tree,de),t.bi_buf=0,t.bi_valid=0,f(t)}function S(t,e,a,i){s(t,(D<<1)+(i?1:0),3),p(t,e,a,!0)}function Z(t){s(t,B<<1,3),_(t,V,ne),h(t)}function A(t,e,a,i){var n,r,_=0;t.level>0?(t.strm.data_type===U&&(t.strm.data_type=z(t)),m(t,t.l_desc),m(t,t.d_desc),_=k(t),n=t.opt_len+3+7>>>3,r=t.static_len+3+7>>>3,n>=r&&(n=r)):n=r=a+5,n>=a+4&&-1!==e?S(t,e,a,i):t.strategy===C||r===n?(s(t,(B<<1)+(i?1:0),3),v(t,ne,re)):(s(t,(F<<1)+(i?1:0),3),x(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),v(t,t.dyn_ltree,t.dyn_dtree)),f(t),i&&c(t)}function R(t,e,a){var i,r,s;if(t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_e[a]+M+1)]++,t.dyn_dtree[2*n(e)]++),0===(8191&t.last_lit)&&t.level>2){for(i=8*t.last_lit,r=t.strstart-t.block_start,s=0;P>s;s++)i+=t.dyn_dtree[2*s]*(5+te[s]);if(i>>>=3,t.matches<t.last_lit>>1&&r>>1>i)return!0}return t.last_lit===t.lit_bufsize-1}var O=t("./utils"),C=4,I=0,N=1,U=2,D=0,B=1,F=2,T=3,L=258,H=29,M=256,j=M+1+H,P=30,K=19,q=2*j+1,G=15,Y=16,X=7,V=256,W=16,J=17,Q=18,$=[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],te=[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],ee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ie=512,ne=new Array(2*(j+2));i(ne);var re=new Array(2*P);i(re);var se=new Array(ie);i(se);var _e=new Array(L-T+1);i(_e);var le=new Array(H);i(le);var he=new Array(P);i(he);var oe,ue,de,fe=function(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length},ce=function(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e},pe=!1;a._tr_init=E,a._tr_stored_block=S,a._tr_flush_block=A,a._tr_tally=R,a._tr_align=Z},{"./utils":11}],11:[function(t,e,a){"use strict";function i(){return n&&!a.forceUntyped}var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=Function.prototype.call.bind(Object.prototype.toString),s=Array.isArray||function(t){return"[object Array]"===r(t)};a.forceUntyped=!1,a.typedOk=i,a.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var i in a)a.hasOwnProperty(i)&&(t[i]=a[i])}}return t},a.arraySet=function(t,e,a,n,r){if(i()&&!s(e))return void t.set(e.subarray(a,a+n),r);for(var _=0;n>_;_++)t[r+_]=e[a+_]},a.arrayCreate=function(t){return i()?new Uint8Array(t):new Array(t)},a.array16Create=function(t){return i()?new Uint16Array(t):new Array(t)},a.flattenChunks=function(t){var e,a,n,r,s,_;if(i()){for(n=0,e=0,a=t.length;a>e;e++)n+=t[e].length;for(_=new Uint8Array(n),r=0,e=0,a=t.length;a>e;e++)s=t[e],_.set(s,r),r+=s.length;return _}return[].concat.apply([],t)}},{}],12:[function(t,e){"use strict";function a(){this.next_in=null,this.avail_in=0,this.total_in=0,this.next_out=null,this.avail_out=0,this.total_out=0,this.state=null,this.data_type=2,this.adler=0}e.exports=a},{}]},{},[1])(1)}); |