mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 23:25:53 -05:00
1 line
27 KiB
JavaScript
1 line
27 KiB
JavaScript
|
"undefined"==typeof ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-inflate.js"),function(){var B=11,E=29,z=852,C=592,i=z+C,T=0,y=1,M=2,K=[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],D=[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,203,69],F=[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],N=[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];function _(t,a){var i,s,o,l,b,e,v,p,n,d,r,h,c,f,u,_,m,k,g,w,Z,x,I=t.next,R=a==M?t.distbits:t.lenbits,L=t.work,B=t.lens,E=a==M?t.nlen:0,A=t.codes;i=a==y?t.nlen:a==M?t.ndist:19;var O=new Array(16),S=new Array(16);for(s=0;s<=15;s++)O[s]=0;for(o=0;o<i;o++)O[B[E+o]]++;for(e=R,b=15;1<=b&&0==O[b];b--);if(b<e&&(e=b),0==b)return _={op:64,bits:1,val:0},A[I++]=_,A[I++]=_,a==M?t.distbits=1:t.lenbits=1,t.next=I,0;for(l=1;l<b&&0==O[l];l++);for(e<l&&(e=l),s=n=1;s<=15;s++)if(n<<=1,(n-=O[s])<0)return-1;if(0<n&&(a==T||1!=b))return t.next=I,-1;for(S[1]=0,s=1;s<15;s++)S[s+1]=S[s]+O[s];for(o=0;o<i;o++)0!=B[E+o]&&(L[S[B[E+o]]++]=o);switch(a){case T:k=w=L,Z=g=0,x=19;break;case y:k=K,w=D,Z=g=-257,x=256;break;default:k=F,w=N,Z=g=0,x=-1}if(s=l,m=I,p=o=r=0,f=-1,u=(d=1<<(v=e))-1,a==y&&z<=d||a==M&&C<=d)return t.next=I,1;for(;;){for(_={op:0,bits:s-p,val:0},L[o]<x?_.val=L[o]:L[o]>x?(_.op=w[Z+L[o]],_.val=k[g+L[o]]):_.op=96,h=1<<s-p,l=c=1<<v;A[m+(r>>>p)+(c-=h)]=_,0!=c;);for(h=1<<s-1;r&h;)h>>>=1;if(0!=h?(r&=h-1,r+=h):r=0,o++,0==--O[s]){if(s==b)break;s=B[E+L[o]]}if(e<s&&(r&u)!=f){for(0==p&&(p=e),m+=l,n=1<<(v=s-p);v+p<b&&!((n-=O[v+p])<=0);)v++,n<<=1;if(d+=1<<v,a==y&&z<=d||a==M&&C<=d)return t.next=I,1;A[I+(f=r&u)]={op:v,bits:e,val:m-I}}}return 0!=r&&(A[m+r]={op:64,bits:s-p,val:0}),t.next=I+d,a==M?t.distbits=e:t.lenbits=e,0}function m(t,a){var i,s,o,l,b,e,v,p,n,d,r,h,c,f,u,_,m,k,g,w,Z,x,I=-1,R=-1;i=t.state,s=t.input_data,l=(o=t.next_in)+t.avail_in-5,e=(b=t.next_out)-(a-t.avail_out),v=b+(t.avail_out-257),p=i.wsize,n=i.whave,d=i.wnext,r=i.window,h=i.hold,c=i.bits,f=i.codes,u=i.lencode,_=i.distcode,m=(1<<i.lenbits)-1,k=(1<<i.distbits)-1;t:do{c<15&&(h+=(255&s.charCodeAt(o++))<<c,c+=8,h+=(255&s.charCodeAt(o++))<<c,c+=8),g=f[u+(h&m)];a:for(;;){if(h>>>=w=g.bits,c-=w,0==(w=g.op))t.output_data+=String.fromCharCode(g.val),b++;else{if(!(16&w)){if(0==(64&w)){g=f[u+(g.val+(h&(1<<w)-1))];continue a}if(32&w){i.mode=B;break t}t.msg="invalid literal/length code",i.mode=E;break t}Z=g.val,(w&=15)&&(c<w&&(h+=(255&s.charCodeAt(o++))<<c,c+=8),Z+=h&(1<<w)-1,h>>>=w,c-=w),c<15&&(h+=(255&s.charCodeAt(o++))<<c,c+=8,h+=(255&s.charCodeAt(o++))<<c,c+=8),g=f[_+(h&k)];i:for(;;){if(h>>>=w=g.bits,c-=w,!(16&(w=g.op))){if(0==(64&w)){g=f[_+(g.val+(h&(1<<w)-1))];continue i}t.msg="invalid distance code",i.mode=E;break t}if(x=g.val,c<(w&=15)&&(h+=(255&s.charCodeAt(o++))<<c,(c+=8)<w&&(h+=(255&s.charCodeAt(o++))<<c,c+=8)),x+=h&(1<<w)-1,h>>>=w,c-=w,(w=b-e)<x){if(n<(w=x-w)&&i.sane){t.msg="invalid distance too far back",i.mode=E;break t}R=-1,(I=0)==d?(I+=p-w,w<Z&&(Z-=w,t.output_data+=r.substring(I,I+w),b+=w,w=0,I=-1,R=b-x)):(I+=d-w,w<Z&&(Z-=w,t.output_data+=r.substring(I,I+w),I=-1,R=(b+=w)-x))}else I=-1,R=b-x;if(0<=I)t.output_data+=r.substring(I,I+Z),b+=Z,I+=Z;else{var L=Z;for(b-R<L&&(L=b-R),t.output_data+=t.output_data.substring(R,R+L),b+=L,R+=L,b+=Z-=L;2<Z;)t.output_data+=t.output_data.charAt(R++),t.output_data+=t.output_data.charAt(R++),t.output_data+=t.output_data.charAt(R++),Z-=3;Z&&(t.output_data+=t.output_data.charAt(R++),1<Z&&(t.output_data+=t.output_data.charAt(R++)))}break i}}break a}}while(o<l&&b<v);o-=Z=c>>>3,h&=(1<<(c-=Z<<3))-1,t.next_in=o,t.next_out=b,t.avail_in=o<l?l-o+5:5-(o-l),t.avail_out=b<v?v-b+257:257-(b-v),i.hold=h,i.bits=c}function s(t){var a,i=new Array(t);for(a=0;a<t;a++)i[a]=0;return i}function l(t,a,i){return t&&a in t?t[a]:i}function o(){return 0}function b(){var t;this.mode=0,this.last=0,this.wrap=0,this.havedict=0,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.wn
|