@zip.js/zip.js 2.8.58 → 2.8.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/deno.json +2 -2
  2. package/dist/zip-core-external.js +295 -57
  3. package/dist/zip-core-external.min.js +1 -1
  4. package/dist/zip-core.js +286 -40
  5. package/dist/zip-core.min.js +1 -1
  6. package/dist/zip-fs-core-external.js +295 -58
  7. package/dist/zip-fs-core-external.min.js +1 -1
  8. package/dist/zip-fs-core.js +5867 -4360
  9. package/dist/zip-fs-core.min.js +1 -1
  10. package/dist/zip-fs-external.js +295 -58
  11. package/dist/zip-fs-external.min.js +1 -1
  12. package/dist/zip-fs-native.js +288 -43
  13. package/dist/zip-fs-native.min.js +1 -1
  14. package/dist/zip-fs.js +313 -58
  15. package/dist/zip-fs.min.js +1 -1
  16. package/dist/zip-legacy.js +288 -42
  17. package/dist/zip-legacy.min.js +1 -1
  18. package/dist/zip-native.js +288 -42
  19. package/dist/zip-native.min.js +1 -1
  20. package/dist/zip-web-worker-native.js +1 -1
  21. package/dist/zip-web-worker.js +1 -1
  22. package/dist/zip.js +313 -57
  23. package/dist/zip.min.js +1 -1
  24. package/index-native.cjs +288 -43
  25. package/index-native.min.js +1 -1
  26. package/index.cjs +313 -58
  27. package/index.d.cts +318 -2
  28. package/index.d.ts +318 -2
  29. package/index.min.js +1 -1
  30. package/lib/core/codec-registry.js +5 -0
  31. package/lib/core/compression-methods.js +93 -0
  32. package/lib/core/constants.js +2 -0
  33. package/lib/core/options.js +2 -0
  34. package/lib/core/streams/zip-entry-stream.js +7 -3
  35. package/lib/core/streams/zlib-wasm/zlib-streams.js +18 -8
  36. package/lib/core/version.js +31 -0
  37. package/lib/core/web-worker-inline-native.js +1 -1
  38. package/lib/core/web-worker-inline-wasm.js +1 -1
  39. package/lib/core/zip-reader.js +143 -33
  40. package/lib/core/zip-writer.js +14 -6
  41. package/lib/zip-core-base.js +7 -0
  42. package/lib/zip-core-reader.js +16 -1
  43. package/lib/zip-fs-core.js +32 -0
  44. package/package.json +3 -3
  45. package/sync-versions.js +26 -0
