@zip.js/zip.js 2.5.3 → 2.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/z-worker-fflate.js +1 -1
  2. package/dist/z-worker-pako.js +1 -1
  3. package/dist/z-worker.js +1 -1
  4. package/dist/zip-fs-full.js +470 -499
  5. package/dist/zip-fs-full.min.js +1 -1
  6. package/dist/zip-fs.js +470 -499
  7. package/dist/zip-fs.min.js +1 -1
  8. package/dist/zip-full.js +470 -499
  9. package/dist/zip-full.min.js +1 -1
  10. package/dist/zip-no-worker-deflate.min.js +1 -1
  11. package/dist/zip-no-worker-inflate.min.js +1 -1
  12. package/dist/zip-no-worker.min.js +1 -1
  13. package/dist/zip.js +470 -499
  14. package/dist/zip.min.js +1 -1
  15. package/index-fflate.js +1 -1
  16. package/index.d.ts +1 -1
  17. package/index.js +3 -3
  18. package/lib/core/{engine.js → codec-interface.js} +52 -50
  19. package/lib/core/{codecs/codec-pool-worker.js → codec-pool-worker.js} +55 -29
  20. package/lib/core/{codecs/codec-pool.js → codec-pool.js} +28 -9
  21. package/lib/core/configuration.js +10 -1
  22. package/lib/core/io.js +102 -100
  23. package/lib/core/{codecs → streams}/aes-crypto-stream.js +68 -54
  24. package/lib/core/{codecs → streams}/codec-stream.js +6 -6
  25. package/lib/core/{codecs → streams/codecs}/crc32.js +0 -0
  26. package/lib/core/{codecs → streams/codecs}/deflate.js +0 -0
  27. package/lib/core/{codecs → streams/codecs}/inflate.js +0 -0
  28. package/lib/core/{codecs → streams/codecs}/sjcl.js +0 -0
  29. package/lib/core/{codecs → streams}/crc32-stream.js +3 -4
  30. package/lib/core/{codecs → streams}/zip-crypto-stream.js +28 -32
  31. package/lib/core/streams/zip-entry-stream.js +185 -0
  32. package/lib/core/z-worker-core.js +30 -15
  33. package/lib/core/zip-fs-core.js +1 -1
  34. package/lib/core/zip-reader.js +21 -12
  35. package/lib/core/zip-writer.js +33 -25
  36. package/lib/z-worker-fflate.js +4 -1
  37. package/lib/z-worker-inline.js +1 -1
  38. package/lib/z-worker.js +2 -2
  39. package/lib/zip-fflate-shim.js +4 -1
  40. package/lib/zip-fs.js +6 -2
  41. package/lib/zip-full-fflate.js +6 -3
  42. package/lib/zip-full.js +8 -5
  43. package/lib/zip-no-worker-deflate.js +7 -3
  44. package/lib/zip-no-worker-fflate-deflate.js +6 -2
  45. package/lib/zip-no-worker-fflate-inflate.js +6 -3
  46. package/lib/zip-no-worker-fflate.js +6 -3
  47. package/lib/zip-no-worker-inflate.js +7 -4
  48. package/lib/zip-no-worker.js +8 -5
  49. package/lib/zip.js +6 -3
  50. package/package.json +2 -8
  51. package/lib/core/codecs/codec.js +0 -246
