web-common-resource/terminal/smartxKs/inflator.js

1 line
18 KiB
JavaScript

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.inflator=e()}}(function(){return function e(t,i,a){function n(s,o){if(!i[s]){if(!t[s]){var f="function"==typeof require&&require;if(!o&&f)return f(s,!0);if(r)return r(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var d=i[s]={exports:{}};t[s][0].call(d.exports,function(e){var i=t[s][1][e];return n(i||e)},d,d.exports,e,t,i,a)}return i[s].exports}for(var r="function"==typeof require&&require,s=0;s<a.length;s++)n(a[s]);return n}({1:[function(e,t,i){"use strict";var a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var i=t.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var a in i)i.hasOwnProperty(a)&&(e[a]=i[a])}}return e},i.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var n={arraySet:function(e,t,i,a,n){if(t.subarray&&e.subarray)return void e.set(t.subarray(i,i+a),n);for(var r=0;r<a;r++)e[n+r]=t[i+r]},flattenChunks:function(e){var t,i,a,n,r,s;for(a=0,t=0,i=e.length;t<i;t++)a+=e[t].length;for(s=new Uint8Array(a),n=0,t=0,i=e.length;t<i;t++)r=e[t],s.set(r,n),n+=r.length;return s}},r={arraySet:function(e,t,i,a,n){for(var r=0;r<a;r++)e[n+r]=t[i+r]},flattenChunks:function(e){return[].concat.apply([],e)}};i.setTyped=function(e){e?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,n)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,r))},i.setTyped(a)},{}],2:[function(e,t,i){"use strict";function a(e,t,i,a){for(var n=65535&e|0,r=e>>>16&65535|0,s=0;0!==i;){s=i>2e3?2e3:i,i-=s;do{n=n+t[a++]|0,r=r+n|0}while(--s);n%=65521,r%=65521}return n|r<<16|0}t.exports=a},{}],3:[function(e,t,i){"use strict";function a(e,t,i,a){var r=n,s=a+i;e^=-1;for(var o=a;o<s;o++)e=e>>>8^r[255&(e^t[o])];return-1^e}var n=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var a=0;a<8;a++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}();t.exports=a},{}],4:[function(e,t,i){"use strict";t.exports=function(e,t){var i,a,n,r,s,o,f,l,d,c,h,u,b,m,k,w,v,g,x,p,_,y,z,B,A;i=e.state,a=e.next_in,B=e.input,n=a+(e.avail_in-5),r=e.next_out,A=e.output,s=r-(t-e.avail_out),o=r+(e.avail_out-257),f=i.dmax,l=i.wsize,d=i.whave,c=i.wnext,h=i.window,u=i.hold,b=i.bits,m=i.lencode,k=i.distcode,w=(1<<i.lenbits)-1,v=(1<<i.distbits)-1;e:do{b<15&&(u+=B[a++]<<b,b+=8,u+=B[a++]<<b,b+=8),g=m[u&w];t:for(;;){if(x=g>>>24,u>>>=x,b-=x,0===(x=g>>>16&255))A[r++]=65535&g;else{if(!(16&x)){if(0==(64&x)){g=m[(65535&g)+(u&(1<<x)-1)];continue t}if(32&x){i.mode=12;break e}e.msg="invalid literal/length code",i.mode=30;break e}p=65535&g,x&=15,x&&(b<x&&(u+=B[a++]<<b,b+=8),p+=u&(1<<x)-1,u>>>=x,b-=x),b<15&&(u+=B[a++]<<b,b+=8,u+=B[a++]<<b,b+=8),g=k[u&v];i:for(;;){if(x=g>>>24,u>>>=x,b-=x,!(16&(x=g>>>16&255))){if(0==(64&x)){g=k[(65535&g)+(u&(1<<x)-1)];continue i}e.msg="invalid distance code",i.mode=30;break e}if(_=65535&g,x&=15,b<x&&(u+=B[a++]<<b,(b+=8)<x&&(u+=B[a++]<<b,b+=8)),(_+=u&(1<<x)-1)>f){e.msg="invalid distance too far back",i.mode=30;break e}if(u>>>=x,b-=x,x=r-s,_>x){if((x=_-x)>d&&i.sane){e.msg="invalid distance too far back",i.mode=30;break e}if(y=0,z=h,0===c){if(y+=l-x,x<p){p-=x;do{A[r++]=h[y++]}while(--x);y=r-_,z=A}}else if(c<x){if(y+=l+c-x,(x-=c)<p){p-=x;do{A[r++]=h[y++]}while(--x);if(y=0,c<p){x=c,p-=x;do{A[r++]=h[y++]}while(--x);y=r-_,z=A}}}else if(y+=c-x,x<p){p-=x;do{A[r++]=h[y++]}while(--x);y=r-_,z=A}for(;p>2;)A[r++]=z[y++],A[r++]=z[y++],A[r++]=z[y++],p-=3;p&&(A[r++]=z[y++],p>1&&(A[r++]=z[y++]))}else{y=r-_;do{A[r++]=A[y++],A[r++]=A[y++],A[r++]=A[y++],p-=3}while(p>2);p&&(A[r++]=A[y++],p>1&&(A[r++]=A[y++]))}break}}break}}while(a<n&&r<o);p=b>>3,a-=p,b-=p<<3,u&=(1<<b)-1,e.next_in=a,e.next_out=r,e.avail_in=a<n?n-a+5:5-(a-n),e.avail_out=r<o?o-r+257:257-(r-o),i.hold=u,i.bits=b}},{}],5:[function(e,t,i){"use strict";function a(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function n(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new w.Buf16(320),this.work=new w.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function r(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=T,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new w.Buf32(be),t.distcode=t.distdyn=new w.Buf32(me),t.sane=1,t.back=-1,U):I}function s(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,r(e)):I}function o(e,t){var i,a;return e&&e.state?(a=e.state,t<0?(i=0,t=-t):(i=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?I:(null!==a.window&&a.wbits!==t&&(a.window=null),a.wrap=i,a.wbits=t,s(e))):I}function f(e,t){var i,a;return e?(a=new n,e.state=a,a.window=null,i=o(e,t),i!==U&&(e.state=null),i):I}function l(e){return f(e,ke)}function d(e){if(we){var t;for(m=new w.Buf32(512),k=new w.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(p(y,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;p(z,e.lens,0,32,k,0,e.work,{bits:5}),we=!1}e.lencode=m,e.lenbits=9,e.distcode=k,e.distbits=5}function c(e,t,i,a){var n,r=e.state;return null===r.window&&(r.wsize=1<<r.wbits,r.wnext=0,r.whave=0,r.window=new w.Buf8(r.wsize)),a>=r.wsize?(w.arraySet(r.window,t,i-r.wsize,r.wsize,0),r.wnext=0,r.whave=r.wsize):(n=r.wsize-r.wnext,n>a&&(n=a),w.arraySet(r.window,t,i-a,n,r.wnext),a-=n,a?(w.arraySet(r.window,t,i-a,a,0),r.wnext=a,r.whave=r.wsize):(r.wnext+=n,r.wnext===r.wsize&&(r.wnext=0),r.whave<r.wsize&&(r.whave+=n))),0}function h(e,t){var i,n,r,s,o,f,l,h,u,b,m,k,be,me,ke,we,ve,ge,xe,pe,_e,ye,ze,Be,Ae=0,Se=new w.Buf8(4),Ue=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return I;i=e.state,i.mode===Q&&(i.mode=V),o=e.next_out,r=e.output,l=e.avail_out,s=e.next_in,n=e.input,f=e.avail_in,h=i.hold,u=i.bits,b=f,m=l,ye=U;e:for(;;)switch(i.mode){case T:if(0===i.wrap){i.mode=V;break}for(;u<16;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}if(2&i.wrap&&35615===h){i.check=0,Se[0]=255&h,Se[1]=h>>>8&255,i.check=g(i.check,Se,2,0),h=0,u=0,i.mode=N;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&h)<<8)+(h>>8))%31){e.msg="incorrect header check",i.mode=ce;break}if((15&h)!==R){e.msg="unknown compression method",i.mode=ce;break}if(h>>>=4,u-=4,_e=8+(15&h),0===i.wbits)i.wbits=_e;else if(_e>i.wbits){e.msg="invalid window size",i.mode=ce;break}i.dmax=1<<_e,e.adler=i.check=1,i.mode=512&h?P:Q,h=0,u=0;break;case N:for(;u<16;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}if(i.flags=h,(255&i.flags)!==R){e.msg="unknown compression method",i.mode=ce;break}if(57344&i.flags){e.msg="unknown header flags set",i.mode=ce;break}i.head&&(i.head.text=h>>8&1),512&i.flags&&(Se[0]=255&h,Se[1]=h>>>8&255,i.check=g(i.check,Se,2,0)),h=0,u=0,i.mode=D;case D:for(;u<32;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}i.head&&(i.head.time=h),512&i.flags&&(Se[0]=255&h,Se[1]=h>>>8&255,Se[2]=h>>>16&255,Se[3]=h>>>24&255,i.check=g(i.check,Se,4,0)),h=0,u=0,i.mode=F;case F:for(;u<16;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}i.head&&(i.head.xflags=255&h,i.head.os=h>>8),512&i.flags&&(Se[0]=255&h,Se[1]=h>>>8&255,i.check=g(i.check,Se,2,0)),h=0,u=0,i.mode=G;case G:if(1024&i.flags){for(;u<16;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}i.length=h,i.head&&(i.head.extra_len=h),512&i.flags&&(Se[0]=255&h,Se[1]=h>>>8&255,i.check=g(i.check,Se,2,0)),h=0,u=0}else i.head&&(i.head.extra=null);i.mode=H;case H:if(1024&i.flags&&(k=i.length,k>f&&(k=f),k&&(i.head&&(_e=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),w.arraySet(i.head.extra,n,s,k,_e)),512&i.flags&&(i.check=g(i.check,n,k,s)),f-=k,s+=k,i.length-=k),i.length))break e;i.length=0,i.mode=K;case K:if(2048&i.flags){if(0===f)break e;k=0;do{_e=n[s+k++],i.head&&_e&&i.length<65536&&(i.head.name+=String.fromCharCode(_e))}while(_e&&k<f);if(512&i.flags&&(i.check=g(i.check,n,k,s)),f-=k,s+=k,_e)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=L;case L:if(4096&i.flags){if(0===f)break e;k=0;do{_e=n[s+k++],i.head&&_e&&i.length<65536&&(i.head.comment+=String.fromCharCode(_e))}while(_e&&k<f);if(512&i.flags&&(i.check=g(i.check,n,k,s)),f-=k,s+=k,_e)break e}else i.head&&(i.head.comment=null);i.mode=M;case M:if(512&i.flags){for(;u<16;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}if(h!==(65535&i.check)){e.msg="header crc mismatch",i.mode=ce;break}h=0,u=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=Q;break;case P:for(;u<32;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}e.adler=i.check=a(h),h=0,u=0,i.mode=J;case J:if(0===i.havedict)return e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=f,i.hold=h,i.bits=u,C;e.adler=i.check=1,i.mode=Q;case Q:if(t===A||t===S)break e;case V:if(i.last){h>>>=7&u,u-=7&u,i.mode=fe;break}for(;u<3;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}switch(i.last=1&h,h>>>=1,u-=1,3&h){case 0:i.mode=W;break;case 1:if(d(i),i.mode=te,t===S){h>>>=2,u-=2;break e}break;case 2:i.mode=Z;break;case 3:e.msg="invalid block type",i.mode=ce}h>>>=2,u-=2;break;case W:for(h>>>=7&u,u-=7&u;u<32;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}if((65535&h)!=(h>>>16^65535)){e.msg="invalid stored block lengths",i.mode=ce;break}if(i.length=65535&h,h=0,u=0,i.mode=X,t===S)break e;case X:i.mode=Y;case Y:if(k=i.length){if(k>f&&(k=f),k>l&&(k=l),0===k)break e;w.arraySet(r,n,s,k,o),f-=k,s+=k,l-=k,o+=k,i.length-=k;break}i.mode=Q;break;case Z:for(;u<14;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}if(i.nlen=257+(31&h),h>>>=5,u-=5,i.ndist=1+(31&h),h>>>=5,u-=5,i.ncode=4+(15&h),h>>>=4,u-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=ce;break}i.have=0,i.mode=$;case $:for(;i.have<i.ncode;){for(;u<3;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}i.lens[Ue[i.have++]]=7&h,h>>>=3,u-=3}for(;i.have<19;)i.lens[Ue[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,ze={bits:i.lenbits},ye=p(_,i.lens,0,19,i.lencode,0,i.work,ze),i.lenbits=ze.bits,ye){e.msg="invalid code lengths set",i.mode=ce;break}i.have=0,i.mode=ee;case ee:for(;i.have<i.nlen+i.ndist;){for(;Ae=i.lencode[h&(1<<i.lenbits)-1],ke=Ae>>>24,we=Ae>>>16&255,ve=65535&Ae,!(ke<=u);){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}if(ve<16)h>>>=ke,u-=ke,i.lens[i.have++]=ve;else{if(16===ve){for(Be=ke+2;u<Be;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}if(h>>>=ke,u-=ke,0===i.have){e.msg="invalid bit length repeat",i.mode=ce;break}_e=i.lens[i.have-1],k=3+(3&h),h>>>=2,u-=2}else if(17===ve){for(Be=ke+3;u<Be;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}h>>>=ke,u-=ke,_e=0,k=3+(7&h),h>>>=3,u-=3}else{for(Be=ke+7;u<Be;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}h>>>=ke,u-=ke,_e=0,k=11+(127&h),h>>>=7,u-=7}if(i.have+k>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=ce;break}for(;k--;)i.lens[i.have++]=_e}}if(i.mode===ce)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=ce;break}if(i.lenbits=9,ze={bits:i.lenbits},ye=p(y,i.lens,0,i.nlen,i.lencode,0,i.work,ze),i.lenbits=ze.bits,ye){e.msg="invalid literal/lengths set",i.mode=ce;break}if(i.distbits=6,i.distcode=i.distdyn,ze={bits:i.distbits},ye=p(z,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,ze),i.distbits=ze.bits,ye){e.msg="invalid distances set",i.mode=ce;break}if(i.mode=te,t===S)break e;case te:i.mode=ie;case ie:if(f>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=f,i.hold=h,i.bits=u,x(e,m),o=e.next_out,r=e.output,l=e.avail_out,s=e.next_in,n=e.input,f=e.avail_in,h=i.hold,u=i.bits,i.mode===Q&&(i.back=-1);break}for(i.back=0;Ae=i.lencode[h&(1<<i.lenbits)-1],ke=Ae>>>24,we=Ae>>>16&255,ve=65535&Ae,!(ke<=u);){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}if(we&&0==(240&we)){for(ge=ke,xe=we,pe=ve;Ae=i.lencode[pe+((h&(1<<ge+xe)-1)>>ge)],ke=Ae>>>24,we=Ae>>>16&255,ve=65535&Ae,!(ge+ke<=u);){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}h>>>=ge,u-=ge,i.back+=ge}if(h>>>=ke,u-=ke,i.back+=ke,i.length=ve,0===we){i.mode=oe;break}if(32&we){i.back=-1,i.mode=Q;break}if(64&we){e.msg="invalid literal/length code",i.mode=ce;break}i.extra=15&we,i.mode=ae;case ae:if(i.extra){for(Be=i.extra;u<Be;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}i.length+=h&(1<<i.extra)-1,h>>>=i.extra,u-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=ne;case ne:for(;Ae=i.distcode[h&(1<<i.distbits)-1],ke=Ae>>>24,we=Ae>>>16&255,ve=65535&Ae,!(ke<=u);){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}if(0==(240&we)){for(ge=ke,xe=we,pe=ve;Ae=i.distcode[pe+((h&(1<<ge+xe)-1)>>ge)],ke=Ae>>>24,we=Ae>>>16&255,ve=65535&Ae,!(ge+ke<=u);){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}h>>>=ge,u-=ge,i.back+=ge}if(h>>>=ke,u-=ke,i.back+=ke,64&we){e.msg="invalid distance code",i.mode=ce;break}i.offset=ve,i.extra=15&we,i.mode=re;case re:if(i.extra){for(Be=i.extra;u<Be;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}i.offset+=h&(1<<i.extra)-1,h>>>=i.extra,u-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=ce;break}i.mode=se;case se:if(0===l)break e;if(k=m-l,i.offset>k){if((k=i.offset-k)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=ce;break}k>i.wnext?(k-=i.wnext,be=i.wsize-k):be=i.wnext-k,k>i.length&&(k=i.length),me=i.window}else me=r,be=o-i.offset,k=i.length;k>l&&(k=l),l-=k,i.length-=k;do{r[o++]=me[be++]}while(--k);0===i.length&&(i.mode=ie);break;case oe:if(0===l)break e;r[o++]=i.length,l--,i.mode=ie;break;case fe:if(i.wrap){for(;u<32;){if(0===f)break e;f--,h|=n[s++]<<u,u+=8}if(m-=l,e.total_out+=m,i.total+=m,m&&(e.adler=i.check=i.flags?g(i.check,r,m,o-m):v(i.check,r,m,o-m)),m=l,(i.flags?h:a(h))!==i.check){e.msg="incorrect data check",i.mode=ce;break}h=0,u=0}i.mode=le;case le:if(i.wrap&&i.flags){for(;u<32;){if(0===f)break e;f--,h+=n[s++]<<u,u+=8}if(h!==(4294967295&i.total)){e.msg="incorrect length check",i.mode=ce;break}h=0,u=0}i.mode=de;case de:ye=j;break e;case ce:ye=q;break e;case he:return E;case ue:default:return I}return e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=f,i.hold=h,i.bits=u,(i.wsize||m!==e.avail_out&&i.mode<ce&&(i.mode<fe||t!==B))&&c(e,e.output,e.next_out,m-e.avail_out)?(i.mode=he,E):(b-=e.avail_in,m-=e.avail_out,e.total_in+=b,e.total_out+=m,i.total+=m,i.wrap&&m&&(e.adler=i.check=i.flags?g(i.check,r,m,e.next_out-m):v(i.check,r,m,e.next_out-m)),e.data_type=i.bits+(i.last?64:0)+(i.mode===Q?128:0)+(i.mode===te||i.mode===X?256:0),(0===b&&0===m||t===B)&&ye===U&&(ye=O),ye)}function u(e){if(!e||!e.state)return I;var t=e.state;return t.window&&(t.window=null),e.state=null,U}function b(e,t){var i;return e&&e.state?(i=e.state,0==(2&i.wrap)?I:(i.head=t,t.done=!1,U)):I}var m,k,w=e("../utils/common"),v=e("./adler32"),g=e("./crc32"),x=e("./inffast"),p=e("./inftrees"),_=0,y=1,z=2,B=4,A=5,S=6,U=0,j=1,C=2,I=-2,q=-3,E=-4,O=-5,R=8,T=1,N=2,D=3,F=4,G=5,H=6,K=7,L=8,M=9,P=10,J=11,Q=12,V=13,W=14,X=15,Y=16,Z=17,$=18,ee=19,te=20,ie=21,ae=22,ne=23,re=24,se=25,oe=26,fe=27,le=28,de=29,ce=30,he=31,ue=32,be=852,me=592,ke=15,we=!0;i.inflateReset=s,i.inflateReset2=o,i.inflateResetKeep=r,i.inflateInit=l,i.inflateInit2=f,i.inflate=h,i.inflateEnd=u,i.inflateGetHeader=b,i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":1,"./adler32":2,"./crc32":3,"./inffast":4,"./inftrees":6}],6:[function(e,t,i){"use strict";var a=e("../utils/common"),n=[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,0,0],r=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[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,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,i,f,l,d,c,h){var u,b,m,k,w,v,g,x,p,_=h.bits,y=0,z=0,B=0,A=0,S=0,U=0,j=0,C=0,I=0,q=0,E=null,O=0,R=new a.Buf16(16),T=new a.Buf16(16),N=null,D=0;for(y=0;y<=15;y++)R[y]=0;for(z=0;z<f;z++)R[t[i+z]]++;for(S=_,A=15;A>=1&&0===R[A];A--);if(S>A&&(S=A),0===A)return l[d++]=20971520,l[d++]=20971520,h.bits=1,0;for(B=1;B<A&&0===R[B];B++);for(S<B&&(S=B),C=1,y=1;y<=15;y++)if(C<<=1,(C-=R[y])<0)return-1;if(C>0&&(0===e||1!==A))return-1;for(T[1]=0,y=1;y<15;y++)T[y+1]=T[y]+R[y];for(z=0;z<f;z++)0!==t[i+z]&&(c[T[t[i+z]]++]=z);if(0===e?(E=N=c,v=19):1===e?(E=n,O-=257,N=r,D-=257,v=256):(E=s,N=o,v=-1),q=0,z=0,y=B,w=d,U=S,j=0,m=-1,I=1<<S,k=I-1,1===e&&I>852||2===e&&I>592)return 1;for(var F=0;;){F++,g=y-j,c[z]<v?(x=0,p=c[z]):c[z]>v?(x=N[D+c[z]],p=E[O+c[z]]):(x=96,p=0),u=1<<y-j,b=1<<U,B=b;do{b-=u,l[w+(q>>j)+b]=g<<24|x<<16|p|0}while(0!==b);for(u=1<<y-1;q&u;)u>>=1;if(0!==u?(q&=u-1,q+=u):q=0,z++,0==--R[y]){if(y===A)break;y=t[i+c[z]]}if(y>S&&(q&k)!==m){for(0===j&&(j=S),w+=B,U=y-j,C=1<<U;U+j<A&&!((C-=R[U+j])<=0);)U++,C<<=1;if(I+=1<<U,1===e&&I>852||2===e&&I>592)return 1;m=q&k,l[m]=S<<24|U<<16|w-d|0}}return 0!==q&&(l[w+q]=y-j<<24|64<<16|0),h.bits=S,0}},{"../utils/common":1}],7:[function(e,t,i){"use strict";function a(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}t.exports=a},{}],8:[function(e,t,i){var a=e("../node_modules/pako/lib/zlib/inflate.js"),n=e("../node_modules/pako/lib/zlib/zstream.js"),r=function(){this.strm=new n,this.chunkSize=102400,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,a.inflateInit(this.strm,this.windowBits)};r.prototype={inflate:function(e,t,i){return this.strm.input=e,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.next_out=0,i>this.chunkSize&&(this.chunkSize=i,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.avail_out=this.chunkSize,a.inflate(this.strm,t),new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)},reset:function(){a.inflateReset(this.strm)}},t.exports={Inflate:r}},{"../node_modules/pako/lib/zlib/inflate.js":5,"../node_modules/pako/lib/zlib/zstream.js":7}]},{},[8])(8)});