UNPKG

cmu-syllable-counter

Version:

Fast and accurate syllable counter for English words using CMU Dictionary

1 lines 2.02 MB
var t,e;t=this,e=function(t){'use strict';function e(t){let e=t.length;for(;--e>=0;)t[e]=0}function r(t,e,r,a,f){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=a,this.max_length=f,this.has_stree=t&&t.length}function a(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function f(t,e,r,a,f){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=a,this.func=f}function l(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=zt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Tt(this.dyn_ltree),Tt(this.dyn_dtree),Tt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Tt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Tt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function o(t){this.options=N({level:We,method:Ge,chunkSize:16384,windowBits:15,memLevel:8,strategy:qe},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg='',this.ended=!1,this.chunks=[],this.strm=new Q,this.strm.avail_out=0;let r=g.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==De)throw new Error(V[r]);if(e.header&&g.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t='string'==typeof e.dictionary?A(e.dictionary):'[object ArrayBuffer]'===je.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,r=g.deflateSetDictionary(this.strm,t),r!==De)throw new Error(V[r]);this.P=!0}}function n(t,e){const r=new o(e);if(r.push(t,!0),r.err)throw r.msg||V[r.err];return r.result}function P(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function i(t){this.options=N({chunkSize:65536,windowBits:15,to:''},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg='',this.ended=!1,this.chunks=[],this.strm=new Q,this.strm.avail_out=0;let r=p.inflateInit2(this.strm,e.windowBits);if(r!==Hr)throw new Error(V[r]);if(this.header=new F,p.inflateGetHeader(this.strm,this.header),e.dictionary&&('string'==typeof e.dictionary?e.dictionary=A(e.dictionary):'[object ArrayBuffer]'===Pr.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=p.inflateSetDictionary(this.strm,e.dictionary),r!==Hr)))throw new Error(V[r])}function s(t,e){const r=new i(e);if(r.push(t),r.err)throw r.msg||V[r.err];return r.result}function H(t){return t?t.split(' ').filter(t=>Yr.test(t)||Vr.test(t)).length:0}function b(t){return t?t.split(' ').filter(t=>gr.test(t)&&!Vr.test(t)).length:0}function u(t){return t?t.split(' ').map(t=>/\d/.test(t)&&t.match(/\d/)?.[0]||'0').join(''):''}function X(t){if(!t)return'simple';const e=t.split(' ').length,r=function(t){return t?t.split(' ').filter(t=>/[0-9]/.test(t)||/^[AEIOU]/i.test(t)).length:0}(t);return e<=4&&r<=2?'simple':e<=7&&r<=3?'moderate':'complex'}function h(t){if(!t||0===t.length)return 0;const e=t.toLowerCase();if(e.includes(' ')||e.includes('-'))return e.split(/[- ]+/).reduce((t,e)=>t+h(e),0);if(e.length<=2)return 1;let r=0;const a='aeiouy';let f=!1;for(let t=0;t<e.length;t++){const l=a.includes(e[t]);l&&!f&&r++,f=l}for(const t of yr)e.endsWith(t)&&(r=Math.max(1,r-1));return e.endsWith('e')&&!['le','ee','oe','ye'].some(t=>e.endsWith(t))&&r>1&&r--,e.length>2&&e.endsWith('le')&&!a.includes(e[e.length-3])&&r++,e.endsWith('ed')&&/[td]$/.test(e.slice(0,-2))&&r++,e.endsWith('es')&&/[^sxz]$/.test(e.slice(0,-2))&&r++,Math.max(1,r)}function j(t,e={}){const{customPatterns:r={},delimiter:a='-'}=e;if(!t||0===t.length)return t;if(t.includes(' '))return t.split(' ').map(t=>j(t,e)).join(' ');const f=t.toLowerCase();return r[f]?r[f]:Lr.has(f)||t.length<3?t:function(t,e,r='-'){const a=[];for(let f=0;f<t.length;f++)a.push(t[f]),e[f+1]%2==1&&a.push(r);return a.join('')}(t,v(f),a)}function v(t){const[e,r]=Ar,a='.'+t+'.',f=new Array(a.length).fill(0);for(let t=0;t<a.length;t++){let e=r,l='';for(let r=t;r<a.length;r++){const o=a[r];if(l+=o,!e[o])break;if(e=e[o],'number'==typeof e){const r=e;for(let e=0;e<l.length;e++)f[t+e]=Math.max(f[t+e],r);break}}}return f.slice(1,f.length-1)}function B(t,e={}){const{includeBoundaries:r=!0,customPatterns:a={}}=e;if(!r)return[];if(!t||0===t.length)return[];if(t.includes(' ')){const r=t.split(' '),a=[];let f=0;for(const t of r){const r=B(t,e);a.push(...r.map(t=>t+f)),f+=t.length+1}return a}if(a[t.toLowerCase()])return[];const f=v(t),l=[];for(let t=1;t<f.length-1;t++)f[t]%2==1&&l.push(t);return l}function d(t){if('string'==typeof t){const e=t.match(Qr);return e?e.filter(t=>t.trim()):[]}const e=[];for(const r of t)if('string'==typeof r){const t=r.match(Qr);if(t)for(const r of t)r.trim()&&e.push(r)}return e}function w(t){return'string'==typeof t?t.split('\n').filter(t=>t.trim().length>0).length:t.length}async function D(t,e){const{includeHyp:r,delimiter:a,includePron:f}=e;if(0===t.length)return{totalSyllableCount:0,wordDetails:[]};const l=await Promise.all(t.map(async t=>{const e=t.trim();return{normalizedWord:e,syllableInfo:await Er.getSyllableInfo(e,{includeBoundaries:r,delimiter:a})}}));let o=0;const n=[];for(const{normalizedWord:t,syllableInfo:e}of l)if(o+=e.syllables,r){const r={word:t,hyp:e.hyphenated,sc:e.syllables,source:e.source,...f&&e.pronunciation&&{pron:e.pronunciation}};n.push(r)}return{totalSyllableCount:o,wordDetails:n}}var c,W,q,G,V,Y,g,I,N,y,A,L,E,Q,U,Z,R,p,F,z,K;const x=new Uint8Array([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]),k=new Uint8Array([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]),C=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new Array(576);e(m);const M=new Array(60);e(M);const T=new Array(512);e(T);const J=new Array(256);e(J);const S=new Array(29);e(S);const _=new Array(30);let $,tt,et;e(_);const rt=t=>t<256?T[t]:T[256+(t>>>7)],at=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},ft=(t,e,r)=>{t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,at(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)},lt=(t,e,r)=>{ft(t,r[2*e],r[2*e+1])},ot=(t,e)=>{let r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1},nt=(t,e,r)=>{const a=new Array(16);let f,l,o=0;for(f=1;f<=15;f++)o=o+r[f-1]<<1,a[f]=o;for(l=0;l<=e;l++){let e=t[2*l+1];0!==e&&(t[2*l]=ot(a[e]++,e))}},Pt=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},it=t=>{t.bi_valid>8?at(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},st=(t,e,r,a)=>{const f=2*e,l=2*r;return t[f]<t[l]||t[f]===t[l]&&a[e]<=a[r]},Ht=(t,e,r)=>{const a=t.heap[r];let f=r<<1;for(;f<=t.heap_len&&(f<t.heap_len&&st(e,t.heap[f+1],t.heap[f],t.depth)&&f++,!st(e,a,t.heap[f],t.depth));)t.heap[r]=t.heap[f],r=f,f<<=1;t.heap[r]=a},bt=(t,e,r)=>{let a,f,l,o,n=0;if(0!==t.sym_next)do{a=255&t.pending_buf[t.sym_buf+n++],a+=(255&t.pending_buf[t.sym_buf+n++])<<8,f=t.pending_buf[t.sym_buf+n++],0===a?lt(t,f,e):(l=J[f],lt(t,l+256+1,e),o=x[l],0!==o&&(f-=S[l],ft(t,f,o)),a--,l=rt(a),lt(t,l,r),o=k[l],0!==o&&(a-=_[l],ft(t,a,o)))}while(n<t.sym_next);lt(t,256,e)},ut=(t,e)=>{const r=e.dyn_tree,a=e.stat_desc.static_tree,f=e.stat_desc.has_stree,l=e.stat_desc.elems;let o,n,P,i=-1;for(t.heap_len=0,t.heap_max=573,o=0;o<l;o++)0!==r[2*o]?(t.heap[++t.heap_len]=i=o,t.depth[o]=0):r[2*o+1]=0;for(;t.heap_len<2;)P=t.heap[++t.heap_len]=i<2?++i:0,r[2*P]=1,t.depth[P]=0,t.opt_len--,f&&(t.static_len-=a[2*P+1]);for(e.max_code=i,o=t.heap_len>>1;o>=1;o--)Ht(t,r,o);P=l;do{o=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Ht(t,r,1),n=t.heap[1],t.heap[--t.heap_max]=o,t.heap[--t.heap_max]=n,r[2*P]=r[2*o]+r[2*n],t.depth[P]=(t.depth[o]>=t.depth[n]?t.depth[o]:t.depth[n])+1,r[2*o+1]=r[2*n+1]=P,t.heap[1]=P++,Ht(t,r,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const r=e.dyn_tree,a=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,o=e.stat_desc.extra_bits,n=e.stat_desc.extra_base,P=e.stat_desc.max_length;let i,s,H,b,u,X,h=0;for(b=0;b<=15;b++)t.bl_count[b]=0;for(r[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<573;i++)s=t.heap[i],b=r[2*r[2*s+1]+1]+1,b>P&&(b=P,h++),r[2*s+1]=b,s>a||(t.bl_count[b]++,u=0,s>=n&&(u=o[s-n]),X=r[2*s],t.opt_len+=X*(b+u),l&&(t.static_len+=X*(f[2*s+1]+u)));if(0!==h){do{for(b=P-1;0===t.bl_count[b];)b--;t.bl_count[b]--,t.bl_count[b+1]+=2,t.bl_count[P]--,h-=2}while(h>0);for(b=P;0!==b;b--)for(s=t.bl_count[b];0!==s;)H=t.heap[--i],H>a||(r[2*H+1]!==b&&(t.opt_len+=(b-r[2*H+1])*r[2*H],r[2*H+1]=b),s--)}})(t,e),nt(r,i,t.bl_count)},Xt=(t,e,r)=>{let a,f,l=-1,o=e[1],n=0,P=7,i=4;for(0===o&&(P=138,i=3),e[2*(r+1)+1]=65535,a=0;a<=r;a++)f=o,o=e[2*(a+1)+1],++n<P&&f===o||(n<i?t.bl_tree[2*f]+=n:0!==f?(f!==l&&t.bl_tree[2*f]++,t.bl_tree[32]++):n<=10?t.bl_tree[34]++:t.bl_tree[36]++,n=0,l=f,0===o?(P=138,i=3):f===o?(P=6,i=3):(P=7,i=4))},ht=(t,e,r)=>{let a,f,l=-1,o=e[1],n=0,P=7,i=4;for(0===o&&(P=138,i=3),a=0;a<=r;a++)if(f=o,o=e[2*(a+1)+1],!(++n<P&&f===o)){if(n<i)do{lt(t,f,t.bl_tree)}while(0!==--n);else 0!==f?(f!==l&&(lt(t,f,t.bl_tree),n--),lt(t,16,t.bl_tree),ft(t,n-3,2)):n<=10?(lt(t,17,t.bl_tree),ft(t,n-3,3)):(lt(t,18,t.bl_tree),ft(t,n-11,7));n=0,l=f,0===o?(P=138,i=3):f===o?(P=6,i=3):(P=7,i=4)}};let jt=!1;const vt=(t,e,r,a)=>{ft(t,0+(a?1:0),3),it(t),at(t,r),at(t,~r),r&&t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r};c=(t,e,r,a)=>{let f,l,o=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),ut(t,t.l_desc),ut(t,t.d_desc),o=(t=>{let e;for(Xt(t,t.dyn_ltree,t.l_desc.max_code),Xt(t,t.dyn_dtree,t.d_desc.max_code),ut(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*O[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),f=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=f&&(f=l)):f=l=r+5,r+4<=f&&-1!==e?vt(t,e,r,a):4===t.strategy||l===f?(ft(t,2+(a?1:0),3),bt(t,m,M)):(ft(t,4+(a?1:0),3),((t,e,r,a)=>{let f;for(ft(t,e-257,5),ft(t,r-1,5),ft(t,a-4,4),f=0;f<a;f++)ft(t,t.bl_tree[2*O[f]+1],3);ht(t,t.dyn_ltree,e-1),ht(t,t.dyn_dtree,r-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),bt(t,t.dyn_ltree,t.dyn_dtree)),Pt(t),a&&it(t)},W={H:t=>{jt||((()=>{let t,e,a,f,l;const o=new Array(16);for(a=0,f=0;f<28;f++)for(S[f]=a,t=0;t<1<<x[f];t++)J[a++]=f;for(J[a-1]=f,l=0,f=0;f<16;f++)for(_[f]=l,t=0;t<1<<k[f];t++)T[l++]=f;for(l>>=7;f<30;f++)for(_[f]=l<<7,t=0;t<1<<k[f]-7;t++)T[256+l++]=f;for(e=0;e<=15;e++)o[e]=0;for(t=0;t<=143;)m[2*t+1]=8,t++,o[8]++;for(;t<=255;)m[2*t+1]=9,t++,o[9]++;for(;t<=279;)m[2*t+1]=7,t++,o[7]++;for(;t<=287;)m[2*t+1]=8,t++,o[8]++;for(nt(m,287,o),t=0;t<30;t++)M[2*t+1]=5,M[2*t]=ot(t,5);$=new r(m,x,257,286,15),tt=new r(M,k,0,30,15),et=new r(new Array(0),C,0,19,7)})(),jt=!0),t.l_desc=new a(t.dyn_ltree,$),t.d_desc=new a(t.dyn_dtree,tt),t.bl_desc=new a(t.bl_tree,et),t.bi_buf=0,t.bi_valid=0,Pt(t)},X:vt,B:c,D:(t,e,r)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(J[r]+256+1)]++,t.dyn_dtree[2*rt(e)]++),t.sym_next===t.sym_end),W:t=>{ft(t,2,3),lt(t,256,m),(t=>{16===t.bi_valid?(at(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}},q=(t,e,r,a)=>{let f=65535&t,l=t>>>16&65535,o=0;for(;0!==r;){o=r>2e3?2e3:r,r-=o;do{f=f+e[a++]|0,l=l+f|0}while(--o);f%=65521,l%=65521}return f|l<<16};const Bt=new Uint32Array((()=>{var t,e;let r,a=[];for(t=0;t<256;t++){for(r=t,e=0;e<8;e++)r=1&r?3988292384^r>>>1:r>>>1;a[t]=r}return a})());G=(t,e,r,a)=>{const f=Bt,l=a+r;t^=-1;for(let r=a;r<l;r++)t=t>>>8^f[255&(t^e[r])];return-1^t},V={2:'need dictionary',1:'stream end',0:'','-1':'file error','-2':'stream error','-3':'data error','-4':'insufficient memory','-5':'buffer error','-6':'incompatible version'},Y={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{H:dt,X:wt,B:Dt,D:ct,W:Wt}=W,{Z_NO_FLUSH:qt,Z_PARTIAL_FLUSH:Gt,Z_FULL_FLUSH:Vt,Z_FINISH:Yt,Z_BLOCK:gt,Z_OK:It,Z_STREAM_END:Nt,Z_STREAM_ERROR:yt,Z_DATA_ERROR:At,Z_BUF_ERROR:Lt,Z_DEFAULT_COMPRESSION:Et,Z_FILTERED:Qt,Z_HUFFMAN_ONLY:Ut,Z_RLE:Zt,Z_FIXED:Rt,Z_DEFAULT_STRATEGY:pt,Z_UNKNOWN:Ft,Z_DEFLATED:zt}=Y,Kt=258,xt=262,kt=42,Ct=113,Ot=666,mt=(t,e)=>(t.msg=V[e],e),Mt=t=>2*t-(t>4?9:0),Tt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},Jt=t=>{let e,r,a,f=t.w_size;e=t.hash_size,a=e;do{r=t.head[--a],t.head[a]=r>=f?r-f:0}while(--e);e=f,a=e;do{r=t.prev[--a],t.prev[a]=r>=f?r-f:0}while(--e)};let St=(t,e,r)=>(e<<t.hash_shift^r)&t.hash_mask;const _t=t=>{const e=t.state;let r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))},$t=(t,e)=>{Dt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,_t(t.strm)},te=(t,e)=>{t.pending_buf[t.pending++]=e},ee=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},re=(t,e,r,a)=>{let f=t.avail_in;return f>a&&(f=a),0===f?0:(t.avail_in-=f,e.set(t.input.subarray(t.next_in,t.next_in+f),r),1===t.state.wrap?t.adler=q(t.adler,e,f,r):2===t.state.wrap&&(t.adler=G(t.adler,e,f,r)),t.next_in+=f,t.total_in+=f,f)},ae=(t,e)=>{let r,a,f=t.max_chain_length,l=t.strstart,o=t.prev_length,n=t.nice_match;const P=t.strstart>t.w_size-xt?t.strstart-(t.w_size-xt):0,i=t.window,s=t.w_mask,H=t.prev,b=t.strstart+Kt;let u=i[l+o-1],X=i[l+o];t.prev_length>=t.good_match&&(f>>=2),n>t.lookahead&&(n=t.lookahead);do{if(r=e,i[r+o]===X&&i[r+o-1]===u&&i[r]===i[l]&&i[++r]===i[l+1]){l+=2,r++;do{}while(i[++l]===i[++r]&&i[++l]===i[++r]&&i[++l]===i[++r]&&i[++l]===i[++r]&&i[++l]===i[++r]&&i[++l]===i[++r]&&i[++l]===i[++r]&&i[++l]===i[++r]&&l<b);if(a=Kt-(b-l),l=b-Kt,a>o){if(t.match_start=e,o=a,a>=n)break;u=i[l+o-1],X=i[l+o]}}}while((e=H[e&s])>P&&0!==--f);return o<=t.lookahead?o:t.lookahead},fe=t=>{const e=t.w_size;let r,a,f;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-xt)&&(t.window.set(t.window.subarray(e,e+e-a),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),Jt(t),a+=e),0===t.strm.avail_in)break;if(r=re(t.strm,t.window,t.strstart+t.lookahead,a),t.lookahead+=r,t.lookahead+t.insert>=3)for(f=t.strstart-t.insert,t.ins_h=t.window[f],t.ins_h=St(t,t.ins_h,t.window[f+1]);t.insert&&(t.ins_h=St(t,t.ins_h,t.window[f+3-1]),t.prev[f&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=f,f++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<xt&&0!==t.strm.avail_in)},le=(t,e)=>{let r,a,f,l=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,o=0,n=t.strm.avail_in;do{if(r=65535,f=t.bi_valid+42>>3,t.strm.avail_out<f)break;if(f=t.strm.avail_out-f,a=t.strstart-t.block_start,r>a+t.strm.avail_in&&(r=a+t.strm.avail_in),r>f&&(r=f),r<l&&(0===r&&e!==Yt||e===qt||r!==a+t.strm.avail_in))break;o=e===Yt&&r===a+t.strm.avail_in?1:0,wt(t,0,0,o),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,_t(t.strm),a&&(a>r&&(a=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+a),t.strm.next_out),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a,t.block_start+=a,r-=a),r&&(re(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(0===o);return n-=t.strm.avail_in,n&&(n>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=n&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-n,t.strm.next_in),t.strstart),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),o?4:e!==qt&&e!==Yt&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(f=t.window_size-t.strstart,t.strm.avail_in>f&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,f+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),f>t.strm.avail_in&&(f=t.strm.avail_in),f&&(re(t.strm,t.window,t.strstart,f),t.strstart+=f,t.insert+=f>t.w_size-t.insert?t.w_size-t.insert:f),t.high_water<t.strstart&&(t.high_water=t.strstart),f=t.bi_valid+42>>3,f=t.pending_buf_size-f>65535?65535:t.pending_buf_size-f,l=f>t.w_size?t.w_size:f,a=t.strstart-t.block_start,(a>=l||(a||e===Yt)&&e!==qt&&0===t.strm.avail_in&&a<=f)&&(r=a>f?f:a,o=e===Yt&&0===t.strm.avail_in&&r===a?1:0,wt(t,t.block_start,r,o),t.block_start+=r,_t(t.strm)),o?3:1)},oe=(t,e)=>{let r,a;for(;;){if(t.lookahead<xt){if(fe(t),t.lookahead<xt&&e===qt)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=St(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-xt&&(t.match_length=ae(t,r)),t.match_length>=3)if(a=ct(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=St(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=St(t,t.ins_h,t.window[t.strstart+1]);else a=ct(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(a&&($t(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===Yt?($t(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&($t(t,!1),0===t.strm.avail_out)?1:2},ne=(t,e)=>{let r,a,f;for(;;){if(t.lookahead<xt){if(fe(t),t.lookahead<xt&&e===qt)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=St(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-xt&&(t.match_length=ae(t,r),t.match_length<=5&&(t.strategy===Qt||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){f=t.strstart+t.lookahead-3,a=ct(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=f&&(t.ins_h=St(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,a&&($t(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(a=ct(t,0,t.window[t.strstart-1]),a&&$t(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(a=ct(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===Yt?($t(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&($t(t,!1),0===t.strm.avail_out)?1:2},Pe=[new f(0,0,0,0,le),new f(4,4,8,4,oe),new f(4,5,16,8,oe),new f(4,6,32,32,oe),new f(4,4,16,16,ne),new f(8,16,32,32,ne),new f(8,16,128,128,ne),new f(8,32,128,256,ne),new f(32,128,258,1024,ne),new f(32,258,258,4096,ne)],ie=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==kt&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==Ct&&e.status!==Ot?1:0},se=t=>{if(ie(t))return mt(t,yt);t.total_in=t.total_out=0,t.data_type=Ft;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?kt:Ct,t.adler=2===e.wrap?0:1,e.last_flush=-2,dt(e),It},He=t=>{const e=se(t);var r;return e===It&&((r=t.state).window_size=2*r.w_size,Tt(r.head),r.max_lazy_match=Pe[r.level].max_lazy,r.good_match=Pe[r.level].good_length,r.nice_match=Pe[r.level].nice_length,r.max_chain_length=Pe[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=2,r.match_available=0,void(r.ins_h=0)),e},be=(t,e,r,a,f,o)=>{if(!t)return yt;let n=1;if(e===Et&&(e=6),a<0?(n=0,a=-a):a>15&&(n=2,a-=16),f<1||f>9||r!==zt||a<8||a>15||e<0||e>9||o<0||o>Rt||8===a&&1!==n)return mt(t,yt);8===a&&(a=9);const P=new l;return t.state=P,P.strm=t,P.status=kt,P.wrap=n,P.gzhead=null,P.w_bits=a,P.w_size=1<<P.w_bits,P.w_mask=P.w_size-1,P.hash_bits=f+7,P.hash_size=1<<P.hash_bits,P.hash_mask=P.hash_size-1,P.hash_shift=~~((P.hash_bits+3-1)/3),P.window=new Uint8Array(2*P.w_size),P.head=new Uint16Array(P.hash_size),P.prev=new Uint16Array(P.w_size),P.lit_bufsize=1<<f+6,P.pending_buf_size=4*P.lit_bufsize,P.pending_buf=new Uint8Array(P.pending_buf_size),P.sym_buf=P.lit_bufsize,P.sym_end=3*(P.lit_bufsize-1),P.level=e,P.strategy=o,P.method=r,He(t)};g={deflateInit:(t,e)=>be(t,e,zt,15,8,pt),deflateInit2:be,deflateReset:He,deflateResetKeep:se,deflateSetHeader:(t,e)=>ie(t)||2!==t.state.wrap?yt:(t.state.gzhead=e,It),deflate:(t,e)=>{if(ie(t)||e>gt||e<0)return t?mt(t,yt):yt;const r=t.state;if(!t.output||0!==t.avail_in&&!t.input||r.status===Ot&&e!==Yt)return mt(t,0===t.avail_out?Lt:yt);const a=r.last_flush;if(r.last_flush=e,0!==r.pending){if(_t(t),0===t.avail_out)return r.last_flush=-1,It}else if(0===t.avail_in&&Mt(e)<=Mt(a)&&e!==Yt)return mt(t,Lt);if(r.status===Ot&&0!==t.avail_in)return mt(t,Lt);if(r.status===kt&&0===r.wrap&&(r.status=Ct),r.status===kt){let e=zt+(r.w_bits-8<<4)<<8,a=-1;if(a=r.strategy>=Ut||r.level<2?0:r.level<6?1:6===r.level?2:3,e|=a<<6,0!==r.strstart&&(e|=32),e+=31-e%31,ee(r,e),0!==r.strstart&&(ee(r,t.adler>>>16),ee(r,65535&t.adler)),t.adler=1,r.status=Ct,_t(t),0!==r.pending)return r.last_flush=-1,It}if(57===r.status)if(t.adler=0,te(r,31),te(r,139),te(r,8),r.gzhead)te(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),te(r,255&r.gzhead.time),te(r,r.gzhead.time>>8&255),te(r,r.gzhead.time>>16&255),te(r,r.gzhead.time>>24&255),te(r,9===r.level?2:r.strategy>=Ut||r.level<2?4:0),te(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(te(r,255&r.gzhead.extra.length),te(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=G(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69;else if(te(r,0),te(r,0),te(r,0),te(r,0),te(r,0),te(r,9===r.level?2:r.strategy>=Ut||r.level<2?4:0),te(r,3),r.status=Ct,_t(t),0!==r.pending)return r.last_flush=-1,It;if(69===r.status){if(r.gzhead.extra){let e=r.pending,a=(65535&r.gzhead.extra.length)-r.gzindex;for(;r.pending+a>r.pending_buf_size;){let f=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+f),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>e&&(t.adler=G(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex+=f,_t(t),0!==r.pending)return r.last_flush=-1,It;e=0,a-=f}let f=new Uint8Array(r.gzhead.extra);r.pending_buf.set(f.subarray(r.gzindex,r.gzindex+a),r.pending),r.pending+=a,r.gzhead.hcrc&&r.pending>e&&(t.adler=G(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex=0}r.status=73}if(73===r.status){if(r.gzhead.name){let e,a=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>a&&(t.adler=G(t.adler,r.pending_buf,r.pending-a,a)),_t(t),0!==r.pending)return r.last_flush=-1,It;a=0}e=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,te(r,e)}while(0!==e);r.gzhead.hcrc&&r.pending>a&&(t.adler=G(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex=0}r.status=91}if(91===r.status){if(r.gzhead.comment){let e,a=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>a&&(t.adler=G(t.adler,r.pending_buf,r.pending-a,a)),_t(t),0!==r.pending)return r.last_flush=-1,It;a=0}e=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,te(r,e)}while(0!==e);r.gzhead.hcrc&&r.pending>a&&(t.adler=G(t.adler,r.pending_buf,r.pending-a,a))}r.status=103}if(103===r.status){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(_t(t),0!==r.pending))return r.last_flush=-1,It;te(r,255&t.adler),te(r,t.adler>>8&255),t.adler=0}if(r.status=Ct,_t(t),0!==r.pending)return r.last_flush=-1,It}if(0!==t.avail_in||0!==r.lookahead||e!==qt&&r.status!==Ot){let a=0===r.level?le(r,e):r.strategy===Ut?((t,e)=>{let r;for(;;){if(0===t.lookahead&&(fe(t),0===t.lookahead)){if(e===qt)return 1;break}if(t.match_length=0,r=ct(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&($t(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===Yt?($t(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&($t(t,!1),0===t.strm.avail_out)?1:2})(r,e):r.strategy===Zt?((t,e)=>{let r,a,f,l;const o=t.window;for(;;){if(t.lookahead<=Kt){if(fe(t),t.lookahead<=Kt&&e===qt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(f=t.strstart-1,a=o[f],a===o[++f]&&a===o[++f]&&a===o[++f])){l=t.strstart+Kt;do{}while(a===o[++f]&&a===o[++f]&&a===o[++f]&&a===o[++f]&&a===o[++f]&&a===o[++f]&&a===o[++f]&&a===o[++f]&&f<l);t.match_length=Kt-(l-f),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=ct(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=ct(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&($t(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===Yt?($t(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&($t(t,!1),0===t.strm.avail_out)?1:2})(r,e):Pe[r.level].func(r,e);if(3!==a&&4!==a||(r.status=Ot),1===a||3===a)return 0===t.avail_out&&(r.last_flush=-1),It;if(2===a&&(e===Gt?Wt(r):e!==gt&&(wt(r,0,0,!1),e===Vt&&(Tt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),_t(t),0===t.avail_out))return r.last_flush=-1,It}return e!==Yt?It:r.wrap<=0?Nt:(2===r.wrap?(te(r,255&t.adler),te(r,t.adler>>8&255),te(r,t.adler>>16&255),te(r,t.adler>>24&255),te(r,255&t.total_in),te(r,t.total_in>>8&255),te(r,t.total_in>>16&255),te(r,t.total_in>>24&255)):(ee(r,t.adler>>>16),ee(r,65535&t.adler)),_t(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?It:Nt)},deflateEnd:t=>{if(ie(t))return yt;const e=t.state.status;return t.state=null,e===Ct?mt(t,At):It},deflateSetDictionary:(t,e)=>{let r=e.length;if(ie(t))return yt;const a=t.state,f=a.wrap;if(2===f||1===f&&a.status!==kt||a.lookahead)return yt;if(1===f&&(t.adler=q(t.adler,e,r,0)),a.wrap=0,r>=a.w_size){0===f&&(Tt(a.head),a.strstart=0,a.block_start=0,a.insert=0);let t=new Uint8Array(a.w_size);t.set(e.subarray(r-a.w_size,r),0),e=t,r=a.w_size}const l=t.avail_in,o=t.next_in,n=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,fe(a);a.lookahead>=3;){let t=a.strstart,e=a.lookahead-2;do{a.ins_h=St(a,a.ins_h,a.window[t+3-1]),a.prev[t&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=t,t++}while(--e);a.strstart=t,a.lookahead=2,fe(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=2,a.match_available=0,t.next_in=o,t.input=n,t.avail_in=l,a.wrap=f,It},deflateInfo:'pako deflate (from Nodeca project)'};const ue=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);I=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(r){if('object'!=typeof r)throw new TypeError(r+'must be non-object');for(const e in r)ue(r,e)&&(t[e]=r[e])}}return t},N=I,y=t=>{let e=0;for(let r=0,a=t.length;r<a;r++)e+=t[r].length;const r=new Uint8Array(e);for(let e=0,a=0,f=t.length;e<f;e++){let f=t[e];r.set(f,a),a+=f.length}return r};let Xe=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Xe=!1}const he=new Uint8Array(256);for(let t=0;t<256;t++)he[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;he[254]=he[254]=1,A=t=>{if('function'==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,r,a,f,l,o=t.length,n=0;for(f=0;f<o;f++)r=t.charCodeAt(f),55296==(64512&r)&&f+1<o&&(a=t.charCodeAt(f+1),56320==(64512&a)&&(r=65536+(r-55296<<10)+(a-56320),f++)),n+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(n),l=0,f=0;l<n;f++)r=t.charCodeAt(f),55296==(64512&r)&&f+1<o&&(a=t.charCodeAt(f+1),56320==(64512&a)&&(r=65536+(r-55296<<10)+(a-56320),f++)),r<128?e[l++]=r:r<2048?(e[l++]=192|r>>>6,e[l++]=128|63&r):r<65536?(e[l++]=224|r>>>12,e[l++]=128|r>>>6&63,e[l++]=128|63&r):(e[l++]=240|r>>>18,e[l++]=128|r>>>12&63,e[l++]=128|r>>>6&63,e[l++]=128|63&r);return e},L=(t,e)=>{const r=e||t.length;if('function'==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let a,f;const l=new Array(2*r);for(f=0,a=0;a<r;){let e=t[a++];if(e<128){l[f++]=e;continue}let o=he[e];if(o>4)l[f++]=65533,a+=o-1;else{for(e&=2===o?31:3===o?15:7;o>1&&a<r;)e=e<<6|63&t[a++],o--;o>1?l[f++]=65533:e<65536?l[f++]=e:(e-=65536,l[f++]=55296|e>>10&1023,l[f++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Xe)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r='';for(let a=0;a<e;a++)r+=String.fromCharCode(t[a]);return r})(l,f)},E=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let r=e-1;for(;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+he[t[r]]>e?r:e},Q=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg='',this.state=null,this.data_type=2,this.adler=0};const je=Object.prototype.toString,{Z_NO_FLUSH:ve,Z_SYNC_FLUSH:Be,Z_FULL_FLUSH:de,Z_FINISH:we,Z_OK:De,Z_STREAM_END:ce,Z_DEFAULT_COMPRESSION:We,Z_DEFAULT_STRATEGY:qe,Z_DEFLATED:Ge}=Y;o.prototype.push=function(t,e){const r=this.strm,a=this.options.chunkSize;let f,l;if(this.ended)return!1;for(l=e===~~e?e:!0===e?we:ve,r.input='string'==typeof t?A(t):'[object ArrayBuffer]'===je.call(t)?new Uint8Array(t):t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(a),r.next_out=0,r.avail_out=a),(l===Be||l===de)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(f=g.deflate(r,l),f===ce)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),f=g.deflateEnd(this.strm),this.onEnd(f),this.ended=!0,f===De;if(0!==r.avail_out){if(l>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},o.prototype.onData=function(t){this.chunks.push(t)},o.prototype.onEnd=function(t){t===De&&(this.result=y(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},U={Deflate:o,deflate:n,deflateRaw:function(t,e){return(e=e||{}).raw=!0,n(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,n(t,e)},constants:Y};const Ve=16209;Z=function(t,e){let r,a,f,l,o,n,P,i,s,H,b,u,X,h,j,v,B,d,w,D,c,W,q,G;const V=t.state;r=t.next_in,q=t.input,a=r+(t.avail_in-5),f=t.next_out,G=t.output,l=f-(e-t.avail_out),o=f+(t.avail_out-257),n=V.dmax,P=V.wsize,i=V.whave,s=V.wnext,H=V.window,b=V.hold,u=V.bits,X=V.lencode,h=V.distcode,j=(1<<V.lenbits)-1,v=(1<<V.distbits)-1;t:do{u<15&&(b+=q[r++]<<u,u+=8,b+=q[r++]<<u,u+=8),B=X[b&j];e:for(;;){if(d=B>>>24,b>>>=d,u-=d,d=B>>>16&255,0===d)G[f++]=65535&B;else{if(!(16&d)){if(64&d){if(32&d){V.mode=16191;break t}t.msg='invalid literal/length code',V.mode=Ve;break t}B=X[(65535&B)+(b&(1<<d)-1)];continue e}for(w=65535&B,d&=15,d&&(u<d&&(b+=q[r++]<<u,u+=8),w+=b&(1<<d)-1,b>>>=d,u-=d),u<15&&(b+=q[r++]<<u,u+=8,b+=q[r++]<<u,u+=8),B=h[b&v];;){if(d=B>>>24,b>>>=d,u-=d,d=B>>>16&255,16&d){if(D=65535&B,d&=15,u<d&&(b+=q[r++]<<u,u+=8,u<d&&(b+=q[r++]<<u,u+=8)),D+=b&(1<<d)-1,D>n){t.msg='invalid distance too far back',V.mode=Ve;break t}if(b>>>=d,u-=d,d=f-l,D>d){if(d=D-d,d>i&&V.sane){t.msg='invalid distance too far back',V.mode=Ve;break t}if(c=0,W=H,0===s){if(c+=P-d,d<w){w-=d;do{G[f++]=H[c++]}while(--d);c=f-D,W=G}}else if(s<d){if(c+=P+s-d,d-=s,d<w){w-=d;do{G[f++]=H[c++]}while(--d);if(c=0,s<w){d=s,w-=d;do{G[f++]=H[c++]}while(--d);c=f-D,W=G}}}else if(c+=s-d,d<w){w-=d;do{G[f++]=H[c++]}while(--d);c=f-D,W=G}for(;w>2;)G[f++]=W[c++],G[f++]=W[c++],G[f++]=W[c++],w-=3;w&&(G[f++]=W[c++],w>1&&(G[f++]=W[c++]))}else{c=f-D;do{G[f++]=G[c++],G[f++]=G[c++],G[f++]=G[c++],w-=3}while(w>2);w&&(G[f++]=G[c++],w>1&&(G[f++]=G[c++]))}break}if(64&d){t.msg='invalid distance code',V.mode=Ve;break t}B=h[(65535&B)+(b&(1<<d)-1)]}}break}}while(r<a&&f<o);w=u>>3,r-=w,u-=w<<3,b&=(1<<u)-1,t.next_in=r,t.next_out=f,t.avail_in=r<a?a-r+5:5-(r-a),t.avail_out=f<o?o-f+257:257-(f-o),V.hold=b,V.bits=u};const Ye=new Uint16Array([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]),ge=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Ie=new Uint16Array([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,0,0]),Ne=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);R=(t,e,r,a,f,l,o,n)=>{const P=n.bits;let i,s,H,b,u,X,h=0,j=0,v=0,B=0,d=0,w=0,D=0,c=0,W=0,q=0,G=null;const V=new Uint16Array(16),Y=new Uint16Array(16);let g,I,N,y=null;for(h=0;h<=15;h++)V[h]=0;for(j=0;j<a;j++)V[e[r+j]]++;for(d=P,B=15;B>=1&&0===V[B];B--);if(d>B&&(d=B),0===B)return f[l++]=20971520,f[l++]=20971520,n.bits=1,0;for(v=1;v<B&&0===V[v];v++);for(d<v&&(d=v),c=1,h=1;h<=15;h++)if(c<<=1,c-=V[h],c<0)return-1;if(c>0&&(0===t||1!==B))return-1;for(Y[1]=0,h=1;h<15;h++)Y[h+1]=Y[h]+V[h];for(j=0;j<a;j++)0!==e[r+j]&&(o[Y[e[r+j]]++]=j);if(0===t?(G=y=o,X=20):1===t?(G=Ye,y=ge,X=257):(G=Ie,y=Ne,X=0),q=0,j=0,h=v,u=l,w=d,D=0,H=-1,W=1<<d,b=W-1,1===t&&W>852||2===t&&W>592)return 1;for(;;){g=h-D,o[j]+1<X?(I=0,N=o[j]):o[j]>=X?(I=y[o[j]-X],N=G[o[j]-X]):(I=96,N=0),i=1<<h-D,s=1<<w,v=s;do{s-=i,f[u+(q>>D)+s]=g<<24|I<<16|N}while(0!==s);for(i=1<<h-1;q&i;)i>>=1;if(0!==i?(q&=i-1,q+=i):q=0,j++,0===--V[h]){if(h===B)break;h=e[r+o[j]]}if(h>d&&(q&b)!==H){for(0===D&&(D=d),u+=v,w=h-D,c=1<<w;w+D<B&&(c-=V[w+D],!(c<=0));)w++,c<<=1;if(W+=1<<w,1===t&&W>852||2===t&&W>592)return 1;H=q&b,f[H]=d<<24|w<<16|u-l}}return 0!==q&&(f[u+q]=h-D<<24|64<<16),n.bits=d,0};const{Z_FINISH:ye,Z_BLOCK:Ae,Z_TREES:Le,Z_OK:Ee,Z_STREAM_END:Qe,Z_NEED_DICT:Ue,Z_STREAM_ERROR:Ze,Z_DATA_ERROR:Re,Z_MEM_ERROR:pe,Z_BUF_ERROR:Fe,Z_DEFLATED:ze}=Y,Ke=16180,xe=16190,ke=16191,Ce=16192,Oe=16194,me=16199,Me=16200,Te=16206,Je=16209,Se=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24),_e=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Ke||e.mode>16211?1:0},$e=t=>{if(_e(t))return Ze;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg='',e.wrap&&(t.adler=1&e.wrap),e.mode=Ke,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,Ee},tr=t=>{if(_e(t))return Ze;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,$e(t)},er=(t,e)=>{let r;if(_e(t))return Ze;const a=t.state;return e<0?(r=0,e=-e):(r=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Ze:(null!==a.window&&a.wbits!==e&&(a.window=null),a.wrap=r,a.wbits=e,tr(t))},rr=(t,e)=>{if(!t)return Ze;const r=new P;t.state=r,r.strm=t,r.window=null,r.mode=Ke;const a=er(t,e);return a!==Ee&&(t.state=null),a};let ar,fr,lr=!0;const or=t=>{if(lr){ar=new Int32Array(512),fr=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(R(1,t.lens,0,288,ar,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;R(2,t.lens,0,32,fr,0,t.work,{bits:5}),lr=!1}t.lencode=ar,t.lenbits=9,t.distcode=fr,t.distbits=5},nr=(t,e,r,a)=>{let f;const l=t.state;return null===l.window&&(l.wsize=1<<l.wbits,l.wnext=0,l.whave=0,l.window=new Uint8Array(l.wsize)),a>=l.wsize?(l.window.set(e.subarray(r-l.wsize,r),0),l.wnext=0,l.whave=l.wsize):(f=l.wsize-l.wnext,f>a&&(f=a),l.window.set(e.subarray(r-a,r-a+f),l.wnext),(a-=f)?(l.window.set(e.subarray(r-a,r),0),l.wnext=a,l.whave=l.wsize):(l.wnext+=f,l.wnext===l.wsize&&(l.wnext=0),l.whave<l.wsize&&(l.whave+=f))),0};p={inflateReset:tr,inflateReset2:er,inflateResetKeep:$e,inflateInit:t=>rr(t,15),inflateInit2:rr,inflate:(t,e)=>{let r,a,f,l,o,n,P,i,s,H,b,u,X,h,j,v,B,d,w,D,c,W,V=0;const Y=new Uint8Array(4);let g,I;const N=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(_e(t)||!t.output||!t.input&&0!==t.avail_in)return Ze;r=t.state,r.mode===ke&&(r.mode=Ce),o=t.next_out,f=t.output,P=t.avail_out,l=t.next_in,a=t.input,n=t.avail_in,i=r.hold,s=r.bits,H=n,b=P,W=Ee;t:for(;;)switch(r.mode){case Ke:if(0===r.wrap){r.mode=Ce;break}for(;s<16;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}if(2&r.wrap&&35615===i){0===r.wbits&&(r.wbits=15),r.check=0,Y[0]=255&i,Y[1]=i>>>8&255,r.check=G(r.check,Y,2,0),i=0,s=0,r.mode=16181;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&i)<<8)+(i>>8))%31){t.msg='incorrect header check',r.mode=Je;break}if((15&i)!==ze){t.msg='unknown compression method',r.mode=Je;break}if(i>>>=4,s-=4,c=8+(15&i),0===r.wbits&&(r.wbits=c),c>15||c>r.wbits){t.msg='invalid window size',r.mode=Je;break}r.dmax=1<<r.wbits,r.flags=0,t.adler=r.check=1,r.mode=512&i?16189:ke,i=0,s=0;break;case 16181:for(;s<16;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}if(r.flags=i,(255&r.flags)!==ze){t.msg='unknown compression method',r.mode=Je;break}if(57344&r.flags){t.msg='unknown header flags set',r.mode=Je;break}r.head&&(r.head.text=i>>8&1),512&r.flags&&4&r.wrap&&(Y[0]=255&i,Y[1]=i>>>8&255,r.check=G(r.check,Y,2,0)),i=0,s=0,r.mode=16182;case 16182:for(;s<32;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}r.head&&(r.head.time=i),512&r.flags&&4&r.wrap&&(Y[0]=255&i,Y[1]=i>>>8&255,Y[2]=i>>>16&255,Y[3]=i>>>24&255,r.check=G(r.check,Y,4,0)),i=0,s=0,r.mode=16183;case 16183:for(;s<16;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}r.head&&(r.head.xflags=255&i,r.head.os=i>>8),512&r.flags&&4&r.wrap&&(Y[0]=255&i,Y[1]=i>>>8&255,r.check=G(r.check,Y,2,0)),i=0,s=0,r.mode=16184;case 16184:if(1024&r.flags){for(;s<16;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}r.length=i,r.head&&(r.head.extra_len=i),512&r.flags&&4&r.wrap&&(Y[0]=255&i,Y[1]=i>>>8&255,r.check=G(r.check,Y,2,0)),i=0,s=0}else r.head&&(r.head.extra=null);r.mode=16185;case 16185:if(1024&r.flags&&(u=r.length,u>n&&(u=n),u&&(r.head&&(c=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(a.subarray(l,l+u),c)),512&r.flags&&4&r.wrap&&(r.check=G(r.check,a,u,l)),n-=u,l+=u,r.length-=u),r.length))break t;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(0===n)break t;u=0;do{c=a[l+u++],r.head&&c&&r.length<65536&&(r.head.name+=String.fromCharCode(c))}while(c&&u<n);if(512&r.flags&&4&r.wrap&&(r.check=G(r.check,a,u,l)),n-=u,l+=u,c)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=16187;case 16187:if(4096&r.flags){if(0===n)break t;u=0;do{c=a[l+u++],r.head&&c&&r.length<65536&&(r.head.comment+=String.fromCharCode(c))}while(c&&u<n);if(512&r.flags&&4&r.wrap&&(r.check=G(r.check,a,u,l)),n-=u,l+=u,c)break t}else r.head&&(r.head.comment=null);r.mode=16188;case 16188:if(512&r.flags){for(;s<16;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}if(4&r.wrap&&i!==(65535&r.check)){t.msg='header crc mismatch',r.mode=Je;break}i=0,s=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=ke;break;case 16189:for(;s<32;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}t.adler=r.check=Se(i),i=0,s=0,r.mode=xe;case xe:if(0===r.havedict)return t.next_out=o,t.avail_out=P,t.next_in=l,t.avail_in=n,r.hold=i,r.bits=s,Ue;t.adler=r.check=1,r.mode=ke;case ke:if(e===Ae||e===Le)break t;case Ce:if(r.last){i>>>=7&s,s-=7&s,r.mode=Te;break}for(;s<3;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}switch(r.last=1&i,i>>>=1,s-=1,3&i){case 0:r.mode=16193;break;case 1:if(or(r),r.mode=me,e===Le){i>>>=2,s-=2;break t}break;case 2:r.mode=16196;break;case 3:t.msg='invalid block type',r.mode=Je}i>>>=2,s-=2;break;case 16193:for(i>>>=7&s,s-=7&s;s<32;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}if((65535&i)!=(i>>>16^65535)){t.msg='invalid stored block lengths',r.mode=Je;break}if(r.length=65535&i,i=0,s=0,r.mode=Oe,e===Le)break t;case Oe:r.mode=16195;case 16195:if(u=r.length,u){if(u>n&&(u=n),u>P&&(u=P),0===u)break t;f.set(a.subarray(l,l+u),o),n-=u,l+=u,P-=u,o+=u,r.length-=u;break}r.mode=ke;break;case 16196:for(;s<14;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}if(r.nlen=257+(31&i),i>>>=5,s-=5,r.ndist=1+(31&i),i>>>=5,s-=5,r.ncode=4+(15&i),i>>>=4,s-=4,r.nlen>286||r.ndist>30){t.msg='too many length or distance symbols',r.mode=Je;break}r.have=0,r.mode=16197;case 16197:for(;r.have<r.ncode;){for(;s<3;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}r.lens[N[r.have++]]=7&i,i>>>=3,s-=3}for(;r.have<19;)r.lens[N[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,g={bits:r.lenbits},W=R(0,r.lens,0,19,r.lencode,0,r.work,g),r.lenbits=g.bits,W){t.msg='invalid code lengths set',r.mode=Je;break}r.have=0,r.mode=16198;case 16198:for(;r.have<r.nlen+r.ndist;){for(;V=r.lencode[i&(1<<r.lenbits)-1],j=V>>>24,v=V>>>16&255,B=65535&V,!(j<=s);){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}if(B<16)i>>>=j,s-=j,r.lens[r.have++]=B;else{if(16===B){for(I=j+2;s<I;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}if(i>>>=j,s-=j,0===r.have){t.msg='invalid bit length repeat',r.mode=Je;break}c=r.lens[r.have-1],u=3+(3&i),i>>>=2,s-=2}else if(17===B){for(I=j+3;s<I;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}i>>>=j,s-=j,c=0,u=3+(7&i),i>>>=3,s-=3}else{for(I=j+7;s<I;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}i>>>=j,s-=j,c=0,u=11+(127&i),i>>>=7,s-=7}if(r.have+u>r.nlen+r.ndist){t.msg='invalid bit length repeat',r.mode=Je;break}for(;u--;)r.lens[r.have++]=c}}if(r.mode===Je)break;if(0===r.lens[256]){t.msg='invalid code -- missing end-of-block',r.mode=Je;break}if(r.lenbits=9,g={bits:r.lenbits},W=R(1,r.lens,0,r.nlen,r.lencode,0,r.work,g),r.lenbits=g.bits,W){t.msg='invalid literal/lengths set',r.mode=Je;break}if(r.distbits=6,r.distcode=r.distdyn,g={bits:r.distbits},W=R(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,g),r.distbits=g.bits,W){t.msg='invalid distances set',r.mode=Je;break}if(r.mode=me,e===Le)break t;case me:r.mode=Me;case Me:if(n>=6&&P>=258){t.next_out=o,t.avail_out=P,t.next_in=l,t.avail_in=n,r.hold=i,r.bits=s,Z(t,b),o=t.next_out,f=t.output,P=t.avail_out,l=t.next_in,a=t.input,n=t.avail_in,i=r.hold,s=r.bits,r.mode===ke&&(r.back=-1);break}for(r.back=0;V=r.lencode[i&(1<<r.lenbits)-1],j=V>>>24,v=V>>>16&255,B=65535&V,!(j<=s);){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}if(v&&!(240&v)){for(d=j,w=v,D=B;V=r.lencode[D+((i&(1<<d+w)-1)>>d)],j=V>>>24,v=V>>>16&255,B=65535&V,!(d+j<=s);){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}i>>>=d,s-=d,r.back+=d}if(i>>>=j,s-=j,r.back+=j,r.length=B,0===v){r.mode=16205;break}if(32&v){r.back=-1,r.mode=ke;break}if(64&v){t.msg='invalid literal/length code',r.mode=Je;break}r.extra=15&v,r.mode=16201;case 16201:if(r.extra){for(I=r.extra;s<I;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}r.length+=i&(1<<r.extra)-1,i>>>=r.extra,s-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=16202;case 16202:for(;V=r.distcode[i&(1<<r.distbits)-1],j=V>>>24,v=V>>>16&255,B=65535&V,!(j<=s);){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}if(!(240&v)){for(d=j,w=v,D=B;V=r.distcode[D+((i&(1<<d+w)-1)>>d)],j=V>>>24,v=V>>>16&255,B=65535&V,!(d+j<=s);){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}i>>>=d,s-=d,r.back+=d}if(i>>>=j,s-=j,r.back+=j,64&v){t.msg='invalid distance code',r.mode=Je;break}r.offset=B,r.extra=15&v,r.mode=16203;case 16203:if(r.extra){for(I=r.extra;s<I;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}r.offset+=i&(1<<r.extra)-1,i>>>=r.extra,s-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg='invalid distance too far back',r.mode=Je;break}r.mode=16204;case 16204:if(0===P)break t;if(u=b-P,r.offset>u){if(u=r.offset-u,u>r.whave&&r.sane){t.msg='invalid distance too far back',r.mode=Je;break}u>r.wnext?(u-=r.wnext,X=r.wsize-u):X=r.wnext-u,u>r.length&&(u=r.length),h=r.window}else h=f,X=o-r.offset,u=r.length;u>P&&(u=P),P-=u,r.length-=u;do{f[o++]=h[X++]}while(--u);0===r.length&&(r.mode=Me);break;case 16205:if(0===P)break t;f[o++]=r.length,P--,r.mode=Me;break;case Te:if(r.wrap){for(;s<32;){if(0===n)break t;n--,i|=a[l++]<<s,s+=8}if(b-=P,t.total_out+=b,r.total+=b,4&r.wrap&&b&&(t.adler=r.check=r.flags?G(r.check,f,b,o-b):q(r.check,f,b,o-b)),b=P,4&r.wrap&&(r.flags?i:Se(i))!==r.check){t.msg='incorrect data check',r.mode=Je;break}i=0,s=0}r.mode=16207;case 16207:if(r.wrap&&r.flags){for(;s<32;){if(0===n)break t;n--,i+=a[l++]<<s,s+=8}if(4&r.wrap&&i!==(4294967295&r.total)){t.msg='incorrect length check',r.mode=Je;break}i=0,s=0}r.mode=16208;case 16208:W=Qe;break t;case Je:W=Re;break t;case 16210:return pe;default:return Ze}return t.next_out=o,t.avail_out=P,t.next_in=l,t.avail_in=n,r.hold=i,r.bits=s,(r.wsize||b!==t.avail_out&&r.mode<Je&&(r.mode<Te||e!==ye))&&nr(t,t.output,t.next_out,b-t.avail_out),H-=t.avail_in,b-=t.avail_out,t.total_in+=H,t.total_out+=b,r.total+=b,4&r.wrap&&b&&(t.adler=r.check=r.flags?G(r.check,f,b,t.next_out-b):q(r.check,f,b,t.next_out-b)),t.data_type=r.bits+(r.last?64:0)+(r.mode===ke?128:0)+(r.mode===me||r.mode===Oe?256:0),(0===H&&0===b||e===ye)&&W===Ee&&(W=Fe),W},inflateEnd:t=>{if(_e(t))return Ze;let e=t.state;return e.window&&(e.window=null),t.state=null,Ee},inflateGetHeader:(t,e)=>{if(_e(t))return Ze;const r=t.state;return 2&r.wrap?(r.head=e,e.done=!1,Ee):Ze},inflateSetDictionary:(t,e)=>{const r=e.length;let a,f,l;return _e(t)?Ze:(a=t.state,0!==a.wrap&&a.mode!==xe?Ze:a.mode===xe&&(f=1,f=q(f,e,r,0),f!==a.check)?Re:(l=nr(t,e,r,r),l?(a.mode=16210,pe):(a.havedict=1,Ee)))},inflateInfo:'pako inflate (from Nodeca project)'},F=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name='',this.comment='',this.hcrc=0,this.done=!1};const Pr=Object.prototype.toString,{Z_NO_FLUSH:ir,Z_FINISH:sr,Z_OK:Hr,Z_STREAM_END:br,Z_NEED_DICT:ur,Z_STREAM_ERROR:Xr,Z_DATA_ERROR:hr,Z_MEM_ERROR:jr}=Y;i.prototype.push=function(t,e){const r=this.strm,a=this.options.chunkSize,f=this.options.dictionary;let l,o,n;if(this.ended)return!1;for(o=e===~~e?e:!0===e?sr:ir,r.input='[object ArrayBuffer]'===Pr.call(t)?new Uint8Array(t):t,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(a),r.next_out=0,r.avail_out=a),l=p.inflate(r,o),l===ur&&f&&(l=p.inflateSetDictionary(r,f),l===Hr?l=p.inflate(r,o):l===hr&&(l=ur));r.avail_in>0&&l===br&&r.state.wrap>0&&0!==t[r.next_in];)p.inflateReset(r),l=p.inflate(r,o);switch(l){case Xr:case hr:case ur:case jr:return this.onEnd(l),this.ended=!0,!1}if(n=r.avail_out,r.next_out&&(0===r.avail_out||l===br))if('string'===this.options.to){let t=E(r.output,r.next_out),e=r.next_out-t,f=L(r.output,t);r.next_out=e,r.avail_out=a-e,e&&r.output.set(r.output.subarray(t,t+e),0),this.onData(f)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(l!==Hr||0!==n){if(l===br)return l=p.inflateEnd(this.strm),this.onEnd(l),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},i.prototype.onData=function(t){this.chunks.push(t)},i.prototype.onEnd=function(t){t===Hr&&(this.result='string'===this.options.to?this.chunks.join(''):y(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},z={Inflate:i,inflate:s,inflateRaw:function(t,e){return(e=e||{}).raw=!0,s(t,e)},ungzip:s,constants:Y};const{Deflate:vr,deflate:Br,deflateRaw:dr,gzip:wr}=U,{Inflate:Dr,inflate:cr,inflateRaw:Wr,ungzip:qr}=z;K={Deflate:vr,deflate:Br,deflateRaw:dr,gzip:wr,Inflate:Dr,inflate:cr,inflateRaw:Wr,ungzip:qr,constants:Y};const Gr=function(){try{const t=Buffer.from('H4sIAAAAAAAAA7R9S3PcOLLuX3HMRpuDCVvT3YuzU7dky6OHHZLGDnlHFekqulikhizKlm/c/36RiVe+WPLcEye6w+1G4fvwIJBIJBKJ//O3o4dh3v/tv//P36a//feb//rb5m//HZP+62+P/u9/vjr5/ObV3d/+73/97WhVzVMjsoa0kPfi1cn561dfQt5hHnXmkJhzf3jz6ubVbchvUFPm+1f/8vUI3M1O5PQJIR+Uf4V5vo7ttBpivuOYDxKdTw2Z3/rC35+/eXX76uLVh8+vEbau2l6QY1JAvHt15vNfY85t9SwyQkqq7tn9G8wla6orKovrSY5Q0jjMfS1yhbSQ8wY/0fWrU8w9iZxTzAU1D129bzuRB1JCrjvskcuYT3JBCs0XPsf+e6UyQlLK+dkPi5i34vmq0lb8VVa+KrW/Twx/F1n+XnKE3xXJ3y2W+u98bGBKynX86vTV+8S3Uzl3NCf061XIqQrW5VapB/4R8zj/T+4pGI/Hrz7iNLpMY6iqHppxLepQOUyM3Xfy5tWfr85uXr96FwCrTdMrACYWQJis1wXQjKJqAeJ8ukJBYQG5zbBS0lZAcubuYdAt6RymRoAXCZe+MScfXvveeJdgswmbC+wswEgfdEYXdKUHEEB6oGufq43qgK51kJwac+wxfly88n+LqKnZb3TNMLX0wKUXMWe+qLvzhNo1utu6yWEyx135IeG7IgL3gy5sPzDInZdlsXa7od6rPsDEArjCTrgLgH41qGr1DhIL4BrGwIfjVKWxbnZyTFejqxu3y7P7BL7laZgpr9Jc98inatzK4sbaYXIpEKCfoMv93y4odFrATkvgIP98vvVGzFRMoqg4i