define((function(){"use strict";var e,r,t,n={};return n.toRGBA8=function(e){var r=e.width,t=e.height;if(null==e.tabs.acTL)return[n.toRGBA8.decodeImage(e.data,r,t,e).buffer];var a=[];null==e.frames[0].data&&(e.frames[0].data=e.data);for(var i=r*t*4,f=new Uint8Array(i),o=new Uint8Array(i),l=new Uint8Array(i),s=0;s>3)]>>7-((7&v)<<0)&1);l[m]=A[q],l[m+1]=A[q+1],l[m+2]=A[q+2],l[m+3]=R<_?U[R]:255}}if(2==u)for(H=0;H>2)]>>6-((3&v)<<1)&3);l[m]=A[q],l[m+1]=A[q+1],l[m+2]=A[q+2],l[m+3]=R<_?U[R]:255}if(4==u)for(H=0;H>1)]>>4-((1&v)<<2)&15);l[m]=A[q],l[m+1]=A[q+1],l[m+2]=A[q+2],l[m+3]=R<_?U[R]:255}if(8==u)for(v=0;v>>3)]>>>7-(7&D)&1))==255*b?0:255;s[N+D]=P<<24|T<<16|T<<8|T}else if(2==u)for(D=0;D>>2)]>>>6-((3&D)<<1)&3))==85*b?0:255;s[N+D]=P<<24|T<<16|T<<8|T}else if(4==u)for(D=0;D>>1)]>>>4-((1&D)<<2)&15))==17*b?0:255;s[N+D]=P<<24|T<<16|T<<8|T}else if(8==u)for(D=0;D>>2<<5));0==f;)if(f=p(e,v,1),o=p(e,v+1,2),v+=3,0!=o){if(_&&(r=t.H.W(r,h+(1<<17))),1==o&&(n=U.J,a=U.h,u=511,d=31),2==o){l=b(e,v,5)+257,s=b(e,v+5,5)+1,c=b(e,v+10,4)+4,v+=14;for(var H=1,I=0;I<38;I+=2)U.Q[I]=0,U.Q[I+1]=0;for(I=0;IH&&(H=M)}v+=3*c,y(U.Q,H),m(U.Q,H,U.u),n=U.w,a=U.d,v=w(U.u,(1<>>4;if(z>>>8==0)r[h++]=z;else{if(256==z)break;var x=h+z-254;if(z>264){var N=U.q[z-257];x=h+(N>>>3)+b(e,v,7&N),v+=7&N}var D=a[A(e,v)&d];v+=15&D;var P=D>>>4,B=U.c[P],C=(B>>>4)+p(e,v,15&B);for(v+=15&B;h>>3),L=e[S-4]|e[S-3]<<8;_&&(r=t.H.W(r,h+L)),r.set(new i(e.buffer,e.byteOffset+S,L),h),v=S+L<<3,h+=L}return r.length==h?r:r.slice(0,h)},t.H.W=function(e,r){var t=e.length;if(r<=t)return e;var n=new Uint8Array(t<<1);return n.set(e,0),n},t.H.R=function(e,r,n,a,i,f){for(var o=t.H.e,l=t.H.Z,s=0;s>>4;if(u<=15)f[s]=u,s++;else{var d=0,h=0;16==u?(h=3+o(a,i,2),i+=2,d=f[s-1]):17==u?(h=3+o(a,i,3),i+=3):18==u&&(h=11+o(a,i,7),i+=7);for(var v=s+h;s>>1;ia&&(a=o),i++}for(;i>1,l=e[f+1],s=o<<4|l,c=r-l,u=e[f]<>>15-r]=s,u++},t.H.l=function(e,r){for(var n=t.H.m.r,a=15-r,i=0;i>>a}},t.H.M=function(e,r,t){t<<=7&r;var n=r>>>3;e[n]|=t,e[n+1]|=t>>>8},t.H.I=function(e,r,t){t<<=7&r;var n=r>>>3;e[n]|=t,e[n+1]|=t>>>8,e[n+2]|=t>>>16},t.H.e=function(e,r,t){return(e[r>>>3]|e[1+(r>>>3)]<<8)>>>(7&r)&(1<>>3]|e[1+(r>>>3)]<<8|e[2+(r>>>3)]<<16)>>>(7&r)&(1<>>3]|e[1+(r>>>3)]<<8|e[2+(r>>>3)]<<16)>>>(7&r)},t.H.i=function(e,r){return(e[r>>>3]|e[1+(r>>>3)]<<8|e[2+(r>>>3)]<<16|e[3+(r>>>3)]<<24)>>>(7&r)},t.H.m=(e=Uint16Array,r=Uint32Array,{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[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,999,999,999],T:[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,0,0,0],q:new e(32),p:[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,65535,65535],z:[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,0,0],c:new r(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new r(286),Y:new r(30),a:new r(19),t:new r(15e3),k:new e(65536),g:new e(32768)}),function(){for(var e=t.H.m,r=0;r<32768;r++){var n=r;n=(4278255360&(n=(4042322160&(n=(3435973836&(n=(2863311530&n)>>>1|(1431655765&n)<<1))>>>2|(858993459&n)<<2))>>>4|(252645135&n)<<4))>>>8|(16711935&n)<<8,e.r[r]=(n>>>16|n<<16)>>>17}function a(e,r,t){for(;0!=r--;)e.push(0,t)}for(r=0;r<32;r++)e.q[r]=e.S[r]<<3|e.T[r],e.c[r]=e.p[r]<<4|e.z[r];a(e._,144,8),a(e._,112,9),a(e._,24,7),a(e._,8,8),t.H.n(e._,9),t.H.A(e._,9,e.J),t.H.l(e._,9),a(e.$,32,5),t.H.n(e.$,5),t.H.A(e.$,5,e.h),t.H.l(e.$,5),a(e.Q,19,0),a(e.C,286,0),a(e.D,30,0),a(e.v,320,0)}(),t.H.N),n.decode._readInterlace=function(e,r){for(var t=r.width,a=r.height,i=n.decode._getBPP(r),f=i>>3,o=Math.ceil(t*i/8),l=new Uint8Array(a*o),s=0,c=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],d=[8,8,8,4,4,2,2],h=[8,8,4,4,2,2,1],v=0;v<7;){for(var g=d[v],p=h[v],b=0,w=0,y=c[v];y>3])>>7-(7&I)&1,l[_*o+(H>>3)]|=M<<7-((7&H)<<0);if(2==i)M=(M=e[I>>3])>>6-(7&I)&3,l[_*o+(H>>2)]|=M<<6-((3&H)<<1);if(4==i)M=(M=e[I>>3])>>4-(7&I)&15,l[_*o+(H>>1)]|=M<<4-((1&H)<<2);if(i>=8)for(var q=_*o+H*f,R=0;R>3)+R];I+=i,H+=p}U++,_+=g}b*w!=0&&(s+=w*(1+A)),v+=1}return l},n.decode._getBPP=function(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth},n.decode._filterZero=function(e,r,t,a,i){var f=n.decode._getBPP(r),o=Math.ceil(a*f/8),l=n.decode._paeth;f=Math.ceil(f/8);var s=0,c=1,u=e[t],d=0;if(u>1&&(e[t]=[0,0,1][u-2]),3==u)for(d=f;d>>1)&255;for(var h=0;h>>1);for(;d>>1)}else{for(;d>8&255,e[r+1]=255&t},readUint:function(e,r){return 16777216*e[r]+(e[r+1]<<16|e[r+2]<<8|e[r+3])},writeUint:function(e,r,t){e[r]=t>>24&255,e[r+1]=t>>16&255,e[r+2]=t>>8&255,e[r+3]=255&t},readASCII:function(e,r,t){for(var n="",a=0;a=0&&o>=0?(u=h*r+v<<2,d=(o+h)*a+f+v<<2):(u=(-o+h)*r-f+v<<2,d=h*a+v<<2),0==l)n[d]=e[u],n[d+1]=e[u+1],n[d+2]=e[u+2],n[d+3]=e[u+3];else if(1==l){var g=e[u+3]*(1/255),p=e[u]*g,b=e[u+1]*g,w=e[u+2]*g,y=n[d+3]*(1/255),m=n[d]*y,A=n[d+1]*y,U=n[d+2]*y,_=1-g,H=g+y*_,I=0==H?0:1/H;n[d+3]=255*H,n[d+0]=(p+m*_)*I,n[d+1]=(b+A*_)*I,n[d+2]=(w+U*_)*I}else if(2==l){g=e[u+3],p=e[u],b=e[u+1],w=e[u+2],y=n[d+3],m=n[d],A=n[d+1],U=n[d+2];g==y&&p==m&&b==A&&w==U?(n[d]=0,n[d+1]=0,n[d+2]=0,n[d+3]=0):(n[d]=p,n[d+1]=b,n[d+2]=w,n[d+3]=g)}else if(3==l){g=e[u+3],p=e[u],b=e[u+1],w=e[u+2],y=n[d+3],m=n[d],A=n[d+1],U=n[d+2];if(g==y&&p==m&&b==A&&w==U)continue;if(g<220&&y>20)return!1}return!0},n.encode=function(e,r,t,a,i,f,o){null==a&&(a=0),null==o&&(o=!1);var l=n.encode.compress(e,r,t,a,[!1,!1,!1,0,o]);return n.encode.compressPNG(l,-1),n.encode._main(l,r,t,i,f)},n.encodeLL=function(e,r,t,a,i,f,o,l){for(var s={ctype:0+(1==a?0:2)+(0==i?0:4),depth:f,frames:[]},c=(a+i)*f,u=c*r,d=0;d1,d=!1,h=33+(u?20:0);if(null!=i.sRGB&&(h+=13),null!=i.pHYs&&(h+=21),3==e.ctype){for(var v=e.plte.length,g=0;g>>24!=255&&(d=!0);h+=8+3*v+4+(d?8+1*v+4:0)}for(var p=0;p>>8&255,_=m>>>16&255;b[c+y+0]=A,b[c+y+1]=U,b[c+y+2]=_}if(o(b,c+=3*v,f(b,c-3*v-4,3*v+4)),c+=4,d){o(b,c,v),s(b,c+=4,"tRNS"),c+=4;for(g=0;g>>24&255;o(b,c+=v,f(b,c-v-4,v+4)),c+=4}}var H=0;for(p=0;p>2,R>>2));for(v=0;vx&&D==z[b-x])N[b]=N[b-x];else{var P=m[D];if(null==P&&(m[D]=P=A.length,A.push(D),A.length>=300))break;N[b]=P}}}var B=A.length;B<=256&&0==c&&(d=B<=2?1:B<=4?2:B<=16?4:8,d=Math.max(d,s));for(v=0;v>1)]|=E[Y+k]<<4-4*(1&k);else if(2==d)for(k=0;k>2)]|=E[Y+k]<<6-2*(3&k);else if(1==d)for(k=0;k>3)]|=E[Y+k]<<7-1*(7&k)}S=Z,u=3,G=1}else if(0==w&&1==y.length){Z=new Uint8Array(x*C*3);var Q=x*C;for(b=0;bI&&(I=R),qM&&(M=q))}-1==I&&(_=H=I=M=0),i&&(1==(1&_)&&_--,1==(1&H)&&H--);var T=(I-_+1)*(M-H+1);Tb&&(b=A),Uw&&(w=U))}-1==b&&(g=p=b=w=0),o&&(1==(1&g)&&g--,1==(1&p)&&p--),f={x:g,y:p,width:b-g+1,height:w-p+1};var I=a[i];I.rect=f,I.blend=1,I.img=new Uint8Array(f.width*f.height*4),0==a[i-1].dispose?(n._copyTile(c,r,t,I.img,f.width,f.height,-f.x,-f.y,0),n.encode._prepareDiff(h,r,t,I.img,f)):n._copyTile(h,r,t,I.img,f.width,f.height,-f.x,-f.y,0)},n.encode._prepareDiff=function(e,r,t,a,i){n._copyTile(e,r,t,a,i.width,i.height,-i.x,-i.y,2)},n.encode._filterZero=function(e,r,t,a,i,f,o){var l,s=[],c=[0,1,2,3,4];-1!=f?c=[f]:(r*a>5e5||1==t)&&(c=[0]),o&&(l={level:0});for(var u=i.length>1e7&&null!=UZIP?UZIP:pako,d=0;d>1)+256&255;if(4==f)for(c=i;c>1)&255;for(c=i;c>1)&255}if(4==f){for(c=0;c>>1:t>>>=1;e[r]=t}return e}(),update:function(e,r,t,a){for(var i=0;i>>8;return e},crc:function(e,r,t){return 4294967295^n.crc.update(4294967295,e,r,t)}},n.quantize=function(e,r){var t,a=new Uint8Array(e),i=a.slice(0),f=new Uint32Array(i.buffer),o=n.quantize.getKDtree(i,r),l=o[0],s=o[1],c=n.quantize.planeDst,u=a,d=f,h=u.length,v=new Uint8Array(a.length>>2);if(a.length<2e7)for(var g=0;g>2]=t.ind,d[g>>2]=t.est.rgba}else for(g=0;g>2]=t.ind,d[g>>2]=t.est.rgba}return{abuf:i.buffer,inds:v,plte:s}},n.quantize.getKDtree=function(e,r,t){null==t&&(t=1e-4);var a=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=n.quantize.stats(e,i.i0,i.i1),i.est=n.quantize.estats(i.bst);for(var f=[i];f.lengtho&&(o=f[s].est.L,l=s);if(o=u||c.i1<=u)c.est.L=0;else{var d={i0:c.i0,i1:u,bst:null,est:null,tdst:0,left:null,right:null};d.bst=n.quantize.stats(e,d.i0,d.i1),d.est=n.quantize.estats(d.bst);var h={i0:u,i1:c.i1,bst:null,est:null,tdst:0,left:null,right:null};h.bst={R:[],m:[],N:c.bst.N-d.bst.N};for(s=0;s<16;s++)h.bst.R[s]=c.bst.R[s]-d.bst.R[s];for(s=0;s<4;s++)h.bst.m[s]=c.bst.m[s]-d.bst.m[s];h.est=n.quantize.estats(h.bst),c.left=d,c.right=h,f[l]=d,f.push(h)}}f.sort((function(e,r){return r.bst.N-e.bst.N}));for(s=0;s0&&(o=e.right,l=e.left);var s=n.quantize.getNearest(o,r,t,a,i);if(s.tdst<=f*f)return s;var c=n.quantize.getNearest(l,r,t,a,i);return c.tdstf;)a-=4;if(t>=a)break;var l=r[t>>2];r[t>>2]=r[a>>2],r[a>>2]=l,t+=4,a-=4}for(;o(e,t,i)>f;)t-=4;return t+4},n.quantize.vecDot=function(e,r,t){return e[r]*t[0]+e[r+1]*t[1]+e[r+2]*t[2]+e[r+3]*t[3]},n.quantize.stats=function(e,r,t){for(var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=[0,0,0,0],i=t-r>>2,f=r;f>>0}},n.M4={multVec:function(e,r){return[e[0]*r[0]+e[1]*r[1]+e[2]*r[2]+e[3]*r[3],e[4]*r[0]+e[5]*r[1]+e[6]*r[2]+e[7]*r[3],e[8]*r[0]+e[9]*r[1]+e[10]*r[2]+e[11]*r[3],e[12]*r[0]+e[13]*r[1]+e[14]*r[2]+e[15]*r[3]]},dot:function(e,r){return e[0]*r[0]+e[1]*r[1]+e[2]*r[2]+e[3]*r[3]},sml:function(e,r){return[e*r[0],e*r[1],e*r[2],e*r[3]]}},n.encode.concatRGBA=function(e){for(var r=0,t=0;t