@@ -1 +1 @@
1
- ((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).zip={})})(this,(function(e){"use strict";const{Array:t,Object:n,String:r,BigInt:i,Math:s,Date:a,Map:o,URL:c,Error:l,Uint8Array:d,Uint16Array:u,Uint32Array:f,DataView:h,Blob:p,Promise:w,TextEncoder:g,TextDecoder:m,FileReader:y,document:k,crypto:b,btoa:v,TransformStream:_,ReadableStream:S,WritableStream:C,CompressionStream:z,DecompressionStream:R}=globalThis,E={chunkSize:524288,maxWorkers:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||2,terminateWorkerTimeout:5e3,useWebWorkers:!0,workerScripts:void 0},x=n.assign({},E);function D(){return x}function A(e){if(void 0!==e.baseURL&&(x.baseURL=e.baseURL),void 0!==e.chunkSize&&(x.chunkSize=e.chunkSize),void 0!==e.maxWorkers&&(x.maxWorkers=e.maxWorkers),void 0!==e.terminateWorkerTimeout&&(x.terminateWorkerTimeout=e.terminateWorkerTimeout),void 0!==e.useWebWorkers&&(x.useWebWorkers=e.useWebWorkers),void 0!==e.Deflate&&(x.Deflate=e.Deflate),void 0!==e.Inflate&&(x.Inflate=e.Inflate),void 0!==e.workerScripts){if(e.workerScripts.deflate){if(!t.isArray(e.workerScripts.deflate))throw new l("workerScripts.deflate must be an array");x.workerScripts||(x.workerScripts={}),x.workerScripts.deflate=e.workerScripts.deflate}if(e.workerScripts.inflate){if(!t.isArray(e.workerScripts.inflate))throw new l("workerScripts.inflate must be an array");x.workerScripts||(x.workerScripts={}),x.workerScripts.inflate=e.workerScripts.inflate}}}function T(e,t,r){return class{constructor(i){const s=this;i.hasOwnProperty("level")&&void 0===i.level&&delete i.level,s.codec=new e(n.assign({},t,i)),r(s.codec,(e=>{if(s.pendingData){const t=s.pendingData;s.pendingData=new d(t.length+e.length),s.pendingData.set(t,0),s.pendingData.set(e,t.length)}else s.pendingData=new d(e)}))}append(e){return this.codec.push(e),i(this)}flush(){return this.codec.push(new d(0),!0),i(this)}};function i(e){if(e.pendingData){const t=e.pendingData;return e.pendingData=null,t}return new d(0)}}const F=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;F[e]=t}class I{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^F[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class U extends _{constructor(){super({start(){this.crc32=new I},transform(e){e&&this.crc32.append(e)},flush(e){const t=new d(4);new h(t.buffer).setUint32(0,this.crc32.get()),e.enqueue(t)}})}}function V(e){if(void 0===g){const t=new d((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new g).encode(e)}const B={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=B.getPartial(n);return 32===r?e.concat(t):B._shiftRight(t,r,0|n,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+B.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,s.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=B.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>s.round(e/1099511627776)||32,_shiftRight(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let i=0;i<e.length;i++)r.push(n|e[i]>>>t),n=e[i]<<32-t;const i=e.length?e[e.length-1]:0,s=B.getPartial(i);return r.push(B.partial(t+s&31,t+s>32?n:r.pop(),1)),r}},P={bytes:{fromBits(e){const t=B.bitLength(e)/8,n=new d(t);let r;for(let i=0;t>i;i++)0==(3&i)&&(r=e[i/4]),n[i]=r>>>24,r<<=8;return n},toBits(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3==(3&n)&&(t.push(r),r=0);return 3&n&&t.push(B.partial(8*(3&n),r)),t}}},W={sha1:function(e){e?(this._h=e._h.slice(0),this._buffer=e._buffer.slice(0),this._length=e._length):this.reset()}};W.sha1.prototype={blockSize:512,reset:function(){const e=this;return e._h=this._init.slice(0),e._buffer=[],e._length=0,e},update:function(e){const t=this;"string"==typeof e&&(e=P.utf8String.toBits(e));const n=t._buffer=B.concat(t._buffer,e),r=t._length,i=t._length=r+B.bitLength(e);if(i>9007199254740991)throw new l("Cannot hash more than 2^53 - 1 bits");const s=new f(n);let a=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t._block(s.subarray(16*a,16*(a+1))),a+=1;return n.splice(0,16*a),t},finalize:function(){const e=this;let t=e._buffer;const n=e._h;t=B.concat(t,[B.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(s.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:(e,t,n,r)=>e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r,_S:(e,t)=>t<<e|t>>>32-e,_block:function(e){const n=this,r=n._h,i=t(80);for(let t=0;16>t;t++)i[t]=e[t];let a=r[0],o=r[1],c=r[2],l=r[3],d=r[4];for(let e=0;79>=e;e++){16>e||(i[e]=n._S(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n._S(5,a)+n._f(e,o,c,l)+d+i[e]+n._key[s.floor(e/20)]|0;d=l,l=c,c=n._S(30,o),o=a,a=t}r[0]=r[0]+a|0,r[1]=r[1]+o|0,r[2]=r[2]+c|0,r[3]=r[3]+l|0,r[4]=r[4]+d|0}};const M={getRandomValues(e){const t=new f(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(s.random()>.5?1:-1))};for(let r,i=0;i<e.length;i+=4){const e=n(4294967296*(r||s.random()));r=987654071*e(),t[i/4]=4294967296*e()|0}return e}},L={importKey:e=>new L.hmacSha1(P.bytes.toBits(e)),pbkdf2(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new l("invalid params to pbkdf2");const i=1+(r>>5)<<2;let s,a,o,c,d;const u=new ArrayBuffer(i),f=new h(u);let p=0;const w=B;for(t=P.bytes.toBits(t),d=1;(i||1)>p;d++){for(s=a=e.encrypt(w.concat(t,[d])),o=1;n>o;o++)for(a=e.encrypt(a),c=0;c<a.length;c++)s[c]^=a[c];for(o=0;(i||1)>p&&o<s.length;o++)f.setInt32(p,s[o]),p+=4}return u.slice(0,r/8)},hmacSha1:class{constructor(e){const t=this,n=t._hash=W.sha1,r=[[],[]],i=n.prototype.blockSize/32;t._baseHash=[new n,new n],e.length>i&&(e=n.hash(e));for(let t=0;i>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t._baseHash[0].update(r[0]),t._baseHash[1].update(r[1]),t._resultHash=new n(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){this._updated=!0,this._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}encrypt(e){if(this._updated)throw new l("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},H="Invalid pasword",N=16,q={name:"PBKDF2"},O=n.assign({hash:{name:"HMAC"}},q),Z=n.assign({iterations:1e3,hash:{name:"SHA-1"}},q),K=["deriveBits"],j=[8,12,16],X=[16,24,32],G=10,$=[0,0,0,0],Y=void 0!==b,J=Y&&void 0!==b.subtle,Q=P.bytes,ee=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],r=t._tables[1],i=e.length;let s,a,o,c=1;if(4!==i&&6!==i&&8!==i)throw new l("invalid aes key size");for(t._key=[a=e.slice(0),o=[]],s=i;4*i+28>s;s++){let e=a[s-1];(s%i==0||8===i&&s%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],s%i==0&&(e=e<<8^e>>>24^c<<24,c=c<<1^283*(c>>7))),a[s]=a[s-i]^e}for(let e=0;s;e++,s--){const t=a[3&e?s:s-4];o[e]=4>=s||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],i=[],s=[];let a,o,c,l;for(let e=0;256>e;e++)s[(i[e]=e<<1^283*(e>>7))^e]=e;for(let d=a=0;!n[d];d^=o||1,a=s[a]||1){let s=a^a<<1^a<<2^a<<3^a<<4;s=s>>8^255&s^99,n[d]=s,r[s]=d,l=i[c=i[o=i[d]]];let u=16843009*l^65537*c^257*o^16843008*d,f=257*i[s]^16843008*s;for(let n=0;4>n;n++)e[n][d]=f=f<<24^f>>>8,t[n][s]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new l("invalid aes block size");const n=this._key[t],r=n.length/4-2,i=[0,0,0,0],s=this._tables[t],a=s[0],o=s[1],c=s[2],d=s[3],u=s[4];let f,h,p,w=e[0]^n[0],g=e[t?3:1]^n[1],m=e[2]^n[2],y=e[t?1:3]^n[3],k=4;for(let e=0;r>e;e++)f=a[w>>>24]^o[g>>16&255]^c[m>>8&255]^d[255&y]^n[k],h=a[g>>>24]^o[m>>16&255]^c[y>>8&255]^d[255&w]^n[k+1],p=a[m>>>24]^o[y>>16&255]^c[w>>8&255]^d[255&g]^n[k+2],y=a[y>>>24]^o[w>>16&255]^c[g>>8&255]^d[255&m]^n[k+3],k+=4,w=f,g=h,m=p;for(let e=0;4>e;e++)i[t?3&-e:e]=u[w>>>24]<<24^u[g>>16&255]<<16^u[m>>8&255]<<8^u[255&y]^n[k++],f=w,w=g,g=m,m=y,y=f;return i}},te=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];const i=B.bitLength(t);for(let i=0;r>i;i+=4){this.incCounter(n);const r=e.encrypt(n);t[i]^=r[0],t[i+1]^=r[1],t[i+2]^=r[2],t[i+3]^=r[3]}return B.clamp(t,i)}},ne=L.hmacSha1;class re extends _{constructor(e,r,i){let s;super({start(){n.assign(this,{ready:new w((e=>this.resolveReady=e)),password:e,signed:r,strength:i-1,pending:new d(0)})},async transform(e,n){if(e&&e.length){const r=this;if(r.password){const n=r.password;r.password=null;const i=ce(e,0,j[r.strength]+2);await(async(e,t,n)=>{await ae(e,n,ce(t,0,j[e.strength]));const r=ce(t,j[e.strength]),i=e.keys.passwordVerification;if(i[0]!=r[0]||i[1]!=r[1])throw new l(H)})(r,i,n),r.aesCtrGladman=new te(new ee(r.keys.key),t.from($)),r.hmac=new ne(r.keys.authentication),e=ce(e,j[r.strength]+2),r.resolveReady()}else await r.ready;const i=new d(e.length-G-(e.length-G)%N);n.enqueue(se(r,e,i,0,G,!0))}},async flush(e){const t=this;await t.ready;const n=t.pending,r=ce(n,0,n.length-G),i=ce(n,n.length-G);let a=new d(0);if(r.length){const e=Q.toBits(r);t.hmac.update(e);const n=t.aesCtrGladman.update(e);a=Q.fromBits(n)}if(s.valid=!0,t.signed){const e=ce(Q.fromBits(t.hmac.digest()),0,G);for(let t=0;G>t;t++)e[t]!=i[t]&&(s.valid=!1)}e.enqueue(a)}}),s=this}}class ie extends _{constructor(e,r){let i;super({start(){n.assign(this,{ready:new w((e=>this.resolveReady=e)),password:e,strength:r-1,pending:new d(0)})},async transform(e,n){if(e&&e.length){const r=this;let i=new d(0);if(r.password){const e=r.password;r.password=null,i=await(async(e,t)=>{const n=(r=new d(j[e.strength]),Y&&"function"==typeof b.getRandomValues?b.getRandomValues(r):M.getRandomValues(r));var r;return await ae(e,t,n),oe(n,e.keys.passwordVerification)})(r,e),r.aesCtrGladman=new te(new ee(r.keys.key),t.from($)),r.hmac=new ne(r.keys.authentication),r.resolveReady()}else await r.ready;const s=new d(i.length+e.length-e.length%N);s.set(i,0),n.enqueue(se(r,e,s,i.length,0))}},async flush(e){const t=this;await t.ready;let n=new d(0);if(t.pending.length){const e=t.aesCtrGladman.update(Q.toBits(t.pending));t.hmac.update(e),n=Q.fromBits(e)}i.signature=Q.fromBits(t.hmac.digest()).slice(0,G),e.enqueue(oe(n,i.signature))}}),i=this}}function se(e,t,n,r,i,s){const a=t.length-i;let o;for(e.pending.length&&(t=oe(e.pending,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new d(t)).set(n,0)}return e})(n,a-a%N)),o=0;a-N>=o;o+=N){const i=Q.toBits(ce(t,o,o+N));s&&e.hmac.update(i);const a=e.aesCtrGladman.update(i);s||e.hmac.update(a),n.set(Q.fromBits(a),o+r)}return e.pending=ce(t,o),n}async function ae(e,t,r){const i=V(t),s=await((e,t,n,r,i)=>Y&&J&&"function"==typeof b.subtle.importKey?b.subtle.importKey("raw",t,n,!1,i):L.importKey(t))(0,i,O,0,K),a=await(async(e,t,n)=>Y&&J&&"function"==typeof b.subtle.deriveBits?await b.subtle.deriveBits(e,t,n):L.pbkdf2(t,e.salt,Z.iterations,n))(n.assign({salt:r},Z),s,8*(2*X[e.strength]+2)),o=new d(a);e.keys={key:Q.toBits(ce(o,0,X[e.strength])),authentication:Q.toBits(ce(o,X[e.strength],2*X[e.strength])),passwordVerification:ce(o,2*X[e.strength])}}function oe(e,t){let n=e;return e.length+t.length&&(n=new d(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}class le extends _{constructor(e,t){let r;super({start(){n.assign(this,{password:e,passwordVerification:t}),he(this,e)},transform(e,t){if(e&&e.length){const n=this;if(n.password){const t=ue(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new l(H);e=e.subarray(12)}t.enqueue(ue(n,e))}},flush(){r.valid=!0}}),r=this}}class de extends _{constructor(e,t){super({start(){n.assign(this,{password:e,passwordVerification:t}),he(this,e)},transform(e,t){if(e&&e.length){const n=this;let r,i;if(n.password){n.password=null;const t=b.getRandomValues(new d(12));t[11]=n.passwordVerification,r=new d(e.length+t.length),r.set(fe(n,t),0),i=12}else r=new d(e.length),i=0;r.set(fe(n,e),i),t.enqueue(r)}},flush(){}})}}function ue(e,t){const n=new d(t.length);for(let r=0;r<t.length;r++)n[r]=we(e)^t[r],pe(e,n[r]);return n}function fe(e,t){const n=new d(t.length);for(let r=0;r<t.length;r++)n[r]=we(e)^t[r],pe(e,t[r]);return n}function he(e,t){e.keys=[305419896,591751049,878082192],e.crcKey0=new I(e.keys[0]),e.crcKey2=new I(e.keys[2]);for(let n=0;n<t.length;n++)pe(e,t.charCodeAt(n))}function pe(e,t){e.crcKey0.append([t]),e.keys[0]=~e.crcKey0.get(),e.keys[1]=me(e.keys[1]+ge(e.keys[0])),e.keys[1]=me(s.imul(e.keys[1],134775813)+1),e.crcKey2.append([e.keys[1]>>>24]),e.keys[2]=~e.crcKey2.get()}function we(e){const t=2|e.keys[2];return ge(s.imul(t,1^t)>>>8)}function ge(e){return 255&e}function me(e){return 4294967295&e}class ye extends _{constructor(e,t){super({start(){this.codec=new e(t)},transform(e,t){(e=this.codec.append(e))&&t.enqueue(e)},flush(e){const t=this.codec.flush();t&&e.enqueue(t)}})}}const ke="deflate",be="inflate",ve="Invalid signature",_e="data";class Se{constructor(e,{signature:t,password:r,signed:i,compressed:s,zipCrypto:a,passwordVerification:o,encryptionStrength:c,useCompressionStream:l},{chunkSize:d}){const u=this;function f(){u.stream=u.stream.pipeThrough(new ye(e,{chunkSize:d}))}u.start=async()=>{const e=!!r;if(n.assign(u,{signature:t,encrypted:e,signed:i,compressed:s,zipCrypto:a,stream:new S({async pull(e){const{value:t,done:n}=await u.pull();e.enqueue(t),(n||u.aborted)&&e.close()}})}),e&&(a?u.stream=u.stream.pipeThrough(new le(r,o)):(u.decryptStream=new re(r,i,c),u.stream=u.stream.pipeThrough(u.decryptStream))),s)if(void 0!==l&&!l||void 0===R)f();else try{u.stream=u.stream.pipeThrough(new R("deflate-raw"))}catch(e){f()}if((!e||a)&&i){const e=u.stream.tee();u.stream=e[0],u.crc32Stream=e[1].pipeThrough(new U)}u.reader=u.stream.getReader(),await u.read()},u.abort=()=>u.aborted=!0}async read(){const e=this,{value:t,done:n}=await e.reader.read();if(t&&t.length&&e.ondata({value:{data:new d(t)}}),n){let t;if(e.encrypted&&!e.zipCrypto&&!e.decryptStream.valid)throw new l(ve);if((!e.encrypted||e.zipCrypto)&&e.signed){t=await e.crc32Stream.getReader().read();const n=new h(t.value.buffer);if(e.signature!=n.getUint32(0,!1))throw new l(ve)}e.ondata({value:{signature:t},done:n})}else await e.read()}}class Ce{constructor(e,{encrypted:t,signed:r,compressed:i,level:s,zipCrypto:a,password:o,passwordVerification:c,encryptionStrength:l,useCompressionStream:d},{chunkSize:u}){const f=this;function h(){f.stream=f.stream.pipeThrough(new ye(e,{chunkSize:u,level:s}))}f.start=async()=>{if(n.assign(this,{encrypted:t,signed:r,compressed:i,zipCrypto:a,stream:new S({async pull(e){const{value:t,done:n}=await f.pull();e.enqueue(t),(n||f.aborted)&&e.close()}})}),(!t||a)&&r){const e=f.stream.tee();f.stream=e[0],f.crc32Stream=e[1].pipeThrough(new U({chunkSize:u}))}if(i)if(void 0!==d&&!d||void 0===z)h();else try{f.stream=f.stream.pipeThrough(new z("deflate-raw"))}catch(e){h()}t&&(a?f.stream=f.stream.pipeThrough(new de(o,c)):(f.encryptStream=new ie(o,l),f.stream=f.stream.pipeThrough(f.encryptStream))),f.reader=f.stream.getReader(),await f.read()},f.abort=()=>f.aborted=!0}async read(){const e=this,{value:t,done:n}=await e.reader.read();if(t&&t.length&&e.ondata({value:{data:t}}),n){let t;e.encrypted&&!e.zipCrypto&&(t=e.encryptStream.signature),e.encrypted&&!e.zipCrypto||!e.signed||(t=await e.crc32Stream.getReader().read(),t=new h(t.value.buffer).getUint32(0)),e.ondata({value:{signature:t},done:n})}else await e.read()}}let ze=!0;function Re(e,t,r,i,s,a,o){return n.assign(e,{busy:!0,codecConstructor:t,options:n.assign({},r),scripts:o,terminate(){e.worker&&!e.busy&&(e.worker.terminate(),e.interface=null)},onTaskFinished(){e.busy=!1,s(e)}}),a?((e,{baseURL:t,chunkSize:n})=>{const r={type:"module"};if(!e.interface){if(ze)try{e.worker=i({})}catch(t){ze=!1,e.worker=i(r)}else e.worker=i(r);e.worker.addEventListener("message",(async t=>{const n=t.data,r=n.error,i=e.interface;try{if(r){const t=new l(r.message);t.stack=r.stack,i.onerror(t),e.onTaskFinished()}else{if("pull"==n.type){const{value:e,done:t}=await i.pull();s({type:_e,data:e,done:t,messageId:n.messageId})}if(n.type==_e){const{value:t}=n.data;t&&t.data&&(t.data=new d(t.data)),await Ee(e,i,n.data)}}}catch(t){i.onerror(t),e.onTaskFinished()}}),!1),e.interface={abort(){s({type:"abort"}),e.onTaskFinished()},start(){const t=e.options;s({type:"start",scripts:e.scripts.slice(1),options:t,config:{chunkSize:n}})}}}return e.interface;function i(n){let r,i;r=e.scripts[0],"function"==typeof r&&(r=r());try{i=new c(r,t)}catch(e){i=r}return new Worker(i,n)}function s(t){const n=e.worker;try{if(t.data)try{t.data=t.data.buffer,n.postMessage(t,[t.data])}catch(e){n.postMessage(t)}else n.postMessage(t)}catch(t){throw e.onTaskFinished(),t}}})(e,i):((e,t)=>{const n=((e,t,n)=>t.codecType.startsWith(ke)?new Ce(e,t,n):t.codecType.startsWith(be)?new Se(e,t,n):void 0)(e.codecConstructor,e.options,t),r={abort(){n.abort(),e.onTaskFinished()},start:()=>n.start()};return n.pull=()=>r.pull(),n.ondata=t=>Ee(e,r,t),r})(e,i)}async function Ee(e,t,n){let{value:r,done:i}=n;i?(await t.ondata({value:{data:r.data,signature:r.signature},done:i}),e.onTaskFinished()):r.data&&await t.ondata({value:{data:r.data}})}let xe=[];const De=[];let Ae=0;function Te(e,t,n){const r=!(!t.compressed&&!t.signed&&!t.encrypted)&&(t.useWebWorkers||void 0===t.useWebWorkers&&n.useWebWorkers),i=r&&n.workerScripts?n.workerScripts[t.codecType]:[];if(t.useCompressionStream=void 0===t.useCompressionStream?n.useCompressionStream:t.useCompressionStream,xe.length<n.maxWorkers){const a={indexWorker:Ae};return Ae++,xe.push(a),Re(a,e,t,n,s,r,i)}{const a=xe.find((e=>!e.busy));return a?(Fe(a),Re(a,e,t,n,s,r,i)):new w((n=>De.push({resolve:n,codecConstructor:e,options:t,webWorker:r,scripts:i})))}function s(e){if(De.length){const[{resolve:t,codecConstructor:r,options:i,webWorker:a,scripts:o}]=De.splice(0,1);t(Re(e,r,i,n,s,a,o))}else e.worker?(Fe(e),Number.isFinite(n.terminateWorkerTimeout)&&n.terminateWorkerTimeout>=0&&(e.terminateTimeout=setTimeout((()=>{xe=xe.filter((t=>t!=e)),e.terminate()}),n.terminateWorkerTimeout))):xe=xe.filter((t=>t!=e))}}function Fe(e){e.terminateTimeout&&(clearTimeout(e.terminateTimeout),e.terminateTimeout=null)}const Ie="HTTP error ",Ue="HTTP Range not supported",Ve="Reader is not seekable",Be="text/plain",Pe="GET";class We{constructor(){this.size=0}init(){this.initialized=!0}}class Me extends We{}class Le extends We{writeUint8Array(e){this.size+=e.length}}class He extends Me{constructor(e){super(),this.blobReader=new Ze(new p([e],{type:Be}))}init(){super.init(),this.blobReader.init(),this.size=this.blobReader.size}readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}}class Ne extends Le{constructor(e){super(),this.encoding=e,this.blob=new p([],{type:Be})}writeUint8Array(e){super.writeUint8Array(e),this.blob=new p([this.blob,e.buffer],{type:Be})}getData(){if(this.blob.text)return this.blob.text();{const e=new y;return new w(((t,n)=>{e.onload=e=>t(e.target.result),e.onerror=()=>n(e.error),e.readAsText(this.blob,this.encoding)}))}}}class qe extends Me{constructor(e){super(),this.dataURI=e;let t=e.length;for(;"="==e.charAt(t-1);)t--;this.dataStart=e.indexOf(",")+1,this.size=s.floor(.75*(t-this.dataStart))}readUint8Array(e,t){const n=new d(t),r=4*s.floor(e/3),i=atob(this.dataURI.substring(r+this.dataStart,4*s.ceil((e+t)/3)+this.dataStart)),a=e-3*s.floor(r/4);for(let e=a;a+t>e;e++)n[e-a]=i.charCodeAt(e);return n}}class Oe extends Le{constructor(e){super(),this.data="data:"+(e||"")+";base64,",this.pending=[]}writeUint8Array(e){super.writeUint8Array(e);let t=0,n=this.pending;const i=this.pending.length;for(this.pending="",t=0;t<3*s.floor((i+e.length)/3)-i;t++)n+=r.fromCharCode(e[t]);for(;t<e.length;t++)this.pending+=r.fromCharCode(e[t]);n.length>2?this.data+=v(n):this.pending=n}getData(){return this.data+v(this.pending)}}class Ze extends Me{constructor(e){super(),this.blob=e,this.size=e.size}async readUint8Array(e,t){if(this.blob.arrayBuffer)return new d(await this.blob.slice(e,e+t).arrayBuffer());{const n=new y;return new w(((r,i)=>{n.onload=e=>r(new d(e.target.result)),n.onerror=()=>i(n.error),n.readAsArrayBuffer(this.blob.slice(e,e+t))}))}}}class Ke extends Le{constructor(e){super(),this.contentType=e,this.arrayBuffersMaxlength=8,je(this)}writeUint8Array(e){super.writeUint8Array(e),this.arrayBuffers.length==this.arrayBuffersMaxlength&&Xe(this),this.arrayBuffers.push(e.buffer)}getData(){return this.blob||(this.arrayBuffers.length&&Xe(this),this.blob=this.pendingBlob,je(this)),this.blob}}function je(e){e.pendingBlob=new p([],{type:e.contentType}),e.arrayBuffers=[]}function Xe(e){e.pendingBlob=new p([e.pendingBlob,...e.arrayBuffers],{type:e.contentType}),e.arrayBuffers=[]}class Ge extends Me{constructor(e,t){super(),this.url=e,this.preventHeadRequest=t.preventHeadRequest,this.useRangeHeader=t.useRangeHeader,this.forceRangeRequests=t.forceRangeRequests,this.options=n.assign({},t),delete this.options.preventHeadRequest,delete this.options.useRangeHeader,delete this.options.forceRangeRequests,delete this.options.useXHR}async init(){super.init(),await Ye(this,st,tt)}readUint8Array(e,t){return Je(this,e,t,st,tt)}}class $e extends Me{constructor(e,t){super(),this.url=e,this.preventHeadRequest=t.preventHeadRequest,this.useRangeHeader=t.useRangeHeader,this.forceRangeRequests=t.forceRangeRequests,this.options=t}async init(){super.init(),await Ye(this,at,nt)}readUint8Array(e,t){return Je(this,e,t,at,nt)}}async function Ye(e,t,n){if((e=>{if(void 0!==k){const t=k.createElement("a");return t.href=e,"http:"==t.protocol||"https:"==t.protocol}return/^https?:\/\//i.test(e)})(e.url)&&(e.useRangeHeader||e.forceRangeRequests)){const r=await t(Pe,e,Qe(e));if(!e.forceRangeRequests&&"bytes"!=r.headers.get("Accept-Ranges"))throw new l(Ue);{let i;const s=r.headers.get("Content-Range");if(s){const e=s.trim().split(/\s*\/\s*/);if(e.length){const t=e[1];t&&"*"!=t&&(i=Number(t))}}void 0===i?await it(e,t,n):e.size=i}}else await it(e,t,n)}async function Je(e,t,n,r,i){if(e.useRangeHeader||e.forceRangeRequests){const i=await r(Pe,e,Qe(e,t,n));if(206!=i.status)throw new l(Ue);return new d(await i.arrayBuffer())}return e.data||await i(e,e.options),new d(e.data.subarray(t,t+n))}function Qe(e,t=0,r=1){return n.assign({},et(e),{Range:"bytes="+t+"-"+(t+r-1)})}function et(e){const t=e.options.headers;if(t)return Symbol.iterator in t?n.fromEntries(t):t}async function tt(e){await rt(e,st)}async function nt(e){await rt(e,at)}async function rt(e,t){const n=await t(Pe,e,et(e));e.data=new d(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function it(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const r=(await t("HEAD",e,et(e))).headers.get("Content-Length");r?e.size=Number(r):await n(e,e.options)}}async function st(e,{options:t,url:r},i){const s=await fetch(r,n.assign({},t,{method:e,headers:i}));if(400>s.status)return s;throw new l(Ie+(s.statusText||s.status))}function at(e,{url:t},r){return new w(((i,s)=>{const a=new XMLHttpRequest;if(a.addEventListener("load",(()=>{if(400>a.status){const e=[];a.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach((t=>{const n=t.trim().split(/\s*:\s*/);n[0]=n[0].trim().replace(/^[a-z]|-[a-z]/g,(e=>e.toUpperCase())),e.push(n)})),i({status:a.status,arrayBuffer:()=>a.response,headers:new o(e)})}else s(new l(Ie+(a.statusText||a.status)))}),!1),a.addEventListener("error",(e=>s(e.detail.error)),!1),a.open(e,t),r)for(const e of n.entries(r))a.setRequestHeader(e[0],e[1]);a.responseType="arraybuffer",a.send()}))}class ot extends Me{constructor(e,t={}){super(),this.url=e,t.useXHR?this.reader=new $e(e,t):this.reader=new Ge(e,t)}set size(e){}get size(){return this.reader.size}async init(){super.init(),await this.reader.init()}readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}class ct extends Me{constructor(e){super(),this.array=e,this.size=e.length}readUint8Array(e,t){return this.array.slice(e,e+t)}}class lt extends Le{constructor(){super(),this.array=new d(0)}writeUint8Array(e){super.writeUint8Array(e);const t=this.array;this.array=new d(t.length+e.length),this.array.set(t),this.array.set(e,t.length)}getData(){return this.array}}const dt=4294967295,ut=65535,ft=67324752,ht=33639248,pt=101075792,wt=117853008,gt=21589,mt=2048,yt="/",kt=new a(2107,11,31),bt=new a(1980,0,1),vt="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");function _t(e,t){if(t&&"cp437"==t.trim().toLowerCase())return(e=>{let t="";for(let n=0;n<e.length;n++)t+=vt[e[n]];return t})(e);if(void 0===m){const t=new y;return new w(((n,r)=>{t.onload=e=>n(e.target.result),t.onerror=()=>r(t.error),t.readAsText(new p([e]))}))}return new m(t).decode(e)}const St="Abort error";async function Ct(e,t,n,r,i,a,o){const c=s.max(a.chunkSize,64),l=o.signal;let d=0,u=0;const f=new w(((a,f)=>{e.pull=async()=>{zt(l,e);const n=i();let a=u;return u+=c,{value:await t.readUint8Array(a+r,s.min(c,n-a)),done:u>n}},e.ondata=async({value:t,done:r})=>{try{zt(l,e);const s=i(),{data:c,signature:f}=t;if(c&&c.length&&(d+=c.length,await n.writeUint8Array(c)),o.onprogress)try{o.onprogress(u,s)}catch(e){}r&&a({signature:f,length:d})}catch(e){f(e)}},e.onerror=f}));return await e.start(),f}function zt(e,t){if(e&&e.aborted)throw t.abort(),new l(St)}const Rt=["filename","rawFilename","directory","encrypted","compressedSize","uncompressedSize","lastModDate","rawLastModDate","comment","rawComment","signature","extraField","rawExtraField","bitFlag","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","filenameUTF8","commentUTF8","offset","zip64","compressionMethod","extraFieldNTFS","lastAccessDate","creationDate","extraFieldExtendedTimestamp","version","versionMadeBy","msDosCompatible","internalFileAttribute","externalFileAttribute"];class Et{constructor(e){Rt.forEach((t=>this[t]=e[t]))}}const xt="File format is not recognized",Dt="End of central directory not found",At="End of Zip64 central directory not found",Tt="End of Zip64 central directory locator not found",Ft="Central directory header not found",It="Local file header not found",Ut="Zip64 extra field not found",Vt="File contains encrypted entry",Bt="Encryption method not supported",Pt="Compression method not supported",Wt="utf-8",Mt="cp437",Lt=["uncompressedSize","compressedSize","offset"];class Ht{constructor(e,t={}){n.assign(this,{reader:e,options:t,config:D()})}async*getEntriesGenerator(e={}){const t=this,r=t.reader;if(r.initialized||await r.init(),22>r.size)throw new l(xt);const i=await(async(e,t,n)=>{const r=new d(4);return Qt(r).setUint32(0,101010256,!0),await i(22)||await i(s.min(1048582,n));async function i(t){const i=n-t,s=await en(e,i,t);for(let e=s.length-22;e>=0;e--)if(s[e]==r[0]&&s[e+1]==r[1]&&s[e+2]==r[2]&&s[e+3]==r[3])return{offset:i+e,buffer:s.slice(e,e+22).buffer}}})(r,0,r.size);if(!i)throw new l(Dt);const a=Qt(i);let o=Yt(a,12),c=Yt(a,16),u=$t(a,8),f=0;if(c==dt||o==dt||u==ut){const e=Qt(await en(r,i.offset-20,20));if(Yt(e,0)!=wt)throw new l(At);c=Jt(e,8);let t=await en(r,c,56),n=Qt(t);const s=i.offset-20-56;if(Yt(n,0)!=pt&&c!=s){const e=c;c=s,f=c-e,t=await en(r,c,56),n=Qt(t)}if(Yt(n,0)!=pt)throw new l(Tt);u=Jt(n,32),o=Jt(n,40),c-=o}if(0>c||c>=r.size)throw new l(xt);let h=0,p=await en(r,c,o),g=Qt(p);if(o){const e=i.offset-o;if(Yt(g,h)!=ht&&c!=e){const t=c;c=e,f=c-t,p=await en(r,c,o),g=Qt(p)}}if(0>c||c>=r.size)throw new l(xt);for(let i=0;u>i;i++){const s=new Nt(r,t.config,t.options);if(Yt(g,h)!=ht)throw new l(Ft);qt(s,g,h+6);const a=!!s.bitFlag.languageEncodingFlag,o=h+46,c=o+s.filenameLength,d=c+s.extraFieldLength,m=$t(g,h+4),y=0==(0&m);n.assign(s,{versionMadeBy:m,msDosCompatible:y,compressedSize:0,uncompressedSize:0,commentLength:$t(g,h+32),directory:y&&16==(16&Gt(g,h+38)),offset:Yt(g,h+42)+f,internalFileAttribute:Yt(g,h+34),externalFileAttribute:Yt(g,h+38),rawFilename:p.subarray(o,c),filenameUTF8:a,commentUTF8:a,rawExtraField:p.subarray(c,d)});const k=d+s.commentLength;s.rawComment=p.subarray(d,k);const b=Kt(t,e,"filenameEncoding"),v=Kt(t,e,"commentEncoding"),[_,S]=await w.all([_t(s.rawFilename,s.filenameUTF8?Wt:b||Mt),_t(s.rawComment,s.commentUTF8?Wt:v||Mt)]);s.filename=_,s.comment=S,!s.directory&&s.filename.endsWith(yt)&&(s.directory=!0),await Ot(s,s,g,h+6);const C=new Et(s);if(C.getData=(e,t)=>s.getData(e,C,t),h=k,e.onprogress)try{e.onprogress(i+1,u,new Et(s))}catch(e){}yield C}return!0}async getEntries(e={}){const t=[],n=this.getEntriesGenerator(e);let r=n.next();for(;!(await r).done;)t.push((await r).value),r=n.next();return t}async close(){}}class Nt{constructor(e,t,r){n.assign(this,{reader:e,config:t,options:r})}async getData(e,t,n={}){const r=this,{reader:i,offset:s,extraFieldAES:a,compressionMethod:o,config:c,bitFlag:d,signature:u,rawLastModDate:f,compressedSize:h}=r,p=r.localDirectory={};i.initialized||await i.init();let w=await en(i,s,30);const g=Qt(w);let m=Kt(r,n,"password");if(m=m&&m.length&&m,a&&99!=a.originalCompressionMethod)throw new l(Pt);if(0!=o&&8!=o)throw new l(Pt);if(Yt(g,0)!=ft)throw new l(It);qt(p,g,4),w=await en(i,s,30+p.filenameLength+p.extraFieldLength),p.rawExtraField=w.subarray(30+p.filenameLength),await Ot(r,p,g,4),t.lastAccessDate=p.lastAccessDate,t.creationDate=p.creationDate;const y=r.encrypted&&p.encrypted,k=y&&!a;if(y){if(!k&&void 0===a.strength)throw new l(Bt);if(!m)throw new l(Vt)}const b=await Te(c.Inflate,{codecType:be,password:m,zipCrypto:k,encryptionStrength:a&&a.strength,signed:Kt(r,n,"checkSignature"),passwordVerification:k&&(d.dataDescriptor?f>>>8&255:u>>>24&255),signature:u,compressed:0!=o,encrypted:y,useWebWorkers:Kt(r,n,"useWebWorkers"),useCompressionStream:Kt(r,n,"useCompressionStream")},c);e.initialized||await e.init();const v=Kt(r,n,"signal"),_=s+30+p.filenameLength+p.extraFieldLength;return await Ct(b,i,e,_,(()=>h),c,{onprogress:n.onprogress,signal:v}),e.getData()}}function qt(e,t,r){const i=e.rawBitFlag=$t(t,r+2),s=1==(1&i),a=Yt(t,r+6);n.assign(e,{encrypted:s,version:$t(t,r),bitFlag:{level:(6&i)>>1,dataDescriptor:8==(8&i),languageEncodingFlag:(i&mt)==mt},rawLastModDate:a,lastModDate:jt(a),filenameLength:$t(t,r+22),extraFieldLength:$t(t,r+24)})}async function Ot(e,t,r,i){const c=t.rawExtraField,u=t.extraField=new o,f=Qt(new d(c));let h=0;try{for(;h<c.length;){const e=$t(f,h),t=$t(f,h+2);u.set(e,{type:e,data:c.slice(h+4,h+4+t)}),h+=4+t}}catch(e){}const p=$t(r,i+4);t.signature=Yt(r,i+10),t.uncompressedSize=Yt(r,i+18),t.compressedSize=Yt(r,i+14);const w=u.get(1);w&&(((e,t)=>{t.zip64=!0;const n=Qt(e.data);e.values=[];for(let t=0;t<s.floor(e.data.length/8);t++)e.values.push(Jt(n,0+8*t));const r=Lt.filter((e=>t[e]==dt));for(let t=0;t<r.length;t++)e[r[t]]=e.values[t];Lt.forEach((n=>{if(t[n]==dt){if(void 0===e[n])throw new l(Ut);t[n]=e[n]}}))})(w,t),t.extraFieldZip64=w);const g=u.get(28789);g&&(await Zt(g,"filename","rawFilename",t,e),t.extraFieldUnicodePath=g);const m=u.get(25461);m&&(await Zt(m,"comment","rawComment",t,e),t.extraFieldUnicodeComment=m);const y=u.get(39169);y?(((e,t,n)=>{const r=Qt(e.data);e.vendorVersion=Gt(r,0),e.vendorId=Gt(r,2);const i=Gt(r,4);e.strength=i,e.originalCompressionMethod=n,t.compressionMethod=e.compressionMethod=$t(r,5)})(y,t,p),t.extraFieldAES=y):t.compressionMethod=p;const k=u.get(10);k&&(((e,t)=>{const r=Qt(e.data);let i,s=4;try{for(;s<e.data.length&&!i;){const t=$t(r,s),n=$t(r,s+2);1==t&&(i=e.data.slice(s+4,s+4+n)),s+=4+n}}catch(e){}try{if(i&&24==i.length){const r=Qt(i),s=r.getBigUint64(0,!0),a=r.getBigUint64(8,!0),o=r.getBigUint64(16,!0);n.assign(e,{rawLastModDate:s,rawLastAccessDate:a,rawCreationDate:o});const c={lastModDate:Xt(s),lastAccessDate:Xt(a),creationDate:Xt(o)};n.assign(e,c),n.assign(t,c)}}catch(e){}})(k,t),t.extraFieldNTFS=k);const b=u.get(gt);b&&(((e,t)=>{const n=Qt(e.data),r=Gt(n,0),i=[],s=[];1==(1&r)&&(i.push("lastModDate"),s.push("rawLastModDate")),2==(2&r)&&(i.push("lastAccessDate"),s.push("rawLastAccessDate")),4==(4&r)&&(i.push("creationDate"),s.push("rawCreationDate"));let o=1;i.forEach(((r,i)=>{if(e.data.length>=o+4){const c=Yt(n,o);t[r]=e[r]=new a(1e3*c);const l=s[i];e[l]=c}o+=4}))})(b,t),t.extraFieldExtendedTimestamp=b)}async function Zt(e,t,n,r,i){const s=Qt(e.data);e.version=Gt(s,0),e.signature=Yt(s,1);const a=new I;a.append(i[n]);const o=Qt(new d(4));o.setUint32(0,a.get(),!0),e[t]=await _t(e.data.subarray(5)),e.valid=!i.bitFlag.languageEncodingFlag&&e.signature==Yt(o,0),e.valid&&(r[t]=e[t],r[t+"UTF8"]=!0)}function Kt(e,t,n){return void 0===t[n]?e.options[n]:t[n]}function jt(e){const t=(4294901760&e)>>16,n=65535&e;try{return new a(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(e){}}function Xt(e){return new a(Number(e/i(1e4)-i(116444736e5)))}function Gt(e,t){return e.getUint8(t)}function $t(e,t){return e.getUint16(t,!0)}function Yt(e,t){return e.getUint32(t,!0)}function Jt(e,t){return Number(e.getBigUint64(t,!0))}function Qt(e){return new h(e.buffer)}function en(e,t,n){return e.readUint8Array(t,n)}const tn="File already exists",nn="Zip file comment exceeds 64KB",rn="File entry comment exceeds 64KB",sn="File entry name exceeds 64KB",an="Version exceeds 65535",on="The strength must equal 1, 2, or 3",cn="Extra field type exceeds 65535",ln="Extra field data exceeds 64KB",dn="Zip64 is not supported",un=new d([7,0,2,0,65,69,3,0,0]);let fn=0;class hn{constructor(e,t={}){n.assign(this,{writer:e,options:t,config:D(),files:new o,offset:e.size,pendingCompressedSize:0,pendingEntries:[],pendingAddFileCalls:new Set})}async add(e="",r,o={}){const c=this;if(fn>=c.config.maxWorkers)return new w(((t,n)=>c.pendingEntries.push({name:e,reader:r,options:o,resolve:t,reject:n})));{let p;fn++;try{return p=(async(e,r,o,c)=>{if(r=r.trim(),c.directory&&!r.endsWith(yt)?r+=yt:c.directory=r.endsWith(yt),e.files.has(r))throw new l(tn);const p=V(r);if(p.length>ut)throw new l(sn);const g=c.comment||"",m=V(g);if(m.length>ut)throw new l(rn);const y=e.options.version||c.version||0;if(y>ut)throw new l(an);const k=e.options.versionMadeBy||c.versionMadeBy||20;if(k>ut)throw new l(an);const b=gn(e,c,"lastModDate")||new a,v=gn(e,c,"lastAccessDate"),_=gn(e,c,"creationDate"),S=gn(e,c,"password"),C=gn(e,c,"encryptionStrength")||3,z=gn(e,c,"zipCrypto");if(void 0!==S&&void 0!==C&&(1>C||C>3))throw new l(on);let R=new d(0);const E=c.extraField;if(E){let e=0,t=0;E.forEach((t=>e+=4+t.length)),R=new d(e),E.forEach(((e,n)=>{if(n>ut)throw new l(cn);if(e.length>ut)throw new l(ln);vn(R,new u([n]),t),vn(R,new u([e.length]),t+2),vn(R,e,t+4),t+=4+e.length}))}let x=gn(e,c,"extendedTimestamp");void 0===x&&(x=!0);let D=0,A=gn(e,c,"keepOrder");void 0===A&&(A=!0);let T=0,F=gn(e,c,"msDosCompatible");void 0===F&&(F=!0);const I=gn(e,c,"internalFileAttribute")||0,U=gn(e,c,"externalFileAttribute")||0;o&&(o.initialized||await o.init(),T=o.size,D=(e=>e+5*(s.floor(e/16383)+1))(T));let B=c.zip64||e.options.zip64||!1;if(e.offset+e.pendingCompressedSize>=dt||T>=dt||D>=dt){if(!1===c.zip64||!1===e.options.zip64||!A)throw new l(dn);B=!0}e.pendingCompressedSize+=D,await w.resolve();const P=gn(e,c,"level"),W=gn(e,c,"useWebWorkers"),M=gn(e,c,"bufferedWrite");let L=gn(e,c,"dataDescriptor"),H=gn(e,c,"dataDescriptorSignature");const N=gn(e,c,"signal"),q=gn(e,c,"useCompressionStream");void 0===L&&(L=!0),L&&void 0===H&&(H=!1);const O=await(async(e,r,a,o)=>{const c=e.files,u=e.writer,p=t.from(c.values()).pop();let g,m,y,k={};c.set(r,k);try{let b,v,_;if(o.keepOrder&&(b=p&&p.lock),k.lock=_=new w((e=>y=e)),o.bufferedWrite||e.lockWrite||!o.dataDescriptor?(v=new Ke,v.init(),g=!0):(e.lockWrite=new w((e=>m=e)),u.initialized||await u.init(),v=u),k=await(async(e,t,r,a)=>{const{rawFilename:o,lastAccessDate:c,creationDate:l,password:u,level:h,zip64:p,zipCrypto:w,dataDescriptor:g,dataDescriptorSignature:m,directory:y,version:k,versionMadeBy:b,rawComment:v,rawExtraField:_,useWebWorkers:S,onprogress:C,signal:z,encryptionStrength:R,extendedTimestamp:E,msDosCompatible:x,internalFileAttribute:D,externalFileAttribute:A,useCompressionStream:T}=a,F=!(!u||!u.length),I=0!==h&&!y;let U,V,B;if(F&&!w){U=new d(un.length+2);const e=_n(U);yn(e,0,39169),vn(U,un,2),mn(e,8,R)}else U=new d(0);if(E){B=new d(9+(c?4:0)+(l?4:0));const e=_n(B);yn(e,0,gt),yn(e,2,B.length-4),mn(e,4,1+(c?2:0)+(l?4:0)),kn(e,5,s.floor(a.lastModDate.getTime()/1e3)),c&&kn(e,9,s.floor(c.getTime()/1e3)),l&&kn(e,13,s.floor(l.getTime()/1e3));try{V=new d(36);const e=_n(V),t=wn(a.lastModDate);yn(e,0,10),yn(e,2,32),yn(e,8,1),yn(e,10,24),bn(e,12,t),bn(e,20,wn(c)||t),bn(e,28,wn(l)||t)}catch(e){V=new d(0)}}else V=B=new d(0);const P={version:k||20,versionMadeBy:b,zip64:p,directory:!!y,filenameUTF8:!0,rawFilename:o,commentUTF8:!0,rawComment:v,rawExtraFieldZip64:new d(p?28:0),rawExtraFieldExtendedTimestamp:B,rawExtraFieldNTFS:V,rawExtraFieldAES:U,rawExtraField:_,extendedTimestamp:E,msDosCompatible:x,internalFileAttribute:D,externalFileAttribute:A};let W=P.uncompressedSize=0,M=mt;g&&(M|=8);let L=0;I&&(L=8),p&&(P.version=P.version>45?P.version:45),F&&(M|=1,w||(P.version=P.version>51?P.version:51,L=99,I&&(P.rawExtraFieldAES[9]=8))),P.compressionMethod=L;const H=P.headerArray=new d(26),N=_n(H);yn(N,0,P.version),yn(N,2,M),yn(N,4,L);const q=new f(1),O=_n(q);let Z;Z=a.lastModDate<bt?bt:a.lastModDate>kt?kt:a.lastModDate,yn(O,0,(Z.getHours()<<6|Z.getMinutes())<<5|Z.getSeconds()/2),yn(O,2,(Z.getFullYear()-1980<<4|Z.getMonth()+1)<<5|Z.getDate());const K=q[0];kn(N,6,K),yn(N,22,o.length);const j=U.length+B.length+V.length+P.rawExtraField.length;yn(N,24,j);const X=new d(30+o.length+j);let G;kn(_n(X),0,ft),vn(X,H,4),vn(X,o,30),vn(X,U,30+o.length),vn(X,B,30+o.length+U.length),vn(X,V,30+o.length+U.length+B.length),vn(X,P.rawExtraField,30+o.length+U.length+B.length+V.length);let $=0;if(e){const n=await Te(r.Deflate,{codecType:ke,level:h,password:u,encryptionStrength:R,zipCrypto:F&&w,passwordVerification:F&&w&&K>>8&255,signed:!0,compressed:I,encrypted:F,useWebWorkers:S,useCompressionStream:T},r);await t.writeUint8Array(X),P.dataWritten=!0,G=await Ct(n,e,t,0,(()=>e.size),r,{onprogress:C,signal:z}),W=P.uncompressedSize=e.size,$=G.length}else await t.writeUint8Array(X),P.dataWritten=!0;let Y,J=new d(0),Q=0;if(g&&(J=new d(p?m?24:20:m?16:12),Y=_n(J),m&&(Q=4,kn(Y,0,134695760))),e){const e=G.signature;if(F&&!w||void 0===e||(kn(N,10,e),P.signature=e,g&&kn(Y,Q,e)),p){const e=_n(P.rawExtraFieldZip64);yn(e,0,1),yn(e,2,24),kn(N,14,dt),bn(e,12,i($)),kn(N,18,dt),bn(e,4,i(W)),g&&(bn(Y,Q+4,i($)),bn(Y,Q+12,i(W)))}else kn(N,14,$),kn(N,18,W),g&&(kn(Y,Q+4,$),kn(Y,Q+8,W))}g&&await t.writeUint8Array(J);const ee=X.length+$+J.length;return n.assign(P,{compressedSize:$,lastModDate:Z,rawLastModDate:K,creationDate:l,lastAccessDate:c,encrypted:F,length:ee}),P})(a,v,e.config,o),k.lock=_,c.set(r,k),k.filename=r,g){let n=0;const r=v.getData();let i;await w.all([e.lockWrite,b]);do{i=t.from(c.values()).find((e=>e.writingBufferedData)),i&&await i.lock}while(i&&i.lock);if(k.writingBufferedData=!0,!o.dataDescriptor){const e=26,t=await pn(r,0,e),i=new h(t);k.encrypted&&!o.zipCrypto||kn(i,14,k.signature),k.zip64?(kn(i,18,dt),kn(i,22,dt)):(kn(i,18,k.compressedSize),kn(i,22,k.uncompressedSize)),await u.writeUint8Array(new d(t)),n=e}await(async(e,t,n=0)=>{const r=536870912;await async function i(){if(n<t.size){const s=await pn(t,n,n+r);await e.writeUint8Array(new d(s)),n+=r,await i()}}()})(u,r,n),delete k.writingBufferedData}if(k.offset=e.offset,k.zip64)bn(_n(k.rawExtraFieldZip64),20,i(k.offset));else if(k.offset>=dt)throw new l(dn);return e.offset+=k.length,k}catch(t){throw(g&&k.writingBufferedData||!g&&k.dataWritten)&&(t.corruptedEntry=e.hasCorruptedEntries=!0,k.uncompressedSize&&(e.offset+=k.uncompressedSize)),c.delete(r),t}finally{y(),m&&m()}})(e,r,o,n.assign({},c,{rawFilename:p,rawComment:m,version:y,versionMadeBy:k,lastModDate:b,lastAccessDate:v,creationDate:_,rawExtraField:R,zip64:B,password:S,level:P,useWebWorkers:W,encryptionStrength:C,extendedTimestamp:x,zipCrypto:z,bufferedWrite:M,keepOrder:A,dataDescriptor:L,dataDescriptorSignature:H,signal:N,msDosCompatible:F,internalFileAttribute:I,externalFileAttribute:U,useCompressionStream:q}));return D&&(e.pendingCompressedSize-=D),n.assign(O,{name:r,comment:g,extraField:E}),new Et(O)})(c,e,r,o),this.pendingAddFileCalls.add(p),await p}finally{this.pendingAddFileCalls.delete(p),fn--;const e=c.pendingEntries.shift();e&&c.add(e.name,e.reader,e.options).then(e.resolve).catch(e.reject)}}}async close(e=new d(0),n={}){for(;this.pendingAddFileCalls.size;)await w.all(t.from(this.pendingAddFileCalls));return await(async(e,n,r)=>{const a=e.writer,o=e.files;let c=0,u=0,f=e.offset,h=o.size;for(const[,e]of o)u+=46+e.rawFilename.length+e.rawComment.length+e.rawExtraFieldZip64.length+e.rawExtraFieldAES.length+e.rawExtraFieldExtendedTimestamp.length+e.rawExtraFieldNTFS.length+e.rawExtraField.length;let p=r.zip64||e.options.zip64||!1;if(f>=dt||u>=dt||h>=ut){if(!1===r.zip64||!1===e.options.zip64)throw new l(dn);p=!0}const w=new d(u+(p?98:22)),g=_n(w);if(n&&n.length){if(n.length>ut)throw new l(nn);yn(g,c+20,n.length)}for(const[e,n]of t.from(o.values()).entries()){const{rawFilename:t,rawExtraFieldZip64:i,rawExtraFieldAES:a,rawExtraField:l,rawComment:u,versionMadeBy:f,headerArray:h,directory:p,zip64:m,msDosCompatible:y,internalFileAttribute:k,externalFileAttribute:b}=n;let v,_;if(n.extendedTimestamp){_=n.rawExtraFieldNTFS,v=new d(9);const e=_n(v);yn(e,0,gt),yn(e,2,v.length-4),mn(e,4,1),kn(e,5,s.floor(n.lastModDate.getTime()/1e3))}else _=v=new d(0);const S=i.length+a.length+v.length+_.length+l.length;if(kn(g,c,ht),yn(g,c+4,f),vn(w,h,c+6),yn(g,c+30,S),yn(g,c+32,u.length),kn(g,c+34,k),b?kn(g,c+38,b):p&&y&&mn(g,c+38,16),kn(g,c+42,m?dt:n.offset),vn(w,t,c+46),vn(w,i,c+46+t.length),vn(w,a,c+46+t.length+i.length),vn(w,v,c+46+t.length+i.length+a.length),vn(w,_,c+46+t.length+i.length+a.length+v.length),vn(w,l,c+46+t.length+i.length+a.length+v.length+_.length),vn(w,u,c+46+t.length+S),c+=46+t.length+S+u.length,r.onprogress)try{r.onprogress(e+1,o.size,new Et(n))}catch(e){}}p&&(kn(g,c,pt),bn(g,c+4,i(44)),yn(g,c+12,45),yn(g,c+14,45),bn(g,c+24,i(h)),bn(g,c+32,i(h)),bn(g,c+40,i(u)),bn(g,c+48,i(f)),kn(g,c+56,wt),bn(g,c+64,i(f)+i(u)),kn(g,c+72,1),h=ut,f=dt,u=dt,c+=76),kn(g,c,101010256),yn(g,c+8,h),yn(g,c+10,h),kn(g,c+12,u),kn(g,c+16,f),await a.writeUint8Array(w),n&&n.length&&await a.writeUint8Array(n)})(this,e,n),this.writer.getData()}}function pn(e,t,n){if(e.arrayBuffer)return t||n?e.slice(t,n).arrayBuffer():e.arrayBuffer();{const r=new y;return new w(((i,s)=>{r.onload=e=>i(e.target.result),r.onerror=()=>s(r.error),r.readAsArrayBuffer(t||n?e.slice(t,n):e)}))}}function wn(e){if(e)return(i(e.getTime())+i(116444736e5))*i(1e4)}function gn(e,t,n){return void 0===t[n]?e.options[n]:t[n]}function mn(e,t,n){e.setUint8(t,n)}function yn(e,t,n){e.setUint16(t,n,!0)}function kn(e,t,n){e.setUint32(t,n,!0)}function bn(e,t,n){e.setBigUint64(t,n,!0)}function vn(e,t,n){e.set(t,n)}function _n(e){return new h(e.buffer)}const Sn=524288;class Cn{constructor(e,t,r,i){const s=this;if(e.root&&i&&i.getChildByName(t))throw new l("Entry filename already exists");r||(r={}),n.assign(s,{fs:e,name:t,data:r.data,id:e.entries.length,parent:i,children:[],uncompressedSize:0}),e.entries.push(s),i&&s.parent.children.push(s)}moveTo(e){this.fs.move(this,e)}getFullname(){return this.getRelativeName()}getRelativeName(e=this.fs.root){let t=this.name,n=this.parent;for(;n&&n!=e;)t=(n.name?n.name+"/":"")+t,n=n.parent;return t}isDescendantOf(e){let t=this.parent;for(;t&&t.id!=e.id;)t=t.parent;return!!t}}class zn extends Cn{constructor(e,t,n,r){super(e,t,n,r);const i=this;i.Reader=n.Reader,i.Writer=n.Writer,n.getData&&(i.getData=n.getData)}async getData(e,t={}){const n=this;return!e||e.constructor==n.Writer&&n.data?n.data:(n.reader=new n.Reader(n.data,t),await n.reader.init(),e.initialized||await e.init(),n.uncompressedSize=n.reader.size,((e,t)=>async function n(r=0){const i=r*Sn;if(i<e.size){const a=await e.readUint8Array(i,s.min(Sn,e.size-i));return await t.writeUint8Array(a),n(r+1)}return t.getData()}())(n.reader,e))}getText(e,t){return this.getData(new Ne(e),t)}getBlob(e,t){return this.getData(new Ke(e),t)}getData64URI(e,t){return this.getData(new Oe(e),t)}getUint8Array(e){return this.getData(new lt,e)}replaceBlob(e){n.assign(this,{data:e,Reader:Ze,Writer:Ke,reader:null})}replaceText(e){n.assign(this,{data:e,Reader:He,Writer:Ne,reader:null})}replaceData64URI(e){n.assign(this,{data:e,Reader:qe,Writer:Oe,reader:null})}replaceUint8Array(e){n.assign(this,{data:e,Reader:ct,Writer:lt,reader:null})}}class Rn extends Cn{constructor(e,t,n,r){super(e,t,n,r),this.directory=!0}addDirectory(e){return Fn(this,e,null,!0)}addText(e,t){return Fn(this,e,{data:t,Reader:He,Writer:Ne})}addBlob(e,t){return Fn(this,e,{data:t,Reader:Ze,Writer:Ke})}addData64URI(e,t){return Fn(this,e,{data:t,Reader:qe,Writer:Oe})}addUint8Array(e,t){return Fn(this,e,{data:t,Reader:ct,Writer:lt})}addHttpContent(e,t,n={}){return Fn(this,e,{data:t,Reader:class extends ot{constructor(e){super(e,n)}}})}addFileSystemEntry(e){return(async(e,t)=>{if(t.isDirectory){const n=e.addDirectory(t.name);return await async function e(t,n){const r=await(e=>new w(((t,n)=>{let r=[];e.isDirectory&&function e(i){i.readEntries((n=>{n.length?(r=r.concat(n),e(i)):t(r)}),n)}(e.createReader()),e.isFile&&t(r)})))(n);for(const n of r)n.isDirectory?await e(t.addDirectory(n.name),n):await new w(((e,r)=>{n.file((r=>{const i=t.addBlob(n.name,r);i.uncompressedSize=r.size,e(i)}),r)}))}(n,t),n}return new w(((n,r)=>t.file((r=>n(e.addBlob(t.name,r))),r)))})(this,e)}addData(e,t){return Fn(this,e,t)}async importBlob(e,t={}){await this.importZip(new Ze(e),t)}async importData64URI(e,t={}){await this.importZip(new qe(e),t)}async importUint8Array(e,t={}){await this.importZip(new ct(e),t)}async importHttpContent(e,t={}){await this.importZip(new ot(e,t),t)}exportBlob(e={}){return this.exportZip(new Ke("application/zip"),e)}exportData64URI(e={}){return this.exportZip(new Oe("application/zip"),e)}exportUint8Array(e={}){return this.exportZip(new lt,e)}async importZip(e,t){e.initialized||await e.init();const r=new Ht(e,t);(await r.getEntries()).forEach((e=>{let r=this;const i=e.filename.split("/"),s=i.pop();i.forEach((e=>r=r.getChildByName(e)||new Rn(this.fs,e,null,r))),e.directory||Fn(r,s,{data:e,Reader:xn(n.assign({},t))})}))}async exportZip(e,r){const i=this;await Dn(i),await e.init();const s=new hn(e,r);return await(async(e,r,i,s)=>{const a=r,c=new o;await async function e(r,o){async function l(o){const l=s.relativePath?o.getRelativeName(a):o.getFullname();await r.add(l,o.reader,n.assign({directory:o.directory},n.assign({},s,{onprogress:e=>{if(s.onprogress){c.set(l,e);try{s.onprogress(t.from(c.values()).reduce(((e,t)=>e+t)),i)}catch(e){}}}}))),await e(r,o)}await(async()=>{if(s.bufferedWrite)await w.all(o.children.map(l));else for(const e of o.children)await l(e)})()}(e,r)})(s,i,(e=>{let t=0;return e.forEach((function e(n){t+=n.uncompressedSize,n.children&&n.children.forEach(e)})),t})([i]),r),await s.close(),e.getData()}getChildByName(e){const t=this.children;for(let n=0;n<t.length;n++){const r=t[n];if(r.name==e)return r}}}const En={FS:class{constructor(){Tn(this)}get children(){return this.root.children}remove(e){An(e),this.entries[e.id]=null}move(e,t){if(e==this.root)throw new l("Root directory cannot be moved");if(!t.directory)throw new l("Target entry is not a directory");if(t.isDescendantOf(e))throw new l("Entry is a ancestor of target entry");if(e!=t){if(t.getChildByName(e.name))throw new l("Entry filename already exists");An(e),e.parent=t,t.children.push(e)}}find(e){const t=e.split("/");let n=this.root;for(let e=0;n&&e<t.length;e++)n=n.getChildByName(t[e]);return n}getById(e){return this.entries[e]}getChildByName(e){return this.root.getChildByName(e)}addDirectory(e){return this.root.addDirectory(e)}addText(e,t){return this.root.addText(e,t)}addBlob(e,t){return this.root.addBlob(e,t)}addData64URI(e,t){return this.root.addData64URI(e,t)}addHttpContent(e,t,n){return this.root.addHttpContent(e,t,n)}addFileSystemEntry(e){return this.root.addFileSystemEntry(e)}addData(e,t){return this.root.addData(e,t)}async importBlob(e,t){Tn(this),await this.root.importBlob(e,t)}async importData64URI(e,t){Tn(this),await this.root.importData64URI(e,t)}async importHttpContent(e,t){Tn(this),await this.root.importHttpContent(e,t)}exportBlob(e){return this.root.exportBlob(e)}exportData64URI(e){return this.root.exportData64URI(e)}},ZipDirectoryEntry:Rn,ZipFileEntry:zn};function xn(e){return class extends Me{constructor(e,t={}){super(),this.entry=e,this.options=t}async init(){const t=this;t.size=t.entry.uncompressedSize;const r=await t.entry.getData(new Ke,n.assign({},t.options,e));t.data=r,t.blobReader=new Ze(r)}readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}}}async function Dn(e){if(e.children.length)for(const t of e.children)t.directory?await Dn(t):(t.reader=new t.Reader(t.data),await t.reader.init(),t.uncompressedSize=t.reader.size)}function An(e){const t=e.parent.children;t.forEach(((n,r)=>{n.id==e.id&&t.splice(r,1)}))}function Tn(e){e.entries=[],e.root=new Rn(e)}function Fn(e,t,n,r){if(e.directory)return r?new Rn(e.fs,t,n,e):new zn(e.fs,t,n,e);throw new l("Parent entry is not a directory")}let In;try{In=void 0===k&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:void 0===k?location.href:k.currentScript&&k.currentScript.src||new c("zip-fs.min.js",k.baseURI).href}catch(e){}A({baseURL:In}),(e=>{if("function"==typeof c.createObjectURL){const t=()=>c.createObjectURL(new p(['const{Array:t,Object:e,Math:n,Error:r,Uint8Array:i,Uint16Array:s,Uint32Array:o,Int32Array:f,DataView:c,TextEncoder:a,crypto:l,postMessage:u,TransformStream:w,ReadableStream:h,WritableStream:d,CompressionStream:p,DecompressionStream:y}=globalThis,b=[];for(let t=0;256>t;t++){let e=t;for(let t=0;8>t;t++)1&e?e=e>>>1^3988292384:e>>>=1;b[t]=e}class m{constructor(t){this.t=t||-1}append(t){let e=0|this.t;for(let n=0,r=0|t.length;r>n;n++)e=e>>>8^b[255&(e^t[n])];this.t=e}get(){return~this.t}}class k extends w{constructor(){super({start(){this.i=new m},transform(t){t&&this.i.append(t)},flush(t){const e=new i(4);new c(e.buffer).setUint32(0,this.i.get()),t.enqueue(e)}})}}const v={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const n=t[t.length-1],r=v.o(n);return 32===r?t.concat(e):v.l(e,r,0|n,t.slice(0,t.length-1))},u(t){const e=t.length;if(0===e)return 0;const n=t[e-1];return 32*(e-1)+v.o(n)},h(t,e){if(32*t.length<e)return t;const r=(t=t.slice(0,n.ceil(e/32))).length;return e&=31,r>0&&e&&(t[r-1]=v.p(e,t[r-1]&2147483648>>e-1,1)),t},p:(t,e,n)=>32===t?e:(n?0|e:e<<32-t)+1099511627776*t,o:t=>n.round(t/1099511627776)||32,l(t,e,n,r){for(void 0===r&&(r=[]);e>=32;e-=32)r.push(n),n=0;if(0===e)return r.concat(t);for(let i=0;i<t.length;i++)r.push(n|t[i]>>>e),n=t[i]<<32-e;const i=t.length?t[t.length-1]:0,s=v.o(i);return r.push(v.p(e+s&31,e+s>32?n:r.pop(),1)),r}},g={m:{k(t){const e=v.u(t)/8,n=new i(e);let r;for(let i=0;e>i;i++)0==(3&i)&&(r=t[i/4]),n[i]=r>>>24,r<<=8;return n},v(t){const e=[];let n,r=0;for(n=0;n<t.length;n++)r=r<<8|t[n],3==(3&n)&&(e.push(r),r=0);return 3&n&&e.push(v.p(8*(3&n),r)),e}}},S={g:function(t){t?(this.S=t.S.slice(0),this._=t._.slice(0),this.C=t.C):this.reset()}};S.g.prototype={blockSize:512,reset:function(){const t=this;return t.S=this.I.slice(0),t._=[],t.C=0,t},update:function(t){const e=this;"string"==typeof t&&(t=g.A.v(t));const n=e._=v.concat(e._,t),i=e.C,s=e.C=i+v.u(t);if(s>9007199254740991)throw new r("Cannot hash more than 2^53 - 1 bits");const f=new o(n);let c=0;for(let t=e.blockSize+i-(e.blockSize+i&e.blockSize-1);s>=t;t+=e.blockSize)e.V(f.subarray(16*c,16*(c+1))),c+=1;return n.splice(0,16*c),e},P:function(){const t=this;let e=t._;const r=t.S;e=v.concat(e,[v.p(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(n.floor(t.C/4294967296)),e.push(0|t.C);e.length;)t.V(e.splice(0,16));return t.reset(),r},I:[1732584193,4023233417,2562383102,271733878,3285377520],B:[1518500249,1859775393,2400959708,3395469782],D:(t,e,n,r)=>t>19?t>39?t>59?t>79?void 0:e^n^r:e&n|e&r|n&r:e^n^r:e&n|~e&r,M:(t,e)=>e<<t|e>>>32-t,V:function(e){const r=this,i=r.S,s=t(80);for(let t=0;16>t;t++)s[t]=e[t];let o=i[0],f=i[1],c=i[2],a=i[3],l=i[4];for(let t=0;79>=t;t++){16>t||(s[t]=r.M(1,s[t-3]^s[t-8]^s[t-14]^s[t-16]));const e=r.M(5,o)+r.D(t,f,c,a)+l+s[t]+r.B[n.floor(t/20)]|0;l=a,a=c,c=r.M(30,f),f=o,o=e}i[0]=i[0]+o|0,i[1]=i[1]+f|0,i[2]=i[2]+c|0,i[3]=i[3]+a|0,i[4]=i[4]+l|0}};const z={getRandomValues(t){const e=new o(t.buffer),r=t=>{let e=987654321;const r=4294967295;return()=>(e=36969*(65535&e)+(e>>16)&r,(((e<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r)/4294967296+.5)*(n.random()>.5?1:-1))};for(let i,s=0;s<t.length;s+=4){const t=r(4294967296*(i||n.random()));i=987654071*t(),e[s/4]=4294967296*t()|0}return t}},_={importKey:t=>new _.R(g.m.v(t)),U(t,e,n,i){if(n=n||1e4,0>i||0>n)throw new r("invalid params to pbkdf2");const s=1+(i>>5)<<2;let o,f,a,l,u;const w=new ArrayBuffer(s),h=new c(w);let d=0;const p=v;for(e=g.m.v(e),u=1;(s||1)>d;u++){for(o=f=t.encrypt(p.concat(e,[u])),a=1;n>a;a++)for(f=t.encrypt(f),l=0;l<f.length;l++)o[l]^=f[l];for(a=0;(s||1)>d&&a<o.length;a++)h.setInt32(d,o[a]),d+=4}return w.slice(0,i/8)},R:class{constructor(t){const e=this,n=e.T=S.g,r=[[],[]],i=n.prototype.blockSize/32;e.j=[new n,new n],t.length>i&&(t=n.hash(t));for(let e=0;i>e;e++)r[0][e]=909522486^t[e],r[1][e]=1549556828^t[e];e.j[0].update(r[0]),e.j[1].update(r[1]),e.H=new n(e.j[0])}reset(){const t=this;t.H=new t.T(t.j[0]),t.K=!1}update(t){this.K=!0,this.H.update(t)}digest(){const t=this,e=t.H.P(),n=new t.T(t.j[1]).update(e).P();return t.reset(),n}encrypt(t){if(this.K)throw new r("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},C={name:"PBKDF2"},I=e.assign({hash:{name:"HMAC"}},C),A=e.assign({iterations:1e3,hash:{name:"SHA-1"}},C),x=["deriveBits"],V=[8,12,16],P=[16,24,32],B=[0,0,0,0],D=void 0!==l,E=D&&void 0!==l.subtle,M=g.m,R=class{constructor(t){const e=this;e.L=[[[],[],[],[],[]],[[],[],[],[],[]]],e.L[0][0][0]||e.W();const n=e.L[0][4],i=e.L[1],s=t.length;let o,f,c,a=1;if(4!==s&&6!==s&&8!==s)throw new r("invalid aes key size");for(e.B=[f=t.slice(0),c=[]],o=s;4*s+28>o;o++){let t=f[o-1];(o%s==0||8===s&&o%s==4)&&(t=n[t>>>24]<<24^n[t>>16&255]<<16^n[t>>8&255]<<8^n[255&t],o%s==0&&(t=t<<8^t>>>24^a<<24,a=a<<1^283*(a>>7))),f[o]=f[o-s]^t}for(let t=0;o;t++,o--){const e=f[3&t?o:o-4];c[t]=4>=o||4>t?e:i[0][n[e>>>24]]^i[1][n[e>>16&255]]^i[2][n[e>>8&255]]^i[3][n[255&e]]}}encrypt(t){return this.F(t,0)}decrypt(t){return this.F(t,1)}W(){const t=this.L[0],e=this.L[1],n=t[4],r=e[4],i=[],s=[];let o,f,c,a;for(let t=0;256>t;t++)s[(i[t]=t<<1^283*(t>>7))^t]=t;for(let l=o=0;!n[l];l^=f||1,o=s[o]||1){let s=o^o<<1^o<<2^o<<3^o<<4;s=s>>8^255&s^99,n[l]=s,r[s]=l,a=i[c=i[f=i[l]]];let u=16843009*a^65537*c^257*f^16843008*l,w=257*i[s]^16843008*s;for(let n=0;4>n;n++)t[n][l]=w=w<<24^w>>>8,e[n][s]=u=u<<24^u>>>8}for(let n=0;5>n;n++)t[n]=t[n].slice(0),e[n]=e[n].slice(0)}F(t,e){if(4!==t.length)throw new r("invalid aes block size");const n=this.B[e],i=n.length/4-2,s=[0,0,0,0],o=this.L[e],f=o[0],c=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=t[0]^n[0],y=t[e?3:1]^n[1],b=t[2]^n[2],m=t[e?1:3]^n[3],k=4;for(let t=0;i>t;t++)w=f[p>>>24]^c[y>>16&255]^a[b>>8&255]^l[255&m]^n[k],h=f[y>>>24]^c[b>>16&255]^a[m>>8&255]^l[255&p]^n[k+1],d=f[b>>>24]^c[m>>16&255]^a[p>>8&255]^l[255&y]^n[k+2],m=f[m>>>24]^c[p>>16&255]^a[y>>8&255]^l[255&b]^n[k+3],k+=4,p=w,y=h,b=d;for(let t=0;4>t;t++)s[e?3&-t:t]=u[p>>>24]<<24^u[y>>16&255]<<16^u[b>>8&255]<<8^u[255&m]^n[k++],w=p,p=y,y=b,b=m,m=w;return s}},U=class{constructor(t,e){this.O=t,this.q=e,this.G=e}reset(){this.G=this.q}update(t){return this.J(this.O,t,this.G)}N(t){if(255==(t>>24&255)){let e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}X(t){0===(t[0]=this.N(t[0]))&&(t[1]=this.N(t[1]))}J(t,e,n){let r;if(!(r=e.length))return[];const i=v.u(e);for(let i=0;r>i;i+=4){this.X(n);const r=t.encrypt(n);e[i]^=r[0],e[i+1]^=r[1],e[i+2]^=r[2],e[i+3]^=r[3]}return v.h(e,i)}},T=_.R;class j extends w{constructor(n,s,o){let f;super({start(){e.assign(this,{ready:new Promise((t=>this.Y=t)),password:n,signed:s,Z:o-1,pending:new i(0)})},async transform(e,n){if(e&&e.length){const s=this;if(s.password){const n=s.password;s.password=null;const i=F(e,0,V[s.Z]+2);await(async(t,e,n)=>{await L(t,n,F(e,0,V[t.Z]));const i=F(e,V[t.Z]),s=t.keys.passwordVerification;if(s[0]!=i[0]||s[1]!=i[1])throw new r("Invalid pasword")})(s,i,n),s.$=new U(new R(s.keys.key),t.from(B)),s.tt=new T(s.keys.et),e=F(e,V[s.Z]+2),s.Y()}else await s.ready;const o=new i(e.length-10-(e.length-10)%16);n.enqueue(K(s,e,o,0,10,!0))}},async flush(t){const e=this;await e.ready;const n=e.pending,r=F(n,0,n.length-10),s=F(n,n.length-10);let o=new i(0);if(r.length){const t=M.v(r);e.tt.update(t);const n=e.$.update(t);o=M.k(n)}if(f.valid=!0,e.signed){const t=F(M.k(e.tt.digest()),0,10);for(let e=0;10>e;e++)t[e]!=s[e]&&(f.valid=!1)}t.enqueue(o)}}),f=this}}class H extends w{constructor(n,r){let s;super({start(){e.assign(this,{ready:new Promise((t=>this.Y=t)),password:n,Z:r-1,pending:new i(0)})},async transform(e,n){if(e&&e.length){const r=this;let s=new i(0);if(r.password){const e=r.password;r.password=null,s=await(async(t,e)=>{const n=(r=new i(V[t.Z]),D&&"function"==typeof l.getRandomValues?l.getRandomValues(r):z.getRandomValues(r));var r;return await L(t,e,n),W(n,t.keys.passwordVerification)})(r,e),r.$=new U(new R(r.keys.key),t.from(B)),r.tt=new T(r.keys.et),r.Y()}else await r.ready;const o=new i(s.length+e.length-e.length%16);o.set(s,0),n.enqueue(K(r,e,o,s.length,0))}},async flush(t){const e=this;await e.ready;let n=new i(0);if(e.pending.length){const t=e.$.update(M.v(e.pending));e.tt.update(t),n=M.k(t)}s.signature=M.k(e.tt.digest()).slice(0,10),t.enqueue(W(n,s.signature))}}),s=this}}function K(t,e,n,r,s,o){const f=e.length-s;let c;for(t.pending.length&&(e=W(t.pending,e),n=((t,e)=>{if(e&&e>t.length){const n=t;(t=new i(e)).set(n,0)}return t})(n,f-f%16)),c=0;f-16>=c;c+=16){const i=M.v(F(e,c,c+16));o&&t.tt.update(i);const s=t.$.update(i);o||t.tt.update(s),n.set(M.k(s),c+r)}return t.pending=F(e,c),n}async function L(t,n,r){const s=(t=>{if(void 0===a){const e=new i((t=unescape(encodeURIComponent(t))).length);for(let n=0;n<e.length;n++)e[n]=t.charCodeAt(n);return e}return(new a).encode(t)})(n),o=await((t,e,n,r,i)=>D&&E&&"function"==typeof l.subtle.importKey?l.subtle.importKey("raw",e,n,!1,i):_.importKey(e))(0,s,I,0,x),f=await(async(t,e,n)=>D&&E&&"function"==typeof l.subtle.deriveBits?await l.subtle.deriveBits(t,e,n):_.U(e,t.salt,A.iterations,n))(e.assign({salt:r},A),o,8*(2*P[t.Z]+2)),c=new i(f);t.keys={key:M.v(F(c,0,P[t.Z])),et:M.v(F(c,P[t.Z],2*P[t.Z])),passwordVerification:F(c,2*P[t.Z])}}function W(t,e){let n=t;return t.length+e.length&&(n=new i(t.length+e.length),n.set(t,0),n.set(e,t.length)),n}function F(t,e,n){return t.subarray(e,n)}class O extends w{constructor(t,n){let i;super({start(){e.assign(this,{password:t,passwordVerification:n}),N(this,t)},transform(t,e){if(t&&t.length){const n=this;if(n.password){const e=G(n,t.subarray(0,12));if(n.password=null,e[11]!=n.passwordVerification)throw new r("Invalid pasword");t=t.subarray(12)}e.enqueue(G(n,t))}},flush(){i.valid=!0}}),i=this}}class q extends w{constructor(t,n){super({start(){e.assign(this,{password:t,passwordVerification:n}),N(this,t)},transform(t,e){if(t&&t.length){const n=this;let r,s;if(n.password){n.password=null;const e=l.getRandomValues(new i(12));e[11]=n.passwordVerification,r=new i(t.length+e.length),r.set(J(n,e),0),s=12}else r=new i(t.length),s=0;r.set(J(n,t),s),e.enqueue(r)}},flush(){}})}}function G(t,e){const n=new i(e.length);for(let r=0;r<e.length;r++)n[r]=X(t)^e[r],Q(t,n[r]);return n}function J(t,e){const n=new i(e.length);for(let r=0;r<e.length;r++)n[r]=X(t)^e[r],Q(t,e[r]);return n}function N(t,e){t.keys=[305419896,591751049,878082192],t.nt=new m(t.keys[0]),t.rt=new m(t.keys[2]);for(let n=0;n<e.length;n++)Q(t,e.charCodeAt(n))}function Q(t,e){t.nt.append([e]),t.keys[0]=~t.nt.get(),t.keys[1]=Z(t.keys[1]+Y(t.keys[0])),t.keys[1]=Z(n.imul(t.keys[1],134775813)+1),t.rt.append([t.keys[1]>>>24]),t.keys[2]=~t.rt.get()}function X(t){const e=2|t.keys[2];return Y(n.imul(e,1^e)>>>8)}function Y(t){return 255&t}function Z(t){return 4294967295&t}class $ extends w{constructor(t,e){super({start(){this.it=new t(e)},transform(t,e){(t=this.it.append(t))&&e.enqueue(t)},flush(t){const e=this.it.flush();e&&t.enqueue(e)}})}}class tt{constructor(t,{signature:n,password:r,signed:i,compressed:s,zipCrypto:o,passwordVerification:f,encryptionStrength:c,st:a},{ot:l}){const u=this;function w(){u.stream=u.stream.pipeThrough(new $(t,{ot:l}))}u.start=async()=>{const t=!!r;if(e.assign(u,{signature:n,encrypted:t,signed:i,compressed:s,zipCrypto:o,stream:new h({async pull(t){const{value:e,done:n}=await u.pull();t.enqueue(e),(n||u.aborted)&&t.close()}})}),t&&(o?u.stream=u.stream.pipeThrough(new O(r,f)):(u.ft=new j(r,i,c),u.stream=u.stream.pipeThrough(u.ft))),s)if(void 0!==a&&!a||void 0===y)w();else try{u.stream=u.stream.pipeThrough(new y("deflate-raw"))}catch(t){w()}if((!t||o)&&i){const t=u.stream.tee();u.stream=t[0],u.ct=t[1].pipeThrough(new k)}u.lt=u.stream.getReader(),await u.read()},u.abort=()=>u.aborted=!0}async read(){const t=this,{value:e,done:n}=await t.lt.read();if(e&&e.length&&t.ut({value:{data:new i(e)}}),n){let e;if(t.encrypted&&!t.zipCrypto&&!t.ft.valid)throw new r("Invalid signature");if((!t.encrypted||t.zipCrypto)&&t.signed){e=await t.ct.getReader().read();const n=new c(e.value.buffer);if(t.signature!=n.getUint32(0,!1))throw new r("Invalid signature")}t.ut({value:{signature:e},done:n})}else await t.read()}}class et{constructor(t,{encrypted:n,signed:r,compressed:i,level:s,zipCrypto:o,password:f,passwordVerification:c,encryptionStrength:a,st:l},{ot:u}){const w=this;function d(){w.stream=w.stream.pipeThrough(new $(t,{ot:u,level:s}))}w.start=async()=>{if(e.assign(this,{encrypted:n,signed:r,compressed:i,zipCrypto:o,stream:new h({async pull(t){const{value:e,done:n}=await w.pull();t.enqueue(e),(n||w.aborted)&&t.close()}})}),(!n||o)&&r){const t=w.stream.tee();w.stream=t[0],w.ct=t[1].pipeThrough(new k({ot:u}))}if(i)if(void 0!==l&&!l||void 0===p)d();else try{w.stream=w.stream.pipeThrough(new p("deflate-raw"))}catch(t){d()}n&&(o?w.stream=w.stream.pipeThrough(new q(f,c)):(w.wt=new H(f,a),w.stream=w.stream.pipeThrough(w.wt))),w.lt=w.stream.getReader(),await w.read()},w.abort=()=>w.aborted=!0}async read(){const t=this,{value:e,done:n}=await t.lt.read();if(e&&e.length&&t.ut({value:{data:e}}),n){let e;t.encrypted&&!t.zipCrypto&&(e=t.wt.signature),t.encrypted&&!t.zipCrypto||!t.signed||(e=await t.ct.getReader().read(),e=new c(e.value.buffer).getUint32(0)),t.ut({value:{signature:e},done:n})}else await t.read()}}const nt=new Map;let rt,it=0;function st(t){if(t.data){const e=t.data.value.data;if(e&&e.length)try{t.data.value.data=e.buffer,u(t,[t.data.value.data])}catch(e){u(t)}else u(t)}else u(t)}addEventListener("message",(async t=>{const e=t.data,n=e.type;try{if("start"==n&&(async t=>{try{t.scripts&&t.scripts.length&&importScripts.apply(void 0,t.scripts);const e=t.options;let n;self.initCodec&&self.initCodec(),e.codecType.startsWith("deflate")?n=self.Deflate:e.codecType.startsWith("inflate")&&(n=self.Inflate),rt=((t,e,n)=>e.codecType.startsWith("deflate")?new et(t,e,n):e.codecType.startsWith("inflate")?new tt(t,e,n):void 0)(n,e,t.config),rt.ut=t=>st({type:"data",data:t}),rt.onerror=t=>u({error:{message:t.message,stack:t.stack}}),rt.pull=()=>{const t=new Promise(((t,e)=>nt.set(it,{resolve:t,reject:e})));return st({type:"pull",messageId:it}),it++,t},await rt.start()}catch(t){u({error:{message:t.message,stack:t.stack}})}})(e),"data"==n){const{resolve:t}=nt.get(e.messageId);nt.delete(e.messageId),t({value:new i(e.data),done:e.done})}"abort"==n&&rt.abort()}catch(t){u({error:{message:t.message,stack:t.stack}})}}));const ot=(()=>{const e=-2;function o(e){return f(e.map((([e,n])=>new t(e).fill(n,0,e))))}function f(e){return e.reduce(((e,n)=>e.concat(t.isArray(n)?f(n):n)),[])}const c=[0,1,2,3].concat(...o([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function a(){const t=this;function e(t,e){let n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}t.ht=r=>{const i=t.dt,s=t.bt.yt,o=t.bt.kt;let f,c,a,l=-1;for(r.vt=0,r.gt=573,f=0;o>f;f++)0!==i[2*f]?(r.St[++r.vt]=l=f,r.zt[f]=0):i[2*f+1]=0;for(;2>r.vt;)a=r.St[++r.vt]=2>l?++l:0,i[2*a]=1,r.zt[a]=0,r._t--,s&&(r.Ct-=s[2*a+1]);for(t.It=l,f=n.floor(r.vt/2);f>=1;f--)r.At(i,f);a=o;do{f=r.St[1],r.St[1]=r.St[r.vt--],r.At(i,1),c=r.St[1],r.St[--r.gt]=f,r.St[--r.gt]=c,i[2*a]=i[2*f]+i[2*c],r.zt[a]=n.max(r.zt[f],r.zt[c])+1,i[2*f+1]=i[2*c+1]=a,r.St[1]=a++,r.At(i,1)}while(r.vt>=2);r.St[--r.gt]=r.St[1],(e=>{const n=t.dt,r=t.bt.yt,i=t.bt.xt,s=t.bt.Vt,o=t.bt.Pt;let f,c,a,l,u,w,h=0;for(l=0;15>=l;l++)e.Bt[l]=0;for(n[2*e.St[e.gt]+1]=0,f=e.gt+1;573>f;f++)c=e.St[f],l=n[2*n[2*c+1]+1]+1,l>o&&(l=o,h++),n[2*c+1]=l,c>t.It||(e.Bt[l]++,u=0,s>c||(u=i[c-s]),w=n[2*c],e._t+=w*(l+u),r&&(e.Ct+=w*(r[2*c+1]+u)));if(0!==h){do{for(l=o-1;0===e.Bt[l];)l--;e.Bt[l]--,e.Bt[l+1]+=2,e.Bt[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(c=e.Bt[l];0!==c;)a=e.St[--f],a>t.It||(n[2*a+1]!=l&&(e._t+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),c--)}})(r),((t,n,r)=>{const i=[];let s,o,f,c=0;for(s=1;15>=s;s++)i[s]=c=c+r[s-1]<<1;for(o=0;n>=o;o++)f=t[2*o+1],0!==f&&(t[2*o]=e(i[f]++,f))})(i,t.It,r.Bt)}}function l(t,e,n,r,i){const s=this;s.yt=t,s.xt=e,s.Vt=n,s.kt=r,s.Pt=i}a.Dt=[0,1,2,3,4,5,6,7].concat(...o([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),a.Et=[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],a.Mt=[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],a.Rt=t=>256>t?c[t]:c[256+(t>>>7)],a.Ut=[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],a.Tt=[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],a.jt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],a.Ht=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const u=o([[144,8],[112,9],[24,7],[8,8]]);l.Kt=f([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((t,e)=>[t,u[e]])));const w=o([[30,5]]);function h(t,e,n,r,i){const s=this;s.Lt=t,s.Wt=e,s.Ft=n,s.Ot=r,s.qt=i}l.Gt=f([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((t,e)=>[t,w[e]]))),l.Jt=new l(l.Kt,a.Ut,257,286,15),l.Nt=new l(l.Gt,a.Tt,0,30,15),l.Qt=new l(null,a.jt,0,19,7);const d=[new h(0,0,0,0,0),new h(4,4,8,4,1),new h(4,5,16,8,1),new h(4,6,32,32,1),new h(4,4,16,16,2),new h(8,16,32,32,2),new h(8,16,128,128,2),new h(8,32,128,256,2),new h(32,128,258,1024,2),new h(32,258,258,4096,2)],p=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],y=113,b=666,m=262;function k(t,e,n,r){const i=t[2*e],s=t[2*n];return s>i||i==s&&r[e]<=r[n]}function v(){const t=this;let r,o,f,c,u,w,h,v,g,S,z,_,C,I,A,x,V,P,B,D,E,M,R,U,T,j,H,K,L,W,F,O,q;const G=new a,J=new a,N=new a;let Q,X,Y,Z,$,tt;function et(){let e;for(e=0;286>e;e++)F[2*e]=0;for(e=0;30>e;e++)O[2*e]=0;for(e=0;19>e;e++)q[2*e]=0;F[512]=1,t._t=t.Ct=0,X=Y=0}function nt(t,e){let n,r=-1,i=t[1],s=0,o=7,f=4;0===i&&(o=138,f=3),t[2*(e+1)+1]=65535;for(let c=0;e>=c;c++)n=i,i=t[2*(c+1)+1],++s<o&&n==i||(f>s?q[2*n]+=s:0!==n?(n!=r&&q[2*n]++,q[32]++):s>10?q[36]++:q[34]++,s=0,r=n,0===i?(o=138,f=3):n==i?(o=6,f=3):(o=7,f=4))}function rt(e){t.Xt[t.pending++]=e}function it(t){rt(255&t),rt(t>>>8&255)}function st(t,e){let n;const r=e;tt>16-r?(n=t,$|=n<<tt&65535,it($),$=n>>>16-tt,tt+=r-16):($|=t<<tt&65535,tt+=r)}function ot(t,e){const n=2*t;st(65535&e[n],65535&e[n+1])}function ft(t,e){let n,r,i=-1,s=t[1],o=0,f=7,c=4;for(0===s&&(f=138,c=3),n=0;e>=n;n++)if(r=s,s=t[2*(n+1)+1],++o>=f||r!=s){if(c>o)do{ot(r,q)}while(0!=--o);else 0!==r?(r!=i&&(ot(r,q),o--),ot(16,q),st(o-3,2)):o>10?(ot(18,q),st(o-11,7)):(ot(17,q),st(o-3,3));o=0,i=r,0===s?(f=138,c=3):r==s?(f=6,c=3):(f=7,c=4)}}function ct(){16==tt?(it($),$=0,tt=0):8>tt||(rt(255&$),$>>>=8,tt-=8)}function at(e,r){let i,s,o;if(t.Yt[X]=e,t.Zt[X]=255&r,X++,0===e?F[2*r]++:(Y++,e--,F[2*(a.Dt[r]+256+1)]++,O[2*a.Rt(e)]++),0==(8191&X)&&H>2){for(i=8*X,s=E-V,o=0;30>o;o++)i+=O[2*o]*(5+a.Tt[o]);if(i>>>=3,Y<n.floor(X/2)&&i<n.floor(s/2))return!0}return X==Q-1}function lt(e,n){let r,i,s,o,f=0;if(0!==X)do{r=t.Yt[f],i=t.Zt[f],f++,0===r?ot(i,e):(s=a.Dt[i],ot(s+256+1,e),o=a.Ut[s],0!==o&&(i-=a.Et[s],st(i,o)),r--,s=a.Rt(r),ot(s,n),o=a.Tt[s],0!==o&&(r-=a.Mt[s],st(r,o)))}while(X>f);ot(256,e),Z=e[513]}function ut(){tt>8?it($):tt>0&&rt(255&$),$=0,tt=0}function wt(e,n,r){st(0+(r?1:0),3),((e,n)=>{ut(),Z=8,it(n),it(~n),t.Xt.set(v.subarray(e,e+n),t.pending),t.pending+=n})(e,n)}function ht(e){((e,n,r)=>{let i,s,o=0;H>0?(G.ht(t),J.ht(t),o=(()=>{let e;for(nt(F,G.It),nt(O,J.It),N.ht(t),e=18;e>=3&&0===q[2*a.Ht[e]+1];e--);return t._t+=14+3*(e+1),e})(),i=t._t+3+7>>>3,s=t.Ct+3+7>>>3,s>i||(i=s)):i=s=n+5,n+4>i||-1==e?s==i?(st(2+(r?1:0),3),lt(l.Kt,l.Gt)):(st(4+(r?1:0),3),((t,e,n)=>{let r;for(st(t-257,5),st(e-1,5),st(n-4,4),r=0;n>r;r++)st(q[2*a.Ht[r]+1],3);ft(F,t-1),ft(O,e-1)})(G.It+1,J.It+1,o+1),lt(F,O)):wt(e,n,r),et(),r&&ut()})(0>V?-1:V,E-V,e),V=E,r.$t()}function dt(){let t,e,n,i;do{if(i=g-R-E,0===i&&0===E&&0===R)i=u;else if(-1==i)i--;else if(E>=u+u-m){v.set(v.subarray(u,u+u),0),M-=u,E-=u,V-=u,t=C,n=t;do{e=65535&z[--n],z[n]=u>e?0:e-u}while(0!=--t);t=u,n=t;do{e=65535&S[--n],S[n]=u>e?0:e-u}while(0!=--t);i+=u}if(0===r.te)return;t=r.ee(v,E+R,i),R+=t,3>R||(_=255&v[E],_=(_<<x^255&v[E+1])&A)}while(m>R&&0!==r.te)}function pt(t){let e,n,r=T,i=E,s=U;const o=E>u-m?E-(u-m):0;let f=W;const c=h,a=E+258;let l=v[i+s-1],w=v[i+s];L>U||(r>>=2),f>R&&(f=R);do{if(e=t,v[e+s]==w&&v[e+s-1]==l&&v[e]==v[i]&&v[++e]==v[i+1]){i+=2,e++;do{}while(v[++i]==v[++e]&&v[++i]==v[++e]&&v[++i]==v[++e]&&v[++i]==v[++e]&&v[++i]==v[++e]&&v[++i]==v[++e]&&v[++i]==v[++e]&&v[++i]==v[++e]&&a>i);if(n=258-(a-i),i=a-258,n>s){if(M=t,s=n,n>=f)break;l=v[i+s-1],w=v[i+s]}}}while((t=65535&S[t&c])>o&&0!=--r);return s>R?R:s}t.zt=[],t.Bt=[],t.St=[],F=[],O=[],q=[],t.At=(e,n)=>{const r=t.St,i=r[n];let s=n<<1;for(;s<=t.vt&&(s<t.vt&&k(e,r[s+1],r[s],t.zt)&&s++,!k(e,i,r[s],t.zt));)r[n]=r[s],n=s,s<<=1;r[n]=i},t.ne=(r,a,p,b,m,k)=>(b||(b=8),m||(m=8),k||(k=0),r.re=null,-1==a&&(a=6),1>m||m>9||8!=b||9>p||p>15||0>a||a>9||0>k||k>2?e:(r.ie=t,w=p,u=1<<w,h=u-1,I=m+7,C=1<<I,A=C-1,x=n.floor((I+3-1)/3),v=new i(2*u),S=[],z=[],Q=1<<m+6,t.Xt=new i(4*Q),f=4*Q,t.Yt=new s(Q),t.Zt=new i(Q),H=a,K=k,(e=>(e.se=e.oe=0,e.re=null,t.pending=0,t.fe=0,o=y,c=0,G.dt=F,G.bt=l.Jt,J.dt=O,J.bt=l.Nt,N.dt=q,N.bt=l.Qt,$=0,tt=0,Z=8,et(),(()=>{g=2*u,z[C-1]=0;for(let t=0;C-1>t;t++)z[t]=0;j=d[H].Wt,L=d[H].Lt,W=d[H].Ft,T=d[H].Ot,E=0,V=0,R=0,P=U=2,D=0,_=0})(),0))(r))),t.ce=()=>42!=o&&o!=y&&o!=b?e:(t.Zt=null,t.Yt=null,t.Xt=null,z=null,S=null,v=null,t.ie=null,o==y?-3:0),t.ae=(t,n,r)=>{let i=0;return-1==n&&(n=6),0>n||n>9||0>r||r>2?e:(d[H].qt!=d[n].qt&&0!==t.se&&(i=t.le(1)),H!=n&&(H=n,j=d[H].Wt,L=d[H].Lt,W=d[H].Ft,T=d[H].Ot),K=r,i)},t.ue=(t,n,r)=>{let i,s=r,f=0;if(!n||42!=o)return e;if(3>s)return 0;for(s>u-m&&(s=u-m,f=r-s),v.set(n.subarray(f,f+s),0),E=s,V=s,_=255&v[0],_=(_<<x^255&v[1])&A,i=0;s-3>=i;i++)_=(_<<x^255&v[i+2])&A,S[i&h]=z[_],z[_]=i;return 0},t.le=(n,i)=>{let s,a,k,g,I;if(i>4||0>i)return e;if(!n.we||!n.he&&0!==n.te||o==b&&4!=i)return n.re=p[4],e;if(0===n.de)return n.re=p[7],-5;var T;if(r=n,g=c,c=i,42==o&&(a=8+(w-8<<4)<<8,k=(H-1&255)>>1,k>3&&(k=3),a|=k<<6,0!==E&&(a|=32),a+=31-a%31,o=y,rt((T=a)>>8&255),rt(255&T)),0!==t.pending){if(r.$t(),0===r.de)return c=-1,0}else if(0===r.te&&g>=i&&4!=i)return r.re=p[7],-5;if(o==b&&0!==r.te)return n.re=p[7],-5;if(0!==r.te||0!==R||0!=i&&o!=b){switch(I=-1,d[H].qt){case 0:I=(t=>{let e,n=65535;for(n>f-5&&(n=f-5);;){if(1>=R){if(dt(),0===R&&0==t)return 0;if(0===R)break}if(E+=R,R=0,e=V+n,(0===E||E>=e)&&(R=E-e,E=e,ht(!1),0===r.de))return 0;if(E-V>=u-m&&(ht(!1),0===r.de))return 0}return ht(4==t),0===r.de?4==t?2:0:4==t?3:1})(i);break;case 1:I=(t=>{let e,n=0;for(;;){if(m>R){if(dt(),m>R&&0==t)return 0;if(0===R)break}if(3>R||(_=(_<<x^255&v[E+2])&A,n=65535&z[_],S[E&h]=z[_],z[_]=E),0===n||(E-n&65535)>u-m||2!=K&&(P=pt(n)),3>P)e=at(0,255&v[E]),R--,E++;else if(e=at(E-M,P-3),R-=P,P>j||3>R)E+=P,P=0,_=255&v[E],_=(_<<x^255&v[E+1])&A;else{P--;do{E++,_=(_<<x^255&v[E+2])&A,n=65535&z[_],S[E&h]=z[_],z[_]=E}while(0!=--P);E++}if(e&&(ht(!1),0===r.de))return 0}return ht(4==t),0===r.de?4==t?2:0:4==t?3:1})(i);break;case 2:I=(t=>{let e,n,i=0;for(;;){if(m>R){if(dt(),m>R&&0==t)return 0;if(0===R)break}if(3>R||(_=(_<<x^255&v[E+2])&A,i=65535&z[_],S[E&h]=z[_],z[_]=E),U=P,B=M,P=2,0!==i&&j>U&&u-m>=(E-i&65535)&&(2!=K&&(P=pt(i)),5>=P&&(1==K||3==P&&E-M>4096)&&(P=2)),3>U||P>U)if(0!==D){if(e=at(0,255&v[E-1]),e&&ht(!1),E++,R--,0===r.de)return 0}else D=1,E++,R--;else{n=E+R-3,e=at(E-1-B,U-3),R-=U-1,U-=2;do{++E>n||(_=(_<<x^255&v[E+2])&A,i=65535&z[_],S[E&h]=z[_],z[_]=E)}while(0!=--U);if(D=0,P=2,E++,e&&(ht(!1),0===r.de))return 0}}return 0!==D&&(e=at(0,255&v[E-1]),D=0),ht(4==t),0===r.de?4==t?2:0:4==t?3:1})(i)}if(2!=I&&3!=I||(o=b),0==I||2==I)return 0===r.de&&(c=-1),0;if(1==I){if(1==i)st(2,3),ot(256,l.Kt),ct(),9>1+Z+10-tt&&(st(2,3),ot(256,l.Kt),ct()),Z=7;else if(wt(0,0,!1),3==i)for(s=0;C>s;s++)z[s]=0;if(r.$t(),0===r.de)return c=-1,0}}return 4!=i?0:1}}function g(){const t=this;t.pe=0,t.ye=0,t.te=0,t.se=0,t.de=0,t.oe=0}return g.prototype={ne:function(t,e){const n=this;return n.ie=new v,e||(e=15),n.ie.ne(n,t,e)},le:function(t){const n=this;return n.ie?n.ie.le(n,t):e},ce:function(){const t=this;if(!t.ie)return e;const n=t.ie.ce();return t.ie=null,n},ae:function(t,n){const r=this;return r.ie?r.ie.ae(r,t,n):e},ue:function(t,n){const r=this;return r.ie?r.ie.ue(r,t,n):e},ee:function(t,e,n){const r=this;let i=r.te;return i>n&&(i=n),0===i?0:(r.te-=i,t.set(r.he.subarray(r.pe,r.pe+i),e),r.pe+=i,r.se+=i,i)},$t:function(){const t=this;let e=t.ie.pending;e>t.de&&(e=t.de),0!==e&&(t.we.set(t.ie.Xt.subarray(t.ie.fe,t.ie.fe+e),t.ye),t.ye+=e,t.ie.fe+=e,t.oe+=e,t.de-=e,t.ie.pending-=e,0===t.ie.pending&&(t.ie.fe=0))}},function(t){const e=new g,s=(o=t&&t.ot?t.ot:65536)+5*(n.floor(o/16383)+1);var o;const f=new i(s);let c=t?t.level:-1;void 0===c&&(c=-1),e.ne(c),e.we=f,this.append=(t,n)=>{let o,c,a=0,l=0,u=0;const w=[];if(t.length){e.pe=0,e.he=t,e.te=t.length;do{if(e.ye=0,e.de=s,o=e.le(0),0!=o)throw new r("deflating: "+e.re);e.ye&&(e.ye==s?w.push(new i(f)):w.push(f.slice(0,e.ye))),u+=e.ye,n&&e.pe>0&&e.pe!=a&&(n(e.pe),a=e.pe)}while(e.te>0||0===e.de);return w.length>1?(c=new i(u),w.forEach((t=>{c.set(t,l),l+=t.length}))):c=w[0]||new i(0),c}},this.flush=()=>{let t,n,o=0,c=0;const a=[];do{if(e.ye=0,e.de=s,t=e.le(4),1!=t&&0!=t)throw new r("deflating: "+e.re);s-e.de>0&&a.push(f.slice(0,e.ye)),c+=e.ye}while(e.te>0||0===e.de);return e.ce(),n=new i(c),a.forEach((t=>{n.set(t,o),o+=t.length})),n}}})(),ft=(()=>{const t=-2,e=-3,s=-5,o=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],c=[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],a=[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],l=[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],u=[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],w=[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],h=[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 d(){let t,n,r,i,o,c;function a(t,n,f,a,l,u,w,h,d,p,y){let b,m,k,v,g,S,z,_,C,I,A,x,V,P,B;I=0,g=f;do{r[t[n+I]]++,I++,g--}while(0!==g);if(r[0]==f)return w[0]=-1,h[0]=0,0;for(_=h[0],S=1;15>=S&&0===r[S];S++);for(z=S,S>_&&(_=S),g=15;0!==g&&0===r[g];g--);for(k=g,_>g&&(_=g),h[0]=_,P=1<<S;g>S;S++,P<<=1)if(0>(P-=r[S]))return e;if(0>(P-=r[g]))return e;for(r[g]+=P,c[1]=S=0,I=1,V=2;0!=--g;)c[V]=S+=r[I],V++,I++;g=0,I=0;do{0!==(S=t[n+I])&&(y[c[S]++]=g),I++}while(++g<f);for(f=c[k],c[0]=g=0,I=0,v=-1,x=-_,o[0]=0,A=0,B=0;k>=z;z++)for(b=r[z];0!=b--;){for(;z>x+_;){if(v++,x+=_,B=k-x,B=B>_?_:B,(m=1<<(S=z-x))>b+1&&(m-=b+1,V=z,B>S))for(;++S<B&&(m<<=1)>r[++V];)m-=r[V];if(B=1<<S,p[0]+B>1440)return e;o[v]=A=p[0],p[0]+=B,0!==v?(c[v]=g,i[0]=S,i[1]=_,S=g>>>x-_,i[2]=A-o[v-1]-S,d.set(i,3*(o[v-1]+S))):w[0]=A}for(i[1]=z-x,f>I?y[I]<a?(i[0]=256>y[I]?0:96,i[2]=y[I++]):(i[0]=u[y[I]-a]+16+64,i[2]=l[y[I++]-a]):i[0]=192,m=1<<z-x,S=g>>>x;B>S;S+=m)d.set(i,3*(A+S));for(S=1<<z-1;0!=(g&S);S>>>=1)g^=S;for(g^=S,C=(1<<x)-1;(g&C)!=c[v];)v--,x-=_,C=(1<<x)-1}return 0!==P&&1!=k?s:0}function d(e){let s;for(t||(t=[],n=[],r=new f(16),i=[],o=new f(15),c=new f(16)),n.length<e&&(n=[]),s=0;e>s;s++)n[s]=0;for(s=0;16>s;s++)r[s]=0;for(s=0;3>s;s++)i[s]=0;o.set(r.subarray(0,15),0),c.set(r.subarray(0,16),0)}this.be=(r,i,o,f,c)=>{let l;return d(19),t[0]=0,l=a(r,0,19,19,null,null,o,i,f,t,n),l==e?c.re="oversubscribed dynamic bit lengths tree":l!=s&&0!==i[0]||(c.re="incomplete dynamic bit lengths tree",l=e),l},this.me=(r,i,o,f,c,p,y,b,m)=>{let k;return d(288),t[0]=0,k=a(o,0,r,257,l,u,p,f,b,t,n),0!=k||0===f[0]?(k==e?m.re="oversubscribed literal/length tree":-4!=k&&(m.re="incomplete literal/length tree",k=e),k):(d(288),k=a(o,r,i,0,w,h,y,c,b,t,n),0!=k||0===c[0]&&r>257?(k==e?m.re="oversubscribed distance tree":k==s?(m.re="incomplete distance tree",k=e):-4!=k&&(m.re="empty distance tree with lengths",k=e),k):0)}}function p(){const n=this;let r,i,s,f,c=0,a=0,l=0,u=0,w=0,h=0,d=0,p=0,y=0,b=0;function m(t,n,r,i,s,f,c,a){let l,u,w,h,d,p,y,b,m,k,v,g,S,z,_,C;y=a.pe,b=a.te,d=c.ke,p=c.ve,m=c.write,k=m<c.read?c.read-m-1:c.end-m,v=o[t],g=o[n];do{for(;20>p;)b--,d|=(255&a.ge(y++))<<p,p+=8;if(l=d&v,u=r,w=i,C=3*(w+l),0!==(h=u[C]))for(;;){if(d>>=u[C+1],p-=u[C+1],0!=(16&h)){for(h&=15,S=u[C+2]+(d&o[h]),d>>=h,p-=h;15>p;)b--,d|=(255&a.ge(y++))<<p,p+=8;for(l=d&g,u=s,w=f,C=3*(w+l),h=u[C];;){if(d>>=u[C+1],p-=u[C+1],0!=(16&h)){for(h&=15;h>p;)b--,d|=(255&a.ge(y++))<<p,p+=8;if(z=u[C+2]+(d&o[h]),d>>=h,p-=h,k-=S,z>m){_=m-z;do{_+=c.end}while(0>_);if(h=c.end-_,S>h){if(S-=h,m-_>0&&h>m-_)do{c.Se[m++]=c.Se[_++]}while(0!=--h);else c.Se.set(c.Se.subarray(_,_+h),m),m+=h,_+=h,h=0;_=0}}else _=m-z,m-_>0&&2>m-_?(c.Se[m++]=c.Se[_++],c.Se[m++]=c.Se[_++],S-=2):(c.Se.set(c.Se.subarray(_,_+2),m),m+=2,_+=2,S-=2);if(m-_>0&&S>m-_)do{c.Se[m++]=c.Se[_++]}while(0!=--S);else c.Se.set(c.Se.subarray(_,_+S),m),m+=S,_+=S,S=0;break}if(0!=(64&h))return a.re="invalid distance code",S=a.te-b,S=S>p>>3?p>>3:S,b+=S,y-=S,p-=S<<3,c.ke=d,c.ve=p,a.te=b,a.se+=y-a.pe,a.pe=y,c.write=m,e;l+=u[C+2],l+=d&o[h],C=3*(w+l),h=u[C]}break}if(0!=(64&h))return 0!=(32&h)?(S=a.te-b,S=S>p>>3?p>>3:S,b+=S,y-=S,p-=S<<3,c.ke=d,c.ve=p,a.te=b,a.se+=y-a.pe,a.pe=y,c.write=m,1):(a.re="invalid literal/length code",S=a.te-b,S=S>p>>3?p>>3:S,b+=S,y-=S,p-=S<<3,c.ke=d,c.ve=p,a.te=b,a.se+=y-a.pe,a.pe=y,c.write=m,e);if(l+=u[C+2],l+=d&o[h],C=3*(w+l),0===(h=u[C])){d>>=u[C+1],p-=u[C+1],c.Se[m++]=u[C+2],k--;break}}else d>>=u[C+1],p-=u[C+1],c.Se[m++]=u[C+2],k--}while(k>=258&&b>=10);return S=a.te-b,S=S>p>>3?p>>3:S,b+=S,y-=S,p-=S<<3,c.ke=d,c.ve=p,a.te=b,a.se+=y-a.pe,a.pe=y,c.write=m,0}n.init=(t,e,n,o,c,a)=>{r=0,d=t,p=e,s=n,y=o,f=c,b=a,i=null},n.ze=(n,k,v)=>{let g,S,z,_,C,I,A,x=0,V=0,P=0;for(P=k.pe,_=k.te,x=n.ke,V=n.ve,C=n.write,I=C<n.read?n.read-C-1:n.end-C;;)switch(r){case 0:if(I>=258&&_>=10&&(n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,v=m(d,p,s,y,f,b,n,k),P=k.pe,_=k.te,x=n.ke,V=n.ve,C=n.write,I=C<n.read?n.read-C-1:n.end-C,0!=v)){r=1==v?7:9;break}l=d,i=s,a=y,r=1;case 1:for(g=l;g>V;){if(0===_)return n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);v=0,_--,x|=(255&k.ge(P++))<<V,V+=8}if(S=3*(a+(x&o[g])),x>>>=i[S+1],V-=i[S+1],z=i[S],0===z){u=i[S+2],r=6;break}if(0!=(16&z)){w=15&z,c=i[S+2],r=2;break}if(0==(64&z)){l=z,a=S/3+i[S+2];break}if(0!=(32&z)){r=7;break}return r=9,k.re="invalid literal/length code",v=e,n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);case 2:for(g=w;g>V;){if(0===_)return n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);v=0,_--,x|=(255&k.ge(P++))<<V,V+=8}c+=x&o[g],x>>=g,V-=g,l=p,i=f,a=b,r=3;case 3:for(g=l;g>V;){if(0===_)return n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);v=0,_--,x|=(255&k.ge(P++))<<V,V+=8}if(S=3*(a+(x&o[g])),x>>=i[S+1],V-=i[S+1],z=i[S],0!=(16&z)){w=15&z,h=i[S+2],r=4;break}if(0==(64&z)){l=z,a=S/3+i[S+2];break}return r=9,k.re="invalid distance code",v=e,n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);case 4:for(g=w;g>V;){if(0===_)return n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);v=0,_--,x|=(255&k.ge(P++))<<V,V+=8}h+=x&o[g],x>>=g,V-=g,r=5;case 5:for(A=C-h;0>A;)A+=n.end;for(;0!==c;){if(0===I&&(C==n.end&&0!==n.read&&(C=0,I=C<n.read?n.read-C-1:n.end-C),0===I&&(n.write=C,v=n._e(k,v),C=n.write,I=C<n.read?n.read-C-1:n.end-C,C==n.end&&0!==n.read&&(C=0,I=C<n.read?n.read-C-1:n.end-C),0===I)))return n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);n.Se[C++]=n.Se[A++],I--,A==n.end&&(A=0),c--}r=0;break;case 6:if(0===I&&(C==n.end&&0!==n.read&&(C=0,I=C<n.read?n.read-C-1:n.end-C),0===I&&(n.write=C,v=n._e(k,v),C=n.write,I=C<n.read?n.read-C-1:n.end-C,C==n.end&&0!==n.read&&(C=0,I=C<n.read?n.read-C-1:n.end-C),0===I)))return n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);v=0,n.Se[C++]=u,I--,r=0;break;case 7:if(V>7&&(V-=8,_++,P--),n.write=C,v=n._e(k,v),C=n.write,I=C<n.read?n.read-C-1:n.end-C,n.read!=n.write)return n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);r=8;case 8:return v=1,n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);case 9:return v=e,n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);default:return v=t,n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v)}},n.Ce=()=>{}}d.Ie=(t,e,n,r)=>(t[0]=9,e[0]=5,n[0]=c,r[0]=a,0);const y=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function b(n,r){const c=this;let a,l=0,u=0,w=0,h=0;const b=[0],m=[0],k=new p;let v=0,g=new f(4320);const S=new d;c.ve=0,c.ke=0,c.Se=new i(r),c.end=r,c.read=0,c.write=0,c.reset=(t,e)=>{e&&(e[0]=0),6==l&&k.Ce(t),l=0,c.ve=0,c.ke=0,c.read=c.write=0},c.reset(n,null),c._e=(t,e)=>{let n,r,i;return r=t.ye,i=c.read,n=(i>c.write?c.end:c.write)-i,n>t.de&&(n=t.de),0!==n&&e==s&&(e=0),t.de-=n,t.oe+=n,t.we.set(c.Se.subarray(i,i+n),r),r+=n,i+=n,i==c.end&&(i=0,c.write==c.end&&(c.write=0),n=c.write-i,n>t.de&&(n=t.de),0!==n&&e==s&&(e=0),t.de-=n,t.oe+=n,t.we.set(c.Se.subarray(i,i+n),r),r+=n,i+=n),t.ye=r,c.read=i,e},c.ze=(n,r)=>{let i,s,f,p,z,_,C,I;for(p=n.pe,z=n.te,s=c.ke,f=c.ve,_=c.write,C=_<c.read?c.read-_-1:c.end-_;;){let A,x,V,P,B,D,E,M;switch(l){case 0:for(;3>f;){if(0===z)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);r=0,z--,s|=(255&n.ge(p++))<<f,f+=8}switch(i=7&s,v=1&i,i>>>1){case 0:s>>>=3,f-=3,i=7&f,s>>>=i,f-=i,l=1;break;case 1:A=[],x=[],V=[[]],P=[[]],d.Ie(A,x,V,P),k.init(A[0],x[0],V[0],0,P[0],0),s>>>=3,f-=3,l=6;break;case 2:s>>>=3,f-=3,l=3;break;case 3:return s>>>=3,f-=3,l=9,n.re="invalid block type",r=e,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r)}break;case 1:for(;32>f;){if(0===z)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);r=0,z--,s|=(255&n.ge(p++))<<f,f+=8}if((~s>>>16&65535)!=(65535&s))return l=9,n.re="invalid stored block lengths",r=e,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);u=65535&s,s=f=0,l=0!==u?2:0!==v?7:0;break;case 2:if(0===z)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);if(0===C&&(_==c.end&&0!==c.read&&(_=0,C=_<c.read?c.read-_-1:c.end-_),0===C&&(c.write=_,r=c._e(n,r),_=c.write,C=_<c.read?c.read-_-1:c.end-_,_==c.end&&0!==c.read&&(_=0,C=_<c.read?c.read-_-1:c.end-_),0===C)))return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);if(r=0,i=u,i>z&&(i=z),i>C&&(i=C),c.Se.set(n.ee(p,i),_),p+=i,z-=i,_+=i,C-=i,0!=(u-=i))break;l=0!==v?7:0;break;case 3:for(;14>f;){if(0===z)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);r=0,z--,s|=(255&n.ge(p++))<<f,f+=8}if(w=i=16383&s,(31&i)>29||(i>>5&31)>29)return l=9,n.re="too many length or distance symbols",r=e,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);if(i=258+(31&i)+(i>>5&31),!a||a.length<i)a=[];else for(I=0;i>I;I++)a[I]=0;s>>>=14,f-=14,h=0,l=4;case 4:for(;4+(w>>>10)>h;){for(;3>f;){if(0===z)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);r=0,z--,s|=(255&n.ge(p++))<<f,f+=8}a[y[h++]]=7&s,s>>>=3,f-=3}for(;19>h;)a[y[h++]]=0;if(b[0]=7,i=S.be(a,b,m,g,n),0!=i)return(r=i)==e&&(a=null,l=9),c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);h=0,l=5;case 5:for(;i=w,258+(31&i)+(i>>5&31)>h;){let t,u;for(i=b[0];i>f;){if(0===z)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);r=0,z--,s|=(255&n.ge(p++))<<f,f+=8}if(i=g[3*(m[0]+(s&o[i]))+1],u=g[3*(m[0]+(s&o[i]))+2],16>u)s>>>=i,f-=i,a[h++]=u;else{for(I=18==u?7:u-14,t=18==u?11:3;i+I>f;){if(0===z)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);r=0,z--,s|=(255&n.ge(p++))<<f,f+=8}if(s>>>=i,f-=i,t+=s&o[I],s>>>=I,f-=I,I=h,i=w,I+t>258+(31&i)+(i>>5&31)||16==u&&1>I)return a=null,l=9,n.re="invalid bit length repeat",r=e,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);u=16==u?a[I-1]:0;do{a[I++]=u}while(0!=--t);h=I}}if(m[0]=-1,B=[],D=[],E=[],M=[],B[0]=9,D[0]=6,i=w,i=S.me(257+(31&i),1+(i>>5&31),a,B,D,E,M,g,n),0!=i)return i==e&&(a=null,l=9),r=i,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);k.init(B[0],D[0],g,E[0],g,M[0]),l=6;case 6:if(c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,1!=(r=k.ze(c,n,r)))return c._e(n,r);if(r=0,k.Ce(n),p=n.pe,z=n.te,s=c.ke,f=c.ve,_=c.write,C=_<c.read?c.read-_-1:c.end-_,0===v){l=0;break}l=7;case 7:if(c.write=_,r=c._e(n,r),_=c.write,C=_<c.read?c.read-_-1:c.end-_,c.read!=c.write)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);l=8;case 8:return r=1,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);case 9:return r=e,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);default:return r=t,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r)}}},c.Ce=t=>{c.reset(t,null),c.Se=null,g=null},c.Ae=(t,e,n)=>{c.Se.set(t.subarray(e,e+n),0),c.read=c.write=n},c.xe=()=>1==l?1:0}const m=13,k=[0,0,255,255];function v(){const n=this;function r(e){return e&&e.Ve?(e.se=e.oe=0,e.re=null,e.Ve.mode=7,e.Ve.Pe.reset(e,null),0):t}n.mode=0,n.method=0,n.Be=[0],n.De=0,n.marker=0,n.Ee=0,n.Me=t=>(n.Pe&&n.Pe.Ce(t),n.Pe=null,0),n.Re=(e,i)=>(e.re=null,n.Pe=null,8>i||i>15?(n.Me(e),t):(n.Ee=i,e.Ve.Pe=new b(e,1<<i),r(e),0)),n.Ue=(n,r)=>{let i,o;if(!n||!n.Ve||!n.he)return t;const f=n.Ve;for(r=4==r?s:0,i=s;;)switch(f.mode){case 0:if(0===n.te)return i;if(i=r,n.te--,n.se++,8!=(15&(f.method=n.ge(n.pe++)))){f.mode=m,n.re="unknown compression method",f.marker=5;break}if(8+(f.method>>4)>f.Ee){f.mode=m,n.re="invalid win size",f.marker=5;break}f.mode=1;case 1:if(0===n.te)return i;if(i=r,n.te--,n.se++,o=255&n.ge(n.pe++),((f.method<<8)+o)%31!=0){f.mode=m,n.re="incorrect header check",f.marker=5;break}if(0==(32&o)){f.mode=7;break}f.mode=2;case 2:if(0===n.te)return i;i=r,n.te--,n.se++,f.De=(255&n.ge(n.pe++))<<24&4278190080,f.mode=3;case 3:if(0===n.te)return i;i=r,n.te--,n.se++,f.De+=(255&n.ge(n.pe++))<<16&16711680,f.mode=4;case 4:if(0===n.te)return i;i=r,n.te--,n.se++,f.De+=(255&n.ge(n.pe++))<<8&65280,f.mode=5;case 5:return 0===n.te?i:(i=r,n.te--,n.se++,f.De+=255&n.ge(n.pe++),f.mode=6,2);case 6:return f.mode=m,n.re="need dictionary",f.marker=0,t;case 7:if(i=f.Pe.ze(n,i),i==e){f.mode=m,f.marker=0;break}if(0==i&&(i=r),1!=i)return i;i=r,f.Pe.reset(n,f.Be),f.mode=12;case 12:return n.te=0,1;case m:return e;default:return t}},n.Te=(e,n,r)=>{let i=0,s=r;if(!e||!e.Ve||6!=e.Ve.mode)return t;const o=e.Ve;return s<1<<o.Ee||(s=(1<<o.Ee)-1,i=r-s),o.Pe.Ae(n,i,s),o.mode=7,0},n.je=n=>{let i,o,f,c,a;if(!n||!n.Ve)return t;const l=n.Ve;if(l.mode!=m&&(l.mode=m,l.marker=0),0===(i=n.te))return s;for(o=n.pe,f=l.marker;0!==i&&4>f;)n.ge(o)==k[f]?f++:f=0!==n.ge(o)?0:4-f,o++,i--;return n.se+=o-n.pe,n.pe=o,n.te=i,l.marker=f,4!=f?e:(c=n.se,a=n.oe,r(n),n.se=c,n.oe=a,l.mode=7,0)},n.He=e=>e&&e.Ve&&e.Ve.Pe?e.Ve.Pe.xe():t}function g(){}return g.prototype={Re:function(t){const e=this;return e.Ve=new v,t||(t=15),e.Ve.Re(e,t)},Ue:function(e){const n=this;return n.Ve?n.Ve.Ue(n,e):t},Me:function(){const e=this;if(!e.Ve)return t;const n=e.Ve.Me(e);return e.Ve=null,n},je:function(){const e=this;return e.Ve?e.Ve.je(e):t},Te:function(e,n){const r=this;return r.Ve?r.Ve.Te(r,e,n):t},ge:function(t){return this.he[t]},ee:function(t,e){return this.he.subarray(t,t+e)}},function(t){const e=new g,o=t&&t.ot?n.floor(2*t.ot):131072,f=new i(o);let c=!1;e.Re(),e.we=f,this.append=(t,n)=>{const a=[];let l,u,w=0,h=0,d=0;if(0!==t.length){e.pe=0,e.he=t,e.te=t.length;do{if(e.ye=0,e.de=o,0!==e.te||c||(e.pe=0,c=!0),l=e.Ue(0),c&&l===s){if(0!==e.te)throw new r("inflating: bad input")}else if(0!==l&&1!==l)throw new r("inflating: "+e.re);if((c||1===l)&&e.te===t.length)throw new r("inflating: bad input");e.ye&&(e.ye===o?a.push(new i(f)):a.push(f.slice(0,e.ye))),d+=e.ye,n&&e.pe>0&&e.pe!=w&&(n(e.pe),w=e.pe)}while(e.te>0||0===e.de);return a.length>1?(u=new i(d),a.forEach((t=>{u.set(t,h),h+=t.length}))):u=a[0]||new i(0),u}},this.flush=()=>{e.Me()}}})();self.initCodec=()=>{self.Deflate=ot,self.Inflate=ft};\n'],{type:"text/javascript"}));e({workerScripts:{inflate:[t],deflate:[t]}})}})(A),e.BlobReader=Ze,e.BlobWriter=Ke,e.Data64URIReader=qe,e.Data64URIWriter=Oe,e.ERR_ABORT=St,e.ERR_BAD_FORMAT=xt,e.ERR_CENTRAL_DIRECTORY_NOT_FOUND=Ft,e.ERR_DUPLICATED_NAME=tn,e.ERR_ENCRYPTED=Vt,e.ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND=Tt,e.ERR_EOCDR_NOT_FOUND=Dt,e.ERR_EOCDR_ZIP64_NOT_FOUND=At,e.ERR_EXTRAFIELD_ZIP64_NOT_FOUND=Ut,e.ERR_HTTP_RANGE=Ue,e.ERR_INVALID_COMMENT=nn,e.ERR_INVALID_ENCRYPTION_STRENGTH=on,e.ERR_INVALID_ENTRY_COMMENT=rn,e.ERR_INVALID_ENTRY_NAME=sn,e.ERR_INVALID_EXTRAFIELD_DATA=ln,e.ERR_INVALID_EXTRAFIELD_TYPE=cn,e.ERR_INVALID_PASSWORD=H,e.ERR_INVALID_SIGNATURE=ve,e.ERR_INVALID_VERSION=an,e.ERR_LOCAL_FILE_HEADER_NOT_FOUND=It,e.ERR_NOT_SEEKABLE_READER=Ve,e.ERR_UNSUPPORTED_COMPRESSION=Pt,e.ERR_UNSUPPORTED_ENCRYPTION=Bt,e.ERR_UNSUPPORTED_FORMAT=dn,e.HttpRangeReader=class extends ot{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},e.HttpReader=ot,e.ReadableStreamReader=class{constructor(e){this.readableStream=e,this.reader=e.getReader(),this.size=1/0,this.index=0,this.currentSize=0,this.pendingValue=new d}init(){this.initialized=!0}async readUint8Array(e,t){if(this.index!=e)throw new l(Ve);let n,r=new d(t),i=0;do{const e=await this.reader.read();let{value:s}=e;if(n=e.done,s?this.currentSize+=s.length:(s=this.pendingValue,this.pendingValue=new d),this.pendingValue.length){const e=new d(this.pendingValue.length+s.length);e.set(this.pendingValue),e.set(s,this.pendingValue.length),this.pendingValue=new d,s=e}i+s.length>t?(r.set(s.subarray(0,t),i),this.pendingValue=s.subarray(t),i+=t):(r.set(s,i),i+=s.length)}while(t>i&&!n);return n&&this.size==1/0&&(this.size=this.currentSize),this.size<t&&(r=r.slice(0,this.size),t=this.size),this.index+=t,r}},e.Reader=Me,e.TextReader=He,e.TextWriter=Ne,e.Uint8ArrayReader=ct,e.Uint8ArrayWriter=lt,e.WritableStreamWriter=class extends Le{constructor(e){super(),this.writableStream=e,this.writer=e.getWriter()}async writeUint8Array(e){return await this.writer.ready,this.writer.write(e)}async getData(){return await this.writer.ready,await this.writer.close(),this.writableStream}},e.Writer=Le,e.ZipReader=Ht,e.ZipWriter=hn,e.configure=A,e.fs=En,e.getMimeType=()=>"application/octet-stream",e.initShimAsyncCodec=(e,t={},n)=>({Deflate:T(e.Deflate,t.deflate,n),Inflate:T(e.Inflate,t.inflate,n)}),e.terminateWorkers=()=>{xe.forEach((e=>{Fe(e),e.terminate()}))},n.defineProperty(e,"__esModule",{value:!0})}));
1
+ ((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).zip={})})(this,(function(e){"use strict";const{Array:t,Object:n,String:r,BigInt:i,Math:s,Date:a,Map:o,URL:c,Error:l,Uint8Array:u,Uint16Array:f,Uint32Array:d,DataView:h,Blob:p,Promise:w,TextEncoder:g,TextDecoder:y,FileReader:m,document:b,crypto:k,btoa:z,TransformStream:S,ReadableStream:v,WritableStream:R,CompressionStream:C,DecompressionStream:_}=globalThis,x={chunkSize:524288,maxWorkers:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||2,terminateWorkerTimeout:5e3,useWebWorkers:!0,workerScripts:void 0},E=n.assign({},x);function D(){return E}function A(e){return s.max(e.chunkSize,64)}function T(e){if(void 0!==e.baseURL&&(E.baseURL=e.baseURL),void 0!==e.chunkSize&&(E.chunkSize=e.chunkSize),void 0!==e.maxWorkers&&(E.maxWorkers=e.maxWorkers),void 0!==e.terminateWorkerTimeout&&(E.terminateWorkerTimeout=e.terminateWorkerTimeout),void 0!==e.useCompressionStream&&(E.useCompressionStream=e.useCompressionStream),void 0!==e.useWebWorkers&&(E.useWebWorkers=e.useWebWorkers),void 0!==e.Deflate&&(E.Deflate=e.Deflate),void 0!==e.Inflate&&(E.Inflate=e.Inflate),void 0!==e.workerScripts){if(e.workerScripts.deflate){if(!t.isArray(e.workerScripts.deflate))throw new l("workerScripts.deflate must be an array");E.workerScripts||(E.workerScripts={}),E.workerScripts.deflate=e.workerScripts.deflate}if(e.workerScripts.inflate){if(!t.isArray(e.workerScripts.inflate))throw new l("workerScripts.inflate must be an array");E.workerScripts||(E.workerScripts={}),E.workerScripts.inflate=e.workerScripts.inflate}}}function F(e,t,r){return class{constructor(i){const s=this;i.hasOwnProperty("level")&&void 0===i.level&&delete i.level,s.codec=new e(n.assign({},t,i)),r(s.codec,(e=>{if(s.pendingData){const t=s.pendingData;s.pendingData=new u(t.length+e.length),s.pendingData.set(t,0),s.pendingData.set(e,t.length)}else s.pendingData=new u(e)}))}append(e){return this.codec.push(e),i(this)}flush(){return this.codec.push(new u(0),!0),i(this)}};function i(e){if(e.pendingData){const t=e.pendingData;return e.pendingData=null,t}return new u(0)}}const I=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;I[e]=t}class U{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^I[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class B extends S{constructor(){super({start(){this.crc32=new U},transform(e){this.crc32.append(e)},flush(e){const t=new u(4);new h(t.buffer).setUint32(0,this.crc32.get()),e.enqueue(t)}})}}function P(e){if(void 0===g){const t=new u((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new g).encode(e)}const V={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=V.getPartial(n);return 32===r?e.concat(t):V._shiftRight(t,r,0|n,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+V.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,s.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=V.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>s.round(e/1099511627776)||32,_shiftRight(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let i=0;i<e.length;i++)r.push(n|e[i]>>>t),n=e[i]<<32-t;const i=e.length?e[e.length-1]:0,s=V.getPartial(i);return r.push(V.partial(t+s&31,t+s>32?n:r.pop(),1)),r}},W={bytes:{fromBits(e){const t=V.bitLength(e)/8,n=new u(t);let r;for(let i=0;t>i;i++)0==(3&i)&&(r=e[i/4]),n[i]=r>>>24,r<<=8;return n},toBits(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3==(3&n)&&(t.push(r),r=0);return 3&n&&t.push(V.partial(8*(3&n),r)),t}}},Q={sha1:function(e){e?(this._h=e._h.slice(0),this._buffer=e._buffer.slice(0),this._length=e._length):this.reset()}};Q.sha1.prototype={blockSize:512,reset:function(){const e=this;return e._h=this._init.slice(0),e._buffer=[],e._length=0,e},update:function(e){const t=this;"string"==typeof e&&(e=W.utf8String.toBits(e));const n=t._buffer=V.concat(t._buffer,e),r=t._length,i=t._length=r+V.bitLength(e);if(i>9007199254740991)throw new l("Cannot hash more than 2^53 - 1 bits");const s=new d(n);let a=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t._block(s.subarray(16*a,16*(a+1))),a+=1;return n.splice(0,16*a),t},finalize:function(){const e=this;let t=e._buffer;const n=e._h;t=V.concat(t,[V.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(s.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:(e,t,n,r)=>e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r,_S:(e,t)=>t<<e|t>>>32-e,_block:function(e){const n=this,r=n._h,i=t(80);for(let t=0;16>t;t++)i[t]=e[t];let a=r[0],o=r[1],c=r[2],l=r[3],u=r[4];for(let e=0;79>=e;e++){16>e||(i[e]=n._S(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n._S(5,a)+n._f(e,o,c,l)+u+i[e]+n._key[s.floor(e/20)]|0;u=l,l=c,c=n._S(30,o),o=a,a=t}r[0]=r[0]+a|0,r[1]=r[1]+o|0,r[2]=r[2]+c|0,r[3]=r[3]+l|0,r[4]=r[4]+u|0}};const M={getRandomValues(e){const t=new d(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(s.random()>.5?1:-1))};for(let r,i=0;i<e.length;i+=4){const e=n(4294967296*(r||s.random()));r=987654071*e(),t[i/4]=4294967296*e()|0}return e}},N={importKey:e=>new N.hmacSha1(W.bytes.toBits(e)),pbkdf2(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new l("invalid params to pbkdf2");const i=1+(r>>5)<<2;let s,a,o,c,u;const f=new ArrayBuffer(i),d=new h(f);let p=0;const w=V;for(t=W.bytes.toBits(t),u=1;(i||1)>p;u++){for(s=a=e.encrypt(w.concat(t,[u])),o=1;n>o;o++)for(a=e.encrypt(a),c=0;c<a.length;c++)s[c]^=a[c];for(o=0;(i||1)>p&&o<s.length;o++)d.setInt32(p,s[o]),p+=4}return f.slice(0,r/8)},hmacSha1:class{constructor(e){const t=this,n=t._hash=Q.sha1,r=[[],[]],i=n.prototype.blockSize/32;t._baseHash=[new n,new n],e.length>i&&(e=n.hash(e));for(let t=0;i>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t._baseHash[0].update(r[0]),t._baseHash[1].update(r[1]),t._resultHash=new n(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){this._updated=!0,this._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}encrypt(e){if(this._updated)throw new l("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},Z="Invalid pasword",q=16,L={name:"PBKDF2"},H=n.assign({hash:{name:"HMAC"}},L),O=n.assign({iterations:1e3,hash:{name:"SHA-1"}},L),$=["deriveBits"],j=[8,12,16],K=[16,24,32],G=10,X=[0,0,0,0],Y="undefined",J="function",ee=typeof k!=Y,te=ee&&typeof k.subtle!=Y,ne=ee&&typeof k.getRandomValues==J,re=ee&&te&&typeof k.subtle.importKey==J,ie=ee&&te&&typeof k.subtle.deriveBits==J,se=W.bytes,ae=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],r=t._tables[1],i=e.length;let s,a,o,c=1;if(4!==i&&6!==i&&8!==i)throw new l("invalid aes key size");for(t._key=[a=e.slice(0),o=[]],s=i;4*i+28>s;s++){let e=a[s-1];(s%i==0||8===i&&s%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],s%i==0&&(e=e<<8^e>>>24^c<<24,c=c<<1^283*(c>>7))),a[s]=a[s-i]^e}for(let e=0;s;e++,s--){const t=a[3&e?s:s-4];o[e]=4>=s||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],i=[],s=[];let a,o,c,l;for(let e=0;256>e;e++)s[(i[e]=e<<1^283*(e>>7))^e]=e;for(let u=a=0;!n[u];u^=o||1,a=s[a]||1){let s=a^a<<1^a<<2^a<<3^a<<4;s=s>>8^255&s^99,n[u]=s,r[s]=u,l=i[c=i[o=i[u]]];let f=16843009*l^65537*c^257*o^16843008*u,d=257*i[s]^16843008*s;for(let n=0;4>n;n++)e[n][u]=d=d<<24^d>>>8,t[n][s]=f=f<<24^f>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new l("invalid aes block size");const n=this._key[t],r=n.length/4-2,i=[0,0,0,0],s=this._tables[t],a=s[0],o=s[1],c=s[2],u=s[3],f=s[4];let d,h,p,w=e[0]^n[0],g=e[t?3:1]^n[1],y=e[2]^n[2],m=e[t?1:3]^n[3],b=4;for(let e=0;r>e;e++)d=a[w>>>24]^o[g>>16&255]^c[y>>8&255]^u[255&m]^n[b],h=a[g>>>24]^o[y>>16&255]^c[m>>8&255]^u[255&w]^n[b+1],p=a[y>>>24]^o[m>>16&255]^c[w>>8&255]^u[255&g]^n[b+2],m=a[m>>>24]^o[w>>16&255]^c[g>>8&255]^u[255&y]^n[b+3],b+=4,w=d,g=h,y=p;for(let e=0;4>e;e++)i[t?3&-e:e]=f[w>>>24]<<24^f[g>>16&255]<<16^f[y>>8&255]<<8^f[255&m]^n[b++],d=w,w=g,g=y,y=m,m=d;return i}},oe=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];const i=V.bitLength(t);for(let i=0;r>i;i+=4){this.incCounter(n);const r=e.encrypt(n);t[i]^=r[0],t[i+1]^=r[1],t[i+2]^=r[2],t[i+3]^=r[3]}return V.clamp(t,i)}},ce=N.hmacSha1;class le extends S{constructor(e,r,i){let s;super({start(){n.assign(this,{ready:new w((e=>this.resolveReady=e)),password:e,signed:r,strength:i-1,pending:new u(0)})},async transform(e,n){const r=this;if(r.password){const n=r.password;r.password=null;const i=pe(e,0,j[r.strength]+2);await(async(e,t,n)=>{await de(e,n,pe(t,0,j[e.strength]));const r=pe(t,j[e.strength]),i=e.keys.passwordVerification;if(i[0]!=r[0]||i[1]!=r[1])throw new l(Z)})(r,i,n),r.ctr=new oe(new ae(r.keys.key),t.from(X)),r.hmac=new ce(r.keys.authentication),e=pe(e,j[r.strength]+2),r.resolveReady()}else await r.ready;const i=new u(e.length-G-(e.length-G)%q);n.enqueue(fe(r,e,i,0,G,!0))},async flush(e){const t=this;await t.ready;const n=t.pending,r=pe(n,0,n.length-G),i=pe(n,n.length-G);let a=new u(0);if(r.length){const e=ge(se,r);t.hmac.update(e);const n=t.ctr.update(e);a=we(se,n)}if(s.valid=!0,t.signed){const e=pe(we(se,t.hmac.digest()),0,G);for(let t=0;G>t;t++)e[t]!=i[t]&&(s.valid=!1)}e.enqueue(a)}}),s=this}}class ue extends S{constructor(e,r){let i;super({start(){n.assign(this,{ready:new w((e=>this.resolveReady=e)),password:e,strength:r-1,pending:new u(0)})},async transform(e,n){const r=this;let i=new u(0);if(r.password){const e=r.password;r.password=null,i=await(async(e,t)=>{const n=(r=new u(j[e.strength]),ne?k.getRandomValues(r):M.getRandomValues(r));var r;return await de(e,t,n),he(n,e.keys.passwordVerification)})(r,e),r.ctr=new oe(new ae(r.keys.key),t.from(X)),r.hmac=new ce(r.keys.authentication),r.resolveReady()}else await r.ready;const s=new u(i.length+e.length-e.length%q);s.set(i,0),n.enqueue(fe(r,e,s,i.length,0))},async flush(e){const t=this;await t.ready;let n=new u(0);if(t.pending.length){const e=t.ctr.update(ge(se,t.pending));t.hmac.update(e),n=we(se,e)}i.signature=we(se,t.hmac.digest()).slice(0,G),e.enqueue(he(n,i.signature))}}),i=this}}function fe(e,t,n,r,i,s){const a=t.length-i;let o;for(e.pending.length&&(t=he(e.pending,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new u(t)).set(n,0)}return e})(n,a-a%q)),o=0;a-q>=o;o+=q){const i=ge(se,pe(t,o,o+q));s&&e.hmac.update(i);const a=e.ctr.update(i);s||e.hmac.update(a),n.set(we(se,a),o+r)}return e.pending=pe(t,o),n}async function de(e,t,r){const i=P(t),s=await((e,t,n,r,i)=>re?k.subtle.importKey("raw",t,n,!1,i):N.importKey(t))(0,i,H,0,$),a=await(async(e,t,n)=>ie?await k.subtle.deriveBits(e,t,n):N.pbkdf2(t,e.salt,O.iterations,n))(n.assign({salt:r},O),s,8*(2*K[e.strength]+2)),o=new u(a);e.keys={key:ge(se,pe(o,0,K[e.strength])),authentication:ge(se,pe(o,K[e.strength],2*K[e.strength])),passwordVerification:pe(o,2*K[e.strength])}}function he(e,t){let n=e;return e.length+t.length&&(n=new u(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function pe(e,t,n){return e.subarray(t,n)}function we(e,t){return e.fromBits(t)}function ge(e,t){return e.toBits(t)}class ye extends S{constructor(e,t){let r;super({start(){n.assign(this,{password:e,passwordVerification:t}),ze(this,e)},transform(e,t){const n=this;if(n.password){const t=be(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new l(Z);e=e.subarray(12)}t.enqueue(be(n,e))},flush(){r.valid=!0}}),r=this}}class me extends S{constructor(e,t){super({start(){n.assign(this,{password:e,passwordVerification:t}),ze(this,e)},transform(e,t){const n=this;let r,i;if(n.password){n.password=null;const t=k.getRandomValues(new u(12));t[11]=n.passwordVerification,r=new u(e.length+t.length),r.set(ke(n,t),0),i=12}else r=new u(e.length),i=0;r.set(ke(n,e),i),t.enqueue(r)},flush(){}})}}function be(e,t){const n=new u(t.length);for(let r=0;r<t.length;r++)n[r]=ve(e)^t[r],Se(e,n[r]);return n}function ke(e,t){const n=new u(t.length);for(let r=0;r<t.length;r++)n[r]=ve(e)^t[r],Se(e,t[r]);return n}function ze(e,t){e.keys=[305419896,591751049,878082192],e.crcKey0=new U(e.keys[0]),e.crcKey2=new U(e.keys[2]);for(let n=0;n<t.length;n++)Se(e,t.charCodeAt(n))}function Se(e,t){e.crcKey0.append([t]),e.keys[0]=~e.crcKey0.get(),e.keys[1]=Ce(e.keys[1]+Re(e.keys[0])),e.keys[1]=Ce(s.imul(e.keys[1],134775813)+1),e.crcKey2.append([e.keys[1]>>>24]),e.keys[2]=~e.crcKey2.get()}function ve(e){const t=2|e.keys[2];return Re(s.imul(t,1^t)>>>8)}function Re(e){return 255&e}function Ce(e){return 4294967295&e}class _e extends S{constructor(e,t){let n;super({start(){n=new e(t)},transform(e,t){e=n.append(e),t.enqueue(e)},flush(e){const t=n.flush();t&&e.enqueue(t)}})}}const xe="Invalid signature",Ee="deflate-raw",De="undefined",Ae=typeof C==De,Te=typeof _==De;let Fe=!0,Ie=!0;class Ue extends S{constructor(e,t,{chunkSize:n},...r){super({},...r);const{compressed:i,useCompressionStream:s,password:a,passwordVerification:o,encryptionStrength:c,zipCrypto:l,signed:u}=t,f=this;let d,p,w=Ve(super.readable);const g=!!a;if(g&&!l||!u||([w,d]=w.tee(),d=d.pipeThrough(new B)),i)if(void 0!==s&&!s||Ae&&!Ie)w=Pe(e,w,n);else try{const e=new C(Ee);w=w.pipeThrough(e)}catch(t){Ie=!1,w=Pe(e,w,n)}g&&(l?w=w.pipeThrough(new me(a,o)):(p=new ue(a,c),w=w.pipeThrough(p))),We(f,w,(async()=>{let e;g&&!l&&(e=p.signature),g&&!l||!u||(e=await d.getReader().read(),e=new h(e.value.buffer).getUint32(0)),f.signature=e}))}}class Be extends S{constructor(e,t,{chunkSize:n},...r){super({},...r);const{zipCrypto:i,password:s,passwordVerification:a,signed:o,encryptionStrength:c,compressed:u,useCompressionStream:f}=t;let d,p,w=Ve(super.readable);const g=!!s;if(g&&(i?w=w.pipeThrough(new ye(s,a)):(p=new le(s,o,c),w=w.pipeThrough(p))),u)if(void 0!==f&&!f||Te&&!Fe)w=Pe(e,w,n);else try{w=w.pipeThrough(new _(Ee))}catch(t){Fe=!1,w=Pe(e,w,n)}g&&!i||!o||([w,d]=w.tee(),d=d.pipeThrough(new B)),We(this,w,(async()=>{if(g&&!i&&!p.valid)throw new l(xe);if((!g||i)&&o){const e=await d.getReader().read();if(e!=new h(e.value.buffer).getUint32(0,!1))throw new l(xe)}}))}}function Pe(e,t,n){return t.pipeThrough(new _e(e,{chunkSize:n}))}function Ve(e){return e.pipeThrough(new S({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function We(e,t,r){e.length=0,t=t.pipeThrough(new S({transform(t,n){t&&t.length&&(e.length+=t.length,n.enqueue(t))},flush:r})),n.defineProperty(e,"readable",{get:()=>t})}const Qe="deflate",Me="inflate",Ne="data",Ze="AbortError";let qe=!0;function Le(e,t,r,i,s,a,o,f,d,h){n.assign(e,{busy:!0,codecConstructor:t,readable:r,writable:i,options:n.assign({},s),scripts:h,terminate(){e.worker&&!e.busy&&(e.worker.terminate(),e.interface=null)},onTaskFinished(){e.busy=!1,f(e)}});const{signal:p,onprogress:g,size:y}=o;if(p||g){let t=0;const n={};g&&(n.transform=(e,n)=>{t+=e.length;try{g(t,y())}catch(e){}n.enqueue(e)}),e.readable=r.pipeThrough(new S(n),{signal:p})}return d?((e,{baseURL:t,chunkSize:n})=>{const r={type:"module"};if(e.reader=e.readable.getReader(),e.writer=e.writable.getWriter(),e.result=new w(((t,n)=>{e.resolveResult=t,e.rejectResult=n})),!e.interface){if(qe)try{e.worker=i({})}catch(t){qe=!1,e.worker=i(r)}else e.worker=i(r);e.worker.addEventListener("message",(async t=>{const n=t.data,r=n.error;try{if(r){const t=new l(r.message);t.stack=r.stack,e.rejectResult(t),e.onTaskFinished()}else{if("pull"==n.type){const{value:t,done:r}=await e.reader.read();s({type:Ne,data:t,done:r,messageId:n.messageId})}if(n.type==Ne){let{data:t}=n;t=new u(t),await e.writer.ready,e.writer.write(t)}"close"==n.type&&(e.resolveResult(n.result),e.onTaskFinished())}}catch(t){e.rejectResult(t),e.onTaskFinished()}}),!1),e.interface={abort(){s({type:"abort"}),e.onTaskFinished()},run(){const t=e.options;return s({type:"start",scripts:e.scripts.slice(1),options:t,config:{chunkSize:n}}),e.result}}}return e.interface;function i(n){let r,i;r=e.scripts[0],"function"==typeof r&&(r=r());try{i=new c(r,t)}catch(e){i=r}return new Worker(i,n)}function s(t){const n=e.worker;try{if(t.data)try{t.data=t.data.buffer,n.postMessage(t,[t.data])}catch(e){n.postMessage(t)}else n.postMessage(t)}catch(t){throw e.onTaskFinished(),t}}})(e,a):((e,t)=>{const n=((e,t,n,r,i)=>{const s=new AbortController,{signal:a}=s;if(r.codecType.startsWith(Qe))return{run:()=>o(Ue),abort:c};if(r.codecType.startsWith(Me))return{run:()=>o(Be),abort:c};async function o(s){const o=new s(e,r,i);await t.pipeThrough(o,{signal:a}).pipeTo(n);const{length:c,signature:l}=o;return{length:c,signature:l}}function c(){s.abort()}})(e.codecConstructor,e.readable,e.writable,e.options,t);return{abort(){n.abort(),e.onTaskFinished()},run(){const t=n.run();return e.onTaskFinished(),t}}})(e,a)}let He=[];const Oe=[];let $e=0;async function je(e,t,n,r,i,s){const a=!(!r.compressed&&!r.signed&&!r.encrypted)&&(r.useWebWorkers||void 0===r.useWebWorkers&&i.useWebWorkers),o=a&&i.workerScripts?i.workerScripts[r.codecType]:[];let c;if(r.useCompressionStream=void 0===r.useCompressionStream?i.useCompressionStream:r.useCompressionStream,He.length<i.maxWorkers){const l={indexWorker:$e};$e++,He.push(l),c=Le(l,e,t,n,r,i,s,f,a,o)}else{const l=He.find((e=>!e.busy));l?(Ke(l),c=Le(l,e,t,n,r,i,s,f,a,o)):c=await new w((i=>Oe.push({resolve:i,codecConstructor:e,readable:t,writable:n,options:r,webWorker:a,scripts:o})))}const{signal:u}=s;try{return await c.run(u)}catch(e){throw u&&u.aborted&&(u.reason==e||e.name==Ze)?(c.abort(),new l(Ze)):e}function f(e){if(Oe.length){const[{resolve:t,codecConstructor:n,readable:r,writable:a,options:o,webWorker:c,scripts:l}]=Oe.splice(0,1);t(Le(e,n,r,a,o,i,s,f,c,l))}else e.worker?(Ke(e),Number.isFinite(i.terminateWorkerTimeout)&&i.terminateWorkerTimeout>=0&&(e.terminateTimeout=setTimeout((()=>{He=He.filter((t=>t!=e)),e.terminate()}),i.terminateWorkerTimeout))):He=He.filter((t=>t!=e))}}function Ke(e){e.terminateTimeout&&(clearTimeout(e.terminateTimeout),e.terminateTimeout=null)}const Ge="HTTP error ",Xe="HTTP Range not supported",Ye="text/plain",Je="GET";class et{constructor(){this.size=0}init(){this.initialized=!0}}class tt extends et{getStream({offset:e,size:t,chunkSize:n}={offset:0,chunkSize:65536}){const r=this;return new v({start(){this.chunkOffset=0},async pull(i){const{chunkOffset:a}=this;i.enqueue(await r.readUint8Array(e+a,s.min(n,t()-a))),a+n>t()?i.close():this.chunkOffset+=n}})}}class nt extends et{getStream(){const e=this;return new R({write:t=>e.writeUint8Array(t)})}}class rt extends nt{writeUint8Array(e){this.size+=e.length}}class it extends tt{constructor(e){super(),this.blobReader=new ct(new p([e],{type:Ye}))}init(){const e=this;super.init(),e.blobReader.init(),e.size=e.blobReader.size}readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}}class st extends rt{constructor(e){super(),this.encoding=e,this.blob=new p([],{type:Ye})}writeUint8Array(e){super.writeUint8Array(e),this.blob=new p([this.blob,e.buffer],{type:Ye})}getData(){const e=this;if(e.blob.text)return e.blob.text();{const t=new m;return new w(((n,r)=>{t.onload=e=>n(e.target.result),t.onerror=()=>r(t.error),t.readAsText(e.blob,e.encoding)}))}}}class at extends tt{constructor(e){super();const t=this;t.dataURI=e;let n=e.length;for(;"="==e.charAt(n-1);)n--;t.dataStart=e.indexOf(",")+1,t.size=s.floor(.75*(n-t.dataStart))}readUint8Array(e,t){const n=new u(t),r=4*s.floor(e/3),i=this.dataStart,a=atob(this.dataURI.substring(r+i,4*s.ceil((e+t)/3)+i)),o=e-3*s.floor(r/4);for(let e=o;o+t>e;e++)n[e-o]=a.charCodeAt(e);return n}}class ot extends rt{constructor(e){super(),this.data="data:"+(e||"")+";base64,",this.pending=[]}writeUint8Array(e){super.writeUint8Array(e);const t=this;let n=0,i=t.pending;const a=t.pending.length;for(t.pending="",n=0;n<3*s.floor((a+e.length)/3)-a;n++)i+=r.fromCharCode(e[n]);for(;n<e.length;n++)t.pending+=r.fromCharCode(e[n]);i.length>2?t.data+=z(i):t.pending=i}getData(){return this.data+z(this.pending)}}class ct extends tt{constructor(e){super(),this.blob=e,this.size=e.size}async readUint8Array(e,t){if(this.blob.arrayBuffer)return new u(await this.blob.slice(e,e+t).arrayBuffer());{const n=new m;return new w(((r,i)=>{n.onload=e=>r(new u(e.target.result)),n.onerror=()=>i(n.error),n.readAsArrayBuffer(n.blob.slice(e,e+t))}))}}}class lt extends rt{constructor(e){super(),this.contentType=e,this.arrayBuffersMaxlength=8,ut(this)}writeUint8Array(e){super.writeUint8Array(e);const t=this;t.arrayBuffers.length==t.arrayBuffersMaxlength&&ft(t),t.arrayBuffers.push(e.buffer)}getData(){const e=this;return e.blob||(e.arrayBuffers.length&&ft(e),e.blob=e.pendingBlob,ut(e)),e.blob}}function ut(e){e.pendingBlob=new p([],{type:e.contentType}),e.arrayBuffers=[]}function ft(e){e.pendingBlob=new p([e.pendingBlob,...e.arrayBuffers],{type:e.contentType}),e.arrayBuffers=[]}class dt extends tt{constructor(e,t){super();const r=this;r.url=e,r.preventHeadRequest=t.preventHeadRequest,r.useRangeHeader=t.useRangeHeader,r.forceRangeRequests=t.forceRangeRequests,r.options=n.assign({},t),delete r.options.preventHeadRequest,delete r.options.useRangeHeader,delete r.options.forceRangeRequests,delete r.options.useXHR}async init(){super.init(),await pt(this,St,mt)}readUint8Array(e,t){return wt(this,e,t,St,mt)}}class ht extends tt{constructor(e,t){super();const n=this;n.url=e,n.preventHeadRequest=t.preventHeadRequest,n.useRangeHeader=t.useRangeHeader,n.forceRangeRequests=t.forceRangeRequests,n.options=t}async init(){super.init(),await pt(this,vt,bt)}readUint8Array(e,t){return wt(this,e,t,vt,bt)}}async function pt(e,t,n){if((e=>{if(void 0!==b){const t=b.createElement("a");return t.href=e,"http:"==t.protocol||"https:"==t.protocol}return/^https?:\/\//i.test(e)})(e.url)&&(e.useRangeHeader||e.forceRangeRequests)){const r=await t(Je,e,gt(e));if(!e.forceRangeRequests&&"bytes"!=r.headers.get("Accept-Ranges"))throw new l(Xe);{let i;const s=r.headers.get("Content-Range");if(s){const e=s.trim().split(/\s*\/\s*/);if(e.length){const t=e[1];t&&"*"!=t&&(i=Number(t))}}void 0===i?await zt(e,t,n):e.size=i}}else await zt(e,t,n)}async function wt(e,t,n,r,i){if(e.useRangeHeader||e.forceRangeRequests){const i=await r(Je,e,gt(e,t,n));if(206!=i.status)throw new l(Xe);return new u(await i.arrayBuffer())}return e.data||await i(e,e.options),new u(e.data.subarray(t,t+n))}function gt(e,t=0,r=1){return n.assign({},yt(e),{Range:"bytes="+t+"-"+(t+r-1)})}function yt(e){const t=e.options.headers;if(t)return Symbol.iterator in t?n.fromEntries(t):t}async function mt(e){await kt(e,St)}async function bt(e){await kt(e,vt)}async function kt(e,t){const n=await t(Je,e,yt(e));e.data=new u(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function zt(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const r=(await t("HEAD",e,yt(e))).headers.get("Content-Length");r?e.size=Number(r):await n(e,e.options)}}async function St(e,{options:t,url:r},i){const s=await fetch(r,n.assign({},t,{method:e,headers:i}));if(400>s.status)return s;throw new l(Ge+(s.statusText||s.status))}function vt(e,{url:t},r){return new w(((i,s)=>{const a=new XMLHttpRequest;if(a.addEventListener("load",(()=>{if(400>a.status){const e=[];a.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach((t=>{const n=t.trim().split(/\s*:\s*/);n[0]=n[0].trim().replace(/^[a-z]|-[a-z]/g,(e=>e.toUpperCase())),e.push(n)})),i({status:a.status,arrayBuffer:()=>a.response,headers:new o(e)})}else s(new l(Ge+(a.statusText||a.status)))}),!1),a.addEventListener("error",(e=>s(e.detail.error)),!1),a.open(e,t),r)for(const e of n.entries(r))a.setRequestHeader(e[0],e[1]);a.responseType="arraybuffer",a.send()}))}class Rt extends tt{constructor(e,t={}){super(),this.url=e,t.useXHR?this.reader=new ht(e,t):this.reader=new dt(e,t)}set size(e){}get size(){return this.reader.size}async init(){super.init(),await this.reader.init()}readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}class Ct extends tt{constructor(e){super(),this.array=e,this.size=e.length}readUint8Array(e,t){return this.array.slice(e,e+t)}}class _t extends rt{constructor(){super(),this.array=new u(0)}writeUint8Array(e){super.writeUint8Array(e);const t=this,n=t.array;t.array=new u(n.length+e.length),t.array.set(n),t.array.set(e,n.length)}getData(){return this.array}}const xt=4294967295,Et=65535,Dt=67324752,At=33639248,Tt=101075792,Ft=117853008,It=21589,Ut=2048,Bt="/",Pt=new a(2107,11,31),Vt=new a(1980,0,1),Wt="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");function Qt(e,t){if(t&&"cp437"==t.trim().toLowerCase())return(e=>{let t="";for(let n=0;n<e.length;n++)t+=Wt[e[n]];return t})(e);if(void 0===y){const t=new m;return new w(((n,r)=>{t.onload=e=>n(e.target.result),t.onerror=()=>r(t.error),t.readAsText(new p([e]))}))}return new y(t).decode(e)}const Mt=["filename","rawFilename","directory","encrypted","compressedSize","uncompressedSize","lastModDate","rawLastModDate","comment","rawComment","signature","extraField","rawExtraField","bitFlag","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","filenameUTF8","commentUTF8","offset","zip64","compressionMethod","extraFieldNTFS","lastAccessDate","creationDate","extraFieldExtendedTimestamp","version","versionMadeBy","msDosCompatible","internalFileAttribute","externalFileAttribute"];class Nt{constructor(e){Mt.forEach((t=>this[t]=e[t]))}}const Zt="File format is not recognized",qt="End of central directory not found",Lt="End of Zip64 central directory not found",Ht="End of Zip64 central directory locator not found",Ot="Central directory header not found",$t="Local file header not found",jt="Zip64 extra field not found",Kt="File contains encrypted entry",Gt="Encryption method not supported",Xt="Compression method not supported",Yt="utf-8",Jt="cp437",en=["uncompressedSize","compressedSize","offset"];class tn{constructor(e,t={}){n.assign(this,{reader:e,options:t,config:D()})}async*getEntriesGenerator(e={}){const t=this,r=t.reader;if(r.initialized||await r.init(),22>r.size)throw new l(Zt);const i=await(async(e,t,n)=>{const r=new u(4);return pn(r).setUint32(0,101010256,!0),await i(22)||await i(s.min(1048582,n));async function i(t){const i=n-t,s=await wn(e,i,t);for(let e=s.length-22;e>=0;e--)if(s[e]==r[0]&&s[e+1]==r[1]&&s[e+2]==r[2]&&s[e+3]==r[3])return{offset:i+e,buffer:s.slice(e,e+22).buffer}}})(r,0,r.size);if(!i)throw new l(qt);const a=pn(i);let o=dn(a,12),c=dn(a,16),f=fn(a,8),d=0;if(c==xt||o==xt||f==Et){const e=pn(await wn(r,i.offset-20,20));if(dn(e,0)!=Ft)throw new l(Lt);c=hn(e,8);let t=await wn(r,c,56),n=pn(t);const s=i.offset-20-56;if(dn(n,0)!=Tt&&c!=s){const e=c;c=s,d=c-e,t=await wn(r,c,56),n=pn(t)}if(dn(n,0)!=Tt)throw new l(Ht);f=hn(n,32),o=hn(n,40),c-=o}if(0>c||c>=r.size)throw new l(Zt);let h=0,p=await wn(r,c,o),g=pn(p);if(o){const e=i.offset-o;if(dn(g,h)!=At&&c!=e){const t=c;c=e,d=c-t,p=await wn(r,c,o),g=pn(p)}}if(0>c||c>=r.size)throw new l(Zt);for(let i=0;f>i;i++){const s=new nn(r,t.config,t.options);if(dn(g,h)!=At)throw new l(Ot);rn(s,g,h+6);const a=!!s.bitFlag.languageEncodingFlag,o=h+46,c=o+s.filenameLength,u=c+s.extraFieldLength,y=fn(g,h+4),m=0==(0&y);n.assign(s,{versionMadeBy:y,msDosCompatible:m,compressedSize:0,uncompressedSize:0,commentLength:fn(g,h+32),directory:m&&16==(16&un(g,h+38)),offset:dn(g,h+42)+d,internalFileAttribute:dn(g,h+34),externalFileAttribute:dn(g,h+38),rawFilename:p.subarray(o,c),filenameUTF8:a,commentUTF8:a,rawExtraField:p.subarray(c,u)});const b=u+s.commentLength;s.rawComment=p.subarray(u,b);const k=on(t,e,"filenameEncoding"),z=on(t,e,"commentEncoding"),[S,v]=await w.all([Qt(s.rawFilename,s.filenameUTF8?Yt:k||Jt),Qt(s.rawComment,s.commentUTF8?Yt:z||Jt)]);s.filename=S,s.comment=v,!s.directory&&s.filename.endsWith(Bt)&&(s.directory=!0),await sn(s,s,g,h+6);const R=new Nt(s);if(R.getData=(e,t)=>s.getData(e,R,t),h=b,e.onprogress)try{e.onprogress(i+1,f,new Nt(s))}catch(e){}yield R}return!0}async getEntries(e={}){const t=[],n=this.getEntriesGenerator(e);let r=n.next();for(;!(await r).done;)t.push((await r).value),r=n.next();return t}async close(){}}class nn{constructor(e,t,r){n.assign(this,{reader:e,config:t,options:r})}async getData(e,t,n={}){const r=this,{reader:i,offset:s,extraFieldAES:a,compressionMethod:o,config:c,bitFlag:u,signature:f,rawLastModDate:d,compressedSize:h}=r,p=r.localDirectory={};i.initialized||await i.init();let w=await wn(i,s,30);const g=pn(w);let y=on(r,n,"password");if(y=y&&y.length&&y,a&&99!=a.originalCompressionMethod)throw new l(Xt);if(0!=o&&8!=o)throw new l(Xt);if(dn(g,0)!=Dt)throw new l($t);rn(p,g,4),w=await wn(i,s,30+p.filenameLength+p.extraFieldLength),p.rawExtraField=w.subarray(30+p.filenameLength),await sn(r,p,g,4),t.lastAccessDate=p.lastAccessDate,t.creationDate=p.creationDate;const m=r.encrypted&&p.encrypted,b=m&&!a;if(m){if(!b&&void 0===a.strength)throw new l(Gt);if(!y)throw new l(Kt)}const k=s+30+p.filenameLength+p.extraFieldLength,z=()=>h,S=i.getStream({offset:k,size:z,chunkSize:A(c)}),v=e.getStream(),R=on(r,n,"signal");return e.initialized||await e.init(),await je(c.Inflate,S,v,{codecType:Me,password:y,zipCrypto:b,encryptionStrength:a&&a.strength,signed:on(r,n,"checkSignature"),passwordVerification:b&&(u.dataDescriptor?d>>>8&255:f>>>24&255),signature:f,compressed:0!=o,encrypted:m,useWebWorkers:on(r,n,"useWebWorkers"),useCompressionStream:on(r,n,"useCompressionStream")},c,{signal:R,onprogress:n.onprogress,size:z}),e.getData()}}function rn(e,t,r){const i=e.rawBitFlag=fn(t,r+2),s=1==(1&i),a=dn(t,r+6);n.assign(e,{encrypted:s,version:fn(t,r),bitFlag:{level:(6&i)>>1,dataDescriptor:8==(8&i),languageEncodingFlag:(i&Ut)==Ut},rawLastModDate:a,lastModDate:cn(a),filenameLength:fn(t,r+22),extraFieldLength:fn(t,r+24)})}async function sn(e,t,r,i){const c=t.rawExtraField,f=t.extraField=new o,d=pn(new u(c));let h=0;try{for(;h<c.length;){const e=fn(d,h),t=fn(d,h+2);f.set(e,{type:e,data:c.slice(h+4,h+4+t)}),h+=4+t}}catch(e){}const p=fn(r,i+4);t.signature=dn(r,i+10),t.uncompressedSize=dn(r,i+18),t.compressedSize=dn(r,i+14);const w=f.get(1);w&&(((e,t)=>{t.zip64=!0;const n=pn(e.data);e.values=[];for(let t=0;t<s.floor(e.data.length/8);t++)e.values.push(hn(n,0+8*t));const r=en.filter((e=>t[e]==xt));for(let t=0;t<r.length;t++)e[r[t]]=e.values[t];en.forEach((n=>{if(t[n]==xt){if(void 0===e[n])throw new l(jt);t[n]=e[n]}}))})(w,t),t.extraFieldZip64=w);const g=f.get(28789);g&&(await an(g,"filename","rawFilename",t,e),t.extraFieldUnicodePath=g);const y=f.get(25461);y&&(await an(y,"comment","rawComment",t,e),t.extraFieldUnicodeComment=y);const m=f.get(39169);m?(((e,t,n)=>{const r=pn(e.data);e.vendorVersion=un(r,0),e.vendorId=un(r,2);const i=un(r,4);e.strength=i,e.originalCompressionMethod=n,t.compressionMethod=e.compressionMethod=fn(r,5)})(m,t,p),t.extraFieldAES=m):t.compressionMethod=p;const b=f.get(10);b&&(((e,t)=>{const r=pn(e.data);let i,s=4;try{for(;s<e.data.length&&!i;){const t=fn(r,s),n=fn(r,s+2);1==t&&(i=e.data.slice(s+4,s+4+n)),s+=4+n}}catch(e){}try{if(i&&24==i.length){const r=pn(i),s=r.getBigUint64(0,!0),a=r.getBigUint64(8,!0),o=r.getBigUint64(16,!0);n.assign(e,{rawLastModDate:s,rawLastAccessDate:a,rawCreationDate:o});const c={lastModDate:ln(s),lastAccessDate:ln(a),creationDate:ln(o)};n.assign(e,c),n.assign(t,c)}}catch(e){}})(b,t),t.extraFieldNTFS=b);const k=f.get(It);k&&(((e,t)=>{const n=pn(e.data),r=un(n,0),i=[],s=[];1==(1&r)&&(i.push("lastModDate"),s.push("rawLastModDate")),2==(2&r)&&(i.push("lastAccessDate"),s.push("rawLastAccessDate")),4==(4&r)&&(i.push("creationDate"),s.push("rawCreationDate"));let o=1;i.forEach(((r,i)=>{if(e.data.length>=o+4){const c=dn(n,o);t[r]=e[r]=new a(1e3*c);const l=s[i];e[l]=c}o+=4}))})(k,t),t.extraFieldExtendedTimestamp=k)}async function an(e,t,n,r,i){const s=pn(e.data);e.version=un(s,0),e.signature=dn(s,1);const a=new U;a.append(i[n]);const o=pn(new u(4));o.setUint32(0,a.get(),!0),e[t]=await Qt(e.data.subarray(5)),e.valid=!i.bitFlag.languageEncodingFlag&&e.signature==dn(o,0),e.valid&&(r[t]=e[t],r[t+"UTF8"]=!0)}function on(e,t,n){return void 0===t[n]?e.options[n]:t[n]}function cn(e){const t=(4294901760&e)>>16,n=65535&e;try{return new a(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(e){}}function ln(e){return new a(Number(e/i(1e4)-i(116444736e5)))}function un(e,t){return e.getUint8(t)}function fn(e,t){return e.getUint16(t,!0)}function dn(e,t){return e.getUint32(t,!0)}function hn(e,t){return Number(e.getBigUint64(t,!0))}function pn(e){return new h(e.buffer)}function wn(e,t,n){return e.readUint8Array(t,n)}const gn="File already exists",yn="Zip file comment exceeds 64KB",mn="File entry comment exceeds 64KB",bn="File entry name exceeds 64KB",kn="Version exceeds 65535",zn="The strength must equal 1, 2, or 3",Sn="Extra field type exceeds 65535",vn="Extra field data exceeds 64KB",Rn="Zip64 is not supported",Cn=new u([7,0,2,0,65,69,3,0,0]);let _n=0;class xn{constructor(e,t={}){n.assign(this,{writer:e,options:t,config:D(),files:new o,offset:e.size,pendingCompressedSize:0,pendingEntries:[],pendingAddFileCalls:new Set})}async add(e="",r,o={}){const c=this;if(_n>=c.config.maxWorkers)return new w(((t,n)=>c.pendingEntries.push({name:e,reader:r,options:o,resolve:t,reject:n})));{let p;_n++;try{return p=(async(e,r,o,c)=>{if(r=r.trim(),c.directory&&!r.endsWith(Bt)?r+=Bt:c.directory=r.endsWith(Bt),e.files.has(r))throw new l(gn);const p=P(r);if(p.length>Et)throw new l(bn);const g=c.comment||"",y=P(g);if(y.length>Et)throw new l(mn);const m=e.options.version||c.version||0;if(m>Et)throw new l(kn);const b=e.options.versionMadeBy||c.versionMadeBy||20;if(b>Et)throw new l(kn);const k=Tn(e,c,"lastModDate")||new a,z=Tn(e,c,"lastAccessDate"),S=Tn(e,c,"creationDate"),v=Tn(e,c,"password"),R=Tn(e,c,"encryptionStrength")||3,C=Tn(e,c,"zipCrypto");if(void 0!==v&&void 0!==R&&(1>R||R>3))throw new l(zn);let _=new u(0);const x=c.extraField;if(x){let e=0,t=0;x.forEach((t=>e+=4+t.length)),_=new u(e),x.forEach(((e,n)=>{if(n>Et)throw new l(Sn);if(e.length>Et)throw new l(vn);Pn(_,new f([n]),t),Pn(_,new f([e.length]),t+2),Pn(_,e,t+4),t+=4+e.length}))}let E=Tn(e,c,"extendedTimestamp");void 0===E&&(E=!0);let D=0,T=Tn(e,c,"keepOrder"),F=0,I=Tn(e,c,"msDosCompatible");void 0===I&&(I=!0);const U=Tn(e,c,"internalFileAttribute")||0,B=Tn(e,c,"externalFileAttribute")||0;o&&(o.initialized||await o.init(),F=o.size,D=(e=>e+5*(s.floor(e/16383)+1))(F));let V=c.zip64||e.options.zip64||!1;if(e.offset+e.pendingCompressedSize>=xt||F>=xt||D>=xt){if(!1===c.zip64||!1===e.options.zip64||!T)throw new l(Rn);V=!0}e.pendingCompressedSize+=D,await w.resolve();const W=Tn(e,c,"level"),Q=Tn(e,c,"useWebWorkers"),M=Tn(e,c,"bufferedWrite");let N=Tn(e,c,"dataDescriptor"),Z=Tn(e,c,"dataDescriptorSignature");const q=Tn(e,c,"signal"),L=Tn(e,c,"useCompressionStream");void 0===N&&(N=!0),N&&void 0===Z&&(Z=!1);const H=await(async(e,r,a,o)=>{const{files:c,writer:f}=e,p=f.getStream().getWriter(),g=t.from(c.values()).pop();let y,m,b,k={};c.set(r,k);try{let z,S,v;if(o.keepOrder&&(z=g&&g.lock),k.lock=v=new w((e=>b=e)),o.bufferedWrite||e.lockWrite||!o.dataDescriptor?(S=new lt,S.init(),y=!0):(e.lockWrite=new w((e=>m=e)),f.initialized||await f.init(),S=f),k=await(async(e,t,r,a,o)=>{const{rawFilename:c,lastAccessDate:l,creationDate:f,password:h,level:p,zip64:w,zipCrypto:g,dataDescriptor:y,dataDescriptorSignature:m,directory:b,version:k,versionMadeBy:z,rawComment:S,rawExtraField:v,useWebWorkers:R,onprogress:C,signal:_,encryptionStrength:x,extendedTimestamp:E,msDosCompatible:D,internalFileAttribute:T,externalFileAttribute:F,useCompressionStream:I}=o,U=!(!h||!h.length),B=0!==p&&!b;let P,V,W;if(U&&!g){P=new u(Cn.length+2);const e=Vn(P);In(e,0,39169),Pn(P,Cn,2),Fn(e,8,x)}else P=new u(0);if(E){W=new u(9+(l?4:0)+(f?4:0));const e=Vn(W);In(e,0,It),In(e,2,W.length-4),Fn(e,4,1+(l?2:0)+(f?4:0)),Un(e,5,s.floor(o.lastModDate.getTime()/1e3)),l&&Un(e,9,s.floor(l.getTime()/1e3)),f&&Un(e,13,s.floor(f.getTime()/1e3));try{V=new u(36);const e=Vn(V),t=An(o.lastModDate);In(e,0,10),In(e,2,32),In(e,8,1),In(e,10,24),Bn(e,12,t),Bn(e,20,An(l)||t),Bn(e,28,An(f)||t)}catch(e){V=new u(0)}}else V=W=new u(0);const Q={version:k||20,versionMadeBy:z,zip64:w,directory:!!b,filenameUTF8:!0,rawFilename:c,commentUTF8:!0,rawComment:S,rawExtraFieldZip64:new u(w?28:0),rawExtraFieldExtendedTimestamp:W,rawExtraFieldNTFS:V,rawExtraFieldAES:P,rawExtraField:v,extendedTimestamp:E,msDosCompatible:D,internalFileAttribute:T,externalFileAttribute:F};let M=Q.uncompressedSize=0,N=Ut;y&&(N|=8);let Z=0;B&&(Z=8),w&&(Q.version=Q.version>45?Q.version:45),U&&(N|=1,g||(Q.version=Q.version>51?Q.version:51,Z=99,B&&(Q.rawExtraFieldAES[9]=8))),Q.compressionMethod=Z;const q=Q.headerArray=new u(26),L=Vn(q);In(L,0,Q.version),In(L,2,N),In(L,4,Z);const H=new d(1),O=Vn(H);let $;$=o.lastModDate<Vt?Vt:o.lastModDate>Pt?Pt:o.lastModDate,In(O,0,($.getHours()<<6|$.getMinutes())<<5|$.getSeconds()/2),In(O,2,($.getFullYear()-1980<<4|$.getMonth()+1)<<5|$.getDate());const j=H[0];Un(L,6,j),In(L,22,c.length);const K=P.length+W.length+V.length+Q.rawExtraField.length;In(L,24,K);const G=new u(30+c.length+K);let X;Un(Vn(G),0,Dt),Pn(G,q,4),Pn(G,c,30),Pn(G,P,30+c.length),Pn(G,W,30+c.length+P.length),Pn(G,V,30+c.length+P.length+W.length),Pn(G,Q.rawExtraField,30+c.length+P.length+W.length+V.length);let Y=0;if(e){await Dn(r,G),Q.dataWritten=!0;const n=()=>e.size,i=e.getStream({offset:0,size:n,chunkSize:A(a)});X=await je(a.Deflate,i,t,{codecType:Qe,level:p,password:h,encryptionStrength:x,zipCrypto:U&&g,passwordVerification:U&&g&&j>>8&255,signed:!0,compressed:B,encrypted:U,useWebWorkers:R,useCompressionStream:I},a,{signal:_,onprogress:C,size:n}),M=Q.uncompressedSize=e.size,Y=X.length}else await Dn(r,G),Q.dataWritten=!0;let J,ee=new u(0),te=0;if(y&&(ee=new u(w?m?24:20:m?16:12),J=Vn(ee),m&&(te=4,Un(J,0,134695760))),e){const e=X.signature;if(U&&!g||void 0===e||(Un(L,10,e),Q.signature=e,y&&Un(J,te,e)),w){const e=Vn(Q.rawExtraFieldZip64);In(e,0,1),In(e,2,24),Un(L,14,xt),Bn(e,12,i(Y)),Un(L,18,xt),Bn(e,4,i(M)),y&&(Bn(J,te+4,i(Y)),Bn(J,te+12,i(M)))}else Un(L,14,Y),Un(L,18,M),y&&(Un(J,te+4,Y),Un(J,te+8,M))}y&&await Dn(r,ee);const ne=G.length+Y+ee.length;return n.assign(Q,{compressedSize:Y,lastModDate:$,rawLastModDate:j,creationDate:f,lastAccessDate:l,encrypted:U,length:ne}),Q})(a,S.getStream(),S.getStream().getWriter(),e.config,o),k.lock=v,c.set(r,k),k.filename=r,y){let n=0;const r=S.getData();let i;await w.all([e.lockWrite,z]);do{i=t.from(c.values()).find((e=>e.writingBufferedData)),i&&await i.lock}while(i&&i.lock);if(k.writingBufferedData=!0,!o.dataDescriptor){const e=26,t=await En(r,0,e),i=new h(t);k.encrypted&&!o.zipCrypto||Un(i,14,k.signature),k.zip64?(Un(i,18,xt),Un(i,22,xt)):(Un(i,18,k.compressedSize),Un(i,22,k.uncompressedSize)),await Dn(p,new u(t)),n=e}await(async(e,t,n=0)=>{const r=536870912;await async function i(){if(n<t.size){const s=await En(t,n,n+r);await Dn(e,new u(s)),n+=r,await i()}}()})(p,r,n),delete k.writingBufferedData}if(k.offset=e.offset,k.zip64)Bn(Vn(k.rawExtraFieldZip64),20,i(k.offset));else if(k.offset>=xt)throw new l(Rn);return e.offset+=k.length,k}catch(t){throw(y&&k.writingBufferedData||!y&&k.dataWritten)&&(t.corruptedEntry=e.hasCorruptedEntries=!0,k.uncompressedSize&&(e.offset+=k.uncompressedSize)),c.delete(r),t}finally{b(),m&&m()}})(e,r,o,n.assign({},c,{rawFilename:p,rawComment:y,version:m,versionMadeBy:b,lastModDate:k,lastAccessDate:z,creationDate:S,rawExtraField:_,zip64:V,password:v,level:W,useWebWorkers:Q,encryptionStrength:R,extendedTimestamp:E,zipCrypto:C,bufferedWrite:M,keepOrder:T,dataDescriptor:N,dataDescriptorSignature:Z,signal:q,msDosCompatible:I,internalFileAttribute:U,externalFileAttribute:B,useCompressionStream:L}));return D&&(e.pendingCompressedSize-=D),n.assign(H,{name:r,comment:g,extraField:x}),new Nt(H)})(c,e,r,o),this.pendingAddFileCalls.add(p),await p}finally{this.pendingAddFileCalls.delete(p),_n--;const e=c.pendingEntries.shift();e&&c.add(e.name,e.reader,e.options).then(e.resolve).catch(e.reject)}}}async close(e=new u(0),n={}){for(;this.pendingAddFileCalls.size;)await w.all(t.from(this.pendingAddFileCalls));return await(async(e,n,r)=>{const{files:a}=e,o=e.writer.getStream().getWriter();let c=0,f=0,d=e.offset,h=a.size;for(const[,e]of a)f+=46+e.rawFilename.length+e.rawComment.length+e.rawExtraFieldZip64.length+e.rawExtraFieldAES.length+e.rawExtraFieldExtendedTimestamp.length+e.rawExtraFieldNTFS.length+e.rawExtraField.length;let p=r.zip64||e.options.zip64||!1;if(d>=xt||f>=xt||h>=Et){if(!1===r.zip64||!1===e.options.zip64)throw new l(Rn);p=!0}const w=new u(f+(p?98:22)),g=Vn(w);if(n&&n.length){if(n.length>Et)throw new l(yn);In(g,c+20,n.length)}for(const[e,n]of t.from(a.values()).entries()){const{rawFilename:t,rawExtraFieldZip64:i,rawExtraFieldAES:o,rawExtraField:l,rawComment:f,versionMadeBy:d,headerArray:h,directory:p,zip64:y,msDosCompatible:m,internalFileAttribute:b,externalFileAttribute:k}=n;let z,S;if(n.extendedTimestamp){S=n.rawExtraFieldNTFS,z=new u(9);const e=Vn(z);In(e,0,It),In(e,2,z.length-4),Fn(e,4,1),Un(e,5,s.floor(n.lastModDate.getTime()/1e3))}else S=z=new u(0);const v=i.length+o.length+z.length+S.length+l.length;if(Un(g,c,At),In(g,c+4,d),Pn(w,h,c+6),In(g,c+30,v),In(g,c+32,f.length),Un(g,c+34,b),k?Un(g,c+38,k):p&&m&&Fn(g,c+38,16),Un(g,c+42,y?xt:n.offset),Pn(w,t,c+46),Pn(w,i,c+46+t.length),Pn(w,o,c+46+t.length+i.length),Pn(w,z,c+46+t.length+i.length+o.length),Pn(w,S,c+46+t.length+i.length+o.length+z.length),Pn(w,l,c+46+t.length+i.length+o.length+z.length+S.length),Pn(w,f,c+46+t.length+v),c+=46+t.length+v+f.length,r.onprogress)try{r.onprogress(e+1,a.size,new Nt(n))}catch(e){}}p&&(Un(g,c,Tt),Bn(g,c+4,i(44)),In(g,c+12,45),In(g,c+14,45),Bn(g,c+24,i(h)),Bn(g,c+32,i(h)),Bn(g,c+40,i(f)),Bn(g,c+48,i(d)),Un(g,c+56,Ft),Bn(g,c+64,i(d)+i(f)),Un(g,c+72,1),h=Et,d=xt,f=xt,c+=76),Un(g,c,101010256),In(g,c+8,h),In(g,c+10,h),Un(g,c+12,f),Un(g,c+16,d),await Dn(o,w),n&&n.length&&await Dn(o,n)})(this,e,n),this.writer.getData()}}function En(e,t,n){if(e.arrayBuffer)return t||n?e.slice(t,n).arrayBuffer():e.arrayBuffer();{const r=new m;return new w(((i,s)=>{r.onload=e=>i(e.target.result),r.onerror=()=>s(r.error),r.readAsArrayBuffer(t||n?e.slice(t,n):e)}))}}async function Dn(e,t){await e.ready,await e.write(t)}function An(e){if(e)return(i(e.getTime())+i(116444736e5))*i(1e4)}function Tn(e,t,n){return void 0===t[n]?e.options[n]:t[n]}function Fn(e,t,n){e.setUint8(t,n)}function In(e,t,n){e.setUint16(t,n,!0)}function Un(e,t,n){e.setUint32(t,n,!0)}function Bn(e,t,n){e.setBigUint64(t,n,!0)}function Pn(e,t,n){e.set(t,n)}function Vn(e){return new h(e.buffer)}const Wn=524288;class Qn{constructor(e,t,r,i){const s=this;if(e.root&&i&&i.getChildByName(t))throw new l("Entry filename already exists");r||(r={}),n.assign(s,{fs:e,name:t,data:r.data,id:e.entries.length,parent:i,children:[],uncompressedSize:0}),e.entries.push(s),i&&s.parent.children.push(s)}moveTo(e){this.fs.move(this,e)}getFullname(){return this.getRelativeName()}getRelativeName(e=this.fs.root){let t=this.name,n=this.parent;for(;n&&n!=e;)t=(n.name?n.name+"/":"")+t,n=n.parent;return t}isDescendantOf(e){let t=this.parent;for(;t&&t.id!=e.id;)t=t.parent;return!!t}}class Mn extends Qn{constructor(e,t,n,r){super(e,t,n,r);const i=this;i.Reader=n.Reader,i.Writer=n.Writer,n.getData&&(i.getData=n.getData)}async getData(e,t={}){const n=this;return!e||e.constructor==n.Writer&&n.data?n.data:(n.reader=new n.Reader(n.data,t),await n.reader.init(),e.initialized||await e.init(),n.uncompressedSize=n.reader.size,((e,t)=>async function n(r=0){const i=r*Wn;if(i<e.size){const a=await e.readUint8Array(i,s.min(Wn,e.size-i));return await t.writeUint8Array(a),n(r+1)}return t.getData()}())(n.reader,e))}getText(e,t){return this.getData(new st(e),t)}getBlob(e,t){return this.getData(new lt(e),t)}getData64URI(e,t){return this.getData(new ot(e),t)}getUint8Array(e){return this.getData(new _t,e)}replaceBlob(e){n.assign(this,{data:e,Reader:ct,Writer:lt,reader:null})}replaceText(e){n.assign(this,{data:e,Reader:it,Writer:st,reader:null})}replaceData64URI(e){n.assign(this,{data:e,Reader:at,Writer:ot,reader:null})}replaceUint8Array(e){n.assign(this,{data:e,Reader:Ct,Writer:_t,reader:null})}}class Nn extends Qn{constructor(e,t,n,r){super(e,t,n,r),this.directory=!0}addDirectory(e){return $n(this,e,null,!0)}addText(e,t){return $n(this,e,{data:t,Reader:it,Writer:st})}addBlob(e,t){return $n(this,e,{data:t,Reader:ct,Writer:lt})}addData64URI(e,t){return $n(this,e,{data:t,Reader:at,Writer:ot})}addUint8Array(e,t){return $n(this,e,{data:t,Reader:Ct,Writer:_t})}addHttpContent(e,t,n={}){return $n(this,e,{data:t,Reader:class extends Rt{constructor(e){super(e,n)}}})}addFileSystemEntry(e){return(async(e,t)=>{if(t.isDirectory){const n=e.addDirectory(t.name);return await async function e(t,n){const r=await(e=>new w(((t,n)=>{let r=[];e.isDirectory&&function e(i){i.readEntries((n=>{n.length?(r=r.concat(n),e(i)):t(r)}),n)}(e.createReader()),e.isFile&&t(r)})))(n);for(const n of r)n.isDirectory?await e(t.addDirectory(n.name),n):await new w(((e,r)=>{n.file((r=>{const i=t.addBlob(n.name,r);i.uncompressedSize=r.size,e(i)}),r)}))}(n,t),n}return new w(((n,r)=>t.file((r=>n(e.addBlob(t.name,r))),r)))})(this,e)}addData(e,t){return $n(this,e,t)}async importBlob(e,t={}){await this.importZip(new ct(e),t)}async importData64URI(e,t={}){await this.importZip(new at(e),t)}async importUint8Array(e,t={}){await this.importZip(new Ct(e),t)}async importHttpContent(e,t={}){await this.importZip(new Rt(e,t),t)}exportBlob(e={}){return this.exportZip(new lt("application/zip"),e)}exportData64URI(e={}){return this.exportZip(new ot("application/zip"),e)}exportUint8Array(e={}){return this.exportZip(new _t,e)}async importZip(e,t){e.initialized||await e.init();const r=new tn(e,t);(await r.getEntries()).forEach((e=>{let r=this;const i=e.filename.split("/"),s=i.pop();i.forEach((e=>r=r.getChildByName(e)||new Nn(this.fs,e,null,r))),e.directory||$n(r,s,{data:e,Reader:qn(n.assign({},t))})}))}async exportZip(e,r){const i=this;await Ln(i),await e.init();const s=new xn(e,r);return await(async(e,r,i,s)=>{const a=r,c=new o;await async function e(r,o){async function l(o){const l=s.relativePath?o.getRelativeName(a):o.getFullname();await r.add(l,o.reader,n.assign({directory:o.directory},n.assign({},s,{onprogress:e=>{if(s.onprogress){c.set(l,e);try{s.onprogress(t.from(c.values()).reduce(((e,t)=>e+t)),i)}catch(e){}}}}))),await e(r,o)}await(async()=>{if(s.bufferedWrite)await w.all(o.children.map(l));else for(const e of o.children)await l(e)})()}(e,r)})(s,i,(e=>{let t=0;return e.forEach((function e(n){t+=n.uncompressedSize,n.children&&n.children.forEach(e)})),t})([i]),r),await s.close(),e.getData()}getChildByName(e){const t=this.children;for(let n=0;n<t.length;n++){const r=t[n];if(r.name==e)return r}}}const Zn={FS:class{constructor(){On(this)}get children(){return this.root.children}remove(e){Hn(e),this.entries[e.id]=null}move(e,t){if(e==this.root)throw new l("Root directory cannot be moved");if(!t.directory)throw new l("Target entry is not a directory");if(t.isDescendantOf(e))throw new l("Entry is a ancestor of target entry");if(e!=t){if(t.getChildByName(e.name))throw new l("Entry filename already exists");Hn(e),e.parent=t,t.children.push(e)}}find(e){const t=e.split("/");let n=this.root;for(let e=0;n&&e<t.length;e++)n=n.getChildByName(t[e]);return n}getById(e){return this.entries[e]}getChildByName(e){return this.root.getChildByName(e)}addDirectory(e){return this.root.addDirectory(e)}addText(e,t){return this.root.addText(e,t)}addBlob(e,t){return this.root.addBlob(e,t)}addData64URI(e,t){return this.root.addData64URI(e,t)}addHttpContent(e,t,n){return this.root.addHttpContent(e,t,n)}addFileSystemEntry(e){return this.root.addFileSystemEntry(e)}addData(e,t){return this.root.addData(e,t)}async importBlob(e,t){On(this),await this.root.importBlob(e,t)}async importData64URI(e,t){On(this),await this.root.importData64URI(e,t)}async importHttpContent(e,t){On(this),await this.root.importHttpContent(e,t)}exportBlob(e){return this.root.exportBlob(e)}exportData64URI(e){return this.root.exportData64URI(e)}},ZipDirectoryEntry:Nn,ZipFileEntry:Mn};function qn(e){return class extends tt{constructor(e,t={}){super(),this.entry=e,this.options=t}async init(){const t=this;t.size=t.entry.uncompressedSize;const r=await t.entry.getData(new lt,n.assign({},t.options,e));t.data=r,t.blobReader=new ct(r)}readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}}}async function Ln(e){if(e.children.length)for(const t of e.children)t.directory?await Ln(t):(t.reader=new t.Reader(t.data),await t.reader.init(),t.uncompressedSize=t.reader.size)}function Hn(e){const t=e.parent.children;t.forEach(((n,r)=>{n.id==e.id&&t.splice(r,1)}))}function On(e){e.entries=[],e.root=new Nn(e)}function $n(e,t,n,r){if(e.directory)return r?new Nn(e.fs,t,n,e):new Mn(e.fs,t,n,e);throw new l("Parent entry is not a directory")}let jn;try{jn=void 0===b&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:void 0===b?location.href:b.currentScript&&b.currentScript.src||new c("zip-fs.min.js",b.baseURI).href}catch(e){}T({baseURL:jn}),(e=>{if("function"==typeof c.createObjectURL){const t=()=>c.createObjectURL(new p(['const{Array:t,Object:e,Math:n,Error:r,Uint8Array:i,Uint16Array:s,Uint32Array:o,Int32Array:f,DataView:c,TextEncoder:l,crypto:u,postMessage:a,TransformStream:w,ReadableStream:h,WritableStream:d,CompressionStream:p,DecompressionStream:b}=globalThis,y=[];for(let t=0;256>t;t++){let e=t;for(let t=0;8>t;t++)1&e?e=e>>>1^3988292384:e>>>=1;y[t]=e}class m{constructor(t){this.t=t||-1}append(t){let e=0|this.t;for(let n=0,r=0|t.length;r>n;n++)e=e>>>8^y[255&(e^t[n])];this.t=e}get(){return~this.t}}class k extends w{constructor(){super({start(){this.i=new m},transform(t){this.i.append(t)},flush(t){const e=new i(4);new c(e.buffer).setUint32(0,this.i.get()),t.enqueue(e)}})}}const g={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const n=t[t.length-1],r=g.o(n);return 32===r?t.concat(e):g.l(e,r,0|n,t.slice(0,t.length-1))},u(t){const e=t.length;if(0===e)return 0;const n=t[e-1];return 32*(e-1)+g.o(n)},h(t,e){if(32*t.length<e)return t;const r=(t=t.slice(0,n.ceil(e/32))).length;return e&=31,r>0&&e&&(t[r-1]=g.p(e,t[r-1]&2147483648>>e-1,1)),t},p:(t,e,n)=>32===t?e:(n?0|e:e<<32-t)+1099511627776*t,o:t=>n.round(t/1099511627776)||32,l(t,e,n,r){for(void 0===r&&(r=[]);e>=32;e-=32)r.push(n),n=0;if(0===e)return r.concat(t);for(let i=0;i<t.length;i++)r.push(n|t[i]>>>e),n=t[i]<<32-e;const i=t.length?t[t.length-1]:0,s=g.o(i);return r.push(g.p(e+s&31,e+s>32?n:r.pop(),1)),r}},v={m:{k(t){const e=g.u(t)/8,n=new i(e);let r;for(let i=0;e>i;i++)0==(3&i)&&(r=t[i/4]),n[i]=r>>>24,r<<=8;return n},g(t){const e=[];let n,r=0;for(n=0;n<t.length;n++)r=r<<8|t[n],3==(3&n)&&(e.push(r),r=0);return 3&n&&e.push(g.p(8*(3&n),r)),e}}},S={v:function(t){t?(this.S=t.S.slice(0),this._=t._.slice(0),this.C=t.C):this.reset()}};S.v.prototype={blockSize:512,reset:function(){const t=this;return t.S=this.A.slice(0),t._=[],t.C=0,t},update:function(t){const e=this;"string"==typeof t&&(t=v.I.g(t));const n=e._=g.concat(e._,t),i=e.C,s=e.C=i+g.u(t);if(s>9007199254740991)throw new r("Cannot hash more than 2^53 - 1 bits");const f=new o(n);let c=0;for(let t=e.blockSize+i-(e.blockSize+i&e.blockSize-1);s>=t;t+=e.blockSize)e.V(f.subarray(16*c,16*(c+1))),c+=1;return n.splice(0,16*c),e},P:function(){const t=this;let e=t._;const r=t.S;e=g.concat(e,[g.p(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(n.floor(t.C/4294967296)),e.push(0|t.C);e.length;)t.V(e.splice(0,16));return t.reset(),r},A:[1732584193,4023233417,2562383102,271733878,3285377520],B:[1518500249,1859775393,2400959708,3395469782],D:(t,e,n,r)=>t>19?t>39?t>59?t>79?void 0:e^n^r:e&n|e&r|n&r:e^n^r:e&n|~e&r,M:(t,e)=>e<<t|e>>>32-t,V:function(e){const r=this,i=r.S,s=t(80);for(let t=0;16>t;t++)s[t]=e[t];let o=i[0],f=i[1],c=i[2],l=i[3],u=i[4];for(let t=0;79>=t;t++){16>t||(s[t]=r.M(1,s[t-3]^s[t-8]^s[t-14]^s[t-16]));const e=r.M(5,o)+r.D(t,f,c,l)+u+s[t]+r.B[n.floor(t/20)]|0;u=l,l=c,c=r.M(30,f),f=o,o=e}i[0]=i[0]+o|0,i[1]=i[1]+f|0,i[2]=i[2]+c|0,i[3]=i[3]+l|0,i[4]=i[4]+u|0}};const _={getRandomValues(t){const e=new o(t.buffer),r=t=>{let e=987654321;const r=4294967295;return()=>(e=36969*(65535&e)+(e>>16)&r,(((e<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r)/4294967296+.5)*(n.random()>.5?1:-1))};for(let i,s=0;s<t.length;s+=4){const t=r(4294967296*(i||n.random()));i=987654071*t(),e[s/4]=4294967296*t()|0}return t}},z={importKey:t=>new z.R(v.m.g(t)),U(t,e,n,i){if(n=n||1e4,0>i||0>n)throw new r("invalid params to pbkdf2");const s=1+(i>>5)<<2;let o,f,l,u,a;const w=new ArrayBuffer(s),h=new c(w);let d=0;const p=g;for(e=v.m.g(e),a=1;(s||1)>d;a++){for(o=f=t.encrypt(p.concat(e,[a])),l=1;n>l;l++)for(f=t.encrypt(f),u=0;u<f.length;u++)o[u]^=f[u];for(l=0;(s||1)>d&&l<o.length;l++)h.setInt32(d,o[l]),d+=4}return w.slice(0,i/8)},R:class{constructor(t){const e=this,n=e.T=S.v,r=[[],[]],i=n.prototype.blockSize/32;e.W=[new n,new n],t.length>i&&(t=n.hash(t));for(let e=0;i>e;e++)r[0][e]=909522486^t[e],r[1][e]=1549556828^t[e];e.W[0].update(r[0]),e.W[1].update(r[1]),e.j=new n(e.W[0])}reset(){const t=this;t.j=new t.T(t.W[0]),t.H=!1}update(t){this.H=!0,this.j.update(t)}digest(){const t=this,e=t.j.P(),n=new t.T(t.W[1]).update(e).P();return t.reset(),n}encrypt(t){if(this.H)throw new r("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},C={name:"PBKDF2"},x=e.assign({hash:{name:"HMAC"}},C),A=e.assign({iterations:1e3,hash:{name:"SHA-1"}},C),I=["deriveBits"],V=[8,12,16],P=[16,24,32],B=[0,0,0,0],D=void 0!==u,E=D&&void 0!==u.subtle,M=D&&"function"==typeof u.getRandomValues,R=D&&E&&"function"==typeof u.subtle.importKey,U=D&&E&&"function"==typeof u.subtle.deriveBits,T=v.m,W=class{constructor(t){const e=this;e.K=[[[],[],[],[],[]],[[],[],[],[],[]]],e.K[0][0][0]||e.L();const n=e.K[0][4],i=e.K[1],s=t.length;let o,f,c,l=1;if(4!==s&&6!==s&&8!==s)throw new r("invalid aes key size");for(e.B=[f=t.slice(0),c=[]],o=s;4*s+28>o;o++){let t=f[o-1];(o%s==0||8===s&&o%s==4)&&(t=n[t>>>24]<<24^n[t>>16&255]<<16^n[t>>8&255]<<8^n[255&t],o%s==0&&(t=t<<8^t>>>24^l<<24,l=l<<1^283*(l>>7))),f[o]=f[o-s]^t}for(let t=0;o;t++,o--){const e=f[3&t?o:o-4];c[t]=4>=o||4>t?e:i[0][n[e>>>24]]^i[1][n[e>>16&255]]^i[2][n[e>>8&255]]^i[3][n[255&e]]}}encrypt(t){return this.F(t,0)}decrypt(t){return this.F(t,1)}L(){const t=this.K[0],e=this.K[1],n=t[4],r=e[4],i=[],s=[];let o,f,c,l;for(let t=0;256>t;t++)s[(i[t]=t<<1^283*(t>>7))^t]=t;for(let u=o=0;!n[u];u^=f||1,o=s[o]||1){let s=o^o<<1^o<<2^o<<3^o<<4;s=s>>8^255&s^99,n[u]=s,r[s]=u,l=i[c=i[f=i[u]]];let a=16843009*l^65537*c^257*f^16843008*u,w=257*i[s]^16843008*s;for(let n=0;4>n;n++)t[n][u]=w=w<<24^w>>>8,e[n][s]=a=a<<24^a>>>8}for(let n=0;5>n;n++)t[n]=t[n].slice(0),e[n]=e[n].slice(0)}F(t,e){if(4!==t.length)throw new r("invalid aes block size");const n=this.B[e],i=n.length/4-2,s=[0,0,0,0],o=this.K[e],f=o[0],c=o[1],l=o[2],u=o[3],a=o[4];let w,h,d,p=t[0]^n[0],b=t[e?3:1]^n[1],y=t[2]^n[2],m=t[e?1:3]^n[3],k=4;for(let t=0;i>t;t++)w=f[p>>>24]^c[b>>16&255]^l[y>>8&255]^u[255&m]^n[k],h=f[b>>>24]^c[y>>16&255]^l[m>>8&255]^u[255&p]^n[k+1],d=f[y>>>24]^c[m>>16&255]^l[p>>8&255]^u[255&b]^n[k+2],m=f[m>>>24]^c[p>>16&255]^l[b>>8&255]^u[255&y]^n[k+3],k+=4,p=w,b=h,y=d;for(let t=0;4>t;t++)s[e?3&-t:t]=a[p>>>24]<<24^a[b>>16&255]<<16^a[y>>8&255]<<8^a[255&m]^n[k++],w=p,p=b,b=y,y=m,m=w;return s}},j=class{constructor(t,e){this.O=t,this.q=e,this.G=e}reset(){this.G=this.q}update(t){return this.J(this.O,t,this.G)}N(t){if(255==(t>>24&255)){let e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}X(t){0===(t[0]=this.N(t[0]))&&(t[1]=this.N(t[1]))}J(t,e,n){let r;if(!(r=e.length))return[];const i=g.u(e);for(let i=0;r>i;i+=4){this.X(n);const r=t.encrypt(n);e[i]^=r[0],e[i+1]^=r[1],e[i+2]^=r[2],e[i+3]^=r[3]}return g.h(e,i)}},H=z.R;class K extends w{constructor(n,s,o){let f;super({start(){e.assign(this,{ready:new Promise((t=>this.Y=t)),password:n,signed:s,Z:o-1,pending:new i(0)})},async transform(e,n){const s=this;if(s.password){const n=s.password;s.password=null;const i=G(e,0,V[s.Z]+2);await(async(t,e,n)=>{await O(t,n,G(e,0,V[t.Z]));const i=G(e,V[t.Z]),s=t.keys.passwordVerification;if(s[0]!=i[0]||s[1]!=i[1])throw new r("Invalid pasword")})(s,i,n),s.$=new j(new W(s.keys.key),t.from(B)),s.tt=new H(s.keys.et),e=G(e,V[s.Z]+2),s.Y()}else await s.ready;const o=new i(e.length-10-(e.length-10)%16);n.enqueue(F(s,e,o,0,10,!0))},async flush(t){const e=this;await e.ready;const n=e.pending,r=G(n,0,n.length-10),s=G(n,n.length-10);let o=new i(0);if(r.length){const t=N(T,r);e.tt.update(t);const n=e.$.update(t);o=J(T,n)}if(f.valid=!0,e.signed){const t=G(J(T,e.tt.digest()),0,10);for(let e=0;10>e;e++)t[e]!=s[e]&&(f.valid=!1)}t.enqueue(o)}}),f=this}}class L extends w{constructor(n,r){let s;super({start(){e.assign(this,{ready:new Promise((t=>this.Y=t)),password:n,Z:r-1,pending:new i(0)})},async transform(e,n){const r=this;let s=new i(0);if(r.password){const e=r.password;r.password=null,s=await(async(t,e)=>{const n=(r=new i(V[t.Z]),M?u.getRandomValues(r):_.getRandomValues(r));var r;return await O(t,e,n),q(n,t.keys.passwordVerification)})(r,e),r.$=new j(new W(r.keys.key),t.from(B)),r.tt=new H(r.keys.et),r.Y()}else await r.ready;const o=new i(s.length+e.length-e.length%16);o.set(s,0),n.enqueue(F(r,e,o,s.length,0))},async flush(t){const e=this;await e.ready;let n=new i(0);if(e.pending.length){const t=e.$.update(N(T,e.pending));e.tt.update(t),n=J(T,t)}s.signature=J(T,e.tt.digest()).slice(0,10),t.enqueue(q(n,s.signature))}}),s=this}}function F(t,e,n,r,s,o){const f=e.length-s;let c;for(t.pending.length&&(e=q(t.pending,e),n=((t,e)=>{if(e&&e>t.length){const n=t;(t=new i(e)).set(n,0)}return t})(n,f-f%16)),c=0;f-16>=c;c+=16){const i=N(T,G(e,c,c+16));o&&t.tt.update(i);const s=t.$.update(i);o||t.tt.update(s),n.set(J(T,s),c+r)}return t.pending=G(e,c),n}async function O(t,n,r){const s=(t=>{if(void 0===l){const e=new i((t=unescape(encodeURIComponent(t))).length);for(let n=0;n<e.length;n++)e[n]=t.charCodeAt(n);return e}return(new l).encode(t)})(n),o=await((t,e,n,r,i)=>R?u.subtle.importKey("raw",e,n,!1,i):z.importKey(e))(0,s,x,0,I),f=await(async(t,e,n)=>U?await u.subtle.deriveBits(t,e,n):z.U(e,t.salt,A.iterations,n))(e.assign({salt:r},A),o,8*(2*P[t.Z]+2)),c=new i(f);t.keys={key:N(T,G(c,0,P[t.Z])),et:N(T,G(c,P[t.Z],2*P[t.Z])),passwordVerification:G(c,2*P[t.Z])}}function q(t,e){let n=t;return t.length+e.length&&(n=new i(t.length+e.length),n.set(t,0),n.set(e,t.length)),n}function G(t,e,n){return t.subarray(e,n)}function J(t,e){return t.k(e)}function N(t,e){return t.g(e)}class Q extends w{constructor(t,n){let i;super({start(){e.assign(this,{password:t,passwordVerification:n}),$(this,t)},transform(t,e){const n=this;if(n.password){const e=Y(n,t.subarray(0,12));if(n.password=null,e[11]!=n.passwordVerification)throw new r("Invalid pasword");t=t.subarray(12)}e.enqueue(Y(n,t))},flush(){i.valid=!0}}),i=this}}class X extends w{constructor(t,n){super({start(){e.assign(this,{password:t,passwordVerification:n}),$(this,t)},transform(t,e){const n=this;let r,s;if(n.password){n.password=null;const e=u.getRandomValues(new i(12));e[11]=n.passwordVerification,r=new i(t.length+e.length),r.set(Z(n,e),0),s=12}else r=new i(t.length),s=0;r.set(Z(n,t),s),e.enqueue(r)},flush(){}})}}function Y(t,e){const n=new i(e.length);for(let r=0;r<e.length;r++)n[r]=et(t)^e[r],tt(t,n[r]);return n}function Z(t,e){const n=new i(e.length);for(let r=0;r<e.length;r++)n[r]=et(t)^e[r],tt(t,e[r]);return n}function $(t,e){t.keys=[305419896,591751049,878082192],t.nt=new m(t.keys[0]),t.rt=new m(t.keys[2]);for(let n=0;n<e.length;n++)tt(t,e.charCodeAt(n))}function tt(t,e){t.nt.append([e]),t.keys[0]=~t.nt.get(),t.keys[1]=rt(t.keys[1]+nt(t.keys[0])),t.keys[1]=rt(n.imul(t.keys[1],134775813)+1),t.rt.append([t.keys[1]>>>24]),t.keys[2]=~t.rt.get()}function et(t){const e=2|t.keys[2];return nt(n.imul(e,1^e)>>>8)}function nt(t){return 255&t}function rt(t){return 4294967295&t}class it extends w{constructor(t,e){let n;super({start(){n=new t(e)},transform(t,e){t=n.append(t),e.enqueue(t)},flush(t){const e=n.flush();e&&t.enqueue(e)}})}}const st=void 0===p,ot=void 0===b;let ft=!0,ct=!0;class lt extends w{constructor(t,e,{it:n},...r){super({},...r);const{compressed:i,st:s,password:o,passwordVerification:f,encryptionStrength:l,zipCrypto:u,signed:a}=e,w=this;let h,d,b=wt(super.readable);const y=!!o;if(y&&!u||!a||([b,h]=b.tee(),h=h.pipeThrough(new k)),i)if(void 0!==s&&!s||st&&!ct)b=at(t,b,n);else try{const t=new p("deflate-raw");b=b.pipeThrough(t)}catch(e){ct=!1,b=at(t,b,n)}y&&(u?b=b.pipeThrough(new X(o,f)):(d=new L(o,l),b=b.pipeThrough(d))),ht(w,b,(async()=>{let t;y&&!u&&(t=d.signature),y&&!u||!a||(t=await h.getReader().read(),t=new c(t.value.buffer).getUint32(0)),w.signature=t}))}}class ut extends w{constructor(t,e,{it:n},...i){super({},...i);const{zipCrypto:s,password:o,passwordVerification:f,signed:l,encryptionStrength:u,compressed:a,st:w}=e;let h,d,p=wt(super.readable);const y=!!o;if(y&&(s?p=p.pipeThrough(new Q(o,f)):(d=new K(o,l,u),p=p.pipeThrough(d))),a)if(void 0!==w&&!w||ot&&!ft)p=at(t,p,n);else try{p=p.pipeThrough(new b("deflate-raw"))}catch(e){ft=!1,p=at(t,p,n)}y&&!s||!l||([p,h]=p.tee(),h=h.pipeThrough(new k)),ht(this,p,(async()=>{if(y&&!s&&!d.valid)throw new r("Invalid signature");if((!y||s)&&l){const t=await h.getReader().read();if(t!=new c(t.value.buffer).getUint32(0,!1))throw new r("Invalid signature")}}))}}function at(t,e,n){return e.pipeThrough(new it(t,{it:n}))}function wt(t){return t.pipeThrough(new w({transform(t,e){t&&t.length&&e.enqueue(t)}}))}function ht(t,n,r){t.length=0,n=n.pipeThrough(new w({transform(e,n){e&&e.length&&(t.length+=e.length,n.enqueue(e))},flush:r})),e.defineProperty(t,"readable",{get:()=>n})}const dt=new Map;let pt,bt=0;function yt(t){if(t.data){const e=t.data;if(e&&e.length)try{t.data=e.buffer,a(t,[t.data])}catch(e){a(t)}else a(t)}else a(t)}addEventListener("message",(async t=>{const e=t.data,n=e.type;try{if("start"==n&&(async t=>{try{t.scripts&&t.scripts.length&&importScripts.apply(void 0,t.scripts);const e=t.options;let n;self.initCodec&&self.initCodec(),e.codecType.startsWith("deflate")?n=self.Deflate:e.codecType.startsWith("inflate")&&(n=self.Inflate);const r=new h({async pull(t){let e=new Promise(((t,e)=>dt.set(bt,{resolve:t,reject:e})));yt({type:"pull",messageId:bt}),bt++;const{value:n,done:r}=await e;t.enqueue(n),r&&t.close()}},{highWaterMark:1}),i=new d({write(t){yt({type:"data",data:t})}});pt=((t,e,n,r,i)=>{const s=new AbortController,{signal:o}=s;if(r.codecType.startsWith("deflate"))return{ot:()=>f(lt),abort:c};if(r.codecType.startsWith("inflate"))return{ot:()=>f(ut),abort:c};async function f(s){const f=new s(t,r,i);await e.pipeThrough(f,{signal:o}).pipeTo(n);const{length:c,signature:l}=f;return{length:c,signature:l}}function c(){s.abort()}})(n,r,i,e,t.config),yt({type:"close",result:await pt.ot()})}catch(t){a({error:{message:t.message,stack:t.stack}})}})(e),"data"==n){const{resolve:t}=dt.get(e.messageId);dt.delete(e.messageId),t({value:new i(e.data),done:e.done})}"abort"==n&&pt.abort()}catch(t){a({error:{message:t.message,stack:t.stack}})}}));const mt=(()=>{const e=-2;function o(e){return f(e.map((([e,n])=>new t(e).fill(n,0,e))))}function f(e){return e.reduce(((e,n)=>e.concat(t.isArray(n)?f(n):n)),[])}const c=[0,1,2,3].concat(...o([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function l(){const t=this;function e(t,e){let n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}t.ft=r=>{const i=t.ct,s=t.ut.lt,o=t.ut.wt;let f,c,l,u=-1;for(r.ht=0,r.dt=573,f=0;o>f;f++)0!==i[2*f]?(r.bt[++r.ht]=u=f,r.yt[f]=0):i[2*f+1]=0;for(;2>r.ht;)l=r.bt[++r.ht]=2>u?++u:0,i[2*l]=1,r.yt[l]=0,r.kt--,s&&(r.gt-=s[2*l+1]);for(t.vt=u,f=n.floor(r.ht/2);f>=1;f--)r.St(i,f);l=o;do{f=r.bt[1],r.bt[1]=r.bt[r.ht--],r.St(i,1),c=r.bt[1],r.bt[--r.dt]=f,r.bt[--r.dt]=c,i[2*l]=i[2*f]+i[2*c],r.yt[l]=n.max(r.yt[f],r.yt[c])+1,i[2*f+1]=i[2*c+1]=l,r.bt[1]=l++,r.St(i,1)}while(r.ht>=2);r.bt[--r.dt]=r.bt[1],(e=>{const n=t.ct,r=t.ut.lt,i=t.ut._t,s=t.ut.zt,o=t.ut.Ct;let f,c,l,u,a,w,h=0;for(u=0;15>=u;u++)e.xt[u]=0;for(n[2*e.bt[e.dt]+1]=0,f=e.dt+1;573>f;f++)c=e.bt[f],u=n[2*n[2*c+1]+1]+1,u>o&&(u=o,h++),n[2*c+1]=u,c>t.vt||(e.xt[u]++,a=0,s>c||(a=i[c-s]),w=n[2*c],e.kt+=w*(u+a),r&&(e.gt+=w*(r[2*c+1]+a)));if(0!==h){do{for(u=o-1;0===e.xt[u];)u--;e.xt[u]--,e.xt[u+1]+=2,e.xt[o]--,h-=2}while(h>0);for(u=o;0!==u;u--)for(c=e.xt[u];0!==c;)l=e.bt[--f],l>t.vt||(n[2*l+1]!=u&&(e.kt+=(u-n[2*l+1])*n[2*l],n[2*l+1]=u),c--)}})(r),((t,n,r)=>{const i=[];let s,o,f,c=0;for(s=1;15>=s;s++)i[s]=c=c+r[s-1]<<1;for(o=0;n>=o;o++)f=t[2*o+1],0!==f&&(t[2*o]=e(i[f]++,f))})(i,t.vt,r.xt)}}function u(t,e,n,r,i){const s=this;s.lt=t,s._t=e,s.zt=n,s.wt=r,s.Ct=i}l.At=[0,1,2,3,4,5,6,7].concat(...o([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),l.It=[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],l.Vt=[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],l.Pt=t=>256>t?c[t]:c[256+(t>>>7)],l.Bt=[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],l.Dt=[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],l.Et=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l.Mt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const a=o([[144,8],[112,9],[24,7],[8,8]]);u.Rt=f([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((t,e)=>[t,a[e]])));const w=o([[30,5]]);function h(t,e,n,r,i){const s=this;s.Ut=t,s.Tt=e,s.Wt=n,s.jt=r,s.Ht=i}u.Kt=f([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((t,e)=>[t,w[e]]))),u.Lt=new u(u.Rt,l.Bt,257,286,15),u.Ft=new u(u.Kt,l.Dt,0,30,15),u.Ot=new u(null,l.Et,0,19,7);const d=[new h(0,0,0,0,0),new h(4,4,8,4,1),new h(4,5,16,8,1),new h(4,6,32,32,1),new h(4,4,16,16,2),new h(8,16,32,32,2),new h(8,16,128,128,2),new h(8,32,128,256,2),new h(32,128,258,1024,2),new h(32,258,258,4096,2)],p=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],b=113,y=666,m=262;function k(t,e,n,r){const i=t[2*e],s=t[2*n];return s>i||i==s&&r[e]<=r[n]}function g(){const t=this;let r,o,f,c,a,w,h,g,v,S,_,z,C,x,A,I,V,P,B,D,E,M,R,U,T,W,j,H,K,L,F,O,q;const G=new l,J=new l,N=new l;let Q,X,Y,Z,$,tt;function et(){let e;for(e=0;286>e;e++)F[2*e]=0;for(e=0;30>e;e++)O[2*e]=0;for(e=0;19>e;e++)q[2*e]=0;F[512]=1,t.kt=t.gt=0,X=Y=0}function nt(t,e){let n,r=-1,i=t[1],s=0,o=7,f=4;0===i&&(o=138,f=3),t[2*(e+1)+1]=65535;for(let c=0;e>=c;c++)n=i,i=t[2*(c+1)+1],++s<o&&n==i||(f>s?q[2*n]+=s:0!==n?(n!=r&&q[2*n]++,q[32]++):s>10?q[36]++:q[34]++,s=0,r=n,0===i?(o=138,f=3):n==i?(o=6,f=3):(o=7,f=4))}function rt(e){t.qt[t.pending++]=e}function it(t){rt(255&t),rt(t>>>8&255)}function st(t,e){let n;const r=e;tt>16-r?(n=t,$|=n<<tt&65535,it($),$=n>>>16-tt,tt+=r-16):($|=t<<tt&65535,tt+=r)}function ot(t,e){const n=2*t;st(65535&e[n],65535&e[n+1])}function ft(t,e){let n,r,i=-1,s=t[1],o=0,f=7,c=4;for(0===s&&(f=138,c=3),n=0;e>=n;n++)if(r=s,s=t[2*(n+1)+1],++o>=f||r!=s){if(c>o)do{ot(r,q)}while(0!=--o);else 0!==r?(r!=i&&(ot(r,q),o--),ot(16,q),st(o-3,2)):o>10?(ot(18,q),st(o-11,7)):(ot(17,q),st(o-3,3));o=0,i=r,0===s?(f=138,c=3):r==s?(f=6,c=3):(f=7,c=4)}}function ct(){16==tt?(it($),$=0,tt=0):8>tt||(rt(255&$),$>>>=8,tt-=8)}function lt(e,r){let i,s,o;if(t.Gt[X]=e,t.Jt[X]=255&r,X++,0===e?F[2*r]++:(Y++,e--,F[2*(l.At[r]+256+1)]++,O[2*l.Pt(e)]++),0==(8191&X)&&j>2){for(i=8*X,s=E-V,o=0;30>o;o++)i+=O[2*o]*(5+l.Dt[o]);if(i>>>=3,Y<n.floor(X/2)&&i<n.floor(s/2))return!0}return X==Q-1}function ut(e,n){let r,i,s,o,f=0;if(0!==X)do{r=t.Gt[f],i=t.Jt[f],f++,0===r?ot(i,e):(s=l.At[i],ot(s+256+1,e),o=l.Bt[s],0!==o&&(i-=l.It[s],st(i,o)),r--,s=l.Pt(r),ot(s,n),o=l.Dt[s],0!==o&&(r-=l.Vt[s],st(r,o)))}while(X>f);ot(256,e),Z=e[513]}function at(){tt>8?it($):tt>0&&rt(255&$),$=0,tt=0}function wt(e,n,r){st(0+(r?1:0),3),((e,n)=>{at(),Z=8,it(n),it(~n),t.qt.set(g.subarray(e,e+n),t.pending),t.pending+=n})(e,n)}function ht(e){((e,n,r)=>{let i,s,o=0;j>0?(G.ft(t),J.ft(t),o=(()=>{let e;for(nt(F,G.vt),nt(O,J.vt),N.ft(t),e=18;e>=3&&0===q[2*l.Mt[e]+1];e--);return t.kt+=14+3*(e+1),e})(),i=t.kt+3+7>>>3,s=t.gt+3+7>>>3,s>i||(i=s)):i=s=n+5,n+4>i||-1==e?s==i?(st(2+(r?1:0),3),ut(u.Rt,u.Kt)):(st(4+(r?1:0),3),((t,e,n)=>{let r;for(st(t-257,5),st(e-1,5),st(n-4,4),r=0;n>r;r++)st(q[2*l.Mt[r]+1],3);ft(F,t-1),ft(O,e-1)})(G.vt+1,J.vt+1,o+1),ut(F,O)):wt(e,n,r),et(),r&&at()})(0>V?-1:V,E-V,e),V=E,r.Nt()}function dt(){let t,e,n,i;do{if(i=v-R-E,0===i&&0===E&&0===R)i=a;else if(-1==i)i--;else if(E>=a+a-m){g.set(g.subarray(a,a+a),0),M-=a,E-=a,V-=a,t=C,n=t;do{e=65535&_[--n],_[n]=a>e?0:e-a}while(0!=--t);t=a,n=t;do{e=65535&S[--n],S[n]=a>e?0:e-a}while(0!=--t);i+=a}if(0===r.Qt)return;t=r.Xt(g,E+R,i),R+=t,3>R||(z=255&g[E],z=(z<<I^255&g[E+1])&A)}while(m>R&&0!==r.Qt)}function pt(t){let e,n,r=T,i=E,s=U;const o=E>a-m?E-(a-m):0;let f=L;const c=h,l=E+258;let u=g[i+s-1],w=g[i+s];K>U||(r>>=2),f>R&&(f=R);do{if(e=t,g[e+s]==w&&g[e+s-1]==u&&g[e]==g[i]&&g[++e]==g[i+1]){i+=2,e++;do{}while(g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&l>i);if(n=258-(l-i),i=l-258,n>s){if(M=t,s=n,n>=f)break;u=g[i+s-1],w=g[i+s]}}}while((t=65535&S[t&c])>o&&0!=--r);return s>R?R:s}t.yt=[],t.xt=[],t.bt=[],F=[],O=[],q=[],t.St=(e,n)=>{const r=t.bt,i=r[n];let s=n<<1;for(;s<=t.ht&&(s<t.ht&&k(e,r[s+1],r[s],t.yt)&&s++,!k(e,i,r[s],t.yt));)r[n]=r[s],n=s,s<<=1;r[n]=i},t.Yt=(r,l,p,y,m,k)=>(y||(y=8),m||(m=8),k||(k=0),r.Zt=null,-1==l&&(l=6),1>m||m>9||8!=y||9>p||p>15||0>l||l>9||0>k||k>2?e:(r.$t=t,w=p,a=1<<w,h=a-1,x=m+7,C=1<<x,A=C-1,I=n.floor((x+3-1)/3),g=new i(2*a),S=[],_=[],Q=1<<m+6,t.qt=new i(4*Q),f=4*Q,t.Gt=new s(Q),t.Jt=new i(Q),j=l,H=k,(e=>(e.te=e.ee=0,e.Zt=null,t.pending=0,t.ne=0,o=b,c=0,G.ct=F,G.ut=u.Lt,J.ct=O,J.ut=u.Ft,N.ct=q,N.ut=u.Ot,$=0,tt=0,Z=8,et(),(()=>{v=2*a,_[C-1]=0;for(let t=0;C-1>t;t++)_[t]=0;W=d[j].Tt,K=d[j].Ut,L=d[j].Wt,T=d[j].jt,E=0,V=0,R=0,P=U=2,D=0,z=0})(),0))(r))),t.re=()=>42!=o&&o!=b&&o!=y?e:(t.Jt=null,t.Gt=null,t.qt=null,_=null,S=null,g=null,t.$t=null,o==b?-3:0),t.ie=(t,n,r)=>{let i=0;return-1==n&&(n=6),0>n||n>9||0>r||r>2?e:(d[j].Ht!=d[n].Ht&&0!==t.te&&(i=t.se(1)),j!=n&&(j=n,W=d[j].Tt,K=d[j].Ut,L=d[j].Wt,T=d[j].jt),H=r,i)},t.oe=(t,n,r)=>{let i,s=r,f=0;if(!n||42!=o)return e;if(3>s)return 0;for(s>a-m&&(s=a-m,f=r-s),g.set(n.subarray(f,f+s),0),E=s,V=s,z=255&g[0],z=(z<<I^255&g[1])&A,i=0;s-3>=i;i++)z=(z<<I^255&g[i+2])&A,S[i&h]=_[z],_[z]=i;return 0},t.se=(n,i)=>{let s,l,k,v,x;if(i>4||0>i)return e;if(!n.fe||!n.ce&&0!==n.Qt||o==y&&4!=i)return n.Zt=p[4],e;if(0===n.le)return n.Zt=p[7],-5;var T;if(r=n,v=c,c=i,42==o&&(l=8+(w-8<<4)<<8,k=(j-1&255)>>1,k>3&&(k=3),l|=k<<6,0!==E&&(l|=32),l+=31-l%31,o=b,rt((T=l)>>8&255),rt(255&T)),0!==t.pending){if(r.Nt(),0===r.le)return c=-1,0}else if(0===r.Qt&&v>=i&&4!=i)return r.Zt=p[7],-5;if(o==y&&0!==r.Qt)return n.Zt=p[7],-5;if(0!==r.Qt||0!==R||0!=i&&o!=y){switch(x=-1,d[j].Ht){case 0:x=(t=>{let e,n=65535;for(n>f-5&&(n=f-5);;){if(1>=R){if(dt(),0===R&&0==t)return 0;if(0===R)break}if(E+=R,R=0,e=V+n,(0===E||E>=e)&&(R=E-e,E=e,ht(!1),0===r.le))return 0;if(E-V>=a-m&&(ht(!1),0===r.le))return 0}return ht(4==t),0===r.le?4==t?2:0:4==t?3:1})(i);break;case 1:x=(t=>{let e,n=0;for(;;){if(m>R){if(dt(),m>R&&0==t)return 0;if(0===R)break}if(3>R||(z=(z<<I^255&g[E+2])&A,n=65535&_[z],S[E&h]=_[z],_[z]=E),0===n||(E-n&65535)>a-m||2!=H&&(P=pt(n)),3>P)e=lt(0,255&g[E]),R--,E++;else if(e=lt(E-M,P-3),R-=P,P>W||3>R)E+=P,P=0,z=255&g[E],z=(z<<I^255&g[E+1])&A;else{P--;do{E++,z=(z<<I^255&g[E+2])&A,n=65535&_[z],S[E&h]=_[z],_[z]=E}while(0!=--P);E++}if(e&&(ht(!1),0===r.le))return 0}return ht(4==t),0===r.le?4==t?2:0:4==t?3:1})(i);break;case 2:x=(t=>{let e,n,i=0;for(;;){if(m>R){if(dt(),m>R&&0==t)return 0;if(0===R)break}if(3>R||(z=(z<<I^255&g[E+2])&A,i=65535&_[z],S[E&h]=_[z],_[z]=E),U=P,B=M,P=2,0!==i&&W>U&&a-m>=(E-i&65535)&&(2!=H&&(P=pt(i)),5>=P&&(1==H||3==P&&E-M>4096)&&(P=2)),3>U||P>U)if(0!==D){if(e=lt(0,255&g[E-1]),e&&ht(!1),E++,R--,0===r.le)return 0}else D=1,E++,R--;else{n=E+R-3,e=lt(E-1-B,U-3),R-=U-1,U-=2;do{++E>n||(z=(z<<I^255&g[E+2])&A,i=65535&_[z],S[E&h]=_[z],_[z]=E)}while(0!=--U);if(D=0,P=2,E++,e&&(ht(!1),0===r.le))return 0}}return 0!==D&&(e=lt(0,255&g[E-1]),D=0),ht(4==t),0===r.le?4==t?2:0:4==t?3:1})(i)}if(2!=x&&3!=x||(o=y),0==x||2==x)return 0===r.le&&(c=-1),0;if(1==x){if(1==i)st(2,3),ot(256,u.Rt),ct(),9>1+Z+10-tt&&(st(2,3),ot(256,u.Rt),ct()),Z=7;else if(wt(0,0,!1),3==i)for(s=0;C>s;s++)_[s]=0;if(r.Nt(),0===r.le)return c=-1,0}}return 4!=i?0:1}}function v(){const t=this;t.ue=0,t.ae=0,t.Qt=0,t.te=0,t.le=0,t.ee=0}return v.prototype={Yt:function(t,e){const n=this;return n.$t=new g,e||(e=15),n.$t.Yt(n,t,e)},se:function(t){const n=this;return n.$t?n.$t.se(n,t):e},re:function(){const t=this;if(!t.$t)return e;const n=t.$t.re();return t.$t=null,n},ie:function(t,n){const r=this;return r.$t?r.$t.ie(r,t,n):e},oe:function(t,n){const r=this;return r.$t?r.$t.oe(r,t,n):e},Xt:function(t,e,n){const r=this;let i=r.Qt;return i>n&&(i=n),0===i?0:(r.Qt-=i,t.set(r.ce.subarray(r.ue,r.ue+i),e),r.ue+=i,r.te+=i,i)},Nt:function(){const t=this;let e=t.$t.pending;e>t.le&&(e=t.le),0!==e&&(t.fe.set(t.$t.qt.subarray(t.$t.ne,t.$t.ne+e),t.ae),t.ae+=e,t.$t.ne+=e,t.ee+=e,t.le-=e,t.$t.pending-=e,0===t.$t.pending&&(t.$t.ne=0))}},function(t){const e=new v,s=(o=t&&t.it?t.it:65536)+5*(n.floor(o/16383)+1);var o;const f=new i(s);let c=t?t.level:-1;void 0===c&&(c=-1),e.Yt(c),e.fe=f,this.append=(t,n)=>{let o,c,l=0,u=0,a=0;const w=[];if(t.length){e.ue=0,e.ce=t,e.Qt=t.length;do{if(e.ae=0,e.le=s,o=e.se(0),0!=o)throw new r("deflating: "+e.Zt);e.ae&&(e.ae==s?w.push(new i(f)):w.push(f.slice(0,e.ae))),a+=e.ae,n&&e.ue>0&&e.ue!=l&&(n(e.ue),l=e.ue)}while(e.Qt>0||0===e.le);return w.length>1?(c=new i(a),w.forEach((t=>{c.set(t,u),u+=t.length}))):c=w[0]||new i(0),c}},this.flush=()=>{let t,n,o=0,c=0;const l=[];do{if(e.ae=0,e.le=s,t=e.se(4),1!=t&&0!=t)throw new r("deflating: "+e.Zt);s-e.le>0&&l.push(f.slice(0,e.ae)),c+=e.ae}while(e.Qt>0||0===e.le);return e.re(),n=new i(c),l.forEach((t=>{n.set(t,o),o+=t.length})),n}}})(),kt=(()=>{const t=-2,e=-3,s=-5,o=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],c=[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],l=[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],u=[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],a=[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],w=[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],h=[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 d(){let t,n,r,i,o,c;function l(t,n,f,l,u,a,w,h,d,p,b){let y,m,k,g,v,S,_,z,C,x,A,I,V,P,B;x=0,v=f;do{r[t[n+x]]++,x++,v--}while(0!==v);if(r[0]==f)return w[0]=-1,h[0]=0,0;for(z=h[0],S=1;15>=S&&0===r[S];S++);for(_=S,S>z&&(z=S),v=15;0!==v&&0===r[v];v--);for(k=v,z>v&&(z=v),h[0]=z,P=1<<S;v>S;S++,P<<=1)if(0>(P-=r[S]))return e;if(0>(P-=r[v]))return e;for(r[v]+=P,c[1]=S=0,x=1,V=2;0!=--v;)c[V]=S+=r[x],V++,x++;v=0,x=0;do{0!==(S=t[n+x])&&(b[c[S]++]=v),x++}while(++v<f);for(f=c[k],c[0]=v=0,x=0,g=-1,I=-z,o[0]=0,A=0,B=0;k>=_;_++)for(y=r[_];0!=y--;){for(;_>I+z;){if(g++,I+=z,B=k-I,B=B>z?z:B,(m=1<<(S=_-I))>y+1&&(m-=y+1,V=_,B>S))for(;++S<B&&(m<<=1)>r[++V];)m-=r[V];if(B=1<<S,p[0]+B>1440)return e;o[g]=A=p[0],p[0]+=B,0!==g?(c[g]=v,i[0]=S,i[1]=z,S=v>>>I-z,i[2]=A-o[g-1]-S,d.set(i,3*(o[g-1]+S))):w[0]=A}for(i[1]=_-I,f>x?b[x]<l?(i[0]=256>b[x]?0:96,i[2]=b[x++]):(i[0]=a[b[x]-l]+16+64,i[2]=u[b[x++]-l]):i[0]=192,m=1<<_-I,S=v>>>I;B>S;S+=m)d.set(i,3*(A+S));for(S=1<<_-1;0!=(v&S);S>>>=1)v^=S;for(v^=S,C=(1<<I)-1;(v&C)!=c[g];)g--,I-=z,C=(1<<I)-1}return 0!==P&&1!=k?s:0}function d(e){let s;for(t||(t=[],n=[],r=new f(16),i=[],o=new f(15),c=new f(16)),n.length<e&&(n=[]),s=0;e>s;s++)n[s]=0;for(s=0;16>s;s++)r[s]=0;for(s=0;3>s;s++)i[s]=0;o.set(r.subarray(0,15),0),c.set(r.subarray(0,16),0)}this.we=(r,i,o,f,c)=>{let u;return d(19),t[0]=0,u=l(r,0,19,19,null,null,o,i,f,t,n),u==e?c.Zt="oversubscribed dynamic bit lengths tree":u!=s&&0!==i[0]||(c.Zt="incomplete dynamic bit lengths tree",u=e),u},this.he=(r,i,o,f,c,p,b,y,m)=>{let k;return d(288),t[0]=0,k=l(o,0,r,257,u,a,p,f,y,t,n),0!=k||0===f[0]?(k==e?m.Zt="oversubscribed literal/length tree":-4!=k&&(m.Zt="incomplete literal/length tree",k=e),k):(d(288),k=l(o,r,i,0,w,h,b,c,y,t,n),0!=k||0===c[0]&&r>257?(k==e?m.Zt="oversubscribed distance tree":k==s?(m.Zt="incomplete distance tree",k=e):-4!=k&&(m.Zt="empty distance tree with lengths",k=e),k):0)}}function p(){const n=this;let r,i,s,f,c=0,l=0,u=0,a=0,w=0,h=0,d=0,p=0,b=0,y=0;function m(t,n,r,i,s,f,c,l){let u,a,w,h,d,p,b,y,m,k,g,v,S,_,z,C;b=l.ue,y=l.Qt,d=c.de,p=c.pe,m=c.write,k=m<c.read?c.read-m-1:c.end-m,g=o[t],v=o[n];do{for(;20>p;)y--,d|=(255&l.be(b++))<<p,p+=8;if(u=d&g,a=r,w=i,C=3*(w+u),0!==(h=a[C]))for(;;){if(d>>=a[C+1],p-=a[C+1],0!=(16&h)){for(h&=15,S=a[C+2]+(d&o[h]),d>>=h,p-=h;15>p;)y--,d|=(255&l.be(b++))<<p,p+=8;for(u=d&v,a=s,w=f,C=3*(w+u),h=a[C];;){if(d>>=a[C+1],p-=a[C+1],0!=(16&h)){for(h&=15;h>p;)y--,d|=(255&l.be(b++))<<p,p+=8;if(_=a[C+2]+(d&o[h]),d>>=h,p-=h,k-=S,_>m){z=m-_;do{z+=c.end}while(0>z);if(h=c.end-z,S>h){if(S-=h,m-z>0&&h>m-z)do{c.ye[m++]=c.ye[z++]}while(0!=--h);else c.ye.set(c.ye.subarray(z,z+h),m),m+=h,z+=h,h=0;z=0}}else z=m-_,m-z>0&&2>m-z?(c.ye[m++]=c.ye[z++],c.ye[m++]=c.ye[z++],S-=2):(c.ye.set(c.ye.subarray(z,z+2),m),m+=2,z+=2,S-=2);if(m-z>0&&S>m-z)do{c.ye[m++]=c.ye[z++]}while(0!=--S);else c.ye.set(c.ye.subarray(z,z+S),m),m+=S,z+=S,S=0;break}if(0!=(64&h))return l.Zt="invalid distance code",S=l.Qt-y,S=S>p>>3?p>>3:S,y+=S,b-=S,p-=S<<3,c.de=d,c.pe=p,l.Qt=y,l.te+=b-l.ue,l.ue=b,c.write=m,e;u+=a[C+2],u+=d&o[h],C=3*(w+u),h=a[C]}break}if(0!=(64&h))return 0!=(32&h)?(S=l.Qt-y,S=S>p>>3?p>>3:S,y+=S,b-=S,p-=S<<3,c.de=d,c.pe=p,l.Qt=y,l.te+=b-l.ue,l.ue=b,c.write=m,1):(l.Zt="invalid literal/length code",S=l.Qt-y,S=S>p>>3?p>>3:S,y+=S,b-=S,p-=S<<3,c.de=d,c.pe=p,l.Qt=y,l.te+=b-l.ue,l.ue=b,c.write=m,e);if(u+=a[C+2],u+=d&o[h],C=3*(w+u),0===(h=a[C])){d>>=a[C+1],p-=a[C+1],c.ye[m++]=a[C+2],k--;break}}else d>>=a[C+1],p-=a[C+1],c.ye[m++]=a[C+2],k--}while(k>=258&&y>=10);return S=l.Qt-y,S=S>p>>3?p>>3:S,y+=S,b-=S,p-=S<<3,c.de=d,c.pe=p,l.Qt=y,l.te+=b-l.ue,l.ue=b,c.write=m,0}n.init=(t,e,n,o,c,l)=>{r=0,d=t,p=e,s=n,b=o,f=c,y=l,i=null},n.me=(n,k,g)=>{let v,S,_,z,C,x,A,I=0,V=0,P=0;for(P=k.ue,z=k.Qt,I=n.de,V=n.pe,C=n.write,x=C<n.read?n.read-C-1:n.end-C;;)switch(r){case 0:if(x>=258&&z>=10&&(n.de=I,n.pe=V,k.Qt=z,k.te+=P-k.ue,k.ue=P,n.write=C,g=m(d,p,s,b,f,y,n,k),P=k.ue,z=k.Qt,I=n.de,V=n.pe,C=n.write,x=C<n.read?n.read-C-1:n.end-C,0!=g)){r=1==g?7:9;break}u=d,i=s,l=b,r=1;case 1:for(v=u;v>V;){if(0===z)return n.de=I,n.pe=V,k.Qt=z,k.te+=P-k.ue,k.ue=P,n.write=C,n.ke(k,g);g=0,z--,I|=(255&k.be(P++))<<V,V+=8}if(S=3*(l+(I&o[v])),I>>>=i[S+1],V-=i[S+1],_=i[S],0===_){a=i[S+2],r=6;break}if(0!=(16&_)){w=15&_,c=i[S+2],r=2;break}if(0==(64&_)){u=_,l=S/3+i[S+2];break}if(0!=(32&_)){r=7;break}return r=9,k.Zt="invalid literal/length code",g=e,n.de=I,n.pe=V,k.Qt=z,k.te+=P-k.ue,k.ue=P,n.write=C,n.ke(k,g);case 2:for(v=w;v>V;){if(0===z)return n.de=I,n.pe=V,k.Qt=z,k.te+=P-k.ue,k.ue=P,n.write=C,n.ke(k,g);g=0,z--,I|=(255&k.be(P++))<<V,V+=8}c+=I&o[v],I>>=v,V-=v,u=p,i=f,l=y,r=3;case 3:for(v=u;v>V;){if(0===z)return n.de=I,n.pe=V,k.Qt=z,k.te+=P-k.ue,k.ue=P,n.write=C,n.ke(k,g);g=0,z--,I|=(255&k.be(P++))<<V,V+=8}if(S=3*(l+(I&o[v])),I>>=i[S+1],V-=i[S+1],_=i[S],0!=(16&_)){w=15&_,h=i[S+2],r=4;break}if(0==(64&_)){u=_,l=S/3+i[S+2];break}return r=9,k.Zt="invalid distance code",g=e,n.de=I,n.pe=V,k.Qt=z,k.te+=P-k.ue,k.ue=P,n.write=C,n.ke(k,g);case 4:for(v=w;v>V;){if(0===z)return n.de=I,n.pe=V,k.Qt=z,k.te+=P-k.ue,k.ue=P,n.write=C,n.ke(k,g);g=0,z--,I|=(255&k.be(P++))<<V,V+=8}h+=I&o[v],I>>=v,V-=v,r=5;case 5:for(A=C-h;0>A;)A+=n.end;for(;0!==c;){if(0===x&&(C==n.end&&0!==n.read&&(C=0,x=C<n.read?n.read-C-1:n.end-C),0===x&&(n.write=C,g=n.ke(k,g),C=n.write,x=C<n.read?n.read-C-1:n.end-C,C==n.end&&0!==n.read&&(C=0,x=C<n.read?n.read-C-1:n.end-C),0===x)))return n.de=I,n.pe=V,k.Qt=z,k.te+=P-k.ue,k.ue=P,n.write=C,n.ke(k,g);n.ye[C++]=n.ye[A++],x--,A==n.end&&(A=0),c--}r=0;break;case 6:if(0===x&&(C==n.end&&0!==n.read&&(C=0,x=C<n.read?n.read-C-1:n.end-C),0===x&&(n.write=C,g=n.ke(k,g),C=n.write,x=C<n.read?n.read-C-1:n.end-C,C==n.end&&0!==n.read&&(C=0,x=C<n.read?n.read-C-1:n.end-C),0===x)))return n.de=I,n.pe=V,k.Qt=z,k.te+=P-k.ue,k.ue=P,n.write=C,n.ke(k,g);g=0,n.ye[C++]=a,x--,r=0;break;case 7:if(V>7&&(V-=8,z++,P--),n.write=C,g=n.ke(k,g),C=n.write,x=C<n.read?n.read-C-1:n.end-C,n.read!=n.write)return n.de=I,n.pe=V,k.Qt=z,k.te+=P-k.ue,k.ue=P,n.write=C,n.ke(k,g);r=8;case 8:return g=1,n.de=I,n.pe=V,k.Qt=z,k.te+=P-k.ue,k.ue=P,n.write=C,n.ke(k,g);case 9:return g=e,n.de=I,n.pe=V,k.Qt=z,k.te+=P-k.ue,k.ue=P,n.write=C,n.ke(k,g);default:return g=t,n.de=I,n.pe=V,k.Qt=z,k.te+=P-k.ue,k.ue=P,n.write=C,n.ke(k,g)}},n.ge=()=>{}}d.ve=(t,e,n,r)=>(t[0]=9,e[0]=5,n[0]=c,r[0]=l,0);const b=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function y(n,r){const c=this;let l,u=0,a=0,w=0,h=0;const y=[0],m=[0],k=new p;let g=0,v=new f(4320);const S=new d;c.pe=0,c.de=0,c.ye=new i(r),c.end=r,c.read=0,c.write=0,c.reset=(t,e)=>{e&&(e[0]=0),6==u&&k.ge(t),u=0,c.pe=0,c.de=0,c.read=c.write=0},c.reset(n,null),c.ke=(t,e)=>{let n,r,i;return r=t.ae,i=c.read,n=(i>c.write?c.end:c.write)-i,n>t.le&&(n=t.le),0!==n&&e==s&&(e=0),t.le-=n,t.ee+=n,t.fe.set(c.ye.subarray(i,i+n),r),r+=n,i+=n,i==c.end&&(i=0,c.write==c.end&&(c.write=0),n=c.write-i,n>t.le&&(n=t.le),0!==n&&e==s&&(e=0),t.le-=n,t.ee+=n,t.fe.set(c.ye.subarray(i,i+n),r),r+=n,i+=n),t.ae=r,c.read=i,e},c.me=(n,r)=>{let i,s,f,p,_,z,C,x;for(p=n.ue,_=n.Qt,s=c.de,f=c.pe,z=c.write,C=z<c.read?c.read-z-1:c.end-z;;){let A,I,V,P,B,D,E,M;switch(u){case 0:for(;3>f;){if(0===_)return c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);r=0,_--,s|=(255&n.be(p++))<<f,f+=8}switch(i=7&s,g=1&i,i>>>1){case 0:s>>>=3,f-=3,i=7&f,s>>>=i,f-=i,u=1;break;case 1:A=[],I=[],V=[[]],P=[[]],d.ve(A,I,V,P),k.init(A[0],I[0],V[0],0,P[0],0),s>>>=3,f-=3,u=6;break;case 2:s>>>=3,f-=3,u=3;break;case 3:return s>>>=3,f-=3,u=9,n.Zt="invalid block type",r=e,c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r)}break;case 1:for(;32>f;){if(0===_)return c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);r=0,_--,s|=(255&n.be(p++))<<f,f+=8}if((~s>>>16&65535)!=(65535&s))return u=9,n.Zt="invalid stored block lengths",r=e,c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);a=65535&s,s=f=0,u=0!==a?2:0!==g?7:0;break;case 2:if(0===_)return c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);if(0===C&&(z==c.end&&0!==c.read&&(z=0,C=z<c.read?c.read-z-1:c.end-z),0===C&&(c.write=z,r=c.ke(n,r),z=c.write,C=z<c.read?c.read-z-1:c.end-z,z==c.end&&0!==c.read&&(z=0,C=z<c.read?c.read-z-1:c.end-z),0===C)))return c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);if(r=0,i=a,i>_&&(i=_),i>C&&(i=C),c.ye.set(n.Xt(p,i),z),p+=i,_-=i,z+=i,C-=i,0!=(a-=i))break;u=0!==g?7:0;break;case 3:for(;14>f;){if(0===_)return c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);r=0,_--,s|=(255&n.be(p++))<<f,f+=8}if(w=i=16383&s,(31&i)>29||(i>>5&31)>29)return u=9,n.Zt="too many length or distance symbols",r=e,c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);if(i=258+(31&i)+(i>>5&31),!l||l.length<i)l=[];else for(x=0;i>x;x++)l[x]=0;s>>>=14,f-=14,h=0,u=4;case 4:for(;4+(w>>>10)>h;){for(;3>f;){if(0===_)return c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);r=0,_--,s|=(255&n.be(p++))<<f,f+=8}l[b[h++]]=7&s,s>>>=3,f-=3}for(;19>h;)l[b[h++]]=0;if(y[0]=7,i=S.we(l,y,m,v,n),0!=i)return(r=i)==e&&(l=null,u=9),c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);h=0,u=5;case 5:for(;i=w,258+(31&i)+(i>>5&31)>h;){let t,a;for(i=y[0];i>f;){if(0===_)return c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);r=0,_--,s|=(255&n.be(p++))<<f,f+=8}if(i=v[3*(m[0]+(s&o[i]))+1],a=v[3*(m[0]+(s&o[i]))+2],16>a)s>>>=i,f-=i,l[h++]=a;else{for(x=18==a?7:a-14,t=18==a?11:3;i+x>f;){if(0===_)return c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);r=0,_--,s|=(255&n.be(p++))<<f,f+=8}if(s>>>=i,f-=i,t+=s&o[x],s>>>=x,f-=x,x=h,i=w,x+t>258+(31&i)+(i>>5&31)||16==a&&1>x)return l=null,u=9,n.Zt="invalid bit length repeat",r=e,c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);a=16==a?l[x-1]:0;do{l[x++]=a}while(0!=--t);h=x}}if(m[0]=-1,B=[],D=[],E=[],M=[],B[0]=9,D[0]=6,i=w,i=S.he(257+(31&i),1+(i>>5&31),l,B,D,E,M,v,n),0!=i)return i==e&&(l=null,u=9),r=i,c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);k.init(B[0],D[0],v,E[0],v,M[0]),u=6;case 6:if(c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,1!=(r=k.me(c,n,r)))return c.ke(n,r);if(r=0,k.ge(n),p=n.ue,_=n.Qt,s=c.de,f=c.pe,z=c.write,C=z<c.read?c.read-z-1:c.end-z,0===g){u=0;break}u=7;case 7:if(c.write=z,r=c.ke(n,r),z=c.write,C=z<c.read?c.read-z-1:c.end-z,c.read!=c.write)return c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);u=8;case 8:return r=1,c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);case 9:return r=e,c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r);default:return r=t,c.de=s,c.pe=f,n.Qt=_,n.te+=p-n.ue,n.ue=p,c.write=z,c.ke(n,r)}}},c.ge=t=>{c.reset(t,null),c.ye=null,v=null},c.Se=(t,e,n)=>{c.ye.set(t.subarray(e,e+n),0),c.read=c.write=n},c._e=()=>1==u?1:0}const m=13,k=[0,0,255,255];function g(){const n=this;function r(e){return e&&e.ze?(e.te=e.ee=0,e.Zt=null,e.ze.mode=7,e.ze.Ce.reset(e,null),0):t}n.mode=0,n.method=0,n.xe=[0],n.Ae=0,n.marker=0,n.Ie=0,n.Ve=t=>(n.Ce&&n.Ce.ge(t),n.Ce=null,0),n.Pe=(e,i)=>(e.Zt=null,n.Ce=null,8>i||i>15?(n.Ve(e),t):(n.Ie=i,e.ze.Ce=new y(e,1<<i),r(e),0)),n.Be=(n,r)=>{let i,o;if(!n||!n.ze||!n.ce)return t;const f=n.ze;for(r=4==r?s:0,i=s;;)switch(f.mode){case 0:if(0===n.Qt)return i;if(i=r,n.Qt--,n.te++,8!=(15&(f.method=n.be(n.ue++)))){f.mode=m,n.Zt="unknown compression method",f.marker=5;break}if(8+(f.method>>4)>f.Ie){f.mode=m,n.Zt="invalid win size",f.marker=5;break}f.mode=1;case 1:if(0===n.Qt)return i;if(i=r,n.Qt--,n.te++,o=255&n.be(n.ue++),((f.method<<8)+o)%31!=0){f.mode=m,n.Zt="incorrect header check",f.marker=5;break}if(0==(32&o)){f.mode=7;break}f.mode=2;case 2:if(0===n.Qt)return i;i=r,n.Qt--,n.te++,f.Ae=(255&n.be(n.ue++))<<24&4278190080,f.mode=3;case 3:if(0===n.Qt)return i;i=r,n.Qt--,n.te++,f.Ae+=(255&n.be(n.ue++))<<16&16711680,f.mode=4;case 4:if(0===n.Qt)return i;i=r,n.Qt--,n.te++,f.Ae+=(255&n.be(n.ue++))<<8&65280,f.mode=5;case 5:return 0===n.Qt?i:(i=r,n.Qt--,n.te++,f.Ae+=255&n.be(n.ue++),f.mode=6,2);case 6:return f.mode=m,n.Zt="need dictionary",f.marker=0,t;case 7:if(i=f.Ce.me(n,i),i==e){f.mode=m,f.marker=0;break}if(0==i&&(i=r),1!=i)return i;i=r,f.Ce.reset(n,f.xe),f.mode=12;case 12:return n.Qt=0,1;case m:return e;default:return t}},n.De=(e,n,r)=>{let i=0,s=r;if(!e||!e.ze||6!=e.ze.mode)return t;const o=e.ze;return s<1<<o.Ie||(s=(1<<o.Ie)-1,i=r-s),o.Ce.Se(n,i,s),o.mode=7,0},n.Ee=n=>{let i,o,f,c,l;if(!n||!n.ze)return t;const u=n.ze;if(u.mode!=m&&(u.mode=m,u.marker=0),0===(i=n.Qt))return s;for(o=n.ue,f=u.marker;0!==i&&4>f;)n.be(o)==k[f]?f++:f=0!==n.be(o)?0:4-f,o++,i--;return n.te+=o-n.ue,n.ue=o,n.Qt=i,u.marker=f,4!=f?e:(c=n.te,l=n.ee,r(n),n.te=c,n.ee=l,u.mode=7,0)},n.Me=e=>e&&e.ze&&e.ze.Ce?e.ze.Ce._e():t}function v(){}return v.prototype={Pe:function(t){const e=this;return e.ze=new g,t||(t=15),e.ze.Pe(e,t)},Be:function(e){const n=this;return n.ze?n.ze.Be(n,e):t},Ve:function(){const e=this;if(!e.ze)return t;const n=e.ze.Ve(e);return e.ze=null,n},Ee:function(){const e=this;return e.ze?e.ze.Ee(e):t},De:function(e,n){const r=this;return r.ze?r.ze.De(r,e,n):t},be:function(t){return this.ce[t]},Xt:function(t,e){return this.ce.subarray(t,t+e)}},function(t){const e=new v,o=t&&t.it?n.floor(2*t.it):131072,f=new i(o);let c=!1;e.Pe(),e.fe=f,this.append=(t,n)=>{const l=[];let u,a,w=0,h=0,d=0;if(0!==t.length){e.ue=0,e.ce=t,e.Qt=t.length;do{if(e.ae=0,e.le=o,0!==e.Qt||c||(e.ue=0,c=!0),u=e.Be(0),c&&u===s){if(0!==e.Qt)throw new r("inflating: bad input")}else if(0!==u&&1!==u)throw new r("inflating: "+e.Zt);if((c||1===u)&&e.Qt===t.length)throw new r("inflating: bad input");e.ae&&(e.ae===o?l.push(new i(f)):l.push(f.slice(0,e.ae))),d+=e.ae,n&&e.ue>0&&e.ue!=w&&(n(e.ue),w=e.ue)}while(e.Qt>0||0===e.le);return l.length>1?(a=new i(d),l.forEach((t=>{a.set(t,h),h+=t.length}))):a=l[0]||new i(0),a}},this.flush=()=>{e.Ve()}}})();self.initCodec=()=>{self.Deflate=mt,self.Inflate=kt};\n'],{type:"text/javascript"}));e({workerScripts:{inflate:[t],deflate:[t]}})}})(T),e.BlobReader=ct,e.BlobWriter=lt,e.Data64URIReader=at,e.Data64URIWriter=ot,e.ERR_ABORT=Ze,e.ERR_BAD_FORMAT=Zt,e.ERR_CENTRAL_DIRECTORY_NOT_FOUND=Ot,e.ERR_DUPLICATED_NAME=gn,e.ERR_ENCRYPTED=Kt,e.ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND=Ht,e.ERR_EOCDR_NOT_FOUND=qt,e.ERR_EOCDR_ZIP64_NOT_FOUND=Lt,e.ERR_EXTRAFIELD_ZIP64_NOT_FOUND=jt,e.ERR_HTTP_RANGE=Xe,e.ERR_INVALID_COMMENT=yn,e.ERR_INVALID_ENCRYPTION_STRENGTH=zn,e.ERR_INVALID_ENTRY_COMMENT=mn,e.ERR_INVALID_ENTRY_NAME=bn,e.ERR_INVALID_EXTRAFIELD_DATA=vn,e.ERR_INVALID_EXTRAFIELD_TYPE=Sn,e.ERR_INVALID_PASSWORD=Z,e.ERR_INVALID_SIGNATURE=xe,e.ERR_INVALID_VERSION=kn,e.ERR_LOCAL_FILE_HEADER_NOT_FOUND=$t,e.ERR_NOT_SEEKABLE_READER="Reader is not seekable",e.ERR_UNSUPPORTED_COMPRESSION=Xt,e.ERR_UNSUPPORTED_ENCRYPTION=Gt,e.ERR_UNSUPPORTED_FORMAT=Rn,e.HttpRangeReader=class extends Rt{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},e.HttpReader=Rt,e.ReadableStreamReader=class{constructor(e){this.readableStream=e,this.size=1/0}init(e){this.size=e,this.initialized=!0}getStream(){return this.readableStream}},e.Reader=tt,e.TextReader=it,e.TextWriter=st,e.Uint8ArrayReader=Ct,e.Uint8ArrayWriter=_t,e.WritableStreamWriter=class extends rt{constructor(e){super(),this.writable=e}async writeUint8Array(e){return await this.writer.ready,this.writable.getWriter().write(e)}getStream(){return this.writable}async getData(){return this.writable}},e.Writer=rt,e.ZipReader=tn,e.ZipWriter=xn,e.configure=T,e.fs=Zn,e.getMimeType=()=>"application/octet-stream",e.initShimAsyncCodec=(e,t={},n)=>({Deflate:F(e.Deflate,t.deflate,n),Inflate:F(e.Inflate,t.inflate,n)}),e.terminateWorkers=()=>{He.forEach((e=>{Ke(e),e.terminate()}))},n.defineProperty(e,"__esModule",{value:!0})}));