text: var t=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function e(){var t=this;function e(t,e){var i=0;do{i|=1&t,t>>>=1,i<<=1}while(--e>0);return i>>>1}t.build_tree=function(i){var n,r,a,o=t.dyn_tree,s=t.stat_desc.static_tree,l=t.stat_desc.elems,f=-1;for(i.heap_len=0,i.heap_max=573,n=0;n<l;n++)0!==o[2*n]?(i.heap[++i.heap_len]=f=n,i.depth[n]=0):o[2*n+1]=0;for(;i.heap_len<2;)o[2*(a=i.heap[++i.heap_len]=f<2?++f:0)]=1,i.depth[a]=0,i.opt_len--,s&&(i.static_len-=s[2*a+1]);for(t.max_code=f,n=Math.floor(i.heap_len/2);n>=1;n--)i.pqdownheap(o,n);a=l;do{n=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(o,1),r=i.heap[1],i.heap[--i.heap_max]=n,i.heap[--i.heap_max]=r,o[2*a]=o[2*n]+o[2*r],i.depth[a]=Math.max(i.depth[n],i.depth[r])+1,o[2*n+1]=o[2*r+1]=a,i.heap[1]=a++,i.pqdownheap(o,1)}while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1],function(e){var i,n,r,a,o,s,l=t.dyn_tree,f=t.stat_desc.static_tree,d=t.stat_desc.extra_bits,u=t.stat_desc.extra_base,c=t.stat_desc.max_length,_=0;for(a=0;a<=15;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,i=e.heap_max+1;i<573;i++)(a=l[2*l[2*(n=e.heap[i])+1]+1]+1)>c&&(a=c,_++),l[2*n+1]=a,n>t.max_code||(e.bl_count[a]++,o=0,n>=u&&(o=d[n-u]),e.opt_len+=(s=l[2*n])*(a+o),f&&(e.static_len+=s*(f[2*n+1]+o)));if(0!==_){do{for(a=c-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[c]--,_-=2}while(_>0);for(a=c;0!==a;a--)for(n=e.bl_count[a];0!==n;)(r=e.heap[--i])>t.max_code||(l[2*r+1]!=a&&(e.opt_len+=(a-l[2*r+1])*l[2*r],l[2*r+1]=a),n--)}}(i),function(t,i,n){var r,a,o,s=[],l=0;for(r=1;r<=15;r++)s[r]=l=l+n[r-1]<<1;for(a=0;a<=i;a++)0!==(o=t[2*a+1])&&(t[2*a]=e(s[o]++,o))}(o,t.max_code,i.bl_count)}}function i(t,e,i,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=n,this.max_length=r}function n(t,e,i,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=n,this.func=r}e._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],e.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],e.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],e.d_code=function(e){return e<256?t[e]:t[256+(e>>>7)]},e.extra_lbits=[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],e.extra_dbits=[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],e.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],e.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],i.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],i.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],i.static_l_desc=new i(i.static_ltree,e.extra_lbits,257,286,15),i.static_d_desc=new i(i.static_dtree,e.extra_dbits,0,30,15),i.static_bl_desc=new i(null,e.extra_blbits,0,19,7);var r=[new n(0,0,0,0,0),new n(4,4,8,4,1),new n(4,5,16,8,1),new n(4,6,32,32,1),new n(4,4,16,16,2),new n(8,16,32,32,2),new n(8,16,128,128,2),new n(8,32,128,256,2),new n(32,128,258,1024,2),new n(32,258,258,4096,2)],a=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function o(t,e,i,n){var r=t[2*e],a=t[2*i];return r<a||r==a&&n[e]<=n[i]}function s(){var t,n,s,l,f,d,u,c,_,h,p,w,b,x,v,m,g,y,k,U,z,E,D,A,S,R,F,T,W,M,B,I,C,L,P,Z,j,N,O,V,q,$=this,G=new e,H=new e,Y=new e;function J(){var t;for(t=0;t<286;t++)B[2*t]=0;for(t=0;t<30;t++)I[2*t]=0;for(t=0;t<19;t++)C[2*t]=0;B[512]=1,$.opt_len=$.static_len=0,Z=N=0}function K(t,e){var i,n,r=-1,a=t[1],o=0,s=7,l=4;for(0===a&&(s=138,l=3),t[2*(e+1)+1]=65535,i=0;i<=e;i++)n=a,a=t[2*(i+1)+1],++o<s&&n==a||(o<l?C[2*n]+=o:0!==n?(n!=r&&C[2*n]++,C[32]++):o<=10?C[34]++:C[36]++,o=0,r=n,0===a?(s=138,l=3):n==a?(s=6,l=3):(s=7,l=4))}function Q(t){$.pending_buf[$.pending++]=t}function X(t){Q(255&t),Q(t>>>8&255)}function tt(t,e){var i,n=e;q>16-n?(X(V|=(i=t)<<q&65535),V=i>>>16-q,q+=n-16):(V|=t<<q&65535,q+=n)}function et(t,e){var i=2*t;tt(65535&e[i],65535&e[i+1])}function it(t,e){var i,n,r=-1,a=t[1],o=0,s=7,l=4;for(0===a&&(s=138,l=3),i=0;i<=e;i++)if(n=a,a=t[2*(i+1)+1],!(++o<s&&n==a)){if(o<l)do{et(n,C)}while(0!=--o);else 0!==n?(n!=r&&(et(n,C),o--),et(16,C),tt(o-3,2)):o<=10?(et(17,C),tt(o-3,3)):(et(18,C),tt(o-11,7));o=0,r=n,0===a?(s=138,l=3):n==a?(s=6,l=3):(s=7,l=4)}}function nt(){16==q?(X(V),V=0,q=0):q>=8&&(Q(255&V),V>>>=8,q-=8)}function rt(t,i){var n,r,a;if($.pending_buf[j+2*Z]=t>>>8&255,$.pending_buf[j+2*Z+1]=255&t,$.pending_buf[L+Z]=255&i,Z++,0===t?B[2*i]++:(N++,t--,B[2*(e._length_code[i]+256+1)]++,I[2*e.d_code(t)]++),0==(8191&Z)&&F>2){for(n=8*Z,r=z-g,a=0;a<30;a++)n+=I[2*a]*(5+e.extra_dbits[a]);if(n>>>=3,N<Math.floor(Z/2)&&n<Math.floor(r/2))return!0}return Z==P-1}function at(t,i){var n,r,a,o,s=0;if(0!==Z)do{n=$.pending_buf[j+2*s]<<8&65280|255&$.pending_buf[j+2*s+1],r=255&$.pending_buf[L+s],s++,0===n?et(r,t):(et((a=e._length_code[r])+256+1,t),0!==(o=e.extra_lbits[a])&&tt(r-=e.base_length[a],o),n--,et(a=e.d_code(n),i),0!==(o=e.extra_dbits[a])&&tt(n-=e.base_dist[a],o))}while(s<Z);et(256,t),O=t[513]}function ot(){q>8?X(V):q>0&&Q(255&V),V=0,q=0}function st(t,e,i){tt(0+(i?1:0),3),function(t,e,i){ot(),O=8,X(e),X(~e),$.pending_buf.set(c.subarray(t,t+e),$.pending),$.pending+=e}(t,e)}function lt(n){(function(t,n,r){var a,o,s=0;F>0?(G.build_tree($),H.build_tree($),s=function(){var t;for(K(B,G.max_code),K(I,H.max_code),Y.build_tree($),t=18;t>=3&&0===C[2*e.bl_order[t]+1];t--);return $.opt_len+=3*(t+1)+5+5+4,t}(),(o=$.static_len+3+7>>>3)<=(a=$.opt_len+3+7>>>3)&&(a=o)):a=o=n+5,n+4<=a&&-1!=t?st(t,n,r):o==a?(tt(2+(r?1:0),3),at(i.static_ltree,i.static_dtree)):(tt(4+(r?1:0),3),function(t,i,n){var r;for(tt(t-257,5),tt(i-1,5),tt(n-4,4),r=0;r<n;r++)tt(C[2*e.bl_order[r]+1],3);it(B,t-1),it(I,i-1)}(G.max_code+1,H.max_code+1,s+1),at(B,I)),J(),r&&ot()})(g>=0?g:-1,z-g,n),g=z,t.flush_pending()}function ft(){var e,i,n,r;do{if(0==(r=_-D-z)&&0===z&&0===D)r=f;else if(-1==r)r--;else if(z>=f+f-262){c.set(c.subarray(f,f+f),0),E-=f,z-=f,g-=f,n=e=b;do{i=65535&p[--n],p[n]=i>=f?i-f:0}while(0!=--e);n=e=f;do{i=65535&h[--n],h[n]=i>=f?i-f:0}while(0!=--e);r+=f}if(0===t.avail_in)return;e=t.read_buf(c,z+D,r),(D+=e)>=3&&(w=((w=255&c[z])<<m^255&c[z+1])&v)}while(D<262&&0!==t.avail_in)}function dt(t){var e,i,n=S,r=z,a=A,o=z>f-262?z-(f-262):0,s=M,l=u,d=z+258,_=c[r+a-1],p=c[r+a];A>=W&&(n>>=2),s>D&&(s=D);do{if(c[(e=t)+a]==p&&c[e+a-1]==_&&c[e]==c[r]&&c[++e]==c[r+1]){r+=2,e++;do{}while(c[++r]==c[++e]&&c[++r]==c[++e]&&c[++r]==c[++e]&&c[++r]==c[++e]&&c[++r]==c[++e]&&c[++r]==c[++e]&&c[++r]==c[++e]&&c[++r]==c[++e]&&r<d);if(i=258-(d-r),r=d-258,i>a){if(E=t,a=i,i>=s)break;_=c[r+a-1],p=c[r+a]}}}while((t=65535&h[t&l])>o&&0!=--n);return a<=D?a:D}$.depth=[],$.bl_count=[],$.heap=[],B=[],I=[],C=[],$.pqdownheap=function(t,e){for(var i=$.heap,n=i[e],r=e<<1;r<=$.heap_len&&(r<$.heap_len&&o(t,i[r+1],i[r],$.depth)&&r++,!o(t,n,i[r],$.depth));)i[e]=i[r],e=r,r<<=1;i[e]=n},$.deflateInit=function(t,e,a,o,k,E){return o||(o=8),k||(k=8),E||(E=0),t.msg=null,-1==e&&(e=6),k<1||k>9||8!=o||a<9||a>15||e<0||e>9||E<0||E>2?-2:(t.dstate=$,u=(f=1<<(d=a))-1,v=(b=1<<(x=k+7))-1,m=Math.floor((x+3-1)/3),c=new Uint8Array(2*f),h=[],p=[],P=1<<k+6,$.pending_buf=new Uint8Array(4*P),s=4*P,j=Math.floor(P/2),L=3*P,F=e,T=E,function(t){return t.total_in=t.total_out=0,t.msg=null,$.pending=0,$.pending_out=0,n=113,l=0,G.dyn_tree=B,G.stat_desc=i.static_l_desc,H.dyn_tree=I,H.stat_desc=i.static_d_desc,Y.dyn_tree=C,Y.stat_desc=i.static_bl_desc,V=0,q=0,O=8,J(),function(){var t;for(_=2*f,p[b-1]=0,t=0;t<b-1;t++)p[t]=0;R=r[F].max_lazy,W=r[F].good_length,M=r[F].nice_length,S=r[F].max_chain,z=0,g=0,D=0,y=A=2,U=0,w=0}(),0}(t))},$.deflateEnd=function(){return 42!=n&&113!=n&&666!=n?-2:($.pending_buf=null,p=null,h=null,c=null,$.dstate=null,113==n?-3:0)},$.deflateParams=function(t,e,i){var n=0;return-1==e&&(e=6),e<0||e>9||i<0||i>2?-2:(r[F].func!=r[e].func&&0!==t.total_in&&(n=t.deflate(1)),F!=e&&(R=r[F=e].max_lazy,W=r[F].good_length,M=r[F].nice_length,S=r[F].max_chain),T=i,n)},$.deflateSetDictionary=function(t,e,i){var r,a=i,o=0;if(!e||42!=n)return-2;if(a<3)return 0;for(a>f-262&&(o=i-(a=f-262)),c.set(e.subarray(o,o+a),0),z=a,g=a,w=((w=255&c[0])<<m^255&c[1])&v,r=0;r<=a-3;r++)h[r&u]=p[w=(w<<m^255&c[r+2])&v],p[w]=r;return 0},$.deflate=function(e,o){var _,x,S,W,M,B;if(o>4||o<0)return-2;if(!e.next_out||!e.next_in&&0!==e.avail_in||666==n&&4!=o)return e.msg=a[4],-2;if(0===e.avail_out)return e.msg=a[7],-5;if(t=e,W=l,l=o,42==n&&(x=8+(d-8<<4)<<8,(S=(F-1&255)>>1)>3&&(S=3),x|=S<<6,0!==z&&(x|=32),n=113,Q((B=x+=31-x%31)>>8&255),Q(255&B)),0!==$.pending){if(t.flush_pending(),0===t.avail_out)return l=-1,0}else if(0===t.avail_in&&o<=W&&4!=o)return t.msg=a[7],-5;if(666==n&&0!==t.avail_in)return e.msg=a[7],-5;if(0!==t.avail_in||0!==D||0!=o&&666!=n){switch(M=-1,r[F].func){case 0:M=function(e){var i,n=65535;for(n>s-5&&(n=s-5);;){if(D<=1){if(ft(),0===D&&0==e)return 0;if(0===D)break}if(z+=D,D=0,i=g+n,(0===z||z>=i)&&(D=z-i,z=i,lt(!1),0===t.avail_out))return 0;if(z-g>=f-262&&(lt(!1),0===t.avail_out))return 0}return lt(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(o);break;case 1:M=function(e){for(var i,n=0;;){if(D<262){if(ft(),D<262&&0==e)return 0;if(0===D)break}if(D>=3&&(n=65535&p[w=(w<<m^255&c[z+2])&v],h[z&u]=p[w],p[w]=z),0!==n&&(z-n&65535)<=f-262&&2!=T&&(y=dt(n)),y>=3)if(i=rt(z-E,y-3),D-=y,y<=R&&D>=3){y--;do{z++,n=65535&p[w=(w<<m^255&c[z+2])&v],h[z&u]=p[w],p[w]=z}while(0!=--y);z++}else z+=y,y=0,w=((w=255&c[z])<<m^255&c[z+1])&v;else i=rt(0,255&c[z]),D--,z++;if(i&&(lt(!1),0===t.avail_out))return 0}return lt(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(o);break;case 2:M=function(e){for(var i,n,r=0;;){if(D<262){if(ft(),D<262&&0==e)return 0;if(0===D)break}if(D>=3&&(r=65535&p[w=(w<<m^255&c[z+2])&v],h[z&u]=p[w],p[w]=z),A=y,k=E,y=2,0!==r&&A<R&&(z-r&65535)<=f-262&&(2!=T&&(y=dt(r)),y<=5&&(1==T||3==y&&z-E>4096)&&(y=2)),A>=3&&y<=A){n=z+D-3,i=rt(z-1-k,A-3),D-=A-1,A-=2;do{++z<=n&&(r=65535&p[w=(w<<m^255&c[z+2])&v],h[z&u]=p[w],p[w]=z)}while(0!=--A);if(U=0,y=2,z++,i&&(lt(!1),0===t.avail_out))return 0}else if(0!==U){if((i=rt(0,255&c[z-1]))&&lt(!1),z++,D--,0===t.avail_out)return 0}else U=1,z++,D--}return 0!==U&&(i=rt(0,255&c[z-1]),U=0),lt(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(o)}if(2!=M&&3!=M||(n=666),0==M||2==M)return 0===t.avail_out&&(l=-1),0;if(1==M){if(1==o)tt(2,3),et(256,i.static_ltree),nt(),1+O+10-q<9&&(tt(2,3),et(256,i.static_ltree),nt()),O=7;else if(st(0,0,!1),3==o)for(_=0;_<b;_++)p[_]=0;if(t.flush_pending(),0===t.avail_out)return l=-1,0}}return 4!=o?0:1}}function l(){this.next_in_index=0,this.next_out_index=0,this.avail_in=0,this.total_in=0,this.avail_out=0,this.total_out=0}function f(t){var e=new l,i=new Uint8Array(512),n=t?t.level:-1;void 0===n&&(n=-1),e.deflateInit(n),e.next_out=i,this.append=function(t,n){var r,a=[],o=0,s=0,l=0;if(t.length){e.next_in_index=0,e.next_in=t,e.avail_in=t.length;do{if(e.next_out_index=0,e.avail_out=512,0!=e.deflate(0))throw new Error("deflating: "+e.msg);e.next_out_index&&a.push(512==e.next_out_index?new Uint8Array(i):new Uint8Array(i.subarray(0,e.next_out_index))),l+=e.next_out_index,n&&e.next_in_index>0&&e.next_in_index!=o&&(n(e.next_in_index),o=e.next_in_index)}while(e.avail_in>0||0===e.avail_out);return r=new Uint8Array(l),a.forEach(function(t){r.set(t,s),s+=t.length}),r}},this.flush=function(){var t,n,r=[],a=0,o=0;do{if(e.next_out_index=0,e.avail_out=512,1!=(t=e.deflate(4))&&0!=t)throw new Error("deflating: "+e.msg);512-e.avail_out>0&&r.push(new Uint8Array(i.subarray(0,e.next_out_index))),o+=e.next_out_index}while(e.avail_in>0||0===e.avail_out);return e.deflateEnd(),n=new Uint8Array(o),r.forEach(function(t){n.set(t,a),a+=t.length}),n}}l.prototype={deflateInit:function(t,e){return this.dstate=new s,e||(e=15),this.dstate.deflateInit(this,t,e)},deflate:function(t){return this.dstate?this.dstate.deflate(this,t):-2},deflateEnd:function(){if(!this.dstate)return-2;var t=this.dstate.deflateEnd();return this.dstate=null,t},deflateParams:function(t,e){return this.dstate?this.dstate.deflateParams(this,t,e):-2},deflateSetDictionary:function(t,e){return this.dstate?this.dstate.deflateSetDictionary(this,t,e):-2},read_buf:function(t,e,i){var n=this.avail_in;return n>i&&(n=i),0===n?0:(this.avail_in-=n,t.set(this.next_in.subarray(this.next_in_index,this.next_in_index+n),e),this.next_in_index+=n,this.total_in+=n,n)},flush_pending:function(){var t=this.dstate.pending;t>this.avail_out&&(t=this.avail_out),0!==t&&(this.next_out.set(this.dstate.pending_buf.subarray(this.dstate.pending_out,this.dstate.pending_out+t),this.next_out_index),this.next_out_index+=t,this.dstate.pending_out+=t,this.total_out+=t,this.avail_out-=t,this.dstate.pending-=t,0===this.dstate.pending&&(this.dstate.pending_out=0))}},self._zipjs_Deflater=f;var d=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],u=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],c=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],_=[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],h=[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,112,112],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],w=[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];function b(){var t,e,i,n,r,a;function o(t,e,o,s,l,f,d,u,c,_,h){var p,w,b,x,v,m,g,y,k,U,z,E,D,A,S;U=0,v=o;do{i[t[e+U]]++,U++,v--}while(0!==v);if(i[0]==o)return d[0]=-1,u[0]=0,0;for(y=u[0],m=1;m<=15&&0===i[m];m++);for(g=m,y<m&&(y=m),v=15;0!==v&&0===i[v];v--);for(b=v,y>v&&(y=v),u[0]=y,A=1<<m;m<v;m++,A<<=1)if((A-=i[m])<0)return-3;if((A-=i[v])<0)return-3;for(i[v]+=A,a[1]=m=0,U=1,D=2;0!=--v;)a[D]=m+=i[U],D++,U++;v=0,U=0;do{0!==(m=t[e+U])&&(h[a[m]++]=v),U++}while(++v<o);for(o=a[b],a[0]=v=0,U=0,x=-1,E=-y,r[0]=0,z=0,S=0;g<=b;g++)for(p=i[g];0!=p--;){for(;g>E+y;){if(x++,S=(S=b-(E+=y))>y?y:S,(w=1<<(m=g-E))>p+1&&(w-=p+1,D=g,m<S))for(;++m<S&&!((w<<=1)<=i[++D]);)w-=i[D];if(_[0]+(S=1<<m)>1440)return-3;r[x]=z=_[0],_[0]+=S,0!==x?(a[x]=v,n[0]=m,n[1]=y,n[2]=z-r[x-1]-(m=v>>>E-y),c.set(n,3*(r[x-1]+m))):d[0]=z}for(n[1]=g-E,U>=o?n[0]=192:h[U]<s?(n[0]=h[U]<256?0:96,n[2]=h[U++]):(n[0]=f[h[U]-s]+16+64,n[2]=l[h[U++]-s]),w=1<<g-E,m=v>>>E;m<S;m+=w)c.set(n,3*(z+m));for(m=1<<g-1;0!=(v&m);m>>>=1)v^=m;for(v^=m,k=(1<<E)-1;(v&k)!=a[x];)x--,k=(1<<(E-=y))-1}return 0!==A&&1!=b?-5:0}function s(o){var s;for(t||(t=[],e=[],i=new Int32Array(16),n=[],r=new Int32Array(15),a=new Int32Array(16)),e.length<o&&(e=[]),s=0;s<o;s++)e[s]=0;for(s=0;s<16;s++)i[s]=0;for(s=0;s<3;s++)n[s]=0;r.set(i.subarray(0,15),0),a.set(i.subarray(0,16),0)}this.inflate_trees_bits=function(i,n,r,a,l){var f;return s(19),t[0]=0,-3==(f=o(i,0,19,19,null,null,r,n,a,t,e))?l.msg="oversubscribed dynamic bit lengths tree":-5!=f&&0!==n[0]||(l.msg="incomplete dynamic bit lengths tree",f=-3),f},this.inflate_trees_dynamic=function(i,n,r,a,l,f,d,u,c){var b;return s(288),t[0]=0,0!=(b=o(r,0,i,257,_,h,f,a,u,t,e))||0===a[0]?(-3==b?c.msg="oversubscribed literal/length tree":-4!=b&&(c.msg="incomplete literal/length tree",b=-3),b):(s(288),0!=(b=o(r,i,n,0,p,w,d,l,u,t,e))||0===l[0]&&i>257?(-3==b?c.msg="oversubscribed distance tree":-5==b?(c.msg="incomplete distance tree",b=-3):-4!=b&&(c.msg="empty distance tree with lengths",b=-3),b):0)}}function x(){var t,e,i,n,r=0,a=0,o=0,s=0,l=0,f=0,u=0,c=0,_=0,h=0;function p(t,e,i,n,r,a,o,s){var l,f,u,c,_,h,p,w,b,x,v,m,g,y,k,U;p=s.next_in_index,w=s.avail_in,_=o.bitb,h=o.bitk,x=(b=o.write)<o.read?o.read-b-1:o.end-b,v=d[t],m=d[e];do{for(;h<20;)w--,_|=(255&s.read_byte(p++))<<h,h+=8;if(0!==(c=(f=i)[U=3*((u=n)+(l=_&v))]))for(;;){if(_>>=f[U+1],h-=f[U+1],0!=(16&c)){for(g=f[U+2]+(_&d[c&=15]),_>>=c,h-=c;h<15;)w--,_|=(255&s.read_byte(p++))<<h,h+=8;for(c=(f=r)[U=3*((u=a)+(l=_&m))];;){if(_>>=f[U+1],h-=f[U+1],0!=(16&c)){for(c&=15;h<c;)w--,_|=(255&s.read_byte(p++))<<h,h+=8;if(y=f[U+2]+(_&d[c]),_>>=c,h-=c,x-=g,b>=y)b-(k=b-y)>0&&2>b-k?(o.window[b++]=o.window[k++],o.window[b++]=o.window[k++],g-=2):(o.window.set(o.window.subarray(k,k+2),b),b+=2,k+=2,g-=2);else{k=b-y;do{k+=o.end}while(k<0);if(g>(c=o.end-k)){if(g-=c,b-k>0&&c>b-k)do{o.window[b++]=o.window[k++]}while(0!=--c);else o.window.set(o.window.subarray(k,k+c),b),b+=c,k+=c,c=0;k=0}}if(b-k>0&&g>b-k)do{o.window[b++]=o.window[k++]}while(0!=--g);else o.window.set(o.window.subarray(k,k+g),b),b+=g,k+=g,g=0;break}if(0!=(64&c))return s.msg="invalid distance code",w+=g=h>>3<(g=s.avail_in-w)?h>>3:g,p-=g,h-=g<<3,o.bitb=_,o.bitk=h,s.avail_in=w,s.total_in+=p-s.next_in_index,s.next_in_index=p,o.write=b,-3;l+=f[U+2],c=f[U=3*(u+(l+=_&d[c]))]}break}if(0!=(64&c))return 0!=(32&c)?(w+=g=h>>3<(g=s.avail_in-w)?h>>3:g,p-=g,h-=g<<3,o.bitb=_,o.bitk=h,s.avail_in=w,s.total_in+=p-s.next_in_index,s.next_in_index=p,o.write=b,1):(s.msg="invalid literal/length code",w+=g=h>>3<(g=s.avail_in-w)?h>>3:g,p-=g,h-=g<<3,o.bitb=_,o.bitk=h,s.avail_in=w,s.total_in+=p-s.next_in_index,s.next_in_index=p,o.write=b,-3);if(l+=f[U+2],0===(c=f[U=3*(u+(l+=_&d[c]))])){_>>=f[U+1],h-=f[U+1],o.window[b++]=f[U+2],x--;break}}else _>>=f[U+1],h-=f[U+1],o.window[b++]=f[U+2],x--}while(x>=258&&w>=10);return w+=g=h>>3<(g=s.avail_in-w)?h>>3:g,p-=g,h-=g<<3,o.bitb=_,o.bitk=h,s.avail_in=w,s.total_in+=p-s.next_in_index,s.next_in_index=p,o.write=b,0}this.init=function(r,a,o,s,l,f){t=0,u=r,c=a,i=o,_=s,n=l,h=f,e=null},this.proc=function(w,b,x){var v,m,g,y,k,U,z,E=0,D=0,A=0;for(A=b.next_in_index,y=b.avail_in,E=w.bitb,D=w.bitk,U=(k=w.write)<w.read?w.read-k-1:w.end-k;;)switch(t){case 0:if(U>=258&&y>=10&&(w.bitb=E,w.bitk=D,b.avail_in=y,b.total_in+=A-b.next_in_index,b.next_in_index=A,w.write=k,x=p(u,c,i,_,n,h,w,b),A=b.next_in_index,y=b.avail_in,E=w.bitb,D=w.bitk,U=(k=w.write)<w.read?w.read-k-1:w.end-k,0!=x)){t=1==x?7:9;break}o=u,e=i,a=_,t=1;case 1:for(v=o;D<v;){if(0===y)return w.bitb=E,w.bitk=D,b.avail_in=y,b.total_in+=A-b.next_in_index,b.next_in_index=A,w.write=k,w.inflate_flush(b,x);x=0,y--,E|=(255&b.read_byte(A++))<<D,D+=8}if(E>>>=e[1+(m=3*(a+(E&d[v])))],D-=e[m+1],0===(g=e[m])){s=e[m+2],t=6;break}if(0!=(16&g)){l=15&g,r=e[m+2],t=2;break}if(0==(64&g)){o=g,a=m/3+e[m+2];break}if(0!=(32&g)){t=7;break}return t=9,b.msg="invalid literal/length code",x=-3,w.bitb=E,w.bitk=D,b.avail_in=y,b.total_in+=A-b.next_in_index,b.next_in_index=A,w.write=k,w.inflate_flush(b,x);case 2:for(v=l;D<v;){if(0===y)return w.bitb=E,w.bitk=D,b.avail_in=y,b.total_in+=A-b.next_in_index,b.next_in_index=A,w.write=k,w.inflate_flush(b,x);x=0,y--,E|=(255&b.read_byte(A++))<<D,D+=8}r+=E&d[v],E>>=v,D-=v,o=c,e=n,a=h,t=3;case 3:for(v=o;D<v;){if(0===y)return w.bitb=E,w.bitk=D,b.avail_in=y,b.total_in+=A-b.next_in_index,b.next_in_index=A,w.write=k,w.inflate_flush(b,x);x=0,y--,E|=(255&b.read_byte(A++))<<D,D+=8}if(E>>=e[1+(m=3*(a+(E&d[v])))],D-=e[m+1],0!=(16&(g=e[m]))){l=15&g,f=e[m+2],t=4;break}if(0==(64&g)){o=g,a=m/3+e[m+2];break}return t=9,b.msg="invalid distance code",x=-3,w.bitb=E,w.bitk=D,b.avail_in=y,b.total_in+=A-b.next_in_index,b.next_in_index=A,w.write=k,w.inflate_flush(b,x);case 4:for(v=l;D<v;){if(0===y)return w.bitb=E,w.bitk=D,b.avail_in=y,b.total_in+=A-b.next_in_index,b.next_in_index=A,w.write=k,w.inflate_flush(b,x);x=0,y--,E|=(255&b.read_byte(A++))<<D,D+=8}f+=E&d[v],E>>=v,D-=v,t=5;case 5:for(z=k-f;z<0;)z+=w.end;for(;0!==r;){if(0===U&&(k==w.end&&0!==w.read&&(U=(k=0)<w.read?w.read-k-1:w.end-k),0===U&&(w.write=k,x=w.inflate_flush(b,x),U=(k=w.write)<w.read?w.read-k-1:w.end-k,k==w.end&&0!==w.read&&(U=(k=0)<w.read?w.read-k-1:w.end-k),0===U)))return w.bitb=E,w.bitk=D,b.avail_in=y,b.total_in+=A-b.next_in_index,b.next_in_index=A,w.write=k,w.inflate_flush(b,x);w.window[k++]=w.window[z++],U--,z==w.end&&(z=0),r--}t=0;break;case 6:if(0===U&&(k==w.end&&0!==w.read&&(U=(k=0)<w.read?w.read-k-1:w.end-k),0===U&&(w.write=k,x=w.inflate_flush(b,x),U=(k=w.write)<w.read?w.read-k-1:w.end-k,k==w.end&&0!==w.read&&(U=(k=0)<w.read?w.read-k-1:w.end-k),0===U)))return w.bitb=E,w.bitk=D,b.avail_in=y,b.total_in+=A-b.next_in_index,b.next_in_index=A,w.write=k,w.inflate_flush(b,x);x=0,w.window[k++]=s,U--,t=0;break;case 7:if(D>7&&(D-=8,y++,A--),w.write=k,x=w.inflate_flush(b,x),U=(k=w.write)<w.read?w.read-k-1:w.end-k,w.read!=w.write)return w.bitb=E,w.bitk=D,b.avail_in=y,b.total_in+=A-b.next_in_index,b.next_in_index=A,w.write=k,w.inflate_flush(b,x);t=8;case 8:return x=1,w.bitb=E,w.bitk=D,b.avail_in=y,b.total_in+=A-b.next_in_index,b.next_in_index=A,w.write=k,w.inflate_flush(b,x);case 9:return x=-3,w.bitb=E,w.bitk=D,b.avail_in=y,b.total_in+=A-b.next_in_index,b.next_in_index=A,w.write=k,w.inflate_flush(b,x);default:return x=-2,w.bitb=E,w.bitk=D,b.avail_in=y,b.total_in+=A-b.next_in_index,b.next_in_index=A,w.write=k,w.inflate_flush(b,x)}},this.free=function(){}}b.inflate_trees_fixed=function(t,e,i,n){return t[0]=9,e[0]=5,i[0]=u,n[0]=c,0};var v=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function m(t,e){var i,n=this,r=0,a=0,o=0,s=0,l=[0],f=[0],u=new x,c=0,_=new Int32Array(4320),h=new b;n.bitk=0,n.bitb=0,n.window=new Uint8Array(e),n.end=e,n.read=0,n.write=0,n.reset=function(t,e){e&&(e[0]=0),6==r&&u.free(t),r=0,n.bitk=0,n.bitb=0,n.read=n.write=0},n.reset(t,null),n.inflate_flush=function(t,e){var i,r,a;return r=t.next_out_index,(i=((a=n.read)<=n.write?n.write:n.end)-a)>t.avail_out&&(i=t.avail_out),0!==i&&-5==e&&(e=0),t.avail_out-=i,t.total_out+=i,t.next_out.set(n.window.subarray(a,a+i),r),r+=i,(a+=i)==n.end&&(a=0,n.write==n.end&&(n.write=0),(i=n.write-a)>t.avail_out&&(i=t.avail_out),0!==i&&-5==e&&(e=0),t.avail_out-=i,t.total_out+=i,t.next_out.set(n.window.subarray(a,a+i),r),r+=i,a+=i),t.next_out_index=r,n.read=a,e},n.proc=function(t,e){var p,w,x,m,g,y,k,U;for(m=t.next_in_index,g=t.avail_in,w=n.bitb,x=n.bitk,k=(y=n.write)<n.read?n.read-y-1:n.end-y;;)switch(r){case 0:for(;x<3;){if(0===g)return n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);e=0,g--,w|=(255&t.read_byte(m++))<<x,x+=8}switch(c=1&(p=7&w),p>>>1){case 0:w>>>=3,w>>>=p=7&(x-=3),x-=p,r=1;break;case 1:var z=[],E=[],D=[[]],A=[[]];b.inflate_trees_fixed(z,E,D,A),u.init(z[0],E[0],D[0],0,A[0],0),w>>>=3,x-=3,r=6;break;case 2:w>>>=3,x-=3,r=3;break;case 3:return w>>>=3,x-=3,r=9,t.msg="invalid block type",e=-3,n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e)}break;case 1:for(;x<32;){if(0===g)return n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);e=0,g--,w|=(255&t.read_byte(m++))<<x,x+=8}if((~w>>>16&65535)!=(65535&w))return r=9,t.msg="invalid stored block lengths",e=-3,n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);a=65535&w,w=x=0,r=0!==a?2:0!==c?7:0;break;case 2:if(0===g)return n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);if(0===k&&(y==n.end&&0!==n.read&&(k=(y=0)<n.read?n.read-y-1:n.end-y),0===k&&(n.write=y,e=n.inflate_flush(t,e),k=(y=n.write)<n.read?n.read-y-1:n.end-y,y==n.end&&0!==n.read&&(k=(y=0)<n.read?n.read-y-1:n.end-y),0===k)))return n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);if(e=0,(p=a)>g&&(p=g),p>k&&(p=k),n.window.set(t.read_buf(m,p),y),m+=p,g-=p,y+=p,k-=p,0!=(a-=p))break;r=0!==c?7:0;break;case 3:for(;x<14;){if(0===g)return n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);e=0,g--,w|=(255&t.read_byte(m++))<<x,x+=8}if(o=p=16383&w,(31&p)>29||(p>>5&31)>29)return r=9,t.msg="too many length or distance symbols",e=-3,n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);if(p=258+(31&p)+(p>>5&31),!i||i.length<p)i=[];else for(U=0;U<p;U++)i[U]=0;w>>>=14,x-=14,s=0,r=4;case 4:for(;s<4+(o>>>10);){for(;x<3;){if(0===g)return n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);e=0,g--,w|=(255&t.read_byte(m++))<<x,x+=8}i[v[s++]]=7&w,w>>>=3,x-=3}for(;s<19;)i[v[s++]]=0;if(l[0]=7,0!=(p=h.inflate_trees_bits(i,l,f,_,t)))return-3==(e=p)&&(i=null,r=9),n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);s=0,r=5;case 5:for(;!(s>=258+(31&(p=o))+(p>>5&31));){var S,R;for(p=l[0];x<p;){if(0===g)return n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);e=0,g--,w|=(255&t.read_byte(m++))<<x,x+=8}if((R=_[3*(f[0]+(w&d[p=_[3*(f[0]+(w&d[p]))+1]]))+2])<16)w>>>=p,x-=p,i[s++]=R;else{for(U=18==R?7:R-14,S=18==R?11:3;x<p+U;){if(0===g)return n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);e=0,g--,w|=(255&t.read_byte(m++))<<x,x+=8}if(x-=p,S+=(w>>>=p)&d[U],w>>>=U,x-=U,(U=s)+S>258+(31&(p=o))+(p>>5&31)||16==R&&U<1)return i=null,r=9,t.msg="invalid bit length repeat",e=-3,n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);R=16==R?i[U-1]:0;do{i[U++]=R}while(0!=--S);s=U}}f[0]=-1;var F=[],T=[],W=[],M=[];if(F[0]=9,T[0]=6,0!=(p=h.inflate_trees_dynamic(257+(31&(p=o)),1+(p>>5&31),i,F,T,W,M,_,t)))return-3==p&&(i=null,r=9),e=p,n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);u.init(F[0],T[0],_,W[0],_,M[0]),r=6;case 6:if(n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,1!=(e=u.proc(n,t,e)))return n.inflate_flush(t,e);if(e=0,u.free(t),m=t.next_in_index,g=t.avail_in,w=n.bitb,x=n.bitk,k=(y=n.write)<n.read?n.read-y-1:n.end-y,0===c){r=0;break}r=7;case 7:if(n.write=y,e=n.inflate_flush(t,e),k=(y=n.write)<n.read?n.read-y-1:n.end-y,n.read!=n.write)return n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);r=8;case 8:return e=1,n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);case 9:return e=-3,n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e);default:return e=-2,n.bitb=w,n.bitk=x,t.avail_in=g,t.total_in+=m-t.next_in_index,t.next_in_index=m,n.write=y,n.inflate_flush(t,e)}},n.free=function(t){n.reset(t,null),n.window=null,_=null},n.set_dictionary=function(t,e,i){n.window.set(t.subarray(e,e+i),0),n.read=n.write=i},n.sync_point=function(){return 1==r?1:0}}var g=[0,0,255,255];function y(){var t=this;function e(t){return t&&t.istate?(t.total_in=t.total_out=0,t.msg=null,t.istate.mode=7,t.istate.blocks.reset(t,null),0):-2}t.mode=0,t.method=0,t.was=[0],t.need=0,t.marker=0,t.wbits=0,t.inflateEnd=function(e){return t.blocks&&t.blocks.free(e),t.blocks=null,0},t.inflateInit=function(i,n){return i.msg=null,t.blocks=null,n<8||n>15?(t.inflateEnd(i),-2):(t.wbits=n,i.istate.blocks=new m(i,1<<n),e(i),0)},t.inflate=function(t,e){var i,n;if(!t||!t.istate||!t.next_in)return-2;for(e=4==e?-5:0,i=-5;;)switch(t.istate.mode){case 0:if(0===t.avail_in)return i;if(i=e,t.avail_in--,t.total_in++,8!=(15&(t.istate.method=t.read_byte(t.next_in_index++)))){t.istate.mode=13,t.msg="unknown compression method",t.istate.marker=5;break}if(8+(t.istate.method>>4)>t.istate.wbits){t.istate.mode=13,t.msg="invalid window size",t.istate.marker=5;break}t.istate.mode=1;case 1:if(0===t.avail_in)return i;if(i=e,t.avail_in--,t.total_in++,n=255&t.read_byte(t.next_in_index++),((t.istate.method<<8)+n)%31!=0){t.istate.mode=13,t.msg="incorrect header check",t.istate.marker=5;break}if(0==(32&n)){t.istate.mode=7;break}t.istate.mode=2;case 2:if(0===t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need=(255&t.read_byte(t.next_in_index++))<<24&4278190080,t.istate.mode=3;case 3:if(0===t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.read_byte(t.next_in_index++))<<16&16711680,t.istate.mode=4;case 4:if(0===t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.read_byte(t.next_in_index++))<<8&65280,t.istate.mode=5;case 5:return 0===t.avail_in?i:(i=e,t.avail_in--,t.total_in++,t.istate.need+=255&t.read_byte(t.next_in_index++),t.istate.mode=6,2);case 6:return t.istate.mode=13,t.msg="need dictionary",t.istate.marker=0,-2;case 7:if(-3==(i=t.istate.blocks.proc(t,i))){t.istate.mode=13,t.istate.marker=0;break}if(0==i&&(i=e),1!=i)return i;i=e,t.istate.blocks.reset(t,t.istate.was),t.istate.mode=12;case 12:return 1;case 13:return-3;default:return-2}},t.inflateSetDictionary=function(t,e,i){var n=0,r=i;return t&&t.istate&&6==t.istate.mode?(r>=1<<t.istate.wbits&&(n=i-(r=(1<<t.istate.wbits)-1)),t.istate.blocks.set_dictionary(e,n,r),t.istate.mode=7,0):-2},t.inflateSync=function(t){var i,n,r,a,o;if(!t||!t.istate)return-2;if(13!=t.istate.mode&&(t.istate.mode=13,t.istate.marker=0),0===(i=t.avail_in))return-5;for(n=t.next_in_index,r=t.istate.marker;0!==i&&r<4;)t.read_byte(n)==g[r]?r++:r=0!==t.read_byte(n)?0:4-r,n++,i--;return t.total_in+=n-t.next_in_index,t.next_in_index=n,t.avail_in=i,t.istate.marker=r,4!=r?-3:(a=t.total_in,o=t.total_out,e(t),t.total_in=a,t.total_out=o,t.istate.mode=7,0)},t.inflateSyncPoint=function(t){return t&&t.istate&&t.istate.blocks?t.istate.blocks.sync_point():-2}}function k(){}function U(){var t=new k,e=new Uint8Array(512),i=!1;t.inflateInit(),t.next_out=e,this.append=function(n,r){var a,o,s=[],l=0,f=0,d=0;if(0!==n.length){t.next_in_index=0,t.next_in=n,t.avail_in=n.length;do{if(t.next_out_index=0,t.avail_out=512,0!==t.avail_in||i||(t.next_in_index=0,i=!0),a=t.inflate(0),i&&-5===a){if(0!==t.avail_in)throw new Error("inflating: bad input")}else if(0!==a&&1!==a)throw new Error("inflating: "+t.msg);if((i||1===a)&&t.avail_in===n.length)throw new Error("inflating: bad input");t.next_out_index&&s.push(512===t.next_out_index?new Uint8Array(e):new Uint8Array(e.subarray(0,t.next_out_index))),d+=t.next_out_index,r&&t.next_in_index>0&&t.next_in_index!=l&&(r(t.next_in_index),l=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return o=new Uint8Array(d),s.forEach(function(t){o.set(t,f),f+=t.length}),o}},this.flush=function(){t.inflateEnd()}}k.prototype={inflateInit:function(t){return this.istate=new y,t||(t=15),this.istate.inflateInit(this,t)},inflate:function(t){return this.istate?this.istate.inflate(this,t):-2},inflateEnd:function(){if(!this.istate)return-2;var t=this.istate.inflateEnd(this);return this.istate=null,t},inflateSync:function(){return this.istate?this.istate.inflateSync(this):-2},inflateSetDictionary:function(t,e){return this.istate?this.istate.inflateSetDictionary(this,t,e):-2},read_byte:function(t){return this.next_in.subarray(t,t+1)[0]},read_buf:function(t,e){return this.next_in.subarray(t,t+e)}},self._zipjs_Inflater=U;var z,E="File format is not recognized.",D="Error while reading zip file.";try{z=0===new Blob([new DataView(new ArrayBuffer(0))]).size}catch(t){}function A(){this.crc=-1}function S(){}function R(t,e){var i,n;return i=new ArrayBuffer(t),n=new Uint8Array(i),e&&n.set(e,0),{buffer:i,array:n,view:new DataView(i)}}function F(){}function T(t){var e,i=this;i.size=0,i.init=function(n,r){var a=new Blob([t],{type:"text/plain"});(e=new M(a)).init(function(){i.size=e.size,n()},r)},i.readUint8Array=function(t,i,n,r){e.readUint8Array(t,i,n,r)}}function W(t){var e,i=this;i.size=0,i.init=function(n){for(var r=t.length;"="==t.charAt(r-1);)r--;e=t.indexOf(",")+1,i.size=Math.floor(.75*(r-e)),n()},i.readUint8Array=function(i,n,r){var a,o=R(n),s=4*Math.floor(i/3),l=4*Math.ceil((i+n)/3),f=self.atob(t.substring(s+e,l+e)),d=i-3*Math.floor(s/4);for(a=d;a<d+n;a++)o.array[a-d]=f.charCodeAt(a);r(o.array)}}function M(t){var e=this;e.size=0,e.init=function(i){e.size=t.size,i()},e.readUint8Array=function(e,i,n,r){var a=new FileReader;a.onload=function(t){n(new Uint8Array(t.target.result))},a.onerror=r;try{a.readAsArrayBuffer(function(t,e,i){if(e<0||i<0||e+i>t.size)throw new RangeError("offset:"+e+", length:"+i+", size:"+t.size);return t.slice?t.slice(e,e+i):t.webkitSlice?t.webkitSlice(e,e+i):t.mozSlice?t.mozSlice(e,e+i):t.msSlice?t.msSlice(e,e+i):void 0}(t,e,i))}catch(t){r(t)}}}function B(){}function I(t){var e;this.init=function(t){e=new Blob([],{type:"text/plain"}),t()},this.writeUint8Array=function(t,i){e=new Blob([e,z?t:t.buffer],{type:"text/plain"}),i()},this.getData=function(i,n){var r=new FileReader;r.onload=function(t){i(t.target.result)},r.onerror=n,r.readAsText(e,t)}}function C(t){var e="",i="";this.init=function(i){e+="data:"+(t||"")+";base64,",i()},this.writeUint8Array=function(t,n){var r,a=i.length,o=i;for(i="",r=0;r<3*Math.floor((a+t.length)/3)-a;r++)o+=String.fromCharCode(t[r]);for(;r<t.length;r++)i+=String.fromCharCode(t[r]);o.length>2?e+=self.btoa(o):i=o,n()},this.getData=function(t){t(e+self.btoa(i))}}function L(t){var e;this.init=function(i){e=new Blob([],{type:t}),i()},this.writeUint8Array=function(i,n){e=new Blob([e,z?i:i.buffer],{type:t}),n()},this.getData=function(t){t(e)}}function P(t,e,i,n,r,a,o,s,l,f){var d,u,c,_=0,h=e.sn;function p(){t.removeEventListener("message",w,!1),s(u,c)}function w(e){var i=e.data,r=i.data,s=i.error;if(s)return s.toString=function(){return"Error: "+this.message},void l(s);if(i.sn===h)switch("number"==typeof i.codecTime&&(t.codecTime+=i.codecTime),"number"==typeof i.crcTime&&(t.crcTime+=i.crcTime),i.type){case"append":r?(u+=r.length,n.writeUint8Array(r,function(){b()},f)):b();break;case"flush":c=i.crc,r?(u+=r.length,n.writeUint8Array(r,function(){p()},f)):p();break;case"progress":o&&o(d+i.loaded,a);break;case"importScripts":case"newTask":case"echo":break;default:console.warn("zip.js:launchWorkerProcess: unknown message: ",i)}}function b(){(d=524288*_)<=a?i.readUint8Array(r+d,Math.min(524288,a-d),function(i){o&&o(d,a);var n=0===d?e:{sn:h};n.type="append",n.data=i;try{t.postMessage(n,[i.buffer])}catch(e){t.postMessage(n)}_++},l):t.postMessage({sn:h,type:"flush"})}u=0,t.addEventListener("message",w,!1),b()}function Z(t,e,i,n,r,a,o,s,l,f){var d,u=0,c=0,_="input"===a,h="output"===a,p=new A;!function a(){var w;if((d=524288*u)<r)e.readUint8Array(n+d,Math.min(524288,r-d),function(e){var n;try{n=t.append(e,function(t){o&&o(d+t,r)})}catch(t){return void l(t)}n?(c+=n.length,i.writeUint8Array(n,function(){u++,setTimeout(a,1)},f),h&&p.append(n)):(u++,setTimeout(a,1)),_&&p.append(e),o&&o(d,r)},l);else{try{w=t.flush()}catch(t){return void l(t)}w?(h&&p.append(w),c+=w.length,i.writeUint8Array(w,function(){s(c,p.get())},f)):s(c,p.get())}}()}function j(t,e,i,n,r,a,o,s,l,f,d){K.useWebWorkers&&o?P(t,{sn:e,codecClass:"_zipjs_NOOP",crcType:"input"},i,n,r,a,l,s,f,d):Z(new S,i,n,r,a,"input",l,s,f,d)}function N(t){var e,i,n="",r=["Ç","ü","é","â","ä","à","å","ç","ê","ë","è","ï","î","ì","Ä","Å","É","æ","Æ","ô","ö","ò","û","ù","ÿ","Ö","Ü","ø","£","Ø","×","ƒ","á","í","ó","ú","ñ","Ñ","ª","º","¿","®","¬","½","¼","¡","«","»","_","_","_","¦","¦","Á","Â","À","©","¦","¦","+","+","¢","¥","+","+","-","-","+","-","+","ã","Ã","+","+","-","-","¦","-","+","¤","ð","Ð","Ê","Ë","È","i","Í","Î","Ï","+","+","_","_","¦","Ì","_","Ó","ß","Ô","Ò","õ","Õ","µ","þ","Þ","Ú","Û","Ù","ý","Ý","¯","´","­","±","_","¾","¶","§","÷","¸","°","¨","·","¹","³","²","_"," "];for(e=0;e<t.length;e++)n+=(i=255&t.charCodeAt(e))>127?r[i-128]:String.fromCharCode(i);return n}function O(t){return decodeURIComponent(escape(t))}function V(t){var e,i="";for(e=0;e<t.length;e++)i+=String.fromCharCode(t[e]);return i}function q(t,e,i,n,r){t.version=e.view.getUint16(i,!0),t.bitFlag=e.view.getUint16(i+2,!0),t.compressionMethod=e.view.getUint16(i+4,!0),t.lastModDateRaw=e.view.getUint32(i+6,!0),t.lastModDate=function(t){var e=(4294901760&t)>>16,i=65535&t;try{return new Date(1980+((65024&e)>>9),((480&e)>>5)-1,31&e,(63488&i)>>11,(2016&i)>>5,2*(31&i),0)}catch(t){}}(t.lastModDateRaw),1!=(1&t.bitFlag)?((n||8!=(8&t.bitFlag))&&(t.crc32=e.view.getUint32(i+10,!0),t.compressedSize=e.view.getUint32(i+14,!0),t.uncompressedSize=e.view.getUint32(i+18,!0)),4294967295!==t.compressedSize&&4294967295!==t.uncompressedSize?(t.filenameLength=e.view.getUint16(i+22,!0),t.extraFieldLength=e.view.getUint16(i+24,!0)):r("File is using Zip64 (4gb+ file size).")):r("File contains encrypted entry.")}function $(t){return unescape(encodeURIComponent(t))}function G(t){var e,i=[];for(e=0;e<t.length;e++)i.push(t.charCodeAt(e));return i}A.prototype.append=function(t){for(var e=0|this.crc,i=this.table,n=0,r=0|t.length;n<r;n++)e=e>>>8^i[255&(e^t[n])];this.crc=e},A.prototype.get=function(){return~this.crc},A.prototype.table=function(){var t,e,i,n=[];for(t=0;t<256;t++){for(i=t,e=0;e<8;e++)1&i?i=i>>>1^3988292384:i>>>=1;n[t]=i}return n}(),S.prototype.append=function(t,e){return t},S.prototype.flush=function(){},(T.prototype=new F).constructor=T,(W.prototype=new F).constructor=W,(M.prototype=new F).constructor=M,B.prototype.getData=function(t){t(this.data)},(I.prototype=new B).constructor=I,(C.prototype=new B).constructor=C,(L.prototype=new B).constructor=L;var H={deflater:["z-worker.js","deflate.js"],inflater:["z-worker.js","inflate.js"]};function Y(t,e,i){if(null===K.workerScripts||null===K.workerScriptsPath){var n,r,a;if(K.workerScripts){if(n=K.workerScripts[t],!Array.isArray(n))return void i(new Error("zip.workerScripts."+t+" is not an array!"));r=n,a=document.createElement("a"),n=r.map(function(t){return a.href=t,a.href})}else(n=H[t].slice(0))[0]=(K.workerScriptsPath||"")+n[0];var o=new Worker(n[0]);o.codecTime=o.crcTime=0,o.postMessage({type:"importScripts",scripts:n.slice(1)}),o.addEventListener("message",function t(n){var r=n.data;if(r.error)return o.terminate(),void i(r.error);"importScripts"===r.type&&(o.removeEventListener("message",t),o.removeEventListener("error",s),e(o))}),o.addEventListener("error",s)}else i(new Error("Either zip.workerScripts or zip.workerScriptsPath may be set, not both."));function s(t){o.terminate(),i(t)}}function J(t){console.error(t)}const K={Reader:F,Writer:B,BlobReader:M,Data64URIReader:W,TextReader:T,BlobWriter:L,Data64URIWriter:C,TextWriter:I,createReader:function(t,e,i){t.init(function(){!function(t,e,i){var n=0;function r(){}r.prototype.getData=function(e,r,a,o){var s=this;function l(t,n){o&&!function(t){var e=R(4);return e.view.setUint32(0,t),s.crc32==e.view.getUint32(0)}(n)?i("CRC failed."):e.getData(function(t){r(t)})}function f(t){i(t||"Error while reading file data.")}function d(t){i(t||"Error while writing file data.")}t.readUint8Array(s.offset,30,function(r){var u,c=R(r.length,r);1347093252==c.view.getUint32(0)?(q(s,c,4,!1,i),u=s.offset+30+s.filenameLength+s.extraFieldLength,e.init(function(){0===s.compressionMethod?j(s._worker,n++,t,e,u,s.compressedSize,o,l,a,f,d):function(t,e,i,n,r,a,o,s,l,f,d){var u=o?"output":"none";K.useWebWorkers?P(t,{sn:e,codecClass:"_zipjs_Inflater",crcType:u},i,n,r,a,l,s,f,d):Z(new U,i,n,r,a,u,l,s,f,d)}(s._worker,n++,t,e,u,s.compressedSize,o,l,a,f,d)},d)):i(E)},f)};var a={getEntries:function(e){var n=this._worker;!function(e){function n(n,r){t.readUint8Array(t.size-n,n,function(t){for(var i=t.length-22;i>=0;i--)if(80===t[i]&&75===t[i+1]&&5===t[i+2]&&6===t[i+3])return void e(new DataView(t.buffer,i,22));r()},function(){i(D)})}t.size<22?i(E):n(22,function(){n(Math.min(65558,t.size),function(){i(E)})})}(function(a){var o,s;o=a.getUint32(16,!0),s=a.getUint16(8,!0),o<0||o>=t.size?i(E):t.readUint8Array(o,t.size-o,function(t){var a,o,l,f,d=0,u=[],c=R(t.length,t);for(a=0;a<s;a++){if((o=new r)._worker=n,1347092738!=c.view.getUint32(d))return void i(E);q(o,c,d+6,!0,i),o.commentLength=c.view.getUint16(d+32,!0),o.directory=16==(16&c.view.getUint8(d+38)),o.offset=c.view.getUint32(d+42,!0),l=V(c.array.subarray(d+46,d+46+o.filenameLength)),o.filename=2048==(2048&o.bitFlag)?O(l):N(l),o.directory||"/"!=o.filename.charAt(o.filename.length-1)||(o.directory=!0),f=V(c.array.subarray(d+46+o.filenameLength+o.extraFieldLength,d+46+o.filenameLength+o.extraFieldLength+o.commentLength)),o.comment=2048==(2048&o.bitFlag)?O(f):N(f),u.push(o),d+=46+o.filenameLength+o.extraFieldLength+o.commentLength}e(u)},function(){i(D)})})},close:function(t){this._worker&&(this._worker.terminate(),this._worker=null),t&&t()},_worker:null};K.useWebWorkers?Y("inflater",function(t){a._worker=t,e(a)},function(t){i(t)}):e(a)}(t,e,i)},i=i||J)},createWriter:function(t,e,i,n){n=!!n,t.init(function(){!function(t,e,i,n){var r={},a=[],o=0,s=0;function l(t){i(t||"Error while writing zip file.")}function d(t){i(t||"Error while reading file data.")}var u={add:function(e,u,c,_,h){var p,w,b,x=this._worker;function v(e,i){var n=R(16);o+=e||0,n.view.setUint32(0,1347094280),void 0!==i&&(p.view.setUint32(10,i,!0),n.view.setUint32(4,i,!0)),u&&(n.view.setUint32(8,e,!0),p.view.setUint32(14,e,!0),n.view.setUint32(12,u.size,!0),p.view.setUint32(18,u.size,!0)),t.writeUint8Array(n.array,function(){o+=16,c()},l)}function m(){var c;h=h||{},e=e.trim(),h.directory&&"/"!=e.charAt(e.length-1)&&(e+="/"),r.hasOwnProperty(e)?i("File already exists."):(w=G($(e)),a.push(e),b=h.lastModDate||new Date,p=R(26),r[e]={headerArray:p.array,directory:h.directory,filename:w,offset:o,comment:G($(h.comment||""))},p.view.setUint32(0,335546376),h.version&&p.view.setUint8(0,h.version),n||0===h.level||h.directory||p.view.setUint16(4,2048),p.view.setUint16(6,(b.getHours()<<6|b.getMinutes())<<5|b.getSeconds()/2,!0),p.view.setUint16(8,(b.getFullYear()-1980<<4|b.getMonth()+1)<<5|b.getDate(),!0),p.view.setUint16(22,w.length,!0),(c=R(30+w.length)).view.setUint32(0,1347093252),c.array.set(p.array,4),c.array.set(w,30),o+=c.array.length,t.writeUint8Array(c.array,function(){u?n||0===h.level?j(x,s++,u,t,0,u.size,!0,v,_,d,l):function(t,e,i,n,r,a,o,s,l){K.useWebWorkers?P(t,{sn:e,options:{level:r},codecClass:"_zipjs_Deflater",crcType:"input"},i,n,0,i.size,o,a,s,l):Z(new f,i,n,0,i.size,"input",o,a,s,l)}(x,s++,u,t,h.level,v,_,d,l):v()},l))}u?u.init(m,d):m()},close:function(e){this._worker&&(this._worker.terminate(),this._worker=null);var i,n,s,f=0,d=0;for(n=0;n<a.length;n++)f+=46+(s=r[a[n]]).filename.length+s.comment.length;for(i=R(f+22),n=0;n<a.length;n++)s=r[a[n]],i.view.setUint32(d,1347092738),i.view.setUint16(d+4,5120),i.array.set(s.headerArray,d+6),i.view.setUint16(d+32,s.comment.length,!0),s.directory&&i.view.setUint8(d+38,16),i.view.setUint32(d+42,s.offset,!0),i.array.set(s.filename,d+46),i.array.set(s.comment,d+46+s.filename.length),d+=46+s.filename.length+s.comment.length;i.view.setUint32(d,1347093766),i.view.setUint16(d+8,a.length,!0),i.view.setUint16(d+10,a.length,!0),i.view.setUint32(d+12,f,!0),i.view.setUint32(d+16,o,!0),t.writeUint8Array(i.array,function(){t.getData(e)},l)},_worker:null};K.useWebWorkers?Y("deflater",function(t){u._worker=t,e(u)},function(t){i(t)}):e(u)}(t,e,i,n)},i=i||J)},useWebWorkers:!0,workerScriptsPath:null,workerScripts:null};var Q,X,tt=K.TextWriter,et=K.BlobWriter,it=K.Data64URIWriter,nt=K.TextReader,rt=K.BlobReader,at=K.Data64URIReader,ot=K.createReader,st=K.createWriter;function lt(t){var e,i=this;i.size=0,i.init=function(e){i.size=t.uncompressedSize,e()},i.readUint8Array=function(n,r,a,o){!function(n){i.data?n():t.getData(new et,function(t){i.data=t,e=new rt(t),n()},null,i.checkCrc32)}(function(){e.readUint8Array(n,r,a,o)})}}function ft(t){var e=0;return function t(i){e+=i.uncompressedSize||0,i.children.forEach(t)}(t),e}function dt(t,e,i){var n=0;function r(){++n<t.children.length?a(t.children[n]):e()}function a(t){t.directory?dt(t,r,i):(t.reader=new t.Reader(t.data,i),t.reader.init(function(){t.uncompressedSize=t.reader.size,r()}))}t.children.length?a(t.children[n]):e()}function ut(t){var e=t.parent.children;e.forEach(function(i,n){i.id==t.id&&e.splice(n,1)})}function ct(t){t.entries=[],t.root=new wt(t)}function _t(t,e,i,n){if(t.directory)return n?new wt(t.fs,e,i,t):new pt(t.fs,e,i,t);throw"Parent entry is not a directory."}function ht(){}function pt(t,e,i,n){ht.prototype.init.call(this,t,e,i,n),this.Reader=i.Reader,this.Writer=i.Writer,this.data=i.data,i.getData&&(this.getData=i.getData)}function wt(t,e,i,n){ht.prototype.init.call(this,t,e,i,n),this.directory=!0}function bt(){ct(this)}(lt.prototype=new(0,K.Reader)).constructor=lt,lt.prototype.checkCrc32=!1,(ht.prototype={init:function(t,e,i,n){if(t.root&&n&&n.getChildByName(e))throw"Entry filename already exists.";i||(i={}),this.fs=t,this.name=e,this.id=t.entries.length,this.parent=n,this.children=[],this.zipVersion=i.zipVersion||20,this.uncompressedSize=0,t.entries.push(this),n&&this.parent.children.push(this)},getFileEntry:function(t,e,i,n,r){var a=this;dt(a,function(){!function(t,e,i,n,r,a,o){var s=0;e.directory?function t(e,i,n,r,a,l){var f=0;!function d(){var u=i.children[f];u?function(i){function n(e){s+=i.uncompressedSize||0,t(e,i,function(){f++,d()},r,a,l)}i.directory?e.getDirectory(i.name,{create:!0},n,a):e.getFile(i.name,{create:!0},function(t){i.getData(new K.FileWriter(t,K.getMimeType(i.name)),n,function(t){r&&r(s+t,l)},o)},a)}(u):n()}()}(t,e,i,n,r,a):e.getData(new K.FileWriter(t,K.getMimeType(e.name)),i,n,o)}(t,a,e,i,n,ft(a),r)},n)},moveTo:function(t){if(!t.directory)throw"Target entry is not a directory.";if(t.isDescendantOf(this))throw"Entry is a ancestor of target entry.";if(this!=t){if(t.getChildByName(this.name))throw"Entry filename already exists.";ut(this),this.parent=t,t.children.push(this)}},getFullname:function(){for(var t=this.name,e=this.parent;e;)t=(e.name?e.name+"/":"")+t,e=e.parent;return t},isDescendantOf:function(t){for(var e=this.parent;e&&e.id!=t.id;)e=e.parent;return!!e}}).constructor=ht,pt.prototype=Q=new ht,Q.constructor=pt,Q.getData=function(t,e,i,n){var r=this;!t||t.constructor==r.Writer&&r.data?e(r.data):(r.reader||(r.reader=new r.Reader(r.data,n)),r.reader.init(function(){t.init(function(){!function(t,e,i,n,r){var a=0;!function o(){var s=524288*a;n&&n(s,t.size),s<t.size?t.readUint8Array(s,Math.min(524288,t.size-s),function(t){e.writeUint8Array(new Uint8Array(t),function(){a++,o()})},r):e.getData(i)}()}(r.reader,t,e,i,n)},n)}))},Q.getText=function(t,e,i,n){this.getData(new tt(n),t,e,i)},Q.getBlob=function(t,e,i,n){this.getData(new et(t),e,i,n)},Q.getData64URI=function(t,e,i,n){this.getData(new it(t),e,i,n)},wt.prototype=X=new ht,X.constructor=wt,X.addDirectory=function(t){return _t(this,t,null,!0)},X.addText=function(t,e){return _t(this,t,{data:e,Reader:nt,Writer:tt})},X.addBlob=function(t,e){return _t(this,t,{data:e,Reader:rt,Writer:et})},X.addData64URI=function(t,e){return _t(this,t,{data:e,Reader:at,Writer:it})},X.addFileEntry=function(t,e,i){!function(t,e,i,n){e.isDirectory?function t(e,i,r){!function(t,e){t.isDirectory&&t.createReader().readEntries(e),t.isFile&&e([])}(i,function(i){var a=0;!function o(){var s=i[a];s?function(i){function r(e){t(e,i,function(){a++,o()})}i.isDirectory&&r(e.addDirectory(i.name)),i.isFile&&i.file(function(t){var n=e.addBlob(i.name,t);n.uncompressedSize=t.size,r(n)},n)}(s):r()}()})}(t,e,i):e.file(function(n){t.addBlob(e.name,n),i()},n)}(this,t,e,i)},X.addData=function(t,e){return _t(this,t,e)},X.importBlob=function(t,e,i){this.importZip(new rt(t),e,i)},X.importText=function(t,e,i){this.importZip(new nt(t),e,i)},X.importData64URI=function(t,e,i){this.importZip(new at(t),e,i)},X.exportBlob=function(t,e,i){this.exportZip(new et("application/zip"),t,e,i)},X.exportText=function(t,e,i){this.exportZip(new tt,t,e,i)},X.exportFileEntry=function(t,e,i,n){this.exportZip(new K.FileWriter(t,"application/zip"),e,i,n)},X.exportData64URI=function(t,e,i){this.exportZip(new it("application/zip"),t,e,i)},X.importZip=function(t,e,i){var n=this;ot(t,function(t){t.getEntries(function(t){t.forEach(function(t){var e=n,i=t.filename.split("/"),r=i.pop();i.forEach(function(t){e=e.getChildByName(t)||new wt(n.fs,t,null,e)}),t.directory||_t(e,r,{data:t,Reader:lt})}),e()})},i)},X.exportZip=function(t,e,i,n){var r=this;dt(r,function(){st(t,function(t){!function(t,e,i,n,r){var a=0;!function t(e,i,n,r,o){var s=0;!function l(){var f=i.children[s];f?e.add(f.getFullname(),f.reader,function(){a+=f.uncompressedSize||0,t(e,f,function(){s++,l()},r,o)},function(t){r&&r(a+t,o)},{directory:f.directory,version:f.zipVersion}):n()}()}(t,e,i,n,r)}(t,r,function(){t.close(e)},i,ft(r))},n)},n)},X.getChildByName=function(t){var e,i;for(e=0;e<this.children.length;e++)if((i=this.children[e]).name==t)return i},bt.prototype={remove:function(t){ut(t),this.entries[t.id]=null},find:function(t){var e,i=t.split("/"),n=this.root;for(e=0;n&&e<i.length;e++)n=n.getChildByName(i[e]);return n},getById:function(t){return this.entries[t]},importBlob:function(t,e,i){ct(this),this.root.importBlob(t,e,i)},importText:function(t,e,i){ct(this),this.root.importText(t,e,i)},importData64URI:function(t,e,i){ct(this),this.root.importData64URI(t,e,i)},exportBlob:function(t,e,i){this.root.exportBlob(t,e,i)},exportText:function(t,e,i){this.root.exportText(t,e,i)},exportFileEntry:function(t,e,i,n){this.root.exportFileEntry(t,e,i,n)},exportData64URI:function(t,e,i){this.root.exportData64URI(t,e,i)}},K.getMimeType=function(){return"application/octet-stream"};const xt={FS:bt,ZipDirectoryEntry:wt,ZipFileEntry:pt};K.useWebWorkers=!1;class vt{constructor(t,e,i){this.el=t,this.inputEl=e,this.options={unzip:!0},Object.assign(this.options,i),this.listeners={drop:[],dropstart:[],droperror:[]},this._onDragover=this._onDragover.bind(this),this._onDrop=this._onDrop.bind(this),this._onSelect=this._onSelect.bind(this),t.addEventListener("dragover",this._onDragover,!1),t.addEventListener("drop",this._onDrop,!1),e.addEventListener("change",this._onSelect)}on(t,e){return this.listeners[t].push(e),this}_emit(t,e){return this.listeners[t].forEach(t=>t(e)),this}destroy(){const t=this.el,e=this.inputEl;t.removeEventListener(this._onDragover),t.removeEventListener(this._onDrop),e.removeEventListener(this._onSelect),delete this.el,delete this.inputEl,delete this.listeners}_onDrop(t){t.stopPropagation(),t.preventDefault(),this._emit("dropstart");const e=Array.from(t.dataTransfer.files||[]),i=Array.from(t.dataTransfer.items||[]);if(0!==e.length||0!==i.length)if(i.length>0){const t=i.map(t=>t.webkitGetAsEntry());this.options.unzip&&t[0].name.match(/\.zip$/)?this._loadZip(i[0].getAsFile()):this._loadNextEntry(new Map,t)}else this.options.unzip&&1===e.length&&e[0].name.match(/\.zip$/)&&this._loadZip(e[0]),this._emit("drop",{files:new Map(e.map(t=>[t.name,t]))});else this._fail("Required drag-and-drop APIs are not supported in this browser.")}_onDragover(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"}_onSelect(t){this._emit("dropstart");const e=[].slice.call(this.inputEl.files);if(1===e.length&&this._isZip(e[0]))return void this._loadZip(e[0]);const i=new Map;e.forEach(t=>i.set(t.name,t)),this._emit("drop",{files:i})}_loadNextEntry(t,e){const i=e.pop();if(i)if(i.isFile)i.file(n=>{t.set(i.fullPath,n),this._loadNextEntry(t,e)},()=>console.error("Could not load file: %s",i.fullPath));else if(i.isDirectory){const n=i.createReader(),r=i=>{i.length?(e=e.concat(i),n.readEntries(r)):this._loadNextEntry(t,e)};n.readEntries(r)}else console.warn("Unknown asset type: "+i.fullPath),this._loadNextEntry(t,e);else this._emit("drop",{files:t})}_loadZip(t){const e=[],i=new Map,n=new xt.FS,r=t=>{t.directory?t.children.forEach(r):"."!==t.name[0]&&e.push(new Promise(e=>{t.getData(new K.BlobWriter,n=>{n.name=t.name,i.set(t.getFullname(),n),e()})}))};n.importBlob(t,()=>{r(n.root),Promise.all(e).then(()=>{this._emit("drop",{files:i,archive:t})})})}_isZip(t){return"application/zip"===t.type||t.name.match(/\.zip$/)}_fail(t){this._emit("droperror",{message:t})}}export{vt as SimpleDropzone};
  //# sourceMappingURL=simple-dropzone.modern.js.map
  