2.chunk.js 6.4 KB

12
  1. webpackJsonp([2],{7:function(r,a){function n(r){function a(r){for(var a=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;64>n;n++){var o=b((a[n]*r+50)/100);1>o?o=1:o>255&&(o=255),C[I[n]]=o}for(var f=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],e=0;64>e;e++){var t=b((f[e]*r+50)/100);1>t?t=1:t>255&&(t=255),j[I[e]]=t}for(var v=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],i=0,u=0;8>u;u++)for(var c=0;8>c;c++)_[i]=1/(C[I[i]]*v[u]*v[c]*8),k[i]=1/(j[I[i]]*v[u]*v[c]*8),i++}function n(r,a){for(var n=0,o=0,f=new Array,e=1;16>=e;e++){for(var t=1;t<=r[e];t++)f[a[o]]=[],f[a[o]][0]=n,f[a[o]][1]=e,o++,n++;n*=2}return f}function o(){p=n(K,L),l=n(Q,R),D=n(O,P),T=n(V,W)}function f(){for(var r=1,a=2,n=1;15>=n;n++){for(var o=r;a>o;o++)J[32767+o]=n,x[32767+o]=[],x[32767+o][1]=n,x[32767+o][0]=o;for(var f=-(a-1);-r>=f;f++)J[32767+f]=n,x[32767+f]=[],x[32767+f][1]=n,x[32767+f][0]=a-1+f;r<<=1,a<<=1}}function e(){for(var r=0;256>r;r++)H[r]=19595*r,H[r+256>>0]=38470*r,H[r+512>>0]=7471*r+32768,H[r+768>>0]=-11059*r,H[r+1024>>0]=-21709*r,H[r+1280>>0]=32768*r+8421375,H[r+1536>>0]=-27439*r,H[r+1792>>0]=-5329*r}function t(r){for(var a=r[0],n=r[1]-1;n>=0;)a&1<<n&&(q|=1<<z),n--,z--,0>z&&(255==q?(v(255),v(0)):v(q),z=7,q=0)}function v(r){U.push(G[r])}function i(r){v(r>>8&255),v(255&r)}function u(r,a){var n,o,f,e,t,v,i,u,c,w=0;const y=8,A=64;for(c=0;y>c;++c){n=r[w],o=r[w+1],f=r[w+2],e=r[w+3],t=r[w+4],v=r[w+5],i=r[w+6],u=r[w+7];var h=n+u,d=n-u,g=o+i,s=o-i,m=f+v,p=f-v,l=e+t,D=e-t,T=h+l,M=h-l,b=g+m,C=g-m;r[w]=T+b,r[w+4]=T-b;var j=.707106781*(C+M);r[w+2]=M+j,r[w+6]=M-j,T=D+p,b=p+s,C=s+d;var _=.382683433*(T-C),k=.5411961*T+_,x=1.306562965*C+_,J=.707106781*b,S=d+J,U=d-J;r[w+5]=U+k,r[w+3]=U-k,r[w+1]=S+x,r[w+7]=S-x,w+=8}for(w=0,c=0;y>c;++c){n=r[w],o=r[w+8],f=r[w+16],e=r[w+24],t=r[w+32],v=r[w+40],i=r[w+48],u=r[w+56];var q=n+u,z=n-u,B=o+i,E=o-i,F=f+v,G=f-v,H=e+t,I=e-t,K=q+H,L=q-H,O=B+F,P=B-F;r[w]=K+O,r[w+32]=K-O;var Q=.707106781*(P+L);r[w+16]=L+Q,r[w+48]=L-Q,K=I+G,O=G+E,P=E+z;var R=.382683433*(K-P),V=.5411961*K+R,W=1.306562965*P+R,X=.707106781*O,Y=z+X,Z=z-X;r[w+40]=Z+V,r[w+24]=Z-V,r[w+8]=Y+W,r[w+56]=Y-W,w++}var $;for(c=0;A>c;++c)$=r[c]*a[c],N[c]=$>0?$+.5|0:$-.5|0;return N}function c(){i(65504),i(16),v(74),v(70),v(73),v(70),v(0),v(1),v(1),v(0),i(1),i(1),v(0),v(0)}function w(r,a){i(65472),i(17),v(8),i(a),i(r),v(3),v(1),v(17),v(0),v(2),v(17),v(1),v(3),v(17),v(1)}function y(){i(65499),i(132),v(0);for(var r=0;64>r;r++)v(C[r]);v(1);for(var a=0;64>a;a++)v(j[a])}function A(){i(65476),i(418),v(0);for(var r=0;16>r;r++)v(K[r+1]);for(var a=0;11>=a;a++)v(L[a]);v(16);for(var n=0;16>n;n++)v(O[n+1]);for(var o=0;161>=o;o++)v(P[o]);v(1);for(var f=0;16>f;f++)v(Q[f+1]);for(var e=0;11>=e;e++)v(R[e]);v(17);for(var t=0;16>t;t++)v(V[t+1]);for(var u=0;161>=u;u++)v(W[u])}function h(){i(65498),i(12),v(3),v(1),v(0),v(2),v(17),v(3),v(17),v(0),v(63),v(0)}function d(r,a,n,o,f){var e,v=f[0],i=f[240];const c=16,w=63,y=64;for(var A=u(r,a),h=0;y>h;++h)S[I[h]]=A[h];var d=S[0]-n;n=S[0],0==d?t(o[0]):(e=32767+d,t(o[J[e]]),t(x[e]));for(var g=63;g>0&&0==S[g];g--);if(0==g)return t(v),n;for(var s,m=1;g>=m;){for(var p=m;0==S[m]&&g>=m;++m);var l=m-p;if(l>=c){s=l>>4;for(var D=1;s>=D;++D)t(i);l=15&l}e=32767+S[m],t(f[(l<<4)+J[e]]),t(x[e]),m++}return g!=w&&t(v),n}function g(){for(var r=String.fromCharCode,a=0;256>a;a++)G[a]=r(a)}function s(r){if(0>=r&&(r=1),r>100&&(r=100),M!=r){var n=0;n=50>r?Math.floor(5e3/r):Math.floor(200-2*r),a(n),M=r}}function m(){var a=(new Date).getTime();r||(r=50),g(),o(),f(),e(),s(r);(new Date).getTime()-a}var p,l,D,T,M,b=(Math.round,Math.floor),C=new Array(64),j=new Array(64),_=new Array(64),k=new Array(64),x=new Array(65535),J=new Array(65535),N=new Array(64),S=new Array(64),U=[],q=0,z=7,B=new Array(64),E=new Array(64),F=new Array(64),G=new Array(256),H=new Array(2048),I=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],K=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],O=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Q=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],V=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],W=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];this.encode=function(r,a,n){var o=(new Date).getTime();a&&s(a),U=new Array,q=0,z=7,i(65496),c(),y(),w(r.width,r.height),A(),h();var f=0,e=0,v=0;q=0,z=7,this.encode.displayName="_encode_";for(var u,g,m,M,b,C,j,x,J,N=r.data,S=r.width,G=r.height,I=4*S,K=0;G>K;){for(u=0;I>u;){for(b=I*K+u,C=b,j=-1,x=0,J=0;64>J;J++)x=J>>3,j=4*(7&J),C=b+x*I+j,K+x>=G&&(C-=I*(K+1+x-G)),u+j>=I&&(C-=u+j-I+4),g=N[C++],m=N[C++],M=N[C++],B[J]=(H[g]+H[m+256>>0]+H[M+512>>0]>>16)-128,E[J]=(H[g+768>>0]+H[m+1024>>0]+H[M+1280>>0]>>16)-128,F[J]=(H[g+1280>>0]+H[m+1536>>0]+H[M+1792>>0]>>16)-128;f=d(B,_,f,p,D),e=d(E,k,e,l,T),v=d(F,k,v,l,T),u+=32}K+=8}if(z>=0){var L=[];L[1]=z+1,L[0]=(1<<z+1)-1,t(L)}if(i(65497),n){for(var O=U.length,P=new Uint8Array(O),Q=0;O>Q;Q++)P[Q]=U[Q].charCodeAt();U=[];(new Date).getTime()-o;return P}var R="data:image/jpeg;base64,"+btoa(U.join(""));U=[];(new Date).getTime()-o;return R},m()}r.exports=n}});
  2. //# sourceMappingURL=2.chunk.js.map