compression-streams-polyfill
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "compression-streams-polyfill", | ||
"description": "Lightweight polyfill/ponyfill for the Compression Streams API", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"author": "Arjun Barrett <arjunbarrett@gmail.com>", | ||
@@ -48,3 +48,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"fflate": "^0.7.4" | ||
"fflate": "^0.8.0" | ||
}, | ||
@@ -51,0 +51,0 @@ "devDependencies": { |
@@ -27,3 +27,3 @@ # compression-streams-polyfill | ||
You should use either UNPKG or jsDelivr (i.e. only one of the following) | ||
You can specify the version, e.g. with compression-streams-polyfill@0.1.2 | ||
You can specify the version, e.g. with compression-streams-polyfill@0.1.4 | ||
--> | ||
@@ -50,7 +50,7 @@ <script src="https://unpkg.com/compression-streams-polyfill"></script> | ||
## Performance and size | ||
This polyfill is based on [fflate](https://github.com/101arrowz/fflate) and is therefore very fast. It tends to be between 20% slower and 5% faster than Chromium's native `CompressionStream` and `DecompressionStream`. | ||
This polyfill is based on [fflate](https://github.com/101arrowz/fflate) and is therefore very fast. It tends to be between 20% slower and 5% faster than Chromium's native `CompressionStream` and `DecompressionStream`. The `CompressionStream` polyfill also yields similar compression ratios to the native implementation. | ||
The polyfill's full bundle size is about 15kB minified, or 6kB gzipped. | ||
The polyfill's full bundle size is about 17kB minified, or 7kB gzipped. | ||
## License | ||
MIT |
@@ -1,1 +0,1 @@ | ||
!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){var t={},n=Uint8Array,r=Uint16Array,e=Uint32Array,i=new n([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]),o=new n([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]),a=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=function(t,n){for(var i=new r(31),o=0;o<31;++o)i[o]=n+=1<<t[o-1];var a=new e(i[30]);for(o=1;o<30;++o)for(var f=i[o];f<i[o+1];++f)a[f]=f-i[o]<<5|o;return[i,a]},s=f(i,2),u=s[0],c=s[1];u[28]=258,c[258]=28;for(var h=f(o,0),l=h[0],v=h[1],p=new r(32768),d=0;d<32768;++d){var g=(43690&d)>>>1|(21845&d)<<1;p[d]=((65280&(g=(61680&(g=(52428&g)>>>2|(13107&g)<<2))>>>4|(3855&g)<<4))>>>8|(255&g)<<8)>>>1}var w=function(t,n,e){for(var i=t.length,o=0,a=new r(n);o<i;++o)t[o]&&++a[t[o]-1];var f,s=new r(n);for(o=0;o<n;++o)s[o]=s[o-1]+a[o-1]<<1;if(e){f=new r(1<<n);var u=15-n;for(o=0;o<i;++o)if(t[o])for(var c=o<<4|t[o],h=n-t[o],l=s[t[o]-1]++<<h,v=l|(1<<h)-1;l<=v;++l)f[p[l]>>>u]=c}else for(f=new r(i),o=0;o<i;++o)t[o]&&(f[o]=p[s[t[o]-1]++]>>>15-t[o]);return f},m=new n(288);for(d=0;d<144;++d)m[d]=8;for(d=144;d<256;++d)m[d]=9;for(d=256;d<280;++d)m[d]=7;for(d=280;d<288;++d)m[d]=8;var y=new n(32);for(d=0;d<32;++d)y[d]=5;var b=/*#__PURE__*/w(m,9,0),M=/*#__PURE__*/w(m,9,1),E=/*#__PURE__*/w(y,5,0),k=/*#__PURE__*/w(y,5,1),T=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},x=function(t,n,r){var e=n/8|0;return(t[e]|t[e+1]<<8)>>(7&n)&r},S=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&n)},A=function(t){return(t+7)/8|0},z=function(t,i,o){(null==i||i<0)&&(i=0),(null==o||o>t.length)&&(o=t.length);var a=new(2==t.BYTES_PER_ELEMENT?r:4==t.BYTES_PER_ELEMENT?e:n)(o-i);return a.set(t.subarray(i,o)),a},U=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],O=function(t,n,r){var e=new Error(n||U[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,O),!r)throw e;return e},B=function(t,r,e){var f=t.length;if(!f||e&&e.f&&!e.l)return r||new n(0);var s=!r||e,c=!e||e.i;e||(e={}),r||(r=new n(3*f));var h=function(t){var e=r.length;if(t>e){var i=new n(Math.max(2*e,t));i.set(r),r=i}},v=e.f||0,p=e.p||0,d=e.b||0,g=e.l,m=e.d,y=e.m,b=e.n,E=8*f;do{if(!g){v=x(t,p,1);var U=x(t,p+1,3);if(p+=3,!U){var B=t[(I=A(p)+4)-4]|t[I-3]<<8,D=I+B;if(D>f){c&&O(0);break}s&&h(d+B),r.set(t.subarray(I,D),d),e.b=d+=B,e.p=p=8*D,e.f=v;continue}if(1==U)g=M,m=k,y=9,b=5;else if(2==U){var L=x(t,p,31)+257,$=x(t,p+10,15)+4,C=L+x(t,p+5,31)+1;p+=14;for(var F=new n(C),P=new n(19),R=0;R<$;++R)P[a[R]]=x(t,p+3*R,7);p+=3*$;var _=T(P),j=(1<<_)-1,q=w(P,_,1);for(R=0;R<C;){var I,N=q[x(t,p,j)];if(p+=15&N,(I=N>>>4)<16)F[R++]=I;else{var V=0,W=0;for(16==I?(W=3+x(t,p,3),p+=2,V=F[R-1]):17==I?(W=3+x(t,p,7),p+=3):18==I&&(W=11+x(t,p,127),p+=7);W--;)F[R++]=V}}var Y=F.subarray(0,L),G=F.subarray(L);y=T(Y),b=T(G),g=w(Y,y,1),m=w(G,b,1)}else O(1);if(p>E){c&&O(0);break}}s&&h(d+131072);for(var H=(1<<y)-1,J=(1<<b)-1,K=p;;K=p){var Q=(V=g[S(t,p)&H])>>>4;if((p+=15&V)>E){c&&O(0);break}if(V||O(2),Q<256)r[d++]=Q;else{if(256==Q){K=p,g=null;break}var X=Q-254;Q>264&&(X=x(t,p,(1<<(nt=i[R=Q-257]))-1)+u[R],p+=nt);var Z=m[S(t,p)&J],tt=Z>>>4;if(Z||O(3),p+=15&Z,G=l[tt],tt>3){var nt=o[tt];G+=S(t,p)&(1<<nt)-1,p+=nt}if(p>E){c&&O(0);break}s&&h(d+131072);for(var rt=d+X;d<rt;d+=4)r[d]=r[d-G],r[d+1]=r[d+1-G],r[d+2]=r[d+2-G],r[d+3]=r[d+3-G];d=rt}}e.l=g,e.p=K,e.b=d,e.f=v,g&&(v=1,e.m=y,e.d=m,e.n=b)}while(!v);return d==r.length?r:z(r,0,d)},D=function(t,n,r){var e=n/8|0;t[e]|=r<<=7&n,t[e+1]|=r>>>8},L=function(t,n,r){var e=n/8|0;t[e]|=r<<=7&n,t[e+1]|=r>>>8,t[e+2]|=r>>>16},$=function(t,e){for(var i=[],o=0;o<t.length;++o)t[o]&&i.push({s:o,f:t[o]});var a=i.length,f=i.slice();if(!a)return[q,0];if(1==a){var s=new n(i[0].s+1);return s[i[0].s]=1,[s,1]}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var u=i[0],c=i[1],h=0,l=1,v=2;for(i[0]={s:-1,f:u.f+c.f,l:u,r:c};l!=a-1;)u=i[i[h].f<i[v].f?h++:v++],c=i[h!=l&&i[h].f<i[v].f?h++:v++],i[l++]={s:-1,f:u.f+c.f,l:u,r:c};var p=f[0].s;for(o=1;o<a;++o)f[o].s>p&&(p=f[o].s);var d=new r(p+1),g=C(i[l-1],d,0);if(g>e){o=0;var w=0,m=g-e,y=1<<m;for(f.sort(function(t,n){return d[n.s]-d[t.s]||t.f-n.f});o<a;++o){var b=f[o].s;if(!(d[b]>e))break;w+=y-(1<<g-d[b]),d[b]=e}for(w>>>=m;w>0;){var M=f[o].s;d[M]<e?w-=1<<e-d[M]++-1:++o}for(;o>=0&&w;--o){var E=f[o].s;d[E]==e&&(--d[E],++w)}g=e}return[new n(d),g]},C=function(t,n,r){return-1==t.s?Math.max(C(t.l,n,r+1),C(t.r,n,r+1)):n[t.s]=r},F=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),i=0,o=t[0],a=1,f=function(t){e[i++]=t},s=1;s<=n;++s)if(t[s]==o&&s!=n)++a;else{if(!o&&a>2){for(;a>138;a-=138)f(32754);a>2&&(f(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(f(o),--a;a>6;a-=6)f(8304);a>2&&(f(a-3<<5|8208),a=0)}for(;a--;)f(o);a=1,o=t[s]}return[e.subarray(0,i),n]},P=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},R=function(t,n,r){var e=r.length,i=A(n+2);t[i]=255&e,t[i+1]=e>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o<e;++o)t[i+o+4]=r[o];return 8*(i+4+e)},_=function(t,n,e,f,s,u,c,h,l,v,p){D(n,p++,e),++s[256];for(var d=$(s,15),g=d[0],M=d[1],k=$(u,15),T=k[0],x=k[1],S=F(g),A=S[0],z=S[1],U=F(T),O=U[0],B=U[1],C=new r(19),_=0;_<A.length;++_)C[31&A[_]]++;for(_=0;_<O.length;++_)C[31&O[_]]++;for(var j=$(C,7),q=j[0],I=j[1],N=19;N>4&&!q[a[N-1]];--N);var V,W,Y,G,H=v+5<<3,J=P(s,m)+P(u,y)+c,K=P(s,g)+P(u,T)+c+14+3*N+P(C,q)+(2*C[16]+3*C[17]+7*C[18]);if(H<=J&&H<=K)return R(n,p,t.subarray(l,l+v));if(D(n,p,1+(K<J)),p+=2,K<J){V=w(g,M,0),W=g,Y=w(T,x,0),G=T;var Q=w(q,I,0);for(D(n,p,z-257),D(n,p+5,B-1),D(n,p+10,N-4),p+=14,_=0;_<N;++_)D(n,p+3*_,q[a[_]]);p+=3*N;for(var X=[A,O],Z=0;Z<2;++Z){var tt=X[Z];for(_=0;_<tt.length;++_)D(n,p,Q[nt=31&tt[_]]),p+=q[nt],nt>15&&(D(n,p,tt[_]>>>5&127),p+=tt[_]>>>12)}}else V=b,W=m,Y=E,G=y;for(_=0;_<h;++_)if(f[_]>255){var nt;L(n,p,V[257+(nt=f[_]>>>18&31)]),p+=W[nt+257],nt>7&&(D(n,p,f[_]>>>23&31),p+=i[nt]);var rt=31&f[_];L(n,p,Y[rt]),p+=G[rt],rt>3&&(L(n,p,f[_]>>>5&8191),p+=o[rt])}else L(n,p,V[f[_]]),p+=W[f[_]];return L(n,p,V[256]),p+W[256]},j=/*#__PURE__*/new e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),q=/*#__PURE__*/new n(0),I=function(t,a,f,s,u,h){var l=t.length,p=new n(s+l+5*(1+Math.ceil(l/7e3))+u),d=p.subarray(s,p.length-u),g=0;if(!a||l<8)for(var w=0;w<=l;w+=65535){var m=w+65535;m>=l&&(d[g>>3]=h),g=R(d,g+1,t.subarray(w,m))}else{for(var y=j[a-1],b=y>>>13,M=8191&y,E=(1<<f)-1,k=new r(32768),T=new r(E+1),x=Math.ceil(f/3),S=2*x,U=function(n){return(t[n]^t[n+1]<<x^t[n+2]<<S)&E},O=new e(25e3),B=new r(288),D=new r(32),L=0,$=0,C=(w=0,0),F=0,P=0;w<l;++w){var I=U(w),N=32767&w,V=T[I];if(k[N]=V,T[I]=N,F<=w){var W=l-w;if((L>7e3||C>24576)&&W>423){g=_(t,d,0,O,B,D,$,C,P,w-P,g),C=L=$=0,P=w;for(var Y=0;Y<286;++Y)B[Y]=0;for(Y=0;Y<30;++Y)D[Y]=0}var G=2,H=0,J=M,K=N-V&32767;if(W>2&&I==U(w-K))for(var Q=Math.min(b,W)-1,X=Math.min(32767,w),Z=Math.min(258,W);K<=X&&--J&&N!=V;){if(t[w+G]==t[w+G-K]){for(var tt=0;tt<Z&&t[w+tt]==t[w+tt-K];++tt);if(tt>G){if(G=tt,H=K,tt>Q)break;var nt=Math.min(K,tt-2),rt=0;for(Y=0;Y<nt;++Y){var et=w-K+Y+32768&32767,it=et-k[et]+32768&32767;it>rt&&(rt=it,V=et)}}}K+=(N=V)-(V=k[N])+32768&32767}if(H){O[C++]=268435456|c[G]<<18|v[H];var ot=31&c[G],at=31&v[H];$+=i[ot]+o[at],++B[257+ot],++D[at],F=w+G,++L}else O[C++]=t[w],++B[t[w]]}}g=_(t,d,h,O,B,D,$,C,P,w-P,g),!h&&7&g&&(g=R(d,g+1,q))}return z(p,0,s+A(g)+u)},N=/*#__PURE__*/function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),V=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=N[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},W=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,o=0|r.length,a=0;a!=o;){for(var f=Math.min(a+2655,o);a<f;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|t>>>8<<16|(255&(n%=65521))<<8|n>>>8}}},Y=function(t,n,r,e,i){return I(t,null==n.level?6:n.level,null==n.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+n.mem,r,e,!i)},G=function(t,n,r){for(var e=t(),i=t.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a<e.length;++a){var f=e[a],s=o[a];if("function"==typeof f){n+=";"+s+"=";var u=f.toString();if(f.prototype)if(-1!=u.indexOf("[native code]")){var c=u.indexOf(" ",8)+1;n+=u.slice(c,u.indexOf("(",c))}else for(var h in n+=u,f.prototype)n+=";"+s+".prototype."+h+"="+f.prototype[h].toString();else n+=u}else r[s]=f}return[n,r]},H=[],J=function(){return[n,r,e,i,o,a,u,l,M,k,p,U,w,T,x,S,A,z,O,B,mt,nt,rt]},K=function(){return[n,r,e,i,o,a,c,v,b,m,E,y,p,j,q,w,D,L,$,C,F,P,R,_,A,z,I,Y,dt,nt]},Q=function(){return[at,ut,ot,V,N]},X=function(){return[ft,st]},Z=function(){return[ct,ot,W]},tt=function(){return[ht]},nt=function(t){return postMessage(t,[t.buffer])},rt=function(t){return t&&t.size&&new n(t.size)},et=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){return t.push(n.data[0],n.data[1])}},it=function(n,r,e,i,o){var a,f=function(n,e,i,o){var a;if(!H[i]){for(var s="",u={},c=n.length-1,h=0;h<c;++h)s=(a=G(n[h],s,u))[0],u=a[1];H[i]=G(n[c],s,u)}var l=function(t,n){var r={};for(var e in t)r[e]=t[e];for(var e in n)r[e]=n[e];return r}({},H[i][1]);return function(n,r,e,i,o){var a=new Worker(t[r]||(t[r]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(t){var n=t.data,r=n.$e$;if(r){var e=new Error(r[0]);e.code=r[1],e.stack=r[2],o(e,null)}else o(null,n)},a.postMessage(e,i),a}(H[i][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",i,l,function(t){var n=[];for(var r in t)t[r].buffer&&n.push((t[r]=new t[r].constructor(t[r])).buffer);return n}(l),function(t,n){t?(f.terminate(),r.ondata.call(r,t)):(n[1]&&f.terminate(),r.ondata.call(r,t,n[0],n[1]))})}(n,i,o);f.postMessage(e),r.push=function(t,n){r.ondata||O(5),a&&r.ondata(O(4,0,1),null,!!n),f.postMessage([t,a=n],[t.buffer])},r.terminate=function(){f.terminate()}},ot=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},at=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&ot(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},ft=function(t){31==t[0]&&139==t[1]&&8==t[2]||O(6,"invalid gzip data");var n=t[3],r=10;4&n&&(r+=t[10]|2+(t[11]<<8));for(var e=(n>>3&1)+(n>>4&1);e>0;e-=!t[r++]);return r+(2&n)},st=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},ut=function(t){return 10+(t.filename&&t.filename.length+1||0)},ct=function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=e<<6|(e?32-2*e:1)},ht=function(t){(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)&&O(6,"invalid zlib data"),32&t[1]&&O(6,"invalid zlib data: preset dictionaries not supported")};function lt(t,n){return n||"function"!=typeof t||(n=t,t={}),this.ondata=n,t}var vt=/*#__PURE__*/function(){function t(t,n){n||"function"!=typeof t||(n=t,t={}),this.ondata=n,this.o=t||{}}return t.prototype.p=function(t,n){this.ondata(Y(t,this.o,0,0,!n),n)},t.prototype.push=function(t,n){this.ondata||O(5),this.d&&O(4),this.d=n,this.p(t,n||!1)},t}(),pt=/*#__PURE__*/function(){return function(t,n){it([K,function(){return[et,vt]}],this,lt.call(this,t,n),function(t){var n=new vt(t.data);onmessage=et(n)},6)}}();function dt(t,n){return Y(t,n||{},0,0)}var gt=/*#__PURE__*/function(){function t(t){this.s={},this.p=new n(0),this.ondata=t}return t.prototype.e=function(t){this.ondata||O(5),this.d&&O(4);var r=this.p.length,e=new n(r+t.length);e.set(this.p),e.set(t,r),this.p=e},t.prototype.c=function(t){this.d=this.s.i=t||!1;var n=this.s.b,r=B(this.p,this.o,this.s);this.ondata(z(r,n,this.s.b),this.d),this.o=z(r,this.s.b-32768),this.s.b=this.o.length,this.p=z(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t}(),wt=/*#__PURE__*/function(){return function(t){this.ondata=t,it([J,function(){return[et,gt]}],this,0,function(){var t=new gt;onmessage=et(t)},7)}}();function mt(t,n){return B(t,n)}var yt=/*#__PURE__*/function(){function t(t,n){this.c=V(),this.l=0,this.v=1,vt.call(this,t,n)}return t.prototype.push=function(t,n){vt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t),this.l+=t.length;var r=Y(t,this.o,this.v&&ut(this.o),n&&8,!n);this.v&&(at(r,this.o),this.v=0),n&&(ot(r,r.length-8,this.c.d()),ot(r,r.length-4,this.l)),this.ondata(r,n)},t}(),bt=/*#__PURE__*/function(){return function(t,n){it([K,Q,function(){return[et,vt,yt]}],this,lt.call(this,t,n),function(t){var n=new yt(t.data);onmessage=et(n)},8)}}(),Mt=/*#__PURE__*/function(){function t(t){this.v=1,gt.call(this,t)}return t.prototype.push=function(t,n){if(gt.prototype.e.call(this,t),this.v){var r=this.p.length>3?ft(this.p):4;if(r>=this.p.length&&!n)return;this.p=this.p.subarray(r),this.v=0}n&&(this.p.length<8&&O(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),gt.prototype.c.call(this,n)},t}(),Et=/*#__PURE__*/function(){return function(t){this.ondata=t,it([J,X,function(){return[et,gt,Mt]}],this,0,function(){var t=new Mt;onmessage=et(t)},9)}}(),kt=/*#__PURE__*/function(){function t(t,n){this.c=W(),this.v=1,vt.call(this,t,n)}return t.prototype.push=function(t,n){vt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t);var r=Y(t,this.o,this.v&&2,n&&4,!n);this.v&&(ct(r,this.o),this.v=0),n&&ot(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),Tt=/*#__PURE__*/function(){return function(t,n){it([K,Z,function(){return[et,vt,kt]}],this,lt.call(this,t,n),function(t){var n=new kt(t.data);onmessage=et(n)},10)}}(),xt=/*#__PURE__*/function(){function t(t){this.v=1,gt.call(this,t)}return t.prototype.push=function(t,n){if(gt.prototype.e.call(this,t),this.v){if(this.p.length<2&&!n)return;this.p=this.p.subarray(2),this.v=0}n&&(this.p.length<4&&O(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),gt.prototype.c.call(this,n)},t}(),St=/*#__PURE__*/function(){return function(t){this.ondata=t,it([J,tt,function(){return[et,gt,xt]}],this,0,function(){var t=new xt;onmessage=et(t)},11)}}(),At="undefined"!=typeof TextDecoder&&/*#__PURE__*/new TextDecoder;try{At.decode(q,{stream:!0})}catch(t){}const zt={gzip:bt,deflate:Tt,"deflate-raw":pt},Ut={gzip:Et,deflate:St,"deflate-raw":wt},Ot=(t,n,r)=>class extends t{constructor(t){if(!arguments.length)throw new TypeError(`Failed to construct '${r}': 1 argument required, but only 0 present.`);const e=n[t];if(!e)throw new TypeError(`Failed to construct '${r}': Unsupported compression format: '${t}'`);let i,o=new e;super({start:t=>{o.ondata=(n,r,e)=>{n?t.error(n):r&&(t.enqueue(r),e&&t.terminate()),i()}},transform:t=>new Promise(n=>{if(i=n,t instanceof ArrayBuffer)t=new Uint8Array(t);else{if(!ArrayBuffer.isView(t))throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}o.push(t)}),flush:()=>new Promise(t=>{i=t,o.push(new Uint8Array(0),!0)})},{size:t=>0|t.byteLength,highWaterMark:65536})}},Bt="undefined"==typeof globalThis?"undefined"==typeof self?"undefined"==typeof global?{}:global:self:globalThis;void 0===Bt.CompressionStream&&(Bt.CompressionStream=function(t){class n extends(Ot(t,zt,"CompressionStream")){}return n}(TransformStream)),void 0===Bt.DecompressionStream&&(Bt.DecompressionStream=function(t){class n extends(Ot(t,Ut,"DecompressionStream")){}return n}(TransformStream))}); | ||
!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){var t={},n=Uint8Array,r=Uint16Array,e=Int32Array,i=new n([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]),a=new n([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]),o=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,n){for(var i=new r(31),a=0;a<31;++a)i[a]=n+=1<<t[a-1];var o=new e(i[30]);for(a=1;a<30;++a)for(var s=i[a];s<i[a+1];++s)o[s]=s-i[a]<<5|a;return{b:i,r:o}},f=s(i,2),u=f.b,h=f.r;u[28]=258,h[258]=28;for(var c=s(a,0),l=c.b,v=c.r,p=new r(32768),d=0;d<32768;++d){var g=(43690&d)>>1|(21845&d)<<1;p[d]=((65280&(g=(61680&(g=(52428&g)>>2|(13107&g)<<2))>>4|(3855&g)<<4))>>8|(255&g)<<8)>>1}var y=function(t,n,e){for(var i=t.length,a=0,o=new r(n);a<i;++a)t[a]&&++o[t[a]-1];var s,f=new r(n);for(a=1;a<n;++a)f[a]=f[a-1]+o[a-1]<<1;if(e){s=new r(1<<n);var u=15-n;for(a=0;a<i;++a)if(t[a])for(var h=a<<4|t[a],c=n-t[a],l=f[t[a]-1]++<<c,v=l|(1<<c)-1;l<=v;++l)s[p[l]>>u]=h}else for(s=new r(i),a=0;a<i;++a)t[a]&&(s[a]=p[f[t[a]-1]++]>>15-t[a]);return s},w=new n(288);for(d=0;d<144;++d)w[d]=8;for(d=144;d<256;++d)w[d]=9;for(d=256;d<280;++d)w[d]=7;for(d=280;d<288;++d)w[d]=8;var b=new n(32);for(d=0;d<32;++d)b[d]=5;var m=/*#__PURE__*/y(w,9,0),M=/*#__PURE__*/y(w,9,1),z=/*#__PURE__*/y(b,5,0),k=/*#__PURE__*/y(b,5,1),x=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},A=function(t,n,r){var e=n/8|0;return(t[e]|t[e+1]<<8)>>(7&n)&r},S=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&n)},T=function(t){return(t+7)/8|0},E=function(t,r,e){(null==r||r<0)&&(r=0),(null==e||e>t.length)&&(e=t.length);var i=new n(e-r);return i.set(t.subarray(r,e)),i},U=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],O=function(t,n,r){var e=new Error(n||U[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,O),!r)throw e;return e},D=function(t,r,e,s){var f=t.length,h=s?s.length:0;if(!f||r.f&&!r.l)return e||new n(0);var c=!e||2!=r.i,v=r.i;e||(e=new n(3*f));var p=function(t){var r=e.length;if(t>r){var i=new n(Math.max(2*r,t));i.set(e),e=i}},d=r.f||0,g=r.p||0,w=r.b||0,b=r.l,m=r.d,z=r.m,U=r.n,D=8*f;do{if(!b){d=A(t,g,1);var $=A(t,g+1,3);if(g+=3,!$){var B=t[(G=T(g)+4)-4]|t[G-3]<<8,L=G+B;if(L>f){v&&O(0);break}c&&p(w+B),e.set(t.subarray(G,L),w),r.b=w+=B,r.p=g=8*L,r.f=d;continue}if(1==$)b=M,m=k,z=9,U=5;else if(2==$){var C=A(t,g,31)+257,F=A(t,g+10,15)+4,I=C+A(t,g+5,31)+1;g+=14;for(var j=new n(I),q=new n(19),P=0;P<F;++P)q[o[P]]=A(t,g+3*P,7);g+=3*F;var R=x(q),V=(1<<R)-1,W=y(q,R,1);for(P=0;P<I;){var G,H=W[A(t,g,V)];if(g+=15&H,(G=H>>4)<16)j[P++]=G;else{var J=0,K=0;for(16==G?(K=3+A(t,g,3),g+=2,J=j[P-1]):17==G?(K=3+A(t,g,7),g+=3):18==G&&(K=11+A(t,g,127),g+=7);K--;)j[P++]=J}}var N=j.subarray(0,C),Q=j.subarray(C);z=x(N),U=x(Q),b=y(N,z,1),m=y(Q,U,1)}else O(1);if(g>D){v&&O(0);break}}c&&p(w+131072);for(var X=(1<<z)-1,Y=(1<<U)-1,Z=g;;Z=g){var _=(J=b[S(t,g)&X])>>4;if((g+=15&J)>D){v&&O(0);break}if(J||O(2),_<256)e[w++]=_;else{if(256==_){Z=g,b=null;break}var tt=_-254;_>264&&(tt=A(t,g,(1<<(et=i[P=_-257]))-1)+u[P],g+=et);var nt=m[S(t,g)&Y],rt=nt>>4;if(nt||O(3),g+=15&nt,Q=l[rt],rt>3){var et=a[rt];Q+=S(t,g)&(1<<et)-1,g+=et}if(g>D){v&&O(0);break}c&&p(w+131072);var it=w+tt;if(w<Q){var at=h-Q,ot=Math.min(Q,it);for(at+w<0&&O(3);w<ot;++w)e[w]=s[at+w]}for(;w<it;w+=4)e[w]=e[w-Q],e[w+1]=e[w+1-Q],e[w+2]=e[w+2-Q],e[w+3]=e[w+3-Q];w=it}}r.l=b,r.p=Z,r.b=w,r.f=d,b&&(d=1,r.m=z,r.d=m,r.n=U)}while(!d);return w==e.length?e:E(e,0,w)},$=function(t,n,r){var e=n/8|0;t[e]|=r<<=7&n,t[e+1]|=r>>8},B=function(t,n,r){var e=n/8|0;t[e]|=r<<=7&n,t[e+1]|=r>>8,t[e+2]|=r>>16},L=function(t,e){for(var i=[],a=0;a<t.length;++a)t[a]&&i.push({s:a,f:t[a]});var o=i.length,s=i.slice();if(!o)return{t:R,l:0};if(1==o){var f=new n(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var u=i[0],h=i[1],c=0,l=1,v=2;for(i[0]={s:-1,f:u.f+h.f,l:u,r:h};l!=o-1;)u=i[i[c].f<i[v].f?c++:v++],h=i[c!=l&&i[c].f<i[v].f?c++:v++],i[l++]={s:-1,f:u.f+h.f,l:u,r:h};var p=s[0].s;for(a=1;a<o;++a)s[a].s>p&&(p=s[a].s);var d=new r(p+1),g=C(i[l-1],d,0);if(g>e){a=0;var y=0,w=g-e,b=1<<w;for(s.sort(function(t,n){return d[n.s]-d[t.s]||t.f-n.f});a<o;++a){var m=s[a].s;if(!(d[m]>e))break;y+=b-(1<<g-d[m]),d[m]=e}for(y>>=w;y>0;){var M=s[a].s;d[M]<e?y-=1<<e-d[M]++-1:++a}for(;a>=0&&y;--a){var z=s[a].s;d[z]==e&&(--d[z],++y)}g=e}return{t:new n(d),l:g}},C=function(t,n,r){return-1==t.s?Math.max(C(t.l,n,r+1),C(t.r,n,r+1)):n[t.s]=r},F=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),i=0,a=t[0],o=1,s=function(t){e[i++]=t},f=1;f<=n;++f)if(t[f]==a&&f!=n)++o;else{if(!a&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(a),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(a);o=1,a=t[f]}return{c:e.subarray(0,i),n:n}},I=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},j=function(t,n,r){var e=r.length,i=T(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},q=function(t,n,e,s,f,u,h,c,l,v,p){$(n,p++,e),++f[256];for(var d=L(f,15),g=d.t,M=d.l,k=L(u,15),x=k.t,A=k.l,S=F(g),T=S.c,E=S.n,U=F(x),O=U.c,D=U.n,C=new r(19),q=0;q<T.length;++q)++C[31&T[q]];for(q=0;q<O.length;++q)++C[31&O[q]];for(var P=L(C,7),R=P.t,V=P.l,W=19;W>4&&!R[o[W-1]];--W);var G,H,J,K,N=v+5<<3,Q=I(f,w)+I(u,b)+h,X=I(f,g)+I(u,x)+h+14+3*W+I(C,R)+2*C[16]+3*C[17]+7*C[18];if(l>=0&&N<=Q&&N<=X)return j(n,p,t.subarray(l,l+v));if($(n,p,1+(X<Q)),p+=2,X<Q){G=y(g,M,0),H=g,J=y(x,A,0),K=x;var Y=y(R,V,0);for($(n,p,E-257),$(n,p+5,D-1),$(n,p+10,W-4),p+=14,q=0;q<W;++q)$(n,p+3*q,R[o[q]]);p+=3*W;for(var Z=[T,O],_=0;_<2;++_){var tt=Z[_];for(q=0;q<tt.length;++q)$(n,p,Y[rt=31&tt[q]]),p+=R[rt],rt>15&&($(n,p,tt[q]>>5&127),p+=tt[q]>>12)}}else G=m,H=w,J=z,K=b;for(q=0;q<c;++q){var nt=s[q];if(nt>255){var rt;B(n,p,G[257+(rt=nt>>18&31)]),p+=H[rt+257],rt>7&&($(n,p,nt>>23&31),p+=i[rt]);var et=31&nt;B(n,p,J[et]),p+=K[et],et>3&&(B(n,p,nt>>5&8191),p+=a[et])}else B(n,p,G[nt]),p+=H[nt]}return B(n,p,G[256]),p+H[256]},P=/*#__PURE__*/new e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),R=/*#__PURE__*/new n(0),V=function(t,o,s,f,u,c){var l=c.z||t.length,p=new n(f+l+5*(1+Math.ceil(l/7e3))+u),d=p.subarray(f,p.length-u),g=c.l,y=7&(c.r||0);if(o){y&&(d[0]=c.r>>3);for(var w=P[o-1],b=w>>13,m=8191&w,M=(1<<s)-1,z=c.p||new r(32768),k=c.h||new r(M+1),x=Math.ceil(s/3),A=2*x,S=function(n){return(t[n]^t[n+1]<<x^t[n+2]<<A)&M},U=new e(25e3),O=new r(288),D=new r(32),$=0,B=0,L=c.i||0,C=0,F=c.w||0,I=0;L+2<l;++L){var R=S(L),V=32767&L,W=k[R];if(z[V]=W,k[R]=V,F<=L){var G=l-L;if(($>7e3||C>24576)&&(G>423||!g)){y=q(t,d,0,U,O,D,B,C,I,L-I,y),C=$=B=0,I=L;for(var H=0;H<286;++H)O[H]=0;for(H=0;H<30;++H)D[H]=0}var J=2,K=0,N=m,Q=V-W&32767;if(G>2&&R==S(L-Q))for(var X=Math.min(b,G)-1,Y=Math.min(32767,L),Z=Math.min(258,G);Q<=Y&&--N&&V!=W;){if(t[L+J]==t[L+J-Q]){for(var _=0;_<Z&&t[L+_]==t[L+_-Q];++_);if(_>J){if(J=_,K=Q,_>X)break;var tt=Math.min(Q,_-2),nt=0;for(H=0;H<tt;++H){var rt=L-Q+H&32767,et=rt-z[rt]&32767;et>nt&&(nt=et,W=rt)}}}Q+=(V=W)-(W=z[V])&32767}if(K){U[C++]=268435456|h[J]<<18|v[K];var it=31&h[J],at=31&v[K];B+=i[it]+a[at],++O[257+it],++D[at],F=L+J,++$}else U[C++]=t[L],++O[t[L]]}}for(L=Math.max(L,F);L<l;++L)U[C++]=t[L],++O[t[L]];y=q(t,d,g,U,O,D,B,C,I,L-I,y),g||(c.r=7&y|d[y/8|0]<<3,y-=7,c.h=k,c.p=z,c.i=L,c.w=F)}else{for(L=c.w||0;L<l+g;L+=65535){var ot=L+65535;ot>=l&&(d[y/8|0]=g,ot=l),y=j(d,y+1,t.subarray(L,ot))}c.i=l}return E(p,0,f+T(y)+u)},W=/*#__PURE__*/function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),G=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=W[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},H=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=e+=r[o];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},J=function(t,r,e,i,a){if(!a&&(a={l:1},r.dictionary)){var o=r.dictionary.subarray(-32768),s=new n(o.length+t.length);s.set(o),s.set(t,o.length),t=s,a.w=o.length}return V(t,null==r.level?6:r.level,null==r.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+r.mem,e,i,a)},K=function(t,n,r){for(var e=t(),i=t.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<e.length;++o){var s=e[o],f=a[o];if("function"==typeof s){n+=";"+f+"=";var u=s.toString();if(s.prototype)if(-1!=u.indexOf("[native code]")){var h=u.indexOf(" ",8)+1;n+=u.slice(h,u.indexOf("(",h))}else for(var c in n+=u,s.prototype)n+=";"+f+".prototype."+c+"="+s.prototype[c].toString();else n+=u}else r[f]=s}return n},N=[],Q=function(){return[n,r,e,i,a,o,u,l,M,k,p,U,y,x,A,S,T,E,O,D,wt,nt,rt]},X=function(){return[n,r,e,i,a,o,h,v,m,w,z,b,p,P,R,y,$,B,L,C,F,I,j,q,T,E,V,J,dt,nt]},Y=function(){return[ot,ut,at,G,W]},Z=function(){return[st,ft]},_=function(){return[ht,at,H]},tt=function(){return[ct]},nt=function(t){return postMessage(t,[t.buffer])},rt=function(t){return t&&{out:t.size&&new n(t.size),dictionary:t.dictionary}},et=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){return t.push(n.data[0],n.data[1])}},it=function(n,r,e,i,a,o){var s,f=function(n,e,i,a){if(!N[i]){for(var s="",u={},h=n.length-1,c=0;c<h;++c)s=K(n[c],s,u);N[i]={c:K(n[h],s,u),e:u}}var l=function(t,n){var r={};for(var e in t)r[e]=t[e];for(var e in n)r[e]=n[e];return r}({},N[i].e);return function(n,r,e,i,a){var o=new Worker(t[r]||(t[r]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(t){var n=t.data,r=n.$e$;if(r){var e=new Error(r[0]);e.code=r[1],e.stack=r[2],a(e,null)}else a(null,n)},o.postMessage(e,i),o}(N[i].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",i,l,function(t){var n=[];for(var r in t)t[r].buffer&&n.push((t[r]=new t[r].constructor(t[r])).buffer);return n}(l),function(t,n){t?(f.terminate(),r.ondata.call(r,t)):Array.isArray(n)?(n[1]&&f.terminate(),r.ondata.call(r,t,n[0],n[1])):o(n)})}(n,i,a);f.postMessage(e),r.push=function(t,n){r.ondata||O(5),s&&r.ondata(O(4,0,1),null,!!n),f.postMessage([t,s=n],[t.buffer])},r.terminate=function(){f.terminate()}},at=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},ot=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&at(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},st=function(t){31==t[0]&&139==t[1]&&8==t[2]||O(6,"invalid gzip data");var n=t[3],r=10;4&n&&(r+=2+(t[10]|t[11]<<8));for(var e=(n>>3&1)+(n>>4&1);e>0;e-=!t[r++]);return r+(2&n)},ft=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},ut=function(t){return 10+(t.filename?t.filename.length+1:0)},ht=function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=H();i.p(n.dictionary),at(t,2,i.d())}},ct=function(t,n){return(8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31)&&O(6,"invalid zlib data"),(t[1]>>5&1)==+!n&&O(6,"invalid zlib data: "+(32&t[1]?"need":"unexpected")+" dictionary"),2+(t[1]>>3&4)};function lt(t,n){return"function"==typeof t&&(n=t,t={}),this.ondata=n,t}var vt=/*#__PURE__*/function(){function t(t,r){if("function"==typeof t&&(r=t,t={}),this.ondata=r,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new n(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return t.prototype.p=function(t,n){this.ondata(J(t,this.o,0,0,this.s),n)},t.prototype.push=function(t,r){this.ondata||O(5),this.s.l&&O(4);var e=t.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new n(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(t.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(a),32768),this.s.z=t.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},t}(),pt=/*#__PURE__*/function(){return function(t,n){it([X,function(){return[et,vt]}],this,lt.call(this,t,n),function(t){var n=new vt(t.data);onmessage=et(n)},6)}}();function dt(t,n){return J(t,n||{},0,0)}var gt=/*#__PURE__*/function(){function t(t,r){"function"==typeof t&&(r=t,t={}),this.ondata=r;var e=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:e?e.length:0},this.o=new n(32768),this.p=new n(0),e&&this.o.set(e)}return t.prototype.e=function(t){if(this.ondata||O(5),this.d&&O(4),this.p.length){if(t.length){var r=new n(this.p.length+t.length);r.set(this.p),r.set(t,this.p.length),this.p=r}}else this.p=t},t.prototype.c=function(t){this.s.i=+(this.d=t||!1);var n=this.s.b,r=D(this.p,this.s,this.o);this.ondata(E(r,n,this.s.b),this.d),this.o=E(r,this.s.b-32768),this.s.b=this.o.length,this.p=E(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t}(),yt=/*#__PURE__*/function(){return function(t,n){it([Q,function(){return[et,gt]}],this,lt.call(this,t,n),function(t){var n=new gt(t.data);onmessage=et(n)},7)}}();function wt(t,n){return D(t,{i:2},n&&n.out,n&&n.dictionary)}var bt=/*#__PURE__*/function(){function t(t,n){this.c=G(),this.l=0,this.v=1,vt.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),this.l+=t.length,vt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=J(t,this.o,this.v&&ut(this.o),n&&8,this.s);this.v&&(ot(r,this.o),this.v=0),n&&(at(r,r.length-8,this.c.d()),at(r,r.length-4,this.l)),this.ondata(r,n)},t}(),mt=/*#__PURE__*/function(){return function(t,n){it([X,Y,function(){return[et,vt,bt]}],this,lt.call(this,t,n),function(t){var n=new bt(t.data);onmessage=et(n)},8)}}(),Mt=/*#__PURE__*/function(){function t(t,n){this.v=1,this.r=0,gt.call(this,t,n)}return t.prototype.push=function(t,r){if(gt.prototype.e.call(this,t),this.r+=t.length,this.v){var e=this.p.subarray(this.v-1),i=e.length>3?st(e):4;if(i>e.length){if(!r)return}else this.v>1&&this.onmember&&this.onmember(this.r-e.length);this.p=e.subarray(i),this.v=0}gt.prototype.c.call(this,r),this.s.f&&!this.s.l&&(this.v=T(this.s.p)+9,this.s={i:0},this.o=new n(0),this.p.length&&this.push(new n(0),r))},t}(),zt=/*#__PURE__*/function(){return function(t,n){var r=this;it([Q,Z,function(){return[et,gt,Mt]}],this,lt.call(this,t,n),function(t){var n=new Mt(t.data);n.onmember=function(t){return postMessage(t)},onmessage=et(n)},9,function(t){return r.onmember&&r.onmember(t)})}}(),kt=/*#__PURE__*/function(){function t(t,n){this.c=H(),this.v=1,vt.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),vt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=J(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(ht(r,this.o),this.v=0),n&&at(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),xt=/*#__PURE__*/function(){return function(t,n){it([X,_,function(){return[et,vt,kt]}],this,lt.call(this,t,n),function(t){var n=new kt(t.data);onmessage=et(n)},10)}}(),At=/*#__PURE__*/function(){function t(t,n){gt.call(this,t,n),this.v=t&&t.dictionary?2:1}return t.prototype.push=function(t,n){if(gt.prototype.e.call(this,t),this.v){if(this.p.length<6&&!n)return;this.p=this.p.subarray(ct(this.p,this.v-1)),this.v=0}n&&(this.p.length<4&&O(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),gt.prototype.c.call(this,n)},t}(),St=/*#__PURE__*/function(){return function(t,n){it([Q,tt,function(){return[et,gt,At]}],this,lt.call(this,t,n),function(t){var n=new At(t.data);onmessage=et(n)},11)}}(),Tt="undefined"!=typeof TextDecoder&&/*#__PURE__*/new TextDecoder;try{Tt.decode(R,{stream:!0})}catch(t){}const Et={gzip:mt,deflate:xt,"deflate-raw":pt},Ut={gzip:zt,deflate:St,"deflate-raw":yt},Ot=(t,n,r)=>class extends t{constructor(t){if(!arguments.length)throw new TypeError(`Failed to construct '${r}': 1 argument required, but only 0 present.`);const e=n[t];if(!e)throw new TypeError(`Failed to construct '${r}': Unsupported compression format: '${t}'`);let i,a=new e;super({start:t=>{a.ondata=(n,r,e)=>{n?t.error(n):r&&(t.enqueue(r),e&&t.terminate()),i()}},transform:t=>new Promise(n=>{if(i=n,t instanceof ArrayBuffer)t=new Uint8Array(t);else{if(!ArrayBuffer.isView(t))throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}a.push(t)}),flush:()=>new Promise(t=>{i=t,a.push(new Uint8Array(0),!0)})},{size:t=>0|t.byteLength,highWaterMark:65536})}},Dt="undefined"==typeof globalThis?"undefined"==typeof self?"undefined"==typeof global?{}:global:self:globalThis;void 0===Dt.CompressionStream&&(Dt.CompressionStream=function(t){class n extends(Ot(t,Et,"CompressionStream")){}return n}(TransformStream)),void 0===Dt.DecompressionStream&&(Dt.DecompressionStream=function(t){class n extends(Ot(t,Ut,"DecompressionStream")){}return n}(TransformStream))}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37373
445
+ Addedfflate@0.8.2(transitive)
- Removedfflate@0.7.4(transitive)
Updatedfflate@^0.8.0