@zip.js/zip.js 2.9.0 → 2.10.0

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,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,E=61440,v=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,T="undefined",U="function",I="object",j="string",C=new Uint8Array,M="password",N="rawPassword",_="passThrough",P="signal",B="useWebWorkers",W="useCompressionStream",L="transferStreams",q="preventClose",Z="dataDescriptor",V="offset",H="usdz",G="maxAppendedDataSize",K="signCentralDirectory",Y="filename",X="comment",J="strict",Q="balanced",$="tolerant",tt="Invalid option (must be a function)",et="Invalid signal (must be an AbortSignal instance)",rt="Invalid password (password must be a string, rawPassword must be a Uint8Array)";function nt(t){if(t&&typeof t!=U)throw new Error(tt);return t}function at(t){if(t&&(typeof t.addEventListener!=U||"boolean"!=typeof t.aborted))throw new Error(et);return t||F}function st(t,e){if(t&&typeof t!=j||e&&!(e instanceof Uint8Array))throw new Error(rt)}function ot(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw new Error(r)}function it(t,e,r){t!==F&&ot(t,e,r)}function ct(t){return typeof t==j&&t.trim()?Number(t):t}const lt="Invalid maxWorkers (must be an integer greater than 0)";let dt=2;try{typeof navigator!=T&&navigator.hardwareConcurrency&&(dt=navigator.hardwareConcurrency)}catch{}const ft={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:dt,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=T&&CompressionStream,DecompressionStream:typeof DecompressionStream!=T&&DecompressionStream},ut="maxWorkers",pt=["chunkSize",ut,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],mt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],wt=["baseURI","wasmURI","workerURI","useCompressionStream","useWebWorkers","transferStreams",...pt,...mt],ht={...ft};function yt(){return ht}function bt(t){return gt(t.chunkSize)}function gt(t){return t=ct(t),Number.isInteger(t)&&t>=1?Math.max(t,64):65536}function xt(t){Object.assign(ht,Et(St(t)))}function Et(t){const e={};for(const r of wt){const n=t[r];n!==F&&(e[r]=vt(r,n))}return e}function vt(t,e){if(pt.includes(t)){if(e=ct(e),t==ut&&(!Number.isInteger(e)||e<1))throw new Error(lt)}else mt.includes(t)&&nt(e);return e}function St(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 zt(t){const e=Et(St(t));Object.assign(ft,e),Object.assign(ht,e)}function kt(){for(const t of wt)delete ht[t];Object.assign(ht,ft)}function At(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function Rt(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function Dt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const Ft=[[],[],[],[],[],[],[],[]];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;Ft[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=Ft[e-1][t];Ft[e][t]=r>>>8^Ft[0][255&r]}const[Ot,Tt,Ut,It,jt,Ct,Mt,Nt]=Ft;class _t{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=Nt[255&t]^Mt[t>>>8&255]^Ct[t>>>16&255]^jt[t>>>24&255]^It[255&r]^Ut[r>>>8&255]^Tt[r>>>16&255]^Ot[r>>>24&255]}}for(;n<r;n++)e=e>>>8^Ot[255&(e^t[n])];this.o=e}get(){return~this.o}}class Pt extends TransformStream{constructor(){let t;const e=new _t;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 Bt(t){if(typeof TextEncoder==T){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 Wt={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const r=t[t.length-1],n=Wt.l(r);return 32===n?t.concat(e):Wt.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)+Wt.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]=Wt.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=Wt.l(a);return n.push(Wt.v(e+s&31,e+s>32?r:n.pop(),1)),n}},Lt={bytes:{S(t){const e=Wt.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(Wt.v(8*(3&r),n)),e}}},qt=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.T=t.T):e.reset()}reset(){const t=this;return t.F=t.R.slice(0),t.O=[],t.T=0,t}update(t){const e=this;"string"==typeof t&&(t=Lt.U.A(t));const r=e.O=Wt.concat(e.O,t),n=e.T,a=e.T=n+Wt.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.I(s.subarray(16*o,16*(o+1))),o+=1;return r.splice(0,16*o),e}j(){const t=this;let e=t.O;const r=t.F;e=Wt.concat(e,[Wt.v(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(Math.floor(t.T/4294967296)),e.push(0|t.T);e.length;)t.I(e.splice(0,16));return t.reset(),r}C(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}M(t,e){return e<<t|e>>>32-t}I(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.M(1,n[t-3]^n[t-8]^n[t-14]^n[t-16]));const r=e.M(5,a)+e.C(t,s,o,i)+c+n[t]+e.D[Math.floor(t/20)]|0;c=i,i=o,o=e.M(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}},Zt={importKey:t=>new Zt.N(Lt.bytes.A(t)),_(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=Wt;for(e=Lt.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=qt,n=[[],[]];e.B=[new r,new r];const a=e.B[0].blockSize/32;t.length>a&&(t=(new r).update(t).j());for(let e=0;e<a;e++)n[0][e]=909522486^t[e],n[1][e]=1549556828^t[e];e.B[0].update(n[0]),e.B[1].update(n[1]),e.W=new r(e.B[0])}reset(){const t=this;t.W=new t.P(t.B[0]),t.L=!1}update(t){this.L=!0,this.W.update(t)}digest(){const t=this,e=t.W.j(),r=new t.P(t.B[1]).update(e).j();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!=T&&typeof crypto.getRandomValues==U,Ht="Invalid password",Gt="Invalid signature",Kt=Gt,Yt="zipjs-abort-check-password",Xt="Crypto API not supported";function Jt(t){if(Vt)return crypto.getRandomValues(t);throw new Error(Xt)}const Qt=16,$t={name:"PBKDF2"},te=Object.assign({hash:{name:"HMAC"}},$t),ee=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},$t),re=["deriveBits"],ne=[8,12,16],ae=[16,24,32],se=10,oe=[0,0,0,0],ie=typeof crypto!=T,ce=ie&&crypto.subtle,le=ie&&typeof ce!=T,de=Lt.bytes,fe=class{constructor(t){const e=this;e.Z=[[[],[],[],[],[]],[[],[],[],[],[]]],e.Z[0][0][0]||e.V();const r=e.Z[0][4],n=e.Z[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)}V(){const t=this.Z[0],e=this.Z[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.Z[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}},ue=class{constructor(t,e){this.G=t,this.K=e,this.Y=e}reset(){this.Y=this.K}update(t){return this.X(this.G,t,this.Y)}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=Wt.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 Wt.h(e,a)}},pe=Zt.N;let me=ie&&le&&typeof ce.importKey==U,we=ie&&le&&typeof ce.deriveBits==U;class he extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:n,checkAuthenticationCode:a=!0}){super({start(){be(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 xe(t,e,r,ve(n,0,ne[e])),s=ve(n,ne[e]);if(a[0]!=s[0]||a[1]!=s[1])throw new Error(Ht)}(r,s,a,ve(t,0,ne[s]+2)),t=ve(t,ne[s]+2),n?e.error(new Error(Yt)):o()):await i;const c=new Uint8Array(t.length-se-(t.length-se)%Qt);e.enqueue(ge(r,t,c,0,se,!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-se),i=ve(n,n.length-se);let c=C;if(o.length){const t=ze(de,o);r.update(t);const n=e.update(t);c=Se(de,n)}const l=ve(Se(de,r.digest()),0,se);let d=n.length<se?1:0;for(let t=0;t<se;t++)d|=l[t]^i[t];if(d&&a)throw new Error(Kt);t.enqueue(c)}}})}}class ye extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){super({start(){be(this,t,e,r)},async transform(t,e){const r=this,{password:n,strength:a,et:s,ready:o}=r;let i=C;n?(i=await async function(t,e,r){const n=Jt(new Uint8Array(ne[e]));return At(n,await xe(t,e,r,n))}(r,a,n),s()):await o;const c=new Uint8Array(i.length+t.length-t.length%Qt);c.set(i,0),e.enqueue(ge(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=C;if(n.length){const t=e.update(ze(de,n));r.update(t),s=Se(de,t)}const o=Se(de,r.digest()).slice(0,se);t.enqueue(At(s,o))}}})}}function be(t,e,r,n){Object.assign(t,{ready:new Promise(e=>t.et=e),password:Ee(e,r),strength:n-1,ot:C})}function ge(t,e,r,n,a,s){const{nt:o,st:i,ot:c}=t;c.length&&(e=At(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%Qt)),d=0;d<=l-Qt;d+=Qt){const t=ze(de,ve(e,d,d+Qt));s&&i.update(t);const a=o.update(t);s||i.update(a),r.set(Se(de,a),d+n)}return t.ot=ve(e,d),r}async function xe(t,e,r,n){t.password=null;const a=await async function(t,e,r,n,a){if(!me)return Zt.importKey(e);try{return await ce.importKey("raw",e,r,!1,a)}catch{return me=!1,Zt.importKey(e)}}(0,r,te,0,re),s=await async function(t,e,r){if(!we)return Zt._(e,t.salt,ee.iterations,r);try{return await ce.deriveBits(t,e,r)}catch{return we=!1,Zt._(e,t.salt,ee.iterations,r)}}(Object.assign({salt:n},ee),a,8*(2*ae[e]+2)),o=new Uint8Array(s),i=ze(de,ve(o,0,ae[e])),c=ze(de,ve(o,ae[e],2*ae[e])),l=ve(o,2*ae[e]);return Object.assign(t,{keys:{key:i,it:c,passwordVerification:l},nt:new ue(new fe(i),Array.from(oe)),st:new pe(c)}),l}function Ee(t,e){return e===F?Bt(t):e}function ve(t,e,r){return t.subarray(e,r)}function Se(t,e){return t.S(e)}function ze(t,e){return t.A(e)}class ke extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:n}){super({start(){Re(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=De(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw new Error(Ht);t=t.subarray(12)}n?e.error(new Error(Yt)):e.enqueue(De(r,t))}})}}class Ae extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){Re(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=Jt(new Uint8Array(12));e[11]=r.passwordVerification,n=new Uint8Array(t.length+e.length),n.set(Fe(r,e),0),a=12}else n=new Uint8Array(t.length),a=0;n.set(Fe(r,t),a),e.enqueue(n)}})}}function Re(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 _t(n[0]),lt:new _t(n[2])}),r)for(let e=0;e<r.length;e++)Oe(t,r[e]);else for(let r=0;r<e.length;r++)Oe(t,e.charCodeAt(r))}(t,e,r)}function De(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Te(t)^e[n],Oe(t,r[n]);return r}function Fe(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Te(t)^e[n],Oe(t,e[n]);return r}function Oe(t,e){let[,r]=t.keys;t.ct.append([e]);const n=~t.ct.get();r=Ie(Math.imul(Ie(r+Ue(n)),134775813)+1),t.lt.append([r>>>24]);const a=~t.lt.get();t.keys=[n,r,a]}function Te(t){const e=2|t.keys[2];return Ue(Math.imul(e,1^e)>>>8)}function Ue(t){return 255&t}function Ie(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:n}=await e.read();n?t.close():t.enqueue(r)},cancel:t=>e.cancel(t)})}function Ce(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 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 Ne="Invalid codec definition",_e="Reserved compression method",Pe="Invalid codec module",Be=[0,8,9,99],We=new Map,Le=new Map;function qe(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!=j||!n.length)throw new Error(Ne);if(Be.includes(r))throw new Error(_e);const c=typeof s==U||typeof o==U;if(!(c||typeof a==j&&a.length))throw new Error(Ne);We.set(r,{compressionMethod:r,format:n,codecURI:a,versionNeeded:i}),c&&Ke(n,{CompressionStream:s,DecompressionStream:o})}function Ze(t){const e=We.get(t);if(e){let r;We.delete(t),We.forEach(t=>r=r||t.format==e.format),r||Le.delete(e.format)}}function Ve(t){return We.get(t)}function He(){return Array.from(We.values(),t=>Object.assign({},t,Le.get(t.format)))}function Ge(t){return Le.get(t)}function Ke(t,e){const{CompressionStream:r,DecompressionStream:n}=e;if(typeof r!=U&&typeof n!=U)throw new Error(Pe);Le.set(t,{CompressionStream:r,DecompressionStream:n})}const Ye="Invalid uncompressed size",Xe="Invalid compressed data",Je=Gt,Qe="deflate-raw",$e="deflate64-raw",tr="gzip",er=[31,139,8];class rr 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,inputSize:p}=t,m=this;let w,h,y,b=super.readable;const g=f&&Ge(f),x=c&&a&&!d&&!g&&(!s||i)&&Boolean(o&&n);if(s&&!i||!c||x||(w=new Pt,b=fr(b,w)),a)if(g)b=ur(b,lr(g.CompressionStream,f,{level:l,chunkSize:e,compressionMethod:u,uncompressedSize:p}));else if(x)y=new nr,b=ur(b,new n(tr)),b=fr(b,y);else try{b=dr(b,o,{level:l,chunkSize:e},n,r)}catch(t){let e;try{e=new n(tr)}catch{throw t}b=ur(b,e),b=fr(b,new nr)}s&&(i?b=fr(b,new Ae(t)):(h=new ye(t),b=fr(b,h))),cr(m,b,()=>{s&&!i||!c||(m.crc32=x?y.crc32:new DataView(w.value.buffer).getUint32(0))})}}class nr 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=At(r,t));const s=a-8,o=Math.min(s,r.length);n.enqueue(At(r.subarray(0,o),t.subarray(0,s-o))),r=At(r.subarray(o),t.subarray(s-o))},flush(){const e=Dt(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class ar 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=fr(y,new ke(t)):(h=new he(t),y=fr(y,h))),c){const t=f&&Ge(f);if(t)y=ur(y,lr(t.DecompressionStream,f,{chunkSize:e,compressionMethod:u,rawBitFlag:p,uncompressedSize:m}));else try{y=dr(y,l,{chunkSize:e,deflate64:d},n,r)}catch(t){if(d||m===F)throw t;let e;try{e=new n(tr)}catch{throw t}y=function(t,e,r){const n=new _t;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(er),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=Dt(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=fr(t,d),fr(t=ur(t,e),f);function u(){p(),a=setTimeout(()=>o(new Error(Ye)),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(Xe);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 Pt,y=fr(y,w)),cr(this,y,()=>{if(o){const t=new DataView(w.value.buffer);if(i!=t.getUint32(0,!1))throw new Error(Je)}})}}const sr=new Map;function or(t,e){if(!t)return!1;let r=sr.get(t);r||(r=new Map,sr.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 ir(t){return or(t,Qe)}function cr(t,e,r){e=fr(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function lr(t,e,r){if(!t)throw new Error("Compression method not supported");return new t(e,r)}function dr(t,e,r,n,a){const s=e&&n?n:a||n,o=r.deflate64?$e:Qe;let i;try{i=new s(o,r)}catch(t){if(!e||!a||s==a)throw t;i=new a(o,r)}return ur(t,i)}function fr(t,e){return je(t).pipeThrough(e)}function ur(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 pr="data",mr="deflate",wr="inflate";class hr extends TransformStream{constructor(t,e){super({});const r=this,{codecType:n}=t;let a;n.startsWith(mr)?a=rr:n.startsWith(wr)&&(a=ar),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(Ye)},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 yr 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 br="Worker startup timeout";let gr,xr,Er,vr=()=>{};async function Sr(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;if(r&&!r.ft)return!0;if(ir(e)||or(e,tr))return!0;if(r)try{return await vr(t),!0}catch{return!1}return!1}function zr(t){t.createWorker?xr=!0:gr=!1}class kr{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 xr&&(l=F),Object.assign(t,{wt:!0,ht:(t.ht||0)+1,readable:e.pipeThrough(new yr(bt(a))).pipeThrough(new Ar(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.Et=!0,t.yt.terminate(),e()),t.wt=!1,d(t)}}}),gr===F&&(gr=typeof Worker!=T),(o&&Er&&(gr&&c||l)?Er:Dr)(t,a)}}class Ar extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:n}){let a=0;super({async start(){t&&await Rr(t,r)},async transform(t,n){a+=t.length,e&&await Rr(e,a,r),n.enqueue(t)},async flush(){n&&await Rr(n,a)}})}}async function Rr(t,...e){try{await t(...e)}catch{}}function Dr(t,e){return{run:()=>Fr(t,e)}}async function Fr({options:t,readable:e,writable:r,xt:n},a){let s;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(mr),r=e?a.CompressionStreamFallback:a.DecompressionStreamFallback,n=e?a.CompressionStream:a.DecompressionStream;if(t.useCompressionStream){if(r&&r.ft&&!ir(n))try{await vr(a)}catch{}}else try{await vr(a)}catch{r&&!r.ft||(t.useCompressionStream=!0)}}s=new hr(t,a),await e.pipeThrough(s).pipeThrough(new yr(bt(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 Or={type:"module"},Tr="error";let Ur,Ir,jr,Cr=!0;try{Cr=typeof structuredClone==U&&structuredClone(new DOMException("","AbortError")).code!==F}catch{}var Mr;function Nr(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function _r(t){const{yt:e}=t;if(e)try{e.terminate()}catch{}t.gt=null}function Pr(t,e,r,n,a=!0){const{createWorker:s}=r;let o,i,c;if(s)o=s();else if(Ir===F||Ur!==t){const s=typeof t==U;i=s?t(a):t;const l=i.startsWith("data:"),d=i.startsWith("blob:");if(l||d){n===F&&(n=!1),n&&(c=Or);try{o=new Worker(i,c)}catch(a){if(d)try{URL.revokeObjectURL(i)}catch{}if(s&&d)return Pr(t,e,r,n,!1);if(n)throw a;return Pr(t,e,r,!0,!1)}}else{n===F&&(n=!0),n&&(c=Or);try{i=new URL(i,e)}catch{}try{o=new Worker(i,c)}catch(s){if(n)return Pr(t,e,r,!1,a);throw s}}Ur=t,Ir=i,jr=c}else o=new Worker(Ir,jr);return o.addEventListener("message",t=>{r.vt=!0,Br(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()||Lr({type:pr,value:t,done:r,messageId:a},e)}r==pr&&(await c.ready,await c.write(new Uint8Array(n)),p()||Lr({type:"ack",messageId:a},e)),"close"==r&&m(null,s)}}catch(o){p()||(_r(e),m(o))}function m(t,e){p()||(t?d(t):l(e),c&&c.releaseLock(),t&&t.codecImportFailed||f())}}(t,r)}),o.addEventListener(Tr,t=>Wr(t,r)),o.addEventListener("messageerror",t=>Wr(t,r)),o}function Br(t){const{kt:e}=t;e&&(clearTimeout(e),t.kt=null)}function Wr(t,e){t.preventDefault&&t.preventDefault(),Br(e);const{vt:r,zt:n,writer:a,xt:s}=e;_r(e),r||(e.yt=null);let o=t.error||new Error(t.message||Tr);r||(o=Object.assign(new Error(o.message||Tr),{At:!0}),e.Rt=o),n&&(n(o),a&&a.releaseLock(),r&&s())}function Lr(t,{yt:e,writer:r,transferStreams:n,vt:a}){try{const{value:r,readable:s,writable:o}=t,i=[];if(r&&(t.value=Rt(r),i.push(t.value.buffer)),n&&Cr&&a?(s&&i.push(s),o&&i.push(o)):t.readable=t.writable=null,i.length)try{return e.postMessage(t,i),!0}catch{Cr=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}Mr=function(t,e){const{baseURI:r,chunkSize:n,workerStartupTimeout:a}=e;let{wasmURI:s}=e;if(!t.gt){let o;typeof s==U&&(s=s());try{o=Pr(t.workerURI,r,t)}catch{return zr(t),Dr(t,e)}Object.assign(t,{yt:o,vt:!1,Et:!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(br);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=Lr({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.vt&&Number.isFinite(f)&&f>=0&&(t.kt=setTimeout(()=>function(t){if(t.kt=null,t.vt)return;const{zt:e,writer:r}=t;if(_r(t),t.yt=null,e){const t=new Error(br);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 zr(t),Nr(t),Fr(t,e);if(r&&r.codecImportFailed){if(t.reader)return Nr(t),Fr(t,e);t.xt()}throw r}}}})}return t.gt},Er=Mr;let qr=[];const Zr=[];let Vr,Hr,Gr=0;async function Kr(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){!Le.has(t)&&e&&Ke(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=qr.find(t=>!t.wt);if(r)return $r(r),new kr(r,t,e,b);if(qr.length<w){const r={Ft:Gr};return Gr++,qr.push(r),new kr(r,t,e,b)}return new Promise(r=>{Zr.push({resolve:r,stream:t,Ot:e}),Hr=n.workerStarvationTimeout,Yr()})}()).run();function b(t){if(Xr(),Zr.length){const[{resolve:e,stream:r,Ot:n}]=Zr.splice(0,1);e(new kr(t,r,n,b)),Yr()}else t.yt?($r(t),function(t,e){const{config:r}=e,{terminateWorkerTimeout:n}=r;Number.isFinite(n)&&n>=0&&(t.Et?t.Et=!1:t.Tt=setTimeout(async()=>{qr=qr.filter(e=>e!=t);try{await t.terminate()}catch{}},n))}(t,e)):qr=qr.filter(e=>e!=t)}}function Yr(){!Vr&&Zr.length&&Number.isFinite(Hr)&&Hr>=0&&(Vr=setTimeout(Jr,Hr))}function Xr(){Vr&&(clearTimeout(Vr),Vr=null)}function Jr(){if(Vr=null,Zr.length){const[{resolve:t,stream:e,Ot:r}]=Zr.splice(0,1),n=Object.assign({},r,{useWebWorkers:!1,workerURI:F,createWorker:F});t(new kr({},e,n,Qr)),Yr()}}function Qr(){Xr(),Yr()}function $r(t){const{Tt:e}=t;e&&(clearTimeout(e),t.Tt=null)}const tn="\0\u263a\u263b\u2665\u2666\u2663\u2660\u2022\u25d8\u25cb\u25d9\u2642\u2640\u266a\u266b\u263c\u25ba\u25c4\u2195\u203c\xb6\xa7\u25ac\u21a8\u2191\u2193\u2192\u2190\u221f\u2194\u25b2\u25bc !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xa2\xa3\xa5\u20a7\u0192\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\u2310\xac\xbd\xbc\xa1\xab\xbb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0".split(""),en=256==tn.length;function rn(t,e){return nn(t,e,!0)}function nn(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?function(t){if(en){let e="";for(let r=0;r<t.length;r++)e+=tn[t[r]];return e}return(new TextDecoder).decode(t)}(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const an="HTTP error ",sn="HTTP Range not supported",on="HTTP resource changed",cn="Writer iterator completed too soon",ln="Writer not initialized",dn="Content-Range",fn="Range",un="GET",pn="bytes",mn=16777216,wn="writable",hn=Symbol();class yn{constructor(){this.size=0}init(){this.initialized=!0}}class bn extends yn{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=bt(yt())}={}){const n=this;let a=0;return r=gt(r),new ReadableStream({async pull(s){const o=e===F?r:Math.min(r,e-a),i=await na(n,t+a,o);i.length&&s.enqueue(i),a+r>=e||!i.length&&o?s.close():a+=r}})}}class gn extends yn{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw new Error(ln);return t.writeUint8Array(Rt(e))}});Object.defineProperty(t,wn,{get:()=>e})}writeUint8Array(){}}class xn extends bn{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{Ut:t,It:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{It:r,Ut: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 En extends gn{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",jt:""})}writeUint8Array(t){const e=this;let r,n=e.jt;const a=e.jt.length;for(e.jt="",r=0;r<3*Math.floor((a+t.length)/3)-a;r++)n+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.jt+=String.fromCharCode(t[r]);n.length>2?e.data+=btoa(n):e.jt=n+e.jt}getData(){return this.data+btoa(this.jt)}}let vn,Sn;class zn extends bn{constructor(t){super(),Object.assign(this,{Ct:t,size:t.size}),Sn||(Sn=(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();vn=1==e}catch{vn=!1}})())}createReadable(t){const{Ct:e,size:r}=this,{offset:n=0,size:a=r-n}=t||{};return!n&&a>=r?je(e.stream()):vn?je(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.Ct:r.Ct.slice(t,n);let s=await a.arrayBuffer();return s.byteLength>e&&(s=s.slice(t,n)),new Uint8Array(s)}}class kn extends yn{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,wn,{get:()=>r.writable}),e.contentType=t,e.Mt=Ce(r.readable,t),e.Mt.catch(()=>{})}getData(){return this.Mt}}class An extends zn{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function Rn(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 Dn extends kn{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 nn(t,e,!1)}(new Uint8Array(await r.arrayBuffer()),t)}}class Fn extends bn{constructor(t,e){super(),Tn(this,t,e)}async init(){await Un(this,Zn,Bn),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(sn);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 Zn(un,t,_n(t,a,e));if(206!=r.status)throw new Error(sn);const i=r.headers.get(dn);if(i){const t=Number(i.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=a)throw new Error(sn)}Nn(t,r),Mn(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 In(this,t,e,Zn,Bn)}}class On extends bn{constructor(t,e){super(),Tn(this,t,e)}async init(){await Un(this,Vn,Wn),super.init()}readUint8Array(t,e){return In(this,t,e,Vn,Wn)}}function Tn(t,e,r){const{preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:s,combineSizeEocd:o,checkResourceChanges:i=!0,maximumRangeSize:c=mn,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 Un(t,e,r){const{url:n,preventHeadRequest:a,useRangeHeader:s,forceRangeRequests:o,combineSizeEocd:i}=t;if(function(t){const{baseURI:e}=yt(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r}(n)&&(s||o)&&(typeof a==T||a)){const n=await e(un,t,_n(t,i?-22:void 0)),a=n.headers.get("Accept-Ranges");if(!(o||a&&a.toLowerCase()==pn))throw new Error(sn);{if(i){const e=new Uint8Array(await n.arrayBuffer());206==n.status&&e.length==u&&(t._t=e)}Mn(t,n);const a=jn(n);a===F?await qn(t,e,r):t.size=a}}else await qn(t,e,r)}async function In(t,e,r,n,a){const{useRangeHeader:s,forceRangeRequests:o,_t:i,size:c,options:l}=t;if(s||o){if(i&&e==c-u&&r==u)return i;if(e>=c||0===r)return C;{e+r>c&&(r=c-e);const a=await n(un,t,_n(t,e,r));if(206!=a.status)throw new Error(sn);const s=a.headers.get(dn);if(s){const t=Number(s.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=e)throw new Error(sn)}Nn(t,a),Mn(t,a);const o=new Uint8Array(await a.arrayBuffer());if(o.length!=r)throw new Error(sn);return o}}{const{data:n}=t;return n||await a(t,l),t.data.subarray(e,e+r)}}function jn(t){const e=t.headers.get(dn);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function Cn({headers:t}){return{Pt:t.get("Etag")||F,lastModified:t.get("Last-Modified")||F}}function Mn(t,e){const{checkResourceChanges:r,Bt:n}=t;r&&!n&&206==e.status&&(t.Bt=Cn(e))}function Nn(t,e){const{checkResourceChanges:r,Bt:n,size:a}=t;if(r){const t=jn(e);if(t!==F&&a!==F&&t!=a)throw new Error(on);if(n){const t=Cn(e);if(Object.entries(n).some(([e,r])=>r!==F&&t[e]!==F&&r!=t[e]))throw new Error(on)}}}function _n(t,e=0,r=1){return Object.assign({},Pn(t),{[fn]:pn+"="+(e<0?e:e+"-"+(e+r-1))})}function Pn({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Bn(t){await Ln(t,Zn)}async function Wn(t){await Ln(t,Vn)}async function Ln(t,e){const r=await e(un,t,Pn(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function qn(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const n=await e("HEAD",t,Pn(t)),a=n.headers.get("Content-Length");a&&!n.headers.get("Content-Encoding")?t.size=Number(a):await r(t,t.options)}}async function Zn(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(sn):new Error(an+(s.statusText||s.status))}function Vn(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(sn):new Error(an+(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 Hn extends bn{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new On(t,e):new Fn(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 Gn extends Hn{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class Kn extends bn{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 Yn extends gn{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 Xn extends bn{constructor(t){super(),this.qt=t}async init(){const t=this;t.Zt=0;const e=t.qt=await Promise.all(t.qt.map(ra));t.Vt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}Ht(t){const{Vt: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 na(i,o,e);else{const s=n-o;a=At(await na(i,o,s),await r.readUint8Array(t+s,e-s))}}else a=C;return r.Zt=Math.max(s,r.Zt),a}}class Jn extends yn{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===hn)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(cn);n=o,n.size=0,n.maxSize&&(r.maxSize=n.maxSize),r.availableSize=r.maxSize,await ea(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,wn,{get:()=>o})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(hn)}finally{t.releaseLock()}}}class Qn{constructor(t){return Array.isArray(t)&&(t=new Xn(t)),(t instanceof ReadableStream||typeof t.getReader==U)&&(t={readable:je(t)}),t}}class $n{constructor(t){return t.writable===F&&typeof t.next==U&&(t=new Jn(t)),(t instanceof WritableStream||typeof t.getWriter==U)&&(t={writable:Me(t)}),t.size===F&&(t.size=0),t}}function ta(t){return Boolean(t&&t.getData)}async function ea(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function ra(t){return t=new Qn(t),await ea(t),t.size!==F&&t.readUint8Array||(t=new zn(await Ce(t.readable)),await ea(t)),t}function na(t,e,r){return t.readUint8Array(e,r)}function aa(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?bn.prototype.createReadable.call(t,e):t.readable}const sa="filename",oa="rawFilename",ia="comment",ca="rawComment",la="uncompressedSize",da="compressedSize",fa="offset",ua="diskNumberStart",pa="lastModDate",ma="rawLastModDate",wa="lastAccessDate",ha="rawLastAccessDate",ya="creationDate",ba="rawCreationDate",ga="internalFileAttributes",xa="externalFileAttributes",Ea="internalFileAttribute",va="externalFileAttribute",Sa="msdosAttributesRaw",za="msdosAttributes",ka="msDosCompatible",Aa="zip64",Ra="encrypted",Da="version",Fa="versionMadeBy",Oa="zipCrypto",Ta="directory",Ua="executable",Ia="compressionMethod",ja="signature",Ca="extraField",Ma="unixMode",Na="setuid",_a="setgid",Pa="sticky",Ba=[sa,oa,la,da,pa,ma,ia,ca,wa,ha,ya,ba,fa,ua,ga,xa,Ea,va,Sa,za,ka,Aa,Ra,Da,Fa,Oa,Ta,Ua,"symlink",Ia,ja,"crc32",Ca,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",Ma,"unixExternalUpper",Na,_a,Pa,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class Wa{constructor(t){Ba.forEach(e=>this[e]=t[e])}}const La="File format is not recognized",qa="End of central directory not found",Za="End of Zip64 central directory locator not found",Va="Central directory header not found",Ha="Local file header not found",Ga="Zip64 extra field not found",Ka="File contains encrypted entry",Ya="Encryption method not supported",Xa="Compression method not supported",Ja="Split zip file",Qa="Overlapping entry found",$a="Entry data out of bounds",ts="Ambiguous archive",es="Encrypted central directory is not supported",rs="Unsafe filename",ns="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",as="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",ss="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",os="64-bit value exceeds Number.MAX_SAFE_INTEGER",is="unsorted central directory",cs="unknown version needed to extract",ls="compressed patched data",ds="malformed extra field",fs="unknown zip64 extensible data",us="wrapped entries count",ps="appended data",ms="prepended data",ws="prepended central directory",hs="trailing central directory data",ys="duplicate filename",bs="mismatched zip64 end of central directory record",gs="mismatched local file header (general purpose bit flag)",xs="mismatched local file header (compression method)",Es="mismatched local file header (crc32 or sizes)",vs=/^[a-zA-Z]:/,Ss="utf-8",zs="cp437",ks=[[la,t],[da,t],[fa,t],[ua,e]],As={[e]:{Gt:lo,bytes:4},[t]:{Gt:fo,bytes:8}},Rs=BigInt(Number.MAX_SAFE_INTEGER);class Ds{constructor(t,e={}){Object.assign(this,{reader:new Qn(t),options:e,Kt:new Map})}async*getEntriesGenerator(n={}){const s=this;let{reader:o}=s;if(await ea(o),o.size!==F&&o.readUint8Array||(o=new zn(await Ce(o.readable)),await ea(o)),o.size<u)throw new Error(La);const c=s.warnings=[],w=Vs(n,s.options),h=w==J,y=w!=$,b=Ks(no(s,n,G),w),g=function(t,e){if(t===F)return e;if(!Zs(t))throw new Error(as);return t}(no(s,n,"filenameValidation"),w),x=no(s,n,"normalizeFilename"),{Yt:A,Xt:R}=await Ys(o,y,b);if(!A)throw await async function(t){return await qs(t)==a}(o)?new Error(Ja):new Error(qa);y&&R>1&&ro("multiple end of central directory records");const D=Dt(A);let O=lo(D,12),T=lo(D,16);const U=A.offset,I=co(D,20),j=U+u+I,M=o.size-j;M>b&&ro(ps),M>0&&eo(c,ps);let N=co(D,4);const _=o.Zt||0;let P,B,W,L,q,Z=co(D,6),V=co(D,10),H=0,K=m;const Q=T==t||O==t||V==e||Z==e;if(T!=t&&Z!=e&&(T+=Ls(o,Z)),Q){const r=A.offset>=p?await na(o,A.offset-p,p):C,n=Dt(r);if(r.length==p&&lo(n,0)==d){T=Ls(o,lo(n,4))+fo(n,8);let r=await na(o,T,m),a=Dt(r);const s=A.offset-p-m;if((r.length<m||lo(a,0)!=l)&&T!=s&&s>=0){const t=T;T=s,T>t&&(H=T-t),r=await na(o,T,m),a=Dt(r)}if(r.length<m||lo(a,0)!=l)throw new Error(Za);if(W=!0,L=fo(a,4)>44,L){const t=Math.min(fo(a,4)-44,o.size-T-m);t>0&&(K+=t,q=function(t){const e={rawExtensibleData:t};if(t.length>=28){const r=Dt(t),n=co(r,26);Object.assign(e,{compressionMethod:co(r,0),compressedSize:fo(r,2),uncompressedSize:fo(r,10),encryptionAlgorithm:co(r,18),bitLength:co(r,20),flags:co(r,22),hashAlgorithm:co(r,24),hashData:t.subarray(28,28+n)})}return e}(await na(o,T+m,t)))}N==e?N=lo(a,16):N!=lo(a,16)&&to(h,c,bs),Z==e?Z=lo(a,20):Z!=lo(a,20)&&to(h,c,bs),V==e?V=fo(a,32):V!=fo(a,32)&&to(h,c,bs),O==t?O=fo(a,40):O!=fo(a,40)&&to(h,c,bs),T=Ls(o,Z)+fo(a,48)+H}}let tt=O;const et=A.offset-(W?K+p:0);if(T>=o.size&&(H=o.size-T-O-u,T=o.size-O-u),_!=N)throw new Error(Ja);if(T<0)throw new Error(La);let rt=0,nt=await na(o,T,O),at=Dt(nt);if(O){if(nt.length<4)throw new Error(La);const t=et-O;if(T!=t&&Z==N){const e=lo(at,rt)==i||Boolean(q&&q.compressedSize)||Us(at);let r=!e;if(!r&&t>=0&&t+4<=o.size&&(r=lo(Dt(await na(o,t,4)),0)==i),r){const r=T;T=t,T>r&&(H+=T-r,P=e),nt=await na(o,T,O),at=Dt(nt)}}}const st=et-T;if(O!=st&&st>=0&&Z==N&&(O=st,nt=await na(o,T,O),at=Dt(nt)),T<0||T>=o.size)throw new Error(La);s.directoryOffset=T,s.directoryLength=tt;const ot=ao(s,n,"decryptCentralDirectory");let it,ct;if(ot&&V&&nt.length>=4&&lo(at,0)!=i&&(L||Us(at))){const t=function(t,e,r){const n=t&&t.compressedSize?t.compressedSize:e;return n>0&&n<=r?n:r}(q,tt,nt.length);ct=nt.subarray(t),nt=await ot(nt.subarray(0,t),q),at=Dt(nt),tt=nt.length,it=!0}q&&!it&&(nt.length<4||lo(at,0)==i)&&eo(c,fs),B=T;const lt=no(s,n,"filenameEncoding"),dt=no(s,n,"commentEncoding"),ft=new Set;let ut,pt=-1;const mt=!h&&!W;!V&&mt&&(V=Is(at,nt,rt),V&&eo(c,us));for(let t=0;t<V;t++){const a=new Ts(o,s.options);if(rt+f>nt.length||lo(at,rt)!=i){if(0==t&&!it&&(L||Us(at)))throw new Error(es);throw new Error(Va)}Cs(a,at,rt+6);const l=Boolean(a.bitFlag.languageEncodingFlag),d=rt+f,u=d+a.filenameLength,p=u+a.extraFieldLength,m=co(at,rt+4),w=!(m>>8),h=m>>8==3,y=nt.subarray(d,u),b=co(at,rt+32),A=p+b,R=nt.subarray(p,A),D=l,O=l,T=lo(at,rt+38),U=T&r,I={readOnly:Boolean(1&U),hidden:Boolean(2&U),system:Boolean(4&U),directory:Boolean(16&U),archive:Boolean(32&U)},j=lo(at,rt+42),C=ao(s,n,"decodeText")||rn,M=D?Ss:lt||zs,N=O?Ss:dt||zs;let _=C(y,M,Y);if(_===F&&(_=rn(y,M)),x){const t=x(_);t!==F&&(_=t)}if(Gs(_,g)){const t=new Error(rs);throw t.filename=_,t}let P=C(R,N,X);P===F&&(P=rn(R,N)),Object.assign(a,{index:t,Jt:it,versionMadeBy:m,msDosCompatible:w,zip64:!1,compressedSize:0,uncompressedSize:0,Qt:b,offset:j,diskNumberStart:co(at,rt+34),internalFileAttributes:co(at,rt+36),externalFileAttributes:T,msdosAttributesRaw:U,msdosAttributes:I,rawFilename:y,filenameUTF8:D,commentUTF8:O,rawExtraField:nt.subarray(u,p),rawComment:R,filename:_,comment:P}),Ms(a,a,at,rt+6)&&eo(c,ds,_),a.offset+=H;const W=Ls(o,a.diskNumberStart)+a.offset;B=Math.min(W,B),W<pt&&eo(c,is,_),pt=W,(a.version&r)>63&&eo(c,cs,_),32&~a.rawBitFlag||eo(c,ls,_),ft.has(a.filename)&&(ut=!0),ft.add(a.filename);const q=a.externalFileAttributes>>16&e;a.unixMode===F&&16877&q&&(a.unixMode=q);const Z=Boolean(a.unixMode&S),G=Boolean(a.unixMode&z),K=Boolean(512&a.unixMode),J=40960==((a.unixMode===F?q:a.unixMode)&E),Q=!J&&(a.unixMode!==F?!!(73&a.unixMode):h&&!!(73&q)),$=a.unixMode!==F&&(a.unixMode&E)==v,tt=(q&E)==v;Object.assign(a,{setuid:Z,setgid:G,sticky:K,symlink:J,unixExternalUpper:q,internalFileAttribute:a.internalFileAttributes,externalFileAttribute:a.externalFileAttributes,executable:Q,directory:$||tt||w&&I.directory||a.filename.endsWith(k),zipCrypto:a.encrypted&&!a.extraFieldAES});const et=new Wa(a);if(et.getData=(t,e)=>a.getData(t,et,s.Kt,e),et.arrayBuffer=async t=>{const e=new TransformStream,r=Ce(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await a.getData(e,et,s.Kt,t),r},rt=A,t==V-1&&mt){const t=Is(at,nt,rt);t&&(V+=t,eo(c,us))}const{onprogress:st}=n;if(st)try{await st(t+1,V,new Wa(a))}catch{}yield et}let wt=rt,ht=js(nt.subarray(rt))||(it?js(ct):F);if(!ht&&!it){const t=T+rt,e=Math.min(et-t,65541);e>=6&&(ht=js(await na(o,t,e)))}ht&&(s.digitalSignature=ht,wt=rt+6+ht.length),(rt!=tt&&wt!=tt||!it&&rt!=O&&wt!=O)&&to(h,c,hs),ut&&to(h,c,ys);const yt=no(s,n,"extractPrependedData"),bt=no(s,n,"extractAppendedData"),gt=(h||yt)&&V&&4==B&&await async function(t){const e=await qs(t);return e==a||808471376==e}(o)?4:0;return h&&(H||V&&B>gt)&&ro(ms),(H||V&&B>4)&&eo(c,ms),P&&eo(c,ws),yt&&(s.prependedData=B>gt?await na(o,gt,B-gt):C),s.comment=I?await na(o,U+u,I):C,bt&&(s.appendedData=j<o.size?await na(o,j,o.size-j):C),!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}}async function Os(t,e={}){if(t=new Qn(t),await ea(t),t.size!==F&&t.readUint8Array||(t=new zn(await Ce(t.readable)),await ea(t)),t.size<u)return!1;const r=Vs(e,{}),n=r!=$,a=Ks(e[G],r),{Yt:s,Xt:o}=await Ys(t,n,a);if(!s||r==J&&o>1)return!1;const i=co(Dt(s),20),c=s.offset+u+i;return t.size-c<=a}let Ts=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,a,o={}){const i=this,c=yt(),{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:E}=i,{dataDescriptor:v}=h,S=e.localDirectory={},z=e.warnings=[],k=Ls(l,u)+f,R=await na(l,k,A),D=Dt(R);let O=no(i,o,M),T=no(i,o,N);const U=no(i,o,_);if(st(O,T),O=O&&O.length&&O,T=T&&T.length&&T,p&&99!=p.originalCompressionMethod)throw new Error(Xa);if(R.length<A||lo(D,0)!=n)throw new Error(Ha);Cs(S,D,4);const{extraFieldLength:I,filenameLength:j}=S,Z=S.dataOffset=k+A+j+I,V=no(i,o,"checkLocalDirectory"),H=Vs(o,i.options),G=function(t,e){return t===F?e!=$:Boolean(t)}(V,H),K=function(t,e){return t===F?e==J:Boolean(t)}(V,H);let Y=C;if(K&&(j||I)){const t=await na(l,k+A,j+I);Y=t.subarray(0,j),S.rawExtraField=t.subarray(j)}else S.rawExtraField=I?await na(l,k+A+j,I):C;K&&(S.rawFilename=Y),Ms(i,S,D,4,!0)&&eo(z,ds),function(t,e,r,n,a){const{rawFilename:s}=t,o=!a,i=t.Jt&&!(8192&~e.rawBitFlag);!n||i||r.length==s.length&&!r.some((t,e)=>t!=s[e])||to(o,a,"mismatched local file header (filename)"),(2057&e.rawBitFlag)!=(2057&t.rawBitFlag)&&to(o,a,gs),e.compressionMethod!=t.compressionMethod&&to(o,a,xs),e.bitFlag.dataDescriptor||i||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||to(o,a,Es)}(i,S,Y,K,G?F:z);const{lastAccessDate:X,creationDate:Q,uid:tt,gid:et}=S;X&&(e.lastAccessDate=X),Q&&(e.creationDate=Q),tt!==F&&e.uid===F&&(e.uid=tt),et!==F&&e.gid===F&&(e.gid=et);const rt=i.encrypted&&S.encrypted&&!U,nt=rt&&!p;if(U||(e.zipCrypto=nt),rt&&!(64&~S.rawBitFlag))throw new Error(Ya);const ot=U?F:Ve(w);if(0!=w&&8!=w&&9!=w&&!ot&&!U)throw new Error(Xa);if(rt){if(!nt&&(p.strength<1||p.strength>3))throw new Error(Ya);if(!O&&!T)throw new Error(Ka)}if(Z+E>l.size)throw new Error($a);const it=E,ct=je(l.createReadable({offset:Z,size:it})),lt=at(no(i,o,P)),dt=no(i,o,"checkPasswordOnly");let ft=no(i,o,"checkOverlappingEntry");const ut=no(i,o,"checkOverlappingEntryOnly");ut&&(ft=!0);const{onstart:pt,onprogress:mt,onend:wt}=o,ht=0!=w&&!U,bt=U?E:x,gt=9==w;let xt=no(i,o,W);gt&&(xt=!1);const Et=no(i,o,"checkCrc32"),vt=(Et===F?no(i,o,"checkSignature"):Et)&&!U&&(!rt||nt||p&&1==p.vendorVersion),St={options:{codecType:wr,password:O,rawPassword:T,zipCrypto:nt,encryptionStrength:p&&p.strength,checkCrc32:vt,checkAuthenticationCode:no(i,o,"checkAuthenticationCode"),passwordVerification:nt&&(v?g>>>8&r:b>>>24&r),outputSize:bt,crc32:b,compressed:ht,encrypted:rt,useWebWorkers:no(i,o,B),useCompressionStream:xt,transferStreams:no(i,o,L),deflate64:gt,format:ot?ot.format:F,codecURI:ot?ot.codecURI:F,compressionMethod:w,rawBitFlag:y,checkPasswordOnly:dt},config:c,ut:{signal:lt,size:it,onstart:pt,onprogress:mt,onend:wt}};let zt,kt;ft&&await async function({reader:t,$t:e,index:r,offset:n,crc32:a,compressedSize:o,uncompressedSize:i,dataOffset:c,dataDescriptor:l,extraFieldZip64:d,Kt:f}){let u=0;if(l&&(u=d?20:12),u){const r=await na(t,c+o,u+4),n=Dt(r);let l=r.length==u+4&&lo(n,0)==s;if(l){const t=Ws(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=Ws(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(Qa);throw t.overlappingEntry=e.$t,t}f.set(r,p)}({reader:l,$t:e,index:d,offset:k,crc32:b,compressedSize:E,uncompressedSize:x,dataOffset:Z,dataDescriptor:v||S.bitFlag.dataDescriptor,extraFieldZip64:m||S.extraFieldZip64,Kt:a});try{if(!ut){dt&&(t=new WritableStream),t=new $n(t),await ea(t,function(t,e,r){return Math.min(t,r?1032*e:e)}(bt,E,ht)),({writable:zt}=t);const{outputSize:e}=await Kr({readable:ct,writable:zt},St);if(t.size+=e,e!=bt)throw new Error(Ye)}}catch(e){if(e.outputSize!==F&&(t.size+=e.outputSize),!dt||e.message!=Yt)throw kt=e,e}finally{if((ta(t)||!no(i,o,q))&&zt&&!zt.locked){const t=zt.getWriter();if(kt)try{await t.abort(kt)}catch{}else await t.close()}}return dt||ut?F:t.getData?t.getData():zt}};function Us(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;r<e;r++)if(134630224==lo(t,r))return!0;return!1}function Is(t,e,r){let n=0;for(;r+f<=e.length&&lo(t,r)==i;)r+=f+co(t,r+28)+co(t,r+30)+co(t,r+32),n++;return n%65536?0:n}function js(t){if(t.length>=6){const e=Dt(t);if(lo(e,0)==o){const r=co(e,4);if(6+r<=t.length)return t.subarray(6,6+r)}}}function Cs(t,e,r){const n=t.rawBitFlag=co(e,r+2),a=!(1&~n),s=lo(e,r+6);Object.assign(t,{encrypted:a,version:co(e,r),bitFlag:{level:(6&n)>>1,dataDescriptor:!(8&~n),languageEncodingFlag:(n&x)==x},rawLastModDate:s,lastModDate:so(s),filenameLength:co(e,r+22),extraFieldLength:co(e,r+24)})}function Ms(t,e,r,n,a){const{rawExtraField:s}=e,o=e.extraField=new Map,i=Dt(s);let c=0,l=!1;try{for(;c<s.length;){const t=co(i,c),e=co(i,c+2);o.set(t,{type:t,data:s.slice(c+4,c+4+e)}),c+=4+e}}catch{l=!0}c>s.length&&(l=!0);const d=co(r,n+4);Object.assign(e,{signature:lo(r,n+10),crc32:lo(r,n+10),compressedSize:lo(r,n+14),uncompressedSize:lo(r,n+18)});const f=o.get(1);f&&(function(t,e){e.zip64=!0;const r=Dt(t.data),n=ks.filter(([t,r])=>e[t]==r),a=n.reduce((t,[,e])=>t+As[e].bytes,0);if(t.data.length<a)throw new Error(Ga);for(let a=0,s=0;a<n.length;a++){const[o,i]=n[a],c=As[i];e[o]=t[o]=c.Gt(r,s),s+=c.bytes}}(f,e),e.extraFieldZip64=f);const u=o.get(28789);u&&(Ns(u,sa,oa,e,t),e.extraFieldUnicodePath=u);const p=o.get(25461);p&&(Ns(p,ia,ca,e,t),e.extraFieldUnicodeComment=p);const m=o.get(w);m&&m.data.length>=7?(function(t,e,r){const n=Dt(t.data),a=io(n,4);Object.assign(t,{vendorVersion:io(n,0),vendorId:io(n,2),strength:a,originalCompressionMethod:r,compressionMethod:co(n,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=F)}(m,e,d),e.extraFieldAES=m):e.compressionMethod=d;const x=o.get(13);x&&(_s(x,e),e.extraFieldPkwareUnix=x);const E=o.get(22613);E&&(_s(E,e),e.extraFieldUnixType1=E);const v=o.get(10);v&&(function(t,e){const r=Dt(t.data);let n,a=4;try{for(;a<t.data.length&&!n;){const e=co(r,a),s=co(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=Dt(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:oo(a),lastAccessDate:oo(s),creationDate:oo(o)};Object.assign(t,i),Object.assign(e,i,{rawLastAccessDate:s,rawCreationDate:o})}}(v,e),e.extraFieldNTFS=v);const S=o.get(g);let z;if(S&&(z=Ps(S,e,!1),e.extraFieldUnix=S),!z){const t=o.get(b);t&&(Ps(t,e,!0),e.extraFieldInfoZip=t)}const k=o.get(h);k&&(function(t,e,r){if(!t.data.length)return;const n=Dt(t.data),a=io(n,0),s=[],o=[];r?(1&~a||(s.push(pa),o.push(ma)),2&~a||(s.push(wa),o.push(ha)),4&~a||(s.push(ya),o.push(ba))):t.data.length>=5&&(s.push(pa),o.push(ma));let i=1;s.forEach((r,a)=>{if(t.data.length>=i+4){const s=lo(n,i);e[r]=t[r]=new Date(1e3*(0|s));const c=o[a];t[c]=s}i+=4})}(k,e,a),e.extraFieldExtendedTimestamp=k);const A=o.get(y);return A&&(e.extraFieldUSDZ=A),l}function Ns(t,e,r,n,a){if(t.data.length<5)return void(t.valid=!1);const s=Dt(t.data),o=new _t;o.append(a[r]);const i=Dt(new Uint8Array(4));i.setUint32(0,o.get(),!0);const c=lo(s,1),l=io(s,0);Object.assign(t,{version:l,[e]:rn(t.data.subarray(5)),valid:1==l&&!a.bitFlag.languageEncodingFlag&&c==lo(i,0)}),t.valid&&(n[e]=t[e],n[e+"UTF8"]=!0)}function _s(t,e){if(t.data.length<8)return;const r=Dt(t.data),n={lastAccessDate:new Date(1e3*(0|lo(r,0))),lastModDate:new Date(1e3*(0|lo(r,4)))};t.data.length>=12&&(n.uid=co(r,8),n.gid=co(r,10)),Object.assign(t,n),Object.assign(e,n)}function Ps(t,e,r){try{const n=Dt(t.data);let a,s;if(r){let e=0;const r=io(n,e++),o=io(n,e++);a=Bs(t.data.subarray(e,e+o)),e+=o;const i=io(n,e++);s=Bs(t.data.subarray(e,e+i)),Object.assign(t,{version:r,uid:a,gid:s})}else t.data.length>=4&&(a=co(n,0),s=co(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 Bs(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function Ws(t,e,r){const n=lo(t,e);let a,s;return r?(a=fo(t,e+4),s=fo(t,e+12)):(a=lo(t,e+4),s=lo(t,e+8)),{crc32:n,compressedSize:a,uncompressedSize:s}}function Ls(t,e){return t.Ht?t.Ht(e):0}async function qs(t){return lo(Dt(await na(t,0,4)))}function Zs(t){return t===J||t===Q||t===$}function Vs(t,e){return Hs(t,Hs(e,Q))}function Hs(t,e){const r=t.strictness;if(r!==F){if(!Zs(r))throw new Error(ns);return r}const n=t.checkAmbiguity;return n===F?e:n?J:e==$?$:Q}function Gs(t,e){if(e==$)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(r.includes("..")||t.startsWith("/")||t.startsWith("\\\\")||vs.test(t))||e==J&&(r.includes(".")||r.includes(""))}function Ks(t,r){if(t!==F){const e=ct(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw new Error(ss);return e}return r==J?0:r==$?1/0:e}async function Ys(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 Xs(t,a)){const a=co(r,f+20);if(p+u+a==n){const a=await Qs(t,r,l,f,p,n,s);if(2==a){if(o||(o=Js(d,f,p)),c++,!e||c>1)break}else 1!=a||i||(i=Js(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 Xs(t,a)){const a=Js(c,l,d);s||(s=a);const f=await Qs(t,e,i,l,d,n,r);if(2==f)return a;1!=f||o||(o=a)}return o||s}(t,r,s)),{Yt:o,Xt:c}}async function*Xs(t,e){const r=t.size-e,n=await na(t,r,e),a=Dt(n);for(let t=n.length-u;t>=0;t--)lo(a,t)==c&&(yield[a,r,n,t,r+t])}function Js(t,e,r){return{offset:r,buffer:t.slice(e,e+u).buffer}}async function Qs(r,n,a,s,o,c,l){const f=co(n,s+10),u=lo(n,s+12),m=lo(n,s+16);if(f==e||u==t||m==t)return await $s(r,n,a,o-p,c,l)==d?2:0;if(!f&&!u)return 1;const w=co(n,s+6);for(const t of[o-u,Ls(r,w)+m])if(await $s(r,n,a,t,c,l)==i)return 2;return 0}async function $s(t,e,r,n,a,s){return n<0||n+4>a?F:n>=r?lo(e,n-r):s.count>0?(s.count--,lo(Dt(await na(t,n,4)),0)):F}function to(t,e,r){t?ro(r):eo(e,r)}function eo(t,e,r){if(!t.some(t=>t.reason==e)){const n={reason:e};r!==F&&(n.filename=r),t.push(n)}}function ro(t){const e=new Error(ts);throw e.reason=t,e}function no(t,e,r){return e[r]===F?t.options[r]:e[r]}function ao(t,e,r){return nt(no(t,e,r))}function so(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 oo(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function io(t,e){return t.getUint8(e)}function co(t,e){return t.getUint16(e,!0)}function lo(t,e){return t.getUint32(e,!0)}function fo(t,e){const r=t.getBigUint64(e,!0);if(r>Rs)throw new Error(os);return Number(r)}var uo=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:ts,ERR_BAD_FORMAT:La,ERR_CENTRAL_DIRECTORY_NOT_FOUND:Va,ERR_ENCRYPTED:Ka,ERR_ENCRYPTED_CENTRAL_DIRECTORY:es,ERR_ENTRY_DATA_OUT_OF_BOUNDS:$a,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:Za,ERR_EOCDR_NOT_FOUND:qa,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:Ga,ERR_INVALID_AUTHENTICATION_CODE:Kt,ERR_INVALID_COMPRESSED_DATA:Xe,ERR_INVALID_CRC32:Je,ERR_INVALID_FILENAME_VALIDATION:as,ERR_INVALID_MAX_APPENDED_DATA_SIZE:ss,ERR_INVALID_PASSWORD:Ht,ERR_INVALID_SIGNATURE:Gt,ERR_INVALID_STRICTNESS:ns,ERR_INVALID_UNCOMPRESSED_SIZE:Ye,ERR_LOCAL_FILE_HEADER_NOT_FOUND:Ha,ERR_OVERLAPPING_ENTRY:Qa,ERR_SPLIT_ZIP_FILE:Ja,ERR_UNSAFE_FILENAME:rs,ERR_UNSUPPORTED_COMPRESSION:Xa,ERR_UNSUPPORTED_ENCRYPTION:Ya,ERR_UNSUPPORTED_UINT64:os,ERR_WORKER_STARTUP_TIMEOUT:br,WARNING_APPENDED_DATA:ps,WARNING_COMPRESSED_PATCHED_DATA:ls,WARNING_DUPLICATE_FILENAME:ys,WARNING_MALFORMED_EXTRA_FIELD:ds,WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG:gs,WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD:xs,WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES:Es,WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY:bs,WARNING_PREPENDED_CENTRAL_DIRECTORY:ws,WARNING_PREPENDED_DATA:ms,WARNING_TRAILING_CENTRAL_DIRECTORY_DATA:hs,WARNING_UNKNOWN_VERSION:cs,WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA:fs,WARNING_UNSORTED_CENTRAL_DIRECTORY:is,WARNING_WRAPPED_ENTRIES_COUNT:us,ZipReader:Ds,ZipReaderStream:Fs,isZipFile:Os});const po="File already exists",mo="Zip file comment exceeds 64KB",wo="Invalid zip file comment (must be a Uint8Array)",ho="File entry comment exceeds 64KB",yo="Invalid file entry comment (must be a string)",bo="Invalid date (must be a valid Date instance)",go="File entry name exceeds 64KB",xo="Version exceeds 65535",Eo="The strength must equal 1, 2, or 3",vo="Encryption is not supported in USDZ files",So="Encryption is not supported when the 'passThrough' option is set",zo="Invalid extra field (must be a Map)",ko="Invalid extra field type (must be integer 0..65535)",Ao="Invalid extra field data (must be a Uint8Array)",Ro="Extra field data exceeds 64KB",Do=-2147483648,Fo=2147483647,Oo=BigInt(0),To=BigInt("0x7fffffffffffffff"),Uo="Zip64 is not supported (set the 'zip64' option to 'true')",Io="Undefined uncompressed size",jo="Undefined compression method",Co="Undetermined size",Mo="Undefined reader",No="Zip file not empty",_o="Invalid uid (must be integer 0..2^32-1)",Po="Invalid gid (must be integer 0..2^32-1)",Bo="Invalid UNIX mode (must be integer 0..65535)",Wo="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",Lo="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",qo="Invalid msdosAttributesRaw (must be integer 0..255)",Zo="Invalid msdosAttributes (must be an object with boolean flags)",Vo="Invalid level (must be integer 0..9)",Ho="Signature data exceeds 64KB",Go=new Uint8Array([7,0,2,0,65,69,3,0,0]),Ko="infozip",Yo="unix";let Xo=0;const Jo=[];class Qo{constructor(t,e={}){t=new $n(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[V]===F?t.size||t.writable.size||0:e[V],ne:e[V]===F?0:e[V]-(t.size||t.writable.size||0),ae:new Set,se:[],oe:0,ie:F})}prependZip(t){return ei(this,async function(t,e){if(t.re.size)throw new Error(No);await t.ce(e)}(this,t))}appendZip(t){return ei(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 Qn(t),await ea(t),t.size!==F&&t.readUint8Array||(t=new zn(await Ce(t.readable)),await ea(t));const{ZipReader:r}=await Promise.resolve().then(function(){return uo}),o=new r(t),i=await o.getEntries();await o.close(),await ea(e.writer);const{directoryOffset:d}=o;i.forEach(({filename:t})=>{if(n.has(t))throw new Error(po);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 Dt(await na(t,0,4)).getUint32(0,!0)==a}(t)||(await zi(e.writer,vi()),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)=>Ei(e,t)-Ei(e,r));let i=0;for(const r of o){const n=Ei(e,r);await gi(t,e,i,n-i),hi(a,await xi(e,n))&&await a.closeDisk(),s.set(r,{offset:yi(t,a),diskNumberStart:mi(a)}),i=n}await gi(t,e,i,n-i)}else{const a=t.offset;await gi(t,e,0,n),r.forEach(t=>s.set(t,{offset:a+Ei(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=bi(f||C),t.extraFieldAES&&(d=99);const h=qi(f),y=Boolean(l)&&l.uncompressedSize!==F,b=Boolean(l)&&l.compressedSize!==F,g=-7&Vi(p,m,w,o,d)|p<<1,{fe:x,ue:E}=Zi({version:e,bitFlag:g,compressionMethod:d,uncompressedSize:i,compressedSize:c,rawLastModDate:r,rawFilename:n,pe:b,me:y,extraFieldLength:h}),{crc32:v}=t;v!==F&&Bi(E,10,v);const{offset:S,diskNumberStart:z}=u.get(t);Object.assign(t,{me:y,pe:b,offset:S,diskNumberStart:z,we:!1,he:C,ye:C,be:C,ge:C,xe:C,rawExtraField:f,Ee:C,extendedTimestamp:!1,fe:x,ue:E}),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(Oi(e,s=Object.assign({},s),Ta)&&!n.endsWith(k)&&(n+=k),e.re.has(n))throw new Error(po);e.re.add(n),Xo<yt().maxWorkers?Xo++:await new Promise(t=>Jo.push(t));try{return await async function(e,n,a,s){const o=ai(e,n,s);({name:n}=o);const i=si(e,n,s),{comment:c}=i,l=s[Ca];e.ee.set(n,F);const d=e.ie,f={};let u,p;i.ve.keepOrder&&(f.Se=new Promise(t=>u=t)),e.ie=f;try{const{ve:c}=i;0==c.level||c.compressionMethod!==F||c.passThrough||await Sr(yt())||(c.level=0);const l=await async function(t,e,{ve:r},n){if(r.passThrough&&!e&&!Oi(t,n,Ta))throw new Error(Mo);let a;return e&&(e=new Qn(e),await ea(e),({size:a}=e)),Object.assign({reader:e},ii(t,Boolean(e),a,r,n))}(e,a,i,s);({reader:a}=l);const m=wi(e.writer),w=mi(e.writer),h=ci(s=Object.assign({},s,o.ve,i.ve,l.ve,{signature:s[ja],crc32:s.crc32===F?s[ja]:s.crc32,offset:e.offset-m,diskNumberStart:w,[H]:e.options[H]})),y=fi(s),b=qi(h.ze,y.ke);p=await async function(e,n,a,s,o){const{ee:i,writer:c}=e,{keepOrder:l,dataDescriptor:d,Ae:f,signal:u}=o,{Re:p,$t:m,De:w,Fe:h}=s,y=e.options[H];let b,g,x,E,v,S,z=m,k=0;const R=l&&w?w.Se:F;i.set(n,z);try{o.bufferedWrite||!l||e.le||e.oe||!d&&!f?(b=!0,e.oe++,S=o.createTempStream?await o.createTempStream():new TransformStream(F,F,{highWaterMark:O}),S.size=0,await ea(c)):(S=c,await R,await D()),await ea(S);const m=wi(c);e.te&&!b&&await Si(e,c),y&&!b&&li(s,e.offset-m);const{ze:w}=p;b||await T();const h=mi(c),g=yi(e,c);if(z.diskNumberStart=h,b||(E=!0,v=c.size,await zi(S,w)),z=await async function(e,n,{diskNumberStart:a,Se:s},o,i,c){const{Re:l,Oe:d,Te:f}=o,{fe:u,ue:p,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,he:x,Ue:E,be:v,Ie:S,ge:z,xe:k,ye:A}=l,{ke:R}=d,{rawFilename:D,lastAccessDate:O,creationDate:T,password:U,rawPassword:I,level:j,zip64:C,me:M,pe:N,zipCrypto:_,dataDescriptor:P,directory:B,executable:W,versionMadeBy:L,rawComment:q,rawExtraField:Z,Ee:V,useWebWorkers:H,transferStreams:G,onstart:K,onprogress:Y,onend:X,signal:J,encryptionStrength:Q,extendedTimestamp:$,msDosCompatible:tt,internalFileAttributes:et,externalFileAttributes:rt,uid:nt,gid:at,unixMode:st,symlink:ot,setuid:it,setgid:ct,sticky:lt,unixExternalUpper:dt,msdosAttributesRaw:ft,msdosAttributes:ut,useCompressionStream:pt,passThrough:mt,format:wt,codecURI:ht}=c,yt={Se:s,versionMadeBy:L,zip64:C,directory:Boolean(B),executable:Boolean(W),filenameUTF8:!0,rawFilename:D,commentUTF8:!0,rawComment:q,he:x,Ue:E,be:v,ge:z,xe:k,ye:A,rawExtraField:Z,Ee:V,extendedTimestamp:$,msDosCompatible:tt,internalFileAttributes:et,externalFileAttributes:rt,diskNumberStart:a,uid:nt,gid:at,unixMode:st,symlink:Boolean(ot),setuid:it,setgid:ct,sticky:lt,unixExternalUpper:dt,msdosAttributesRaw:ft,msdosAttributes:ut};let{crc32:bt,uncompressedSize:gt}=c,xt=0;mt||(gt=0);const{writable:Et}=n;if(e){const a=je(aa(e)),s=e.size,o={options:{codecType:mr,inputSize:s,level:j,rawPassword:I,password:U,encryptionStrength:Q,zipCrypto:h&&_,passwordVerification:h&&_&&w>>8&r,computeCrc32:!mt,compressed:y&&!mt,encrypted:h&&!mt,useWebWorkers:H,useCompressionStream:pt,transferStreams:G,format:wt,codecURI:ht,compressionMethod:g},config:i,ut:{signal:J,size:s,onstart:K,onprogress:Y,onend:X}};try{const e=await Kr({readable:a,writable:Et},o);if(xt=e.outputSize,n.size+=xt,mt||(gt=e.inputSize,h&&!_||(bt=e.crc32)),!N&&xt>=t||!M&&gt>=t)throw new Error(Uo)}catch(t){throw t.outputSize!==F&&(n.size+=t.outputSize),t}}return function({crc32:t,compressedSize:e,uncompressedSize:r,Re:n,Oe:a},{zip64:s,zipCrypto:o,passThrough:i,dataDescriptor:c}){const{ue:l,encrypted:d}=n,{je:f,Ce:u}=a;d&&!o&&!i||t===F||(Bi(l,10,t),c&&Bi(f,u,t)),s?c&&(Wi(f,u+4,BigInt(e)),Wi(f,u+12,BigInt(r))):(Bi(l,14,e),Bi(l,18,r),c&&(Bi(f,u+4,e),Bi(f,u+8,r)))}({crc32:bt,compressedSize:xt,uncompressedSize:gt,Re:l,Oe:d},c),P&&await zi(n,R),Object.assign(yt,{uncompressedSize:gt,compressedSize:xt,lastModDate:m,rawLastModDate:w,creationDate:T,lastAccessDate:O,encrypted:Boolean(h),zipCrypto:Boolean(_),size:f+xt,compressionMethod:g,version:b,fe:u,ue:p,signature:bt,crc32:!h||_||mt?bt:F,Ie:S,me:M,pe:N}),yt}(a,S,z,s,yt(),o),b||(E=!1),i.set(n,z),z.filename=n,b){if(await Promise.all([S.writable.getWriter().close(),R]),await D(),e.te&&await Si(e,c),x=!0,v=c.size,await T(),z.diskNumberStart=mi(c),z.offset=yi(e,c),y){const t=s.Te;li(s,e.offset-wi(c)),z.size+=s.Te-t}!function({rawFilename:t,encrypted:e,zip64:r,Ue:n,crc32:a,compressedSize:s,uncompressedSize:o,me:i,pe:c},l,{dataDescriptor:d,passThrough:f}){if(d||((!e||f&&a!==F)&&Bi(l,14,a),c||Bi(l,18,s),i||Bi(l,22,o)),r&&n){const e=A+qi(t)+4;Wi(l,e,BigInt(o)),Wi(l,e+8,BigInt(s))}}(z,p.Me,o),await zi(c,p.ze),await ki(S.readable,c,u,t=>k+=t),c.size+=S.size,x=!1}else z.diskNumberStart=h,z.offset=g;return e.offset+=z.size,z}catch(t){if(x||E){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-v,b&&(e.offset+=k)}throw i.delete(n),t}finally{if(b&&e.oe--,h&&h(R),g&&g(),b&&S&&S.dispose)try{await S.dispose()}catch{}}async function D(){e.le=!0;const{de:t}=e;e.de=new Promise(t=>g=()=>{e.le=!1,t()}),await t}async function T(){hi(c,qi(p.ze))&&await c.closeDisk()}}(e,n,a,{Re:h,Oe:y,Te:b,$t:f,De:d,Fe:u},s)}catch(t){throw e.ee.delete(n),t}finally{u&&u(d&&d.Se)}return Object.assign(p,{name:n,comment:c,extraField:l,[Ea]:p.internalFileAttributes,[va]:p.externalFileAttributes}),new Wa(p)}(e,n,a,s)}catch(t){throw e.re.delete(n),t}finally{const t=Jo.shift();t?t():Xo--}}(s,e,n,a);o.add(i);const c=()=>o.delete(i);return Promise.prototype.then.call(i,c,c),ei(s,i)}remove(t){const{re:e,ee:r}=this;if(typeof t==j&&(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=C,n={}){const a=this,{ae:s,writer:p}=this,{writable:m}=p;if(!(r instanceof Uint8Array))throw new Error(wo);if(qi(r)>e)throw new Error(mo);for(;s.size;)await Promise.allSettled(Array.from(s));await Promise.allSettled(a.se.map(t=>t.Ne));const w=a.se.filter(t=>t.error&&!t._e);if(w.length){const t=w.map(t=>t.error);w.forEach(t=>t._e=!0);const[e]=t;try{e.entryErrors=t}catch{}throw e}return await async function(r,n,a){const s=ui(r.ee),{Pe:p,Be:m,We:w}=await async function(r,n,a){const{ee:s,writer:o}=r,c=new Uint8Array(n);await ea(o);let l=0,d=0,u=mi(o),p=wi(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:E,rawExtraField:v,Ee:S,rawComment:z,versionMadeBy:k,fe:A,ue:R,me:D,pe:F,we:O,Le:T,internalFileAttributes:U,externalFileAttributes:I,diskNumberStart:j,uncompressedSize:C,compressedSize:M}=n,N=qi(y,b,g,x,E,v,S),_=f+qi(h,z)+N;hi(o,l+_-d)&&(await zi(o,c.slice(d,l)),d=l,m=0,await o.closeDisk()),0==r&&(u=mi(o),p=wi(o)),D||Bi(R,18,C),F||Bi(R,14,M),(T||O)&&n.version<45&&Pi(R,0,45);const P=pi(_);if(P.qe(i),P.Ze(k),P.Ve(A.subarray(0,24)),P.Ze(N),P.Ze(qi(z)),P.Ze(O?e:j),P.Ze(U),P.qe(I),P.qe(T?t:w),P.Ve(h),P.Ve(y),P.Ve(b),P.Ve(g),P.Ve(x),P.Ve(E),P.Ve(v),P.Ve(S),P.Ve(z),Li(c,P.Wt,l),l+=_,m++,a.onprogress)try{await a.onprogress(r+1,s.size,new Wa(n))}catch{}}return await zi(o,d?c.slice(d):c),{Pe:{diskNumber:u,diskOffset:p},Be:{diskNumber:mi(o),He:m},We:c}}(r,s,a),h=await async function(t,r,n){const a=Ui(t,n,K);if(a){const n=await a(r),s=qi(n);if(s>e)throw new Error(Ho);const i=pi(6+s);i.qe(o),i.Ze(s),i.Ve(n);const{writer:c}=t;return hi(c,qi(i.Wt))&&await c.closeDisk(),await zi(c,i.Wt),6+s}return 0}(r,w,a);await async function(r,n,a,s){const{writer:o}=r,{Pe:i,Be:f,Ge:p}=s;let{Ke:m}=s,w=r.ee.size,h=i.diskNumber,y=yi(r,i);const b=qi(n);if(b>e)throw new Error(mo);let g=Oi(r,a,Aa),x=mi(o);if(hi(o,(g?98:u)+b)&&x++,y>=t||m>=t||w>=e||x>=e){if(!1===g)throw new Error(Uo);g=!0}const E=pi(g?98:u);hi(o,qi(E.Wt)+b)&&await o.closeDisk(),x=mi(o);let v=x==f.diskNumber?f.He:0;g&&(E.qe(l),E.Ye(44),E.Ze(45),E.Ze(45),E.qe(x),E.qe(h),E.Ye(v),E.Ye(w),E.Ye(m),E.Ye(y),E.qe(d),E.qe(x),E.Ye(BigInt(yi(r,o))+BigInt(m)+BigInt(p)),E.qe(x+1),Oi(r,a,"supportZip64SplitFile",!0)&&(x=e,h=e),v=e,w=e,y=t,m=t),E.qe(c),E.Ze(x),E.Ze(h),E.Ze(v),E.Ze(w),E.qe(m),E.qe(y),E.Ze(b),await zi(o,E.Wt),b&&await zi(o,n)}(r,n,a,{Pe:p,Be:m,Ke:s,Ge:h})}(a,r,n),!ta(p)&&Oi(a,n,q)||await m.getWriter().close(),p.getData?p.getData():m}}class $o{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new Qo(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 ri(e,t)}}()}});return ni(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 ni(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 ri(r,t),t}try{return await r.close(t,e)}catch(t){throw await ri(r,t),t}}}class ti extends Promise{then(t,e){const{Xe:r}=this;return r&&(r._e=!0),super.then(t,e)}}function ei(t,e){const r=new ti((t,r)=>Promise.prototype.then.call(e,t,r)),n={};return r.Xe=n,n.Ne=Promise.prototype.then.call(r,F,t=>n.error=t),t.se.push(n),r}async function ri(t,e){try{await t.writer.writable.abort(e)}catch{}}function ni(t,e,r){t.ae.add(e),e.catch(t=>{try{r(t)}catch{}})}function ai(n,a,s){let o=Oi(n,s,ka),i=Oi(n,s,Fa,o?20:768);const c=Oi(n,s,Ua),l=Ci(n,s,"uid"),d=Ci(n,s,"gid");let f=Ci(n,s,Ma),u=Oi(n,s,"unixExtraFieldType"),p=Oi(n,s,Na),m=Oi(n,s,_a),w=Oi(n,s,Pa);if(it(l,t,_o),it(d,t,Po),it(f,e,Bo),u!==F&&u!==Ko&&u!==Yo)throw new Error(Wo);if(u===Yo&&(l!==F&&l>e||d!==F&&d>e))throw new Error(Lo);u!==F||l===F&&d===F||(u=Ko);let h=Ci(n,s,Sa),y=Oi(n,s,za);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),it(h,r,qo),y&&(typeof y!==I||Array.isArray(y)))throw new Error(Zo);if(i>e)throw new Error(xo);let g=Ii(n,s,xa,va);const x=g!==F;x||(g=0),!s[Ta]&&a.endsWith(k)&&(s[Ta]=!0);const A=Oi(n,s,Ta);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|v:f&E||(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&E);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 si(t,r,n){const a=Ui(t,n,"encodeText")||Bt;let s=a(r,Y);if(s===F&&(s=Bt(r)),qi(s)>e)throw new Error(go);const o=n[ia]||"";if(typeof o!=j)throw new Error(yo);let i=a(o,X);if(i===F&&(i=Bt(o)),qi(i)>e)throw new Error(ho);const c=Oi(t,n,Da);if(c!==F&&c>e)throw new Error(xo);const l=Ti(t,n,pa,new Date),d=Oi(t,n,ma),f=Ti(t,n,wa),u=Ti(t,n,ya),p=Ii(t,n,ga,Ea,0),m=Oi(t,n,_),w=Oi(t,n,M),h=Oi(t,n,N);st(w,h);const y=Ci(t,n,"encryptionStrength",3),b=Oi(t,n,Oa),g=Oi(t,n,"extendedTimestamp",!0),x=Oi(t,n,"ntfsTimestamp"),E=Oi(t,n,"keepOrder",!0),v=Oi(t,n,B),S=Oi(t,n,L),z=Oi(t,n,"bufferedWrite"),k=Ui(t,n,"createTempStream"),A=Oi(t,n,"dataDescriptorSignature",!0),R=at(Oi(t,n,P)),D=Oi(t,n,"useUnicodeFileNames",!0),O=Oi(t,n,Ia),T=m||O===F?F:Ve(O);if(!m&&O!==F&&0!==O&&8!==O&&!T)throw new Error("Compression method not supported");let U=Ci(t,n,"level");if(it(U,9,Vo),t.options[H]){if(w!==F||h!==F)throw new Error(vo);U===F&&O===F&&(U=0)}m&&(U=F);let I=Oi(t,n,W),C=Oi(t,n,Z);z&&C===F&&(C=!1),(C===F||b&&!m)&&(C=!0),U!==F&&6!=U&&(I=!1);const q=Oi(t,n,Aa);if(!(b||w===F&&h===F||Number.isInteger(y)&&y>=1&&y<=3))throw new Error(Eo);const V=oi(n[Ca]),G=oi(n.localExtraField),K=oi(n.centralExtraField);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:E,useWebWorkers:v,transferStreams:S,bufferedWrite:z,createTempStream:k,dataDescriptorSignature:A,signal:R,useUnicodeFileNames:D,compressionMethod:O,format:T?T.format:F,codecURI:T?T.codecURI:F,Je:T?T.versionNeeded:F,level:U,useCompressionStream:I,dataDescriptor:C,zip64:q,rawExtraField:V,Qe:G,Ee:K}}}function oi(t){if(!t)return C;if(!(t instanceof Map))throw new Error(zo);let r=0,n=0;t.forEach((t,n)=>{if(ot(n,e,ko),!(t instanceof Uint8Array))throw new Error(Ao);if(qi(t)>e)throw new Error(Ro);r+=4+qi(t)});const a=new Uint8Array(r),s=Dt(a);return t.forEach((t,e)=>{Pi(s,n,e),Pi(s,n+2,qi(t)),Li(a,t,n+4),n+=4+qi(t)}),a}function ii(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[la],h===F)throw new Error(Io);if(m===F)throw new Error(jo)}const y=!0===u,b=Oi(e,s,Ra);if(r&&o&&!b&&qi(c,l))throw new Error(So);const g=r&&(Boolean(c&&qi(c)||l&&qi(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?Mi(h)+x:n):n===F?(f=!0,(u||u===F)&&(u=!0,h=w=4294967296)):(s.uncompressedSize=h=n,w=(Ni(m,p)?Mi(h):h)+x));const E=!(g||r&&(0!==n||o)||Ni(m,p));E&&!i&&Oi(e,s,Z)===F&&(f=!1);const v=y||h>=t,S=y||w>=t;if(v||S){if(!1===u)throw new Error(Uo);u=!0}return u=u||!1,{$e:w,ve:{dataDescriptor:f,Ae:E,zip64:u,me:v,pe:S,uncompressedSize:h,level:p,compressionMethod:m,encrypted:g}}}function ci(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,Qe:y,encryptionStrength:x,extendedTimestamp:E,ntfsTimestamp:v,passThrough:S,encrypted:z,me:k,pe:O,uncompressedSize:T,crc32:U}=t;let{version:I,compressionMethod:j}=t;const M=!p&&Ni(j,c);let N;const _=S||!M,P=l&&(t.bufferedWrite||!u||!k&&!O||_),B=P||l&&u&&(k||O);if(l&&(k||O)){const t=20,e=pi(t);if(e.Ze(1),e.Ze(t-4),N=e.Wt,P&&(e.Ye(T),_)){const t=z?d?12:16+4*x:0;e.Ye(S?0:T+t)}}else N=C;let W,L,q,Z,V;if(z&&!d){const t=pi(qi(Go)+2);t.Ze(w),t.Ve(Go),W=t.Wt,W[8]=x}else W=C;if(E){const t=Ri(a),e=Di(t);if(e){const e=9+(o?4:0)+(i?4:0),r=pi(e);Z=1+(o?2:0)+(i?4:0),r.Ze(h),r.Ze(e-4),r.er(Z),r.qe(t),o&&r.qe(Fi(Ri(o))),i&&r.qe(Fi(Ri(i))),q=r.Wt}else q=C;if(v===F?!e||Boolean(o||i):v)try{const t=Ai(a),e=pi(36);e.Ze(10),e.Ze(32),e.rr(4),e.Ze(1),e.Ze(24),e.Ye(t),e.Ye(o?Ai(o):t),e.Ye(i?Ai(i):t),L=e.Wt}catch{L=C}else L=C}else L=q=C;try{const{uid:r,gid:n,unixExtraFieldType:a}=t;if(a!=Ko||r===F&&n===F)if(a!=Yo||r===F&&n===F)V=C;else{const t=pi(8);t.Ze(g),t.Ze(4),t.Ze((r===F?0:r)&e),t.Ze((n===F?0:n)&e),V=t.Wt}else{const t=di(r===F?0:r),e=di(n===F?0:n),a=3+t.length+e.length,s=pi(4+a);s.Ze(b),s.Ze(a),s.er(1),s.er(t.length),s.Ve(t),s.er(e.length),s.Ve(e),V=s.Wt}}catch{V=C}j===F&&(j=M?8:0),I===F&&(I=0!=j||p||z?20:10);const{Je:G}=t;M&&G!==F&&(I=I>G?I:G),l&&(I=I>45?I:45),z&&!d&&(I=I>51?I:51,S&&U!==F&&(W[4]=1),Pi(Dt(W),9,j),j=99);const K=B?qi(N):0,Y=K+qi(W,q,L,V,m,y);if(Y+(t[H]?67:0)>e)throw new Error(Ro);const X=new Date(2e3*Math.ceil(Math.floor(a.getTime()/1e3)/2)),{fe:J,ue:Q,rawLastModDate:$}=Zi({version:I,bitFlag:Vi(c,f,u,z,j),compressionMethod:j,uncompressedSize:T,lastModDate:X<D?D:X>R?R:X,rawLastModDate:s,rawFilename:r,pe:O,me:k,extraFieldLength:Y}),tt=pi(A+qi(r)+Y),et=tt.Wt,rt=Dt(et);return tt.qe(n),tt.Ve(J),tt.Ve(r),B&&tt.Ve(N),tt.Ve(W),tt.Ve(q),tt.Ve(L),tt.Ve(V),tt.Ve(m),tt.Ve(y),u&&(O||Bi(rt,18,0),k||Bi(rt,22,0)),{ze:et,Me:rt,fe:J,ue:Q,lastModDate:a,rawLastModDate:$,encrypted:z,compressed:M,version:I,compressionMethod:j,Ie:Z,he:C,Ue:K,be:q,ge:L,xe:V,ye:W,extraFieldLength:Y}}function li(t,e){const{Re:r}=t;let{ze:n,extraFieldLength:a}=r,s=64-(e+qi(n))%64;s<4&&(s+=64);const o=new Uint8Array(s),i=Dt(o);Pi(i,0,y),Pi(i,2,s-4);const c=n;r.ze=n=new Uint8Array(qi(c)+s),Li(n,c),Li(n,o,qi(c));const l=Dt(n);Pi(l,28,a+s),r.Me=l,t.Te+=s}function di(t){const e=new Uint8Array(4);Dt(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function fi({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let n,a=C,o=0,i=t?20:12;return r&&(i+=4),e&&(a=new Uint8Array(i),n=Dt(a),r&&(o=4,Bi(n,0,s))),{ke:a,je:n,Ce:o}}function ui(r){let n=0;for(const[,a]of r){const{rawFilename:r,ye:s,rawComment:o,ge:i,xe:c,rawExtraField:l,Ee:d,extendedTimestamp:u,Ie:p,lastModDate:m,me:w,pe:y,uncompressedSize:b,compressedSize:g}=a,x=a.offset>=t,E=a.diskNumberStart>=e;let v,S;if(x||E||w||y){const t=4+(w?8:0)+(y?8:0)+(x?8:0)+(E?4:0),e=pi(t);e.Ze(1),e.Ze(t-4),w&&e.Ye(b),y&&e.Ye(g),x&&e.Ye(a.offset),E&&e.qe(a.diskNumberStart),v=e.Wt}else v=C;a.he=v,a.Le=x,a.we=E;const z=Ri(m);if(u&&Di(z)){const t=pi(9);t.Ze(h),t.Ze(5),t.er(p),t.qe(z),S=t.Wt}else S=C;a.be=S;const k=qi(v,s,i,c,S,l,d);if(k>e)throw new Error(Ro);n+=f+qi(r,o)+k}return n}function pi(t){const e=new Uint8Array(t),r=Dt(e);let n=0;return{Wt:e,er:t=>{!function(t,e,r){t.setUint8(e,r)}(r,n,t),n+=1},Ze:t=>{Pi(r,n,t),n+=2},qe:t=>{Bi(r,n,t),n+=4},Ye:t=>{Wi(r,n,BigInt(t)),n+=8},Ve:t=>{Li(e,t,n),n+=qi(t)},rr:t=>n+=t}}function mi(t){const{diskNumber:e=0}=t;return e}function wi(t){const{diskOffset:e=0}=t;return e}function hi(t,e){const{availableSize:r=O}=t;return e>r}function yi(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.ne:0)}function bi(t){const e=Dt(t);let r=0;for(;r+4<=qi(t);){const n=4+_i(e,r+2);if(1==_i(e,r))return bi(At(t.subarray(0,r),t.subarray(Math.min(r+n,qi(t)))));r+=n}return t}async function gi(t,e,r,n){if(n>0){const{writer:a}=t;let s=0;try{await ki(aa(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 xi(t,e){const r=await na(t,e,A);if(qi(r)<A)return A;const n=Dt(r);return A+_i(n,26)+_i(n,28)}function Ei(t,{offset:e,diskNumberStart:r}){return e+(t.Ht?t.Ht(r):0)}function vi(){const t=new Uint8Array(4);return Bi(Dt(t),0,a),t}async function Si(t,e){delete t.te,await zi(e,vi()),t.offset+=4}async function zi(t,e){const{writable:r}=t,n=r.getWriter();try{await n.ready,t.size+=qi(e),await n.write(e)}finally{n.releaseLock()}}async function ki(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(qi(t))}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}}function Ai(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<Oo?Oo:e>To?To:e}}function Ri(t){return Math.floor(t.getTime()/1e3)}function Di(t){return t>=Do&&t<=Fo}function Fi(t){return Math.min(Fo,Math.max(Do,t))}function Oi(t,e,r,n){const a=e[r]===F?t.options[r]:e[r];return a===F?n:a}function Ti(t,e,r,n){const a=Oi(t,e,r,n);if(null===a)return n;if(a!==F&&(typeof a.getTime!=U||Number.isNaN(a.getTime())))throw new Error(bo);return a}function Ui(t,e,r){return nt(Oi(t,e,r))}function Ii(t,e,r,n,a){const s=ji(e,r,n),o=s===F?ji(t.options,r,n):s;return o===F?a:o}function ji(t,e,r){return t[e]===F?t[r]:t[e]}function Ci(t,e,r,n){return ct(Oi(t,e,r,n))}function Mi(t){return t+5*(Math.floor(t/16383)+1)}function Ni(t,e){return t===F?e===F||e>0:0!==t}function _i(t,e){return t.getUint16(e,!0)}function Pi(t,e,r){t.setUint16(e,r,!0)}function Bi(t,e,r){t.setUint32(e,r,!0)}function Wi(t,e,r){t.setBigUint64(e,r,!0)}function Li(t,e,r){t.set(e,r)}function qi(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function Zi({version:e,bitFlag:r,compressionMethod:n,uncompressedSize:a,compressedSize:s,lastModDate:o,rawLastModDate:i,rawFilename:c,pe:l,me:d,extraFieldLength:f}){const u=pi(26),p=u.Wt,m=Dt(p);if(u.Ze(e),u.Ze(r),u.Ze(n),i===F){const t=new Uint32Array(1),e=Dt(t);Pi(e,0,(o.getHours()<<6|o.getMinutes())<<5|o.getSeconds()/2),Pi(e,2,(o.getFullYear()-1980<<4|o.getMonth()+1)<<5|o.getDate()),i=t[0]}return u.qe(i),u.rr(4),l||s!==F?u.qe(l?t:s):u.rr(4),d||a!==F?u.qe(d?t:a):u.rr(4),u.Ze(qi(c)),u.Ze(f),{fe:p,ue:m,rawLastModDate:i}}function Vi(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}function Hi(){const{CompressionStream:t,DecompressionStream:e,CompressionStreamFallback:r,DecompressionStreamFallback:n}=yt(),a=[{compressionMethod:0,compression:!0,decompression:!0,registered:!1},{compressionMethod:8,compression:Gi(r,Qe)||Gi(t,Qe)||Gi(t,tr),decompression:Gi(n,Qe)||Gi(e,Qe)||Gi(e,tr),registered:!1},{compressionMethod:9,compression:!1,decompression:Gi(n,$e)||Gi(e,$e),registered:!1}];for(const t of He()){const e=Ge(t.format);a.push({compressionMethod:t.compressionMethod,compression:e?typeof e.CompressionStream==U:F,decompression:e?typeof e.DecompressionStream==U:F,registered:!0})}return a}function Gi(t,e){if(!t)return!1;const{nr:r}=t;return r?r.includes(e):or(t,e)}const Ki="2.9.0",Yi=1048576,Xi=".zip.js-temp";function Ji(t={}){const{thresholdBytes:e=Yi,directoryName:r=Xi,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 Qi=1048576;function $i(t={}){const{thresholdBytes:e=Qi}=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=Ce(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 tc=1048576,ec=".zip.js-temp",rc="createSyncAccessHandle is only available in dedicated workers";function nc(t={}){const{thresholdBytes:e=tc,directoryName:r=ec,getDirectory:n}=t;if(!(n||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw new Error(rc);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{zt({baseURI:import.meta.url})}catch{}const ac="deflate",sc="deflate-raw",oc="deflate64-raw",ic="gzip";let cc,lc,dc,fc,uc;function pc(t,e,r={}){if(!cc){const t=new Error("WASM module not loaded");throw t.cause=uc,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.ar=lc(a),this.in=lc(s),this.inBufferSize=s,!this.ar||!this.in)throw new Error("allocation failed");if(this.sr=new Uint8Array(a),t?(this.ir=cc.deflate_process,this.cr=cc.deflate_last_consumed,this.lr=cc.deflate_end,this.dr=cc.deflate_new(),r=e===ic?cc.deflate_init_gzip(this.dr,n):e===sc?cc.deflate_init_raw(this.dr,n):cc.deflate_init(this.dr,n)):e===oc?(this.ir=cc.inflate9_process,this.cr=cc.inflate9_last_consumed,this.lr=cc.inflate9_end,this.dr=cc.inflate9_new(),r=cc.inflate9_init_raw(this.dr)):(this.ir=cc.inflate_process,this.cr=cc.inflate_last_consumed,this.lr=cc.inflate_end,this.dr=cc.inflate_new(),r=e===sc?cc.inflate_init_raw(this.dr):e===ic?cc.inflate_init_gzip(this.dr):cc.inflate_init(this.dr)),0!==r)throw new Error("init failed:"+r)}catch(t){throw o(this),t}},transform(e,r){try{const n=e,s=new Uint8Array(fc.buffer),o=this.ir,i=this.cr,c=this.ar,l=this.sr;let d=0;for(;d<n.length;){const e=Math.min(n.length-d,32768);if((!this.in||this.inBufferSize<e)&&(this.in&&dc&&(dc(this.in),this.in=0),this.in=lc(e),this.inBufferSize=e,!this.in))throw new Error("allocation failed");s.set(n.subarray(d,d+e),this.in);const f=o(this.dr,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.dr);if(0===p)break;d+=p}}catch(t){o(this),r.error(t)}},flush(e){try{const r=new Uint8Array(fc.buffer),n=this.ir,s=this.ar,o=this.sr;for(;;){const i=n(this.dr,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.dr&&t.lr&&(e=t.lr(t.dr)),t.dr=0,t.in&&dc&&dc(t.in),t.in=0,t.ar&&dc&&dc(t.ar),t.ar=0,e}}class mc{constructor(t=ac,e){return pc(!0,t,e)}}class wc{constructor(t=ac,e){return pc(!1,t,e)}}mc.ft=!0,wc.ft=!0,mc.nr=[ac,sc,ic],wc.nr=[ac,sc,ic,oc];let hc,yc=!1;function bc(){hc=null,async function(){await Promise.allSettled(qr.map(t=>($r(t),t.terminate()))),gr=F,xr=!1}(),yc=!1,cc=lc=dc=fc=uc=null}!function({ur:t}){vr=t}({ur:t=>{if(!hc){let{wasmURI:e}=t;typeof e==U&&(e=e()),hc=async function(t,{baseURI:e}){if(!yc)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(cc=t,({malloc:lc,free:dc,memory:fc}=cc),"function"!=typeof lc||"function"!=typeof dc||!fc)throw cc=lc=dc=fc=null,new Error("Invalid WASM module")}((await WebAssembly.instantiate(r)).instance.exports)}(t,e),yc=!0}catch(t){throw function(t){uc=t}(t),t}}(e,t).catch(t=>{throw hc=null,t})}return hc}}),zt({CompressionStreamFallback:mc,DecompressionStreamFallback:wc}),zt({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const gc="Entry filename already exists",xc="Readable stream already consumed",Ec="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",vc="Invalid readerOptions (must be an object)",Sc="The last modification date of an entry encrypted with ZipCrypto cannot be changed when passThrough is set",zc="zipjs-abort-export",kc="The operation was aborted",Ac=new Set([1,w,10,h,28789,25461,y,b,g,22613,13]);class Rc{constructor(t,e,r,n){const a=this;if(t.root&&n&&n.getChildByName(e))throw new Error(gc);r||(r={}),Object.assign(a,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.pr++,parent:n,children:[],uncompressedSize:r.uncompressedSize||0,mr:r.mr||r.uncompressedSize===F,passThrough:r.passThrough,wr:r.wr||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(gc);this.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==F))}}class Dc extends Rc{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 Dc(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==kn?e.type==r:t.constructor!=En||e.startsWith("data:"+(r||"")+";base64,"))}(t,r.data))return r.data;{const n=r.reader=Nc(r.Reader,r.data,e),a=r.uncompressedSize||n.size;await Promise.all([ea(n),ea(t,a)]);const s=at(e.signal),o=function(t,e,r,n){const{onstart:a,onprogress:s,onend:o}=r,{readable:i}=e;return t.data instanceof Wa||!a&&!s&&!o?i:je(i).pipeThrough(new Ar({onstart:a,onprogress:s,onend:o,size:e.size}),{signal:n})}(r,n,e,s),i=!ta(t)&&Boolean(e.preventClose);return r.uncompressedSize=n.size,await je(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==Ht)return!1;throw t}}getText(t,e){return this.getData(new Dn(t),e)}getBlob(t,e){return this.getData(new kn(t),e)}getData64URI(t,e){return this.getData(new En(t),e)}getUint8Array(t){return this.getData(new Yn,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return Rt(await this.getUint8Array(t)).buffer}replaceBlob(t){Object.assign(this,{data:t,Reader:zn,Writer:kn,reader:null})}replaceText(t){Object.assign(this,{data:t,Reader:An,Writer:Dn,reader:null})}replaceData64URI(t){Object.assign(this,{data:t,Reader:xn,Writer:En,reader:null})}replaceUint8Array(t){Object.assign(this,{data:t,Reader:Kn,Writer:Yn,reader:null})}replaceReadable(t){Object.assign(this,{data:null,Reader:Cc(t),Writer:null,reader:null})}}class Fc extends Rc{constructor(t,e,r,n){super(t,e,r,n),this.directory=!0}clone(t){const e=this,r=new Fc(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 Yc(this,t,{options:e},!0)}addText(t,e,r={}){return Yc(this,t,{data:e,Reader:An,Writer:Dn,options:r,uncompressedSize:Rn(e)})}addBlob(t,e,r={}){return Yc(this,t,{data:e,Reader:zn,Writer:kn,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 Yc(this,t,{data:e,Reader:xn,Writer:En,options:r,uncompressedSize:Math.floor(.75*(n-a))})}addUint8Array(t,e,r={}){return Yc(this,t,{data:e,Reader:Kn,Writer:Yn,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return Yc(this,t,{data:e,Reader:class extends Hn{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return Yc(this,t,{Reader:Cc(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)),Yc(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 zn(t),e)}importData64URI(t,e){return this.importZip(new xn(t),e)}importUint8Array(t,e){return this.importZip(new Kn(t),e)}importHttpContent(t,e){return this.importZip(new Hn(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new kn(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new En(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new Yn,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=qc(r.readerOptions),i=new AbortController,{signal:c}=i,l=function(t,e){if(!at(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=Uc([t],t=>jc(t,d.passThrough)),u=[];let p=!1,m=0;try{n&&await Rr(n,f),await h(t,e),s&&await Rr(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 Rr(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=>!Bc(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||Bc(c.reason))return;throw c.reason===F?new DOMException(kc,"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(zc):t}u.push(e.getRelativeName(t))}}catch(r){p=!0,i.abort(new Error(zc));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 ea(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(gc)}else r=new Fc(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(gc)}else e=new Fc(this.fs,s,{data:null},r),n.push(e);e==this||e.data||(e.data=t)}else n.push(Yc(r,s,{data:t,Reader:Mc(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([_c(r,qc(e.readerOptions)),ea(t)]),a=new Qo(t,e);return await async function(t,e,r,n,a){const{onstart:s,onprogress:o,onend:i,onentryprogress:c}=n,l=e,d=Uc(e.children,t=>Vc(t)?0:1);let f=0,u=0;if(s&&await Rr(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(Vc(e))return;const{name:s,yr:i}=Wc(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 Rr(o,f,r)}}));u++,c&&await Rr(c,u,d,m)}i&&await Rr(i,f)}(a,r,Uc([r],Ic),e,n),await a.close(e.globalComment),t.getData?t.getData():t.writable}getExportedSize(r={}){const n=this;qc((r=Object.assign({},r)).readerOptions),r.bufferedWrite===F&&(r.bufferedWrite=!0);const a=n.getChildren({recursive:!0}).filter(t=>!Vc(t)).map(t=>{const{name:e,yr:a}=Wc(t,n,r);return{name:e,size:t.directory?0:Lc(t,Zc(t,r)),options:a}}),s=!r.bufferedWrite||a.every(t=>!1!==t.options.keepOrder)&&n.children.every(t=>!t.children.length);return async function(r,n,a,s){const o={options:r};if(nt(r[K]))throw new Error(Co);if(s!==F&&!(s instanceof Uint8Array))throw new Error(wo);const i=qi(s);if(i>e)throw new Error(mo);const c=r[H],l=new Map,d=r[V]===F?0:r[V];let f=d,p=O;for(const t of n){let{name:e}=t;const{size:r}=t,n=Object.assign({},t.options);Oi(o,n,Ta)&&!e.endsWith(k)&&(e+=k);const a=ai(o,e,n);({name:e}=a);const{ve:s}=si(o,e,n);0==s.level||s.compressionMethod!==F||s.passThrough||await Sr(yt())||(s.level=0);const i=!Oi(o,n,Ta);if(i&&r===F)throw new Error(Co);const{$e:d,ve:u}=ii(o,i,r,s,n);if(i&&!s.passThrough&&Ni(u.compressionMethod,u.level))throw new Error(Co);const m=Object.assign({},n,a.ve,s,u,{[H]:c}),w=ci(m),h=fi(m),y={Re:w,Te:qi(w.ze,h.ke)};c&&li(y,f);const b=i?d:0;l.set(e,Object.assign({},m,w,{offset:f,diskNumberStart:0,compressedSize:b}));const g=y.Te+b;p=Math.min(p,g),f+=g}if(l.size>1&&(c||f-p>=t)&&!a)throw new Error(Co);const m=ui(l);let w=Oi(o,r,Aa);if(f>=t||m>=t||l.size>=e){if(!1===w)throw new Error(Uo);w=!0}return f-d+m+i+(w?98:u)}(r,a,s,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 Oc{constructor(){Kc(this)}get children(){return this.root.children}remove(t){Pc(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(gc)}else Pc(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 Kc(this),this.root.importBlob(t,e)}importData64URI(t,e){return Kc(this),this.root.importData64URI(t,e)}importUint8Array(t,e){return Kc(this),this.root.importUint8Array(t,e)}importHttpContent(t,e){return Kc(this),this.root.importHttpContent(t,e)}importReadable(t,e){return Kc(this),this.root.importReadable(t,e)}importZip(t,e){return Kc(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 Tc={FS:Oc,ZipDirectoryEntry:Fc,ZipFileEntry:Dc};function Uc(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 Ic(t){return t.uncompressedSize}function jc(t,e){const{data:r}=t;return e&&r instanceof Wa?r.compressedSize:t.uncompressedSize}function Cc(t){let e;return function(){if(e)throw new Error(xc);return e=!0,{readable:t}}}function Mc(t){return class extends bn{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 kn,Object.assign(r,{checkPasswordOnly:!1,checkOverlappingEntry:a||n,checkOverlappingEntryOnly:!1,preventClose:!1}));e.data=s,e.gr=new zn(s),e.size=s.size,super.init()}readUint8Array(t,e){return this.gr.readUint8Array(t,e)}}}function Nc(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function _c(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=Nc(t.Reader,t.data,e);a.set(t,r);try{await ea(r)}catch(e){try{e.entryId=t.id,e.cause={entry:t}}catch{}throw e}r.size!==F&&(t.uncompressedSize=r.size,t.mr=!1)})),a}function Pc(t){if(t.parent){const e=t.parent.children;e.forEach((r,n)=>{r.id==t.id&&e.splice(n,1)})}}function Bc(t){return Boolean(t)&&t.message==zc}function Wc(t,e,n){const a=n.relativePath?t.getRelativeName(e):t.getFullname(),s=t.options||{};let o={},i={};if(t.data instanceof Wa){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:E,uid:v,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)=>{Ac.has(r)||e.set(r,t.data)}),e.size)return e}}(x);if(z&&(o.extraField=z),v===F&&S===F||Object.assign(o,{uid:v,gid:S,unixExtraFieldType:"infozip"}),Zc(t,n)){let t;b&&(t=b.strength),i={passThrough:!0,encrypted:m,zipCrypto:w,crc32:h,uncompressedSize:p,encryptionStrength:t,compressionMethod:y},E&&(i.dataDescriptor=E.dataDescriptor);const e=s.lastModDate===F?n.lastModDate:s.lastModDate;if(e===F)i.rawLastModDate=d;else if(w&&(!E||E.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(Sc)}}const c=Object.assign({lastModDate:t.wr},o,n,s,i,{directory:t.directory});if(!t.directory&&c.passThrough&&c.uncompressedSize===F)throw new Error(Ec);return{name:a,yr:c}}function Lc(t,e){const{reader:r}=t;return r&&r.size!==F?r.size:t.mr?F:jc(t,e)}function qc(t){if(t&&(typeof t!=I||Array.isArray(t)))throw new Error(vc);return t}function Zc(t,e){const{readerOptions:r}=e;return Boolean(!t.directory&&(t.passThrough||r&&r.passThrough))}function Vc(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 Gc(n)),"file"==n.kind){const t=await n.getFile();a.push(Yc(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 Gc(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 Gc(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 Kc(t){t.entries=[],t.pr=0,t.root=new Fc(t)}function Yc(t,e,r,n){if(t.directory)return n?new Fc(t.fs,e,r,t):new Dc(t.fs,e,r,t);throw new Error("Parent entry is not a directory")}let Xc;function Jc(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{zn as BlobReader,kn as BlobWriter,xn as Data64URIReader,En as Data64URIWriter,kc as ERR_ABORTED,ts as ERR_AMBIGUOUS_ARCHIVE,La as ERR_BAD_FORMAT,Va as ERR_CENTRAL_DIRECTORY_NOT_FOUND,po as ERR_DUPLICATED_NAME,Ka as ERR_ENCRYPTED,es as ERR_ENCRYPTED_CENTRAL_DIRECTORY,$a as ERR_ENTRY_DATA_OUT_OF_BOUNDS,gc as ERR_ENTRY_EXISTS,Za as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,qa as ERR_EOCDR_NOT_FOUND,Ga as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,sn as ERR_HTTP_RANGE,on as ERR_HTTP_RESOURCE_CHANGED,Kt as ERR_INVALID_AUTHENTICATION_CODE,Ne as ERR_INVALID_CODEC_DEFINITION,Pe as ERR_INVALID_CODEC_MODULE,mo as ERR_INVALID_COMMENT,wo as ERR_INVALID_COMMENT_TYPE,Xe as ERR_INVALID_COMPRESSED_DATA,Je as ERR_INVALID_CRC32,bo as ERR_INVALID_DATE,Eo as ERR_INVALID_ENCRYPTION_STRENGTH,ho as ERR_INVALID_ENTRY_COMMENT,yo as ERR_INVALID_ENTRY_COMMENT_TYPE,go as ERR_INVALID_ENTRY_NAME,zo as ERR_INVALID_EXTRAFIELD,Ro as ERR_INVALID_EXTRAFIELD_DATA,Ao as ERR_INVALID_EXTRAFIELD_DATA_TYPE,ko as ERR_INVALID_EXTRAFIELD_TYPE,as as ERR_INVALID_FILENAME_VALIDATION,tt as ERR_INVALID_FUNCTION_OPTION,Po as ERR_INVALID_GID,Vo as ERR_INVALID_LEVEL,ss as ERR_INVALID_MAX_APPENDED_DATA_SIZE,lt as ERR_INVALID_MAX_WORKERS,qo as ERR_INVALID_MSDOS_ATTRIBUTES,Zo as ERR_INVALID_MSDOS_DATA,Ht as ERR_INVALID_PASSWORD,rt as ERR_INVALID_PASSWORD_TYPE,Ec as ERR_INVALID_PASS_THROUGH,vc as ERR_INVALID_READER_OPTIONS,et as ERR_INVALID_SIGNAL,Gt as ERR_INVALID_SIGNATURE,Ho as ERR_INVALID_SIGNATURE_DATA,ns as ERR_INVALID_STRICTNESS,_o as ERR_INVALID_UID,Ye as ERR_INVALID_UNCOMPRESSED_SIZE,Wo as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,Lo as ERR_INVALID_UNIX_ID_SIZE,Bo as ERR_INVALID_UNIX_MODE,xo as ERR_INVALID_VERSION,cn as ERR_ITERATOR_COMPLETED_TOO_SOON,Ha as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Qa as ERR_OVERLAPPING_ENTRY,xc as ERR_READABLE_CONSUMED,_e as ERR_RESERVED_COMPRESSION_METHOD,Ja as ERR_SPLIT_ZIP_FILE,jo as ERR_UNDEFINED_COMPRESSION_METHOD,Mo as ERR_UNDEFINED_READER,Io as ERR_UNDEFINED_UNCOMPRESSED_SIZE,Co as ERR_UNDETERMINED_SIZE,rs as ERR_UNSAFE_FILENAME,Xa as ERR_UNSUPPORTED_COMPRESSION,rc as ERR_UNSUPPORTED_CONTEXT,Xt as ERR_UNSUPPORTED_CRYPTO_API,Ya as ERR_UNSUPPORTED_ENCRYPTION,So as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,vo as ERR_UNSUPPORTED_ENCRYPTION_USDZ,Uo as ERR_UNSUPPORTED_FORMAT,os as ERR_UNSUPPORTED_UINT64,br as ERR_WORKER_STARTUP_TIMEOUT,ln as ERR_WRITER_NOT_INITIALIZED,Sc as ERR_ZIP_CRYPTO_LAST_MOD_DATE,No as ERR_ZIP_NOT_EMPTY,Gn as HttpRangeReader,Hn as HttpReader,bn as Reader,Xn as SplitDataReader,Jn as SplitDataWriter,An as TextReader,Dn as TextWriter,Kn as Uint8ArrayReader,Yn as Uint8ArrayWriter,Ki as VERSION,ps as WARNING_APPENDED_DATA,ls as WARNING_COMPRESSED_PATCHED_DATA,ys as WARNING_DUPLICATE_FILENAME,ds as WARNING_MALFORMED_EXTRA_FIELD,gs as WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG,xs as WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD,Es as WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES,bs as WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY,ws as WARNING_PREPENDED_CENTRAL_DIRECTORY,ms as WARNING_PREPENDED_DATA,hs as WARNING_TRAILING_CENTRAL_DIRECTORY_DATA,cs as WARNING_UNKNOWN_VERSION,fs as WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA,is as WARNING_UNSORTED_CENTRAL_DIRECTORY,us as WARNING_WRAPPED_ENTRIES_COUNT,gn as Writer,Fc as ZipDirectoryEntry,Rc as ZipEntry,Oc as ZipFS,Dc as ZipFileEntry,Ds as ZipReader,Fs as ZipReaderStream,Qo as ZipWriter,$o as ZipWriterStream,xt as configure,$i as createBlobTempStream,Ji as createOPFSTempStream,nc as createSyncAccessHandleTempStream,Tc as fs,Jc as getMimeType,He as getRegisteredCodecs,Hi as getSupportedCompressionMethods,Os as isZipFile,qe as registerCodec,kt as resetConfiguration,bc as terminateWorkers,Ze as unregisterCodec};
1
+ const t=4294967295,e=65535,r=255,n=67324752,a=134695760,o=a,s=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,E=61440,v=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,T="undefined",U="function",I="object",C="string",j=new Uint8Array,M="password",N="rawPassword",_="passThrough",P="signal",B="useWebWorkers",W="useCompressionStream",L="transferStreams",q="preventClose",Z="dataDescriptor",V="offset",H="usdz",G="maxAppendedDataSize",K="signCentralDirectory",Y="filename",X="comment",J="strict",Q="balanced",$="tolerant",tt="Invalid option (must be a function)",et="Invalid signal (must be an AbortSignal instance)",rt="Invalid password (password must be a string, rawPassword must be a Uint8Array)";function nt(t){if(t&&typeof t!=U)throw new Error(tt);return t}function at(t){if(t&&(typeof t.addEventListener!=U||"boolean"!=typeof t.aborted))throw new Error(et);return t||F}function ot(t,e){if(t&&typeof t!=C||e&&!(e instanceof Uint8Array))throw new Error(rt)}function st(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw new Error(r)}function it(t,e,r){t!==F&&st(t,e,r)}function ct(t){return typeof t==C&&t.trim()?Number(t):t}const lt="Invalid maxWorkers (must be an integer greater than 0)";let dt=2;try{typeof navigator!=T&&navigator.hardwareConcurrency&&(dt=navigator.hardwareConcurrency)}catch{}const ft={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:dt,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=T&&CompressionStream,DecompressionStream:typeof DecompressionStream!=T&&DecompressionStream},ut="maxWorkers",pt=["chunkSize",ut,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],mt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],wt=["baseURI","wasmURI","workerURI","useCompressionStream","useWebWorkers","transferStreams",...pt,...mt],ht={...ft};function yt(){return ht}function bt(t){return gt(t.chunkSize)}function gt(t){return t=ct(t),Number.isInteger(t)&&t>=1?Math.max(t,64):65536}function xt(t){Object.assign(ht,Et(St(t)))}function Et(t){const e={};for(const r of wt){const n=t[r];n!==F&&(e[r]=vt(r,n))}return e}function vt(t,e){if(pt.includes(t)){if(e=ct(e),t==ut&&(!Number.isInteger(e)||e<1))throw new Error(lt)}else mt.includes(t)&&nt(e);return e}function St(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 zt(t){const e=Et(St(t));Object.assign(ft,e),Object.assign(ht,e)}function kt(){for(const t of wt)delete ht[t];Object.assign(ht,ft)}function At(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function Rt(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function Dt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const Ft=[[],[],[],[],[],[],[],[]];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;Ft[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=Ft[e-1][t];Ft[e][t]=r>>>8^Ft[0][255&r]}const[Ot,Tt,Ut,It,Ct,jt,Mt,Nt]=Ft;class _t{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),o=r-8;for(;n<=o;n+=8){const t=e^a.getInt32(n,!0),r=a.getInt32(n+4,!0);e=Nt[255&t]^Mt[t>>>8&255]^jt[t>>>16&255]^Ct[t>>>24&255]^It[255&r]^Ut[r>>>8&255]^Tt[r>>>16&255]^Ot[r>>>24&255]}}for(;n<r;n++)e=e>>>8^Ot[255&(e^t[n])];this.o=e}get(){return~this.o}}class Pt extends TransformStream{constructor(){let t;const e=new _t;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 Bt(t){if(typeof TextEncoder==T){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 Wt={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const r=t[t.length-1],n=Wt.l(r);return 32===n?t.concat(e):Wt.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)+Wt.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]=Wt.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,o=Wt.l(a);return n.push(Wt.v(e+o&31,e+o>32?r:n.pop(),1)),n}},Lt={bytes:{S(t){const e=Wt.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(Wt.v(8*(3&r),n)),e}}},qt=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.T=t.T):e.reset()}reset(){const t=this;return t.F=t.R.slice(0),t.O=[],t.T=0,t}update(t){const e=this;"string"==typeof t&&(t=Lt.U.A(t));const r=e.O=Wt.concat(e.O,t),n=e.T,a=e.T=n+Wt.bitLength(t);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const o=new Uint32Array(r);let s=0;for(let t=e.blockSize+n-(e.blockSize+n&e.blockSize-1);t<=a;t+=e.blockSize)e.I(o.subarray(16*s,16*(s+1))),s+=1;return r.splice(0,16*s),e}C(){const t=this;let e=t.O;const r=t.F;e=Wt.concat(e,[Wt.v(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(Math.floor(t.T/4294967296)),e.push(0|t.T);e.length;)t.I(e.splice(0,16));return t.reset(),r}j(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}M(t,e){return e<<t|e>>>32-t}I(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],o=r[1],s=r[2],i=r[3],c=r[4];for(let t=0;t<=79;t++){t>=16&&(n[t]=e.M(1,n[t-3]^n[t-8]^n[t-14]^n[t-16]));const r=e.M(5,a)+e.j(t,o,s,i)+c+n[t]+e.D[Math.floor(t/20)]|0;c=i,i=s,s=e.M(30,o),o=a,a=r}r[0]=r[0]+a|0,r[1]=r[1]+o|0,r[2]=r[2]+s|0,r[3]=r[3]+i|0,r[4]=r[4]+c|0}},Zt={importKey:t=>new Zt.N(Lt.bytes.A(t)),_(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 o,s,i,c,l;const d=new ArrayBuffer(a),f=new DataView(d);let u=0;const p=Wt;for(e=Lt.bytes.A(e),l=1;u<(a||1);l++){for(o=s=t.encrypt(p.concat(e,[l])),i=1;i<r;i++)for(s=t.encrypt(s),c=0;c<s.length;c++)o[c]^=s[c];for(i=0;u<(a||1)&&i<o.length;i++)f.setInt32(u,o[i]),u+=4}return d.slice(0,n/8)},N:class{constructor(t){const e=this,r=e.P=qt,n=[[],[]];e.B=[new r,new r];const a=e.B[0].blockSize/32;t.length>a&&(t=(new r).update(t).C());for(let e=0;e<a;e++)n[0][e]=909522486^t[e],n[1][e]=1549556828^t[e];e.B[0].update(n[0]),e.B[1].update(n[1]),e.W=new r(e.B[0])}reset(){const t=this;t.W=new t.P(t.B[0]),t.L=!1}update(t){this.L=!0,this.W.update(t)}digest(){const t=this,e=t.W.C(),r=new t.P(t.B[1]).update(e).C();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!=T&&typeof crypto.getRandomValues==U,Ht="Invalid password",Gt="Invalid signature",Kt=Gt,Yt="zipjs-abort-check-password",Xt="Crypto API not supported";function Jt(t){if(Vt)return crypto.getRandomValues(t);throw new Error(Xt)}const Qt=16,$t={name:"PBKDF2"},te=Object.assign({hash:{name:"HMAC"}},$t),ee=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},$t),re=["deriveBits"],ne=[8,12,16],ae=[16,24,32],oe=10,se=[0,0,0,0],ie=typeof crypto!=T,ce=ie&&crypto.subtle,le=ie&&typeof ce!=T,de=Lt.bytes,fe=class{constructor(t){const e=this;e.Z=[[[],[],[],[],[]],[[],[],[],[],[]]],e.Z[0][0][0]||e.V();const r=e.Z[0][4],n=e.Z[1],a=t.length;let o,s,i,c=1;if(4!==a&&6!==a&&8!==a)throw new Error("invalid aes key size");for(e.D=[s=t.slice(0),i=[]],o=a;o<4*a+28;o++){let t=s[o-1];(o%a===0||8===a&&o%a===4)&&(t=r[t>>>24]<<24^r[t>>16&255]<<16^r[t>>8&255]<<8^r[255&t],o%a===0&&(t=t<<8^t>>>24^c<<24,c=c<<1^283*(c>>7))),s[o]=s[o-a]^t}for(let t=0;o;t++,o--){const e=s[3&t?o:o-4];i[t]=o<=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)}V(){const t=this.Z[0],e=this.Z[1],r=t[4],n=e[4],a=[],o=[];let s,i,c,l;for(let t=0;t<256;t++)o[(a[t]=t<<1^283*(t>>7))^t]=t;for(let d=s=0;!r[d];d^=i||1,s=o[s]||1){let o=s^s<<1^s<<2^s<<3^s<<4;o=o>>8^255&o^99,r[d]=o,n[o]=d,l=a[c=a[i=a[d]]];let f=16843009*l^65537*c^257*i^16843008*d,u=257*a[o]^16843008*o;for(let r=0;r<4;r++)t[r][d]=u=u<<24^u>>>8,e[r][o]=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],o=this.Z[e],s=o[0],i=o[1],c=o[2],l=o[3],d=o[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=s[m>>>24]^i[w>>16&255]^c[h>>8&255]^l[255&y]^r[b],u=s[w>>>24]^i[h>>16&255]^c[y>>8&255]^l[255&m]^r[b+1],p=s[h>>>24]^i[y>>16&255]^c[m>>8&255]^l[255&w]^r[b+2],y=s[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}},ue=class{constructor(t,e){this.G=t,this.K=e,this.Y=e}reset(){this.Y=this.K}update(t){return this.X(this.G,t,this.Y)}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=Wt.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 Wt.h(e,a)}},pe=Zt.N;let me=ie&&le&&typeof ce.importKey==U,we=ie&&le&&typeof ce.deriveBits==U;class he extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:n,checkAuthenticationCode:a=!0}){super({start(){be(this,t,e,r)},async transform(t,e){const r=this,{password:a,strength:o,et:s,ready:i}=r;a?(await async function(t,e,r,n){const a=await xe(t,e,r,ve(n,0,ne[e])),o=ve(n,ne[e]);if(a[0]!=o[0]||a[1]!=o[1])throw new Error(Ht)}(r,o,a,ve(t,0,ne[o]+2)),t=ve(t,ne[o]+2),n?e.error(new Error(Yt)):s()):await i;const c=new Uint8Array(t.length-oe-(t.length-oe)%Qt);e.enqueue(ge(r,t,c,0,oe,!0))},async flush(t){const{nt:e,ot:r,st:n,ready:o}=this;if(r&&e){await o;const s=ve(n,0,n.length-oe),i=ve(n,n.length-oe);let c=j;if(s.length){const t=ze(de,s);r.update(t);const n=e.update(t);c=Se(de,n)}const l=ve(Se(de,r.digest()),0,oe);let d=n.length<oe?1:0;for(let t=0;t<oe;t++)d|=l[t]^i[t];if(d&&a)throw new Error(Kt);t.enqueue(c)}}})}}class ye extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){super({start(){be(this,t,e,r)},async transform(t,e){const r=this,{password:n,strength:a,et:o,ready:s}=r;let i=j;n?(i=await async function(t,e,r){const n=Jt(new Uint8Array(ne[e]));return At(n,await xe(t,e,r,n))}(r,a,n),o()):await s;const c=new Uint8Array(i.length+t.length-t.length%Qt);c.set(i,0),e.enqueue(ge(r,t,c,i.length,0))},async flush(t){const{nt:e,ot:r,st:n,ready:a}=this;if(r&&e){await a;let o=j;if(n.length){const t=e.update(ze(de,n));r.update(t),o=Se(de,t)}const s=Se(de,r.digest()).slice(0,oe);t.enqueue(At(o,s))}}})}}function be(t,e,r,n){Object.assign(t,{ready:new Promise(e=>t.et=e),password:Ee(e,r),strength:n-1,st:j})}function ge(t,e,r,n,a,o){const{nt:s,ot:i,st:c}=t;c.length&&(e=At(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%Qt)),d=0;d<=l-Qt;d+=Qt){const t=ze(de,ve(e,d,d+Qt));o&&i.update(t);const a=s.update(t);o||i.update(a),r.set(Se(de,a),d+n)}return t.st=ve(e,d),r}async function xe(t,e,r,n){t.password=null;const a=await async function(t,e,r,n,a){if(!me)return Zt.importKey(e);try{return await ce.importKey("raw",e,r,!1,a)}catch{return me=!1,Zt.importKey(e)}}(0,r,te,0,re),o=await async function(t,e,r){if(!we)return Zt._(e,t.salt,ee.iterations,r);try{return await ce.deriveBits(t,e,r)}catch{return we=!1,Zt._(e,t.salt,ee.iterations,r)}}(Object.assign({salt:n},ee),a,8*(2*ae[e]+2)),s=new Uint8Array(o),i=ze(de,ve(s,0,ae[e])),c=ze(de,ve(s,ae[e],2*ae[e])),l=ve(s,2*ae[e]);return Object.assign(t,{keys:{key:i,it:c,passwordVerification:l},nt:new ue(new fe(i),Array.from(se)),ot:new pe(c)}),l}function Ee(t,e){return e===F?Bt(t):e}function ve(t,e,r){return t.subarray(e,r)}function Se(t,e){return t.S(e)}function ze(t,e){return t.A(e)}class ke extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:n}){super({start(){Re(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=De(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw new Error(Ht);t=t.subarray(12)}n?e.error(new Error(Yt)):e.enqueue(De(r,t))}})}}class Ae extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){Re(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=Jt(new Uint8Array(12));e[11]=r.passwordVerification,n=new Uint8Array(t.length+e.length),n.set(Fe(r,e),0),a=12}else n=new Uint8Array(t.length),a=0;n.set(Fe(r,t),a),e.enqueue(n)}})}}function Re(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 _t(n[0]),lt:new _t(n[2])}),r)for(let e=0;e<r.length;e++)Oe(t,r[e]);else for(let r=0;r<e.length;r++)Oe(t,e.charCodeAt(r))}(t,e,r)}function De(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Te(t)^e[n],Oe(t,r[n]);return r}function Fe(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Te(t)^e[n],Oe(t,e[n]);return r}function Oe(t,e){let[,r]=t.keys;t.ct.append([e]);const n=~t.ct.get();r=Ie(Math.imul(Ie(r+Ue(n)),134775813)+1),t.lt.append([r>>>24]);const a=~t.lt.get();t.keys=[n,r,a]}function Te(t){const e=2|t.keys[2];return Ue(Math.imul(e,1^e)>>>8)}function Ue(t){return 255&t}function Ie(t){return 4294967295&t}function Ce(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 je(t,e){t=Ce(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 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 Ne="Invalid codec definition",_e="Reserved compression method",Pe="Invalid codec module",Be=[0,8,9,99],We=new Map,Le=new Map;function qe(t={}){const{compressionMethod:r,format:n,codecURI:a,CompressionStream:o,DecompressionStream:s,versionNeeded:i}=t;if(!Number.isInteger(r)||r<0||r>e||typeof n!=C||!n.length)throw new Error(Ne);if(Be.includes(r))throw new Error(_e);const c=typeof o==U||typeof s==U;if(!(c||typeof a==C&&a.length))throw new Error(Ne);We.set(r,{compressionMethod:r,format:n,codecURI:a,versionNeeded:i}),c&&Ke(n,{CompressionStream:o,DecompressionStream:s})}function Ze(t){const e=We.get(t);if(e){let r;We.delete(t),We.forEach(t=>r=r||t.format==e.format),r||Le.delete(e.format)}}function Ve(t){return We.get(t)}function He(){return Array.from(We.values(),t=>Object.assign({},t,Le.get(t.format)))}function Ge(t){return Le.get(t)}function Ke(t,e){const{CompressionStream:r,DecompressionStream:n}=e;if(typeof r!=U&&typeof n!=U)throw new Error(Pe);Le.set(t,{CompressionStream:r,DecompressionStream:n})}const Ye="Invalid uncompressed size",Xe="Invalid compressed data",Je=Gt,Qe="deflate-raw",$e="deflate64-raw",tr="gzip",er=[31,139,8];class rr extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:n}){super({});const{compressed:a,encrypted:o,useCompressionStream:s,zipCrypto:i,computeCrc32:c,level:l,deflate64:d,format:f,compressionMethod:u,inputSize:p}=t,m=this;let w,h,y,b=super.readable;const g=f&&Ge(f),x=c&&a&&!d&&!g&&(!o||i)&&Boolean(s&&n);if(o&&!i||!c||x||(w=new Pt,b=fr(b,w)),a)if(g)b=ur(b,lr(g.CompressionStream,f,{level:l,chunkSize:e,compressionMethod:u,uncompressedSize:p}));else if(x)y=new nr,b=ur(b,new n(tr)),b=fr(b,y);else try{b=dr(b,s,{level:l,chunkSize:e},n,r)}catch(t){let e;try{e=new n(tr)}catch{throw t}b=ur(b,e),b=fr(b,new nr)}o&&(i?b=fr(b,new Ae(t)):(h=new ye(t),b=fr(b,h))),cr(m,b,()=>{o&&!i||!c||(m.crc32=x?y.crc32:new DataView(w.value.buffer).getUint32(0))})}}class nr 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=At(r,t));const o=a-8,s=Math.min(o,r.length);n.enqueue(At(r.subarray(0,s),t.subarray(0,o-s))),r=At(r.subarray(s),t.subarray(o-s))},flush(){const e=Dt(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class ar extends TransformStream{constructor(t,{chunkSize:e,DecompressionStreamFallback:r,DecompressionStream:n}){super({});const{zipCrypto:a,encrypted:o,checkCrc32:s,crc32:i,compressed:c,useCompressionStream:l,deflate64:d,format:f,compressionMethod:u,rawBitFlag:p,outputSize:m}=t;let w,h,y=super.readable;if(o&&(a?y=fr(y,new ke(t)):(h=new he(t),y=fr(y,h))),c){const t=f&&Ge(f);if(t)y=ur(y,lr(t.DecompressionStream,f,{chunkSize:e,compressionMethod:u,rawBitFlag:p,uncompressedSize:m}));else try{y=dr(y,l,{chunkSize:e,deflate64:d},n,r)}catch(t){if(d||m===F)throw t;let e;try{e=new n(tr)}catch{throw t}y=function(t,e,r){const n=new _t;let a,o,s,i=0,c=!1;const l=new Promise((t,e)=>{o=t,s=e});l.catch(()=>{}),r||o();const d=new TransformStream({start(t){const e=new Uint8Array(10);e.set(er),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=Dt(e);a.setUint32(0,n.get(),!0),a.setUint32(4,r,!0),t.enqueue(e)},cancel(t){s(t)}}),f=new TransformStream({transform(t,e){n.append(t),i+=t.length,i>=r?o():c&&u(),e.enqueue(t)},cancel(t){s(t)}});return t=fr(t,d),fr(t=ur(t,e),f);function u(){p(),a=setTimeout(()=>s(new Error(Ye)),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(Xe);throw e.cause=t,e}const{value:n,done:a}=r;a?t.close():t.enqueue(n)},cancel:t=>e.cancel(t)})}(y)}s&&(w=new Pt,y=fr(y,w)),cr(this,y,()=>{if(s){const t=new DataView(w.value.buffer);if(i!=t.getUint32(0,!1))throw new Error(Je)}})}}const or=new Map;function sr(t,e){if(!t)return!1;let r=or.get(t);r||(r=new Map,or.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 ir(t){return sr(t,Qe)}function cr(t,e,r){e=fr(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function lr(t,e,r){if(!t)throw new Error("Compression method not supported");return new t(e,r)}function dr(t,e,r,n,a){const o=e&&n?n:a||n,s=r.deflate64?$e:Qe;let i;try{i=new o(s,r)}catch(t){if(!e||!a||o==a)throw t;i=new a(s,r)}return ur(t,i)}function fr(t,e){return Ce(t).pipeThrough(e)}function ur(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 pr="data",mr="deflate",wr="inflate";class hr extends TransformStream{constructor(t,e){super({});const r=this,{codecType:n}=t;let a;n.startsWith(mr)?a=rr:n.startsWith(wr)&&(a=ar),r.outputSize=0;let o=0;const s=new a(t,e),i=super.readable,c=new TransformStream({transform(t,e){t&&t.length&&(o+=t.length,e.enqueue(t))},flush(){Object.assign(r,{inputSize:o})}}),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(Ye)},flush(){const{crc32:t}=s;Object.assign(r,{crc32:t,inputSize:o})}});Object.defineProperty(r,"readable",{get:()=>i.pipeThrough(c).pipeThrough(s).pipeThrough(l)})}}class yr 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],o=t-a;r.length<=o?(n.set(r,a),a+=r.length,e.shift()):(n.set(r.subarray(0,o),a),e[0]=r.subarray(o),a+=o)}return r-=t,n}(!Number.isFinite(t)||t<1)&&(t=65536),super({transform(a,o){for(e.push(a),r+=a.length;r>t;)o.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 br="Worker startup timeout";let gr,xr,Er,vr=()=>{};async function Sr(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;if(r&&!r.ft)return!0;if(ir(e)||sr(e,tr))return!0;if(r)try{return await vr(t),!0}catch{return!1}return!1}function zr(t){t.createWorker?xr=!0:gr=!1}class kr{constructor(t,{readable:e,writable:r},{options:n,config:a,ut:o,useWebWorkers:s,transferStreams:i,workerURI:c,createWorker:l},d){const{signal:f}=o;return xr&&(l=F),Object.assign(t,{wt:!0,ht:(t.ht||0)+1,readable:e.pipeThrough(new yr(bt(a))).pipeThrough(new Ar(o),{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.Et=!0,t.yt.terminate(),e()),t.wt=!1,d(t)}}}),gr===F&&(gr=typeof Worker!=T),(s&&Er&&(gr&&c||l)?Er:Dr)(t,a)}}class Ar extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:n}){let a=0;super({async start(){t&&await Rr(t,r)},async transform(t,n){a+=t.length,e&&await Rr(e,a,r),n.enqueue(t)},async flush(){n&&await Rr(n,a)}})}}async function Rr(t,...e){try{await t(...e)}catch{}}function Dr(t,e){return{run:()=>Fr(t,e)}}async function Fr({options:t,readable:e,writable:r,xt:n},a){let o;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(mr),r=e?a.CompressionStreamFallback:a.DecompressionStreamFallback,n=e?a.CompressionStream:a.DecompressionStream;if(t.useCompressionStream){if(r&&r.ft&&!ir(n))try{await vr(a)}catch{}}else try{await vr(a)}catch{r&&!r.ft||(t.useCompressionStream=!0)}}o=new hr(t,a),await e.pipeThrough(o).pipeThrough(new yr(bt(a))).pipeTo(r,{preventClose:!0,preventAbort:!0});const{crc32:n,inputSize:s,outputSize:i}=o;return{crc32:n,inputSize:s,outputSize:i}}catch(t){throw o&&(t.outputSize=o.outputSize),t}finally{n()}}const Or={type:"module"},Tr="error";let Ur,Ir,Cr,jr=!0;try{jr=typeof structuredClone==U&&structuredClone(new DOMException("","AbortError")).code!==F}catch{}var Mr;function Nr(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function _r(t){const{yt:e}=t;if(e)try{e.terminate()}catch{}t.gt=null}function Pr(t,e,r,n,a=!0){const{createWorker:o}=r;let s,i,c;if(o)s=o();else if(Ir===F||Ur!==t){const o=typeof t==U;i=o?t(a):t;const l=i.startsWith("data:"),d=i.startsWith("blob:");if(l||d){n===F&&(n=!1),n&&(c=Or);try{s=new Worker(i,c)}catch(a){if(d)try{URL.revokeObjectURL(i)}catch{}if(o&&d)return Pr(t,e,r,n,!1);if(n)throw a;return Pr(t,e,r,!0,!1)}}else{n===F&&(n=!0),n&&(c=Or);try{i=new URL(i,e)}catch{}try{s=new Worker(i,c)}catch(o){if(n)return Pr(t,e,r,!1,a);throw o}}Ur=t,Ir=i,Cr=c}else s=new Worker(Ir,Cr);return s.addEventListener("message",t=>{r.vt=!0,Br(r),async function({data:t},e){const{type:r,value:n,messageId:a,result:o,error:s}=t,{reader:i,writer:c,St:l,zt:d,xt:f,ht:u}=e,p=()=>e.ht!=u;try{if(s){const{message:t,stack:e,code:r,name:n,outputSize:a,cause:o,codecImportFailed:i}=s,c=new Error(t);Object.assign(c,{stack:e,code:r,name:n,outputSize:a}),o&&(c.cause=Object.assign(new Error(o.message),{name:o.name})),i&&(c.codecImportFailed=!0),m(c)}else{if("pull"==r){const{value:t,done:r}=await i.read();p()||Lr({type:pr,value:t,done:r,messageId:a},e)}r==pr&&(await c.ready,await c.write(new Uint8Array(n)),p()||Lr({type:"ack",messageId:a},e)),"close"==r&&m(null,o)}}catch(s){p()||(_r(e),m(s))}function m(t,e){p()||(t?d(t):l(e),c&&c.releaseLock(),t&&t.codecImportFailed||f())}}(t,r)}),s.addEventListener(Tr,t=>Wr(t,r)),s.addEventListener("messageerror",t=>Wr(t,r)),s}function Br(t){const{kt:e}=t;e&&(clearTimeout(e),t.kt=null)}function Wr(t,e){t.preventDefault&&t.preventDefault(),Br(e);const{vt:r,zt:n,writer:a,xt:o}=e;_r(e),r||(e.yt=null);let s=t.error||new Error(t.message||Tr);r||(s=Object.assign(new Error(s.message||Tr),{At:!0}),e.Rt=s),n&&(n(s),a&&a.releaseLock(),r&&o())}function Lr(t,{yt:e,writer:r,transferStreams:n,vt:a}){try{const{value:r,readable:o,writable:s}=t,i=[];if(r&&(t.value=Rt(r),i.push(t.value.buffer)),n&&jr&&a?(o&&i.push(o),s&&i.push(s)):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}}Mr=function(t,e){const{baseURI:r,chunkSize:n,workerStartupTimeout:a}=e;let{wasmURI:o}=e;if(!t.gt){let s;typeof o==U&&(o=o());try{s=Pr(t.workerURI,r,t)}catch{return zr(t),Dr(t,e)}Object.assign(t,{yt:s,vt:!1,Et:!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(br);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:o,options:s}=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=Lr({type:"start",options:s,config:e,readable:o,writable:i},t)}catch(e){l();try{await c}catch{}throw t.xt(),e}d||Object.assign(t,{reader:o.getReader(),writer:i.getWriter()});const{workerStartupTimeout:f}=e;!t.vt&&Number.isFinite(f)&&f>=0&&(t.kt=setTimeout(()=>function(t){if(t.kt=null,t.vt)return;const{zt:e,writer:r}=t;if(_r(t),t.yt=null,e){const t=new Error(br);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:o,baseURI:r,workerStartupTimeout:a})}catch(r){if(r&&r.At)return zr(t),Nr(t),Fr(t,e);if(r&&r.codecImportFailed){if(t.reader)return Nr(t),Fr(t,e);t.xt()}throw r}}}})}return t.gt},Er=Mr;let qr=[];const Zr=[];let Vr,Hr,Gr=0;async function Kr(t,e){const{options:r,config:n}=e,{transferStreams:a,useWebWorkers:o,useCompressionStream:s,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){!Le.has(t)&&e&&Ke(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&&(o||o===F&&n.useWebWorkers),e.workerURI=e.useWebWorkers&&p?p:F,e.createWorker=e.useWebWorkers&&m?m:F,r.useCompressionStream=s||s===F&&n.useCompressionStream,(await async function(){const r=qr.find(t=>!t.wt);if(r)return $r(r),new kr(r,t,e,b);if(qr.length<w){const r={Ft:Gr};return Gr++,qr.push(r),new kr(r,t,e,b)}return new Promise(r=>{Zr.push({resolve:r,stream:t,Ot:e}),Hr=n.workerStarvationTimeout,Yr()})}()).run();function b(t){if(Xr(),Zr.length){const[{resolve:e,stream:r,Ot:n}]=Zr.splice(0,1);e(new kr(t,r,n,b)),Yr()}else t.yt?($r(t),function(t,e){const{config:r}=e,{terminateWorkerTimeout:n}=r;Number.isFinite(n)&&n>=0&&(t.Et?t.Et=!1:t.Tt=setTimeout(async()=>{qr=qr.filter(e=>e!=t);try{await t.terminate()}catch{}},n))}(t,e)):qr=qr.filter(e=>e!=t)}}function Yr(){!Vr&&Zr.length&&Number.isFinite(Hr)&&Hr>=0&&(Vr=setTimeout(Jr,Hr))}function Xr(){Vr&&(clearTimeout(Vr),Vr=null)}function Jr(){if(Vr=null,Zr.length){const[{resolve:t,stream:e,Ot:r}]=Zr.splice(0,1),n=Object.assign({},r,{useWebWorkers:!1,workerURI:F,createWorker:F});t(new kr({},e,n,Qr)),Yr()}}function Qr(){Xr(),Yr()}function $r(t){const{Tt:e}=t;e&&(clearTimeout(e),t.Tt=null)}const tn="\0\u263a\u263b\u2665\u2666\u2663\u2660\u2022\u25d8\u25cb\u25d9\u2642\u2640\u266a\u266b\u263c\u25ba\u25c4\u2195\u203c\xb6\xa7\u25ac\u21a8\u2191\u2193\u2192\u2190\u221f\u2194\u25b2\u25bc !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xa2\xa3\xa5\u20a7\u0192\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\u2310\xac\xbd\xbc\xa1\xab\xbb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0".split("");function en(t,e){return rn(t,e,!0)}function rn(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?function(t){let e="";for(let r=0;r<t.length;r++)e+=tn[t[r]];return e}(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const nn="HTTP error ",an="HTTP Range not supported",on="HTTP resource changed",sn="Writer iterator completed too soon",cn="Writer not initialized",ln="Content-Range",dn="Range",fn="GET",un="bytes",pn=16777216,mn="writable",wn=Symbol();class hn{constructor(){this.size=0}init(){this.initialized=!0}}class yn extends hn{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=bt(yt())}={}){const n=this;let a=0;return r=gt(r),new ReadableStream({async pull(o){const s=e===F?r:Math.min(r,e-a),i=await ra(n,t+a,s);i.length&&o.enqueue(i),a+r>=e||!i.length&&s?o.close():a+=r}})}}class bn extends hn{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw new Error(cn);return t.writeUint8Array(Rt(e))}});Object.defineProperty(t,mn,{get:()=>e})}writeUint8Array(){}}class gn extends yn{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{Ut:t,It:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{It:r,Ut:n}=this,a=new Uint8Array(e),o=4*Math.floor(t/3),s=atob(n.substring(o+r,4*Math.ceil((t+e)/3)+r)),i=t-3*Math.floor(o/4);let c=0;for(let t=i;t<i+e&&t<s.length;t++)a[t-i]=s.charCodeAt(t),c++;return c<a.length?a.subarray(0,c):a}}class xn extends bn{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",Ct:""})}writeUint8Array(t){const e=this;let r,n=e.Ct;const a=e.Ct.length;for(e.Ct="",r=0;r<3*Math.floor((a+t.length)/3)-a;r++)n+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.Ct+=String.fromCharCode(t[r]);n.length>2?e.data+=btoa(n):e.Ct=n+e.Ct}getData(){return this.data+btoa(this.Ct)}}let En,vn;class Sn extends yn{constructor(t){super(),Object.assign(this,{jt:t,size:t.size}),vn||(vn=(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();En=1==e}catch{En=!1}})())}createReadable(t){const{jt:e,size:r}=this,{offset:n=0,size:a=r-n}=t||{};return!n&&a>=r?Ce(e.stream()):En?Ce(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.jt:r.jt.slice(t,n);let o=await a.arrayBuffer();return o.byteLength>e&&(o=o.slice(t,n)),new Uint8Array(o)}}class zn extends hn{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,mn,{get:()=>r.writable}),e.contentType=t,e.Mt=je(r.readable,t),e.Mt.catch(()=>{})}getData(){return this.Mt}}class kn extends Sn{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function An(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 Rn extends zn{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 rn(t,e,!1)}(new Uint8Array(await r.arrayBuffer()),t)}}class Dn extends yn{constructor(t,e){super(),On(this,t,e)}async init(){await Tn(this,qn,Pn),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,o=0,s=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(an);const a=e.length>o?e.subarray(0,o):e;o-=a.length,s-=a.length,a.length&&t.enqueue(a),o||(await async function(){const t=n;n=F,await t.cancel()}(),s||t.close())},cancel:t=>n&&n.cancel(t)});async function i(){const e=Math.min(t.maximumRangeSize,s),r=await qn(fn,t,Nn(t,a,e));if(206!=r.status)throw new Error(an);const i=r.headers.get(ln);if(i){const t=Number(i.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=a)throw new Error(an)}Mn(t,r),jn(t,r),a+=e,o=e,n=r.body.getReader()}}(e,r,Math.min(n,a-r))}return super.createReadable(t)}readUint8Array(t,e){return Un(this,t,e,qn,Pn)}}class Fn extends yn{constructor(t,e){super(),On(this,t,e)}async init(){await Tn(this,Zn,Bn),super.init()}readUint8Array(t,e){return Un(this,t,e,Zn,Bn)}}function On(t,e,r){const{preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:o,combineSizeEocd:s,checkResourceChanges:i=!0,maximumRangeSize:c=pn,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:o,combineSizeEocd:s,checkResourceChanges:i,maximumRangeSize:c,fetch:l})}async function Tn(t,e,r){const{url:n,preventHeadRequest:a,useRangeHeader:o,forceRangeRequests:s,combineSizeEocd:i}=t;if(function(t){const{baseURI:e}=yt(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r}(n)&&(o||s)&&(typeof a==T||a)){const n=await e(fn,t,Nn(t,i?-22:void 0)),a=n.headers.get("Accept-Ranges");if(!(s||a&&a.toLowerCase()==un))throw new Error(an);{if(i){const e=new Uint8Array(await n.arrayBuffer());206==n.status&&e.length==u&&(t._t=e)}jn(t,n);const a=In(n);a===F?await Ln(t,e,r):t.size=a}}else await Ln(t,e,r)}async function Un(t,e,r,n,a){const{useRangeHeader:o,forceRangeRequests:s,_t:i,size:c,options:l}=t;if(o||s){if(i&&e==c-u&&r==u)return i;if(e>=c||0===r)return j;{e+r>c&&(r=c-e);const a=await n(fn,t,Nn(t,e,r));if(206!=a.status)throw new Error(an);const o=a.headers.get(ln);if(o){const t=Number(o.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=e)throw new Error(an)}Mn(t,a),jn(t,a);const s=new Uint8Array(await a.arrayBuffer());if(s.length!=r)throw new Error(an);return s}}{const{data:n}=t;return n||await a(t,l),t.data.subarray(e,e+r)}}function In(t){const e=t.headers.get(ln);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function Cn({headers:t}){return{Pt:t.get("Etag")||F,lastModified:t.get("Last-Modified")||F}}function jn(t,e){const{checkResourceChanges:r,Bt:n}=t;r&&!n&&206==e.status&&(t.Bt=Cn(e))}function Mn(t,e){const{checkResourceChanges:r,Bt:n,size:a}=t;if(r){const t=In(e);if(t!==F&&a!==F&&t!=a)throw new Error(on);if(n){const t=Cn(e);if(Object.entries(n).some(([e,r])=>r!==F&&t[e]!==F&&r!=t[e]))throw new Error(on)}}}function Nn(t,e=0,r=1){return Object.assign({},_n(t),{[dn]:un+"="+(e<0?e:e+"-"+(e+r-1))})}function _n({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Pn(t){await Wn(t,qn)}async function Bn(t){await Wn(t,Zn)}async function Wn(t,e){const r=await e(fn,t,_n(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function Ln(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const n=await e("HEAD",t,_n(t)),a=n.headers.get("Content-Length");a&&!n.headers.get("Content-Encoding")?t.size=Number(a):await r(t,t.options)}}async function qn(t,{fetch:e=fetch,options:r,url:n},a){const o=await e(n,Object.assign({},r,{method:t,headers:a}));if(o.status<400)return o;throw 416==o.status?new Error(an):new Error(nn+(o.statusText||o.status))}function Zn(t,{url:e},r){return new Promise((n,a)=>{const o=new XMLHttpRequest;if(o.addEventListener("load",()=>{if(o.status<400){const t=[];o.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:o.status,arrayBuffer:()=>o.response,headers:new Map(t)})}else a(416==o.status?new Error(an):new Error(nn+(o.statusText||o.status)))},!1),o.addEventListener("error",t=>a(t.detail?t.detail.error:new Error("Network error")),!1),o.open(t,e),r)for(const t of Object.entries(r))o.setRequestHeader(t[0],t[1]);o.responseType="arraybuffer",o.send()})}class Vn extends yn{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new Fn(t,e):new Dn(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 Hn extends Vn{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class Gn extends yn{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 Kn extends bn{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 Yn extends yn{constructor(t){super(),this.qt=t}async init(){const t=this;t.Zt=0;const e=t.qt=await Promise.all(t.qt.map(ea));t.Vt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}Ht(t){const{Vt:e,size:r}=this,n=e[t];return n===F?r:n}async readUint8Array(t,e){const r=this,{qt:n}=this;let a,o=0,s=t;for(;n[o]&&s>=n[o].size;)s-=n[o].size,o++;const i=n[o];if(i){const n=i.size;if(s+e<=n)a=await ra(i,s,e);else{const o=n-s;a=At(await ra(i,s,o),await r.readUint8Array(t+o,e-o))}}else a=j;return r.Zt=Math.max(o,r.Zt),a}}class Xn extends hn{constructor(t,e=4294967295){super();const r=this;let n,a,o;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:e,availableSize:e});const s=new WritableStream({async write(e){if(e===wn)return void(o&&await c());const{availableSize:s}=r;if(o)e.length>=s?(await i(e.subarray(0,s)),await c(),e.length>s&&await this.write(e.subarray(s))):await i(e);else{const{value:s,done:i}=await t.next();if(i&&!s)throw new Error(sn);n=s,n.size=0,n.maxSize&&(r.maxSize=n.maxSize),r.availableSize=r.maxSize,await ta(n),a=s.writable,o=a.getWriter(),await this.write(e)}},async close(){o&&(await o.ready,await l())},async abort(t){o&&await o.abort(t)}});async function i(t){const e=t.length;e&&(await o.ready,await o.write(t),n.size+=e,r.availableSize-=e)}async function c(){await l(),r.diskOffset+=n.size,r.diskNumber++,o=null,r.availableSize=r.maxSize}async function l(){await o.close()}Object.defineProperty(r,mn,{get:()=>s})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(wn)}finally{t.releaseLock()}}}class Jn{constructor(t){return Array.isArray(t)&&(t=new Yn(t)),(t instanceof ReadableStream||typeof t.getReader==U)&&(t={readable:Ce(t)}),t}}class Qn{constructor(t){return t.writable===F&&typeof t.next==U&&(t=new Xn(t)),(t instanceof WritableStream||typeof t.getWriter==U)&&(t={writable:Me(t)}),t.size===F&&(t.size=0),t}}function $n(t){return Boolean(t&&t.getData)}async function ta(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function ea(t){return t=new Jn(t),await ta(t),t.size!==F&&t.readUint8Array||(t=new Sn(await je(t.readable)),await ta(t)),t}function ra(t,e,r){return t.readUint8Array(e,r)}function na(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?yn.prototype.createReadable.call(t,e):t.readable}const aa="filename",oa="rawFilename",sa="comment",ia="rawComment",ca="uncompressedSize",la="compressedSize",da="offset",fa="diskNumberStart",ua="lastModDate",pa="rawLastModDate",ma="lastAccessDate",wa="rawLastAccessDate",ha="creationDate",ya="rawCreationDate",ba="internalFileAttributes",ga="externalFileAttributes",xa="internalFileAttribute",Ea="externalFileAttribute",va="msdosAttributesRaw",Sa="msdosAttributes",za="msDosCompatible",ka="zip64",Aa="encrypted",Ra="version",Da="versionMadeBy",Fa="zipCrypto",Oa="directory",Ta="executable",Ua="compressionMethod",Ia="signature",Ca="extraField",ja="unixMode",Ma="setuid",Na="setgid",_a="sticky",Pa=[aa,oa,ca,la,ua,pa,sa,ia,ma,wa,ha,ya,da,fa,ba,ga,xa,Ea,va,Sa,za,ka,Aa,Ra,Da,Fa,Oa,Ta,"symlink",Ua,Ia,"crc32",Ca,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",ja,"unixExternalUpper",Ma,Na,_a,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class Ba{constructor(t){Pa.forEach(e=>this[e]=t[e])}}const Wa="File format is not recognized",La="End of central directory not found",qa="End of Zip64 central directory locator not found",Za="Central directory header not found",Va="Local file header not found",Ha="Zip64 extra field not found",Ga="File contains encrypted entry",Ka="Encryption method not supported",Ya="Compression method not supported",Xa="Split zip file",Ja="Overlapping entry found",Qa="Entry data out of bounds",$a="Ambiguous archive",to="Encrypted central directory is not supported",eo="Unsafe filename",ro="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",no="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",ao="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",oo="64-bit value exceeds Number.MAX_SAFE_INTEGER",so="unsorted central directory",io="unknown version needed to extract",co="compressed patched data",lo="malformed extra field",fo="unknown zip64 extensible data",uo="wrapped entries count",po="appended data",mo="prepended data",wo="prepended central directory",ho="trailing central directory data",yo="duplicate filename",bo="mismatched zip64 end of central directory record",go="mismatched local file header (general purpose bit flag)",xo="mismatched local file header (compression method)",Eo="mismatched local file header (crc32 or sizes)",vo=/^[a-zA-Z]:/,So="utf-8",zo="cp437",ko=[[ca,t],[la,t],[da,t],[fa,e]],Ao={[e]:{Gt:ls,bytes:4},[t]:{Gt:ds,bytes:8}},Ro=BigInt(Number.MAX_SAFE_INTEGER);class Do{constructor(t,e={}){Object.assign(this,{reader:new Jn(t),options:e,Kt:new Map})}async*getEntriesGenerator(n={}){const o=this;let{reader:s}=o;if(await ta(s),s.size!==F&&s.readUint8Array||(s=new Sn(await je(s.readable)),await ta(s)),s.size<u)throw new Error(Wa);const c=o.warnings=[],w=Vo(n,o.options),h=w==J,y=w!=$,b=Ko(ns(o,n,G),w),g=function(t,e){if(t===F)return e;if(!Zo(t))throw new Error(no);return t}(ns(o,n,"filenameValidation"),w),x=ns(o,n,"normalizeFilename"),{Yt:A,Xt:R}=await Yo(s,y,b);if(!A)throw await async function(t){return await qo(t)==a}(s)?new Error(Xa):new Error(La);y&&R>1&&rs("multiple end of central directory records");const D=Dt(A);let O=ls(D,12),T=ls(D,16);const U=A.offset,I=cs(D,20),C=U+u+I,M=s.size-C;M>b&&rs(po),M>0&&es(c,po);let N=cs(D,4);const _=s.Zt||0;let P,B,W,L,q,Z=cs(D,6),V=cs(D,10),H=0,K=m;const Q=T==t||O==t||V==e||Z==e;if(T!=t&&Z!=e&&(T+=Lo(s,Z)),Q){const r=A.offset>=p?await ra(s,A.offset-p,p):j,n=Dt(r);if(r.length==p&&ls(n,0)==d){T=Lo(s,ls(n,4))+ds(n,8);let r=await ra(s,T,m),a=Dt(r);const o=A.offset-p-m;if((r.length<m||ls(a,0)!=l)&&T!=o&&o>=0){const t=T;T=o,T>t&&(H=T-t),r=await ra(s,T,m),a=Dt(r)}if(r.length<m||ls(a,0)!=l)throw new Error(qa);if(W=!0,L=ds(a,4)>44,L){const t=Math.min(ds(a,4)-44,s.size-T-m);t>0&&(K+=t,q=function(t){const e={rawExtensibleData:t};if(t.length>=28){const r=Dt(t),n=cs(r,26);Object.assign(e,{compressionMethod:cs(r,0),compressedSize:ds(r,2),uncompressedSize:ds(r,10),encryptionAlgorithm:cs(r,18),bitLength:cs(r,20),flags:cs(r,22),hashAlgorithm:cs(r,24),hashData:t.subarray(28,28+n)})}return e}(await ra(s,T+m,t)))}N==e?N=ls(a,16):N!=ls(a,16)&&ts(h,c,bo),Z==e?Z=ls(a,20):Z!=ls(a,20)&&ts(h,c,bo),V==e?V=ds(a,32):V!=ds(a,32)&&ts(h,c,bo),O==t?O=ds(a,40):O!=ds(a,40)&&ts(h,c,bo),T=Lo(s,Z)+ds(a,48)+H}}let tt=O;const et=A.offset-(W?K+p:0);if(T>=s.size&&(H=s.size-T-O-u,T=s.size-O-u),_!=N)throw new Error(Xa);if(T<0)throw new Error(Wa);let rt=0,nt=await ra(s,T,O),at=Dt(nt);if(O){if(nt.length<4)throw new Error(Wa);const t=et-O;if(T!=t&&Z==N){const e=ls(at,rt)==i||Boolean(q&&q.compressedSize)||Uo(at);let r=!e;if(!r&&t>=0&&t+4<=s.size&&(r=ls(Dt(await ra(s,t,4)),0)==i),r){const r=T;T=t,T>r&&(H+=T-r,P=e),nt=await ra(s,T,O),at=Dt(nt)}}}const ot=et-T;if(O!=ot&&ot>=0&&Z==N&&(O=ot,nt=await ra(s,T,O),at=Dt(nt)),T<0||T>=s.size)throw new Error(Wa);o.directoryOffset=T,o.directoryLength=tt;const st=as(o,n,"decryptCentralDirectory");let it,ct;if(st&&V&&nt.length>=4&&ls(at,0)!=i&&(L||Uo(at))){const t=function(t,e,r){const n=t&&t.compressedSize?t.compressedSize:e;return n>0&&n<=r?n:r}(q,tt,nt.length);ct=nt.subarray(t),nt=await st(nt.subarray(0,t),q),at=Dt(nt),tt=nt.length,it=!0}q&&!it&&(nt.length<4||ls(at,0)==i)&&es(c,fo),B=T;const lt=ns(o,n,"filenameEncoding"),dt=ns(o,n,"commentEncoding"),ft=new Set;let ut,pt=-1;const mt=!h&&!W;!V&&mt&&(V=Io(at,nt,rt),V&&es(c,uo));for(let t=0;t<V;t++){const a=new To(s,o.options);if(rt+f>nt.length||ls(at,rt)!=i){if(0==t&&!it&&(L||Uo(at)))throw new Error(to);throw new Error(Za)}jo(a,at,rt+6);const l=Boolean(a.bitFlag.languageEncodingFlag),d=rt+f,u=d+a.filenameLength,p=u+a.extraFieldLength,m=cs(at,rt+4),w=!(m>>8),h=m>>8==3,y=nt.subarray(d,u),b=cs(at,rt+32),A=p+b,R=nt.subarray(p,A),D=l,O=l,T=ls(at,rt+38),U=T&r,I={readOnly:Boolean(1&U),hidden:Boolean(2&U),system:Boolean(4&U),directory:Boolean(16&U),archive:Boolean(32&U)},C=ls(at,rt+42),j=as(o,n,"decodeText")||en,M=D?So:lt||zo,N=O?So:dt||zo;let _=j(y,M,Y);if(_===F&&(_=en(y,M)),x){const t=x(_);t!==F&&(_=t)}if(Go(_,g)){const t=new Error(eo);throw t.filename=_,t}let P=j(R,N,X);P===F&&(P=en(R,N)),Object.assign(a,{index:t,Jt:it,versionMadeBy:m,msDosCompatible:w,zip64:!1,compressedSize:0,uncompressedSize:0,Qt:b,offset:C,diskNumberStart:cs(at,rt+34),internalFileAttributes:cs(at,rt+36),externalFileAttributes:T,msdosAttributesRaw:U,msdosAttributes:I,rawFilename:y,filenameUTF8:D,commentUTF8:O,rawExtraField:nt.subarray(u,p),rawComment:R,filename:_,comment:P}),Mo(a,a,at,rt+6)&&es(c,lo,_),a.offset+=H;const W=Lo(s,a.diskNumberStart)+a.offset;B=Math.min(W,B),W<pt&&es(c,so,_),pt=W,(a.version&r)>63&&es(c,io,_),32&~a.rawBitFlag||es(c,co,_),ft.has(a.filename)&&(ut=!0),ft.add(a.filename);const q=a.externalFileAttributes>>16&e;a.unixMode===F&&16877&q&&(a.unixMode=q);const Z=Boolean(a.unixMode&S),G=Boolean(a.unixMode&z),K=Boolean(512&a.unixMode),J=40960==((a.unixMode===F?q:a.unixMode)&E),Q=!J&&(a.unixMode!==F?!!(73&a.unixMode):h&&!!(73&q)),$=a.unixMode!==F&&(a.unixMode&E)==v,tt=(q&E)==v;Object.assign(a,{setuid:Z,setgid:G,sticky:K,symlink:J,unixExternalUpper:q,internalFileAttribute:a.internalFileAttributes,externalFileAttribute:a.externalFileAttributes,executable:Q,directory:$||tt||w&&I.directory||a.filename.endsWith(k),zipCrypto:a.encrypted&&!a.extraFieldAES});const et=new Ba(a);if(et.getData=(t,e)=>a.getData(t,et,o.Kt,e),et.arrayBuffer=async t=>{const e=new TransformStream,r=je(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await a.getData(e,et,o.Kt,t),r},rt=A,t==V-1&&mt){const t=Io(at,nt,rt);t&&(V+=t,es(c,uo))}const{onprogress:ot}=n;if(ot)try{await ot(t+1,V,new Ba(a))}catch{}yield et}let wt=rt,ht=Co(nt.subarray(rt))||(it?Co(ct):F);if(!ht&&!it){const t=T+rt,e=Math.min(et-t,65541);e>=6&&(ht=Co(await ra(s,t,e)))}ht&&(o.digitalSignature=ht,wt=rt+6+ht.length),(rt!=tt&&wt!=tt||!it&&rt!=O&&wt!=O)&&ts(h,c,ho),ut&&ts(h,c,yo);const yt=ns(o,n,"extractPrependedData"),bt=ns(o,n,"extractAppendedData"),gt=(h||yt)&&V&&4==B&&await async function(t){const e=await qo(t);return e==a||808471376==e}(s)?4:0;return h&&(H||V&&B>gt)&&rs(mo),(H||V&&B>4)&&es(c,mo),P&&es(c,wo),yt&&(o.prependedData=B>gt?await ra(s,gt,B-gt):j),o.comment=I?await ra(s,U+u,I):j,bt&&(o.appendedData=C<s.size?await ra(s,C,s.size-C):j),!0}async getEntries(t={}){const e=[];for await(const r of this.getEntriesGenerator(t))e.push(r);return e}async close(){const{reader:t}=this;t.readUint8Array||!t.readable||t.readable.locked||await t.readable.cancel()}}class Fo{constructor(t={}){const{readable:e,writable:r}=new TransformStream,n=new Do(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}}async function Oo(t,e={}){if(t=new Jn(t),await ta(t),t.size!==F&&t.readUint8Array||(t=new Sn(await je(t.readable)),await ta(t)),t.size<u)return!1;const r=Vo(e,{}),n=r!=$,a=Ko(e[G],r),{Yt:o,Xt:s}=await Yo(t,n,a);if(!o||r==J&&s>1)return!1;const i=cs(Dt(o),20),c=o.offset+u+i;return t.size-c<=a}let To=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,a,s={}){const i=this,c=yt(),{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:E}=i,{dataDescriptor:v}=h,S=e.localDirectory={},z=e.warnings=[],k=Lo(l,u)+f,R=await ra(l,k,A),D=Dt(R);let O=ns(i,s,M),T=ns(i,s,N);const U=ns(i,s,_);if(ot(O,T),O=O&&O.length&&O,T=T&&T.length&&T,p&&99!=p.originalCompressionMethod)throw new Error(Ya);if(R.length<A||ls(D,0)!=n)throw new Error(Va);jo(S,D,4);const{extraFieldLength:I,filenameLength:C}=S,Z=S.dataOffset=k+A+C+I,V=ns(i,s,"checkLocalDirectory"),H=Vo(s,i.options),G=function(t,e){return t===F?e!=$:Boolean(t)}(V,H),K=function(t,e){return t===F?e==J:Boolean(t)}(V,H);let Y=j;if(K&&(C||I)){const t=await ra(l,k+A,C+I);Y=t.subarray(0,C),S.rawExtraField=t.subarray(C)}else S.rawExtraField=I?await ra(l,k+A+C,I):j;K&&(S.rawFilename=Y),Mo(i,S,D,4,!0)&&es(z,lo),function(t,e,r,n,a){const{rawFilename:o}=t,s=!a,i=t.Jt&&!(8192&~e.rawBitFlag);!n||i||r.length==o.length&&!r.some((t,e)=>t!=o[e])||ts(s,a,"mismatched local file header (filename)"),(2057&e.rawBitFlag)!=(2057&t.rawBitFlag)&&ts(s,a,go),e.compressionMethod!=t.compressionMethod&&ts(s,a,xo),e.bitFlag.dataDescriptor||i||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||ts(s,a,Eo)}(i,S,Y,K,G?F:z);const{lastAccessDate:X,creationDate:Q,uid:tt,gid:et}=S;X&&(e.lastAccessDate=X),Q&&(e.creationDate=Q),tt!==F&&e.uid===F&&(e.uid=tt),et!==F&&e.gid===F&&(e.gid=et);const rt=i.encrypted&&S.encrypted&&!U,nt=rt&&!p;if(U||(e.zipCrypto=nt),rt&&!(64&~S.rawBitFlag))throw new Error(Ka);const st=U?F:Ve(w);if(0!=w&&8!=w&&9!=w&&!st&&!U)throw new Error(Ya);if(rt){if(!nt&&(p.strength<1||p.strength>3))throw new Error(Ka);if(!O&&!T)throw new Error(Ga)}if(Z+E>l.size)throw new Error(Qa);const it=E,ct=Ce(l.createReadable({offset:Z,size:it})),lt=at(ns(i,s,P)),dt=ns(i,s,"checkPasswordOnly");let ft=ns(i,s,"checkOverlappingEntry");const ut=ns(i,s,"checkOverlappingEntryOnly");ut&&(ft=!0);const{onstart:pt,onprogress:mt,onend:wt}=s,ht=0!=w&&!U,bt=U?E:x,gt=9==w;let xt=ns(i,s,W);gt&&(xt=!1);const Et=ns(i,s,"checkCrc32"),vt=(Et===F?ns(i,s,"checkSignature"):Et)&&!U&&(!rt||nt||p&&1==p.vendorVersion),St={options:{codecType:wr,password:O,rawPassword:T,zipCrypto:nt,encryptionStrength:p&&p.strength,checkCrc32:vt,checkAuthenticationCode:ns(i,s,"checkAuthenticationCode"),passwordVerification:nt&&(v?g>>>8&r:b>>>24&r),outputSize:bt,crc32:b,compressed:ht,encrypted:rt,useWebWorkers:ns(i,s,B),useCompressionStream:xt,transferStreams:ns(i,s,L),deflate64:gt,format:st?st.format:F,codecURI:st?st.codecURI:F,compressionMethod:w,rawBitFlag:y,checkPasswordOnly:dt},config:c,ut:{signal:lt,size:it,onstart:pt,onprogress:mt,onend:wt}};let zt,kt;ft&&await async function({reader:t,$t:e,index:r,offset:n,crc32:a,compressedSize:s,uncompressedSize:i,dataOffset:c,dataDescriptor:l,extraFieldZip64:d,Kt:f}){let u=0;if(l&&(u=d?20:12),u){const r=await ra(t,c+s,u+4),n=Dt(r);let l=r.length==u+4&&ls(n,0)==o;if(l){const t=Wo(n,4,d);(e.encrypted&&!e.zipCrypto||t.crc32==a)&&t.compressedSize==s&&t.uncompressedSize==i?u+=4:l=!1}if(r.length>=u){const t=Wo(n,l?4:0,d);t.signature=l,e.localDirectory.dataDescriptor=t}}const p={start:n,end:c+s+u,$t:e};for(const[t,e]of f)if(t!=r&&p.start<e.end&&e.start<p.end){const t=new Error(Ja);throw t.overlappingEntry=e.$t,t}f.set(r,p)}({reader:l,$t:e,index:d,offset:k,crc32:b,compressedSize:E,uncompressedSize:x,dataOffset:Z,dataDescriptor:v||S.bitFlag.dataDescriptor,extraFieldZip64:m||S.extraFieldZip64,Kt:a});try{if(!ut){dt&&(t=new WritableStream),t=new Qn(t),await ta(t,function(t,e,r){return Math.min(t,r?1032*e:e)}(bt,E,ht)),({writable:zt}=t);const{outputSize:e}=await Kr({readable:ct,writable:zt},St);if(t.size+=e,e!=bt)throw new Error(Ye)}}catch(e){if(e.outputSize!==F&&(t.size+=e.outputSize),!dt||e.message!=Yt)throw kt=e,e}finally{if(($n(t)||!ns(i,s,q))&&zt&&!zt.locked){const t=zt.getWriter();if(kt)try{await t.abort(kt)}catch{}else await t.close()}}return dt||ut?F:t.getData?t.getData():zt}};function Uo(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;r<e;r++)if(134630224==ls(t,r))return!0;return!1}function Io(t,e,r){let n=0;for(;r+f<=e.length&&ls(t,r)==i;)r+=f+cs(t,r+28)+cs(t,r+30)+cs(t,r+32),n++;return n%65536?0:n}function Co(t){if(t.length>=6){const e=Dt(t);if(ls(e,0)==s){const r=cs(e,4);if(6+r<=t.length)return t.subarray(6,6+r)}}}function jo(t,e,r){const n=t.rawBitFlag=cs(e,r+2),a=!(1&~n),o=ls(e,r+6);Object.assign(t,{encrypted:a,version:cs(e,r),bitFlag:{level:(6&n)>>1,dataDescriptor:!(8&~n),languageEncodingFlag:(n&x)==x},rawLastModDate:o,lastModDate:os(o),filenameLength:cs(e,r+22),extraFieldLength:cs(e,r+24)})}function Mo(t,e,r,n,a){const{rawExtraField:o}=e,s=e.extraField=new Map,i=Dt(o);let c=0,l=!1;try{for(;c<o.length;){const t=cs(i,c),e=cs(i,c+2);s.set(t,{type:t,data:o.slice(c+4,c+4+e)}),c+=4+e}}catch{l=!0}c>o.length&&(l=!0);const d=cs(r,n+4);Object.assign(e,{signature:ls(r,n+10),crc32:ls(r,n+10),compressedSize:ls(r,n+14),uncompressedSize:ls(r,n+18)});const f=s.get(1);f&&(function(t,e){e.zip64=!0;const r=Dt(t.data),n=ko.filter(([t,r])=>e[t]==r),a=n.reduce((t,[,e])=>t+Ao[e].bytes,0);if(t.data.length<a)throw new Error(Ha);for(let a=0,o=0;a<n.length;a++){const[s,i]=n[a],c=Ao[i];e[s]=t[s]=c.Gt(r,o),o+=c.bytes}}(f,e),e.extraFieldZip64=f);const u=s.get(28789);u&&(No(u,aa,oa,e,t),e.extraFieldUnicodePath=u);const p=s.get(25461);p&&(No(p,sa,ia,e,t),e.extraFieldUnicodeComment=p);const m=s.get(w);m&&m.data.length>=7?(function(t,e,r){const n=Dt(t.data),a=is(n,4);Object.assign(t,{vendorVersion:is(n,0),vendorId:is(n,2),strength:a,originalCompressionMethod:r,compressionMethod:cs(n,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=F)}(m,e,d),e.extraFieldAES=m):e.compressionMethod=d;const x=s.get(13);x&&(_o(x,e),e.extraFieldPkwareUnix=x);const E=s.get(22613);E&&(_o(E,e),e.extraFieldUnixType1=E);const v=s.get(10);v&&(function(t,e){const r=Dt(t.data);let n,a=4;try{for(;a<t.data.length&&!n;){const e=cs(r,a),o=cs(r,a+2);1==e&&(n=t.data.slice(a+4,a+4+o)),a+=4+o}}catch{}if(n&&24==n.length){const r=Dt(n),a=r.getBigUint64(0,!0),o=r.getBigUint64(8,!0),s=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:a,rawLastAccessDate:o,rawCreationDate:s});const i={lastModDate:ss(a),lastAccessDate:ss(o),creationDate:ss(s)};Object.assign(t,i),Object.assign(e,i,{rawLastAccessDate:o,rawCreationDate:s})}}(v,e),e.extraFieldNTFS=v);const S=s.get(g);let z;if(S&&(z=Po(S,e,!1),e.extraFieldUnix=S),!z){const t=s.get(b);t&&(Po(t,e,!0),e.extraFieldInfoZip=t)}const k=s.get(h);k&&(function(t,e,r){if(!t.data.length)return;const n=Dt(t.data),a=is(n,0),o=[],s=[];r?(1&~a||(o.push(ua),s.push(pa)),2&~a||(o.push(ma),s.push(wa)),4&~a||(o.push(ha),s.push(ya))):t.data.length>=5&&(o.push(ua),s.push(pa));let i=1;o.forEach((r,a)=>{if(t.data.length>=i+4){const o=ls(n,i);e[r]=t[r]=new Date(1e3*(0|o));const c=s[a];t[c]=o}i+=4})}(k,e,a),e.extraFieldExtendedTimestamp=k);const A=s.get(y);return A&&(e.extraFieldUSDZ=A),l}function No(t,e,r,n,a){if(t.data.length<5)return void(t.valid=!1);const o=Dt(t.data),s=new _t;s.append(a[r]);const i=Dt(new Uint8Array(4));i.setUint32(0,s.get(),!0);const c=ls(o,1),l=is(o,0);Object.assign(t,{version:l,[e]:en(t.data.subarray(5)),valid:1==l&&!a.bitFlag.languageEncodingFlag&&c==ls(i,0)}),t.valid&&(n[e]=t[e],n[e+"UTF8"]=!0)}function _o(t,e){if(t.data.length<8)return;const r=Dt(t.data),n={lastAccessDate:new Date(1e3*(0|ls(r,0))),lastModDate:new Date(1e3*(0|ls(r,4)))};t.data.length>=12&&(n.uid=cs(r,8),n.gid=cs(r,10)),Object.assign(t,n),Object.assign(e,n)}function Po(t,e,r){try{const n=Dt(t.data);let a,o;if(r){let e=0;const r=is(n,e++),s=is(n,e++);a=Bo(t.data.subarray(e,e+s)),e+=s;const i=is(n,e++);o=Bo(t.data.subarray(e,e+i)),Object.assign(t,{version:r,uid:a,gid:o})}else t.data.length>=4&&(a=cs(n,0),o=cs(n,2),Object.assign(t,{uid:a,gid:o}));return a!==F&&(e.uid=a),o!==F&&(e.gid=o),a!==F||o!==F}catch{}}function Bo(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function Wo(t,e,r){const n=ls(t,e);let a,o;return r?(a=ds(t,e+4),o=ds(t,e+12)):(a=ls(t,e+4),o=ls(t,e+8)),{crc32:n,compressedSize:a,uncompressedSize:o}}function Lo(t,e){return t.Ht?t.Ht(e):0}async function qo(t){return ls(Dt(await ra(t,0,4)))}function Zo(t){return t===J||t===Q||t===$}function Vo(t,e){return Ho(t,Ho(e,Q))}function Ho(t,e){const r=t.strictness;if(r!==F){if(!Zo(r))throw new Error(ro);return r}const n=t.checkAmbiguity;return n===F?e:n?J:e==$?$:Q}function Go(t,e){if(e==$)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(r.includes("..")||t.startsWith("/")||t.startsWith("\\\\")||vo.test(t))||e==J&&(r.includes(".")||r.includes(""))}function Ko(t,r){if(t!==F){const e=ct(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw new Error(ao);return e}return r==J?0:r==$?1/0:e}async function Yo(t,e,r){const{size:n}=t,a=Math.min(n,65557),o={count:64};let s,i,c=0;for await(const[r,l,d,f,p]of Xo(t,a)){const a=cs(r,f+20);if(p+u+a==n){const a=await Qo(t,r,l,f,p,n,o);if(2==a){if(s||(s=Jo(d,f,p)),c++,!e||c>1)break}else 1!=a||i||(i=Jo(d,f,p))}}return s||(s=i),s||(s=await async function(t,e,r){const{size:n}=t,a=Math.min(n,e==1/0?n:65557+e);let o,s;for await(const[e,i,c,l,d]of Xo(t,a)){const a=Jo(c,l,d);o||(o=a);const f=await Qo(t,e,i,l,d,n,r);if(2==f)return a;1!=f||s||(s=a)}return s||o}(t,r,o)),{Yt:s,Xt:c}}async function*Xo(t,e){const r=t.size-e,n=await ra(t,r,e),a=Dt(n);for(let t=n.length-u;t>=0;t--)ls(a,t)==c&&(yield[a,r,n,t,r+t])}function Jo(t,e,r){return{offset:r,buffer:t.slice(e,e+u).buffer}}async function Qo(r,n,a,o,s,c,l){const f=cs(n,o+10),u=ls(n,o+12),m=ls(n,o+16);if(f==e||u==t||m==t)return await $o(r,n,a,s-p,c,l)==d?2:0;if(!f&&!u)return 1;const w=cs(n,o+6);for(const t of[s-u,Lo(r,w)+m])if(await $o(r,n,a,t,c,l)==i)return 2;return 0}async function $o(t,e,r,n,a,o){return n<0||n+4>a?F:n>=r?ls(e,n-r):o.count>0?(o.count--,ls(Dt(await ra(t,n,4)),0)):F}function ts(t,e,r){t?rs(r):es(e,r)}function es(t,e,r){if(!t.some(t=>t.reason==e)){const n={reason:e};r!==F&&(n.filename=r),t.push(n)}}function rs(t){const e=new Error($a);throw e.reason=t,e}function ns(t,e,r){return e[r]===F?t.options[r]:e[r]}function as(t,e,r){return nt(ns(t,e,r))}function os(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 ss(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function is(t,e){return t.getUint8(e)}function cs(t,e){return t.getUint16(e,!0)}function ls(t,e){return t.getUint32(e,!0)}function ds(t,e){const r=t.getBigUint64(e,!0);if(r>Ro)throw new Error(oo);return Number(r)}var fs=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:$a,ERR_BAD_FORMAT:Wa,ERR_CENTRAL_DIRECTORY_NOT_FOUND:Za,ERR_ENCRYPTED:Ga,ERR_ENCRYPTED_CENTRAL_DIRECTORY:to,ERR_ENTRY_DATA_OUT_OF_BOUNDS:Qa,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:qa,ERR_EOCDR_NOT_FOUND:La,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:Ha,ERR_INVALID_AUTHENTICATION_CODE:Kt,ERR_INVALID_COMPRESSED_DATA:Xe,ERR_INVALID_CRC32:Je,ERR_INVALID_FILENAME_VALIDATION:no,ERR_INVALID_MAX_APPENDED_DATA_SIZE:ao,ERR_INVALID_PASSWORD:Ht,ERR_INVALID_SIGNATURE:Gt,ERR_INVALID_STRICTNESS:ro,ERR_INVALID_UNCOMPRESSED_SIZE:Ye,ERR_LOCAL_FILE_HEADER_NOT_FOUND:Va,ERR_OVERLAPPING_ENTRY:Ja,ERR_SPLIT_ZIP_FILE:Xa,ERR_UNSAFE_FILENAME:eo,ERR_UNSUPPORTED_COMPRESSION:Ya,ERR_UNSUPPORTED_ENCRYPTION:Ka,ERR_UNSUPPORTED_UINT64:oo,ERR_WORKER_STARTUP_TIMEOUT:br,WARNING_APPENDED_DATA:po,WARNING_COMPRESSED_PATCHED_DATA:co,WARNING_DUPLICATE_FILENAME:yo,WARNING_MALFORMED_EXTRA_FIELD:lo,WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG:go,WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD:xo,WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES:Eo,WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY:bo,WARNING_PREPENDED_CENTRAL_DIRECTORY:wo,WARNING_PREPENDED_DATA:mo,WARNING_TRAILING_CENTRAL_DIRECTORY_DATA:ho,WARNING_UNKNOWN_VERSION:io,WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA:fo,WARNING_UNSORTED_CENTRAL_DIRECTORY:so,WARNING_WRAPPED_ENTRIES_COUNT:uo,ZipReader:Do,ZipReaderStream:Fo,isZipFile:Oo});const us="File already exists",ps="Zip file comment exceeds 64KB",ms="Invalid zip file comment (must be a Uint8Array)",ws="File entry comment exceeds 64KB",hs="Invalid file entry comment (must be a string)",ys="Invalid date (must be a valid Date instance)",bs="File entry name exceeds 64KB",gs="Version exceeds 65535",xs="The strength must equal 1, 2, or 3",Es="Encryption is not supported in USDZ files",vs="Encryption is not supported when the 'passThrough' option is set",Ss="Invalid extra field (must be a Map)",zs="Invalid extra field type (must be integer 0..65535)",ks="Invalid extra field data (must be a Uint8Array)",As="Extra field data exceeds 64KB",Rs=-2147483648,Ds=2147483647,Fs=BigInt(0),Os=BigInt("0x7fffffffffffffff"),Ts="Zip64 is not supported (set the 'zip64' option to 'true')",Us="Undefined uncompressed size",Is="Undefined compression method",Cs="Undetermined size",js="Undefined reader",Ms="Zip file not empty",Ns="Invalid uid (must be integer 0..2^32-1)",_s="Invalid gid (must be integer 0..2^32-1)",Ps="Invalid UNIX mode (must be integer 0..65535)",Bs="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",Ws="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",Ls="Invalid msdosAttributesRaw (must be integer 0..255)",qs="Invalid msdosAttributes (must be an object with boolean flags)",Zs="Invalid level (must be integer 0..9)",Vs="Signature data exceeds 64KB",Hs=new Uint8Array([7,0,2,0,65,69,3,0,0]),Gs="infozip",Ks="unix";let Ys=0;const Xs=[];class Js{constructor(t,e={}){t=new Qn(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[V]===F?t.size||t.writable.size||0:e[V],ne:e[V]===F?0:e[V]-(t.size||t.writable.size||0),ae:new Set,oe:[],se:0,ie:F})}prependZip(t){return ti(this,async function(t,e){if(t.re.size)throw new Error(Ms);await t.ce(e)}(this,t))}appendZip(t){return ti(this,this.ce(t))}async ce(t){const e=this,{ae:r,re:n,ee:o}=e;for(;r.size;)await Promise.allSettled(Array.from(r));let s;const i=new Promise(t=>s=t);r.add(i);const c=[];let l;try{t=new Jn(t),await ta(t),t.size!==F&&t.readUint8Array||(t=new Sn(await je(t.readable)),await ta(t));const{ZipReader:r}=await Promise.resolve().then(function(){return fs}),s=new r(t),i=await s.getEntries();await s.close(),await ta(e.writer);const{directoryOffset:d}=s;i.forEach(({filename:t})=>{if(n.has(t))throw new Error(us);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 Dt(await ra(t,0,4)).getUint32(0,!0)==a}(t)||(await Si(e.writer,Ei()),e.offset+=4));const u=await async function(t,e,r,n){const{writer:a}=t,o=new Map;if(a.closeDisk){const s=Array.from(r).sort((t,r)=>xi(e,t)-xi(e,r));let i=0;for(const r of s){const n=xi(e,r);await bi(t,e,i,n-i),wi(a,await gi(e,n))&&await a.closeDisk(),o.set(r,{offset:hi(t,a),diskNumberStart:pi(a)}),i=n}await bi(t,e,i,n-i)}else{const a=t.offset;await bi(t,e,0,n),r.forEach(t=>o.set(t,{offset:a+xi(e,t),diskNumberStart:0}))}return o}(e,t,i,d);i.forEach(t=>{const{version:e,rawLastModDate:r,rawFilename:n,bitFlag:a,encrypted:s,uncompressedSize:i,compressedSize:c,extraFieldZip64:l}=t;let{compressionMethod:d,rawExtraField:f}=t;const{level:p,languageEncodingFlag:m,dataDescriptor:w}=a;f=yi(f||j),t.extraFieldAES&&(d=99);const h=Li(f),y=Boolean(l)&&l.uncompressedSize!==F,b=Boolean(l)&&l.compressedSize!==F,g=-7&Zi(p,m,w,s,d)|p<<1,{fe:x,ue:E}=qi({version:e,bitFlag:g,compressionMethod:d,uncompressedSize:i,compressedSize:c,rawLastModDate:r,rawFilename:n,pe:b,me:y,extraFieldLength:h}),{crc32:v}=t;v!==F&&Pi(E,10,v);const{offset:S,diskNumberStart:z}=u.get(t);Object.assign(t,{me:y,pe:b,offset:S,diskNumberStart:z,we:!1,he:j,ye:j,be:j,ge:j,xe:j,rawExtraField:f,Ee:j,extendedTimestamp:!1,fe:x,ue:E}),o.set(t.filename,t)})}catch(t){throw c.forEach(t=>n.delete(t)),t}finally{s(),r.delete(i),l&&l()}}add(e="",n,a={}){const o=this,{ae:s}=o,i=async function(e,n,a,o){if(Fi(e,o=Object.assign({},o),Oa)&&!n.endsWith(k)&&(n+=k),e.re.has(n))throw new Error(us);e.re.add(n),Ys<yt().maxWorkers?Ys++:await new Promise(t=>Xs.push(t));try{return await async function(e,n,a,o){const s=ni(e,n,o);({name:n}=s);const i=ai(e,n,o),{comment:c}=i,l=o[Ca];e.ee.set(n,F);const d=e.ie,f={};let u,p;i.ve.keepOrder&&(f.Se=new Promise(t=>u=t)),e.ie=f;try{const{ve:c}=i;0==c.level||c.compressionMethod!==F||c.passThrough||await Sr(yt())||(c.level=0);const l=await async function(t,e,{ve:r},n){if(r.passThrough&&!e&&!Fi(t,n,Oa))throw new Error(js);let a;return e&&(e=new Jn(e),await ta(e),({size:a}=e)),Object.assign({reader:e},si(t,Boolean(e),a,r,n))}(e,a,i,o);({reader:a}=l);const m=mi(e.writer),w=pi(e.writer),h=ii(o=Object.assign({},o,s.ve,i.ve,l.ve,{signature:o[Ia],crc32:o.crc32===F?o[Ia]:o.crc32,offset:e.offset-m,diskNumberStart:w,[H]:e.options[H]})),y=di(o),b=Li(h.ze,y.ke);p=await async function(e,n,a,o,s){const{ee:i,writer:c}=e,{keepOrder:l,dataDescriptor:d,Ae:f,signal:u}=s,{Re:p,$t:m,De:w,Fe:h}=o,y=e.options[H];let b,g,x,E,v,S,z=m,k=0;const R=l&&w?w.Se:F;i.set(n,z);try{s.bufferedWrite||!l||e.le||e.se||!d&&!f?(b=!0,e.se++,S=s.createTempStream?await s.createTempStream():new TransformStream(F,F,{highWaterMark:O}),S.size=0,await ta(c)):(S=c,await R,await D()),await ta(S);const m=mi(c);e.te&&!b&&await vi(e,c),y&&!b&&ci(o,e.offset-m);const{ze:w}=p;b||await T();const h=pi(c),g=hi(e,c);if(z.diskNumberStart=h,b||(E=!0,v=c.size,await Si(S,w)),z=await async function(e,n,{diskNumberStart:a,Se:o},s,i,c){const{Re:l,Oe:d,Te:f}=s,{fe:u,ue:p,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,he:x,Ue:E,be:v,Ie:S,ge:z,xe:k,ye:A}=l,{ke:R}=d,{rawFilename:D,lastAccessDate:O,creationDate:T,password:U,rawPassword:I,level:C,zip64:j,me:M,pe:N,zipCrypto:_,dataDescriptor:P,directory:B,executable:W,versionMadeBy:L,rawComment:q,rawExtraField:Z,Ee:V,useWebWorkers:H,transferStreams:G,onstart:K,onprogress:Y,onend:X,signal:J,encryptionStrength:Q,extendedTimestamp:$,msDosCompatible:tt,internalFileAttributes:et,externalFileAttributes:rt,uid:nt,gid:at,unixMode:ot,symlink:st,setuid:it,setgid:ct,sticky:lt,unixExternalUpper:dt,msdosAttributesRaw:ft,msdosAttributes:ut,useCompressionStream:pt,passThrough:mt,format:wt,codecURI:ht}=c,yt={Se:o,versionMadeBy:L,zip64:j,directory:Boolean(B),executable:Boolean(W),filenameUTF8:!0,rawFilename:D,commentUTF8:!0,rawComment:q,he:x,Ue:E,be:v,ge:z,xe:k,ye:A,rawExtraField:Z,Ee:V,extendedTimestamp:$,msDosCompatible:tt,internalFileAttributes:et,externalFileAttributes:rt,diskNumberStart:a,uid:nt,gid:at,unixMode:ot,symlink:Boolean(st),setuid:it,setgid:ct,sticky:lt,unixExternalUpper:dt,msdosAttributesRaw:ft,msdosAttributes:ut};let{crc32:bt,uncompressedSize:gt}=c,xt=0;mt||(gt=0);const{writable:Et}=n;if(e){const a=Ce(na(e)),o=e.size,s={options:{codecType:mr,inputSize:o,level:C,rawPassword:I,password:U,encryptionStrength:Q,zipCrypto:h&&_,passwordVerification:h&&_&&w>>8&r,computeCrc32:!mt,compressed:y&&!mt,encrypted:h&&!mt,useWebWorkers:H,useCompressionStream:pt,transferStreams:G,format:wt,codecURI:ht,compressionMethod:g},config:i,ut:{signal:J,size:o,onstart:K,onprogress:Y,onend:X}};try{const e=await Kr({readable:a,writable:Et},s);if(xt=e.outputSize,n.size+=xt,mt||(gt=e.inputSize,h&&!_||(bt=e.crc32)),!N&&xt>=t||!M&&gt>=t)throw new Error(Ts)}catch(t){throw t.outputSize!==F&&(n.size+=t.outputSize),t}}return function({crc32:t,compressedSize:e,uncompressedSize:r,Re:n,Oe:a},{zip64:o,zipCrypto:s,passThrough:i,dataDescriptor:c}){const{ue:l,encrypted:d}=n,{Ce:f,je:u}=a;d&&!s&&!i||t===F||(Pi(l,10,t),c&&Pi(f,u,t)),o?c&&(Bi(f,u+4,BigInt(e)),Bi(f,u+12,BigInt(r))):(Pi(l,14,e),Pi(l,18,r),c&&(Pi(f,u+4,e),Pi(f,u+8,r)))}({crc32:bt,compressedSize:xt,uncompressedSize:gt,Re:l,Oe:d},c),P&&await Si(n,R),Object.assign(yt,{uncompressedSize:gt,compressedSize:xt,lastModDate:m,rawLastModDate:w,creationDate:T,lastAccessDate:O,encrypted:Boolean(h),zipCrypto:Boolean(_),size:f+xt,compressionMethod:g,version:b,fe:u,ue:p,signature:bt,crc32:!h||_||mt?bt:F,Ie:S,me:M,pe:N}),yt}(a,S,z,o,yt(),s),b||(E=!1),i.set(n,z),z.filename=n,b){if(await Promise.all([S.writable.getWriter().close(),R]),await D(),e.te&&await vi(e,c),x=!0,v=c.size,await T(),z.diskNumberStart=pi(c),z.offset=hi(e,c),y){const t=o.Te;ci(o,e.offset-mi(c)),z.size+=o.Te-t}!function({rawFilename:t,encrypted:e,zip64:r,Ue:n,crc32:a,compressedSize:o,uncompressedSize:s,me:i,pe:c},l,{dataDescriptor:d,passThrough:f}){if(d||((!e||f&&a!==F)&&Pi(l,14,a),c||Pi(l,18,o),i||Pi(l,22,s)),r&&n){const e=A+Li(t)+4;Bi(l,e,BigInt(s)),Bi(l,e+8,BigInt(o))}}(z,p.Me,s),await Si(c,p.ze),await zi(S.readable,c,u,t=>k+=t),c.size+=S.size,x=!1}else z.diskNumberStart=h,z.offset=g;return e.offset+=z.size,z}catch(t){if(x||E){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-v,b&&(e.offset+=k)}throw i.delete(n),t}finally{if(b&&e.se--,h&&h(R),g&&g(),b&&S&&S.dispose)try{await S.dispose()}catch{}}async function D(){e.le=!0;const{de:t}=e;e.de=new Promise(t=>g=()=>{e.le=!1,t()}),await t}async function T(){wi(c,Li(p.ze))&&await c.closeDisk()}}(e,n,a,{Re:h,Oe:y,Te:b,$t:f,De:d,Fe:u},o)}catch(t){throw e.ee.delete(n),t}finally{u&&u(d&&d.Se)}return Object.assign(p,{name:n,comment:c,extraField:l,[xa]:p.internalFileAttributes,[Ea]:p.externalFileAttributes}),new Ba(p)}(e,n,a,o)}catch(t){throw e.re.delete(n),t}finally{const t=Xs.shift();t?t():Ys--}}(o,e,n,a);s.add(i);const c=()=>s.delete(i);return Promise.prototype.then.call(i,c,c),ti(o,i)}remove(t){const{re:e,ee:r}=this;if(typeof t==C&&(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=j,n={}){const a=this,{ae:o,writer:p}=this,{writable:m}=p;if(!(r instanceof Uint8Array))throw new Error(ms);if(Li(r)>e)throw new Error(ps);for(;o.size;)await Promise.allSettled(Array.from(o));await Promise.allSettled(a.oe.map(t=>t.Ne));const w=a.oe.filter(t=>t.error&&!t._e);if(w.length){const t=w.map(t=>t.error);w.forEach(t=>t._e=!0);const[e]=t;try{e.entryErrors=t}catch{}throw e}return await async function(r,n,a){const o=fi(r.ee),{Pe:p,Be:m,We:w}=await async function(r,n,a){const{ee:o,writer:s}=r,c=new Uint8Array(n);await ta(s);let l=0,d=0,u=pi(s),p=mi(s),m=0;for(const[r,n]of Array.from(o.values()).entries()){const{offset:w,rawFilename:h,he:y,ye:b,be:g,ge:x,xe:E,rawExtraField:v,Ee:S,rawComment:z,versionMadeBy:k,fe:A,ue:R,me:D,pe:F,we:O,Le:T,internalFileAttributes:U,externalFileAttributes:I,diskNumberStart:C,uncompressedSize:j,compressedSize:M}=n,N=Li(y,b,g,x,E,v,S),_=f+Li(h,z)+N;wi(s,l+_-d)&&(await Si(s,c.slice(d,l)),d=l,m=0,await s.closeDisk()),0==r&&(u=pi(s),p=mi(s)),D||Pi(R,18,j),F||Pi(R,14,M),(T||O)&&n.version<45&&_i(R,0,45);const P=ui(_);if(P.qe(i),P.Ze(k),P.Ve(A.subarray(0,24)),P.Ze(N),P.Ze(Li(z)),P.Ze(O?e:C),P.Ze(U),P.qe(I),P.qe(T?t:w),P.Ve(h),P.Ve(y),P.Ve(b),P.Ve(g),P.Ve(x),P.Ve(E),P.Ve(v),P.Ve(S),P.Ve(z),Wi(c,P.Wt,l),l+=_,m++,a.onprogress)try{await a.onprogress(r+1,o.size,new Ba(n))}catch{}}return await Si(s,d?c.slice(d):c),{Pe:{diskNumber:u,diskOffset:p},Be:{diskNumber:pi(s),He:m},We:c}}(r,o,a),h=await async function(t,r,n){const a=Ti(t,n,K);if(a){const n=await a(r),o=Li(n);if(o>e)throw new Error(Vs);const i=ui(6+o);i.qe(s),i.Ze(o),i.Ve(n);const{writer:c}=t;return wi(c,Li(i.Wt))&&await c.closeDisk(),await Si(c,i.Wt),6+o}return 0}(r,w,a);await async function(r,n,a,o){const{writer:s}=r,{Pe:i,Be:f,Ge:p}=o;let{Ke:m}=o,w=r.ee.size,h=i.diskNumber,y=hi(r,i);const b=Li(n);if(b>e)throw new Error(ps);let g=Fi(r,a,ka),x=pi(s);if(wi(s,(g?98:u)+b)&&x++,y>=t||m>=t||w>=e||x>=e){if(!1===g)throw new Error(Ts);g=!0}const E=ui(g?98:u);wi(s,Li(E.Wt)+b)&&await s.closeDisk(),x=pi(s);let v=x==f.diskNumber?f.He:0;g&&(E.qe(l),E.Ye(44),E.Ze(45),E.Ze(45),E.qe(x),E.qe(h),E.Ye(v),E.Ye(w),E.Ye(m),E.Ye(y),E.qe(d),E.qe(x),E.Ye(BigInt(hi(r,s))+BigInt(m)+BigInt(p)),E.qe(x+1),Fi(r,a,"supportZip64SplitFile",!0)&&(x=e,h=e),v=e,w=e,y=t,m=t),E.qe(c),E.Ze(x),E.Ze(h),E.Ze(v),E.Ze(w),E.qe(m),E.qe(y),E.Ze(b),await Si(s,E.Wt),b&&await Si(s,n)}(r,n,a,{Pe:p,Be:m,Ke:o,Ge:h})}(a,r,n),!$n(p)&&Fi(a,n,q)||await m.getWriter().close(),p.getData?p.getData():m}}class Qs{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new Js(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 ei(e,t)}}()}});return ri(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 ri(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 ei(r,t),t}try{return await r.close(t,e)}catch(t){throw await ei(r,t),t}}}class $s extends Promise{then(t,e){const{Xe:r}=this;return r&&(r._e=!0),super.then(t,e)}}function ti(t,e){const r=new $s((t,r)=>Promise.prototype.then.call(e,t,r)),n={};return r.Xe=n,n.Ne=Promise.prototype.then.call(r,F,t=>n.error=t),t.oe.push(n),r}async function ei(t,e){try{await t.writer.writable.abort(e)}catch{}}function ri(t,e,r){t.ae.add(e),e.catch(t=>{try{r(t)}catch{}})}function ni(n,a,o){let s=Fi(n,o,za),i=Fi(n,o,Da,s?20:768);const c=Fi(n,o,Ta),l=Ci(n,o,"uid"),d=Ci(n,o,"gid");let f=Ci(n,o,ja),u=Fi(n,o,"unixExtraFieldType"),p=Fi(n,o,Ma),m=Fi(n,o,Na),w=Fi(n,o,_a);if(it(l,t,Ns),it(d,t,_s),it(f,e,Ps),u!==F&&u!==Gs&&u!==Ks)throw new Error(Bs);if(u===Ks&&(l!==F&&l>e||d!==F&&d>e))throw new Error(Ws);u!==F||l===F&&d===F||(u=Gs);let h=Ci(n,o,va),y=Fi(n,o,Sa);const b=h!==F||y!==F;if(l!==F||d!==F||f!==F||u||c?(s=!1,i=i&r|768):b&&(s=!0,i&=r),it(h,r,Ls),y&&(typeof y!==I||Array.isArray(y)))throw new Error(qs);if(i>e)throw new Error(gs);let g=Ui(n,o,ga,Ea);const x=g!==F;x||(g=0),!o[Oa]&&a.endsWith(k)&&(o[Oa]=!0);const A=Fi(n,o,Oa);if(A?(a.endsWith(k)||(a+=k),x||(g=16,s||(g|=16877<<16))):s||x||(g=c?493<<16:27525120),!s){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|v:f&E||(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:o,directory:s,archive:i}=e;let c=0;n&&(c|=1),a&&(c|=2),o&&(c|=4),s&&(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&E);return{name:a,ve:{versionMadeBy:i,msDosCompatible:Boolean(s),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 ai(t,r,n){const a=Ti(t,n,"encodeText")||Bt;let o=a(r,Y);if(o===F&&(o=Bt(r)),Li(o)>e)throw new Error(bs);const s=n[sa]||"";if(typeof s!=C)throw new Error(hs);let i=a(s,X);if(i===F&&(i=Bt(s)),Li(i)>e)throw new Error(ws);const c=Fi(t,n,Ra);if(c!==F&&c>e)throw new Error(gs);const l=Oi(t,n,ua,new Date),d=Fi(t,n,pa),f=Oi(t,n,ma),u=Oi(t,n,ha),p=Ui(t,n,ba,xa,0),m=Fi(t,n,_),w=Fi(t,n,M),h=Fi(t,n,N);ot(w,h);const y=Ci(t,n,"encryptionStrength",3),b=Fi(t,n,Fa),g=Fi(t,n,"extendedTimestamp",!0),x=Fi(t,n,"ntfsTimestamp"),E=Fi(t,n,"keepOrder",!0),v=Fi(t,n,B),S=Fi(t,n,L),z=Fi(t,n,"bufferedWrite"),k=Ti(t,n,"createTempStream"),A=Fi(t,n,"dataDescriptorSignature",!0),R=at(Fi(t,n,P)),D=Fi(t,n,"useUnicodeFileNames",!0),O=Fi(t,n,Ua),T=m||O===F?F:Ve(O);if(!m&&O!==F&&0!==O&&8!==O&&!T)throw new Error("Compression method not supported");let U=Ci(t,n,"level");if(it(U,9,Zs),t.options[H]){if(w!==F||h!==F)throw new Error(Es);U===F&&O===F&&(U=0)}m&&(U=F);let I=Fi(t,n,W),j=Fi(t,n,Z);z&&j===F&&(j=!1),(j===F||b&&!m)&&(j=!0),U!==F&&6!=U&&(I=!1);const q=Fi(t,n,ka);if(!(b||w===F&&h===F||Number.isInteger(y)&&y>=1&&y<=3))throw new Error(xs);const V=oi(n[Ca]),G=oi(n.localExtraField),K=oi(n.centralExtraField);return{comment:s,ve:{rawFilename:o,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:E,useWebWorkers:v,transferStreams:S,bufferedWrite:z,createTempStream:k,dataDescriptorSignature:A,signal:R,useUnicodeFileNames:D,compressionMethod:O,format:T?T.format:F,codecURI:T?T.codecURI:F,Je:T?T.versionNeeded:F,level:U,useCompressionStream:I,dataDescriptor:j,zip64:q,rawExtraField:V,Qe:G,Ee:K}}}function oi(t){if(!t)return j;if(!(t instanceof Map))throw new Error(Ss);let r=0,n=0;t.forEach((t,n)=>{if(st(n,e,zs),!(t instanceof Uint8Array))throw new Error(ks);if(Li(t)>e)throw new Error(As);r+=4+Li(t)});const a=new Uint8Array(r),o=Dt(a);return t.forEach((t,e)=>{_i(o,n,e),_i(o,n+2,Li(t)),Wi(a,t,n+4),n+=4+Li(t)}),a}function si(e,r,n,a,o){const{passThrough:s,zipCrypto:i,password:c,rawPassword:l,encryptionStrength:d}=a;let{dataDescriptor:f,zip64:u,level:p,compressionMethod:m}=a,w=0,h=0;if(s&&r){if(h=o[ca],h===F)throw new Error(Us);if(m===F)throw new Error(Is)}const y=!0===u,b=Fi(e,o,Aa);if(r&&s&&!b&&Li(c,l))throw new Error(vs);const g=r&&(Boolean(c&&Li(c)||l&&Li(l))||s&&b);r||(p=0,m=0);const x=g?i?12:16+4*d:0;r&&(s?(o.uncompressedSize=h,w=n===F?ji(h)+x:n):n===F?(f=!0,(u||u===F)&&(u=!0,h=w=4294967296)):(o.uncompressedSize=h=n,w=(Mi(m,p)?ji(h):h)+x));const E=!(g||r&&(0!==n||s)||Mi(m,p));E&&!i&&Fi(e,o,Z)===F&&(f=!1);const v=y||h>=t,S=y||w>=t;if(v||S){if(!1===u)throw new Error(Ts);u=!0}return u=u||!1,{$e:w,ve:{dataDescriptor:f,Ae:E,zip64:u,me:v,pe:S,uncompressedSize:h,level:p,compressionMethod:m,encrypted:g}}}function ii(t){const{rawFilename:r,lastModDate:a,rawLastModDate:o,lastAccessDate:s,creationDate:i,level:c,zip64:l,zipCrypto:d,useUnicodeFileNames:f,dataDescriptor:u,directory:p,rawExtraField:m,Qe:y,encryptionStrength:x,extendedTimestamp:E,ntfsTimestamp:v,passThrough:S,encrypted:z,me:k,pe:O,uncompressedSize:T,crc32:U}=t;let{version:I,compressionMethod:C}=t;const M=!p&&Mi(C,c);let N;const _=S||!M,P=l&&(t.bufferedWrite||!u||!k&&!O||_),B=P||l&&u&&(k||O);if(l&&(k||O)){const t=20,e=ui(t);if(e.Ze(1),e.Ze(t-4),N=e.Wt,P&&(e.Ye(T),_)){const t=z?d?12:16+4*x:0;e.Ye(S?0:T+t)}}else N=j;let W,L,q,Z,V;if(z&&!d){const t=ui(Li(Hs)+2);t.Ze(w),t.Ve(Hs),W=t.Wt,W[8]=x}else W=j;if(E){const t=Ai(a),e=Ri(t);if(e){const e=9+(s?4:0)+(i?4:0),r=ui(e);Z=1+(s?2:0)+(i?4:0),r.Ze(h),r.Ze(e-4),r.er(Z),r.qe(t),s&&r.qe(Di(Ai(s))),i&&r.qe(Di(Ai(i))),q=r.Wt}else q=j;if(v===F?!e||Boolean(s||i):v)try{const t=ki(a),e=ui(36);e.Ze(10),e.Ze(32),e.rr(4),e.Ze(1),e.Ze(24),e.Ye(t),e.Ye(s?ki(s):t),e.Ye(i?ki(i):t),L=e.Wt}catch{L=j}else L=j}else L=q=j;try{const{uid:r,gid:n,unixExtraFieldType:a}=t;if(a!=Gs||r===F&&n===F)if(a!=Ks||r===F&&n===F)V=j;else{const t=ui(8);t.Ze(g),t.Ze(4),t.Ze((r===F?0:r)&e),t.Ze((n===F?0:n)&e),V=t.Wt}else{const t=li(r===F?0:r),e=li(n===F?0:n),a=3+t.length+e.length,o=ui(4+a);o.Ze(b),o.Ze(a),o.er(1),o.er(t.length),o.Ve(t),o.er(e.length),o.Ve(e),V=o.Wt}}catch{V=j}C===F&&(C=M?8:0),I===F&&(I=0!=C||p||z?20:10);const{Je:G}=t;M&&G!==F&&(I=I>G?I:G),l&&(I=I>45?I:45),z&&!d&&(I=I>51?I:51,S&&U!==F&&(W[4]=1),_i(Dt(W),9,C),C=99);const K=B?Li(N):0,Y=K+Li(W,q,L,V,m,y);if(Y+(t[H]?67:0)>e)throw new Error(As);const X=new Date(2e3*Math.ceil(Math.floor(a.getTime()/1e3)/2)),{fe:J,ue:Q,rawLastModDate:$}=qi({version:I,bitFlag:Zi(c,f,u,z,C),compressionMethod:C,uncompressedSize:T,lastModDate:X<D?D:X>R?R:X,rawLastModDate:o,rawFilename:r,pe:O,me:k,extraFieldLength:Y}),tt=ui(A+Li(r)+Y),et=tt.Wt,rt=Dt(et);return tt.qe(n),tt.Ve(J),tt.Ve(r),B&&tt.Ve(N),tt.Ve(W),tt.Ve(q),tt.Ve(L),tt.Ve(V),tt.Ve(m),tt.Ve(y),u&&(O||Pi(rt,18,0),k||Pi(rt,22,0)),{ze:et,Me:rt,fe:J,ue:Q,lastModDate:a,rawLastModDate:$,encrypted:z,compressed:M,version:I,compressionMethod:C,Ie:Z,he:j,Ue:K,be:q,ge:L,xe:V,ye:W,extraFieldLength:Y}}function ci(t,e){const{Re:r}=t;let{ze:n,extraFieldLength:a}=r,o=64-(e+Li(n))%64;o<4&&(o+=64);const s=new Uint8Array(o),i=Dt(s);_i(i,0,y),_i(i,2,o-4);const c=n;r.ze=n=new Uint8Array(Li(c)+o),Wi(n,c),Wi(n,s,Li(c));const l=Dt(n);_i(l,28,a+o),r.Me=l,t.Te+=o}function li(t){const e=new Uint8Array(4);Dt(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function di({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let n,a=j,s=0,i=t?20:12;return r&&(i+=4),e&&(a=new Uint8Array(i),n=Dt(a),r&&(s=4,Pi(n,0,o))),{ke:a,Ce:n,je:s}}function fi(r){let n=0;for(const[,a]of r){const{rawFilename:r,ye:o,rawComment:s,ge:i,xe:c,rawExtraField:l,Ee:d,extendedTimestamp:u,Ie:p,lastModDate:m,me:w,pe:y,uncompressedSize:b,compressedSize:g}=a,x=a.offset>=t,E=a.diskNumberStart>=e;let v,S;if(x||E||w||y){const t=4+(w?8:0)+(y?8:0)+(x?8:0)+(E?4:0),e=ui(t);e.Ze(1),e.Ze(t-4),w&&e.Ye(b),y&&e.Ye(g),x&&e.Ye(a.offset),E&&e.qe(a.diskNumberStart),v=e.Wt}else v=j;a.he=v,a.Le=x,a.we=E;const z=Ai(m);if(u&&Ri(z)){const t=ui(9);t.Ze(h),t.Ze(5),t.er(p),t.qe(z),S=t.Wt}else S=j;a.be=S;const k=Li(v,o,i,c,S,l,d);if(k>e)throw new Error(As);n+=f+Li(r,s)+k}return n}function ui(t){const e=new Uint8Array(t),r=Dt(e);let n=0;return{Wt:e,er:t=>{!function(t,e,r){t.setUint8(e,r)}(r,n,t),n+=1},Ze:t=>{_i(r,n,t),n+=2},qe:t=>{Pi(r,n,t),n+=4},Ye:t=>{Bi(r,n,BigInt(t)),n+=8},Ve:t=>{Wi(e,t,n),n+=Li(t)},rr:t=>n+=t}}function pi(t){const{diskNumber:e=0}=t;return e}function mi(t){const{diskOffset:e=0}=t;return e}function wi(t,e){const{availableSize:r=O}=t;return e>r}function hi(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.ne:0)}function yi(t){const e=Dt(t);let r=0;for(;r+4<=Li(t);){const n=4+Ni(e,r+2);if(1==Ni(e,r))return yi(At(t.subarray(0,r),t.subarray(Math.min(r+n,Li(t)))));r+=n}return t}async function bi(t,e,r,n){if(n>0){const{writer:a}=t;let o=0;try{await zi(na(e,{offset:r,size:n}),a,F,t=>o+=t)}catch(e){t.hasCorruptedEntries=!0;try{e.corruptedEntry=!0}catch{}throw e}finally{a.size+=o,t.offset+=o}}}async function gi(t,e){const r=await ra(t,e,A);if(Li(r)<A)return A;const n=Dt(r);return A+Ni(n,26)+Ni(n,28)}function xi(t,{offset:e,diskNumberStart:r}){return e+(t.Ht?t.Ht(r):0)}function Ei(){const t=new Uint8Array(4);return Pi(Dt(t),0,a),t}async function vi(t,e){delete t.te,await Si(e,Ei()),t.offset+=4}async function Si(t,e){const{writable:r}=t,n=r.getWriter();try{await n.ready,t.size+=Li(e),await n.write(e)}finally{n.releaseLock()}}async function zi(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(Li(t))}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}}function ki(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<Fs?Fs:e>Os?Os:e}}function Ai(t){return Math.floor(t.getTime()/1e3)}function Ri(t){return t>=Rs&&t<=Ds}function Di(t){return Math.min(Ds,Math.max(Rs,t))}function Fi(t,e,r,n){const a=e[r]===F?t.options[r]:e[r];return a===F?n:a}function Oi(t,e,r,n){const a=Fi(t,e,r,n);if(null===a)return n;if(a!==F&&(typeof a.getTime!=U||Number.isNaN(a.getTime())))throw new Error(ys);return a}function Ti(t,e,r){return nt(Fi(t,e,r))}function Ui(t,e,r,n,a){const o=Ii(e,r,n),s=o===F?Ii(t.options,r,n):o;return s===F?a:s}function Ii(t,e,r){return t[e]===F?t[r]:t[e]}function Ci(t,e,r,n){return ct(Fi(t,e,r,n))}function ji(t){return t+5*(Math.floor(t/16383)+1)}function Mi(t,e){return t===F?e===F||e>0:0!==t}function Ni(t,e){return t.getUint16(e,!0)}function _i(t,e,r){t.setUint16(e,r,!0)}function Pi(t,e,r){t.setUint32(e,r,!0)}function Bi(t,e,r){t.setBigUint64(e,r,!0)}function Wi(t,e,r){t.set(e,r)}function Li(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function qi({version:e,bitFlag:r,compressionMethod:n,uncompressedSize:a,compressedSize:o,lastModDate:s,rawLastModDate:i,rawFilename:c,pe:l,me:d,extraFieldLength:f}){const u=ui(26),p=u.Wt,m=Dt(p);if(u.Ze(e),u.Ze(r),u.Ze(n),i===F){const t=new Uint32Array(1),e=Dt(t);_i(e,0,(s.getHours()<<6|s.getMinutes())<<5|s.getSeconds()/2),_i(e,2,(s.getFullYear()-1980<<4|s.getMonth()+1)<<5|s.getDate()),i=t[0]}return u.qe(i),u.rr(4),l||o!==F?u.qe(l?t:o):u.rr(4),d||a!==F?u.qe(d?t:a):u.rr(4),u.Ze(Li(c)),u.Ze(f),{fe:p,ue:m,rawLastModDate:i}}function Zi(t,e,r,n,a){let o=0;return e&&(o|=x),r&&(o|=8),8!=a&&9!=a||(t>=0&&t<=3&&(o|=6),t>3&&t<=5&&(o|=4),9==t&&(o|=2)),n&&(o|=1),o}function Vi(){const{CompressionStream:t,DecompressionStream:e,CompressionStreamFallback:r,DecompressionStreamFallback:n}=yt(),a=[{compressionMethod:0,compression:!0,decompression:!0,registered:!1},{compressionMethod:8,compression:Hi(r,Qe)||Hi(t,Qe)||Hi(t,tr),decompression:Hi(n,Qe)||Hi(e,Qe)||Hi(e,tr),registered:!1},{compressionMethod:9,compression:!1,decompression:Hi(n,$e)||Hi(e,$e),registered:!1}];for(const t of He()){const e=Ge(t.format);a.push({compressionMethod:t.compressionMethod,compression:e?typeof e.CompressionStream==U:F,decompression:e?typeof e.DecompressionStream==U:F,registered:!0})}return a}function Hi(t,e){if(!t)return!1;const{nr:r}=t;return r?r.includes(e):sr(t,e)}const Gi="2.10.0",Ki=1048576,Yi=".zip.js-temp";function Xi(t={}){const{thresholdBytes:e=Ki,directoryName:r=Yi,getDirectory:n=()=>navigator.storage.getDirectory()}=t;let a;function o(){return a||(a=Promise.resolve(n()).then(t=>t.getDirectoryHandle(r,{create:!0}))),a}return function(){const t=[];let r,n,a,s,i=0,c=!1;const l=new WritableStream({async write(s){c?await a.write(s):(t.push(s),i+=s.length,i>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(""),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(!s){const t=await n.getFile();s=t.stream().getReader()}const{value:t,done:r}=await s.read();r?e.close():e.enqueue(t)}else d<t.length?e.enqueue(t[d++]):e.close()},async cancel(t){s&&await s.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(a){try{await a.close()}catch{}a=null}if(r){try{const t=await o();await t.removeEntry(r)}catch{}n=r=null}t.length=0}}}}const Ji=1048576;function Qi(t={}){const{thresholdBytes:e=Ji}=t;return function(){const t=[];let r,n,a,o=0,s=!1;const i=new WritableStream({async write(a){s?await r.write(a):(t.push(a),o+=a.length,o>e&&await async function(){const e=new TransformStream;n=je(e.readable),r=e.writable.getWriter(),s=!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(s){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 $i=1048576,tc=".zip.js-temp",ec="createSyncAccessHandle is only available in dedicated workers";function rc(t={}){const{thresholdBytes:e=$i,directoryName:r=tc,getDirectory:n}=t;if(!(n||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw new Error(ec);const a=n||(()=>navigator.storage.getDirectory());let o;function s(){return o||(o=Promise.resolve(a()).then(t=>t.getDirectoryHandle(r,{create:!0}))),o}return function(){const t=[];let r,n,a=0,o=!1,i=0,c=0;const l=new WritableStream({async write(c){o?(n.write(c,{at:i}),i+=c.length):(t.push(c),a+=c.length,a>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("");const a=await e.getFileHandle(r,{create:!0});n=await a.createSyncAccessHandle(),o=!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(o){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 s();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{zt({baseURI:import.meta.url})}catch{}const nc="deflate",ac="deflate-raw",oc="deflate64-raw",sc="gzip";let ic,cc,lc,dc,fc;function uc(t,e,r={}){if(!ic){const t=new Error("WASM module not loaded");throw t.cause=fc,t}const n="number"==typeof r.level?r.level:-1,a="number"==typeof r.outBuffer?r.outBuffer:65536,o="number"==typeof r.inBufferSize?r.inBufferSize:65536;return new TransformStream({start(){try{let r;if(this.ar=cc(a),this.in=cc(o),this.inBufferSize=o,!this.ar||!this.in)throw new Error("allocation failed");if(this.sr=new Uint8Array(a),t?(this.ir=ic.deflate_process,this.cr=ic.deflate_last_consumed,this.lr=ic.deflate_end,this.dr=ic.deflate_new(),r=e===sc?ic.deflate_init_gzip(this.dr,n):e===ac?ic.deflate_init_raw(this.dr,n):ic.deflate_init(this.dr,n)):e===oc?(this.ir=ic.inflate9_process,this.cr=ic.inflate9_last_consumed,this.lr=ic.inflate9_end,this.dr=ic.inflate9_new(),r=ic.inflate9_init_raw(this.dr)):(this.ir=ic.inflate_process,this.cr=ic.inflate_last_consumed,this.lr=ic.inflate_end,this.dr=ic.inflate_new(),r=e===ac?ic.inflate_init_raw(this.dr):e===sc?ic.inflate_init_gzip(this.dr):ic.inflate_init(this.dr)),0!==r)throw new Error("init failed:"+r)}catch(t){throw s(this),t}},transform(e,r){try{const n=e,o=new Uint8Array(dc.buffer),s=this.ir,i=this.cr,c=this.ar,l=this.sr;let d=0;for(;d<n.length;){const e=Math.min(n.length-d,32768);if((!this.in||this.inBufferSize<e)&&(this.in&&lc&&(lc(this.in),this.in=0),this.in=cc(e),this.inBufferSize=e,!this.in))throw new Error("allocation failed");o.set(n.subarray(d,d+e),this.in);const f=s(this.dr,this.in,e,c,a,0),u=16777215&f;if(u&&(l.set(o.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.dr);if(0===p)break;d+=p}}catch(t){s(this),r.error(t)}},flush(e){try{const r=new Uint8Array(dc.buffer),n=this.ir,o=this.ar,s=this.sr;for(;;){const i=n(this.dr,0,0,o,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&&(s.set(r.subarray(o,o+c),0),e.enqueue(s.slice(0,c))),1===l||0===c)break}}catch(t){e.error(t)}finally{const t=s(this);0!==t&&e.error(new Error("end error:"+t))}},cancel(){s(this)}});function s(t){let e=0;return t.dr&&t.lr&&(e=t.lr(t.dr)),t.dr=0,t.in&&lc&&lc(t.in),t.in=0,t.ar&&lc&&lc(t.ar),t.ar=0,e}}class pc{constructor(t=nc,e){return uc(!0,t,e)}}class mc{constructor(t=nc,e){return uc(!1,t,e)}}pc.ft=!0,mc.ft=!0,pc.nr=[nc,ac,sc],mc.nr=[nc,ac,sc,oc];let wc,hc=!1;function yc(){wc=null,async function(){await Promise.allSettled(qr.map(t=>($r(t),t.terminate()))),gr=F,xr=!1}(),hc=!1,ic=cc=lc=dc=fc=null}!function({ur:t}){vr=t}({ur:t=>{if(!wc){let{wasmURI:e}=t;typeof e==U&&(e=e()),wc=async function(t,{baseURI:e}){if(!hc)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(ic=t,({malloc:cc,free:lc,memory:dc}=ic),"function"!=typeof cc||"function"!=typeof lc||!dc)throw ic=cc=lc=dc=null,new Error("Invalid WASM module")}((await WebAssembly.instantiate(r)).instance.exports)}(t,e),hc=!0}catch(t){throw function(t){fc=t}(t),t}}(e,t).catch(t=>{throw wc=null,t})}return wc}}),zt({CompressionStreamFallback:pc,DecompressionStreamFallback:mc}),zt({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const bc="Entry filename already exists",gc="Duplicate entry filename in the imported zip file",xc='Invalid duplicates option (must be "throw", "keep-first" or "keep-last")',Ec="Entry is a ancestor of target entry",vc="Readable stream already consumed",Sc="throw",zc="keep-first",kc="keep-last",Ac=new Set([Sc,zc,kc]),Rc="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",Dc="Invalid readerOptions (must be an object)",Fc="The last modification date of an entry encrypted with ZipCrypto cannot be changed when passThrough is set",Oc="zipjs-abort-export",Tc="The operation was aborted",Uc=new Set([1,w,10,h,28789,25461,y,b,g,22613,13]);class Ic{constructor(t,e,r,n){const a=this;if(t.root&&n&&n.getChildByName(e))throw new Error(bc);r||(r={}),Object.assign(a,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.pr++,parent:n,children:[],uncompressedSize:r.uncompressedSize||0,mr:r.mr||r.uncompressedSize===F,passThrough:r.passThrough,wr:r.wr||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;let r=e.parent;if(r){const n=sl(t);n&&(t=n.pop(),r=il(r,n,e));const a=r.getChildByName(t);if(a&&a!=e)throw new Error(bc);r!=e.parent&&(Vc(e),e.parent=r,r.children.push(e),al(e.fs,e))}e.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==F))}}class Cc extends Ic{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 Cc(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==zn?e.type==r:t.constructor!=xn||e.startsWith("data:"+(r||"")+";base64,"))}(t,r.data))return r.data;{const n=r.reader=qc(r.Reader,r.data,e),a=r.uncompressedSize||n.size;await Promise.all([ta(n),ta(t,a)]);const o=at(e.signal),s=function(t,e,r,n){const{onstart:a,onprogress:o,onend:s}=r,{readable:i}=e;return t.data instanceof Ba||!a&&!o&&!s?i:Ce(i).pipeThrough(new Ar({onstart:a,onprogress:o,onend:s,size:e.size}),{signal:n})}(r,n,e,o),i=!$n(t)&&Boolean(e.preventClose);return r.uncompressedSize=n.size,await Ce(s).pipeTo(Me(t.writable),{signal:o,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==Ht)return!1;throw t}}getText(t,e){return this.getData(new Rn(t),e)}getBlob(t,e){return this.getData(new zn(t),e)}getData64URI(t,e){return this.getData(new xn(t),e)}getUint8Array(t){return this.getData(new Kn,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return Rt(await this.getUint8Array(t)).buffer}replaceBlob(t){Xc(this,{data:t,Reader:Sn,Writer:zn,uncompressedSize:t.size})}replaceText(t){Xc(this,{data:t,Reader:kn,Writer:Rn,uncompressedSize:An(t)})}replaceData64URI(t){Xc(this,{data:t,Reader:gn,Writer:xn,uncompressedSize:Jc(t)})}replaceUint8Array(t){Xc(this,{data:t,Reader:Gn,Writer:Kn,uncompressedSize:t.length})}replaceReadable(t){Xc(this,{data:null,Reader:Wc(t),Writer:null,uncompressedSize:F})}}class jc extends Ic{constructor(t,e,r,n){super(t,e,r,n),this.directory=!0}clone(t){const e=this,r=new jc(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 ol(this,t,{options:e},!0)}addText(t,e,r={}){return ol(this,t,{data:e,Reader:kn,Writer:Rn,options:r,uncompressedSize:An(e)})}addBlob(t,e,r={}){return ol(this,t,{data:e,Reader:Sn,Writer:zn,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){return ol(this,t,{data:e,Reader:gn,Writer:xn,options:r,uncompressedSize:Jc(e)})}addUint8Array(t,e,r={}){return ol(this,t,{data:e,Reader:Gn,Writer:Kn,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return ol(this,t,{data:e,Reader:class extends Vn{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return ol(this,t,{Reader:Wc(e),options:r})}addFileSystemEntry(t,e={}){return tl(this,t,e)}addFileSystemHandle(t,e={}){return tl(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),ol(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 Sn(t),e)}importData64URI(t,e){return this.importZip(new gn(t),e)}importUint8Array(t,e){return this.importZip(new Gn(t),e)}importHttpContent(t,e){return this.importZip(new Vn(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new zn(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new xn(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new Kn,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:o}=r,s=Yc(r.readerOptions),i=new AbortController,{signal:c}=i,l=function(t,e){if(!at(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,s,{signal:c,onstart:F,onprogress:F,onend:F,preventClose:!1}),f=_c([t],t=>Bc(t,d.passThrough)),u=[];let p=!1,m=0;try{n&&await Rr(n,f),await h(t,e),o&&await Rr(o,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 Rr(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=>!Hc(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||Hc(c.reason))return;throw c.reason===F?new DOMException(Tc,"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(Oc):t}u.push(e.getRelativeName(t))}}catch(r){p=!0,i.abort(new Error(Oc));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 ta(t),r=new Do(t,e));const n=function(t){if(t===F)return Sc;if(Ac.has(t))return t;throw new Error(xc)}(e.duplicates),a=[],o=await r.getEntries(e);for(const t of o){let r=this;try{const o=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=o.pop();let i=!1;for(const t of o){const e=r;if(r=r.getChildByName(t),r){if(!r.directory){if(n==zc){i=!0;break}if(n!=kc)throw new Error(gc);this.fs.remove(r),r=new jc(this.fs,t,{data:null},e),a.push(r)}}else r=new jc(this.fs,t,{data:null},e),a.push(r)}if(i)continue;if(t.directory){let e=r;if(s){if(e=r.getChildByName(s),e&&!e.directory){if(n==zc)continue;if(n!=kc)throw new Error(gc);this.fs.remove(e),e=F}e||(e=new jc(this.fs,s,{data:null},r),a.push(e))}e==this||e.data||(e.data=t)}else{const o=r.getChildByName(s);if(o){if(n==zc)continue;if(n!=kc)throw new Error(gc);this.fs.remove(o)}a.push(ol(r,s,{data:t,Reader:Lc(Object.assign({},e)),uncompressedSize:e.passThrough?t.compressedSize:t.uncompressedSize,passThrough:e.passThrough}))}}catch(e){a.reverse().forEach(t=>this.fs.remove(t));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[n]=await Promise.all([Zc(r,Yc(e.readerOptions)),ta(t)]),a=new Js(t,e);return await async function(t,e,r,n,a){const{onstart:o,onprogress:s,onend:i,onentryprogress:c}=n,l=e,d=_c(e.children,t=>$c(t)?0:1);let f=0,u=0;if(o&&await Rr(o,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($c(e))return;const{name:o,yr:i}=Gc(e,l,n);let p=0;const m=await t.add(o,a.get(e),Object.assign(i,{onstart:F,onend:F,onprogress:async t=>{f+=t-p,p=t,s&&await Rr(s,f,r)}}));u++,c&&await Rr(c,u,d,m)}i&&await Rr(i,f)}(a,r,_c([r],Pc),e,n),await a.close(e.globalComment),t.getData?t.getData():t.writable}getExportedSize(r={}){const n=this;Yc((r=Object.assign({},r)).readerOptions),r.bufferedWrite===F&&(r.bufferedWrite=!0);const a=n.getChildren({recursive:!0}).filter(t=>!$c(t)).map(t=>{const{name:e,yr:a}=Gc(t,n,r);return{name:e,size:t.directory?0:Kc(t,Qc(t,r)),options:a}}),o=!r.bufferedWrite||a.every(t=>!1!==t.options.keepOrder)&&n.children.every(t=>!t.children.length);return async function(r,n,a,o){const s={options:r};if(nt(r[K]))throw new Error(Cs);if(o!==F&&!(o instanceof Uint8Array))throw new Error(ms);const i=Li(o);if(i>e)throw new Error(ps);const c=r[H],l=new Map,d=r[V]===F?0:r[V];let f=d,p=O;for(const t of n){let{name:e}=t;const{size:r}=t,n=Object.assign({},t.options);Fi(s,n,Oa)&&!e.endsWith(k)&&(e+=k);const a=ni(s,e,n);({name:e}=a);const{ve:o}=ai(s,e,n);0==o.level||o.compressionMethod!==F||o.passThrough||await Sr(yt())||(o.level=0);const i=!Fi(s,n,Oa);if(i&&r===F)throw new Error(Cs);const{$e:d,ve:u}=si(s,i,r,o,n);if(i&&!o.passThrough&&Mi(u.compressionMethod,u.level))throw new Error(Cs);const m=Object.assign({},n,a.ve,o,u,{[H]:c}),w=ii(m),h=di(m),y={Re:w,Te:Li(w.ze,h.ke)};c&&ci(y,f);const b=i?d:0;l.set(e,Object.assign({},m,w,{offset:f,diskNumberStart:0,compressedSize:b}));const g=y.Te+b;p=Math.min(p,g),f+=g}if(l.size>1&&(c||f-p>=t)&&!a)throw new Error(Cs);const m=fi(l);let w=Fi(s,r,ka);if(f>=t||m>=t||l.size>=e){if(!1===w)throw new Error(Ts);w=!0}return f-d+m+i+(w?98:u)}(r,a,o,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 Mc{constructor(){rl(this)}get children(){return this.root.children}remove(t){Vc(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(Ec);if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw new Error(bc)}else Vc(t),t.parent=e,e.children.push(t),al(this,t)}}find(t){const e=t.split("/");let r=this.root;for(let t=0;r&&t<e.length;t++)r=r.directory?r.getChildByName(e[t]):F;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 nl(this,r=>r.importBlob(t,e))}importData64URI(t,e){return nl(this,r=>r.importData64URI(t,e))}importUint8Array(t,e){return nl(this,r=>r.importUint8Array(t,e))}importHttpContent(t,e){return nl(this,r=>r.importHttpContent(t,e))}importReadable(t,e){return nl(this,r=>r.importReadable(t,e))}importZip(t,e){return nl(this,r=>r.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 Nc={FS:Mc,ZipDirectoryEntry:jc,ZipFileEntry:Cc};function _c(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 Pc(t){return t.uncompressedSize}function Bc(t,e){const{data:r}=t;return e&&r instanceof Ba?r.compressedSize:t.uncompressedSize}function Wc(t){let e;return function(){if(e)throw new Error(vc);return e=!0,{readable:t}}}function Lc(t){return class extends yn{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,o=await e.entry.getData(new zn,Object.assign(r,{checkPasswordOnly:!1,checkOverlappingEntry:a||n,checkOverlappingEntryOnly:!1,preventClose:!1}));e.data=o,e.gr=new Sn(o),e.size=o.size,super.init()}readUint8Array(t,e){return this.gr.readUint8Array(t,e)}}}function qc(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function Zc(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=qc(t.Reader,t.data,e);a.set(t,r);try{await ta(r)}catch(e){try{e.entryId=t.id,e.cause={entry:t}}catch{}throw e}r.size!==F&&(t.uncompressedSize=r.size,t.mr=!1)})),a}function Vc(t){if(t.parent){const e=t.parent.children;e.forEach((r,n)=>{r.id==t.id&&e.splice(n,1)})}}function Hc(t){return Boolean(t)&&t.message==Oc}function Gc(t,e,n){const a=n.relativePath?t.getRelativeName(e):t.getFullname(),o=t.options||{};let s={},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:E,uid:v,gid:S}=t.data;s={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)=>{Uc.has(r)||e.set(r,t.data)}),e.size)return e}}(x);if(z&&(s.extraField=z),v===F&&S===F||Object.assign(s,{uid:v,gid:S,unixExtraFieldType:"infozip"}),Qc(t,n)){let t;b&&(t=b.strength),i={passThrough:!0,encrypted:m,zipCrypto:w,crc32:h,uncompressedSize:p,encryptionStrength:t,compressionMethod:y},E&&(i.dataDescriptor=E.dataDescriptor);const e=o.lastModDate===F?n.lastModDate:o.lastModDate;if(e===F)i.rawLastModDate=d;else if(w&&(!E||E.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(Fc)}}const c=Object.assign({lastModDate:t.wr},s,n,o,i,{directory:t.directory});if(!t.directory&&c.passThrough&&c.uncompressedSize===F)throw new Error(Rc);return{name:a,yr:c}}function Kc(t,e){const{reader:r}=t;return r&&r.size!==F?r.size:t.mr?F:Bc(t,e)}function Yc(t){if(t&&(typeof t!=I||Array.isArray(t)))throw new Error(Dc);return t}function Xc(t,e){const{uncompressedSize:r}=e;Object.assign(t,e,{reader:null,passThrough:F,uncompressedSize:r===F?0:r,mr:r===F})}function Jc(t){let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;return Math.floor(.75*(e-r))}function Qc(t,e){const{readerOptions:r}=e;return Boolean(!t.directory&&(t.passThrough||r&&r.passThrough))}function $c(t){return t.directory&&null===t.data}function tl(t,e,r){return async function t(e,n,a,o=""){if(n){const s=o?o+"/"+n.name:n.name;try{if((n.isFile||n.isDirectory)&&(n=await el(n)),"file"==n.kind){const t=await n.getFile();a.push(ol(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 o=e.addDirectory(n.name,r);a.push(o);for await(const e of n.values())await t(o,e,a,s)}}catch(t){try{t.entryName===F&&(t.entryName=s)}catch{}throw t}}return a}(t,e,[])}async function el(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 o=>{if(o.length){for(const t of o)e.push(await el(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 rl(t){t.entries=[],t.pr=0,t.root=new jc(t)}function nl(t,e){const{entries:r,pr:n,root:a}=t;return rl(t),e(t.root).catch(e=>{throw Object.assign(t,{entries:r,pr:n,root:a}),e})}function al(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)}}function ol(t,e,r,n){if(t.directory){const a=sl(e);return a&&(e=a.pop(),t=il(t,a)),n?new jc(t.fs,e,r,t):new Cc(t.fs,e,r,t)}throw new Error("Parent entry is not a directory")}function sl(t){if(t.includes("/")){const e=t.split("/").filter(t=>""!=t&&"."!=t);if(e.length)return e}}function il(t,e,r){return e.forEach(e=>{const n=t;if(t=t.getChildByName(e)){if(!t.directory)throw new Error(bc);if(r&&(t==r||t.isDescendantOf(r)))throw new Error(Ec)}else t=new jc(n.fs,e,{data:null},n)}),t}let cl;function ll(t){return t&&(cl||(cl=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 o of e.slice(r+1).split(",")){const e=o.split(" "),r=a.slice(0,Number.parseInt(e[0][0],36))+e[0].slice(1);a=r;const s=r.replace(/!/g,"+xml"),i=e.length>1?e.slice(1):[s.split("+")[0]];for(const e of i)t[e]=n+"/"+s}}return t}()),cl)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{Sn as BlobReader,zn as BlobWriter,gn as Data64URIReader,xn as Data64URIWriter,Tc as ERR_ABORTED,$a as ERR_AMBIGUOUS_ARCHIVE,Wa as ERR_BAD_FORMAT,Za as ERR_CENTRAL_DIRECTORY_NOT_FOUND,us as ERR_DUPLICATED_NAME,gc as ERR_DUPLICATE_IMPORTED_ENTRY,Ga as ERR_ENCRYPTED,to as ERR_ENCRYPTED_CENTRAL_DIRECTORY,Qa as ERR_ENTRY_DATA_OUT_OF_BOUNDS,bc as ERR_ENTRY_EXISTS,qa as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,La as ERR_EOCDR_NOT_FOUND,Ha as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,an as ERR_HTTP_RANGE,on as ERR_HTTP_RESOURCE_CHANGED,Kt as ERR_INVALID_AUTHENTICATION_CODE,Ne as ERR_INVALID_CODEC_DEFINITION,Pe as ERR_INVALID_CODEC_MODULE,ps as ERR_INVALID_COMMENT,ms as ERR_INVALID_COMMENT_TYPE,Xe as ERR_INVALID_COMPRESSED_DATA,Je as ERR_INVALID_CRC32,ys as ERR_INVALID_DATE,xc as ERR_INVALID_DUPLICATES,xs as ERR_INVALID_ENCRYPTION_STRENGTH,ws as ERR_INVALID_ENTRY_COMMENT,hs as ERR_INVALID_ENTRY_COMMENT_TYPE,bs as ERR_INVALID_ENTRY_NAME,Ss as ERR_INVALID_EXTRAFIELD,As as ERR_INVALID_EXTRAFIELD_DATA,ks as ERR_INVALID_EXTRAFIELD_DATA_TYPE,zs as ERR_INVALID_EXTRAFIELD_TYPE,no as ERR_INVALID_FILENAME_VALIDATION,tt as ERR_INVALID_FUNCTION_OPTION,_s as ERR_INVALID_GID,Zs as ERR_INVALID_LEVEL,ao as ERR_INVALID_MAX_APPENDED_DATA_SIZE,lt as ERR_INVALID_MAX_WORKERS,Ls as ERR_INVALID_MSDOS_ATTRIBUTES,qs as ERR_INVALID_MSDOS_DATA,Ht as ERR_INVALID_PASSWORD,rt as ERR_INVALID_PASSWORD_TYPE,Rc as ERR_INVALID_PASS_THROUGH,Dc as ERR_INVALID_READER_OPTIONS,et as ERR_INVALID_SIGNAL,Gt as ERR_INVALID_SIGNATURE,Vs as ERR_INVALID_SIGNATURE_DATA,ro as ERR_INVALID_STRICTNESS,Ns as ERR_INVALID_UID,Ye as ERR_INVALID_UNCOMPRESSED_SIZE,Bs as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,Ws as ERR_INVALID_UNIX_ID_SIZE,Ps as ERR_INVALID_UNIX_MODE,gs as ERR_INVALID_VERSION,sn as ERR_ITERATOR_COMPLETED_TOO_SOON,Va as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Ja as ERR_OVERLAPPING_ENTRY,vc as ERR_READABLE_CONSUMED,_e as ERR_RESERVED_COMPRESSION_METHOD,Xa as ERR_SPLIT_ZIP_FILE,Is as ERR_UNDEFINED_COMPRESSION_METHOD,js as ERR_UNDEFINED_READER,Us as ERR_UNDEFINED_UNCOMPRESSED_SIZE,Cs as ERR_UNDETERMINED_SIZE,eo as ERR_UNSAFE_FILENAME,Ya as ERR_UNSUPPORTED_COMPRESSION,ec as ERR_UNSUPPORTED_CONTEXT,Xt as ERR_UNSUPPORTED_CRYPTO_API,Ka as ERR_UNSUPPORTED_ENCRYPTION,vs as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,Es as ERR_UNSUPPORTED_ENCRYPTION_USDZ,Ts as ERR_UNSUPPORTED_FORMAT,oo as ERR_UNSUPPORTED_UINT64,br as ERR_WORKER_STARTUP_TIMEOUT,cn as ERR_WRITER_NOT_INITIALIZED,Fc as ERR_ZIP_CRYPTO_LAST_MOD_DATE,Ms as ERR_ZIP_NOT_EMPTY,Hn as HttpRangeReader,Vn as HttpReader,yn as Reader,Yn as SplitDataReader,Xn as SplitDataWriter,kn as TextReader,Rn as TextWriter,Gn as Uint8ArrayReader,Kn as Uint8ArrayWriter,Gi as VERSION,po as WARNING_APPENDED_DATA,co as WARNING_COMPRESSED_PATCHED_DATA,yo as WARNING_DUPLICATE_FILENAME,lo as WARNING_MALFORMED_EXTRA_FIELD,go as WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG,xo as WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD,Eo as WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES,bo as WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY,wo as WARNING_PREPENDED_CENTRAL_DIRECTORY,mo as WARNING_PREPENDED_DATA,ho as WARNING_TRAILING_CENTRAL_DIRECTORY_DATA,io as WARNING_UNKNOWN_VERSION,fo as WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA,so as WARNING_UNSORTED_CENTRAL_DIRECTORY,uo as WARNING_WRAPPED_ENTRIES_COUNT,bn as Writer,jc as ZipDirectoryEntry,Ic as ZipEntry,Mc as ZipFS,Cc as ZipFileEntry,Do as ZipReader,Fo as ZipReaderStream,Js as ZipWriter,Qs as ZipWriterStream,xt as configure,Qi as createBlobTempStream,Xi as createOPFSTempStream,rc as createSyncAccessHandleTempStream,Nc as fs,ll as getMimeType,He as getRegisteredCodecs,Vi as getSupportedCompressionMethods,Oo as isZipFile,qe as registerCodec,kt as resetConfiguration,yc as terminateWorkers,Ze as unregisterCodec};