@@ -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,v=61440,E=16384,S=2048,z=1024,k="/",A=30,R=new Date(2107,11,31,23,59,58),D=new Date(1980,0,1),F=void 0,O=1/0,U="undefined",j="function",T="object",I="string",M=new Uint8Array,C="password",N="rawPassword",B="passThrough",P="signal",_="useWebWorkers",W="useCompressionStream",L="transferStreams",q="preventClose",V="dataDescriptor",Z="offset",H="usdz",K="signCentralDirectory",Y="filename",G="comment",X="strict",J="balanced",Q="tolerant",$="Invalid option (must be a function)",tt="Invalid signal (must be an AbortSignal instance)",et="Invalid password (password must be a string, rawPassword must be a Uint8Array)";function rt(t){if(t&&typeof t!=j)throw new Error($);return t}function nt(t){if(t&&(typeof t.addEventListener!=j||"boolean"!=typeof t.aborted))throw new Error(tt);return t||F}function at(t,e){if(t&&typeof t!=I||e&&!(e instanceof Uint8Array))throw new Error(et)}function st(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw new Error(r)}function ot(t,e,r){t!==F&&st(t,e,r)}function it(t){return typeof t==I&&t.trim()?Number(t):t}const ct="Invalid maxWorkers (must be an integer greater than 0)";let lt=2;try{typeof navigator!=U&&navigator.hardwareConcurrency&&(lt=navigator.hardwareConcurrency)}catch{}const dt={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:lt,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=U&&CompressionStream,DecompressionStream:typeof DecompressionStream!=U&&DecompressionStream},ft="maxWorkers",ut=["chunkSize",ft,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],pt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],mt=["baseURI","wasmURI","workerURI","useCompressionStream","useWebWorkers","transferStreams",...ut,...pt],wt={...dt};function ht(){return wt}function yt(t){return bt(t.chunkSize)}function bt(t){return t=it(t),Number.isInteger(t)&&t>=1?Math.max(t,64):65536}function gt(t){Object.assign(wt,xt(Et(t)))}function xt(t){const e={};for(const r of mt){const n=t[r];n!==F&&(e[r]=vt(r,n))}return e}function vt(t,e){if(ut.includes(t)){if(e=it(e),t==ft&&(!Number.isInteger(e)||e<1))throw new Error(ct)}else pt.includes(t)&&rt(e);return e}function Et(t){t=t||{};const{CompressionStreamZlib:e,DecompressionStreamZlib:r}=t;if(e===F&&r===F)return t;const n=Object.assign({},t);return n.CompressionStreamFallback===F&&(n.CompressionStreamFallback=e),n.DecompressionStreamFallback===F&&(n.DecompressionStreamFallback=r),n}function St(t){const e=xt(Et(t));Object.assign(dt,e),Object.assign(wt,e)}function zt(){for(const t of mt)delete wt[t];Object.assign(wt,dt)}function kt(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function At(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function Rt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const Dt=[[],[],[],[],[],[],[],[]];for(let t=0;t<256;t++){let e=t;for(let t=0;t<8;t++)e=1&e?e>>>1^3988292384:e>>>1;Dt[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=Dt[e-1][t];Dt[e][t]=r>>>8^Dt[0][255&r]}const[Ft,Ot,Ut,jt,Tt,It,Mt,Ct]=Dt;class Nt{constructor(t){this.o=t||-1}append(t){let e=0|this.o;const r=0|t.length;let n=0;if(r>=8&&t.buffer){const a=new DataView(t.buffer,t.byteOffset,r),s=r-8;for(;n<=s;n+=8){const t=e^a.getInt32(n,!0),r=a.getInt32(n+4,!0);e=Ct[255&t]^Mt[t>>>8&255]^It[t>>>16&255]^Tt[t>>>24&255]^jt[255&r]^Ut[r>>>8&255]^Ot[r>>>16&255]^Ft[r>>>24&255]}}for(;n<r;n++)e=e>>>8^Ft[255&(e^t[n])];this.o=e}get(){return~this.o}}class Bt extends TransformStream{constructor(){let t;const e=new Nt;super({transform(t,r){e.append(t),r.enqueue(t)},flush(){const r=new Uint8Array(4);new DataView(r.buffer).setUint32(0,e.get()),t.value=r}}),t=this}}function Pt(t){if(typeof TextEncoder==U){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let r=0;r<e.length;r++)e[r]=t.charCodeAt(r);return e}return(new TextEncoder).encode(t)}const _t={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const r=t[t.length-1],n=_t.l(r);return 32===n?t.concat(e):_t.m(e,n,0|r,t.slice(0,t.length-1))},bitLength(t){const e=t.length;if(0===e)return 0;const r=t[e-1];return 32*(e-1)+_t.l(r)},h(t,e){if(32*t.length<e)return t;const r=(t=t.slice(0,Math.ceil(e/32))).length;return e&=31,r>0&&e&&(t[r-1]=_t.v(e,t[r-1]&2147483648>>e-1,1)),t},v:(t,e,r)=>32===t?e:(r?0|e:e<<32-t)+1099511627776*t,l:t=>Math.round(t/1099511627776)||32,m(t,e,r,n){for(void 0===n&&(n=[]);e>=32;e-=32)n.push(r),r=0;if(0===e)return n.concat(t);for(let a=0;a<t.length;a++)n.push(r|t[a]>>>e),r=t[a]<<32-e;const a=t.length?t[t.length-1]:0,s=_t.l(a);return n.push(_t.v(e+s&31,e+s>32?r:n.pop(),1)),n}},Wt={bytes:{S(t){const e=_t.bitLength(t)/8,r=new Uint8Array(e);let n;for(let a=0;a<e;a++)3&a||(n=t[a/4]),r[a]=n>>>24,n<<=8;return r},A(t){const e=[];let r,n=0;for(r=0;r<t.length;r++)n=n<<8|t[r],3&~r||(e.push(n),n=0);return 3&r&&e.push(_t.v(8*(3&r),n)),e}}},Lt=class{constructor(t){const e=this;e.blockSize=512,e.R=[1732584193,4023233417,2562383102,271733878,3285377520],e.D=[1518500249,1859775393,2400959708,3395469782],t?(e.F=t.F.slice(0),e.O=t.O.slice(0),e.U=t.U):e.reset()}reset(){const t=this;return t.F=t.R.slice(0),t.O=[],t.U=0,t}update(t){const e=this;"string"==typeof t&&(t=Wt.j.A(t));const r=e.O=_t.concat(e.O,t),n=e.U,a=e.U=n+_t.bitLength(t);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(r);let o=0;for(let t=e.blockSize+n-(e.blockSize+n&e.blockSize-1);t<=a;t+=e.blockSize)e.T(s.subarray(16*o,16*(o+1))),o+=1;return r.splice(0,16*o),e}I(){const t=this;let e=t.O;const r=t.F;e=_t.concat(e,[_t.v(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(Math.floor(t.U/4294967296)),e.push(0|t.U);e.length;)t.T(e.splice(0,16));return t.reset(),r}M(t,e,r,n){return t<=19?e&r|~e&n:t<=39?e^r^n:t<=59?e&r|e&n|r&n:t<=79?e^r^n:void 0}C(t,e){return e<<t|e>>>32-t}T(t){const e=this,r=e.F,n=Array(80);for(let e=0;e<16;e++)n[e]=t[e];let a=r[0],s=r[1],o=r[2],i=r[3],c=r[4];for(let t=0;t<=79;t++){t>=16&&(n[t]=e.C(1,n[t-3]^n[t-8]^n[t-14]^n[t-16]));const r=e.C(5,a)+e.M(t,s,o,i)+c+n[t]+e.D[Math.floor(t/20)]|0;c=i,i=o,o=e.C(30,s),s=a,a=r}r[0]=r[0]+a|0,r[1]=r[1]+s|0,r[2]=r[2]+o|0,r[3]=r[3]+i|0,r[4]=r[4]+c|0}},qt={importKey:t=>new qt.N(Wt.bytes.A(t)),B(t,e,r,n){if(r=r||1e4,n<0||r<0)throw new Error("invalid params to pbkdf2");const a=1+(n>>5)<<2;let s,o,i,c,l;const d=new ArrayBuffer(a),f=new DataView(d);let u=0;const p=_t;for(e=Wt.bytes.A(e),l=1;u<(a||1);l++){for(s=o=t.encrypt(p.concat(e,[l])),i=1;i<r;i++)for(o=t.encrypt(o),c=0;c<o.length;c++)s[c]^=o[c];for(i=0;u<(a||1)&&i<s.length;i++)f.setInt32(u,s[i]),u+=4}return d.slice(0,n/8)},N:class{constructor(t){const e=this,r=e.P=Lt,n=[[],[]];e._=[new r,new r];const a=e._[0].blockSize/32;t.length>a&&(t=(new r).update(t).I());for(let e=0;e<a;e++)n[0][e]=909522486^t[e],n[1][e]=1549556828^t[e];e._[0].update(n[0]),e._[1].update(n[1]),e.W=new r(e._[0])}reset(){const t=this;t.W=new t.P(t._[0]),t.L=!1}update(t){this.L=!0,this.W.update(t)}digest(){const t=this,e=t.W.I(),r=new t.P(t._[1]).update(e).I();return t.reset(),r}encrypt(t){if(this.L)throw new Error("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},Vt=typeof crypto!=U&&typeof crypto.getRandomValues==j,Zt="Invalid password",Ht="Invalid signature",Kt=Ht,Yt="zipjs-abort-check-password",Gt="Crypto API not supported";function Xt(t){if(Vt)return crypto.getRandomValues(t);throw new Error(Gt)}const Jt=16,Qt={name:"PBKDF2"},$t=Object.assign({hash:{name:"HMAC"}},Qt),te=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},Qt),ee=["deriveBits"],re=[8,12,16],ne=[16,24,32],ae=10,se=[0,0,0,0],oe=typeof crypto!=U,ie=oe&&crypto.subtle,ce=oe&&typeof ie!=U,le=Wt.bytes,de=class{constructor(t){const e=this;e.V=[[[],[],[],[],[]],[[],[],[],[],[]]],e.V[0][0][0]||e.Z();const r=e.V[0][4],n=e.V[1],a=t.length;let s,o,i,c=1;if(4!==a&&6!==a&&8!==a)throw new Error("invalid aes key size");for(e.D=[o=t.slice(0),i=[]],s=a;s<4*a+28;s++){let t=o[s-1];(s%a===0||8===a&&s%a===4)&&(t=r[t>>>24]<<24^r[t>>16&255]<<16^r[t>>8&255]<<8^r[255&t],s%a===0&&(t=t<<8^t>>>24^c<<24,c=c<<1^283*(c>>7))),o[s]=o[s-a]^t}for(let t=0;s;t++,s--){const e=o[3&t?s:s-4];i[t]=s<=4||t<4?e:n[0][r[e>>>24]]^n[1][r[e>>16&255]]^n[2][r[e>>8&255]]^n[3][r[255&e]]}}encrypt(t){return this.H(t,0)}decrypt(t){return this.H(t,1)}Z(){const t=this.V[0],e=this.V[1],r=t[4],n=e[4],a=[],s=[];let o,i,c,l;for(let t=0;t<256;t++)s[(a[t]=t<<1^283*(t>>7))^t]=t;for(let d=o=0;!r[d];d^=i||1,o=s[o]||1){let s=o^o<<1^o<<2^o<<3^o<<4;s=s>>8^255&s^99,r[d]=s,n[s]=d,l=a[c=a[i=a[d]]];let f=16843009*l^65537*c^257*i^16843008*d,u=257*a[s]^16843008*s;for(let r=0;r<4;r++)t[r][d]=u=u<<24^u>>>8,e[r][s]=f=f<<24^f>>>8}for(let r=0;r<5;r++)t[r]=t[r].slice(0),e[r]=e[r].slice(0)}H(t,e){if(4!==t.length)throw new Error("invalid aes block size");const r=this.D[e],n=r.length/4-2,a=[0,0,0,0],s=this.V[e],o=s[0],i=s[1],c=s[2],l=s[3],d=s[4];let f,u,p,m=t[0]^r[0],w=t[e?3:1]^r[1],h=t[2]^r[2],y=t[e?1:3]^r[3],b=4;for(let t=0;t<n;t++)f=o[m>>>24]^i[w>>16&255]^c[h>>8&255]^l[255&y]^r[b],u=o[w>>>24]^i[h>>16&255]^c[y>>8&255]^l[255&m]^r[b+1],p=o[h>>>24]^i[y>>16&255]^c[m>>8&255]^l[255&w]^r[b+2],y=o[y>>>24]^i[m>>16&255]^c[w>>8&255]^l[255&h]^r[b+3],b+=4,m=f,w=u,h=p;for(let t=0;t<4;t++)a[e?3&-t:t]=d[m>>>24]<<24^d[w>>16&255]<<16^d[h>>8&255]<<8^d[255&y]^r[b++],f=m,m=w,w=h,h=y,y=f;return a}},fe=class{constructor(t,e){this.K=t,this.Y=e,this.G=e}reset(){this.G=this.Y}update(t){return this.X(this.K,t,this.G)}J(t){if(255&~(t>>24))t+=1<<24;else{let e=t>>16&255,r=t>>8&255,n=255&t;255===e?(e=0,255===r?(r=0,255===n?n=0:++n):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=n}return t}$(t){0===(t[0]=this.J(t[0]))&&(t[1]=this.J(t[1]))}X(t,e,r){let n;if(!(n=e.length))return[];const a=_t.bitLength(e);for(let a=0;a<n;a+=4){this.$(r);const n=t.encrypt(r);e[a]^=n[0],e[a+1]^=n[1],e[a+2]^=n[2],e[a+3]^=n[3]}return _t.h(e,a)}},ue=qt.N;let pe=oe&&ce&&typeof ie.importKey==j,me=oe&&ce&&typeof ie.deriveBits==j;class we extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:n,checkAuthenticationCode:a=!0}){super({start(){ye(this,t,e,r)},async transform(t,e){const r=this,{password:a,strength:s,et:o,ready:i}=r;a?(await async function(t,e,r,n){const a=await ge(t,e,r,ve(n,0,re[e])),s=ve(n,re[e]);if(a[0]!=s[0]||a[1]!=s[1])throw new Error(Zt)}(r,s,a,ve(t,0,re[s]+2)),t=ve(t,re[s]+2),n?e.error(new Error(Yt)):o()):await i;const c=new Uint8Array(t.length-ae-(t.length-ae)%Jt);e.enqueue(be(r,t,c,0,ae,!0))},async flush(t){const{nt:e,st:r,ot:n,ready:s}=this;if(r&&e){await s;const o=ve(n,0,n.length-ae),i=ve(n,n.length-ae);let c=M;if(o.length){const t=Se(le,o);r.update(t);const n=e.update(t);c=Ee(le,n)}const l=ve(Ee(le,r.digest()),0,ae);let d=n.length<ae?1:0;for(let t=0;t<ae;t++)d|=l[t]^i[t];if(d&&a)throw new Error(Kt);t.enqueue(c)}}})}}class he extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){super({start(){ye(this,t,e,r)},async transform(t,e){const r=this,{password:n,strength:a,et:s,ready:o}=r;let i=M;n?(i=await async function(t,e,r){const n=Xt(new Uint8Array(re[e]));return kt(n,await ge(t,e,r,n))}(r,a,n),s()):await o;const c=new Uint8Array(i.length+t.length-t.length%Jt);c.set(i,0),e.enqueue(be(r,t,c,i.length,0))},async flush(t){const{nt:e,st:r,ot:n,ready:a}=this;if(r&&e){await a;let s=M;if(n.length){const t=e.update(Se(le,n));r.update(t),s=Ee(le,t)}const o=Ee(le,r.digest()).slice(0,ae);t.enqueue(kt(s,o))}}})}}function ye(t,e,r,n){Object.assign(t,{ready:new Promise(e=>t.et=e),password:xe(e,r),strength:n-1,ot:M})}function be(t,e,r,n,a,s){const{nt:o,st:i,ot:c}=t;c.length&&(e=kt(c,e));const l=e.length-a;let d;for(r=function(t,e){if(e&&e>t.length){const r=t;(t=new Uint8Array(e)).set(r,0)}return t}(r,n+(l-l%Jt)),d=0;d<=l-Jt;d+=Jt){const t=Se(le,ve(e,d,d+Jt));s&&i.update(t);const a=o.update(t);s||i.update(a),r.set(Ee(le,a),d+n)}return t.ot=ve(e,d),r}async function ge(t,e,r,n){t.password=null;const a=await async function(t,e,r,n,a){if(!pe)return qt.importKey(e);try{return await ie.importKey("raw",e,r,!1,a)}catch{return pe=!1,qt.importKey(e)}}(0,r,$t,0,ee),s=await async function(t,e,r){if(!me)return qt.B(e,t.salt,te.iterations,r);try{return await ie.deriveBits(t,e,r)}catch{return me=!1,qt.B(e,t.salt,te.iterations,r)}}(Object.assign({salt:n},te),a,8*(2*ne[e]+2)),o=new Uint8Array(s),i=Se(le,ve(o,0,ne[e])),c=Se(le,ve(o,ne[e],2*ne[e])),l=ve(o,2*ne[e]);return Object.assign(t,{keys:{key:i,it:c,passwordVerification:l},nt:new fe(new de(i),Array.from(se)),st:new ue(c)}),l}function xe(t,e){return e===F?Pt(t):e}function ve(t,e,r){return t.subarray(e,r)}function Ee(t,e){return t.S(e)}function Se(t,e){return t.A(e)}class ze extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:n}){super({start(){Ae(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=Re(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw new Error(Zt);t=t.subarray(12)}n?e.error(new Error(Yt)):e.enqueue(Re(r,t))}})}}class ke extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){Ae(this,t,e,r)},transform(t,e){const r=this;let n,a;if(r.password||r.rawPassword){r.password=r.rawPassword=null;const e=Xt(new Uint8Array(12));e[11]=r.passwordVerification,n=new Uint8Array(t.length+e.length),n.set(De(r,e),0),a=12}else n=new Uint8Array(t.length),a=0;n.set(De(r,t),a),e.enqueue(n)}})}}function Ae(t,e,r,n){Object.assign(t,{password:e,rawPassword:r,passwordVerification:n}),function(t,e,r){const n=[305419896,591751049,878082192];if(Object.assign(t,{keys:n,ct:new Nt(n[0]),lt:new Nt(n[2])}),r)for(let e=0;e<r.length;e++)Fe(t,r[e]);else for(let r=0;r<e.length;r++)Fe(t,e.charCodeAt(r))}(t,e,r)}function Re(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Oe(t)^e[n],Fe(t,r[n]);return r}function De(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Oe(t)^e[n],Fe(t,e[n]);return r}function Fe(t,e){let[,r]=t.keys;t.ct.append([e]);const n=~t.ct.get();r=je(Math.imul(je(r+Ue(n)),134775813)+1),t.lt.append([r>>>24]);const a=~t.lt.get();t.keys=[n,r,a]}function Oe(t){const e=2|t.keys[2];return Ue(Math.imul(e,1^e)>>>8)}function Ue(t){return 255&t}function je(t){return 4294967295&t}function Te(t){if(t instanceof ReadableStream)return t;const e=t.getReader();return new ReadableStream({async pull(t){const{value:r,done:n}=await e.read();n?t.close():t.enqueue(r)},cancel:t=>e.cancel(t)})}function Ie(t,e){t=Te(t);const r=e?{type:e}:{};if(typeof Blob.prototype.stream!=j||new Blob([]).stream()instanceof ReadableStream)return new Response(t).blob().then(t=>e?new Blob([t],r):t);const n=[];return t.pipeTo(new WritableStream({write(t){n.push(t)}})).then(()=>new Blob(n,r))}function Me(t){if(t instanceof WritableStream)return t;const e=t.getWriter();return new WritableStream({write:t=>e.write(t),close:()=>e.close(),abort:t=>e.abort(t)})}const Ce="Invalid codec definition",Ne="Reserved compression method",Be="Invalid codec module",Pe=[0,8,9,99],_e=new Map,We=new Map;function Le(t={}){const{compressionMethod:r,format:n,codecURI:a,CompressionStream:s,DecompressionStream:o,versionNeeded:i}=t;if(!Number.isInteger(r)||r<0||r>e||typeof n!=I||!n.length)throw new Error(Ce);if(Pe.includes(r))throw new Error(Ne);const c=typeof s==j||typeof o==j;if(!(c||typeof a==I&&a.length))throw new Error(Ce);_e.set(r,{compressionMethod:r,format:n,codecURI:a,versionNeeded:i}),c&&He(n,{CompressionStream:s,DecompressionStream:o})}function qe(t){const e=_e.get(t);if(e){let r;_e.delete(t),_e.forEach(t=>r=r||t.format==e.format),r||We.delete(e.format)}}function Ve(t){return _e.get(t)}function Ze(t){return We.get(t)}function He(t,e){const{CompressionStream:r,DecompressionStream:n}=e;if(typeof r!=j&&typeof n!=j)throw new Error(Be);We.set(t,{CompressionStream:r,DecompressionStream:n})}const Ke="Invalid uncompressed size",Ye="Invalid compressed data",Ge=Ht,Xe="deflate-raw",Je="gzip",Qe=[31,139,8];class $e extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:n}){super({});const{compressed:a,encrypted:s,useCompressionStream:o,zipCrypto:i,computeCrc32:c,level:l,deflate64:d,format:f,compressionMethod:u}=t,p=this;let m,w,h,y=super.readable;const b=f&&Ze(f),g=c&&a&&!d&&!b&&(!s||i)&&Boolean(o&&n);if(s&&!i||!c||g||(m=new Bt,y=cr(y,m)),a)if(b)y=lr(y,or(b.CompressionStream,f,{level:l,chunkSize:e,compressionMethod:u}));else if(g)h=new tr,y=lr(y,new n(Je)),y=cr(y,h);else try{y=ir(y,o,{level:l,chunkSize:e},n,r)}catch(t){let e;try{e=new n(Je)}catch{throw t}y=lr(y,e),y=cr(y,new tr)}s&&(i?y=cr(y,new ke(t)):(w=new he(t),y=cr(y,w))),sr(p,y,()=>{s&&!i||!c||(p.crc32=g?h.crc32:new DataView(m.value.buffer).getUint32(0))})}}class tr extends TransformStream{constructor(){let t,e=10,r=new Uint8Array(0);super({transform(t,n){if(e){const r=Math.min(e,t.length);if(e-=r,!(t=t.subarray(r)).length)return}const a=r.length+t.length;if(a<=8)return void(r=kt(r,t));const s=a-8,o=Math.min(s,r.length);n.enqueue(kt(r.subarray(0,o),t.subarray(0,s-o))),r=kt(r.subarray(o),t.subarray(s-o))},flush(){const e=Rt(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class er extends TransformStream{constructor(t,{chunkSize:e,DecompressionStreamFallback:r,DecompressionStream:n}){super({});const{zipCrypto:a,encrypted:s,checkCrc32:o,crc32:i,compressed:c,useCompressionStream:l,deflate64:d,format:f,compressionMethod:u,rawBitFlag:p,outputSize:m}=t;let w,h,y=super.readable;if(s&&(a?y=cr(y,new ze(t)):(h=new we(t),y=cr(y,h))),c){const t=f&&Ze(f);if(t)y=lr(y,or(t.DecompressionStream,f,{chunkSize:e,compressionMethod:u,rawBitFlag:p,uncompressedSize:m}));else try{y=ir(y,l,{chunkSize:e,deflate64:d},n,r)}catch(t){if(d||m===F)throw t;let e;try{e=new n(Je)}catch{throw t}y=function(t,e,r){const n=new Nt;let a,s,o,i=0,c=!1;const l=new Promise((t,e)=>{s=t,o=e});l.catch(()=>{}),r||s();const d=new TransformStream({start(t){const e=new Uint8Array(10);e.set(Qe),t.enqueue(e)},transform(t,e){e.enqueue(t)},async flush(t){c=!0,u();try{await l}finally{p()}const e=new Uint8Array(8),a=Rt(e);a.setUint32(0,n.get(),!0),a.setUint32(4,r,!0),t.enqueue(e)},cancel(t){o(t)}}),f=new TransformStream({transform(t,e){n.append(t),i+=t.length,i>=r?s():c&&u(),e.enqueue(t)},cancel(t){o(t)}});return t=cr(t,d),cr(t=lr(t,e),f);function u(){p(),a=setTimeout(()=>o(new Error(Ke)),5e3)}function p(){clearTimeout(a)}}(y,e,m)}y=function(t){const e=t.getReader();return new ReadableStream({async pull(t){let r;try{r=await e.read()}catch(t){if(t&&t.message)throw t;const e=new Error(Ye);throw e.cause=t,e}const{value:n,done:a}=r;a?t.close():t.enqueue(n)},cancel:t=>e.cancel(t)})}(y)}o&&(w=new Bt,y=cr(y,w)),sr(this,y,()=>{if(o){const t=new DataView(w.value.buffer);if(i!=t.getUint32(0,!1))throw new Error(Ge)}})}}const rr=new Map;function nr(t,e){if(!t)return!1;let r=rr.get(t);r||(r=new Map,rr.set(t,r));let n=r.get(e);if(n===F){try{new t(e),n=!0}catch{n=!1}r.set(e,n)}return n}function ar(t){return nr(t,Xe)}function sr(t,e,r){e=cr(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function or(t,e,r){if(!t)throw new Error("Compression method not supported");return new t(e,r)}function ir(t,e,r,n,a){const s=e&&n?n:a||n,o=r.deflate64?"deflate64-raw":Xe;let i;try{i=new s(o,r)}catch(t){if(!e||!a||s==a)throw t;i=new a(o,r)}return lr(t,i)}function cr(t,e){return Te(t).pipeThrough(e)}function lr(t,e){const r=e.writable.getWriter(),n=t.getReader();return async function(){try{for(;;){await r.ready;const t=await n.read();if(t.done){await r.close();break}await r.write(t.value)}}catch(t){await async function(t,e){try{await t.abort(e)}catch{}}(r,t),await async function(t,e){try{await t.cancel(e)}catch{}}(n,t)}}(),e.readable}const dr="data",fr="deflate",ur="inflate";class pr extends TransformStream{constructor(t,e){super({});const r=this,{codecType:n}=t;let a;n.startsWith(fr)?a=$e:n.startsWith(ur)&&(a=er),r.outputSize=0;let s=0;const o=new a(t,e),i=super.readable,c=new TransformStream({transform(t,e){t&&t.length&&(s+=t.length,e.enqueue(t))},flush(){Object.assign(r,{inputSize:s})}}),l=new TransformStream({transform(e,n){if(e&&e.length&&(n.enqueue(e),r.outputSize+=e.length,t.outputSize!==F&&r.outputSize>t.outputSize))throw new Error(Ke)},flush(){const{crc32:t}=o;Object.assign(r,{crc32:t,inputSize:s})}});Object.defineProperty(r,"readable",{get:()=>i.pipeThrough(c).pipeThrough(o).pipeThrough(l)})}}class mr extends TransformStream{constructor(t){const e=[];let r=0;function n(){const n=new Uint8Array(t);let a=0;for(;a<t;){const r=e[0],s=t-a;r.length<=s?(n.set(r,a),a+=r.length,e.shift()):(n.set(r.subarray(0,s),a),e[0]=r.subarray(s),a+=s)}return r-=t,n}(!Number.isFinite(t)||t<1)&&(t=65536),super({transform(a,s){for(e.push(a),r+=a.length;r>t;)s.enqueue(n())},flush(t){r&&t.enqueue(function(t,e){const r=new Uint8Array(e);let n=0;for(const e of t)r.set(e,n),n+=e.length;return r}(e,r))}})}}const wr="Worker startup timeout";let hr,yr,br,gr=()=>{};async function xr(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;if(r&&!r.ft)return!0;if(ar(e)||nr(e,Je))return!0;if(r)try{return await gr(t),!0}catch{return!1}return!1}function vr(t){t.createWorker?yr=!0:hr=!1}class Er{constructor(t,{readable:e,writable:r},{options:n,config:a,ut:s,useWebWorkers:o,transferStreams:i,workerURI:c,createWorker:l},d){const{signal:f}=s;return yr&&(l=F),Object.assign(t,{wt:!0,ht:(t.ht||0)+1,readable:e.pipeThrough(new mr(yt(a))).pipeThrough(new Sr(s),{signal:f}),writable:r,options:Object.assign({},n),workerURI:c,createWorker:l,transferStreams:i,terminate:()=>new Promise(e=>{const{yt:r,wt:n}=t;r?(n?t.bt=e:(r.terminate(),e()),t.gt=null):e()}),xt(){if(t.wt){const{bt:e}=t;e&&(t.bt=null,t.vt=!0,t.yt.terminate(),e()),t.wt=!1,d(t)}}}),hr===F&&(hr=typeof Worker!=U),(o&&br&&(hr&&c||l)?br:kr)(t,a)}}class Sr extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:n}){let a=0;super({async start(){t&&await zr(t,r)},async transform(t,n){a+=t.length,e&&await zr(e,a,r),n.enqueue(t)},async flush(){n&&await zr(n,a)}})}}async function zr(t,...e){try{await t(...e)}catch{}}function kr(t,e){return{run:()=>Ar(t,e)}}async function Ar({options:t,readable:e,writable:r,xt:n},a){let s;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(fr),r=e?a.CompressionStreamFallback:a.DecompressionStreamFallback,n=e?a.CompressionStream:a.DecompressionStream;if(t.useCompressionStream){if(r&&r.ft&&!ar(n))try{await gr(a)}catch{}}else try{await gr(a)}catch{r&&!r.ft||(t.useCompressionStream=!0)}}s=new pr(t,a),await e.pipeThrough(s).pipeThrough(new mr(yt(a))).pipeTo(r,{preventClose:!0,preventAbort:!0});const{crc32:n,inputSize:o,outputSize:i}=s;return{crc32:n,inputSize:o,outputSize:i}}catch(t){throw s&&(t.outputSize=s.outputSize),t}finally{n()}}const Rr={type:"module"},Dr="error";let Fr,Or,Ur,jr=!0;try{jr=typeof structuredClone==j&&structuredClone(new DOMException("","AbortError")).code!==F}catch{}var Tr;function Ir(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function Mr(t){const{yt:e}=t;if(e)try{e.terminate()}catch{}t.gt=null}function Cr(t,e,r,n,a=!0){const{createWorker:s}=r;let o,i,c;if(s)o=s();else if(Or===F||Fr!==t){const s=typeof t==j;i=s?t(a):t;const l=i.startsWith("data:"),d=i.startsWith("blob:");if(l||d){n===F&&(n=!1),n&&(c=Rr);try{o=new Worker(i,c)}catch(a){if(d)try{URL.revokeObjectURL(i)}catch{}if(s&&d)return Cr(t,e,r,n,!1);if(n)throw a;return Cr(t,e,r,!0,!1)}}else{n===F&&(n=!0),n&&(c=Rr);try{i=new URL(i,e)}catch{}try{o=new Worker(i,c)}catch(s){if(n)return Cr(t,e,r,!1,a);throw s}}Fr=t,Or=i,Ur=c}else o=new Worker(Or,Ur);return o.addEventListener("message",t=>{r.Et=!0,Nr(r),async function({data:t},e){const{type:r,value:n,messageId:a,result:s,error:o}=t,{reader:i,writer:c,St:l,zt:d,xt:f,ht:u}=e,p=()=>e.ht!=u;try{if(o){const{message:t,stack:e,code:r,name:n,outputSize:a,cause:s,codecImportFailed:i}=o,c=new Error(t);Object.assign(c,{stack:e,code:r,name:n,outputSize:a}),s&&(c.cause=Object.assign(new Error(s.message),{name:s.name})),i&&(c.codecImportFailed=!0),m(c)}else{if("pull"==r){const{value:t,done:r}=await i.read();p()||Pr({type:dr,value:t,done:r,messageId:a},e)}r==dr&&(await c.ready,await c.write(new Uint8Array(n)),p()||Pr({type:"ack",messageId:a},e)),"close"==r&&m(null,s)}}catch(o){p()||(Mr(e),m(o))}function m(t,e){p()||(t?d(t):l(e),c&&c.releaseLock(),t&&t.codecImportFailed||f())}}(t,r)}),o.addEventListener(Dr,t=>Br(t,r)),o.addEventListener("messageerror",t=>Br(t,r)),o}function Nr(t){const{kt:e}=t;e&&(clearTimeout(e),t.kt=null)}function Br(t,e){t.preventDefault&&t.preventDefault(),Nr(e);const{Et:r,zt:n,writer:a,xt:s}=e;Mr(e),r||(e.yt=null);let o=t.error||new Error(t.message||Dr);r||(o=Object.assign(new Error(o.message||Dr),{At:!0}),e.Rt=o),n&&(n(o),a&&a.releaseLock(),r&&s())}function Pr(t,{yt:e,writer:r,transferStreams:n,Et:a}){try{const{value:r,readable:s,writable:o}=t,i=[];if(r&&(t.value=At(r),i.push(t.value.buffer)),n&&jr&&a?(s&&i.push(s),o&&i.push(o)):t.readable=t.writable=null,i.length)try{return e.postMessage(t,i),!0}catch{jr=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}Tr=function(t,e){const{baseURI:r,chunkSize:n,workerStartupTimeout:a}=e;let{wasmURI:s}=e;if(!t.gt){let o;typeof s==j&&(s=s());try{o=Cr(t.workerURI,r,t)}catch{return vr(t),kr(t,e)}Object.assign(t,{yt:o,Et:!1,vt:!1,Rt:null,gt:{run:async()=>{try{return await async function(t,e){if(!t.yt){const{Rt:e}=t;t.Rt=null;const r=e||new Error(wr);throw r.At=!0,r}let r,n;const a=new Promise((t,e)=>{r=t,n=e});Object.assign(t,{reader:null,writer:null,St:r,zt:n,result:a});const{readable:s,options:o}=t,{writable:i,closed:c,Dt:l}=function(t){const e=new AbortController,{writable:r,readable:n}=new TransformStream,a=n.pipeTo(t,{preventClose:!0,preventAbort:!0,signal:e.signal});return a.catch(()=>{}),{writable:r,closed:a,Dt:()=>e.abort()}}(t.writable);let d;try{d=Pr({type:"start",options:o,config:e,readable:s,writable:i},t)}catch(e){l();try{await c}catch{}throw t.xt(),e}d||Object.assign(t,{reader:s.getReader(),writer:i.getWriter()});const{workerStartupTimeout:f}=e;!t.Et&&Number.isFinite(f)&&f>=0&&(t.kt=setTimeout(()=>function(t){if(t.kt=null,t.Et)return;const{zt:e,writer:r}=t;if(Mr(t),t.yt=null,e){const t=new Error(wr);t.At=!0,e(t),r&&r.releaseLock()}}(t),f));try{const t=await a;return await u(),await c,t}catch(t){await u(),l();try{await c}catch{}throw t}async function u(){if(!d&&!i.locked)try{await i.getWriter().close()}catch{}}}(t,{chunkSize:n,wasmURI:s,baseURI:r,workerStartupTimeout:a})}catch(r){if(r&&r.At)return vr(t),Ir(t),Ar(t,e);if(r&&r.codecImportFailed){if(t.reader)return Ir(t),Ar(t,e);t.xt()}throw r}}}})}return t.gt},br=Tr;let _r=[];const Wr=[];let Lr,qr,Vr=0;async function Zr(t,e){const{options:r,config:n}=e,{transferStreams:a,useWebWorkers:s,useCompressionStream:o,compressed:i,checkCrc32:c,computeCrc32:l,encrypted:d,format:f,codecURI:u}=r,{workerURI:p,createWorker:m,maxWorkers:w}=n;f&&(u&&(r.codecURI=function(t,e){try{return new URL(t,e).toString()}catch{return t}}(u,n.baseURI)),await async function(t,e){!We.has(t)&&e&&He(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */e)))}(f,r.codecURI)),e.transferStreams=!f&&(a||a===F&&n.transferStreams);const h=!(i||c||l||d),y=f===F||Boolean(r.codecURI);return e.useWebWorkers=!h&&y&&(s||s===F&&n.useWebWorkers),e.workerURI=e.useWebWorkers&&p?p:F,e.createWorker=e.useWebWorkers&&m?m:F,r.useCompressionStream=o||o===F&&n.useCompressionStream,(await async function(){const r=_r.find(t=>!t.wt);if(r)return Xr(r),new Er(r,t,e,b);if(_r.length<w){const r={Ft:Vr};return Vr++,_r.push(r),new Er(r,t,e,b)}return new Promise(r=>{Wr.push({resolve:r,stream:t,Ot:e}),qr=n.workerStarvationTimeout,Hr()})}()).run();function b(t){if(Kr(),Wr.length){const[{resolve:e,stream:r,Ot:n}]=Wr.splice(0,1);e(new Er(t,r,n,b)),Hr()}else t.yt?(Xr(t),function(t,e){const{config:r}=e,{terminateWorkerTimeout:n}=r;Number.isFinite(n)&&n>=0&&(t.vt?t.vt=!1:t.Ut=setTimeout(async()=>{_r=_r.filter(e=>e!=t);try{await t.terminate()}catch{}},n))}(t,e)):_r=_r.filter(e=>e!=t)}}function Hr(){!Lr&&Wr.length&&Number.isFinite(qr)&&qr>=0&&(Lr=setTimeout(Yr,qr))}function Kr(){Lr&&(clearTimeout(Lr),Lr=null)}function Yr(){if(Lr=null,Wr.length){const[{resolve:t,stream:e,Ot:r}]=Wr.splice(0,1),n=Object.assign({},r,{useWebWorkers:!1,workerURI:F,createWorker:F});t(new Er({},e,n,Gr)),Hr()}}function Gr(){Kr(),Hr()}function Xr(t){const{Ut:e}=t;e&&(clearTimeout(e),t.Ut=null)}const Jr="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),Qr=256==Jr.length;function $r(t,e){return tn(t,e,!0)}function tn(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?function(t){if(Qr){let e="";for(let r=0;r<t.length;r++)e+=Jr[t[r]];return e}return(new TextDecoder).decode(t)}(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const en="HTTP error ",rn="HTTP Range not supported",nn="HTTP resource changed",an="Writer iterator completed too soon",sn="Writer not initialized",on="Content-Range",cn="Range",ln="GET",dn="bytes",fn=16777216,un="writable",pn=Symbol();class mn{constructor(){this.size=0}init(){this.initialized=!0}}class wn extends mn{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=yt(ht())}={}){const n=this;let a=0;return r=bt(r),new ReadableStream({async pull(s){const o=e===F?r:Math.min(r,e-a),i=await ta(n,t+a,o);i.length&&s.enqueue(i),a+r>=e||!i.length&&o?s.close():a+=r}})}}class hn extends mn{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw new Error(sn);return t.writeUint8Array(At(e))}});Object.defineProperty(t,un,{get:()=>e})}writeUint8Array(){}}class yn extends wn{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{jt:t,Tt:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{Tt:r,jt:n}=this,a=new Uint8Array(e),s=4*Math.floor(t/3),o=atob(n.substring(s+r,4*Math.ceil((t+e)/3)+r)),i=t-3*Math.floor(s/4);let c=0;for(let t=i;t<i+e&&t<o.length;t++)a[t-i]=o.charCodeAt(t),c++;return c<a.length?a.subarray(0,c):a}}class bn extends hn{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",It:""})}writeUint8Array(t){const e=this;let r,n=e.It;const a=e.It.length;for(e.It="",r=0;r<3*Math.floor((a+t.length)/3)-a;r++)n+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.It+=String.fromCharCode(t[r]);n.length>2?e.data+=btoa(n):e.It=n+e.It}getData(){return this.data+btoa(this.It)}}let gn,xn;class vn extends wn{constructor(t){super(),Object.assign(this,{Mt:t,size:t.size}),xn||(xn=(async()=>{try{const t=new Blob([new Uint8Array(3)]).slice(1,2).stream().getReader();let e=0,r=await t.read();for(;!r.done;)e+=r.value.length,r=await t.read();gn=1==e}catch{gn=!1}})())}createReadable(t){const{Mt:e,size:r}=this,{offset:n=0,size:a=r-n}=t||{};return!n&&a>=r?Te(e.stream()):gn?Te(e.slice(n,n+a).stream()):super.createReadable(t)}async readUint8Array(t,e){const r=this,n=t+e,a=!t&&n>=r.size?r.Mt:r.Mt.slice(t,n);let s=await a.arrayBuffer();return s.byteLength>e&&(s=s.slice(t,n)),new Uint8Array(s)}}class En extends mn{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,un,{get:()=>r.writable}),e.contentType=t,e.Ct=Ie(r.readable,t),e.Ct.catch(()=>{})}getData(){return this.Ct}}class Sn extends vn{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function zn(t){let e=0;for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);n<128?e+=1:n<2048?e+=2:n<55296||n>=57344?e+=3:n<56320&&56320==(64512&t.charCodeAt(r+1))?(e+=4,r++):e+=3}return e}class kn extends En{constructor(t){super(),Object.assign(this,{encoding:t,Nt:!t||"utf-8"==t.toLowerCase()})}async getData(){const{encoding:t,Nt:e}=this,r=await super.getData();return r.text&&e?r.text():function(t,e){return tn(t,e,!1)}(new Uint8Array(await r.arrayBuffer()),t)}}class An extends wn{constructor(t,e){super(),Dn(this,t,e)}async init(){await Fn(this,Wn,Nn),super.init()}createReadable(t){const e=this,{useRangeHeader:r,forceRangeRequests:n,size:a}=e;if((r||n)&&a!==F){const{offset:r=0,size:n=a-r}=t||{};if(n>0&&r<a)return function(t,e,r){let n,a=e,s=0,o=r;return new ReadableStream({start:()=>i(),async pull(t){n||await i();const{value:e,done:r}=await n.read();if(r)throw new Error(rn);const a=e.length>s?e.subarray(0,s):e;s-=a.length,o-=a.length,a.length&&t.enqueue(a),s||(await async function(){const t=n;n=F,await t.cancel()}(),o||t.close())},cancel:t=>n&&n.cancel(t)});async function i(){const e=Math.min(t.maximumRangeSize,o),r=await Wn(ln,t,Mn(t,a,e));if(206!=r.status)throw new Error(rn);const i=r.headers.get(on);if(i){const t=Number(i.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=a)throw new Error(rn)}In(t,r),Tn(t,r),a+=e,s=e,n=r.body.getReader()}}(e,r,Math.min(n,a-r))}return super.createReadable(t)}readUint8Array(t,e){return On(this,t,e,Wn,Nn)}}class Rn extends wn{constructor(t,e){super(),Dn(this,t,e)}async init(){await Fn(this,Ln,Bn),super.init()}readUint8Array(t,e){return On(this,t,e,Ln,Bn)}}function Dn(t,e,r){const{preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:s,combineSizeEocd:o,checkResourceChanges:i=!0,maximumRangeSize:c=fn,fetch:l}=r;delete(r=Object.assign({},r)).preventHeadRequest,delete r.useRangeHeader,delete r.forceRangeRequests,delete r.combineSizeEocd,delete r.checkResourceChanges,delete r.maximumRangeSize,delete r.useXHR,delete r.fetch,Object.assign(t,{url:e,options:r,preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:s,combineSizeEocd:o,checkResourceChanges:i,maximumRangeSize:c,fetch:l})}async function Fn(t,e,r){const{url:n,preventHeadRequest:a,useRangeHeader:s,forceRangeRequests:o,combineSizeEocd:i}=t;if(function(t){const{baseURI:e}=ht(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r}(n)&&(s||o)&&(typeof a==U||a)){const n=await e(ln,t,Mn(t,i?-22:void 0)),a=n.headers.get("Accept-Ranges");if(!(o||a&&a.toLowerCase()==dn))throw new Error(rn);{if(i){const e=new Uint8Array(await n.arrayBuffer());206==n.status&&e.length==u&&(t.Bt=e)}Tn(t,n);const a=Un(n);a===F?await _n(t,e,r):t.size=a}}else await _n(t,e,r)}async function On(t,e,r,n,a){const{useRangeHeader:s,forceRangeRequests:o,Bt:i,size:c,options:l}=t;if(s||o){if(i&&e==c-u&&r==u)return i;if(e>=c||0===r)return M;{e+r>c&&(r=c-e);const a=await n(ln,t,Mn(t,e,r));if(206!=a.status)throw new Error(rn);const s=a.headers.get(on);if(s){const t=Number(s.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=e)throw new Error(rn)}In(t,a),Tn(t,a);const o=new Uint8Array(await a.arrayBuffer());if(o.length!=r)throw new Error(rn);return o}}{const{data:n}=t;return n||await a(t,l),t.data.subarray(e,e+r)}}function Un(t){const e=t.headers.get(on);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function jn({headers:t}){return{Pt:t.get("Etag")||F,lastModified:t.get("Last-Modified")||F}}function Tn(t,e){const{checkResourceChanges:r,_t:n}=t;r&&!n&&206==e.status&&(t._t=jn(e))}function In(t,e){const{checkResourceChanges:r,_t:n,size:a}=t;if(r){const t=Un(e);if(t!==F&&a!==F&&t!=a)throw new Error(nn);if(n){const t=jn(e);if(Object.entries(n).some(([e,r])=>r!==F&&t[e]!==F&&r!=t[e]))throw new Error(nn)}}}function Mn(t,e=0,r=1){return Object.assign({},Cn(t),{[cn]:dn+"="+(e<0?e:e+"-"+(e+r-1))})}function Cn({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Nn(t){await Pn(t,Wn)}async function Bn(t){await Pn(t,Ln)}async function Pn(t,e){const r=await e(ln,t,Cn(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function _n(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const n=await e("HEAD",t,Cn(t)),a=n.headers.get("Content-Length");a&&!n.headers.get("Content-Encoding")?t.size=Number(a):await r(t,t.options)}}async function Wn(t,{fetch:e=fetch,options:r,url:n},a){const s=await e(n,Object.assign({},r,{method:t,headers:a}));if(s.status<400)return s;throw 416==s.status?new Error(rn):new Error(en+(s.statusText||s.status))}function Ln(t,{url:e},r){return new Promise((n,a)=>{const s=new XMLHttpRequest;if(s.addEventListener("load",()=>{if(s.status<400){const t=[];s.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(e=>{const r=e.trim().split(/\s*:\s*/);r[0]=r[0].trim().replace(/^[a-z]|-[a-z]/g,t=>t.toUpperCase()),t.push(r)}),n({status:s.status,arrayBuffer:()=>s.response,headers:new Map(t)})}else a(416==s.status?new Error(rn):new Error(en+(s.statusText||s.status)))},!1),s.addEventListener("error",t=>a(t.detail?t.detail.error:new Error("Network error")),!1),s.open(t,e),r)for(const t of Object.entries(r))s.setRequestHeader(t[0],t[1]);s.responseType="arraybuffer",s.send()})}class qn extends wn{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new Rn(t,e):new An(t,e)})}set size(t){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}createReadable(t){return this.reader.createReadable(t)}readUint8Array(t,e){return this.reader.readUint8Array(t,e)}}class Vn extends qn{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class Zn extends wn{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{Wt:t,size:t.length})}readUint8Array(t,e){return this.Wt.slice(t,t+e)}}class Hn extends hn{constructor(t){super(),this.Lt=t||262144}init(t=0){Object.assign(this,{offset:0,Wt:new Uint8Array(t>0?t:this.Lt)}),super.init()}writeUint8Array(t){const e=this,r=e.offset+t.length;if(r>e.Wt.length){let t=e.Wt.length?2*e.Wt.length:e.Lt;for(;t<r;)t*=2;const n=e.Wt;e.Wt=new Uint8Array(t),e.Wt.set(n)}e.Wt.set(t,e.offset),e.offset+=t.length}getData(){return this.offset===this.Wt.length?this.Wt:this.Wt.slice(0,this.offset)}}class Kn extends wn{constructor(t){super(),this.qt=t}async init(){const t=this;t.Vt=0;const e=t.qt=await Promise.all(t.qt.map($n));t.Zt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}Ht(t){const{Zt:e,size:r}=this,n=e[t];return n===F?r:n}async readUint8Array(t,e){const r=this,{qt:n}=this;let a,s=0,o=t;for(;n[s]&&o>=n[s].size;)o-=n[s].size,s++;const i=n[s];if(i){const n=i.size;if(o+e<=n)a=await ta(i,o,e);else{const s=n-o;a=kt(await ta(i,o,s),await r.readUint8Array(t+s,e-s))}}else a=M;return r.Vt=Math.max(s,r.Vt),a}}class Yn extends mn{constructor(t,e=4294967295){super();const r=this;let n,a,s;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:e,availableSize:e});const o=new WritableStream({async write(e){if(e===pn)return void(s&&await c());const{availableSize:o}=r;if(s)e.length>=o?(await i(e.subarray(0,o)),await c(),e.length>o&&await this.write(e.subarray(o))):await i(e);else{const{value:o,done:i}=await t.next();if(i&&!o)throw new Error(an);n=o,n.size=0,n.maxSize&&(r.maxSize=n.maxSize),r.availableSize=r.maxSize,await Qn(n),a=o.writable,s=a.getWriter(),await this.write(e)}},async close(){s&&(await s.ready,await l())},async abort(t){s&&await s.abort(t)}});async function i(t){const e=t.length;e&&(await s.ready,await s.write(t),n.size+=e,r.availableSize-=e)}async function c(){await l(),r.diskOffset+=n.size,r.diskNumber++,s=null,r.availableSize=r.maxSize}async function l(){await s.close()}Object.defineProperty(r,un,{get:()=>o})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(pn)}finally{t.releaseLock()}}}class Gn{constructor(t){return Array.isArray(t)&&(t=new Kn(t)),(t instanceof ReadableStream||typeof t.getReader==j)&&(t={readable:Te(t)}),t}}class Xn{constructor(t){return t.writable===F&&typeof t.next==j&&(t=new Yn(t)),(t instanceof WritableStream||typeof t.getWriter==j)&&(t={writable:Me(t)}),t.size===F&&(t.size=0),t}}function Jn(t){return Boolean(t&&t.getData)}async function Qn(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function $n(t){return t=new Gn(t),await Qn(t),t.size!==F&&t.readUint8Array||(t=new vn(await Ie(t.readable)),await Qn(t)),t}function ta(t,e,r){return t.readUint8Array(e,r)}function ea(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?wn.prototype.createReadable.call(t,e):t.readable}const ra="filename",na="rawFilename",aa="comment",sa="rawComment",oa="uncompressedSize",ia="compressedSize",ca="offset",la="diskNumberStart",da="lastModDate",fa="rawLastModDate",ua="lastAccessDate",pa="rawLastAccessDate",ma="creationDate",wa="rawCreationDate",ha="internalFileAttributes",ya="externalFileAttributes",ba="internalFileAttribute",ga="externalFileAttribute",xa="msdosAttributesRaw",va="msdosAttributes",Ea="msDosCompatible",Sa="zip64",za="encrypted",ka="version",Aa="versionMadeBy",Ra="zipCrypto",Da="directory",Fa="executable",Oa="compressionMethod",Ua="signature",ja="extraField",Ta="unixMode",Ia="setuid",Ma="setgid",Ca="sticky",Na=[ra,na,oa,ia,da,fa,aa,sa,ua,pa,ma,wa,ca,la,ha,ya,ba,ga,xa,va,Ea,Sa,za,ka,Aa,Ra,Da,Fa,"symlink",Oa,Ua,"crc32",ja,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",Ta,"unixExternalUpper",Ia,Ma,Ca,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class Ba{constructor(t){Na.forEach(e=>this[e]=t[e])}}const Pa="File format is not recognized",_a="End of central directory not found",Wa="End of Zip64 central directory locator not found",La="Central directory header not found",qa="Local file header not found",Va="Zip64 extra field not found",Za="File contains encrypted entry",Ha="Encryption method not supported",Ka="Compression method not supported",Ya="Split zip file",Ga="Overlapping entry found",Xa="Entry data out of bounds",Ja="Ambiguous archive",Qa="Encrypted central directory is not supported",$a="Unsafe filename",ts="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",es="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",rs="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",ns="64-bit value exceeds Number.MAX_SAFE_INTEGER",as=/^[a-zA-Z]:/,ss="utf-8",os="cp437",is=[[oa,t],[ia,t],[ca,t],[la,e]],cs={[e]:{Kt:_s,bytes:4},[t]:{Kt:Ws,bytes:8}},ls=BigInt(Number.MAX_SAFE_INTEGER);class ds{constructor(t,e={}){Object.assign(this,{reader:new Gn(t),options:e,Yt:new Map})}async*getEntriesGenerator(n={}){const s=this;let{reader:o}=s;if(await Qn(o),o.size!==F&&o.readUint8Array||(o=new vn(await Ie(o.readable)),await Qn(o)),o.size<u)throw new Error(Pa);const c=As(n,s.options),w=c==X,h=c!=Q,y=function(t,r){if(t!==F){const e=it(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw new Error(rs);return e}return r==X?0:r==Q?1/0:e}(Is(s,n,"maxAppendedDataSize"),c),b=function(t,e){if(t===F)return e;if(!ks(t))throw new Error(es);return t}(Is(s,n,"filenameValidation"),c),g=Is(s,n,"normalizeFilename"),{Gt:x,Xt:A}=await async function(t,e,r){const{size:n}=t,a=Math.min(n,65557),s={count:64};let o,i,c=0;for await(const[r,l,d,f,p]of Fs(t,a)){const a=Ps(r,f+20);if(p+u+a==n){const a=await Us(t,r,l,f,p,n,s);if(2==a){if(o||(o=Os(d,f,p)),c++,!e||c>1)break}else 1!=a||i||(i=Os(d,f,p))}}return o||(o=i),o||(o=await async function(t,e,r){const{size:n}=t,a=Math.min(n,e==1/0?n:65557+e);let s,o;for await(const[e,i,c,l,d]of Fs(t,a)){const a=Os(c,l,d);s||(s=a);const f=await Us(t,e,i,l,d,n,r);if(2==f)return a;1!=f||o||(o=a)}return o||s}(t,r,s)),{Gt:o,Xt:c}}(o,h,y);if(!x)throw await async function(t){return await zs(t)==a}(o)?new Error(Ya):new Error(_a);h&&A>1&&Ts("multiple end of central directory records");const R=Rt(x);let D=_s(R,12),O=_s(R,16);const U=x.offset,j=Ps(R,20),T=U+u+j;o.size-T>y&&Ts("appended data");let I=Ps(R,4);const C=o.Vt||0;let N,B,P,_,W=Ps(R,6),L=Ps(R,10),q=0,V=m;const Z=O==t||D==t||L==e||W==e;if(O!=t&&W!=e&&(O+=Ss(o,W)),Z){const r=x.offset>=p?await ta(o,x.offset-p,p):M,n=Rt(r);if(r.length==p&&_s(n,0)==d){O=Ss(o,_s(n,4))+Ws(n,8);let r=await ta(o,O,m),a=Rt(r);const s=x.offset-p-m;if((r.length<m||_s(a,0)!=l)&&O!=s&&s>=0){const t=O;O=s,O>t&&(q=O-t),r=await ta(o,O,m),a=Rt(r)}if(r.length<m||_s(a,0)!=l)throw new Error(Wa);if(B=!0,P=Ws(a,4)>44,P){const t=Math.min(Ws(a,4)-44,o.size-O-m);t>0&&(V+=t,_=function(t){const e={rawExtensibleData:t};if(t.length>=28){const r=Rt(t),n=Ps(r,26);Object.assign(e,{compressionMethod:Ps(r,0),compressedSize:Ws(r,2),uncompressedSize:Ws(r,10),encryptionAlgorithm:Ps(r,18),bitLength:Ps(r,20),flags:Ps(r,22),hashAlgorithm:Ps(r,24),hashData:t.subarray(28,28+n)})}return e}(await ta(o,O+m,t)))}I==e?I=_s(a,16):w&&I!=_s(a,16)&&Ts("mismatched zip64 end of central directory record"),W==e?W=_s(a,20):w&&W!=_s(a,20)&&Ts("mismatched zip64 end of central directory record"),L==e?L=Ws(a,32):w&&L!=Ws(a,32)&&Ts("mismatched zip64 end of central directory record"),D==t?D=Ws(a,40):w&&D!=Ws(a,40)&&Ts("mismatched zip64 end of central directory record"),O=Ss(o,W)+Ws(a,48)+q}}let H=D;const K=x.offset-(B?V+p:0);if(O>=o.size&&(q=o.size-O-D-u,O=o.size-D-u),C!=I)throw new Error(Ya);if(O<0)throw new Error(Pa);let J=0,$=await ta(o,O,D),tt=Rt($);if(D){if($.length<4)throw new Error(Pa);const t=K-D;if(O!=t&&W==I){let e=!(_s(tt,J)==i||Boolean(_&&_.compressedSize)||ps(tt));if(!e&&t>=0&&t+4<=o.size&&(e=_s(Rt(await ta(o,t,4)),0)==i),e){const e=O;O=t,O>e&&(q+=O-e),$=await ta(o,O,D),tt=Rt($)}}}const et=K-O;if(D!=et&&et>=0&&W==I&&(D=et,$=await ta(o,O,D),tt=Rt($)),O<0||O>=o.size)throw new Error(Pa);s.directoryOffset=O,s.directoryLength=H;const rt=Ms(s,n,"decryptCentralDirectory");let nt,at;if(rt&&L&&$.length>=4&&_s(tt,0)!=i&&(P||ps(tt))){const t=function(t,e,r){const n=t&&t.compressedSize?t.compressedSize:e;return n>0&&n<=r?n:r}(_,H,$.length);at=$.subarray(t),$=await rt($.subarray(0,t),_),tt=Rt($),H=$.length,nt=!0}N=O;const st=Is(s,n,"filenameEncoding"),ot=Is(s,n,"commentEncoding"),ct=w?new Set:F;let lt;const dt=!w&&!B;!L&&dt&&(L=ms(tt,$,J));for(let t=0;t<L;t++){const a=new us(o,s.options);if(J+f>$.length||_s(tt,J)!=i){if(0==t&&!nt&&(P||ps(tt)))throw new Error(Qa);throw new Error(La)}hs(a,tt,J+6);const c=Boolean(a.bitFlag.languageEncodingFlag),l=J+f,d=l+a.filenameLength,u=d+a.extraFieldLength,p=Ps(tt,J+4),m=!(p>>8),h=p>>8==3,y=$.subarray(l,d),x=Ps(tt,J+32),A=u+x,R=$.subarray(u,A),D=c,O=c,U=_s(tt,J+38),j=U&r,T={readOnly:Boolean(1&j),hidden:Boolean(2&j),system:Boolean(4&j),directory:Boolean(16&j),archive:Boolean(32&j)},I=_s(tt,J+42),M=Ms(s,n,"decodeText")||$r,C=D?ss:st||os,B=O?ss:ot||os;let _=M(y,C,Y);if(_===F&&(_=$r(y,C)),g){const t=g(_);t!==F&&(_=t)}if(Ds(_,b)){const t=new Error($a);throw t.filename=_,t}let W=M(R,B,G);W===F&&(W=$r(R,B)),Object.assign(a,{index:t,Jt:nt,versionMadeBy:p,msDosCompatible:m,zip64:!1,compressedSize:0,uncompressedSize:0,Qt:x,offset:I,diskNumberStart:Ps(tt,J+34),internalFileAttributes:Ps(tt,J+36),externalFileAttributes:U,msdosAttributesRaw:j,msdosAttributes:T,rawFilename:y,filenameUTF8:D,commentUTF8:O,rawExtraField:$.subarray(d,u),rawComment:R,filename:_,comment:W}),ys(a,a,tt,J+6),a.offset+=q,N=Math.min(Ss(o,a.diskNumberStart)+a.offset,N),w&&(ct.has(a.filename)&&(lt=!0),ct.add(a.filename));const V=a.externalFileAttributes>>16&e;a.unixMode===F&&16877&V&&(a.unixMode=V);const Z=Boolean(a.unixMode&S),H=Boolean(a.unixMode&z),K=Boolean(512&a.unixMode),X=40960==((a.unixMode===F?V:a.unixMode)&v),Q=!X&&(a.unixMode!==F?!!(73&a.unixMode):h&&!!(73&V)),et=a.unixMode!==F&&(a.unixMode&v)==E,rt=(V&v)==E;Object.assign(a,{setuid:Z,setgid:H,sticky:K,symlink:X,unixExternalUpper:V,internalFileAttribute:a.internalFileAttributes,externalFileAttribute:a.externalFileAttributes,executable:Q,directory:et||rt||m&&T.directory||a.filename.endsWith(k),zipCrypto:a.encrypted&&!a.extraFieldAES});const at=new Ba(a);at.getData=(t,e)=>a.getData(t,at,s.Yt,e),at.arrayBuffer=async t=>{const e=new TransformStream,r=Ie(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await a.getData(e,at,s.Yt,t),r},J=A,t==L-1&&dt&&(L+=ms(tt,$,J));const{onprogress:it}=n;if(it)try{await it(t+1,L,new Ba(a))}catch{}yield at}let ft=J,ut=ws($.subarray(J))||(nt?ws(at):F);if(!ut&&!nt){const t=O+J,e=Math.min(K-t,65541);e>=6&&(ut=ws(await ta(o,t,e)))}ut&&(s.digitalSignature=ut,ft=J+6+ut.length),w&&J!=H&&ft!=H&&Ts("trailing central directory data"),lt&&Ts("duplicate filename");const pt=Is(s,n,"extractPrependedData"),mt=Is(s,n,"extractAppendedData"),wt=(w||pt)&&L&&4==N&&await async function(t){const e=await zs(t);return e==a||808471376==e}(o)?4:0;return w&&(q||L&&N>wt)&&Ts("prepended data"),pt&&(s.prependedData=N>wt?await ta(o,wt,N-wt):M),s.comment=j?await ta(o,U+u,j):M,mt&&(s.appendedData=T<o.size?await ta(o,T,o.size-T):M),!0}async getEntries(t={}){const e=[];for await(const r of this.getEntriesGenerator(t))e.push(r);return e}async close(){const{reader:t}=this;t.readUint8Array||!t.readable||t.readable.locked||await t.readable.cancel()}}class fs{constructor(t={}){const{readable:e,writable:r}=new TransformStream,n=new ds(e,t).getEntriesGenerator();this.readable=new ReadableStream({async pull(t){const{done:e,value:r}=await n.next();if(e)return t.close();const a={...r,readable:function(){const{readable:t,writable:e}=new TransformStream;if(r.getData)return async function(){try{await r.getData(e)}catch(t){try{await e.abort(t)}catch{}}}(),t}()};delete a.getData,t.enqueue(a)}}),this.writable=r}}let us=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,a,o={}){const i=this,c=ht(),{reader:l,index:d,offset:f,diskNumberStart:u,extraFieldAES:p,extraFieldZip64:m,compressionMethod:w,bitFlag:h,rawBitFlag:y,crc32:b,rawLastModDate:g,uncompressedSize:x,compressedSize:v}=i,{dataDescriptor:E}=h,S=e.localDirectory={},z=Ss(l,u)+f,k=await ta(l,z,A),R=Rt(k);let D=Is(i,o,C),O=Is(i,o,N);const U=Is(i,o,B);if(at(D,O),D=D&&D.length&&D,O=O&&O.length&&O,p&&99!=p.originalCompressionMethod)throw new Error(Ka);if(k.length<A||_s(R,0)!=n)throw new Error(qa);hs(S,R,4);const{extraFieldLength:j,filenameLength:T}=S,I=S.dataOffset=z+A+T+j,V=Is(i,o,"checkLocalDirectory"),Z=As(o,i.options),H=function(t,e){return t===F?e!=Q:Boolean(t)}(V,Z),K=function(t,e){return t===F?e==X:Boolean(t)}(V,Z);let Y=M;if(K&&(T||j)){const t=await ta(l,z+A,T+j);Y=t.subarray(0,T),S.rawExtraField=t.subarray(T)}else S.rawExtraField=j?await ta(l,z+A+T,j):M;K&&(S.rawFilename=Y),ys(i,S,R,4,!0),H&&function(t,e,r,n){const{rawFilename:a}=t,s=t.Jt&&!(8192&~e.rawBitFlag);!n||s||r.length==a.length&&!r.some((t,e)=>t!=a[e])||Ts("mismatched local file header (filename)"),(2057&e.rawBitFlag)!=(2057&t.rawBitFlag)&&Ts("mismatched local file header (general purpose bit flag)"),e.compressionMethod!=t.compressionMethod&&Ts("mismatched local file header (compression method)"),e.bitFlag.dataDescriptor||s||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||Ts("mismatched local file header (crc32 or sizes)")}(i,S,Y,K);const{lastAccessDate:G,creationDate:J,uid:$,gid:tt}=S;G&&(e.lastAccessDate=G),J&&(e.creationDate=J),$!==F&&e.uid===F&&(e.uid=$),tt!==F&&e.gid===F&&(e.gid=tt);const et=i.encrypted&&S.encrypted&&!U,rt=et&&!p;if(U||(e.zipCrypto=rt),et&&!(64&~S.rawBitFlag))throw new Error(Ha);const st=U?F:Ve(w);if(0!=w&&8!=w&&9!=w&&!st&&!U)throw new Error(Ka);if(et){if(!rt&&(p.strength<1||p.strength>3))throw new Error(Ha);if(!D&&!O)throw new Error(Za)}if(I+v>l.size)throw new Error(Xa);const ot=v,it=Te(l.createReadable({offset:I,size:ot})),ct=nt(Is(i,o,P)),lt=Is(i,o,"checkPasswordOnly");let dt=Is(i,o,"checkOverlappingEntry");const ft=Is(i,o,"checkOverlappingEntryOnly");ft&&(dt=!0);const{onstart:ut,onprogress:pt,onend:mt}=o,wt=0!=w&&!U,yt=U?v:x,bt=9==w;let gt=Is(i,o,W);bt&&(gt=!1);const xt=Is(i,o,"checkCrc32"),vt=(xt===F?Is(i,o,"checkSignature"):xt)&&!U&&(!et||rt||p&&1==p.vendorVersion),Et={options:{codecType:ur,password:D,rawPassword:O,zipCrypto:rt,encryptionStrength:p&&p.strength,checkCrc32:vt,checkAuthenticationCode:Is(i,o,"checkAuthenticationCode"),passwordVerification:rt&&(E?g>>>8&r:b>>>24&r),outputSize:yt,crc32:b,compressed:wt,encrypted:et,useWebWorkers:Is(i,o,_),useCompressionStream:gt,transferStreams:Is(i,o,L),deflate64:bt,format:st?st.format:F,codecURI:st?st.codecURI:F,compressionMethod:w,rawBitFlag:y,checkPasswordOnly:lt},config:c,ut:{signal:ct,size:ot,onstart:ut,onprogress:pt,onend:mt}};let St,zt;dt&&await async function({reader:t,$t:e,index:r,offset:n,crc32:a,compressedSize:o,uncompressedSize:i,dataOffset:c,dataDescriptor:l,extraFieldZip64:d,Yt:f}){let u=0;if(l&&(u=d?20:12),u){const r=await ta(t,c+o,u+4),n=Rt(r);let l=r.length==u+4&&_s(n,0)==s;if(l){const t=Es(n,4,d);(e.encrypted&&!e.zipCrypto||t.crc32==a)&&t.compressedSize==o&&t.uncompressedSize==i?u+=4:l=!1}if(r.length>=u){const t=Es(n,l?4:0,d);t.signature=l,e.localDirectory.dataDescriptor=t}}const p={start:n,end:c+o+u,$t:e};for(const[t,e]of f)if(t!=r&&p.start<e.end&&e.start<p.end){const t=new Error(Ga);throw t.overlappingEntry=e.$t,t}f.set(r,p)}({reader:l,$t:e,index:d,offset:z,crc32:b,compressedSize:v,uncompressedSize:x,dataOffset:I,dataDescriptor:E||S.bitFlag.dataDescriptor,extraFieldZip64:m||S.extraFieldZip64,Yt:a});try{if(!ft){lt&&(t=new WritableStream),t=new Xn(t),await Qn(t,function(t,e,r){return Math.min(t,r?1032*e:e)}(yt,v,wt)),({writable:St}=t);const{outputSize:e}=await Zr({readable:it,writable:St},Et);if(t.size+=e,e!=yt)throw new Error(Ke)}}catch(e){if(e.outputSize!==F&&(t.size+=e.outputSize),!lt||e.message!=Yt)throw zt=e,e}finally{if((Jn(t)||!Is(i,o,q))&&St&&!St.locked){const t=St.getWriter();if(zt)try{await t.abort(zt)}catch{}else await t.close()}}return lt||ft?F:t.getData?t.getData():St}};function ps(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;r<e;r++)if(134630224==_s(t,r))return!0;return!1}function ms(t,e,r){let n=0;for(;r+f<=e.length&&_s(t,r)==i;)r+=f+Ps(t,r+28)+Ps(t,r+30)+Ps(t,r+32),n++;return n%65536?0:n}function ws(t){if(t.length>=6){const e=Rt(t);if(_s(e,0)==o){const r=Ps(e,4);if(6+r<=t.length)return t.subarray(6,6+r)}}}function hs(t,e,r){const n=t.rawBitFlag=Ps(e,r+2),a=!(1&~n),s=_s(e,r+6);Object.assign(t,{encrypted:a,version:Ps(e,r),bitFlag:{level:(6&n)>>1,dataDescriptor:!(8&~n),languageEncodingFlag:(n&x)==x},rawLastModDate:s,lastModDate:Cs(s),filenameLength:Ps(e,r+22),extraFieldLength:Ps(e,r+24)})}function ys(t,e,r,n,a){const{rawExtraField:s}=e,o=e.extraField=new Map,i=Rt(s);let c=0;try{for(;c<s.length;){const t=Ps(i,c),e=Ps(i,c+2);o.set(t,{type:t,data:s.slice(c+4,c+4+e)}),c+=4+e}}catch{}const l=Ps(r,n+4);Object.assign(e,{signature:_s(r,n+10),crc32:_s(r,n+10),compressedSize:_s(r,n+14),uncompressedSize:_s(r,n+18)});const d=o.get(1);d&&(function(t,e){e.zip64=!0;const r=Rt(t.data),n=is.filter(([t,r])=>e[t]==r),a=n.reduce((t,[,e])=>t+cs[e].bytes,0);if(t.data.length<a)throw new Error(Va);for(let a=0,s=0;a<n.length;a++){const[o,i]=n[a],c=cs[i];e[o]=t[o]=c.Kt(r,s),s+=c.bytes}}(d,e),e.extraFieldZip64=d);const f=o.get(28789);f&&(bs(f,ra,na,e,t),e.extraFieldUnicodePath=f);const u=o.get(25461);u&&(bs(u,aa,sa,e,t),e.extraFieldUnicodeComment=u);const p=o.get(w);p&&p.data.length>=7?(function(t,e,r){const n=Rt(t.data),a=Bs(n,4);Object.assign(t,{vendorVersion:Bs(n,0),vendorId:Bs(n,2),strength:a,originalCompressionMethod:r,compressionMethod:Ps(n,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=F)}(p,e,l),e.extraFieldAES=p):e.compressionMethod=l;const m=o.get(13);m&&(gs(m,e),e.extraFieldPkwareUnix=m);const x=o.get(22613);x&&(gs(x,e),e.extraFieldUnixType1=x);const v=o.get(10);v&&(function(t,e){const r=Rt(t.data);let n,a=4;try{for(;a<t.data.length&&!n;){const e=Ps(r,a),s=Ps(r,a+2);1==e&&(n=t.data.slice(a+4,a+4+s)),a+=4+s}}catch{}if(n&&24==n.length){const r=Rt(n),a=r.getBigUint64(0,!0),s=r.getBigUint64(8,!0),o=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:a,rawLastAccessDate:s,rawCreationDate:o});const i={lastModDate:Ns(a),lastAccessDate:Ns(s),creationDate:Ns(o)};Object.assign(t,i),Object.assign(e,i,{rawLastAccessDate:s,rawCreationDate:o})}}(v,e),e.extraFieldNTFS=v);const E=o.get(g);let S;if(E&&(S=xs(E,e,!1),e.extraFieldUnix=E),!S){const t=o.get(b);t&&(xs(t,e,!0),e.extraFieldInfoZip=t)}const z=o.get(h);z&&(function(t,e,r){if(!t.data.length)return;const n=Rt(t.data),a=Bs(n,0),s=[],o=[];r?(1&~a||(s.push(da),o.push(fa)),2&~a||(s.push(ua),o.push(pa)),4&~a||(s.push(ma),o.push(wa))):t.data.length>=5&&(s.push(da),o.push(fa));let i=1;s.forEach((r,a)=>{if(t.data.length>=i+4){const s=_s(n,i);e[r]=t[r]=new Date(1e3*(0|s));const c=o[a];t[c]=s}i+=4})}(z,e,a),e.extraFieldExtendedTimestamp=z);const k=o.get(y);k&&(e.extraFieldUSDZ=k)}function bs(t,e,r,n,a){if(t.data.length<5)return void(t.valid=!1);const s=Rt(t.data),o=new Nt;o.append(a[r]);const i=Rt(new Uint8Array(4));i.setUint32(0,o.get(),!0);const c=_s(s,1),l=Bs(s,0);Object.assign(t,{version:l,[e]:$r(t.data.subarray(5)),valid:1==l&&!a.bitFlag.languageEncodingFlag&&c==_s(i,0)}),t.valid&&(n[e]=t[e],n[e+"UTF8"]=!0)}function gs(t,e){if(t.data.length<8)return;const r=Rt(t.data),n={lastAccessDate:new Date(1e3*(0|_s(r,0))),lastModDate:new Date(1e3*(0|_s(r,4)))};t.data.length>=12&&(n.uid=Ps(r,8),n.gid=Ps(r,10)),Object.assign(t,n),Object.assign(e,n)}function xs(t,e,r){try{const n=Rt(t.data);let a,s;if(r){let e=0;const r=Bs(n,e++),o=Bs(n,e++);a=vs(t.data.subarray(e,e+o)),e+=o;const i=Bs(n,e++);s=vs(t.data.subarray(e,e+i)),Object.assign(t,{version:r,uid:a,gid:s})}else t.data.length>=4&&(a=Ps(n,0),s=Ps(n,2),Object.assign(t,{uid:a,gid:s}));return a!==F&&(e.uid=a),s!==F&&(e.gid=s),a!==F||s!==F}catch{}}function vs(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function Es(t,e,r){const n=_s(t,e);let a,s;return r?(a=Ws(t,e+4),s=Ws(t,e+12)):(a=_s(t,e+4),s=_s(t,e+8)),{crc32:n,compressedSize:a,uncompressedSize:s}}function Ss(t,e){return t.Ht?t.Ht(e):0}async function zs(t){return _s(Rt(await ta(t,0,4)))}function ks(t){return t===X||t===J||t===Q}function As(t,e){return Rs(t,Rs(e,J))}function Rs(t,e){const r=t.strictness;if(r!==F){if(!ks(r))throw new Error(ts);return r}const n=t.checkAmbiguity;return n===F?e:n?X:e==Q?Q:J}function Ds(t,e){if(e==Q)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(r.includes("..")||t.startsWith("/")||t.startsWith("\\\\")||as.test(t))||e==X&&(r.includes(".")||r.includes(""))}async function*Fs(t,e){const r=t.size-e,n=await ta(t,r,e),a=Rt(n);for(let t=n.length-u;t>=0;t--)_s(a,t)==c&&(yield[a,r,n,t,r+t])}function Os(t,e,r){return{offset:r,buffer:t.slice(e,e+u).buffer}}async function Us(r,n,a,s,o,c,l){const f=Ps(n,s+10),u=_s(n,s+12),m=_s(n,s+16);if(f==e||u==t||m==t)return await js(r,n,a,o-p,c,l)==d?2:0;if(!f&&!u)return 1;const w=Ps(n,s+6);for(const t of[o-u,Ss(r,w)+m])if(await js(r,n,a,t,c,l)==i)return 2;return 0}async function js(t,e,r,n,a,s){return n<0||n+4>a?F:n>=r?_s(e,n-r):s.count>0?(s.count--,_s(Rt(await ta(t,n,4)),0)):F}function Ts(t){const e=new Error(Ja);throw e.reason=t,e}function Is(t,e,r){return e[r]===F?t.options[r]:e[r]}function Ms(t,e,r){return rt(Is(t,e,r))}function Cs(t){const r=(4294901760&t)>>16,n=t&e,a=new Date(1980+((65024&r)>>9),((480&r)>>5)-1,31&r,(63488&n)>>11,(2016&n)>>5,2*(31&n),0);return a<D?D:a}function Ns(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function Bs(t,e){return t.getUint8(e)}function Ps(t,e){return t.getUint16(e,!0)}function _s(t,e){return t.getUint32(e,!0)}function Ws(t,e){const r=t.getBigUint64(e,!0);if(r>ls)throw new Error(ns);return Number(r)}var Ls=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:Ja,ERR_BAD_FORMAT:Pa,ERR_CENTRAL_DIRECTORY_NOT_FOUND:La,ERR_ENCRYPTED:Za,ERR_ENCRYPTED_CENTRAL_DIRECTORY:Qa,ERR_ENTRY_DATA_OUT_OF_BOUNDS:Xa,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:Wa,ERR_EOCDR_NOT_FOUND:_a,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:Va,ERR_INVALID_AUTHENTICATION_CODE:Kt,ERR_INVALID_COMPRESSED_DATA:Ye,ERR_INVALID_CRC32:Ge,ERR_INVALID_FILENAME_VALIDATION:es,ERR_INVALID_MAX_APPENDED_DATA_SIZE:rs,ERR_INVALID_PASSWORD:Zt,ERR_INVALID_SIGNATURE:Ht,ERR_INVALID_STRICTNESS:ts,ERR_INVALID_UNCOMPRESSED_SIZE:Ke,ERR_LOCAL_FILE_HEADER_NOT_FOUND:qa,ERR_OVERLAPPING_ENTRY:Ga,ERR_SPLIT_ZIP_FILE:Ya,ERR_UNSAFE_FILENAME:$a,ERR_UNSUPPORTED_COMPRESSION:Ka,ERR_UNSUPPORTED_ENCRYPTION:Ha,ERR_UNSUPPORTED_UINT64:ns,ERR_WORKER_STARTUP_TIMEOUT:wr,ZipReader:ds,ZipReaderStream:fs});const qs="File already exists",Vs="Zip file comment exceeds 64KB",Zs="Invalid zip file comment (must be a Uint8Array)",Hs="File entry comment exceeds 64KB",Ks="Invalid file entry comment (must be a string)",Ys="Invalid date (must be a valid Date instance)",Gs="File entry name exceeds 64KB",Xs="Version exceeds 65535",Js="The strength must equal 1, 2, or 3",Qs="Encryption is not supported in USDZ files",$s="Encryption is not supported when the 'passThrough' option is set",to="Invalid extra field (must be a Map)",eo="Invalid extra field type (must be integer 0..65535)",ro="Invalid extra field data (must be a Uint8Array)",no="Extra field data exceeds 64KB",ao=-2147483648,so=2147483647,oo=BigInt(0),io=BigInt("0x7fffffffffffffff"),co="Zip64 is not supported (set the 'zip64' option to 'true')",lo="Undefined uncompressed size",fo="Undefined compression method",uo="Undetermined size",po="Undefined reader",mo="Zip file not empty",wo="Invalid uid (must be integer 0..2^32-1)",ho="Invalid gid (must be integer 0..2^32-1)",yo="Invalid UNIX mode (must be integer 0..65535)",bo="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",go="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",xo="Invalid msdosAttributesRaw (must be integer 0..255)",vo="Invalid msdosAttributes (must be an object with boolean flags)",Eo="Invalid level (must be integer 0..9)",So="Signature data exceeds 64KB",zo=new Uint8Array([7,0,2,0,65,69,3,0,0]),ko="infozip",Ao="unix";let Ro=0;const Do=[];class Fo{constructor(t,e={}){t=new Xn(t);const{availableSize:r=O,maxSize:n=O}=t,a=r>0&&r!==O&&n>0&&n!==O;Object.assign(this,{writer:t,te:a,options:e,ee:new Map,re:new Set,offset:e[Z]===F?t.size||t.writable.size||0:e[Z],ne:e[Z]===F?0:e[Z]-(t.size||t.writable.size||0),ae:new Set,se:[],oe:0,ie:F})}prependZip(t){return jo(this,async function(t,e){if(t.re.size)throw new Error(mo);await t.ce(e)}(this,t))}appendZip(t){return jo(this,this.ce(t))}async ce(t){const e=this,{ae:r,re:n,ee:s}=e;for(;r.size;)await Promise.allSettled(Array.from(r));let o;const i=new Promise(t=>o=t);r.add(i);const c=[];let l;try{t=new Gn(t),await Qn(t),t.size!==F&&t.readUint8Array||(t=new vn(await Ie(t.readable)),await Qn(t));const{ZipReader:r}=await Promise.resolve().then(function(){return Ls}),o=new r(t),i=await o.getEntries();await o.close(),await Qn(e.writer);const{directoryOffset:d}=o;i.forEach(({filename:t})=>{if(n.has(t))throw new Error(qs);n.add(t),c.push(t)}),e.le=!0;const{de:f}=e;e.de=new Promise(t=>l=()=>{e.le=!1,t()}),await f,e.te&&(delete e.te,await async function(t){return Rt(await ta(t,0,4)).getUint32(0,!0)==a}(t)||(await ei(e.writer,$o()),e.offset+=4));const u=await async function(t,e,r,n){const{writer:a}=t,s=new Map;if(a.closeDisk){const o=Array.from(r).sort((t,r)=>Qo(e,t)-Qo(e,r));let i=0;for(const r of o){const n=Qo(e,r);await Xo(t,e,i,n-i),Ko(a,await Jo(e,n))&&await a.closeDisk(),s.set(r,{offset:Yo(t,a),diskNumberStart:Zo(a)}),i=n}await Xo(t,e,i,n-i)}else{const a=t.offset;await Xo(t,e,0,n),r.forEach(t=>s.set(t,{offset:a+Qo(e,t),diskNumberStart:0}))}return s}(e,t,i,d);i.forEach(t=>{const{version:e,rawLastModDate:r,rawFilename:n,bitFlag:a,encrypted:o,uncompressedSize:i,compressedSize:c,extraFieldZip64:l}=t;let{compressionMethod:d,rawExtraField:f}=t;const{level:p,languageEncodingFlag:m,dataDescriptor:w}=a;f=Go(f||M),t.extraFieldAES&&(d=99);const h=xi(f),y=Boolean(l)&&l.uncompressedSize!==F,b=Boolean(l)&&l.compressedSize!==F,g=-7&Ei(p,m,w,o,d)|p<<1,{fe:x,ue:v}=vi({version:e,bitFlag:g,compressionMethod:d,uncompressedSize:i,compressedSize:c,rawLastModDate:r,rawFilename:n,pe:b,me:y,extraFieldLength:h}),{crc32:E}=t;E!==F&&yi(v,10,E);const{offset:S,diskNumberStart:z}=u.get(t);Object.assign(t,{me:y,pe:b,offset:S,diskNumberStart:z,we:!1,he:M,ye:M,be:M,ge:M,xe:M,rawExtraField:f,extendedTimestamp:!1,fe:x,ue:v}),s.set(t.filename,t)})}catch(t){throw c.forEach(t=>n.delete(t)),t}finally{o(),r.delete(i),l&&l()}}add(e="",n,a={}){const s=this,{ae:o}=s,i=async function(e,n,a,s){if(s=Object.assign({},s),n=n.trim(),ii(e,s,Da)&&!n.endsWith(k)&&(n+=k),e.re.has(n))throw new Error(qs);e.re.add(n),Ro<ht().maxWorkers?Ro++:await new Promise(t=>Do.push(t));try{return await async function(e,n,a,s){const o=Mo(e,n,s);({name:n}=o);const i=Co(e,n,s),{comment:c}=i,l=s[ja];let d;e.ee.set(n,F);try{const{ve:c}=i;0==c.level||c.compressionMethod!==F||c.passThrough||await xr(ht())||(c.level=0);const l=await async function(t,e,{ve:r},n){if(r.passThrough&&!e&&!ii(t,n,Da))throw new Error(po);let a;return e&&(e=new Gn(e),await Qn(e),({size:a}=e)),Object.assign({reader:e},Bo(t,Boolean(e),a,r,n))}(e,a,i,s);({reader:a}=l);const f=Ho(e.writer),u=Zo(e.writer),p=Po(s=Object.assign({},s,o.ve,i.ve,l.ve,{signature:s[Ua],crc32:s.crc32===F?s[Ua]:s.crc32,offset:e.offset-f,diskNumberStart:u,[H]:e.options[H]})),m=Lo(s),w=xi(p.Ee,m.Se);d=await async function(e,n,a,s,o){const{ee:i,writer:c}=e,{keepOrder:l,dataDescriptor:d,ze:f,signal:u}=o,{ke:p}=s,m=e.options[H],w=e.ie;let h,y,b,g,x,v,E,S={},z=0;i.set(n,S),e.ie=S;try{let y;l&&(y=w&&w.Ae,S.Ae=new Promise(t=>b=t)),o.bufferedWrite||!l||e.le||e.oe||!d&&!f?(h=!0,e.oe++,E=o.createTempStream?await o.createTempStream():new TransformStream(F,F,{highWaterMark:O}),E.size=0,await Qn(c)):(E=c,await k()),await Qn(E);const D=Ho(c);e.te&&!h&&await ti(e,c),m&&!h&&_o(s,e.offset-D);const{Ee:U}=p;h||(await y,await R());const j=Zo(c),T=Yo(e,c);if(S.diskNumberStart=j,h||(x=!0,v=c.size,await ei(E,U)),S=await async function(e,n,{diskNumberStart:a,Ae:s},o,i,c){const{ke:l,Re:d,De:f}=o,{fe:u,ue:p,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,he:x,Fe:v,be:E,Oe:S,ge:z,xe:k,ye:A}=l,{Se:R}=d,{rawFilename:D,lastAccessDate:O,creationDate:U,password:j,rawPassword:T,level:I,zip64:M,me:C,pe:N,zipCrypto:B,dataDescriptor:P,directory:_,executable:W,versionMadeBy:L,rawComment:q,rawExtraField:V,useWebWorkers:Z,transferStreams:H,onstart:K,onprogress:Y,onend:G,signal:X,encryptionStrength:J,extendedTimestamp:Q,msDosCompatible:$,internalFileAttributes:tt,externalFileAttributes:et,uid:rt,gid:nt,unixMode:at,symlink:st,setuid:ot,setgid:it,sticky:ct,unixExternalUpper:lt,msdosAttributesRaw:dt,msdosAttributes:ft,useCompressionStream:ut,passThrough:pt,format:mt,codecURI:wt}=c,ht={Ae:s,versionMadeBy:L,zip64:M,directory:Boolean(_),executable:Boolean(W),filenameUTF8:!0,rawFilename:D,commentUTF8:!0,rawComment:q,he:x,Fe:v,be:E,ge:z,xe:k,ye:A,rawExtraField:V,extendedTimestamp:Q,msDosCompatible:$,internalFileAttributes:tt,externalFileAttributes:et,diskNumberStart:a,uid:rt,gid:nt,unixMode:at,symlink:Boolean(st),setuid:ot,setgid:it,sticky:ct,unixExternalUpper:lt,msdosAttributesRaw:dt,msdosAttributes:ft};let{crc32:yt,uncompressedSize:bt}=c,gt=0;pt||(bt=0);const{writable:xt}=n;if(e){const a=Te(ea(e)),s=e.size,o={options:{codecType:fr,level:I,rawPassword:T,password:j,encryptionStrength:J,zipCrypto:h&&B,passwordVerification:h&&B&&w>>8&r,computeCrc32:!pt,compressed:y&&!pt,encrypted:h&&!pt,useWebWorkers:Z,useCompressionStream:ut,transferStreams:H,format:mt,codecURI:wt,compressionMethod:g},config:i,ut:{signal:X,size:s,onstart:K,onprogress:Y,onend:G}};try{const e=await Zr({readable:a,writable:xt},o);if(gt=e.outputSize,n.size+=gt,pt||(bt=e.inputSize,h&&!B||(yt=e.crc32)),!N&&gt>=t||!C&&bt>=t)throw new Error(co)}catch(t){throw t.outputSize!==F&&(n.size+=t.outputSize),t}}return function({crc32:t,compressedSize:e,uncompressedSize:r,ke:n,Re:a},{zip64:s,zipCrypto:o,passThrough:i,dataDescriptor:c}){const{ue:l,encrypted:d}=n,{Ue:f,je:u}=a;d&&!o&&!i||t===F||(yi(l,10,t),c&&yi(f,u,t)),s?c&&(bi(f,u+4,BigInt(e)),bi(f,u+12,BigInt(r))):(yi(l,14,e),yi(l,18,r),c&&(yi(f,u+4,e),yi(f,u+8,r)))}({crc32:yt,compressedSize:gt,uncompressedSize:bt,ke:l,Re:d},c),P&&await ei(n,R),Object.assign(ht,{uncompressedSize:bt,compressedSize:gt,lastModDate:m,rawLastModDate:w,creationDate:U,lastAccessDate:O,encrypted:Boolean(h),zipCrypto:Boolean(B),size:f+gt,compressionMethod:g,version:b,fe:u,ue:p,signature:yt,crc32:!h||B||pt?yt:F,Oe:S,me:C,pe:N}),ht}(a,E,S,s,ht(),o),h||(x=!1),i.set(n,S),S.filename=n,h){if(await Promise.all([E.writable.getWriter().close(),y]),await k(),e.te&&await ti(e,c),g=!0,v=c.size,await R(),S.diskNumberStart=Zo(c),S.offset=Yo(e,c),m){const t=s.De;_o(s,e.offset-Ho(c)),S.size+=s.De-t}!function({rawFilename:t,encrypted:e,zip64:r,Fe:n,crc32:a,compressedSize:s,uncompressedSize:o,me:i,pe:c},l,{dataDescriptor:d,passThrough:f}){if(d||((!e||f&&a!==F)&&yi(l,14,a),c||yi(l,18,s),i||yi(l,22,o)),r&&n){const e=A+xi(t)+4;bi(l,e,BigInt(o)),bi(l,e+8,BigInt(s))}}(S,p.Te,o),await ei(c,p.Ee),await ri(E.readable,c,u,t=>z+=t),c.size+=E.size,g=!1}else S.diskNumberStart=j,S.offset=T;return e.offset+=S.size,S}catch(t){if(g||x){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-v,h&&(e.offset+=z)}throw i.delete(n),t}finally{if(h&&e.oe--,b&&b(),y&&y(),h&&E&&E.dispose)try{await E.dispose()}catch{}}async function k(){e.le=!0;const{de:t}=e;e.de=new Promise(t=>y=()=>{e.le=!1,t()}),await t}async function R(){Ko(c,xi(p.Ee))&&await c.closeDisk()}}(e,n,a,{ke:p,Re:m,De:w},s)}catch(t){throw e.ee.delete(n),t}return Object.assign(d,{name:n,comment:c,extraField:l,[ba]:d.internalFileAttributes,[ga]:d.externalFileAttributes}),new Ba(d)}(e,n,a,s)}catch(t){throw e.re.delete(n),t}finally{const t=Do.shift();t?t():Ro--}}(s,e,n,a);o.add(i);const c=()=>o.delete(i);return Promise.prototype.then.call(i,c,c),jo(s,i)}remove(t){const{re:e,ee:r}=this;if(typeof t==I&&(t=r.get(t)),t&&t.filename!==F){const{filename:n}=t;if(e.has(n)&&r.has(n))return e.delete(n),r.delete(n),!0}return!1}async close(r=M,n={}){const a=this,{ae:s,writer:p}=this,{writable:m}=p;if(!(r instanceof Uint8Array))throw new Error(Zs);if(xi(r)>e)throw new Error(Vs);for(;s.size;)await Promise.allSettled(Array.from(s));await Promise.allSettled(a.se.map(t=>t.Ie));const w=a.se.filter(t=>t.error&&!t.Me);if(w.length){const t=w.map(t=>t.error);w.forEach(t=>t.Me=!0);const[e]=t;try{e.entryErrors=t}catch{}throw e}return await async function(r,n,a){const s=qo(r.ee),{Ce:p,Ne:m,Be:w}=await async function(r,n,a){const{ee:s,writer:o}=r,c=new Uint8Array(n);await Qn(o);let l=0,d=0,u=Zo(o),p=Ho(o),m=0;for(const[r,n]of Array.from(s.values()).entries()){const{offset:w,rawFilename:h,he:y,ye:b,be:g,ge:x,xe:v,rawExtraField:E,rawComment:S,versionMadeBy:z,fe:k,ue:A,me:R,pe:D,we:F,Pe:O,internalFileAttributes:U,externalFileAttributes:j,diskNumberStart:T,uncompressedSize:I,compressedSize:M}=n,C=xi(y,b,g,x,v,E),N=f+xi(h,S)+C;Ko(o,l+N-d)&&(await ei(o,c.slice(d,l)),d=l,m=0,await o.closeDisk()),0==r&&(u=Zo(o),p=Ho(o)),R||yi(A,18,I),D||yi(A,14,M),(O||F)&&n.version<45&&hi(A,0,45);const B=Vo(N);if(B._e(i),B.We(z),B.Le(k.subarray(0,24)),B.We(C),B.We(xi(S)),B.We(F?e:T),B.We(U),B._e(j),B._e(O?t:w),B.Le(h),B.Le(y),B.Le(b),B.Le(g),B.Le(x),B.Le(v),B.Le(E),B.Le(S),gi(c,B.Wt,l),l+=N,m++,a.onprogress)try{await a.onprogress(r+1,s.size,new Ba(n))}catch{}}return await ei(o,d?c.slice(d):c),{Ce:{diskNumber:u,diskOffset:p},Ne:{diskNumber:Zo(o),qe:m},Be:c}}(r,s,a),h=await async function(t,r,n){const a=li(t,n,K);if(a){const n=await a(r),s=xi(n);if(s>e)throw new Error(So);const i=Vo(6+s);i._e(o),i.We(s),i.Le(n);const{writer:c}=t;return Ko(c,xi(i.Wt))&&await c.closeDisk(),await ei(c,i.Wt),6+s}return 0}(r,w,a);await async function(r,n,a,s){const{writer:o}=r,{Ce:i,Ne:f,Ve:p}=s;let{Ze:m}=s,w=r.ee.size,h=i.diskNumber,y=Yo(r,i);const b=xi(n);if(b>e)throw new Error(Vs);let g=ii(r,a,Sa),x=Zo(o);if(Ko(o,(g?98:u)+b)&&x++,y>=t||m>=t||w>=e||x>=e){if(!1===g)throw new Error(co);g=!0}const v=Vo(g?98:u);Ko(o,xi(v.Wt)+b)&&await o.closeDisk(),x=Zo(o);let E=x==f.diskNumber?f.qe:0;g&&(v._e(l),v.He(44),v.We(45),v.We(45),v._e(x),v._e(h),v.He(E),v.He(w),v.He(m),v.He(y),v._e(d),v._e(x),v.He(BigInt(Yo(r,o))+BigInt(m)+BigInt(p)),v._e(x+1),ii(r,a,"supportZip64SplitFile",!0)&&(x=e,h=e),E=e,w=e,y=t,m=t),v._e(c),v.We(x),v.We(h),v.We(E),v.We(w),v._e(m),v._e(y),v.We(b),await ei(o,v.Wt),b&&await ei(o,n)}(r,n,a,{Ce:p,Ne:m,Ze:s,Ve:h})}(a,r,n),!Jn(p)&&ii(a,n,q)||await m.getWriter().close(),p.getData?p.getData():m}}class Oo{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new Fo(r,t),this.ae=new Set}transform(t){const e=this.zipWriter;let r;const{readable:n,writable:a}=new TransformStream({start(t){r=t},flush:()=>{!async function(){try{await e.close()}catch(t){await To(e,t)}}()}});return Io(this,this.zipWriter.add(t,n),t=>r.error(t)),{readable:this.readable,writable:a}}writable(t){let e;const{readable:r,writable:n}=new TransformStream({start(t){e=t}});return Io(this,this.zipWriter.add(t,r),t=>e.error(t)),n}async close(t,e={}){const{zipWriter:r}=this,n=(await Promise.allSettled(Array.from(this.ae))).filter(t=>"rejected"==t.status).map(t=>t.reason);if(n.length){const[t]=n;try{t.entryErrors=n}catch{}throw await To(r,t),t}try{return await r.close(t,e)}catch(t){throw await To(r,t),t}}}class Uo extends Promise{then(t,e){const{Ke:r}=this;return r&&(r.Me=!0),super.then(t,e)}}function jo(t,e){const r=new Uo((t,r)=>Promise.prototype.then.call(e,t,r)),n={};return r.Ke=n,n.Ie=Promise.prototype.then.call(r,F,t=>n.error=t),t.se.push(n),r}async function To(t,e){try{await t.writer.writable.abort(e)}catch{}}function Io(t,e,r){t.ae.add(e),e.catch(t=>{try{r(t)}catch{}})}function Mo(n,a,s){a=a.trim();let o=ii(n,s,Ea),i=ii(n,s,Aa,o?20:768);const c=ii(n,s,Fa),l=ui(n,s,"uid"),d=ui(n,s,"gid");let f=ui(n,s,Ta),u=ii(n,s,"unixExtraFieldType"),p=ii(n,s,Ia),m=ii(n,s,Ma),w=ii(n,s,Ca);if(ot(l,t,wo),ot(d,t,ho),ot(f,e,yo),u!==F&&u!==ko&&u!==Ao)throw new Error(bo);if(u===Ao&&(l!==F&&l>e||d!==F&&d>e))throw new Error(go);u!==F||l===F&&d===F||(u=ko);let h=ui(n,s,xa),y=ii(n,s,va);const b=h!==F||y!==F;if(l!==F||d!==F||f!==F||u||c?(o=!1,i=i&r|768):b&&(o=!0,i&=r),ot(h,r,xo),y&&(typeof y!==T||Array.isArray(y)))throw new Error(vo);if(i>e)throw new Error(Xs);let g=di(n,s,ya,ga);const x=g!==F;x||(g=0),!s[Da]&&a.endsWith(k)&&(s[Da]=!0);const A=ii(n,s,Da);if(A?(a.endsWith(k)||(a+=k),x||(g=16,o||(g|=16877<<16))):o||x||(g=c?493<<16:27525120),!o){const t=f!==F||Boolean(p||m||w);f=f===F?g>>16&e:f&e,p?f|=S:p=Boolean(f&S),m?f|=z:m=Boolean(f&z),w?f|=512:w=Boolean(512&f),x&&!t||(A?f=-61441&f|E:f&v||(f|=32768),g=(f&e)<<16|g&e)}({msdosAttributesRaw:h,msdosAttributes:y}=function(t,e){if(t!==F)t&=r;else if(e!==F){const{readOnly:n,hidden:a,system:s,directory:o,archive:i}=e;let c=0;n&&(c|=1),a&&(c|=2),s&&(c|=4),o&&(c|=16),i&&(c|=32),t=c&r}return e===F&&(e={readOnly:Boolean(1&t),hidden:Boolean(2&t),system:Boolean(4&t),directory:Boolean(16&t),archive:Boolean(32&t)}),{msdosAttributesRaw:t,msdosAttributes:e}}(h,y)),b&&(g=g&t|h&r);const R=g>>16&e,D=f!==F&&40960==(f&v);return{name:a,ve:{versionMadeBy:i,msDosCompatible:Boolean(o),externalFileAttributes:g,unixExternalUpper:R,uid:l,gid:d,unixMode:f,unixExtraFieldType:u,symlink:D,setuid:p,setgid:m,sticky:w,msdosAttributesRaw:h,msdosAttributes:y}}}function Co(t,r,n){const a=li(t,n,"encodeText")||Pt;let s=a(r,Y);if(s===F&&(s=Pt(r)),xi(s)>e)throw new Error(Gs);const o=n[aa]||"";if(typeof o!=I)throw new Error(Ks);let i=a(o,G);if(i===F&&(i=Pt(o)),xi(i)>e)throw new Error(Hs);const c=ii(t,n,ka);if(c!==F&&c>e)throw new Error(Xs);const l=ci(t,n,da,new Date),d=ii(t,n,fa),f=ci(t,n,ua),u=ci(t,n,ma),p=di(t,n,ha,ba,0),m=ii(t,n,B),w=ii(t,n,C),h=ii(t,n,N);at(w,h);const y=ui(t,n,"encryptionStrength",3),b=ii(t,n,Ra),g=ii(t,n,"extendedTimestamp",!0),x=ii(t,n,"ntfsTimestamp"),v=ii(t,n,"keepOrder",!0),E=ii(t,n,_),S=ii(t,n,L),z=ii(t,n,"bufferedWrite"),k=li(t,n,"createTempStream"),A=ii(t,n,"dataDescriptorSignature",!0),R=nt(ii(t,n,P)),D=ii(t,n,"useUnicodeFileNames",!0),O=ii(t,n,Oa),U=m||O===F?F:Ve(O);if(!m&&O!==F&&0!==O&&8!==O&&!U)throw new Error("Compression method not supported");let j=ui(t,n,"level");if(ot(j,9,Eo),t.options[H]){if(w!==F||h!==F)throw new Error(Qs);j===F&&O===F&&(j=0)}m&&(j=F);let T=ii(t,n,W),M=ii(t,n,V);z&&M===F&&(M=!1),(M===F||b&&!m)&&(M=!0),j!==F&&6!=j&&(T=!1);const q=ii(t,n,Sa);if(!(b||w===F&&h===F||Number.isInteger(y)&&y>=1&&y<=3))throw new Error(Js);const Z=No(n[ja]),K=No(n.localExtraField);return{comment:o,ve:{rawFilename:s,rawComment:i,version:c,lastModDate:l,rawLastModDate:d,lastAccessDate:f,creationDate:u,internalFileAttributes:p,passThrough:m,password:w,rawPassword:h,encryptionStrength:y,zipCrypto:b,extendedTimestamp:g,ntfsTimestamp:x,keepOrder:v,useWebWorkers:E,transferStreams:S,bufferedWrite:z,createTempStream:k,dataDescriptorSignature:A,signal:R,useUnicodeFileNames:D,compressionMethod:O,format:U?U.format:F,codecURI:U?U.codecURI:F,Ye:U?U.versionNeeded:F,level:j,useCompressionStream:T,dataDescriptor:M,zip64:q,rawExtraField:Z,Ge:K}}}function No(t){if(!t)return M;if(!(t instanceof Map))throw new Error(to);let r=0,n=0;t.forEach((t,n)=>{if(st(n,e,eo),!(t instanceof Uint8Array))throw new Error(ro);if(xi(t)>e)throw new Error(no);r+=4+xi(t)});const a=new Uint8Array(r),s=Rt(a);return t.forEach((t,e)=>{hi(s,n,e),hi(s,n+2,xi(t)),gi(a,t,n+4),n+=4+xi(t)}),a}function Bo(e,r,n,a,s){const{passThrough:o,zipCrypto:i,password:c,rawPassword:l,encryptionStrength:d}=a;let{dataDescriptor:f,zip64:u,level:p,compressionMethod:m}=a,w=0,h=0;if(o&&r){if(h=s[oa],h===F)throw new Error(lo);if(m===F)throw new Error(fo)}const y=!0===u,b=ii(e,s,za);if(r&&o&&!b&&xi(c,l))throw new Error($s);const g=r&&(Boolean(c&&xi(c)||l&&xi(l))||o&&b);r||(p=0,m=0);const x=g?i?12:16+4*d:0;r&&(o?(s.uncompressedSize=h,w=n===F?pi(h)+x:n):n===F?(f=!0,(u||u===F)&&(u=!0,h=w=4294967296)):(s.uncompressedSize=h=n,w=(mi(m,p)?pi(h):h)+x));const v=!(g||r&&(0!==n||o)||mi(m,p));v&&!i&&ii(e,s,V)===F&&(f=!1);const E=y||h>=t,S=y||w>=t;if(E||S){if(!1===u)throw new Error(co);u=!0}return u=u||!1,{Xe:w,ve:{dataDescriptor:f,ze:v,zip64:u,me:E,pe:S,uncompressedSize:h,level:p,compressionMethod:m,encrypted:g}}}function Po(t){const{rawFilename:r,lastModDate:a,rawLastModDate:s,lastAccessDate:o,creationDate:i,level:c,zip64:l,zipCrypto:d,useUnicodeFileNames:f,dataDescriptor:u,directory:p,rawExtraField:m,Ge:y,encryptionStrength:x,extendedTimestamp:v,ntfsTimestamp:E,passThrough:S,encrypted:z,me:k,pe:O,uncompressedSize:U,crc32:j}=t;let{version:T,compressionMethod:I}=t;const C=!p&&mi(I,c);let N;const B=S||!C,P=l&&(t.bufferedWrite||!u||!k&&!O||B),_=P||l&&u&&(k||O);if(l&&(k||O)){const t=20,e=Vo(t);if(e.We(1),e.We(t-4),N=e.Wt,P&&(e.He(U),B)){const t=z?d?12:16+4*x:0;e.He(S?0:U+t)}}else N=M;let W,L,q,V,Z;if(z&&!d){const t=Vo(xi(zo)+2);t.We(w),t.Le(zo),W=t.Wt,W[8]=x}else W=M;if(v){const t=ai(a),e=si(t);if(e){const e=9+(o?4:0)+(i?4:0),r=Vo(e);V=1+(o?2:0)+(i?4:0),r.We(h),r.We(e-4),r.Je(V),r._e(t),o&&r._e(oi(ai(o))),i&&r._e(oi(ai(i))),q=r.Wt}else q=M;if(E===F?!e||Boolean(o||i):E)try{const t=ni(a),e=Vo(36);e.We(10),e.We(32),e.Qe(4),e.We(1),e.We(24),e.He(t),e.He(o?ni(o):t),e.He(i?ni(i):t),L=e.Wt}catch{L=M}else L=M}else L=q=M;try{const{uid:r,gid:n,unixExtraFieldType:a}=t;if(a!=ko||r===F&&n===F)if(a!=Ao||r===F&&n===F)Z=M;else{const t=Vo(8);t.We(g),t.We(4),t.We((r===F?0:r)&e),t.We((n===F?0:n)&e),Z=t.Wt}else{const t=Wo(r===F?0:r),e=Wo(n===F?0:n),a=3+t.length+e.length,s=Vo(4+a);s.We(b),s.We(a),s.Je(1),s.Je(t.length),s.Le(t),s.Je(e.length),s.Le(e),Z=s.Wt}}catch{Z=M}I===F&&(I=C?8:0),T===F&&(T=0!=I||p||z?20:10);const{Ye:K}=t;C&&K!==F&&(T=T>K?T:K),l&&(T=T>45?T:45),z&&!d&&(T=T>51?T:51,S&&j!==F&&(W[4]=1),hi(Rt(W),9,I),I=99);const Y=_?xi(N):0,G=Y+xi(W,q,L,Z,m,y);if(G+(t[H]?67:0)>e)throw new Error(no);const X=new Date(2e3*Math.ceil(Math.floor(a.getTime()/1e3)/2)),{fe:J,ue:Q,rawLastModDate:$}=vi({version:T,bitFlag:Ei(c,f,u,z,I),compressionMethod:I,uncompressedSize:U,lastModDate:X<D?D:X>R?R:X,rawLastModDate:s,rawFilename:r,pe:O,me:k,extraFieldLength:G}),tt=Vo(A+xi(r)+G),et=tt.Wt,rt=Rt(et);return tt._e(n),tt.Le(J),tt.Le(r),_&&tt.Le(N),tt.Le(W),tt.Le(q),tt.Le(L),tt.Le(Z),tt.Le(m),tt.Le(y),u&&(O||yi(rt,18,0),k||yi(rt,22,0)),{Ee:et,Te:rt,fe:J,ue:Q,lastModDate:a,rawLastModDate:$,encrypted:z,compressed:C,version:T,compressionMethod:I,Oe:V,he:M,Fe:Y,be:q,ge:L,xe:Z,ye:W,extraFieldLength:G}}function _o(t,e){const{ke:r}=t;let{Ee:n,extraFieldLength:a}=r,s=64-(e+xi(n))%64;s<4&&(s+=64);const o=new Uint8Array(s),i=Rt(o);hi(i,0,y),hi(i,2,s-4);const c=n;r.Ee=n=new Uint8Array(xi(c)+s),gi(n,c),gi(n,o,xi(c));const l=Rt(n);hi(l,28,a+s),r.Te=l,t.De+=s}function Wo(t){const e=new Uint8Array(4);Rt(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function Lo({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let n,a=M,o=0,i=t?20:12;return r&&(i+=4),e&&(a=new Uint8Array(i),n=Rt(a),r&&(o=4,yi(n,0,s))),{Se:a,Ue:n,je:o}}function qo(r){let n=0;for(const[,a]of r){const{rawFilename:r,ye:s,rawComment:o,ge:i,xe:c,rawExtraField:l,extendedTimestamp:d,Oe:u,lastModDate:p,me:m,pe:w,uncompressedSize:y,compressedSize:b}=a,g=a.offset>=t,x=a.diskNumberStart>=e;let v,E;if(g||x||m||w){const t=4+(m?8:0)+(w?8:0)+(g?8:0)+(x?4:0),e=Vo(t);e.We(1),e.We(t-4),m&&e.He(y),w&&e.He(b),g&&e.He(a.offset),x&&e._e(a.diskNumberStart),v=e.Wt}else v=M;a.he=v,a.Pe=g,a.we=x;const S=ai(p);if(d&&si(S)){const t=Vo(9);t.We(h),t.We(5),t.Je(u),t._e(S),E=t.Wt}else E=M;a.be=E;const z=xi(v,s,i,c,E,l);if(z>e)throw new Error(no);n+=f+xi(r,o)+z}return n}function Vo(t){const e=new Uint8Array(t),r=Rt(e);let n=0;return{Wt:e,Je:t=>{!function(t,e,r){t.setUint8(e,r)}(r,n,t),n+=1},We:t=>{hi(r,n,t),n+=2},_e:t=>{yi(r,n,t),n+=4},He:t=>{bi(r,n,BigInt(t)),n+=8},Le:t=>{gi(e,t,n),n+=xi(t)},Qe:t=>n+=t}}function Zo(t){const{diskNumber:e=0}=t;return e}function Ho(t){const{diskOffset:e=0}=t;return e}function Ko(t,e){const{availableSize:r=O}=t;return e>r}function Yo(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.ne:0)}function Go(t){const e=Rt(t);let r=0;for(;r+4<=xi(t);){const n=4+wi(e,r+2);if(1==wi(e,r))return Go(kt(t.subarray(0,r),t.subarray(Math.min(r+n,xi(t)))));r+=n}return t}async function Xo(t,e,r,n){if(n>0){const{writer:a}=t;let s=0;try{await ri(ea(e,{offset:r,size:n}),a,F,t=>s+=t)}catch(e){t.hasCorruptedEntries=!0;try{e.corruptedEntry=!0}catch{}throw e}finally{a.size+=s,t.offset+=s}}}async function Jo(t,e){const r=await ta(t,e,A);if(xi(r)<A)return A;const n=Rt(r);return A+wi(n,26)+wi(n,28)}function Qo(t,{offset:e,diskNumberStart:r}){return e+(t.Ht?t.Ht(r):0)}function $o(){const t=new Uint8Array(4);return yi(Rt(t),0,a),t}async function ti(t,e){delete t.te,await ei(e,$o()),t.offset+=4}async function ei(t,e){const{writable:r}=t,n=r.getWriter();try{await n.ready,t.size+=xi(e),await n.write(e)}finally{n.releaseLock()}}async function ri(t,e,r,n){const a=e.writable.getWriter();try{await t.pipeTo(new WritableStream({async write(t){await a.ready,await a.write(t),n(xi(t))}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}}function ni(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<oo?oo:e>io?io:e}}function ai(t){return Math.floor(t.getTime()/1e3)}function si(t){return t>=ao&&t<=so}function oi(t){return Math.min(so,Math.max(ao,t))}function ii(t,e,r,n){const a=e[r]===F?t.options[r]:e[r];return a===F?n:a}function ci(t,e,r,n){const a=ii(t,e,r,n);if(null===a)return n;if(a!==F&&(typeof a.getTime!=j||Number.isNaN(a.getTime())))throw new Error(Ys);return a}function li(t,e,r){return rt(ii(t,e,r))}function di(t,e,r,n,a){const s=fi(e,r,n),o=s===F?fi(t.options,r,n):s;return o===F?a:o}function fi(t,e,r){return t[e]===F?t[r]:t[e]}function ui(t,e,r,n){return it(ii(t,e,r,n))}function pi(t){return t+5*(Math.floor(t/16383)+1)}function mi(t,e){return t===F?e===F||e>0:0!==t}function wi(t,e){return t.getUint16(e,!0)}function hi(t,e,r){t.setUint16(e,r,!0)}function yi(t,e,r){t.setUint32(e,r,!0)}function bi(t,e,r){t.setBigUint64(e,r,!0)}function gi(t,e,r){t.set(e,r)}function xi(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function vi({version:e,bitFlag:r,compressionMethod:n,uncompressedSize:a,compressedSize:s,lastModDate:o,rawLastModDate:i,rawFilename:c,pe:l,me:d,extraFieldLength:f}){const u=Vo(26),p=u.Wt,m=Rt(p);if(u.We(e),u.We(r),u.We(n),i===F){const t=new Uint32Array(1),e=Rt(t);hi(e,0,(o.getHours()<<6|o.getMinutes())<<5|o.getSeconds()/2),hi(e,2,(o.getFullYear()-1980<<4|o.getMonth()+1)<<5|o.getDate()),i=t[0]}return u._e(i),u.Qe(4),l||s!==F?u._e(l?t:s):u.Qe(4),d||a!==F?u._e(d?t:a):u.Qe(4),u.We(xi(c)),u.We(f),{fe:p,ue:m,rawLastModDate:i}}function Ei(t,e,r,n,a){let s=0;return e&&(s|=x),r&&(s|=8),8!=a&&9!=a||(t>=0&&t<=3&&(s|=6),t>3&&t<=5&&(s|=4),9==t&&(s|=2)),n&&(s|=1),s}const Si=1048576,zi=".zip.js-temp";function ki(t={}){const{thresholdBytes:e=Si,directoryName:r=zi,getDirectory:n=()=>navigator.storage.getDirectory()}=t;let a;function s(){return a||(a=Promise.resolve(n()).then(t=>t.getDirectoryHandle(r,{create:!0}))),a}return function(){const t=[];let r,n,a,o,i=0,c=!1;const l=new WritableStream({async write(o){c?await a.write(o):(t.push(o),i+=o.length,i>e&&await async function(){const e=await s();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join(""),n=await e.getFileHandle(r,{create:!0}),a=(await n.createWritable()).getWriter(),c=!0;for(const e of t)await a.write(e);t.length=0}())},async close(){a&&(await a.close(),a=null)}});let d=0;return{writable:l,readable:new ReadableStream({async pull(e){if(c){if(!o){const t=await n.getFile();o=t.stream().getReader()}const{value:t,done:r}=await o.read();r?e.close():e.enqueue(t)}else d<t.length?e.enqueue(t[d++]):e.close()},async cancel(t){o&&await o.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(a){try{await a.close()}catch{}a=null}if(r){try{const t=await s();await t.removeEntry(r)}catch{}n=r=null}t.length=0}}}}const Ai=1048576;function Ri(t={}){const{thresholdBytes:e=Ai}=t;return function(){const t=[];let r,n,a,s=0,o=!1;const i=new WritableStream({async write(a){o?await r.write(a):(t.push(a),s+=a.length,s>e&&await async function(){const e=new TransformStream;n=Ie(e.readable),r=e.writable.getWriter(),o=!0;for(const e of t)await r.write(e);t.length=0}())},async close(){r&&(await r.close(),r=null)}});let c=0;return{writable:i,readable:new ReadableStream({async pull(e){if(o){if(!a){const t=await n;a=t.stream().getReader()}const{value:t,done:r}=await a.read();r?e.close():e.enqueue(t)}else c<t.length?e.enqueue(t[c++]):e.close()},async cancel(t){a&&await a.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(r){try{await r.abort()}catch{}r=null}n&&(n.catch(()=>{}),n=null),t.length=0}}}}const Di=1048576,Fi=".zip.js-temp",Oi="createSyncAccessHandle is only available in dedicated workers";function Ui(t={}){const{thresholdBytes:e=Di,directoryName:r=Fi,getDirectory:n}=t;if(!(n||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw new Error(Oi);const a=n||(()=>navigator.storage.getDirectory());let s;function o(){return s||(s=Promise.resolve(a()).then(t=>t.getDirectoryHandle(r,{create:!0}))),s}return function(){const t=[];let r,n,a=0,s=!1,i=0,c=0;const l=new WritableStream({async write(c){s?(n.write(c,{at:i}),i+=c.length):(t.push(c),a+=c.length,a>e&&await async function(){const e=await o();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join("");const a=await e.getFileHandle(r,{create:!0});n=await a.createSyncAccessHandle(),s=!0;for(const e of t)n.write(e,{at:i}),i+=e.length;t.length=0}())},close(){n&&n.flush()}});let d=0;return{writable:l,readable:new ReadableStream({pull(e){if(s){const t=i-c;if(t<=0)return void e.close();const r=new Uint8Array(Math.min(524288,t)),a=n.read(r,{at:c});a?(c+=a,e.enqueue(r.subarray(0,a))):e.close()}else d<t.length?e.enqueue(t[d++]):e.close()}},{highWaterMark:0}),dispose:async function(){if(n){try{n.close()}catch{}n=null}if(r){try{const t=await o();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{St({baseURI:import.meta.url})}catch{}let ji,Ti,Ii,Mi,Ci;function Ni(t,e,r={}){if(!ji){const t=new Error("WASM module not loaded");throw t.cause=Ci,t}const n="number"==typeof r.level?r.level:-1,a="number"==typeof r.outBuffer?r.outBuffer:65536,s="number"==typeof r.inBufferSize?r.inBufferSize:65536;return new TransformStream({start(){try{let r;if(this.$e=Ti(a),this.in=Ti(s),this.inBufferSize=s,!this.$e||!this.in)throw new Error("allocation failed");if(this.er=new Uint8Array(a),t?(this.rr=ji.deflate_process,this.nr=ji.deflate_last_consumed,this.ar=ji.deflate_end,this.sr=ji.deflate_new(),r="gzip"===e?ji.deflate_init_gzip(this.sr,n):"deflate-raw"===e?ji.deflate_init_raw(this.sr,n):ji.deflate_init(this.sr,n)):"deflate64-raw"===e?(this.rr=ji.inflate9_process,this.nr=ji.inflate9_last_consumed,this.ar=ji.inflate9_end,this.sr=ji.inflate9_new(),r=ji.inflate9_init_raw(this.sr)):(this.rr=ji.inflate_process,this.nr=ji.inflate_last_consumed,this.ar=ji.inflate_end,this.sr=ji.inflate_new(),r="deflate-raw"===e?ji.inflate_init_raw(this.sr):"gzip"===e?ji.inflate_init_gzip(this.sr):ji.inflate_init(this.sr)),0!==r)throw new Error("init failed:"+r)}catch(t){throw o(this),t}},transform(e,r){try{const n=e,s=new Uint8Array(Mi.buffer),o=this.rr,i=this.nr,c=this.$e,l=this.er;let d=0;for(;d<n.length;){const e=Math.min(n.length-d,32768);if((!this.in||this.inBufferSize<e)&&(this.in&&Ii&&(Ii(this.in),this.in=0),this.in=Ti(e),this.inBufferSize=e,!this.in))throw new Error("allocation failed");s.set(n.subarray(d,d+e),this.in);const f=o(this.sr,this.in,e,c,a,0),u=16777215&f;if(u&&(l.set(s.subarray(c,c+u),0),r.enqueue(l.slice(0,u))),!t){const t=f>>24&255,e=128&t?t-256:t;if(e<0)throw new Error("process error:"+e)}const p=i(this.sr);if(0===p)break;d+=p}}catch(t){o(this),r.error(t)}},flush(e){try{const r=new Uint8Array(Mi.buffer),n=this.rr,s=this.$e,o=this.er;for(;;){const i=n(this.sr,0,0,s,a,4),c=16777215&i,l=i>>24&255;if(!t){const t=128&l?l-256:l;if(t<0)throw new Error("process error:"+t)}if(c&&(o.set(r.subarray(s,s+c),0),e.enqueue(o.slice(0,c))),1===l||0===c)break}}catch(t){e.error(t)}finally{const t=o(this);0!==t&&e.error(new Error("end error:"+t))}},cancel(){o(this)}});function o(t){let e=0;return t.sr&&t.ar&&(e=t.ar(t.sr)),t.sr=0,t.in&&Ii&&Ii(t.in),t.in=0,t.$e&&Ii&&Ii(t.$e),t.$e=0,e}}class Bi{constructor(t="deflate",e){return Ni(!0,t,e)}}class Pi{constructor(t="deflate",e){return Ni(!1,t,e)}}Bi.ft=!0,Pi.ft=!0;let _i,Wi=!1;function Li(){_i=null,async function(){await Promise.allSettled(_r.map(t=>(Xr(t),t.terminate()))),hr=F,yr=!1}(),Wi=!1,ji=Ti=Ii=Mi=Ci=null}!function({ir:t}){gr=t}({ir:t=>{if(!_i){let{wasmURI:e}=t;typeof e==j&&(e=e()),_i=async function(t,{baseURI:e}){if(!Wi)try{await async function(t,e){let r,n;try{try{n=new URL(t,e)}catch{}const a=await fetch(n);r=await a.arrayBuffer()}catch(e){if(!t.startsWith("data:application/wasm;base64,"))throw e;r=function(t){const e=t.split(",")[1],r=atob(e),n=r.length,a=new Uint8Array(n);for(let t=0;t<n;++t)a[t]=r.charCodeAt(t);return a.buffer}(t)}!function(t){if(ji=t,({malloc:Ti,free:Ii,memory:Mi}=ji),"function"!=typeof Ti||"function"!=typeof Ii||!Mi)throw ji=Ti=Ii=Mi=null,new Error("Invalid WASM module")}((await WebAssembly.instantiate(r)).instance.exports)}(t,e),Wi=!0}catch(t){throw function(t){Ci=t}(t),t}}(e,t).catch(t=>{throw _i=null,t})}return _i}}),St({CompressionStreamFallback:Bi,DecompressionStreamFallback:Pi}),St({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const qi="Entry filename already exists",Vi="Readable stream already consumed",Zi="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",Hi="Invalid readerOptions (must be an object)",Ki="The last modification date of an entry encrypted with ZipCrypto cannot be changed when passThrough is set",Yi="zipjs-abort-export",Gi="The operation was aborted",Xi=new Set([1,w,10,h,28789,25461,y,b,g,22613,13]);class Ji{constructor(t,e,r,n){const a=this;if(t.root&&n&&n.getChildByName(e))throw new Error(qi);r||(r={}),Object.assign(a,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.cr++,parent:n,children:[],uncompressedSize:r.uncompressedSize||0,lr:r.lr||r.uncompressedSize===F,passThrough:r.passThrough,dr:r.dr||new Date}),!n&&t.root||(t.entries[a.id]=a),n&&a.parent.children.push(a)}getFullname(){return this.getRelativeName()}getRelativeName(t=this.fs.root){let e=this.name,r=this.parent;for(;r&&r!=t;)e=(r.name?r.name+"/":"")+e,r=r.parent;return e}isDescendantOf(t){let e=this.parent;for(;e&&e.id!=t.id;)e=e.parent;return Boolean(e)}rename(t){const e=this.parent;if(e&&e.getChildByName(t))throw new Error(qi);this.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==F))}}class Qi extends Ji{constructor(t,e,r,n){super(t,e,r,n);const a=this;a.Reader=r.Reader,a.Writer=r.Writer,r.getData&&(a.getData=r.getData)}clone(){return new Qi(this.fs,this.name,this)}async getData(t,e={}){const r=this;if(!t||t.constructor==r.Writer&&r.data&&function(t,e){const{contentType:r}=t;return r===F||(t.constructor==En?e.type==r:t.constructor!=bn||e.startsWith("data:"+(r||"")+";base64,"))}(t,r.data))return r.data;{const n=r.reader=ic(r.Reader,r.data,e),a=r.uncompressedSize||n.size;await Promise.all([Qn(n),Qn(t,a)]);const s=nt(e.signal),o=function(t,e,r,n){const{onstart:a,onprogress:s,onend:o}=r,{readable:i}=e;return t.data instanceof Ba||!a&&!s&&!o?i:Te(i).pipeThrough(new Sr({onstart:a,onprogress:s,onend:o,size:e.size}),{signal:n})}(r,n,e,s),i=!Jn(t)&&Boolean(e.preventClose);return r.uncompressedSize=n.size,await Te(o).pipeTo(Me(t.writable),{signal:s,preventClose:i,preventAbort:i}),t.getData?t.getData():t.writable}}isPasswordProtected(){return Boolean(this.data&&this.data.encrypted)}async checkPassword(t,e={}){const r=this;if(!r.isPasswordProtected())return!0;try{return await r.data.getData(null,Object.assign({},e,{password:t,checkPasswordOnly:!0})),!0}catch(t){if(t.message==Zt)return!1;throw t}}getText(t,e){return this.getData(new kn(t),e)}getBlob(t,e){return this.getData(new En(t),e)}getData64URI(t,e){return this.getData(new bn(t),e)}getUint8Array(t){return this.getData(new Hn,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return At(await this.getUint8Array(t)).buffer}replaceBlob(t){Object.assign(this,{data:t,Reader:vn,Writer:En,reader:null})}replaceText(t){Object.assign(this,{data:t,Reader:Sn,Writer:kn,reader:null})}replaceData64URI(t){Object.assign(this,{data:t,Reader:yn,Writer:bn,reader:null})}replaceUint8Array(t){Object.assign(this,{data:t,Reader:Zn,Writer:Hn,reader:null})}replaceReadable(t){Object.assign(this,{data:null,Reader:sc(t),Writer:null,reader:null})}}class $i extends Ji{constructor(t,e,r,n){super(t,e,r,n),this.directory=!0}clone(t){const e=this,r=new $i(e.fs,e.name,e);return t&&(r.children=e.children.map(e=>{const n=e.clone(t);return n.parent=r,n})),r}addDirectory(t,e){return gc(this,t,{options:e},!0)}addText(t,e,r={}){return gc(this,t,{data:e,Reader:Sn,Writer:kn,options:r,uncompressedSize:zn(e)})}addBlob(t,e,r={}){return gc(this,t,{data:e,Reader:vn,Writer:En,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){let n=e.length;for(;"="==e.charAt(n-1);)n--;const a=e.indexOf(",")+1;return gc(this,t,{data:e,Reader:yn,Writer:bn,options:r,uncompressedSize:Math.floor(.75*(n-a))})}addUint8Array(t,e,r={}){return gc(this,t,{data:e,Reader:Zn,Writer:Hn,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return gc(this,t,{data:e,Reader:class extends qn{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return gc(this,t,{Reader:sc(e),options:r})}addFileSystemEntry(t,e={}){return hc(this,t,e)}addFileSystemHandle(t,e={}){return hc(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),gc(this,t.name,{data:t,Reader:function(){return{readable:t.stream(),size:t.size}},options:e,uncompressedSize:t.size})}importBlob(t,e){return this.importZip(new vn(t),e)}importData64URI(t,e){return this.importZip(new yn(t),e)}importUint8Array(t,e){return this.importZip(new Zn(t),e)}importHttpContent(t,e){return this.importZip(new qn(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new En(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new bn(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new Hn,t)}async exportWritable(t=new WritableStream,e={}){return await this.exportZip({writable:t},e),t}exportFileSystemHandle(t,e={}){return async function(t,e,r){const{onstart:n,onprogress:a,onend:s}=r,o=pc(r.readerOptions),i=new AbortController,{signal:c}=i,l=function(t,e){if(!nt(t))return()=>{};if(t.aborted)return e.abort(t.reason),()=>{};const r=()=>e.abort(t.reason);return t.addEventListener("abort",r,{once:!0}),()=>t.removeEventListener("abort",r)}(r.signal,i),d=Object.assign({},r,o,{signal:c,onstart:F,onprogress:F,onend:F,preventClose:!1}),f=rc([t],t=>ac(t,d.passThrough)),u=[];let p=!1,m=0;try{n&&await zr(n,f),await h(t,e),s&&await zr(s,m)}catch(t){try{t.exportedEntryNames=u}catch{}throw t}finally{l()}return e;function w(t){const e=t.getWriter();return new WritableStream({async write(t){await e.write(t),m+=t.length,a&&await zr(a,m,f)},close:()=>e.close(),abort:t=>e.abort(t)})}async function h(t,e){if(r.concurrent){const r=(await Promise.allSettled(t.children.map(t=>y(t,e)))).filter(t=>"rejected"==t.status);if(r.length){const t=r.filter(t=>!dc(t.reason));throw function(t){const[e]=t,r=t.slice(1).flatMap(t=>[t,...t&&t.entryErrors||[]]).filter(t=>t!==e);if(r.length)try{e.entryErrors=[...e.entryErrors||[],...r]}catch{}return e}((t.length?t:r).map(t=>t.reason))}}else for(const r of t.children)await y(r,e)}async function y(e,r){if(c.aborted){if(p||dc(c.reason))return;throw c.reason===F?new DOMException(Gi,"AbortError"):c.reason}try{if(e.directory){const t=await r.getDirectoryHandle(e.name,{create:!0});await h(e,t)}else{const n=await r.getFileHandle(e.name,{create:!0}),a=await n.createWritable();try{await e.getData({writable:w(a)},d)}catch(t){throw p?new Error(Yi):t}u.push(e.getRelativeName(t))}}catch(r){p=!0,i.abort(new Error(Yi));try{r.entryName===F&&(r.entryName=e.getRelativeName(t),r.entryId=e.id)}catch{}throw r}}}(this,t,e)}async importZip(t,e={}){let r;t&&typeof t.getEntries==j?(r=t,e=Object.assign({},r.options,e)):(await Qn(t),r=new ds(t,e));const n=[],a=await r.getEntries(e);for(const t of a){let r=this;try{const a=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=a.pop();if(a.forEach(t=>{const e=r;if(r=r.getChildByName(t),r){if(!r.directory)throw new Error(qi)}else r=new $i(this.fs,t,{data:null},e),n.push(r)}),t.directory){let e=r;if(s)if(e=r.getChildByName(s),e){if(!e.directory)throw new Error(qi)}else e=new $i(this.fs,s,{data:null},r),n.push(e);e==this||e.data||(e.data=t)}else n.push(gc(r,s,{data:t,Reader:oc(Object.assign({},e)),uncompressedSize:e.passThrough?t.compressedSize:t.uncompressedSize,passThrough:e.passThrough}))}catch(e){try{e.cause={entry:t}}catch{}throw e}}return n}async exportZip(t,e={}){const r=this;(e=Object.assign({},e)).bufferedWrite===F&&(e.bufferedWrite=!0);const[n]=await Promise.all([cc(r,pc(e.readerOptions)),Qn(t)]),a=new Fo(t,e);return await async function(t,e,r,n,a){const{onstart:s,onprogress:o,onend:i,onentryprogress:c}=n,l=e,d=rc(e.children,t=>wc(t)?0:1);let f=0,u=0;if(s&&await zr(s,r),n.bufferedWrite)await async function t(e){const r=(await Promise.allSettled(e.children.map(async e=>{await p(e),await t(e)}))).find(t=>"rejected"==t.status);if(r)throw r.reason}(e);else for(const t of e.getChildren({recursive:!0}))await p(t);async function p(e){if(wc(e))return;const{name:s,ur:i}=fc(e,l,n);let p=0;const m=await t.add(s,a.get(e),Object.assign(i,{onstart:F,onend:F,onprogress:async t=>{f+=t-p,p=t,o&&await zr(o,f,r)}}));u++,c&&await zr(c,u,d,m)}i&&await zr(i,f)}(a,r,rc([r],nc),e,n),await a.close(e.globalComment),t.getData?t.getData():t.writable}getExportedSize(r={}){const n=this;pc((r=Object.assign({},r)).readerOptions),r.bufferedWrite===F&&(r.bufferedWrite=!0);const a=!r.bufferedWrite||!1!==r.keepOrder&&n.children.every(t=>!t.children.length);return async function(r,n,a,s){const o={options:r};if(rt(r[K]))throw new Error(uo);if(s!==F&&!(s instanceof Uint8Array))throw new Error(Zs);const i=xi(s);if(i>e)throw new Error(Vs);const c=r[H],l=new Map;let d=Boolean(c);const f=r[Z]===F?0:r[Z];let p=f,m=O;for(const t of n){let{name:e}=t;const{size:r}=t,n=Object.assign({},t.options);e=e.trim(),ii(o,n,Da)&&!e.endsWith(k)&&(e+=k);const a=Mo(o,e,n);({name:e}=a);const{ve:s}=Co(o,e,n);0==s.level||s.compressionMethod!==F||s.passThrough||await xr(ht())||(s.level=0);const i=!ii(o,n,Da);if(i&&r===F)throw new Error(uo);const{Xe:d,ve:f}=Bo(o,i,r,s,n);if(i&&!s.passThrough&&mi(f.compressionMethod,f.level))throw new Error(uo);const u=Object.assign({},n,a.ve,s,f,{[H]:c}),w=Po(u),h=Lo(u),y={ke:w,De:xi(w.Ee,h.Se)};c&&_o(y,p);const b=i?d:0;l.set(e,Object.assign({},u,w,{offset:p,diskNumberStart:0,compressedSize:b}));const g=y.De+b;m=Math.min(m,g),p+=g}if(l.size&&p-m>=t&&(d=!0),d&&!a)throw new Error(uo);const w=qo(l);let h=ii(o,r,Sa);if(p>=t||w>=t||l.size>=e){if(!1===h)throw new Error(co);h=!0}return p-f+w+i+(h?98:u)}(r,n.getChildren({recursive:!0}).filter(t=>!wc(t)).map(t=>{const{name:e,ur:a}=fc(t,n,r);return{name:e,size:t.directory?0:uc(t,mc(t,r)),options:a}}),a,r.globalComment)}getChildByName(t){const e=this.children;for(let r=0;r<e.length;r++){const n=e[r];if(n.name==t)return n}}getChildren(t={}){return function(t,e){const r=[],n=[t];let a=0;for(;a<n.length;)for(const t of n[a++].children)r.push(t),e&&n.push(t);return r}(this,t.recursive)}isPasswordProtected(){const t=this.children;for(let e=0;e<t.length;e++)if(t[e].isPasswordProtected())return!0;return!1}async checkPassword(t,e={}){const r=this.children;return!(await Promise.all(r.map(r=>r.checkPassword(t,e)))).includes(!1)}}class tc{constructor(){bc(this)}get children(){return this.root.children}remove(t){lc(t);const e=[t];for(;e.length;){const t=e.pop();this.entries[t.id]=null;for(const r of t.children)e.push(r)}t.parent=F}move(t,e){if(t==this.root)throw new Error("Root directory cannot be moved");if(!e.directory)throw new Error("Target entry is not a directory");if(e.isDescendantOf(t))throw new Error("Entry is a ancestor of target entry");if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw new Error(qi)}else lc(t),t.parent=e,e.children.push(t),function(t,e){const r=[e];for(;r.length;){const e=r.pop();t.entries[e.id]=e;for(const t of e.children)r.push(t)}}(this,t)}}find(t){const e=t.split("/");let r=this.root;for(let t=0;r&&t<e.length;t++)r=r.getChildByName(e[t]);return r||(r=this.entries.find(e=>e&&(e==this.root||e.isDescendantOf(this.root))&&e.getRelativeName()==t)),r}getById(t){return this.entries[t]}getChildByName(t){return this.root.getChildByName(t)}getChildren(t){return this.root.getChildren(t)}addDirectory(t,e){return this.root.addDirectory(t,e)}addText(t,e,r){return this.root.addText(t,e,r)}addBlob(t,e,r){return this.root.addBlob(t,e,r)}addData64URI(t,e,r){return this.root.addData64URI(t,e,r)}addUint8Array(t,e,r){return this.root.addUint8Array(t,e,r)}addHttpContent(t,e,r){return this.root.addHttpContent(t,e,r)}addReadable(t,e,r){return this.root.addReadable(t,e,r)}addFileSystemEntry(t,e){return this.root.addFileSystemEntry(t,e)}addFileSystemHandle(t,e){return this.root.addFileSystemHandle(t,e)}addFile(t,e){return this.root.addFile(t,e)}importBlob(t,e){return bc(this),this.root.importBlob(t,e)}importData64URI(t,e){return bc(this),this.root.importData64URI(t,e)}importUint8Array(t,e){return bc(this),this.root.importUint8Array(t,e)}importHttpContent(t,e){return bc(this),this.root.importHttpContent(t,e)}importReadable(t,e){return bc(this),this.root.importReadable(t,e)}importZip(t,e){return bc(this),this.root.importZip(t,e)}exportBlob(t){return this.root.exportBlob(t)}exportData64URI(t){return this.root.exportData64URI(t)}exportUint8Array(t){return this.root.exportUint8Array(t)}exportWritable(t,e){return this.root.exportWritable(t,e)}exportFileSystemHandle(t,e){return this.root.exportFileSystemHandle(t,e)}exportZip(t,e){return this.root.exportZip(t,e)}getExportedSize(t){return this.root.getExportedSize(t)}isPasswordProtected(){return this.root.isPasswordProtected()}checkPassword(t,e){return this.root.checkPassword(t,e)}}const ec={FS:tc,ZipDirectoryEntry:$i,ZipFileEntry:Qi};function rc(t,e){let r=0;const n=Array.from(t);for(;n.length;){const t=n.pop();r+=e(t)||0;for(const e of t.children)n.push(e)}return r}function nc(t){return t.uncompressedSize}function ac(t,e){const{data:r}=t;return e&&r instanceof Ba?r.compressedSize:t.uncompressedSize}function sc(t){let e;return function(){if(e)throw new Error(Vi);return e=!0,{readable:t}}}function oc(t){return class extends wn{constructor(t,e={}){super(),this.entry=t,this.options=e}async init(){const e=this,r=Object.assign({},t,e.options),{checkOverlappingEntry:n,checkOverlappingEntryOnly:a}=r,s=await e.entry.getData(new En,Object.assign(r,{checkPasswordOnly:!1,checkOverlappingEntry:a||n,checkOverlappingEntryOnly:!1,preventClose:!1}));e.data=s,e.pr=new vn(s),e.size=s.size,super.init()}readUint8Array(t,e){return this.pr.readUint8Array(t,e)}}}function ic(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function cc(t,e){const r=[],n=[t],a=new Map;for(;n.length;){const t=n.pop();for(const e of t.children)e.directory?n.push(e):r.push(e)}return await Promise.all(r.map(async t=>{const r=t.reader=ic(t.Reader,t.data,e);a.set(t,r);try{await Qn(r)}catch(e){try{e.entryId=t.id,e.cause={entry:t}}catch{}throw e}r.size!==F&&(t.uncompressedSize=r.size,t.lr=!1)})),a}function lc(t){if(t.parent){const e=t.parent.children;e.forEach((r,n)=>{r.id==t.id&&e.splice(n,1)})}}function dc(t){return Boolean(t)&&t.message==Yi}function fc(t,e,n){const a=n.relativePath?t.getRelativeName(e):t.getFullname(),s=t.options||{};let o={},i={};if(t.data instanceof Ba){const{externalFileAttributes:e,versionMadeBy:a,comment:c,lastModDate:l,rawLastModDate:d,creationDate:f,lastAccessDate:u,uncompressedSize:p,encrypted:m,zipCrypto:w,crc32:h,compressionMethod:y,extraFieldAES:b,internalFileAttributes:g,extraField:x,bitFlag:v,uid:E,gid:S}=t.data;o={externalFileAttributes:e,versionMadeBy:a,comment:c,lastModDate:l,creationDate:f,lastAccessDate:u,internalFileAttributes:g};const z=function(t){if(t){const e=new Map;if(t.forEach((t,r)=>{Xi.has(r)||e.set(r,t.data)}),e.size)return e}}(x);if(z&&(o.extraField=z),E===F&&S===F||Object.assign(o,{uid:E,gid:S,unixExtraFieldType:"infozip"}),mc(t,n)){let t;b&&(t=b.strength),i={passThrough:!0,encrypted:m,zipCrypto:w,crc32:h,uncompressedSize:p,encryptionStrength:t,compressionMethod:y},v&&(i.dataDescriptor=v.dataDescriptor);const e=s.lastModDate===F?n.lastModDate:s.lastModDate;if(e===F)i.rawLastModDate=d;else if(w&&(!v||v.dataDescriptor)&&e instanceof Date&&function(t){let e=new Date(2e3*Math.ceil(Math.floor(t.getTime()/1e3)/2));return e<D?e=D:e>R&&(e=R),(e.getHours()<<3|e.getMinutes()>>3)&r}(e)!=(d>>>8&r))throw new Error(Ki)}}const c=Object.assign({lastModDate:t.dr},o,n,s,i,{directory:t.directory});if(!t.directory&&c.passThrough&&c.uncompressedSize===F)throw new Error(Zi);return{name:a,ur:c}}function uc(t,e){const{reader:r}=t;return r&&r.size!==F?r.size:t.lr?F:ac(t,e)}function pc(t){if(t&&(typeof t!=T||Array.isArray(t)))throw new Error(Hi);return t}function mc(t,e){const{readerOptions:r}=e;return Boolean(!t.directory&&(t.passThrough||r&&r.passThrough))}function wc(t){return t.directory&&null===t.data}function hc(t,e,r){return async function t(e,n,a,s=""){if(n){const o=s?s+"/"+n.name:n.name;try{if((n.isFile||n.isDirectory)&&(n=await yc(n)),"file"==n.kind){const t=await n.getFile();a.push(gc(e,t.name,{Reader:function(){return{readable:t.stream(),size:t.size}},options:Object.assign({},{lastModDate:new Date(t.lastModified)},r),uncompressedSize:t.size}))}else if("directory"==n.kind){const s=e.addDirectory(n.name,r);a.push(s);for await(const e of n.values())await t(s,e,a,o)}}catch(t){try{t.entryName===F&&(t.entryName=o)}catch{}throw t}}return a}(t,e,[])}async function yc(t){const e={name:t.name};if(t.isFile&&(e.kind="file",e.getFile=()=>new Promise((e,r)=>t.file(e,r))),t.isDirectory){e.kind="directory";const r=await async function(t){const e=[];function r(t,n,a){t.readEntries(async s=>{if(s.length){for(const t of s)e.push(await yc(t));r(t,n,a)}else n(e)},a)}return await new Promise((e,n)=>r(t.createReader(),e,n)),{[Symbol.iterator](){let t=0;return{next(){const r={value:e[t],done:t==e.length};return t++,r}}}}}(t);e.values=()=>r}return e}function bc(t){t.entries=[],t.cr=0,t.root=new $i(t)}function gc(t,e,r,n){if(t.directory)return n?new $i(t.fs,e,r,t):new Qi(t.fs,e,r,t);throw new Error("Parent entry is not a directory")}let xc;function vc(t){return t&&(xc||(xc=function(){const t=Object.create(null);for(const e of"application:0andrew-inset ez,2nodex anx,1pplixware aw,1tom!,4cat!,4serv! atomsrv,5vc!,0bbolin lin,0ccxml!,1dmi-capability cdmia,6ontainer cdmic,5domain cdmid,5object cdmio,5queue cdmiq,1u-seeme cu,0davmount!,1ocbook! dbk,1sptype tsp,2sc+der,4! xdssc,0ecmascript es ecma,1mma!,1nvoy evy,1pub+zip,1xi,0font-tdpfr pfr,1ractals fif,1uturesplash spl,0gml!,1px!,1xf,1zip gz tgz,0hta,1yperstudio stk,0inkml! ink inkml,2ternet-property-stream acx,1pfix,0java-archive jar,5serialized-object ser,5vm class,1sonml+json,0lost! lostxml,0m3g,1ac-binhex40 hqx,2ds!,2rc mrc,4xml! mrcx,2thematica nb ma mb,4ml! mathml mml,1box,1ediaservercontrol! mscml,2talink!,84! meta4,3s!,1ods!,1p21 m21 mp21,24 mp4s,1saccess mdb,2word doc dot wiz,1xf,0oda,1ebps-package! opf,1gg ogx,1lescript axs,1mdoc!,1nenote onetoc onetoc2 onetmp onepkg,1xps,0patch-ops-error! xer,1df,1gp-encrypted pgp,4keys key,4signature asc sig,1ics-rules prf,1kcs10 p10,47-mime p7m p7c,6signature p7s,48 p8,2ix-attr-cert ac,5crl crl,5pkipath pkipath,4cmp pki,1ls!,1ostscript ps ai eps epsi epsf eps2 eps3,1rs.cww cww,1skc! pskcxml,0rar,1df!,1eginfo! rif,2lax-ng-compact-syntax rnc,2source-lists! rl,e-diff! rld,1ls-services! rs,1pki-ghostbusters gbr,5manifest mft,5roa roa,1sd!,2s!,1tf,0sbml!,1cvp-cv-request scq,asponse scs,5vp-request spq,asponse spp,1dp,1et-payment-initiation setpay,4registration-initiation setreg,1hf!,1mil! smi smil,1parql-query rq,7results! srx,1rgs gram,4! grxml,2u!,1sdl!,2ml!,0tei! tei teicorpus,1hraud! tfi,1imestamped-data tsd,0vnd.3gpp.pic-bw-large plb,gsmall psb,gvar pvb,82.tcap tcap,5m.post-it-notes pwn,4accpac.simply.aso aso,iimp imp,6ucobol acu,9rp atc acutc,5dobe.air-application-installer-package+zip air,aformscentral.fcdt fcdt,bxp fxp fxpl,axdp! xdp,bfdf xfdf,5head.space ahead,5irzip.filesecure.azf azf,os azs,5mazon.ebook azw,6ericandynamics.acc acc,6iga.ami ami,5ndroid.package-archive apk,6ser-web-certificate-issue-initiation cii,efunds-transfer-initiation fti,6tix.game-component atx,5pple.installer! mpkg,ampegurl m3u8,5ristanetworks.swi swi,5straea-software.iota iota,5udiograph aep,4blueice.multipass mpm,5mi bmi,5usinessobjects rep,4chemdraw! cdxml,6ipnuts.karaoke-mmd mmd,5inderella cdy,5laymore cla,6oanto.rp9 rp9,7nk.c4group c4g c4d c4f c4p c4u,6uetrust.cartomobile-config c11amc,w-pkg c11amz,5ommonspace csp,6ntact.cmsg cdbcmsg,6smocaller cmc,5rick.clicker clkx,h.keyboard clkk,ipalette clkp,itemplate clkt,iwordbank clkw,7ticaltools.wbs! wbs,5tc-posml pml,5ups-ppd ppd,6rl.car car,9pcurl pcurl,4dart dart,6ta-vision.rdz rdz,5ebian.binary-package deb udeb,6ce.data uvf uvvf uvd uvvd,9ttml! uvt uvvt,9unspecified uvx uvvx,9zip uvz uvvz,6novo.fcselayout-link fe_launch,5na dna,5olby.mlp mlp,5pgraph dpg,5reamfactory dfac,5s-keypoint kpxx,5vb.ait ait,8service svc,5ynageo geo,4ecowin.chart mag,5nliven nml,5pson.esf esf,amsf msf,aquickanime qam,asalt slt,bsf ssf,5szigno3! es3 et3,5zpix-album ez2,apackage ez3,4fdf fdf,6sn.mseed mseed,9seed seed dataless,5lographit gph,6uxtime.clip ftc,5ramemaker fm frame maker book,6ogans.fnc fnc,cltf ltf,5sc.weblaunch fsc,5ujitsu.oasys oas,h2 oa2,h3 oa3,hgp fg5,hprs bh2,8xerox.ddd ddd,focuworks xdw,n.binder xbd,6zzysheet fzs,4genomatix.tuxedo txd,6ogebra.file ggb,dtool ggt,7metry-explorer gex gre,7next gxt,7plan g2w,7space g3w,5mx gmx,5oogle-earth.kml! kml,jz kmz,5rafeq gqf gqs,6oove-account gac,bhelp ghf,bidentity-message gim,cnjector grv,btool-message gtm,gtemplate tpl,bvcard vcg,4hal! hal,6ndheld-entertainment! zmm,5bci hbci,5he.lesson-player les,5p-hpgl hpgl,9id hpid,9s hps,7jlyt jlt,7pcl pcl,axl pclxl,5ydrostatix.sof-data sfd-hdstx,5zn-3d-crossword x3d,4ibm.minipay mpy,9odcap afp listafp list3820,8rights-management irm,8secure-container sc,5ccprofile icc icm,5gloader igl,5mmervision-ivp ivp,iu ivu,5nsors.igm igm,6tercon.formnet xpw xpx,9geo i2g,7u.qbo qbo,afx qfx,5punplugged.rcprofile rcprofile,5repository.package! irp,5s-xpr xpr,6ac.fcs fcs,4jam jam,5cp.javame.midlet-rms rms,5isp jisp,5oost.joda-archive joda,4kahootz ktz ktr,5de.karbon karbon,9chart chrt,9formula kfo,9ivio flw,9ontour kon,9presenter kpr kpt,9spread ksp,9word kwd kwt,5enameaapp htke,5idspiration kia,6nar kne knp,5oan skp skd skt skm,6dak-descriptor sse,4las.las! lasxml,5lamagraphics.life-balance.desktop lbd,vexchange! lbe,5otus-1-2-3 123,aapproach apr,afreelance pre,anotes nsf,aorganizer org,ascreencam scm,awordpro lwp,4macports.portpkg portpkg,5cd mcd,5edcalcdata mc1,7iastation.cdkey cdkey,5fer mwf,6mp mfm,5icrografx.flo flo,figx igx,6f mif,5obius.daf daf,cis dis,bmbk mbk,cqy mqy,csl msl,bplc plc,btxf txf,6phun.application mpn,bcertificate mpc,6zilla.xul! xul,5s-artgalry cil,7cab-compressed cab,7excel xls xlb xlt xlm xla xlc xlw,c.addin.macroenabled.12 xlam,dsheet.binary.macroenabled.12 xlsb,jmacroenabled.12 xlsm,dtemplate.macroenabled.12 xltm,7fontobject eot,7htmlhelp chm,7ims ims,7lrm lrm,7officetheme thmx,8utlook msg,7pki.seccat cat,ctl stl,acertstore sst,8owerpoint ppt pps pot ppa pwz,h.addin.macroenabled.12 ppam,ipresentation.macroenabled.12 pptm,islide.macroenabled.12 sldm,nshow.macroenabled.12 ppsm,itemplate.macroenabled.12 potm,8roject mpp mpt,7word.document.macroenabled.12 docm,ctemplate.macroenabled.12 dotm,aks wps wks wcm wdb,8pl wpl,7xpsdocument xps,6eq mseq,5usician mus,6vee.style msty,5ynfc taglet,4neurolanguage.nlu nlu,5itf ntf nitf,5oblenet-directory nnd,dsealer nns,dweb nnw,6kia.n-gage.data ngdat,hsymbian.install n-gage,aradio-preset rpst,ms rpss,6vadigm.edm edm,fx edx,ext ext,4oasis.opendocument.chart odc,s-template otc,ndatabase odb,nformula odf,u-template odft,ngraphics odg,v-template otg,nimage odi,s-template oti,npresentation odp,z-template otp,nspreadsheet ods,y-template ots,ntext odt,r-master odm otm,stemplate ott,sweb oth,5lpc-sugar xo,5ma.dd2! dd2,5penofficeorg.extension oxt,8xmlformats-officedocument.presentationml.presentation pptx,zresentationml.slide sldx,zresentationml.slideshow ppsx,zresentationml.template potx,yspreadsheetml.sheet xlsx,zpreadsheetml.template xltx,ywordprocessingml.document docx,zordprocessingml.template dotx,5sgeo.mapguide.package mgp,7i.dp dp,9subsystem esa,4palm pdb pqa oprc,6waafile paw,5g.format str,7osasli ei6,5icsel efif,5mi.widget wg,5ocketlearn plf,6werbuilder6 pbd,5reviewsystems.box box,6oteus.magazine mgz,5ublishare-delta-tree qps,5vi.ptid1 ptid,4quark.quarkxpress qxd qxt qwd qwt qxl qxb,4realvnc.bed bed,6cordare.musicxml mxl,m! musicxml,5ig.cryptonote cryptonote,5n-realmedia rm,g-vbr rmvb,5oute66.link66! link66,4sailingtracker.track st,5eemail see,6ma sema,7d semd,7f semf,5hana.informed.formdata ifm,ntemplate itp,jinterchange iif,jpackage ipk,5imtech-mindmapper twd twds,5maf mmf,7rt.teacher teacher,5olent.sdkm! sdkm sdkd,5potfire.dxp dxp,dsfs sfs,5qlite3 db sqlite sqlite3 db-wal sqlite-wal db-shm sqlite-shm,5tardivision.calc sdc,ihart sds,hdraw sda,himpress sdd,hmath sdf smf,hwriter sdw vor,n-global sgl,6epmania.package smzip,estepchart sm,5un.xml.calc sxc,g.template stc,cdraw sxd,g.template std,cimpress sxi,j.template sti,cmath sxm,cwriter sxw,i.global sxg,jtemplate stw,6s-calendar sus susp,5vd svd,5ymbian.install sis sisx,6ncml! xsm,a.dm+wbxml bdm,d! xdm,4tao.intent-module-archive tao,5cpdump.pcap pcap cap dmp,5mobile-livetv tmo,5rid.tpt tpt,7scape.mxs mxs,6ueapp tra,4ufdl ufd ufdl,5iq.theme utz,5majin umj,5nity unityweb,5oml! uoml,4vcx vcx,5isio vsd vst vss vsw vsdx vssx vstx vssm vstm,9nary vis,5sf vsf,4wap.sic sic,9lc slc,8wbxml wbxml,9mlc wmlc,bscriptc wmlsc,5ebturbo wtb,5olfram.player nbp,6rdperfect wpd,f5.1 wp5,5qd wqd,5t.stf stf,4xara xar,5fdl xfdl,4yamaha.hv-dic hvd,escript hvs,evoice hvp,bopenscoreformat osf,q.osfpvg! osfpvg,bsmaf-audio saf,gphrase spf,5ellowriver-custom-menu cmp,4zul zir zirz,5zazz.deck! zaz,1oicexml! vxml,0widget wgt,2nhlp hlp,1sdl!,2policy!,0x-123 wk,27z-compressed 7z,2abiword abw,3ce-compressed ace,3pple-diskimage dmg,3uthorware-bin aab x32 u32 vox,dmap aam,dseg aas,2bcpio bcpio,3ittorrent torrent,3lorb blb blorb,3zip bz,62 bz2 boz,2cbr cbr cba cbt cb7,4z cbz,3df cdf cda,4link vcd,3fs-compressed cfs,3hat chat,4ess-pgn pgn,3ompress z,4nference nsc,3pio cpio,3sh csh,2dgc-compressed dgc,3irector dir dxr cst cct cxt w3d fgd swa,3ms dms,3oom wad,3tbncx! ncx,5ook! dtb,5resource! res,3vi dvi,2eva eva,2font-bdf bdf,7ghostscript gsf,7linux-psf psf,7pcf pcf,7snf snf,7ttf ttf ttc,8ype1 pfa pfb pfm afm,3reearc arc,6mind mm,2gca-compressed gca,3lulx ulx,3numeric gnumeric,3o-sgf sgf,3ramps-xml gramps,5phing-calculator gcf,3tar gtar taz,2hdf hdf,3ttpd-eruby rhtml,8php phtml pht php,b-source phps,b3 php3,c-preprocessed php3p,b4 php4,b5 php5,2ica ica,3nfo info,4stall-instructions install,4ternet-signup ins isp,3phone iii,3so9660-image iso,2java-jnlp-file jnlp,3mol jmz,2killustrator kil,3rita kra krz,2latex latex,3yx lyx,3zh-compressed lzh lha,4x lzx,2maker frm fb fbdoc,3ie mie,3obipocket-ebook prc mobi,3s-application application,5installer msi,5shortcut lnk,5wmd wmd,5xbap xbap,4binder obd,4cardfile crd,5lip clp,4dos-program com exe bat dll,4mediaview mvb m13 m14,6tafile wmf wmz emf emz,5oney mny,4publisher pub,4schedule scd,4terminal trm,4write wri,2netcdf nc,3s-proxy-autoconfig pac dat,3wc nwc,3zb nzb,2object o,3z-application oza,2perfmon pma pmc pmr pmw,5l pm pl,3kcs12 p12 pfx,67-certificates p7b spc,creqresp p7r,3ython-code pyc pyo,2qgis qgs shp shx,3uicktimeplayer qtl,2redhat-package-manager rpm rpa,4search-info-systems ris,3uby rb,2sh sh,4ar shar,4ockwave-flash swf swfl,3ilverlight scr,d-app xap,3ql sql,3tuffit sit,9x sitx,3ubrip srt,3v4cpio sv4cpio,6rc sv4crc,2t3vm-image t3,3ar tar,3ex-gf gf,6pk pk,6tfm tfm,5info texinfo texi,3gif obj,3rash ~ % bak old sik,2ustar ustar,2wais-source src,3ingz wz,2x509-ca-cert crt der cer,3cf xcf,3fig fig,3liff! xlf,3pinstall xpi,3z xz,2zmachine z1 z2 z3 z4 z5 z6 z7 z8,1aml!,1cap-diff! xdf,1enc!,1html! xhtml xht,1ml xml xsl xsd xpdl,3-dtd dtd,1op!,1proc! xpl,1slt!,2pf!,1v! mxml xhvml xvml xvm,0yaml yaml yml,2ng,1in!,1nd.ms-pkipko pko,0zip;audio:0aac,1dpcm adp,1iff aiff aif aff,1mr,3-wb awb,1nnodex axa,0basic au snd,0flac,0midi mid midi kar rmi,1p4 mp4a,2eg mpga mpega mp3 m4a mp2a m2a m3a,4url m3u,0ogg oga ogg spx,1pus,0prs.sid sid,0s3m,1ilk sil,0vnd.dece.audio uva uvva,5igital-winds eol,5ra dra,5ts dts,7.hd dtshd,4lucent.voice lvp,4ms-playready.media.pya pya,4nuera.ecelp4800 ecelp4800,f7470 ecelp7470,f9600 ecelp9600,4rip rip,0wav,1ebm weba,0x-aiff aifc,2caf caf,2gsm gsm,2matroska mka,3s-wax wax,6ma wma,2pn-realaudio ram,e-plugin rmp,2realaudio ra,2sd2 sd2,1m;chemical:0x-alchemy alc,2cache cac cache,7-csf csf,5tvs-binary cbin cascii ctab,3dx cdx,3hem3d c3d,3if cif,3mdf cmdf,4l cml,3ompass cpa,3rossfire bsd,3sml csml csm,3tx ctx,3xf cxf cef,2embl-dl-nucleotide emb embl,2gamess-input inp gam gamin,4ussian-checkpoint fch fchk,cube cub,binput gau gjc gjf,blog gal,3cg8-sequence gcg,3enbank gen,2hin hin,2isostar istr ist,2jcamp-dx jdx dx,2kinemage kin,2macmolecule mcm,5romodel-input mmod,3dl-molfile mol,6rdfile rd,7xnfile rxn,6sdfile sd,6tgf tgf,3mcif mcif,3ol2 mol2,5conn-Z b,4pac-graph gpt,8input mop mopcrt zmt,8out moo,2ncbi-asn1 asn,b-ascii prt ent,cbinary val,2rosdal ros,2swissprot sw,2vamas-iso14976 vms,3md vmd,2xtel xtel,3yz xyz;font:0otf,0woff,42;image:0avif avif avifs,0bmp,0cgm,1is-cod cod,0g3fax g3,1if,0heic heif heic,0ief,0jpeg jpeg jpg jpe jfif jfif-tbnl jif,0ktx,0pcx,1jpeg pjpg,1ng,1rs.btif btif,0sgi,1vg! svg svgz,0tiff tiff tif,0vnd.adobe.photoshop psd,4dece.graphic uvi uvvi uvg uvvg,5jvu djvu djv,5wg dwg,5xf dxf,4fastbidsheet fbs,5px fpx,5st fst,5ujixerox.edmics-mmr mmr,lrlc rlc,4ms-modi mdi,7photo wdp,4net-fpx npx,4wap.wbmp wbmp,4xiff xif,0webp,0x-3ds 3ds,2adobe-dng dng,2canon-cr2 cr2,aw crw,3mu-raster ras,4x cmx,3oreldraw cdr,bpattern pat,btemplate cdt,7photopaint cpt,2epson-erf erf,2freehand fh fhc fh4 fh5 fh7,3uji-raf raf,2icns icns,4on ico,2jg art,3ng jng,2kodak-dcr dcr,8k25 k25,9dc kdc,2minolta-mrw mrw,2nikon-nef nef,2olympus-orf orf,2panasonic-raw raw rw2 rwl,3entax-pef pef ptx,3ict pic pct,3ortable-anymap pnm,bbitmap pbm,bgraymap pgm,bpixmap ppm,2rgb rgb,2sigma-x3f x3f,3ony-arw arw,7sr2 sr2,9f srf,2tga tga,2xbitmap xbm,3pixmap xpm,3windowdump xwd;message:0rfc822 eml mime mht mhtml nws;model:0iges igs iges,0mesh msh mesh silo,0vnd.collada! dae,4dwf dwf,4gdl gdl,5tw gtw,4mts mts,4usdz+zip usdz,4vtu vtu,1rml wrl vrml,0x3d+binary x3db x3dbz,4vrml x3dv x3dvz,3! x3dz;text:0cache-manifest manifest appcache,2lendar ics icz ifb,1ss,2v,0h323 323,1tml html htm shtml stm,0iuls uls,0javascript js,1son,0markdown md markdown mdown markdn,0n3,0plain txt text brf conf def list log in bas diff ksh,1rs.lines.tag dsc,0richtext rtx,0scriptlet sct wsc,1gml sgml sgm,0tab-separated-values tsv,1exmacs tm,1roff t tr roff man me ms,1urtle ttl,0uri-list uri uris urls,0vcard,1nd.curl curl,8.dcurl dcurl,9mcurl mcurl,9scurl scurl,4dvb.subtitle sub,4fly fly,5mi.flexstor flx,4graphviz gv,4in3d.3dml 3dml,9spot spot,4sun.j2me.app-descriptor jad,4wap.si si,9l sl,8wml wml,bscript wmls,0webviewhtml htt,0x-asm s asm,2bibtex bib,3oo boo,2c c h dic,3++hdr h++ hpp hxx hh,5src c++ cpp cxx cc,3omponent htc,2diff patch,3src d,2fortran f for f77 f90,2haskell hs,2java java,2literate-haskell lhs,2moc moc,2nfo nfo,2opml opml,2pascal p pas pp inc,3cs-gcd gcd,3ython py,2scala scala,3etext etx,3fv sfv,2tcl tcl tk,3ex tex ltx sty cls,2uuencode uu,2vcalendar vcs,5rd vcf;video:03gpp 3gp,42 3g2,0annodex axv,0dl,1v dif dv,0fli,0gl,0h261,33,34,0jpeg jpgv,2m jpm jpgm,0mj2 mj2 mjp2,1p2t ts,24 mp4 mp4v mpg4,2eg mpeg mpg mpe m1v m2v mp2 mpa mpv2,0ogg ogv,0quicktime qt mov,0vnd.dece.hd uvh uvvh,9mobile uvm uvvm,9pd uvp uvvp,9sd uvs uvvs,9video uvv uvvv,5vb.file dvb,4fvt fvt,4mpegurl mxu m4u,5s-playready.media.pyv pyv,4uvvu.mp4 uvu uvvu,4vivo viv,0webm,0x-f4v f4v,3lv flv,2la-asf lsf lsx,2m4v m4v,3atroska mpv mkv mk3d mks,3ng mng,3s-asf asf asx asr,5vob vob,5wm wm,7v wmv,7x wmx,6vx wvx,4video avi,2sgi-movie movie,3mv smv;x-conference:0x-cooltalk ice;x-world:0x-vrml vrm flr wrz xaf xof".split(";")){const r=e.indexOf(":"),n=e.slice(0,r);let a="";for(const s of e.slice(r+1).split(",")){const e=s.split(" "),r=a.slice(0,Number.parseInt(e[0][0],36))+e[0].slice(1);a=r;const o=r.replace(/!/g,"+xml"),i=e.length>1?e.slice(1):[o.split("+")[0]];for(const e of i)t[e]=n+"/"+o}}return t}()),xc)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{vn as BlobReader,En as BlobWriter,yn as Data64URIReader,bn as Data64URIWriter,Gi as ERR_ABORTED,Ja as ERR_AMBIGUOUS_ARCHIVE,Pa as ERR_BAD_FORMAT,La as ERR_CENTRAL_DIRECTORY_NOT_FOUND,qs as ERR_DUPLICATED_NAME,Za as ERR_ENCRYPTED,Qa as ERR_ENCRYPTED_CENTRAL_DIRECTORY,Xa as ERR_ENTRY_DATA_OUT_OF_BOUNDS,qi as ERR_ENTRY_EXISTS,Wa as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,_a as ERR_EOCDR_NOT_FOUND,Va as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,rn as ERR_HTTP_RANGE,nn as ERR_HTTP_RESOURCE_CHANGED,Kt as ERR_INVALID_AUTHENTICATION_CODE,Ce as ERR_INVALID_CODEC_DEFINITION,Be as ERR_INVALID_CODEC_MODULE,Vs as ERR_INVALID_COMMENT,Zs as ERR_INVALID_COMMENT_TYPE,Ye as ERR_INVALID_COMPRESSED_DATA,Ge as ERR_INVALID_CRC32,Ys as ERR_INVALID_DATE,Js as ERR_INVALID_ENCRYPTION_STRENGTH,Hs as ERR_INVALID_ENTRY_COMMENT,Ks as ERR_INVALID_ENTRY_COMMENT_TYPE,Gs as ERR_INVALID_ENTRY_NAME,to as ERR_INVALID_EXTRAFIELD,no as ERR_INVALID_EXTRAFIELD_DATA,ro as ERR_INVALID_EXTRAFIELD_DATA_TYPE,eo as ERR_INVALID_EXTRAFIELD_TYPE,es as ERR_INVALID_FILENAME_VALIDATION,$ as ERR_INVALID_FUNCTION_OPTION,ho as ERR_INVALID_GID,Eo as ERR_INVALID_LEVEL,rs as ERR_INVALID_MAX_APPENDED_DATA_SIZE,ct as ERR_INVALID_MAX_WORKERS,xo as ERR_INVALID_MSDOS_ATTRIBUTES,vo as ERR_INVALID_MSDOS_DATA,Zt as ERR_INVALID_PASSWORD,et as ERR_INVALID_PASSWORD_TYPE,Zi as ERR_INVALID_PASS_THROUGH,Hi as ERR_INVALID_READER_OPTIONS,tt as ERR_INVALID_SIGNAL,Ht as ERR_INVALID_SIGNATURE,So as ERR_INVALID_SIGNATURE_DATA,ts as ERR_INVALID_STRICTNESS,wo as ERR_INVALID_UID,Ke as ERR_INVALID_UNCOMPRESSED_SIZE,bo as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,go as ERR_INVALID_UNIX_ID_SIZE,yo as ERR_INVALID_UNIX_MODE,Xs as ERR_INVALID_VERSION,an as ERR_ITERATOR_COMPLETED_TOO_SOON,qa as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Ga as ERR_OVERLAPPING_ENTRY,Vi as ERR_READABLE_CONSUMED,Ne as ERR_RESERVED_COMPRESSION_METHOD,Ya as ERR_SPLIT_ZIP_FILE,fo as ERR_UNDEFINED_COMPRESSION_METHOD,po as ERR_UNDEFINED_READER,lo as ERR_UNDEFINED_UNCOMPRESSED_SIZE,uo as ERR_UNDETERMINED_SIZE,$a as ERR_UNSAFE_FILENAME,Ka as ERR_UNSUPPORTED_COMPRESSION,Oi as ERR_UNSUPPORTED_CONTEXT,Gt as ERR_UNSUPPORTED_CRYPTO_API,Ha as ERR_UNSUPPORTED_ENCRYPTION,$s as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,Qs as ERR_UNSUPPORTED_ENCRYPTION_USDZ,co as ERR_UNSUPPORTED_FORMAT,ns as ERR_UNSUPPORTED_UINT64,wr as ERR_WORKER_STARTUP_TIMEOUT,sn as ERR_WRITER_NOT_INITIALIZED,Ki as ERR_ZIP_CRYPTO_LAST_MOD_DATE,mo as ERR_ZIP_NOT_EMPTY,Vn as HttpRangeReader,qn as HttpReader,wn as Reader,Kn as SplitDataReader,Yn as SplitDataWriter,Sn as TextReader,kn as TextWriter,Zn as Uint8ArrayReader,Hn as Uint8ArrayWriter,hn as Writer,$i as ZipDirectoryEntry,Ji as ZipEntry,tc as ZipFS,Qi as ZipFileEntry,ds as ZipReader,fs as ZipReaderStream,Fo as ZipWriter,Oo as ZipWriterStream,gt as configure,Ri as createBlobTempStream,ki as createOPFSTempStream,Ui as createSyncAccessHandleTempStream,ec as fs,vc as getMimeType,Le as registerCodec,zt as resetConfiguration,Li as terminateWorkers,qe as unregisterCodec};
1
+ const t=4294967295,e=65535,r=255,n=67324752,a=134695760,s=a,o=84233040,i=33639248,c=101010256,l=101075792,d=117853008,u=46,f=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,U="undefined",T="function",I="object",j="string",C=new Uint8Array,M="password",N="rawPassword",_="passThrough",B="signal",P="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!=T)throw new Error(tt);return t}function at(t){if(t&&(typeof t.addEventListener!=T||"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!=U&&navigator.hardwareConcurrency&&(dt=navigator.hardwareConcurrency)}catch{}const ut={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!=U&&CompressionStream,DecompressionStream:typeof DecompressionStream!=U&&DecompressionStream},ft="maxWorkers",pt=["chunkSize",ft,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],mt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],wt=["baseURI","wasmURI","workerURI","useCompressionStream","useWebWorkers","transferStreams",...pt,...mt],ht={...ut};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==ft&&(!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(ut,e),Object.assign(ht,e)}function kt(){for(const t of wt)delete ht[t];Object.assign(ht,ut)}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,Ut,Tt,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]^Tt[r>>>8&255]^Ut[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 Bt 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 Pt(t){if(typeof TextEncoder==U){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let r=0;r<e.length;r++)e[r]=t.charCodeAt(r);return e}return(new TextEncoder).encode(t)}const 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.U=t.U):e.reset()}reset(){const t=this;return t.F=t.R.slice(0),t.O=[],t.U=0,t}update(t){const e=this;"string"==typeof t&&(t=Lt.T.A(t));const r=e.O=Wt.concat(e.O,t),n=e.U,a=e.U=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.U/4294967296)),e.push(0|t.U);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),u=new DataView(d);let f=0;const p=Wt;for(e=Lt.bytes.A(e),l=1;f<(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;f<(a||1)&&i<s.length;i++)u.setInt32(f,s[i]),f+=4}return d.slice(0,n/8)},N:class{constructor(t){const e=this,r=e.B=qt,n=[[],[]];e.P=[new r,new r];const a=e.P[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.P[0].update(n[0]),e.P[1].update(n[1]),e.W=new r(e.P[0])}reset(){const t=this;t.W=new t.B(t.P[0]),t.L=!1}update(t){this.L=!0,this.W.update(t)}digest(){const t=this,e=t.W.j(),r=new t.B(t.P[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!=U&&typeof crypto.getRandomValues==T,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!=U,ce=ie&&crypto.subtle,le=ie&&typeof ce!=U,de=Lt.bytes,ue=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 u=16843009*l^65537*c^257*i^16843008*d,f=257*a[s]^16843008*s;for(let r=0;r<4;r++)t[r][d]=f=f<<24^f>>>8,e[r][s]=u=u<<24^u>>>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 u,f,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++)u=o[m>>>24]^i[w>>16&255]^c[h>>8&255]^l[255&y]^r[b],f=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=u,w=f,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++],u=m,m=w,w=h,h=y,y=u;return a}},fe=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==T,we=ie&&le&&typeof ce.deriveBits==T;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 fe(new ue(i),Array.from(oe)),st:new pe(c)}),l}function Ee(t,e){return e===F?Pt(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]=Ue(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]=Ue(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+Te(n)),134775813)+1),t.lt.append([r>>>24]);const a=~t.lt.get();t.keys=[n,r,a]}function Ue(t){const e=2|t.keys[2];return Te(Math.imul(e,1^e)>>>8)}function Te(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!=T||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",Be="Invalid codec module",Pe=[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(Pe.includes(r))throw new Error(_e);const c=typeof s==T||typeof o==T;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!=T&&typeof n!=T)throw new Error(Be);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:u,compressionMethod:f,inputSize:p}=t,m=this;let w,h,y,b=super.readable;const g=u&&Ge(u),x=c&&a&&!d&&!g&&(!s||i)&&Boolean(o&&n);if(s&&!i||!c||x||(w=new Bt,b=ur(b,w)),a)if(g)b=fr(b,lr(g.CompressionStream,u,{level:l,chunkSize:e,compressionMethod:f,uncompressedSize:p}));else if(x)y=new nr,b=fr(b,new n(tr)),b=ur(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=fr(b,e),b=ur(b,new nr)}s&&(i?b=ur(b,new Ae(t)):(h=new ye(t),b=ur(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:u,compressionMethod:f,rawBitFlag:p,outputSize:m}=t;let w,h,y=super.readable;if(s&&(a?y=ur(y,new ke(t)):(h=new he(t),y=ur(y,h))),c){const t=u&&Ge(u);if(t)y=fr(y,lr(t.DecompressionStream,u,{chunkSize:e,compressionMethod:f,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,f();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)}}),u=new TransformStream({transform(t,e){n.append(t),i+=t.length,i>=r?s():c&&f(),e.enqueue(t)},cancel(t){o(t)}});return t=ur(t,d),ur(t=fr(t,e),u);function f(){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 Bt,y=ur(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=ur(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 fr(t,i)}function ur(t,e){return je(t).pipeThrough(e)}function fr(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.ut)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,ft:s,useWebWorkers:o,transferStreams:i,workerURI:c,createWorker:l},d){const{signal:u}=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:u}),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!=U),(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.ut&&!ir(n))try{await vr(a)}catch{}}else try{await vr(a)}catch{r&&!r.ut||(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"},Ur="error";let Tr,Ir,jr,Cr=!0;try{Cr=typeof structuredClone==T&&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 Br(t,e,r,n,a=!0){const{createWorker:s}=r;let o,i,c;if(s)o=s();else if(Ir===F||Tr!==t){const s=typeof t==T;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 Br(t,e,r,n,!1);if(n)throw a;return Br(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 Br(t,e,r,!1,a);throw s}}Tr=t,Ir=i,jr=c}else o=new Worker(Ir,jr);return o.addEventListener("message",t=>{r.vt=!0,Pr(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:u,ht:f}=e,p=()=>e.ht!=f;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||u())}}(t,r)}),o.addEventListener(Ur,t=>Wr(t,r)),o.addEventListener("messageerror",t=>Wr(t,r)),o}function Pr(t){const{kt:e}=t;e&&(clearTimeout(e),t.kt=null)}function Wr(t,e){t.preventDefault&&t.preventDefault(),Pr(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||Ur);r||(o=Object.assign(new Error(o.message||Ur),{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==T&&(s=s());try{o=Br(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:u}=e;!t.vt&&Number.isFinite(u)&&u>=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),u));try{const t=await a;return await f(),await c,t}catch(t){await f(),l();try{await c}catch{}throw t}async function f(){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:u,codecURI:f}=r,{workerURI:p,createWorker:m,maxWorkers:w}=n;u&&(f&&(r.codecURI=function(t,e){try{return new URL(t,e).toString()}catch{return t}}(f,n.baseURI)),await async function(t,e){!Le.has(t)&&e&&Ke(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */e)))}(u,r.codecURI)),e.transferStreams=!u&&(a||a===F&&n.transferStreams);const h=!(i||c||l||d),y=u===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.Ut=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{Ut:e}=t;e&&(clearTimeout(e),t.Ut=null)}const tn="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".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",un="Range",fn="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,{Tt:t,It:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{It:r,Tt: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(),Un(this,t,e)}async init(){await Tn(this,Zn,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,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(fn,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,Pn)}}class On extends bn{constructor(t,e){super(),Un(this,t,e)}async init(){await Tn(this,Vn,Wn),super.init()}readUint8Array(t,e){return In(this,t,e,Vn,Wn)}}function Un(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 Tn(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==U||a)){const n=await e(fn,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==f&&(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-f&&r==f)return i;if(e>=c||0===r)return C;{e+r>c&&(r=c-e);const a=await n(fn,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{Bt:t.get("Etag")||F,lastModified:t.get("Last-Modified")||F}}function Mn(t,e){const{checkResourceChanges:r,Pt:n}=t;r&&!n&&206==e.status&&(t.Pt=Cn(e))}function Nn(t,e){const{checkResourceChanges:r,Pt: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({},Bn(t),{[un]:pn+"="+(e<0?e:e+"-"+(e+r-1))})}function Bn({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Pn(t){await Ln(t,Zn)}async function Wn(t){await Ln(t,Vn)}async function Ln(t,e){const r=await e(fn,t,Bn(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,Bn(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==T)&&(t={readable:je(t)}),t}}class $n{constructor(t){return t.writable===F&&typeof t.next==T&&(t=new Jn(t)),(t instanceof WritableStream||typeof t.getWriter==T)&&(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",ua="offset",fa="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",Ua="directory",Ta="executable",Ia="compressionMethod",ja="signature",Ca="extraField",Ma="unixMode",Na="setuid",_a="setgid",Ba="sticky",Pa=[sa,oa,la,da,pa,ma,ia,ca,wa,ha,ya,ba,ua,fa,ga,xa,Ea,va,Sa,za,ka,Aa,Ra,Da,Fa,Oa,Ua,Ta,"symlink",Ia,ja,"crc32",Ca,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",Ma,"unixExternalUpper",Na,_a,Ba,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class Wa{constructor(t){Pa.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",us="unknown zip64 extensible data",fs="wrapped entries count",ps="appended data",ms="prepended data",ws="trailing central directory data",hs="duplicate filename",ys="mismatched zip64 end of central directory record",bs="mismatched local file header (general purpose bit flag)",gs="mismatched local file header (compression method)",xs="mismatched local file header (crc32 or sizes)",Es=/^[a-zA-Z]:/,vs="utf-8",Ss="cp437",zs=[[la,t],[da,t],[ua,t],[fa,e]],ks={[e]:{Gt:co,bytes:4},[t]:{Gt:lo,bytes:8}},As=BigInt(Number.MAX_SAFE_INTEGER);class Rs{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<f)throw new Error(La);const c=s.warnings=[],w=Zs(n,s.options),h=w==J,y=w!=$,b=Gs(ro(s,n,G),w),g=function(t,e){if(t===F)return e;if(!qs(t))throw new Error(as);return t}(ro(s,n,"filenameValidation"),w),x=ro(s,n,"normalizeFilename"),{Yt:A,Xt:R}=await Ks(o,y,b);if(!A)throw await async function(t){return await Ls(t)==a}(o)?new Error(Ja):new Error(qa);y&&R>1&&eo("multiple end of central directory records");const D=Dt(A);let O=co(D,12),U=co(D,16);const T=A.offset,I=io(D,20),j=T+f+I,M=o.size-j;M>b&&eo(ps),M>0&&to(c,ps);let N=io(D,4);const _=o.Zt||0;let B,P,W,L,q=io(D,6),Z=io(D,10),V=0,H=m;const K=U==t||O==t||Z==e||q==e;if(U!=t&&q!=e&&(U+=Ws(o,q)),K){const r=A.offset>=p?await na(o,A.offset-p,p):C,n=Dt(r);if(r.length==p&&co(n,0)==d){U=Ws(o,co(n,4))+lo(n,8);let r=await na(o,U,m),a=Dt(r);const s=A.offset-p-m;if((r.length<m||co(a,0)!=l)&&U!=s&&s>=0){const t=U;U=s,U>t&&(V=U-t),r=await na(o,U,m),a=Dt(r)}if(r.length<m||co(a,0)!=l)throw new Error(Za);if(P=!0,W=lo(a,4)>44,W){const t=Math.min(lo(a,4)-44,o.size-U-m);t>0&&(H+=t,L=function(t){const e={rawExtensibleData:t};if(t.length>=28){const r=Dt(t),n=io(r,26);Object.assign(e,{compressionMethod:io(r,0),compressedSize:lo(r,2),uncompressedSize:lo(r,10),encryptionAlgorithm:io(r,18),bitLength:io(r,20),flags:io(r,22),hashAlgorithm:io(r,24),hashData:t.subarray(28,28+n)})}return e}(await na(o,U+m,t)))}N==e?N=co(a,16):N!=co(a,16)&&$s(h,c,ys),q==e?q=co(a,20):q!=co(a,20)&&$s(h,c,ys),Z==e?Z=lo(a,32):Z!=lo(a,32)&&$s(h,c,ys),O==t?O=lo(a,40):O!=lo(a,40)&&$s(h,c,ys),U=Ws(o,q)+lo(a,48)+V}}let Q=O;const tt=A.offset-(P?H+p:0);if(U>=o.size&&(V=o.size-U-O-f,U=o.size-O-f),_!=N)throw new Error(Ja);if(U<0)throw new Error(La);let et=0,rt=await na(o,U,O),nt=Dt(rt);if(O){if(rt.length<4)throw new Error(La);const t=tt-O;if(U!=t&&q==N){let e=!(co(nt,et)==i||Boolean(L&&L.compressedSize)||Us(nt));if(!e&&t>=0&&t+4<=o.size&&(e=co(Dt(await na(o,t,4)),0)==i),e){const e=U;U=t,U>e&&(V+=U-e),rt=await na(o,U,O),nt=Dt(rt)}}}const at=tt-U;if(O!=at&&at>=0&&q==N&&(O=at,rt=await na(o,U,O),nt=Dt(rt)),U<0||U>=o.size)throw new Error(La);s.directoryOffset=U,s.directoryLength=Q;const st=no(s,n,"decryptCentralDirectory");let ot,it;if(st&&Z&&rt.length>=4&&co(nt,0)!=i&&(W||Us(nt))){const t=function(t,e,r){const n=t&&t.compressedSize?t.compressedSize:e;return n>0&&n<=r?n:r}(L,Q,rt.length);it=rt.subarray(t),rt=await st(rt.subarray(0,t),L),nt=Dt(rt),Q=rt.length,ot=!0}L&&!ot&&(rt.length<4||co(nt,0)==i)&&to(c,us),B=U;const ct=ro(s,n,"filenameEncoding"),lt=ro(s,n,"commentEncoding"),dt=new Set;let ut,ft=-1;const pt=!h&&!P;!Z&&pt&&(Z=Ts(nt,rt,et),Z&&to(c,fs));for(let t=0;t<Z;t++){const a=new Os(o,s.options);if(et+u>rt.length||co(nt,et)!=i){if(0==t&&!ot&&(W||Us(nt)))throw new Error(es);throw new Error(Va)}js(a,nt,et+6);const l=Boolean(a.bitFlag.languageEncodingFlag),d=et+u,f=d+a.filenameLength,p=f+a.extraFieldLength,m=io(nt,et+4),w=!(m>>8),h=m>>8==3,y=rt.subarray(d,f),b=io(nt,et+32),A=p+b,R=rt.subarray(p,A),D=l,O=l,U=co(nt,et+38),T=U&r,I={readOnly:Boolean(1&T),hidden:Boolean(2&T),system:Boolean(4&T),directory:Boolean(16&T),archive:Boolean(32&T)},j=co(nt,et+42),C=no(s,n,"decodeText")||rn,M=D?vs:ct||Ss,N=O?vs:lt||Ss;let _=C(y,M,Y);if(_===F&&(_=rn(y,M)),x){const t=x(_);t!==F&&(_=t)}if(Hs(_,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:ot,versionMadeBy:m,msDosCompatible:w,zip64:!1,compressedSize:0,uncompressedSize:0,Qt:b,offset:j,diskNumberStart:io(nt,et+34),internalFileAttributes:io(nt,et+36),externalFileAttributes:U,msdosAttributesRaw:T,msdosAttributes:I,rawFilename:y,filenameUTF8:D,commentUTF8:O,rawExtraField:rt.subarray(f,p),rawComment:R,filename:_,comment:P}),Cs(a,a,nt,et+6)&&to(c,ds,_),a.offset+=V;const L=Ws(o,a.diskNumberStart)+a.offset;B=Math.min(L,B),L<ft&&to(c,is,_),ft=L,(a.version&r)>63&&to(c,cs,_),32&~a.rawBitFlag||to(c,ls,_),dt.has(a.filename)&&(ut=!0),dt.add(a.filename);const q=a.externalFileAttributes>>16&e;a.unixMode===F&&16877&q&&(a.unixMode=q);const H=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:H,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 at=new Wa(a);if(at.getData=(t,e)=>a.getData(t,at,s.Kt,e),at.arrayBuffer=async t=>{const e=new TransformStream,r=Ce(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await a.getData(e,at,s.Kt,t),r},et=A,t==Z-1&&pt){const t=Ts(nt,rt,et);t&&(Z+=t,to(c,fs))}const{onprogress:st}=n;if(st)try{await st(t+1,Z,new Wa(a))}catch{}yield at}let mt=et,wt=Is(rt.subarray(et))||(ot?Is(it):F);if(!wt&&!ot){const t=U+et,e=Math.min(tt-t,65541);e>=6&&(wt=Is(await na(o,t,e)))}wt&&(s.digitalSignature=wt,mt=et+6+wt.length),(et!=Q&&mt!=Q||!ot&&et!=O&&mt!=O)&&$s(h,c,ws),ut&&$s(h,c,hs);const ht=ro(s,n,"extractPrependedData"),yt=ro(s,n,"extractAppendedData"),bt=(h||ht)&&Z&&4==B&&await async function(t){const e=await Ls(t);return e==a||808471376==e}(o)?4:0;return h&&(V||Z&&B>bt)&&eo(ms),(V||Z&&B>4)&&to(c,ms),ht&&(s.prependedData=B>bt?await na(o,bt,B-bt):C),s.comment=I?await na(o,T+f,I):C,yt&&(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 Ds{constructor(t={}){const{readable:e,writable:r}=new TransformStream,n=new Rs(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 Fs(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<f)return!1;const r=Zs(e,{}),n=r!=$,a=Gs(e[G],r),{Yt:s,Xt:o}=await Ks(t,n,a);if(!s||r==J&&o>1)return!1;const i=io(Dt(s),20),c=s.offset+f+i;return t.size-c<=a}let Os=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:u,diskNumberStart:f,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=Ws(l,f)+u,R=await na(l,k,A),D=Dt(R);let O=ro(i,o,M),U=ro(i,o,N);const T=ro(i,o,_);if(st(O,U),O=O&&O.length&&O,U=U&&U.length&&U,p&&99!=p.originalCompressionMethod)throw new Error(Xa);if(R.length<A||co(D,0)!=n)throw new Error(Ha);js(S,D,4);const{extraFieldLength:I,filenameLength:j}=S,Z=S.dataOffset=k+A+j+I,V=ro(i,o,"checkLocalDirectory"),H=Zs(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),Cs(i,S,D,4,!0)&&to(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])||$s(o,a,"mismatched local file header (filename)"),(2057&e.rawBitFlag)!=(2057&t.rawBitFlag)&&$s(o,a,bs),e.compressionMethod!=t.compressionMethod&&$s(o,a,gs),e.bitFlag.dataDescriptor||i||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||$s(o,a,xs)}(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&&!T,nt=rt&&!p;if(T||(e.zipCrypto=nt),rt&&!(64&~S.rawBitFlag))throw new Error(Ya);const ot=T?F:Ve(w);if(0!=w&&8!=w&&9!=w&&!ot&&!T)throw new Error(Xa);if(rt){if(!nt&&(p.strength<1||p.strength>3))throw new Error(Ya);if(!O&&!U)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(ro(i,o,B)),dt=ro(i,o,"checkPasswordOnly");let ut=ro(i,o,"checkOverlappingEntry");const ft=ro(i,o,"checkOverlappingEntryOnly");ft&&(ut=!0);const{onstart:pt,onprogress:mt,onend:wt}=o,ht=0!=w&&!T,bt=T?E:x,gt=9==w;let xt=ro(i,o,W);gt&&(xt=!1);const Et=ro(i,o,"checkCrc32"),vt=(Et===F?ro(i,o,"checkSignature"):Et)&&!T&&(!rt||nt||p&&1==p.vendorVersion),St={options:{codecType:wr,password:O,rawPassword:U,zipCrypto:nt,encryptionStrength:p&&p.strength,checkCrc32:vt,checkAuthenticationCode:ro(i,o,"checkAuthenticationCode"),passwordVerification:nt&&(v?g>>>8&r:b>>>24&r),outputSize:bt,crc32:b,compressed:ht,encrypted:rt,useWebWorkers:ro(i,o,P),useCompressionStream:xt,transferStreams:ro(i,o,L),deflate64:gt,format:ot?ot.format:F,codecURI:ot?ot.codecURI:F,compressionMethod:w,rawBitFlag:y,checkPasswordOnly:dt},config:c,ft:{signal:lt,size:it,onstart:pt,onprogress:mt,onend:wt}};let zt,kt;ut&&await async function({reader:t,$t:e,index:r,offset:n,crc32:a,compressedSize:o,uncompressedSize:i,dataOffset:c,dataDescriptor:l,extraFieldZip64:d,Kt:u}){let f=0;if(l&&(f=d?20:12),f){const r=await na(t,c+o,f+4),n=Dt(r);let l=r.length==f+4&&co(n,0)==s;if(l){const t=Ps(n,4,d);(e.encrypted&&!e.zipCrypto||t.crc32==a)&&t.compressedSize==o&&t.uncompressedSize==i?f+=4:l=!1}if(r.length>=f){const t=Ps(n,l?4:0,d);t.signature=l,e.localDirectory.dataDescriptor=t}}const p={start:n,end:c+o+f,$t:e};for(const[t,e]of u)if(t!=r&&p.start<e.end&&e.start<p.end){const t=new Error(Qa);throw t.overlappingEntry=e.$t,t}u.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(!ft){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)||!ro(i,o,q))&&zt&&!zt.locked){const t=zt.getWriter();if(kt)try{await t.abort(kt)}catch{}else await t.close()}}return dt||ft?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==co(t,r))return!0;return!1}function Ts(t,e,r){let n=0;for(;r+u<=e.length&&co(t,r)==i;)r+=u+io(t,r+28)+io(t,r+30)+io(t,r+32),n++;return n%65536?0:n}function Is(t){if(t.length>=6){const e=Dt(t);if(co(e,0)==o){const r=io(e,4);if(6+r<=t.length)return t.subarray(6,6+r)}}}function js(t,e,r){const n=t.rawBitFlag=io(e,r+2),a=!(1&~n),s=co(e,r+6);Object.assign(t,{encrypted:a,version:io(e,r),bitFlag:{level:(6&n)>>1,dataDescriptor:!(8&~n),languageEncodingFlag:(n&x)==x},rawLastModDate:s,lastModDate:ao(s),filenameLength:io(e,r+22),extraFieldLength:io(e,r+24)})}function Cs(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=io(i,c),e=io(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=io(r,n+4);Object.assign(e,{signature:co(r,n+10),crc32:co(r,n+10),compressedSize:co(r,n+14),uncompressedSize:co(r,n+18)});const u=o.get(1);u&&(function(t,e){e.zip64=!0;const r=Dt(t.data),n=zs.filter(([t,r])=>e[t]==r),a=n.reduce((t,[,e])=>t+ks[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=ks[i];e[o]=t[o]=c.Gt(r,s),s+=c.bytes}}(u,e),e.extraFieldZip64=u);const f=o.get(28789);f&&(Ms(f,sa,oa,e,t),e.extraFieldUnicodePath=f);const p=o.get(25461);p&&(Ms(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=oo(n,4);Object.assign(t,{vendorVersion:oo(n,0),vendorId:oo(n,2),strength:a,originalCompressionMethod:r,compressionMethod:io(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&&(Ns(x,e),e.extraFieldPkwareUnix=x);const E=o.get(22613);E&&(Ns(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=io(r,a),s=io(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:so(a),lastAccessDate:so(s),creationDate:so(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=_s(S,e,!1),e.extraFieldUnix=S),!z){const t=o.get(b);t&&(_s(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=oo(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=co(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 Ms(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=co(s,1),l=oo(s,0);Object.assign(t,{version:l,[e]:rn(t.data.subarray(5)),valid:1==l&&!a.bitFlag.languageEncodingFlag&&c==co(i,0)}),t.valid&&(n[e]=t[e],n[e+"UTF8"]=!0)}function Ns(t,e){if(t.data.length<8)return;const r=Dt(t.data),n={lastAccessDate:new Date(1e3*(0|co(r,0))),lastModDate:new Date(1e3*(0|co(r,4)))};t.data.length>=12&&(n.uid=io(r,8),n.gid=io(r,10)),Object.assign(t,n),Object.assign(e,n)}function _s(t,e,r){try{const n=Dt(t.data);let a,s;if(r){let e=0;const r=oo(n,e++),o=oo(n,e++);a=Bs(t.data.subarray(e,e+o)),e+=o;const i=oo(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=io(n,0),s=io(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 Ps(t,e,r){const n=co(t,e);let a,s;return r?(a=lo(t,e+4),s=lo(t,e+12)):(a=co(t,e+4),s=co(t,e+8)),{crc32:n,compressedSize:a,uncompressedSize:s}}function Ws(t,e){return t.Ht?t.Ht(e):0}async function Ls(t){return co(Dt(await na(t,0,4)))}function qs(t){return t===J||t===Q||t===$}function Zs(t,e){return Vs(t,Vs(e,Q))}function Vs(t,e){const r=t.strictness;if(r!==F){if(!qs(r))throw new Error(ns);return r}const n=t.checkAmbiguity;return n===F?e:n?J:e==$?$:Q}function Hs(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("\\\\")||Es.test(t))||e==J&&(r.includes(".")||r.includes(""))}function Gs(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 Ks(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,u,p]of Ys(t,a)){const a=io(r,u+20);if(p+f+a==n){const a=await Js(t,r,l,u,p,n,s);if(2==a){if(o||(o=Xs(d,u,p)),c++,!e||c>1)break}else 1!=a||i||(i=Xs(d,u,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 Ys(t,a)){const a=Xs(c,l,d);s||(s=a);const u=await Js(t,e,i,l,d,n,r);if(2==u)return a;1!=u||o||(o=a)}return o||s}(t,r,s)),{Yt:o,Xt:c}}async function*Ys(t,e){const r=t.size-e,n=await na(t,r,e),a=Dt(n);for(let t=n.length-f;t>=0;t--)co(a,t)==c&&(yield[a,r,n,t,r+t])}function Xs(t,e,r){return{offset:r,buffer:t.slice(e,e+f).buffer}}async function Js(r,n,a,s,o,c,l){const u=io(n,s+10),f=co(n,s+12),m=co(n,s+16);if(u==e||f==t||m==t)return await Qs(r,n,a,o-p,c,l)==d?2:0;if(!u&&!f)return 1;const w=io(n,s+6);for(const t of[o-f,Ws(r,w)+m])if(await Qs(r,n,a,t,c,l)==i)return 2;return 0}async function Qs(t,e,r,n,a,s){return n<0||n+4>a?F:n>=r?co(e,n-r):s.count>0?(s.count--,co(Dt(await na(t,n,4)),0)):F}function $s(t,e,r){t?eo(r):to(e,r)}function to(t,e,r){if(!t.some(t=>t.reason==e)){const n={reason:e};r!==F&&(n.filename=r),t.push(n)}}function eo(t){const e=new Error(ts);throw e.reason=t,e}function ro(t,e,r){return e[r]===F?t.options[r]:e[r]}function no(t,e,r){return nt(ro(t,e,r))}function ao(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 so(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function oo(t,e){return t.getUint8(e)}function io(t,e){return t.getUint16(e,!0)}function co(t,e){return t.getUint32(e,!0)}function lo(t,e){const r=t.getBigUint64(e,!0);if(r>As)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:hs,WARNING_MALFORMED_EXTRA_FIELD:ds,WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG:bs,WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD:gs,WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES:xs,WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY:ys,WARNING_PREPENDED_DATA:ms,WARNING_TRAILING_CENTRAL_DIRECTORY_DATA:ws,WARNING_UNKNOWN_VERSION:cs,WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA:us,WARNING_UNSORTED_CENTRAL_DIRECTORY:is,WARNING_WRAPPED_ENTRIES_COUNT:fs,ZipReader:Rs,ZipReaderStream:Ds,isZipFile:Fs});const fo="File already exists",po="Zip file comment exceeds 64KB",mo="Invalid zip file comment (must be a Uint8Array)",wo="File entry comment exceeds 64KB",ho="Invalid file entry comment (must be a string)",yo="Invalid date (must be a valid Date instance)",bo="File entry name exceeds 64KB",go="Version exceeds 65535",xo="The strength must equal 1, 2, or 3",Eo="Encryption is not supported in USDZ files",vo="Encryption is not supported when the 'passThrough' option is set",So="Invalid extra field (must be a Map)",zo="Invalid extra field type (must be integer 0..65535)",ko="Invalid extra field data (must be a Uint8Array)",Ao="Extra field data exceeds 64KB",Ro=-2147483648,Do=2147483647,Fo=BigInt(0),Oo=BigInt("0x7fffffffffffffff"),Uo="Zip64 is not supported (set the 'zip64' option to 'true')",To="Undefined uncompressed size",Io="Undefined compression method",jo="Undetermined size",Co="Undefined reader",Mo="Zip file not empty",No="Invalid uid (must be integer 0..2^32-1)",_o="Invalid gid (must be integer 0..2^32-1)",Bo="Invalid UNIX mode (must be integer 0..65535)",Po="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",Wo="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",Lo="Invalid msdosAttributesRaw (must be integer 0..255)",qo="Invalid msdosAttributes (must be an object with boolean flags)",Zo="Invalid level (must be integer 0..9)",Vo="Signature data exceeds 64KB",Ho=new Uint8Array([7,0,2,0,65,69,3,0,0]),Go="infozip",Ko="unix";let Yo=0;const Xo=[];class Jo{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 ti(this,async function(t,e){if(t.re.size)throw new Error(Mo);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: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(fo);n.add(t),c.push(t)}),e.le=!0;const{de:u}=e;e.de=new Promise(t=>l=()=>{e.le=!1,t()}),await u,e.te&&(delete e.te,await async function(t){return Dt(await na(t,0,4)).getUint32(0,!0)==a}(t)||(await Si(e.writer,Ei()),e.offset+=4));const f=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)=>xi(e,t)-xi(e,r));let i=0;for(const r of o){const n=xi(e,r);await bi(t,e,i,n-i),wi(a,await gi(e,n))&&await a.closeDisk(),s.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=>s.set(t,{offset:a+xi(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:u}=t;const{level:p,languageEncodingFlag:m,dataDescriptor:w}=a;u=yi(u||C),t.extraFieldAES&&(d=99);const h=Li(u),y=Boolean(l)&&l.uncompressedSize!==F,b=Boolean(l)&&l.compressedSize!==F,g=-7&Zi(p,m,w,o,d)|p<<1,{ue:x,fe: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&&Bi(E,10,v);const{offset:S,diskNumberStart:z}=f.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:u,Ee:C,extendedTimestamp:!1,ue:x,fe: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(Fi(e,s=Object.assign({},s),Ua)&&!n.endsWith(k)&&(n+=k),e.re.has(n))throw new Error(fo);e.re.add(n),Yo<yt().maxWorkers?Yo++:await new Promise(t=>Xo.push(t));try{return await async function(e,n,a,s){const o=ni(e,n,s);({name:n}=o);const i=ai(e,n,s),{comment:c}=i,l=s[Ca];let d;e.ee.set(n,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,Ua))throw new Error(Co);let a;return e&&(e=new Qn(e),await ea(e),({size:a}=e)),Object.assign({reader:e},oi(t,Boolean(e),a,r,n))}(e,a,i,s);({reader:a}=l);const u=mi(e.writer),f=pi(e.writer),p=ii(s=Object.assign({},s,o.ve,i.ve,l.ve,{signature:s[ja],crc32:s.crc32===F?s[ja]:s.crc32,offset:e.offset-u,diskNumberStart:f,[H]:e.options[H]})),m=di(s),w=Li(p.Se,m.ze);d=await async function(e,n,a,s,o){const{ee:i,writer:c}=e,{keepOrder:l,dataDescriptor:d,ke:u,signal:f}=o,{Ae:p}=s,m=e.options[H],w=e.ie;let h,y,b,g,x,E,v,S={},z=0;i.set(n,S),e.ie=S;try{let y;l&&(y=w&&w.Re,S.Re=new Promise(t=>b=t)),o.bufferedWrite||!l||e.le||e.oe||!d&&!u?(h=!0,e.oe++,v=o.createTempStream?await o.createTempStream():new TransformStream(F,F,{highWaterMark:O}),v.size=0,await ea(c)):(v=c,await k()),await ea(v);const D=mi(c);e.te&&!h&&await vi(e,c),m&&!h&&ci(s,e.offset-D);const{Se:U}=p;h||(await y,await R());const T=pi(c),I=hi(e,c);if(S.diskNumberStart=T,h||(x=!0,E=c.size,await Si(v,U)),S=await async function(e,n,{diskNumberStart:a,Re:s},o,i,c){const{Ae:l,De:d,Fe:u}=o,{ue:f,fe:p,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,he:x,Oe:E,be:v,Ue:S,ge:z,xe:k,ye:A}=l,{ze:R}=d,{rawFilename:D,lastAccessDate:O,creationDate:U,password:T,rawPassword:I,level:j,zip64:C,me:M,pe:N,zipCrypto:_,dataDescriptor:B,directory:P,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:ut,msdosAttributes:ft,useCompressionStream:pt,passThrough:mt,format:wt,codecURI:ht}=c,yt={Re:s,versionMadeBy:L,zip64:C,directory:Boolean(P),executable:Boolean(W),filenameUTF8:!0,rawFilename:D,commentUTF8:!0,rawComment:q,he:x,Oe: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:ut,msdosAttributes:ft};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:T,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,ft:{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,Ae:n,De:a},{zip64:s,zipCrypto:o,passThrough:i,dataDescriptor:c}){const{fe:l,encrypted:d}=n,{Te:u,Ie:f}=a;d&&!o&&!i||t===F||(Bi(l,10,t),c&&Bi(u,f,t)),s?c&&(Pi(u,f+4,BigInt(e)),Pi(u,f+12,BigInt(r))):(Bi(l,14,e),Bi(l,18,r),c&&(Bi(u,f+4,e),Bi(u,f+8,r)))}({crc32:bt,compressedSize:xt,uncompressedSize:gt,Ae:l,De:d},c),B&&await Si(n,R),Object.assign(yt,{uncompressedSize:gt,compressedSize:xt,lastModDate:m,rawLastModDate:w,creationDate:U,lastAccessDate:O,encrypted:Boolean(h),zipCrypto:Boolean(_),size:u+xt,compressionMethod:g,version:b,ue:f,fe:p,signature:bt,crc32:!h||_||mt?bt:F,Ue:S,me:M,pe:N}),yt}(a,v,S,s,yt(),o),h||(x=!1),i.set(n,S),S.filename=n,h){if(await Promise.all([v.writable.getWriter().close(),y]),await k(),e.te&&await vi(e,c),g=!0,E=c.size,await R(),S.diskNumberStart=pi(c),S.offset=hi(e,c),m){const t=s.Fe;ci(s,e.offset-mi(c)),S.size+=s.Fe-t}!function({rawFilename:t,encrypted:e,zip64:r,Oe:n,crc32:a,compressedSize:s,uncompressedSize:o,me:i,pe:c},l,{dataDescriptor:d,passThrough:u}){if(d||((!e||u&&a!==F)&&Bi(l,14,a),c||Bi(l,18,s),i||Bi(l,22,o)),r&&n){const e=A+Li(t)+4;Pi(l,e,BigInt(o)),Pi(l,e+8,BigInt(s))}}(S,p.je,o),await Si(c,p.Se),await zi(v.readable,c,f,t=>z+=t),c.size+=v.size,g=!1}else S.diskNumberStart=T,S.offset=I;return e.offset+=S.size,S}catch(t){if(g||x){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-E,h&&(e.offset+=z)}throw i.delete(n),t}finally{if(h&&e.oe--,b&&b(),y&&y(),h&&v&&v.dispose)try{await v.dispose()}catch{}}async function k(){e.le=!0;const{de:t}=e;e.de=new Promise(t=>y=()=>{e.le=!1,t()}),await t}async function R(){wi(c,Li(p.Se))&&await c.closeDisk()}}(e,n,a,{Ae:p,De:m,Fe:w},s)}catch(t){throw e.ee.delete(n),t}return Object.assign(d,{name:n,comment:c,extraField:l,[Ea]:d.internalFileAttributes,[va]:d.externalFileAttributes}),new Wa(d)}(e,n,a,s)}catch(t){throw e.re.delete(n),t}finally{const t=Xo.shift();t?t():Yo--}}(s,e,n,a);o.add(i);const c=()=>o.delete(i);return Promise.prototype.then.call(i,c,c),ti(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(mo);if(Li(r)>e)throw new Error(po);for(;s.size;)await Promise.allSettled(Array.from(s));await Promise.allSettled(a.se.map(t=>t.Ce));const w=a.se.filter(t=>t.error&&!t.Me);if(w.length){const t=w.map(t=>t.error);w.forEach(t=>t.Me=!0);const[e]=t;try{e.entryErrors=t}catch{}throw e}return await async function(r,n,a){const s=ui(r.ee),{Ne:p,_e:m,Be: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,f=pi(o),p=mi(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,ue:A,fe:R,me:D,pe:F,we:O,Pe:U,internalFileAttributes:T,externalFileAttributes:I,diskNumberStart:j,uncompressedSize:C,compressedSize:M}=n,N=Li(y,b,g,x,E,v,S),_=u+Li(h,z)+N;wi(o,l+_-d)&&(await Si(o,c.slice(d,l)),d=l,m=0,await o.closeDisk()),0==r&&(f=pi(o),p=mi(o)),D||Bi(R,18,C),F||Bi(R,14,M),(U||O)&&n.version<45&&_i(R,0,45);const B=fi(_);if(B.We(i),B.Le(k),B.qe(A.subarray(0,24)),B.Le(N),B.Le(Li(z)),B.Le(O?e:j),B.Le(T),B.We(I),B.We(U?t:w),B.qe(h),B.qe(y),B.qe(b),B.qe(g),B.qe(x),B.qe(E),B.qe(v),B.qe(S),B.qe(z),Wi(c,B.Wt,l),l+=_,m++,a.onprogress)try{await a.onprogress(r+1,s.size,new Wa(n))}catch{}}return await Si(o,d?c.slice(d):c),{Ne:{diskNumber:f,diskOffset:p},_e:{diskNumber:pi(o),Ze:m},Be: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=Li(n);if(s>e)throw new Error(Vo);const i=fi(6+s);i.We(o),i.Le(s),i.qe(n);const{writer:c}=t;return wi(c,Li(i.Wt))&&await c.closeDisk(),await Si(c,i.Wt),6+s}return 0}(r,w,a);await async function(r,n,a,s){const{writer:o}=r,{Ne:i,_e:u,Ve:p}=s;let{He:m}=s,w=r.ee.size,h=i.diskNumber,y=hi(r,i);const b=Li(n);if(b>e)throw new Error(po);let g=Fi(r,a,Aa),x=pi(o);if(wi(o,(g?98:f)+b)&&x++,y>=t||m>=t||w>=e||x>=e){if(!1===g)throw new Error(Uo);g=!0}const E=fi(g?98:f);wi(o,Li(E.Wt)+b)&&await o.closeDisk(),x=pi(o);let v=x==u.diskNumber?u.Ze:0;g&&(E.We(l),E.Ge(44),E.Le(45),E.Le(45),E.We(x),E.We(h),E.Ge(v),E.Ge(w),E.Ge(m),E.Ge(y),E.We(d),E.We(x),E.Ge(BigInt(hi(r,o))+BigInt(m)+BigInt(p)),E.We(x+1),Fi(r,a,"supportZip64SplitFile",!0)&&(x=e,h=e),v=e,w=e,y=t,m=t),E.We(c),E.Le(x),E.Le(h),E.Le(v),E.Le(w),E.We(m),E.We(y),E.Le(b),await Si(o,E.Wt),b&&await Si(o,n)}(r,n,a,{Ne:p,_e:m,He:s,Ve:h})}(a,r,n),!ta(p)&&Fi(a,n,q)||await m.getWriter().close(),p.getData?p.getData():m}}class Qo{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new Jo(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 $o extends Promise{then(t,e){const{Ke:r}=this;return r&&(r.Me=!0),super.then(t,e)}}function ti(t,e){const r=new $o((t,r)=>Promise.prototype.then.call(e,t,r)),n={};return r.Ke=n,n.Ce=Promise.prototype.then.call(r,F,t=>n.error=t),t.se.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,s){let o=Fi(n,s,ka),i=Fi(n,s,Fa,o?20:768);const c=Fi(n,s,Ta),l=ji(n,s,"uid"),d=ji(n,s,"gid");let u=ji(n,s,Ma),f=Fi(n,s,"unixExtraFieldType"),p=Fi(n,s,Na),m=Fi(n,s,_a),w=Fi(n,s,Ba);if(it(l,t,No),it(d,t,_o),it(u,e,Bo),f!==F&&f!==Go&&f!==Ko)throw new Error(Po);if(f===Ko&&(l!==F&&l>e||d!==F&&d>e))throw new Error(Wo);f!==F||l===F&&d===F||(f=Go);let h=ji(n,s,Sa),y=Fi(n,s,za);const b=h!==F||y!==F;if(l!==F||d!==F||u!==F||f||c?(o=!1,i=i&r|768):b&&(o=!0,i&=r),it(h,r,Lo),y&&(typeof y!==I||Array.isArray(y)))throw new Error(qo);if(i>e)throw new Error(go);let g=Ti(n,s,xa,va);const x=g!==F;x||(g=0),!s[Ua]&&a.endsWith(k)&&(s[Ua]=!0);const A=Fi(n,s,Ua);if(A?(a.endsWith(k)||(a+=k),x||(g=16,o||(g|=16877<<16))):o||x||(g=c?493<<16:27525120),!o){const t=u!==F||Boolean(p||m||w);u=u===F?g>>16&e:u&e,p?u|=S:p=Boolean(u&S),m?u|=z:m=Boolean(u&z),w?u|=512:w=Boolean(512&u),x&&!t||(A?u=-61441&u|v:u&E||(u|=32768),g=(u&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=u!==F&&40960==(u&E);return{name:a,ve:{versionMadeBy:i,msDosCompatible:Boolean(o),externalFileAttributes:g,unixExternalUpper:R,uid:l,gid:d,unixMode:u,unixExtraFieldType:f,symlink:D,setuid:p,setgid:m,sticky:w,msdosAttributesRaw:h,msdosAttributes:y}}}function ai(t,r,n){const a=Ui(t,n,"encodeText")||Pt;let s=a(r,Y);if(s===F&&(s=Pt(r)),Li(s)>e)throw new Error(bo);const o=n[ia]||"";if(typeof o!=j)throw new Error(ho);let i=a(o,X);if(i===F&&(i=Pt(o)),Li(i)>e)throw new Error(wo);const c=Fi(t,n,Da);if(c!==F&&c>e)throw new Error(go);const l=Oi(t,n,pa,new Date),d=Fi(t,n,ma),u=Oi(t,n,wa),f=Oi(t,n,ya),p=Ti(t,n,ga,Ea,0),m=Fi(t,n,_),w=Fi(t,n,M),h=Fi(t,n,N);st(w,h);const y=ji(t,n,"encryptionStrength",3),b=Fi(t,n,Oa),g=Fi(t,n,"extendedTimestamp",!0),x=Fi(t,n,"ntfsTimestamp"),E=Fi(t,n,"keepOrder",!0),v=Fi(t,n,P),S=Fi(t,n,L),z=Fi(t,n,"bufferedWrite"),k=Ui(t,n,"createTempStream"),A=Fi(t,n,"dataDescriptorSignature",!0),R=at(Fi(t,n,B)),D=Fi(t,n,"useUnicodeFileNames",!0),O=Fi(t,n,Ia),U=m||O===F?F:Ve(O);if(!m&&O!==F&&0!==O&&8!==O&&!U)throw new Error("Compression method not supported");let T=ji(t,n,"level");if(it(T,9,Zo),t.options[H]){if(w!==F||h!==F)throw new Error(Eo);T===F&&O===F&&(T=0)}m&&(T=F);let I=Fi(t,n,W),C=Fi(t,n,Z);z&&C===F&&(C=!1),(C===F||b&&!m)&&(C=!0),T!==F&&6!=T&&(I=!1);const q=Fi(t,n,Aa);if(!(b||w===F&&h===F||Number.isInteger(y)&&y>=1&&y<=3))throw new Error(xo);const V=si(n[Ca]),G=si(n.localExtraField),K=si(n.centralExtraField);return{comment:o,ve:{rawFilename:s,rawComment:i,version:c,lastModDate:l,rawLastModDate:d,lastAccessDate:u,creationDate:f,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:U?U.format:F,codecURI:U?U.codecURI:F,Ye:U?U.versionNeeded:F,level:T,useCompressionStream:I,dataDescriptor:C,zip64:q,rawExtraField:V,Xe:G,Ee:K}}}function si(t){if(!t)return C;if(!(t instanceof Map))throw new Error(So);let r=0,n=0;t.forEach((t,n)=>{if(ot(n,e,zo),!(t instanceof Uint8Array))throw new Error(ko);if(Li(t)>e)throw new Error(Ao);r+=4+Li(t)});const a=new Uint8Array(r),s=Dt(a);return t.forEach((t,e)=>{_i(s,n,e),_i(s,n+2,Li(t)),Wi(a,t,n+4),n+=4+Li(t)}),a}function oi(e,r,n,a,s){const{passThrough:o,zipCrypto:i,password:c,rawPassword:l,encryptionStrength:d}=a;let{dataDescriptor:u,zip64:f,level:p,compressionMethod:m}=a,w=0,h=0;if(o&&r){if(h=s[la],h===F)throw new Error(To);if(m===F)throw new Error(Io)}const y=!0===f,b=Fi(e,s,Ra);if(r&&o&&!b&&Li(c,l))throw new Error(vo);const g=r&&(Boolean(c&&Li(c)||l&&Li(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?Ci(h)+x:n):n===F?(u=!0,(f||f===F)&&(f=!0,h=w=4294967296)):(s.uncompressedSize=h=n,w=(Mi(m,p)?Ci(h):h)+x));const E=!(g||r&&(0!==n||o)||Mi(m,p));E&&!i&&Fi(e,s,Z)===F&&(u=!1);const v=y||h>=t,S=y||w>=t;if(v||S){if(!1===f)throw new Error(Uo);f=!0}return f=f||!1,{Je:w,ve:{dataDescriptor:u,ke:E,zip64:f,me:v,pe:S,uncompressedSize:h,level:p,compressionMethod:m,encrypted:g}}}function ii(t){const{rawFilename:r,lastModDate:a,rawLastModDate:s,lastAccessDate:o,creationDate:i,level:c,zip64:l,zipCrypto:d,useUnicodeFileNames:u,dataDescriptor:f,directory:p,rawExtraField:m,Xe:y,encryptionStrength:x,extendedTimestamp:E,ntfsTimestamp:v,passThrough:S,encrypted:z,me:k,pe:O,uncompressedSize:U,crc32:T}=t;let{version:I,compressionMethod:j}=t;const M=!p&&Mi(j,c);let N;const _=S||!M,B=l&&(t.bufferedWrite||!f||!k&&!O||_),P=B||l&&f&&(k||O);if(l&&(k||O)){const t=20,e=fi(t);if(e.Le(1),e.Le(t-4),N=e.Wt,B&&(e.Ge(U),_)){const t=z?d?12:16+4*x:0;e.Ge(S?0:U+t)}}else N=C;let W,L,q,Z,V;if(z&&!d){const t=fi(Li(Ho)+2);t.Le(w),t.qe(Ho),W=t.Wt,W[8]=x}else W=C;if(E){const t=Ai(a),e=Ri(t);if(e){const e=9+(o?4:0)+(i?4:0),r=fi(e);Z=1+(o?2:0)+(i?4:0),r.Le(h),r.Le(e-4),r.Qe(Z),r.We(t),o&&r.We(Di(Ai(o))),i&&r.We(Di(Ai(i))),q=r.Wt}else q=C;if(v===F?!e||Boolean(o||i):v)try{const t=ki(a),e=fi(36);e.Le(10),e.Le(32),e.$e(4),e.Le(1),e.Le(24),e.Ge(t),e.Ge(o?ki(o):t),e.Ge(i?ki(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!=Go||r===F&&n===F)if(a!=Ko||r===F&&n===F)V=C;else{const t=fi(8);t.Le(g),t.Le(4),t.Le((r===F?0:r)&e),t.Le((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,s=fi(4+a);s.Le(b),s.Le(a),s.Qe(1),s.Qe(t.length),s.qe(t),s.Qe(e.length),s.qe(e),V=s.Wt}}catch{V=C}j===F&&(j=M?8:0),I===F&&(I=0!=j||p||z?20:10);const{Ye:G}=t;M&&G!==F&&(I=I>G?I:G),l&&(I=I>45?I:45),z&&!d&&(I=I>51?I:51,S&&T!==F&&(W[4]=1),_i(Dt(W),9,j),j=99);const K=P?Li(N):0,Y=K+Li(W,q,L,V,m,y);if(Y+(t[H]?67:0)>e)throw new Error(Ao);const X=new Date(2e3*Math.ceil(Math.floor(a.getTime()/1e3)/2)),{ue:J,fe:Q,rawLastModDate:$}=qi({version:I,bitFlag:Zi(c,u,f,z,j),compressionMethod:j,uncompressedSize:U,lastModDate:X<D?D:X>R?R:X,rawLastModDate:s,rawFilename:r,pe:O,me:k,extraFieldLength:Y}),tt=fi(A+Li(r)+Y),et=tt.Wt,rt=Dt(et);return tt.We(n),tt.qe(J),tt.qe(r),P&&tt.qe(N),tt.qe(W),tt.qe(q),tt.qe(L),tt.qe(V),tt.qe(m),tt.qe(y),f&&(O||Bi(rt,18,0),k||Bi(rt,22,0)),{Se:et,je:rt,ue:J,fe:Q,lastModDate:a,rawLastModDate:$,encrypted:z,compressed:M,version:I,compressionMethod:j,Ue:Z,he:C,Oe:K,be:q,ge:L,xe:V,ye:W,extraFieldLength:Y}}function ci(t,e){const{Ae:r}=t;let{Se:n,extraFieldLength:a}=r,s=64-(e+Li(n))%64;s<4&&(s+=64);const o=new Uint8Array(s),i=Dt(o);_i(i,0,y),_i(i,2,s-4);const c=n;r.Se=n=new Uint8Array(Li(c)+s),Wi(n,c),Wi(n,o,Li(c));const l=Dt(n);_i(l,28,a+s),r.je=l,t.Fe+=s}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=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))),{ze:a,Te:n,Ie: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:f,Ue: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=fi(t);e.Le(1),e.Le(t-4),w&&e.Ge(b),y&&e.Ge(g),x&&e.Ge(a.offset),E&&e.We(a.diskNumberStart),v=e.Wt}else v=C;a.he=v,a.Pe=x,a.we=E;const z=Ai(m);if(f&&Ri(z)){const t=fi(9);t.Le(h),t.Le(5),t.Qe(p),t.We(z),S=t.Wt}else S=C;a.be=S;const k=Li(v,s,i,c,S,l,d);if(k>e)throw new Error(Ao);n+=u+Li(r,o)+k}return n}function fi(t){const e=new Uint8Array(t),r=Dt(e);let n=0;return{Wt:e,Qe:t=>{!function(t,e,r){t.setUint8(e,r)}(r,n,t),n+=1},Le:t=>{_i(r,n,t),n+=2},We:t=>{Bi(r,n,t),n+=4},Ge:t=>{Pi(r,n,BigInt(t)),n+=8},qe:t=>{Wi(e,t,n),n+=Li(t)},$e: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 s=0;try{await zi(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 gi(t,e){const r=await na(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 Bi(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<Fo?Fo:e>Oo?Oo:e}}function Ai(t){return Math.floor(t.getTime()/1e3)}function Ri(t){return t>=Ro&&t<=Do}function Di(t){return Math.min(Do,Math.max(Ro,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!=T||Number.isNaN(a.getTime())))throw new Error(yo);return a}function Ui(t,e,r){return nt(Fi(t,e,r))}function Ti(t,e,r,n,a){const s=Ii(e,r,n),o=s===F?Ii(t.options,r,n):s;return o===F?a:o}function Ii(t,e,r){return t[e]===F?t[r]:t[e]}function ji(t,e,r,n){return ct(Fi(t,e,r,n))}function Ci(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 Bi(t,e,r){t.setUint32(e,r,!0)}function Pi(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:s,lastModDate:o,rawLastModDate:i,rawFilename:c,pe:l,me:d,extraFieldLength:u}){const f=fi(26),p=f.Wt,m=Dt(p);if(f.Le(e),f.Le(r),f.Le(n),i===F){const t=new Uint32Array(1),e=Dt(t);_i(e,0,(o.getHours()<<6|o.getMinutes())<<5|o.getSeconds()/2),_i(e,2,(o.getFullYear()-1980<<4|o.getMonth()+1)<<5|o.getDate()),i=t[0]}return f.We(i),f.$e(4),l||s!==F?f.We(l?t:s):f.$e(4),d||a!==F?f.We(d?t:a):f.$e(4),f.Le(Li(c)),f.Le(u),{ue:p,fe:m,rawLastModDate:i}}function Zi(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 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==T:F,decompression:e?typeof e.DecompressionStream==T:F,registered:!0})}return a}function Hi(t,e){if(!t)return!1;const{er:r}=t;return r?r.includes(e):or(t,e)}const Gi="2.8.60",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 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 Ji=1048576;function Qi(t={}){const{thresholdBytes:e=Ji}=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 $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 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 nc="deflate",ac="deflate-raw",sc="deflate64-raw",oc="gzip";let ic,cc,lc,dc,uc;function fc(t,e,r={}){if(!ic){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.rr=cc(a),this.in=cc(s),this.inBufferSize=s,!this.rr||!this.in)throw new Error("allocation failed");if(this.nr=new Uint8Array(a),t?(this.ar=ic.deflate_process,this.sr=ic.deflate_last_consumed,this.ir=ic.deflate_end,this.cr=ic.deflate_new(),r=e===oc?ic.deflate_init_gzip(this.cr,n):e===ac?ic.deflate_init_raw(this.cr,n):ic.deflate_init(this.cr,n)):e===sc?(this.ar=ic.inflate9_process,this.sr=ic.inflate9_last_consumed,this.ir=ic.inflate9_end,this.cr=ic.inflate9_new(),r=ic.inflate9_init_raw(this.cr)):(this.ar=ic.inflate_process,this.sr=ic.inflate_last_consumed,this.ir=ic.inflate_end,this.cr=ic.inflate_new(),r=e===ac?ic.inflate_init_raw(this.cr):e===oc?ic.inflate_init_gzip(this.cr):ic.inflate_init(this.cr)),0!==r)throw new Error("init failed:"+r)}catch(t){throw o(this),t}},transform(e,r){try{const n=e,s=new Uint8Array(dc.buffer),o=this.ar,i=this.sr,c=this.rr,l=this.nr;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");s.set(n.subarray(d,d+e),this.in);const u=o(this.cr,this.in,e,c,a,0),f=16777215&u;if(f&&(l.set(s.subarray(c,c+f),0),r.enqueue(l.slice(0,f))),!t){const t=u>>24&255,e=128&t?t-256:t;if(e<0)throw new Error("process error:"+e)}const p=i(this.cr);if(0===p)break;d+=p}}catch(t){o(this),r.error(t)}},flush(e){try{const r=new Uint8Array(dc.buffer),n=this.ar,s=this.rr,o=this.nr;for(;;){const i=n(this.cr,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.cr&&t.ir&&(e=t.ir(t.cr)),t.cr=0,t.in&&lc&&lc(t.in),t.in=0,t.rr&&lc&&lc(t.rr),t.rr=0,e}}class pc{constructor(t=nc,e){return fc(!0,t,e)}}class mc{constructor(t=nc,e){return fc(!1,t,e)}}pc.ut=!0,mc.ut=!0,pc.er=[nc,ac,oc],mc.er=[nc,ac,oc,sc];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=uc=null}!function({lr:t}){vr=t}({lr:t=>{if(!wc){let{wasmURI:e}=t;typeof e==T&&(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){uc=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="Readable stream already consumed",xc="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",Ec="Invalid readerOptions (must be an object)",vc="The last modification date of an entry encrypted with ZipCrypto cannot be changed when passThrough is set",Sc="zipjs-abort-export",zc="The operation was aborted",kc=new Set([1,w,10,h,28789,25461,y,b,g,22613,13]);class Ac{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.dr++,parent:n,children:[],uncompressedSize:r.uncompressedSize||0,ur:r.ur||r.uncompressedSize===F,passThrough:r.passThrough,pr:r.pr||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(bc);this.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==F))}}class Rc extends Ac{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 Rc(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=Mc(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:jc(t),Writer:null,reader:null})}}class Dc extends Ac{constructor(t,e,r,n){super(t,e,r,n),this.directory=!0}clone(t){const e=this,r=new Dc(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 Kc(this,t,{options:e},!0)}addText(t,e,r={}){return Kc(this,t,{data:e,Reader:An,Writer:Dn,options:r,uncompressedSize:Rn(e)})}addBlob(t,e,r={}){return Kc(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 Kc(this,t,{data:e,Reader:xn,Writer:En,options:r,uncompressedSize:Math.floor(.75*(n-a))})}addUint8Array(t,e,r={}){return Kc(this,t,{data:e,Reader:Kn,Writer:Yn,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return Kc(this,t,{data:e,Reader:class extends Hn{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return Kc(this,t,{Reader:jc(e),options:r})}addFileSystemEntry(t,e={}){return Vc(this,t,e)}addFileSystemHandle(t,e={}){return Vc(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),Kc(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=Lc(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}),u=Uc([t],t=>Ic(t,d.passThrough)),f=[];let p=!1,m=0;try{n&&await Rr(n,u),await h(t,e),s&&await Rr(s,m)}catch(t){try{t.exportedEntryNames=f}catch{}throw t}finally{l()}return e;function w(t){const e=t.getWriter();return new WritableStream({async write(t){await e.write(t),m+=t.length,a&&await Rr(a,m,u)},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(zc,"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(Sc):t}f.push(e.getRelativeName(t))}}catch(r){p=!0,i.abort(new Error(Sc));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==T?(r=t,e=Object.assign({},r.options,e)):(await ea(t),r=new Rs(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(bc)}else r=new Dc(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(bc)}else e=new Dc(this.fs,s,{data:null},r),n.push(e);e==this||e.data||(e.data=t)}else n.push(Kc(r,s,{data:t,Reader:Cc(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([Nc(r,Lc(e.readerOptions)),ea(t)]),a=new Jo(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=>Zc(t)?0:1);let u=0,f=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(Zc(e))return;const{name:s,mr:i}=Pc(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=>{u+=t-p,p=t,o&&await Rr(o,u,r)}}));f++,c&&await Rr(c,f,d,m)}i&&await Rr(i,u)}(a,r,Uc([r],Tc),e,n),await a.close(e.globalComment),t.getData?t.getData():t.writable}getExportedSize(r={}){const n=this;Lc((r=Object.assign({},r)).readerOptions),r.bufferedWrite===F&&(r.bufferedWrite=!0);const a=!r.bufferedWrite||!1!==r.keepOrder&&n.children.every(t=>!t.children.length);return async function(r,n,a,s){const o={options:r};if(nt(r[K]))throw new Error(jo);if(s!==F&&!(s instanceof Uint8Array))throw new Error(mo);const i=Li(s);if(i>e)throw new Error(po);const c=r[H],l=new Map;let d=Boolean(c);const u=r[V]===F?0:r[V];let p=u,m=O;for(const t of n){let{name:e}=t;const{size:r}=t,n=Object.assign({},t.options);Fi(o,n,Ua)&&!e.endsWith(k)&&(e+=k);const a=ni(o,e,n);({name:e}=a);const{ve:s}=ai(o,e,n);0==s.level||s.compressionMethod!==F||s.passThrough||await Sr(yt())||(s.level=0);const i=!Fi(o,n,Ua);if(i&&r===F)throw new Error(jo);const{Je:d,ve:u}=oi(o,i,r,s,n);if(i&&!s.passThrough&&Mi(u.compressionMethod,u.level))throw new Error(jo);const f=Object.assign({},n,a.ve,s,u,{[H]:c}),w=ii(f),h=di(f),y={Ae:w,Fe:Li(w.Se,h.ze)};c&&ci(y,p);const b=i?d:0;l.set(e,Object.assign({},f,w,{offset:p,diskNumberStart:0,compressedSize:b}));const g=y.Fe+b;m=Math.min(m,g),p+=g}if(l.size&&p-m>=t&&(d=!0),d&&!a)throw new Error(jo);const w=ui(l);let h=Fi(o,r,Aa);if(p>=t||w>=t||l.size>=e){if(!1===h)throw new Error(Uo);h=!0}return p-u+w+i+(h?98:f)}(r,n.getChildren({recursive:!0}).filter(t=>!Zc(t)).map(t=>{const{name:e,mr:a}=Pc(t,n,r);return{name:e,size:t.directory?0:Wc(t,qc(t,r)),options:a}}),a,r.globalComment)}getChildByName(t){const e=this.children;for(let r=0;r<e.length;r++){const n=e[r];if(n.name==t)return n}}getChildren(t={}){return function(t,e){const r=[],n=[t];let a=0;for(;a<n.length;)for(const t of n[a++].children)r.push(t),e&&n.push(t);return r}(this,t.recursive)}isPasswordProtected(){const t=this.children;for(let e=0;e<t.length;e++)if(t[e].isPasswordProtected())return!0;return!1}async checkPassword(t,e={}){const r=this.children;return!(await Promise.all(r.map(r=>r.checkPassword(t,e)))).includes(!1)}}class Fc{constructor(){Gc(this)}get children(){return this.root.children}remove(t){_c(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(bc)}else _c(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 Gc(this),this.root.importBlob(t,e)}importData64URI(t,e){return Gc(this),this.root.importData64URI(t,e)}importUint8Array(t,e){return Gc(this),this.root.importUint8Array(t,e)}importHttpContent(t,e){return Gc(this),this.root.importHttpContent(t,e)}importReadable(t,e){return Gc(this),this.root.importReadable(t,e)}importZip(t,e){return Gc(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 Oc={FS:Fc,ZipDirectoryEntry:Dc,ZipFileEntry:Rc};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 Tc(t){return t.uncompressedSize}function Ic(t,e){const{data:r}=t;return e&&r instanceof Wa?r.compressedSize:t.uncompressedSize}function jc(t){let e;return function(){if(e)throw new Error(gc);return e=!0,{readable:t}}}function Cc(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.wr=new zn(s),e.size=s.size,super.init()}readUint8Array(t,e){return this.wr.readUint8Array(t,e)}}}function Mc(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function Nc(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=Mc(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.ur=!1)})),a}function _c(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==Sc}function Pc(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:u,lastAccessDate:f,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:u,lastAccessDate:f,internalFileAttributes:g};const z=function(t){if(t){const e=new Map;if(t.forEach((t,r)=>{kc.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"}),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=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(vc)}}const c=Object.assign({lastModDate:t.pr},o,n,s,i,{directory:t.directory});if(!t.directory&&c.passThrough&&c.uncompressedSize===F)throw new Error(xc);return{name:a,mr:c}}function Wc(t,e){const{reader:r}=t;return r&&r.size!==F?r.size:t.ur?F:Ic(t,e)}function Lc(t){if(t&&(typeof t!=I||Array.isArray(t)))throw new Error(Ec);return t}function qc(t,e){const{readerOptions:r}=e;return Boolean(!t.directory&&(t.passThrough||r&&r.passThrough))}function Zc(t){return t.directory&&null===t.data}function Vc(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 Hc(n)),"file"==n.kind){const t=await n.getFile();a.push(Kc(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 Hc(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 Hc(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 Gc(t){t.entries=[],t.dr=0,t.root=new Dc(t)}function Kc(t,e,r,n){if(t.directory)return n?new Dc(t.fs,e,r,t):new Rc(t.fs,e,r,t);throw new Error("Parent entry is not a directory")}let Yc;function Xc(t){return t&&(Yc||(Yc=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}()),Yc)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{zn as BlobReader,kn as BlobWriter,xn as Data64URIReader,En as Data64URIWriter,zc as ERR_ABORTED,ts as ERR_AMBIGUOUS_ARCHIVE,La as ERR_BAD_FORMAT,Va as ERR_CENTRAL_DIRECTORY_NOT_FOUND,fo as ERR_DUPLICATED_NAME,Ka as ERR_ENCRYPTED,es as ERR_ENCRYPTED_CENTRAL_DIRECTORY,$a as ERR_ENTRY_DATA_OUT_OF_BOUNDS,bc 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,Be as ERR_INVALID_CODEC_MODULE,po as ERR_INVALID_COMMENT,mo as ERR_INVALID_COMMENT_TYPE,Xe as ERR_INVALID_COMPRESSED_DATA,Je as ERR_INVALID_CRC32,yo as ERR_INVALID_DATE,xo as ERR_INVALID_ENCRYPTION_STRENGTH,wo as ERR_INVALID_ENTRY_COMMENT,ho as ERR_INVALID_ENTRY_COMMENT_TYPE,bo as ERR_INVALID_ENTRY_NAME,So as ERR_INVALID_EXTRAFIELD,Ao as ERR_INVALID_EXTRAFIELD_DATA,ko as ERR_INVALID_EXTRAFIELD_DATA_TYPE,zo as ERR_INVALID_EXTRAFIELD_TYPE,as as ERR_INVALID_FILENAME_VALIDATION,tt as ERR_INVALID_FUNCTION_OPTION,_o as ERR_INVALID_GID,Zo as ERR_INVALID_LEVEL,ss as ERR_INVALID_MAX_APPENDED_DATA_SIZE,lt as ERR_INVALID_MAX_WORKERS,Lo as ERR_INVALID_MSDOS_ATTRIBUTES,qo as ERR_INVALID_MSDOS_DATA,Ht as ERR_INVALID_PASSWORD,rt as ERR_INVALID_PASSWORD_TYPE,xc as ERR_INVALID_PASS_THROUGH,Ec as ERR_INVALID_READER_OPTIONS,et as ERR_INVALID_SIGNAL,Gt as ERR_INVALID_SIGNATURE,Vo as ERR_INVALID_SIGNATURE_DATA,ns as ERR_INVALID_STRICTNESS,No as ERR_INVALID_UID,Ye as ERR_INVALID_UNCOMPRESSED_SIZE,Po as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,Wo as ERR_INVALID_UNIX_ID_SIZE,Bo as ERR_INVALID_UNIX_MODE,go as ERR_INVALID_VERSION,cn as ERR_ITERATOR_COMPLETED_TOO_SOON,Ha as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Qa as ERR_OVERLAPPING_ENTRY,gc as ERR_READABLE_CONSUMED,_e as ERR_RESERVED_COMPRESSION_METHOD,Ja as ERR_SPLIT_ZIP_FILE,Io as ERR_UNDEFINED_COMPRESSION_METHOD,Co as ERR_UNDEFINED_READER,To as ERR_UNDEFINED_UNCOMPRESSED_SIZE,jo as ERR_UNDETERMINED_SIZE,rs as ERR_UNSAFE_FILENAME,Xa as ERR_UNSUPPORTED_COMPRESSION,ec as ERR_UNSUPPORTED_CONTEXT,Xt as ERR_UNSUPPORTED_CRYPTO_API,Ya as ERR_UNSUPPORTED_ENCRYPTION,vo as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,Eo 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,vc as ERR_ZIP_CRYPTO_LAST_MOD_DATE,Mo 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,Gi as VERSION,ps as WARNING_APPENDED_DATA,ls as WARNING_COMPRESSED_PATCHED_DATA,hs as WARNING_DUPLICATE_FILENAME,ds as WARNING_MALFORMED_EXTRA_FIELD,bs as WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG,gs as WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD,xs as WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES,ys as WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY,ms as WARNING_PREPENDED_DATA,ws as WARNING_TRAILING_CENTRAL_DIRECTORY_DATA,cs as WARNING_UNKNOWN_VERSION,us as WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA,is as WARNING_UNSORTED_CENTRAL_DIRECTORY,fs as WARNING_WRAPPED_ENTRIES_COUNT,gn as Writer,Dc as ZipDirectoryEntry,Ac as ZipEntry,Fc as ZipFS,Rc as ZipFileEntry,Rs as ZipReader,Ds as ZipReaderStream,Jo as ZipWriter,Qo as ZipWriterStream,xt as configure,Qi as createBlobTempStream,Xi as createOPFSTempStream,rc as createSyncAccessHandleTempStream,Oc as fs,Xc as getMimeType,He as getRegisteredCodecs,Vi as getSupportedCompressionMethods,Fs as isZipFile,qe as registerCodec,kt as resetConfiguration,yc as terminateWorkers,Ze as unregisterCodec};