functionBrotliDecodeClosure(){"use strict";functione(e){this.a=e,this.b=0}functiont(e){for(vart=-1,i=16;i>0;)e>>>i!=0&&(t+=i,e>>>=i),i>>=1;returnt+e}functioni(e,t,i){return16+t+2*(i<<e)}functionn(e,i,n){if(e<n+(2<<i))throw"maxDistance is too small";vara=(e-n>>i)+4,o=t(a)-1,r=o-1<<1|a>>o&1;return(r-1<<i)+(1<<i)+n+16}functiona(e){vart=newInt16Array(24),i=newInt16Array(24);i[0]=2;for(varn=0;n<23;++n)t[n+1]=t[n]+(1<<Pe[n]),i[n+1]=i[n]+(1<<$e[n]);for(vara=0;a<704;++a){varo=a>>>6,r=-4;o>=2&&(o-=2,r=0);vars=(170064>>>2*o&3)<<3|a>>>3&7,l=(156228>>>2*o&3)<<3|7&a,c=i[l],d=r+(c>4?3:c-2),h=4*a;e[h+0]=Pe[s]|$e[l]<<8,e[h+1]=t[s],e[h+2]=i[l],e[h+3]=d}}functiono(e){vart=e.c;if(e.c=0,e.d>=16&&(e.e=e.f[e.g++]<<16|e.e>>>16,e.d-=16),0==H(e,1))return16;vari=H(e,3);return0!=i?17+i:(i=H(e,3),0!=i?1==i?0==t?-1:(e.c=1,1==H(e,1)?-1:(i=H(e,6),i<10||i>30?-1:i)):8+i:17)}functionr(e,t){if(0!=e.h)throw"State MUST be uninitialized";e.j=newInt32Array(3091),e.j[0]=7,e.k=3;vari=n(2147483644,3,120);e.l=newInt8Array(i),e.m=newInt32Array(i),e.input=t,U(e),e.h=1}functions(e){if(0==e.h)throw"State MUST be initialized";11!=e.h&&(e.h=11,null!=e.input&&(ne(e.input),e.input=null))}functionl(e){if(e.d>=16&&(e.e=e.f[e.g++]<<16|e.e>>>16,e.d-=16),0!=H(e,1)){vart=H(e,3);return0==t?1:H(e,t)+(1<<t)}return0}functionc(e){if(e.d>=16&&(e.e=e.f[e.g++]<<16|e.e>>>16,e.d-=16),e.n=H(e,1),e.o=0,e.p=0,e.q=0,0==e.n||0==H(e,1)){vart=H(e,2)+4;if(7==t){if(e.q=1,0!=H(e,1))throw"Corrupted reserved bit";vari=H(e,2);if(0==i)return;for(varn=0;n<i;n++){e.d>=16&&(e.e=e.f[e.g++]<<16|e.e>>>16,e.d-=16);vara=H(e,8);if(0==a&&n+1==i&&i>1)throw"Exuberant nibble";e.o|=a<<8*n}}elsefor(varn=0;n<t;n++){e.d>=16&&(e.e=e.f[e.g++]<<16|e.e>>>16,e.d-=16);vara=H(e,4);if(0==a&&n+1==t&&t>4)throw"Exuberant nibble";e.o|=a<<4*n}e.o++,0==e.n&&(e.p=H(e,1))}}functiond(e,t,i){varn=e[t],a=i.e>>>i.d;n+=255&a;varo=e[n]>>16,r=65535&e[n];if(o<=8)returni.d+=o,r;n+=r;vars=(1<<o)-1;returnn+=(a&s)>>>8,i.d+=(e[n]>>16)+8,65535&e[n]}functionh(e,t,i){i.d>=16&&(i.e=i.f[i.g++]<<16|i.e>>>16,i.d-=16);varn=d(e,t,i),a=ge[n];returni.d>=16&&(i.e=i.f[i.g++]<<16|i.e>>>16,i.d-=16),me[n]+(a<=16?H(i,a):R(i,a))}functionf(e,t){for(vari=e[t];t>0;t--)e[t]=e[t-1];e[0]=i}functionp(e,t){for(vari=newInt32Array(256),n=0;n<256;n++)i[n]=n;for(varn=0;n<t;n++){vara=255&e[n];e[n]=i[a],0!=a&&f(i,a)}}functionu(e,t,i,n){vara=0,o=8,r=0,s=0,l=32768,c=newInt32Array(33),d=c.length-1;for(W(c,d,5,e,18);a<t&&l>0;){n.g>2030&&B(n),n.d>=16&&(n.e=n.f[n.g++]<<16|n.e>>>16,n.d-=16);varh=n.e>>>n.d&31;n.d+=c[h]>>16;varf=65535&c[h];if(f<16)r=0,i[a++]=f,0!=f&&(o=f,l-=32768>>f);else{varp=f-14,u=0;16==f&&(u=o),s!=u&&(r=0,s=u);varm=r;r>0&&(r-=2,r<<=p),n.d>=16&&(n.e=n.f[n.g++]<<16|n.e>>>16,n.d-=16),r+=H(n,p)+3;varg=r-m;if(a+g>t)throw"symbol + repeatDelta > numSymbols";for(varP=0;P<g;P++)i[a++]=s;0!=s&&(l-=g<<15-s)}}if(0!=l)throw"Unused space";i.fill(0,a,t)}functionm(e,t){for(vari=0;i<t-1;++i)for(varn=i+1;n<t;++n)if(e[i]==e[n])throw"Duplicate simple Huffman code symbol"}functiong(e,i,n,a,o){for(varr=newInt32Array(i),s=newInt32Array(4),l=1+t(e-1),c=H(o,2)+1,d=0;d<c;d++){o.d>=16&&(o.e=o.f[o.g++]<<16|o.e>>>16,o.d-=16);varh=H(o,l);if(h>=i)throw"Can't readHuffmanCode";s[d]=h}m(s,c);varf=c;switch(4==c&&(f+=H(o,1)),f){case1:r[s[0]]=1;break;case2:r[s[0]]=1,r[s[1]]=1;break;case3:r[s[0]]=1,r[s[1]]=2,r[s[2]]=2;break;case4:r[s[0]]=2,r[s[1]]=2,r[s[2]]=2,r[s[3]]=2;break;case5:r[s[0]]=1,r[s[1]]=2,r[s[2]]=3,r[s[3]]=3}returnW(n,a,8,r,i)}functionP(e,t,i,n,a){for(varo=newInt32Array(e),r=newInt32Array(18),s=32,l=0,c=t;c<18&&s>0;c++){vard=ce[c];a.d>=16&&(a.e=a.f[a.g++]<<16|a.e>>>16,a.d-=16);varh=a.e>>>a.d&15;a.d+=fe[h]>>16;varf=65535&fe[h];r[d]=f,0!=f&&(s-=32>>f,l++)}if(0!=s&&1!=l)throw"Corrupted Huffman code histogram";returnu(r,e,o,a),W(i,n,8,o,e)}function$(e,t,i,n,a){a.g>2030&&B(a),a.d>=16&&(a.e=a.f[a.g++]<<16|a.e>>>16,a.d-=16);varo=H(a,2);return1==o?g(e,t,i,n,a):P(t,o,i,n,a)}functionb(e,t,i){i.g>2030&&B(i);varn=l(i)+1;if(1==n)returnt.fill(0,0,e),n;i.d>=16&&(i.e=i.f[i.g++]<<16|i.e>>>16,i.d-=16);vara=H(i,1),