@zip.js/zip.js 2.8.53 → 2.8.54
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.
- package/README.md +1 -1
- package/deno.json +2 -1
- package/dist/zip-core-external.js +691 -482
- package/dist/zip-core-external.min.js +1 -1
- package/dist/zip-core.js +698 -481
- package/dist/zip-core.min.js +1 -1
- package/dist/zip-fs-core-external.js +729 -511
- package/dist/zip-fs-core-external.min.js +1 -1
- package/dist/zip-fs-core.js +691 -496
- package/dist/zip-fs-core.min.js +1 -1
- package/dist/zip-fs-external.js +729 -511
- package/dist/zip-fs-external.min.js +1 -1
- package/dist/zip-fs-native.js +743 -512
- package/dist/zip-fs-native.min.js +1 -1
- package/dist/zip-fs.js +742 -511
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-legacy.js +700 -483
- package/dist/zip-legacy.min.js +1 -1
- package/dist/zip-native.js +700 -483
- package/dist/zip-native.min.js +1 -1
- package/dist/zip-web-worker-native.js +1 -1
- package/dist/zip-web-worker.js +1 -1
- package/dist/zip.js +699 -482
- package/dist/zip.min.js +1 -1
- package/eslint.config.mjs +1 -0
- package/index-native.cjs +743 -512
- package/index-native.min.js +1 -1
- package/index.cjs +742 -511
- package/index.d.cts +398 -42
- package/index.d.ts +398 -42
- package/index.min.js +1 -1
- package/lib/core/configuration.js +62 -21
- package/lib/core/constants.js +11 -1
- package/lib/core/io.js +33 -27
- package/lib/core/options.js +44 -2
- package/lib/core/streams/aes-crypto-stream.js +12 -12
- package/lib/core/util/decode-text.js +11 -2
- package/lib/core/web-worker-base.js +3 -2
- package/lib/core/web-worker-inline-native.js +1 -1
- package/lib/core/web-worker-inline-wasm.js +1 -1
- package/lib/core/zip-fs.js +38 -27
- package/lib/core/zip-reader.js +58 -26
- package/lib/core/zip-writer.js +293 -177
- package/lib/zip-core-base.js +6 -1
- package/lib/zip-core-reader.js +1 -0
- package/lib/zip-core-writer.js +4 -0
- package/package.json +8 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=4294967295,e=65535,r=255,a=67324752,n=134695760,s=n,i=84233040,o=33639248,c=101010256,l=101075792,d=117853008,p=22,m=20,f=56,u=39169,w=21589,h=6534,y=30837,b=30805,g=2048,x=61440,v=16384,z=2048,S=1024,E="/",k=30,A=new Date(2107,11,31,23,59,58),R=new Date(1980,0,1),F=void 0,D=1/0,O="undefined",U="function",T="string",j=new Uint8Array;let C=2;try{typeof navigator!=O&&navigator.hardwareConcurrency&&(C=navigator.hardwareConcurrency)}catch{}const I={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:C,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=O&&CompressionStream,DecompressionStream:typeof DecompressionStream!=O&&DecompressionStream},M=["baseURI","wasmURI","workerURI","createWorker","chunkSize","maxWorkers","terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout","useCompressionStream","useWebWorkers","transferStreams","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],N={...I};function P(){return N}function W(t){return Math.max(t.chunkSize,64)}function _(t){t=L(t);for(const e of M){const r=t[e];r!==F&&(N[e]=r)}}function L(t){const{CompressionStreamZlib:e,DecompressionStreamZlib:r}=t;if(e===F&&r===F)return t;const a=Object.assign({},t);return a.CompressionStreamFallback===F&&(a.CompressionStreamFallback=e),a.DecompressionStreamFallback===F&&(a.DecompressionStreamFallback=r),a}function B(t){t=L(t);for(const e of M){const r=t[e];r!==F&&(I[e]=r)}_(t)}function q(){for(const t of M)delete N[t];Object.assign(N,I)}function V(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function Z(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function H(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const K=[[],[],[],[],[],[],[],[]];for(let t=0;256>t;t++){let e=t;for(let t=0;8>t;t++)e=1&e?e>>>1^3988292384:e>>>1;K[0][t]=e}for(let t=0;256>t;t++)for(let e=1;8>e;e++){const r=K[e-1][t];K[e][t]=r>>>8^K[0][255&r]}const[Y,G,X,J,Q,$,tt,et]=K;class rt{constructor(t){this.o=t||-1}append(t){let e=0|this.o;const r=0|t.length;let a=0;if(r>=8&&t.buffer){const n=new DataView(t.buffer,t.byteOffset,r),s=r-8;for(;s>=a;a+=8){const t=e^n.getInt32(a,!0),r=n.getInt32(a+4,!0);e=et[255&t]^tt[t>>>8&255]^$[t>>>16&255]^Q[t>>>24&255]^J[255&r]^X[r>>>8&255]^G[r>>>16&255]^Y[r>>>24&255]}}for(;r>a;a++)e=e>>>8^Y[255&(e^t[a])];this.o=e}get(){return~this.o}}class at extends TransformStream{constructor(){let t;const e=new rt;super({transform(t,r){e.append(t),r.enqueue(t)},flush(){const r=new Uint8Array(4);new DataView(r.buffer).setUint32(0,e.get()),t.value=r}}),t=this}}function nt(t){if(typeof TextEncoder==O){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let r=0;r<e.length;r++)e[r]=t.charCodeAt(r);return e}return(new TextEncoder).encode(t)}const st={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const r=t[t.length-1],a=st.l(r);return 32===a?t.concat(e):st.m(e,a,0|r,t.slice(0,t.length-1))},bitLength(t){const e=t.length;if(0===e)return 0;const r=t[e-1];return 32*(e-1)+st.l(r)},h(t,e){if(32*t.length<e)return t;const r=(t=t.slice(0,Math.ceil(e/32))).length;return e&=31,r>0&&e&&(t[r-1]=st.v(e,t[r-1]&2147483648>>e-1,1)),t},v:(t,e,r)=>32===t?e:(r?0|e:e<<32-t)+1099511627776*t,l:t=>Math.round(t/1099511627776)||32,m(t,e,r,a){for(void 0===a&&(a=[]);e>=32;e-=32)a.push(r),r=0;if(0===e)return a.concat(t);for(let n=0;n<t.length;n++)a.push(r|t[n]>>>e),r=t[n]<<32-e;const n=t.length?t[t.length-1]:0,s=st.l(n);return a.push(st.v(e+s&31,e+s>32?r:a.pop(),1)),a}},it={bytes:{S(t){const e=st.bitLength(t)/8,r=new Uint8Array(e);let a;for(let n=0;e>n;n++)3&n||(a=t[n/4]),r[n]=a>>>24,a<<=8;return r},A(t){const e=[];let r,a=0;for(r=0;r<t.length;r++)a=a<<8|t[r],3&~r||(e.push(a),a=0);return 3&r&&e.push(st.v(8*(3&r),a)),e}}},ot=class{constructor(t){const e=this;e.blockSize=512,e.R=[1732584193,4023233417,2562383102,271733878,3285377520],e.F=[1518500249,1859775393,2400959708,3395469782],t?(e.D=t.D.slice(0),e.O=t.O.slice(0),e.U=t.U):e.reset()}reset(){const t=this;return t.D=t.R.slice(0),t.O=[],t.U=0,t}update(t){const e=this;"string"==typeof t&&(t=it.T.A(t));const r=e.O=st.concat(e.O,t),a=e.U,n=e.U=a+st.bitLength(t);if(n>9007199254740991)throw Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(r);let i=0;for(let t=e.blockSize+a-(e.blockSize+a&e.blockSize-1);n>=t;t+=e.blockSize)e.j(s.subarray(16*i,16*(i+1))),i+=1;return r.splice(0,16*i),e}C(){const t=this;let e=t.O;const r=t.D;e=st.concat(e,[st.v(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(Math.floor(t.U/4294967296)),e.push(0|t.U);e.length;)t.j(e.splice(0,16));return t.reset(),r}I(t,e,r,a){return t>19?t>39?t>59?t>79?void 0:e^r^a:e&r|e&a|r&a:e^r^a:e&r|~e&a}M(t,e){return e<<t|e>>>32-t}j(t){const e=this,r=e.D,a=Array(80);for(let e=0;16>e;e++)a[e]=t[e];let n=r[0],s=r[1],i=r[2],o=r[3],c=r[4];for(let t=0;79>=t;t++){16>t||(a[t]=e.M(1,a[t-3]^a[t-8]^a[t-14]^a[t-16]));const r=e.M(5,n)+e.I(t,s,i,o)+c+a[t]+e.F[Math.floor(t/20)]|0;c=o,o=i,i=e.M(30,s),s=n,n=r}r[0]=r[0]+n|0,r[1]=r[1]+s|0,r[2]=r[2]+i|0,r[3]=r[3]+o|0,r[4]=r[4]+c|0}},ct={importKey:t=>new ct.N(it.bytes.A(t)),P(t,e,r,a){if(r=r||1e4,0>a||0>r)throw Error("invalid params to pbkdf2");const n=1+(a>>5)<<2;let s,i,o,c,l;const d=new ArrayBuffer(n),p=new DataView(d);let m=0;const f=st;for(e=it.bytes.A(e),l=1;(n||1)>m;l++){for(s=i=t.encrypt(f.concat(e,[l])),o=1;r>o;o++)for(i=t.encrypt(i),c=0;c<i.length;c++)s[c]^=i[c];for(o=0;(n||1)>m&&o<s.length;o++)p.setInt32(m,s[o]),m+=4}return d.slice(0,a/8)},N:class{constructor(t){const e=this,r=e.W=ot,a=[[],[]];e._=[new r,new r];const n=e._[0].blockSize/32;t.length>n&&(t=(new r).update(t).C());for(let e=0;n>e;e++)a[0][e]=909522486^t[e],a[1][e]=1549556828^t[e];e._[0].update(a[0]),e._[1].update(a[1]),e.L=new r(e._[0])}reset(){const t=this;t.L=new t.W(t._[0]),t.B=!1}update(t){this.B=!0,this.L.update(t)}digest(){const t=this,e=t.L.C(),r=new t.W(t._[1]).update(e).C();return t.reset(),r}encrypt(t){if(this.B)throw Error("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},lt=typeof crypto!=O&&typeof crypto.getRandomValues==U,dt="Invalid password",pt="Invalid signature",mt=pt,ft="zipjs-abort-check-password",ut="Crypto API not supported";function wt(t){if(lt)return crypto.getRandomValues(t);throw Error(ut)}const ht=16,yt={name:"PBKDF2"},bt=Object.assign({hash:{name:"HMAC"}},yt),gt=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},yt),xt=["deriveBits"],vt=[8,12,16],zt=[16,24,32],St=10,Et=[0,0,0,0],kt=typeof crypto!=O,At=kt&&crypto.subtle,Rt=kt&&typeof At!=O,Ft=it.bytes,Dt=class{constructor(t){const e=this;e.V=[[[],[],[],[],[]],[[],[],[],[],[]]],e.V[0][0][0]||e.Z();const r=e.V[0][4],a=e.V[1],n=t.length;let s,i,o,c=1;if(4!==n&&6!==n&&8!==n)throw Error("invalid aes key size");for(e.F=[i=t.slice(0),o=[]],s=n;4*n+28>s;s++){let t=i[s-1];(s%n===0||8===n&&s%n===4)&&(t=r[t>>>24]<<24^r[t>>16&255]<<16^r[t>>8&255]<<8^r[255&t],s%n===0&&(t=t<<8^t>>>24^c<<24,c=c<<1^283*(c>>7))),i[s]=i[s-n]^t}for(let t=0;s;t++,s--){const e=i[3&t?s:s-4];o[t]=4>=s||4>t?e:a[0][r[e>>>24]]^a[1][r[e>>16&255]]^a[2][r[e>>8&255]]^a[3][r[255&e]]}}encrypt(t){return this.H(t,0)}decrypt(t){return this.H(t,1)}Z(){const t=this.V[0],e=this.V[1],r=t[4],a=e[4],n=[],s=[];let i,o,c,l;for(let t=0;256>t;t++)s[(n[t]=t<<1^283*(t>>7))^t]=t;for(let d=i=0;!r[d];d^=o||1,i=s[i]||1){let s=i^i<<1^i<<2^i<<3^i<<4;s=s>>8^255&s^99,r[d]=s,a[s]=d,l=n[c=n[o=n[d]]];let p=16843009*l^65537*c^257*o^16843008*d,m=257*n[s]^16843008*s;for(let r=0;4>r;r++)t[r][d]=m=m<<24^m>>>8,e[r][s]=p=p<<24^p>>>8}for(let r=0;5>r;r++)t[r]=t[r].slice(0),e[r]=e[r].slice(0)}H(t,e){if(4!==t.length)throw Error("invalid aes block size");const r=this.F[e],a=r.length/4-2,n=[0,0,0,0],s=this.V[e],i=s[0],o=s[1],c=s[2],l=s[3],d=s[4];let p,m,f,u=t[0]^r[0],w=t[e?3:1]^r[1],h=t[2]^r[2],y=t[e?1:3]^r[3],b=4;for(let t=0;a>t;t++)p=i[u>>>24]^o[w>>16&255]^c[h>>8&255]^l[255&y]^r[b],m=i[w>>>24]^o[h>>16&255]^c[y>>8&255]^l[255&u]^r[b+1],f=i[h>>>24]^o[y>>16&255]^c[u>>8&255]^l[255&w]^r[b+2],y=i[y>>>24]^o[u>>16&255]^c[w>>8&255]^l[255&h]^r[b+3],b+=4,u=p,w=m,h=f;for(let t=0;4>t;t++)n[e?3&-t:t]=d[u>>>24]<<24^d[w>>16&255]<<16^d[h>>8&255]<<8^d[255&y]^r[b++],p=u,u=w,w=h,h=y,y=p;return n}},Ot=class{constructor(t,e){this.K=t,this.Y=e,this.G=e}reset(){this.G=this.Y}update(t){return this.X(this.K,t,this.G)}J(t){if(255&~(t>>24))t+=1<<24;else{let e=t>>16&255,r=t>>8&255,a=255&t;255===e?(e=0,255===r?(r=0,255===a?a=0:++a):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=a}return t}$(t){0===(t[0]=this.J(t[0]))&&(t[1]=this.J(t[1]))}X(t,e,r){let a;if(!(a=e.length))return[];const n=st.bitLength(e);for(let n=0;a>n;n+=4){this.$(r);const a=t.encrypt(r);e[n]^=a[0],e[n+1]^=a[1],e[n+2]^=a[2],e[n+3]^=a[3]}return st.h(e,n)}},Ut=ct.N;let Tt=kt&&Rt&&typeof At.importKey==U,jt=kt&&Rt&&typeof At.deriveBits==U;class Ct extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:a,checkAuthenticationCode:n=!0}){super({start(){Mt(this,t,e,r)},async transform(t,e){const r=this,{password:n,strength:s,et:i,ready:o}=r;n?(await(async(t,e,r,a)=>{const n=await Pt(t,e,r,_t(a,0,vt[e])),s=_t(a,vt[e]);if(n[0]!=s[0]||n[1]!=s[1])throw Error(dt)})(r,s,n,_t(t,0,vt[s]+2)),t=_t(t,vt[s]+2),a?e.error(Error(ft)):i()):await o;const c=new Uint8Array(t.length-St-(t.length-St)%ht);e.enqueue(Nt(r,t,c,0,St,!0))},async flush(t){const{nt:e,st:r,pending:a,ready:s}=this;if(r&&e){await s;const i=_t(a,0,a.length-St),o=_t(a,a.length-St);let c=j;if(i.length){const t=Bt(Ft,i);r.update(t);const a=e.update(t);c=Lt(Ft,a)}const l=_t(Lt(Ft,r.digest()),0,St);let d=a.length<St?1:0;for(let t=0;St>t;t++)d|=l[t]^o[t];if(d&&n)throw Error(mt);t.enqueue(c)}}})}}class It extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){super({start(){Mt(this,t,e,r)},async transform(t,e){const r=this,{password:a,strength:n,et:s,ready:i}=r;let o=j;a?(o=await(async(t,e,r)=>{const a=wt(new Uint8Array(vt[e]));return V(a,await Pt(t,e,r,a))})(r,n,a),s()):await i;const c=new Uint8Array(o.length+t.length-t.length%ht);c.set(o,0),e.enqueue(Nt(r,t,c,o.length,0))},async flush(t){const{nt:e,st:r,pending:a,ready:n}=this;if(r&&e){await n;let s=j;if(a.length){const t=e.update(Bt(Ft,a));r.update(t),s=Lt(Ft,t)}const i=Lt(Ft,r.digest()).slice(0,St);t.enqueue(V(s,i))}}})}}function Mt(t,e,r,a){Object.assign(t,{ready:new Promise(e=>t.et=e),password:Wt(e,r),strength:a-1,pending:j})}function Nt(t,e,r,a,n,s){const{nt:i,st:o,pending:c}=t;c.length&&(e=V(c,e));const l=e.length-n;let d;for(r=((t,e)=>{if(e&&e>t.length){const r=t;(t=new Uint8Array(e)).set(r,0)}return t})(r,a+(l-l%ht)),d=0;l-ht>=d;d+=ht){const t=Bt(Ft,_t(e,d,d+ht));s&&o.update(t);const n=i.update(t);s||o.update(n),r.set(Lt(Ft,n),d+a)}return t.pending=_t(e,d),r}async function Pt(t,e,r,a){t.password=null;const n=await(async(t,e,r,a,n)=>{if(!Tt)return ct.importKey(e);try{return await At.importKey("raw",e,r,!1,n)}catch{return Tt=!1,ct.importKey(e)}})(0,r,bt,0,xt),s=await(async(t,e,r)=>{if(!jt)return ct.P(e,t.salt,gt.iterations,r);try{return await At.deriveBits(t,e,r)}catch{return jt=!1,ct.P(e,t.salt,gt.iterations,r)}})(Object.assign({salt:a},gt),n,8*(2*zt[e]+2)),i=new Uint8Array(s),o=Bt(Ft,_t(i,0,zt[e])),c=Bt(Ft,_t(i,zt[e],2*zt[e])),l=_t(i,2*zt[e]);return Object.assign(t,{keys:{key:o,it:c,passwordVerification:l},nt:new Ot(new Dt(o),Array.from(Et)),st:new Ut(c)}),l}function Wt(t,e){return e===F?nt(t):e}function _t(t,e,r){return t.subarray(e,r)}function Lt(t,e){return t.S(e)}function Bt(t,e){return t.A(e)}class qt extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:a}){super({start(){Zt(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=Ht(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw Error(dt);t=t.subarray(12)}a?e.error(Error(ft)):e.enqueue(Ht(r,t))}})}}class Vt extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){Zt(this,t,e,r)},transform(t,e){const r=this;let a,n;if(r.password||r.rawPassword){r.password=r.rawPassword=null;const e=wt(new Uint8Array(12));e[11]=r.passwordVerification,a=new Uint8Array(t.length+e.length),a.set(Kt(r,e),0),n=12}else a=new Uint8Array(t.length),n=0;a.set(Kt(r,t),n),e.enqueue(a)}})}}function Zt(t,e,r,a){Object.assign(t,{password:e,rawPassword:r,passwordVerification:a}),((t,e,r)=>{const a=[305419896,591751049,878082192];if(Object.assign(t,{keys:a,ot:new rt(a[0]),ct:new rt(a[2])}),r)for(let e=0;e<r.length;e++)Yt(t,r[e]);else for(let r=0;r<e.length;r++)Yt(t,e.charCodeAt(r))})(t,e,r)}function Ht(t,e){const r=new Uint8Array(e.length);for(let a=0;a<e.length;a++)r[a]=Gt(t)^e[a],Yt(t,r[a]);return r}function Kt(t,e){const r=new Uint8Array(e.length);for(let a=0;a<e.length;a++)r[a]=Gt(t)^e[a],Yt(t,e[a]);return r}function Yt(t,e){let[,r]=t.keys;t.ot.append([e]);const a=~t.ot.get();r=Jt(Math.imul(Jt(r+Xt(a)),134775813)+1),t.ct.append([r>>>24]);const n=~t.ct.get();t.keys=[a,r,n]}function Gt(t){const e=2|t.keys[2];return Xt(Math.imul(e,1^e)>>>8)}function Xt(t){return 255&t}function Jt(t){return 4294967295&t}function Qt(t){if(t instanceof ReadableStream)return t;const e=t.getReader();return new ReadableStream({async pull(t){const{value:r,done:a}=await e.read();a?t.close():t.enqueue(r)},cancel:t=>e.cancel(t)})}function $t(t,e){t=Qt(t);const r=e?{type:e}:{};if(typeof Blob.prototype.stream!=U||new Blob([]).stream()instanceof ReadableStream)return new Response(t).blob().then(t=>e?new Blob([t],r):t);const a=[];return t.pipeTo(new WritableStream({write(t){a.push(t)}})).then(()=>new Blob(a,r))}function te(t){if(t instanceof WritableStream)return t;const e=t.getWriter();return new WritableStream({write:t=>e.write(t),close:()=>e.close(),abort:t=>e.abort(t)})}const ee="Invalid codec definition",re="Reserved compression method",ae="Invalid codec module",ne=[0,8,9,99],se=new Map,ie=new Map;function oe(t={}){const{compressionMethod:r,format:a,codecURI:n,CompressionStream:s,DecompressionStream:i,versionNeeded:o}=t;if(!Number.isInteger(r)||0>r||r>e||typeof a!=T||!a.length)throw Error(ee);if(ne.includes(r))throw Error(re);const c=typeof s==U||typeof i==U;if(!(c||typeof n==T&&n.length))throw Error(ee);se.set(r,{compressionMethod:r,format:a,codecURI:n,versionNeeded:o}),c&&pe(a,{CompressionStream:s,DecompressionStream:i})}function ce(t){const e=se.get(t);if(e){let r;se.delete(t),se.forEach(t=>r=r||t.format==e.format),r||ie.delete(e.format)}}function le(t){return se.get(t)}function de(t){return ie.get(t)}function pe(t,e){const{CompressionStream:r,DecompressionStream:a}=e;if(typeof r!=U&&typeof a!=U)throw Error(ae);ie.set(t,{CompressionStream:r,DecompressionStream:a})}const me="Invalid uncompressed size",fe="Invalid compressed data",ue=pt,we="deflate-raw",he="gzip",ye=[31,139,8];class be extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:a}){super({});const{compressed:n,encrypted:s,useCompressionStream:i,zipCrypto:o,computeCrc32:c,level:l,deflate64:d,format:p,compressionMethod:m}=t,f=this;let u,w,h,y=super.readable;const b=p&&de(p),g=c&&n&&!d&&!b&&(!s||o)&&!(!i||!a);if(s&&!o||!c||g||(u=new at,y=Re(y,u)),n)if(b)y=Fe(y,ke(b.CompressionStream,p,{level:l,chunkSize:e,compressionMethod:m}));else if(g)h=new ge,y=Fe(y,new a(he)),y=Re(y,h);else try{y=Ae(y,i,{level:l,chunkSize:e},a,r)}catch(t){let e;try{e=new a(he)}catch{throw t}y=Fe(y,e),y=Re(y,new ge)}s&&(o?y=Re(y,new Vt(t)):(w=new It(t),y=Re(y,w))),Ee(f,y,()=>{s&&!o||!c||(f.crc32=g?h.crc32:new DataView(u.value.buffer).getUint32(0))})}}class ge extends TransformStream{constructor(){let t,e=10,r=new Uint8Array(0);super({transform(t,a){if(e){const r=Math.min(e,t.length);if(e-=r,!(t=t.subarray(r)).length)return}const n=r.length+t.length;if(8>=n)return void(r=V(r,t));const s=n-8,i=Math.min(s,r.length);a.enqueue(V(r.subarray(0,i),t.subarray(0,s-i))),r=V(r.subarray(i),t.subarray(s-i))},flush(){const e=H(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class xe extends TransformStream{constructor(t,{chunkSize:e,DecompressionStreamFallback:r,DecompressionStream:a}){super({});const{zipCrypto:n,encrypted:s,checkCrc32:i,crc32:o,compressed:c,useCompressionStream:l,deflate64:d,format:p,compressionMethod:m,rawBitFlag:f,outputSize:u}=t;let w,h,y=super.readable;if(s&&(n?y=Re(y,new qt(t)):(h=new Ct(t),y=Re(y,h))),c){const t=p&&de(p);if(t)y=Fe(y,ke(t.DecompressionStream,p,{chunkSize:e,compressionMethod:m,rawBitFlag:f,uncompressedSize:u}));else try{y=Ae(y,l,{chunkSize:e,deflate64:d},a,r)}catch(t){if(d||u===F)throw t;let e;try{e=new a(he)}catch{throw t}y=((t,e,r)=>{const a=new rt;let n,s,i,o=0,c=!1;const l=new Promise((t,e)=>{s=t,i=e});l.catch(()=>{}),r||s();const d=new TransformStream({start(t){const e=new Uint8Array(10);e.set(ye),t.enqueue(e)},transform(t,e){e.enqueue(t)},async flush(t){c=!0,m();try{await l}finally{f()}const e=new Uint8Array(8),n=H(e);n.setUint32(0,a.get(),!0),n.setUint32(4,r,!0),t.enqueue(e)},cancel(t){i(t)}}),p=new TransformStream({transform(t,e){a.append(t),o+=t.length,r>o?c&&m():s(),e.enqueue(t)},cancel(t){i(t)}});return t=Re(t,d),Re(t=Fe(t,e),p);function m(){f(),n=setTimeout(()=>i(Error(me)),5e3)}function f(){clearTimeout(n)}})(y,e,u)}y=(t=>{const e=t.getReader();return new ReadableStream({async pull(t){let r;try{r=await e.read()}catch(t){if(t&&t.message)throw t;const e=Error(fe);throw e.cause=t,e}const{value:a,done:n}=r;n?t.close():t.enqueue(a)},cancel:t=>e.cancel(t)})})(y)}i&&(w=new at,y=Re(y,w)),Ee(this,y,()=>{if(i){const t=new DataView(w.value.buffer);if(o!=t.getUint32(0,!1))throw Error(ue)}})}}const ve=new Map;function ze(t,e){if(!t)return!1;let r=ve.get(t);r||(r=new Map,ve.set(t,r));let a=r.get(e);if(a===F){try{new t(e),a=!0}catch{a=!1}r.set(e,a)}return a}function Se(t){return ze(t,we)}function Ee(t,e,r){e=Re(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function ke(t,e,r){if(!t)throw Error("Compression method not supported");return new t(e,r)}function Ae(t,e,r,a,n){const s=e&&a?a:n||a,i=r.deflate64?"deflate64-raw":we;let o;try{o=new s(i,r)}catch(t){if(!e||!n||s==n)throw t;o=new n(i,r)}return Fe(t,o)}function Re(t,e){return Qt(t).pipeThrough(e)}function Fe(t,e){const r=e.writable.getWriter(),a=t.getReader();return(async()=>{try{for(;;){await r.ready;const t=await a.read();if(t.done){await r.close();break}await r.write(t.value)}}catch(t){await(async(t,e)=>{try{await t.abort(e)}catch{}})(r,t),await(async(t,e)=>{try{await t.cancel(e)}catch{}})(a,t)}})(),e.readable}const De="data",Oe="deflate",Ue="inflate";class Te extends TransformStream{constructor(t,e){super({});const r=this,{codecType:a}=t;let n;a.startsWith(Oe)?n=be:a.startsWith(Ue)&&(n=xe),r.outputSize=0;let s=0;const i=new n(t,e),o=super.readable,c=new TransformStream({transform(t,e){t&&t.length&&(s+=t.length,e.enqueue(t))},flush(){Object.assign(r,{inputSize:s})}}),l=new TransformStream({transform(e,a){if(e&&e.length&&(a.enqueue(e),r.outputSize+=e.length,t.outputSize!==F&&r.outputSize>t.outputSize))throw Error(me)},flush(){const{crc32:t}=i;Object.assign(r,{crc32:t,inputSize:s})}});Object.defineProperty(r,"readable",{get:()=>o.pipeThrough(c).pipeThrough(i).pipeThrough(l)})}}class je extends TransformStream{constructor(t){const e=[];let r=0;function a(){const a=new Uint8Array(t);let n=0;for(;t>n;){const r=e[0],s=t-n;r.length>s?(a.set(r.subarray(0,s),n),e[0]=r.subarray(s),n+=s):(a.set(r,n),n+=r.length,e.shift())}return r-=t,a}Number.isFinite(t)&&t>=1||(t=65536),super({transform(n,s){for(e.push(n),r+=n.length;r>t;)s.enqueue(a())},flush(t){r&&t.enqueue(((t,e)=>{const r=new Uint8Array(e);let a=0;for(const e of t)r.set(e,a),a+=e.length;return r})(e,r))}})}}const Ce="Worker startup timeout";let Ie,Me,Ne,Pe=()=>{};async function We(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;if(r&&!r.lt)return!0;if(Se(e)||ze(e,he))return!0;if(r)try{return await Pe(t),!0}catch{return!1}return!1}function _e(t){t.createWorker?Me=!0:Ie=!1}class Le{constructor(t,{readable:e,writable:r},{options:a,config:n,ft:s,useWebWorkers:i,transferStreams:o,workerURI:c,createWorker:l},d){const{signal:p}=s;return Me&&(l=F),Object.assign(t,{ut:!0,wt:(t.wt||0)+1,readable:e.pipeThrough(new je(W(n))).pipeThrough(new Be(s),{signal:p}),writable:r,options:Object.assign({},a),workerURI:c,createWorker:l,transferStreams:o,terminate:()=>new Promise(e=>{const{ht:r,ut:a}=t;r?(a?t.yt=e:(r.terminate(),e()),t.bt=null):e()}),gt(){if(t.ut){const{yt:e}=t;e&&(t.yt=null,t.xt=!0,t.ht.terminate(),e()),t.ut=!1,d(t)}}}),Ie===F&&(Ie=typeof Worker!=O),(i&&Ne&&(Ie&&c||l)?Ne:Ve)(t,n)}}class Be extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:a}){let n=0;super({async start(){t&&await qe(t,r)},async transform(t,a){n+=t.length,e&&await qe(e,n,r),a.enqueue(t)},async flush(){a&&await qe(a,n)}})}}async function qe(t,...e){try{await t(...e)}catch{}}function Ve(t,e){return{run:()=>Ze(t,e)}}async function Ze({options:t,readable:e,writable:r,gt:a},n){let s;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(Oe),r=e?n.CompressionStreamFallback:n.DecompressionStreamFallback,a=e?n.CompressionStream:n.DecompressionStream;if(t.useCompressionStream){if(r&&r.lt&&!Se(a))try{await Pe(n)}catch{}}else try{await Pe(n)}catch{r&&!r.lt||(t.useCompressionStream=!0)}}s=new Te(t,n),await e.pipeThrough(s).pipeThrough(new je(W(n))).pipeTo(r,{preventClose:!0,preventAbort:!0});const{crc32:a,inputSize:i,outputSize:o}=s;return{crc32:a,inputSize:i,outputSize:o}}catch(t){throw s&&(t.outputSize=s.outputSize),t}finally{a()}}const He={type:"module"},Ke="error";let Ye,Ge,Xe,Je=!0;try{Je=typeof structuredClone==U&&structuredClone(new DOMException("","AbortError")).code!==F}catch{}var Qe;function $e(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function tr(t){const{ht:e}=t;if(e)try{e.terminate()}catch{}t.bt=null}function er(t,e,r,a,n=!0){const{createWorker:s}=r;let i,o,c;if(s)i=s();else if(Ge===F||Ye!==t){const s=typeof t==U;o=s?t(n):t;const l=o.startsWith("data:"),d=o.startsWith("blob:");if(l||d){a===F&&(a=!1),a&&(c=He);try{i=new Worker(o,c)}catch(n){if(d)try{URL.revokeObjectURL(o)}catch{}if(s&&d)return er(t,e,r,a,!1);if(a)throw n;return er(t,e,r,!0,!1)}}else{a===F&&(a=!0),a&&(c=He);try{o=new URL(o,e)}catch{}try{i=new Worker(o,c)}catch(s){if(a)return er(t,e,r,!1,n);throw s}}Ye=t,Ge=o,Xe=c}else i=new Worker(Ge,Xe);return i.addEventListener("message",t=>{r.vt=!0,rr(r),(async({data:t},e)=>{const{type:r,value:a,messageId:n,result:s,error:i}=t,{reader:o,writer:c,zt:l,St:d,gt:p,wt:m}=e,f=()=>e.wt!=m;try{if(i){const{message:t,stack:e,code:r,name:a,outputSize:n,cause:s,codecImportFailed:o}=i,c=Error(t);Object.assign(c,{stack:e,code:r,name:a,outputSize:n}),s&&(c.cause=Object.assign(Error(s.message),{name:s.name})),o&&(c.codecImportFailed=!0),u(c)}else{if("pull"==r){const{value:t,done:r}=await o.read();f()||nr({type:De,value:t,done:r,messageId:n},e)}r==De&&(await c.ready,await c.write(new Uint8Array(a)),f()||nr({type:"ack",messageId:n},e)),"close"==r&&u(null,s)}}catch(i){f()||(tr(e),u(i))}function u(t,e){f()||(t?d(t):l(e),c&&c.releaseLock(),t&&t.codecImportFailed||p())}})(t,r)}),i.addEventListener(Ke,t=>ar(t,r)),i.addEventListener("messageerror",t=>ar(t,r)),i}function rr(t){const{Et:e}=t;e&&(clearTimeout(e),t.Et=null)}function ar(t,e){t.preventDefault&&t.preventDefault(),rr(e);const{vt:r,St:a,writer:n,gt:s}=e;tr(e),r||(e.ht=null);let i=t.error||Error(t.message||Ke);r||(i=Object.assign(Error(i.message||Ke),{kt:!0}),e.At=i),a&&(a(i),n&&n.releaseLock(),r&&s())}function nr(t,{ht:e,writer:r,transferStreams:a,vt:n}){try{const{value:r,readable:s,writable:i}=t,o=[];if(r&&(t.value=Z(r),o.push(t.value.buffer)),a&&Je&&n?(s&&o.push(s),i&&o.push(i)):t.readable=t.writable=null,o.length)try{return e.postMessage(t,o),!0}catch{Je=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}Qe=(t,e)=>{const{baseURI:r,chunkSize:a,workerStartupTimeout:n}=e;let{wasmURI:s}=e;if(!t.bt){let i;typeof s==U&&(s=s());try{i=er(t.workerURI,r,t)}catch{return _e(t),Ve(t,e)}Object.assign(t,{ht:i,vt:!1,xt:!1,At:null,bt:{run:async()=>{try{return await(async(t,e)=>{if(!t.ht){const{At:e}=t;t.At=null;const r=e||Error(Ce);throw r.kt=!0,r}let r,a;const n=new Promise((t,e)=>{r=t,a=e});Object.assign(t,{reader:null,writer:null,zt:r,St:a,result:n});const{readable:s,options:i}=t,{writable:o,closed:c,Rt:l}=(t=>{const e=new AbortController,{writable:r,readable:a}=new TransformStream,n=a.pipeTo(t,{preventClose:!0,preventAbort:!0,signal:e.signal});return n.catch(()=>{}),{writable:r,closed:n,Rt:()=>e.abort()}})(t.writable);let d;try{d=nr({type:"start",options:i,config:e,readable:s,writable:o},t)}catch(e){l();try{await c}catch{}throw t.gt(),e}d||Object.assign(t,{reader:s.getReader(),writer:o.getWriter()});const{workerStartupTimeout:p}=e;t.vt||!Number.isFinite(p)||0>p||(t.Et=setTimeout(()=>(t=>{if(t.Et=null,t.vt)return;const{St:e,writer:r}=t;if(tr(t),t.ht=null,e){const t=Error(Ce);t.kt=!0,e(t),r&&r.releaseLock()}})(t),p));try{const t=await n;return await m(),await c,t}catch(t){await m(),l();try{await c}catch{}throw t}async function m(){if(!d&&!o.locked)try{await o.getWriter().close()}catch{}}})(t,{chunkSize:a,wasmURI:s,baseURI:r,workerStartupTimeout:n})}catch(r){if(r&&r.kt)return _e(t),$e(t),Ze(t,e);if(r&&r.codecImportFailed){if(t.reader)return $e(t),Ze(t,e);t.gt()}throw r}}}})}return t.bt},Ne=Qe;let sr=[];const ir=[];let or,cr,lr=0;async function dr(t,e){const{options:r,config:a}=e,{transferStreams:n,useWebWorkers:s,useCompressionStream:i,compressed:o,checkCrc32:c,computeCrc32:l,encrypted:d,format:p,codecURI:m}=r,{workerURI:f,createWorker:u,maxWorkers:w}=a;p&&(m&&(r.codecURI=((t,e)=>{try{return new URL(t,e).toString()}catch{return t}})(m,a.baseURI)),await(async(t,e)=>{!ie.has(t)&&e&&pe(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */e)))})(p,r.codecURI)),e.transferStreams=!p&&(n||n===F&&a.transferStreams);const h=!(o||c||l||d),y=p===F||!!r.codecURI;return e.useWebWorkers=!h&&y&&(s||s===F&&a.useWebWorkers),e.workerURI=e.useWebWorkers&&f?f:F,e.createWorker=e.useWebWorkers&&u?u:F,r.useCompressionStream=i||i===F&&a.useCompressionStream,(await(async()=>{const r=sr.find(t=>!t.ut);if(r)return wr(r),new Le(r,t,e,b);if(sr.length<w){const r={Ft:lr};return lr++,sr.push(r),new Le(r,t,e,b)}return new Promise(r=>{ir.push({resolve:r,stream:t,Dt:e}),cr=a.workerStarvationTimeout,pr()})})()).run();function b(t){if(mr(),ir.length){const[{resolve:e,stream:r,Dt:a}]=ir.splice(0,1);e(new Le(t,r,a,b)),pr()}else t.ht?(wr(t),((t,e)=>{const{config:r}=e,{terminateWorkerTimeout:a}=r;Number.isFinite(a)&&a>=0&&(t.xt?t.xt=!1:t.Ot=setTimeout(async()=>{sr=sr.filter(e=>e!=t);try{await t.terminate()}catch{}},a))})(t,e)):sr=sr.filter(e=>e!=t)}}function pr(){!or&&ir.length&&Number.isFinite(cr)&&cr>=0&&(or=setTimeout(fr,cr))}function mr(){or&&(clearTimeout(or),or=null)}function fr(){if(or=null,ir.length){const[{resolve:t,stream:e,Dt:r}]=ir.splice(0,1),a=Object.assign({},r,{useWebWorkers:!1,workerURI:F,createWorker:F});t(new Le({},e,a,ur)),pr()}}function ur(){mr(),pr()}function wr(t){const{Ot:e}=t;e&&(clearTimeout(e),t.Ot=null)}const hr="HTTP error ",yr="HTTP Range not supported",br="HTTP resource changed",gr="Writer iterator completed too soon",xr="Writer not initialized",vr="Content-Range",zr="Range",Sr="GET",Er="bytes",kr=16777216,Ar="writable",Rr=Symbol();class Fr{constructor(){this.size=0}init(){this.initialized=!0}}class Dr extends Fr{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=W(P())}={}){const a=this;let n=0;return new ReadableStream({async pull(s){const i=e===F?r:Math.min(r,e-n),o=await ua(a,t+n,i);o.length&&s.enqueue(o),n+r>=e||e===F&&!o.length&&i?s.close():n+=r}})}}class Or extends Fr{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw Error(xr);return t.writeUint8Array(Z(e))}});Object.defineProperty(t,Ar,{get:()=>e})}writeUint8Array(){}}class Ur extends Dr{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{dataURI:t,Ut:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{Ut:r,dataURI:a}=this,n=new Uint8Array(e),s=4*Math.floor(t/3),i=atob(a.substring(s+r,4*Math.ceil((t+e)/3)+r)),o=t-3*Math.floor(s/4);let c=0;for(let t=o;o+e>t&&t<i.length;t++)n[t-o]=i.charCodeAt(t),c++;return c<n.length?n.subarray(0,c):n}}class Tr extends Or{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",pending:[]})}writeUint8Array(t){const e=this;let r,a=e.pending;const n=e.pending.length;for(e.pending="",r=0;r<3*Math.floor((n+t.length)/3)-n;r++)a+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.pending+=String.fromCharCode(t[r]);a.length>2?e.data+=btoa(a):e.pending=a+e.pending}getData(){return this.data+btoa(this.pending)}}let jr,Cr;class Ir extends Dr{constructor(t){super(),Object.assign(this,{blob:t,size:t.size}),Cr||(Cr=(async()=>{try{const t=new Blob([new Uint8Array(3)]).slice(1,2).stream().getReader();let e=0,r=await t.read();for(;!r.done;)e+=r.value.length,r=await t.read();jr=1==e}catch{jr=!1}})())}createReadable(t){const{blob:e,size:r}=this,{offset:a=0,size:n=r-a}=t||{};return a||r>n?jr?Qt(e.slice(a,a+n).stream()):super.createReadable(t):Qt(e.stream())}async readUint8Array(t,e){const r=this,a=t+e,n=t||a<r.size?r.blob.slice(t,a):r.blob;let s=await n.arrayBuffer();return s.byteLength>e&&(s=s.slice(t,a)),new Uint8Array(s)}}class Mr extends Fr{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,Ar,{get:()=>r.writable}),e.contentType=t,e.blob=$t(r.readable,t),e.blob.catch(()=>{})}getData(){return this.blob}}class Nr extends Ir{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function Pr(t){let e=0;for(let r=0;r<t.length;r++){const a=t.charCodeAt(r);128>a?e+=1:2048>a?e+=2:55296>a||a>=57344?e+=3:56320>a&&56320==(64512&t.charCodeAt(r+1))?(e+=4,r++):e+=3}return e}class Wr extends Mr{constructor(t){super(t),Object.assign(this,{encoding:t,Tt:!t||"utf-8"==t.toLowerCase()})}async getData(){const{encoding:t,Tt:e}=this,r=await super.getData();if(r.text&&e)return r.text();{const e=new FileReader;return new Promise((a,n)=>{Object.assign(e,{onload:({target:t})=>a(t.result),onerror:()=>n(e.error)}),e.readAsText(r,t)})}}}class _r extends Dr{constructor(t,e){super(),Br(this,t,e)}async init(){await qr(this,ea,Jr),super.init()}createReadable(t){const e=this,{useRangeHeader:r,forceRangeRequests:a,size:n}=e;if((r||a)&&n!==F){const{offset:r=0,size:a=n-r}=t||{};if(a>0&&n>r)return((t,e,r)=>{let a,n=e,s=0,i=r;return new ReadableStream({start:()=>o(),async pull(t){a||await o();const{value:e,done:r}=await a.read();if(r)throw Error(yr);const n=e.length>s?e.subarray(0,s):e;s-=n.length,i-=n.length,n.length&&t.enqueue(n),s||(await(async()=>{const t=a;a=F,await t.cancel()})(),i||t.close())},cancel:t=>a&&a.cancel(t)});async function o(){const e=Math.min(t.maximumRangeSize,i),r=await ea(Sr,t,Gr(t,n,e));if(206!=r.status)throw Error(yr);const o=r.headers.get(vr);if(o){const t=Number(o.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=n)throw Error(yr)}Yr(t,r),Kr(t,r),n+=e,s=e,a=r.body.getReader()}})(e,r,Math.min(a,n-r))}return super.createReadable(t)}readUint8Array(t,e){return Vr(this,t,e,ea,Jr)}}class Lr extends Dr{constructor(t,e){super(),Br(this,t,e)}async init(){await qr(this,ra,Qr),super.init()}readUint8Array(t,e){return Vr(this,t,e,ra,Qr)}}function Br(t,e,r){const{preventHeadRequest:a,useRangeHeader:n,forceRangeRequests:s,combineSizeEocd:i,checkResourceChanges:o=!0,maximumRangeSize:c=kr,fetch:l}=r;delete(r=Object.assign({},r)).preventHeadRequest,delete r.useRangeHeader,delete r.forceRangeRequests,delete r.combineSizeEocd,delete r.checkResourceChanges,delete r.maximumRangeSize,delete r.useXHR,delete r.fetch,Object.assign(t,{url:e,options:r,preventHeadRequest:a,useRangeHeader:n,forceRangeRequests:s,combineSizeEocd:i,checkResourceChanges:o,maximumRangeSize:c,fetch:l})}async function qr(t,e,r){const{url:a,preventHeadRequest:n,useRangeHeader:s,forceRangeRequests:i,combineSizeEocd:o}=t;if((t=>{const{baseURI:e}=P(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r})(a)&&(s||i)&&(typeof n==O||n)){const a=await e(Sr,t,Gr(t,o?-22:void 0)),n=a.headers.get("Accept-Ranges");if(!(i||n&&n.toLowerCase()==Er))throw Error(yr);{if(o){const e=new Uint8Array(await a.arrayBuffer());206==a.status&&e.length==p&&(t.jt=e)}Kr(t,a);const n=Zr(a);n===F?await ta(t,e,r):t.size=n}}else await ta(t,e,r)}async function Vr(t,e,r,a,n){const{useRangeHeader:s,forceRangeRequests:i,jt:o,size:c,options:l}=t;if(s||i){if(o&&e==c-p&&r==p)return o;if(c>e&&0!==r){e+r>c&&(r=c-e);const n=await a(Sr,t,Gr(t,e,r));if(206!=n.status)throw Error(yr);const s=n.headers.get(vr);if(s){const t=Number(s.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=e)throw Error(yr)}Yr(t,n),Kr(t,n);const i=new Uint8Array(await n.arrayBuffer());if(i.length!=r)throw Error(yr);return i}return j}{const{data:a}=t;return a||await n(t,l),t.data.subarray(e,e+r)}}function Zr(t){const e=t.headers.get(vr);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function Hr({headers:t}){return{Ct:t.get("Etag")||F,lastModified:t.get("Last-Modified")||F}}function Kr(t,e){const{checkResourceChanges:r,It:a}=t;r&&!a&&206==e.status&&(t.It=Hr(e))}function Yr(t,e){const{checkResourceChanges:r,It:a,size:n}=t;if(r){const t=Zr(e);if(t!==F&&n!==F&&t!=n)throw Error(br);if(a){const t=Hr(e);if(Object.entries(a).some(([e,r])=>r!==F&&t[e]!==F&&r!=t[e]))throw Error(br)}}}function Gr(t,e=0,r=1){return Object.assign({},Xr(t),{[zr]:Er+"="+(0>e?e:e+"-"+(e+r-1))})}function Xr({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Jr(t){await $r(t,ea)}async function Qr(t){await $r(t,ra)}async function $r(t,e){const r=await e(Sr,t,Xr(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function ta(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const a=await e("HEAD",t,Xr(t)),n=a.headers.get("Content-Length");n&&!a.headers.get("Content-Encoding")?t.size=Number(n):await r(t,t.options)}}async function ea(t,{fetch:e=fetch,options:r,url:a},n){const s=await e(a,Object.assign({},r,{method:t,headers:n}));if(400>s.status)return s;throw 416==s.status?Error(yr):Error(hr+(s.statusText||s.status))}function ra(t,{url:e},r){return new Promise((a,n)=>{const s=new XMLHttpRequest;if(s.addEventListener("load",()=>{if(400>s.status){const t=[];s.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(e=>{const r=e.trim().split(/\s*:\s*/);r[0]=r[0].trim().replace(/^[a-z]|-[a-z]/g,t=>t.toUpperCase()),t.push(r)}),a({status:s.status,arrayBuffer:()=>s.response,headers:new Map(t)})}else n(416==s.status?Error(yr):Error(hr+(s.statusText||s.status)))},!1),s.addEventListener("error",t=>n(t.detail?t.detail.error:Error("Network error")),!1),s.open(t,e),r)for(const t of Object.entries(r))s.setRequestHeader(t[0],t[1]);s.responseType="arraybuffer",s.send()})}class aa extends Dr{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new Lr(t,e):new _r(t,e)})}set size(t){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}createReadable(t){return this.reader.createReadable(t)}readUint8Array(t,e){return this.reader.readUint8Array(t,e)}}class na extends aa{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class sa extends Dr{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{array:t,size:t.length})}readUint8Array(t,e){return this.array.slice(t,t+e)}}class ia extends Or{constructor(t){super(),this.defaultBufferSize=t||262144}init(t=0){Object.assign(this,{offset:0,array:new Uint8Array(t>0?t:this.defaultBufferSize)}),super.init()}writeUint8Array(t){const e=this,r=e.offset+t.length;if(r>e.array.length){let t=e.array.length?2*e.array.length:e.defaultBufferSize;for(;r>t;)t*=2;const a=e.array;e.array=new Uint8Array(t),e.array.set(a)}e.array.set(t,e.offset),e.offset+=t.length}getData(){return this.offset===this.array.length?this.array:this.array.slice(0,this.offset)}}class oa extends Dr{constructor(t){super(),this.Mt=t}async init(){const t=this;t.Nt=0;const e=t.Mt=await Promise.all(t.Mt.map(fa));t.Pt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}Wt(t){const{Pt:e,size:r}=this,a=e[t];return a===F?r:a}async readUint8Array(t,e){const r=this,{Mt:a}=this;let n,s=0,i=t;for(;a[s]&&i>=a[s].size;)i-=a[s].size,s++;const o=a[s];if(o){const a=o.size;if(i+e>a){const s=a-i;n=V(await ua(o,i,s),await r.readUint8Array(t+s,e-s))}else n=await ua(o,i,e)}else n=j;return r.Nt=Math.max(s,r.Nt),n}}class ca extends Fr{constructor(t,e=4294967295){super();const r=this;let a,n,s;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:e,availableSize:e});const i=new WritableStream({async write(e){if(e===Rr)return void(s&&await c());const{availableSize:i}=r;if(s)e.length<i?await o(e):(await o(e.subarray(0,i)),await c(),e.length>i&&await this.write(e.subarray(i)));else{const{value:i,done:o}=await t.next();if(o&&!i)throw Error(gr);a=i,a.size=0,a.maxSize&&(r.maxSize=a.maxSize),r.availableSize=r.maxSize,await ma(a),n=i.writable,s=n.getWriter(),await this.write(e)}},async close(){s&&(await s.ready,await l())},async abort(t){s&&await s.abort(t)}});async function o(t){const e=t.length;e&&(await s.ready,await s.write(t),a.size+=e,r.availableSize-=e)}async function c(){await l(),r.diskOffset+=a.size,r.diskNumber++,s=null,r.availableSize=r.maxSize}async function l(){await s.close()}Object.defineProperty(r,Ar,{get:()=>i})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(Rr)}finally{t.releaseLock()}}}class la{constructor(t){return Array.isArray(t)&&(t=new oa(t)),(t instanceof ReadableStream||typeof t.getReader==U)&&(t={readable:Qt(t)}),t}}class da{constructor(t){return t.writable===F&&typeof t.next==U&&(t=new ca(t)),(t instanceof WritableStream||typeof t.getWriter==U)&&(t={writable:te(t)}),t.size===F&&(t.size=0),t}}function pa(t){return!(!t||!t.getData)}async function ma(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function fa(t){return t=new la(t),await ma(t),t.size!==F&&t.readUint8Array||(t=new Ir(await $t(t.readable)),await ma(t)),t}function ua(t,e,r){return t.readUint8Array(e,r)}const wa="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");function ha(t,e){return e&&"cp437"==e.trim().toLowerCase()?(t=>{{let e="";for(let r=0;r<t.length;r++)e+=wa[t[r]];return e}})(t):new TextDecoder(e,{ignoreBOM:!0}).decode(t)}const ya="filename",ba="rawFilename",ga="comment",xa="rawComment",va="uncompressedSize",za="compressedSize",Sa="offset",Ea="diskNumberStart",ka="lastModDate",Aa="rawLastModDate",Ra="lastAccessDate",Fa="rawLastAccessDate",Da="creationDate",Oa="rawCreationDate",Ua="internalFileAttributes",Ta="externalFileAttributes",ja="internalFileAttribute",Ca="externalFileAttribute",Ia="msdosAttributesRaw",Ma="msdosAttributes",Na="msDosCompatible",Pa="zip64",Wa="encrypted",_a="version",La="versionMadeBy",Ba="zipCrypto",qa="directory",Va="executable",Za="compressionMethod",Ha="signature",Ka="extraField",Ya="unixMode",Ga="setuid",Xa="setgid",Ja="sticky",Qa=[ya,ba,va,za,ka,Aa,ga,xa,Ra,Fa,Da,Oa,Sa,Ea,Ua,Ta,ja,Ca,Ia,Ma,Na,Pa,Wa,_a,La,Ba,qa,Va,"symlink",Za,Ha,"crc32",Ka,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",Ya,"unixExternalUpper",Ga,Xa,Ja,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class $a{constructor(t){Qa.forEach(e=>this[e]=t[e])}}const tn="password",en="rawPassword",rn="passThrough",an="signal",nn="useWebWorkers",sn="useCompressionStream",on="transferStreams",cn="preventClose",ln="offset",dn="usdz",pn="signCentralDirectory",mn="filename",fn="comment",un="strict",wn="balanced",hn="tolerant",yn="File format is not recognized",bn="End of central directory not found",gn="End of Zip64 central directory locator not found",xn="Central directory header not found",vn="Local file header not found",zn="Zip64 extra field not found",Sn="File contains encrypted entry",En="Encryption method not supported",kn="Compression method not supported",An="Split zip file",Rn="Overlapping entry found",Fn="Ambiguous archive",Dn="Encrypted central directory is not supported",On="Unsafe filename",Un="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",Tn="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",jn="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",Cn=/^[a-zA-Z]:/,In="utf-8",Mn="cp437",Nn=[[va,t],[za,t],[Sa,t],[Ea,e]],Pn={[e]:{_t:ps,bytes:4},[t]:{_t:ms,bytes:8}};class Wn{constructor(t,e={}){Object.assign(this,{reader:new la(t),options:e,config:P(),Lt:new Map})}async*getEntriesGenerator(a={}){const s=this;let{reader:c}=s;const{config:u}=s;if(await ma(c),c.size!==F&&c.readUint8Array||(c=new Ir(await $t(c.readable)),await ma(c)),c.size<p)throw Error(yn);const w=Qn(a,s.options),h=w==un,y=w!=hn,b=((t,r)=>{if(t!==F){const e=typeof(a=t)==T&&a.trim()?Number(a):a;if("number"!=typeof e||Number.isNaN(e)||0>e)throw Error(jn);return e}var a;return r==un?0:r==hn?1/0:e})(is(s,a,"maxAppendedDataSize"),w),g=((t,e)=>{if(t===F)return e;if(!Jn(t))throw Error(Tn);return t})(is(s,a,"filenameValidation"),w),k=is(s,a,"normalizeFilename"),{Bt:A,qt:R}=await(async(t,e,r)=>{const{size:a}=t,n=Math.min(a,65557),s={count:64};let i,o,c=0;for await(const[r,l,d,m,f]of es(t,n)){const n=ds(r,m+20);if(f+p+n==a){const n=await as(t,r,l,m,f,a,s);if(2==n){if(i||(i=rs(d,m,f)),c++,!e||c>1)break}else 1!=n||o||(o=rs(d,m,f))}}return i||(i=o),i||(i=await(async(t,e,r)=>{const{size:a}=t,n=Math.min(a,e==1/0?a:65557+e);let s,i;for await(const[e,o,c,l,d]of es(t,n)){const n=rs(c,l,d);s||(s=n);const p=await as(t,e,o,l,d,a,r);if(2==p)return n;1!=p||i||(i=n)}return i||s})(t,r,s)),{Bt:i,qt:c}})(c,y,b);if(!A)throw ps(H(await ua(c,0,4)))==n?Error(An):Error(bn);y&&R>1&&ss("multiple end of central directory records");const D=H(A);let O=ps(D,12),U=ps(D,16);const C=A.offset,I=ds(D,20),M=C+p+I;c.size-M>b&&ss("appended data");let N=ds(D,4);const P=c.Nt||0;let W,_,L,B,q=ds(D,6),V=ds(D,10),Z=0;const K=U==t||O==t||V==e||q==e;if(U!=t&&q!=e&&(U+=Xn(c,q)),K){const r=A.offset<m?j:await ua(c,A.offset-m,m),a=H(r);if(r.length==m&&ps(a,0)==d){U=Xn(c,ps(a,4))+ms(a,8);let r=await ua(c,U,f),n=H(r);const s=A.offset-m-f;if((r.length<f||ps(n,0)!=l)&&U!=s&&s>=0){const t=U;U=s,U>t&&(Z=U-t),r=await ua(c,U,f),n=H(r)}if(r.length<f||ps(n,0)!=l)throw Error(gn);if(_=!0,L=ms(n,4)>44,L){const t=Math.min(Number(ms(n,4))-44,c.size-U-f);t>0&&(B=(t=>{const e={rawExtensibleData:t};if(t.length>=28){const r=H(t),a=ds(r,26);Object.assign(e,{compressionMethod:ds(r,0),compressedSize:Number(ms(r,2)),uncompressedSize:Number(ms(r,10)),encryptionAlgorithm:ds(r,18),bitLength:ds(r,20),flags:ds(r,22),hashAlgorithm:ds(r,24),hashData:t.subarray(28,28+a)})}return e})(await ua(c,U+f,t)))}N==e?N=ps(n,16):h&&N!=ps(n,16)&&ss("mismatched zip64 end of central directory record"),q==e?q=ps(n,20):h&&q!=ps(n,20)&&ss("mismatched zip64 end of central directory record"),V==e?V=ms(n,32):h&&V!=ms(n,32)&&ss("mismatched zip64 end of central directory record"),O==t?O=ms(n,40):h&&O!=ms(n,40)&&ss("mismatched zip64 end of central directory record"),U=Xn(c,q)+ms(n,48)+Z}}let Y=O;const G=A.offset-(_?76:0);if(U<c.size||(Z=c.size-U-O-p,U=c.size-O-p),P!=N)throw Error(An);if(0>U)throw Error(yn);let X=0,J=await ua(c,U,O),Q=H(J);if(O){if(4>J.length)throw Error(yn);const t=G-O;if(U!=t&&q==N){let e=!(ps(Q,X)==o);if(e||0>t||t+4>c.size||(e=ps(H(await ua(c,t,4)),0)==o),e){const e=U;U=t,U>e&&(Z+=U-e),J=await ua(c,U,O),Q=H(J)}}}const $=G-U;if(O==$||0>$||q!=N||(O=$,J=await ua(c,U,O),Q=H(J)),0>U||U>=c.size)throw Error(yn);s.directoryOffset=U,s.directoryLength=Y;const tt=is(s,a,"decryptCentralDirectory");let et;tt&&V&&J.length>=4&&ps(Q,0)!=o&&(L||Bn(Q))&&(J=await tt(J,B),Q=H(J),Y=J.length,et=!0),W=U;const rt=is(s,a,"filenameEncoding"),at=is(s,a,"commentEncoding"),nt=h?new Set:F;let st;for(let t=0;V>t;t++){const n=new Ln(c,u,s.options);if(X+46>J.length||ps(Q,X)!=o){if(0==t&&!et&&(L||Bn(Q)))throw Error(Dn);throw Error(xn)}qn(n,Q,X+6);const i=!!n.bitFlag.languageEncodingFlag,l=X+46,d=l+n.filenameLength,p=d+n.extraFieldLength,m=ds(Q,X+4),f=!(m>>8),w=m>>8==3,y=J.subarray(l,d),b=ds(Q,X+32),A=p+b,R=J.subarray(p,A),D=i,O=i,U=ps(Q,X+38),T=U&r,j={readOnly:!!(1&T),hidden:!!(2&T),system:!!(4&T),directory:!!(16&T),archive:!!(32&T)},C=ps(Q,X+42),I=is(s,a,"decodeText")||ha,M=D?In:rt||Mn,N=O?In:at||Mn;let P=I(y,M,mn);if(P===F&&(P=ha(y,M)),k){const t=k(P);t!==F&&(P=t)}if(ts(P,g)){const t=Error(On);throw t.filename=P,t}let _=I(R,N,fn);_===F&&(_=ha(R,N)),Object.assign(n,{index:t,versionMadeBy:m,msDosCompatible:f,zip64:!1,compressedSize:0,uncompressedSize:0,Vt:b,offset:C,diskNumberStart:ds(Q,X+34),internalFileAttributes:ds(Q,X+36),externalFileAttributes:U,msdosAttributesRaw:T,msdosAttributes:j,rawFilename:y,filenameUTF8:D,commentUTF8:O,rawExtraField:J.subarray(d,p),rawComment:R,filename:P,comment:_}),Vn(n,n,Q,X+6),n.offset+=Z,W=Math.min(Xn(c,n.diskNumberStart)+n.offset,W),h&&(nt.has(n.filename)&&(st=!0),nt.add(n.filename));const B=n.externalFileAttributes>>16&e;n.unixMode===F&&16877&B&&(n.unixMode=B);const q=!!(n.unixMode&z),H=!!(n.unixMode&S),K=!!(512&n.unixMode),Y=40960==((n.unixMode===F?B:n.unixMode)&x),G=!Y&&(n.unixMode!==F?!!(73&n.unixMode):w&&!!(73&B)),$=n.unixMode!==F&&(n.unixMode&x)==v,tt=(B&x)==v;Object.assign(n,{setuid:q,setgid:H,sticky:K,symlink:Y,unixExternalUpper:B,internalFileAttribute:n.internalFileAttributes,externalFileAttribute:n.externalFileAttributes,executable:G,directory:$||tt||f&&j.directory||n.filename.endsWith(E)&&!n.uncompressedSize,zipCrypto:n.encrypted&&!n.extraFieldAES});const it=new $a(n);it.getData=(t,e)=>n.getData(t,it,s.Lt,e),it.arrayBuffer=async t=>{const e=new TransformStream,r=$t(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await n.getData(e,it,s.Lt,t),r},X=A;const{onprogress:ot}=a;if(ot)try{await ot(t+1,V,new $a(n))}catch{}yield it}let it=X;if(X+6<=J.length&&ps(Q,X)==i){const t=ds(Q,X+4);X+6+t>J.length||(s.digitalSignature=J.subarray(X+6,X+6+t),it=X+6+t)}h&&X!=Y&&it!=Y&&ss("trailing central directory data"),st&&ss("duplicate filename"),h&&(Z||V&&W>0)&&ss("prepended data");const ot=is(s,a,"extractPrependedData"),ct=is(s,a,"extractAppendedData");return ot&&(s.prependedData=W>0?await ua(c,0,W):j),s.comment=I?await ua(c,C+p,I):j,ct&&(s.appendedData=M<c.size?await ua(c,M,c.size-M):j),!0}async getEntries(t={}){const e=[];for await(const r of this.getEntriesGenerator(t))e.push(r);return e}async close(){const{reader:t}=this;t.readUint8Array||!t.readable||t.readable.locked||await t.readable.cancel()}}class _n{constructor(t={}){const{readable:e,writable:r}=new TransformStream,a=new Wn(e,t).getEntriesGenerator();this.readable=new ReadableStream({async pull(t){const{done:e,value:r}=await a.next();if(e)return t.close();const n={...r,readable:(()=>{const{readable:t,writable:e}=new TransformStream;if(r.getData)return(async()=>{try{await r.getData(e)}catch(t){try{await e.abort(t)}catch{}}})(),t})()};delete n.getData,t.enqueue(n)}}),this.writable=r}}let Ln=class{constructor(t,e,r){Object.assign(this,{reader:t,config:e,options:r})}async getData(t,e,n,i={}){const o=this,{reader:c,index:l,offset:d,diskNumberStart:p,extraFieldAES:m,extraFieldZip64:f,compressionMethod:u,config:w,bitFlag:h,rawBitFlag:y,crc32:b,rawLastModDate:g,uncompressedSize:x,compressedSize:v}=o,{dataDescriptor:z}=h,S=e.localDirectory={},E=Xn(c,p)+d,A=await ua(c,E,k),R=H(A);let D=is(o,i,tn),O=is(o,i,en);const U=is(o,i,rn);if(D=D&&D.length&&D,O=O&&O.length&&O,m&&99!=m.originalCompressionMethod)throw Error(kn);if(A.length<k||ps(R,0)!=a)throw Error(vn);qn(S,R,4);const{extraFieldLength:T,filenameLength:C}=S,I=is(o,i,"checkLocalDirectory"),M=Qn(i,o.options),N=((t,e)=>t===F?e!=hn:!!t)(I,M),P=((t,e)=>t===F?e==un:!!t)(I,M);let W=j;if(P&&(C||T)){const t=await ua(c,E+k,C+T);W=t.subarray(0,C),S.rawExtraField=t.subarray(C)}else S.rawExtraField=T?await ua(c,E+k+C,T):j;P&&(S.rawFilename=W),Vn(o,S,R,4,!0),N&&((t,e,r,a)=>{const{rawFilename:n}=t;a&&(r.length!=n.length||r.some((t,e)=>t!=n[e]))&&ss("mismatched local file header (filename)"),(2057&e.rawBitFlag)!=(2057&t.rawBitFlag)&&ss("mismatched local file header (general purpose bit flag)"),e.compressionMethod!=t.compressionMethod&&ss("mismatched local file header (compression method)"),e.bitFlag.dataDescriptor||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||ss("mismatched local file header (crc32 or sizes)")})(o,S,W,P);const{lastAccessDate:_,creationDate:L,uid:B,gid:q}=S;_&&(e.lastAccessDate=_),L&&(e.creationDate=L),B!==F&&e.uid===F&&(e.uid=B),q!==F&&e.gid===F&&(e.gid=q);const V=o.encrypted&&S.encrypted&&!U,Z=V&&!m;if(U||(e.zipCrypto=Z),V&&!(64&~S.rawBitFlag))throw Error(En);const K=U?F:le(u);if(0!=u&&8!=u&&9!=u&&!K&&!U)throw Error(kn);if(V){if(!Z&&(1>m.strength||m.strength>3))throw Error(En);if(!D&&!O)throw Error(Sn)}const Y=E+k+C+T,G=v,X=Qt(c.createReadable({offset:Y,size:G})),J=is(o,i,an),Q=is(o,i,"checkPasswordOnly");let $=is(o,i,"checkOverlappingEntry");const tt=is(o,i,"checkOverlappingEntryOnly");tt&&($=!0);const{onstart:et,onprogress:rt,onend:at}=i,nt=9==u;let st=is(o,i,sn);nt&&(st=!1);const it=is(o,i,"checkCrc32"),ot=(it===F?is(o,i,"checkSignature"):it)&&!U&&(!V||Z||m&&1==m.vendorVersion),ct={options:{codecType:Ue,password:D,rawPassword:O,zipCrypto:Z,encryptionStrength:m&&m.strength,checkCrc32:ot,checkAuthenticationCode:is(o,i,"checkAuthenticationCode"),passwordVerification:Z&&(z?g>>>8&r:b>>>24&r),outputSize:U?v:x,crc32:b,compressed:0!=u&&!U,encrypted:V,useWebWorkers:is(o,i,nn),useCompressionStream:st,transferStreams:is(o,i,on),deflate64:nt,format:K?K.format:F,codecURI:K?K.codecURI:F,compressionMethod:u,rawBitFlag:y,checkPasswordOnly:Q},config:w,ft:{signal:J,size:G,onstart:et,onprogress:rt,onend:at}};let lt,dt;$&&await(async({reader:t,Zt:e,index:r,offset:a,crc32:n,compressedSize:i,uncompressedSize:o,Ht:c,dataDescriptor:l,extraFieldZip64:d,Lt:p})=>{let m=0;if(l&&(m=d?20:12),m){const r=await ua(t,c+i,m+4),a=H(r);let l=r.length==m+4&&ps(a,0)==s;if(l){const t=Gn(a,4,d);(e.encrypted&&!e.zipCrypto||t.crc32==n)&&t.compressedSize==i&&t.uncompressedSize==o?m+=4:l=!1}if(r.length>=m){const t=Gn(a,l?4:0,d);t.signature=l,e.localDirectory.dataDescriptor=t}}const f={start:a,end:c+i+m,Zt:e};for(const[t,e]of p)if(t!=r&&f.start<e.end&&e.start<f.end){const t=Error(Rn);throw t.Kt=e.Zt,t}p.set(r,f)})({reader:c,Zt:e,index:l,offset:E,crc32:b,compressedSize:v,uncompressedSize:x,Ht:Y,dataDescriptor:z||S.bitFlag.dataDescriptor,extraFieldZip64:f||S.extraFieldZip64,Lt:n});try{if(!tt){Q&&(t=new WritableStream),t=new da(t),await ma(t,U?v:x),({writable:lt}=t);const{outputSize:e}=await dr({readable:X,writable:lt},ct);if(t.size+=e,e!=(U?v:x))throw Error(me)}}catch(e){if(e.outputSize!==F&&(t.size+=e.outputSize),!Q||e.message!=ft)throw dt=e,e}finally{if((pa(t)||!is(o,i,cn))&<&&!lt.locked){const t=lt.getWriter();if(dt)try{await t.abort(dt)}catch{}else await t.close()}}return Q||tt?F:t.getData?t.getData():lt}};function Bn(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;e>r;r++)if(134630224==ps(t,r))return!0;return!1}function qn(t,e,r){const a=t.rawBitFlag=ds(e,r+2),n=!(1&~a),s=ps(e,r+6);Object.assign(t,{encrypted:n,version:ds(e,r),bitFlag:{level:(6&a)>>1,dataDescriptor:!(8&~a),languageEncodingFlag:(a&g)==g},rawLastModDate:s,lastModDate:os(s),filenameLength:ds(e,r+22),extraFieldLength:ds(e,r+24)})}function Vn(t,e,r,a,n){const{rawExtraField:s}=e,i=e.extraField=new Map,o=H(s);let c=0;try{for(;c<s.length;){const t=ds(o,c),e=ds(o,c+2);i.set(t,{type:t,data:s.slice(c+4,c+4+e)}),c+=4+e}}catch{}const l=ds(r,a+4);Object.assign(e,{signature:ps(r,a+10),crc32:ps(r,a+10),compressedSize:ps(r,a+14),uncompressedSize:ps(r,a+18)});const d=i.get(1);d&&(((t,e)=>{e.zip64=!0;const r=H(t.data),a=Nn.filter(([t,r])=>e[t]==r),n=a.reduce((t,[,e])=>t+Pn[e].bytes,0);if(t.data.length<n)throw Error(zn);for(let n=0,s=0;n<a.length;n++){const[i,o]=a[n],c=Pn[o];e[i]=t[i]=c._t(r,s),s+=c.bytes}})(d,e),e.extraFieldZip64=d);const p=i.get(28789);p&&(Zn(p,ya,ba,e,t),e.extraFieldUnicodePath=p);const m=i.get(25461);m&&(Zn(m,ga,xa,e,t),e.extraFieldUnicodeComment=m);const f=i.get(u);f&&f.data.length>=7?(((t,e,r)=>{const a=H(t.data),n=ls(a,4);Object.assign(t,{vendorVersion:ls(a,0),vendorId:ls(a,2),strength:n,originalCompressionMethod:r,compressionMethod:ds(a,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=F)})(f,e,l),e.extraFieldAES=f):e.compressionMethod=l;const g=i.get(13);g&&(Hn(g,e),e.extraFieldPkwareUnix=g);const x=i.get(22613);x&&(Hn(x,e),e.extraFieldUnixType1=x);const v=i.get(10);v&&(((t,e)=>{const r=H(t.data);let a,n=4;try{for(;n<t.data.length&&!a;){const e=ds(r,n),s=ds(r,n+2);1==e&&(a=t.data.slice(n+4,n+4+s)),n+=4+s}}catch{}if(a&&24==a.length){const r=H(a),n=r.getBigUint64(0,!0),s=r.getBigUint64(8,!0),i=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:n,rawLastAccessDate:s,rawCreationDate:i});const o={lastModDate:cs(n),lastAccessDate:cs(s),creationDate:cs(i)};Object.assign(t,o),Object.assign(e,o,{rawLastAccessDate:s,rawCreationDate:i})}})(v,e),e.extraFieldNTFS=v);const z=i.get(b);let S;if(z&&(S=Kn(z,e,!1),e.extraFieldUnix=z),!S){const t=i.get(y);t&&(Kn(t,e,!0),e.extraFieldInfoZip=t)}const E=i.get(w);E&&(((t,e,r)=>{if(!t.data.length)return;const a=H(t.data),n=ls(a,0),s=[],i=[];r?(1&~n||(s.push(ka),i.push(Aa)),2&~n||(s.push(Ra),i.push(Fa)),4&~n||(s.push(Da),i.push(Oa))):5>t.data.length||(s.push(ka),i.push(Aa));let o=1;s.forEach((r,n)=>{if(t.data.length>=o+4){const s=ps(a,o);e[r]=t[r]=new Date(1e3*(0|s));const c=i[n];t[c]=s}o+=4})})(E,e,n),e.extraFieldExtendedTimestamp=E);const k=i.get(h);k&&(e.extraFieldUSDZ=k)}function Zn(t,e,r,a,n){if(5>t.data.length)return void(t.valid=!1);const s=H(t.data),i=new rt;i.append(n[r]);const o=H(new Uint8Array(4));o.setUint32(0,i.get(),!0);const c=ps(s,1);Object.assign(t,{version:ls(s,0),[e]:ha(t.data.subarray(5)),valid:!n.bitFlag.languageEncodingFlag&&c==ps(o,0)}),t.valid&&(a[e]=t[e],a[e+"UTF8"]=!0)}function Hn(t,e){if(8>t.data.length)return;const r=H(t.data),a={lastAccessDate:new Date(1e3*(0|ps(r,0))),lastModDate:new Date(1e3*(0|ps(r,4)))};12>t.data.length||(a.uid=ds(r,8),a.gid=ds(r,10)),Object.assign(t,a),Object.assign(e,a)}function Kn(t,e,r){try{const a=H(t.data);let n,s;if(r){let e=0;const r=ls(a,e++),i=ls(a,e++);n=Yn(t.data.subarray(e,e+i)),e+=i;const o=ls(a,e++);s=Yn(t.data.subarray(e,e+o)),Object.assign(t,{version:r,uid:n,gid:s})}else 4>t.data.length||(n=ds(a,0),s=ds(a,2),Object.assign(t,{uid:n,gid:s}));return n!==F&&(e.uid=n),s!==F&&(e.gid=s),n!==F||s!==F}catch{}}function Yn(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function Gn(t,e,r){const a=ps(t,e);let n,s;return r?(n=ms(t,e+4),s=ms(t,e+12)):(n=ps(t,e+4),s=ps(t,e+8)),{crc32:a,compressedSize:n,uncompressedSize:s}}function Xn(t,e){return t.Wt?t.Wt(e):0}function Jn(t){return t===un||t===wn||t===hn}function Qn(t,e){return $n(t,$n(e,wn))}function $n(t,e){const r=t.strictness;if(r!==F){if(!Jn(r))throw Error(Un);return r}const a=t.checkAmbiguity;return a===F?e:a?un:e==hn?hn:wn}function ts(t,e){if(e==hn)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(r.includes("..")||t.startsWith("/")||t.startsWith("\\\\")||Cn.test(t))||e==un&&(r.includes(".")||r.includes(""))}async function*es(t,e){const r=t.size-e,a=await ua(t,r,e),n=H(a);for(let t=a.length-p;t>=0;t--)ps(n,t)==c&&(yield[n,r,a,t,r+t])}function rs(t,e,r){return{offset:r,buffer:t.slice(e,e+p).buffer}}async function as(r,a,n,s,i,c,l){const p=ds(a,s+10),f=ps(a,s+12),u=ps(a,s+16);if(p==e||f==t||u==t)return await ns(r,a,n,i-m,c,l)==d?2:0;if(!p&&!f)return 1;const w=ds(a,s+6);for(const t of[i-f,Xn(r,w)+u])if(await ns(r,a,n,t,c,l)==o)return 2;return 0}async function ns(t,e,r,a,n,s){return 0>a||a+4>n?F:r>a?s.count>0?(s.count--,ps(H(await ua(t,a,4)),0)):F:ps(e,a-r)}function ss(t){const e=Error(Fn);throw e.reason=t,e}function is(t,e,r){return e[r]===F?t.options[r]:e[r]}function os(t){const r=(4294901760&t)>>16,a=t&e;return new Date(1980+((65024&r)>>9),((480&r)>>5)-1,31&r,(63488&a)>>11,(2016&a)>>5,2*(31&a),0)}function cs(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function ls(t,e){return t.getUint8(e)}function ds(t,e){return t.getUint16(e,!0)}function ps(t,e){return t.getUint32(e,!0)}function ms(t,e){return Number(t.getBigUint64(e,!0))}var fs=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:Fn,ERR_BAD_FORMAT:yn,ERR_CENTRAL_DIRECTORY_NOT_FOUND:xn,ERR_ENCRYPTED:Sn,ERR_ENCRYPTED_CENTRAL_DIRECTORY:Dn,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:gn,ERR_EOCDR_NOT_FOUND:bn,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:zn,ERR_INVALID_AUTHENTICATION_CODE:mt,ERR_INVALID_COMPRESSED_DATA:fe,ERR_INVALID_CRC32:ue,ERR_INVALID_FILENAME_VALIDATION:Tn,ERR_INVALID_MAX_APPENDED_DATA_SIZE:jn,ERR_INVALID_PASSWORD:dt,ERR_INVALID_SIGNATURE:pt,ERR_INVALID_STRICTNESS:Un,ERR_INVALID_UNCOMPRESSED_SIZE:me,ERR_LOCAL_FILE_HEADER_NOT_FOUND:vn,ERR_OVERLAPPING_ENTRY:Rn,ERR_SPLIT_ZIP_FILE:An,ERR_UNSAFE_FILENAME:On,ERR_UNSUPPORTED_COMPRESSION:kn,ERR_UNSUPPORTED_ENCRYPTION:En,ERR_WORKER_STARTUP_TIMEOUT:Ce,ZipReader:Wn,ZipReaderStream:_n});const us="File already exists",ws="Zip file comment exceeds 64KB",hs="Invalid zip file comment (must be a Uint8Array)",ys="File entry comment exceeds 64KB",bs="File entry name exceeds 64KB",gs="Version exceeds 65535",xs="The strength must equal 1, 2, or 3",vs="Encryption is not supported in USDZ files",zs="Encryption is not supported when the 'passThrough' option is set",Ss="Extra field type exceeds 65535",Es="Extra field data exceeds 64KB",ks=-2147483648,As=2147483647,Rs=BigInt(0),Fs=BigInt("0x7fffffffffffffff"),Ds="Zip64 is not supported (set the 'zip64' option to 'true')",Os="Undefined uncompressed size",Us="Undetermined size",Ts="Undefined reader",js="Zip file not empty",Cs="Invalid uid (must be integer 0..2^32-1)",Is="Invalid gid (must be integer 0..2^32-1)",Ms="Invalid UNIX mode (must be integer 0..65535)",Ns="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",Ps="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",Ws="Invalid msdosAttributesRaw (must be integer 0..255)",_s="Invalid msdosAttributes (must be an object with boolean flags)",Ls="Invalid level (must be integer 0..9)",Bs="Invalid password (password must be a string, rawPassword must be a Uint8Array)",qs="Signature data exceeds 64KB",Vs=new Uint8Array([7,0,2,0,65,69,3,0,0]),Zs="infozip",Hs="unix";let Ks=0;const Ys=[];class Gs{constructor(t,e={}){t=new da(t);const{availableSize:r=D,maxSize:a=D}=t;Object.assign(this,{writer:t,Yt:r>0&&r!==D&&a>0&&a!==D,options:e,config:P(),files:new Map,Gt:new Set,offset:e[ln]===F?t.size||t.writable.size||0:e[ln],Xt:e[ln]===F?0:e[ln]-(t.size||t.writable.size||0),Jt:new Set,Qt:0,$t:F})}async prependZip(e){if(this.Gt.size)throw Error(js);e=new la(e),await ma(e),e.size!==F&&e.readUint8Array||(e=new Ir(await $t(e.readable)),await ma(e));const{ZipReader:r}=await Promise.resolve().then(()=>fs),a=new r(e.readable),n=await a.getEntries();await a.close(),await ma(this.writer),await e.readable.pipeTo(this.writer.writable,{preventClose:!0,preventAbort:!0}),this.writer.size=this.offset=e.size,this.Gt=new Set(n.map(t=>t.filename)),this.files=new Map(n.map(e=>{const{version:r,rawLastModDate:a,lastAccessDate:n,creationDate:s,rawFilename:i,bitFlag:o,encrypted:c,uncompressedSize:l,compressedSize:d,zip64:p}=e;let{compressionMethod:m,te:f,ee:u,re:w,ae:h,ne:y,rawExtraField:b}=e;const{level:g,languageEncodingFlag:x,dataDescriptor:v}=o;f=f||j,u=u||j,w=w||j,h=h||j,y=y||j,b=b||j,e.extraFieldAES&&(m=99);const z=Ri(f,u,w,h,y,b),S=p&&l>=t,E=p&&d>=t,k=-7&Di(g,x,v,c,m)|g<<1,{se:A,ie:R}=Fi({version:r,bitFlag:k,compressionMethod:m,uncompressedSize:l,compressedSize:d,rawLastModDate:a,rawFilename:i,oe:E,ce:S,extraFieldLength:z}),{crc32:D}=e;return D!==F&&Ei(R,10,D),Object.assign(e,{ce:S,oe:E,le:p&&e.offset>=t,diskNumberStart:0,de:!1,te:f,ee:u,re:w,ae:h,ne:y,rawExtraField:b,extendedTimestamp:w.length>0||h.length>0,pe:1+(n?2:0)+(s?4:0),se:A,ie:R}),[e.filename,e]}))}async add(e="",a,s={}){const i=this;s=Object.assign({},s);const{Jt:o,config:c}=i;let l,d;Ks<c.maxWorkers?Ks++:await new Promise(t=>Ys.push(t));try{if(e=e.trim(),yi(i,s,qa)&&!e.endsWith(E)&&(e+=E),i.Gt.has(e))throw Error(us);return i.Gt.add(e),d=!0,l=(async(e,a,s,i)=>{const o=Qs(e,a,i);({name:a}=o);const c=$s(e,a,i),{comment:l}=c,d=i[Ka];let p;e.files.set(a,F);try{const{me:l}=c;0==l.level||l.compressionMethod!==F||l.passThrough||await We(e.config)||(l.level=0);const d=await(async(t,e,{me:r},a)=>{if(r.passThrough&&!e&&!yi(t,a,qa))throw Error(Ts);let n;return e&&(e=new la(e),await ma(e),({size:n}=e)),Object.assign({reader:e},ei(t,!!e,n,r,a))})(e,s,c,i);({reader:s}=d);const m=li(e.writer),f=ci(e.writer),u=ri(i=Object.assign({},i,o.me,c.me,d.me,{signature:i[Ha],crc32:i.crc32===F?i[Ha]:i.crc32,offset:e.offset-m,diskNumberStart:f})),w=si(i),h=Ri(u.fe,w.ue);p=await(async(e,a,s,i,o)=>{const{files:c,writer:l}=e,{keepOrder:d,dataDescriptor:p,signal:m}=o,{we:f}=i,u=e.options[dn],w=e.$t;let h,y,b,g,x,v,z,S={},E=0;c.set(a,S),e.$t=S;try{let y;d&&(y=w&&w.lock,S.lock=new Promise(t=>b=t)),o.bufferedWrite||!d||e.he||e.Qt||!p?(h=!0,e.Qt++,z=o.createTempStream?await o.createTempStream():new TransformStream(F,F,{highWaterMark:D}),z.size=0,await ma(l)):(z=l,await A()),await ma(z);const O=li(l);if(e.Yt){delete e.Yt;const t=new Uint8Array(4);Ei(H(t),0,n),await mi(l,t),e.offset+=4}u&&!h&&ai(i,e.offset-O);const{fe:U}=f;h||(await y,await R());const T=ci(l),j=pi(e,l);if(S.diskNumberStart=T,h||(x=!0,v=l.size,await mi(z,U)),S=await(async(e,a,{diskNumberStart:n,lock:s},i,o,c)=>{const{we:l,ye:d,be:p}=i,{se:m,ie:f,lastModDate:u,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,te:x,ge:v,re:z,pe:S,ae:E,ne:k,ee:A}=l,{ue:R}=d,{rawFilename:D,lastAccessDate:O,creationDate:U,password:T,rawPassword:j,level:C,zip64:I,ce:M,oe:N,zipCrypto:P,dataDescriptor:W,directory:_,executable:L,versionMadeBy:B,rawComment:q,rawExtraField:V,useWebWorkers:Z,transferStreams:H,onstart:K,onprogress:Y,onend:G,signal:X,encryptionStrength:J,extendedTimestamp:Q,msDosCompatible:$,internalFileAttributes:tt,externalFileAttributes:et,uid:rt,gid:at,unixMode:nt,symlink:st,setuid:it,setgid:ot,sticky:ct,unixExternalUpper:lt,msdosAttributesRaw:dt,msdosAttributes:pt,useCompressionStream:mt,passThrough:ft,format:ut,codecURI:wt}=c,ht={lock:s,versionMadeBy:B,zip64:I,directory:!!_,executable:!!L,filenameUTF8:!0,rawFilename:D,commentUTF8:!0,rawComment:q,te:x,ge:v,re:z,ae:E,ne:k,ee:A,rawExtraField:V,extendedTimestamp:Q,msDosCompatible:$,internalFileAttributes:tt,externalFileAttributes:et,diskNumberStart:n,uid:rt,gid:at,unixMode:nt,symlink:!!st,setuid:it,setgid:ot,sticky:ct,unixExternalUpper:lt,msdosAttributesRaw:dt,msdosAttributes:pt};let{crc32:yt,uncompressedSize:bt}=c,gt=0;ft||(bt=0);const{writable:xt}=a;if(e){const n=Qt(e.createReadable?e.createReadable():e.readable),s=e.size,i={options:{codecType:Oe,level:C,rawPassword:j,password:T,encryptionStrength:J,zipCrypto:h&&P,passwordVerification:h&&P&&w>>8&r,computeCrc32:!ft,compressed:y&&!ft,encrypted:h&&!ft,useWebWorkers:Z,useCompressionStream:mt,transferStreams:H,format:ut,codecURI:wt,compressionMethod:g},config:o,ft:{signal:X,size:s,onstart:K,onprogress:Y,onend:G}};try{const e=await dr({readable:n,writable:xt},i);if(gt=e.outputSize,a.size+=gt,ft||(bt=e.inputSize,h&&!P||(yt=e.crc32)),!N&>>=t||!M&&bt>=t)throw Error(Ds)}catch(t){throw t.outputSize!==F&&(a.size+=t.outputSize),t}}return(({crc32:t,compressedSize:e,uncompressedSize:r,we:a,ye:n},{zip64:s,zipCrypto:i,passThrough:o,dataDescriptor:c})=>{const{ie:l,encrypted:d}=a,{xe:p,ve:m}=n;d&&!i&&!o||t===F||(Ei(l,10,t),c&&Ei(p,m,t)),s?c&&(ki(p,m+4,BigInt(e)),ki(p,m+12,BigInt(r))):(Ei(l,14,e),Ei(l,18,r),c&&(Ei(p,m+4,e),Ei(p,m+8,r)))})({crc32:yt,compressedSize:gt,uncompressedSize:bt,we:l,ye:d},c),W&&await mi(a,R),Object.assign(ht,{uncompressedSize:bt,compressedSize:gt,lastModDate:u,rawLastModDate:w,creationDate:U,lastAccessDate:O,encrypted:!!h,zipCrypto:!!P,size:p+gt,compressionMethod:g,version:b,se:m,ie:f,signature:yt,crc32:!h||P||ft?yt:F,pe:S,ce:M,oe:N}),ht})(s,z,S,i,e.config,o),h||(x=!1),c.set(a,S),S.filename=a,h){if(await Promise.all([z.writable.getWriter().close(),y]),await A(),g=!0,v=l.size,await R(),S.diskNumberStart=ci(l),S.offset=pi(e,l),u){const t=i.be;ai(i,e.offset-li(l)),S.size+=i.be-t}(({rawFilename:t,encrypted:e,zip64:r,ge:a,crc32:n,compressedSize:s,uncompressedSize:i,ce:o,oe:c},l,{dataDescriptor:d,passThrough:p})=>{if(d||((!e||p&&n!==F)&&Ei(l,14,n),c||Ei(l,18,s),o||Ei(l,22,i)),r&&a){const e=k+Ri(t)+4;ki(l,e,BigInt(i)),ki(l,e+8,BigInt(s))}})(S,f.ze,o),await mi(l,f.fe),await(async(t,e,r)=>{const a=e.writable.getWriter();try{await t.pipeTo(new WritableStream({async write(t){var e;await a.ready,await a.write(t),e=Ri(t),E+=e}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}})(z.readable,l,m),l.size+=z.size,g=!1}else S.diskNumberStart=T,S.offset=j;return e.offset+=S.size,S}catch(t){if(g||x){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=l.size-v,h&&(e.offset+=E)}throw c.delete(a),t}finally{if(h&&e.Qt--,b&&b(),y&&y(),h&&z&&z.dispose)try{await z.dispose()}catch{}}async function A(){e.he=!0;const{Se:t}=e;e.Se=new Promise(t=>y=()=>{e.he=!1,t()}),await t}async function R(){di(l,Ri(f.fe))&&await l.closeDisk()}})(e,a,s,{we:u,ye:w,be:h},i)}catch(t){throw e.files.delete(a),t}return Object.assign(p,{name:a,comment:l,extraField:d,[ja]:p.internalFileAttributes,[Ca]:p.externalFileAttributes}),new $a(p)})(i,e,a,s),o.add(l),await l}catch(t){throw d&&i.Gt.delete(e),t}finally{o.delete(l);const t=Ys.shift();t?t():Ks--}}remove(t){const{Gt:e,files:r}=this;if(typeof t==T&&(t=r.get(t)),t&&t.filename!==F){const{filename:a}=t;if(e.has(a)&&r.has(a))return e.delete(a),r.delete(a),!0}return!1}async close(r=j,a={}){const{Jt:n,writer:s}=this,{writable:m}=s;if(!(r instanceof Uint8Array))throw Error(hs);if(Ri(r)>e)throw Error(ws);for(;n.size;)await Promise.allSettled(Array.from(n));return await(async(r,a,n)=>{const s=ii(r.files),{Ee:m,ke:f}=await(async(r,a,n)=>{const{files:s,writer:i}=r,c=new Uint8Array(a);await ma(i);let l=0,d=0,p=ci(i),m=li(i);for(const[r,a]of Array.from(s.values()).entries()){const{offset:f,rawFilename:u,te:w,ee:h,re:y,ae:b,ne:g,rawExtraField:x,rawComment:v,versionMadeBy:z,se:S,ie:E,ce:k,oe:A,de:R,le:F,internalFileAttributes:D,externalFileAttributes:O,diskNumberStart:U,uncompressedSize:T,compressedSize:j}=a,C=Ri(w,h,y,b,g,x),I=46+Ri(u,v)+C;di(i,l+I-d)&&(await mi(i,c.slice(d,l)),d=l,await i.closeDisk()),0==r&&(p=ci(i),m=li(i)),k||Ei(E,18,T),A||Ei(E,14,j),(F||R)&&45>a.version&&Si(E,0,45);const M=oi(I);if(M.uint32(o),M.uint16(z),M.bytes(S.subarray(0,24)),M.uint16(C),M.uint16(Ri(v)),M.uint16(R?e:U),M.uint16(D),M.uint32(O),M.uint32(F?t:f),M.bytes(u),M.bytes(w),M.bytes(h),M.bytes(y),M.bytes(b),M.bytes(g),M.bytes(x),M.bytes(v),Ai(c,M.array,l),l+=I,n.onprogress)try{await n.onprogress(r+1,s.size,new $a(a))}catch{}}return await mi(i,d?c.slice(d):c),{Ee:{diskNumber:p,diskOffset:m},ke:c}})(r,s,n),u=await(async(t,r,a)=>{const n=yi(t,a,pn);if(n){const a=await n(r),s=Ri(a);if(s>e)throw Error(qs);const o=oi(6+s);return o.uint32(i),o.uint16(s),o.bytes(a),await mi(t.writer,o.array),6+s}return 0})(r,f,n);await(async(r,a,n,s)=>{const{writer:i}=r,{Ee:o,Ae:m}=s;let{Re:f}=s,u=r.files.size,w=o.diskNumber,h=pi(r,o),y=ci(i);di(i,p)&&y++;let b=yi(r,n,Pa);if(!(t>h&&t>f&&e>u&&e>y)){if(!1===b)throw Error(Ds);b=!0}const g=Ri(a);if(g>e)throw Error(ws);const x=oi(b?98:p);di(i,Ri(x.array)+g)&&await i.closeDisk(),y=ci(i),b&&(x.uint32(l),x.Fe(44),x.uint16(45),x.uint16(45),x.uint32(y),x.uint32(w),x.Fe(u),x.Fe(u),x.Fe(f),x.Fe(h),x.uint32(d),x.uint32(y),x.Fe(BigInt(pi(r,i))+BigInt(f)+BigInt(m)),x.uint32(y+1),yi(r,n,"supportZip64SplitFile",!0)&&(y=e,w=e),u=e,h=t,f=t),x.uint32(c),x.uint16(y),x.uint16(w),x.uint16(u),x.uint16(u),x.uint32(f),x.uint32(h),x.uint16(g),await mi(i,x.array),g&&await mi(i,a)})(r,a,n,{Ee:m,Re:s,Ae:u})})(this,r,a),!pa(s)&&yi(this,a,cn)||await m.getWriter().close(),s.getData?s.getData():m}}class Xs{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new Gs(r,t),this.Jt=new Set}transform(t){const e=this.zipWriter;let r;const{readable:a,writable:n}=new TransformStream({start(t){r=t},flush:()=>{(async()=>{try{await e.close()}catch(t){try{await e.writer.writable.abort(t)}catch{}}})()}});return Js(this,this.zipWriter.add(t,a),t=>r.error(t)),{readable:this.readable,writable:n}}writable(t){let e;const{readable:r,writable:a}=new TransformStream({start(t){e=t}});return Js(this,this.zipWriter.add(t,r),t=>e.error(t)),a}async close(t,e={}){return await Promise.all(Array.from(this.Jt)),this.zipWriter.close(t,e)}}function Js(t,e,r){t.Jt.add(e),e.catch(t=>{try{r(t)}catch{}})}function Qs(a,n,s){n=n.trim();let i=yi(a,s,Na),o=yi(a,s,La,i?20:768);const c=yi(a,s,Va),l=xi(a,s,"uid"),d=xi(a,s,"gid");let p=xi(a,s,Ya),m=yi(a,s,"unixExtraFieldType"),f=yi(a,s,Ga),u=yi(a,s,Xa),w=yi(a,s,Ja);if(l!==F&&(!Number.isInteger(l)||0>l||l>t))throw Error(Cs);if(d!==F&&(!Number.isInteger(d)||0>d||d>t))throw Error(Is);if(p!==F&&(!Number.isInteger(p)||0>p||p>e))throw Error(Ms);if(m!==F&&m!==Zs&&m!==Hs)throw Error(Ns);if(m===Hs&&(l!==F&&l>e||d!==F&&d>e))throw Error(Ps);m!==F||l===F&&d===F||(m=Zs);let h=yi(a,s,Ia),y=yi(a,s,Ma);const b=h!==F||y!==F;if(l!==F||d!==F||p!==F||m?(i=!1,o=o&r|768):b&&(i=!0,o&=r),h!==F&&(0>h||h>r))throw Error(Ws);if(y&&"object"!=typeof y)throw Error(_s);if(o>e)throw Error(gs);let g=bi(a,s,Ta,Ca);const k=g!==F;k||(g=0),!s[qa]&&n.endsWith(E)&&(s[qa]=!0);const A=yi(a,s,qa);if(A?(n.endsWith(E)||(n+=E),k||(g=16,i||(g|=16877<<16))):i||k||(g=c?493<<16:27525120),!i){const t=p!==F||!!(f||u||w);p=p===F?g>>16&e:p&e,f?p|=z:f=!!(p&z),u?p|=S:u=!!(p&S),w?p|=512:w=!!(512&p),k&&!t||(A?p=-61441&p|v:p&x||(p|=32768),g=(p&e)<<16|g&e)}return({msdosAttributesRaw:h,msdosAttributes:y}=((t,e)=>{if(t!==F)t&=r;else if(e!==F){const{readOnly:a,hidden:n,system:s,directory:i,archive:o}=e;let c=0;a&&(c|=1),n&&(c|=2),s&&(c|=4),i&&(c|=16),o&&(c|=32),t=c&r}return e===F&&(e={readOnly:!!(1&t),hidden:!!(2&t),system:!!(4&t),directory:!!(16&t),archive:!!(32&t)}),{msdosAttributesRaw:t,msdosAttributes:e}})(h,y)),b&&(g=g&t|h&r),{name:n,me:{versionMadeBy:o,msDosCompatible:!!i,externalFileAttributes:g,unixExternalUpper:g>>16&e,uid:l,gid:d,unixMode:p,unixExtraFieldType:m,symlink:p!==F&&40960==(p&x),setuid:f,setgid:u,sticky:w,msdosAttributesRaw:h,msdosAttributes:y}}}function $s(t,r,a){const n=yi(t,a,"encodeText",nt);let s=n(r,mn);if(s===F&&(s=nt(r)),Ri(s)>e)throw Error(bs);const i=a[ga]||"";let o=n(i,fn);if(o===F&&(o=nt(i)),Ri(o)>e)throw Error(ys);const c=yi(t,a,_a,20);if(c>e)throw Error(gs);const l=yi(t,a,ka,new Date),d=yi(t,a,Ra),p=yi(t,a,Da),m=bi(t,a,Ua,ja,0),f=yi(t,a,rn),u=yi(t,a,tn),w=yi(t,a,en);if(u&&typeof u!=T||w&&!(w instanceof Uint8Array))throw Error(Bs);const h=xi(t,a,"encryptionStrength",3),y=yi(t,a,Ba),b=yi(t,a,"extendedTimestamp",!0),g=yi(t,a,"ntfsTimestamp"),x=yi(t,a,"keepOrder",!0),v=yi(t,a,nn),z=yi(t,a,on),S=yi(t,a,"bufferedWrite"),E=yi(t,a,"createTempStream"),k=yi(t,a,"dataDescriptorSignature",!0),A=yi(t,a,an),R=yi(t,a,"useUnicodeFileNames",!0),D=yi(t,a,Za),O=f||D===F?F:le(D);if(!f&&D!==F&&0!==D&&8!==D&&!O)throw Error("Compression method not supported");let U=xi(t,a,"level");if(U!==F&&(!Number.isInteger(U)||0>U||U>9))throw Error(Ls);if(t.options[dn]){if(u!==F||w!==F)throw Error(vs);U===F&&D===F&&(U=0)}let j=yi(t,a,sn),C=yi(t,a,"dataDescriptor");S&&C===F&&(C=!1),(C===F||y)&&(C=!0),U!==F&&6!=U&&(j=!1);const I=yi(t,a,Pa);if(!(y||u===F&&w===F||Number.isInteger(h)&&h>=1&&3>=h))throw Error(xs);const M=ti(a[Ka]),N=ti(a.localExtraField);return{comment:i,me:{rawFilename:s,rawComment:o,version:c,lastModDate:l,lastAccessDate:d,creationDate:p,internalFileAttributes:m,passThrough:f,password:u,rawPassword:w,encryptionStrength:h,zipCrypto:y,extendedTimestamp:b,ntfsTimestamp:g,keepOrder:x,useWebWorkers:v,transferStreams:z,bufferedWrite:S,createTempStream:E,dataDescriptorSignature:k,signal:A,useUnicodeFileNames:R,compressionMethod:D,format:O?O.format:F,codecURI:O?O.codecURI:F,De:O?O.versionNeeded:F,level:U,useCompressionStream:j,dataDescriptor:C,zip64:I,rawExtraField:M,Oe:N}}}function ti(t){if(!t)return j;let r=0,a=0;t.forEach(t=>r+=4+Ri(t));const n=new Uint8Array(r),s=H(n);return t.forEach((t,r)=>{if(r>e)throw Error(Ss);if(Ri(t)>e)throw Error(Es);Si(s,a,r),Si(s,a+2,Ri(t)),Ai(n,t,a+4),a+=4+Ri(t)}),n}function ei(e,r,a,n,s){const{passThrough:i,zipCrypto:o,password:c,rawPassword:l,encryptionStrength:d}=n;let{dataDescriptor:p,zip64:m,level:f,compressionMethod:u}=n,w=0,h=0;if(i&&r&&(h=s[va],h===F))throw Error(Os);const y=!0===m,b=yi(e,s,Wa);if(r&&i&&!b&&Ri(c,l))throw Error(zs);const g=r&&(!!(c&&Ri(c)||l&&Ri(l))||i&&b);r||(f=0,u=0);const x=g?o?12:16+4*d:0;r&&(i?(s.uncompressedSize=h,w=a===F?vi(h)+x:a):a===F?(p=!0,(m||m===F)&&(m=!0,h=w=4294967296)):(s.uncompressedSize=h=a,w=(zi(u,f)?vi(h):h)+x));const v=y||h>=t,z=y||w>=t;if(v||z){if(!1===m)throw Error(Ds);m=!0}return m=m||!1,{Ue:w,me:{dataDescriptor:p,zip64:m,ce:v,oe:z,uncompressedSize:h,level:f,compressionMethod:u,encrypted:g}}}function ri(t){const{rawFilename:r,lastModDate:n,lastAccessDate:s,creationDate:i,level:o,zip64:c,zipCrypto:l,useUnicodeFileNames:d,dataDescriptor:p,directory:m,rawExtraField:f,Oe:h,encryptionStrength:g,extendedTimestamp:x,ntfsTimestamp:v,passThrough:z,encrypted:S,ce:E,oe:D,uncompressedSize:O,crc32:U}=t;let{version:T,compressionMethod:C}=t;const I=!m&&zi(C,o);let M;const N=z||!I,P=c&&(t.bufferedWrite||!p||!E&&!D||N),W=P||c&&p&&(E||D);if(c&&(E||D)){const t=20,e=oi(t);if(e.uint16(1),e.uint16(t-4),M=e.array,P&&(e.Fe(O),N)){const t=S?l?12:16+4*g:0;e.Fe(z?0:O+t)}}else M=j;let _,L,B,q,V;if(S&&!l){const t=oi(Ri(Vs)+2);t.uint16(u),t.bytes(Vs),_=t.array,_[8]=g}else _=j;if(x){const t=ui(n),e=wi(t);if(e){const e=9+(s?4:0)+(i?4:0),r=oi(e);q=1+(s?2:0)+(i?4:0),r.uint16(w),r.uint16(e-4),r.uint8(q),r.uint32(t),s&&r.uint32(hi(ui(s))),i&&r.uint32(hi(ui(i))),B=r.array}else B=j;if(v===F?!e||s||i:v)try{const t=fi(n),e=oi(36);e.uint16(10),e.uint16(32),e.Te(4),e.uint16(1),e.uint16(24),e.Fe(t),e.Fe(s?fi(s):t),e.Fe(i?fi(i):t),L=e.array}catch{L=j}else L=j}else L=B=j;try{const{uid:r,gid:a,unixExtraFieldType:n}=t;if(n!=Zs||r===F&&a===F)if(n!=Hs||r===F&&a===F)V=j;else{const t=oi(8);t.uint16(b),t.uint16(4),t.uint16((r===F?0:r)&e),t.uint16((a===F?0:a)&e),V=t.array}else{const t=ni(r),e=ni(a),n=3+t.length+e.length,s=oi(4+n);s.uint16(y),s.uint16(n),s.uint8(1),s.uint8(t.length),s.bytes(t),s.uint8(e.length),s.bytes(e),V=s.array}}catch{V=j}C===F&&(C=I?8:0);const{De:Z}=t;I&&Z!==F&&(T=T>Z?T:Z),c&&(T=T>45?T:45),S&&!l&&(T=T>51?T:51,z&&U!==F&&(_[4]=1),_[9]=C,C=99);const K=W?Ri(M):0,Y=K+Ri(_,B,L,V,f,h);if(Y>e)throw Error(Es);const G=new Date(2e3*Math.ceil(Math.floor(n.getTime()/1e3)/2)),{se:X,ie:J,rawLastModDate:Q}=Fi({version:T,bitFlag:Di(o,d,p,S,C),compressionMethod:C,uncompressedSize:O,lastModDate:R>G?R:G>A?A:G,rawFilename:r,oe:D,ce:E,extraFieldLength:Y}),$=oi(k+Ri(r)+Y),tt=$.array,et=H(tt);return $.uint32(a),$.bytes(X),$.bytes(r),W&&$.bytes(M),$.bytes(_),$.bytes(B),$.bytes(L),$.bytes(V),$.bytes(f),$.bytes(h),p&&(D||Ei(et,18,0),E||Ei(et,22,0)),{fe:tt,ze:et,se:X,ie:J,lastModDate:n,rawLastModDate:Q,encrypted:S,compressed:I,version:T,compressionMethod:C,pe:q,te:j,ge:K,re:B,ae:L,ne:V,ee:_,extraFieldLength:Y}}function ai(t,e){const{we:r}=t;let{fe:a,extraFieldLength:n}=r,s=64-(e+Ri(a))%64;4>s&&(s+=64);const i=new Uint8Array(s),o=H(i);Si(o,0,h),Si(o,2,s-4);const c=a;r.fe=a=new Uint8Array(Ri(c)+s),Ai(a,c),Ai(a,i,Ri(c));const l=H(a);Si(l,28,n+s),r.ze=l,t.be+=s}function ni(t){if(t===F)return j;{const e=new Uint8Array(4);H(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}}function si({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let a,n=j,i=0,o=t?20:12;return r&&(o+=4),e&&(n=new Uint8Array(o),a=H(n),r&&(i=4,Ei(a,0,s))),{ue:n,xe:a,ve:i}}function ii(r){let a=0;for(const[,n]of r){const{rawFilename:r,ee:s,rawComment:i,ae:o,ne:c,rawExtraField:l,extendedTimestamp:d,pe:p,lastModDate:m,ce:f,oe:u,uncompressedSize:h,compressedSize:y}=n,b=n.offset>=t,g=n.diskNumberStart>=e;let x,v;if(b||g||f||u){const t=4+(f?8:0)+(u?8:0)+(b?8:0)+(g?4:0),e=oi(t);e.uint16(1),e.uint16(t-4),f&&e.Fe(h),u&&e.Fe(y),b&&e.Fe(n.offset),g&&e.uint32(n.diskNumberStart),x=e.array}else x=j;n.te=x,n.le=b,n.de=g;const z=ui(m);if(d&&wi(z)){const t=oi(9);t.uint16(w),t.uint16(5),t.uint8(p),t.uint32(z),v=t.array}else v=j;n.re=v;const S=Ri(x,s,o,c,v,l);if(S>e)throw Error(Es);a+=46+Ri(r,i)+S}return a}function oi(t){const e=new Uint8Array(t),r=H(e);let a=0;return{array:e,uint8:t=>{((t,e,r)=>{t.setUint8(e,r)})(r,a,t),a+=1},uint16:t=>{Si(r,a,t),a+=2},uint32:t=>{Ei(r,a,t),a+=4},Fe:t=>{ki(r,a,BigInt(t)),a+=8},bytes:t=>{Ai(e,t,a),a+=Ri(t)},Te:t=>a+=t}}function ci(t){const{diskNumber:e=0}=t;return e}function li(t){const{diskOffset:e=0}=t;return e}function di(t,e){const{availableSize:r=D}=t;return e>r}function pi(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.Xt:0)}async function mi(t,e){const{writable:r}=t,a=r.getWriter();try{await a.ready,t.size+=Ri(e),await a.write(e)}finally{a.releaseLock()}}function fi(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return Rs>e?Rs:e>Fs?Fs:e}}function ui(t){return Math.floor(t.getTime()/1e3)}function wi(t){return t>=ks&&As>=t}function hi(t){return Math.min(As,Math.max(ks,t))}function yi(t,e,r,a){const n=e[r]===F?t.options[r]:e[r];return n===F?a:n}function bi(t,e,r,a,n){const s=gi(e,r,a),i=s===F?gi(t.options,r,a):s;return i===F?n:i}function gi(t,e,r){return t[e]===F?t[r]:t[e]}function xi(t,e,r,a){return typeof(n=yi(t,e,r,a))==T&&n.trim()?Number(n):n;var n}function vi(t){return t+5*(Math.floor(t/16383)+1)}function zi(t,e){return t===F?e===F||e>0:0!==t}function Si(t,e,r){t.setUint16(e,r,!0)}function Ei(t,e,r){t.setUint32(e,r,!0)}function ki(t,e,r){t.setBigUint64(e,r,!0)}function Ai(t,e,r){t.set(e,r)}function Ri(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function Fi({version:e,bitFlag:r,compressionMethod:a,uncompressedSize:n,compressedSize:s,lastModDate:i,rawLastModDate:o,rawFilename:c,oe:l,ce:d,extraFieldLength:p}){const m=oi(26),f=m.array,u=H(f);if(m.uint16(e),m.uint16(r),m.uint16(a),o===F){const t=new Uint32Array(1),e=H(t);Si(e,0,(i.getHours()<<6|i.getMinutes())<<5|i.getSeconds()/2),Si(e,2,(i.getFullYear()-1980<<4|i.getMonth()+1)<<5|i.getDate()),o=t[0]}return m.uint32(o),m.Te(4),l||s!==F?m.uint32(l?t:s):m.Te(4),d||n!==F?m.uint32(d?t:n):m.Te(4),m.uint16(Ri(c)),m.uint16(p),{se:f,ie:u,rawLastModDate:o}}function Di(t,e,r,a,n){let s=0;return e&&(s|=g),r&&(s|=8),8!=n&&9!=n||(0>t||t>3||(s|=6),t>3&&5>=t&&(s|=4),9==t&&(s|=2)),a&&(s|=1),s}const Oi=1048576,Ui=".zip.js-temp";function Ti(t={}){const{thresholdBytes:e=Oi,directoryName:r=Ui,getDirectory:a=()=>navigator.storage.getDirectory()}=t;let n;function s(){return n||(n=Promise.resolve(a()).then(t=>t.getDirectoryHandle(r,{create:!0}))),n}return()=>{const t=[];let r,a,n,i,o=0,c=!1;const l=new WritableStream({async write(i){c?await n.write(i):(t.push(i),o+=i.length,o>e&&await(async()=>{const e=await s();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join(""),a=await e.getFileHandle(r,{create:!0}),n=(await a.createWritable()).getWriter(),c=!0;for(const e of t)await n.write(e);t.length=0})())},async close(){n&&(await n.close(),n=null)}});let d=0;return{writable:l,readable:new ReadableStream({async pull(e){if(c){if(!i){const t=await a.getFile();i=t.stream().getReader()}const{value:t,done:r}=await i.read();r?e.close():e.enqueue(t)}else d<t.length?e.enqueue(t[d++]):e.close()},async cancel(t){i&&await i.cancel(t)}},{highWaterMark:0}),dispose:async()=>{if(n){try{await n.close()}catch{}n=null}if(r){try{const t=await s();await t.removeEntry(r)}catch{}a=r=null}t.length=0}}}}const ji=1048576;function Ci(t={}){const{thresholdBytes:e=ji}=t;return()=>{const t=[];let r,a,n,s=0,i=!1;const o=new WritableStream({async write(n){i?await r.write(n):(t.push(n),s+=n.length,s>e&&await(async()=>{const e=new TransformStream;a=$t(e.readable),r=e.writable.getWriter(),i=!0;for(const e of t)await r.write(e);t.length=0})())},async close(){r&&(await r.close(),r=null)}});let c=0;return{writable:o,readable:new ReadableStream({async pull(e){if(i){if(!n){const t=await a;n=t.stream().getReader()}const{value:t,done:r}=await n.read();r?e.close():e.enqueue(t)}else c<t.length?e.enqueue(t[c++]):e.close()},async cancel(t){n&&await n.cancel(t)}},{highWaterMark:0}),dispose:async()=>{if(r){try{await r.abort()}catch{}r=null}a&&(a.catch(()=>{}),a=null),t.length=0}}}}const Ii=1048576,Mi=".zip.js-temp",Ni="createSyncAccessHandle is only available in dedicated workers";function Pi(t={}){const{thresholdBytes:e=Ii,directoryName:r=Mi,getDirectory:a}=t;if(!(a||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw Error(Ni);const n=a||(()=>navigator.storage.getDirectory());let s;function i(){return s||(s=Promise.resolve(n()).then(t=>t.getDirectoryHandle(r,{create:!0}))),s}return()=>{const t=[];let r,a,n=0,s=!1,o=0,c=0;const l=new WritableStream({async write(c){s?(a.write(c,{at:o}),o+=c.length):(t.push(c),n+=c.length,n>e&&await(async()=>{const e=await i();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join("");const n=await e.getFileHandle(r,{create:!0});a=await n.createSyncAccessHandle(),s=!0;for(const e of t)a.write(e,{at:o}),o+=e.length;t.length=0})())},close(){a&&a.flush()}});let d=0;return{writable:l,readable:new ReadableStream({pull(e){if(s){const t=o-c;if(0>=t)return void e.close();const r=new Uint8Array(Math.min(524288,t)),n=a.read(r,{at:c});n?(c+=n,e.enqueue(r.subarray(0,n))):e.close()}else d<t.length?e.enqueue(t[d++]):e.close()}},{highWaterMark:0}),dispose:async()=>{if(a){try{a.close()}catch{}a=null}if(r){try{const t=await i();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{B({baseURI:import.meta.url})}catch{}let Wi,_i,Li,Bi,qi;function Vi(t,e,r={}){if(!Wi){const t=Error("WASM module not loaded");throw t.cause=qi,t}const a="number"==typeof r.level?r.level:-1,n="number"==typeof r.outBuffer?r.outBuffer:65536,s="number"==typeof r.inBufferSize?r.inBufferSize:65536;return new TransformStream({start(){try{let r;if(this.je=_i(n),this.in=_i(s),this.inBufferSize=s,!this.je||!this.in)throw Error("allocation failed");if(this.Ce=new Uint8Array(n),t?(this.Ie=Wi.deflate_process,this.Me=Wi.deflate_last_consumed,this.Ne=Wi.deflate_end,this.Pe=Wi.deflate_new(),r="gzip"===e?Wi.deflate_init_gzip(this.Pe,a):"deflate-raw"===e?Wi.deflate_init_raw(this.Pe,a):Wi.deflate_init(this.Pe,a)):"deflate64-raw"===e?(this.Ie=Wi.inflate9_process,this.Me=Wi.inflate9_last_consumed,this.Ne=Wi.inflate9_end,this.Pe=Wi.inflate9_new(),r=Wi.inflate9_init_raw(this.Pe)):(this.Ie=Wi.inflate_process,this.Me=Wi.inflate_last_consumed,this.Ne=Wi.inflate_end,this.Pe=Wi.inflate_new(),r="deflate-raw"===e?Wi.inflate_init_raw(this.Pe):"gzip"===e?Wi.inflate_init_gzip(this.Pe):Wi.inflate_init(this.Pe)),0!==r)throw Error("init failed:"+r)}catch(t){throw i(this),t}},transform(e,r){try{const a=e,s=new Uint8Array(Bi.buffer),i=this.Ie,o=this.Me,c=this.je,l=this.Ce;let d=0;for(;d<a.length;){const e=Math.min(a.length-d,32768);if((!this.in||this.inBufferSize<e)&&(this.in&&Li&&(Li(this.in),this.in=0),this.in=_i(e),this.inBufferSize=e,!this.in))throw Error("allocation failed");s.set(a.subarray(d,d+e),this.in);const p=i(this.Pe,this.in,e,c,n,0),m=16777215&p;if(m&&(l.set(s.subarray(c,c+m),0),r.enqueue(l.slice(0,m))),!t){const t=p>>24&255,e=128&t?t-256:t;if(0>e)throw Error("process error:"+e)}const f=o(this.Pe);if(0===f)break;d+=f}}catch(t){i(this),r.error(t)}},flush(e){try{const r=new Uint8Array(Bi.buffer),a=this.Ie,s=this.je,i=this.Ce;for(;;){const o=a(this.Pe,0,0,s,n,4),c=16777215&o,l=o>>24&255;if(!t){const t=128&l?l-256:l;if(0>t)throw Error("process error:"+t)}if(c&&(i.set(r.subarray(s,s+c),0),e.enqueue(i.slice(0,c))),1===l||0===c)break}}catch(t){e.error(t)}finally{const t=i(this);0!==t&&e.error(Error("end error:"+t))}},cancel(){i(this)}});function i(t){let e=0;return t.Pe&&t.Ne&&(e=t.Ne(t.Pe)),t.Pe=0,t.in&&Li&&Li(t.in),t.in=0,t.je&&Li&&Li(t.je),t.je=0,e}}class Zi{constructor(t="deflate",e){return Vi(!0,t,e)}}class Hi{constructor(t="deflate",e){return Vi(!1,t,e)}}Zi.lt=!0,Hi.lt=!0;let Ki,Yi=!1;function Gi(){Ki=null,(async()=>{await Promise.allSettled(sr.map(t=>(wr(t),t.terminate()))),Ie=F,Me=!1})(),Yi=!1,Wi=_i=Li=Bi=qi=null}(({We:t})=>{Pe=t})({We:t=>{if(!Ki){let{wasmURI:e}=t;typeof e==U&&(e=e()),Ki=(async(t,{baseURI:e})=>{if(!Yi)try{await(async(t,e)=>{let r,a;try{try{a=new URL(t,e)}catch{}const n=await fetch(a);r=await n.arrayBuffer()}catch(e){if(!t.startsWith("data:application/wasm;base64,"))throw e;r=(t=>{const e=t.split(",")[1],r=atob(e),a=r.length,n=new Uint8Array(a);for(let t=0;a>t;++t)n[t]=r.charCodeAt(t);return n.buffer})(t)}(t=>{if(Wi=t,({malloc:_i,free:Li,memory:Bi}=Wi),"function"!=typeof _i||"function"!=typeof Li||!Bi)throw Wi=_i=Li=Bi=null,Error("Invalid WASM module")})((await WebAssembly.instantiate(r)).instance.exports)})(t,e),Yi=!0}catch(t){throw(t=>{qi=t})(t),t}})(e,t).catch(t=>{throw Ki=null,t})}return Ki}}),B({CompressionStreamFallback:Zi,DecompressionStreamFallback:Hi}),B({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const Xi="Entry filename already exists",Ji="Readable stream already consumed",Qi="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",$i="zipjs-abort-export",to="The operation was aborted",eo=new Set([1,u,10,w,28789,25461,h,y,b,22613,13]);class ro{constructor(t,e,r,a){const n=this;if(t.root&&a&&a.getChildByName(e))throw Error(Xi);r||(r={}),Object.assign(n,{fs:t,name:e,data:r.data,options:r.options,id:t._e++,parent:a,children:[],uncompressedSize:r.uncompressedSize||0,Le:r.Le||r.uncompressedSize===F,passThrough:r.passThrough}),!a&&t.root||(t.entries[n.id]=n),a&&n.parent.children.push(n)}moveTo(t){this.fs.move(this,t)}getFullname(){return this.getRelativeName()}getRelativeName(t=this.fs.root){let e=this.name,r=this.parent;for(;r&&r!=t;)e=(r.name?r.name+"/":"")+e,r=r.parent;return e}isDescendantOf(t){let e=this.parent;for(;e&&e.id!=t.id;)e=e.parent;return!!e}rename(t){const e=this.parent;if(e&&e.getChildByName(t))throw Error(Xi);this.name=t}}class ao extends ro{constructor(t,e,r,a){super(t,e,r,a);const n=this;n.Reader=r.Reader,n.Writer=r.Writer,r.getData&&(n.getData=r.getData)}clone(){return new ao(this.fs,this.name,this)}async getData(t,e={}){const r=this;if(!t||t.constructor==r.Writer&&r.data&&((t,e)=>{const{contentType:r}=t;return r===F||(t.constructor==Mr?e.type==r:t.constructor!=Tr||e.startsWith(t.data))})(t,r.data))return r.data;{const a=r.reader=mo(r.Reader,r.data,e),n=r.uncompressedSize||a.size;await Promise.all([ma(a),ma(t,n)]);const{signal:s}=e,i=((t,e,r,a)=>{const{onstart:n,onprogress:s,onend:i}=r,{readable:o}=e;return t.data instanceof $a||!n&&!s&&!i?o:Qt(o).pipeThrough(new Be({onstart:n,onprogress:s,onend:i,size:e.size}),{signal:a})})(r,a,e,s),o=!pa(t)&&!!e.preventClose;return r.uncompressedSize=a.size,await Qt(i).pipeTo(te(t.writable),{signal:s,preventClose:o,preventAbort:o}),t.getData?t.getData():t.writable}}isPasswordProtected(){return!(!this.data||!this.data.encrypted)}async checkPassword(t,e={}){const r=this;if(!r.isPasswordProtected())return!0;try{return await r.data.getData(null,Object.assign({},e,{password:t,checkPasswordOnly:!0})),!0}catch(t){if(t.message==dt)return!1;throw t}}getText(t,e){return this.getData(new Wr(t),e)}getBlob(t,e){return this.getData(new Mr(t),e)}getData64URI(t,e){return this.getData(new Tr(t),e)}getUint8Array(t){return this.getData(new ia,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return Z(await this.getUint8Array(t)).buffer}replaceBlob(t){Object.assign(this,{data:t,Reader:Ir,Writer:Mr,reader:null})}replaceText(t){Object.assign(this,{data:t,Reader:Nr,Writer:Wr,reader:null})}replaceData64URI(t){Object.assign(this,{data:t,Reader:Ur,Writer:Tr,reader:null})}replaceUint8Array(t){Object.assign(this,{data:t,Reader:sa,Writer:ia,reader:null})}replaceReadable(t){Object.assign(this,{data:null,Reader:lo(t),Writer:null,reader:null})}}class no extends ro{constructor(t,e,r,a){super(t,e,r,a),this.directory=!0}clone(t){const e=this,r=new no(e.fs,e.name,e);return t&&(r.children=e.children.map(e=>{const a=e.clone(t);return a.parent=r,a})),r}addDirectory(t,e){return zo(this,t,{options:e},!0)}addText(t,e,r={}){return zo(this,t,{data:e,Reader:Nr,Writer:Wr,options:r,uncompressedSize:Pr(e)})}addBlob(t,e,r={}){return zo(this,t,{data:e,Reader:Ir,Writer:Mr,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){let a=e.length;for(;"="==e.charAt(a-1);)a--;const n=e.indexOf(",")+1;return zo(this,t,{data:e,Reader:Ur,Writer:Tr,options:r,uncompressedSize:Math.floor(.75*(a-n))})}addUint8Array(t,e,r={}){return zo(this,t,{data:e,Reader:sa,Writer:ia,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return zo(this,t,{data:e,Reader:class extends aa{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return zo(this,t,{Reader:lo(e),options:r})}addFileSystemEntry(t,e={}){return go(this,t,e)}addFileSystemHandle(t,e={}){return go(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),zo(this,t.name,{data:t,Reader:()=>({readable:t.stream(),size:t.size}),options:e,uncompressedSize:t.size})}Be(t,e){return zo(this,t,e)}importBlob(t,e){return this.importZip(new Ir(t),e)}importData64URI(t,e){return this.importZip(new Ur(t),e)}importUint8Array(t,e){return this.importZip(new sa(t),e)}importHttpContent(t,e){return this.importZip(new aa(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new Mr(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new Tr(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new ia,t)}async exportWritable(t=new WritableStream,e={}){return await this.exportZip({writable:t},e),t}exportFileSystemHandle(t,e={}){return(async(t,e,r)=>{const{onstart:a,onprogress:n,onend:s}=r,i=new AbortController,{signal:o}=i,c=((t,e)=>{if(!t)return()=>{};if(t.aborted)return e.abort(t.reason),()=>{};const r=()=>e.abort(t.reason);return t.addEventListener("abort",r,{once:!0}),()=>t.removeEventListener("abort",r)})(r.signal,i),l=Object.assign({},r,r.readerOptions,{signal:o,onstart:F,onprogress:F,onend:F,preventClose:!1}),d=io([t],t=>co(t,l.passThrough)),p=[];let m=!1,f=0;try{a&&await qe(a,d),await w(t,e),s&&await qe(s,f)}catch(t){try{t.exportedEntryNames=p}catch{}throw t}finally{c()}return e;function u(t){const e=t.getWriter();return new WritableStream({async write(t){await e.write(t),f+=t.length,n&&await qe(n,f,d)},close:()=>e.close(),abort:t=>e.abort(t)})}async function w(t,e){if(r.concurrent){const r=(await Promise.allSettled(t.children.map(t=>h(t,e)))).filter(t=>"rejected"==t.status);if(r.length){const t=r.filter(t=>!wo(t.reason));throw(t=>{const[e]=t,r=t.slice(1).flatMap(t=>[t,...t&&t.entryErrors||[]]).filter(t=>t!==e);if(r.length)try{e.entryErrors=[...e.entryErrors||[],...r]}catch{}return e})((t.length?t:r).map(t=>t.reason))}}else for(const r of t.children)await h(r,e)}async function h(e,r){if(o.aborted){if(m||wo(o.reason))return;throw o.reason===F?new DOMException(to,"AbortError"):o.reason}try{if(e.directory){const t=await r.getDirectoryHandle(e.name,{create:!0});await w(e,t)}else{const a=await r.getFileHandle(e.name,{create:!0}),n=await a.createWritable();try{await e.getData({writable:u(n)},l)}catch(t){throw m?Error($i):t}p.push(e.getRelativeName(t))}}catch(r){m=!0,i.abort(Error($i));try{r.entryName===F&&(r.entryName=e.getRelativeName(t),r.entryId=e.id)}catch{}throw r}}})(this,t,e)}async importZip(t,e={}){let r;t&&typeof t.getEntries==U?(r=t,e=Object.assign({},r.options,e)):(await ma(t),r=new Wn(t,e));const a=[],n=await r.getEntries(e);for(const t of n){let r=this;try{const n=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=n.pop();if(n.forEach(t=>{const e=r;if(r=r.getChildByName(t),r){if(!r.directory)throw Error(Xi)}else r=new no(this.fs,t,{data:null},e),a.push(r)}),t.directory){let e=r;if(s)if(e=r.getChildByName(s),e){if(!e.directory)throw Error(Xi)}else e=new no(this.fs,s,{data:null},r),a.push(e);e==this||e.data||(e.data=t)}else a.push(zo(r,s,{data:t,Reader:po(Object.assign({},e)),uncompressedSize:e.passThrough?t.compressedSize:t.uncompressedSize,passThrough:e.passThrough}))}catch(e){try{e.cause={entry:t}}catch{}throw e}}return a}async exportZip(t,e={}){const r=this;(e=Object.assign({},e)).bufferedWrite===F&&(e.bufferedWrite=!0);const[a]=await Promise.all([fo(r,e.readerOptions),ma(t)]),n=new Gs(t,e);return await(async(t,e,r,a,n)=>{const{onstart:s,onprogress:i,onend:o,onentryprogress:c}=a,l=e,d=io(e.children,()=>1);let p=0,m=0;if(s&&await qe(s,r),a.bufferedWrite)await async function t(e){const r=(await Promise.allSettled(e.children.map(async e=>{await f(e),await t(e)}))).find(t=>"rejected"==t.status);if(r)throw r.reason}(e);else for(const t of e.getChildren({recursive:!0}))await f(t);async function f(e){const{name:s,qe:o}=ho(e,l,a);let f=0;const u=await t.add(s,n.get(e),Object.assign(o,{onstart:F,onend:F,onprogress:async t=>{p+=t-f,f=t,i&&await qe(i,p,r)}}));m++,c&&await qe(c,m,d,u)}o&&await qe(o,p)})(n,r,io([r],oo),e,a),await n.close(e.globalComment),t.getData?t.getData():t.writable}getExportedSize(r={}){const a=this;(r=Object.assign({},r)).bufferedWrite===F&&(r.bufferedWrite=!0);const n=!r.bufferedWrite||!1!==r.keepOrder&&a.children.every(t=>!t.children.length);return(async(r,a,n,s)=>{const i={options:r,config:P()};if(r[pn])throw Error(Us);if(s!==F&&!(s instanceof Uint8Array))throw Error(hs);const o=Ri(s);if(o>e)throw Error(ws);const c=r[dn],l=new Map;let d=!!c,m=0;for(const e of a){let{name:r}=e;const{size:a}=e,n=Object.assign({},e.options);r=r.trim(),yi(i,n,qa)&&!r.endsWith(E)&&(r+=E);const s=Qs(i,r,n);({name:r}=s);const{me:o}=$s(i,r,n);0==o.level||o.compressionMethod!==F||o.passThrough||await We(i.config)||(o.level=0);const p=!yi(i,n,qa);if(p&&a===F)throw Error(Us);const{Ue:f,me:u}=ei(i,p,a,o,n);if(p&&!o.passThrough&&zi(u.compressionMethod,u.level))throw Error(Us);const w=Object.assign({},n,s.me,o,u),h=ri(w),y=si(w),b={we:h,be:Ri(h.fe,y.ue)};c&&ai(b,m);const g=p?f:0;t>m||(d=!0),l.set(r,Object.assign({},w,h,{offset:m,diskNumberStart:0,compressedSize:g})),m+=b.be+g}if(d&&!n)throw Error(Us);const f=ii(l);let u=yi(i,r,Pa);if(m>=t||f>=t||l.size>=e){if(!1===u)throw Error(Ds);u=!0}return m+f+o+(u?98:p)})(r,Array.from(a.getChildren({recursive:!0}),t=>{const{name:e,qe:n}=ho(t,a,r);return{name:e,size:t.directory?0:yo(t,bo(t,r)),options:n}}),n,r.globalComment)}getChildByName(t){const e=this.children;for(let r=0;r<e.length;r++){const a=e[r];if(a.name==t)return a}}getChildren(t={}){return((t,e)=>{const r=[],a=[t];let n=0;for(;n<a.length;)for(const t of a[n++].children)r.push(t),e&&a.push(t);return r})(this,t.recursive)}isPasswordProtected(){const t=this.children;for(let e=0;e<t.length;e++)if(t[e].isPasswordProtected())return!0;return!1}async checkPassword(t,e={}){const r=this.children;return!(await Promise.all(r.map(r=>r.checkPassword(t,e)))).includes(!1)}}const so={FS:class{constructor(){vo(this)}get children(){return this.root.children}remove(t){uo(t);const e=[t];for(;e.length;){const t=e.pop();this.entries[t.id]=null;for(const r of t.children)e.push(r)}t.parent=F}move(t,e){if(t==this.root)throw Error("Root directory cannot be moved");if(!e.directory)throw Error("Target entry is not a directory");if(e.isDescendantOf(t))throw Error("Entry is a ancestor of target entry");if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw Error(Xi)}else uo(t),t.parent=e,e.children.push(t),((t,e)=>{const r=[e];for(;r.length;){const e=r.pop();t.entries[e.id]=e;for(const t of e.children)r.push(t)}})(this,t)}}find(t){const e=t.split("/");let r=this.root;for(let t=0;r&&t<e.length;t++)r=r.getChildByName(e[t]);return r||(r=this.entries.find(e=>e&&(e==this.root||e.isDescendantOf(this.root))&&e.getRelativeName()==t)),r}getById(t){return this.entries[t]}getChildByName(t){return this.root.getChildByName(t)}getChildren(t){return this.root.getChildren(t)}addDirectory(t,e){return this.root.addDirectory(t,e)}addText(t,e,r){return this.root.addText(t,e,r)}addBlob(t,e,r){return this.root.addBlob(t,e,r)}addData64URI(t,e,r){return this.root.addData64URI(t,e,r)}addUint8Array(t,e,r){return this.root.addUint8Array(t,e,r)}addHttpContent(t,e,r){return this.root.addHttpContent(t,e,r)}addReadable(t,e,r){return this.root.addReadable(t,e,r)}addFileSystemEntry(t,e){return this.root.addFileSystemEntry(t,e)}addFileSystemHandle(t,e){return this.root.addFileSystemHandle(t,e)}addFile(t,e){return this.root.addFile(t,e)}Be(t,e){return this.root.Be(t,e)}importBlob(t,e){return vo(this),this.root.importBlob(t,e)}importData64URI(t,e){return vo(this),this.root.importData64URI(t,e)}importUint8Array(t,e){return vo(this),this.root.importUint8Array(t,e)}importHttpContent(t,e){return vo(this),this.root.importHttpContent(t,e)}importReadable(t,e){return vo(this),this.root.importReadable(t,e)}importZip(t,e){return vo(this),this.root.importZip(t,e)}exportBlob(t){return this.root.exportBlob(t)}exportData64URI(t){return this.root.exportData64URI(t)}exportUint8Array(t){return this.root.exportUint8Array(t)}exportWritable(t,e){return this.root.exportWritable(t,e)}exportFileSystemHandle(t,e){return this.root.exportFileSystemHandle(t,e)}exportZip(t,e){return this.root.exportZip(t,e)}getExportedSize(t){return this.root.getExportedSize(t)}isPasswordProtected(){return this.root.isPasswordProtected()}checkPassword(t,e){return this.root.checkPassword(t,e)}},ZipDirectoryEntry:no,ZipFileEntry:ao};function io(t,e){let r=0;const a=Array.from(t);for(;a.length;){const t=a.pop();r+=e(t)||0;for(const e of t.children)a.push(e)}return r}function oo(t){return t.uncompressedSize}function co(t,e){const{data:r}=t;return e&&r instanceof $a?r.compressedSize:t.uncompressedSize}function lo(t){let e;return()=>{if(e)throw Error(Ji);return e=!0,{readable:t}}}function po(t){return class extends Dr{constructor(t,e={}){super(),this.entry=t,this.options=e}async init(){const e=this,r=Object.assign({},t,e.options),{checkOverlappingEntry:a,checkOverlappingEntryOnly:n}=r,s=await e.entry.getData(new Mr,Object.assign(r,{checkPasswordOnly:!1,checkOverlappingEntry:n||a,checkOverlappingEntryOnly:!1,preventClose:!1}));e.data=s,e.Ve=new Ir(s),e.size=s.size,super.init()}readUint8Array(t,e){return this.Ve.readUint8Array(t,e)}}}function mo(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function fo(t,e){const r=[],a=[t],n=new Map;for(;a.length;){const t=a.pop();for(const e of t.children)e.directory?a.push(e):r.push(e)}return await Promise.all(r.map(async t=>{const r=t.reader=mo(t.Reader,t.data,e);n.set(t,r);try{await ma(r)}catch(e){try{e.entryId=t.id,e.cause={entry:t}}catch{}throw e}r.size!==F&&(t.uncompressedSize=r.size,t.Le=!1)})),n}function uo(t){if(t.parent){const e=t.parent.children;e.forEach((r,a)=>{r.id==t.id&&e.splice(a,1)})}}function wo(t){return!!t&&t.message==$i}function ho(t,e,r){const a=r.relativePath?t.getRelativeName(e):t.getFullname(),n=t.options||{};let s={},i={};if(t.data instanceof $a){const{externalFileAttributes:e,versionMadeBy:a,comment:n,lastModDate:o,creationDate:c,lastAccessDate:l,uncompressedSize:d,encrypted:p,zipCrypto:m,crc32:f,compressionMethod:u,extraFieldAES:w,internalFileAttributes:h,extraField:y,uid:b,gid:g}=t.data;s={externalFileAttributes:e,versionMadeBy:a,comment:n,lastModDate:o,creationDate:c,lastAccessDate:l,internalFileAttributes:h};const x=(t=>{if(t){const e=new Map;if(t.forEach((t,r)=>{eo.has(r)||e.set(r,t.data)}),e.size)return e}})(y);if(x&&(s.extraField=x),b===F&&g===F||Object.assign(s,{uid:b,gid:g,unixExtraFieldType:"infozip"}),bo(t,r)){let t,e;0===u&&(t=0),w&&(e=w.strength),i={passThrough:!0,encrypted:p,zipCrypto:m,crc32:f,uncompressedSize:d,level:t,encryptionStrength:e,compressionMethod:u}}}const o=Object.assign({},s,r,i,n,{directory:t.directory});if(!t.directory&&o.passThrough&&o.uncompressedSize===F)throw Error(Qi);return{name:a,qe:o}}function yo(t,e){const{reader:r}=t;return r&&r.size!==F?r.size:t.Le?F:co(t,e)}function bo(t,e){const{readerOptions:r}=e;return!(t.directory||!(t.passThrough||r&&r.passThrough))}function go(t,e,r){return async function t(e,a,n,s=""){if(a){const i=s?s+"/"+a.name:a.name;try{if((a.isFile||a.isDirectory)&&(a=await xo(a)),"file"==a.kind){const t=await a.getFile();n.push(e.Be(t.name,{Reader:()=>({readable:t.stream(),size:t.size}),options:Object.assign({},{lastModDate:new Date(t.lastModified)},r),uncompressedSize:t.size}))}else if("directory"==a.kind){const s=e.addDirectory(a.name,r);n.push(s);for await(const e of a.values())await t(s,e,n,i)}}catch(t){try{t.entryName===F&&(t.entryName=i)}catch{}throw t}}return n}(t,e,[])}async function xo(t){const e={name:t.name};if(t.isFile&&(e.kind="file",e.getFile=()=>new Promise((e,r)=>t.file(e,r))),t.isDirectory){e.kind="directory";const r=await(async t=>{const e=[];function r(t,a,n){t.readEntries(async s=>{if(s.length){for(const t of s)e.push(await xo(t));r(t,a,n)}else a(e)},n)}return await new Promise((e,a)=>r(t.createReader(),e,a)),{[Symbol.iterator](){let t=0;return{next(){const r={value:e[t],done:t==e.length};return t++,r}}}}})(t);e.values=()=>r}return e}function vo(t){t.entries=[],t._e=0,t.root=new no(t)}function zo(t,e,r,a){if(t.directory)return a?new no(t.fs,e,r,t):new ao(t.fs,e,r,t);throw Error("Parent entry is not a directory")}let So;function Eo(t){return t&&(So||(So=(()=>{const t=Object.create(null);for(const e of"application:0andrew-inset ez,2nodex anx,1pplixware aw,1tom!,4cat!,4serv! atomsrv,5vc!,0bbolin lin,0ccxml!,1dmi-capability cdmia,6ontainer cdmic,5domain cdmid,5object cdmio,5queue cdmiq,1u-seeme cu,0davmount!,1ocbook! dbk,1sptype tsp,2sc+der,4! xdssc,0ecmascript es ecma,1mma!,1nvoy evy,1pub+zip,1xi,0font-tdpfr pfr,1ractals fif,1uturesplash spl,0gml!,1px!,1xf,1zip gz tgz,0hta,1yperstudio stk,0inkml! ink inkml,2ternet-property-stream acx,1pfix,0java-archive jar,5serialized-object ser,5vm class,1sonml+json,0lost! lostxml,0m3g,1ac-binhex40 hqx,2ds!,2rc mrc,4xml! mrcx,2thematica nb ma mb,4ml! mathml mml,1box,1ediaservercontrol! mscml,2talink!,84! meta4,3s!,1ods!,1p21 m21 mp21,24 mp4s,1saccess mdb,2word doc dot wiz,1xf,0oda,1ebps-package! opf,1gg ogx,1lescript axs,1mdoc!,1nenote onetoc onetoc2 onetmp onepkg,1xps,0patch-ops-error! xer,1df,1gp-encrypted pgp,4keys key,4signature asc sig,1ics-rules prf,1kcs10 p10,47-mime p7m p7c,6signature p7s,48 p8,2ix-attr-cert ac,5crl crl,5pkipath pkipath,4cmp pki,1ls!,1ostscript ps ai eps epsi epsf eps2 eps3,1rs.cww cww,1skc! pskcxml,0rar,1df!,1eginfo! rif,2lax-ng-compact-syntax rnc,2source-lists! rl,e-diff! rld,1ls-services! rs,1pki-ghostbusters gbr,5manifest mft,5roa roa,1sd!,2s!,1tf,0sbml!,1cvp-cv-request scq,asponse scs,5vp-request spq,asponse spp,1dp,1et-payment-initiation setpay,4registration-initiation setreg,1hf!,1mil! smi smil,1parql-query rq,7results! srx,1rgs gram,4! grxml,2u!,1sdl!,2ml!,0tei! tei teicorpus,1hraud! tfi,1imestamped-data tsd,0vnd.3gpp.pic-bw-large plb,gsmall psb,gvar pvb,82.tcap tcap,5m.post-it-notes pwn,4accpac.simply.aso aso,iimp imp,6ucobol acu,9rp atc acutc,5dobe.air-application-installer-package+zip air,aformscentral.fcdt fcdt,bxp fxp fxpl,axdp! xdp,bfdf xfdf,5head.space ahead,5irzip.filesecure.azf azf,os azs,5mazon.ebook azw,6ericandynamics.acc acc,6iga.ami ami,5ndroid.package-archive apk,6ser-web-certificate-issue-initiation cii,efunds-transfer-initiation fti,6tix.game-component atx,5pple.installer! mpkg,ampegurl m3u8,5ristanetworks.swi swi,5straea-software.iota iota,5udiograph aep,4blueice.multipass mpm,5mi bmi,5usinessobjects rep,4chemdraw! cdxml,6ipnuts.karaoke-mmd mmd,5inderella cdy,5laymore cla,6oanto.rp9 rp9,7nk.c4group c4g c4d c4f c4p c4u,6uetrust.cartomobile-config c11amc,w-pkg c11amz,5ommonspace csp,6ntact.cmsg cdbcmsg,6smocaller cmc,5rick.clicker clkx,h.keyboard clkk,ipalette clkp,itemplate clkt,iwordbank clkw,7ticaltools.wbs! wbs,5tc-posml pml,5ups-ppd ppd,6rl.car car,9pcurl pcurl,4dart dart,6ta-vision.rdz rdz,5ebian.binary-package deb udeb,6ce.data uvf uvvf uvd uvvd,9ttml! uvt uvvt,9unspecified uvx uvvx,9zip uvz uvvz,6novo.fcselayout-link fe_launch,5na dna,5olby.mlp mlp,5pgraph dpg,5reamfactory dfac,5s-keypoint kpxx,5vb.ait ait,8service svc,5ynageo geo,4ecowin.chart mag,5nliven nml,5pson.esf esf,amsf msf,aquickanime qam,asalt slt,bsf ssf,5szigno3! es3 et3,5zpix-album ez2,apackage ez3,4fdf fdf,6sn.mseed mseed,9seed seed dataless,5lographit gph,6uxtime.clip ftc,5ramemaker fm frame maker book,6ogans.fnc fnc,cltf ltf,5sc.weblaunch fsc,5ujitsu.oasys oas,h2 oa2,h3 oa3,hgp fg5,hprs bh2,8xerox.ddd ddd,focuworks xdw,n.binder xbd,6zzysheet fzs,4genomatix.tuxedo txd,6ogebra.file ggb,dtool ggt,7metry-explorer gex gre,7next gxt,7plan g2w,7space g3w,5mx gmx,5oogle-earth.kml! kml,jz kmz,5rafeq gqf gqs,6oove-account gac,bhelp ghf,bidentity-message gim,cnjector grv,btool-message gtm,gtemplate tpl,bvcard vcg,4hal! hal,6ndheld-entertainment! zmm,5bci hbci,5he.lesson-player les,5p-hpgl hpgl,9id hpid,9s hps,7jlyt jlt,7pcl pcl,axl pclxl,5ydrostatix.sof-data sfd-hdstx,5zn-3d-crossword x3d,4ibm.minipay mpy,9odcap afp listafp list3820,8rights-management irm,8secure-container sc,5ccprofile icc icm,5gloader igl,5mmervision-ivp ivp,iu ivu,5nsors.igm igm,6tercon.formnet xpw xpx,9geo i2g,7u.qbo qbo,afx qfx,5punplugged.rcprofile rcprofile,5repository.package! irp,5s-xpr xpr,6ac.fcs fcs,4jam jam,5cp.javame.midlet-rms rms,5isp jisp,5oost.joda-archive joda,4kahootz ktz ktr,5de.karbon karbon,9chart chrt,9formula kfo,9ivio flw,9ontour kon,9presenter kpr kpt,9spread ksp,9word kwd kwt,5enameaapp htke,5idspiration kia,6nar kne knp,5oan skp skd skt skm,6dak-descriptor sse,4las.las! lasxml,5lamagraphics.life-balance.desktop lbd,vexchange! lbe,5otus-1-2-3 123,aapproach apr,afreelance pre,anotes nsf,aorganizer org,ascreencam scm,awordpro lwp,4macports.portpkg portpkg,5cd mcd,5edcalcdata mc1,7iastation.cdkey cdkey,5fer mwf,6mp mfm,5icrografx.flo flo,figx igx,6f mif,5obius.daf daf,cis dis,bmbk mbk,cqy mqy,csl msl,bplc plc,btxf txf,6phun.application mpn,bcertificate mpc,6zilla.xul! xul,5s-artgalry cil,7cab-compressed cab,7excel xls xlb xlt xlm xla xlc xlw,c.addin.macroenabled.12 xlam,dsheet.binary.macroenabled.12 xlsb,jmacroenabled.12 xlsm,dtemplate.macroenabled.12 xltm,7fontobject eot,7htmlhelp chm,7ims ims,7lrm lrm,7officetheme thmx,8utlook msg,7pki.seccat cat,ctl stl,acertstore sst,8owerpoint ppt pps pot ppa pwz,h.addin.macroenabled.12 ppam,ipresentation.macroenabled.12 pptm,islide.macroenabled.12 sldm,nshow.macroenabled.12 ppsm,itemplate.macroenabled.12 potm,8roject mpp mpt,7word.document.macroenabled.12 docm,ctemplate.macroenabled.12 dotm,aks wps wks wcm wdb,8pl wpl,7xpsdocument xps,6eq mseq,5usician mus,6vee.style msty,5ynfc taglet,4neurolanguage.nlu nlu,5itf ntf nitf,5oblenet-directory nnd,dsealer nns,dweb nnw,6kia.n-gage.data ngdat,hsymbian.install n-gage,aradio-preset rpst,ms rpss,6vadigm.edm edm,fx edx,ext ext,4oasis.opendocument.chart odc,s-template otc,ndatabase odb,nformula odf,u-template odft,ngraphics odg,v-template otg,nimage odi,s-template oti,npresentation odp,z-template otp,nspreadsheet ods,y-template ots,ntext odt,r-master odm otm,stemplate ott,sweb oth,5lpc-sugar xo,5ma.dd2! dd2,5penofficeorg.extension oxt,8xmlformats-officedocument.presentationml.presentation pptx,zresentationml.slide sldx,zresentationml.slideshow ppsx,zresentationml.template potx,yspreadsheetml.sheet xlsx,zpreadsheetml.template xltx,ywordprocessingml.document docx,zordprocessingml.template dotx,5sgeo.mapguide.package mgp,7i.dp dp,9subsystem esa,4palm pdb pqa oprc,6waafile paw,5g.format str,7osasli ei6,5icsel efif,5mi.widget wg,5ocketlearn plf,6werbuilder6 pbd,5reviewsystems.box box,6oteus.magazine mgz,5ublishare-delta-tree qps,5vi.ptid1 ptid,4quark.quarkxpress qxd qxt qwd qwt qxl qxb,4realvnc.bed bed,6cordare.musicxml mxl,m! musicxml,5ig.cryptonote cryptonote,5n-realmedia rm,g-vbr rmvb,5oute66.link66! link66,4sailingtracker.track st,5eemail see,6ma sema,7d semd,7f semf,5hana.informed.formdata ifm,ntemplate itp,jinterchange iif,jpackage ipk,5imtech-mindmapper twd twds,5maf mmf,7rt.teacher teacher,5olent.sdkm! sdkm sdkd,5potfire.dxp dxp,dsfs sfs,5qlite3 db sqlite sqlite3 db-wal sqlite-wal db-shm sqlite-shm,5tardivision.calc sdc,ihart sds,hdraw sda,himpress sdd,hmath sdf smf,hwriter sdw vor,n-global sgl,6epmania.package smzip,estepchart sm,5un.xml.calc sxc,g.template stc,cdraw sxd,g.template std,cimpress sxi,j.template sti,cmath sxm,cwriter sxw,i.global sxg,jtemplate stw,6s-calendar sus susp,5vd svd,5ymbian.install sis sisx,6ncml! xsm,a.dm+wbxml bdm,d! xdm,4tao.intent-module-archive tao,5cpdump.pcap pcap cap dmp,5mobile-livetv tmo,5rid.tpt tpt,7scape.mxs mxs,6ueapp tra,4ufdl ufd ufdl,5iq.theme utz,5majin umj,5nity unityweb,5oml! uoml,4vcx vcx,5isio vsd vst vss vsw vsdx vssx vstx vssm vstm,9nary vis,5sf vsf,4wap.sic sic,9lc slc,8wbxml wbxml,9mlc wmlc,bscriptc wmlsc,5ebturbo wtb,5olfram.player nbp,6rdperfect wpd,f5.1 wp5,5qd wqd,5t.stf stf,4xara xar,5fdl xfdl,4yamaha.hv-dic hvd,escript hvs,evoice hvp,bopenscoreformat osf,q.osfpvg! osfpvg,bsmaf-audio saf,gphrase spf,5ellowriver-custom-menu cmp,4zul zir zirz,5zazz.deck! zaz,1oicexml! vxml,0widget wgt,2nhlp hlp,1sdl!,2policy!,0x-123 wk,27z-compressed 7z,2abiword abw,3ce-compressed ace,3pple-diskimage dmg,3uthorware-bin aab x32 u32 vox,dmap aam,dseg aas,2bcpio bcpio,3ittorrent torrent,3lorb blb blorb,3zip bz,62 bz2 boz,2cbr cbr cba cbt cb7,4z cbz,3df cdf cda,4link vcd,3fs-compressed cfs,3hat chat,4ess-pgn pgn,3ompress z,4nference nsc,3pio cpio,3sh csh,2dgc-compressed dgc,3irector dir dxr cst cct cxt w3d fgd swa,3ms dms,3oom wad,3tbncx! ncx,5ook! dtb,5resource! res,3vi dvi,2eva eva,2font-bdf bdf,7ghostscript gsf,7linux-psf psf,7pcf pcf,7snf snf,7ttf ttf ttc,8ype1 pfa pfb pfm afm,3reearc arc,6mind mm,2gca-compressed gca,3lulx ulx,3numeric gnumeric,3o-sgf sgf,3ramps-xml gramps,5phing-calculator gcf,3tar gtar taz,2hdf hdf,3ttpd-eruby rhtml,8php phtml pht php,b-source phps,b3 php3,c-preprocessed php3p,b4 php4,b5 php5,2ica ica,3nfo info,4stall-instructions install,4ternet-signup ins isp,3phone iii,3so9660-image iso,2java-jnlp-file jnlp,3mol jmz,2killustrator kil,3rita kra krz,2latex latex,3yx lyx,3zh-compressed lzh lha,4x lzx,2maker frm fb fbdoc,3ie mie,3obipocket-ebook prc mobi,3s-application application,5installer msi,5shortcut lnk,5wmd wmd,5xbap xbap,4binder obd,4cardfile crd,5lip clp,4dos-program com exe bat dll,4mediaview mvb m13 m14,6tafile wmf wmz emf emz,5oney mny,4publisher pub,4schedule scd,4terminal trm,4write wri,2netcdf nc,3s-proxy-autoconfig pac dat,3wc nwc,3zb nzb,2object o,3z-application oza,2perfmon pma pmc pmr pmw,5l pm pl,3kcs12 p12 pfx,67-certificates p7b spc,creqresp p7r,3ython-code pyc pyo,2qgis qgs shp shx,3uicktimeplayer qtl,2redhat-package-manager rpm rpa,4search-info-systems ris,3uby rb,2sh sh,4ar shar,4ockwave-flash swf swfl,3ilverlight scr,d-app xap,3ql sql,3tuffit sit,9x sitx,3ubrip srt,3v4cpio sv4cpio,6rc sv4crc,2t3vm-image t3,3ar tar,3ex-gf gf,6pk pk,6tfm tfm,5info texinfo texi,3gif obj,3rash ~ % bak old sik,2ustar ustar,2wais-source src,3ingz wz,2x509-ca-cert crt der cer,3cf xcf,3fig fig,3liff! xlf,3pinstall xpi,3z xz,2zmachine z1 z2 z3 z4 z5 z6 z7 z8,1aml!,1cap-diff! xdf,1enc!,1html! xhtml xht,1ml xml xsl xsd xpdl,3-dtd dtd,1op!,1proc! xpl,1slt!,2pf!,1v! mxml xhvml xvml xvm,0yaml yaml yml,2ng,1in!,1nd.ms-pkipko pko,0zip;audio:0aac,1dpcm adp,1iff aiff aif aff,1mr,3-wb awb,1nnodex axa,0basic au snd,0flac,0midi mid midi kar rmi,1p4 mp4a,2eg mpga mpega mp3 m4a mp2a m2a m3a,4url m3u,0ogg oga ogg spx,1pus,0prs.sid sid,0s3m,1ilk sil,0vnd.dece.audio uva uvva,5igital-winds eol,5ra dra,5ts dts,7.hd dtshd,4lucent.voice lvp,4ms-playready.media.pya pya,4nuera.ecelp4800 ecelp4800,f7470 ecelp7470,f9600 ecelp9600,4rip rip,0wav,1ebm weba,0x-aiff aifc,2caf caf,2gsm gsm,2matroska mka,3s-wax wax,6ma wma,2pn-realaudio ram,e-plugin rmp,2realaudio ra,2sd2 sd2,1m;chemical:0x-alchemy alc,2cache cac cache,7-csf csf,5tvs-binary cbin cascii ctab,3dx cdx,3hem3d c3d,3if cif,3mdf cmdf,4l cml,3ompass cpa,3rossfire bsd,3sml csml csm,3tx ctx,3xf cxf cef,2embl-dl-nucleotide emb embl,2gamess-input inp gam gamin,4ussian-checkpoint fch fchk,cube cub,binput gau gjc gjf,blog gal,3cg8-sequence gcg,3enbank gen,2hin hin,2isostar istr ist,2jcamp-dx jdx dx,2kinemage kin,2macmolecule mcm,5romodel-input mmod,3dl-molfile mol,6rdfile rd,7xnfile rxn,6sdfile sd,6tgf tgf,3mcif mcif,3ol2 mol2,5conn-Z b,4pac-graph gpt,8input mop mopcrt zmt,8out moo,2ncbi-asn1 asn,b-ascii prt ent,cbinary val,2rosdal ros,2swissprot sw,2vamas-iso14976 vms,3md vmd,2xtel xtel,3yz xyz;font:0otf,0woff,42;image:0avif avif avifs,0bmp,0cgm,1is-cod cod,0g3fax g3,1if,0heic heif heic,0ief,0jpeg jpeg jpg jpe jfif jfif-tbnl jif,0ktx,0pcx,1jpeg pjpg,1ng,1rs.btif btif,0sgi,1vg! svg svgz,0tiff tiff tif,0vnd.adobe.photoshop psd,4dece.graphic uvi uvvi uvg uvvg,5jvu djvu djv,5wg dwg,5xf dxf,4fastbidsheet fbs,5px fpx,5st fst,5ujixerox.edmics-mmr mmr,lrlc rlc,4ms-modi mdi,7photo wdp,4net-fpx npx,4wap.wbmp wbmp,4xiff xif,0webp,0x-3ds 3ds,2adobe-dng dng,2canon-cr2 cr2,aw crw,3mu-raster ras,4x cmx,3oreldraw cdr,bpattern pat,btemplate cdt,7photopaint cpt,2epson-erf erf,2freehand fh fhc fh4 fh5 fh7,3uji-raf raf,2icns icns,4on ico,2jg art,3ng jng,2kodak-dcr dcr,8k25 k25,9dc kdc,2minolta-mrw mrw,2nikon-nef nef,2olympus-orf orf,2panasonic-raw raw rw2 rwl,3entax-pef pef ptx,3ict pic pct,3ortable-anymap pnm,bbitmap pbm,bgraymap pgm,bpixmap ppm,2rgb rgb,2sigma-x3f x3f,3ony-arw arw,7sr2 sr2,9f srf,2tga tga,2xbitmap xbm,3pixmap xpm,3windowdump xwd;message:0rfc822 eml mime mht mhtml nws;model:0iges igs iges,0mesh msh mesh silo,0vnd.collada! dae,4dwf dwf,4gdl gdl,5tw gtw,4mts mts,4usdz+zip usdz,4vtu vtu,1rml wrl vrml,0x3d+binary x3db x3dbz,4vrml x3dv x3dvz,3! x3dz;text:0cache-manifest manifest appcache,2lendar ics icz ifb,1ss,2v,0h323 323,1tml html htm shtml stm,0iuls uls,0javascript js,1son,0markdown md markdown mdown markdn,0n3,0plain txt text brf conf def list log in bas diff ksh,1rs.lines.tag dsc,0richtext rtx,0scriptlet sct wsc,1gml sgml sgm,0tab-separated-values tsv,1exmacs tm,1roff t tr roff man me ms,1urtle ttl,0uri-list uri uris urls,0vcard,1nd.curl curl,8.dcurl dcurl,9mcurl mcurl,9scurl scurl,4dvb.subtitle sub,4fly fly,5mi.flexstor flx,4graphviz gv,4in3d.3dml 3dml,9spot spot,4sun.j2me.app-descriptor jad,4wap.si si,9l sl,8wml wml,bscript wmls,0webviewhtml htt,0x-asm s asm,2bibtex bib,3oo boo,2c c h dic,3++hdr h++ hpp hxx hh,5src c++ cpp cxx cc,3omponent htc,2diff patch,3src d,2fortran f for f77 f90,2haskell hs,2java java,2literate-haskell lhs,2moc moc,2nfo nfo,2opml opml,2pascal p pas pp inc,3cs-gcd gcd,3ython py,2scala scala,3etext etx,3fv sfv,2tcl tcl tk,3ex tex ltx sty cls,2uuencode uu,2vcalendar vcs,5rd vcf;video:03gpp 3gp,42 3g2,0annodex axv,0dl,1v dif dv,0fli,0gl,0h261,33,34,0jpeg jpgv,2m jpm jpgm,0mj2 mj2 mjp2,1p2t ts,24 mp4 mp4v mpg4,2eg mpeg mpg mpe m1v m2v mp2 mpa mpv2,0ogg ogv,0quicktime qt mov,0vnd.dece.hd uvh uvvh,9mobile uvm uvvm,9pd uvp uvvp,9sd uvs uvvs,9video uvv uvvv,5vb.file dvb,4fvt fvt,4mpegurl mxu m4u,5s-playready.media.pyv pyv,4uvvu.mp4 uvu uvvu,4vivo viv,0webm,0x-f4v f4v,3lv flv,2la-asf lsf lsx,2m4v m4v,3atroska mpv mkv mk3d mks,3ng mng,3s-asf asf asx asr,5vob vob,5wm wm,7v wmv,7x wmx,6vx wvx,4video avi,2sgi-movie movie,3mv smv;x-conference:0x-cooltalk ice;x-world:0x-vrml vrm flr wrz xaf xof".split(";")){const r=e.indexOf(":"),a=e.slice(0,r);let n="";for(const s of e.slice(r+1).split(",")){const e=s.split(" "),r=n.slice(0,Number.parseInt(e[0][0],36))+e[0].slice(1);n=r;const i=r.replace(/!/g,"+xml"),o=e.length>1?e.slice(1):[i.split("+")[0]];for(const e of o)t[e]=a+"/"+i}}return t})()),So)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{Ir as BlobReader,Mr as BlobWriter,Ur as Data64URIReader,Tr as Data64URIWriter,to as ERR_ABORTED,Fn as ERR_AMBIGUOUS_ARCHIVE,yn as ERR_BAD_FORMAT,xn as ERR_CENTRAL_DIRECTORY_NOT_FOUND,us as ERR_DUPLICATED_NAME,Sn as ERR_ENCRYPTED,Dn as ERR_ENCRYPTED_CENTRAL_DIRECTORY,Xi as ERR_ENTRY_EXISTS,gn as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,bn as ERR_EOCDR_NOT_FOUND,zn as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,yr as ERR_HTTP_RANGE,br as ERR_HTTP_RESOURCE_CHANGED,mt as ERR_INVALID_AUTHENTICATION_CODE,ee as ERR_INVALID_CODEC_DEFINITION,ae as ERR_INVALID_CODEC_MODULE,ws as ERR_INVALID_COMMENT,hs as ERR_INVALID_COMMENT_TYPE,fe as ERR_INVALID_COMPRESSED_DATA,ue as ERR_INVALID_CRC32,xs as ERR_INVALID_ENCRYPTION_STRENGTH,ys as ERR_INVALID_ENTRY_COMMENT,bs as ERR_INVALID_ENTRY_NAME,Es as ERR_INVALID_EXTRAFIELD_DATA,Ss as ERR_INVALID_EXTRAFIELD_TYPE,Tn as ERR_INVALID_FILENAME_VALIDATION,Is as ERR_INVALID_GID,Ls as ERR_INVALID_LEVEL,jn as ERR_INVALID_MAX_APPENDED_DATA_SIZE,Ws as ERR_INVALID_MSDOS_ATTRIBUTES,_s as ERR_INVALID_MSDOS_DATA,dt as ERR_INVALID_PASSWORD,Bs as ERR_INVALID_PASSWORD_TYPE,Qi as ERR_INVALID_PASS_THROUGH,pt as ERR_INVALID_SIGNATURE,qs as ERR_INVALID_SIGNATURE_DATA,Un as ERR_INVALID_STRICTNESS,Cs as ERR_INVALID_UID,me as ERR_INVALID_UNCOMPRESSED_SIZE,Ns as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,Ps as ERR_INVALID_UNIX_ID_SIZE,Ms as ERR_INVALID_UNIX_MODE,gs as ERR_INVALID_VERSION,gr as ERR_ITERATOR_COMPLETED_TOO_SOON,vn as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Rn as ERR_OVERLAPPING_ENTRY,Ji as ERR_READABLE_CONSUMED,re as ERR_RESERVED_COMPRESSION_METHOD,An as ERR_SPLIT_ZIP_FILE,Ts as ERR_UNDEFINED_READER,Os as ERR_UNDEFINED_UNCOMPRESSED_SIZE,Us as ERR_UNDETERMINED_SIZE,On as ERR_UNSAFE_FILENAME,kn as ERR_UNSUPPORTED_COMPRESSION,Ni as ERR_UNSUPPORTED_CONTEXT,ut as ERR_UNSUPPORTED_CRYPTO_API,En as ERR_UNSUPPORTED_ENCRYPTION,zs as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,vs as ERR_UNSUPPORTED_ENCRYPTION_USDZ,Ds as ERR_UNSUPPORTED_FORMAT,Ce as ERR_WORKER_STARTUP_TIMEOUT,xr as ERR_WRITER_NOT_INITIALIZED,js as ERR_ZIP_NOT_EMPTY,na as HttpRangeReader,aa as HttpReader,Dr as Reader,oa as SplitDataReader,ca as SplitDataWriter,Nr as TextReader,Wr as TextWriter,sa as Uint8ArrayReader,ia as Uint8ArrayWriter,Or as Writer,Wn as ZipReader,_n as ZipReaderStream,Gs as ZipWriter,Xs as ZipWriterStream,_ as configure,Ci as createBlobTempStream,Ti as createOPFSTempStream,Pi as createSyncAccessHandleTempStream,so as fs,Eo as getMimeType,oe as registerCodec,q as resetConfiguration,Gi as terminateWorkers,ce as unregisterCodec};
|
|
1
|
+
const t=4294967295,e=65535,r=255,a=67324752,n=134695760,s=n,i=84233040,o=33639248,c=101010256,l=101075792,d=117853008,p=22,f=20,u=56,m=39169,w=21589,h=6534,y=30837,b=30805,g=2048,x=61440,v=16384,E=2048,S=1024,z="/",k=30,A=new Date(2107,11,31,23,59,58),R=new Date(1980,0,1),F=void 0,D=1/0,O="undefined",U="function",j="object",T="string",I=new Uint8Array,C="password",M="rawPassword",N="passThrough",P="signal",_="useWebWorkers",W="useCompressionStream",L="transferStreams",B="preventClose",q="offset",V="usdz",Z="signCentralDirectory",H="filename",K="comment",Y="strict",G="balanced",X="tolerant",J="Invalid option (must be a function)",Q="Invalid signal (must be an AbortSignal instance)",$="Invalid password (password must be a string, rawPassword must be a Uint8Array)";function tt(t){if(t&&typeof t!=U)throw Error(J);return t}function et(t){if(t&&(typeof t.addEventListener!=U||"boolean"!=typeof t.aborted))throw Error(Q);return t||F}function rt(t,e){if(t&&typeof t!=T||e&&!(e instanceof Uint8Array))throw Error($)}function at(t){return typeof t==T&&t.trim()?Number(t):t}const nt="Invalid maxWorkers (must be an integer greater than 0)";let st=2;try{typeof navigator!=O&&navigator.hardwareConcurrency&&(st=navigator.hardwareConcurrency)}catch{}const it={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:st,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=O&&CompressionStream,DecompressionStream:typeof DecompressionStream!=O&&DecompressionStream},ot="maxWorkers",ct=["chunkSize",ot,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],lt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],dt=["baseURI","wasmURI","workerURI","useCompressionStream","useWebWorkers","transferStreams",...ct,...lt],pt={...it};function ft(){return pt}function ut(t){return mt(t.chunkSize)}function mt(t){return t=at(t),Number.isInteger(t)&&t>=1?Math.max(t,64):65536}function wt(t){Object.assign(pt,ht(bt(t)))}function ht(t){const e={};for(const r of dt){const a=t[r];a!==F&&(e[r]=yt(r,a))}return e}function yt(t,e){if(ct.includes(t)){if(e=at(e),t==ot&&(!Number.isInteger(e)||1>e))throw Error(nt)}else lt.includes(t)&&tt(e);return e}function bt(t){t=t||{};const{CompressionStreamZlib:e,DecompressionStreamZlib:r}=t;if(e===F&&r===F)return t;const a=Object.assign({},t);return a.CompressionStreamFallback===F&&(a.CompressionStreamFallback=e),a.DecompressionStreamFallback===F&&(a.DecompressionStreamFallback=r),a}function gt(t){const e=ht(bt(t));Object.assign(it,e),Object.assign(pt,e)}function xt(){for(const t of dt)delete pt[t];Object.assign(pt,it)}function vt(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function Et(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function St(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const zt=[[],[],[],[],[],[],[],[]];for(let t=0;256>t;t++){let e=t;for(let t=0;8>t;t++)e=1&e?e>>>1^3988292384:e>>>1;zt[0][t]=e}for(let t=0;256>t;t++)for(let e=1;8>e;e++){const r=zt[e-1][t];zt[e][t]=r>>>8^zt[0][255&r]}const[kt,At,Rt,Ft,Dt,Ot,Ut,jt]=zt;class Tt{constructor(t){this.o=t||-1}append(t){let e=0|this.o;const r=0|t.length;let a=0;if(r>=8&&t.buffer){const n=new DataView(t.buffer,t.byteOffset,r),s=r-8;for(;s>=a;a+=8){const t=e^n.getInt32(a,!0),r=n.getInt32(a+4,!0);e=jt[255&t]^Ut[t>>>8&255]^Ot[t>>>16&255]^Dt[t>>>24&255]^Ft[255&r]^Rt[r>>>8&255]^At[r>>>16&255]^kt[r>>>24&255]}}for(;r>a;a++)e=e>>>8^kt[255&(e^t[a])];this.o=e}get(){return~this.o}}class It extends TransformStream{constructor(){let t;const e=new Tt;super({transform(t,r){e.append(t),r.enqueue(t)},flush(){const r=new Uint8Array(4);new DataView(r.buffer).setUint32(0,e.get()),t.value=r}}),t=this}}function Ct(t){if(typeof TextEncoder==O){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let r=0;r<e.length;r++)e[r]=t.charCodeAt(r);return e}return(new TextEncoder).encode(t)}const Mt={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const r=t[t.length-1],a=Mt.l(r);return 32===a?t.concat(e):Mt.m(e,a,0|r,t.slice(0,t.length-1))},bitLength(t){const e=t.length;if(0===e)return 0;const r=t[e-1];return 32*(e-1)+Mt.l(r)},h(t,e){if(32*t.length<e)return t;const r=(t=t.slice(0,Math.ceil(e/32))).length;return e&=31,r>0&&e&&(t[r-1]=Mt.v(e,t[r-1]&2147483648>>e-1,1)),t},v:(t,e,r)=>32===t?e:(r?0|e:e<<32-t)+1099511627776*t,l:t=>Math.round(t/1099511627776)||32,m(t,e,r,a){for(void 0===a&&(a=[]);e>=32;e-=32)a.push(r),r=0;if(0===e)return a.concat(t);for(let n=0;n<t.length;n++)a.push(r|t[n]>>>e),r=t[n]<<32-e;const n=t.length?t[t.length-1]:0,s=Mt.l(n);return a.push(Mt.v(e+s&31,e+s>32?r:a.pop(),1)),a}},Nt={bytes:{S(t){const e=Mt.bitLength(t)/8,r=new Uint8Array(e);let a;for(let n=0;e>n;n++)3&n||(a=t[n/4]),r[n]=a>>>24,a<<=8;return r},A(t){const e=[];let r,a=0;for(r=0;r<t.length;r++)a=a<<8|t[r],3&~r||(e.push(a),a=0);return 3&r&&e.push(Mt.v(8*(3&r),a)),e}}},Pt=class{constructor(t){const e=this;e.blockSize=512,e.R=[1732584193,4023233417,2562383102,271733878,3285377520],e.F=[1518500249,1859775393,2400959708,3395469782],t?(e.D=t.D.slice(0),e.O=t.O.slice(0),e.U=t.U):e.reset()}reset(){const t=this;return t.D=t.R.slice(0),t.O=[],t.U=0,t}update(t){const e=this;"string"==typeof t&&(t=Nt.j.A(t));const r=e.O=Mt.concat(e.O,t),a=e.U,n=e.U=a+Mt.bitLength(t);if(n>9007199254740991)throw Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(r);let i=0;for(let t=e.blockSize+a-(e.blockSize+a&e.blockSize-1);n>=t;t+=e.blockSize)e.T(s.subarray(16*i,16*(i+1))),i+=1;return r.splice(0,16*i),e}I(){const t=this;let e=t.O;const r=t.D;e=Mt.concat(e,[Mt.v(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(Math.floor(t.U/4294967296)),e.push(0|t.U);e.length;)t.T(e.splice(0,16));return t.reset(),r}C(t,e,r,a){return t>19?t>39?t>59?t>79?void 0:e^r^a:e&r|e&a|r&a:e^r^a:e&r|~e&a}M(t,e){return e<<t|e>>>32-t}T(t){const e=this,r=e.D,a=Array(80);for(let e=0;16>e;e++)a[e]=t[e];let n=r[0],s=r[1],i=r[2],o=r[3],c=r[4];for(let t=0;79>=t;t++){16>t||(a[t]=e.M(1,a[t-3]^a[t-8]^a[t-14]^a[t-16]));const r=e.M(5,n)+e.C(t,s,i,o)+c+a[t]+e.F[Math.floor(t/20)]|0;c=o,o=i,i=e.M(30,s),s=n,n=r}r[0]=r[0]+n|0,r[1]=r[1]+s|0,r[2]=r[2]+i|0,r[3]=r[3]+o|0,r[4]=r[4]+c|0}},_t={importKey:t=>new _t.N(Nt.bytes.A(t)),P(t,e,r,a){if(r=r||1e4,0>a||0>r)throw Error("invalid params to pbkdf2");const n=1+(a>>5)<<2;let s,i,o,c,l;const d=new ArrayBuffer(n),p=new DataView(d);let f=0;const u=Mt;for(e=Nt.bytes.A(e),l=1;(n||1)>f;l++){for(s=i=t.encrypt(u.concat(e,[l])),o=1;r>o;o++)for(i=t.encrypt(i),c=0;c<i.length;c++)s[c]^=i[c];for(o=0;(n||1)>f&&o<s.length;o++)p.setInt32(f,s[o]),f+=4}return d.slice(0,a/8)},N:class{constructor(t){const e=this,r=e._=Pt,a=[[],[]];e.W=[new r,new r];const n=e.W[0].blockSize/32;t.length>n&&(t=(new r).update(t).I());for(let e=0;n>e;e++)a[0][e]=909522486^t[e],a[1][e]=1549556828^t[e];e.W[0].update(a[0]),e.W[1].update(a[1]),e.L=new r(e.W[0])}reset(){const t=this;t.L=new t._(t.W[0]),t.B=!1}update(t){this.B=!0,this.L.update(t)}digest(){const t=this,e=t.L.I(),r=new t._(t.W[1]).update(e).I();return t.reset(),r}encrypt(t){if(this.B)throw Error("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},Wt=typeof crypto!=O&&typeof crypto.getRandomValues==U,Lt="Invalid password",Bt="Invalid signature",qt=Bt,Vt="zipjs-abort-check-password",Zt="Crypto API not supported";function Ht(t){if(Wt)return crypto.getRandomValues(t);throw Error(Zt)}const Kt=16,Yt={name:"PBKDF2"},Gt=Object.assign({hash:{name:"HMAC"}},Yt),Xt=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},Yt),Jt=["deriveBits"],Qt=[8,12,16],$t=[16,24,32],te=10,ee=[0,0,0,0],re=typeof crypto!=O,ae=re&&crypto.subtle,ne=re&&typeof ae!=O,se=Nt.bytes,ie=class{constructor(t){const e=this;e.V=[[[],[],[],[],[]],[[],[],[],[],[]]],e.V[0][0][0]||e.Z();const r=e.V[0][4],a=e.V[1],n=t.length;let s,i,o,c=1;if(4!==n&&6!==n&&8!==n)throw Error("invalid aes key size");for(e.F=[i=t.slice(0),o=[]],s=n;4*n+28>s;s++){let t=i[s-1];(s%n===0||8===n&&s%n===4)&&(t=r[t>>>24]<<24^r[t>>16&255]<<16^r[t>>8&255]<<8^r[255&t],s%n===0&&(t=t<<8^t>>>24^c<<24,c=c<<1^283*(c>>7))),i[s]=i[s-n]^t}for(let t=0;s;t++,s--){const e=i[3&t?s:s-4];o[t]=4>=s||4>t?e:a[0][r[e>>>24]]^a[1][r[e>>16&255]]^a[2][r[e>>8&255]]^a[3][r[255&e]]}}encrypt(t){return this.H(t,0)}decrypt(t){return this.H(t,1)}Z(){const t=this.V[0],e=this.V[1],r=t[4],a=e[4],n=[],s=[];let i,o,c,l;for(let t=0;256>t;t++)s[(n[t]=t<<1^283*(t>>7))^t]=t;for(let d=i=0;!r[d];d^=o||1,i=s[i]||1){let s=i^i<<1^i<<2^i<<3^i<<4;s=s>>8^255&s^99,r[d]=s,a[s]=d,l=n[c=n[o=n[d]]];let p=16843009*l^65537*c^257*o^16843008*d,f=257*n[s]^16843008*s;for(let r=0;4>r;r++)t[r][d]=f=f<<24^f>>>8,e[r][s]=p=p<<24^p>>>8}for(let r=0;5>r;r++)t[r]=t[r].slice(0),e[r]=e[r].slice(0)}H(t,e){if(4!==t.length)throw Error("invalid aes block size");const r=this.F[e],a=r.length/4-2,n=[0,0,0,0],s=this.V[e],i=s[0],o=s[1],c=s[2],l=s[3],d=s[4];let p,f,u,m=t[0]^r[0],w=t[e?3:1]^r[1],h=t[2]^r[2],y=t[e?1:3]^r[3],b=4;for(let t=0;a>t;t++)p=i[m>>>24]^o[w>>16&255]^c[h>>8&255]^l[255&y]^r[b],f=i[w>>>24]^o[h>>16&255]^c[y>>8&255]^l[255&m]^r[b+1],u=i[h>>>24]^o[y>>16&255]^c[m>>8&255]^l[255&w]^r[b+2],y=i[y>>>24]^o[m>>16&255]^c[w>>8&255]^l[255&h]^r[b+3],b+=4,m=p,w=f,h=u;for(let t=0;4>t;t++)n[e?3&-t:t]=d[m>>>24]<<24^d[w>>16&255]<<16^d[h>>8&255]<<8^d[255&y]^r[b++],p=m,m=w,w=h,h=y,y=p;return n}},oe=class{constructor(t,e){this.K=t,this.Y=e,this.G=e}reset(){this.G=this.Y}update(t){return this.X(this.K,t,this.G)}J(t){if(255&~(t>>24))t+=1<<24;else{let e=t>>16&255,r=t>>8&255,a=255&t;255===e?(e=0,255===r?(r=0,255===a?a=0:++a):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=a}return t}$(t){0===(t[0]=this.J(t[0]))&&(t[1]=this.J(t[1]))}X(t,e,r){let a;if(!(a=e.length))return[];const n=Mt.bitLength(e);for(let n=0;a>n;n+=4){this.$(r);const a=t.encrypt(r);e[n]^=a[0],e[n+1]^=a[1],e[n+2]^=a[2],e[n+3]^=a[3]}return Mt.h(e,n)}},ce=_t.N;let le=re&&ne&&typeof ae.importKey==U,de=re&&ne&&typeof ae.deriveBits==U;class pe extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:a,checkAuthenticationCode:n=!0}){super({start(){ue(this,t,e,r)},async transform(t,e){const r=this,{password:n,strength:s,et:i,ready:o}=r;n?(await(async(t,e,r,a)=>{const n=await we(t,e,r,ye(a,0,Qt[e])),s=ye(a,Qt[e]);if(n[0]!=s[0]||n[1]!=s[1])throw Error(Lt)})(r,s,n,ye(t,0,Qt[s]+2)),t=ye(t,Qt[s]+2),a?e.error(Error(Vt)):i()):await o;const c=new Uint8Array(t.length-te-(t.length-te)%Kt);e.enqueue(me(r,t,c,0,te,!0))},async flush(t){const{nt:e,st:r,it:a,ready:s}=this;if(r&&e){await s;const i=ye(a,0,a.length-te),o=ye(a,a.length-te);let c=I;if(i.length){const t=ge(se,i);r.update(t);const a=e.update(t);c=be(se,a)}const l=ye(be(se,r.digest()),0,te);let d=a.length<te?1:0;for(let t=0;te>t;t++)d|=l[t]^o[t];if(d&&n)throw Error(qt);t.enqueue(c)}}})}}class fe extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){super({start(){ue(this,t,e,r)},async transform(t,e){const r=this,{password:a,strength:n,et:s,ready:i}=r;let o=I;a?(o=await(async(t,e,r)=>{const a=Ht(new Uint8Array(Qt[e]));return vt(a,await we(t,e,r,a))})(r,n,a),s()):await i;const c=new Uint8Array(o.length+t.length-t.length%Kt);c.set(o,0),e.enqueue(me(r,t,c,o.length,0))},async flush(t){const{nt:e,st:r,it:a,ready:n}=this;if(r&&e){await n;let s=I;if(a.length){const t=e.update(ge(se,a));r.update(t),s=be(se,t)}const i=be(se,r.digest()).slice(0,te);t.enqueue(vt(s,i))}}})}}function ue(t,e,r,a){Object.assign(t,{ready:new Promise(e=>t.et=e),password:he(e,r),strength:a-1,it:I})}function me(t,e,r,a,n,s){const{nt:i,st:o,it:c}=t;c.length&&(e=vt(c,e));const l=e.length-n;let d;for(r=((t,e)=>{if(e&&e>t.length){const r=t;(t=new Uint8Array(e)).set(r,0)}return t})(r,a+(l-l%Kt)),d=0;l-Kt>=d;d+=Kt){const t=ge(se,ye(e,d,d+Kt));s&&o.update(t);const n=i.update(t);s||o.update(n),r.set(be(se,n),d+a)}return t.it=ye(e,d),r}async function we(t,e,r,a){t.password=null;const n=await(async(t,e,r,a,n)=>{if(!le)return _t.importKey(e);try{return await ae.importKey("raw",e,r,!1,n)}catch{return le=!1,_t.importKey(e)}})(0,r,Gt,0,Jt),s=await(async(t,e,r)=>{if(!de)return _t.P(e,t.salt,Xt.iterations,r);try{return await ae.deriveBits(t,e,r)}catch{return de=!1,_t.P(e,t.salt,Xt.iterations,r)}})(Object.assign({salt:a},Xt),n,8*(2*$t[e]+2)),i=new Uint8Array(s),o=ge(se,ye(i,0,$t[e])),c=ge(se,ye(i,$t[e],2*$t[e])),l=ye(i,2*$t[e]);return Object.assign(t,{keys:{key:o,ot:c,passwordVerification:l},nt:new oe(new ie(o),Array.from(ee)),st:new ce(c)}),l}function he(t,e){return e===F?Ct(t):e}function ye(t,e,r){return t.subarray(e,r)}function be(t,e){return t.S(e)}function ge(t,e){return t.A(e)}class xe extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:a}){super({start(){Ee(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=Se(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw Error(Lt);t=t.subarray(12)}a?e.error(Error(Vt)):e.enqueue(Se(r,t))}})}}class ve extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){Ee(this,t,e,r)},transform(t,e){const r=this;let a,n;if(r.password||r.rawPassword){r.password=r.rawPassword=null;const e=Ht(new Uint8Array(12));e[11]=r.passwordVerification,a=new Uint8Array(t.length+e.length),a.set(ze(r,e),0),n=12}else a=new Uint8Array(t.length),n=0;a.set(ze(r,t),n),e.enqueue(a)}})}}function Ee(t,e,r,a){Object.assign(t,{password:e,rawPassword:r,passwordVerification:a}),((t,e,r)=>{const a=[305419896,591751049,878082192];if(Object.assign(t,{keys:a,ct:new Tt(a[0]),lt:new Tt(a[2])}),r)for(let e=0;e<r.length;e++)ke(t,r[e]);else for(let r=0;r<e.length;r++)ke(t,e.charCodeAt(r))})(t,e,r)}function Se(t,e){const r=new Uint8Array(e.length);for(let a=0;a<e.length;a++)r[a]=Ae(t)^e[a],ke(t,r[a]);return r}function ze(t,e){const r=new Uint8Array(e.length);for(let a=0;a<e.length;a++)r[a]=Ae(t)^e[a],ke(t,e[a]);return r}function ke(t,e){let[,r]=t.keys;t.ct.append([e]);const a=~t.ct.get();r=Fe(Math.imul(Fe(r+Re(a)),134775813)+1),t.lt.append([r>>>24]);const n=~t.lt.get();t.keys=[a,r,n]}function Ae(t){const e=2|t.keys[2];return Re(Math.imul(e,1^e)>>>8)}function Re(t){return 255&t}function Fe(t){return 4294967295&t}function De(t){if(t instanceof ReadableStream)return t;const e=t.getReader();return new ReadableStream({async pull(t){const{value:r,done:a}=await e.read();a?t.close():t.enqueue(r)},cancel:t=>e.cancel(t)})}function Oe(t,e){t=De(t);const r=e?{type:e}:{};if(typeof Blob.prototype.stream!=U||new Blob([]).stream()instanceof ReadableStream)return new Response(t).blob().then(t=>e?new Blob([t],r):t);const a=[];return t.pipeTo(new WritableStream({write(t){a.push(t)}})).then(()=>new Blob(a,r))}function Ue(t){if(t instanceof WritableStream)return t;const e=t.getWriter();return new WritableStream({write:t=>e.write(t),close:()=>e.close(),abort:t=>e.abort(t)})}const je="Invalid codec definition",Te="Reserved compression method",Ie="Invalid codec module",Ce=[0,8,9,99],Me=new Map,Ne=new Map;function Pe(t={}){const{compressionMethod:r,format:a,codecURI:n,CompressionStream:s,DecompressionStream:i,versionNeeded:o}=t;if(!Number.isInteger(r)||0>r||r>e||typeof a!=T||!a.length)throw Error(je);if(Ce.includes(r))throw Error(Te);const c=typeof s==U||typeof i==U;if(!(c||typeof n==T&&n.length))throw Error(je);Me.set(r,{compressionMethod:r,format:a,codecURI:n,versionNeeded:o}),c&&Be(a,{CompressionStream:s,DecompressionStream:i})}function _e(t){const e=Me.get(t);if(e){let r;Me.delete(t),Me.forEach(t=>r=r||t.format==e.format),r||Ne.delete(e.format)}}function We(t){return Me.get(t)}function Le(t){return Ne.get(t)}function Be(t,e){const{CompressionStream:r,DecompressionStream:a}=e;if(typeof r!=U&&typeof a!=U)throw Error(Ie);Ne.set(t,{CompressionStream:r,DecompressionStream:a})}const qe="Invalid uncompressed size",Ve="Invalid compressed data",Ze=Bt,He="deflate-raw",Ke="gzip",Ye=[31,139,8];class Ge extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:a}){super({});const{compressed:n,encrypted:s,useCompressionStream:i,zipCrypto:o,computeCrc32:c,level:l,deflate64:d,format:p,compressionMethod:f}=t,u=this;let m,w,h,y=super.readable;const b=p&&Le(p),g=c&&n&&!d&&!b&&(!s||o)&&!(!i||!a);if(s&&!o||!c||g||(m=new It,y=nr(y,m)),n)if(b)y=sr(y,rr(b.CompressionStream,p,{level:l,chunkSize:e,compressionMethod:f}));else if(g)h=new Xe,y=sr(y,new a(Ke)),y=nr(y,h);else try{y=ar(y,i,{level:l,chunkSize:e},a,r)}catch(t){let e;try{e=new a(Ke)}catch{throw t}y=sr(y,e),y=nr(y,new Xe)}s&&(o?y=nr(y,new ve(t)):(w=new fe(t),y=nr(y,w))),er(u,y,()=>{s&&!o||!c||(u.crc32=g?h.crc32:new DataView(m.value.buffer).getUint32(0))})}}class Xe extends TransformStream{constructor(){let t,e=10,r=new Uint8Array(0);super({transform(t,a){if(e){const r=Math.min(e,t.length);if(e-=r,!(t=t.subarray(r)).length)return}const n=r.length+t.length;if(8>=n)return void(r=vt(r,t));const s=n-8,i=Math.min(s,r.length);a.enqueue(vt(r.subarray(0,i),t.subarray(0,s-i))),r=vt(r.subarray(i),t.subarray(s-i))},flush(){const e=St(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class Je extends TransformStream{constructor(t,{chunkSize:e,DecompressionStreamFallback:r,DecompressionStream:a}){super({});const{zipCrypto:n,encrypted:s,checkCrc32:i,crc32:o,compressed:c,useCompressionStream:l,deflate64:d,format:p,compressionMethod:f,rawBitFlag:u,outputSize:m}=t;let w,h,y=super.readable;if(s&&(n?y=nr(y,new xe(t)):(h=new pe(t),y=nr(y,h))),c){const t=p&&Le(p);if(t)y=sr(y,rr(t.DecompressionStream,p,{chunkSize:e,compressionMethod:f,rawBitFlag:u,uncompressedSize:m}));else try{y=ar(y,l,{chunkSize:e,deflate64:d},a,r)}catch(t){if(d||m===F)throw t;let e;try{e=new a(Ke)}catch{throw t}y=((t,e,r)=>{const a=new Tt;let n,s,i,o=0,c=!1;const l=new Promise((t,e)=>{s=t,i=e});l.catch(()=>{}),r||s();const d=new TransformStream({start(t){const e=new Uint8Array(10);e.set(Ye),t.enqueue(e)},transform(t,e){e.enqueue(t)},async flush(t){c=!0,f();try{await l}finally{u()}const e=new Uint8Array(8),n=St(e);n.setUint32(0,a.get(),!0),n.setUint32(4,r,!0),t.enqueue(e)},cancel(t){i(t)}}),p=new TransformStream({transform(t,e){a.append(t),o+=t.length,r>o?c&&f():s(),e.enqueue(t)},cancel(t){i(t)}});return t=nr(t,d),nr(t=sr(t,e),p);function f(){u(),n=setTimeout(()=>i(Error(qe)),5e3)}function u(){clearTimeout(n)}})(y,e,m)}y=(t=>{const e=t.getReader();return new ReadableStream({async pull(t){let r;try{r=await e.read()}catch(t){if(t&&t.message)throw t;const e=Error(Ve);throw e.cause=t,e}const{value:a,done:n}=r;n?t.close():t.enqueue(a)},cancel:t=>e.cancel(t)})})(y)}i&&(w=new It,y=nr(y,w)),er(this,y,()=>{if(i){const t=new DataView(w.value.buffer);if(o!=t.getUint32(0,!1))throw Error(Ze)}})}}const Qe=new Map;function $e(t,e){if(!t)return!1;let r=Qe.get(t);r||(r=new Map,Qe.set(t,r));let a=r.get(e);if(a===F){try{new t(e),a=!0}catch{a=!1}r.set(e,a)}return a}function tr(t){return $e(t,He)}function er(t,e,r){e=nr(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function rr(t,e,r){if(!t)throw Error("Compression method not supported");return new t(e,r)}function ar(t,e,r,a,n){const s=e&&a?a:n||a,i=r.deflate64?"deflate64-raw":He;let o;try{o=new s(i,r)}catch(t){if(!e||!n||s==n)throw t;o=new n(i,r)}return sr(t,o)}function nr(t,e){return De(t).pipeThrough(e)}function sr(t,e){const r=e.writable.getWriter(),a=t.getReader();return(async()=>{try{for(;;){await r.ready;const t=await a.read();if(t.done){await r.close();break}await r.write(t.value)}}catch(t){await(async(t,e)=>{try{await t.abort(e)}catch{}})(r,t),await(async(t,e)=>{try{await t.cancel(e)}catch{}})(a,t)}})(),e.readable}const ir="data",or="deflate",cr="inflate";class lr extends TransformStream{constructor(t,e){super({});const r=this,{codecType:a}=t;let n;a.startsWith(or)?n=Ge:a.startsWith(cr)&&(n=Je),r.outputSize=0;let s=0;const i=new n(t,e),o=super.readable,c=new TransformStream({transform(t,e){t&&t.length&&(s+=t.length,e.enqueue(t))},flush(){Object.assign(r,{inputSize:s})}}),l=new TransformStream({transform(e,a){if(e&&e.length&&(a.enqueue(e),r.outputSize+=e.length,t.outputSize!==F&&r.outputSize>t.outputSize))throw Error(qe)},flush(){const{crc32:t}=i;Object.assign(r,{crc32:t,inputSize:s})}});Object.defineProperty(r,"readable",{get:()=>o.pipeThrough(c).pipeThrough(i).pipeThrough(l)})}}class dr extends TransformStream{constructor(t){const e=[];let r=0;function a(){const a=new Uint8Array(t);let n=0;for(;t>n;){const r=e[0],s=t-n;r.length>s?(a.set(r.subarray(0,s),n),e[0]=r.subarray(s),n+=s):(a.set(r,n),n+=r.length,e.shift())}return r-=t,a}Number.isFinite(t)&&t>=1||(t=65536),super({transform(n,s){for(e.push(n),r+=n.length;r>t;)s.enqueue(a())},flush(t){r&&t.enqueue(((t,e)=>{const r=new Uint8Array(e);let a=0;for(const e of t)r.set(e,a),a+=e.length;return r})(e,r))}})}}const pr="Worker startup timeout";let fr,ur,mr,wr=()=>{};async function hr(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;if(r&&!r.ft)return!0;if(tr(e)||$e(e,Ke))return!0;if(r)try{return await wr(t),!0}catch{return!1}return!1}function yr(t){t.createWorker?ur=!0:fr=!1}class br{constructor(t,{readable:e,writable:r},{options:a,config:n,ut:s,useWebWorkers:i,transferStreams:o,workerURI:c,createWorker:l},d){const{signal:p}=s;return ur&&(l=F),Object.assign(t,{wt:!0,ht:(t.ht||0)+1,readable:e.pipeThrough(new dr(ut(n))).pipeThrough(new gr(s),{signal:p}),writable:r,options:Object.assign({},a),workerURI:c,createWorker:l,transferStreams:o,terminate:()=>new Promise(e=>{const{yt:r,wt:a}=t;r?(a?t.bt=e:(r.terminate(),e()),t.gt=null):e()}),xt(){if(t.wt){const{bt:e}=t;e&&(t.bt=null,t.vt=!0,t.yt.terminate(),e()),t.wt=!1,d(t)}}}),fr===F&&(fr=typeof Worker!=O),(i&&mr&&(fr&&c||l)?mr:vr)(t,n)}}class gr extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:a}){let n=0;super({async start(){t&&await xr(t,r)},async transform(t,a){n+=t.length,e&&await xr(e,n,r),a.enqueue(t)},async flush(){a&&await xr(a,n)}})}}async function xr(t,...e){try{await t(...e)}catch{}}function vr(t,e){return{run:()=>Er(t,e)}}async function Er({options:t,readable:e,writable:r,xt:a},n){let s;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(or),r=e?n.CompressionStreamFallback:n.DecompressionStreamFallback,a=e?n.CompressionStream:n.DecompressionStream;if(t.useCompressionStream){if(r&&r.ft&&!tr(a))try{await wr(n)}catch{}}else try{await wr(n)}catch{r&&!r.ft||(t.useCompressionStream=!0)}}s=new lr(t,n),await e.pipeThrough(s).pipeThrough(new dr(ut(n))).pipeTo(r,{preventClose:!0,preventAbort:!0});const{crc32:a,inputSize:i,outputSize:o}=s;return{crc32:a,inputSize:i,outputSize:o}}catch(t){throw s&&(t.outputSize=s.outputSize),t}finally{a()}}const Sr={type:"module"},zr="error";let kr,Ar,Rr,Fr=!0;try{Fr=typeof structuredClone==U&&structuredClone(new DOMException("","AbortError")).code!==F}catch{}var Dr;function Or(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function Ur(t){const{yt:e}=t;if(e)try{e.terminate()}catch{}t.gt=null}function jr(t,e,r,a,n=!0){const{createWorker:s}=r;let i,o,c;if(s)i=s();else if(Ar===F||kr!==t){const s=typeof t==U;o=s?t(n):t;const l=o.startsWith("data:"),d=o.startsWith("blob:");if(l||d){a===F&&(a=!1),a&&(c=Sr);try{i=new Worker(o,c)}catch(n){if(d)try{URL.revokeObjectURL(o)}catch{}if(s&&d)return jr(t,e,r,a,!1);if(a)throw n;return jr(t,e,r,!0,!1)}}else{a===F&&(a=!0),a&&(c=Sr);try{o=new URL(o,e)}catch{}try{i=new Worker(o,c)}catch(s){if(a)return jr(t,e,r,!1,n);throw s}}kr=t,Ar=o,Rr=c}else i=new Worker(Ar,Rr);return i.addEventListener("message",t=>{r.Et=!0,Tr(r),(async({data:t},e)=>{const{type:r,value:a,messageId:n,result:s,error:i}=t,{reader:o,writer:c,St:l,zt:d,xt:p,ht:f}=e,u=()=>e.ht!=f;try{if(i){const{message:t,stack:e,code:r,name:a,outputSize:n,cause:s,codecImportFailed:o}=i,c=Error(t);Object.assign(c,{stack:e,code:r,name:a,outputSize:n}),s&&(c.cause=Object.assign(Error(s.message),{name:s.name})),o&&(c.codecImportFailed=!0),m(c)}else{if("pull"==r){const{value:t,done:r}=await o.read();u()||Cr({type:ir,value:t,done:r,messageId:n},e)}r==ir&&(await c.ready,await c.write(new Uint8Array(a)),u()||Cr({type:"ack",messageId:n},e)),"close"==r&&m(null,s)}}catch(i){u()||(Ur(e),m(i))}function m(t,e){u()||(t?d(t):l(e),c&&c.releaseLock(),t&&t.codecImportFailed||p())}})(t,r)}),i.addEventListener(zr,t=>Ir(t,r)),i.addEventListener("messageerror",t=>Ir(t,r)),i}function Tr(t){const{kt:e}=t;e&&(clearTimeout(e),t.kt=null)}function Ir(t,e){t.preventDefault&&t.preventDefault(),Tr(e);const{Et:r,zt:a,writer:n,xt:s}=e;Ur(e),r||(e.yt=null);let i=t.error||Error(t.message||zr);r||(i=Object.assign(Error(i.message||zr),{At:!0}),e.Rt=i),a&&(a(i),n&&n.releaseLock(),r&&s())}function Cr(t,{yt:e,writer:r,transferStreams:a,Et:n}){try{const{value:r,readable:s,writable:i}=t,o=[];if(r&&(t.value=Et(r),o.push(t.value.buffer)),a&&Fr&&n?(s&&o.push(s),i&&o.push(i)):t.readable=t.writable=null,o.length)try{return e.postMessage(t,o),!0}catch{Fr=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}Dr=(t,e)=>{const{baseURI:r,chunkSize:a,workerStartupTimeout:n}=e;let{wasmURI:s}=e;if(!t.gt){let i;typeof s==U&&(s=s());try{i=jr(t.workerURI,r,t)}catch{return yr(t),vr(t,e)}Object.assign(t,{yt:i,Et:!1,vt:!1,Rt:null,gt:{run:async()=>{try{return await(async(t,e)=>{if(!t.yt){const{Rt:e}=t;t.Rt=null;const r=e||Error(pr);throw r.At=!0,r}let r,a;const n=new Promise((t,e)=>{r=t,a=e});Object.assign(t,{reader:null,writer:null,St:r,zt:a,result:n});const{readable:s,options:i}=t,{writable:o,closed:c,Ft:l}=(t=>{const e=new AbortController,{writable:r,readable:a}=new TransformStream,n=a.pipeTo(t,{preventClose:!0,preventAbort:!0,signal:e.signal});return n.catch(()=>{}),{writable:r,closed:n,Ft:()=>e.abort()}})(t.writable);let d;try{d=Cr({type:"start",options:i,config:e,readable:s,writable:o},t)}catch(e){l();try{await c}catch{}throw t.xt(),e}d||Object.assign(t,{reader:s.getReader(),writer:o.getWriter()});const{workerStartupTimeout:p}=e;t.Et||!Number.isFinite(p)||0>p||(t.kt=setTimeout(()=>(t=>{if(t.kt=null,t.Et)return;const{zt:e,writer:r}=t;if(Ur(t),t.yt=null,e){const t=Error(pr);t.At=!0,e(t),r&&r.releaseLock()}})(t),p));try{const t=await n;return await f(),await c,t}catch(t){await f(),l();try{await c}catch{}throw t}async function f(){if(!d&&!o.locked)try{await o.getWriter().close()}catch{}}})(t,{chunkSize:a,wasmURI:s,baseURI:r,workerStartupTimeout:n})}catch(r){if(r&&r.At)return yr(t),Or(t),Er(t,e);if(r&&r.codecImportFailed){if(t.reader)return Or(t),Er(t,e);t.xt()}throw r}}}})}return t.gt},mr=Dr;let Mr=[];const Nr=[];let Pr,_r,Wr=0;async function Lr(t,e){const{options:r,config:a}=e,{transferStreams:n,useWebWorkers:s,useCompressionStream:i,compressed:o,checkCrc32:c,computeCrc32:l,encrypted:d,format:p,codecURI:f}=r,{workerURI:u,createWorker:m,maxWorkers:w}=a;p&&(f&&(r.codecURI=((t,e)=>{try{return new URL(t,e).toString()}catch{return t}})(f,a.baseURI)),await(async(t,e)=>{!Ne.has(t)&&e&&Be(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */e)))})(p,r.codecURI)),e.transferStreams=!p&&(n||n===F&&a.transferStreams);const h=!(o||c||l||d),y=p===F||!!r.codecURI;return e.useWebWorkers=!h&&y&&(s||s===F&&a.useWebWorkers),e.workerURI=e.useWebWorkers&&u?u:F,e.createWorker=e.useWebWorkers&&m?m:F,r.useCompressionStream=i||i===F&&a.useCompressionStream,(await(async()=>{const r=Mr.find(t=>!t.wt);if(r)return Hr(r),new br(r,t,e,b);if(Mr.length<w){const r={Dt:Wr};return Wr++,Mr.push(r),new br(r,t,e,b)}return new Promise(r=>{Nr.push({resolve:r,stream:t,Ot:e}),_r=a.workerStarvationTimeout,Br()})})()).run();function b(t){if(qr(),Nr.length){const[{resolve:e,stream:r,Ot:a}]=Nr.splice(0,1);e(new br(t,r,a,b)),Br()}else t.yt?(Hr(t),((t,e)=>{const{config:r}=e,{terminateWorkerTimeout:a}=r;Number.isFinite(a)&&a>=0&&(t.vt?t.vt=!1:t.Ut=setTimeout(async()=>{Mr=Mr.filter(e=>e!=t);try{await t.terminate()}catch{}},a))})(t,e)):Mr=Mr.filter(e=>e!=t)}}function Br(){!Pr&&Nr.length&&Number.isFinite(_r)&&_r>=0&&(Pr=setTimeout(Vr,_r))}function qr(){Pr&&(clearTimeout(Pr),Pr=null)}function Vr(){if(Pr=null,Nr.length){const[{resolve:t,stream:e,Ot:r}]=Nr.splice(0,1),a=Object.assign({},r,{useWebWorkers:!1,workerURI:F,createWorker:F});t(new br({},e,a,Zr)),Br()}}function Zr(){qr(),Br()}function Hr(t){const{Ut:e}=t;e&&(clearTimeout(e),t.Ut=null)}const Kr="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");function Yr(t,e){return Gr(t,e,!0)}function Gr(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?(t=>{{let e="";for(let r=0;r<t.length;r++)e+=Kr[t[r]];return e}})(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const Xr="HTTP error ",Jr="HTTP Range not supported",Qr="HTTP resource changed",$r="Writer iterator completed too soon",ta="Writer not initialized",ea="Content-Range",ra="Range",aa="GET",na="bytes",sa=16777216,ia="writable",oa=Symbol();class ca{constructor(){this.size=0}init(){this.initialized=!0}}class la extends ca{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=ut(ft())}={}){const a=this;let n=0;return r=mt(r),new ReadableStream({async pull(s){const i=e===F?r:Math.min(r,e-n),o=await Ya(a,t+n,i);o.length&&s.enqueue(o),n+r>=e||!o.length&&i?s.close():n+=r}})}}class da extends ca{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw Error(ta);return t.writeUint8Array(Et(e))}});Object.defineProperty(t,ia,{get:()=>e})}writeUint8Array(){}}class pa extends la{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{jt:t,Tt:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{Tt:r,jt:a}=this,n=new Uint8Array(e),s=4*Math.floor(t/3),i=atob(a.substring(s+r,4*Math.ceil((t+e)/3)+r)),o=t-3*Math.floor(s/4);let c=0;for(let t=o;o+e>t&&t<i.length;t++)n[t-o]=i.charCodeAt(t),c++;return c<n.length?n.subarray(0,c):n}}class fa extends da{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",It:""})}writeUint8Array(t){const e=this;let r,a=e.It;const n=e.It.length;for(e.It="",r=0;r<3*Math.floor((n+t.length)/3)-n;r++)a+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.It+=String.fromCharCode(t[r]);a.length>2?e.data+=btoa(a):e.It=a+e.It}getData(){return this.data+btoa(this.It)}}let ua,ma;class wa extends la{constructor(t){super(),Object.assign(this,{Ct:t,size:t.size}),ma||(ma=(async()=>{try{const t=new Blob([new Uint8Array(3)]).slice(1,2).stream().getReader();let e=0,r=await t.read();for(;!r.done;)e+=r.value.length,r=await t.read();ua=1==e}catch{ua=!1}})())}createReadable(t){const{Ct:e,size:r}=this,{offset:a=0,size:n=r-a}=t||{};return a||r>n?ua?De(e.slice(a,a+n).stream()):super.createReadable(t):De(e.stream())}async readUint8Array(t,e){const r=this,a=t+e,n=t||a<r.size?r.Ct.slice(t,a):r.Ct;let s=await n.arrayBuffer();return s.byteLength>e&&(s=s.slice(t,a)),new Uint8Array(s)}}class ha extends ca{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,ia,{get:()=>r.writable}),e.contentType=t,e.Mt=Oe(r.readable,t),e.Mt.catch(()=>{})}getData(){return this.Mt}}class ya extends wa{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function ba(t){let e=0;for(let r=0;r<t.length;r++){const a=t.charCodeAt(r);128>a?e+=1:2048>a?e+=2:55296>a||a>=57344?e+=3:56320>a&&56320==(64512&t.charCodeAt(r+1))?(e+=4,r++):e+=3}return e}class ga extends ha{constructor(t){super(),Object.assign(this,{encoding:t,Nt:!t||"utf-8"==t.toLowerCase()})}async getData(){const{encoding:t,Nt:e}=this,r=await super.getData();return r.text&&e?r.text():((t,e)=>Gr(t,e,!1))(new Uint8Array(await r.arrayBuffer()),t)}}class xa extends la{constructor(t,e){super(),Ea(this,t,e)}async init(){await Sa(this,Ca,Ua),super.init()}createReadable(t){const e=this,{useRangeHeader:r,forceRangeRequests:a,size:n}=e;if((r||a)&&n!==F){const{offset:r=0,size:a=n-r}=t||{};if(a>0&&n>r)return((t,e,r)=>{let a,n=e,s=0,i=r;return new ReadableStream({start:()=>o(),async pull(t){a||await o();const{value:e,done:r}=await a.read();if(r)throw Error(Jr);const n=e.length>s?e.subarray(0,s):e;s-=n.length,i-=n.length,n.length&&t.enqueue(n),s||(await(async()=>{const t=a;a=F,await t.cancel()})(),i||t.close())},cancel:t=>a&&a.cancel(t)});async function o(){const e=Math.min(t.maximumRangeSize,i),r=await Ca(aa,t,Da(t,n,e));if(206!=r.status)throw Error(Jr);const o=r.headers.get(ea);if(o){const t=Number(o.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=n)throw Error(Jr)}Fa(t,r),Ra(t,r),n+=e,s=e,a=r.body.getReader()}})(e,r,Math.min(a,n-r))}return super.createReadable(t)}readUint8Array(t,e){return za(this,t,e,Ca,Ua)}}class va extends la{constructor(t,e){super(),Ea(this,t,e)}async init(){await Sa(this,Ma,ja),super.init()}readUint8Array(t,e){return za(this,t,e,Ma,ja)}}function Ea(t,e,r){const{preventHeadRequest:a,useRangeHeader:n,forceRangeRequests:s,combineSizeEocd:i,checkResourceChanges:o=!0,maximumRangeSize:c=sa,fetch:l}=r;delete(r=Object.assign({},r)).preventHeadRequest,delete r.useRangeHeader,delete r.forceRangeRequests,delete r.combineSizeEocd,delete r.checkResourceChanges,delete r.maximumRangeSize,delete r.useXHR,delete r.fetch,Object.assign(t,{url:e,options:r,preventHeadRequest:a,useRangeHeader:n,forceRangeRequests:s,combineSizeEocd:i,checkResourceChanges:o,maximumRangeSize:c,fetch:l})}async function Sa(t,e,r){const{url:a,preventHeadRequest:n,useRangeHeader:s,forceRangeRequests:i,combineSizeEocd:o}=t;if((t=>{const{baseURI:e}=ft(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r})(a)&&(s||i)&&(typeof n==O||n)){const a=await e(aa,t,Da(t,o?-22:void 0)),n=a.headers.get("Accept-Ranges");if(!(i||n&&n.toLowerCase()==na))throw Error(Jr);{if(o){const e=new Uint8Array(await a.arrayBuffer());206==a.status&&e.length==p&&(t.Pt=e)}Ra(t,a);const n=ka(a);n===F?await Ia(t,e,r):t.size=n}}else await Ia(t,e,r)}async function za(t,e,r,a,n){const{useRangeHeader:s,forceRangeRequests:i,Pt:o,size:c,options:l}=t;if(s||i){if(o&&e==c-p&&r==p)return o;if(c>e&&0!==r){e+r>c&&(r=c-e);const n=await a(aa,t,Da(t,e,r));if(206!=n.status)throw Error(Jr);const s=n.headers.get(ea);if(s){const t=Number(s.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=e)throw Error(Jr)}Fa(t,n),Ra(t,n);const i=new Uint8Array(await n.arrayBuffer());if(i.length!=r)throw Error(Jr);return i}return I}{const{data:a}=t;return a||await n(t,l),t.data.subarray(e,e+r)}}function ka(t){const e=t.headers.get(ea);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function Aa({headers:t}){return{_t:t.get("Etag")||F,lastModified:t.get("Last-Modified")||F}}function Ra(t,e){const{checkResourceChanges:r,Wt:a}=t;r&&!a&&206==e.status&&(t.Wt=Aa(e))}function Fa(t,e){const{checkResourceChanges:r,Wt:a,size:n}=t;if(r){const t=ka(e);if(t!==F&&n!==F&&t!=n)throw Error(Qr);if(a){const t=Aa(e);if(Object.entries(a).some(([e,r])=>r!==F&&t[e]!==F&&r!=t[e]))throw Error(Qr)}}}function Da(t,e=0,r=1){return Object.assign({},Oa(t),{[ra]:na+"="+(0>e?e:e+"-"+(e+r-1))})}function Oa({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Ua(t){await Ta(t,Ca)}async function ja(t){await Ta(t,Ma)}async function Ta(t,e){const r=await e(aa,t,Oa(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function Ia(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const a=await e("HEAD",t,Oa(t)),n=a.headers.get("Content-Length");n&&!a.headers.get("Content-Encoding")?t.size=Number(n):await r(t,t.options)}}async function Ca(t,{fetch:e=fetch,options:r,url:a},n){const s=await e(a,Object.assign({},r,{method:t,headers:n}));if(400>s.status)return s;throw 416==s.status?Error(Jr):Error(Xr+(s.statusText||s.status))}function Ma(t,{url:e},r){return new Promise((a,n)=>{const s=new XMLHttpRequest;if(s.addEventListener("load",()=>{if(400>s.status){const t=[];s.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(e=>{const r=e.trim().split(/\s*:\s*/);r[0]=r[0].trim().replace(/^[a-z]|-[a-z]/g,t=>t.toUpperCase()),t.push(r)}),a({status:s.status,arrayBuffer:()=>s.response,headers:new Map(t)})}else n(416==s.status?Error(Jr):Error(Xr+(s.statusText||s.status)))},!1),s.addEventListener("error",t=>n(t.detail?t.detail.error:Error("Network error")),!1),s.open(t,e),r)for(const t of Object.entries(r))s.setRequestHeader(t[0],t[1]);s.responseType="arraybuffer",s.send()})}class Na extends la{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new va(t,e):new xa(t,e)})}set size(t){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}createReadable(t){return this.reader.createReadable(t)}readUint8Array(t,e){return this.reader.readUint8Array(t,e)}}class Pa extends Na{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class _a extends la{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{Lt:t,size:t.length})}readUint8Array(t,e){return this.Lt.slice(t,t+e)}}class Wa extends da{constructor(t){super(),this.Bt=t||262144}init(t=0){Object.assign(this,{offset:0,Lt:new Uint8Array(t>0?t:this.Bt)}),super.init()}writeUint8Array(t){const e=this,r=e.offset+t.length;if(r>e.Lt.length){let t=e.Lt.length?2*e.Lt.length:e.Bt;for(;r>t;)t*=2;const a=e.Lt;e.Lt=new Uint8Array(t),e.Lt.set(a)}e.Lt.set(t,e.offset),e.offset+=t.length}getData(){return this.offset===this.Lt.length?this.Lt:this.Lt.slice(0,this.offset)}}class La extends la{constructor(t){super(),this.qt=t}async init(){const t=this;t.Vt=0;const e=t.qt=await Promise.all(t.qt.map(Ka));t.Zt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}Ht(t){const{Zt:e,size:r}=this,a=e[t];return a===F?r:a}async readUint8Array(t,e){const r=this,{qt:a}=this;let n,s=0,i=t;for(;a[s]&&i>=a[s].size;)i-=a[s].size,s++;const o=a[s];if(o){const a=o.size;if(i+e>a){const s=a-i;n=vt(await Ya(o,i,s),await r.readUint8Array(t+s,e-s))}else n=await Ya(o,i,e)}else n=I;return r.Vt=Math.max(s,r.Vt),n}}class Ba extends ca{constructor(t,e=4294967295){super();const r=this;let a,n,s;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:e,availableSize:e});const i=new WritableStream({async write(e){if(e===oa)return void(s&&await c());const{availableSize:i}=r;if(s)e.length<i?await o(e):(await o(e.subarray(0,i)),await c(),e.length>i&&await this.write(e.subarray(i)));else{const{value:i,done:o}=await t.next();if(o&&!i)throw Error($r);a=i,a.size=0,a.maxSize&&(r.maxSize=a.maxSize),r.availableSize=r.maxSize,await Ha(a),n=i.writable,s=n.getWriter(),await this.write(e)}},async close(){s&&(await s.ready,await l())},async abort(t){s&&await s.abort(t)}});async function o(t){const e=t.length;e&&(await s.ready,await s.write(t),a.size+=e,r.availableSize-=e)}async function c(){await l(),r.diskOffset+=a.size,r.diskNumber++,s=null,r.availableSize=r.maxSize}async function l(){await s.close()}Object.defineProperty(r,ia,{get:()=>i})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(oa)}finally{t.releaseLock()}}}class qa{constructor(t){return Array.isArray(t)&&(t=new La(t)),(t instanceof ReadableStream||typeof t.getReader==U)&&(t={readable:De(t)}),t}}class Va{constructor(t){return t.writable===F&&typeof t.next==U&&(t=new Ba(t)),(t instanceof WritableStream||typeof t.getWriter==U)&&(t={writable:Ue(t)}),t.size===F&&(t.size=0),t}}function Za(t){return!(!t||!t.getData)}async function Ha(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function Ka(t){return t=new qa(t),await Ha(t),t.size!==F&&t.readUint8Array||(t=new wa(await Oe(t.readable)),await Ha(t)),t}function Ya(t,e,r){return t.readUint8Array(e,r)}function Ga(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?la.prototype.createReadable.call(t,e):t.readable}const Xa="filename",Ja="rawFilename",Qa="comment",$a="rawComment",tn="uncompressedSize",en="compressedSize",rn="offset",an="diskNumberStart",nn="lastModDate",sn="rawLastModDate",on="lastAccessDate",cn="rawLastAccessDate",ln="creationDate",dn="rawCreationDate",pn="internalFileAttributes",fn="externalFileAttributes",un="internalFileAttribute",mn="externalFileAttribute",wn="msdosAttributesRaw",hn="msdosAttributes",yn="msDosCompatible",bn="zip64",gn="encrypted",xn="version",vn="versionMadeBy",En="zipCrypto",Sn="directory",zn="executable",kn="compressionMethod",An="signature",Rn="extraField",Fn="unixMode",Dn="setuid",On="setgid",Un="sticky",jn=[Xa,Ja,tn,en,nn,sn,Qa,$a,on,cn,ln,dn,rn,an,pn,fn,un,mn,wn,hn,yn,bn,gn,xn,vn,En,Sn,zn,"symlink",kn,An,"crc32",Rn,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",Fn,"unixExternalUpper",Dn,On,Un,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class Tn{constructor(t){jn.forEach(e=>this[e]=t[e])}}const In="File format is not recognized",Cn="End of central directory not found",Mn="End of Zip64 central directory locator not found",Nn="Central directory header not found",Pn="Local file header not found",_n="Zip64 extra field not found",Wn="File contains encrypted entry",Ln="Encryption method not supported",Bn="Compression method not supported",qn="Split zip file",Vn="Overlapping entry found",Zn="Entry data out of bounds",Hn="Ambiguous archive",Kn="Encrypted central directory is not supported",Yn="Unsafe filename",Gn="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",Xn="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",Jn="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",Qn=/^[a-zA-Z]:/,$n="utf-8",ts="cp437",es=[[tn,t],[en,t],[rn,t],[an,e]],rs={[e]:{Kt:Us,bytes:4},[t]:{Kt:js,bytes:8}};class as{constructor(t,e={}){Object.assign(this,{reader:new qa(t),options:e,Yt:new Map})}async*getEntriesGenerator(a={}){const s=this;let{reader:c}=s;if(await Ha(c),c.size!==F&&c.readUint8Array||(c=new wa(await Oe(c.readable)),await Ha(c)),c.size<p)throw Error(In);const m=ys(a,s.options),w=m==Y,h=m!=X,y=((t,r)=>{if(t!==F){const e=at(t);if("number"!=typeof e||Number.isNaN(e)||0>e)throw Error(Jn);return e}return r==Y?0:r==X?1/0:e})(ks(s,a,"maxAppendedDataSize"),m),b=((t,e)=>{if(t===F)return e;if(!hs(t))throw Error(Xn);return t})(ks(s,a,"filenameValidation"),m),g=ks(s,a,"normalizeFilename"),{Gt:k,Xt:A}=await(async(t,e,r)=>{const{size:a}=t,n=Math.min(a,65557),s={count:64};let i,o,c=0;for await(const[r,l,d,f,u]of xs(t,n)){const n=Os(r,f+20);if(u+p+n==a){const n=await Es(t,r,l,f,u,a,s);if(2==n){if(i||(i=vs(d,f,u)),c++,!e||c>1)break}else 1!=n||o||(o=vs(d,f,u))}}return i||(i=o),i||(i=await(async(t,e,r)=>{const{size:a}=t,n=Math.min(a,e==1/0?a:65557+e);let s,i;for await(const[e,o,c,l,d]of xs(t,n)){const n=vs(c,l,d);s||(s=n);const p=await Es(t,e,o,l,d,a,r);if(2==p)return n;1!=p||i||(i=n)}return i||s})(t,r,s)),{Gt:i,Xt:c}})(c,h,y);if(!k)throw await(async t=>await ws(t)==n)(c)?Error(qn):Error(Cn);h&&A>1&&zs("multiple end of central directory records");const R=St(k);let D=Us(R,12),O=Us(R,16);const U=k.offset,j=Os(R,20),T=U+p+j;c.size-T>y&&zs("appended data");let C=Os(R,4);const M=c.Vt||0;let N,P,_,W,L=Os(R,6),B=Os(R,10),q=0;const V=O==t||D==t||B==e||L==e;if(O!=t&&L!=e&&(O+=ms(c,L)),V){const r=k.offset<f?I:await Ya(c,k.offset-f,f),a=St(r);if(r.length==f&&Us(a,0)==d){O=ms(c,Us(a,4))+js(a,8);let r=await Ya(c,O,u),n=St(r);const s=k.offset-f-u;if((r.length<u||Us(n,0)!=l)&&O!=s&&s>=0){const t=O;O=s,O>t&&(q=O-t),r=await Ya(c,O,u),n=St(r)}if(r.length<u||Us(n,0)!=l)throw Error(Mn);if(P=!0,_=js(n,4)>44,_){const t=Math.min(Number(js(n,4))-44,c.size-O-u);t>0&&(W=(t=>{const e={rawExtensibleData:t};if(t.length>=28){const r=St(t),a=Os(r,26);Object.assign(e,{compressionMethod:Os(r,0),compressedSize:Number(js(r,2)),uncompressedSize:Number(js(r,10)),encryptionAlgorithm:Os(r,18),bitLength:Os(r,20),flags:Os(r,22),hashAlgorithm:Os(r,24),hashData:t.subarray(28,28+a)})}return e})(await Ya(c,O+u,t)))}C==e?C=Us(n,16):w&&C!=Us(n,16)&&zs("mismatched zip64 end of central directory record"),L==e?L=Us(n,20):w&&L!=Us(n,20)&&zs("mismatched zip64 end of central directory record"),B==e?B=js(n,32):w&&B!=js(n,32)&&zs("mismatched zip64 end of central directory record"),D==t?D=js(n,40):w&&D!=js(n,40)&&zs("mismatched zip64 end of central directory record"),O=ms(c,L)+js(n,48)+q}}let Z=D;const G=k.offset-(P?76:0);if(O<c.size||(q=c.size-O-D-p,O=c.size-D-p),M!=C)throw Error(qn);if(0>O)throw Error(In);let J=0,Q=await Ya(c,O,D),$=St(Q);if(D){if(4>Q.length)throw Error(In);const t=G-D;if(O!=t&&L==C){let e=!(Us($,J)==o);if(e||0>t||t+4>c.size||(e=Us(St(await Ya(c,t,4)),0)==o),e){const e=O;O=t,O>e&&(q+=O-e),Q=await Ya(c,O,D),$=St(Q)}}}const tt=G-O;if(D==tt||0>tt||L!=C||(D=tt,Q=await Ya(c,O,D),$=St(Q)),0>O||O>=c.size)throw Error(In);s.directoryOffset=O,s.directoryLength=Z;const et=As(s,a,"decryptCentralDirectory");let rt;et&&B&&Q.length>=4&&Us($,0)!=o&&(_||is($))&&(Q=await et(Q,W),$=St(Q),Z=Q.length,rt=!0),N=O;const nt=ks(s,a,"filenameEncoding"),st=ks(s,a,"commentEncoding"),it=w?new Set:F;let ot;for(let t=0;B>t;t++){const n=new ss(c,s.options);if(J+46>Q.length||Us($,J)!=o){if(0==t&&!rt&&(_||is($)))throw Error(Kn);throw Error(Nn)}os(n,$,J+6);const i=!!n.bitFlag.languageEncodingFlag,l=J+46,d=l+n.filenameLength,p=d+n.extraFieldLength,f=Os($,J+4),u=!(f>>8),m=f>>8==3,h=Q.subarray(l,d),y=Os($,J+32),k=p+y,A=Q.subarray(p,k),R=i,D=i,O=Us($,J+38),U=O&r,j={readOnly:!!(1&U),hidden:!!(2&U),system:!!(4&U),directory:!!(16&U),archive:!!(32&U)},T=Us($,J+42),I=As(s,a,"decodeText")||Yr,C=R?$n:nt||ts,M=D?$n:st||ts;let P=I(h,C,H);if(P===F&&(P=Yr(h,C)),g){const t=g(P);t!==F&&(P=t)}if(gs(P,b)){const t=Error(Yn);throw t.filename=P,t}let W=I(A,M,K);W===F&&(W=Yr(A,M)),Object.assign(n,{index:t,versionMadeBy:f,msDosCompatible:u,zip64:!1,compressedSize:0,uncompressedSize:0,Jt:y,offset:T,diskNumberStart:Os($,J+34),internalFileAttributes:Os($,J+36),externalFileAttributes:O,msdosAttributesRaw:U,msdosAttributes:j,rawFilename:h,filenameUTF8:R,commentUTF8:D,rawExtraField:Q.subarray(d,p),rawComment:A,filename:P,comment:W}),cs(n,n,$,J+6),n.offset+=q,N=Math.min(ms(c,n.diskNumberStart)+n.offset,N),w&&(it.has(n.filename)&&(ot=!0),it.add(n.filename));const L=n.externalFileAttributes>>16&e;n.unixMode===F&&16877&L&&(n.unixMode=L);const V=!!(n.unixMode&E),Z=!!(n.unixMode&S),Y=!!(512&n.unixMode),G=40960==((n.unixMode===F?L:n.unixMode)&x),X=!G&&(n.unixMode!==F?!!(73&n.unixMode):m&&!!(73&L)),tt=n.unixMode!==F&&(n.unixMode&x)==v,et=(L&x)==v;Object.assign(n,{setuid:V,setgid:Z,sticky:Y,symlink:G,unixExternalUpper:L,internalFileAttribute:n.internalFileAttributes,externalFileAttribute:n.externalFileAttributes,executable:X,directory:tt||et||u&&j.directory||n.filename.endsWith(z)&&!n.uncompressedSize,zipCrypto:n.encrypted&&!n.extraFieldAES});const at=new Tn(n);at.getData=(t,e)=>n.getData(t,at,s.Yt,e),at.arrayBuffer=async t=>{const e=new TransformStream,r=Oe(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await n.getData(e,at,s.Yt,t),r},J=k;const{onprogress:ct}=a;if(ct)try{await ct(t+1,B,new Tn(n))}catch{}yield at}let ct=J;if(J+6<=Q.length&&Us($,J)==i){const t=Os($,J+4);J+6+t>Q.length||(s.digitalSignature=Q.subarray(J+6,J+6+t),ct=J+6+t)}w&&J!=Z&&ct!=Z&&zs("trailing central directory data"),ot&&zs("duplicate filename");const lt=ks(s,a,"extractPrependedData"),dt=ks(s,a,"extractAppendedData"),pt=(w||lt)&&B&&4==N&&await(async t=>{const e=await ws(t);return e==n||808471376==e})(c)?4:0;return w&&(q||B&&N>pt)&&zs("prepended data"),lt&&(s.prependedData=N>pt?await Ya(c,pt,N-pt):I),s.comment=j?await Ya(c,U+p,j):I,dt&&(s.appendedData=T<c.size?await Ya(c,T,c.size-T):I),!0}async getEntries(t={}){const e=[];for await(const r of this.getEntriesGenerator(t))e.push(r);return e}async close(){const{reader:t}=this;t.readUint8Array||!t.readable||t.readable.locked||await t.readable.cancel()}}class ns{constructor(t={}){const{readable:e,writable:r}=new TransformStream,a=new as(e,t).getEntriesGenerator();this.readable=new ReadableStream({async pull(t){const{done:e,value:r}=await a.next();if(e)return t.close();const n={...r,readable:(()=>{const{readable:t,writable:e}=new TransformStream;if(r.getData)return(async()=>{try{await r.getData(e)}catch(t){try{await e.abort(t)}catch{}}})(),t})()};delete n.getData,t.enqueue(n)}}),this.writable=r}}let ss=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,n,i={}){const o=this,c=ft(),{reader:l,index:d,offset:p,diskNumberStart:f,extraFieldAES:u,extraFieldZip64:m,compressionMethod:w,bitFlag:h,rawBitFlag:y,crc32:b,rawLastModDate:g,uncompressedSize:x,compressedSize:v}=o,{dataDescriptor:E}=h,S=e.localDirectory={},z=ms(l,f)+p,A=await Ya(l,z,k),R=St(A);let D=ks(o,i,C),O=ks(o,i,M);const U=ks(o,i,N);if(rt(D,O),D=D&&D.length&&D,O=O&&O.length&&O,u&&99!=u.originalCompressionMethod)throw Error(Bn);if(A.length<k||Us(R,0)!=a)throw Error(Pn);os(S,R,4);const{extraFieldLength:j,filenameLength:T}=S,q=ks(o,i,"checkLocalDirectory"),V=ys(i,o.options),Z=((t,e)=>t===F?e!=X:!!t)(q,V),H=((t,e)=>t===F?e==Y:!!t)(q,V);let K=I;if(H&&(T||j)){const t=await Ya(l,z+k,T+j);K=t.subarray(0,T),S.rawExtraField=t.subarray(T)}else S.rawExtraField=j?await Ya(l,z+k+T,j):I;H&&(S.rawFilename=K),cs(o,S,R,4,!0),Z&&((t,e,r,a)=>{const{rawFilename:n}=t;a&&(r.length!=n.length||r.some((t,e)=>t!=n[e]))&&zs("mismatched local file header (filename)"),(2057&e.rawBitFlag)!=(2057&t.rawBitFlag)&&zs("mismatched local file header (general purpose bit flag)"),e.compressionMethod!=t.compressionMethod&&zs("mismatched local file header (compression method)"),e.bitFlag.dataDescriptor||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||zs("mismatched local file header (crc32 or sizes)")})(o,S,K,H);const{lastAccessDate:G,creationDate:J,uid:Q,gid:$}=S;G&&(e.lastAccessDate=G),J&&(e.creationDate=J),Q!==F&&e.uid===F&&(e.uid=Q),$!==F&&e.gid===F&&(e.gid=$);const tt=o.encrypted&&S.encrypted&&!U,at=tt&&!u;if(U||(e.zipCrypto=at),tt&&!(64&~S.rawBitFlag))throw Error(Ln);const nt=U?F:We(w);if(0!=w&&8!=w&&9!=w&&!nt&&!U)throw Error(Bn);if(tt){if(!at&&(1>u.strength||u.strength>3))throw Error(Ln);if(!D&&!O)throw Error(Wn)}const st=z+k+T+j;if(st+v>l.size)throw Error(Zn);const it=v,ot=De(l.createReadable({offset:st,size:it})),ct=et(ks(o,i,P)),lt=ks(o,i,"checkPasswordOnly");let dt=ks(o,i,"checkOverlappingEntry");const pt=ks(o,i,"checkOverlappingEntryOnly");pt&&(dt=!0);const{onstart:ut,onprogress:mt,onend:wt}=i,ht=0!=w&&!U,yt=U?v:x,bt=9==w;let gt=ks(o,i,W);bt&&(gt=!1);const xt=ks(o,i,"checkCrc32"),vt=(xt===F?ks(o,i,"checkSignature"):xt)&&!U&&(!tt||at||u&&1==u.vendorVersion),Et={options:{codecType:cr,password:D,rawPassword:O,zipCrypto:at,encryptionStrength:u&&u.strength,checkCrc32:vt,checkAuthenticationCode:ks(o,i,"checkAuthenticationCode"),passwordVerification:at&&(E?g>>>8&r:b>>>24&r),outputSize:yt,crc32:b,compressed:ht,encrypted:tt,useWebWorkers:ks(o,i,_),useCompressionStream:gt,transferStreams:ks(o,i,L),deflate64:bt,format:nt?nt.format:F,codecURI:nt?nt.codecURI:F,compressionMethod:w,rawBitFlag:y,checkPasswordOnly:lt},config:c,ut:{signal:ct,size:it,onstart:ut,onprogress:mt,onend:wt}};let zt,kt;dt&&await(async({reader:t,Qt:e,index:r,offset:a,crc32:n,compressedSize:i,uncompressedSize:o,$t:c,dataDescriptor:l,extraFieldZip64:d,Yt:p})=>{let f=0;if(l&&(f=d?20:12),f){const r=await Ya(t,c+i,f+4),a=St(r);let l=r.length==f+4&&Us(a,0)==s;if(l){const t=us(a,4,d);(e.encrypted&&!e.zipCrypto||t.crc32==n)&&t.compressedSize==i&&t.uncompressedSize==o?f+=4:l=!1}if(r.length>=f){const t=us(a,l?4:0,d);t.signature=l,e.localDirectory.dataDescriptor=t}}const u={start:a,end:c+i+f,Qt:e};for(const[t,e]of p)if(t!=r&&u.start<e.end&&e.start<u.end){const t=Error(Vn);throw t.overlappingEntry=e.Qt,t}p.set(r,u)})({reader:l,Qt:e,index:d,offset:z,crc32:b,compressedSize:v,uncompressedSize:x,$t:st,dataDescriptor:E||S.bitFlag.dataDescriptor,extraFieldZip64:m||S.extraFieldZip64,Yt:n});try{if(!pt){lt&&(t=new WritableStream),t=new Va(t),await Ha(t,((t,e,r)=>Math.min(t,r?1032*e:e))(yt,v,ht)),({writable:zt}=t);const{outputSize:e}=await Lr({readable:ot,writable:zt},Et);if(t.size+=e,e!=yt)throw Error(qe)}}catch(e){if(e.outputSize!==F&&(t.size+=e.outputSize),!lt||e.message!=Vt)throw kt=e,e}finally{if((Za(t)||!ks(o,i,B))&&zt&&!zt.locked){const t=zt.getWriter();if(kt)try{await t.abort(kt)}catch{}else await t.close()}}return lt||pt?F:t.getData?t.getData():zt}};function is(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;e>r;r++)if(134630224==Us(t,r))return!0;return!1}function os(t,e,r){const a=t.rawBitFlag=Os(e,r+2),n=!(1&~a),s=Us(e,r+6);Object.assign(t,{encrypted:n,version:Os(e,r),bitFlag:{level:(6&a)>>1,dataDescriptor:!(8&~a),languageEncodingFlag:(a&g)==g},rawLastModDate:s,lastModDate:Rs(s),filenameLength:Os(e,r+22),extraFieldLength:Os(e,r+24)})}function cs(t,e,r,a,n){const{rawExtraField:s}=e,i=e.extraField=new Map,o=St(s);let c=0;try{for(;c<s.length;){const t=Os(o,c),e=Os(o,c+2);i.set(t,{type:t,data:s.slice(c+4,c+4+e)}),c+=4+e}}catch{}const l=Os(r,a+4);Object.assign(e,{signature:Us(r,a+10),crc32:Us(r,a+10),compressedSize:Us(r,a+14),uncompressedSize:Us(r,a+18)});const d=i.get(1);d&&(((t,e)=>{e.zip64=!0;const r=St(t.data),a=es.filter(([t,r])=>e[t]==r),n=a.reduce((t,[,e])=>t+rs[e].bytes,0);if(t.data.length<n)throw Error(_n);for(let n=0,s=0;n<a.length;n++){const[i,o]=a[n],c=rs[o];e[i]=t[i]=c.Kt(r,s),s+=c.bytes}})(d,e),e.extraFieldZip64=d);const p=i.get(28789);p&&(ls(p,Xa,Ja,e,t),e.extraFieldUnicodePath=p);const f=i.get(25461);f&&(ls(f,Qa,$a,e,t),e.extraFieldUnicodeComment=f);const u=i.get(m);u&&u.data.length>=7?(((t,e,r)=>{const a=St(t.data),n=Ds(a,4);Object.assign(t,{vendorVersion:Ds(a,0),vendorId:Ds(a,2),strength:n,originalCompressionMethod:r,compressionMethod:Os(a,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=F)})(u,e,l),e.extraFieldAES=u):e.compressionMethod=l;const g=i.get(13);g&&(ds(g,e),e.extraFieldPkwareUnix=g);const x=i.get(22613);x&&(ds(x,e),e.extraFieldUnixType1=x);const v=i.get(10);v&&(((t,e)=>{const r=St(t.data);let a,n=4;try{for(;n<t.data.length&&!a;){const e=Os(r,n),s=Os(r,n+2);1==e&&(a=t.data.slice(n+4,n+4+s)),n+=4+s}}catch{}if(a&&24==a.length){const r=St(a),n=r.getBigUint64(0,!0),s=r.getBigUint64(8,!0),i=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:n,rawLastAccessDate:s,rawCreationDate:i});const o={lastModDate:Fs(n),lastAccessDate:Fs(s),creationDate:Fs(i)};Object.assign(t,o),Object.assign(e,o,{rawLastAccessDate:s,rawCreationDate:i})}})(v,e),e.extraFieldNTFS=v);const E=i.get(b);let S;if(E&&(S=ps(E,e,!1),e.extraFieldUnix=E),!S){const t=i.get(y);t&&(ps(t,e,!0),e.extraFieldInfoZip=t)}const z=i.get(w);z&&(((t,e,r)=>{if(!t.data.length)return;const a=St(t.data),n=Ds(a,0),s=[],i=[];r?(1&~n||(s.push(nn),i.push(sn)),2&~n||(s.push(on),i.push(cn)),4&~n||(s.push(ln),i.push(dn))):5>t.data.length||(s.push(nn),i.push(sn));let o=1;s.forEach((r,n)=>{if(t.data.length>=o+4){const s=Us(a,o);e[r]=t[r]=new Date(1e3*(0|s));const c=i[n];t[c]=s}o+=4})})(z,e,n),e.extraFieldExtendedTimestamp=z);const k=i.get(h);k&&(e.extraFieldUSDZ=k)}function ls(t,e,r,a,n){if(5>t.data.length)return void(t.valid=!1);const s=St(t.data),i=new Tt;i.append(n[r]);const o=St(new Uint8Array(4));o.setUint32(0,i.get(),!0);const c=Us(s,1);Object.assign(t,{version:Ds(s,0),[e]:Yr(t.data.subarray(5)),valid:!n.bitFlag.languageEncodingFlag&&c==Us(o,0)}),t.valid&&(a[e]=t[e],a[e+"UTF8"]=!0)}function ds(t,e){if(8>t.data.length)return;const r=St(t.data),a={lastAccessDate:new Date(1e3*(0|Us(r,0))),lastModDate:new Date(1e3*(0|Us(r,4)))};12>t.data.length||(a.uid=Os(r,8),a.gid=Os(r,10)),Object.assign(t,a),Object.assign(e,a)}function ps(t,e,r){try{const a=St(t.data);let n,s;if(r){let e=0;const r=Ds(a,e++),i=Ds(a,e++);n=fs(t.data.subarray(e,e+i)),e+=i;const o=Ds(a,e++);s=fs(t.data.subarray(e,e+o)),Object.assign(t,{version:r,uid:n,gid:s})}else 4>t.data.length||(n=Os(a,0),s=Os(a,2),Object.assign(t,{uid:n,gid:s}));return n!==F&&(e.uid=n),s!==F&&(e.gid=s),n!==F||s!==F}catch{}}function fs(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function us(t,e,r){const a=Us(t,e);let n,s;return r?(n=js(t,e+4),s=js(t,e+12)):(n=Us(t,e+4),s=Us(t,e+8)),{crc32:a,compressedSize:n,uncompressedSize:s}}function ms(t,e){return t.Ht?t.Ht(e):0}async function ws(t){return Us(St(await Ya(t,0,4)))}function hs(t){return t===Y||t===G||t===X}function ys(t,e){return bs(t,bs(e,G))}function bs(t,e){const r=t.strictness;if(r!==F){if(!hs(r))throw Error(Gn);return r}const a=t.checkAmbiguity;return a===F?e:a?Y:e==X?X:G}function gs(t,e){if(e==X)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(r.includes("..")||t.startsWith("/")||t.startsWith("\\\\")||Qn.test(t))||e==Y&&(r.includes(".")||r.includes(""))}async function*xs(t,e){const r=t.size-e,a=await Ya(t,r,e),n=St(a);for(let t=a.length-p;t>=0;t--)Us(n,t)==c&&(yield[n,r,a,t,r+t])}function vs(t,e,r){return{offset:r,buffer:t.slice(e,e+p).buffer}}async function Es(r,a,n,s,i,c,l){const p=Os(a,s+10),u=Us(a,s+12),m=Us(a,s+16);if(p==e||u==t||m==t)return await Ss(r,a,n,i-f,c,l)==d?2:0;if(!p&&!u)return 1;const w=Os(a,s+6);for(const t of[i-u,ms(r,w)+m])if(await Ss(r,a,n,t,c,l)==o)return 2;return 0}async function Ss(t,e,r,a,n,s){return 0>a||a+4>n?F:r>a?s.count>0?(s.count--,Us(St(await Ya(t,a,4)),0)):F:Us(e,a-r)}function zs(t){const e=Error(Hn);throw e.reason=t,e}function ks(t,e,r){return e[r]===F?t.options[r]:e[r]}function As(t,e,r){return tt(ks(t,e,r))}function Rs(t){const r=(4294901760&t)>>16,a=t&e;return new Date(1980+((65024&r)>>9),((480&r)>>5)-1,31&r,(63488&a)>>11,(2016&a)>>5,2*(31&a),0)}function Fs(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function Ds(t,e){return t.getUint8(e)}function Os(t,e){return t.getUint16(e,!0)}function Us(t,e){return t.getUint32(e,!0)}function js(t,e){return Number(t.getBigUint64(e,!0))}var Ts=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:Hn,ERR_BAD_FORMAT:In,ERR_CENTRAL_DIRECTORY_NOT_FOUND:Nn,ERR_ENCRYPTED:Wn,ERR_ENCRYPTED_CENTRAL_DIRECTORY:Kn,ERR_ENTRY_DATA_OUT_OF_BOUNDS:Zn,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:Mn,ERR_EOCDR_NOT_FOUND:Cn,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:_n,ERR_INVALID_AUTHENTICATION_CODE:qt,ERR_INVALID_COMPRESSED_DATA:Ve,ERR_INVALID_CRC32:Ze,ERR_INVALID_FILENAME_VALIDATION:Xn,ERR_INVALID_MAX_APPENDED_DATA_SIZE:Jn,ERR_INVALID_PASSWORD:Lt,ERR_INVALID_SIGNATURE:Bt,ERR_INVALID_STRICTNESS:Gn,ERR_INVALID_UNCOMPRESSED_SIZE:qe,ERR_LOCAL_FILE_HEADER_NOT_FOUND:Pn,ERR_OVERLAPPING_ENTRY:Vn,ERR_SPLIT_ZIP_FILE:qn,ERR_UNSAFE_FILENAME:Yn,ERR_UNSUPPORTED_COMPRESSION:Bn,ERR_UNSUPPORTED_ENCRYPTION:Ln,ERR_WORKER_STARTUP_TIMEOUT:pr,ZipReader:as,ZipReaderStream:ns});const Is="File already exists",Cs="Zip file comment exceeds 64KB",Ms="Invalid zip file comment (must be a Uint8Array)",Ns="File entry comment exceeds 64KB",Ps="Invalid file entry comment (must be a string)",_s="Invalid date (must be a valid Date instance)",Ws="File entry name exceeds 64KB",Ls="Version exceeds 65535",Bs="The strength must equal 1, 2, or 3",qs="Encryption is not supported in USDZ files",Vs="Encryption is not supported when the 'passThrough' option is set",Zs="Invalid extra field (must be a Map)",Hs="Invalid extra field type (must be integer 0..65535)",Ks="Invalid extra field data (must be a Uint8Array)",Ys="Extra field data exceeds 64KB",Gs=-2147483648,Xs=2147483647,Js=BigInt(0),Qs=BigInt("0x7fffffffffffffff"),$s="Zip64 is not supported (set the 'zip64' option to 'true')",ti="Undefined uncompressed size",ei="Undetermined size",ri="Undefined reader",ai="Zip file not empty",ni="Invalid uid (must be integer 0..2^32-1)",si="Invalid gid (must be integer 0..2^32-1)",ii="Invalid UNIX mode (must be integer 0..65535)",oi="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",ci="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",li="Invalid msdosAttributesRaw (must be integer 0..255)",di="Invalid msdosAttributes (must be an object with boolean flags)",pi="Invalid level (must be integer 0..9)",fi="Signature data exceeds 64KB",ui=new Uint8Array([7,0,2,0,65,69,3,0,0]),mi="infozip",wi="unix";let hi=0;const yi=[];class bi{constructor(t,e={}){t=new Va(t);const{availableSize:r=D,maxSize:a=D}=t;Object.assign(this,{writer:t,te:r>0&&r!==D&&a>0&&a!==D,options:e,ee:new Map,re:new Set,offset:e[q]===F?t.size||t.writable.size||0:e[q],ae:e[q]===F?0:e[q]-(t.size||t.writable.size||0),ne:new Set,se:0,ie:F})}async prependZip(e){if(this.re.size)throw Error(ai);e=new qa(e),await Ha(e),e.size!==F&&e.readUint8Array||(e=new wa(await Oe(e.readable)),await Ha(e));const{ZipReader:r}=await Promise.resolve().then(()=>Ts),a=new r(e),s=await a.getEntries();await a.close(),await Ha(this.writer);const{directoryOffset:i}=a;let o=0;this.te&&(delete this.te,await(async t=>St(await Ya(t,0,4)).getUint32(0,!0)==n)(e)||(await _i(this.writer,Pi()),o=4,this.offset+=o));const c=await(async(t,e,r,a,n)=>{const{writer:s}=t,i=new Map;if(s.closeDisk){const n=Array.from(r).sort((t,r)=>Ni(e,t)-Ni(e,r));let o=0;for(const r of n){const a=Ni(e,r);await Ci(t,e,o,a-o),Ti(s,await Mi(e,a))&&await s.closeDisk(),i.set(r,{offset:Ii(t,s),diskNumberStart:Ui(s)}),o=a}await Ci(t,e,o,a-o)}else await Ci(t,e,0,a),r.forEach(t=>i.set(t,{offset:n+Ni(e,t),diskNumberStart:0}));return i})(this,e,s,i,o);this.re=new Set(s.map(t=>t.filename)),this.ee=new Map(s.map(e=>{const{version:r,rawLastModDate:a,lastAccessDate:n,creationDate:s,rawFilename:i,bitFlag:o,encrypted:l,uncompressedSize:d,compressedSize:p,zip64:f}=e;let{compressionMethod:u,oe:m,ce:w,le:h,de:y,pe:b,rawExtraField:g}=e;const{level:x,languageEncodingFlag:v,dataDescriptor:E}=o;m=m||I,w=w||I,h=h||I,y=y||I,b=b||I,g=g||I,e.extraFieldAES&&(u=99);const S=ao(m,w,h,y,b,g),z=f&&d>=t,k=f&&p>=t,A=-7&so(x,v,E,l,u)|x<<1,{fe:R,ue:D}=no({version:r,bitFlag:A,compressionMethod:u,uncompressedSize:d,compressedSize:p,rawLastModDate:a,rawFilename:i,me:k,we:z,extraFieldLength:S}),{crc32:O}=e;O!==F&&to(D,10,O);const{offset:U,diskNumberStart:j}=c.get(e);return Object.assign(e,{we:z,me:k,offset:U,diskNumberStart:j,he:!1,oe:m,ce:w,le:h,de:y,pe:b,rawExtraField:g,extendedTimestamp:h.length>0||y.length>0,ye:1+(n?2:0)+(s?4:0),fe:R,ue:D}),[e.filename,e]}))}async add(e="",a,n={}){const s=this;n=Object.assign({},n);const{ne:i}=s;let o,c;hi<ft().maxWorkers?hi++:await new Promise(t=>yi.push(t));try{if(e=e.trim(),Vi(s,n,Sn)&&!e.endsWith(z)&&(e+=z),s.re.has(e))throw Error(Is);return s.re.add(e),c=!0,o=(async(e,a,n,s)=>{const i=vi(e,a,s);({name:a}=i);const o=Ei(e,a,s),{comment:c}=o,l=s[Rn];let d;e.ee.set(a,F);try{const{be:c}=o;0==c.level||c.compressionMethod!==F||c.passThrough||await hr(ft())||(c.level=0);const l=await(async(t,e,{be:r},a)=>{if(r.passThrough&&!e&&!Vi(t,a,Sn))throw Error(ri);let n;return e&&(e=new qa(e),await Ha(e),({size:n}=e)),Object.assign({reader:e},zi(t,!!e,n,r,a))})(e,n,o,s);({reader:n}=l);const p=ji(e.writer),f=Ui(e.writer),u=ki(s=Object.assign({},s,i.be,o.be,l.be,{signature:s[An],crc32:s.crc32===F?s[An]:s.crc32,offset:e.offset-p,diskNumberStart:f})),m=Fi(s),w=ao(u.ge,m.xe);d=await(async(e,a,n,s,i)=>{const{ee:o,writer:c}=e,{keepOrder:l,dataDescriptor:d,signal:p}=i,{ve:f}=s,u=e.options[V],m=e.ie;let w,h,y,b,g,x,v,E={},S=0;o.set(a,E),e.ie=E;try{let h;l&&(h=m&&m.Ee,E.Ee=new Promise(t=>y=t)),i.bufferedWrite||!l||e.Se||e.se||!d?(w=!0,e.se++,v=i.createTempStream?await i.createTempStream():new TransformStream(F,F,{highWaterMark:D}),v.size=0,await Ha(c)):(v=c,await z()),await Ha(v);const R=ji(c);e.te&&(delete e.te,await _i(c,Pi()),e.offset+=4),u&&!w&&Ai(s,e.offset-R);const{ge:O}=f;w||(await h,await A());const U=Ui(c),j=Ii(e,c);if(E.diskNumberStart=U,w||(g=!0,x=c.size,await _i(v,O)),E=await(async(e,a,{diskNumberStart:n,Ee:s},i,o,c)=>{const{ve:l,ze:d,ke:p}=i,{fe:f,ue:u,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,oe:x,Ae:v,le:E,ye:S,de:z,pe:k,ce:A}=l,{xe:R}=d,{rawFilename:D,lastAccessDate:O,creationDate:U,password:j,rawPassword:T,level:I,zip64:C,we:M,me:N,zipCrypto:P,dataDescriptor:_,directory:W,executable:L,versionMadeBy:B,rawComment:q,rawExtraField:V,useWebWorkers:Z,transferStreams:H,onstart:K,onprogress:Y,onend:G,signal:X,encryptionStrength:J,extendedTimestamp:Q,msDosCompatible:$,internalFileAttributes:tt,externalFileAttributes:et,uid:rt,gid:at,unixMode:nt,symlink:st,setuid:it,setgid:ot,sticky:ct,unixExternalUpper:lt,msdosAttributesRaw:dt,msdosAttributes:pt,useCompressionStream:ft,passThrough:ut,format:mt,codecURI:wt}=c,ht={Ee:s,versionMadeBy:B,zip64:C,directory:!!W,executable:!!L,filenameUTF8:!0,rawFilename:D,commentUTF8:!0,rawComment:q,oe:x,Ae:v,le:E,de:z,pe:k,ce:A,rawExtraField:V,extendedTimestamp:Q,msDosCompatible:$,internalFileAttributes:tt,externalFileAttributes:et,diskNumberStart:n,uid:rt,gid:at,unixMode:nt,symlink:!!st,setuid:it,setgid:ot,sticky:ct,unixExternalUpper:lt,msdosAttributesRaw:dt,msdosAttributes:pt};let{crc32:yt,uncompressedSize:bt}=c,gt=0;ut||(bt=0);const{writable:xt}=a;if(e){const n=De(Ga(e)),s=e.size,i={options:{codecType:or,level:I,rawPassword:T,password:j,encryptionStrength:J,zipCrypto:h&&P,passwordVerification:h&&P&&w>>8&r,computeCrc32:!ut,compressed:y&&!ut,encrypted:h&&!ut,useWebWorkers:Z,useCompressionStream:ft,transferStreams:H,format:mt,codecURI:wt,compressionMethod:g},config:o,ut:{signal:X,size:s,onstart:K,onprogress:Y,onend:G}};try{const e=await Lr({readable:n,writable:xt},i);if(gt=e.outputSize,a.size+=gt,ut||(bt=e.inputSize,h&&!P||(yt=e.crc32)),!N&>>=t||!M&&bt>=t)throw Error($s)}catch(t){throw t.outputSize!==F&&(a.size+=t.outputSize),t}}return(({crc32:t,compressedSize:e,uncompressedSize:r,ve:a,ze:n},{zip64:s,zipCrypto:i,passThrough:o,dataDescriptor:c})=>{const{ue:l,encrypted:d}=a,{Re:p,Fe:f}=n;d&&!i&&!o||t===F||(to(l,10,t),c&&to(p,f,t)),s?c&&(eo(p,f+4,BigInt(e)),eo(p,f+12,BigInt(r))):(to(l,14,e),to(l,18,r),c&&(to(p,f+4,e),to(p,f+8,r)))})({crc32:yt,compressedSize:gt,uncompressedSize:bt,ve:l,ze:d},c),_&&await _i(a,R),Object.assign(ht,{uncompressedSize:bt,compressedSize:gt,lastModDate:m,rawLastModDate:w,creationDate:U,lastAccessDate:O,encrypted:!!h,zipCrypto:!!P,size:p+gt,compressionMethod:g,version:b,fe:f,ue:u,signature:yt,crc32:!h||P||ut?yt:F,ye:S,we:M,me:N}),ht})(n,v,E,s,ft(),i),w||(g=!1),o.set(a,E),E.filename=a,w){if(await Promise.all([v.writable.getWriter().close(),h]),await z(),b=!0,x=c.size,await A(),E.diskNumberStart=Ui(c),E.offset=Ii(e,c),u){const t=s.ke;Ai(s,e.offset-ji(c)),E.size+=s.ke-t}(({rawFilename:t,encrypted:e,zip64:r,Ae:a,crc32:n,compressedSize:s,uncompressedSize:i,we:o,me:c},l,{dataDescriptor:d,passThrough:p})=>{if(d||((!e||p&&n!==F)&&to(l,14,n),c||to(l,18,s),o||to(l,22,i)),r&&a){const e=k+ao(t)+4;eo(l,e,BigInt(i)),eo(l,e+8,BigInt(s))}})(E,f.De,i),await _i(c,f.ge),await(async(t,e,r)=>{const a=e.writable.getWriter();try{await t.pipeTo(new WritableStream({async write(t){var e;await a.ready,await a.write(t),e=ao(t),S+=e}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}})(v.readable,c,p),c.size+=v.size,b=!1}else E.diskNumberStart=U,E.offset=j;return e.offset+=E.size,E}catch(t){if(b||g){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-x,w&&(e.offset+=S)}throw o.delete(a),t}finally{if(w&&e.se--,y&&y(),h&&h(),w&&v&&v.dispose)try{await v.dispose()}catch{}}async function z(){e.Se=!0;const{Oe:t}=e;e.Oe=new Promise(t=>h=()=>{e.Se=!1,t()}),await t}async function A(){Ti(c,ao(f.ge))&&await c.closeDisk()}})(e,a,n,{ve:u,ze:m,ke:w},s)}catch(t){throw e.ee.delete(a),t}return Object.assign(d,{name:a,comment:c,extraField:l,[un]:d.internalFileAttributes,[mn]:d.externalFileAttributes}),new Tn(d)})(s,e,a,n),i.add(o),await o}catch(t){throw c&&s.re.delete(e),t}finally{i.delete(o);const t=yi.shift();t?t():hi--}}remove(t){const{re:e,ee:r}=this;if(typeof t==T&&(t=r.get(t)),t&&t.filename!==F){const{filename:a}=t;if(e.has(a)&&r.has(a))return e.delete(a),r.delete(a),!0}return!1}async close(r=I,a={}){const{ne:n,writer:s}=this,{writable:f}=s;if(!(r instanceof Uint8Array))throw Error(Ms);if(ao(r)>e)throw Error(Cs);for(;n.size;)await Promise.allSettled(Array.from(n));return await(async(r,a,n)=>{const s=Di(r.ee),{Ue:f,je:u}=await(async(r,a,n)=>{const{ee:s,writer:i}=r,c=new Uint8Array(a);await Ha(i);let l=0,d=0,p=Ui(i),f=ji(i);for(const[r,a]of Array.from(s.values()).entries()){const{offset:u,rawFilename:m,oe:w,ce:h,le:y,de:b,pe:g,rawExtraField:x,rawComment:v,versionMadeBy:E,fe:S,ue:z,we:k,me:A,he:R,Te:F,internalFileAttributes:D,externalFileAttributes:O,diskNumberStart:U,uncompressedSize:j,compressedSize:T}=a,I=ao(w,h,y,b,g,x),C=46+ao(m,v)+I;Ti(i,l+C-d)&&(await _i(i,c.slice(d,l)),d=l,await i.closeDisk()),0==r&&(p=Ui(i),f=ji(i)),k||to(z,18,j),A||to(z,14,T),(F||R)&&45>a.version&&$i(z,0,45);const M=Oi(C);if(M.Ie(o),M.Ce(E),M.Me(S.subarray(0,24)),M.Ce(I),M.Ce(ao(v)),M.Ce(R?e:U),M.Ce(D),M.Ie(O),M.Ie(F?t:u),M.Me(m),M.Me(w),M.Me(h),M.Me(y),M.Me(b),M.Me(g),M.Me(x),M.Me(v),ro(c,M.Lt,l),l+=C,n.onprogress)try{await n.onprogress(r+1,s.size,new Tn(a))}catch{}}return await _i(i,d?c.slice(d):c),{Ue:{diskNumber:p,diskOffset:f},je:c}})(r,s,n),m=await(async(t,r,a)=>{const n=Hi(t,a,Z);if(n){const a=await n(r),s=ao(a);if(s>e)throw Error(fi);const o=Oi(6+s);return o.Ie(i),o.Ce(s),o.Me(a),await _i(t.writer,o.Lt),6+s}return 0})(r,u,n);await(async(r,a,n,s)=>{const{writer:i}=r,{Ue:o,Ne:f}=s;let{Pe:u}=s,m=r.ee.size,w=o.diskNumber,h=Ii(r,o),y=Ui(i);Ti(i,p)&&y++;let b=Vi(r,n,bn);if(!(t>h&&t>u&&e>m&&e>y)){if(!1===b)throw Error($s);b=!0}const g=ao(a);if(g>e)throw Error(Cs);const x=Oi(b?98:p);Ti(i,ao(x.Lt)+g)&&await i.closeDisk(),y=Ui(i),b&&(x.Ie(l),x._e(44),x.Ce(45),x.Ce(45),x.Ie(y),x.Ie(w),x._e(m),x._e(m),x._e(u),x._e(h),x.Ie(d),x.Ie(y),x._e(BigInt(Ii(r,i))+BigInt(u)+BigInt(f)),x.Ie(y+1),Vi(r,n,"supportZip64SplitFile",!0)&&(y=e,w=e),m=e,h=t,u=t),x.Ie(c),x.Ce(y),x.Ce(w),x.Ce(m),x.Ce(m),x.Ie(u),x.Ie(h),x.Ce(g),await _i(i,x.Lt),g&&await _i(i,a)})(r,a,n,{Ue:f,Pe:s,Ne:m})})(this,r,a),!Za(s)&&Vi(this,a,B)||await f.getWriter().close(),s.getData?s.getData():f}}class gi{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new bi(r,t),this.ne=new Set}transform(t){const e=this.zipWriter;let r;const{readable:a,writable:n}=new TransformStream({start(t){r=t},flush:()=>{(async()=>{try{await e.close()}catch(t){try{await e.writer.writable.abort(t)}catch{}}})()}});return xi(this,this.zipWriter.add(t,a),t=>r.error(t)),{readable:this.readable,writable:n}}writable(t){let e;const{readable:r,writable:a}=new TransformStream({start(t){e=t}});return xi(this,this.zipWriter.add(t,r),t=>e.error(t)),a}async close(t,e={}){return await Promise.all(Array.from(this.ne)),this.zipWriter.close(t,e)}}function xi(t,e,r){t.ne.add(e),e.catch(t=>{try{r(t)}catch{}})}function vi(a,n,s){n=n.trim();let i=Vi(a,s,yn),o=Vi(a,s,vn,i?20:768);const c=Vi(a,s,zn),l=Gi(a,s,"uid"),d=Gi(a,s,"gid");let p=Gi(a,s,Fn),f=Vi(a,s,"unixExtraFieldType"),u=Vi(a,s,Dn),m=Vi(a,s,On),w=Vi(a,s,Un);if(l!==F&&(!Number.isInteger(l)||0>l||l>t))throw Error(ni);if(d!==F&&(!Number.isInteger(d)||0>d||d>t))throw Error(si);if(p!==F&&(!Number.isInteger(p)||0>p||p>e))throw Error(ii);if(f!==F&&f!==mi&&f!==wi)throw Error(oi);if(f===wi&&(l!==F&&l>e||d!==F&&d>e))throw Error(ci);f!==F||l===F&&d===F||(f=mi);let h=Gi(a,s,wn),y=Vi(a,s,hn);const b=h!==F||y!==F;if(l!==F||d!==F||p!==F||f||c?(i=!1,o=o&r|768):b&&(i=!0,o&=r),h!==F&&(!Number.isInteger(h)||0>h||h>r))throw Error(li);if(y&&(typeof y!==j||Array.isArray(y)))throw Error(di);if(o>e)throw Error(Ls);let g=Ki(a,s,fn,mn);const k=g!==F;k||(g=0),!s[Sn]&&n.endsWith(z)&&(s[Sn]=!0);const A=Vi(a,s,Sn);if(A?(n.endsWith(z)||(n+=z),k||(g=16,i||(g|=16877<<16))):i||k||(g=c?493<<16:27525120),!i){const t=p!==F||!!(u||m||w);p=p===F?g>>16&e:p&e,u?p|=E:u=!!(p&E),m?p|=S:m=!!(p&S),w?p|=512:w=!!(512&p),k&&!t||(A?p=-61441&p|v:p&x||(p|=32768),g=(p&e)<<16|g&e)}return({msdosAttributesRaw:h,msdosAttributes:y}=((t,e)=>{if(t!==F)t&=r;else if(e!==F){const{readOnly:a,hidden:n,system:s,directory:i,archive:o}=e;let c=0;a&&(c|=1),n&&(c|=2),s&&(c|=4),i&&(c|=16),o&&(c|=32),t=c&r}return e===F&&(e={readOnly:!!(1&t),hidden:!!(2&t),system:!!(4&t),directory:!!(16&t),archive:!!(32&t)}),{msdosAttributesRaw:t,msdosAttributes:e}})(h,y)),b&&(g=g&t|h&r),{name:n,be:{versionMadeBy:o,msDosCompatible:!!i,externalFileAttributes:g,unixExternalUpper:g>>16&e,uid:l,gid:d,unixMode:p,unixExtraFieldType:f,symlink:p!==F&&40960==(p&x),setuid:u,setgid:m,sticky:w,msdosAttributesRaw:h,msdosAttributes:y}}}function Ei(t,r,a){const n=Hi(t,a,"encodeText")||Ct;let s=n(r,H);if(s===F&&(s=Ct(r)),ao(s)>e)throw Error(Ws);const i=a[Qa]||"";if(typeof i!=T)throw Error(Ps);let o=n(i,K);if(o===F&&(o=Ct(i)),ao(o)>e)throw Error(Ns);const c=Vi(t,a,xn,20);if(c>e)throw Error(Ls);const l=Zi(t,a,nn,new Date),d=Zi(t,a,on),p=Zi(t,a,ln),f=Ki(t,a,pn,un,0),u=Vi(t,a,N),m=Vi(t,a,C),w=Vi(t,a,M);rt(m,w);const h=Gi(t,a,"encryptionStrength",3),y=Vi(t,a,En),b=Vi(t,a,"extendedTimestamp",!0),g=Vi(t,a,"ntfsTimestamp"),x=Vi(t,a,"keepOrder",!0),v=Vi(t,a,_),E=Vi(t,a,L),S=Vi(t,a,"bufferedWrite"),z=Hi(t,a,"createTempStream"),k=Vi(t,a,"dataDescriptorSignature",!0),A=et(Vi(t,a,P)),R=Vi(t,a,"useUnicodeFileNames",!0),D=Vi(t,a,kn),O=u||D===F?F:We(D);if(!u&&D!==F&&0!==D&&8!==D&&!O)throw Error("Compression method not supported");let U=Gi(t,a,"level");if(U!==F&&(!Number.isInteger(U)||0>U||U>9))throw Error(pi);if(t.options[V]){if(m!==F||w!==F)throw Error(qs);U===F&&D===F&&(U=0)}let j=Vi(t,a,W),I=Vi(t,a,"dataDescriptor");S&&I===F&&(I=!1),(I===F||y)&&(I=!0),U!==F&&6!=U&&(j=!1);const B=Vi(t,a,bn);if(!(y||m===F&&w===F||Number.isInteger(h)&&h>=1&&3>=h))throw Error(Bs);const q=Si(a[Rn]),Z=Si(a.localExtraField);return{comment:i,be:{rawFilename:s,rawComment:o,version:c,lastModDate:l,lastAccessDate:d,creationDate:p,internalFileAttributes:f,passThrough:u,password:m,rawPassword:w,encryptionStrength:h,zipCrypto:y,extendedTimestamp:b,ntfsTimestamp:g,keepOrder:x,useWebWorkers:v,transferStreams:E,bufferedWrite:S,createTempStream:z,dataDescriptorSignature:k,signal:A,useUnicodeFileNames:R,compressionMethod:D,format:O?O.format:F,codecURI:O?O.codecURI:F,We:O?O.versionNeeded:F,level:U,useCompressionStream:j,dataDescriptor:I,zip64:B,rawExtraField:q,Le:Z}}}function Si(t){if(!t)return I;if(!(t instanceof Map))throw Error(Zs);let r=0,a=0;t.forEach((t,a)=>{if(!Number.isInteger(a)||0>a||a>e)throw Error(Hs);if(!(t instanceof Uint8Array))throw Error(Ks);if(ao(t)>e)throw Error(Ys);r+=4+ao(t)});const n=new Uint8Array(r),s=St(n);return t.forEach((t,e)=>{$i(s,a,e),$i(s,a+2,ao(t)),ro(n,t,a+4),a+=4+ao(t)}),n}function zi(e,r,a,n,s){const{passThrough:i,zipCrypto:o,password:c,rawPassword:l,encryptionStrength:d}=n;let{dataDescriptor:p,zip64:f,level:u,compressionMethod:m}=n,w=0,h=0;if(i&&r&&(h=s[tn],h===F))throw Error(ti);const y=!0===f,b=Vi(e,s,gn);if(r&&i&&!b&&ao(c,l))throw Error(Vs);const g=r&&(!!(c&&ao(c)||l&&ao(l))||i&&b);r||(u=0,m=0);const x=g?o?12:16+4*d:0;r&&(i?(s.uncompressedSize=h,w=a===F?Xi(h)+x:a):a===F?(p=!0,(f||f===F)&&(f=!0,h=w=4294967296)):(s.uncompressedSize=h=a,w=(Ji(m,u)?Xi(h):h)+x));const v=y||h>=t,E=y||w>=t;if(v||E){if(!1===f)throw Error($s);f=!0}return f=f||!1,{Be:w,be:{dataDescriptor:p,zip64:f,we:v,me:E,uncompressedSize:h,level:u,compressionMethod:m,encrypted:g}}}function ki(t){const{rawFilename:r,lastModDate:n,lastAccessDate:s,creationDate:i,level:o,zip64:c,zipCrypto:l,useUnicodeFileNames:d,dataDescriptor:p,directory:f,rawExtraField:u,Le:h,encryptionStrength:g,extendedTimestamp:x,ntfsTimestamp:v,passThrough:E,encrypted:S,we:z,me:D,uncompressedSize:O,crc32:U}=t;let{version:j,compressionMethod:T}=t;const C=!f&&Ji(T,o);let M;const N=E||!C,P=c&&(t.bufferedWrite||!p||!z&&!D||N),_=P||c&&p&&(z||D);if(c&&(z||D)){const t=20,e=Oi(t);if(e.Ce(1),e.Ce(t-4),M=e.Lt,P&&(e._e(O),N)){const t=S?l?12:16+4*g:0;e._e(E?0:O+t)}}else M=I;let W,L,B,q,V;if(S&&!l){const t=Oi(ao(ui)+2);t.Ce(m),t.Me(ui),W=t.Lt,W[8]=g}else W=I;if(x){const t=Li(n),e=Bi(t);if(e){const e=9+(s?4:0)+(i?4:0),r=Oi(e);q=1+(s?2:0)+(i?4:0),r.Ce(w),r.Ce(e-4),r.qe(q),r.Ie(t),s&&r.Ie(qi(Li(s))),i&&r.Ie(qi(Li(i))),B=r.Lt}else B=I;if(v===F?!e||s||i:v)try{const t=Wi(n),e=Oi(36);e.Ce(10),e.Ce(32),e.Ve(4),e.Ce(1),e.Ce(24),e._e(t),e._e(s?Wi(s):t),e._e(i?Wi(i):t),L=e.Lt}catch{L=I}else L=I}else L=B=I;try{const{uid:r,gid:a,unixExtraFieldType:n}=t;if(n!=mi||r===F&&a===F)if(n!=wi||r===F&&a===F)V=I;else{const t=Oi(8);t.Ce(b),t.Ce(4),t.Ce((r===F?0:r)&e),t.Ce((a===F?0:a)&e),V=t.Lt}else{const t=Ri(r),e=Ri(a),n=3+t.length+e.length,s=Oi(4+n);s.Ce(y),s.Ce(n),s.qe(1),s.qe(t.length),s.Me(t),s.qe(e.length),s.Me(e),V=s.Lt}}catch{V=I}T===F&&(T=C?8:0);const{We:Z}=t;C&&Z!==F&&(j=j>Z?j:Z),c&&(j=j>45?j:45),S&&!l&&(j=j>51?j:51,E&&U!==F&&(W[4]=1),W[9]=T,T=99);const H=_?ao(M):0,K=H+ao(W,B,L,V,u,h);if(K>e)throw Error(Ys);const Y=new Date(2e3*Math.ceil(Math.floor(n.getTime()/1e3)/2)),{fe:G,ue:X,rawLastModDate:J}=no({version:j,bitFlag:so(o,d,p,S,T),compressionMethod:T,uncompressedSize:O,lastModDate:R>Y?R:Y>A?A:Y,rawFilename:r,me:D,we:z,extraFieldLength:K}),Q=Oi(k+ao(r)+K),$=Q.Lt,tt=St($);return Q.Ie(a),Q.Me(G),Q.Me(r),_&&Q.Me(M),Q.Me(W),Q.Me(B),Q.Me(L),Q.Me(V),Q.Me(u),Q.Me(h),p&&(D||to(tt,18,0),z||to(tt,22,0)),{ge:$,De:tt,fe:G,ue:X,lastModDate:n,rawLastModDate:J,encrypted:S,compressed:C,version:j,compressionMethod:T,ye:q,oe:I,Ae:H,le:B,de:L,pe:V,ce:W,extraFieldLength:K}}function Ai(t,e){const{ve:r}=t;let{ge:a,extraFieldLength:n}=r,s=64-(e+ao(a))%64;4>s&&(s+=64);const i=new Uint8Array(s),o=St(i);$i(o,0,h),$i(o,2,s-4);const c=a;r.ge=a=new Uint8Array(ao(c)+s),ro(a,c),ro(a,i,ao(c));const l=St(a);$i(l,28,n+s),r.De=l,t.ke+=s}function Ri(t){if(t===F)return I;{const e=new Uint8Array(4);St(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}}function Fi({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let a,n=I,i=0,o=t?20:12;return r&&(o+=4),e&&(n=new Uint8Array(o),a=St(n),r&&(i=4,to(a,0,s))),{xe:n,Re:a,Fe:i}}function Di(r){let a=0;for(const[,n]of r){const{rawFilename:r,ce:s,rawComment:i,de:o,pe:c,rawExtraField:l,extendedTimestamp:d,ye:p,lastModDate:f,we:u,me:m,uncompressedSize:h,compressedSize:y}=n,b=n.offset>=t,g=n.diskNumberStart>=e;let x,v;if(b||g||u||m){const t=4+(u?8:0)+(m?8:0)+(b?8:0)+(g?4:0),e=Oi(t);e.Ce(1),e.Ce(t-4),u&&e._e(h),m&&e._e(y),b&&e._e(n.offset),g&&e.Ie(n.diskNumberStart),x=e.Lt}else x=I;n.oe=x,n.Te=b,n.he=g;const E=Li(f);if(d&&Bi(E)){const t=Oi(9);t.Ce(w),t.Ce(5),t.qe(p),t.Ie(E),v=t.Lt}else v=I;n.le=v;const S=ao(x,s,o,c,v,l);if(S>e)throw Error(Ys);a+=46+ao(r,i)+S}return a}function Oi(t){const e=new Uint8Array(t),r=St(e);let a=0;return{Lt:e,qe:t=>{((t,e,r)=>{t.setUint8(e,r)})(r,a,t),a+=1},Ce:t=>{$i(r,a,t),a+=2},Ie:t=>{to(r,a,t),a+=4},_e:t=>{eo(r,a,BigInt(t)),a+=8},Me:t=>{ro(e,t,a),a+=ao(t)},Ve:t=>a+=t}}function Ui(t){const{diskNumber:e=0}=t;return e}function ji(t){const{diskOffset:e=0}=t;return e}function Ti(t,e){const{availableSize:r=D}=t;return e>r}function Ii(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.ae:0)}async function Ci(t,e,r,a){if(a>0){const{writer:n}=t;await Ga(e,{offset:r,size:a}).pipeTo(n.writable,{preventClose:!0,preventAbort:!0}),n.size+=a,t.offset+=a}}async function Mi(t,e){const r=await Ya(t,e,k);if(ao(r)<k)return k;const a=St(r);return k+Qi(a,26)+Qi(a,28)}function Ni(t,{offset:e,diskNumberStart:r}){return e+(t.Ht?t.Ht(r):0)}function Pi(){const t=new Uint8Array(4);return to(St(t),0,n),t}async function _i(t,e){const{writable:r}=t,a=r.getWriter();try{await a.ready,t.size+=ao(e),await a.write(e)}finally{a.releaseLock()}}function Wi(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return Js>e?Js:e>Qs?Qs:e}}function Li(t){return Math.floor(t.getTime()/1e3)}function Bi(t){return t>=Gs&&Xs>=t}function qi(t){return Math.min(Xs,Math.max(Gs,t))}function Vi(t,e,r,a){const n=e[r]===F?t.options[r]:e[r];return n===F?a:n}function Zi(t,e,r,a){const n=Vi(t,e,r,a);if(null===n)return a;if(n!==F&&(typeof n.getTime!=U||Number.isNaN(n.getTime())))throw Error(_s);return n}function Hi(t,e,r){return tt(Vi(t,e,r))}function Ki(t,e,r,a,n){const s=Yi(e,r,a),i=s===F?Yi(t.options,r,a):s;return i===F?n:i}function Yi(t,e,r){return t[e]===F?t[r]:t[e]}function Gi(t,e,r,a){return at(Vi(t,e,r,a))}function Xi(t){return t+5*(Math.floor(t/16383)+1)}function Ji(t,e){return t===F?e===F||e>0:0!==t}function Qi(t,e){return t.getUint16(e,!0)}function $i(t,e,r){t.setUint16(e,r,!0)}function to(t,e,r){t.setUint32(e,r,!0)}function eo(t,e,r){t.setBigUint64(e,r,!0)}function ro(t,e,r){t.set(e,r)}function ao(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function no({version:e,bitFlag:r,compressionMethod:a,uncompressedSize:n,compressedSize:s,lastModDate:i,rawLastModDate:o,rawFilename:c,me:l,we:d,extraFieldLength:p}){const f=Oi(26),u=f.Lt,m=St(u);if(f.Ce(e),f.Ce(r),f.Ce(a),o===F){const t=new Uint32Array(1),e=St(t);$i(e,0,(i.getHours()<<6|i.getMinutes())<<5|i.getSeconds()/2),$i(e,2,(i.getFullYear()-1980<<4|i.getMonth()+1)<<5|i.getDate()),o=t[0]}return f.Ie(o),f.Ve(4),l||s!==F?f.Ie(l?t:s):f.Ve(4),d||n!==F?f.Ie(d?t:n):f.Ve(4),f.Ce(ao(c)),f.Ce(p),{fe:u,ue:m,rawLastModDate:o}}function so(t,e,r,a,n){let s=0;return e&&(s|=g),r&&(s|=8),8!=n&&9!=n||(0>t||t>3||(s|=6),t>3&&5>=t&&(s|=4),9==t&&(s|=2)),a&&(s|=1),s}const io=1048576,oo=".zip.js-temp";function co(t={}){const{thresholdBytes:e=io,directoryName:r=oo,getDirectory:a=()=>navigator.storage.getDirectory()}=t;let n;function s(){return n||(n=Promise.resolve(a()).then(t=>t.getDirectoryHandle(r,{create:!0}))),n}return()=>{const t=[];let r,a,n,i,o=0,c=!1;const l=new WritableStream({async write(i){c?await n.write(i):(t.push(i),o+=i.length,o>e&&await(async()=>{const e=await s();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join(""),a=await e.getFileHandle(r,{create:!0}),n=(await a.createWritable()).getWriter(),c=!0;for(const e of t)await n.write(e);t.length=0})())},async close(){n&&(await n.close(),n=null)}});let d=0;return{writable:l,readable:new ReadableStream({async pull(e){if(c){if(!i){const t=await a.getFile();i=t.stream().getReader()}const{value:t,done:r}=await i.read();r?e.close():e.enqueue(t)}else d<t.length?e.enqueue(t[d++]):e.close()},async cancel(t){i&&await i.cancel(t)}},{highWaterMark:0}),dispose:async()=>{if(n){try{await n.close()}catch{}n=null}if(r){try{const t=await s();await t.removeEntry(r)}catch{}a=r=null}t.length=0}}}}const lo=1048576;function po(t={}){const{thresholdBytes:e=lo}=t;return()=>{const t=[];let r,a,n,s=0,i=!1;const o=new WritableStream({async write(n){i?await r.write(n):(t.push(n),s+=n.length,s>e&&await(async()=>{const e=new TransformStream;a=Oe(e.readable),r=e.writable.getWriter(),i=!0;for(const e of t)await r.write(e);t.length=0})())},async close(){r&&(await r.close(),r=null)}});let c=0;return{writable:o,readable:new ReadableStream({async pull(e){if(i){if(!n){const t=await a;n=t.stream().getReader()}const{value:t,done:r}=await n.read();r?e.close():e.enqueue(t)}else c<t.length?e.enqueue(t[c++]):e.close()},async cancel(t){n&&await n.cancel(t)}},{highWaterMark:0}),dispose:async()=>{if(r){try{await r.abort()}catch{}r=null}a&&(a.catch(()=>{}),a=null),t.length=0}}}}const fo=1048576,uo=".zip.js-temp",mo="createSyncAccessHandle is only available in dedicated workers";function wo(t={}){const{thresholdBytes:e=fo,directoryName:r=uo,getDirectory:a}=t;if(!(a||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw Error(mo);const n=a||(()=>navigator.storage.getDirectory());let s;function i(){return s||(s=Promise.resolve(n()).then(t=>t.getDirectoryHandle(r,{create:!0}))),s}return()=>{const t=[];let r,a,n=0,s=!1,o=0,c=0;const l=new WritableStream({async write(c){s?(a.write(c,{at:o}),o+=c.length):(t.push(c),n+=c.length,n>e&&await(async()=>{const e=await i();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join("");const n=await e.getFileHandle(r,{create:!0});a=await n.createSyncAccessHandle(),s=!0;for(const e of t)a.write(e,{at:o}),o+=e.length;t.length=0})())},close(){a&&a.flush()}});let d=0;return{writable:l,readable:new ReadableStream({pull(e){if(s){const t=o-c;if(0>=t)return void e.close();const r=new Uint8Array(Math.min(524288,t)),n=a.read(r,{at:c});n?(c+=n,e.enqueue(r.subarray(0,n))):e.close()}else d<t.length?e.enqueue(t[d++]):e.close()}},{highWaterMark:0}),dispose:async()=>{if(a){try{a.close()}catch{}a=null}if(r){try{const t=await i();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{gt({baseURI:import.meta.url})}catch{}let ho,yo,bo,go,xo;function vo(t,e,r={}){if(!ho){const t=Error("WASM module not loaded");throw t.cause=xo,t}const a="number"==typeof r.level?r.level:-1,n="number"==typeof r.outBuffer?r.outBuffer:65536,s="number"==typeof r.inBufferSize?r.inBufferSize:65536;return new TransformStream({start(){try{let r;if(this.Ze=yo(n),this.in=yo(s),this.inBufferSize=s,!this.Ze||!this.in)throw Error("allocation failed");if(this.He=new Uint8Array(n),t?(this.Ke=ho.deflate_process,this.Ye=ho.deflate_last_consumed,this.Ge=ho.deflate_end,this.Xe=ho.deflate_new(),r="gzip"===e?ho.deflate_init_gzip(this.Xe,a):"deflate-raw"===e?ho.deflate_init_raw(this.Xe,a):ho.deflate_init(this.Xe,a)):"deflate64-raw"===e?(this.Ke=ho.inflate9_process,this.Ye=ho.inflate9_last_consumed,this.Ge=ho.inflate9_end,this.Xe=ho.inflate9_new(),r=ho.inflate9_init_raw(this.Xe)):(this.Ke=ho.inflate_process,this.Ye=ho.inflate_last_consumed,this.Ge=ho.inflate_end,this.Xe=ho.inflate_new(),r="deflate-raw"===e?ho.inflate_init_raw(this.Xe):"gzip"===e?ho.inflate_init_gzip(this.Xe):ho.inflate_init(this.Xe)),0!==r)throw Error("init failed:"+r)}catch(t){throw i(this),t}},transform(e,r){try{const a=e,s=new Uint8Array(go.buffer),i=this.Ke,o=this.Ye,c=this.Ze,l=this.He;let d=0;for(;d<a.length;){const e=Math.min(a.length-d,32768);if((!this.in||this.inBufferSize<e)&&(this.in&&bo&&(bo(this.in),this.in=0),this.in=yo(e),this.inBufferSize=e,!this.in))throw Error("allocation failed");s.set(a.subarray(d,d+e),this.in);const p=i(this.Xe,this.in,e,c,n,0),f=16777215&p;if(f&&(l.set(s.subarray(c,c+f),0),r.enqueue(l.slice(0,f))),!t){const t=p>>24&255,e=128&t?t-256:t;if(0>e)throw Error("process error:"+e)}const u=o(this.Xe);if(0===u)break;d+=u}}catch(t){i(this),r.error(t)}},flush(e){try{const r=new Uint8Array(go.buffer),a=this.Ke,s=this.Ze,i=this.He;for(;;){const o=a(this.Xe,0,0,s,n,4),c=16777215&o,l=o>>24&255;if(!t){const t=128&l?l-256:l;if(0>t)throw Error("process error:"+t)}if(c&&(i.set(r.subarray(s,s+c),0),e.enqueue(i.slice(0,c))),1===l||0===c)break}}catch(t){e.error(t)}finally{const t=i(this);0!==t&&e.error(Error("end error:"+t))}},cancel(){i(this)}});function i(t){let e=0;return t.Xe&&t.Ge&&(e=t.Ge(t.Xe)),t.Xe=0,t.in&&bo&&bo(t.in),t.in=0,t.Ze&&bo&&bo(t.Ze),t.Ze=0,e}}class Eo{constructor(t="deflate",e){return vo(!0,t,e)}}class So{constructor(t="deflate",e){return vo(!1,t,e)}}Eo.ft=!0,So.ft=!0;let zo,ko=!1;function Ao(){zo=null,(async()=>{await Promise.allSettled(Mr.map(t=>(Hr(t),t.terminate()))),fr=F,ur=!1})(),ko=!1,ho=yo=bo=go=xo=null}(({Je:t})=>{wr=t})({Je:t=>{if(!zo){let{wasmURI:e}=t;typeof e==U&&(e=e()),zo=(async(t,{baseURI:e})=>{if(!ko)try{await(async(t,e)=>{let r,a;try{try{a=new URL(t,e)}catch{}const n=await fetch(a);r=await n.arrayBuffer()}catch(e){if(!t.startsWith("data:application/wasm;base64,"))throw e;r=(t=>{const e=t.split(",")[1],r=atob(e),a=r.length,n=new Uint8Array(a);for(let t=0;a>t;++t)n[t]=r.charCodeAt(t);return n.buffer})(t)}(t=>{if(ho=t,({malloc:yo,free:bo,memory:go}=ho),"function"!=typeof yo||"function"!=typeof bo||!go)throw ho=yo=bo=go=null,Error("Invalid WASM module")})((await WebAssembly.instantiate(r)).instance.exports)})(t,e),ko=!0}catch(t){throw(t=>{xo=t})(t),t}})(e,t).catch(t=>{throw zo=null,t})}return zo}}),gt({CompressionStreamFallback:Eo,DecompressionStreamFallback:So}),gt({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const Ro="Entry filename already exists",Fo="Readable stream already consumed",Do="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",Oo="Invalid readerOptions (must be an object)",Uo="zipjs-abort-export",jo="The operation was aborted",To=new Set([1,m,10,w,28789,25461,h,y,b,22613,13]);class Io{constructor(t,e,r,a){const n=this;if(t.root&&a&&a.getChildByName(e))throw Error(Ro);r||(r={}),Object.assign(n,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.Qe++,parent:a,children:[],uncompressedSize:r.uncompressedSize||0,$e:r.$e||r.uncompressedSize===F,passThrough:r.passThrough,er:r.er||new Date}),!a&&t.root||(t.entries[n.id]=n),a&&n.parent.children.push(n)}getFullname(){return this.getRelativeName()}getRelativeName(t=this.fs.root){let e=this.name,r=this.parent;for(;r&&r!=t;)e=(r.name?r.name+"/":"")+e,r=r.parent;return e}isDescendantOf(t){let e=this.parent;for(;e&&e.id!=t.id;)e=e.parent;return!!e}rename(t){const e=this.parent;if(e&&e.getChildByName(t))throw Error(Ro);this.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==F))}}class Co extends Io{constructor(t,e,r,a){super(t,e,r,a);const n=this;n.Reader=r.Reader,n.Writer=r.Writer,r.getData&&(n.getData=r.getData)}clone(){return new Co(this.fs,this.name,this)}async getData(t,e={}){const r=this;if(!t||t.constructor==r.Writer&&r.data&&((t,e)=>{const{contentType:r}=t;return r===F||(t.constructor==ha?e.type==r:t.constructor!=fa||e.startsWith(t.data))})(t,r.data))return r.data;{const a=r.reader=Vo(r.Reader,r.data,e),n=r.uncompressedSize||a.size;await Promise.all([Ha(a),Ha(t,n)]);const s=et(e.signal),i=((t,e,r,a)=>{const{onstart:n,onprogress:s,onend:i}=r,{readable:o}=e;return t.data instanceof Tn||!n&&!s&&!i?o:De(o).pipeThrough(new gr({onstart:n,onprogress:s,onend:i,size:e.size}),{signal:a})})(r,a,e,s),o=!Za(t)&&!!e.preventClose;return r.uncompressedSize=a.size,await De(i).pipeTo(Ue(t.writable),{signal:s,preventClose:o,preventAbort:o}),t.getData?t.getData():t.writable}}isPasswordProtected(){return!(!this.data||!this.data.encrypted)}async checkPassword(t,e={}){const r=this;if(!r.isPasswordProtected())return!0;try{return await r.data.getData(null,Object.assign({},e,{password:t,checkPasswordOnly:!0})),!0}catch(t){if(t.message==Lt)return!1;throw t}}getText(t,e){return this.getData(new ga(t),e)}getBlob(t,e){return this.getData(new ha(t),e)}getData64URI(t,e){return this.getData(new fa(t),e)}getUint8Array(t){return this.getData(new Wa,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return Et(await this.getUint8Array(t)).buffer}replaceBlob(t){Object.assign(this,{data:t,Reader:wa,Writer:ha,reader:null})}replaceText(t){Object.assign(this,{data:t,Reader:ya,Writer:ga,reader:null})}replaceData64URI(t){Object.assign(this,{data:t,Reader:pa,Writer:fa,reader:null})}replaceUint8Array(t){Object.assign(this,{data:t,Reader:_a,Writer:Wa,reader:null})}replaceReadable(t){Object.assign(this,{data:null,Reader:Bo(t),Writer:null,reader:null})}}class Mo extends Io{constructor(t,e,r,a){super(t,e,r,a),this.directory=!0}clone(t){const e=this,r=new Mo(e.fs,e.name,e);return t&&(r.children=e.children.map(e=>{const a=e.clone(t);return a.parent=r,a})),r}addDirectory(t,e){return rc(this,t,{options:e},!0)}addText(t,e,r={}){return rc(this,t,{data:e,Reader:ya,Writer:ga,options:r,uncompressedSize:ba(e)})}addBlob(t,e,r={}){return rc(this,t,{data:e,Reader:wa,Writer:ha,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){let a=e.length;for(;"="==e.charAt(a-1);)a--;const n=e.indexOf(",")+1;return rc(this,t,{data:e,Reader:pa,Writer:fa,options:r,uncompressedSize:Math.floor(.75*(a-n))})}addUint8Array(t,e,r={}){return rc(this,t,{data:e,Reader:_a,Writer:Wa,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return rc(this,t,{data:e,Reader:class extends Na{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return rc(this,t,{Reader:Bo(e),options:r})}addFileSystemEntry(t,e={}){return $o(this,t,e)}addFileSystemHandle(t,e={}){return $o(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),rc(this,t.name,{data:t,Reader:()=>({readable:t.stream(),size:t.size}),options:e,uncompressedSize:t.size})}importBlob(t,e){return this.importZip(new wa(t),e)}importData64URI(t,e){return this.importZip(new pa(t),e)}importUint8Array(t,e){return this.importZip(new _a(t),e)}importHttpContent(t,e){return this.importZip(new Na(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new ha(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new fa(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new Wa,t)}async exportWritable(t=new WritableStream,e={}){return await this.exportZip({writable:t},e),t}exportFileSystemHandle(t,e={}){return(async(t,e,r)=>{const{onstart:a,onprogress:n,onend:s}=r,i=Xo(r.readerOptions),o=new AbortController,{signal:c}=o,l=((t,e)=>{if(!et(t))return()=>{};if(t.aborted)return e.abort(t.reason),()=>{};const r=()=>e.abort(t.reason);return t.addEventListener("abort",r,{once:!0}),()=>t.removeEventListener("abort",r)})(r.signal,o),d=Object.assign({},r,i,{signal:c,onstart:F,onprogress:F,onend:F,preventClose:!1}),p=_o([t],t=>Lo(t,d.passThrough)),f=[];let u=!1,m=0;try{a&&await xr(a,p),await h(t,e),s&&await xr(s,m)}catch(t){try{t.exportedEntryNames=f}catch{}throw t}finally{l()}return e;function w(t){const e=t.getWriter();return new WritableStream({async write(t){await e.write(t),m+=t.length,n&&await xr(n,m,p)},close:()=>e.close(),abort:t=>e.abort(t)})}async function h(t,e){if(r.concurrent){const r=(await Promise.allSettled(t.children.map(t=>y(t,e)))).filter(t=>"rejected"==t.status);if(r.length){const t=r.filter(t=>!Ko(t.reason));throw(t=>{const[e]=t,r=t.slice(1).flatMap(t=>[t,...t&&t.entryErrors||[]]).filter(t=>t!==e);if(r.length)try{e.entryErrors=[...e.entryErrors||[],...r]}catch{}return e})((t.length?t:r).map(t=>t.reason))}}else for(const r of t.children)await y(r,e)}async function y(e,r){if(c.aborted){if(u||Ko(c.reason))return;throw c.reason===F?new DOMException(jo,"AbortError"):c.reason}try{if(e.directory){const t=await r.getDirectoryHandle(e.name,{create:!0});await h(e,t)}else{const a=await r.getFileHandle(e.name,{create:!0}),n=await a.createWritable();try{await e.getData({writable:w(n)},d)}catch(t){throw u?Error(Uo):t}f.push(e.getRelativeName(t))}}catch(r){u=!0,o.abort(Error(Uo));try{r.entryName===F&&(r.entryName=e.getRelativeName(t),r.entryId=e.id)}catch{}throw r}}})(this,t,e)}async importZip(t,e={}){let r;t&&typeof t.getEntries==U?(r=t,e=Object.assign({},r.options,e)):(await Ha(t),r=new as(t,e));const a=[],n=await r.getEntries(e);for(const t of n){let r=this;try{const n=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=n.pop();if(n.forEach(t=>{const e=r;if(r=r.getChildByName(t),r){if(!r.directory)throw Error(Ro)}else r=new Mo(this.fs,t,{data:null},e),a.push(r)}),t.directory){let e=r;if(s)if(e=r.getChildByName(s),e){if(!e.directory)throw Error(Ro)}else e=new Mo(this.fs,s,{data:null},r),a.push(e);e==this||e.data||(e.data=t)}else a.push(rc(r,s,{data:t,Reader:qo(Object.assign({},e)),uncompressedSize:e.passThrough?t.compressedSize:t.uncompressedSize,passThrough:e.passThrough}))}catch(e){try{e.cause={entry:t}}catch{}throw e}}return a}async exportZip(t,e={}){const r=this;(e=Object.assign({},e)).bufferedWrite===F&&(e.bufferedWrite=!0);const[a]=await Promise.all([Zo(r,Xo(e.readerOptions)),Ha(t)]),n=new bi(t,e);return await(async(t,e,r,a,n)=>{const{onstart:s,onprogress:i,onend:o,onentryprogress:c}=a,l=e,d=_o(e.children,t=>Qo(t)?0:1);let p=0,f=0;if(s&&await xr(s,r),a.bufferedWrite)await async function t(e){const r=(await Promise.allSettled(e.children.map(async e=>{await u(e),await t(e)}))).find(t=>"rejected"==t.status);if(r)throw r.reason}(e);else for(const t of e.getChildren({recursive:!0}))await u(t);async function u(e){if(Qo(e))return;const{name:s,rr:o}=Yo(e,l,a);let u=0;const m=await t.add(s,n.get(e),Object.assign(o,{onstart:F,onend:F,onprogress:async t=>{p+=t-u,u=t,i&&await xr(i,p,r)}}));f++,c&&await xr(c,f,d,m)}o&&await xr(o,p)})(n,r,_o([r],Wo),e,a),await n.close(e.globalComment),t.getData?t.getData():t.writable}getExportedSize(r={}){const a=this;Xo((r=Object.assign({},r)).readerOptions),r.bufferedWrite===F&&(r.bufferedWrite=!0);const n=!r.bufferedWrite||!1!==r.keepOrder&&a.children.every(t=>!t.children.length);return(async(r,a,n,s)=>{const i={options:r};if(tt(r[Z]))throw Error(ei);if(s!==F&&!(s instanceof Uint8Array))throw Error(Ms);const o=ao(s);if(o>e)throw Error(Cs);const c=r[V],l=new Map;let d=!!c,f=0;for(const e of a){let{name:r}=e;const{size:a}=e,n=Object.assign({},e.options);r=r.trim(),Vi(i,n,Sn)&&!r.endsWith(z)&&(r+=z);const s=vi(i,r,n);({name:r}=s);const{be:o}=Ei(i,r,n);0==o.level||o.compressionMethod!==F||o.passThrough||await hr(ft())||(o.level=0);const p=!Vi(i,n,Sn);if(p&&a===F)throw Error(ei);const{Be:u,be:m}=zi(i,p,a,o,n);if(p&&!o.passThrough&&Ji(m.compressionMethod,m.level))throw Error(ei);const w=Object.assign({},n,s.be,o,m),h=ki(w),y=Fi(w),b={ve:h,ke:ao(h.ge,y.xe)};c&&Ai(b,f);const g=p?u:0;t>f||(d=!0),l.set(r,Object.assign({},w,h,{offset:f,diskNumberStart:0,compressedSize:g})),f+=b.ke+g}if(d&&!n)throw Error(ei);const u=Di(l);let m=Vi(i,r,bn);if(f>=t||u>=t||l.size>=e){if(!1===m)throw Error($s);m=!0}return f+u+o+(m?98:p)})(r,a.getChildren({recursive:!0}).filter(t=>!Qo(t)).map(t=>{const{name:e,rr:n}=Yo(t,a,r);return{name:e,size:t.directory?0:Go(t,Jo(t,r)),options:n}}),n,r.globalComment)}getChildByName(t){const e=this.children;for(let r=0;r<e.length;r++){const a=e[r];if(a.name==t)return a}}getChildren(t={}){return((t,e)=>{const r=[],a=[t];let n=0;for(;n<a.length;)for(const t of a[n++].children)r.push(t),e&&a.push(t);return r})(this,t.recursive)}isPasswordProtected(){const t=this.children;for(let e=0;e<t.length;e++)if(t[e].isPasswordProtected())return!0;return!1}async checkPassword(t,e={}){const r=this.children;return!(await Promise.all(r.map(r=>r.checkPassword(t,e)))).includes(!1)}}class No{constructor(){ec(this)}get children(){return this.root.children}remove(t){Ho(t);const e=[t];for(;e.length;){const t=e.pop();this.entries[t.id]=null;for(const r of t.children)e.push(r)}t.parent=F}move(t,e){if(t==this.root)throw Error("Root directory cannot be moved");if(!e.directory)throw Error("Target entry is not a directory");if(e.isDescendantOf(t))throw Error("Entry is a ancestor of target entry");if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw Error(Ro)}else Ho(t),t.parent=e,e.children.push(t),((t,e)=>{const r=[e];for(;r.length;){const e=r.pop();t.entries[e.id]=e;for(const t of e.children)r.push(t)}})(this,t)}}find(t){const e=t.split("/");let r=this.root;for(let t=0;r&&t<e.length;t++)r=r.getChildByName(e[t]);return r||(r=this.entries.find(e=>e&&(e==this.root||e.isDescendantOf(this.root))&&e.getRelativeName()==t)),r}getById(t){return this.entries[t]}getChildByName(t){return this.root.getChildByName(t)}getChildren(t){return this.root.getChildren(t)}addDirectory(t,e){return this.root.addDirectory(t,e)}addText(t,e,r){return this.root.addText(t,e,r)}addBlob(t,e,r){return this.root.addBlob(t,e,r)}addData64URI(t,e,r){return this.root.addData64URI(t,e,r)}addUint8Array(t,e,r){return this.root.addUint8Array(t,e,r)}addHttpContent(t,e,r){return this.root.addHttpContent(t,e,r)}addReadable(t,e,r){return this.root.addReadable(t,e,r)}addFileSystemEntry(t,e){return this.root.addFileSystemEntry(t,e)}addFileSystemHandle(t,e){return this.root.addFileSystemHandle(t,e)}addFile(t,e){return this.root.addFile(t,e)}importBlob(t,e){return ec(this),this.root.importBlob(t,e)}importData64URI(t,e){return ec(this),this.root.importData64URI(t,e)}importUint8Array(t,e){return ec(this),this.root.importUint8Array(t,e)}importHttpContent(t,e){return ec(this),this.root.importHttpContent(t,e)}importReadable(t,e){return ec(this),this.root.importReadable(t,e)}importZip(t,e){return ec(this),this.root.importZip(t,e)}exportBlob(t){return this.root.exportBlob(t)}exportData64URI(t){return this.root.exportData64URI(t)}exportUint8Array(t){return this.root.exportUint8Array(t)}exportWritable(t,e){return this.root.exportWritable(t,e)}exportFileSystemHandle(t,e){return this.root.exportFileSystemHandle(t,e)}exportZip(t,e){return this.root.exportZip(t,e)}getExportedSize(t){return this.root.getExportedSize(t)}isPasswordProtected(){return this.root.isPasswordProtected()}checkPassword(t,e){return this.root.checkPassword(t,e)}}const Po={FS:No,ZipDirectoryEntry:Mo,ZipFileEntry:Co};function _o(t,e){let r=0;const a=Array.from(t);for(;a.length;){const t=a.pop();r+=e(t)||0;for(const e of t.children)a.push(e)}return r}function Wo(t){return t.uncompressedSize}function Lo(t,e){const{data:r}=t;return e&&r instanceof Tn?r.compressedSize:t.uncompressedSize}function Bo(t){let e;return()=>{if(e)throw Error(Fo);return e=!0,{readable:t}}}function qo(t){return class extends la{constructor(t,e={}){super(),this.entry=t,this.options=e}async init(){const e=this,r=Object.assign({},t,e.options),{checkOverlappingEntry:a,checkOverlappingEntryOnly:n}=r,s=await e.entry.getData(new ha,Object.assign(r,{checkPasswordOnly:!1,checkOverlappingEntry:n||a,checkOverlappingEntryOnly:!1,preventClose:!1}));e.data=s,e.ar=new wa(s),e.size=s.size,super.init()}readUint8Array(t,e){return this.ar.readUint8Array(t,e)}}}function Vo(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function Zo(t,e){const r=[],a=[t],n=new Map;for(;a.length;){const t=a.pop();for(const e of t.children)e.directory?a.push(e):r.push(e)}return await Promise.all(r.map(async t=>{const r=t.reader=Vo(t.Reader,t.data,e);n.set(t,r);try{await Ha(r)}catch(e){try{e.entryId=t.id,e.cause={entry:t}}catch{}throw e}r.size!==F&&(t.uncompressedSize=r.size,t.$e=!1)})),n}function Ho(t){if(t.parent){const e=t.parent.children;e.forEach((r,a)=>{r.id==t.id&&e.splice(a,1)})}}function Ko(t){return!!t&&t.message==Uo}function Yo(t,e,r){const a=r.relativePath?t.getRelativeName(e):t.getFullname(),n=t.options||{};let s={},i={};if(t.data instanceof Tn){const{externalFileAttributes:e,versionMadeBy:a,comment:n,lastModDate:o,creationDate:c,lastAccessDate:l,uncompressedSize:d,encrypted:p,zipCrypto:f,crc32:u,compressionMethod:m,extraFieldAES:w,internalFileAttributes:h,extraField:y,uid:b,gid:g}=t.data;s={externalFileAttributes:e,versionMadeBy:a,comment:n,lastModDate:o,creationDate:c,lastAccessDate:l,internalFileAttributes:h};const x=(t=>{if(t){const e=new Map;if(t.forEach((t,r)=>{To.has(r)||e.set(r,t.data)}),e.size)return e}})(y);if(x&&(s.extraField=x),b===F&&g===F||Object.assign(s,{uid:b,gid:g,unixExtraFieldType:"infozip"}),Jo(t,r)){let t,e;0===m&&(t=0),w&&(e=w.strength),i={passThrough:!0,encrypted:p,zipCrypto:f,crc32:u,uncompressedSize:d,level:t,encryptionStrength:e,compressionMethod:m}}}const o=Object.assign({lastModDate:t.er},s,r,n,i,{directory:t.directory});if(!t.directory&&o.passThrough&&o.uncompressedSize===F)throw Error(Do);return{name:a,rr:o}}function Go(t,e){const{reader:r}=t;return r&&r.size!==F?r.size:t.$e?F:Lo(t,e)}function Xo(t){if(t&&(typeof t!=j||Array.isArray(t)))throw Error(Oo);return t}function Jo(t,e){const{readerOptions:r}=e;return!(t.directory||!(t.passThrough||r&&r.passThrough))}function Qo(t){return t.directory&&null===t.data}function $o(t,e,r){return async function t(e,a,n,s=""){if(a){const i=s?s+"/"+a.name:a.name;try{if((a.isFile||a.isDirectory)&&(a=await tc(a)),"file"==a.kind){const t=await a.getFile();n.push(rc(e,t.name,{Reader:()=>({readable:t.stream(),size:t.size}),options:Object.assign({},{lastModDate:new Date(t.lastModified)},r),uncompressedSize:t.size}))}else if("directory"==a.kind){const s=e.addDirectory(a.name,r);n.push(s);for await(const e of a.values())await t(s,e,n,i)}}catch(t){try{t.entryName===F&&(t.entryName=i)}catch{}throw t}}return n}(t,e,[])}async function tc(t){const e={name:t.name};if(t.isFile&&(e.kind="file",e.getFile=()=>new Promise((e,r)=>t.file(e,r))),t.isDirectory){e.kind="directory";const r=await(async t=>{const e=[];function r(t,a,n){t.readEntries(async s=>{if(s.length){for(const t of s)e.push(await tc(t));r(t,a,n)}else a(e)},n)}return await new Promise((e,a)=>r(t.createReader(),e,a)),{[Symbol.iterator](){let t=0;return{next(){const r={value:e[t],done:t==e.length};return t++,r}}}}})(t);e.values=()=>r}return e}function ec(t){t.entries=[],t.Qe=0,t.root=new Mo(t)}function rc(t,e,r,a){if(t.directory)return a?new Mo(t.fs,e,r,t):new Co(t.fs,e,r,t);throw Error("Parent entry is not a directory")}let ac;function nc(t){return t&&(ac||(ac=(()=>{const t=Object.create(null);for(const e of"application:0andrew-inset ez,2nodex anx,1pplixware aw,1tom!,4cat!,4serv! atomsrv,5vc!,0bbolin lin,0ccxml!,1dmi-capability cdmia,6ontainer cdmic,5domain cdmid,5object cdmio,5queue cdmiq,1u-seeme cu,0davmount!,1ocbook! dbk,1sptype tsp,2sc+der,4! xdssc,0ecmascript es ecma,1mma!,1nvoy evy,1pub+zip,1xi,0font-tdpfr pfr,1ractals fif,1uturesplash spl,0gml!,1px!,1xf,1zip gz tgz,0hta,1yperstudio stk,0inkml! ink inkml,2ternet-property-stream acx,1pfix,0java-archive jar,5serialized-object ser,5vm class,1sonml+json,0lost! lostxml,0m3g,1ac-binhex40 hqx,2ds!,2rc mrc,4xml! mrcx,2thematica nb ma mb,4ml! mathml mml,1box,1ediaservercontrol! mscml,2talink!,84! meta4,3s!,1ods!,1p21 m21 mp21,24 mp4s,1saccess mdb,2word doc dot wiz,1xf,0oda,1ebps-package! opf,1gg ogx,1lescript axs,1mdoc!,1nenote onetoc onetoc2 onetmp onepkg,1xps,0patch-ops-error! xer,1df,1gp-encrypted pgp,4keys key,4signature asc sig,1ics-rules prf,1kcs10 p10,47-mime p7m p7c,6signature p7s,48 p8,2ix-attr-cert ac,5crl crl,5pkipath pkipath,4cmp pki,1ls!,1ostscript ps ai eps epsi epsf eps2 eps3,1rs.cww cww,1skc! pskcxml,0rar,1df!,1eginfo! rif,2lax-ng-compact-syntax rnc,2source-lists! rl,e-diff! rld,1ls-services! rs,1pki-ghostbusters gbr,5manifest mft,5roa roa,1sd!,2s!,1tf,0sbml!,1cvp-cv-request scq,asponse scs,5vp-request spq,asponse spp,1dp,1et-payment-initiation setpay,4registration-initiation setreg,1hf!,1mil! smi smil,1parql-query rq,7results! srx,1rgs gram,4! grxml,2u!,1sdl!,2ml!,0tei! tei teicorpus,1hraud! tfi,1imestamped-data tsd,0vnd.3gpp.pic-bw-large plb,gsmall psb,gvar pvb,82.tcap tcap,5m.post-it-notes pwn,4accpac.simply.aso aso,iimp imp,6ucobol acu,9rp atc acutc,5dobe.air-application-installer-package+zip air,aformscentral.fcdt fcdt,bxp fxp fxpl,axdp! xdp,bfdf xfdf,5head.space ahead,5irzip.filesecure.azf azf,os azs,5mazon.ebook azw,6ericandynamics.acc acc,6iga.ami ami,5ndroid.package-archive apk,6ser-web-certificate-issue-initiation cii,efunds-transfer-initiation fti,6tix.game-component atx,5pple.installer! mpkg,ampegurl m3u8,5ristanetworks.swi swi,5straea-software.iota iota,5udiograph aep,4blueice.multipass mpm,5mi bmi,5usinessobjects rep,4chemdraw! cdxml,6ipnuts.karaoke-mmd mmd,5inderella cdy,5laymore cla,6oanto.rp9 rp9,7nk.c4group c4g c4d c4f c4p c4u,6uetrust.cartomobile-config c11amc,w-pkg c11amz,5ommonspace csp,6ntact.cmsg cdbcmsg,6smocaller cmc,5rick.clicker clkx,h.keyboard clkk,ipalette clkp,itemplate clkt,iwordbank clkw,7ticaltools.wbs! wbs,5tc-posml pml,5ups-ppd ppd,6rl.car car,9pcurl pcurl,4dart dart,6ta-vision.rdz rdz,5ebian.binary-package deb udeb,6ce.data uvf uvvf uvd uvvd,9ttml! uvt uvvt,9unspecified uvx uvvx,9zip uvz uvvz,6novo.fcselayout-link fe_launch,5na dna,5olby.mlp mlp,5pgraph dpg,5reamfactory dfac,5s-keypoint kpxx,5vb.ait ait,8service svc,5ynageo geo,4ecowin.chart mag,5nliven nml,5pson.esf esf,amsf msf,aquickanime qam,asalt slt,bsf ssf,5szigno3! es3 et3,5zpix-album ez2,apackage ez3,4fdf fdf,6sn.mseed mseed,9seed seed dataless,5lographit gph,6uxtime.clip ftc,5ramemaker fm frame maker book,6ogans.fnc fnc,cltf ltf,5sc.weblaunch fsc,5ujitsu.oasys oas,h2 oa2,h3 oa3,hgp fg5,hprs bh2,8xerox.ddd ddd,focuworks xdw,n.binder xbd,6zzysheet fzs,4genomatix.tuxedo txd,6ogebra.file ggb,dtool ggt,7metry-explorer gex gre,7next gxt,7plan g2w,7space g3w,5mx gmx,5oogle-earth.kml! kml,jz kmz,5rafeq gqf gqs,6oove-account gac,bhelp ghf,bidentity-message gim,cnjector grv,btool-message gtm,gtemplate tpl,bvcard vcg,4hal! hal,6ndheld-entertainment! zmm,5bci hbci,5he.lesson-player les,5p-hpgl hpgl,9id hpid,9s hps,7jlyt jlt,7pcl pcl,axl pclxl,5ydrostatix.sof-data sfd-hdstx,5zn-3d-crossword x3d,4ibm.minipay mpy,9odcap afp listafp list3820,8rights-management irm,8secure-container sc,5ccprofile icc icm,5gloader igl,5mmervision-ivp ivp,iu ivu,5nsors.igm igm,6tercon.formnet xpw xpx,9geo i2g,7u.qbo qbo,afx qfx,5punplugged.rcprofile rcprofile,5repository.package! irp,5s-xpr xpr,6ac.fcs fcs,4jam jam,5cp.javame.midlet-rms rms,5isp jisp,5oost.joda-archive joda,4kahootz ktz ktr,5de.karbon karbon,9chart chrt,9formula kfo,9ivio flw,9ontour kon,9presenter kpr kpt,9spread ksp,9word kwd kwt,5enameaapp htke,5idspiration kia,6nar kne knp,5oan skp skd skt skm,6dak-descriptor sse,4las.las! lasxml,5lamagraphics.life-balance.desktop lbd,vexchange! lbe,5otus-1-2-3 123,aapproach apr,afreelance pre,anotes nsf,aorganizer org,ascreencam scm,awordpro lwp,4macports.portpkg portpkg,5cd mcd,5edcalcdata mc1,7iastation.cdkey cdkey,5fer mwf,6mp mfm,5icrografx.flo flo,figx igx,6f mif,5obius.daf daf,cis dis,bmbk mbk,cqy mqy,csl msl,bplc plc,btxf txf,6phun.application mpn,bcertificate mpc,6zilla.xul! xul,5s-artgalry cil,7cab-compressed cab,7excel xls xlb xlt xlm xla xlc xlw,c.addin.macroenabled.12 xlam,dsheet.binary.macroenabled.12 xlsb,jmacroenabled.12 xlsm,dtemplate.macroenabled.12 xltm,7fontobject eot,7htmlhelp chm,7ims ims,7lrm lrm,7officetheme thmx,8utlook msg,7pki.seccat cat,ctl stl,acertstore sst,8owerpoint ppt pps pot ppa pwz,h.addin.macroenabled.12 ppam,ipresentation.macroenabled.12 pptm,islide.macroenabled.12 sldm,nshow.macroenabled.12 ppsm,itemplate.macroenabled.12 potm,8roject mpp mpt,7word.document.macroenabled.12 docm,ctemplate.macroenabled.12 dotm,aks wps wks wcm wdb,8pl wpl,7xpsdocument xps,6eq mseq,5usician mus,6vee.style msty,5ynfc taglet,4neurolanguage.nlu nlu,5itf ntf nitf,5oblenet-directory nnd,dsealer nns,dweb nnw,6kia.n-gage.data ngdat,hsymbian.install n-gage,aradio-preset rpst,ms rpss,6vadigm.edm edm,fx edx,ext ext,4oasis.opendocument.chart odc,s-template otc,ndatabase odb,nformula odf,u-template odft,ngraphics odg,v-template otg,nimage odi,s-template oti,npresentation odp,z-template otp,nspreadsheet ods,y-template ots,ntext odt,r-master odm otm,stemplate ott,sweb oth,5lpc-sugar xo,5ma.dd2! dd2,5penofficeorg.extension oxt,8xmlformats-officedocument.presentationml.presentation pptx,zresentationml.slide sldx,zresentationml.slideshow ppsx,zresentationml.template potx,yspreadsheetml.sheet xlsx,zpreadsheetml.template xltx,ywordprocessingml.document docx,zordprocessingml.template dotx,5sgeo.mapguide.package mgp,7i.dp dp,9subsystem esa,4palm pdb pqa oprc,6waafile paw,5g.format str,7osasli ei6,5icsel efif,5mi.widget wg,5ocketlearn plf,6werbuilder6 pbd,5reviewsystems.box box,6oteus.magazine mgz,5ublishare-delta-tree qps,5vi.ptid1 ptid,4quark.quarkxpress qxd qxt qwd qwt qxl qxb,4realvnc.bed bed,6cordare.musicxml mxl,m! musicxml,5ig.cryptonote cryptonote,5n-realmedia rm,g-vbr rmvb,5oute66.link66! link66,4sailingtracker.track st,5eemail see,6ma sema,7d semd,7f semf,5hana.informed.formdata ifm,ntemplate itp,jinterchange iif,jpackage ipk,5imtech-mindmapper twd twds,5maf mmf,7rt.teacher teacher,5olent.sdkm! sdkm sdkd,5potfire.dxp dxp,dsfs sfs,5qlite3 db sqlite sqlite3 db-wal sqlite-wal db-shm sqlite-shm,5tardivision.calc sdc,ihart sds,hdraw sda,himpress sdd,hmath sdf smf,hwriter sdw vor,n-global sgl,6epmania.package smzip,estepchart sm,5un.xml.calc sxc,g.template stc,cdraw sxd,g.template std,cimpress sxi,j.template sti,cmath sxm,cwriter sxw,i.global sxg,jtemplate stw,6s-calendar sus susp,5vd svd,5ymbian.install sis sisx,6ncml! xsm,a.dm+wbxml bdm,d! xdm,4tao.intent-module-archive tao,5cpdump.pcap pcap cap dmp,5mobile-livetv tmo,5rid.tpt tpt,7scape.mxs mxs,6ueapp tra,4ufdl ufd ufdl,5iq.theme utz,5majin umj,5nity unityweb,5oml! uoml,4vcx vcx,5isio vsd vst vss vsw vsdx vssx vstx vssm vstm,9nary vis,5sf vsf,4wap.sic sic,9lc slc,8wbxml wbxml,9mlc wmlc,bscriptc wmlsc,5ebturbo wtb,5olfram.player nbp,6rdperfect wpd,f5.1 wp5,5qd wqd,5t.stf stf,4xara xar,5fdl xfdl,4yamaha.hv-dic hvd,escript hvs,evoice hvp,bopenscoreformat osf,q.osfpvg! osfpvg,bsmaf-audio saf,gphrase spf,5ellowriver-custom-menu cmp,4zul zir zirz,5zazz.deck! zaz,1oicexml! vxml,0widget wgt,2nhlp hlp,1sdl!,2policy!,0x-123 wk,27z-compressed 7z,2abiword abw,3ce-compressed ace,3pple-diskimage dmg,3uthorware-bin aab x32 u32 vox,dmap aam,dseg aas,2bcpio bcpio,3ittorrent torrent,3lorb blb blorb,3zip bz,62 bz2 boz,2cbr cbr cba cbt cb7,4z cbz,3df cdf cda,4link vcd,3fs-compressed cfs,3hat chat,4ess-pgn pgn,3ompress z,4nference nsc,3pio cpio,3sh csh,2dgc-compressed dgc,3irector dir dxr cst cct cxt w3d fgd swa,3ms dms,3oom wad,3tbncx! ncx,5ook! dtb,5resource! res,3vi dvi,2eva eva,2font-bdf bdf,7ghostscript gsf,7linux-psf psf,7pcf pcf,7snf snf,7ttf ttf ttc,8ype1 pfa pfb pfm afm,3reearc arc,6mind mm,2gca-compressed gca,3lulx ulx,3numeric gnumeric,3o-sgf sgf,3ramps-xml gramps,5phing-calculator gcf,3tar gtar taz,2hdf hdf,3ttpd-eruby rhtml,8php phtml pht php,b-source phps,b3 php3,c-preprocessed php3p,b4 php4,b5 php5,2ica ica,3nfo info,4stall-instructions install,4ternet-signup ins isp,3phone iii,3so9660-image iso,2java-jnlp-file jnlp,3mol jmz,2killustrator kil,3rita kra krz,2latex latex,3yx lyx,3zh-compressed lzh lha,4x lzx,2maker frm fb fbdoc,3ie mie,3obipocket-ebook prc mobi,3s-application application,5installer msi,5shortcut lnk,5wmd wmd,5xbap xbap,4binder obd,4cardfile crd,5lip clp,4dos-program com exe bat dll,4mediaview mvb m13 m14,6tafile wmf wmz emf emz,5oney mny,4publisher pub,4schedule scd,4terminal trm,4write wri,2netcdf nc,3s-proxy-autoconfig pac dat,3wc nwc,3zb nzb,2object o,3z-application oza,2perfmon pma pmc pmr pmw,5l pm pl,3kcs12 p12 pfx,67-certificates p7b spc,creqresp p7r,3ython-code pyc pyo,2qgis qgs shp shx,3uicktimeplayer qtl,2redhat-package-manager rpm rpa,4search-info-systems ris,3uby rb,2sh sh,4ar shar,4ockwave-flash swf swfl,3ilverlight scr,d-app xap,3ql sql,3tuffit sit,9x sitx,3ubrip srt,3v4cpio sv4cpio,6rc sv4crc,2t3vm-image t3,3ar tar,3ex-gf gf,6pk pk,6tfm tfm,5info texinfo texi,3gif obj,3rash ~ % bak old sik,2ustar ustar,2wais-source src,3ingz wz,2x509-ca-cert crt der cer,3cf xcf,3fig fig,3liff! xlf,3pinstall xpi,3z xz,2zmachine z1 z2 z3 z4 z5 z6 z7 z8,1aml!,1cap-diff! xdf,1enc!,1html! xhtml xht,1ml xml xsl xsd xpdl,3-dtd dtd,1op!,1proc! xpl,1slt!,2pf!,1v! mxml xhvml xvml xvm,0yaml yaml yml,2ng,1in!,1nd.ms-pkipko pko,0zip;audio:0aac,1dpcm adp,1iff aiff aif aff,1mr,3-wb awb,1nnodex axa,0basic au snd,0flac,0midi mid midi kar rmi,1p4 mp4a,2eg mpga mpega mp3 m4a mp2a m2a m3a,4url m3u,0ogg oga ogg spx,1pus,0prs.sid sid,0s3m,1ilk sil,0vnd.dece.audio uva uvva,5igital-winds eol,5ra dra,5ts dts,7.hd dtshd,4lucent.voice lvp,4ms-playready.media.pya pya,4nuera.ecelp4800 ecelp4800,f7470 ecelp7470,f9600 ecelp9600,4rip rip,0wav,1ebm weba,0x-aiff aifc,2caf caf,2gsm gsm,2matroska mka,3s-wax wax,6ma wma,2pn-realaudio ram,e-plugin rmp,2realaudio ra,2sd2 sd2,1m;chemical:0x-alchemy alc,2cache cac cache,7-csf csf,5tvs-binary cbin cascii ctab,3dx cdx,3hem3d c3d,3if cif,3mdf cmdf,4l cml,3ompass cpa,3rossfire bsd,3sml csml csm,3tx ctx,3xf cxf cef,2embl-dl-nucleotide emb embl,2gamess-input inp gam gamin,4ussian-checkpoint fch fchk,cube cub,binput gau gjc gjf,blog gal,3cg8-sequence gcg,3enbank gen,2hin hin,2isostar istr ist,2jcamp-dx jdx dx,2kinemage kin,2macmolecule mcm,5romodel-input mmod,3dl-molfile mol,6rdfile rd,7xnfile rxn,6sdfile sd,6tgf tgf,3mcif mcif,3ol2 mol2,5conn-Z b,4pac-graph gpt,8input mop mopcrt zmt,8out moo,2ncbi-asn1 asn,b-ascii prt ent,cbinary val,2rosdal ros,2swissprot sw,2vamas-iso14976 vms,3md vmd,2xtel xtel,3yz xyz;font:0otf,0woff,42;image:0avif avif avifs,0bmp,0cgm,1is-cod cod,0g3fax g3,1if,0heic heif heic,0ief,0jpeg jpeg jpg jpe jfif jfif-tbnl jif,0ktx,0pcx,1jpeg pjpg,1ng,1rs.btif btif,0sgi,1vg! svg svgz,0tiff tiff tif,0vnd.adobe.photoshop psd,4dece.graphic uvi uvvi uvg uvvg,5jvu djvu djv,5wg dwg,5xf dxf,4fastbidsheet fbs,5px fpx,5st fst,5ujixerox.edmics-mmr mmr,lrlc rlc,4ms-modi mdi,7photo wdp,4net-fpx npx,4wap.wbmp wbmp,4xiff xif,0webp,0x-3ds 3ds,2adobe-dng dng,2canon-cr2 cr2,aw crw,3mu-raster ras,4x cmx,3oreldraw cdr,bpattern pat,btemplate cdt,7photopaint cpt,2epson-erf erf,2freehand fh fhc fh4 fh5 fh7,3uji-raf raf,2icns icns,4on ico,2jg art,3ng jng,2kodak-dcr dcr,8k25 k25,9dc kdc,2minolta-mrw mrw,2nikon-nef nef,2olympus-orf orf,2panasonic-raw raw rw2 rwl,3entax-pef pef ptx,3ict pic pct,3ortable-anymap pnm,bbitmap pbm,bgraymap pgm,bpixmap ppm,2rgb rgb,2sigma-x3f x3f,3ony-arw arw,7sr2 sr2,9f srf,2tga tga,2xbitmap xbm,3pixmap xpm,3windowdump xwd;message:0rfc822 eml mime mht mhtml nws;model:0iges igs iges,0mesh msh mesh silo,0vnd.collada! dae,4dwf dwf,4gdl gdl,5tw gtw,4mts mts,4usdz+zip usdz,4vtu vtu,1rml wrl vrml,0x3d+binary x3db x3dbz,4vrml x3dv x3dvz,3! x3dz;text:0cache-manifest manifest appcache,2lendar ics icz ifb,1ss,2v,0h323 323,1tml html htm shtml stm,0iuls uls,0javascript js,1son,0markdown md markdown mdown markdn,0n3,0plain txt text brf conf def list log in bas diff ksh,1rs.lines.tag dsc,0richtext rtx,0scriptlet sct wsc,1gml sgml sgm,0tab-separated-values tsv,1exmacs tm,1roff t tr roff man me ms,1urtle ttl,0uri-list uri uris urls,0vcard,1nd.curl curl,8.dcurl dcurl,9mcurl mcurl,9scurl scurl,4dvb.subtitle sub,4fly fly,5mi.flexstor flx,4graphviz gv,4in3d.3dml 3dml,9spot spot,4sun.j2me.app-descriptor jad,4wap.si si,9l sl,8wml wml,bscript wmls,0webviewhtml htt,0x-asm s asm,2bibtex bib,3oo boo,2c c h dic,3++hdr h++ hpp hxx hh,5src c++ cpp cxx cc,3omponent htc,2diff patch,3src d,2fortran f for f77 f90,2haskell hs,2java java,2literate-haskell lhs,2moc moc,2nfo nfo,2opml opml,2pascal p pas pp inc,3cs-gcd gcd,3ython py,2scala scala,3etext etx,3fv sfv,2tcl tcl tk,3ex tex ltx sty cls,2uuencode uu,2vcalendar vcs,5rd vcf;video:03gpp 3gp,42 3g2,0annodex axv,0dl,1v dif dv,0fli,0gl,0h261,33,34,0jpeg jpgv,2m jpm jpgm,0mj2 mj2 mjp2,1p2t ts,24 mp4 mp4v mpg4,2eg mpeg mpg mpe m1v m2v mp2 mpa mpv2,0ogg ogv,0quicktime qt mov,0vnd.dece.hd uvh uvvh,9mobile uvm uvvm,9pd uvp uvvp,9sd uvs uvvs,9video uvv uvvv,5vb.file dvb,4fvt fvt,4mpegurl mxu m4u,5s-playready.media.pyv pyv,4uvvu.mp4 uvu uvvu,4vivo viv,0webm,0x-f4v f4v,3lv flv,2la-asf lsf lsx,2m4v m4v,3atroska mpv mkv mk3d mks,3ng mng,3s-asf asf asx asr,5vob vob,5wm wm,7v wmv,7x wmx,6vx wvx,4video avi,2sgi-movie movie,3mv smv;x-conference:0x-cooltalk ice;x-world:0x-vrml vrm flr wrz xaf xof".split(";")){const r=e.indexOf(":"),a=e.slice(0,r);let n="";for(const s of e.slice(r+1).split(",")){const e=s.split(" "),r=n.slice(0,Number.parseInt(e[0][0],36))+e[0].slice(1);n=r;const i=r.replace(/!/g,"+xml"),o=e.length>1?e.slice(1):[i.split("+")[0]];for(const e of o)t[e]=a+"/"+i}}return t})()),ac)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{wa as BlobReader,ha as BlobWriter,pa as Data64URIReader,fa as Data64URIWriter,jo as ERR_ABORTED,Hn as ERR_AMBIGUOUS_ARCHIVE,In as ERR_BAD_FORMAT,Nn as ERR_CENTRAL_DIRECTORY_NOT_FOUND,Is as ERR_DUPLICATED_NAME,Wn as ERR_ENCRYPTED,Kn as ERR_ENCRYPTED_CENTRAL_DIRECTORY,Zn as ERR_ENTRY_DATA_OUT_OF_BOUNDS,Ro as ERR_ENTRY_EXISTS,Mn as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,Cn as ERR_EOCDR_NOT_FOUND,_n as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,Jr as ERR_HTTP_RANGE,Qr as ERR_HTTP_RESOURCE_CHANGED,qt as ERR_INVALID_AUTHENTICATION_CODE,je as ERR_INVALID_CODEC_DEFINITION,Ie as ERR_INVALID_CODEC_MODULE,Cs as ERR_INVALID_COMMENT,Ms as ERR_INVALID_COMMENT_TYPE,Ve as ERR_INVALID_COMPRESSED_DATA,Ze as ERR_INVALID_CRC32,_s as ERR_INVALID_DATE,Bs as ERR_INVALID_ENCRYPTION_STRENGTH,Ns as ERR_INVALID_ENTRY_COMMENT,Ps as ERR_INVALID_ENTRY_COMMENT_TYPE,Ws as ERR_INVALID_ENTRY_NAME,Zs as ERR_INVALID_EXTRAFIELD,Ys as ERR_INVALID_EXTRAFIELD_DATA,Ks as ERR_INVALID_EXTRAFIELD_DATA_TYPE,Hs as ERR_INVALID_EXTRAFIELD_TYPE,Xn as ERR_INVALID_FILENAME_VALIDATION,J as ERR_INVALID_FUNCTION_OPTION,si as ERR_INVALID_GID,pi as ERR_INVALID_LEVEL,Jn as ERR_INVALID_MAX_APPENDED_DATA_SIZE,nt as ERR_INVALID_MAX_WORKERS,li as ERR_INVALID_MSDOS_ATTRIBUTES,di as ERR_INVALID_MSDOS_DATA,Lt as ERR_INVALID_PASSWORD,$ as ERR_INVALID_PASSWORD_TYPE,Do as ERR_INVALID_PASS_THROUGH,Oo as ERR_INVALID_READER_OPTIONS,Q as ERR_INVALID_SIGNAL,Bt as ERR_INVALID_SIGNATURE,fi as ERR_INVALID_SIGNATURE_DATA,Gn as ERR_INVALID_STRICTNESS,ni as ERR_INVALID_UID,qe as ERR_INVALID_UNCOMPRESSED_SIZE,oi as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,ci as ERR_INVALID_UNIX_ID_SIZE,ii as ERR_INVALID_UNIX_MODE,Ls as ERR_INVALID_VERSION,$r as ERR_ITERATOR_COMPLETED_TOO_SOON,Pn as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Vn as ERR_OVERLAPPING_ENTRY,Fo as ERR_READABLE_CONSUMED,Te as ERR_RESERVED_COMPRESSION_METHOD,qn as ERR_SPLIT_ZIP_FILE,ri as ERR_UNDEFINED_READER,ti as ERR_UNDEFINED_UNCOMPRESSED_SIZE,ei as ERR_UNDETERMINED_SIZE,Yn as ERR_UNSAFE_FILENAME,Bn as ERR_UNSUPPORTED_COMPRESSION,mo as ERR_UNSUPPORTED_CONTEXT,Zt as ERR_UNSUPPORTED_CRYPTO_API,Ln as ERR_UNSUPPORTED_ENCRYPTION,Vs as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,qs as ERR_UNSUPPORTED_ENCRYPTION_USDZ,$s as ERR_UNSUPPORTED_FORMAT,pr as ERR_WORKER_STARTUP_TIMEOUT,ta as ERR_WRITER_NOT_INITIALIZED,ai as ERR_ZIP_NOT_EMPTY,Pa as HttpRangeReader,Na as HttpReader,la as Reader,La as SplitDataReader,Ba as SplitDataWriter,ya as TextReader,ga as TextWriter,_a as Uint8ArrayReader,Wa as Uint8ArrayWriter,da as Writer,Mo as ZipDirectoryEntry,Io as ZipEntry,No as ZipFS,Co as ZipFileEntry,as as ZipReader,ns as ZipReaderStream,bi as ZipWriter,gi as ZipWriterStream,wt as configure,po as createBlobTempStream,co as createOPFSTempStream,wo as createSyncAccessHandleTempStream,Po as fs,nc as getMimeType,Pe as registerCodec,xt as resetConfiguration,Ao as terminateWorkers,_e as unregisterCodec};
|