@zip.js/zip.js 2.8.57 → 2.8.58

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.
@@ -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,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="dataDescriptor",V="offset",Z="usdz",H="signCentralDirectory",K="filename",Y="comment",G="strict",X="balanced",J="tolerant",Q="Invalid option (must be a function)",$="Invalid signal (must be an AbortSignal instance)",tt="Invalid password (password must be a string, rawPassword must be a Uint8Array)";function et(t){if(t&&typeof t!=U)throw Error(Q);return t}function rt(t){if(t&&(typeof t.addEventListener!=U||"boolean"!=typeof t.aborted))throw Error($);return t||F}function at(t,e){if(t&&typeof t!=T||e&&!(e instanceof Uint8Array))throw Error(tt)}function nt(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw Error(r)}function st(t,e,r){t!==F&&nt(t,e,r)}function it(t){return typeof t==T&&t.trim()?Number(t):t}const ot="Invalid maxWorkers (must be an integer greater than 0)";let ct=2;try{typeof navigator!=O&&navigator.hardwareConcurrency&&(ct=navigator.hardwareConcurrency)}catch{}const lt={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:ct,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=O&&CompressionStream,DecompressionStream:typeof DecompressionStream!=O&&DecompressionStream},dt="maxWorkers",pt=["chunkSize",dt,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],ft=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],ut=["baseURI","wasmURI","workerURI","useCompressionStream","useWebWorkers","transferStreams",...pt,...ft],mt={...lt};function wt(){return mt}function ht(t){return yt(t.chunkSize)}function yt(t){return t=it(t),Number.isInteger(t)&&t>=1?Math.max(t,64):65536}function bt(t){Object.assign(mt,gt(vt(t)))}function gt(t){const e={};for(const r of ut){const a=t[r];a!==F&&(e[r]=xt(r,a))}return e}function xt(t,e){if(pt.includes(t)){if(e=it(e),t==dt&&(!Number.isInteger(e)||e<1))throw Error(ot)}else ft.includes(t)&&et(e);return e}function vt(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 Et(t){const e=gt(vt(t));Object.assign(lt,e),Object.assign(mt,e)}function St(){for(const t of ut)delete mt[t];Object.assign(mt,lt)}function zt(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function kt(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function At(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const Rt=[[],[],[],[],[],[],[],[]];for(let t=0;t<256;t++){let e=t;for(let t=0;t<8;t++)e=1&e?e>>>1^3988292384:e>>>1;Rt[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=Rt[e-1][t];Rt[e][t]=r>>>8^Rt[0][255&r]}const[Ft,Dt,Ot,Ut,jt,Tt,It,Ct]=Rt;class Mt{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(;a<=s;a+=8){const t=e^n.getInt32(a,!0),r=n.getInt32(a+4,!0);e=Ct[255&t]^It[t>>>8&255]^Tt[t>>>16&255]^jt[t>>>24&255]^Ut[255&r]^Ot[r>>>8&255]^Dt[r>>>16&255]^Ft[r>>>24&255]}}for(;a<r;a++)e=e>>>8^Ft[255&(e^t[a])];this.o=e}get(){return~this.o}}class Nt extends TransformStream{constructor(){let t;const e=new Mt;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 Pt(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 _t={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const r=t[t.length-1],a=_t.l(r);return 32===a?t.concat(e):_t.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)+_t.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]=_t.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=_t.l(n);return a.push(_t.v(e+s&31,e+s>32?r:a.pop(),1)),a}},Wt={bytes:{S(t){const e=_t.bitLength(t)/8,r=new Uint8Array(e);let a;for(let n=0;n<e;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(_t.v(8*(3&r),a)),e}}},Lt=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=Wt.j.A(t));const r=e.O=_t.concat(e.O,t),a=e.U,n=e.U=a+_t.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);t<=n;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=_t.concat(e,[_t.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?e&r|~e&a:t<=39?e^r^a:t<=59?e&r|e&a|r&a:t<=79?e^r^a:void 0}M(t,e){return e<<t|e>>>32-t}T(t){const e=this,r=e.D,a=Array(80);for(let e=0;e<16;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;t<=79;t++){t>=16&&(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}},Bt={importKey:t=>new Bt.N(Wt.bytes.A(t)),P(t,e,r,a){if(r=r||1e4,a<0||r<0)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=_t;for(e=Wt.bytes.A(e),l=1;f<(n||1);l++){for(s=i=t.encrypt(u.concat(e,[l])),o=1;o<r;o++)for(i=t.encrypt(i),c=0;c<i.length;c++)s[c]^=i[c];for(o=0;f<(n||1)&&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._=Lt,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;e<n;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)}}},qt=typeof crypto!=O&&typeof crypto.getRandomValues==U,Vt="Invalid password",Zt="Invalid signature",Ht=Zt,Kt="zipjs-abort-check-password",Yt="Crypto API not supported";function Gt(t){if(qt)return crypto.getRandomValues(t);throw Error(Yt)}const Xt=16,Jt={name:"PBKDF2"},Qt=Object.assign({hash:{name:"HMAC"}},Jt),$t=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},Jt),te=["deriveBits"],ee=[8,12,16],re=[16,24,32],ae=10,ne=[0,0,0,0],se=typeof crypto!=O,ie=se&&crypto.subtle,oe=se&&typeof ie!=O,ce=Wt.bytes,le=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;s<4*n+28;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]=s<=4||t<4?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;t<256;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;r<4;r++)t[r][d]=f=f<<24^f>>>8,e[r][s]=p=p<<24^p>>>8}for(let r=0;r<5;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;t<a;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;t<4;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}},de=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=_t.bitLength(e);for(let n=0;n<a;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 _t.h(e,n)}},pe=Bt.N;let fe=se&&oe&&typeof ie.importKey==U,ue=se&&oe&&typeof ie.deriveBits==U;class me extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:a,checkAuthenticationCode:n=!0}){super({start(){he(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 be(t,e,r,xe(a,0,ee[e])),s=xe(a,ee[e]);if(n[0]!=s[0]||n[1]!=s[1])throw Error(Vt)})(r,s,n,xe(t,0,ee[s]+2)),t=xe(t,ee[s]+2),a?e.error(Error(Kt)):i()):await o;const c=new Uint8Array(t.length-ae-(t.length-ae)%Xt);e.enqueue(ye(r,t,c,0,ae,!0))},async flush(t){const{nt:e,st:r,it:a,ready:s}=this;if(r&&e){await s;const i=xe(a,0,a.length-ae),o=xe(a,a.length-ae);let c=I;if(i.length){const t=Ee(ce,i);r.update(t);const a=e.update(t);c=ve(ce,a)}const l=xe(ve(ce,r.digest()),0,ae);let d=a.length<ae?1:0;for(let t=0;t<ae;t++)d|=l[t]^o[t];if(d&&n)throw Error(Ht);t.enqueue(c)}}})}}class we extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){super({start(){he(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=Gt(new Uint8Array(ee[e]));return zt(a,await be(t,e,r,a))})(r,n,a),s()):await i;const c=new Uint8Array(o.length+t.length-t.length%Xt);c.set(o,0),e.enqueue(ye(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(Ee(ce,a));r.update(t),s=ve(ce,t)}const i=ve(ce,r.digest()).slice(0,ae);t.enqueue(zt(s,i))}}})}}function he(t,e,r,a){Object.assign(t,{ready:new Promise(e=>t.et=e),password:ge(e,r),strength:a-1,it:I})}function ye(t,e,r,a,n,s){const{nt:i,st:o,it:c}=t;c.length&&(e=zt(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%Xt)),d=0;d<=l-Xt;d+=Xt){const t=Ee(ce,xe(e,d,d+Xt));s&&o.update(t);const n=i.update(t);s||o.update(n),r.set(ve(ce,n),d+a)}return t.it=xe(e,d),r}async function be(t,e,r,a){t.password=null;const n=await(async(t,e,r,a,n)=>{if(!fe)return Bt.importKey(e);try{return await ie.importKey("raw",e,r,!1,n)}catch{return fe=!1,Bt.importKey(e)}})(0,r,Qt,0,te),s=await(async(t,e,r)=>{if(!ue)return Bt.P(e,t.salt,$t.iterations,r);try{return await ie.deriveBits(t,e,r)}catch{return ue=!1,Bt.P(e,t.salt,$t.iterations,r)}})(Object.assign({salt:a},$t),n,8*(2*re[e]+2)),i=new Uint8Array(s),o=Ee(ce,xe(i,0,re[e])),c=Ee(ce,xe(i,re[e],2*re[e])),l=xe(i,2*re[e]);return Object.assign(t,{keys:{key:o,ot:c,passwordVerification:l},nt:new de(new le(o),Array.from(ne)),st:new pe(c)}),l}function ge(t,e){return e===F?Pt(t):e}function xe(t,e,r){return t.subarray(e,r)}function ve(t,e){return t.S(e)}function Ee(t,e){return t.A(e)}class Se extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:a}){super({start(){ke(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=Ae(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw Error(Vt);t=t.subarray(12)}a?e.error(Error(Kt)):e.enqueue(Ae(r,t))}})}}class ze extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){ke(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=Gt(new Uint8Array(12));e[11]=r.passwordVerification,a=new Uint8Array(t.length+e.length),a.set(Re(r,e),0),n=12}else a=new Uint8Array(t.length),n=0;a.set(Re(r,t),n),e.enqueue(a)}})}}function ke(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 Mt(a[0]),lt:new Mt(a[2])}),r)for(let e=0;e<r.length;e++)Fe(t,r[e]);else for(let r=0;r<e.length;r++)Fe(t,e.charCodeAt(r))})(t,e,r)}function Ae(t,e){const r=new Uint8Array(e.length);for(let a=0;a<e.length;a++)r[a]=De(t)^e[a],Fe(t,r[a]);return r}function Re(t,e){const r=new Uint8Array(e.length);for(let a=0;a<e.length;a++)r[a]=De(t)^e[a],Fe(t,e[a]);return r}function Fe(t,e){let[,r]=t.keys;t.ct.append([e]);const a=~t.ct.get();r=Ue(Math.imul(Ue(r+Oe(a)),134775813)+1),t.lt.append([r>>>24]);const n=~t.lt.get();t.keys=[a,r,n]}function De(t){const e=2|t.keys[2];return Oe(Math.imul(e,1^e)>>>8)}function Oe(t){return 255&t}function Ue(t){return 4294967295&t}function je(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 Te(t,e){t=je(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 Ie(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 Ce="Invalid codec definition",Me="Reserved compression method",Ne="Invalid codec module",Pe=[0,8,9,99],_e=new Map,We=new Map;function Le(t={}){const{compressionMethod:r,format:a,codecURI:n,CompressionStream:s,DecompressionStream:i,versionNeeded:o}=t;if(!Number.isInteger(r)||r<0||r>e||typeof a!=T||!a.length)throw Error(Ce);if(Pe.includes(r))throw Error(Me);const c=typeof s==U||typeof i==U;if(!(c||typeof n==T&&n.length))throw Error(Ce);_e.set(r,{compressionMethod:r,format:a,codecURI:n,versionNeeded:o}),c&&Ze(a,{CompressionStream:s,DecompressionStream:i})}function Be(t){const e=_e.get(t);if(e){let r;_e.delete(t),_e.forEach(t=>r=r||t.format==e.format),r||We.delete(e.format)}}function qe(t){return _e.get(t)}function Ve(t){return We.get(t)}function Ze(t,e){const{CompressionStream:r,DecompressionStream:a}=e;if(typeof r!=U&&typeof a!=U)throw Error(Ne);We.set(t,{CompressionStream:r,DecompressionStream:a})}const He="Invalid uncompressed size",Ke="Invalid compressed data",Ye=Zt,Ge="deflate-raw",Xe="gzip",Je=[31,139,8];class Qe 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&&Ve(p),g=c&&n&&!d&&!b&&(!s||o)&&!(!i||!a);if(s&&!o||!c||g||(m=new Nt,y=or(y,m)),n)if(b)y=cr(y,sr(b.CompressionStream,p,{level:l,chunkSize:e,compressionMethod:f}));else if(g)h=new $e,y=cr(y,new a(Xe)),y=or(y,h);else try{y=ir(y,i,{level:l,chunkSize:e},a,r)}catch(t){let e;try{e=new a(Xe)}catch{throw t}y=cr(y,e),y=or(y,new $e)}s&&(o?y=or(y,new ze(t)):(w=new we(t),y=or(y,w))),nr(u,y,()=>{s&&!o||!c||(u.crc32=g?h.crc32:new DataView(m.value.buffer).getUint32(0))})}}class $e 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(n<=8)return void(r=zt(r,t));const s=n-8,i=Math.min(s,r.length);a.enqueue(zt(r.subarray(0,i),t.subarray(0,s-i))),r=zt(r.subarray(i),t.subarray(s-i))},flush(){const e=At(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class tr 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=or(y,new Se(t)):(h=new me(t),y=or(y,h))),c){const t=p&&Ve(p);if(t)y=cr(y,sr(t.DecompressionStream,p,{chunkSize:e,compressionMethod:f,rawBitFlag:u,uncompressedSize:m}));else try{y=ir(y,l,{chunkSize:e,deflate64:d},a,r)}catch(t){if(d||m===F)throw t;let e;try{e=new a(Xe)}catch{throw t}y=((t,e,r)=>{const a=new Mt;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(Je),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=At(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,o>=r?s():c&&f(),e.enqueue(t)},cancel(t){i(t)}});return t=or(t,d),or(t=cr(t,e),p);function f(){u(),n=setTimeout(()=>i(Error(He)),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(Ke);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 Nt,y=or(y,w)),nr(this,y,()=>{if(i){const t=new DataView(w.value.buffer);if(o!=t.getUint32(0,!1))throw Error(Ye)}})}}const er=new Map;function rr(t,e){if(!t)return!1;let r=er.get(t);r||(r=new Map,er.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 ar(t){return rr(t,Ge)}function nr(t,e,r){e=or(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function sr(t,e,r){if(!t)throw Error("Compression method not supported");return new t(e,r)}function ir(t,e,r,a,n){const s=e&&a?a:n||a,i=r.deflate64?"deflate64-raw":Ge;let o;try{o=new s(i,r)}catch(t){if(!e||!n||s==n)throw t;o=new n(i,r)}return cr(t,o)}function or(t,e){return je(t).pipeThrough(e)}function cr(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 lr="data",dr="deflate",pr="inflate";class fr extends TransformStream{constructor(t,e){super({});const r=this,{codecType:a}=t;let n;a.startsWith(dr)?n=Qe:a.startsWith(pr)&&(n=tr),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(He)},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 ur extends TransformStream{constructor(t){const e=[];let r=0;function a(){const a=new Uint8Array(t);let n=0;for(;n<t;){const r=e[0],s=t-n;r.length<=s?(a.set(r,n),n+=r.length,e.shift()):(a.set(r.subarray(0,s),n),e[0]=r.subarray(s),n+=s)}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 mr="Worker startup timeout";let wr,hr,yr,br=()=>{};async function gr(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;if(r&&!r.ft)return!0;if(ar(e)||rr(e,Xe))return!0;if(r)try{return await br(t),!0}catch{return!1}return!1}function xr(t){t.createWorker?hr=!0:wr=!1}class vr{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 hr&&(l=F),Object.assign(t,{wt:!0,ht:(t.ht||0)+1,readable:e.pipeThrough(new ur(ht(n))).pipeThrough(new Er(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)}}}),wr===F&&(wr=typeof Worker!=O),(i&&yr&&(wr&&c||l)?yr:zr)(t,n)}}class Er extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:a}){let n=0;super({async start(){t&&await Sr(t,r)},async transform(t,a){n+=t.length,e&&await Sr(e,n,r),a.enqueue(t)},async flush(){a&&await Sr(a,n)}})}}async function Sr(t,...e){try{await t(...e)}catch{}}function zr(t,e){return{run:()=>kr(t,e)}}async function kr({options:t,readable:e,writable:r,xt:a},n){let s;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(dr),r=e?n.CompressionStreamFallback:n.DecompressionStreamFallback,a=e?n.CompressionStream:n.DecompressionStream;if(t.useCompressionStream){if(r&&r.ft&&!ar(a))try{await br(n)}catch{}}else try{await br(n)}catch{r&&!r.ft||(t.useCompressionStream=!0)}}s=new fr(t,n),await e.pipeThrough(s).pipeThrough(new ur(ht(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 Ar={type:"module"},Rr="error";let Fr,Dr,Or,Ur=!0;try{Ur=typeof structuredClone==U&&structuredClone(new DOMException("","AbortError")).code!==F}catch{}var jr;function Tr(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function Ir(t){const{yt:e}=t;if(e)try{e.terminate()}catch{}t.gt=null}function Cr(t,e,r,a,n=!0){const{createWorker:s}=r;let i,o,c;if(s)i=s();else if(Dr===F||Fr!==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=Ar);try{i=new Worker(o,c)}catch(n){if(d)try{URL.revokeObjectURL(o)}catch{}if(s&&d)return Cr(t,e,r,a,!1);if(a)throw n;return Cr(t,e,r,!0,!1)}}else{a===F&&(a=!0),a&&(c=Ar);try{o=new URL(o,e)}catch{}try{i=new Worker(o,c)}catch(s){if(a)return Cr(t,e,r,!1,n);throw s}}Fr=t,Dr=o,Or=c}else i=new Worker(Dr,Or);return i.addEventListener("message",t=>{r.Et=!0,Mr(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()||Pr({type:lr,value:t,done:r,messageId:n},e)}r==lr&&(await c.ready,await c.write(new Uint8Array(a)),u()||Pr({type:"ack",messageId:n},e)),"close"==r&&m(null,s)}}catch(i){u()||(Ir(e),m(i))}function m(t,e){u()||(t?d(t):l(e),c&&c.releaseLock(),t&&t.codecImportFailed||p())}})(t,r)}),i.addEventListener(Rr,t=>Nr(t,r)),i.addEventListener("messageerror",t=>Nr(t,r)),i}function Mr(t){const{kt:e}=t;e&&(clearTimeout(e),t.kt=null)}function Nr(t,e){t.preventDefault&&t.preventDefault(),Mr(e);const{Et:r,zt:a,writer:n,xt:s}=e;Ir(e),r||(e.yt=null);let i=t.error||Error(t.message||Rr);r||(i=Object.assign(Error(i.message||Rr),{At:!0}),e.Rt=i),a&&(a(i),n&&n.releaseLock(),r&&s())}function Pr(t,{yt:e,writer:r,transferStreams:a,Et:n}){try{const{value:r,readable:s,writable:i}=t,o=[];if(r&&(t.value=kt(r),o.push(t.value.buffer)),a&&Ur&&n?(s&&o.push(s),i&&o.push(i)):t.readable=t.writable=null,o.length)try{return e.postMessage(t,o),!0}catch{Ur=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}jr=(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=Cr(t.workerURI,r,t)}catch{return xr(t),zr(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(mr);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=Pr({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)&&p>=0&&(t.kt=setTimeout(()=>(t=>{if(t.kt=null,t.Et)return;const{zt:e,writer:r}=t;if(Ir(t),t.yt=null,e){const t=Error(mr);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 xr(t),Tr(t),kr(t,e);if(r&&r.codecImportFailed){if(t.reader)return Tr(t),kr(t,e);t.xt()}throw r}}}})}return t.gt},yr=jr;let _r=[];const Wr=[];let Lr,Br,qr=0;async function Vr(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)=>{!We.has(t)&&e&&Ze(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=_r.find(t=>!t.wt);if(r)return Gr(r),new vr(r,t,e,b);if(_r.length<w){const r={Dt:qr};return qr++,_r.push(r),new vr(r,t,e,b)}return new Promise(r=>{Wr.push({resolve:r,stream:t,Ot:e}),Br=a.workerStarvationTimeout,Zr()})})()).run();function b(t){if(Hr(),Wr.length){const[{resolve:e,stream:r,Ot:a}]=Wr.splice(0,1);e(new vr(t,r,a,b)),Zr()}else t.yt?(Gr(t),((t,e)=>{const{config:r}=e,{terminateWorkerTimeout:a}=r;Number.isFinite(a)&&a>=0&&(t.vt?t.vt=!1:t.Ut=setTimeout(async()=>{_r=_r.filter(e=>e!=t);try{await t.terminate()}catch{}},a))})(t,e)):_r=_r.filter(e=>e!=t)}}function Zr(){!Lr&&Wr.length&&Number.isFinite(Br)&&Br>=0&&(Lr=setTimeout(Kr,Br))}function Hr(){Lr&&(clearTimeout(Lr),Lr=null)}function Kr(){if(Lr=null,Wr.length){const[{resolve:t,stream:e,Ot:r}]=Wr.splice(0,1),a=Object.assign({},r,{useWebWorkers:!1,workerURI:F,createWorker:F});t(new vr({},e,a,Yr)),Zr()}}function Yr(){Hr(),Zr()}function Gr(t){const{Ut:e}=t;e&&(clearTimeout(e),t.Ut=null)}const Xr="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");function Jr(t,e){return Qr(t,e,!0)}function Qr(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?(t=>{{let e="";for(let r=0;r<t.length;r++)e+=Xr[t[r]];return e}})(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const $r="HTTP error ",ta="HTTP Range not supported",ea="HTTP resource changed",ra="Writer iterator completed too soon",aa="Writer not initialized",na="Content-Range",sa="Range",ia="GET",oa="bytes",ca=16777216,la="writable",da=Symbol();class pa{constructor(){this.size=0}init(){this.initialized=!0}}class fa extends pa{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=ht(wt())}={}){const a=this;let n=0;return r=yt(r),new ReadableStream({async pull(s){const i=e===F?r:Math.min(r,e-n),o=await Ja(a,t+n,i);o.length&&s.enqueue(o),n+r>=e||!o.length&&i?s.close():n+=r}})}}class ua extends pa{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw Error(aa);return t.writeUint8Array(kt(e))}});Object.defineProperty(t,la,{get:()=>e})}writeUint8Array(){}}class ma extends fa{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;t<o+e&&t<i.length;t++)n[t-o]=i.charCodeAt(t),c++;return c<n.length?n.subarray(0,c):n}}class wa extends ua{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 ha,ya;class ba extends fa{constructor(t){super(),Object.assign(this,{Ct:t,size:t.size}),ya||(ya=(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();ha=1==e}catch{ha=!1}})())}createReadable(t){const{Ct:e,size:r}=this,{offset:a=0,size:n=r-a}=t||{};return!a&&n>=r?je(e.stream()):ha?je(e.slice(a,a+n).stream()):super.createReadable(t)}async readUint8Array(t,e){const r=this,a=t+e,n=!t&&a>=r.size?r.Ct:r.Ct.slice(t,a);let s=await n.arrayBuffer();return s.byteLength>e&&(s=s.slice(t,a)),new Uint8Array(s)}}class ga extends pa{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,la,{get:()=>r.writable}),e.contentType=t,e.Mt=Te(r.readable,t),e.Mt.catch(()=>{})}getData(){return this.Mt}}class xa extends ba{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function va(t){let e=0;for(let r=0;r<t.length;r++){const a=t.charCodeAt(r);a<128?e+=1:a<2048?e+=2:a<55296||a>=57344?e+=3:a<56320&&56320==(64512&t.charCodeAt(r+1))?(e+=4,r++):e+=3}return e}class Ea extends ga{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)=>Qr(t,e,!1))(new Uint8Array(await r.arrayBuffer()),t)}}class Sa extends fa{constructor(t,e){super(),ka(this,t,e)}async init(){await Aa(this,Pa,Ia),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&&r<n)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(ta);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 Pa(ia,t,ja(t,n,e));if(206!=r.status)throw Error(ta);const o=r.headers.get(na);if(o){const t=Number(o.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=n)throw Error(ta)}Ua(t,r),Oa(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 Ra(this,t,e,Pa,Ia)}}class za extends fa{constructor(t,e){super(),ka(this,t,e)}async init(){await Aa(this,_a,Ca),super.init()}readUint8Array(t,e){return Ra(this,t,e,_a,Ca)}}function ka(t,e,r){const{preventHeadRequest:a,useRangeHeader:n,forceRangeRequests:s,combineSizeEocd:i,checkResourceChanges:o=!0,maximumRangeSize:c=ca,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 Aa(t,e,r){const{url:a,preventHeadRequest:n,useRangeHeader:s,forceRangeRequests:i,combineSizeEocd:o}=t;if((t=>{const{baseURI:e}=wt(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r})(a)&&(s||i)&&(typeof n==O||n)){const a=await e(ia,t,ja(t,o?-22:void 0)),n=a.headers.get("Accept-Ranges");if(!(i||n&&n.toLowerCase()==oa))throw Error(ta);{if(o){const e=new Uint8Array(await a.arrayBuffer());206==a.status&&e.length==p&&(t.Pt=e)}Oa(t,a);const n=Fa(a);n===F?await Na(t,e,r):t.size=n}}else await Na(t,e,r)}async function Ra(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(e>=c||0===r)return I;{e+r>c&&(r=c-e);const n=await a(ia,t,ja(t,e,r));if(206!=n.status)throw Error(ta);const s=n.headers.get(na);if(s){const t=Number(s.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=e)throw Error(ta)}Ua(t,n),Oa(t,n);const i=new Uint8Array(await n.arrayBuffer());if(i.length!=r)throw Error(ta);return i}}{const{data:a}=t;return a||await n(t,l),t.data.subarray(e,e+r)}}function Fa(t){const e=t.headers.get(na);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function Da({headers:t}){return{_t:t.get("Etag")||F,lastModified:t.get("Last-Modified")||F}}function Oa(t,e){const{checkResourceChanges:r,Wt:a}=t;r&&!a&&206==e.status&&(t.Wt=Da(e))}function Ua(t,e){const{checkResourceChanges:r,Wt:a,size:n}=t;if(r){const t=Fa(e);if(t!==F&&n!==F&&t!=n)throw Error(ea);if(a){const t=Da(e);if(Object.entries(a).some(([e,r])=>r!==F&&t[e]!==F&&r!=t[e]))throw Error(ea)}}}function ja(t,e=0,r=1){return Object.assign({},Ta(t),{[sa]:oa+"="+(e<0?e:e+"-"+(e+r-1))})}function Ta({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Ia(t){await Ma(t,Pa)}async function Ca(t){await Ma(t,_a)}async function Ma(t,e){const r=await e(ia,t,Ta(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function Na(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const a=await e("HEAD",t,Ta(t)),n=a.headers.get("Content-Length");n&&!a.headers.get("Content-Encoding")?t.size=Number(n):await r(t,t.options)}}async function Pa(t,{fetch:e=fetch,options:r,url:a},n){const s=await e(a,Object.assign({},r,{method:t,headers:n}));if(s.status<400)return s;throw 416==s.status?Error(ta):Error($r+(s.statusText||s.status))}function _a(t,{url:e},r){return new Promise((a,n)=>{const s=new XMLHttpRequest;if(s.addEventListener("load",()=>{if(s.status<400){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(ta):Error($r+(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 Wa extends fa{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new za(t,e):new Sa(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 La extends Wa{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class Ba extends fa{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 qa extends ua{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(;t<r;)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 Va extends fa{constructor(t){super(),this.qt=t}async init(){const t=this;t.Vt=0;const e=t.qt=await Promise.all(t.qt.map(Xa));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)n=await Ja(o,i,e);else{const s=a-i;n=zt(await Ja(o,i,s),await r.readUint8Array(t+s,e-s))}}else n=I;return r.Vt=Math.max(s,r.Vt),n}}class Za extends pa{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===da)return void(s&&await c());const{availableSize:i}=r;if(s)e.length>=i?(await o(e.subarray(0,i)),await c(),e.length>i&&await this.write(e.subarray(i))):await o(e);else{const{value:i,done:o}=await t.next();if(o&&!i)throw Error(ra);a=i,a.size=0,a.maxSize&&(r.maxSize=a.maxSize),r.availableSize=r.maxSize,await Ga(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,la,{get:()=>i})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(da)}finally{t.releaseLock()}}}class Ha{constructor(t){return Array.isArray(t)&&(t=new Va(t)),(t instanceof ReadableStream||typeof t.getReader==U)&&(t={readable:je(t)}),t}}class Ka{constructor(t){return t.writable===F&&typeof t.next==U&&(t=new Za(t)),(t instanceof WritableStream||typeof t.getWriter==U)&&(t={writable:Ie(t)}),t.size===F&&(t.size=0),t}}function Ya(t){return!(!t||!t.getData)}async function Ga(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function Xa(t){return t=new Ha(t),await Ga(t),t.size!==F&&t.readUint8Array||(t=new ba(await Te(t.readable)),await Ga(t)),t}function Ja(t,e,r){return t.readUint8Array(e,r)}function Qa(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?fa.prototype.createReadable.call(t,e):t.readable}const $a="filename",tn="rawFilename",en="comment",rn="rawComment",an="uncompressedSize",nn="compressedSize",sn="offset",on="diskNumberStart",cn="lastModDate",ln="rawLastModDate",dn="lastAccessDate",pn="rawLastAccessDate",fn="creationDate",un="rawCreationDate",mn="internalFileAttributes",wn="externalFileAttributes",hn="internalFileAttribute",yn="externalFileAttribute",bn="msdosAttributesRaw",gn="msdosAttributes",xn="msDosCompatible",vn="zip64",En="encrypted",Sn="version",zn="versionMadeBy",kn="zipCrypto",An="directory",Rn="executable",Fn="compressionMethod",Dn="signature",On="extraField",Un="unixMode",jn="setuid",Tn="setgid",In="sticky",Cn=[$a,tn,an,nn,cn,ln,en,rn,dn,pn,fn,un,sn,on,mn,wn,hn,yn,bn,gn,xn,vn,En,Sn,zn,kn,An,Rn,"symlink",Fn,Dn,"crc32",On,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",Un,"unixExternalUpper",jn,Tn,In,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class Mn{constructor(t){Cn.forEach(e=>this[e]=t[e])}}const Nn="File format is not recognized",Pn="End of central directory not found",_n="End of Zip64 central directory locator not found",Wn="Central directory header not found",Ln="Local file header not found",Bn="Zip64 extra field not found",qn="File contains encrypted entry",Vn="Encryption method not supported",Zn="Compression method not supported",Hn="Split zip file",Kn="Overlapping entry found",Yn="Entry data out of bounds",Gn="Ambiguous archive",Xn="Encrypted central directory is not supported",Jn="Unsafe filename",Qn="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",$n="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",ts="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",es="64-bit value exceeds Number.MAX_SAFE_INTEGER",rs=/^[a-zA-Z]:/,as="utf-8",ns="cp437",ss=[[an,t],[nn,t],[sn,t],[on,e]],is={[e]:{Kt:Ns,bytes:4},[t]:{Kt:Ps,bytes:8}},os=BigInt(Number.MAX_SAFE_INTEGER);class cs{constructor(t,e={}){Object.assign(this,{reader:new Ha(t),options:e,Yt:new Map})}async*getEntriesGenerator(a={}){const s=this;let{reader:i}=s;if(await Ga(i),i.size!==F&&i.readUint8Array||(i=new ba(await Te(i.readable)),await Ga(i)),i.size<p)throw Error(Nn);const c=Ss(a,s.options),m=c==G,w=c!=J,h=((t,r)=>{if(t!==F){const e=it(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw Error(ts);return e}return r==G?0:r==J?1/0:e})(Us(s,a,"maxAppendedDataSize"),c),y=((t,e)=>{if(t===F)return e;if(!Es(t))throw Error($n);return t})(Us(s,a,"filenameValidation"),c),b=Us(s,a,"normalizeFilename"),{Gt:g,Xt:k}=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 As(t,n)){const n=Ms(r,f+20);if(u+p+n==a){const n=await Fs(t,r,l,f,u,a,s);if(2==n){if(i||(i=Rs(d,f,u)),c++,!e||c>1)break}else 1!=n||o||(o=Rs(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 As(t,n)){const n=Rs(c,l,d);s||(s=n);const p=await Fs(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}})(i,w,h);if(!g)throw await(async t=>await vs(t)==n)(i)?Error(Hn):Error(Pn);w&&k>1&&Os("multiple end of central directory records");const A=At(g);let R=Ns(A,12),D=Ns(A,16);const O=g.offset,U=Ms(A,20),j=O+p+U;i.size-j>h&&Os("appended data");let T=Ms(A,4);const C=i.Vt||0;let M,N,P,_,W=Ms(A,6),L=Ms(A,10),B=0,q=u;const V=D==t||R==t||L==e||W==e;if(D!=t&&W!=e&&(D+=xs(i,W)),V){const r=g.offset>=f?await Ja(i,g.offset-f,f):I,a=At(r);if(r.length==f&&Ns(a,0)==d){D=xs(i,Ns(a,4))+Ps(a,8);let r=await Ja(i,D,u),n=At(r);const s=g.offset-f-u;if((r.length<u||Ns(n,0)!=l)&&D!=s&&s>=0){const t=D;D=s,D>t&&(B=D-t),r=await Ja(i,D,u),n=At(r)}if(r.length<u||Ns(n,0)!=l)throw Error(_n);if(N=!0,P=Ps(n,4)>44,P){const t=Math.min(Ps(n,4)-44,i.size-D-u);t>0&&(q+=t,_=(t=>{const e={rawExtensibleData:t};if(t.length>=28){const r=At(t),a=Ms(r,26);Object.assign(e,{compressionMethod:Ms(r,0),compressedSize:Ps(r,2),uncompressedSize:Ps(r,10),encryptionAlgorithm:Ms(r,18),bitLength:Ms(r,20),flags:Ms(r,22),hashAlgorithm:Ms(r,24),hashData:t.subarray(28,28+a)})}return e})(await Ja(i,D+u,t)))}T==e?T=Ns(n,16):m&&T!=Ns(n,16)&&Os("mismatched zip64 end of central directory record"),W==e?W=Ns(n,20):m&&W!=Ns(n,20)&&Os("mismatched zip64 end of central directory record"),L==e?L=Ps(n,32):m&&L!=Ps(n,32)&&Os("mismatched zip64 end of central directory record"),R==t?R=Ps(n,40):m&&R!=Ps(n,40)&&Os("mismatched zip64 end of central directory record"),D=xs(i,W)+Ps(n,48)+B}}let Z=R;const H=g.offset-(N?q+f:0);if(D>=i.size&&(B=i.size-D-R-p,D=i.size-R-p),C!=T)throw Error(Hn);if(D<0)throw Error(Nn);let X=0,Q=await Ja(i,D,R),$=At(Q);if(R){if(Q.length<4)throw Error(Nn);const t=H-R;if(D!=t&&W==T){let e=!(Ns($,X)==o||_&&_.compressedSize||ps($));if(!e&&t>=0&&t+4<=i.size&&(e=Ns(At(await Ja(i,t,4)),0)==o),e){const e=D;D=t,D>e&&(B+=D-e),Q=await Ja(i,D,R),$=At(Q)}}}const tt=H-D;if(R!=tt&&tt>=0&&W==T&&(R=tt,Q=await Ja(i,D,R),$=At(Q)),D<0||D>=i.size)throw Error(Nn);s.directoryOffset=D,s.directoryLength=Z;const et=js(s,a,"decryptCentralDirectory");let rt,at;if(et&&L&&Q.length>=4&&Ns($,0)!=o&&(P||ps($))){const t=((t,e,r)=>{const a=t&&t.compressedSize?t.compressedSize:e;return a>0&&a<=r?a:r})(_,Z,Q.length);at=Q.subarray(t),Q=await et(Q.subarray(0,t),_),$=At(Q),Z=Q.length,rt=!0}M=D;const nt=Us(s,a,"filenameEncoding"),st=Us(s,a,"commentEncoding"),ot=m?new Set:F;let ct;for(let t=0;t<L;t++){const n=new ds(i,s.options);if(X+46>Q.length||Ns($,X)!=o){if(0==t&&!rt&&(P||ps($)))throw Error(Xn);throw Error(Wn)}us(n,$,X+6);const c=!!n.bitFlag.languageEncodingFlag,l=X+46,d=l+n.filenameLength,p=d+n.extraFieldLength,f=Ms($,X+4),u=!(f>>8),w=f>>8==3,h=Q.subarray(l,d),g=Ms($,X+32),k=p+g,A=Q.subarray(p,k),R=c,D=c,O=Ns($,X+38),U=O&r,j={readOnly:!!(1&U),hidden:!!(2&U),system:!!(4&U),directory:!!(16&U),archive:!!(32&U)},T=Ns($,X+42),I=js(s,a,"decodeText")||Jr,C=R?as:nt||ns,N=D?as:st||ns;let _=I(h,C,K);if(_===F&&(_=Jr(h,C)),b){const t=b(_);t!==F&&(_=t)}if(ks(_,y)){const t=Error(Jn);throw t.filename=_,t}let W=I(A,N,Y);W===F&&(W=Jr(A,N)),Object.assign(n,{index:t,Jt:rt,versionMadeBy:f,msDosCompatible:u,zip64:!1,compressedSize:0,uncompressedSize:0,Qt:g,offset:T,diskNumberStart:Ms($,X+34),internalFileAttributes:Ms($,X+36),externalFileAttributes:O,msdosAttributesRaw:U,msdosAttributes:j,rawFilename:h,filenameUTF8:R,commentUTF8:D,rawExtraField:Q.subarray(d,p),rawComment:A,filename:_,comment:W}),ms(n,n,$,X+6),n.offset+=B,M=Math.min(xs(i,n.diskNumberStart)+n.offset,M),m&&(ot.has(n.filename)&&(ct=!0),ot.add(n.filename));const q=n.externalFileAttributes>>16&e;n.unixMode===F&&16877&q&&(n.unixMode=q);const V=!!(n.unixMode&E),Z=!!(n.unixMode&S),H=!!(512&n.unixMode),G=40960==((n.unixMode===F?q:n.unixMode)&x),J=!G&&(n.unixMode!==F?!!(73&n.unixMode):w&&!!(73&q)),tt=n.unixMode!==F&&(n.unixMode&x)==v,et=(q&x)==v;Object.assign(n,{setuid:V,setgid:Z,sticky:H,symlink:G,unixExternalUpper:q,internalFileAttribute:n.internalFileAttributes,externalFileAttribute:n.externalFileAttributes,executable:J,directory:tt||et||u&&j.directory||n.filename.endsWith(z)&&!n.uncompressedSize,zipCrypto:n.encrypted&&!n.extraFieldAES});const at=new Mn(n);at.getData=(t,e)=>n.getData(t,at,s.Yt,e),at.arrayBuffer=async t=>{const e=new TransformStream,r=Te(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await n.getData(e,at,s.Yt,t),r},X=k;const{onprogress:it}=a;if(it)try{await it(t+1,L,new Mn(n))}catch{}yield at}let lt=X,dt=fs(Q.subarray(X))||(rt?fs(at):F);if(!dt&&!rt){const t=D+X,e=Math.min(H-t,65541);e>=6&&(dt=fs(await Ja(i,t,e)))}dt&&(s.digitalSignature=dt,lt=X+6+dt.length),m&&X!=Z&&lt!=Z&&Os("trailing central directory data"),ct&&Os("duplicate filename");const pt=Us(s,a,"extractPrependedData"),ft=Us(s,a,"extractAppendedData"),ut=(m||pt)&&L&&4==M&&await(async t=>{const e=await vs(t);return e==n||808471376==e})(i)?4:0;return m&&(B||L&&M>ut)&&Os("prepended data"),pt&&(s.prependedData=M>ut?await Ja(i,ut,M-ut):I),s.comment=U?await Ja(i,O+p,U):I,ft&&(s.appendedData=j<i.size?await Ja(i,j,i.size-j):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 ls{constructor(t={}){const{readable:e,writable:r}=new TransformStream,a=new cs(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 ds=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,n,i={}){const o=this,c=wt(),{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=xs(l,f)+p,A=await Ja(l,z,k),R=At(A);let D=Us(o,i,C),O=Us(o,i,M);const U=Us(o,i,N);if(at(D,O),D=D&&D.length&&D,O=O&&O.length&&O,u&&99!=u.originalCompressionMethod)throw Error(Zn);if(A.length<k||Ns(R,0)!=a)throw Error(Ln);us(S,R,4);const{extraFieldLength:j,filenameLength:T}=S,q=Us(o,i,"checkLocalDirectory"),V=Ss(i,o.options),Z=((t,e)=>t===F?e!=J:!!t)(q,V),H=((t,e)=>t===F?e==G:!!t)(q,V);let K=I;if(H&&(T||j)){const t=await Ja(l,z+k,T+j);K=t.subarray(0,T),S.rawExtraField=t.subarray(T)}else S.rawExtraField=j?await Ja(l,z+k+T,j):I;H&&(S.rawFilename=K),ms(o,S,R,4,!0),Z&&((t,e,r,a)=>{const{rawFilename:n}=t,s=t.Jt&&!(8192&~e.rawBitFlag);!a||s||r.length==n.length&&!r.some((t,e)=>t!=n[e])||Os("mismatched local file header (filename)"),(2057&e.rawBitFlag)!=(2057&t.rawBitFlag)&&Os("mismatched local file header (general purpose bit flag)"),e.compressionMethod!=t.compressionMethod&&Os("mismatched local file header (compression method)"),e.bitFlag.dataDescriptor||s||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||Os("mismatched local file header (crc32 or sizes)")})(o,S,K,H);const{lastAccessDate:Y,creationDate:X,uid:Q,gid:$}=S;Y&&(e.lastAccessDate=Y),X&&(e.creationDate=X),Q!==F&&e.uid===F&&(e.uid=Q),$!==F&&e.gid===F&&(e.gid=$);const tt=o.encrypted&&S.encrypted&&!U,et=tt&&!u;if(U||(e.zipCrypto=et),tt&&!(64&~S.rawBitFlag))throw Error(Vn);const nt=U?F:qe(w);if(0!=w&&8!=w&&9!=w&&!nt&&!U)throw Error(Zn);if(tt){if(!et&&(u.strength<1||u.strength>3))throw Error(Vn);if(!D&&!O)throw Error(qn)}const st=z+k+T+j;if(st+v>l.size)throw Error(Yn);const it=v,ot=je(l.createReadable({offset:st,size:it})),ct=rt(Us(o,i,P)),lt=Us(o,i,"checkPasswordOnly");let dt=Us(o,i,"checkOverlappingEntry");const pt=Us(o,i,"checkOverlappingEntryOnly");pt&&(dt=!0);const{onstart:ft,onprogress:ut,onend:mt}=i,ht=0!=w&&!U,yt=U?v:x,bt=9==w;let gt=Us(o,i,W);bt&&(gt=!1);const xt=Us(o,i,"checkCrc32"),vt=(xt===F?Us(o,i,"checkSignature"):xt)&&!U&&(!tt||et||u&&1==u.vendorVersion),Et={options:{codecType:pr,password:D,rawPassword:O,zipCrypto:et,encryptionStrength:u&&u.strength,checkCrc32:vt,checkAuthenticationCode:Us(o,i,"checkAuthenticationCode"),passwordVerification:et&&(E?g>>>8&r:b>>>24&r),outputSize:yt,crc32:b,compressed:ht,encrypted:tt,useWebWorkers:Us(o,i,_),useCompressionStream:gt,transferStreams:Us(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:ft,onprogress:ut,onend:mt}};let St,zt;dt&&await(async({reader:t,$t:e,index:r,offset:a,crc32:n,compressedSize:i,uncompressedSize:o,te:c,dataDescriptor:l,extraFieldZip64:d,Yt:p})=>{let f=0;if(l&&(f=d?20:12),f){const r=await Ja(t,c+i,f+4),a=At(r);let l=r.length==f+4&&Ns(a,0)==s;if(l){const t=gs(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=gs(a,l?4:0,d);t.signature=l,e.localDirectory.dataDescriptor=t}}const u={start:a,end:c+i+f,$t:e};for(const[t,e]of p)if(t!=r&&u.start<e.end&&e.start<u.end){const t=Error(Kn);throw t.overlappingEntry=e.$t,t}p.set(r,u)})({reader:l,$t:e,index:d,offset:z,crc32:b,compressedSize:v,uncompressedSize:x,te:st,dataDescriptor:E||S.bitFlag.dataDescriptor,extraFieldZip64:m||S.extraFieldZip64,Yt:n});try{if(!pt){lt&&(t=new WritableStream),t=new Ka(t),await Ga(t,((t,e,r)=>Math.min(t,r?1032*e:e))(yt,v,ht)),({writable:St}=t);const{outputSize:e}=await Vr({readable:ot,writable:St},Et);if(t.size+=e,e!=yt)throw Error(He)}}catch(e){if(e.outputSize!==F&&(t.size+=e.outputSize),!lt||e.message!=Kt)throw zt=e,e}finally{if((Ya(t)||!Us(o,i,B))&&St&&!St.locked){const t=St.getWriter();if(zt)try{await t.abort(zt)}catch{}else await t.close()}}return lt||pt?F:t.getData?t.getData():St}};function ps(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;r<e;r++)if(134630224==Ns(t,r))return!0;return!1}function fs(t){if(t.length>=6){const e=At(t);if(Ns(e,0)==i){const r=Ms(e,4);if(6+r<=t.length)return t.subarray(6,6+r)}}}function us(t,e,r){const a=t.rawBitFlag=Ms(e,r+2),n=!(1&~a),s=Ns(e,r+6);Object.assign(t,{encrypted:n,version:Ms(e,r),bitFlag:{level:(6&a)>>1,dataDescriptor:!(8&~a),languageEncodingFlag:(a&g)==g},rawLastModDate:s,lastModDate:Ts(s),filenameLength:Ms(e,r+22),extraFieldLength:Ms(e,r+24)})}function ms(t,e,r,a,n){const{rawExtraField:s}=e,i=e.extraField=new Map,o=At(s);let c=0;try{for(;c<s.length;){const t=Ms(o,c),e=Ms(o,c+2);i.set(t,{type:t,data:s.slice(c+4,c+4+e)}),c+=4+e}}catch{}const l=Ms(r,a+4);Object.assign(e,{signature:Ns(r,a+10),crc32:Ns(r,a+10),compressedSize:Ns(r,a+14),uncompressedSize:Ns(r,a+18)});const d=i.get(1);d&&(((t,e)=>{e.zip64=!0;const r=At(t.data),a=ss.filter(([t,r])=>e[t]==r),n=a.reduce((t,[,e])=>t+is[e].bytes,0);if(t.data.length<n)throw Error(Bn);for(let n=0,s=0;n<a.length;n++){const[i,o]=a[n],c=is[o];e[i]=t[i]=c.Kt(r,s),s+=c.bytes}})(d,e),e.extraFieldZip64=d);const p=i.get(28789);p&&(ws(p,$a,tn,e,t),e.extraFieldUnicodePath=p);const f=i.get(25461);f&&(ws(f,en,rn,e,t),e.extraFieldUnicodeComment=f);const u=i.get(m);u&&u.data.length>=7?(((t,e,r)=>{const a=At(t.data),n=Cs(a,4);Object.assign(t,{vendorVersion:Cs(a,0),vendorId:Cs(a,2),strength:n,originalCompressionMethod:r,compressionMethod:Ms(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&&(hs(g,e),e.extraFieldPkwareUnix=g);const x=i.get(22613);x&&(hs(x,e),e.extraFieldUnixType1=x);const v=i.get(10);v&&(((t,e)=>{const r=At(t.data);let a,n=4;try{for(;n<t.data.length&&!a;){const e=Ms(r,n),s=Ms(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=At(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:Is(n),lastAccessDate:Is(s),creationDate:Is(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=ys(E,e,!1),e.extraFieldUnix=E),!S){const t=i.get(y);t&&(ys(t,e,!0),e.extraFieldInfoZip=t)}const z=i.get(w);z&&(((t,e,r)=>{if(!t.data.length)return;const a=At(t.data),n=Cs(a,0),s=[],i=[];r?(1&~n||(s.push(cn),i.push(ln)),2&~n||(s.push(dn),i.push(pn)),4&~n||(s.push(fn),i.push(un))):t.data.length>=5&&(s.push(cn),i.push(ln));let o=1;s.forEach((r,n)=>{if(t.data.length>=o+4){const s=Ns(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 ws(t,e,r,a,n){if(t.data.length<5)return void(t.valid=!1);const s=At(t.data),i=new Mt;i.append(n[r]);const o=At(new Uint8Array(4));o.setUint32(0,i.get(),!0);const c=Ns(s,1);Object.assign(t,{version:Cs(s,0),[e]:Jr(t.data.subarray(5)),valid:!n.bitFlag.languageEncodingFlag&&c==Ns(o,0)}),t.valid&&(a[e]=t[e],a[e+"UTF8"]=!0)}function hs(t,e){if(t.data.length<8)return;const r=At(t.data),a={lastAccessDate:new Date(1e3*(0|Ns(r,0))),lastModDate:new Date(1e3*(0|Ns(r,4)))};t.data.length>=12&&(a.uid=Ms(r,8),a.gid=Ms(r,10)),Object.assign(t,a),Object.assign(e,a)}function ys(t,e,r){try{const a=At(t.data);let n,s;if(r){let e=0;const r=Cs(a,e++),i=Cs(a,e++);n=bs(t.data.subarray(e,e+i)),e+=i;const o=Cs(a,e++);s=bs(t.data.subarray(e,e+o)),Object.assign(t,{version:r,uid:n,gid:s})}else t.data.length>=4&&(n=Ms(a,0),s=Ms(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 bs(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function gs(t,e,r){const a=Ns(t,e);let n,s;return r?(n=Ps(t,e+4),s=Ps(t,e+12)):(n=Ns(t,e+4),s=Ns(t,e+8)),{crc32:a,compressedSize:n,uncompressedSize:s}}function xs(t,e){return t.Ht?t.Ht(e):0}async function vs(t){return Ns(At(await Ja(t,0,4)))}function Es(t){return t===G||t===X||t===J}function Ss(t,e){return zs(t,zs(e,X))}function zs(t,e){const r=t.strictness;if(r!==F){if(!Es(r))throw Error(Qn);return r}const a=t.checkAmbiguity;return a===F?e:a?G:e==J?J:X}function ks(t,e){if(e==J)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(r.includes("..")||t.startsWith("/")||t.startsWith("\\\\")||rs.test(t))||e==G&&(r.includes(".")||r.includes(""))}async function*As(t,e){const r=t.size-e,a=await Ja(t,r,e),n=At(a);for(let t=a.length-p;t>=0;t--)Ns(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 Fs(r,a,n,s,i,c,l){const p=Ms(a,s+10),u=Ns(a,s+12),m=Ns(a,s+16);if(p==e||u==t||m==t)return await Ds(r,a,n,i-f,c,l)==d?2:0;if(!p&&!u)return 1;const w=Ms(a,s+6);for(const t of[i-u,xs(r,w)+m])if(await Ds(r,a,n,t,c,l)==o)return 2;return 0}async function Ds(t,e,r,a,n,s){return a<0||a+4>n?F:a>=r?Ns(e,a-r):s.count>0?(s.count--,Ns(At(await Ja(t,a,4)),0)):F}function Os(t){const e=Error(Gn);throw e.reason=t,e}function Us(t,e,r){return e[r]===F?t.options[r]:e[r]}function js(t,e,r){return et(Us(t,e,r))}function Ts(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 Is(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function Cs(t,e){return t.getUint8(e)}function Ms(t,e){return t.getUint16(e,!0)}function Ns(t,e){return t.getUint32(e,!0)}function Ps(t,e){const r=t.getBigUint64(e,!0);if(r>os)throw Error(es);return Number(r)}var _s=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:Gn,ERR_BAD_FORMAT:Nn,ERR_CENTRAL_DIRECTORY_NOT_FOUND:Wn,ERR_ENCRYPTED:qn,ERR_ENCRYPTED_CENTRAL_DIRECTORY:Xn,ERR_ENTRY_DATA_OUT_OF_BOUNDS:Yn,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:_n,ERR_EOCDR_NOT_FOUND:Pn,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:Bn,ERR_INVALID_AUTHENTICATION_CODE:Ht,ERR_INVALID_COMPRESSED_DATA:Ke,ERR_INVALID_CRC32:Ye,ERR_INVALID_FILENAME_VALIDATION:$n,ERR_INVALID_MAX_APPENDED_DATA_SIZE:ts,ERR_INVALID_PASSWORD:Vt,ERR_INVALID_SIGNATURE:Zt,ERR_INVALID_STRICTNESS:Qn,ERR_INVALID_UNCOMPRESSED_SIZE:He,ERR_LOCAL_FILE_HEADER_NOT_FOUND:Ln,ERR_OVERLAPPING_ENTRY:Kn,ERR_SPLIT_ZIP_FILE:Hn,ERR_UNSAFE_FILENAME:Jn,ERR_UNSUPPORTED_COMPRESSION:Zn,ERR_UNSUPPORTED_ENCRYPTION:Vn,ERR_UNSUPPORTED_UINT64:es,ERR_WORKER_STARTUP_TIMEOUT:mr,ZipReader:cs,ZipReaderStream:ls});const Ws="File already exists",Ls="Zip file comment exceeds 64KB",Bs="Invalid zip file comment (must be a Uint8Array)",qs="File entry comment exceeds 64KB",Vs="Invalid file entry comment (must be a string)",Zs="Invalid date (must be a valid Date instance)",Hs="File entry name exceeds 64KB",Ks="Version exceeds 65535",Ys="The strength must equal 1, 2, or 3",Gs="Encryption is not supported in USDZ files",Xs="Encryption is not supported when the 'passThrough' option is set",Js="Invalid extra field (must be a Map)",Qs="Invalid extra field type (must be integer 0..65535)",$s="Invalid extra field data (must be a Uint8Array)",ti="Extra field data exceeds 64KB",ei=-2147483648,ri=2147483647,ai=BigInt(0),ni=BigInt("0x7fffffffffffffff"),si="Zip64 is not supported (set the 'zip64' option to 'true')",ii="Undefined uncompressed size",oi="Undefined compression method",ci="Undetermined size",li="Undefined reader",di="Zip file not empty",pi="Invalid uid (must be integer 0..2^32-1)",fi="Invalid gid (must be integer 0..2^32-1)",ui="Invalid UNIX mode (must be integer 0..65535)",mi="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",wi="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",hi="Invalid msdosAttributesRaw (must be integer 0..255)",yi="Invalid msdosAttributes (must be an object with boolean flags)",bi="Invalid level (must be integer 0..9)",gi="Signature data exceeds 64KB",xi=new Uint8Array([7,0,2,0,65,69,3,0,0]),vi="infozip",Ei="unix";let Si=0;const zi=[];class ki{constructor(t,e={}){t=new Ka(t);const{availableSize:r=D,maxSize:a=D}=t;Object.assign(this,{writer:t,ee:r>0&&r!==D&&a>0&&a!==D,options:e,re:new Map,ae:new Set,offset:e[V]===F?t.size||t.writable.size||0:e[V],ne:e[V]===F?0:e[V]-(t.size||t.writable.size||0),se:new Set,ie:0,oe:F})}async prependZip(t){if(this.ae.size)throw Error(di);t=new Ha(t),await Ga(t),t.size!==F&&t.readUint8Array||(t=new ba(await Te(t.readable)),await Ga(t));const{ZipReader:e}=await Promise.resolve().then(()=>_s),r=new e(t),a=await r.getEntries();await r.close(),await Ga(this.writer);const{directoryOffset:s}=r;this.ee&&(delete this.ee,await(async t=>At(await Ja(t,0,4)).getUint32(0,!0)==n)(t)||(await Ki(this.writer,Hi()),this.offset+=4));const i=await(async(t,e,r,a)=>{const{writer:n}=t,s=new Map;if(n.closeDisk){const i=Array.from(r).sort((t,r)=>Zi(e,t)-Zi(e,r));let o=0;for(const r of i){const a=Zi(e,r);await qi(t,e,o,a-o),Wi(n,await Vi(e,a))&&await n.closeDisk(),s.set(r,{offset:Li(t,n),diskNumberStart:Pi(n)}),o=a}await qi(t,e,o,a-o)}else{const n=t.offset;await qi(t,e,0,a),r.forEach(t=>s.set(t,{offset:n+Zi(e,t),diskNumberStart:0}))}return s})(this,t,a,s);this.ae=new Set(a.map(t=>t.filename)),this.re=new Map(a.map(t=>{const{version:e,rawLastModDate:r,lastAccessDate:a,creationDate:n,rawFilename:s,bitFlag:o,encrypted:c,uncompressedSize:l,compressedSize:d,extraFieldZip64:p}=t;let{compressionMethod:f,ce:u,le:m,de:w,pe:h,fe:y,rawExtraField:b}=t;const{level:g,languageEncodingFlag:x,dataDescriptor:v}=o;u=u||I,m=m||I,w=w||I,h=h||I,y=y||I,b=Bi(b||I),t.extraFieldAES&&(f=99);const E=fo(u,m,w,h,y,b),S=!!p&&p.uncompressedSize!==F,z=!!p&&p.compressedSize!==F,k=-7&mo(g,x,v,c,f)|g<<1,{ue:A,me:R}=uo({version:e,bitFlag:k,compressionMethod:f,uncompressedSize:l,compressedSize:d,rawLastModDate:r,rawFilename:s,we:z,he:S,extraFieldLength:E}),{crc32:D}=t;D!==F&&co(R,10,D);const{offset:O,diskNumberStart:U}=i.get(t);return Object.assign(t,{he:S,we:z,offset:O,diskNumberStart:U,ye:!1,ce:u,le:m,de:w,pe:h,fe:y,rawExtraField:b,extendedTimestamp:w.length>0||h.length>0,be:1+(a?2:0)+(n?4:0),ue:A,me:R}),[t.filename,t]}))}async add(e="",a,n={}){const s=this;n=Object.assign({},n);const{se:i}=s;let o,c;Si<wt().maxWorkers?Si++:await new Promise(t=>zi.push(t));try{if(e=e.trim(),Qi(s,n,An)&&!e.endsWith(z)&&(e+=z),s.ae.has(e))throw Error(Ws);return s.ae.add(e),c=!0,o=(async(e,a,n,s)=>{const i=Fi(e,a,s);({name:a}=i);const o=Di(e,a,s),{comment:c}=o,l=s[On];let d;e.re.set(a,F);try{const{ge:c}=o;0==c.level||c.compressionMethod!==F||c.passThrough||await gr(wt())||(c.level=0);const l=await(async(t,e,{ge:r},a)=>{if(r.passThrough&&!e&&!Qi(t,a,An))throw Error(li);let n;return e&&(e=new Ha(e),await Ga(e),({size:n}=e)),Object.assign({reader:e},Ui(t,!!e,n,r,a))})(e,n,o,s);({reader:n}=l);const p=_i(e.writer),f=Pi(e.writer),u=ji(s=Object.assign({},s,i.ge,o.ge,l.ge,{signature:s[Dn],crc32:s.crc32===F?s[Dn]:s.crc32,offset:e.offset-p,diskNumberStart:f,[Z]:e.options[Z]})),m=Ci(s),w=fo(u.xe,m.ve);d=await(async(e,a,n,s,i)=>{const{re:o,writer:c}=e,{keepOrder:l,dataDescriptor:d,Ee:p,signal:f}=i,{Se:u}=s,m=e.options[Z],w=e.oe;let h,y,b,g,x,v,E,S={},z=0;o.set(a,S),e.oe=S;try{let y;l&&(y=w&&w.ze,S.ze=new Promise(t=>b=t)),i.bufferedWrite||!l||e.ke||e.ie||!d&&!p?(h=!0,e.ie++,E=i.createTempStream?await i.createTempStream():new TransformStream(F,F,{highWaterMark:D}),E.size=0,await Ga(c)):(E=c,await A()),await Ga(E);const O=_i(c);e.ee&&(delete e.ee,await Ki(c,Hi()),e.offset+=4),m&&!h&&Ti(s,e.offset-O);const{xe:U}=u;h||(await y,await R());const j=Pi(c),T=Li(e,c);if(S.diskNumberStart=j,h||(x=!0,v=c.size,await Ki(E,U)),S=await(async(e,a,{diskNumberStart:n,ze:s},i,o,c)=>{const{Se:l,Ae:d,Re:p}=i,{ue:f,me:u,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,ce:x,Fe:v,de:E,be:S,pe:z,fe:k,le:A}=l,{ve:R}=d,{rawFilename:D,lastAccessDate:O,creationDate:U,password:j,rawPassword:T,level:I,zip64:C,he:M,we: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={ze:s,versionMadeBy:B,zip64:C,directory:!!W,executable:!!L,filenameUTF8:!0,rawFilename:D,commentUTF8:!0,rawComment:q,ce:x,Fe:v,de:E,pe:z,fe:k,le: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=je(Qa(e)),s=e.size,i={options:{codecType:dr,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 Vr({readable:n,writable:xt},i);if(gt=e.outputSize,a.size+=gt,ut||(bt=e.inputSize,h&&!P||(yt=e.crc32)),!N&&gt>=t||!M&&bt>=t)throw Error(si)}catch(t){throw t.outputSize!==F&&(a.size+=t.outputSize),t}}return(({crc32:t,compressedSize:e,uncompressedSize:r,Se:a,Ae:n},{zip64:s,zipCrypto:i,passThrough:o,dataDescriptor:c})=>{const{me:l,encrypted:d}=a,{De:p,Oe:f}=n;d&&!i&&!o||t===F||(co(l,10,t),c&&co(p,f,t)),s?c&&(lo(p,f+4,BigInt(e)),lo(p,f+12,BigInt(r))):(co(l,14,e),co(l,18,r),c&&(co(p,f+4,e),co(p,f+8,r)))})({crc32:yt,compressedSize:gt,uncompressedSize:bt,Se:l,Ae:d},c),_&&await Ki(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,ue:f,me:u,signature:yt,crc32:!h||P||ut?yt:F,be:S,he:M,we:N}),ht})(n,E,S,s,wt(),i),h||(x=!1),o.set(a,S),S.filename=a,h){if(await Promise.all([E.writable.getWriter().close(),y]),await A(),g=!0,v=c.size,await R(),S.diskNumberStart=Pi(c),S.offset=Li(e,c),m){const t=s.Re;Ti(s,e.offset-_i(c)),S.size+=s.Re-t}(({rawFilename:t,encrypted:e,zip64:r,Fe:a,crc32:n,compressedSize:s,uncompressedSize:i,he:o,we:c},l,{dataDescriptor:d,passThrough:p})=>{if(d||((!e||p&&n!==F)&&co(l,14,n),c||co(l,18,s),o||co(l,22,i)),r&&a){const e=k+fo(t)+4;lo(l,e,BigInt(i)),lo(l,e+8,BigInt(s))}})(S,u.Ue,i),await Ki(c,u.xe),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=fo(t),z+=e}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}})(E.readable,c,f),c.size+=E.size,g=!1}else S.diskNumberStart=j,S.offset=T;return e.offset+=S.size,S}catch(t){if(g||x){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-v,h&&(e.offset+=z)}throw o.delete(a),t}finally{if(h&&e.ie--,b&&b(),y&&y(),h&&E&&E.dispose)try{await E.dispose()}catch{}}async function A(){e.ke=!0;const{je:t}=e;e.je=new Promise(t=>y=()=>{e.ke=!1,t()}),await t}async function R(){Wi(c,fo(u.xe))&&await c.closeDisk()}})(e,a,n,{Se:u,Ae:m,Re:w},s)}catch(t){throw e.re.delete(a),t}return Object.assign(d,{name:a,comment:c,extraField:l,[hn]:d.internalFileAttributes,[yn]:d.externalFileAttributes}),new Mn(d)})(s,e,a,n),i.add(o),await o}catch(t){throw c&&s.ae.delete(e),t}finally{i.delete(o);const t=zi.shift();t?t():Si--}}remove(t){const{ae:e,re: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{se:n,writer:s}=this,{writable:f}=s;if(!(r instanceof Uint8Array))throw Error(Bs);if(fo(r)>e)throw Error(Ls);for(;n.size;)await Promise.allSettled(Array.from(n));return await(async(r,a,n)=>{const s=Mi(r.re),{Te:f,Ie:u}=await(async(r,a,n)=>{const{re:s,writer:i}=r,c=new Uint8Array(a);await Ga(i);let l=0,d=0,p=Pi(i),f=_i(i);for(const[r,a]of Array.from(s.values()).entries()){const{offset:u,rawFilename:m,ce:w,le:h,de:y,pe:b,fe:g,rawExtraField:x,rawComment:v,versionMadeBy:E,ue:S,me:z,he:k,we:A,ye:R,Ce:F,internalFileAttributes:D,externalFileAttributes:O,diskNumberStart:U,uncompressedSize:j,compressedSize:T}=a,I=fo(w,h,y,b,g,x),C=46+fo(m,v)+I;Wi(i,l+C-d)&&(await Ki(i,c.slice(d,l)),d=l,await i.closeDisk()),0==r&&(p=Pi(i),f=_i(i)),k||co(z,18,j),A||co(z,14,T),(F||R)&&a.version<45&&oo(z,0,45);const M=Ni(C);if(M.Me(o),M.Ne(E),M.Pe(S.subarray(0,24)),M.Ne(I),M.Ne(fo(v)),M.Ne(R?e:U),M.Ne(D),M.Me(O),M.Me(F?t:u),M.Pe(m),M.Pe(w),M.Pe(h),M.Pe(y),M.Pe(b),M.Pe(g),M.Pe(x),M.Pe(v),po(c,M.Lt,l),l+=C,n.onprogress)try{await n.onprogress(r+1,s.size,new Mn(a))}catch{}}return await Ki(i,d?c.slice(d):c),{Te:{diskNumber:p,diskOffset:f},Ie:c}})(r,s,n),m=await(async(t,r,a)=>{const n=to(t,a,H);if(n){const a=await n(r),s=fo(a);if(s>e)throw Error(gi);const o=Ni(6+s);o.Me(i),o.Ne(s),o.Pe(a);const{writer:c}=t;return Wi(c,fo(o.Lt))&&await c.closeDisk(),await Ki(c,o.Lt),6+s}return 0})(r,u,n);await(async(r,a,n,s)=>{const{writer:i}=r,{Te:o,_e:f}=s;let{We:u}=s,m=r.re.size,w=o.diskNumber,h=Li(r,o),y=Pi(i);Wi(i,p)&&y++;let b=Qi(r,n,vn);if(h>=t||u>=t||m>=e||y>=e){if(!1===b)throw Error(si);b=!0}const g=fo(a);if(g>e)throw Error(Ls);const x=Ni(b?98:p);Wi(i,fo(x.Lt)+g)&&await i.closeDisk(),y=Pi(i),b&&(x.Me(l),x.Le(44),x.Ne(45),x.Ne(45),x.Me(y),x.Me(w),x.Le(m),x.Le(m),x.Le(u),x.Le(h),x.Me(d),x.Me(y),x.Le(BigInt(Li(r,i))+BigInt(u)+BigInt(f)),x.Me(y+1),Qi(r,n,"supportZip64SplitFile",!0)&&(y=e,w=e),m=e,h=t,u=t),x.Me(c),x.Ne(y),x.Ne(w),x.Ne(m),x.Ne(m),x.Me(u),x.Me(h),x.Ne(g),await Ki(i,x.Lt),g&&await Ki(i,a)})(r,a,n,{Te:f,We:s,_e:m})})(this,r,a),!Ya(s)&&Qi(this,a,B)||await f.getWriter().close(),s.getData?s.getData():f}}class Ai{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new ki(r,t),this.se=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 Ri(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 Ri(this,this.zipWriter.add(t,r),t=>e.error(t)),a}async close(t,e={}){return await Promise.all(Array.from(this.se)),this.zipWriter.close(t,e)}}function Ri(t,e,r){t.se.add(e),e.catch(t=>{try{r(t)}catch{}})}function Fi(a,n,s){n=n.trim();let i=Qi(a,s,xn),o=Qi(a,s,zn,i?20:768);const c=Qi(a,s,Rn),l=ao(a,s,"uid"),d=ao(a,s,"gid");let p=ao(a,s,Un),f=Qi(a,s,"unixExtraFieldType"),u=Qi(a,s,jn),m=Qi(a,s,Tn),w=Qi(a,s,In);if(st(l,t,pi),st(d,t,fi),st(p,e,ui),f!==F&&f!==vi&&f!==Ei)throw Error(mi);if(f===Ei&&(l!==F&&l>e||d!==F&&d>e))throw Error(wi);f!==F||l===F&&d===F||(f=vi);let h=ao(a,s,bn),y=Qi(a,s,gn);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),st(h,r,hi),y&&(typeof y!==j||Array.isArray(y)))throw Error(yi);if(o>e)throw Error(Ks);let g=eo(a,s,wn,yn);const k=g!==F;k||(g=0),!s[An]&&n.endsWith(z)&&(s[An]=!0);const A=Qi(a,s,An);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,ge:{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 Di(t,r,a){const n=to(t,a,"encodeText")||Pt;let s=n(r,K);if(s===F&&(s=Pt(r)),fo(s)>e)throw Error(Hs);const i=a[en]||"";if(typeof i!=T)throw Error(Vs);let o=n(i,Y);if(o===F&&(o=Pt(i)),fo(o)>e)throw Error(qs);const c=Qi(t,a,Sn,20);if(c>e)throw Error(Ks);const l=$i(t,a,cn,new Date),d=$i(t,a,dn),p=$i(t,a,fn),f=eo(t,a,mn,hn,0),u=Qi(t,a,N),m=Qi(t,a,C),w=Qi(t,a,M);at(m,w);const h=ao(t,a,"encryptionStrength",3),y=Qi(t,a,kn),b=Qi(t,a,"extendedTimestamp",!0),g=Qi(t,a,"ntfsTimestamp"),x=Qi(t,a,"keepOrder",!0),v=Qi(t,a,_),E=Qi(t,a,L),S=Qi(t,a,"bufferedWrite"),z=to(t,a,"createTempStream"),k=Qi(t,a,"dataDescriptorSignature",!0),A=rt(Qi(t,a,P)),R=Qi(t,a,"useUnicodeFileNames",!0),D=Qi(t,a,Fn),O=u||D===F?F:qe(D);if(!u&&D!==F&&0!==D&&8!==D&&!O)throw Error("Compression method not supported");let U=ao(t,a,"level");if(st(U,9,bi),t.options[Z]){if(m!==F||w!==F)throw Error(Gs);U===F&&D===F&&(U=0)}u&&(U=F);let j=Qi(t,a,W),I=Qi(t,a,q);S&&I===F&&(I=!1),(I===F||y)&&(I=!0),U!==F&&6!=U&&(j=!1);const B=Qi(t,a,vn);if(!(y||m===F&&w===F||Number.isInteger(h)&&h>=1&&h<=3))throw Error(Ys);const V=Oi(a[On]),H=Oi(a.localExtraField);return{comment:i,ge:{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,Be:O?O.versionNeeded:F,level:U,useCompressionStream:j,dataDescriptor:I,zip64:B,rawExtraField:V,qe:H}}}function Oi(t){if(!t)return I;if(!(t instanceof Map))throw Error(Js);let r=0,a=0;t.forEach((t,a)=>{if(nt(a,e,Qs),!(t instanceof Uint8Array))throw Error($s);if(fo(t)>e)throw Error(ti);r+=4+fo(t)});const n=new Uint8Array(r),s=At(n);return t.forEach((t,e)=>{oo(s,a,e),oo(s,a+2,fo(t)),po(n,t,a+4),a+=4+fo(t)}),n}function Ui(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){if(h=s[an],h===F)throw Error(ii);if(m===F)throw Error(oi)}const y=!0===f,b=Qi(e,s,En);if(r&&i&&!b&&fo(c,l))throw Error(Xs);const g=r&&(!!(c&&fo(c)||l&&fo(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?no(h)+x:a):a===F?(p=!0,(f||f===F)&&(f=!0,h=w=4294967296)):(s.uncompressedSize=h=a,w=(so(m,u)?no(h):h)+x));const v=!(g||r&&(0!==a||i)||so(m,u));v&&!o&&Qi(e,s,q)===F&&(p=!1);const E=y||h>=t,S=y||w>=t;if(E||S){if(!1===f)throw Error(si);f=!0}return f=f||!1,{Ve:w,ge:{dataDescriptor:p,Ee:v,zip64:f,he:E,we:S,uncompressedSize:h,level:u,compressionMethod:m,encrypted:g}}}function ji(t){const{rawFilename:r,lastModDate:n,lastAccessDate:s,creationDate:i,level:o,zip64:c,zipCrypto:l,useUnicodeFileNames:d,dataDescriptor:p,directory:f,rawExtraField:u,qe:h,encryptionStrength:g,extendedTimestamp:x,ntfsTimestamp:v,passThrough:E,encrypted:S,he:z,we:D,uncompressedSize:O,crc32:U}=t;let{version:j,compressionMethod:T}=t;const C=!f&&so(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=Ni(t);if(e.Ne(1),e.Ne(t-4),M=e.Lt,P&&(e.Le(O),N)){const t=S?l?12:16+4*g:0;e.Le(E?0:O+t)}}else M=I;let W,L,B,q,V;if(S&&!l){const t=Ni(fo(xi)+2);t.Ne(m),t.Pe(xi),W=t.Lt,W[8]=g}else W=I;if(x){const t=Gi(n),e=Xi(t);if(e){const e=9+(s?4:0)+(i?4:0),r=Ni(e);q=1+(s?2:0)+(i?4:0),r.Ne(w),r.Ne(e-4),r.Ze(q),r.Me(t),s&&r.Me(Ji(Gi(s))),i&&r.Me(Ji(Gi(i))),B=r.Lt}else B=I;if(v===F?!e||s||i:v)try{const t=Yi(n),e=Ni(36);e.Ne(10),e.Ne(32),e.He(4),e.Ne(1),e.Ne(24),e.Le(t),e.Le(s?Yi(s):t),e.Le(i?Yi(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!=vi||r===F&&a===F)if(n!=Ei||r===F&&a===F)V=I;else{const t=Ni(8);t.Ne(b),t.Ne(4),t.Ne((r===F?0:r)&e),t.Ne((a===F?0:a)&e),V=t.Lt}else{const t=Ii(r===F?0:r),e=Ii(a===F?0:a),n=3+t.length+e.length,s=Ni(4+n);s.Ne(y),s.Ne(n),s.Ze(1),s.Ze(t.length),s.Pe(t),s.Ze(e.length),s.Pe(e),V=s.Lt}}catch{V=I}T===F&&(T=C?8:0);const{Be:H}=t;C&&H!==F&&(j=j>H?j:H),c&&(j=j>45?j:45),S&&!l&&(j=j>51?j:51,E&&U!==F&&(W[4]=1),oo(At(W),9,T),T=99);const K=_?fo(M):0,Y=K+fo(W,B,L,V,u,h);if(Y+(t[Z]?67:0)>e)throw Error(ti);const G=new Date(2e3*Math.ceil(Math.floor(n.getTime()/1e3)/2)),{ue:X,me:J,rawLastModDate:Q}=uo({version:j,bitFlag:mo(o,d,p,S,T),compressionMethod:T,uncompressedSize:O,lastModDate:G<R?R:G>A?A:G,rawFilename:r,we:D,he:z,extraFieldLength:Y}),$=Ni(k+fo(r)+Y),tt=$.Lt,et=At(tt);return $.Me(a),$.Pe(X),$.Pe(r),_&&$.Pe(M),$.Pe(W),$.Pe(B),$.Pe(L),$.Pe(V),$.Pe(u),$.Pe(h),p&&(D||co(et,18,0),z||co(et,22,0)),{xe:tt,Ue:et,ue:X,me:J,lastModDate:n,rawLastModDate:Q,encrypted:S,compressed:C,version:j,compressionMethod:T,be:q,ce:I,Fe:K,de:B,pe:L,fe:V,le:W,extraFieldLength:Y}}function Ti(t,e){const{Se:r}=t;let{xe:a,extraFieldLength:n}=r,s=64-(e+fo(a))%64;s<4&&(s+=64);const i=new Uint8Array(s),o=At(i);oo(o,0,h),oo(o,2,s-4);const c=a;r.xe=a=new Uint8Array(fo(c)+s),po(a,c),po(a,i,fo(c));const l=At(a);oo(l,28,n+s),r.Ue=l,t.Re+=s}function Ii(t){const e=new Uint8Array(4);At(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function Ci({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=At(n),r&&(i=4,co(a,0,s))),{ve:n,De:a,Oe:i}}function Mi(r){let a=0;for(const[,n]of r){const{rawFilename:r,le:s,rawComment:i,pe:o,fe:c,rawExtraField:l,extendedTimestamp:d,be:p,lastModDate:f,he:u,we: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=Ni(t);e.Ne(1),e.Ne(t-4),u&&e.Le(h),m&&e.Le(y),b&&e.Le(n.offset),g&&e.Me(n.diskNumberStart),x=e.Lt}else x=I;n.ce=x,n.Ce=b,n.ye=g;const E=Gi(f);if(d&&Xi(E)){const t=Ni(9);t.Ne(w),t.Ne(5),t.Ze(p),t.Me(E),v=t.Lt}else v=I;n.de=v;const S=fo(x,s,o,c,v,l);if(S>e)throw Error(ti);a+=46+fo(r,i)+S}return a}function Ni(t){const e=new Uint8Array(t),r=At(e);let a=0;return{Lt:e,Ze:t=>{((t,e,r)=>{t.setUint8(e,r)})(r,a,t),a+=1},Ne:t=>{oo(r,a,t),a+=2},Me:t=>{co(r,a,t),a+=4},Le:t=>{lo(r,a,BigInt(t)),a+=8},Pe:t=>{po(e,t,a),a+=fo(t)},He:t=>a+=t}}function Pi(t){const{diskNumber:e=0}=t;return e}function _i(t){const{diskOffset:e=0}=t;return e}function Wi(t,e){const{availableSize:r=D}=t;return e>r}function Li(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.ne:0)}function Bi(t){const e=At(t);let r=0;for(;r+4<=fo(t);){const a=4+io(e,r+2);if(1==io(e,r))return Bi(zt(t.subarray(0,r),t.subarray(Math.min(r+a,fo(t)))));r+=a}return t}async function qi(t,e,r,a){if(a>0){const{writer:n}=t;await Qa(e,{offset:r,size:a}).pipeTo(n.writable,{preventClose:!0,preventAbort:!0}),n.size+=a,t.offset+=a}}async function Vi(t,e){const r=await Ja(t,e,k);if(fo(r)<k)return k;const a=At(r);return k+io(a,26)+io(a,28)}function Zi(t,{offset:e,diskNumberStart:r}){return e+(t.Ht?t.Ht(r):0)}function Hi(){const t=new Uint8Array(4);return co(At(t),0,n),t}async function Ki(t,e){const{writable:r}=t,a=r.getWriter();try{await a.ready,t.size+=fo(e),await a.write(e)}finally{a.releaseLock()}}function Yi(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<ai?ai:e>ni?ni:e}}function Gi(t){return Math.floor(t.getTime()/1e3)}function Xi(t){return t>=ei&&t<=ri}function Ji(t){return Math.min(ri,Math.max(ei,t))}function Qi(t,e,r,a){const n=e[r]===F?t.options[r]:e[r];return n===F?a:n}function $i(t,e,r,a){const n=Qi(t,e,r,a);if(null===n)return a;if(n!==F&&(typeof n.getTime!=U||Number.isNaN(n.getTime())))throw Error(Zs);return n}function to(t,e,r){return et(Qi(t,e,r))}function eo(t,e,r,a,n){const s=ro(e,r,a),i=s===F?ro(t.options,r,a):s;return i===F?n:i}function ro(t,e,r){return t[e]===F?t[r]:t[e]}function ao(t,e,r,a){return it(Qi(t,e,r,a))}function no(t){return t+5*(Math.floor(t/16383)+1)}function so(t,e){return t===F?e===F||e>0:0!==t}function io(t,e){return t.getUint16(e,!0)}function oo(t,e,r){t.setUint16(e,r,!0)}function co(t,e,r){t.setUint32(e,r,!0)}function lo(t,e,r){t.setBigUint64(e,r,!0)}function po(t,e,r){t.set(e,r)}function fo(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function uo({version:e,bitFlag:r,compressionMethod:a,uncompressedSize:n,compressedSize:s,lastModDate:i,rawLastModDate:o,rawFilename:c,we:l,he:d,extraFieldLength:p}){const f=Ni(26),u=f.Lt,m=At(u);if(f.Ne(e),f.Ne(r),f.Ne(a),o===F){const t=new Uint32Array(1),e=At(t);oo(e,0,(i.getHours()<<6|i.getMinutes())<<5|i.getSeconds()/2),oo(e,2,(i.getFullYear()-1980<<4|i.getMonth()+1)<<5|i.getDate()),o=t[0]}return f.Me(o),f.He(4),l||s!==F?f.Me(l?t:s):f.He(4),d||n!==F?f.Me(d?t:n):f.He(4),f.Ne(fo(c)),f.Ne(p),{ue:u,me:m,rawLastModDate:o}}function mo(t,e,r,a,n){let s=0;return e&&(s|=g),r&&(s|=8),8!=n&&9!=n||(t>=0&&t<=3&&(s|=6),t>3&&t<=5&&(s|=4),9==t&&(s|=2)),a&&(s|=1),s}const wo=1048576,ho=".zip.js-temp";function yo(t={}){const{thresholdBytes:e=wo,directoryName:r=ho,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 bo=1048576;function go(t={}){const{thresholdBytes:e=bo}=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=Te(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 xo=1048576,vo=".zip.js-temp",Eo="createSyncAccessHandle is only available in dedicated workers";function So(t={}){const{thresholdBytes:e=xo,directoryName:r=vo,getDirectory:a}=t;if(!(a||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw Error(Eo);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(t<=0)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{Et({baseURI:import.meta.url})}catch{}let zo,ko,Ao,Ro,Fo;function Do(t,e,r={}){if(!zo){const t=Error("WASM module not loaded");throw t.cause=Fo,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.Ke=ko(n),this.in=ko(s),this.inBufferSize=s,!this.Ke||!this.in)throw Error("allocation failed");if(this.Ye=new Uint8Array(n),t?(this.Ge=zo.deflate_process,this.Xe=zo.deflate_last_consumed,this.Je=zo.deflate_end,this.Qe=zo.deflate_new(),r="gzip"===e?zo.deflate_init_gzip(this.Qe,a):"deflate-raw"===e?zo.deflate_init_raw(this.Qe,a):zo.deflate_init(this.Qe,a)):"deflate64-raw"===e?(this.Ge=zo.inflate9_process,this.Xe=zo.inflate9_last_consumed,this.Je=zo.inflate9_end,this.Qe=zo.inflate9_new(),r=zo.inflate9_init_raw(this.Qe)):(this.Ge=zo.inflate_process,this.Xe=zo.inflate_last_consumed,this.Je=zo.inflate_end,this.Qe=zo.inflate_new(),r="deflate-raw"===e?zo.inflate_init_raw(this.Qe):"gzip"===e?zo.inflate_init_gzip(this.Qe):zo.inflate_init(this.Qe)),0!==r)throw Error("init failed:"+r)}catch(t){throw i(this),t}},transform(e,r){try{const a=e,s=new Uint8Array(Ro.buffer),i=this.Ge,o=this.Xe,c=this.Ke,l=this.Ye;let d=0;for(;d<a.length;){const e=Math.min(a.length-d,32768);if((!this.in||this.inBufferSize<e)&&(this.in&&Ao&&(Ao(this.in),this.in=0),this.in=ko(e),this.inBufferSize=e,!this.in))throw Error("allocation failed");s.set(a.subarray(d,d+e),this.in);const p=i(this.Qe,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(e<0)throw Error("process error:"+e)}const u=o(this.Qe);if(0===u)break;d+=u}}catch(t){i(this),r.error(t)}},flush(e){try{const r=new Uint8Array(Ro.buffer),a=this.Ge,s=this.Ke,i=this.Ye;for(;;){const o=a(this.Qe,0,0,s,n,4),c=16777215&o,l=o>>24&255;if(!t){const t=128&l?l-256:l;if(t<0)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.Qe&&t.Je&&(e=t.Je(t.Qe)),t.Qe=0,t.in&&Ao&&Ao(t.in),t.in=0,t.Ke&&Ao&&Ao(t.Ke),t.Ke=0,e}}class Oo{constructor(t="deflate",e){return Do(!0,t,e)}}class Uo{constructor(t="deflate",e){return Do(!1,t,e)}}Oo.ft=!0,Uo.ft=!0;let jo,To=!1;function Io(){jo=null,(async()=>{await Promise.allSettled(_r.map(t=>(Gr(t),t.terminate()))),wr=F,hr=!1})(),To=!1,zo=ko=Ao=Ro=Fo=null}(({$e:t})=>{br=t})({$e:t=>{if(!jo){let{wasmURI:e}=t;typeof e==U&&(e=e()),jo=(async(t,{baseURI:e})=>{if(!To)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;t<a;++t)n[t]=r.charCodeAt(t);return n.buffer})(t)}(t=>{if(zo=t,({malloc:ko,free:Ao,memory:Ro}=zo),"function"!=typeof ko||"function"!=typeof Ao||!Ro)throw zo=ko=Ao=Ro=null,Error("Invalid WASM module")})((await WebAssembly.instantiate(r)).instance.exports)})(t,e),To=!0}catch(t){throw(t=>{Fo=t})(t),t}})(e,t).catch(t=>{throw jo=null,t})}return jo}}),Et({CompressionStreamFallback:Oo,DecompressionStreamFallback:Uo}),Et({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const Co="Entry filename already exists",Mo="Readable stream already consumed",No="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",Po="Invalid readerOptions (must be an object)",_o="zipjs-abort-export",Wo="The operation was aborted",Lo=new Set([1,m,10,w,28789,25461,h,y,b,22613,13]);class Bo{constructor(t,e,r,a){const n=this;if(t.root&&a&&a.getChildByName(e))throw Error(Co);r||(r={}),Object.assign(n,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.er++,parent:a,children:[],uncompressedSize:r.uncompressedSize||0,rr:r.rr||r.uncompressedSize===F,passThrough:r.passThrough,ar:r.ar||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(Co);this.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==F))}}class qo extends Bo{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 qo(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==ga?e.type==r:t.constructor!=wa||e.startsWith("data:"+(r||"")+";base64,"))})(t,r.data))return r.data;{const a=r.reader=Qo(r.Reader,r.data,e),n=r.uncompressedSize||a.size;await Promise.all([Ga(a),Ga(t,n)]);const s=rt(e.signal),i=((t,e,r,a)=>{const{onstart:n,onprogress:s,onend:i}=r,{readable:o}=e;return t.data instanceof Mn||!n&&!s&&!i?o:je(o).pipeThrough(new Er({onstart:n,onprogress:s,onend:i,size:e.size}),{signal:a})})(r,a,e,s),o=!Ya(t)&&!!e.preventClose;return r.uncompressedSize=a.size,await je(i).pipeTo(Ie(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==Vt)return!1;throw t}}getText(t,e){return this.getData(new Ea(t),e)}getBlob(t,e){return this.getData(new ga(t),e)}getData64URI(t,e){return this.getData(new wa(t),e)}getUint8Array(t){return this.getData(new qa,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return kt(await this.getUint8Array(t)).buffer}replaceBlob(t){Object.assign(this,{data:t,Reader:ba,Writer:ga,reader:null})}replaceText(t){Object.assign(this,{data:t,Reader:xa,Writer:Ea,reader:null})}replaceData64URI(t){Object.assign(this,{data:t,Reader:ma,Writer:wa,reader:null})}replaceUint8Array(t){Object.assign(this,{data:t,Reader:Ba,Writer:qa,reader:null})}replaceReadable(t){Object.assign(this,{data:null,Reader:Xo(t),Writer:null,reader:null})}}class Vo extends Bo{constructor(t,e,r,a){super(t,e,r,a),this.directory=!0}clone(t){const e=this,r=new Vo(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 dc(this,t,{options:e},!0)}addText(t,e,r={}){return dc(this,t,{data:e,Reader:xa,Writer:Ea,options:r,uncompressedSize:va(e)})}addBlob(t,e,r={}){return dc(this,t,{data:e,Reader:ba,Writer:ga,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 dc(this,t,{data:e,Reader:ma,Writer:wa,options:r,uncompressedSize:Math.floor(.75*(a-n))})}addUint8Array(t,e,r={}){return dc(this,t,{data:e,Reader:Ba,Writer:qa,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return dc(this,t,{data:e,Reader:class extends Wa{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return dc(this,t,{Reader:Xo(e),options:r})}addFileSystemEntry(t,e={}){return oc(this,t,e)}addFileSystemHandle(t,e={}){return oc(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),dc(this,t.name,{data:t,Reader:()=>({readable:t.stream(),size:t.size}),options:e,uncompressedSize:t.size})}importBlob(t,e){return this.importZip(new ba(t),e)}importData64URI(t,e){return this.importZip(new ma(t),e)}importUint8Array(t,e){return this.importZip(new Ba(t),e)}importHttpContent(t,e){return this.importZip(new Wa(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new ga(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new wa(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new qa,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=nc(r.readerOptions),o=new AbortController,{signal:c}=o,l=((t,e)=>{if(!rt(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=Ko([t],t=>Go(t,d.passThrough)),f=[];let u=!1,m=0;try{a&&await Sr(a,p),await h(t,e),s&&await Sr(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 Sr(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=>!ec(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||ec(c.reason))return;throw c.reason===F?new DOMException(Wo,"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(_o):t}f.push(e.getRelativeName(t))}}catch(r){u=!0,o.abort(Error(_o));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 Ga(t),r=new cs(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(Co)}else r=new Vo(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(Co)}else e=new Vo(this.fs,s,{data:null},r),a.push(e);e==this||e.data||(e.data=t)}else a.push(dc(r,s,{data:t,Reader:Jo(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([$o(r,nc(e.readerOptions)),Ga(t)]),n=new ki(t,e);return await(async(t,e,r,a,n)=>{const{onstart:s,onprogress:i,onend:o,onentryprogress:c}=a,l=e,d=Ko(e.children,t=>ic(t)?0:1);let p=0,f=0;if(s&&await Sr(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(ic(e))return;const{name:s,nr:o}=rc(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 Sr(i,p,r)}}));f++,c&&await Sr(c,f,d,m)}o&&await Sr(o,p)})(n,r,Ko([r],Yo),e,a),await n.close(e.globalComment),t.getData?t.getData():t.writable}getExportedSize(r={}){const a=this;nc((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(et(r[H]))throw Error(ci);if(s!==F&&!(s instanceof Uint8Array))throw Error(Bs);const o=fo(s);if(o>e)throw Error(Ls);const c=r[Z],l=new Map;let d=!!c;const f=r[V]===F?0:r[V];let u=f,m=D;for(const t of a){let{name:e}=t;const{size:r}=t,a=Object.assign({},t.options);e=e.trim(),Qi(i,a,An)&&!e.endsWith(z)&&(e+=z);const n=Fi(i,e,a);({name:e}=n);const{ge:s}=Di(i,e,a);0==s.level||s.compressionMethod!==F||s.passThrough||await gr(wt())||(s.level=0);const o=!Qi(i,a,An);if(o&&r===F)throw Error(ci);const{Ve:d,ge:p}=Ui(i,o,r,s,a);if(o&&!s.passThrough&&so(p.compressionMethod,p.level))throw Error(ci);const f=Object.assign({},a,n.ge,s,p,{[Z]:c}),w=ji(f),h=Ci(f),y={Se:w,Re:fo(w.xe,h.ve)};c&&Ti(y,u);const b=o?d:0;l.set(e,Object.assign({},f,w,{offset:u,diskNumberStart:0,compressedSize:b}));const g=y.Re+b;m=Math.min(m,g),u+=g}if(l.size&&u-m>=t&&(d=!0),d&&!n)throw Error(ci);const w=Mi(l);let h=Qi(i,r,vn);if(u>=t||w>=t||l.size>=e){if(!1===h)throw Error(si);h=!0}return u-f+w+o+(h?98:p)})(r,a.getChildren({recursive:!0}).filter(t=>!ic(t)).map(t=>{const{name:e,nr:n}=rc(t,a,r);return{name:e,size:t.directory?0:ac(t,sc(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 Zo{constructor(){lc(this)}get children(){return this.root.children}remove(t){tc(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(Co)}else tc(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 lc(this),this.root.importBlob(t,e)}importData64URI(t,e){return lc(this),this.root.importData64URI(t,e)}importUint8Array(t,e){return lc(this),this.root.importUint8Array(t,e)}importHttpContent(t,e){return lc(this),this.root.importHttpContent(t,e)}importReadable(t,e){return lc(this),this.root.importReadable(t,e)}importZip(t,e){return lc(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 Ho={FS:Zo,ZipDirectoryEntry:Vo,ZipFileEntry:qo};function Ko(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 Yo(t){return t.uncompressedSize}function Go(t,e){const{data:r}=t;return e&&r instanceof Mn?r.compressedSize:t.uncompressedSize}function Xo(t){let e;return()=>{if(e)throw Error(Mo);return e=!0,{readable:t}}}function Jo(t){return class extends fa{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 ga,Object.assign(r,{checkPasswordOnly:!1,checkOverlappingEntry:n||a,checkOverlappingEntryOnly:!1,preventClose:!1}));e.data=s,e.sr=new ba(s),e.size=s.size,super.init()}readUint8Array(t,e){return this.sr.readUint8Array(t,e)}}}function Qo(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function $o(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=Qo(t.Reader,t.data,e);n.set(t,r);try{await Ga(r)}catch(e){try{e.entryId=t.id,e.cause={entry:t}}catch{}throw e}r.size!==F&&(t.uncompressedSize=r.size,t.rr=!1)})),n}function tc(t){if(t.parent){const e=t.parent.children;e.forEach((r,a)=>{r.id==t.id&&e.splice(a,1)})}}function ec(t){return!!t&&t.message==_o}function rc(t,e,r){const a=r.relativePath?t.getRelativeName(e):t.getFullname(),n=t.options||{};let s={},i={};if(t.data instanceof Mn){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)=>{Lo.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"}),sc(t,r)){let t;w&&(t=w.strength),i={passThrough:!0,encrypted:p,zipCrypto:f,crc32:u,uncompressedSize:d,encryptionStrength:t,compressionMethod:m}}}const o=Object.assign({lastModDate:t.ar},s,r,n,i,{directory:t.directory});if(!t.directory&&o.passThrough&&o.uncompressedSize===F)throw Error(No);return{name:a,nr:o}}function ac(t,e){const{reader:r}=t;return r&&r.size!==F?r.size:t.rr?F:Go(t,e)}function nc(t){if(t&&(typeof t!=j||Array.isArray(t)))throw Error(Po);return t}function sc(t,e){const{readerOptions:r}=e;return!(t.directory||!(t.passThrough||r&&r.passThrough))}function ic(t){return t.directory&&null===t.data}function oc(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 cc(a)),"file"==a.kind){const t=await a.getFile();n.push(dc(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 cc(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 cc(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 lc(t){t.entries=[],t.er=0,t.root=new Vo(t)}function dc(t,e,r,a){if(t.directory)return a?new Vo(t.fs,e,r,t):new qo(t.fs,e,r,t);throw Error("Parent entry is not a directory")}let pc;function fc(t){return t&&(pc||(pc=(()=>{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})()),pc)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{ba as BlobReader,ga as BlobWriter,ma as Data64URIReader,wa as Data64URIWriter,Wo as ERR_ABORTED,Gn as ERR_AMBIGUOUS_ARCHIVE,Nn as ERR_BAD_FORMAT,Wn as ERR_CENTRAL_DIRECTORY_NOT_FOUND,Ws as ERR_DUPLICATED_NAME,qn as ERR_ENCRYPTED,Xn as ERR_ENCRYPTED_CENTRAL_DIRECTORY,Yn as ERR_ENTRY_DATA_OUT_OF_BOUNDS,Co as ERR_ENTRY_EXISTS,_n as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,Pn as ERR_EOCDR_NOT_FOUND,Bn as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,ta as ERR_HTTP_RANGE,ea as ERR_HTTP_RESOURCE_CHANGED,Ht as ERR_INVALID_AUTHENTICATION_CODE,Ce as ERR_INVALID_CODEC_DEFINITION,Ne as ERR_INVALID_CODEC_MODULE,Ls as ERR_INVALID_COMMENT,Bs as ERR_INVALID_COMMENT_TYPE,Ke as ERR_INVALID_COMPRESSED_DATA,Ye as ERR_INVALID_CRC32,Zs as ERR_INVALID_DATE,Ys as ERR_INVALID_ENCRYPTION_STRENGTH,qs as ERR_INVALID_ENTRY_COMMENT,Vs as ERR_INVALID_ENTRY_COMMENT_TYPE,Hs as ERR_INVALID_ENTRY_NAME,Js as ERR_INVALID_EXTRAFIELD,ti as ERR_INVALID_EXTRAFIELD_DATA,$s as ERR_INVALID_EXTRAFIELD_DATA_TYPE,Qs as ERR_INVALID_EXTRAFIELD_TYPE,$n as ERR_INVALID_FILENAME_VALIDATION,Q as ERR_INVALID_FUNCTION_OPTION,fi as ERR_INVALID_GID,bi as ERR_INVALID_LEVEL,ts as ERR_INVALID_MAX_APPENDED_DATA_SIZE,ot as ERR_INVALID_MAX_WORKERS,hi as ERR_INVALID_MSDOS_ATTRIBUTES,yi as ERR_INVALID_MSDOS_DATA,Vt as ERR_INVALID_PASSWORD,tt as ERR_INVALID_PASSWORD_TYPE,No as ERR_INVALID_PASS_THROUGH,Po as ERR_INVALID_READER_OPTIONS,$ as ERR_INVALID_SIGNAL,Zt as ERR_INVALID_SIGNATURE,gi as ERR_INVALID_SIGNATURE_DATA,Qn as ERR_INVALID_STRICTNESS,pi as ERR_INVALID_UID,He as ERR_INVALID_UNCOMPRESSED_SIZE,mi as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,wi as ERR_INVALID_UNIX_ID_SIZE,ui as ERR_INVALID_UNIX_MODE,Ks as ERR_INVALID_VERSION,ra as ERR_ITERATOR_COMPLETED_TOO_SOON,Ln as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Kn as ERR_OVERLAPPING_ENTRY,Mo as ERR_READABLE_CONSUMED,Me as ERR_RESERVED_COMPRESSION_METHOD,Hn as ERR_SPLIT_ZIP_FILE,oi as ERR_UNDEFINED_COMPRESSION_METHOD,li as ERR_UNDEFINED_READER,ii as ERR_UNDEFINED_UNCOMPRESSED_SIZE,ci as ERR_UNDETERMINED_SIZE,Jn as ERR_UNSAFE_FILENAME,Zn as ERR_UNSUPPORTED_COMPRESSION,Eo as ERR_UNSUPPORTED_CONTEXT,Yt as ERR_UNSUPPORTED_CRYPTO_API,Vn as ERR_UNSUPPORTED_ENCRYPTION,Xs as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,Gs as ERR_UNSUPPORTED_ENCRYPTION_USDZ,si as ERR_UNSUPPORTED_FORMAT,es as ERR_UNSUPPORTED_UINT64,mr as ERR_WORKER_STARTUP_TIMEOUT,aa as ERR_WRITER_NOT_INITIALIZED,di as ERR_ZIP_NOT_EMPTY,La as HttpRangeReader,Wa as HttpReader,fa as Reader,Va as SplitDataReader,Za as SplitDataWriter,xa as TextReader,Ea as TextWriter,Ba as Uint8ArrayReader,qa as Uint8ArrayWriter,ua as Writer,Vo as ZipDirectoryEntry,Bo as ZipEntry,Zo as ZipFS,qo as ZipFileEntry,cs as ZipReader,ls as ZipReaderStream,ki as ZipWriter,Ai as ZipWriterStream,bt as configure,go as createBlobTempStream,yo as createOPFSTempStream,So as createSyncAccessHandleTempStream,Ho as fs,fc as getMimeType,Le as registerCodec,St as resetConfiguration,Io as terminateWorkers,Be as unregisterCodec};
1
+ const t=4294967295,e=65535,r=255,n=67324752,a=134695760,s=a,o=84233040,i=33639248,c=101010256,l=101075792,d=117853008,f=46,u=22,p=20,m=56,w=39169,h=21589,y=6534,b=30837,g=30805,x=2048,v=61440,E=16384,S=2048,z=1024,k="/",A=30,R=new Date(2107,11,31,23,59,58),D=new Date(1980,0,1),F=void 0,O=1/0,U="undefined",j="function",T="object",I="string",M=new Uint8Array,C="password",N="rawPassword",B="passThrough",P="signal",_="useWebWorkers",W="useCompressionStream",L="transferStreams",q="preventClose",V="dataDescriptor",Z="offset",H="usdz",K="signCentralDirectory",Y="filename",G="comment",X="strict",J="balanced",Q="tolerant",$="Invalid option (must be a function)",tt="Invalid signal (must be an AbortSignal instance)",et="Invalid password (password must be a string, rawPassword must be a Uint8Array)";function rt(t){if(t&&typeof t!=j)throw new Error($);return t}function nt(t){if(t&&(typeof t.addEventListener!=j||"boolean"!=typeof t.aborted))throw new Error(tt);return t||F}function at(t,e){if(t&&typeof t!=I||e&&!(e instanceof Uint8Array))throw new Error(et)}function st(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw new Error(r)}function ot(t,e,r){t!==F&&st(t,e,r)}function it(t){return typeof t==I&&t.trim()?Number(t):t}const ct="Invalid maxWorkers (must be an integer greater than 0)";let lt=2;try{typeof navigator!=U&&navigator.hardwareConcurrency&&(lt=navigator.hardwareConcurrency)}catch{}const dt={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:lt,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=U&&CompressionStream,DecompressionStream:typeof DecompressionStream!=U&&DecompressionStream},ft="maxWorkers",ut=["chunkSize",ft,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],pt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],mt=["baseURI","wasmURI","workerURI","useCompressionStream","useWebWorkers","transferStreams",...ut,...pt],wt={...dt};function ht(){return wt}function yt(t){return bt(t.chunkSize)}function bt(t){return t=it(t),Number.isInteger(t)&&t>=1?Math.max(t,64):65536}function gt(t){Object.assign(wt,xt(Et(t)))}function xt(t){const e={};for(const r of mt){const n=t[r];n!==F&&(e[r]=vt(r,n))}return e}function vt(t,e){if(ut.includes(t)){if(e=it(e),t==ft&&(!Number.isInteger(e)||e<1))throw new Error(ct)}else pt.includes(t)&&rt(e);return e}function Et(t){t=t||{};const{CompressionStreamZlib:e,DecompressionStreamZlib:r}=t;if(e===F&&r===F)return t;const n=Object.assign({},t);return n.CompressionStreamFallback===F&&(n.CompressionStreamFallback=e),n.DecompressionStreamFallback===F&&(n.DecompressionStreamFallback=r),n}function St(t){const e=xt(Et(t));Object.assign(dt,e),Object.assign(wt,e)}function zt(){for(const t of mt)delete wt[t];Object.assign(wt,dt)}function kt(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function At(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function Rt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const Dt=[[],[],[],[],[],[],[],[]];for(let t=0;t<256;t++){let e=t;for(let t=0;t<8;t++)e=1&e?e>>>1^3988292384:e>>>1;Dt[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=Dt[e-1][t];Dt[e][t]=r>>>8^Dt[0][255&r]}const[Ft,Ot,Ut,jt,Tt,It,Mt,Ct]=Dt;class Nt{constructor(t){this.o=t||-1}append(t){let e=0|this.o;const r=0|t.length;let n=0;if(r>=8&&t.buffer){const a=new DataView(t.buffer,t.byteOffset,r),s=r-8;for(;n<=s;n+=8){const t=e^a.getInt32(n,!0),r=a.getInt32(n+4,!0);e=Ct[255&t]^Mt[t>>>8&255]^It[t>>>16&255]^Tt[t>>>24&255]^jt[255&r]^Ut[r>>>8&255]^Ot[r>>>16&255]^Ft[r>>>24&255]}}for(;n<r;n++)e=e>>>8^Ft[255&(e^t[n])];this.o=e}get(){return~this.o}}class Bt extends TransformStream{constructor(){let t;const e=new Nt;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 Pt(t){if(typeof TextEncoder==U){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 _t={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const r=t[t.length-1],n=_t.l(r);return 32===n?t.concat(e):_t.m(e,n,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)+_t.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]=_t.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,n){for(void 0===n&&(n=[]);e>=32;e-=32)n.push(r),r=0;if(0===e)return n.concat(t);for(let a=0;a<t.length;a++)n.push(r|t[a]>>>e),r=t[a]<<32-e;const a=t.length?t[t.length-1]:0,s=_t.l(a);return n.push(_t.v(e+s&31,e+s>32?r:n.pop(),1)),n}},Wt={bytes:{S(t){const e=_t.bitLength(t)/8,r=new Uint8Array(e);let n;for(let a=0;a<e;a++)3&a||(n=t[a/4]),r[a]=n>>>24,n<<=8;return r},A(t){const e=[];let r,n=0;for(r=0;r<t.length;r++)n=n<<8|t[r],3&~r||(e.push(n),n=0);return 3&r&&e.push(_t.v(8*(3&r),n)),e}}},Lt=class{constructor(t){const e=this;e.blockSize=512,e.R=[1732584193,4023233417,2562383102,271733878,3285377520],e.D=[1518500249,1859775393,2400959708,3395469782],t?(e.F=t.F.slice(0),e.O=t.O.slice(0),e.U=t.U):e.reset()}reset(){const t=this;return t.F=t.R.slice(0),t.O=[],t.U=0,t}update(t){const e=this;"string"==typeof t&&(t=Wt.j.A(t));const r=e.O=_t.concat(e.O,t),n=e.U,a=e.U=n+_t.bitLength(t);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(r);let o=0;for(let t=e.blockSize+n-(e.blockSize+n&e.blockSize-1);t<=a;t+=e.blockSize)e.T(s.subarray(16*o,16*(o+1))),o+=1;return r.splice(0,16*o),e}I(){const t=this;let e=t.O;const r=t.F;e=_t.concat(e,[_t.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}M(t,e,r,n){return t<=19?e&r|~e&n:t<=39?e^r^n:t<=59?e&r|e&n|r&n:t<=79?e^r^n:void 0}C(t,e){return e<<t|e>>>32-t}T(t){const e=this,r=e.F,n=Array(80);for(let e=0;e<16;e++)n[e]=t[e];let a=r[0],s=r[1],o=r[2],i=r[3],c=r[4];for(let t=0;t<=79;t++){t>=16&&(n[t]=e.C(1,n[t-3]^n[t-8]^n[t-14]^n[t-16]));const r=e.C(5,a)+e.M(t,s,o,i)+c+n[t]+e.D[Math.floor(t/20)]|0;c=i,i=o,o=e.C(30,s),s=a,a=r}r[0]=r[0]+a|0,r[1]=r[1]+s|0,r[2]=r[2]+o|0,r[3]=r[3]+i|0,r[4]=r[4]+c|0}},qt={importKey:t=>new qt.N(Wt.bytes.A(t)),B(t,e,r,n){if(r=r||1e4,n<0||r<0)throw new Error("invalid params to pbkdf2");const a=1+(n>>5)<<2;let s,o,i,c,l;const d=new ArrayBuffer(a),f=new DataView(d);let u=0;const p=_t;for(e=Wt.bytes.A(e),l=1;u<(a||1);l++){for(s=o=t.encrypt(p.concat(e,[l])),i=1;i<r;i++)for(o=t.encrypt(o),c=0;c<o.length;c++)s[c]^=o[c];for(i=0;u<(a||1)&&i<s.length;i++)f.setInt32(u,s[i]),u+=4}return d.slice(0,n/8)},N:class{constructor(t){const e=this,r=e.P=Lt,n=[[],[]];e._=[new r,new r];const a=e._[0].blockSize/32;t.length>a&&(t=(new r).update(t).I());for(let e=0;e<a;e++)n[0][e]=909522486^t[e],n[1][e]=1549556828^t[e];e._[0].update(n[0]),e._[1].update(n[1]),e.W=new r(e._[0])}reset(){const t=this;t.W=new t.P(t._[0]),t.L=!1}update(t){this.L=!0,this.W.update(t)}digest(){const t=this,e=t.W.I(),r=new t.P(t._[1]).update(e).I();return t.reset(),r}encrypt(t){if(this.L)throw new Error("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},Vt=typeof crypto!=U&&typeof crypto.getRandomValues==j,Zt="Invalid password",Ht="Invalid signature",Kt=Ht,Yt="zipjs-abort-check-password",Gt="Crypto API not supported";function Xt(t){if(Vt)return crypto.getRandomValues(t);throw new Error(Gt)}const Jt=16,Qt={name:"PBKDF2"},$t=Object.assign({hash:{name:"HMAC"}},Qt),te=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},Qt),ee=["deriveBits"],re=[8,12,16],ne=[16,24,32],ae=10,se=[0,0,0,0],oe=typeof crypto!=U,ie=oe&&crypto.subtle,ce=oe&&typeof ie!=U,le=Wt.bytes,de=class{constructor(t){const e=this;e.V=[[[],[],[],[],[]],[[],[],[],[],[]]],e.V[0][0][0]||e.Z();const r=e.V[0][4],n=e.V[1],a=t.length;let s,o,i,c=1;if(4!==a&&6!==a&&8!==a)throw new Error("invalid aes key size");for(e.D=[o=t.slice(0),i=[]],s=a;s<4*a+28;s++){let t=o[s-1];(s%a===0||8===a&&s%a===4)&&(t=r[t>>>24]<<24^r[t>>16&255]<<16^r[t>>8&255]<<8^r[255&t],s%a===0&&(t=t<<8^t>>>24^c<<24,c=c<<1^283*(c>>7))),o[s]=o[s-a]^t}for(let t=0;s;t++,s--){const e=o[3&t?s:s-4];i[t]=s<=4||t<4?e:n[0][r[e>>>24]]^n[1][r[e>>16&255]]^n[2][r[e>>8&255]]^n[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],n=e[4],a=[],s=[];let o,i,c,l;for(let t=0;t<256;t++)s[(a[t]=t<<1^283*(t>>7))^t]=t;for(let d=o=0;!r[d];d^=i||1,o=s[o]||1){let s=o^o<<1^o<<2^o<<3^o<<4;s=s>>8^255&s^99,r[d]=s,n[s]=d,l=a[c=a[i=a[d]]];let f=16843009*l^65537*c^257*i^16843008*d,u=257*a[s]^16843008*s;for(let r=0;r<4;r++)t[r][d]=u=u<<24^u>>>8,e[r][s]=f=f<<24^f>>>8}for(let r=0;r<5;r++)t[r]=t[r].slice(0),e[r]=e[r].slice(0)}H(t,e){if(4!==t.length)throw new Error("invalid aes block size");const r=this.D[e],n=r.length/4-2,a=[0,0,0,0],s=this.V[e],o=s[0],i=s[1],c=s[2],l=s[3],d=s[4];let f,u,p,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;t<n;t++)f=o[m>>>24]^i[w>>16&255]^c[h>>8&255]^l[255&y]^r[b],u=o[w>>>24]^i[h>>16&255]^c[y>>8&255]^l[255&m]^r[b+1],p=o[h>>>24]^i[y>>16&255]^c[m>>8&255]^l[255&w]^r[b+2],y=o[y>>>24]^i[m>>16&255]^c[w>>8&255]^l[255&h]^r[b+3],b+=4,m=f,w=u,h=p;for(let t=0;t<4;t++)a[e?3&-t:t]=d[m>>>24]<<24^d[w>>16&255]<<16^d[h>>8&255]<<8^d[255&y]^r[b++],f=m,m=w,w=h,h=y,y=f;return a}},fe=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,n=255&t;255===e?(e=0,255===r?(r=0,255===n?n=0:++n):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=n}return t}$(t){0===(t[0]=this.J(t[0]))&&(t[1]=this.J(t[1]))}X(t,e,r){let n;if(!(n=e.length))return[];const a=_t.bitLength(e);for(let a=0;a<n;a+=4){this.$(r);const n=t.encrypt(r);e[a]^=n[0],e[a+1]^=n[1],e[a+2]^=n[2],e[a+3]^=n[3]}return _t.h(e,a)}},ue=qt.N;let pe=oe&&ce&&typeof ie.importKey==j,me=oe&&ce&&typeof ie.deriveBits==j;class we extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:n,checkAuthenticationCode:a=!0}){super({start(){ye(this,t,e,r)},async transform(t,e){const r=this,{password:a,strength:s,et:o,ready:i}=r;a?(await async function(t,e,r,n){const a=await ge(t,e,r,ve(n,0,re[e])),s=ve(n,re[e]);if(a[0]!=s[0]||a[1]!=s[1])throw new Error(Zt)}(r,s,a,ve(t,0,re[s]+2)),t=ve(t,re[s]+2),n?e.error(new Error(Yt)):o()):await i;const c=new Uint8Array(t.length-ae-(t.length-ae)%Jt);e.enqueue(be(r,t,c,0,ae,!0))},async flush(t){const{nt:e,st:r,ot:n,ready:s}=this;if(r&&e){await s;const o=ve(n,0,n.length-ae),i=ve(n,n.length-ae);let c=M;if(o.length){const t=Se(le,o);r.update(t);const n=e.update(t);c=Ee(le,n)}const l=ve(Ee(le,r.digest()),0,ae);let d=n.length<ae?1:0;for(let t=0;t<ae;t++)d|=l[t]^i[t];if(d&&a)throw new Error(Kt);t.enqueue(c)}}})}}class he extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){super({start(){ye(this,t,e,r)},async transform(t,e){const r=this,{password:n,strength:a,et:s,ready:o}=r;let i=M;n?(i=await async function(t,e,r){const n=Xt(new Uint8Array(re[e]));return kt(n,await ge(t,e,r,n))}(r,a,n),s()):await o;const c=new Uint8Array(i.length+t.length-t.length%Jt);c.set(i,0),e.enqueue(be(r,t,c,i.length,0))},async flush(t){const{nt:e,st:r,ot:n,ready:a}=this;if(r&&e){await a;let s=M;if(n.length){const t=e.update(Se(le,n));r.update(t),s=Ee(le,t)}const o=Ee(le,r.digest()).slice(0,ae);t.enqueue(kt(s,o))}}})}}function ye(t,e,r,n){Object.assign(t,{ready:new Promise(e=>t.et=e),password:xe(e,r),strength:n-1,ot:M})}function be(t,e,r,n,a,s){const{nt:o,st:i,ot:c}=t;c.length&&(e=kt(c,e));const l=e.length-a;let d;for(r=function(t,e){if(e&&e>t.length){const r=t;(t=new Uint8Array(e)).set(r,0)}return t}(r,n+(l-l%Jt)),d=0;d<=l-Jt;d+=Jt){const t=Se(le,ve(e,d,d+Jt));s&&i.update(t);const a=o.update(t);s||i.update(a),r.set(Ee(le,a),d+n)}return t.ot=ve(e,d),r}async function ge(t,e,r,n){t.password=null;const a=await async function(t,e,r,n,a){if(!pe)return qt.importKey(e);try{return await ie.importKey("raw",e,r,!1,a)}catch{return pe=!1,qt.importKey(e)}}(0,r,$t,0,ee),s=await async function(t,e,r){if(!me)return qt.B(e,t.salt,te.iterations,r);try{return await ie.deriveBits(t,e,r)}catch{return me=!1,qt.B(e,t.salt,te.iterations,r)}}(Object.assign({salt:n},te),a,8*(2*ne[e]+2)),o=new Uint8Array(s),i=Se(le,ve(o,0,ne[e])),c=Se(le,ve(o,ne[e],2*ne[e])),l=ve(o,2*ne[e]);return Object.assign(t,{keys:{key:i,it:c,passwordVerification:l},nt:new fe(new de(i),Array.from(se)),st:new ue(c)}),l}function xe(t,e){return e===F?Pt(t):e}function ve(t,e,r){return t.subarray(e,r)}function Ee(t,e){return t.S(e)}function Se(t,e){return t.A(e)}class ze extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:n}){super({start(){Ae(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=Re(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw new Error(Zt);t=t.subarray(12)}n?e.error(new Error(Yt)):e.enqueue(Re(r,t))}})}}class ke extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){Ae(this,t,e,r)},transform(t,e){const r=this;let n,a;if(r.password||r.rawPassword){r.password=r.rawPassword=null;const e=Xt(new Uint8Array(12));e[11]=r.passwordVerification,n=new Uint8Array(t.length+e.length),n.set(De(r,e),0),a=12}else n=new Uint8Array(t.length),a=0;n.set(De(r,t),a),e.enqueue(n)}})}}function Ae(t,e,r,n){Object.assign(t,{password:e,rawPassword:r,passwordVerification:n}),function(t,e,r){const n=[305419896,591751049,878082192];if(Object.assign(t,{keys:n,ct:new Nt(n[0]),lt:new Nt(n[2])}),r)for(let e=0;e<r.length;e++)Fe(t,r[e]);else for(let r=0;r<e.length;r++)Fe(t,e.charCodeAt(r))}(t,e,r)}function Re(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Oe(t)^e[n],Fe(t,r[n]);return r}function De(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Oe(t)^e[n],Fe(t,e[n]);return r}function Fe(t,e){let[,r]=t.keys;t.ct.append([e]);const n=~t.ct.get();r=je(Math.imul(je(r+Ue(n)),134775813)+1),t.lt.append([r>>>24]);const a=~t.lt.get();t.keys=[n,r,a]}function Oe(t){const e=2|t.keys[2];return Ue(Math.imul(e,1^e)>>>8)}function Ue(t){return 255&t}function je(t){return 4294967295&t}function Te(t){if(t instanceof ReadableStream)return t;const e=t.getReader();return new ReadableStream({async pull(t){const{value:r,done:n}=await e.read();n?t.close():t.enqueue(r)},cancel:t=>e.cancel(t)})}function Ie(t,e){t=Te(t);const r=e?{type:e}:{};if(typeof Blob.prototype.stream!=j||new Blob([]).stream()instanceof ReadableStream)return new Response(t).blob().then(t=>e?new Blob([t],r):t);const n=[];return t.pipeTo(new WritableStream({write(t){n.push(t)}})).then(()=>new Blob(n,r))}function Me(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 Ce="Invalid codec definition",Ne="Reserved compression method",Be="Invalid codec module",Pe=[0,8,9,99],_e=new Map,We=new Map;function Le(t={}){const{compressionMethod:r,format:n,codecURI:a,CompressionStream:s,DecompressionStream:o,versionNeeded:i}=t;if(!Number.isInteger(r)||r<0||r>e||typeof n!=I||!n.length)throw new Error(Ce);if(Pe.includes(r))throw new Error(Ne);const c=typeof s==j||typeof o==j;if(!(c||typeof a==I&&a.length))throw new Error(Ce);_e.set(r,{compressionMethod:r,format:n,codecURI:a,versionNeeded:i}),c&&He(n,{CompressionStream:s,DecompressionStream:o})}function qe(t){const e=_e.get(t);if(e){let r;_e.delete(t),_e.forEach(t=>r=r||t.format==e.format),r||We.delete(e.format)}}function Ve(t){return _e.get(t)}function Ze(t){return We.get(t)}function He(t,e){const{CompressionStream:r,DecompressionStream:n}=e;if(typeof r!=j&&typeof n!=j)throw new Error(Be);We.set(t,{CompressionStream:r,DecompressionStream:n})}const Ke="Invalid uncompressed size",Ye="Invalid compressed data",Ge=Ht,Xe="deflate-raw",Je="gzip",Qe=[31,139,8];class $e extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:n}){super({});const{compressed:a,encrypted:s,useCompressionStream:o,zipCrypto:i,computeCrc32:c,level:l,deflate64:d,format:f,compressionMethod:u}=t,p=this;let m,w,h,y=super.readable;const b=f&&Ze(f),g=c&&a&&!d&&!b&&(!s||i)&&Boolean(o&&n);if(s&&!i||!c||g||(m=new Bt,y=cr(y,m)),a)if(b)y=lr(y,or(b.CompressionStream,f,{level:l,chunkSize:e,compressionMethod:u}));else if(g)h=new tr,y=lr(y,new n(Je)),y=cr(y,h);else try{y=ir(y,o,{level:l,chunkSize:e},n,r)}catch(t){let e;try{e=new n(Je)}catch{throw t}y=lr(y,e),y=cr(y,new tr)}s&&(i?y=cr(y,new ke(t)):(w=new he(t),y=cr(y,w))),sr(p,y,()=>{s&&!i||!c||(p.crc32=g?h.crc32:new DataView(m.value.buffer).getUint32(0))})}}class tr extends TransformStream{constructor(){let t,e=10,r=new Uint8Array(0);super({transform(t,n){if(e){const r=Math.min(e,t.length);if(e-=r,!(t=t.subarray(r)).length)return}const a=r.length+t.length;if(a<=8)return void(r=kt(r,t));const s=a-8,o=Math.min(s,r.length);n.enqueue(kt(r.subarray(0,o),t.subarray(0,s-o))),r=kt(r.subarray(o),t.subarray(s-o))},flush(){const e=Rt(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class er extends TransformStream{constructor(t,{chunkSize:e,DecompressionStreamFallback:r,DecompressionStream:n}){super({});const{zipCrypto:a,encrypted:s,checkCrc32:o,crc32:i,compressed:c,useCompressionStream:l,deflate64:d,format:f,compressionMethod:u,rawBitFlag:p,outputSize:m}=t;let w,h,y=super.readable;if(s&&(a?y=cr(y,new ze(t)):(h=new we(t),y=cr(y,h))),c){const t=f&&Ze(f);if(t)y=lr(y,or(t.DecompressionStream,f,{chunkSize:e,compressionMethod:u,rawBitFlag:p,uncompressedSize:m}));else try{y=ir(y,l,{chunkSize:e,deflate64:d},n,r)}catch(t){if(d||m===F)throw t;let e;try{e=new n(Je)}catch{throw t}y=function(t,e,r){const n=new Nt;let a,s,o,i=0,c=!1;const l=new Promise((t,e)=>{s=t,o=e});l.catch(()=>{}),r||s();const d=new TransformStream({start(t){const e=new Uint8Array(10);e.set(Qe),t.enqueue(e)},transform(t,e){e.enqueue(t)},async flush(t){c=!0,u();try{await l}finally{p()}const e=new Uint8Array(8),a=Rt(e);a.setUint32(0,n.get(),!0),a.setUint32(4,r,!0),t.enqueue(e)},cancel(t){o(t)}}),f=new TransformStream({transform(t,e){n.append(t),i+=t.length,i>=r?s():c&&u(),e.enqueue(t)},cancel(t){o(t)}});return t=cr(t,d),cr(t=lr(t,e),f);function u(){p(),a=setTimeout(()=>o(new Error(Ke)),5e3)}function p(){clearTimeout(a)}}(y,e,m)}y=function(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=new Error(Ye);throw e.cause=t,e}const{value:n,done:a}=r;a?t.close():t.enqueue(n)},cancel:t=>e.cancel(t)})}(y)}o&&(w=new Bt,y=cr(y,w)),sr(this,y,()=>{if(o){const t=new DataView(w.value.buffer);if(i!=t.getUint32(0,!1))throw new Error(Ge)}})}}const rr=new Map;function nr(t,e){if(!t)return!1;let r=rr.get(t);r||(r=new Map,rr.set(t,r));let n=r.get(e);if(n===F){try{new t(e),n=!0}catch{n=!1}r.set(e,n)}return n}function ar(t){return nr(t,Xe)}function sr(t,e,r){e=cr(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function or(t,e,r){if(!t)throw new Error("Compression method not supported");return new t(e,r)}function ir(t,e,r,n,a){const s=e&&n?n:a||n,o=r.deflate64?"deflate64-raw":Xe;let i;try{i=new s(o,r)}catch(t){if(!e||!a||s==a)throw t;i=new a(o,r)}return lr(t,i)}function cr(t,e){return Te(t).pipeThrough(e)}function lr(t,e){const r=e.writable.getWriter(),n=t.getReader();return async function(){try{for(;;){await r.ready;const t=await n.read();if(t.done){await r.close();break}await r.write(t.value)}}catch(t){await async function(t,e){try{await t.abort(e)}catch{}}(r,t),await async function(t,e){try{await t.cancel(e)}catch{}}(n,t)}}(),e.readable}const dr="data",fr="deflate",ur="inflate";class pr extends TransformStream{constructor(t,e){super({});const r=this,{codecType:n}=t;let a;n.startsWith(fr)?a=$e:n.startsWith(ur)&&(a=er),r.outputSize=0;let s=0;const o=new a(t,e),i=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,n){if(e&&e.length&&(n.enqueue(e),r.outputSize+=e.length,t.outputSize!==F&&r.outputSize>t.outputSize))throw new Error(Ke)},flush(){const{crc32:t}=o;Object.assign(r,{crc32:t,inputSize:s})}});Object.defineProperty(r,"readable",{get:()=>i.pipeThrough(c).pipeThrough(o).pipeThrough(l)})}}class mr extends TransformStream{constructor(t){const e=[];let r=0;function n(){const n=new Uint8Array(t);let a=0;for(;a<t;){const r=e[0],s=t-a;r.length<=s?(n.set(r,a),a+=r.length,e.shift()):(n.set(r.subarray(0,s),a),e[0]=r.subarray(s),a+=s)}return r-=t,n}(!Number.isFinite(t)||t<1)&&(t=65536),super({transform(a,s){for(e.push(a),r+=a.length;r>t;)s.enqueue(n())},flush(t){r&&t.enqueue(function(t,e){const r=new Uint8Array(e);let n=0;for(const e of t)r.set(e,n),n+=e.length;return r}(e,r))}})}}const wr="Worker startup timeout";let hr,yr,br,gr=()=>{};async function xr(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;if(r&&!r.ft)return!0;if(ar(e)||nr(e,Je))return!0;if(r)try{return await gr(t),!0}catch{return!1}return!1}function vr(t){t.createWorker?yr=!0:hr=!1}class Er{constructor(t,{readable:e,writable:r},{options:n,config:a,ut:s,useWebWorkers:o,transferStreams:i,workerURI:c,createWorker:l},d){const{signal:f}=s;return yr&&(l=F),Object.assign(t,{wt:!0,ht:(t.ht||0)+1,readable:e.pipeThrough(new mr(yt(a))).pipeThrough(new Sr(s),{signal:f}),writable:r,options:Object.assign({},n),workerURI:c,createWorker:l,transferStreams:i,terminate:()=>new Promise(e=>{const{yt:r,wt:n}=t;r?(n?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)}}}),hr===F&&(hr=typeof Worker!=U),(o&&br&&(hr&&c||l)?br:kr)(t,a)}}class Sr extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:n}){let a=0;super({async start(){t&&await zr(t,r)},async transform(t,n){a+=t.length,e&&await zr(e,a,r),n.enqueue(t)},async flush(){n&&await zr(n,a)}})}}async function zr(t,...e){try{await t(...e)}catch{}}function kr(t,e){return{run:()=>Ar(t,e)}}async function Ar({options:t,readable:e,writable:r,xt:n},a){let s;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(fr),r=e?a.CompressionStreamFallback:a.DecompressionStreamFallback,n=e?a.CompressionStream:a.DecompressionStream;if(t.useCompressionStream){if(r&&r.ft&&!ar(n))try{await gr(a)}catch{}}else try{await gr(a)}catch{r&&!r.ft||(t.useCompressionStream=!0)}}s=new pr(t,a),await e.pipeThrough(s).pipeThrough(new mr(yt(a))).pipeTo(r,{preventClose:!0,preventAbort:!0});const{crc32:n,inputSize:o,outputSize:i}=s;return{crc32:n,inputSize:o,outputSize:i}}catch(t){throw s&&(t.outputSize=s.outputSize),t}finally{n()}}const Rr={type:"module"},Dr="error";let Fr,Or,Ur,jr=!0;try{jr=typeof structuredClone==j&&structuredClone(new DOMException("","AbortError")).code!==F}catch{}var Tr;function Ir(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function Mr(t){const{yt:e}=t;if(e)try{e.terminate()}catch{}t.gt=null}function Cr(t,e,r,n,a=!0){const{createWorker:s}=r;let o,i,c;if(s)o=s();else if(Or===F||Fr!==t){const s=typeof t==j;i=s?t(a):t;const l=i.startsWith("data:"),d=i.startsWith("blob:");if(l||d){n===F&&(n=!1),n&&(c=Rr);try{o=new Worker(i,c)}catch(a){if(d)try{URL.revokeObjectURL(i)}catch{}if(s&&d)return Cr(t,e,r,n,!1);if(n)throw a;return Cr(t,e,r,!0,!1)}}else{n===F&&(n=!0),n&&(c=Rr);try{i=new URL(i,e)}catch{}try{o=new Worker(i,c)}catch(s){if(n)return Cr(t,e,r,!1,a);throw s}}Fr=t,Or=i,Ur=c}else o=new Worker(Or,Ur);return o.addEventListener("message",t=>{r.Et=!0,Nr(r),async function({data:t},e){const{type:r,value:n,messageId:a,result:s,error:o}=t,{reader:i,writer:c,St:l,zt:d,xt:f,ht:u}=e,p=()=>e.ht!=u;try{if(o){const{message:t,stack:e,code:r,name:n,outputSize:a,cause:s,codecImportFailed:i}=o,c=new Error(t);Object.assign(c,{stack:e,code:r,name:n,outputSize:a}),s&&(c.cause=Object.assign(new Error(s.message),{name:s.name})),i&&(c.codecImportFailed=!0),m(c)}else{if("pull"==r){const{value:t,done:r}=await i.read();p()||Pr({type:dr,value:t,done:r,messageId:a},e)}r==dr&&(await c.ready,await c.write(new Uint8Array(n)),p()||Pr({type:"ack",messageId:a},e)),"close"==r&&m(null,s)}}catch(o){p()||(Mr(e),m(o))}function m(t,e){p()||(t?d(t):l(e),c&&c.releaseLock(),t&&t.codecImportFailed||f())}}(t,r)}),o.addEventListener(Dr,t=>Br(t,r)),o.addEventListener("messageerror",t=>Br(t,r)),o}function Nr(t){const{kt:e}=t;e&&(clearTimeout(e),t.kt=null)}function Br(t,e){t.preventDefault&&t.preventDefault(),Nr(e);const{Et:r,zt:n,writer:a,xt:s}=e;Mr(e),r||(e.yt=null);let o=t.error||new Error(t.message||Dr);r||(o=Object.assign(new Error(o.message||Dr),{At:!0}),e.Rt=o),n&&(n(o),a&&a.releaseLock(),r&&s())}function Pr(t,{yt:e,writer:r,transferStreams:n,Et:a}){try{const{value:r,readable:s,writable:o}=t,i=[];if(r&&(t.value=At(r),i.push(t.value.buffer)),n&&jr&&a?(s&&i.push(s),o&&i.push(o)):t.readable=t.writable=null,i.length)try{return e.postMessage(t,i),!0}catch{jr=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}Tr=function(t,e){const{baseURI:r,chunkSize:n,workerStartupTimeout:a}=e;let{wasmURI:s}=e;if(!t.gt){let o;typeof s==j&&(s=s());try{o=Cr(t.workerURI,r,t)}catch{return vr(t),kr(t,e)}Object.assign(t,{yt:o,Et:!1,vt:!1,Rt:null,gt:{run:async()=>{try{return await async function(t,e){if(!t.yt){const{Rt:e}=t;t.Rt=null;const r=e||new Error(wr);throw r.At=!0,r}let r,n;const a=new Promise((t,e)=>{r=t,n=e});Object.assign(t,{reader:null,writer:null,St:r,zt:n,result:a});const{readable:s,options:o}=t,{writable:i,closed:c,Dt:l}=function(t){const e=new AbortController,{writable:r,readable:n}=new TransformStream,a=n.pipeTo(t,{preventClose:!0,preventAbort:!0,signal:e.signal});return a.catch(()=>{}),{writable:r,closed:a,Dt:()=>e.abort()}}(t.writable);let d;try{d=Pr({type:"start",options:o,config:e,readable:s,writable:i},t)}catch(e){l();try{await c}catch{}throw t.xt(),e}d||Object.assign(t,{reader:s.getReader(),writer:i.getWriter()});const{workerStartupTimeout:f}=e;!t.Et&&Number.isFinite(f)&&f>=0&&(t.kt=setTimeout(()=>function(t){if(t.kt=null,t.Et)return;const{zt:e,writer:r}=t;if(Mr(t),t.yt=null,e){const t=new Error(wr);t.At=!0,e(t),r&&r.releaseLock()}}(t),f));try{const t=await a;return await u(),await c,t}catch(t){await u(),l();try{await c}catch{}throw t}async function u(){if(!d&&!i.locked)try{await i.getWriter().close()}catch{}}}(t,{chunkSize:n,wasmURI:s,baseURI:r,workerStartupTimeout:a})}catch(r){if(r&&r.At)return vr(t),Ir(t),Ar(t,e);if(r&&r.codecImportFailed){if(t.reader)return Ir(t),Ar(t,e);t.xt()}throw r}}}})}return t.gt},br=Tr;let _r=[];const Wr=[];let Lr,qr,Vr=0;async function Zr(t,e){const{options:r,config:n}=e,{transferStreams:a,useWebWorkers:s,useCompressionStream:o,compressed:i,checkCrc32:c,computeCrc32:l,encrypted:d,format:f,codecURI:u}=r,{workerURI:p,createWorker:m,maxWorkers:w}=n;f&&(u&&(r.codecURI=function(t,e){try{return new URL(t,e).toString()}catch{return t}}(u,n.baseURI)),await async function(t,e){!We.has(t)&&e&&He(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */e)))}(f,r.codecURI)),e.transferStreams=!f&&(a||a===F&&n.transferStreams);const h=!(i||c||l||d),y=f===F||Boolean(r.codecURI);return e.useWebWorkers=!h&&y&&(s||s===F&&n.useWebWorkers),e.workerURI=e.useWebWorkers&&p?p:F,e.createWorker=e.useWebWorkers&&m?m:F,r.useCompressionStream=o||o===F&&n.useCompressionStream,(await async function(){const r=_r.find(t=>!t.wt);if(r)return Xr(r),new Er(r,t,e,b);if(_r.length<w){const r={Ft:Vr};return Vr++,_r.push(r),new Er(r,t,e,b)}return new Promise(r=>{Wr.push({resolve:r,stream:t,Ot:e}),qr=n.workerStarvationTimeout,Hr()})}()).run();function b(t){if(Kr(),Wr.length){const[{resolve:e,stream:r,Ot:n}]=Wr.splice(0,1);e(new Er(t,r,n,b)),Hr()}else t.yt?(Xr(t),function(t,e){const{config:r}=e,{terminateWorkerTimeout:n}=r;Number.isFinite(n)&&n>=0&&(t.vt?t.vt=!1:t.Ut=setTimeout(async()=>{_r=_r.filter(e=>e!=t);try{await t.terminate()}catch{}},n))}(t,e)):_r=_r.filter(e=>e!=t)}}function Hr(){!Lr&&Wr.length&&Number.isFinite(qr)&&qr>=0&&(Lr=setTimeout(Yr,qr))}function Kr(){Lr&&(clearTimeout(Lr),Lr=null)}function Yr(){if(Lr=null,Wr.length){const[{resolve:t,stream:e,Ot:r}]=Wr.splice(0,1),n=Object.assign({},r,{useWebWorkers:!1,workerURI:F,createWorker:F});t(new Er({},e,n,Gr)),Hr()}}function Gr(){Kr(),Hr()}function Xr(t){const{Ut:e}=t;e&&(clearTimeout(e),t.Ut=null)}const Jr="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),Qr=256==Jr.length;function $r(t,e){return tn(t,e,!0)}function tn(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?function(t){if(Qr){let e="";for(let r=0;r<t.length;r++)e+=Jr[t[r]];return e}return(new TextDecoder).decode(t)}(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const en="HTTP error ",rn="HTTP Range not supported",nn="HTTP resource changed",an="Writer iterator completed too soon",sn="Writer not initialized",on="Content-Range",cn="Range",ln="GET",dn="bytes",fn=16777216,un="writable",pn=Symbol();class mn{constructor(){this.size=0}init(){this.initialized=!0}}class wn extends mn{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=yt(ht())}={}){const n=this;let a=0;return r=bt(r),new ReadableStream({async pull(s){const o=e===F?r:Math.min(r,e-a),i=await ta(n,t+a,o);i.length&&s.enqueue(i),a+r>=e||!i.length&&o?s.close():a+=r}})}}class hn extends mn{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw new Error(sn);return t.writeUint8Array(At(e))}});Object.defineProperty(t,un,{get:()=>e})}writeUint8Array(){}}class yn extends wn{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:n}=this,a=new Uint8Array(e),s=4*Math.floor(t/3),o=atob(n.substring(s+r,4*Math.ceil((t+e)/3)+r)),i=t-3*Math.floor(s/4);let c=0;for(let t=i;t<i+e&&t<o.length;t++)a[t-i]=o.charCodeAt(t),c++;return c<a.length?a.subarray(0,c):a}}class bn extends hn{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",It:""})}writeUint8Array(t){const e=this;let r,n=e.It;const a=e.It.length;for(e.It="",r=0;r<3*Math.floor((a+t.length)/3)-a;r++)n+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.It+=String.fromCharCode(t[r]);n.length>2?e.data+=btoa(n):e.It=n+e.It}getData(){return this.data+btoa(this.It)}}let gn,xn;class vn extends wn{constructor(t){super(),Object.assign(this,{Mt:t,size:t.size}),xn||(xn=(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();gn=1==e}catch{gn=!1}})())}createReadable(t){const{Mt:e,size:r}=this,{offset:n=0,size:a=r-n}=t||{};return!n&&a>=r?Te(e.stream()):gn?Te(e.slice(n,n+a).stream()):super.createReadable(t)}async readUint8Array(t,e){const r=this,n=t+e,a=!t&&n>=r.size?r.Mt:r.Mt.slice(t,n);let s=await a.arrayBuffer();return s.byteLength>e&&(s=s.slice(t,n)),new Uint8Array(s)}}class En extends mn{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,un,{get:()=>r.writable}),e.contentType=t,e.Ct=Ie(r.readable,t),e.Ct.catch(()=>{})}getData(){return this.Ct}}class Sn extends vn{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function zn(t){let e=0;for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);n<128?e+=1:n<2048?e+=2:n<55296||n>=57344?e+=3:n<56320&&56320==(64512&t.charCodeAt(r+1))?(e+=4,r++):e+=3}return e}class kn extends En{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():function(t,e){return tn(t,e,!1)}(new Uint8Array(await r.arrayBuffer()),t)}}class An extends wn{constructor(t,e){super(),Dn(this,t,e)}async init(){await Fn(this,Wn,Nn),super.init()}createReadable(t){const e=this,{useRangeHeader:r,forceRangeRequests:n,size:a}=e;if((r||n)&&a!==F){const{offset:r=0,size:n=a-r}=t||{};if(n>0&&r<a)return function(t,e,r){let n,a=e,s=0,o=r;return new ReadableStream({start:()=>i(),async pull(t){n||await i();const{value:e,done:r}=await n.read();if(r)throw new Error(rn);const a=e.length>s?e.subarray(0,s):e;s-=a.length,o-=a.length,a.length&&t.enqueue(a),s||(await async function(){const t=n;n=F,await t.cancel()}(),o||t.close())},cancel:t=>n&&n.cancel(t)});async function i(){const e=Math.min(t.maximumRangeSize,o),r=await Wn(ln,t,Mn(t,a,e));if(206!=r.status)throw new Error(rn);const i=r.headers.get(on);if(i){const t=Number(i.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=a)throw new Error(rn)}In(t,r),Tn(t,r),a+=e,s=e,n=r.body.getReader()}}(e,r,Math.min(n,a-r))}return super.createReadable(t)}readUint8Array(t,e){return On(this,t,e,Wn,Nn)}}class Rn extends wn{constructor(t,e){super(),Dn(this,t,e)}async init(){await Fn(this,Ln,Bn),super.init()}readUint8Array(t,e){return On(this,t,e,Ln,Bn)}}function Dn(t,e,r){const{preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:s,combineSizeEocd:o,checkResourceChanges:i=!0,maximumRangeSize:c=fn,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:n,useRangeHeader:a,forceRangeRequests:s,combineSizeEocd:o,checkResourceChanges:i,maximumRangeSize:c,fetch:l})}async function Fn(t,e,r){const{url:n,preventHeadRequest:a,useRangeHeader:s,forceRangeRequests:o,combineSizeEocd:i}=t;if(function(t){const{baseURI:e}=ht(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r}(n)&&(s||o)&&(typeof a==U||a)){const n=await e(ln,t,Mn(t,i?-22:void 0)),a=n.headers.get("Accept-Ranges");if(!(o||a&&a.toLowerCase()==dn))throw new Error(rn);{if(i){const e=new Uint8Array(await n.arrayBuffer());206==n.status&&e.length==u&&(t.Bt=e)}Tn(t,n);const a=Un(n);a===F?await _n(t,e,r):t.size=a}}else await _n(t,e,r)}async function On(t,e,r,n,a){const{useRangeHeader:s,forceRangeRequests:o,Bt:i,size:c,options:l}=t;if(s||o){if(i&&e==c-u&&r==u)return i;if(e>=c||0===r)return M;{e+r>c&&(r=c-e);const a=await n(ln,t,Mn(t,e,r));if(206!=a.status)throw new Error(rn);const s=a.headers.get(on);if(s){const t=Number(s.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=e)throw new Error(rn)}In(t,a),Tn(t,a);const o=new Uint8Array(await a.arrayBuffer());if(o.length!=r)throw new Error(rn);return o}}{const{data:n}=t;return n||await a(t,l),t.data.subarray(e,e+r)}}function Un(t){const e=t.headers.get(on);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function jn({headers:t}){return{Pt:t.get("Etag")||F,lastModified:t.get("Last-Modified")||F}}function Tn(t,e){const{checkResourceChanges:r,_t:n}=t;r&&!n&&206==e.status&&(t._t=jn(e))}function In(t,e){const{checkResourceChanges:r,_t:n,size:a}=t;if(r){const t=Un(e);if(t!==F&&a!==F&&t!=a)throw new Error(nn);if(n){const t=jn(e);if(Object.entries(n).some(([e,r])=>r!==F&&t[e]!==F&&r!=t[e]))throw new Error(nn)}}}function Mn(t,e=0,r=1){return Object.assign({},Cn(t),{[cn]:dn+"="+(e<0?e:e+"-"+(e+r-1))})}function Cn({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Nn(t){await Pn(t,Wn)}async function Bn(t){await Pn(t,Ln)}async function Pn(t,e){const r=await e(ln,t,Cn(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function _n(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const n=await e("HEAD",t,Cn(t)),a=n.headers.get("Content-Length");a&&!n.headers.get("Content-Encoding")?t.size=Number(a):await r(t,t.options)}}async function Wn(t,{fetch:e=fetch,options:r,url:n},a){const s=await e(n,Object.assign({},r,{method:t,headers:a}));if(s.status<400)return s;throw 416==s.status?new Error(rn):new Error(en+(s.statusText||s.status))}function Ln(t,{url:e},r){return new Promise((n,a)=>{const s=new XMLHttpRequest;if(s.addEventListener("load",()=>{if(s.status<400){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)}),n({status:s.status,arrayBuffer:()=>s.response,headers:new Map(t)})}else a(416==s.status?new Error(rn):new Error(en+(s.statusText||s.status)))},!1),s.addEventListener("error",t=>a(t.detail?t.detail.error:new 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 qn extends wn{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new Rn(t,e):new An(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 Vn extends qn{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class Zn extends wn{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{Wt:t,size:t.length})}readUint8Array(t,e){return this.Wt.slice(t,t+e)}}class Hn extends hn{constructor(t){super(),this.Lt=t||262144}init(t=0){Object.assign(this,{offset:0,Wt:new Uint8Array(t>0?t:this.Lt)}),super.init()}writeUint8Array(t){const e=this,r=e.offset+t.length;if(r>e.Wt.length){let t=e.Wt.length?2*e.Wt.length:e.Lt;for(;t<r;)t*=2;const n=e.Wt;e.Wt=new Uint8Array(t),e.Wt.set(n)}e.Wt.set(t,e.offset),e.offset+=t.length}getData(){return this.offset===this.Wt.length?this.Wt:this.Wt.slice(0,this.offset)}}class Kn extends wn{constructor(t){super(),this.qt=t}async init(){const t=this;t.Vt=0;const e=t.qt=await Promise.all(t.qt.map($n));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,n=e[t];return n===F?r:n}async readUint8Array(t,e){const r=this,{qt:n}=this;let a,s=0,o=t;for(;n[s]&&o>=n[s].size;)o-=n[s].size,s++;const i=n[s];if(i){const n=i.size;if(o+e<=n)a=await ta(i,o,e);else{const s=n-o;a=kt(await ta(i,o,s),await r.readUint8Array(t+s,e-s))}}else a=M;return r.Vt=Math.max(s,r.Vt),a}}class Yn extends mn{constructor(t,e=4294967295){super();const r=this;let n,a,s;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:e,availableSize:e});const o=new WritableStream({async write(e){if(e===pn)return void(s&&await c());const{availableSize:o}=r;if(s)e.length>=o?(await i(e.subarray(0,o)),await c(),e.length>o&&await this.write(e.subarray(o))):await i(e);else{const{value:o,done:i}=await t.next();if(i&&!o)throw new Error(an);n=o,n.size=0,n.maxSize&&(r.maxSize=n.maxSize),r.availableSize=r.maxSize,await Qn(n),a=o.writable,s=a.getWriter(),await this.write(e)}},async close(){s&&(await s.ready,await l())},async abort(t){s&&await s.abort(t)}});async function i(t){const e=t.length;e&&(await s.ready,await s.write(t),n.size+=e,r.availableSize-=e)}async function c(){await l(),r.diskOffset+=n.size,r.diskNumber++,s=null,r.availableSize=r.maxSize}async function l(){await s.close()}Object.defineProperty(r,un,{get:()=>o})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(pn)}finally{t.releaseLock()}}}class Gn{constructor(t){return Array.isArray(t)&&(t=new Kn(t)),(t instanceof ReadableStream||typeof t.getReader==j)&&(t={readable:Te(t)}),t}}class Xn{constructor(t){return t.writable===F&&typeof t.next==j&&(t=new Yn(t)),(t instanceof WritableStream||typeof t.getWriter==j)&&(t={writable:Me(t)}),t.size===F&&(t.size=0),t}}function Jn(t){return Boolean(t&&t.getData)}async function Qn(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function $n(t){return t=new Gn(t),await Qn(t),t.size!==F&&t.readUint8Array||(t=new vn(await Ie(t.readable)),await Qn(t)),t}function ta(t,e,r){return t.readUint8Array(e,r)}function ea(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?wn.prototype.createReadable.call(t,e):t.readable}const ra="filename",na="rawFilename",aa="comment",sa="rawComment",oa="uncompressedSize",ia="compressedSize",ca="offset",la="diskNumberStart",da="lastModDate",fa="rawLastModDate",ua="lastAccessDate",pa="rawLastAccessDate",ma="creationDate",wa="rawCreationDate",ha="internalFileAttributes",ya="externalFileAttributes",ba="internalFileAttribute",ga="externalFileAttribute",xa="msdosAttributesRaw",va="msdosAttributes",Ea="msDosCompatible",Sa="zip64",za="encrypted",ka="version",Aa="versionMadeBy",Ra="zipCrypto",Da="directory",Fa="executable",Oa="compressionMethod",Ua="signature",ja="extraField",Ta="unixMode",Ia="setuid",Ma="setgid",Ca="sticky",Na=[ra,na,oa,ia,da,fa,aa,sa,ua,pa,ma,wa,ca,la,ha,ya,ba,ga,xa,va,Ea,Sa,za,ka,Aa,Ra,Da,Fa,"symlink",Oa,Ua,"crc32",ja,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",Ta,"unixExternalUpper",Ia,Ma,Ca,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class Ba{constructor(t){Na.forEach(e=>this[e]=t[e])}}const Pa="File format is not recognized",_a="End of central directory not found",Wa="End of Zip64 central directory locator not found",La="Central directory header not found",qa="Local file header not found",Va="Zip64 extra field not found",Za="File contains encrypted entry",Ha="Encryption method not supported",Ka="Compression method not supported",Ya="Split zip file",Ga="Overlapping entry found",Xa="Entry data out of bounds",Ja="Ambiguous archive",Qa="Encrypted central directory is not supported",$a="Unsafe filename",ts="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",es="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",rs="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",ns="64-bit value exceeds Number.MAX_SAFE_INTEGER",as=/^[a-zA-Z]:/,ss="utf-8",os="cp437",is=[[oa,t],[ia,t],[ca,t],[la,e]],cs={[e]:{Kt:_s,bytes:4},[t]:{Kt:Ws,bytes:8}},ls=BigInt(Number.MAX_SAFE_INTEGER);class ds{constructor(t,e={}){Object.assign(this,{reader:new Gn(t),options:e,Yt:new Map})}async*getEntriesGenerator(n={}){const s=this;let{reader:o}=s;if(await Qn(o),o.size!==F&&o.readUint8Array||(o=new vn(await Ie(o.readable)),await Qn(o)),o.size<u)throw new Error(Pa);const c=As(n,s.options),w=c==X,h=c!=Q,y=function(t,r){if(t!==F){const e=it(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw new Error(rs);return e}return r==X?0:r==Q?1/0:e}(Is(s,n,"maxAppendedDataSize"),c),b=function(t,e){if(t===F)return e;if(!ks(t))throw new Error(es);return t}(Is(s,n,"filenameValidation"),c),g=Is(s,n,"normalizeFilename"),{Gt:x,Xt:A}=await async function(t,e,r){const{size:n}=t,a=Math.min(n,65557),s={count:64};let o,i,c=0;for await(const[r,l,d,f,p]of Fs(t,a)){const a=Ps(r,f+20);if(p+u+a==n){const a=await Us(t,r,l,f,p,n,s);if(2==a){if(o||(o=Os(d,f,p)),c++,!e||c>1)break}else 1!=a||i||(i=Os(d,f,p))}}return o||(o=i),o||(o=await async function(t,e,r){const{size:n}=t,a=Math.min(n,e==1/0?n:65557+e);let s,o;for await(const[e,i,c,l,d]of Fs(t,a)){const a=Os(c,l,d);s||(s=a);const f=await Us(t,e,i,l,d,n,r);if(2==f)return a;1!=f||o||(o=a)}return o||s}(t,r,s)),{Gt:o,Xt:c}}(o,h,y);if(!x)throw await async function(t){return await zs(t)==a}(o)?new Error(Ya):new Error(_a);h&&A>1&&Ts("multiple end of central directory records");const R=Rt(x);let D=_s(R,12),O=_s(R,16);const U=x.offset,j=Ps(R,20),T=U+u+j;o.size-T>y&&Ts("appended data");let I=Ps(R,4);const C=o.Vt||0;let N,B,P,_,W=Ps(R,6),L=Ps(R,10),q=0,V=m;const Z=O==t||D==t||L==e||W==e;if(O!=t&&W!=e&&(O+=Ss(o,W)),Z){const r=x.offset>=p?await ta(o,x.offset-p,p):M,n=Rt(r);if(r.length==p&&_s(n,0)==d){O=Ss(o,_s(n,4))+Ws(n,8);let r=await ta(o,O,m),a=Rt(r);const s=x.offset-p-m;if((r.length<m||_s(a,0)!=l)&&O!=s&&s>=0){const t=O;O=s,O>t&&(q=O-t),r=await ta(o,O,m),a=Rt(r)}if(r.length<m||_s(a,0)!=l)throw new Error(Wa);if(B=!0,P=Ws(a,4)>44,P){const t=Math.min(Ws(a,4)-44,o.size-O-m);t>0&&(V+=t,_=function(t){const e={rawExtensibleData:t};if(t.length>=28){const r=Rt(t),n=Ps(r,26);Object.assign(e,{compressionMethod:Ps(r,0),compressedSize:Ws(r,2),uncompressedSize:Ws(r,10),encryptionAlgorithm:Ps(r,18),bitLength:Ps(r,20),flags:Ps(r,22),hashAlgorithm:Ps(r,24),hashData:t.subarray(28,28+n)})}return e}(await ta(o,O+m,t)))}I==e?I=_s(a,16):w&&I!=_s(a,16)&&Ts("mismatched zip64 end of central directory record"),W==e?W=_s(a,20):w&&W!=_s(a,20)&&Ts("mismatched zip64 end of central directory record"),L==e?L=Ws(a,32):w&&L!=Ws(a,32)&&Ts("mismatched zip64 end of central directory record"),D==t?D=Ws(a,40):w&&D!=Ws(a,40)&&Ts("mismatched zip64 end of central directory record"),O=Ss(o,W)+Ws(a,48)+q}}let H=D;const K=x.offset-(B?V+p:0);if(O>=o.size&&(q=o.size-O-D-u,O=o.size-D-u),C!=I)throw new Error(Ya);if(O<0)throw new Error(Pa);let J=0,$=await ta(o,O,D),tt=Rt($);if(D){if($.length<4)throw new Error(Pa);const t=K-D;if(O!=t&&W==I){let e=!(_s(tt,J)==i||Boolean(_&&_.compressedSize)||ps(tt));if(!e&&t>=0&&t+4<=o.size&&(e=_s(Rt(await ta(o,t,4)),0)==i),e){const e=O;O=t,O>e&&(q+=O-e),$=await ta(o,O,D),tt=Rt($)}}}const et=K-O;if(D!=et&&et>=0&&W==I&&(D=et,$=await ta(o,O,D),tt=Rt($)),O<0||O>=o.size)throw new Error(Pa);s.directoryOffset=O,s.directoryLength=H;const rt=Ms(s,n,"decryptCentralDirectory");let nt,at;if(rt&&L&&$.length>=4&&_s(tt,0)!=i&&(P||ps(tt))){const t=function(t,e,r){const n=t&&t.compressedSize?t.compressedSize:e;return n>0&&n<=r?n:r}(_,H,$.length);at=$.subarray(t),$=await rt($.subarray(0,t),_),tt=Rt($),H=$.length,nt=!0}N=O;const st=Is(s,n,"filenameEncoding"),ot=Is(s,n,"commentEncoding"),ct=w?new Set:F;let lt;const dt=!w&&!B;!L&&dt&&(L=ms(tt,$,J));for(let t=0;t<L;t++){const a=new us(o,s.options);if(J+f>$.length||_s(tt,J)!=i){if(0==t&&!nt&&(P||ps(tt)))throw new Error(Qa);throw new Error(La)}hs(a,tt,J+6);const c=Boolean(a.bitFlag.languageEncodingFlag),l=J+f,d=l+a.filenameLength,u=d+a.extraFieldLength,p=Ps(tt,J+4),m=!(p>>8),h=p>>8==3,y=$.subarray(l,d),x=Ps(tt,J+32),A=u+x,R=$.subarray(u,A),D=c,O=c,U=_s(tt,J+38),j=U&r,T={readOnly:Boolean(1&j),hidden:Boolean(2&j),system:Boolean(4&j),directory:Boolean(16&j),archive:Boolean(32&j)},I=_s(tt,J+42),M=Ms(s,n,"decodeText")||$r,C=D?ss:st||os,B=O?ss:ot||os;let _=M(y,C,Y);if(_===F&&(_=$r(y,C)),g){const t=g(_);t!==F&&(_=t)}if(Ds(_,b)){const t=new Error($a);throw t.filename=_,t}let W=M(R,B,G);W===F&&(W=$r(R,B)),Object.assign(a,{index:t,Jt:nt,versionMadeBy:p,msDosCompatible:m,zip64:!1,compressedSize:0,uncompressedSize:0,Qt:x,offset:I,diskNumberStart:Ps(tt,J+34),internalFileAttributes:Ps(tt,J+36),externalFileAttributes:U,msdosAttributesRaw:j,msdosAttributes:T,rawFilename:y,filenameUTF8:D,commentUTF8:O,rawExtraField:$.subarray(d,u),rawComment:R,filename:_,comment:W}),ys(a,a,tt,J+6),a.offset+=q,N=Math.min(Ss(o,a.diskNumberStart)+a.offset,N),w&&(ct.has(a.filename)&&(lt=!0),ct.add(a.filename));const V=a.externalFileAttributes>>16&e;a.unixMode===F&&16877&V&&(a.unixMode=V);const Z=Boolean(a.unixMode&S),H=Boolean(a.unixMode&z),K=Boolean(512&a.unixMode),X=40960==((a.unixMode===F?V:a.unixMode)&v),Q=!X&&(a.unixMode!==F?!!(73&a.unixMode):h&&!!(73&V)),et=a.unixMode!==F&&(a.unixMode&v)==E,rt=(V&v)==E;Object.assign(a,{setuid:Z,setgid:H,sticky:K,symlink:X,unixExternalUpper:V,internalFileAttribute:a.internalFileAttributes,externalFileAttribute:a.externalFileAttributes,executable:Q,directory:et||rt||m&&T.directory||a.filename.endsWith(k),zipCrypto:a.encrypted&&!a.extraFieldAES});const at=new Ba(a);at.getData=(t,e)=>a.getData(t,at,s.Yt,e),at.arrayBuffer=async t=>{const e=new TransformStream,r=Ie(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await a.getData(e,at,s.Yt,t),r},J=A,t==L-1&&dt&&(L+=ms(tt,$,J));const{onprogress:it}=n;if(it)try{await it(t+1,L,new Ba(a))}catch{}yield at}let ft=J,ut=ws($.subarray(J))||(nt?ws(at):F);if(!ut&&!nt){const t=O+J,e=Math.min(K-t,65541);e>=6&&(ut=ws(await ta(o,t,e)))}ut&&(s.digitalSignature=ut,ft=J+6+ut.length),w&&J!=H&&ft!=H&&Ts("trailing central directory data"),lt&&Ts("duplicate filename");const pt=Is(s,n,"extractPrependedData"),mt=Is(s,n,"extractAppendedData"),wt=(w||pt)&&L&&4==N&&await async function(t){const e=await zs(t);return e==a||808471376==e}(o)?4:0;return w&&(q||L&&N>wt)&&Ts("prepended data"),pt&&(s.prependedData=N>wt?await ta(o,wt,N-wt):M),s.comment=j?await ta(o,U+u,j):M,mt&&(s.appendedData=T<o.size?await ta(o,T,o.size-T):M),!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 fs{constructor(t={}){const{readable:e,writable:r}=new TransformStream,n=new ds(e,t).getEntriesGenerator();this.readable=new ReadableStream({async pull(t){const{done:e,value:r}=await n.next();if(e)return t.close();const a={...r,readable:function(){const{readable:t,writable:e}=new TransformStream;if(r.getData)return async function(){try{await r.getData(e)}catch(t){try{await e.abort(t)}catch{}}}(),t}()};delete a.getData,t.enqueue(a)}}),this.writable=r}}let us=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,a,o={}){const i=this,c=ht(),{reader:l,index:d,offset:f,diskNumberStart:u,extraFieldAES:p,extraFieldZip64:m,compressionMethod:w,bitFlag:h,rawBitFlag:y,crc32:b,rawLastModDate:g,uncompressedSize:x,compressedSize:v}=i,{dataDescriptor:E}=h,S=e.localDirectory={},z=Ss(l,u)+f,k=await ta(l,z,A),R=Rt(k);let D=Is(i,o,C),O=Is(i,o,N);const U=Is(i,o,B);if(at(D,O),D=D&&D.length&&D,O=O&&O.length&&O,p&&99!=p.originalCompressionMethod)throw new Error(Ka);if(k.length<A||_s(R,0)!=n)throw new Error(qa);hs(S,R,4);const{extraFieldLength:j,filenameLength:T}=S,I=S.dataOffset=z+A+T+j,V=Is(i,o,"checkLocalDirectory"),Z=As(o,i.options),H=function(t,e){return t===F?e!=Q:Boolean(t)}(V,Z),K=function(t,e){return t===F?e==X:Boolean(t)}(V,Z);let Y=M;if(K&&(T||j)){const t=await ta(l,z+A,T+j);Y=t.subarray(0,T),S.rawExtraField=t.subarray(T)}else S.rawExtraField=j?await ta(l,z+A+T,j):M;K&&(S.rawFilename=Y),ys(i,S,R,4,!0),H&&function(t,e,r,n){const{rawFilename:a}=t,s=t.Jt&&!(8192&~e.rawBitFlag);!n||s||r.length==a.length&&!r.some((t,e)=>t!=a[e])||Ts("mismatched local file header (filename)"),(2057&e.rawBitFlag)!=(2057&t.rawBitFlag)&&Ts("mismatched local file header (general purpose bit flag)"),e.compressionMethod!=t.compressionMethod&&Ts("mismatched local file header (compression method)"),e.bitFlag.dataDescriptor||s||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||Ts("mismatched local file header (crc32 or sizes)")}(i,S,Y,K);const{lastAccessDate:G,creationDate:J,uid:$,gid:tt}=S;G&&(e.lastAccessDate=G),J&&(e.creationDate=J),$!==F&&e.uid===F&&(e.uid=$),tt!==F&&e.gid===F&&(e.gid=tt);const et=i.encrypted&&S.encrypted&&!U,rt=et&&!p;if(U||(e.zipCrypto=rt),et&&!(64&~S.rawBitFlag))throw new Error(Ha);const st=U?F:Ve(w);if(0!=w&&8!=w&&9!=w&&!st&&!U)throw new Error(Ka);if(et){if(!rt&&(p.strength<1||p.strength>3))throw new Error(Ha);if(!D&&!O)throw new Error(Za)}if(I+v>l.size)throw new Error(Xa);const ot=v,it=Te(l.createReadable({offset:I,size:ot})),ct=nt(Is(i,o,P)),lt=Is(i,o,"checkPasswordOnly");let dt=Is(i,o,"checkOverlappingEntry");const ft=Is(i,o,"checkOverlappingEntryOnly");ft&&(dt=!0);const{onstart:ut,onprogress:pt,onend:mt}=o,wt=0!=w&&!U,yt=U?v:x,bt=9==w;let gt=Is(i,o,W);bt&&(gt=!1);const xt=Is(i,o,"checkCrc32"),vt=(xt===F?Is(i,o,"checkSignature"):xt)&&!U&&(!et||rt||p&&1==p.vendorVersion),Et={options:{codecType:ur,password:D,rawPassword:O,zipCrypto:rt,encryptionStrength:p&&p.strength,checkCrc32:vt,checkAuthenticationCode:Is(i,o,"checkAuthenticationCode"),passwordVerification:rt&&(E?g>>>8&r:b>>>24&r),outputSize:yt,crc32:b,compressed:wt,encrypted:et,useWebWorkers:Is(i,o,_),useCompressionStream:gt,transferStreams:Is(i,o,L),deflate64:bt,format:st?st.format:F,codecURI:st?st.codecURI:F,compressionMethod:w,rawBitFlag:y,checkPasswordOnly:lt},config:c,ut:{signal:ct,size:ot,onstart:ut,onprogress:pt,onend:mt}};let St,zt;dt&&await async function({reader:t,$t:e,index:r,offset:n,crc32:a,compressedSize:o,uncompressedSize:i,dataOffset:c,dataDescriptor:l,extraFieldZip64:d,Yt:f}){let u=0;if(l&&(u=d?20:12),u){const r=await ta(t,c+o,u+4),n=Rt(r);let l=r.length==u+4&&_s(n,0)==s;if(l){const t=Es(n,4,d);(e.encrypted&&!e.zipCrypto||t.crc32==a)&&t.compressedSize==o&&t.uncompressedSize==i?u+=4:l=!1}if(r.length>=u){const t=Es(n,l?4:0,d);t.signature=l,e.localDirectory.dataDescriptor=t}}const p={start:n,end:c+o+u,$t:e};for(const[t,e]of f)if(t!=r&&p.start<e.end&&e.start<p.end){const t=new Error(Ga);throw t.overlappingEntry=e.$t,t}f.set(r,p)}({reader:l,$t:e,index:d,offset:z,crc32:b,compressedSize:v,uncompressedSize:x,dataOffset:I,dataDescriptor:E||S.bitFlag.dataDescriptor,extraFieldZip64:m||S.extraFieldZip64,Yt:a});try{if(!ft){lt&&(t=new WritableStream),t=new Xn(t),await Qn(t,function(t,e,r){return Math.min(t,r?1032*e:e)}(yt,v,wt)),({writable:St}=t);const{outputSize:e}=await Zr({readable:it,writable:St},Et);if(t.size+=e,e!=yt)throw new Error(Ke)}}catch(e){if(e.outputSize!==F&&(t.size+=e.outputSize),!lt||e.message!=Yt)throw zt=e,e}finally{if((Jn(t)||!Is(i,o,q))&&St&&!St.locked){const t=St.getWriter();if(zt)try{await t.abort(zt)}catch{}else await t.close()}}return lt||ft?F:t.getData?t.getData():St}};function ps(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;r<e;r++)if(134630224==_s(t,r))return!0;return!1}function ms(t,e,r){let n=0;for(;r+f<=e.length&&_s(t,r)==i;)r+=f+Ps(t,r+28)+Ps(t,r+30)+Ps(t,r+32),n++;return n%65536?0:n}function ws(t){if(t.length>=6){const e=Rt(t);if(_s(e,0)==o){const r=Ps(e,4);if(6+r<=t.length)return t.subarray(6,6+r)}}}function hs(t,e,r){const n=t.rawBitFlag=Ps(e,r+2),a=!(1&~n),s=_s(e,r+6);Object.assign(t,{encrypted:a,version:Ps(e,r),bitFlag:{level:(6&n)>>1,dataDescriptor:!(8&~n),languageEncodingFlag:(n&x)==x},rawLastModDate:s,lastModDate:Cs(s),filenameLength:Ps(e,r+22),extraFieldLength:Ps(e,r+24)})}function ys(t,e,r,n,a){const{rawExtraField:s}=e,o=e.extraField=new Map,i=Rt(s);let c=0;try{for(;c<s.length;){const t=Ps(i,c),e=Ps(i,c+2);o.set(t,{type:t,data:s.slice(c+4,c+4+e)}),c+=4+e}}catch{}const l=Ps(r,n+4);Object.assign(e,{signature:_s(r,n+10),crc32:_s(r,n+10),compressedSize:_s(r,n+14),uncompressedSize:_s(r,n+18)});const d=o.get(1);d&&(function(t,e){e.zip64=!0;const r=Rt(t.data),n=is.filter(([t,r])=>e[t]==r),a=n.reduce((t,[,e])=>t+cs[e].bytes,0);if(t.data.length<a)throw new Error(Va);for(let a=0,s=0;a<n.length;a++){const[o,i]=n[a],c=cs[i];e[o]=t[o]=c.Kt(r,s),s+=c.bytes}}(d,e),e.extraFieldZip64=d);const f=o.get(28789);f&&(bs(f,ra,na,e,t),e.extraFieldUnicodePath=f);const u=o.get(25461);u&&(bs(u,aa,sa,e,t),e.extraFieldUnicodeComment=u);const p=o.get(w);p&&p.data.length>=7?(function(t,e,r){const n=Rt(t.data),a=Bs(n,4);Object.assign(t,{vendorVersion:Bs(n,0),vendorId:Bs(n,2),strength:a,originalCompressionMethod:r,compressionMethod:Ps(n,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=F)}(p,e,l),e.extraFieldAES=p):e.compressionMethod=l;const m=o.get(13);m&&(gs(m,e),e.extraFieldPkwareUnix=m);const x=o.get(22613);x&&(gs(x,e),e.extraFieldUnixType1=x);const v=o.get(10);v&&(function(t,e){const r=Rt(t.data);let n,a=4;try{for(;a<t.data.length&&!n;){const e=Ps(r,a),s=Ps(r,a+2);1==e&&(n=t.data.slice(a+4,a+4+s)),a+=4+s}}catch{}if(n&&24==n.length){const r=Rt(n),a=r.getBigUint64(0,!0),s=r.getBigUint64(8,!0),o=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:a,rawLastAccessDate:s,rawCreationDate:o});const i={lastModDate:Ns(a),lastAccessDate:Ns(s),creationDate:Ns(o)};Object.assign(t,i),Object.assign(e,i,{rawLastAccessDate:s,rawCreationDate:o})}}(v,e),e.extraFieldNTFS=v);const E=o.get(g);let S;if(E&&(S=xs(E,e,!1),e.extraFieldUnix=E),!S){const t=o.get(b);t&&(xs(t,e,!0),e.extraFieldInfoZip=t)}const z=o.get(h);z&&(function(t,e,r){if(!t.data.length)return;const n=Rt(t.data),a=Bs(n,0),s=[],o=[];r?(1&~a||(s.push(da),o.push(fa)),2&~a||(s.push(ua),o.push(pa)),4&~a||(s.push(ma),o.push(wa))):t.data.length>=5&&(s.push(da),o.push(fa));let i=1;s.forEach((r,a)=>{if(t.data.length>=i+4){const s=_s(n,i);e[r]=t[r]=new Date(1e3*(0|s));const c=o[a];t[c]=s}i+=4})}(z,e,a),e.extraFieldExtendedTimestamp=z);const k=o.get(y);k&&(e.extraFieldUSDZ=k)}function bs(t,e,r,n,a){if(t.data.length<5)return void(t.valid=!1);const s=Rt(t.data),o=new Nt;o.append(a[r]);const i=Rt(new Uint8Array(4));i.setUint32(0,o.get(),!0);const c=_s(s,1),l=Bs(s,0);Object.assign(t,{version:l,[e]:$r(t.data.subarray(5)),valid:1==l&&!a.bitFlag.languageEncodingFlag&&c==_s(i,0)}),t.valid&&(n[e]=t[e],n[e+"UTF8"]=!0)}function gs(t,e){if(t.data.length<8)return;const r=Rt(t.data),n={lastAccessDate:new Date(1e3*(0|_s(r,0))),lastModDate:new Date(1e3*(0|_s(r,4)))};t.data.length>=12&&(n.uid=Ps(r,8),n.gid=Ps(r,10)),Object.assign(t,n),Object.assign(e,n)}function xs(t,e,r){try{const n=Rt(t.data);let a,s;if(r){let e=0;const r=Bs(n,e++),o=Bs(n,e++);a=vs(t.data.subarray(e,e+o)),e+=o;const i=Bs(n,e++);s=vs(t.data.subarray(e,e+i)),Object.assign(t,{version:r,uid:a,gid:s})}else t.data.length>=4&&(a=Ps(n,0),s=Ps(n,2),Object.assign(t,{uid:a,gid:s}));return a!==F&&(e.uid=a),s!==F&&(e.gid=s),a!==F||s!==F}catch{}}function vs(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function Es(t,e,r){const n=_s(t,e);let a,s;return r?(a=Ws(t,e+4),s=Ws(t,e+12)):(a=_s(t,e+4),s=_s(t,e+8)),{crc32:n,compressedSize:a,uncompressedSize:s}}function Ss(t,e){return t.Ht?t.Ht(e):0}async function zs(t){return _s(Rt(await ta(t,0,4)))}function ks(t){return t===X||t===J||t===Q}function As(t,e){return Rs(t,Rs(e,J))}function Rs(t,e){const r=t.strictness;if(r!==F){if(!ks(r))throw new Error(ts);return r}const n=t.checkAmbiguity;return n===F?e:n?X:e==Q?Q:J}function Ds(t,e){if(e==Q)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(r.includes("..")||t.startsWith("/")||t.startsWith("\\\\")||as.test(t))||e==X&&(r.includes(".")||r.includes(""))}async function*Fs(t,e){const r=t.size-e,n=await ta(t,r,e),a=Rt(n);for(let t=n.length-u;t>=0;t--)_s(a,t)==c&&(yield[a,r,n,t,r+t])}function Os(t,e,r){return{offset:r,buffer:t.slice(e,e+u).buffer}}async function Us(r,n,a,s,o,c,l){const f=Ps(n,s+10),u=_s(n,s+12),m=_s(n,s+16);if(f==e||u==t||m==t)return await js(r,n,a,o-p,c,l)==d?2:0;if(!f&&!u)return 1;const w=Ps(n,s+6);for(const t of[o-u,Ss(r,w)+m])if(await js(r,n,a,t,c,l)==i)return 2;return 0}async function js(t,e,r,n,a,s){return n<0||n+4>a?F:n>=r?_s(e,n-r):s.count>0?(s.count--,_s(Rt(await ta(t,n,4)),0)):F}function Ts(t){const e=new Error(Ja);throw e.reason=t,e}function Is(t,e,r){return e[r]===F?t.options[r]:e[r]}function Ms(t,e,r){return rt(Is(t,e,r))}function Cs(t){const r=(4294901760&t)>>16,n=t&e,a=new Date(1980+((65024&r)>>9),((480&r)>>5)-1,31&r,(63488&n)>>11,(2016&n)>>5,2*(31&n),0);return a<D?D:a}function Ns(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function Bs(t,e){return t.getUint8(e)}function Ps(t,e){return t.getUint16(e,!0)}function _s(t,e){return t.getUint32(e,!0)}function Ws(t,e){const r=t.getBigUint64(e,!0);if(r>ls)throw new Error(ns);return Number(r)}var Ls=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:Ja,ERR_BAD_FORMAT:Pa,ERR_CENTRAL_DIRECTORY_NOT_FOUND:La,ERR_ENCRYPTED:Za,ERR_ENCRYPTED_CENTRAL_DIRECTORY:Qa,ERR_ENTRY_DATA_OUT_OF_BOUNDS:Xa,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:Wa,ERR_EOCDR_NOT_FOUND:_a,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:Va,ERR_INVALID_AUTHENTICATION_CODE:Kt,ERR_INVALID_COMPRESSED_DATA:Ye,ERR_INVALID_CRC32:Ge,ERR_INVALID_FILENAME_VALIDATION:es,ERR_INVALID_MAX_APPENDED_DATA_SIZE:rs,ERR_INVALID_PASSWORD:Zt,ERR_INVALID_SIGNATURE:Ht,ERR_INVALID_STRICTNESS:ts,ERR_INVALID_UNCOMPRESSED_SIZE:Ke,ERR_LOCAL_FILE_HEADER_NOT_FOUND:qa,ERR_OVERLAPPING_ENTRY:Ga,ERR_SPLIT_ZIP_FILE:Ya,ERR_UNSAFE_FILENAME:$a,ERR_UNSUPPORTED_COMPRESSION:Ka,ERR_UNSUPPORTED_ENCRYPTION:Ha,ERR_UNSUPPORTED_UINT64:ns,ERR_WORKER_STARTUP_TIMEOUT:wr,ZipReader:ds,ZipReaderStream:fs});const qs="File already exists",Vs="Zip file comment exceeds 64KB",Zs="Invalid zip file comment (must be a Uint8Array)",Hs="File entry comment exceeds 64KB",Ks="Invalid file entry comment (must be a string)",Ys="Invalid date (must be a valid Date instance)",Gs="File entry name exceeds 64KB",Xs="Version exceeds 65535",Js="The strength must equal 1, 2, or 3",Qs="Encryption is not supported in USDZ files",$s="Encryption is not supported when the 'passThrough' option is set",to="Invalid extra field (must be a Map)",eo="Invalid extra field type (must be integer 0..65535)",ro="Invalid extra field data (must be a Uint8Array)",no="Extra field data exceeds 64KB",ao=-2147483648,so=2147483647,oo=BigInt(0),io=BigInt("0x7fffffffffffffff"),co="Zip64 is not supported (set the 'zip64' option to 'true')",lo="Undefined uncompressed size",fo="Undefined compression method",uo="Undetermined size",po="Undefined reader",mo="Zip file not empty",wo="Invalid uid (must be integer 0..2^32-1)",ho="Invalid gid (must be integer 0..2^32-1)",yo="Invalid UNIX mode (must be integer 0..65535)",bo="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",go="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",xo="Invalid msdosAttributesRaw (must be integer 0..255)",vo="Invalid msdosAttributes (must be an object with boolean flags)",Eo="Invalid level (must be integer 0..9)",So="Signature data exceeds 64KB",zo=new Uint8Array([7,0,2,0,65,69,3,0,0]),ko="infozip",Ao="unix";let Ro=0;const Do=[];class Fo{constructor(t,e={}){t=new Xn(t);const{availableSize:r=O,maxSize:n=O}=t,a=r>0&&r!==O&&n>0&&n!==O;Object.assign(this,{writer:t,te:a,options:e,ee:new Map,re:new Set,offset:e[Z]===F?t.size||t.writable.size||0:e[Z],ne:e[Z]===F?0:e[Z]-(t.size||t.writable.size||0),ae:new Set,se:[],oe:0,ie:F})}prependZip(t){return jo(this,async function(t,e){if(t.re.size)throw new Error(mo);await t.ce(e)}(this,t))}appendZip(t){return jo(this,this.ce(t))}async ce(t){const e=this,{ae:r,re:n,ee:s}=e;for(;r.size;)await Promise.allSettled(Array.from(r));let o;const i=new Promise(t=>o=t);r.add(i);const c=[];let l;try{t=new Gn(t),await Qn(t),t.size!==F&&t.readUint8Array||(t=new vn(await Ie(t.readable)),await Qn(t));const{ZipReader:r}=await Promise.resolve().then(function(){return Ls}),o=new r(t),i=await o.getEntries();await o.close(),await Qn(e.writer);const{directoryOffset:d}=o;i.forEach(({filename:t})=>{if(n.has(t))throw new Error(qs);n.add(t),c.push(t)}),e.le=!0;const{de:f}=e;e.de=new Promise(t=>l=()=>{e.le=!1,t()}),await f,e.te&&(delete e.te,await async function(t){return Rt(await ta(t,0,4)).getUint32(0,!0)==a}(t)||(await ei(e.writer,$o()),e.offset+=4));const u=await async function(t,e,r,n){const{writer:a}=t,s=new Map;if(a.closeDisk){const o=Array.from(r).sort((t,r)=>Qo(e,t)-Qo(e,r));let i=0;for(const r of o){const n=Qo(e,r);await Xo(t,e,i,n-i),Ko(a,await Jo(e,n))&&await a.closeDisk(),s.set(r,{offset:Yo(t,a),diskNumberStart:Zo(a)}),i=n}await Xo(t,e,i,n-i)}else{const a=t.offset;await Xo(t,e,0,n),r.forEach(t=>s.set(t,{offset:a+Qo(e,t),diskNumberStart:0}))}return s}(e,t,i,d);i.forEach(t=>{const{version:e,rawLastModDate:r,rawFilename:n,bitFlag:a,encrypted:o,uncompressedSize:i,compressedSize:c,extraFieldZip64:l}=t;let{compressionMethod:d,rawExtraField:f}=t;const{level:p,languageEncodingFlag:m,dataDescriptor:w}=a;f=Go(f||M),t.extraFieldAES&&(d=99);const h=xi(f),y=Boolean(l)&&l.uncompressedSize!==F,b=Boolean(l)&&l.compressedSize!==F,g=-7&Ei(p,m,w,o,d)|p<<1,{fe:x,ue:v}=vi({version:e,bitFlag:g,compressionMethod:d,uncompressedSize:i,compressedSize:c,rawLastModDate:r,rawFilename:n,pe:b,me:y,extraFieldLength:h}),{crc32:E}=t;E!==F&&yi(v,10,E);const{offset:S,diskNumberStart:z}=u.get(t);Object.assign(t,{me:y,pe:b,offset:S,diskNumberStart:z,we:!1,he:M,ye:M,be:M,ge:M,xe:M,rawExtraField:f,extendedTimestamp:!1,fe:x,ue:v}),s.set(t.filename,t)})}catch(t){throw c.forEach(t=>n.delete(t)),t}finally{o(),r.delete(i),l&&l()}}add(e="",n,a={}){const s=this,{ae:o}=s,i=async function(e,n,a,s){if(s=Object.assign({},s),n=n.trim(),ii(e,s,Da)&&!n.endsWith(k)&&(n+=k),e.re.has(n))throw new Error(qs);e.re.add(n),Ro<ht().maxWorkers?Ro++:await new Promise(t=>Do.push(t));try{return await async function(e,n,a,s){const o=Mo(e,n,s);({name:n}=o);const i=Co(e,n,s),{comment:c}=i,l=s[ja];let d;e.ee.set(n,F);try{const{ve:c}=i;0==c.level||c.compressionMethod!==F||c.passThrough||await xr(ht())||(c.level=0);const l=await async function(t,e,{ve:r},n){if(r.passThrough&&!e&&!ii(t,n,Da))throw new Error(po);let a;return e&&(e=new Gn(e),await Qn(e),({size:a}=e)),Object.assign({reader:e},Bo(t,Boolean(e),a,r,n))}(e,a,i,s);({reader:a}=l);const f=Ho(e.writer),u=Zo(e.writer),p=Po(s=Object.assign({},s,o.ve,i.ve,l.ve,{signature:s[Ua],crc32:s.crc32===F?s[Ua]:s.crc32,offset:e.offset-f,diskNumberStart:u,[H]:e.options[H]})),m=Lo(s),w=xi(p.Ee,m.Se);d=await async function(e,n,a,s,o){const{ee:i,writer:c}=e,{keepOrder:l,dataDescriptor:d,ze:f,signal:u}=o,{ke:p}=s,m=e.options[H],w=e.ie;let h,y,b,g,x,v,E,S={},z=0;i.set(n,S),e.ie=S;try{let y;l&&(y=w&&w.Ae,S.Ae=new Promise(t=>b=t)),o.bufferedWrite||!l||e.le||e.oe||!d&&!f?(h=!0,e.oe++,E=o.createTempStream?await o.createTempStream():new TransformStream(F,F,{highWaterMark:O}),E.size=0,await Qn(c)):(E=c,await k()),await Qn(E);const D=Ho(c);e.te&&!h&&await ti(e,c),m&&!h&&_o(s,e.offset-D);const{Ee:U}=p;h||(await y,await R());const j=Zo(c),T=Yo(e,c);if(S.diskNumberStart=j,h||(x=!0,v=c.size,await ei(E,U)),S=await async function(e,n,{diskNumberStart:a,Ae:s},o,i,c){const{ke:l,Re:d,De:f}=o,{fe:u,ue:p,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,he:x,Fe:v,be:E,Oe:S,ge:z,xe:k,ye:A}=l,{Se:R}=d,{rawFilename:D,lastAccessDate:O,creationDate:U,password:j,rawPassword:T,level:I,zip64:M,me:C,pe:N,zipCrypto:B,dataDescriptor:P,directory:_,executable:W,versionMadeBy:L,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:nt,unixMode:at,symlink:st,setuid:ot,setgid:it,sticky:ct,unixExternalUpper:lt,msdosAttributesRaw:dt,msdosAttributes:ft,useCompressionStream:ut,passThrough:pt,format:mt,codecURI:wt}=c,ht={Ae:s,versionMadeBy:L,zip64:M,directory:Boolean(_),executable:Boolean(W),filenameUTF8:!0,rawFilename:D,commentUTF8:!0,rawComment:q,he:x,Fe:v,be:E,ge:z,xe:k,ye:A,rawExtraField:V,extendedTimestamp:Q,msDosCompatible:$,internalFileAttributes:tt,externalFileAttributes:et,diskNumberStart:a,uid:rt,gid:nt,unixMode:at,symlink:Boolean(st),setuid:ot,setgid:it,sticky:ct,unixExternalUpper:lt,msdosAttributesRaw:dt,msdosAttributes:ft};let{crc32:yt,uncompressedSize:bt}=c,gt=0;pt||(bt=0);const{writable:xt}=n;if(e){const a=Te(ea(e)),s=e.size,o={options:{codecType:fr,level:I,rawPassword:T,password:j,encryptionStrength:J,zipCrypto:h&&B,passwordVerification:h&&B&&w>>8&r,computeCrc32:!pt,compressed:y&&!pt,encrypted:h&&!pt,useWebWorkers:Z,useCompressionStream:ut,transferStreams:H,format:mt,codecURI:wt,compressionMethod:g},config:i,ut:{signal:X,size:s,onstart:K,onprogress:Y,onend:G}};try{const e=await Zr({readable:a,writable:xt},o);if(gt=e.outputSize,n.size+=gt,pt||(bt=e.inputSize,h&&!B||(yt=e.crc32)),!N&&gt>=t||!C&&bt>=t)throw new Error(co)}catch(t){throw t.outputSize!==F&&(n.size+=t.outputSize),t}}return function({crc32:t,compressedSize:e,uncompressedSize:r,ke:n,Re:a},{zip64:s,zipCrypto:o,passThrough:i,dataDescriptor:c}){const{ue:l,encrypted:d}=n,{Ue:f,je:u}=a;d&&!o&&!i||t===F||(yi(l,10,t),c&&yi(f,u,t)),s?c&&(bi(f,u+4,BigInt(e)),bi(f,u+12,BigInt(r))):(yi(l,14,e),yi(l,18,r),c&&(yi(f,u+4,e),yi(f,u+8,r)))}({crc32:yt,compressedSize:gt,uncompressedSize:bt,ke:l,Re:d},c),P&&await ei(n,R),Object.assign(ht,{uncompressedSize:bt,compressedSize:gt,lastModDate:m,rawLastModDate:w,creationDate:U,lastAccessDate:O,encrypted:Boolean(h),zipCrypto:Boolean(B),size:f+gt,compressionMethod:g,version:b,fe:u,ue:p,signature:yt,crc32:!h||B||pt?yt:F,Oe:S,me:C,pe:N}),ht}(a,E,S,s,ht(),o),h||(x=!1),i.set(n,S),S.filename=n,h){if(await Promise.all([E.writable.getWriter().close(),y]),await k(),e.te&&await ti(e,c),g=!0,v=c.size,await R(),S.diskNumberStart=Zo(c),S.offset=Yo(e,c),m){const t=s.De;_o(s,e.offset-Ho(c)),S.size+=s.De-t}!function({rawFilename:t,encrypted:e,zip64:r,Fe:n,crc32:a,compressedSize:s,uncompressedSize:o,me:i,pe:c},l,{dataDescriptor:d,passThrough:f}){if(d||((!e||f&&a!==F)&&yi(l,14,a),c||yi(l,18,s),i||yi(l,22,o)),r&&n){const e=A+xi(t)+4;bi(l,e,BigInt(o)),bi(l,e+8,BigInt(s))}}(S,p.Te,o),await ei(c,p.Ee),await ri(E.readable,c,u,t=>z+=t),c.size+=E.size,g=!1}else S.diskNumberStart=j,S.offset=T;return e.offset+=S.size,S}catch(t){if(g||x){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-v,h&&(e.offset+=z)}throw i.delete(n),t}finally{if(h&&e.oe--,b&&b(),y&&y(),h&&E&&E.dispose)try{await E.dispose()}catch{}}async function k(){e.le=!0;const{de:t}=e;e.de=new Promise(t=>y=()=>{e.le=!1,t()}),await t}async function R(){Ko(c,xi(p.Ee))&&await c.closeDisk()}}(e,n,a,{ke:p,Re:m,De:w},s)}catch(t){throw e.ee.delete(n),t}return Object.assign(d,{name:n,comment:c,extraField:l,[ba]:d.internalFileAttributes,[ga]:d.externalFileAttributes}),new Ba(d)}(e,n,a,s)}catch(t){throw e.re.delete(n),t}finally{const t=Do.shift();t?t():Ro--}}(s,e,n,a);o.add(i);const c=()=>o.delete(i);return Promise.prototype.then.call(i,c,c),jo(s,i)}remove(t){const{re:e,ee:r}=this;if(typeof t==I&&(t=r.get(t)),t&&t.filename!==F){const{filename:n}=t;if(e.has(n)&&r.has(n))return e.delete(n),r.delete(n),!0}return!1}async close(r=M,n={}){const a=this,{ae:s,writer:p}=this,{writable:m}=p;if(!(r instanceof Uint8Array))throw new Error(Zs);if(xi(r)>e)throw new Error(Vs);for(;s.size;)await Promise.allSettled(Array.from(s));await Promise.allSettled(a.se.map(t=>t.Ie));const w=a.se.filter(t=>t.error&&!t.Me);if(w.length){const t=w.map(t=>t.error);w.forEach(t=>t.Me=!0);const[e]=t;try{e.entryErrors=t}catch{}throw e}return await async function(r,n,a){const s=qo(r.ee),{Ce:p,Ne:m,Be:w}=await async function(r,n,a){const{ee:s,writer:o}=r,c=new Uint8Array(n);await Qn(o);let l=0,d=0,u=Zo(o),p=Ho(o),m=0;for(const[r,n]of Array.from(s.values()).entries()){const{offset:w,rawFilename:h,he:y,ye:b,be:g,ge:x,xe:v,rawExtraField:E,rawComment:S,versionMadeBy:z,fe:k,ue:A,me:R,pe:D,we:F,Pe:O,internalFileAttributes:U,externalFileAttributes:j,diskNumberStart:T,uncompressedSize:I,compressedSize:M}=n,C=xi(y,b,g,x,v,E),N=f+xi(h,S)+C;Ko(o,l+N-d)&&(await ei(o,c.slice(d,l)),d=l,m=0,await o.closeDisk()),0==r&&(u=Zo(o),p=Ho(o)),R||yi(A,18,I),D||yi(A,14,M),(O||F)&&n.version<45&&hi(A,0,45);const B=Vo(N);if(B._e(i),B.We(z),B.Le(k.subarray(0,24)),B.We(C),B.We(xi(S)),B.We(F?e:T),B.We(U),B._e(j),B._e(O?t:w),B.Le(h),B.Le(y),B.Le(b),B.Le(g),B.Le(x),B.Le(v),B.Le(E),B.Le(S),gi(c,B.Wt,l),l+=N,m++,a.onprogress)try{await a.onprogress(r+1,s.size,new Ba(n))}catch{}}return await ei(o,d?c.slice(d):c),{Ce:{diskNumber:u,diskOffset:p},Ne:{diskNumber:Zo(o),qe:m},Be:c}}(r,s,a),h=await async function(t,r,n){const a=li(t,n,K);if(a){const n=await a(r),s=xi(n);if(s>e)throw new Error(So);const i=Vo(6+s);i._e(o),i.We(s),i.Le(n);const{writer:c}=t;return Ko(c,xi(i.Wt))&&await c.closeDisk(),await ei(c,i.Wt),6+s}return 0}(r,w,a);await async function(r,n,a,s){const{writer:o}=r,{Ce:i,Ne:f,Ve:p}=s;let{Ze:m}=s,w=r.ee.size,h=i.diskNumber,y=Yo(r,i);const b=xi(n);if(b>e)throw new Error(Vs);let g=ii(r,a,Sa),x=Zo(o);if(Ko(o,(g?98:u)+b)&&x++,y>=t||m>=t||w>=e||x>=e){if(!1===g)throw new Error(co);g=!0}const v=Vo(g?98:u);Ko(o,xi(v.Wt)+b)&&await o.closeDisk(),x=Zo(o);let E=x==f.diskNumber?f.qe:0;g&&(v._e(l),v.He(44),v.We(45),v.We(45),v._e(x),v._e(h),v.He(E),v.He(w),v.He(m),v.He(y),v._e(d),v._e(x),v.He(BigInt(Yo(r,o))+BigInt(m)+BigInt(p)),v._e(x+1),ii(r,a,"supportZip64SplitFile",!0)&&(x=e,h=e),E=e,w=e,y=t,m=t),v._e(c),v.We(x),v.We(h),v.We(E),v.We(w),v._e(m),v._e(y),v.We(b),await ei(o,v.Wt),b&&await ei(o,n)}(r,n,a,{Ce:p,Ne:m,Ze:s,Ve:h})}(a,r,n),!Jn(p)&&ii(a,n,q)||await m.getWriter().close(),p.getData?p.getData():m}}class Oo{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new Fo(r,t),this.ae=new Set}transform(t){const e=this.zipWriter;let r;const{readable:n,writable:a}=new TransformStream({start(t){r=t},flush:()=>{!async function(){try{await e.close()}catch(t){await To(e,t)}}()}});return Io(this,this.zipWriter.add(t,n),t=>r.error(t)),{readable:this.readable,writable:a}}writable(t){let e;const{readable:r,writable:n}=new TransformStream({start(t){e=t}});return Io(this,this.zipWriter.add(t,r),t=>e.error(t)),n}async close(t,e={}){const{zipWriter:r}=this,n=(await Promise.allSettled(Array.from(this.ae))).filter(t=>"rejected"==t.status).map(t=>t.reason);if(n.length){const[t]=n;try{t.entryErrors=n}catch{}throw await To(r,t),t}try{return await r.close(t,e)}catch(t){throw await To(r,t),t}}}class Uo extends Promise{then(t,e){const{Ke:r}=this;return r&&(r.Me=!0),super.then(t,e)}}function jo(t,e){const r=new Uo((t,r)=>Promise.prototype.then.call(e,t,r)),n={};return r.Ke=n,n.Ie=Promise.prototype.then.call(r,F,t=>n.error=t),t.se.push(n),r}async function To(t,e){try{await t.writer.writable.abort(e)}catch{}}function Io(t,e,r){t.ae.add(e),e.catch(t=>{try{r(t)}catch{}})}function Mo(n,a,s){a=a.trim();let o=ii(n,s,Ea),i=ii(n,s,Aa,o?20:768);const c=ii(n,s,Fa),l=ui(n,s,"uid"),d=ui(n,s,"gid");let f=ui(n,s,Ta),u=ii(n,s,"unixExtraFieldType"),p=ii(n,s,Ia),m=ii(n,s,Ma),w=ii(n,s,Ca);if(ot(l,t,wo),ot(d,t,ho),ot(f,e,yo),u!==F&&u!==ko&&u!==Ao)throw new Error(bo);if(u===Ao&&(l!==F&&l>e||d!==F&&d>e))throw new Error(go);u!==F||l===F&&d===F||(u=ko);let h=ui(n,s,xa),y=ii(n,s,va);const b=h!==F||y!==F;if(l!==F||d!==F||f!==F||u||c?(o=!1,i=i&r|768):b&&(o=!0,i&=r),ot(h,r,xo),y&&(typeof y!==T||Array.isArray(y)))throw new Error(vo);if(i>e)throw new Error(Xs);let g=di(n,s,ya,ga);const x=g!==F;x||(g=0),!s[Da]&&a.endsWith(k)&&(s[Da]=!0);const A=ii(n,s,Da);if(A?(a.endsWith(k)||(a+=k),x||(g=16,o||(g|=16877<<16))):o||x||(g=c?493<<16:27525120),!o){const t=f!==F||Boolean(p||m||w);f=f===F?g>>16&e:f&e,p?f|=S:p=Boolean(f&S),m?f|=z:m=Boolean(f&z),w?f|=512:w=Boolean(512&f),x&&!t||(A?f=-61441&f|E:f&v||(f|=32768),g=(f&e)<<16|g&e)}({msdosAttributesRaw:h,msdosAttributes:y}=function(t,e){if(t!==F)t&=r;else if(e!==F){const{readOnly:n,hidden:a,system:s,directory:o,archive:i}=e;let c=0;n&&(c|=1),a&&(c|=2),s&&(c|=4),o&&(c|=16),i&&(c|=32),t=c&r}return e===F&&(e={readOnly:Boolean(1&t),hidden:Boolean(2&t),system:Boolean(4&t),directory:Boolean(16&t),archive:Boolean(32&t)}),{msdosAttributesRaw:t,msdosAttributes:e}}(h,y)),b&&(g=g&t|h&r);const R=g>>16&e,D=f!==F&&40960==(f&v);return{name:a,ve:{versionMadeBy:i,msDosCompatible:Boolean(o),externalFileAttributes:g,unixExternalUpper:R,uid:l,gid:d,unixMode:f,unixExtraFieldType:u,symlink:D,setuid:p,setgid:m,sticky:w,msdosAttributesRaw:h,msdosAttributes:y}}}function Co(t,r,n){const a=li(t,n,"encodeText")||Pt;let s=a(r,Y);if(s===F&&(s=Pt(r)),xi(s)>e)throw new Error(Gs);const o=n[aa]||"";if(typeof o!=I)throw new Error(Ks);let i=a(o,G);if(i===F&&(i=Pt(o)),xi(i)>e)throw new Error(Hs);const c=ii(t,n,ka);if(c!==F&&c>e)throw new Error(Xs);const l=ci(t,n,da,new Date),d=ii(t,n,fa),f=ci(t,n,ua),u=ci(t,n,ma),p=di(t,n,ha,ba,0),m=ii(t,n,B),w=ii(t,n,C),h=ii(t,n,N);at(w,h);const y=ui(t,n,"encryptionStrength",3),b=ii(t,n,Ra),g=ii(t,n,"extendedTimestamp",!0),x=ii(t,n,"ntfsTimestamp"),v=ii(t,n,"keepOrder",!0),E=ii(t,n,_),S=ii(t,n,L),z=ii(t,n,"bufferedWrite"),k=li(t,n,"createTempStream"),A=ii(t,n,"dataDescriptorSignature",!0),R=nt(ii(t,n,P)),D=ii(t,n,"useUnicodeFileNames",!0),O=ii(t,n,Oa),U=m||O===F?F:Ve(O);if(!m&&O!==F&&0!==O&&8!==O&&!U)throw new Error("Compression method not supported");let j=ui(t,n,"level");if(ot(j,9,Eo),t.options[H]){if(w!==F||h!==F)throw new Error(Qs);j===F&&O===F&&(j=0)}m&&(j=F);let T=ii(t,n,W),M=ii(t,n,V);z&&M===F&&(M=!1),(M===F||b&&!m)&&(M=!0),j!==F&&6!=j&&(T=!1);const q=ii(t,n,Sa);if(!(b||w===F&&h===F||Number.isInteger(y)&&y>=1&&y<=3))throw new Error(Js);const Z=No(n[ja]),K=No(n.localExtraField);return{comment:o,ve:{rawFilename:s,rawComment:i,version:c,lastModDate:l,rawLastModDate:d,lastAccessDate:f,creationDate:u,internalFileAttributes:p,passThrough:m,password:w,rawPassword:h,encryptionStrength:y,zipCrypto:b,extendedTimestamp:g,ntfsTimestamp:x,keepOrder:v,useWebWorkers:E,transferStreams:S,bufferedWrite:z,createTempStream:k,dataDescriptorSignature:A,signal:R,useUnicodeFileNames:D,compressionMethod:O,format:U?U.format:F,codecURI:U?U.codecURI:F,Ye:U?U.versionNeeded:F,level:j,useCompressionStream:T,dataDescriptor:M,zip64:q,rawExtraField:Z,Ge:K}}}function No(t){if(!t)return M;if(!(t instanceof Map))throw new Error(to);let r=0,n=0;t.forEach((t,n)=>{if(st(n,e,eo),!(t instanceof Uint8Array))throw new Error(ro);if(xi(t)>e)throw new Error(no);r+=4+xi(t)});const a=new Uint8Array(r),s=Rt(a);return t.forEach((t,e)=>{hi(s,n,e),hi(s,n+2,xi(t)),gi(a,t,n+4),n+=4+xi(t)}),a}function Bo(e,r,n,a,s){const{passThrough:o,zipCrypto:i,password:c,rawPassword:l,encryptionStrength:d}=a;let{dataDescriptor:f,zip64:u,level:p,compressionMethod:m}=a,w=0,h=0;if(o&&r){if(h=s[oa],h===F)throw new Error(lo);if(m===F)throw new Error(fo)}const y=!0===u,b=ii(e,s,za);if(r&&o&&!b&&xi(c,l))throw new Error($s);const g=r&&(Boolean(c&&xi(c)||l&&xi(l))||o&&b);r||(p=0,m=0);const x=g?i?12:16+4*d:0;r&&(o?(s.uncompressedSize=h,w=n===F?pi(h)+x:n):n===F?(f=!0,(u||u===F)&&(u=!0,h=w=4294967296)):(s.uncompressedSize=h=n,w=(mi(m,p)?pi(h):h)+x));const v=!(g||r&&(0!==n||o)||mi(m,p));v&&!i&&ii(e,s,V)===F&&(f=!1);const E=y||h>=t,S=y||w>=t;if(E||S){if(!1===u)throw new Error(co);u=!0}return u=u||!1,{Xe:w,ve:{dataDescriptor:f,ze:v,zip64:u,me:E,pe:S,uncompressedSize:h,level:p,compressionMethod:m,encrypted:g}}}function Po(t){const{rawFilename:r,lastModDate:a,rawLastModDate:s,lastAccessDate:o,creationDate:i,level:c,zip64:l,zipCrypto:d,useUnicodeFileNames:f,dataDescriptor:u,directory:p,rawExtraField:m,Ge:y,encryptionStrength:x,extendedTimestamp:v,ntfsTimestamp:E,passThrough:S,encrypted:z,me:k,pe:O,uncompressedSize:U,crc32:j}=t;let{version:T,compressionMethod:I}=t;const C=!p&&mi(I,c);let N;const B=S||!C,P=l&&(t.bufferedWrite||!u||!k&&!O||B),_=P||l&&u&&(k||O);if(l&&(k||O)){const t=20,e=Vo(t);if(e.We(1),e.We(t-4),N=e.Wt,P&&(e.He(U),B)){const t=z?d?12:16+4*x:0;e.He(S?0:U+t)}}else N=M;let W,L,q,V,Z;if(z&&!d){const t=Vo(xi(zo)+2);t.We(w),t.Le(zo),W=t.Wt,W[8]=x}else W=M;if(v){const t=ai(a),e=si(t);if(e){const e=9+(o?4:0)+(i?4:0),r=Vo(e);V=1+(o?2:0)+(i?4:0),r.We(h),r.We(e-4),r.Je(V),r._e(t),o&&r._e(oi(ai(o))),i&&r._e(oi(ai(i))),q=r.Wt}else q=M;if(E===F?!e||Boolean(o||i):E)try{const t=ni(a),e=Vo(36);e.We(10),e.We(32),e.Qe(4),e.We(1),e.We(24),e.He(t),e.He(o?ni(o):t),e.He(i?ni(i):t),L=e.Wt}catch{L=M}else L=M}else L=q=M;try{const{uid:r,gid:n,unixExtraFieldType:a}=t;if(a!=ko||r===F&&n===F)if(a!=Ao||r===F&&n===F)Z=M;else{const t=Vo(8);t.We(g),t.We(4),t.We((r===F?0:r)&e),t.We((n===F?0:n)&e),Z=t.Wt}else{const t=Wo(r===F?0:r),e=Wo(n===F?0:n),a=3+t.length+e.length,s=Vo(4+a);s.We(b),s.We(a),s.Je(1),s.Je(t.length),s.Le(t),s.Je(e.length),s.Le(e),Z=s.Wt}}catch{Z=M}I===F&&(I=C?8:0),T===F&&(T=0!=I||p||z?20:10);const{Ye:K}=t;C&&K!==F&&(T=T>K?T:K),l&&(T=T>45?T:45),z&&!d&&(T=T>51?T:51,S&&j!==F&&(W[4]=1),hi(Rt(W),9,I),I=99);const Y=_?xi(N):0,G=Y+xi(W,q,L,Z,m,y);if(G+(t[H]?67:0)>e)throw new Error(no);const X=new Date(2e3*Math.ceil(Math.floor(a.getTime()/1e3)/2)),{fe:J,ue:Q,rawLastModDate:$}=vi({version:T,bitFlag:Ei(c,f,u,z,I),compressionMethod:I,uncompressedSize:U,lastModDate:X<D?D:X>R?R:X,rawLastModDate:s,rawFilename:r,pe:O,me:k,extraFieldLength:G}),tt=Vo(A+xi(r)+G),et=tt.Wt,rt=Rt(et);return tt._e(n),tt.Le(J),tt.Le(r),_&&tt.Le(N),tt.Le(W),tt.Le(q),tt.Le(L),tt.Le(Z),tt.Le(m),tt.Le(y),u&&(O||yi(rt,18,0),k||yi(rt,22,0)),{Ee:et,Te:rt,fe:J,ue:Q,lastModDate:a,rawLastModDate:$,encrypted:z,compressed:C,version:T,compressionMethod:I,Oe:V,he:M,Fe:Y,be:q,ge:L,xe:Z,ye:W,extraFieldLength:G}}function _o(t,e){const{ke:r}=t;let{Ee:n,extraFieldLength:a}=r,s=64-(e+xi(n))%64;s<4&&(s+=64);const o=new Uint8Array(s),i=Rt(o);hi(i,0,y),hi(i,2,s-4);const c=n;r.Ee=n=new Uint8Array(xi(c)+s),gi(n,c),gi(n,o,xi(c));const l=Rt(n);hi(l,28,a+s),r.Te=l,t.De+=s}function Wo(t){const e=new Uint8Array(4);Rt(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function Lo({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let n,a=M,o=0,i=t?20:12;return r&&(i+=4),e&&(a=new Uint8Array(i),n=Rt(a),r&&(o=4,yi(n,0,s))),{Se:a,Ue:n,je:o}}function qo(r){let n=0;for(const[,a]of r){const{rawFilename:r,ye:s,rawComment:o,ge:i,xe:c,rawExtraField:l,extendedTimestamp:d,Oe:u,lastModDate:p,me:m,pe:w,uncompressedSize:y,compressedSize:b}=a,g=a.offset>=t,x=a.diskNumberStart>=e;let v,E;if(g||x||m||w){const t=4+(m?8:0)+(w?8:0)+(g?8:0)+(x?4:0),e=Vo(t);e.We(1),e.We(t-4),m&&e.He(y),w&&e.He(b),g&&e.He(a.offset),x&&e._e(a.diskNumberStart),v=e.Wt}else v=M;a.he=v,a.Pe=g,a.we=x;const S=ai(p);if(d&&si(S)){const t=Vo(9);t.We(h),t.We(5),t.Je(u),t._e(S),E=t.Wt}else E=M;a.be=E;const z=xi(v,s,i,c,E,l);if(z>e)throw new Error(no);n+=f+xi(r,o)+z}return n}function Vo(t){const e=new Uint8Array(t),r=Rt(e);let n=0;return{Wt:e,Je:t=>{!function(t,e,r){t.setUint8(e,r)}(r,n,t),n+=1},We:t=>{hi(r,n,t),n+=2},_e:t=>{yi(r,n,t),n+=4},He:t=>{bi(r,n,BigInt(t)),n+=8},Le:t=>{gi(e,t,n),n+=xi(t)},Qe:t=>n+=t}}function Zo(t){const{diskNumber:e=0}=t;return e}function Ho(t){const{diskOffset:e=0}=t;return e}function Ko(t,e){const{availableSize:r=O}=t;return e>r}function Yo(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.ne:0)}function Go(t){const e=Rt(t);let r=0;for(;r+4<=xi(t);){const n=4+wi(e,r+2);if(1==wi(e,r))return Go(kt(t.subarray(0,r),t.subarray(Math.min(r+n,xi(t)))));r+=n}return t}async function Xo(t,e,r,n){if(n>0){const{writer:a}=t;let s=0;try{await ri(ea(e,{offset:r,size:n}),a,F,t=>s+=t)}catch(e){t.hasCorruptedEntries=!0;try{e.corruptedEntry=!0}catch{}throw e}finally{a.size+=s,t.offset+=s}}}async function Jo(t,e){const r=await ta(t,e,A);if(xi(r)<A)return A;const n=Rt(r);return A+wi(n,26)+wi(n,28)}function Qo(t,{offset:e,diskNumberStart:r}){return e+(t.Ht?t.Ht(r):0)}function $o(){const t=new Uint8Array(4);return yi(Rt(t),0,a),t}async function ti(t,e){delete t.te,await ei(e,$o()),t.offset+=4}async function ei(t,e){const{writable:r}=t,n=r.getWriter();try{await n.ready,t.size+=xi(e),await n.write(e)}finally{n.releaseLock()}}async function ri(t,e,r,n){const a=e.writable.getWriter();try{await t.pipeTo(new WritableStream({async write(t){await a.ready,await a.write(t),n(xi(t))}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}}function ni(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<oo?oo:e>io?io:e}}function ai(t){return Math.floor(t.getTime()/1e3)}function si(t){return t>=ao&&t<=so}function oi(t){return Math.min(so,Math.max(ao,t))}function ii(t,e,r,n){const a=e[r]===F?t.options[r]:e[r];return a===F?n:a}function ci(t,e,r,n){const a=ii(t,e,r,n);if(null===a)return n;if(a!==F&&(typeof a.getTime!=j||Number.isNaN(a.getTime())))throw new Error(Ys);return a}function li(t,e,r){return rt(ii(t,e,r))}function di(t,e,r,n,a){const s=fi(e,r,n),o=s===F?fi(t.options,r,n):s;return o===F?a:o}function fi(t,e,r){return t[e]===F?t[r]:t[e]}function ui(t,e,r,n){return it(ii(t,e,r,n))}function pi(t){return t+5*(Math.floor(t/16383)+1)}function mi(t,e){return t===F?e===F||e>0:0!==t}function wi(t,e){return t.getUint16(e,!0)}function hi(t,e,r){t.setUint16(e,r,!0)}function yi(t,e,r){t.setUint32(e,r,!0)}function bi(t,e,r){t.setBigUint64(e,r,!0)}function gi(t,e,r){t.set(e,r)}function xi(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function vi({version:e,bitFlag:r,compressionMethod:n,uncompressedSize:a,compressedSize:s,lastModDate:o,rawLastModDate:i,rawFilename:c,pe:l,me:d,extraFieldLength:f}){const u=Vo(26),p=u.Wt,m=Rt(p);if(u.We(e),u.We(r),u.We(n),i===F){const t=new Uint32Array(1),e=Rt(t);hi(e,0,(o.getHours()<<6|o.getMinutes())<<5|o.getSeconds()/2),hi(e,2,(o.getFullYear()-1980<<4|o.getMonth()+1)<<5|o.getDate()),i=t[0]}return u._e(i),u.Qe(4),l||s!==F?u._e(l?t:s):u.Qe(4),d||a!==F?u._e(d?t:a):u.Qe(4),u.We(xi(c)),u.We(f),{fe:p,ue:m,rawLastModDate:i}}function Ei(t,e,r,n,a){let s=0;return e&&(s|=x),r&&(s|=8),8!=a&&9!=a||(t>=0&&t<=3&&(s|=6),t>3&&t<=5&&(s|=4),9==t&&(s|=2)),n&&(s|=1),s}const Si=1048576,zi=".zip.js-temp";function ki(t={}){const{thresholdBytes:e=Si,directoryName:r=zi,getDirectory:n=()=>navigator.storage.getDirectory()}=t;let a;function s(){return a||(a=Promise.resolve(n()).then(t=>t.getDirectoryHandle(r,{create:!0}))),a}return function(){const t=[];let r,n,a,o,i=0,c=!1;const l=new WritableStream({async write(o){c?await a.write(o):(t.push(o),i+=o.length,i>e&&await async function(){const e=await s();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join(""),n=await e.getFileHandle(r,{create:!0}),a=(await n.createWritable()).getWriter(),c=!0;for(const e of t)await a.write(e);t.length=0}())},async close(){a&&(await a.close(),a=null)}});let d=0;return{writable:l,readable:new ReadableStream({async pull(e){if(c){if(!o){const t=await n.getFile();o=t.stream().getReader()}const{value:t,done:r}=await o.read();r?e.close():e.enqueue(t)}else d<t.length?e.enqueue(t[d++]):e.close()},async cancel(t){o&&await o.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(a){try{await a.close()}catch{}a=null}if(r){try{const t=await s();await t.removeEntry(r)}catch{}n=r=null}t.length=0}}}}const Ai=1048576;function Ri(t={}){const{thresholdBytes:e=Ai}=t;return function(){const t=[];let r,n,a,s=0,o=!1;const i=new WritableStream({async write(a){o?await r.write(a):(t.push(a),s+=a.length,s>e&&await async function(){const e=new TransformStream;n=Ie(e.readable),r=e.writable.getWriter(),o=!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:i,readable:new ReadableStream({async pull(e){if(o){if(!a){const t=await n;a=t.stream().getReader()}const{value:t,done:r}=await a.read();r?e.close():e.enqueue(t)}else c<t.length?e.enqueue(t[c++]):e.close()},async cancel(t){a&&await a.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(r){try{await r.abort()}catch{}r=null}n&&(n.catch(()=>{}),n=null),t.length=0}}}}const Di=1048576,Fi=".zip.js-temp",Oi="createSyncAccessHandle is only available in dedicated workers";function Ui(t={}){const{thresholdBytes:e=Di,directoryName:r=Fi,getDirectory:n}=t;if(!(n||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw new Error(Oi);const a=n||(()=>navigator.storage.getDirectory());let s;function o(){return s||(s=Promise.resolve(a()).then(t=>t.getDirectoryHandle(r,{create:!0}))),s}return function(){const t=[];let r,n,a=0,s=!1,i=0,c=0;const l=new WritableStream({async write(c){s?(n.write(c,{at:i}),i+=c.length):(t.push(c),a+=c.length,a>e&&await async function(){const e=await o();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join("");const a=await e.getFileHandle(r,{create:!0});n=await a.createSyncAccessHandle(),s=!0;for(const e of t)n.write(e,{at:i}),i+=e.length;t.length=0}())},close(){n&&n.flush()}});let d=0;return{writable:l,readable:new ReadableStream({pull(e){if(s){const t=i-c;if(t<=0)return void e.close();const r=new Uint8Array(Math.min(524288,t)),a=n.read(r,{at:c});a?(c+=a,e.enqueue(r.subarray(0,a))):e.close()}else d<t.length?e.enqueue(t[d++]):e.close()}},{highWaterMark:0}),dispose:async function(){if(n){try{n.close()}catch{}n=null}if(r){try{const t=await o();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{St({baseURI:import.meta.url})}catch{}let ji,Ti,Ii,Mi,Ci;function Ni(t,e,r={}){if(!ji){const t=new Error("WASM module not loaded");throw t.cause=Ci,t}const n="number"==typeof r.level?r.level:-1,a="number"==typeof r.outBuffer?r.outBuffer:65536,s="number"==typeof r.inBufferSize?r.inBufferSize:65536;return new TransformStream({start(){try{let r;if(this.$e=Ti(a),this.in=Ti(s),this.inBufferSize=s,!this.$e||!this.in)throw new Error("allocation failed");if(this.er=new Uint8Array(a),t?(this.rr=ji.deflate_process,this.nr=ji.deflate_last_consumed,this.ar=ji.deflate_end,this.sr=ji.deflate_new(),r="gzip"===e?ji.deflate_init_gzip(this.sr,n):"deflate-raw"===e?ji.deflate_init_raw(this.sr,n):ji.deflate_init(this.sr,n)):"deflate64-raw"===e?(this.rr=ji.inflate9_process,this.nr=ji.inflate9_last_consumed,this.ar=ji.inflate9_end,this.sr=ji.inflate9_new(),r=ji.inflate9_init_raw(this.sr)):(this.rr=ji.inflate_process,this.nr=ji.inflate_last_consumed,this.ar=ji.inflate_end,this.sr=ji.inflate_new(),r="deflate-raw"===e?ji.inflate_init_raw(this.sr):"gzip"===e?ji.inflate_init_gzip(this.sr):ji.inflate_init(this.sr)),0!==r)throw new Error("init failed:"+r)}catch(t){throw o(this),t}},transform(e,r){try{const n=e,s=new Uint8Array(Mi.buffer),o=this.rr,i=this.nr,c=this.$e,l=this.er;let d=0;for(;d<n.length;){const e=Math.min(n.length-d,32768);if((!this.in||this.inBufferSize<e)&&(this.in&&Ii&&(Ii(this.in),this.in=0),this.in=Ti(e),this.inBufferSize=e,!this.in))throw new Error("allocation failed");s.set(n.subarray(d,d+e),this.in);const f=o(this.sr,this.in,e,c,a,0),u=16777215&f;if(u&&(l.set(s.subarray(c,c+u),0),r.enqueue(l.slice(0,u))),!t){const t=f>>24&255,e=128&t?t-256:t;if(e<0)throw new Error("process error:"+e)}const p=i(this.sr);if(0===p)break;d+=p}}catch(t){o(this),r.error(t)}},flush(e){try{const r=new Uint8Array(Mi.buffer),n=this.rr,s=this.$e,o=this.er;for(;;){const i=n(this.sr,0,0,s,a,4),c=16777215&i,l=i>>24&255;if(!t){const t=128&l?l-256:l;if(t<0)throw new Error("process error:"+t)}if(c&&(o.set(r.subarray(s,s+c),0),e.enqueue(o.slice(0,c))),1===l||0===c)break}}catch(t){e.error(t)}finally{const t=o(this);0!==t&&e.error(new Error("end error:"+t))}},cancel(){o(this)}});function o(t){let e=0;return t.sr&&t.ar&&(e=t.ar(t.sr)),t.sr=0,t.in&&Ii&&Ii(t.in),t.in=0,t.$e&&Ii&&Ii(t.$e),t.$e=0,e}}class Bi{constructor(t="deflate",e){return Ni(!0,t,e)}}class Pi{constructor(t="deflate",e){return Ni(!1,t,e)}}Bi.ft=!0,Pi.ft=!0;let _i,Wi=!1;function Li(){_i=null,async function(){await Promise.allSettled(_r.map(t=>(Xr(t),t.terminate()))),hr=F,yr=!1}(),Wi=!1,ji=Ti=Ii=Mi=Ci=null}!function({ir:t}){gr=t}({ir:t=>{if(!_i){let{wasmURI:e}=t;typeof e==j&&(e=e()),_i=async function(t,{baseURI:e}){if(!Wi)try{await async function(t,e){let r,n;try{try{n=new URL(t,e)}catch{}const a=await fetch(n);r=await a.arrayBuffer()}catch(e){if(!t.startsWith("data:application/wasm;base64,"))throw e;r=function(t){const e=t.split(",")[1],r=atob(e),n=r.length,a=new Uint8Array(n);for(let t=0;t<n;++t)a[t]=r.charCodeAt(t);return a.buffer}(t)}!function(t){if(ji=t,({malloc:Ti,free:Ii,memory:Mi}=ji),"function"!=typeof Ti||"function"!=typeof Ii||!Mi)throw ji=Ti=Ii=Mi=null,new Error("Invalid WASM module")}((await WebAssembly.instantiate(r)).instance.exports)}(t,e),Wi=!0}catch(t){throw function(t){Ci=t}(t),t}}(e,t).catch(t=>{throw _i=null,t})}return _i}}),St({CompressionStreamFallback:Bi,DecompressionStreamFallback:Pi}),St({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const qi="Entry filename already exists",Vi="Readable stream already consumed",Zi="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",Hi="Invalid readerOptions (must be an object)",Ki="The last modification date of an entry encrypted with ZipCrypto cannot be changed when passThrough is set",Yi="zipjs-abort-export",Gi="The operation was aborted",Xi=new Set([1,w,10,h,28789,25461,y,b,g,22613,13]);class Ji{constructor(t,e,r,n){const a=this;if(t.root&&n&&n.getChildByName(e))throw new Error(qi);r||(r={}),Object.assign(a,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.cr++,parent:n,children:[],uncompressedSize:r.uncompressedSize||0,lr:r.lr||r.uncompressedSize===F,passThrough:r.passThrough,dr:r.dr||new Date}),!n&&t.root||(t.entries[a.id]=a),n&&a.parent.children.push(a)}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 Boolean(e)}rename(t){const e=this.parent;if(e&&e.getChildByName(t))throw new Error(qi);this.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==F))}}class Qi extends Ji{constructor(t,e,r,n){super(t,e,r,n);const a=this;a.Reader=r.Reader,a.Writer=r.Writer,r.getData&&(a.getData=r.getData)}clone(){return new Qi(this.fs,this.name,this)}async getData(t,e={}){const r=this;if(!t||t.constructor==r.Writer&&r.data&&function(t,e){const{contentType:r}=t;return r===F||(t.constructor==En?e.type==r:t.constructor!=bn||e.startsWith("data:"+(r||"")+";base64,"))}(t,r.data))return r.data;{const n=r.reader=ic(r.Reader,r.data,e),a=r.uncompressedSize||n.size;await Promise.all([Qn(n),Qn(t,a)]);const s=nt(e.signal),o=function(t,e,r,n){const{onstart:a,onprogress:s,onend:o}=r,{readable:i}=e;return t.data instanceof Ba||!a&&!s&&!o?i:Te(i).pipeThrough(new Sr({onstart:a,onprogress:s,onend:o,size:e.size}),{signal:n})}(r,n,e,s),i=!Jn(t)&&Boolean(e.preventClose);return r.uncompressedSize=n.size,await Te(o).pipeTo(Me(t.writable),{signal:s,preventClose:i,preventAbort:i}),t.getData?t.getData():t.writable}}isPasswordProtected(){return Boolean(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==Zt)return!1;throw t}}getText(t,e){return this.getData(new kn(t),e)}getBlob(t,e){return this.getData(new En(t),e)}getData64URI(t,e){return this.getData(new bn(t),e)}getUint8Array(t){return this.getData(new Hn,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return At(await this.getUint8Array(t)).buffer}replaceBlob(t){Object.assign(this,{data:t,Reader:vn,Writer:En,reader:null})}replaceText(t){Object.assign(this,{data:t,Reader:Sn,Writer:kn,reader:null})}replaceData64URI(t){Object.assign(this,{data:t,Reader:yn,Writer:bn,reader:null})}replaceUint8Array(t){Object.assign(this,{data:t,Reader:Zn,Writer:Hn,reader:null})}replaceReadable(t){Object.assign(this,{data:null,Reader:sc(t),Writer:null,reader:null})}}class $i extends Ji{constructor(t,e,r,n){super(t,e,r,n),this.directory=!0}clone(t){const e=this,r=new $i(e.fs,e.name,e);return t&&(r.children=e.children.map(e=>{const n=e.clone(t);return n.parent=r,n})),r}addDirectory(t,e){return gc(this,t,{options:e},!0)}addText(t,e,r={}){return gc(this,t,{data:e,Reader:Sn,Writer:kn,options:r,uncompressedSize:zn(e)})}addBlob(t,e,r={}){return gc(this,t,{data:e,Reader:vn,Writer:En,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){let n=e.length;for(;"="==e.charAt(n-1);)n--;const a=e.indexOf(",")+1;return gc(this,t,{data:e,Reader:yn,Writer:bn,options:r,uncompressedSize:Math.floor(.75*(n-a))})}addUint8Array(t,e,r={}){return gc(this,t,{data:e,Reader:Zn,Writer:Hn,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return gc(this,t,{data:e,Reader:class extends qn{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return gc(this,t,{Reader:sc(e),options:r})}addFileSystemEntry(t,e={}){return hc(this,t,e)}addFileSystemHandle(t,e={}){return hc(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),gc(this,t.name,{data:t,Reader:function(){return{readable:t.stream(),size:t.size}},options:e,uncompressedSize:t.size})}importBlob(t,e){return this.importZip(new vn(t),e)}importData64URI(t,e){return this.importZip(new yn(t),e)}importUint8Array(t,e){return this.importZip(new Zn(t),e)}importHttpContent(t,e){return this.importZip(new qn(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new En(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new bn(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new Hn,t)}async exportWritable(t=new WritableStream,e={}){return await this.exportZip({writable:t},e),t}exportFileSystemHandle(t,e={}){return async function(t,e,r){const{onstart:n,onprogress:a,onend:s}=r,o=pc(r.readerOptions),i=new AbortController,{signal:c}=i,l=function(t,e){if(!nt(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),d=Object.assign({},r,o,{signal:c,onstart:F,onprogress:F,onend:F,preventClose:!1}),f=rc([t],t=>ac(t,d.passThrough)),u=[];let p=!1,m=0;try{n&&await zr(n,f),await h(t,e),s&&await zr(s,m)}catch(t){try{t.exportedEntryNames=u}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,a&&await zr(a,m,f)},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=>!dc(t.reason));throw function(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(p||dc(c.reason))return;throw c.reason===F?new DOMException(Gi,"AbortError"):c.reason}try{if(e.directory){const t=await r.getDirectoryHandle(e.name,{create:!0});await h(e,t)}else{const n=await r.getFileHandle(e.name,{create:!0}),a=await n.createWritable();try{await e.getData({writable:w(a)},d)}catch(t){throw p?new Error(Yi):t}u.push(e.getRelativeName(t))}}catch(r){p=!0,i.abort(new Error(Yi));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==j?(r=t,e=Object.assign({},r.options,e)):(await Qn(t),r=new ds(t,e));const n=[],a=await r.getEntries(e);for(const t of a){let r=this;try{const a=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=a.pop();if(a.forEach(t=>{const e=r;if(r=r.getChildByName(t),r){if(!r.directory)throw new Error(qi)}else r=new $i(this.fs,t,{data:null},e),n.push(r)}),t.directory){let e=r;if(s)if(e=r.getChildByName(s),e){if(!e.directory)throw new Error(qi)}else e=new $i(this.fs,s,{data:null},r),n.push(e);e==this||e.data||(e.data=t)}else n.push(gc(r,s,{data:t,Reader:oc(Object.assign({},e)),uncompressedSize:e.passThrough?t.compressedSize:t.uncompressedSize,passThrough:e.passThrough}))}catch(e){try{e.cause={entry:t}}catch{}throw e}}return n}async exportZip(t,e={}){const r=this;(e=Object.assign({},e)).bufferedWrite===F&&(e.bufferedWrite=!0);const[n]=await Promise.all([cc(r,pc(e.readerOptions)),Qn(t)]),a=new Fo(t,e);return await async function(t,e,r,n,a){const{onstart:s,onprogress:o,onend:i,onentryprogress:c}=n,l=e,d=rc(e.children,t=>wc(t)?0:1);let f=0,u=0;if(s&&await zr(s,r),n.bufferedWrite)await async function t(e){const r=(await Promise.allSettled(e.children.map(async e=>{await p(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 p(t);async function p(e){if(wc(e))return;const{name:s,ur:i}=fc(e,l,n);let p=0;const m=await t.add(s,a.get(e),Object.assign(i,{onstart:F,onend:F,onprogress:async t=>{f+=t-p,p=t,o&&await zr(o,f,r)}}));u++,c&&await zr(c,u,d,m)}i&&await zr(i,f)}(a,r,rc([r],nc),e,n),await a.close(e.globalComment),t.getData?t.getData():t.writable}getExportedSize(r={}){const n=this;pc((r=Object.assign({},r)).readerOptions),r.bufferedWrite===F&&(r.bufferedWrite=!0);const a=!r.bufferedWrite||!1!==r.keepOrder&&n.children.every(t=>!t.children.length);return async function(r,n,a,s){const o={options:r};if(rt(r[K]))throw new Error(uo);if(s!==F&&!(s instanceof Uint8Array))throw new Error(Zs);const i=xi(s);if(i>e)throw new Error(Vs);const c=r[H],l=new Map;let d=Boolean(c);const f=r[Z]===F?0:r[Z];let p=f,m=O;for(const t of n){let{name:e}=t;const{size:r}=t,n=Object.assign({},t.options);e=e.trim(),ii(o,n,Da)&&!e.endsWith(k)&&(e+=k);const a=Mo(o,e,n);({name:e}=a);const{ve:s}=Co(o,e,n);0==s.level||s.compressionMethod!==F||s.passThrough||await xr(ht())||(s.level=0);const i=!ii(o,n,Da);if(i&&r===F)throw new Error(uo);const{Xe:d,ve:f}=Bo(o,i,r,s,n);if(i&&!s.passThrough&&mi(f.compressionMethod,f.level))throw new Error(uo);const u=Object.assign({},n,a.ve,s,f,{[H]:c}),w=Po(u),h=Lo(u),y={ke:w,De:xi(w.Ee,h.Se)};c&&_o(y,p);const b=i?d:0;l.set(e,Object.assign({},u,w,{offset:p,diskNumberStart:0,compressedSize:b}));const g=y.De+b;m=Math.min(m,g),p+=g}if(l.size&&p-m>=t&&(d=!0),d&&!a)throw new Error(uo);const w=qo(l);let h=ii(o,r,Sa);if(p>=t||w>=t||l.size>=e){if(!1===h)throw new Error(co);h=!0}return p-f+w+i+(h?98:u)}(r,n.getChildren({recursive:!0}).filter(t=>!wc(t)).map(t=>{const{name:e,ur:a}=fc(t,n,r);return{name:e,size:t.directory?0:uc(t,mc(t,r)),options:a}}),a,r.globalComment)}getChildByName(t){const e=this.children;for(let r=0;r<e.length;r++){const n=e[r];if(n.name==t)return n}}getChildren(t={}){return function(t,e){const r=[],n=[t];let a=0;for(;a<n.length;)for(const t of n[a++].children)r.push(t),e&&n.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 tc{constructor(){bc(this)}get children(){return this.root.children}remove(t){lc(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 new Error("Root directory cannot be moved");if(!e.directory)throw new Error("Target entry is not a directory");if(e.isDescendantOf(t))throw new Error("Entry is a ancestor of target entry");if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw new Error(qi)}else lc(t),t.parent=e,e.children.push(t),function(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 bc(this),this.root.importBlob(t,e)}importData64URI(t,e){return bc(this),this.root.importData64URI(t,e)}importUint8Array(t,e){return bc(this),this.root.importUint8Array(t,e)}importHttpContent(t,e){return bc(this),this.root.importHttpContent(t,e)}importReadable(t,e){return bc(this),this.root.importReadable(t,e)}importZip(t,e){return bc(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 ec={FS:tc,ZipDirectoryEntry:$i,ZipFileEntry:Qi};function rc(t,e){let r=0;const n=Array.from(t);for(;n.length;){const t=n.pop();r+=e(t)||0;for(const e of t.children)n.push(e)}return r}function nc(t){return t.uncompressedSize}function ac(t,e){const{data:r}=t;return e&&r instanceof Ba?r.compressedSize:t.uncompressedSize}function sc(t){let e;return function(){if(e)throw new Error(Vi);return e=!0,{readable:t}}}function oc(t){return class extends wn{constructor(t,e={}){super(),this.entry=t,this.options=e}async init(){const e=this,r=Object.assign({},t,e.options),{checkOverlappingEntry:n,checkOverlappingEntryOnly:a}=r,s=await e.entry.getData(new En,Object.assign(r,{checkPasswordOnly:!1,checkOverlappingEntry:a||n,checkOverlappingEntryOnly:!1,preventClose:!1}));e.data=s,e.pr=new vn(s),e.size=s.size,super.init()}readUint8Array(t,e){return this.pr.readUint8Array(t,e)}}}function ic(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function cc(t,e){const r=[],n=[t],a=new Map;for(;n.length;){const t=n.pop();for(const e of t.children)e.directory?n.push(e):r.push(e)}return await Promise.all(r.map(async t=>{const r=t.reader=ic(t.Reader,t.data,e);a.set(t,r);try{await Qn(r)}catch(e){try{e.entryId=t.id,e.cause={entry:t}}catch{}throw e}r.size!==F&&(t.uncompressedSize=r.size,t.lr=!1)})),a}function lc(t){if(t.parent){const e=t.parent.children;e.forEach((r,n)=>{r.id==t.id&&e.splice(n,1)})}}function dc(t){return Boolean(t)&&t.message==Yi}function fc(t,e,n){const a=n.relativePath?t.getRelativeName(e):t.getFullname(),s=t.options||{};let o={},i={};if(t.data instanceof Ba){const{externalFileAttributes:e,versionMadeBy:a,comment:c,lastModDate:l,rawLastModDate:d,creationDate:f,lastAccessDate:u,uncompressedSize:p,encrypted:m,zipCrypto:w,crc32:h,compressionMethod:y,extraFieldAES:b,internalFileAttributes:g,extraField:x,bitFlag:v,uid:E,gid:S}=t.data;o={externalFileAttributes:e,versionMadeBy:a,comment:c,lastModDate:l,creationDate:f,lastAccessDate:u,internalFileAttributes:g};const z=function(t){if(t){const e=new Map;if(t.forEach((t,r)=>{Xi.has(r)||e.set(r,t.data)}),e.size)return e}}(x);if(z&&(o.extraField=z),E===F&&S===F||Object.assign(o,{uid:E,gid:S,unixExtraFieldType:"infozip"}),mc(t,n)){let t;b&&(t=b.strength),i={passThrough:!0,encrypted:m,zipCrypto:w,crc32:h,uncompressedSize:p,encryptionStrength:t,compressionMethod:y},v&&(i.dataDescriptor=v.dataDescriptor);const e=s.lastModDate===F?n.lastModDate:s.lastModDate;if(e===F)i.rawLastModDate=d;else if(w&&(!v||v.dataDescriptor)&&e instanceof Date&&function(t){let e=new Date(2e3*Math.ceil(Math.floor(t.getTime()/1e3)/2));return e<D?e=D:e>R&&(e=R),(e.getHours()<<3|e.getMinutes()>>3)&r}(e)!=(d>>>8&r))throw new Error(Ki)}}const c=Object.assign({lastModDate:t.dr},o,n,s,i,{directory:t.directory});if(!t.directory&&c.passThrough&&c.uncompressedSize===F)throw new Error(Zi);return{name:a,ur:c}}function uc(t,e){const{reader:r}=t;return r&&r.size!==F?r.size:t.lr?F:ac(t,e)}function pc(t){if(t&&(typeof t!=T||Array.isArray(t)))throw new Error(Hi);return t}function mc(t,e){const{readerOptions:r}=e;return Boolean(!t.directory&&(t.passThrough||r&&r.passThrough))}function wc(t){return t.directory&&null===t.data}function hc(t,e,r){return async function t(e,n,a,s=""){if(n){const o=s?s+"/"+n.name:n.name;try{if((n.isFile||n.isDirectory)&&(n=await yc(n)),"file"==n.kind){const t=await n.getFile();a.push(gc(e,t.name,{Reader:function(){return{readable:t.stream(),size:t.size}},options:Object.assign({},{lastModDate:new Date(t.lastModified)},r),uncompressedSize:t.size}))}else if("directory"==n.kind){const s=e.addDirectory(n.name,r);a.push(s);for await(const e of n.values())await t(s,e,a,o)}}catch(t){try{t.entryName===F&&(t.entryName=o)}catch{}throw t}}return a}(t,e,[])}async function yc(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 function(t){const e=[];function r(t,n,a){t.readEntries(async s=>{if(s.length){for(const t of s)e.push(await yc(t));r(t,n,a)}else n(e)},a)}return await new Promise((e,n)=>r(t.createReader(),e,n)),{[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 bc(t){t.entries=[],t.cr=0,t.root=new $i(t)}function gc(t,e,r,n){if(t.directory)return n?new $i(t.fs,e,r,t):new Qi(t.fs,e,r,t);throw new Error("Parent entry is not a directory")}let xc;function vc(t){return t&&(xc||(xc=function(){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(":"),n=e.slice(0,r);let a="";for(const s of e.slice(r+1).split(",")){const e=s.split(" "),r=a.slice(0,Number.parseInt(e[0][0],36))+e[0].slice(1);a=r;const o=r.replace(/!/g,"+xml"),i=e.length>1?e.slice(1):[o.split("+")[0]];for(const e of i)t[e]=n+"/"+o}}return t}()),xc)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{vn as BlobReader,En as BlobWriter,yn as Data64URIReader,bn as Data64URIWriter,Gi as ERR_ABORTED,Ja as ERR_AMBIGUOUS_ARCHIVE,Pa as ERR_BAD_FORMAT,La as ERR_CENTRAL_DIRECTORY_NOT_FOUND,qs as ERR_DUPLICATED_NAME,Za as ERR_ENCRYPTED,Qa as ERR_ENCRYPTED_CENTRAL_DIRECTORY,Xa as ERR_ENTRY_DATA_OUT_OF_BOUNDS,qi as ERR_ENTRY_EXISTS,Wa as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,_a as ERR_EOCDR_NOT_FOUND,Va as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,rn as ERR_HTTP_RANGE,nn as ERR_HTTP_RESOURCE_CHANGED,Kt as ERR_INVALID_AUTHENTICATION_CODE,Ce as ERR_INVALID_CODEC_DEFINITION,Be as ERR_INVALID_CODEC_MODULE,Vs as ERR_INVALID_COMMENT,Zs as ERR_INVALID_COMMENT_TYPE,Ye as ERR_INVALID_COMPRESSED_DATA,Ge as ERR_INVALID_CRC32,Ys as ERR_INVALID_DATE,Js as ERR_INVALID_ENCRYPTION_STRENGTH,Hs as ERR_INVALID_ENTRY_COMMENT,Ks as ERR_INVALID_ENTRY_COMMENT_TYPE,Gs as ERR_INVALID_ENTRY_NAME,to as ERR_INVALID_EXTRAFIELD,no as ERR_INVALID_EXTRAFIELD_DATA,ro as ERR_INVALID_EXTRAFIELD_DATA_TYPE,eo as ERR_INVALID_EXTRAFIELD_TYPE,es as ERR_INVALID_FILENAME_VALIDATION,$ as ERR_INVALID_FUNCTION_OPTION,ho as ERR_INVALID_GID,Eo as ERR_INVALID_LEVEL,rs as ERR_INVALID_MAX_APPENDED_DATA_SIZE,ct as ERR_INVALID_MAX_WORKERS,xo as ERR_INVALID_MSDOS_ATTRIBUTES,vo as ERR_INVALID_MSDOS_DATA,Zt as ERR_INVALID_PASSWORD,et as ERR_INVALID_PASSWORD_TYPE,Zi as ERR_INVALID_PASS_THROUGH,Hi as ERR_INVALID_READER_OPTIONS,tt as ERR_INVALID_SIGNAL,Ht as ERR_INVALID_SIGNATURE,So as ERR_INVALID_SIGNATURE_DATA,ts as ERR_INVALID_STRICTNESS,wo as ERR_INVALID_UID,Ke as ERR_INVALID_UNCOMPRESSED_SIZE,bo as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,go as ERR_INVALID_UNIX_ID_SIZE,yo as ERR_INVALID_UNIX_MODE,Xs as ERR_INVALID_VERSION,an as ERR_ITERATOR_COMPLETED_TOO_SOON,qa as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Ga as ERR_OVERLAPPING_ENTRY,Vi as ERR_READABLE_CONSUMED,Ne as ERR_RESERVED_COMPRESSION_METHOD,Ya as ERR_SPLIT_ZIP_FILE,fo as ERR_UNDEFINED_COMPRESSION_METHOD,po as ERR_UNDEFINED_READER,lo as ERR_UNDEFINED_UNCOMPRESSED_SIZE,uo as ERR_UNDETERMINED_SIZE,$a as ERR_UNSAFE_FILENAME,Ka as ERR_UNSUPPORTED_COMPRESSION,Oi as ERR_UNSUPPORTED_CONTEXT,Gt as ERR_UNSUPPORTED_CRYPTO_API,Ha as ERR_UNSUPPORTED_ENCRYPTION,$s as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,Qs as ERR_UNSUPPORTED_ENCRYPTION_USDZ,co as ERR_UNSUPPORTED_FORMAT,ns as ERR_UNSUPPORTED_UINT64,wr as ERR_WORKER_STARTUP_TIMEOUT,sn as ERR_WRITER_NOT_INITIALIZED,Ki as ERR_ZIP_CRYPTO_LAST_MOD_DATE,mo as ERR_ZIP_NOT_EMPTY,Vn as HttpRangeReader,qn as HttpReader,wn as Reader,Kn as SplitDataReader,Yn as SplitDataWriter,Sn as TextReader,kn as TextWriter,Zn as Uint8ArrayReader,Hn as Uint8ArrayWriter,hn as Writer,$i as ZipDirectoryEntry,Ji as ZipEntry,tc as ZipFS,Qi as ZipFileEntry,ds as ZipReader,fs as ZipReaderStream,Fo as ZipWriter,Oo as ZipWriterStream,gt as configure,Ri as createBlobTempStream,ki as createOPFSTempStream,Ui as createSyncAccessHandleTempStream,ec as fs,vc as getMimeType,Le as registerCodec,zt as resetConfiguration,Li as terminateWorkers,qe as unregisterCodec};