@zip.js/zip.js 2.11.4 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/deno.json +1 -1
  2. package/dist/zip-core-external.js +427 -110
  3. package/dist/zip-core-external.min.js +1 -1
  4. package/dist/zip-core.js +437 -107
  5. package/dist/zip-core.min.js +1 -1
  6. package/dist/zip-fs-core-external.js +492 -230
  7. package/dist/zip-fs-core-external.min.js +1 -1
  8. package/dist/zip-fs-core.js +505 -227
  9. package/dist/zip-fs-core.min.js +1 -1
  10. package/dist/zip-fs-external.js +492 -230
  11. package/dist/zip-fs-external.min.js +1 -1
  12. package/dist/zip-fs-native.js +507 -229
  13. package/dist/zip-fs-native.min.js +1 -1
  14. package/dist/zip-fs.js +508 -230
  15. package/dist/zip-fs.min.js +1 -1
  16. package/dist/zip-legacy.js +439 -109
  17. package/dist/zip-legacy.min.js +1 -1
  18. package/dist/zip-native.js +439 -109
  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 +440 -110
  23. package/dist/zip.min.js +1 -1
  24. package/index-native.cjs +507 -229
  25. package/index-native.min.js +1 -1
  26. package/index.cjs +508 -230
  27. package/index.d.cts +468 -59
  28. package/index.d.ts +468 -59
  29. package/index.min.js +1 -1
  30. package/lib/core/codec-worker-web.js +10 -2
  31. package/lib/core/codec-worker.js +4 -3
  32. package/lib/core/configuration.js +20 -5
  33. package/lib/core/constants.js +2 -0
  34. package/lib/core/io.js +13 -5
  35. package/lib/core/options.js +16 -0
  36. package/lib/core/streams/codec-stream.js +6 -0
  37. package/lib/core/util/warnings.js +42 -0
  38. package/lib/core/version.js +1 -1
  39. package/lib/core/web-worker-base.js +4 -3
  40. package/lib/core/web-worker-inline-native.js +1 -1
  41. package/lib/core/web-worker-inline-wasm.js +1 -1
  42. package/lib/core/zip-entry.js +49 -1
  43. package/lib/core/zip-fs.js +43 -132
  44. package/lib/core/zip-reader.js +106 -48
  45. package/lib/core/zip-writer.js +236 -54
  46. package/lib/zip-core-base.js +9 -3
  47. package/lib/zip-core-reader.js +2 -0
  48. package/lib/zip-core-writer.js +6 -1
  49. package/lib/zip-module-wasm-base.js +2 -2
  50. package/package.json +5 -3
@@ -1 +1 @@
1
- const t=4294967295,e=65535,r=255,n=67324752,a=134695760,o=a,s=84233040,i=33639248,c=101010256,l=101075792,d=117853008,f=46,u=22,p=20,m=56,w=39169,h=21589,y=6534,b=30837,g=30805,x=2048,E=61440,v=16384,S=2048,z=1024,k="/",A=30,R=new Date(2107,11,31,23,59,58),D=new Date(1980,0,1),F=void 0,O=1/0,T="undefined",U="function",I="object",C="string",j=new Uint8Array,M="password",N="rawPassword",_="passThrough",B="signal",P="useWebWorkers",L="useCompressionStream",W="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)",nt="The operation was aborted",at="AbortError";function ot(t){if(t&&typeof t!=U)throw new Error(tt);return t}function st(t){if(t&&(typeof t.addEventListener!=U||"boolean"!=typeof t.aborted))throw new Error(et);return t||F}function it(t){if(t&&t.aborted)throw t.reason===F?new DOMException(nt,at):t.reason}function ct(t,e){if(t&&typeof t!=C||e&&!(e instanceof Uint8Array))throw new Error(rt)}function lt(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw new Error(r)}function dt(t,e,r){t!==F&&lt(t,e,r)}function ft(t){return typeof t==C&&t.trim()?Number(t):t}const ut="Invalid maxWorkers (must be an integer greater than 0)";let pt=2;try{typeof navigator!=T&&navigator.hardwareConcurrency&&(pt=navigator.hardwareConcurrency)}catch{}const mt={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:pt,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=T&&CompressionStream,DecompressionStream:typeof DecompressionStream!=T&&DecompressionStream},wt="maxWorkers",ht=["chunkSize",wt,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],yt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],bt=["baseURI","wasmURI","workerURI","useCompressionStream","useWebWorkers","transferStreams",...ht,...yt],gt={...mt};function xt(){return gt}function Et(t){return vt(t.chunkSize)}function vt(t){return t=ft(t),Number.isInteger(t)&&t>=1?Math.max(t,64):65536}function St(t){Object.assign(gt,zt(At(t)))}function zt(t){const e={};for(const r of bt){const n=t[r];n!==F&&(e[r]=kt(r,n))}return e}function kt(t,e){if(ht.includes(t)){if(e=ft(e),t==wt&&(!Number.isInteger(e)||e<1))throw new Error(ut)}else yt.includes(t)&&ot(e);return e}function At(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 Rt(t){const e=zt(At(t));Object.assign(mt,e),Object.assign(gt,e)}function Dt(){for(const t of bt)delete gt[t];Object.assign(gt,mt)}function Ft(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function Ot(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function Tt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const Ut=[[],[],[],[],[],[],[],[]];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;Ut[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=Ut[e-1][t];Ut[e][t]=r>>>8^Ut[0][255&r]}const[It,Ct,jt,Mt,Nt,_t,Bt,Pt]=Ut;class Lt{constructor(t){this.o=t||-1}append(t){let e=0|this.o;const r=0|t.length;let n=0;if(r>=8&&t.buffer){const a=new DataView(t.buffer,t.byteOffset,r),o=r-8;for(;n<=o;n+=8){const t=e^a.getInt32(n,!0),r=a.getInt32(n+4,!0);e=Pt[255&t]^Bt[t>>>8&255]^_t[t>>>16&255]^Nt[t>>>24&255]^Mt[255&r]^jt[r>>>8&255]^Ct[r>>>16&255]^It[r>>>24&255]}}for(;n<r;n++)e=e>>>8^It[255&(e^t[n])];this.o=e}get(){return~this.o}}class Wt extends TransformStream{constructor(){let t;const e=new Lt;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 qt(t){if(typeof TextEncoder==T){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let r=0;r<e.length;r++)e[r]=t.charCodeAt(r);return e}return(new TextEncoder).encode(t)}const Zt={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const r=t[t.length-1],n=Zt.l(r);return 32===n?t.concat(e):Zt.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)+Zt.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]=Zt.v(e,t[r-1]&2147483648>>e-1,1)),t},v:(t,e,r)=>32===t?e:(r?0|e:e<<32-t)+1099511627776*t,l:t=>Math.round(t/1099511627776)||32,m(t,e,r,n){for(void 0===n&&(n=[]);e>=32;e-=32)n.push(r),r=0;if(0===e)return n.concat(t);for(let a=0;a<t.length;a++)n.push(r|t[a]>>>e),r=t[a]<<32-e;const a=t.length?t[t.length-1]:0,o=Zt.l(a);return n.push(Zt.v(e+o&31,e+o>32?r:n.pop(),1)),n}},Vt={bytes:{S(t){const e=Zt.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(Zt.v(8*(3&r),n)),e}}},Ht=class{constructor(t){const e=this;e.blockSize=512,e.R=[1732584193,4023233417,2562383102,271733878,3285377520],e.D=[1518500249,1859775393,2400959708,3395469782],t?(e.F=t.F.slice(0),e.O=t.O.slice(0),e.T=t.T):e.reset()}reset(){const t=this;return t.F=t.R.slice(0),t.O=[],t.T=0,t}update(t){const e=this;"string"==typeof t&&(t=Vt.U.A(t));const r=e.O=Zt.concat(e.O,t),n=e.T,a=e.T=n+Zt.bitLength(t);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const o=new Uint32Array(r);let s=0;for(let t=e.blockSize+n-(e.blockSize+n&e.blockSize-1);t<=a;t+=e.blockSize)e.I(o.subarray(16*s,16*(s+1))),s+=1;return r.splice(0,16*s),e}C(){const t=this;let e=t.O;const r=t.F;e=Zt.concat(e,[Zt.v(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(Math.floor(t.T/4294967296)),e.push(0|t.T);e.length;)t.I(e.splice(0,16));return t.reset(),r}j(t,e,r,n){return t<=19?e&r|~e&n:t<=39?e^r^n:t<=59?e&r|e&n|r&n:t<=79?e^r^n:void 0}M(t,e){return e<<t|e>>>32-t}I(t){const e=this,r=e.F,n=Array(80);for(let e=0;e<16;e++)n[e]=t[e];let a=r[0],o=r[1],s=r[2],i=r[3],c=r[4];for(let t=0;t<=79;t++){t>=16&&(n[t]=e.M(1,n[t-3]^n[t-8]^n[t-14]^n[t-16]));const r=e.M(5,a)+e.j(t,o,s,i)+c+n[t]+e.D[Math.floor(t/20)]|0;c=i,i=s,s=e.M(30,o),o=a,a=r}r[0]=r[0]+a|0,r[1]=r[1]+o|0,r[2]=r[2]+s|0,r[3]=r[3]+i|0,r[4]=r[4]+c|0}},Gt={importKey:t=>new Gt.N(Vt.bytes.A(t)),_(t,e,r,n){if(r=r||1e4,n<0||r<0)throw new Error("invalid params to pbkdf2");const a=1+(n>>5)<<2;let o,s,i,c,l;const d=new ArrayBuffer(a),f=new DataView(d);let u=0;const p=Zt;for(e=Vt.bytes.A(e),l=1;u<(a||1);l++){for(o=s=t.encrypt(p.concat(e,[l])),i=1;i<r;i++)for(s=t.encrypt(s),c=0;c<s.length;c++)o[c]^=s[c];for(i=0;u<(a||1)&&i<o.length;i++)f.setInt32(u,o[i]),u+=4}return d.slice(0,n/8)},N:class{constructor(t){const e=this,r=e.B=Ht,n=[[],[]];e.P=[new r,new r];const a=e.P[0].blockSize/32;t.length>a&&(t=(new r).update(t).C());for(let e=0;e<a;e++)n[0][e]=909522486^t[e],n[1][e]=1549556828^t[e];e.P[0].update(n[0]),e.P[1].update(n[1]),e.L=new r(e.P[0])}reset(){const t=this;t.L=new t.B(t.P[0]),t.W=!1}update(t){this.W=!0,this.L.update(t)}digest(){const t=this,e=t.L.C(),r=new t.B(t.P[1]).update(e).C();return t.reset(),r}encrypt(t){if(this.W)throw new Error("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},Kt=typeof crypto!=T&&typeof crypto.getRandomValues==U,Yt="Invalid password",Xt="Invalid authentication code",Jt="zipjs-abort-check-password",Qt="Crypto API not supported";function $t(t){if(Kt)return crypto.getRandomValues(t);throw new Error(Qt)}const te=16,ee={name:"PBKDF2"},re=Object.assign({hash:{name:"HMAC"}},ee),ne=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},ee),ae=["deriveBits"],oe=[8,12,16],se=[16,24,32],ie=10,ce=[0,0,0,0],le=typeof crypto!=T,de=le&&crypto.subtle,fe=le&&typeof de!=T,ue=Vt.bytes,pe=class{constructor(t){const e=this;e.Z=[[[],[],[],[],[]],[[],[],[],[],[]]],e.Z[0][0][0]||e.V();const r=e.Z[0][4],n=e.Z[1],a=t.length;let o,s,i,c=1;if(4!==a&&6!==a&&8!==a)throw new Error("invalid aes key size");for(e.D=[s=t.slice(0),i=[]],o=a;o<4*a+28;o++){let t=s[o-1];(o%a===0||8===a&&o%a===4)&&(t=r[t>>>24]<<24^r[t>>16&255]<<16^r[t>>8&255]<<8^r[255&t],o%a===0&&(t=t<<8^t>>>24^c<<24,c=c<<1^283*(c>>7))),s[o]=s[o-a]^t}for(let t=0;o;t++,o--){const e=s[3&t?o:o-4];i[t]=o<=4||t<4?e:n[0][r[e>>>24]]^n[1][r[e>>16&255]]^n[2][r[e>>8&255]]^n[3][r[255&e]]}}encrypt(t){return this.H(t,0)}decrypt(t){return this.H(t,1)}V(){const t=this.Z[0],e=this.Z[1],r=t[4],n=e[4],a=[],o=[];let s,i,c,l;for(let t=0;t<256;t++)o[(a[t]=t<<1^283*(t>>7))^t]=t;for(let d=s=0;!r[d];d^=i||1,s=o[s]||1){let o=s^s<<1^s<<2^s<<3^s<<4;o=o>>8^255&o^99,r[d]=o,n[o]=d,l=a[c=a[i=a[d]]];let f=16843009*l^65537*c^257*i^16843008*d,u=257*a[o]^16843008*o;for(let r=0;r<4;r++)t[r][d]=u=u<<24^u>>>8,e[r][o]=f=f<<24^f>>>8}for(let r=0;r<5;r++)t[r]=t[r].slice(0),e[r]=e[r].slice(0)}H(t,e){if(4!==t.length)throw new Error("invalid aes block size");const r=this.D[e],n=r.length/4-2,a=[0,0,0,0],o=this.Z[e],s=o[0],i=o[1],c=o[2],l=o[3],d=o[4];let f,u,p,m=t[0]^r[0],w=t[e?3:1]^r[1],h=t[2]^r[2],y=t[e?1:3]^r[3],b=4;for(let t=0;t<n;t++)f=s[m>>>24]^i[w>>16&255]^c[h>>8&255]^l[255&y]^r[b],u=s[w>>>24]^i[h>>16&255]^c[y>>8&255]^l[255&m]^r[b+1],p=s[h>>>24]^i[y>>16&255]^c[m>>8&255]^l[255&w]^r[b+2],y=s[y>>>24]^i[m>>16&255]^c[w>>8&255]^l[255&h]^r[b+3],b+=4,m=f,w=u,h=p;for(let t=0;t<4;t++)a[e?3&-t:t]=d[m>>>24]<<24^d[w>>16&255]<<16^d[h>>8&255]<<8^d[255&y]^r[b++],f=m,m=w,w=h,h=y,y=f;return a}},me=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=Zt.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 Zt.h(e,a)}},we=Gt.N;let he=le&&fe&&typeof de.importKey==U,ye=le&&fe&&typeof de.deriveBits==U;class be extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:n,checkAuthenticationCode:a=!0}){super({start(){xe(this,t,e,r)},async transform(t,e){const r=this,{password:a,strength:o,et:s,ready:i}=r;a?(await async function(t,e,r,n){const a=await ve(t,e,r,ze(n,0,oe[e])),o=ze(n,oe[e]);if(a[0]!=o[0]||a[1]!=o[1])throw new Error(Yt)}(r,o,a,ze(t,0,oe[o]+2)),t=ze(t,oe[o]+2),n?e.error(new Error(Jt)):s()):await i;const c=new Uint8Array(t.length-ie-(t.length-ie)%te);e.enqueue(Ee(r,t,c,0,ie,!0))},async flush(t){const{nt:e,ot:r,st:n,ready:o}=this;if(r&&e){await o;const s=ze(n,0,n.length-ie),i=ze(n,n.length-ie);let c=j;if(s.length){const t=Ae(ue,s);r.update(t);const n=e.update(t);c=ke(ue,n)}const l=ze(ke(ue,r.digest()),0,ie);let d=n.length<ie?1:0;for(let t=0;t<ie;t++)d|=l[t]^i[t];if(d&&a)throw new Error(Xt);t.enqueue(c)}}})}}class ge extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){super({start(){xe(this,t,e,r)},async transform(t,e){const r=this,{password:n,strength:a,et:o,ready:s}=r;let i=j;n?(i=await async function(t,e,r){const n=$t(new Uint8Array(oe[e]));return Ft(n,await ve(t,e,r,n))}(r,a,n),o()):await s;const c=new Uint8Array(i.length+t.length-t.length%te);c.set(i,0),e.enqueue(Ee(r,t,c,i.length,0))},async flush(t){const{nt:e,ot:r,st:n,ready:a}=this;if(r&&e){await a;let o=j;if(n.length){const t=e.update(Ae(ue,n));r.update(t),o=ke(ue,t)}const s=ke(ue,r.digest()).slice(0,ie);t.enqueue(Ft(o,s))}}})}}function xe(t,e,r,n){Object.assign(t,{ready:new Promise(e=>t.et=e),password:Se(e,r),strength:n-1,st:j})}function Ee(t,e,r,n,a,o){const{nt:s,ot:i,st:c}=t;c.length&&(e=Ft(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%te)),d=0;d<=l-te;d+=te){const t=Ae(ue,ze(e,d,d+te));o&&i.update(t);const a=s.update(t);o||i.update(a),r.set(ke(ue,a),d+n)}return t.st=ze(e,d),r}async function ve(t,e,r,n){t.password=null;const a=await async function(t,e,r,n,a){if(!he)return Gt.importKey(e);try{return await de.importKey("raw",e,r,!1,a)}catch{return he=!1,Gt.importKey(e)}}(0,r,re,0,ae),o=await async function(t,e,r){if(!ye)return Gt._(e,t.salt,ne.iterations,r);try{return await de.deriveBits(t,e,r)}catch{return ye=!1,Gt._(e,t.salt,ne.iterations,r)}}(Object.assign({salt:n},ne),a,8*(2*se[e]+2)),s=new Uint8Array(o),i=Ae(ue,ze(s,0,se[e])),c=Ae(ue,ze(s,se[e],2*se[e])),l=ze(s,2*se[e]);return Object.assign(t,{keys:{key:i,it:c,passwordVerification:l},nt:new me(new pe(i),Array.from(ce)),ot:new we(c)}),l}function Se(t,e){return e===F?qt(t):e}function ze(t,e,r){return t.subarray(e,r)}function ke(t,e){return t.S(e)}function Ae(t,e){return t.A(e)}class Re extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:n}){super({start(){Fe(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=Oe(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw new Error(Yt);t=t.subarray(12)}n?e.error(new Error(Jt)):e.enqueue(Oe(r,t))}})}}class De extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){Fe(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=$t(new Uint8Array(12));e[11]=r.passwordVerification,n=new Uint8Array(t.length+e.length),n.set(Te(r,e),0),a=12}else n=new Uint8Array(t.length),a=0;n.set(Te(r,t),a),e.enqueue(n)}})}}function Fe(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 Lt(n[0]),lt:new Lt(n[2])}),r)for(let e=0;e<r.length;e++)Ue(t,r[e]);else for(let r=0;r<e.length;r++)Ue(t,e.charCodeAt(r))}(t,e,r)}function Oe(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Ie(t)^e[n],Ue(t,r[n]);return r}function Te(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Ie(t)^e[n],Ue(t,e[n]);return r}function Ue(t,e){let[,r]=t.keys;t.ct.append([e]);const n=~t.ct.get();r=je(Math.imul(je(r+Ce(n)),134775813)+1),t.lt.append([r>>>24]);const a=~t.lt.get();t.keys=[n,r,a]}function Ie(t){const e=2|t.keys[2];return Ce(Math.imul(e,1^e)>>>8)}function Ce(t){return 255&t}function je(t){return 4294967295&t}function Me(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 Ne(t,e){t=Me(t);const r=e?{type:e}:{};if(typeof Blob.prototype.stream!=U||new Blob([]).stream()instanceof ReadableStream)return new Response(t).blob().then(t=>e?new Blob([t],r):t);const n=[];return t.pipeTo(new WritableStream({write(t){n.push(t)}})).then(()=>new Blob(n,r))}function _e(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 Be="Invalid codec definition",Pe="Reserved compression method",Le="Invalid codec module",We="Compression method not supported",qe=[0,8,9,99],Ze=new Map,Ve=new Map;function He(t={}){const{compressionMethod:r,format:n,codecURI:a,CompressionStream:o,DecompressionStream:s,versionNeeded:i}=t;if(!Number.isInteger(r)||r<0||r>e||typeof n!=C||!n.length)throw new Error(Be);if(qe.includes(r))throw new Error(Pe);const c=typeof o==U||typeof s==U;if(!(c||typeof a==C&&a.length))throw new Error(Be);Ze.set(r,{compressionMethod:r,format:n,codecURI:a,versionNeeded:i}),c&&Je(n,{CompressionStream:o,DecompressionStream:s})}function Ge(t){const e=Ze.get(t);if(e){let r;Ze.delete(t),Ze.forEach(t=>r=r||t.format==e.format),r||Ve.delete(e.format)}}function Ke(t){return Ze.get(t)}function Ye(){return Array.from(Ze.values(),t=>Object.assign({},t,Ve.get(t.format)))}function Xe(t){return Ve.get(t)}function Je(t,e){const{CompressionStream:r,DecompressionStream:n}=e;if(typeof r!=U&&typeof n!=U)throw new Error(Le);Ve.set(t,{CompressionStream:r,DecompressionStream:n})}const Qe="Invalid uncompressed size",$e="Invalid compressed data",tr="Invalid CRC32",er="deflate-raw",rr="deflate64-raw",nr="gzip",ar=[31,139,8];class or extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:n}){super({});const{compressed:a,encrypted:o,useCompressionStream:s,zipCrypto:i,computeCrc32:c,level:l,deflate64:d,format:f,compressionMethod:u,inputSize:p}=t,m=this;let w,h,y,b=super.readable;const g=f&&Xe(f),x=c&&a&&!d&&!g&&(!o||i)&&Boolean(s&&n);if(o&&!i||!c||x||(w=new Wt,b=mr(b,w)),a)if(g)b=wr(b,ur(g.CompressionStream,f,{level:l,chunkSize:e,compressionMethod:u,uncompressedSize:p}));else if(x)y=new sr,b=wr(b,new n(nr)),b=mr(b,y);else try{b=pr(b,s,{level:l,chunkSize:e},n,r)}catch(t){let e;try{e=new n(nr)}catch{throw t}b=wr(b,e),b=mr(b,new sr)}o&&(i?b=mr(b,new De(t)):(h=new ge(t),b=mr(b,h))),fr(m,b,()=>{o&&!i||!c||(m.crc32=x?y.crc32:new DataView(w.value.buffer).getUint32(0))})}}class sr 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=Ft(r,t));const o=a-8,s=Math.min(o,r.length);n.enqueue(Ft(r.subarray(0,s),t.subarray(0,o-s))),r=Ft(r.subarray(s),t.subarray(o-s))},flush(){const e=Tt(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class ir extends TransformStream{constructor(t,{chunkSize:e,DecompressionStreamFallback:r,DecompressionStream:n}){super({});const{zipCrypto:a,encrypted:o,checkCrc32:s,crc32:i,compressed:c,useCompressionStream:l,deflate64:d,format:f,compressionMethod:u,rawBitFlag:p,outputSize:m}=t;let w,h,y=super.readable;if(o&&(a?y=mr(y,new Re(t)):(h=new be(t),y=mr(y,h))),c){const t=f&&Xe(f);if(t)y=wr(y,ur(t.DecompressionStream,f,{chunkSize:e,compressionMethod:u,rawBitFlag:p,uncompressedSize:m}));else try{y=pr(y,l,{chunkSize:e,deflate64:d},n,r)}catch(t){if(d||m===F)throw t;let e;try{e=new n(nr)}catch{throw t}y=function(t,e,r){const n=new Lt;let a,o,s,i=0,c=!1;const l=new Promise((t,e)=>{o=t,s=e});l.catch(()=>{}),r||o();const d=new TransformStream({start(t){const e=new Uint8Array(10);e.set(ar),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=Tt(e);a.setUint32(0,n.get(),!0),a.setUint32(4,r,!0),t.enqueue(e)},cancel(t){s(t)}}),f=new TransformStream({transform(t,e){n.append(t),i+=t.length,i>=r?o():c&&u(),e.enqueue(t)},cancel(t){s(t)}});return t=mr(t,d),mr(t=wr(t,e),f);function u(){p(),a=setTimeout(()=>s(new Error(Qe)),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($e);throw e.cause=t,e}const{value:n,done:a}=r;a?t.close():t.enqueue(n)},cancel:t=>e.cancel(t)})}(y)}s&&(w=new Wt,y=mr(y,w)),fr(this,y,()=>{if(s){const t=new DataView(w.value.buffer);if(i!=t.getUint32(0,!1))throw new Error(tr)}})}}const cr=new Map;function lr(t,e){if(!t)return!1;let r=cr.get(t);r||(r=new Map,cr.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 dr(t){return lr(t,er)}function fr(t,e,r){e=mr(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function ur(t,e,r){if(!t)throw new Error(We);return new t(e,r)}function pr(t,e,r,n,a){const o=e&&n?n:a||n,s=r.deflate64?rr:er;let i;try{i=new o(s,r)}catch(t){if(!e||!a||o==a)throw t;i=new a(s,r)}return wr(t,i)}function mr(t,e){return Me(t).pipeThrough(e)}function wr(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 hr="data",yr="deflate",br="inflate";class gr extends TransformStream{constructor(t,e){super({});const r=this,{codecType:n}=t;let a;n.startsWith(yr)?a=or:n.startsWith(br)&&(a=ir),r.outputSize=0;let o=0;const s=new a(t,e),i=super.readable,c=new TransformStream({transform(t,e){t&&t.length&&(o+=t.length,e.enqueue(t))},flush(){Object.assign(r,{inputSize:o})}}),l=new TransformStream({transform(e,n){if(e&&e.length&&(n.enqueue(e),r.outputSize+=e.length,t.outputSize!==F&&r.outputSize>t.outputSize))throw new Error(Qe)},flush(){const{crc32:t}=s;Object.assign(r,{crc32:t,inputSize:o})}});Object.defineProperty(r,"readable",{get:()=>i.pipeThrough(c).pipeThrough(s).pipeThrough(l)})}}class xr extends TransformStream{constructor(t){const e=[];let r=0;function n(){const n=new Uint8Array(t);let a=0;for(;a<t;){const r=e[0],o=t-a;r.length<=o?(n.set(r,a),a+=r.length,e.shift()):(n.set(r.subarray(0,o),a),e[0]=r.subarray(o),a+=o)}return r-=t,n}(!Number.isFinite(t)||t<1)&&(t=65536),super({transform(a,o){for(e.push(a),r+=a.length;r>t;)o.enqueue(n())},flush(t){r&&t.enqueue(function(t,e){const r=new Uint8Array(e);let n=0;for(const e of t)r.set(e,n),n+=e.length;return r}(e,r))}})}}const Er="Worker startup timeout";let vr,Sr,zr,kr=()=>{};async function Ar(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;if(r&&!r.ft)return!0;if(dr(e)||lr(e,nr))return!0;if(r)try{return await kr(t),!0}catch{return!1}return!1}function Rr(t){t.createWorker?Sr=!0:vr=!1}class Dr{constructor(t,{readable:e,writable:r},{options:n,config:a,ut:o,useWebWorkers:s,transferStreams:i,workerURI:c,createWorker:l},d){const{signal:f}=o;return Sr&&(l=F),Object.assign(t,{wt:!0,ht:(t.ht||0)+1,readable:e.pipeThrough(new xr(Et(a))).pipeThrough(new Fr(o),{signal:f}),writable:r,options:Object.assign({},n),workerURI:c,createWorker:l,transferStreams:i,terminate:()=>new Promise(e=>{const{yt:r,wt:n}=t;r?(n?t.bt=e:(r.terminate(),e()),t.gt=null):e()}),xt(){if(t.wt){const{bt:e}=t;e&&(t.bt=null,t.Et=!0,t.yt.terminate(),e()),t.wt=!1,d(t)}}}),vr===F&&(vr=typeof Worker!=T),(s&&zr&&(vr&&c||l)?zr:Tr)(t,a)}}class Fr extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:n}){let a=0;super({async start(){t&&await Or(t,r)},async transform(t,n){a+=t.length,e&&await Or(e,a,r),n.enqueue(t)},async flush(){n&&await Or(n,a)}})}}async function Or(t,...e){try{await t(...e)}catch{}}function Tr(t,e){return{run:()=>Ur(t,e)}}async function Ur({options:t,readable:e,writable:r,xt:n},a){let o;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(yr),r=e?a.CompressionStreamFallback:a.DecompressionStreamFallback,n=e?a.CompressionStream:a.DecompressionStream;if(t.useCompressionStream){if(r&&r.ft&&!dr(n))try{await kr(a)}catch{}}else try{await kr(a)}catch{r&&!r.ft||(t.useCompressionStream=!0)}}o=new gr(t,a),await e.pipeThrough(o).pipeThrough(new xr(Et(a))).pipeTo(r,{preventClose:!0,preventAbort:!0});const{crc32:n,inputSize:s,outputSize:i}=o;return{crc32:n,inputSize:s,outputSize:i}}catch(t){throw o&&(t.outputSize=o.outputSize),t}finally{n()}}const Ir={type:"module"},Cr="error";let jr,Mr,Nr,_r=!0;try{_r=typeof structuredClone==U&&structuredClone(new DOMException("","AbortError")).code!==F}catch{}var Br;function Pr(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function Lr(t){const{yt:e}=t;if(e)try{e.terminate()}catch{}t.gt=null}function Wr(t,e,r,n,a=!0){const{createWorker:o}=r;let s,i,c;if(o)s=o();else if(Mr===F||jr!==t){const o=typeof t==U;i=o?t(a):t;const l=i.startsWith("data:"),d=i.startsWith("blob:");if(l||d){n===F&&(n=!1),n&&(c=Ir);try{s=new Worker(i,c)}catch(a){if(d)try{URL.revokeObjectURL(i)}catch{}if(o&&d)return Wr(t,e,r,n,!1);if(n)throw a;return Wr(t,e,r,!0,!1)}}else{n===F&&(n=!0),n&&(c=Ir);try{i=new URL(i,e)}catch{}try{s=new Worker(i,c)}catch(o){if(n)return Wr(t,e,r,!1,a);throw o}}jr=t,Mr=i,Nr=c}else s=new Worker(Mr,Nr);return s.addEventListener("message",t=>{r.vt=!0,qr(r),async function({data:t},e){const{type:r,value:n,messageId:a,result:o,error:s}=t,{reader:i,writer:c,St:l,zt:d,xt:f,ht:u}=e,p=()=>e.ht!=u;try{if(s){const{message:t,stack:e,code:r,name:n,outputSize:a,cause:o,codecImportFailed:i}=s,c=new Error(t);Object.assign(c,{stack:e,code:r,name:n,outputSize:a}),o&&(c.cause=Object.assign(new Error(o.message),{name:o.name})),i&&(c.codecImportFailed=!0),m(c)}else{if("pull"==r){const{value:t,done:r}=await i.read();p()||Vr({type:hr,value:t,done:r,messageId:a},e)}r==hr&&(await c.ready,await c.write(new Uint8Array(n)),p()||Vr({type:"ack",messageId:a},e)),"close"==r&&m(null,o)}}catch(s){p()||(Lr(e),m(s))}function m(t,e){p()||(t?d(t):l(e),c&&c.releaseLock(),t&&t.codecImportFailed||f())}}(t,r)}),s.addEventListener(Cr,t=>Zr(t,r)),s.addEventListener("messageerror",t=>Zr(t,r)),s}function qr(t){const{kt:e}=t;e&&(clearTimeout(e),t.kt=null)}function Zr(t,e){t.preventDefault&&t.preventDefault(),qr(e);const{vt:r,zt:n,writer:a,xt:o}=e;Lr(e),r||(e.yt=null);let s=t.error||new Error(t.message||Cr);r||(s=Object.assign(new Error(s.message||Cr),{At:!0}),e.Rt=s),n&&(n(s),a&&a.releaseLock(),r&&o())}function Vr(t,{yt:e,writer:r,transferStreams:n,vt:a}){try{const{value:r,readable:o,writable:s}=t,i=[];if(r&&(t.value=Ot(r),i.push(t.value.buffer)),n&&_r&&a?(o&&i.push(o),s&&i.push(s)):t.readable=t.writable=null,i.length)try{return e.postMessage(t,i),!0}catch{_r=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}Br=function(t,e){const{baseURI:r,chunkSize:n,workerStartupTimeout:a}=e;let{wasmURI:o}=e;if(!t.gt){let s;typeof o==U&&(o=o());try{s=Wr(t.workerURI,r,t)}catch{return Rr(t),Tr(t,e)}Object.assign(t,{yt:s,vt:!1,Et:!1,Rt:null,gt:{run:async()=>{try{return await async function(t,e){if(!t.yt){const{Rt:e}=t;t.Rt=null;const r=e||new Error(Er);throw r.At=!0,r}let r,n;const a=new Promise((t,e)=>{r=t,n=e});Object.assign(t,{reader:null,writer:null,St:r,zt:n,result:a});const{readable:o,options:s}=t,{writable:i,closed:c,Dt:l}=function(t){const e=new AbortController,{writable:r,readable:n}=new TransformStream,a=n.pipeTo(t,{preventClose:!0,preventAbort:!0,signal:e.signal});return a.catch(()=>{}),{writable:r,closed:a,Dt:()=>e.abort()}}(t.writable);let d;try{d=Vr({type:"start",options:s,config:e,readable:o,writable:i},t)}catch(e){l();try{await c}catch{}throw t.xt(),e}d||Object.assign(t,{reader:o.getReader(),writer:i.getWriter()});const{workerStartupTimeout:f}=e;!t.vt&&Number.isFinite(f)&&f>=0&&(t.kt=setTimeout(()=>function(t){if(t.kt=null,t.vt)return;const{zt:e,writer:r}=t;if(Lr(t),t.yt=null,e){const t=new Error(Er);t.At=!0,e(t),r&&r.releaseLock()}}(t),f));try{const t=await a;return await u(),await c,t}catch(t){await u(),l();try{await c}catch{}throw t}async function u(){if(!d&&!i.locked)try{await i.getWriter().close()}catch{}}}(t,{chunkSize:n,wasmURI:o,baseURI:r,workerStartupTimeout:a})}catch(r){if(r&&r.At)return Rr(t),Pr(t),Ur(t,e);if(r&&r.codecImportFailed){if(t.reader)return Pr(t),Ur(t,e);t.xt()}throw r}}}})}return t.gt},zr=Br;let Hr=[];const Gr=[];let Kr,Yr,Xr=0;async function Jr(t,e){const{options:r,config:n}=e,{transferStreams:a,useWebWorkers:o,useCompressionStream:s,compressed:i,checkCrc32:c,computeCrc32:l,encrypted:d,format:f,codecURI:u}=r,{workerURI:p,createWorker:m,maxWorkers:w}=n;f&&(u&&(r.codecURI=function(t,e){try{return new URL(t,e).toString()}catch{return t}}(u,n.baseURI)),await async function(t,e){!Ve.has(t)&&e&&Je(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */e)))}(f,r.codecURI)),e.transferStreams=!f&&(a||a===F&&n.transferStreams);const h=!(i||c||l||d),y=f===F||Boolean(r.codecURI);return e.useWebWorkers=!h&&y&&(o||o===F&&n.useWebWorkers),e.workerURI=e.useWebWorkers&&p?p:F,e.createWorker=e.useWebWorkers&&m?m:F,r.useCompressionStream=s||s===F&&n.useCompressionStream,(await async function(){const r=Hr.find(t=>!t.wt);if(r)return rn(r),new Dr(r,t,e,b);if(Hr.length<w){const r={Ft:Xr};return Xr++,Hr.push(r),new Dr(r,t,e,b)}return new Promise(r=>{Gr.push({resolve:r,stream:t,Ot:e}),Yr=n.workerStarvationTimeout,Qr()})}()).run();function b(t){if($r(),Gr.length){const[{resolve:e,stream:r,Ot:n}]=Gr.splice(0,1);e(new Dr(t,r,n,b)),Qr()}else t.yt?(rn(t),function(t,e){const{config:r}=e,{terminateWorkerTimeout:n}=r;Number.isFinite(n)&&n>=0&&(t.Et?t.Et=!1:t.Tt=setTimeout(async()=>{Hr=Hr.filter(e=>e!=t);try{await t.terminate()}catch{}},n))}(t,e)):Hr=Hr.filter(e=>e!=t)}}function Qr(){!Kr&&Gr.length&&Number.isFinite(Yr)&&Yr>=0&&(Kr=setTimeout(tn,Yr))}function $r(){Kr&&(clearTimeout(Kr),Kr=null)}function tn(){if(Kr=null,Gr.length){const[{resolve:t,stream:e,Ot:r}]=Gr.splice(0,1),n=Object.assign({},r,{useWebWorkers:!1,workerURI:F,createWorker:F});t(new Dr({},e,n,en)),Qr()}}function en(){$r(),Qr()}function rn(t){const{Tt:e}=t;e&&(clearTimeout(e),t.Tt=null)}const nn="\0\u263a\u263b\u2665\u2666\u2663\u2660\u2022\u25d8\u25cb\u25d9\u2642\u2640\u266a\u266b\u263c\u25ba\u25c4\u2195\u203c\xb6\xa7\u25ac\u21a8\u2191\u2193\u2192\u2190\u221f\u2194\u25b2\u25bc !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xa2\xa3\xa5\u20a7\u0192\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\u2310\xac\xbd\xbc\xa1\xab\xbb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0".split("");function an(t,e){return on(t,e,!0)}function on(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?function(t){let e="";for(let r=0;r<t.length;r++)e+=nn[t[r]];return e}(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const sn="HTTP error ",cn="HTTP Range not supported",ln="HTTP resource changed",dn="Writer iterator completed too soon",fn="Writer not initialized",un="Content-Range",pn="Range",mn="GET",wn="bytes",hn=16777216,yn="writable",bn=Symbol();class gn{constructor(){this.size=0}init(){this.initialized=!0}}class xn extends gn{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=Et(xt())}={}){const n=this;let a=0;return r=vt(r),new ReadableStream({async pull(o){const s=e===F?r:Math.min(r,e-a),i=await oa(n,t+a,s);i.length&&(o.enqueue(i),a+=i.length),(e!==F&&a>=e||!i.length&&s)&&o.close()}})}}class En extends gn{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw new Error(fn);return t.writeUint8Array(Ot(e))}});Object.defineProperty(t,yn,{get:()=>e})}writeUint8Array(){}}class vn extends xn{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{Ut:t,It:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{It:r,Ut:n}=this,a=new Uint8Array(e),o=4*Math.floor(t/3),s=atob(n.substring(o+r,4*Math.ceil((t+e)/3)+r)),i=t-3*Math.floor(o/4);let c=0;for(let t=i;t<i+e&&t<s.length;t++)a[t-i]=s.charCodeAt(t),c++;return c<a.length?a.subarray(0,c):a}}class Sn extends En{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",Ct:""})}writeUint8Array(t){const e=this;let r,n=e.Ct;const a=e.Ct.length;for(e.Ct="",r=0;r<3*Math.floor((a+t.length)/3)-a;r++)n+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.Ct+=String.fromCharCode(t[r]);n.length>2?e.data+=btoa(n):e.Ct=n+e.Ct}getData(){return this.data+btoa(this.Ct)}}let zn,kn;class An extends xn{constructor(t){super(),Object.assign(this,{jt:t,size:t.size}),kn||(kn=(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();zn=1==e}catch{zn=!1}})())}createReadable(t){const{jt:e,size:r}=this,{offset:n=0,size:a=r-n}=t||{};if(typeof e.stream==U){if(!n&&a>=r)return Me(e.stream());if(zn)return Me(e.slice(n,n+a).stream())}return super.createReadable(t)}async readUint8Array(t,e){const r=this,n=t+e,a=!t&&n>=r.size?r.jt:r.jt.slice(t,n);let o=await a.arrayBuffer();return o.byteLength>e&&(o=o.slice(t,n)),new Uint8Array(o)}}class Rn extends gn{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,yn,{get:()=>r.writable}),e.contentType=t,e.Mt=Ne(r.readable,t),e.Mt.catch(()=>{})}getData(){return this.Mt}}class Dn extends An{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function Fn(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 On extends Rn{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 on(t,e,!1)}(new Uint8Array(await r.arrayBuffer()),t)}}class Tn extends xn{constructor(t,e){super(),In(this,t,e)}async init(){await Cn(this,Hn,Wn),super.init()}createReadable(t){const e=this,{useRangeHeader:r,forceRangeRequests:n,size:a}=e;if((r||n)&&a!==F){const{offset:r=0,size:n=a-r}=t||{};if(n>0&&r<a)return function(t,e,r){let n,a=e,o=0,s=r;return new ReadableStream({start:()=>i(),async pull(t){n||await i();const{value:e,done:r}=await n.read();if(r)throw new Error(cn);const a=e.length>o?e.subarray(0,o):e;o-=a.length,s-=a.length,a.length&&t.enqueue(a),o||(await async function(){const t=n;n=F,await t.cancel()}(),s||t.close())},cancel:t=>n&&n.cancel(t)});async function i(){const e=Math.min(t.maximumRangeSize,s),r=await Hn(mn,t,Pn(t,a,e));if(206!=r.status)throw new Error(cn);const i=r.headers.get(un);if(i){const t=Number(i.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=a)throw new Error(cn)}Bn(t,r),_n(t,r),a+=e,o=e,n=r.body.getReader()}}(e,r,Math.min(n,a-r))}return super.createReadable(t)}readUint8Array(t,e){return jn(this,t,e,Hn,Wn)}}class Un extends xn{constructor(t,e){super(),In(this,t,e)}async init(){await Cn(this,Gn,qn),super.init()}readUint8Array(t,e){return jn(this,t,e,Gn,qn)}}function In(t,e,r){const{preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:o,combineSizeEocd:s,checkResourceChanges:i=!0,maximumRangeSize:c=hn,fetch:l}=r;delete(r=Object.assign({},r)).preventHeadRequest,delete r.useRangeHeader,delete r.forceRangeRequests,delete r.combineSizeEocd,delete r.checkResourceChanges,delete r.maximumRangeSize,delete r.useXHR,delete r.fetch,Object.assign(t,{url:e,options:r,preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:o,combineSizeEocd:s,checkResourceChanges:i,maximumRangeSize:c,fetch:l})}async function Cn(t,e,r){const{url:n,preventHeadRequest:a,useRangeHeader:o,forceRangeRequests:s,combineSizeEocd:i}=t;if(function(t){const{baseURI:e}=xt(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r}(n)&&(o||s)&&(typeof a==T||a)){const n=await e(mn,t,Pn(t,i?-22:void 0)),a=n.headers.get("Accept-Ranges");if(!(s||a&&a.toLowerCase()==wn))throw new Error(cn);{if(i){const e=new Uint8Array(await n.arrayBuffer());206==n.status&&e.length==u&&(t._t=e)}_n(t,n);const a=Mn(n);a===F?await Vn(t,e,r):t.size=a}}else await Vn(t,e,r)}async function jn(t,e,r,n,a){const{useRangeHeader:o,forceRangeRequests:s,_t:i,size:c,options:l}=t;if(o||s){if(i&&e==c-u&&r==u)return i;if(e>=c||0===r)return j;{e+r>c&&(r=c-e);const a=await n(mn,t,Pn(t,e,r));if(206!=a.status)throw new Error(cn);const o=a.headers.get(un);if(o){const t=Number(o.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=e)throw new Error(cn)}Bn(t,a),_n(t,a);const s=new Uint8Array(await a.arrayBuffer());if(s.length!=r)throw new Error(cn);return s}}{const{data:n}=t;return n||await a(t,l),t.data.subarray(e,e+r)}}function Mn(t){const e=t.headers.get(un);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function Nn({headers:t}){return{Bt:t.get("Etag")||F,lastModified:t.get("Last-Modified")||F}}function _n(t,e){const{checkResourceChanges:r,Pt:n}=t;r&&!n&&206==e.status&&(t.Pt=Nn(e))}function Bn(t,e){const{checkResourceChanges:r,Pt:n,size:a}=t;if(r){const t=Mn(e);if(t!==F&&a!==F&&t!=a)throw new Error(ln);if(n){const t=Nn(e);if(Object.entries(n).some(([e,r])=>r!==F&&t[e]!==F&&r!=t[e]))throw new Error(ln)}}}function Pn(t,e=0,r=1){return Object.assign({},Ln(t),{[pn]:wn+"="+(e<0?e:e+"-"+(e+r-1))})}function Ln({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Wn(t){await Zn(t,Hn)}async function qn(t){await Zn(t,Gn)}async function Zn(t,e){const r=await e(mn,t,Ln(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function Vn(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const n=await e("HEAD",t,Ln(t)),a=n.headers.get("Content-Length");a&&!n.headers.get("Content-Encoding")?t.size=Number(a):await r(t,t.options)}}async function Hn(t,{fetch:e=fetch,options:r,url:n},a){const o=await e(n,Object.assign({},r,{method:t,headers:a}));if(o.status<400)return o;throw 416==o.status?new Error(cn):new Error(sn+(o.statusText||o.status))}function Gn(t,{url:e},r){return new Promise((n,a)=>{const o=new XMLHttpRequest;if(o.addEventListener("load",()=>{if(o.status<400){const t=[];o.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(e=>{const r=e.trim().split(/\s*:\s*/);r[0]=r[0].trim().replace(/^[a-z]|-[a-z]/g,t=>t.toUpperCase()),t.push(r)}),n({status:o.status,arrayBuffer:()=>o.response,headers:new Map(t)})}else a(416==o.status?new Error(cn):new Error(sn+(o.statusText||o.status)))},!1),o.addEventListener("error",t=>a(t.detail?t.detail.error:new Error("Network error")),!1),o.open(t,e),r)for(const t of Object.entries(r))o.setRequestHeader(t[0],t[1]);o.responseType="arraybuffer",o.send()})}class Kn extends xn{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new Un(t,e):new Tn(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 Yn extends Kn{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class Xn extends xn{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{Lt:t,size:t.length})}readUint8Array(t,e){return this.Lt.slice(t,t+e)}}class Jn extends En{constructor(t){super(),this.Wt=t||262144}init(t=0){Object.assign(this,{offset:0,Lt:new Uint8Array(t>0?t:this.Wt)}),super.init()}writeUint8Array(t){const e=this,r=e.offset+t.length;if(r>e.Lt.length){let t=e.Lt.length?2*e.Lt.length:e.Wt;for(;t<r;)t*=2;const n=e.Lt;e.Lt=new Uint8Array(t),e.Lt.set(n)}e.Lt.set(t,e.offset),e.offset+=t.length}getData(){return this.offset===this.Lt.length?this.Lt:this.Lt.slice(0,this.offset)}}class Qn extends xn{constructor(t){super(),this.qt=t}async init(){const t=this;t.Zt=0;const e=t.qt=await Promise.all(t.qt.map(aa));t.Vt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}Ht(t){const{Vt:e,size:r}=this,n=e[t];return n===F?r:n}async readUint8Array(t,e){const r=this,{qt:n}=this;let a,o=0,s=t;for(;n[o]&&s>=n[o].size;)s-=n[o].size,o++;const i=n[o];if(i){const n=i.size;if(s+e<=n)a=await oa(i,s,e);else{const o=n-s;a=Ft(await oa(i,s,o),await r.readUint8Array(t+o,e-o))}}else a=j;return r.Zt=Math.max(o,r.Zt),a}}class $n extends gn{constructor(t,e=4294967295){super();const r=this;let n,a,o;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:e,availableSize:e});const s=new WritableStream({async write(e){if(e===bn)return void(o&&await c());const{availableSize:s}=r;if(o)e.length>=s?(await i(e.subarray(0,s)),await c(),e.length>s&&await this.write(e.subarray(s))):await i(e);else{const{value:s,done:i}=await t.next();if(i&&!s)throw new Error(dn);n=s,n.size=0,n.maxSize&&(r.maxSize=n.maxSize),r.availableSize=r.maxSize,await na(n),a=s.writable,o=a.getWriter(),await this.write(e)}},async close(){o&&(await o.ready,await l())},async abort(t){o&&await o.abort(t)}});async function i(t){const e=t.length;e&&(await o.ready,await o.write(t),n.size+=e,r.availableSize-=e)}async function c(){await l(),r.diskOffset+=n.size,r.diskNumber++,o=null,r.availableSize=r.maxSize}async function l(){await o.close()}Object.defineProperty(r,yn,{get:()=>s})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(bn)}finally{t.releaseLock()}}}class ta{constructor(t){return Array.isArray(t)&&(t=new Qn(t)),(t instanceof ReadableStream||typeof t.getReader==U)&&(t={readable:Me(t)}),t}}class ea{constructor(t){return t.writable===F&&typeof t.next==U&&(t=new $n(t)),(t instanceof WritableStream||typeof t.getWriter==U)&&(t={writable:_e(t)}),t.size===F&&(t.size=0),t}}function ra(t){return Boolean(t&&t.getData)}async function na(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function aa(t){return t=new ta(t),await na(t),t.size!==F&&t.readUint8Array||(t=new An(await Ne(t.readable)),await na(t)),t}function oa(t,e,r){return t.readUint8Array(e,r)}function sa(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?xn.prototype.createReadable.call(t,e):t.readable}const ia="filename",ca="rawFilename",la="comment",da="rawComment",fa="uncompressedSize",ua="compressedSize",pa="offset",ma="diskNumberStart",wa="lastModDate",ha="rawLastModDate",ya="lastAccessDate",ba="rawLastAccessDate",ga="creationDate",xa="rawCreationDate",Ea="internalFileAttributes",va="externalFileAttributes",Sa="msdosAttributesRaw",za="msdosAttributes",ka="msDosCompatible",Aa="zip64",Ra="encrypted",Da="version",Fa="versionMadeBy",Oa="zipCrypto",Ta="directory",Ua="executable",Ia="compressionMethod",Ca="signature",ja="extraField",Ma="unixMode",Na="setuid",_a="setgid",Ba="sticky",Pa=[ia,ca,fa,ua,wa,ha,la,da,ya,ba,ga,xa,pa,ma,Ea,va,Sa,za,ka,Aa,Ra,Da,Fa,Oa,Ta,Ua,"symlink",Ia,Ca,"crc32",ja,"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 La{constructor(t){Pa.forEach(e=>this[e]=t[e])}}const Wa="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="Split zip file",Ja="Overlapping entry found",Qa="Entry data out of bounds",$a="Ambiguous archive",to="Encrypted central directory is not supported",eo="Unsafe filename",ro="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",no="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",ao="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",oo="64-bit value exceeds Number.MAX_SAFE_INTEGER",so="unsorted central directory",io="unknown version needed to extract",co="compressed patched data",lo="malformed extra field",fo="unknown zip64 extensible data",uo="wrapped entries count",po="appended data",mo="prepended data",wo="prepended central directory",ho="trailing central directory data",yo="duplicate filename",bo="mismatched zip64 end of central directory record",go="mismatched local file header (general purpose bit flag)",xo="mismatched local file header (compression method)",Eo="mismatched local file header (crc32 or sizes)",vo=/^[a-zA-Z]:/,So="utf-8",zo="cp437",ko=[[fa,t],[ua,t],[pa,t],[ma,e]],Ao={[e]:{Gt:ls,bytes:4},[t]:{Gt:ds,bytes:8}},Ro=BigInt(Number.MAX_SAFE_INTEGER);class Do{constructor(t,e={}){Object.assign(this,{reader:new ta(t),options:e,Kt:new Map})}async*getEntriesGenerator(n={}){const o=this;let{reader:s}=o;if(await na(s),s.size!==F&&s.readUint8Array||(s=new An(await Ne(s.readable)),await na(s)),s.size<u)throw new Error(Wa);const c=o.warnings=[],w=Vo(n,o.options),h=w==J,y=w!=$,b=Ko(ns(o,n,G),w),g=function(t,e){if(t===F)return e;if(!Zo(t))throw new Error(no);return t}(ns(o,n,"filenameValidation"),w),x=ns(o,n,"normalizeFilename"),{Yt:A,Xt:R}=await Yo(s,y,b);if(!A)throw await async function(t){return await qo(t)==a}(s)?new Error(Xa):new Error(qa);y&&R>1&&rs("multiple end of central directory records");const D=Tt(A);let O=ls(D,12),T=ls(D,16);const U=A.offset,I=cs(D,20),C=U+u+I,M=s.size-C;M>b&&rs(po),M>0&&es(c,po);let N=cs(D,4);const _=s.Zt||0;let B,P,L,W,q,Z=cs(D,6),V=cs(D,10),H=0,K=m;const Q=T==t||O==t||V==e||Z==e;if(T!=t&&Z!=e&&(T+=Wo(s,Z)),Q){const r=A.offset>=p?await oa(s,A.offset-p,p):j,n=Tt(r);if(r.length==p&&ls(n,0)==d){T=Wo(s,ls(n,4))+ds(n,8);let r=await oa(s,T,m),a=Tt(r);const o=A.offset-p-m;if((r.length<m||ls(a,0)!=l)&&T!=o&&o>=0){const t=T;T=o,T>t&&(H=T-t),r=await oa(s,T,m),a=Tt(r)}if(r.length<m||ls(a,0)!=l)throw new Error(Za);if(L=!0,W=ds(a,4)>44,W){const t=Math.min(ds(a,4)-44,s.size-T-m);t>0&&(K+=t,q=function(t){const e={rawExtensibleData:t};if(t.length>=28){const r=Tt(t),n=cs(r,26);Object.assign(e,{compressionMethod:cs(r,0),compressedSize:ds(r,2),uncompressedSize:ds(r,10),encryptionAlgorithm:cs(r,18),bitLength:cs(r,20),flags:cs(r,22),hashAlgorithm:cs(r,24),hashData:t.subarray(28,28+n)})}return e}(await oa(s,T+m,t)))}N==e?N=ls(a,16):N!=ls(a,16)&&ts(h,c,bo),Z==e?Z=ls(a,20):Z!=ls(a,20)&&ts(h,c,bo),V==e?V=ds(a,32):V!=ds(a,32)&&ts(h,c,bo),O==t?O=ds(a,40):O!=ds(a,40)&&ts(h,c,bo),T=Wo(s,Z)+ds(a,48)+H}}let tt=O;const et=A.offset-(L?K+p:0);if(T>=s.size&&(H=s.size-T-O-u,T=s.size-O-u),_!=N)throw new Error(Xa);if(T<0)throw new Error(Wa);let rt=0,nt=await oa(s,T,O),at=Tt(nt);if(O){if(nt.length<4)throw new Error(Wa);const t=et-O;if(T!=t&&Z==N){const e=ls(at,rt)==i||Boolean(q&&q.compressedSize)||Uo(at);let r=!e;if(!r&&t>=0&&t+4<=s.size&&(r=ls(Tt(await oa(s,t,4)),0)==i),r){const r=T;T=t,T>r&&(H+=T-r,B=e),nt=await oa(s,T,O),at=Tt(nt)}}}const ot=et-T;if(O!=ot&&ot>=0&&Z==N&&(O=ot,nt=await oa(s,T,O),at=Tt(nt)),T<0||T>=s.size)throw new Error(Wa);o.directoryOffset=T,o.directoryLength=tt;const st=as(o,n,"decryptCentralDirectory");let it,ct;if(st&&V&&nt.length>=4&&ls(at,0)!=i&&(W||Uo(at))){const t=function(t,e,r){const n=t&&t.compressedSize?t.compressedSize:e;return n>0&&n<=r?n:r}(q,tt,nt.length);ct=nt.subarray(t),nt=await st(nt.subarray(0,t),q),at=Tt(nt),tt=nt.length,it=!0}q&&!it&&(nt.length<4||ls(at,0)==i)&&es(c,fo),P=T;const lt=ns(o,n,"filenameEncoding"),dt=ns(o,n,"commentEncoding"),ft=new Set;let ut,pt=-1;const mt=!h&&!L;!V&&mt&&(V=Io(at,nt,rt),V&&es(c,uo));for(let t=0;t<V;t++){const a=new To(s,o.options);if(rt+f>nt.length||ls(at,rt)!=i){if(0==t&&!it&&(W||Uo(at)))throw new Error(to);throw new Error(Va)}jo(a,at,rt+6);const l=Boolean(a.bitFlag.languageEncodingFlag),d=rt+f,u=d+a.filenameLength,p=u+a.extraFieldLength,m=cs(at,rt+4),w=!(m>>8),h=m>>8==3,y=nt.subarray(d,u),b=cs(at,rt+32),A=p+b,R=nt.subarray(p,A),D=l,O=l,T=ls(at,rt+38),U=T&r,I={readOnly:Boolean(1&U),hidden:Boolean(2&U),system:Boolean(4&U),directory:Boolean(16&U),archive:Boolean(32&U)},C=ls(at,rt+42),j=as(o,n,"decodeText")||an,M=D?So:lt||zo,N=O?So:dt||zo;let _=j(y,M,Y);if(_===F&&(_=an(y,M)),x){const t=x(_);t!==F&&(_=t)}if(Go(_,g)){const t=new Error(eo);throw t.filename=_,t}let B=j(R,N,X);B===F&&(B=an(R,N)),Object.assign(a,{index:t,Jt:it,versionMadeBy:m,msDosCompatible:w,zip64:!1,compressedSize:0,uncompressedSize:0,Qt:b,offset:C,diskNumberStart:cs(at,rt+34),internalFileAttributes:cs(at,rt+36),externalFileAttributes:T,msdosAttributesRaw:U,msdosAttributes:I,rawFilename:y,filenameUTF8:D,commentUTF8:O,rawExtraField:nt.subarray(u,p),rawComment:R,filename:_,comment:B}),Mo(a,a,at,rt+6)&&es(c,lo,_),a.offset+=H;const L=Wo(s,a.diskNumberStart)+a.offset;P=Math.min(L,P),L<pt&&es(c,so,_),pt=L,(a.version&r)>63&&es(c,io,_),32&~a.rawBitFlag||es(c,co,_),ft.has(a.filename)&&(ut=!0),ft.add(a.filename);const q=a.externalFileAttributes>>16&e;a.unixMode===F&&16877&q&&(a.unixMode=q);const Z=Boolean(a.unixMode&S),G=Boolean(a.unixMode&z),K=Boolean(512&a.unixMode),J=40960==((a.unixMode===F?q:a.unixMode)&E),Q=!J&&(a.unixMode!==F?!!(73&a.unixMode):h&&!!(73&q)),$=a.unixMode!==F&&(a.unixMode&E)==v,tt=(q&E)==v;Object.assign(a,{setuid:Z,setgid:G,sticky:K,symlink:J,unixExternalUpper:q,executable:Q,directory:$||tt||w&&I.directory||a.filename.endsWith(k),zipCrypto:a.encrypted&&!a.extraFieldAES});const et=new La(a);if(et.getData=(t,e)=>a.getData(t,et,o.Kt,e),et.arrayBuffer=async t=>{const e=new TransformStream,r=Ne(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await a.getData(e,et,o.Kt,t),r},rt=A,t==V-1&&mt){const t=Io(at,nt,rt);t&&(V+=t,es(c,uo))}const{onprogress:ot}=n;if(ot)try{await ot(t+1,V,new La(a))}catch{}yield et}let wt=rt,ht=Co(nt.subarray(rt))||(it?Co(ct):F);if(!ht&&!it){const t=T+rt,e=Math.min(et-t,65541);e>=6&&(ht=Co(await oa(s,t,e)))}ht&&(o.digitalSignature=ht,wt=rt+6+ht.length),(rt!=tt&&wt!=tt||!it&&rt!=O&&wt!=O)&&ts(h,c,ho),ut&&ts(h,c,yo);const yt=ns(o,n,"extractPrependedData"),bt=ns(o,n,"extractAppendedData"),gt=(h||yt)&&V&&4==P&&await async function(t){const e=await qo(t);return e==a||808471376==e}(s)?4:0;return h&&(H||V&&P>gt)&&rs(mo),(H||V&&P>4)&&es(c,mo),B&&es(c,wo),yt&&(o.prependedData=P>gt?await oa(s,gt,P-gt):j),o.comment=I?await oa(s,U+u,I):j,bt&&(o.appendedData=C<s.size?await oa(s,C,s.size-C):j),!0}async getEntries(t={}){const e=[];for await(const r of this.getEntriesGenerator(t))e.push(r);return e}async close(){const{reader:t}=this;t.readUint8Array||!t.readable||t.readable.locked||await t.readable.cancel()}}class Fo{constructor(t={}){const{readable:e,writable:r}=new TransformStream,n=new Do(e,t).getEntriesGenerator();this.readable=new ReadableStream({async pull(t){const{done:e,value:r}=await n.next();if(e)return t.close();const a=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}(),o={...r,readable:a};delete o.getData,t.enqueue(o)}}),this.writable=r}}async function Oo(t,e={}){if(t=new ta(t),await na(t),t.size!==F&&t.readUint8Array||(t=new An(await Ne(t.readable)),await na(t)),t.size<u)return!1;const r=Vo(e,{}),n=r!=$,a=Ko(e[G],r),{Yt:o,Xt:s}=await Yo(t,n,a);if(!o||r==J&&s>1)return!1;const i=cs(Tt(o),20),c=o.offset+u+i;return t.size-c<=a}let To=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,a,s={}){const i=this,c=xt(),{reader:l,index:d,offset:f,diskNumberStart:u,extraFieldAES:p,extraFieldZip64:m,compressionMethod:w,bitFlag:h,rawBitFlag:y,crc32:b,rawLastModDate:g,uncompressedSize:x,compressedSize:E}=i,{dataDescriptor:v}=h,S=e.localDirectory={},z=e.warnings=[],k=Wo(l,u)+f,R=await oa(l,k,A),D=Tt(R);let O=ns(i,s,M),T=ns(i,s,N);const U=ns(i,s,_);if(ct(O,T),O=O&&O.length&&O,T=T&&T.length&&T,p&&99!=p.originalCompressionMethod)throw new Error(We);if(R.length<A||ls(D,0)!=n)throw new Error(Ha);jo(S,D,4);const{extraFieldLength:I,filenameLength:C}=S,Z=S.dataOffset=k+A+C+I,V=ns(i,s,"checkLocalDirectory"),H=Vo(s,i.options),G=function(t,e){return t===F?e!=$:Boolean(t)}(V,H),K=function(t,e){return t===F?e==J:Boolean(t)}(V,H);let Y=j;if(K&&(C||I)){const t=await oa(l,k+A,C+I);Y=t.subarray(0,C),S.rawExtraField=t.subarray(C)}else S.rawExtraField=I?await oa(l,k+A+C,I):j;K&&(S.rawFilename=Y),Mo(i,S,D,4,!0)&&es(z,lo),function(t,e,r,n,a){const{rawFilename:o}=t,s=!a,i=t.Jt&&!(8192&~e.rawBitFlag);!n||i||r.length==o.length&&!r.some((t,e)=>t!=o[e])||ts(s,a,"mismatched local file header (filename)"),(2057&e.rawBitFlag)!=(2057&t.rawBitFlag)&&ts(s,a,go),e.compressionMethod!=t.compressionMethod&&ts(s,a,xo),e.bitFlag.dataDescriptor||i||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||ts(s,a,Eo)}(i,S,Y,K,G?F:z);const{lastAccessDate:X,creationDate:Q,uid:tt,gid:et}=S;X&&(e.lastAccessDate=X),Q&&(e.creationDate=Q),tt!==F&&e.uid===F&&(e.uid=tt),et!==F&&e.gid===F&&(e.gid=et);const rt=i.encrypted&&S.encrypted&&!U,nt=rt&&!p;if(U||(e.zipCrypto=nt),rt&&!(64&~S.rawBitFlag))throw new Error(Ya);const at=U?F:Ke(w);if(0!=w&&8!=w&&9!=w&&!at&&!U)throw new Error(We);if(rt){if(!nt&&(p.strength<1||p.strength>3))throw new Error(Ya);if(!O&&!T)throw new Error(Ka)}if(Z+E>l.size)throw new Error(Qa);const ot=E,lt=Me(l.createReadable({offset:Z,size:ot})),dt=st(ns(i,s,B));it(dt);const ft=ns(i,s,"checkPasswordOnly");let ut=ns(i,s,"checkOverlappingEntry");const pt=ns(i,s,"checkOverlappingEntryOnly");pt&&(ut=!0);const{onstart:mt,onprogress:wt,onend:ht}=s,yt=0!=w&&!U,bt=U?E:x,gt=9==w;let Et=ns(i,s,L);gt&&(Et=!1);const vt=ns(i,s,"checkCrc32"),St=(vt===F?ns(i,s,"checkSignature"):vt)&&!U&&(!rt||nt||p&&1==p.vendorVersion),zt={options:{codecType:br,password:O,rawPassword:T,zipCrypto:nt,encryptionStrength:p&&p.strength,checkCrc32:St,checkAuthenticationCode:ns(i,s,"checkAuthenticationCode"),passwordVerification:nt&&(v?g>>>8&r:b>>>24&r),outputSize:bt,crc32:b,compressed:yt,encrypted:rt,useWebWorkers:ns(i,s,P),useCompressionStream:Et,transferStreams:ns(i,s,W),deflate64:gt,format:at?at.format:F,codecURI:at?at.codecURI:F,compressionMethod:w,rawBitFlag:y,checkPasswordOnly:ft},config:c,ut:{signal:dt,size:ot,onstart:mt,onprogress:wt,onend:ht}};let kt,At;ut&&await async function({reader:t,$t:e,index:r,offset:n,crc32:a,compressedSize:s,uncompressedSize:i,dataOffset:c,dataDescriptor:l,extraFieldZip64:d,Kt:f}){let u=0;if(l&&(u=d?20:12),u){const r=await oa(t,c+s,u+4),n=Tt(r);let l=r.length==u+4&&ls(n,0)==o;if(l){const t=Lo(n,4,d);(e.encrypted&&!e.zipCrypto||t.crc32==a)&&t.compressedSize==s&&t.uncompressedSize==i?u+=4:l=!1}if(r.length>=u){const t=Lo(n,l?4:0,d);t.signature=l,e.localDirectory.dataDescriptor=t}}const p={start:n,end:c+s+u,$t:e};for(const[t,e]of f)if(t!=r&&p.start<e.end&&e.start<p.end){const t=new Error(Ja);throw t.overlappingEntry=e.$t,t}f.set(r,p)}({reader:l,$t:e,index:d,offset:k,crc32:b,compressedSize:E,uncompressedSize:x,dataOffset:Z,dataDescriptor:v||S.bitFlag.dataDescriptor,extraFieldZip64:m||S.extraFieldZip64,Kt:a});try{if(!pt){ft&&(t=new WritableStream),t=new ea(t),await na(t,function(t,e,r){return Math.min(t,r?1032*e:e)}(bt,E,yt)),({writable:kt}=t);const{outputSize:e}=await Jr({readable:lt,writable:kt},zt);if(t.size+=e,e!=bt)throw new Error(Qe)}}catch(e){if(e.outputSize!==F&&(t.size+=e.outputSize),!ft||e.message!=Jt)throw At=e,e}finally{if((ra(t)||!ns(i,s,q))&&kt&&!kt.locked){const t=kt.getWriter();if(At)try{await t.abort(At)}catch{}else await t.close()}}return ft||pt?F:t.getData?t.getData():kt}};function Uo(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;r<e;r++)if(134630224==ls(t,r))return!0;return!1}function Io(t,e,r){let n=0;for(;r+f<=e.length&&ls(t,r)==i;)r+=f+cs(t,r+28)+cs(t,r+30)+cs(t,r+32),n++;return n%65536?0:n}function Co(t){if(t.length>=6){const e=Tt(t);if(ls(e,0)==s){const r=cs(e,4);if(6+r<=t.length)return t.subarray(6,6+r)}}}function jo(t,e,r){const n=t.rawBitFlag=cs(e,r+2),a=!(1&~n),o=ls(e,r+6);Object.assign(t,{encrypted:a,version:cs(e,r),bitFlag:{level:(6&n)>>1,dataDescriptor:!(8&~n),languageEncodingFlag:(n&x)==x},rawLastModDate:o,lastModDate:os(o),filenameLength:cs(e,r+22),extraFieldLength:cs(e,r+24)})}function Mo(t,e,r,n,a){const{rawExtraField:o}=e,s=e.extraField=new Map,i=Tt(o);let c=0,l=!1;try{for(;c<o.length;){const t=cs(i,c),e=cs(i,c+2);s.set(t,{type:t,data:o.slice(c+4,c+4+e)}),c+=4+e}}catch{l=!0}c>o.length&&(l=!0);const d=cs(r,n+4);Object.assign(e,{signature:ls(r,n+10),crc32:ls(r,n+10),compressedSize:ls(r,n+14),uncompressedSize:ls(r,n+18)});const f=s.get(1);f&&(function(t,e){e.zip64=!0;const r=Tt(t.data),n=ko.filter(([t,r])=>e[t]==r),a=n.reduce((t,[,e])=>t+Ao[e].bytes,0);if(t.data.length<a)throw new Error(Ga);for(let a=0,o=0;a<n.length;a++){const[s,i]=n[a],c=Ao[i];e[s]=t[s]=c.Gt(r,o),o+=c.bytes}}(f,e),e.extraFieldZip64=f);const u=s.get(28789);u&&(No(u,ia,ca,e,t),e.extraFieldUnicodePath=u);const p=s.get(25461);p&&(No(p,la,da,e,t),e.extraFieldUnicodeComment=p);const m=s.get(w);m&&m.data.length>=7?(function(t,e,r){const n=Tt(t.data),a=is(n,4);Object.assign(t,{vendorVersion:is(n,0),vendorId:is(n,2),strength:a,originalCompressionMethod:r,compressionMethod:cs(n,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=F)}(m,e,d),e.extraFieldAES=m):e.compressionMethod=d;const x=s.get(13);x&&(_o(x,e),e.extraFieldPkwareUnix=x);const E=s.get(22613);E&&(_o(E,e),e.extraFieldUnixType1=E);const v=s.get(10);v&&(function(t,e){const r=Tt(t.data);let n,a=4;try{for(;a<t.data.length&&!n;){const e=cs(r,a),o=cs(r,a+2);1==e&&(n=t.data.slice(a+4,a+4+o)),a+=4+o}}catch{}if(n&&24==n.length){const r=Tt(n),a=r.getBigUint64(0,!0),o=r.getBigUint64(8,!0),s=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:a,rawLastAccessDate:o,rawCreationDate:s});const i={lastModDate:ss(a),lastAccessDate:ss(o),creationDate:ss(s)};Object.assign(t,i),Object.assign(e,i,{rawLastAccessDate:o,rawCreationDate:s})}}(v,e),e.extraFieldNTFS=v);const S=s.get(g);let z;if(S&&(z=Bo(S,e,!1),e.extraFieldUnix=S),!z){const t=s.get(b);t&&(Bo(t,e,!0),e.extraFieldInfoZip=t)}const k=s.get(h);k&&(function(t,e,r){if(!t.data.length)return;const n=Tt(t.data),a=is(n,0),o=[],s=[];r?(1&~a||(o.push(wa),s.push(ha)),2&~a||(o.push(ya),s.push(ba)),4&~a||(o.push(ga),s.push(xa))):t.data.length>=5&&(o.push(wa),s.push(ha));let i=1;o.forEach((r,a)=>{if(t.data.length>=i+4){const o=ls(n,i);e[r]=t[r]=new Date(1e3*(0|o));const c=s[a];t[c]=o}i+=4})}(k,e,a),e.extraFieldExtendedTimestamp=k);const A=s.get(y);return A&&(e.extraFieldUSDZ=A),l}function No(t,e,r,n,a){if(t.data.length<5)return void(t.valid=!1);const o=Tt(t.data),s=new Lt;s.append(a[r]);const i=Tt(new Uint8Array(4));i.setUint32(0,s.get(),!0);const c=ls(o,1),l=is(o,0);Object.assign(t,{version:l,[e]:an(t.data.subarray(5)),valid:1==l&&!a.bitFlag.languageEncodingFlag&&c==ls(i,0)}),t.valid&&(n[e]=t[e],n[e+"UTF8"]=!0)}function _o(t,e){if(t.data.length<8)return;const r=Tt(t.data),n={lastAccessDate:new Date(1e3*(0|ls(r,0))),lastModDate:new Date(1e3*(0|ls(r,4)))};t.data.length>=12&&(n.uid=cs(r,8),n.gid=cs(r,10)),Object.assign(t,n),Object.assign(e,n)}function Bo(t,e,r){try{const n=Tt(t.data);let a,o;if(r){let e=0;const r=is(n,e++),s=is(n,e++);a=Po(t.data.subarray(e,e+s)),e+=s;const i=is(n,e++);o=Po(t.data.subarray(e,e+i)),Object.assign(t,{version:r,uid:a,gid:o})}else t.data.length>=4&&(a=cs(n,0),o=cs(n,2),Object.assign(t,{uid:a,gid:o}));return a!==F&&(e.uid=a),o!==F&&(e.gid=o),a!==F||o!==F}catch{}}function Po(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function Lo(t,e,r){const n=ls(t,e);let a,o;return r?(a=ds(t,e+4),o=ds(t,e+12)):(a=ls(t,e+4),o=ls(t,e+8)),{crc32:n,compressedSize:a,uncompressedSize:o}}function Wo(t,e){return t.Ht?t.Ht(e):0}async function qo(t){return ls(Tt(await oa(t,0,4)))}function Zo(t){return t===J||t===Q||t===$}function Vo(t,e){return Ho(t,Ho(e,Q))}function Ho(t,e){const r=t.strictness;if(r!==F){if(!Zo(r))throw new Error(ro);return r}const n=t.checkAmbiguity;return n===F?e:n?J:e==$?$:Q}function Go(t,e){if(e==$)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(r.includes("..")||t.startsWith("/")||t.startsWith("\\\\")||vo.test(t))||e==J&&(r.includes(".")||r.includes(""))}function Ko(t,r){if(t!==F){const e=ft(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw new Error(ao);return e}return r==J?0:r==$?1/0:e}async function Yo(t,e,r){const{size:n}=t,a=Math.min(n,65557),o={count:64};let s,i,c=0;for await(const[r,l,d,f,p]of Xo(t,a)){const a=cs(r,f+20);if(p+u+a==n){const a=await Qo(t,r,l,f,p,n,o);if(2==a){if(s||(s=Jo(d,f,p)),c++,!e||c>1)break}else 1!=a||i||(i=Jo(d,f,p))}}return s||(s=i),s||(s=await async function(t,e,r){const{size:n}=t,a=Math.min(n,e==1/0?n:65557+e);let o,s;for await(const[e,i,c,l,d]of Xo(t,a)){const a=Jo(c,l,d);o||(o=a);const f=await Qo(t,e,i,l,d,n,r);if(2==f)return a;1!=f||s||(s=a)}return s||o}(t,r,o)),{Yt:s,Xt:c}}async function*Xo(t,e){const r=t.size-e,n=await oa(t,r,e),a=Tt(n);for(let t=n.length-u;t>=0;t--)ls(a,t)==c&&(yield[a,r,n,t,r+t])}function Jo(t,e,r){return{offset:r,buffer:t.slice(e,e+u).buffer}}async function Qo(r,n,a,o,s,c,l){const f=cs(n,o+10),u=ls(n,o+12),m=ls(n,o+16);if(f==e||u==t||m==t)return await $o(r,n,a,s-p,c,l)==d?2:0;if(!f&&!u)return 1;const w=cs(n,o+6);for(const t of[s-u,Wo(r,w)+m])if(await $o(r,n,a,t,c,l)==i)return 2;return 0}async function $o(t,e,r,n,a,o){return n<0||n+4>a?F:n>=r?ls(e,n-r):o.count>0?(o.count--,ls(Tt(await oa(t,n,4)),0)):F}function ts(t,e,r){t?rs(r):es(e,r)}function es(t,e,r){if(!t.some(t=>t.reason==e)){const n={reason:e};r!==F&&(n.filename=r),t.push(n)}}function rs(t){const e=new Error($a);throw e.reason=t,e}function ns(t,e,r){return e[r]===F?t.options[r]:e[r]}function as(t,e,r){return ot(ns(t,e,r))}function os(t){const r=(4294901760&t)>>16,n=t&e,a=new Date(1980+((65024&r)>>9),((480&r)>>5)-1,31&r,(63488&n)>>11,(2016&n)>>5,2*(31&n),0);return a<D?D:a}function ss(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function is(t,e){return t.getUint8(e)}function cs(t,e){return t.getUint16(e,!0)}function ls(t,e){return t.getUint32(e,!0)}function ds(t,e){const r=t.getBigUint64(e,!0);if(r>Ro)throw new Error(oo);return Number(r)}var fs=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:$a,ERR_BAD_FORMAT:Wa,ERR_CENTRAL_DIRECTORY_NOT_FOUND:Va,ERR_ENCRYPTED:Ka,ERR_ENCRYPTED_CENTRAL_DIRECTORY:to,ERR_ENTRY_DATA_OUT_OF_BOUNDS:Qa,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:Za,ERR_EOCDR_NOT_FOUND:qa,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:Ga,ERR_INVALID_AUTHENTICATION_CODE:Xt,ERR_INVALID_COMPRESSED_DATA:$e,ERR_INVALID_CRC32:tr,ERR_INVALID_FILENAME_VALIDATION:no,ERR_INVALID_MAX_APPENDED_DATA_SIZE:ao,ERR_INVALID_PASSWORD:Yt,ERR_INVALID_STRICTNESS:ro,ERR_INVALID_UNCOMPRESSED_SIZE:Qe,ERR_LOCAL_FILE_HEADER_NOT_FOUND:Ha,ERR_OVERLAPPING_ENTRY:Ja,ERR_SPLIT_ZIP_FILE:Xa,ERR_UNSAFE_FILENAME:eo,ERR_UNSUPPORTED_COMPRESSION:We,ERR_UNSUPPORTED_ENCRYPTION:Ya,ERR_UNSUPPORTED_UINT64:oo,ERR_WORKER_STARTUP_TIMEOUT:Er,WARNING_APPENDED_DATA:po,WARNING_COMPRESSED_PATCHED_DATA:co,WARNING_DUPLICATE_FILENAME:yo,WARNING_MALFORMED_EXTRA_FIELD:lo,WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG:go,WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD:xo,WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES:Eo,WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY:bo,WARNING_PREPENDED_CENTRAL_DIRECTORY:wo,WARNING_PREPENDED_DATA:mo,WARNING_TRAILING_CENTRAL_DIRECTORY_DATA:ho,WARNING_UNKNOWN_VERSION:io,WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA:fo,WARNING_UNSORTED_CENTRAL_DIRECTORY:so,WARNING_WRAPPED_ENTRIES_COUNT:uo,ZipReader:Do,ZipReaderStream:Fo,isZipFile:Oo});const us="File already exists",ps="Zip file comment exceeds 64KB",ms="Invalid zip file comment (must be a Uint8Array)",ws="File entry comment exceeds 64KB",hs="Invalid file entry comment (must be a string)",ys="Invalid date (must be a valid Date instance)",bs="File entry name exceeds 64KB",gs="Version exceeds 65535",xs="The strength must equal 1, 2, or 3",Es="Encryption is not supported in USDZ files",vs="Split zip files are not supported in USDZ files",Ss="Encryption is not supported when the 'passThrough' option is set",zs="Invalid extra field (must be a Map)",ks="Invalid extra field type (must be integer 0..65535)",As="Invalid extra field data (must be a Uint8Array)",Rs="Extra field data exceeds 64KB",Ds=-2147483648,Fs=2147483647,Os=BigInt(0),Ts=BigInt("0x7fffffffffffffff"),Us="Zip64 is not supported (set the 'zip64' option to 'true')",Is="Undefined uncompressed size",Cs="Undefined compression method",js="Undetermined size",Ms="Undefined reader",Ns="Invalid reader (must be a Reader instance, a ReadableStream instance, or an object with a 'readable' property)",_s="Zip file not empty",Bs="Invalid uid (must be integer 0..2^32-1)",Ps="Invalid gid (must be integer 0..2^32-1)",Ls="Invalid UNIX mode (must be integer 0..65535)",Ws="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",qs="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",Zs="Invalid msdosAttributesRaw (must be integer 0..255)",Vs="Invalid msdosAttributes (must be an object with boolean flags)",Hs="Invalid level (must be integer 0..9)",Gs="Signature data exceeds 64KB",Ks=new Uint8Array([7,0,2,0,65,69,3,0,0]),Ys="infozip",Xs="unix";let Js=0;const Qs=[];class $s{constructor(t,e={}){t=new ea(t);const{availableSize:r=O,maxSize:n=O}=t,a=r>0&&r!==O&&n>0&&n!==O;if(a&&e[H])throw new Error(vs);Object.assign(this,{writer:t,te:a,options:e,ee:new Map,re:new Set,offset:e[V]===F?t.size||t.writable.size||0:e[V],ne:e[V]===F?0:e[V]-(t.size||t.writable.size||0),ae:new Set,oe:[],se:0,ie:0,ce:F})}prependZip(t){return ri(this,async function(t,e){if(t.re.size)throw new Error(_s);await t.le(e)}(this,t))}appendZip(t){return ri(this,this.le(t))}async le(t){const e=this,{ae:r,re:n,ee:o}=e;for(;r.size;)await Promise.allSettled(Array.from(r));let s;const i=new Promise(t=>s=t);r.add(i);const c=[];let l;try{t=new ta(t),await na(t),t.size!==F&&t.readUint8Array||(t=new An(await Ne(t.readable)),await na(t));const{ZipReader:r}=await Promise.resolve().then(function(){return fs}),s=new r(t),i=await s.getEntries();await s.close(),await na(e.writer);const{directoryOffset:d}=s;i.forEach(({filename:t})=>{if(n.has(t))throw new Error(us);n.add(t),c.push(t)}),e.de=!0;const{fe:f}=e;e.fe=new Promise(t=>l=()=>{e.de=!1,t()}),await f,e.te&&(delete e.te,await async function(t){return Tt(await oa(t,0,4)).getUint32(0,!0)==a}(t)||(await ki(e.writer,Si()),e.offset+=4));const u=await async function(t,e,r,n){const{writer:a}=t,o=new Map;if(a.closeDisk){const s=Array.from(r).sort((t,r)=>vi(e,t)-vi(e,r));let i=0;for(const r of s){const n=vi(e,r);await xi(t,e,i,n-i),yi(a,await Ei(e,n))&&await a.closeDisk(),o.set(r,{offset:bi(t,a),diskNumberStart:wi(a)}),i=n}await xi(t,e,i,n-i)}else{const a=t.offset;await xi(t,e,0,n),r.forEach(t=>o.set(t,{offset:a+vi(e,t),diskNumberStart:0}))}return o}(e,t,i,d);i.forEach(t=>{const{version:e,rawLastModDate:r,rawFilename:n,bitFlag:a,encrypted:s,uncompressedSize:i,compressedSize:c,extraFieldZip64:l}=t;let{compressionMethod:d,rawExtraField:f}=t;const{level:p,languageEncodingFlag:m,dataDescriptor:w}=a;f=gi(f||j),t.extraFieldAES&&(d=99);const h=Wi(f),y=Boolean(l)&&l.uncompressedSize!==F,b=Boolean(l)&&l.compressedSize!==F,g=-7&Zi(p,m,w,s,d)|p<<1,{ue:x,pe:E}=qi({version:e,bitFlag:g,compressionMethod:d,uncompressedSize:i,compressedSize:c,rawLastModDate:r,rawFilename:n,me:b,we:y,extraFieldLength:h}),{crc32:v}=t;v!==F&&Bi(E,10,v);const{offset:S,diskNumberStart:z}=u.get(t);Object.assign(t,{he:!0,we:y,me:b,offset:S,diskNumberStart:z,ye:!1,be:j,ge:j,xe:j,Ee:j,ve:j,rawExtraField:f,Se:j,extendedTimestamp:!1,ue:x,pe:E}),o.set(t.filename,t)})}catch(t){throw c.forEach(t=>n.delete(t)),t}finally{s(),r.delete(i),l&&l()}}add(e="",n,a={}){const o=this,{ae:s}=o,i=async function(e,n,a,o){if(Ti(e,o=Object.assign({},o),Ta)&&!n.endsWith(k)&&(n+=k),e.re.has(n))throw new Error(us);e.re.add(n),Js<xt().maxWorkers?Js++:await new Promise(t=>Qs.push(t));try{return await async function(e,n,a,o){const s=oi(e,n,o);({name:n}=s);const i=si(e,n,o),{comment:c}=i,l=o[ja];e.ee.set(n,F);const d=e.ce,f={};let u,p;i.ze.keepOrder&&(f.ke=new Promise(t=>u=t)),e.ce=f;try{const{ze:c}=i;0==c.level||c.compressionMethod!==F||c.passThrough||await Ar(xt())||(c.level=0);const l=await async function(t,e,{ze:r},n){if(r.passThrough&&!e&&!Ti(t,n,Ta))throw new Error(Ms);let a;if(e){if(e=new ta(e),await na(e),!e.readable&&!e.readUint8Array)throw new Error(Ns);({size:a}=e)}return Object.assign({reader:e},ci(t,Boolean(e),a,r,n))}(e,a,i,o);({reader:a}=l);const m=hi(e.writer),w=wi(e.writer),h=li(o=Object.assign({},o,s.ze,i.ze,l.ze,{signature:o[Ca],crc32:o.crc32===F?o[Ca]:o.crc32,offset:e.offset-m,diskNumberStart:w,[H]:e.options[H]})),y=ui(o),b=Wi(h.Ae,y.Re);p=await async function(e,n,a,o,s){const{ee:i,writer:c}=e,{keepOrder:l,dataDescriptor:d,De:f,signal:u}=s,{Fe:p,$t:m,Oe:w,Te:h}=o,y=e.options[H];let b,g,x,E,v,S,z,k=m,R=0;const D=l&&w?w.ke:F;i.set(n,k);try{s.bufferedWrite||!l||e.de||e.se||e.ie||!d&&!f?(b=!0,e.se++,z=s.createTempStream?await s.createTempStream():new TransformStream(F,F,{highWaterMark:O}),z.size=0,await na(c)):(g=!0,e.ie++,z=c,await D,await T()),await na(z);const m=hi(c);e.te&&!b&&await zi(e,c),y&&!b&&di(o,e.offset-m);const{Ae:w}=p;b||await U();const h=wi(c),x=bi(e,c);if(k.diskNumberStart=h,b||(v=!0,S=c.size,await ki(z,w)),k=await async function(e,n,{diskNumberStart:a,ke:o},s,i,c){const{Fe:l,Ue:d,Ie:f}=s,{ue:u,pe:p,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,be:x,Ce:E,xe:v,je:S,Ee:z,ve:k,ge:A}=l,{Re:R}=d,{rawFilename:D,lastAccessDate:O,creationDate:T,password:U,rawPassword:I,level:C,zip64:j,he:M,we:N,me:_,zipCrypto:B,dataDescriptor:P,directory:L,executable:W,versionMadeBy:q,rawComment:Z,rawExtraField:V,Se:H,useWebWorkers:G,transferStreams:K,onstart:Y,onprogress:X,onend:J,signal:Q,encryptionStrength:$,extendedTimestamp:tt,msDosCompatible:et,internalFileAttributes:rt,externalFileAttributes:nt,uid:at,gid:ot,unixMode:st,symlink:it,setuid:ct,setgid:lt,sticky:dt,unixExternalUpper:ft,msdosAttributesRaw:ut,msdosAttributes:pt,useCompressionStream:mt,passThrough:wt,format:ht,codecURI:yt}=c,bt={ke:o,versionMadeBy:q,zip64:j,he:M,directory:Boolean(L),executable:Boolean(W),filenameUTF8:!0,rawFilename:D,commentUTF8:!0,rawComment:Z,be:x,Ce:E,xe:v,Ee:z,ve:k,ge:A,rawExtraField:V,Se:H,extendedTimestamp:tt,msDosCompatible:et,internalFileAttributes:rt,externalFileAttributes:nt,diskNumberStart:a,uid:at,gid:ot,unixMode:st,symlink:Boolean(it),setuid:ct,setgid:lt,sticky:dt,unixExternalUpper:ft,msdosAttributesRaw:ut,msdosAttributes:pt};let{crc32:gt,uncompressedSize:xt}=c,Et=0;wt||(xt=0);const{writable:vt}=n;if(e){const a=e.size,o=Me(sa(e,{size:a})),s={options:{codecType:yr,inputSize:a,level:C,rawPassword:I,password:U,encryptionStrength:$,zipCrypto:h&&B,passwordVerification:h&&B&&w>>8&r,computeCrc32:!wt,compressed:y&&!wt,encrypted:h&&!wt,useWebWorkers:G,useCompressionStream:mt,transferStreams:K,format:ht,codecURI:yt,compressionMethod:g},config:i,ut:{signal:Q,size:a,onstart:Y,onprogress:X,onend:J}};try{const e=await Jr({readable:o,writable:vt},s);if(Et=e.outputSize,n.size+=Et,wt||(xt=e.inputSize,h&&!B||(gt=e.crc32)),!_&&Et>=t||!N&&xt>=t)throw new Error(Us)}catch(t){throw t.outputSize!==F&&(n.size+=t.outputSize),t}}return function({crc32:t,compressedSize:e,uncompressedSize:r,Fe:n,Ue:a},{zip64:o,zipCrypto:s,passThrough:i,dataDescriptor:c}){const{pe:l,encrypted:d}=n,{Me:f,Ne:u}=a;d&&!s&&!i||t===F||(Bi(l,10,t),c&&Bi(f,u,t)),o?c&&(Pi(f,u+4,BigInt(e)),Pi(f,u+12,BigInt(r))):(Bi(l,14,e),Bi(l,18,r),c&&(Bi(f,u+4,e),Bi(f,u+8,r)))}({crc32:gt,compressedSize:Et,uncompressedSize:xt,Fe:l,Ue:d},c),P&&await ki(n,R),Object.assign(bt,{uncompressedSize:xt,compressedSize:Et,lastModDate:m,rawLastModDate:w,creationDate:T,lastAccessDate:O,encrypted:Boolean(h),zipCrypto:Boolean(B),size:f+Et,compressionMethod:g,version:b,ue:u,pe:p,signature:gt,crc32:!h||B||wt?gt:F,je:S,we:N,me:_}),bt}(a,z,k,o,xt(),s),b||(v=!1),i.set(n,k),k.filename=n,b){if(await Promise.all([z.writable.getWriter().close(),D]),await T(),e.te&&await zi(e,c),E=!0,S=c.size,await U(),k.diskNumberStart=wi(c),k.offset=bi(e,c),y){const t=o.Ie;di(o,e.offset-hi(c)),k.size+=o.Ie-t}!function({rawFilename:t,encrypted:e,zip64:r,Ce:n,crc32:a,compressedSize:o,uncompressedSize:s,we:i,me:c},l,{dataDescriptor:d,passThrough:f}){if(d||((!e||f&&a!==F)&&Bi(l,14,a),c||Bi(l,18,o),i||Bi(l,22,s)),r&&n){const e=A+Wi(t)+4;Pi(l,e,BigInt(s)),Pi(l,e+8,BigInt(o))}}(k,p._e,s),await ki(c,p.Ae),await Ai(z.readable,c,u,t=>R+=t),c.size+=z.size,E=!1}else k.diskNumberStart=h,k.offset=x;return e.offset+=k.size,k}catch(t){if(E||v){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-S,b&&(e.offset+=R)}throw i.delete(n),t}finally{if(b&&e.se--,g&&e.ie--,h&&h(D),x&&x(),b&&z&&z.dispose)try{await z.dispose()}catch{}}async function T(){e.de=!0;const{fe:t}=e;e.fe=new Promise(t=>x=()=>{e.de=!1,t()}),await t}async function U(){yi(c,Wi(p.Ae))&&await c.closeDisk()}}(e,n,a,{Fe:h,Ue:y,Ie:b,$t:f,Oe:d,Te:u},o)}catch(t){throw e.ee.delete(n),t}finally{u&&u(d&&d.ke)}return Object.assign(p,{name:n,comment:c,extraField:l}),new La(p)}(e,n,a,o)}catch(t){throw e.re.delete(n),t}finally{const t=Qs.shift();t?t():Js--}}(o,e,n,a);s.add(i);const c=()=>s.delete(i);return Promise.prototype.then.call(i,c,c),ri(o,i)}remove(t){const{re:e,ee:r}=this;if(typeof t==C&&(t=r.get(t)),t&&t.filename!==F){const{filename:n}=t;if(e.has(n)&&r.has(n))return e.delete(n),r.delete(n),!0}return!1}async close(r=j,n={}){const a=this,{ae:o,writer:p}=this,{writable:m}=p;if(!(r instanceof Uint8Array))throw new Error(ms);if(Wi(r)>e)throw new Error(ps);for(;o.size;)await Promise.allSettled(Array.from(o));await Promise.allSettled(a.oe.map(t=>t.Be));const w=a.oe.filter(t=>t.error&&!t.Pe);if(w.length){const t=w.map(t=>t.error);w.forEach(t=>t.Pe=!0);const[e]=t;try{e.entryErrors=t}catch{}throw e}return await async function(r,n,a){const{Le:o,We:p}=pi(r.ee),{qe:m,Ze:w,Ve:h}=await async function(r,n,a){const{ee:o,writer:s}=r,c=new Uint8Array(n);await na(s);let l=0,d=0,u=wi(s),p=hi(s),m=0;for(const[r,n]of Array.from(o.values()).entries()){const{offset:w,rawFilename:h,be:y,ge:b,xe:g,Ee:x,ve:E,rawExtraField:v,Se:S,rawComment:z,versionMadeBy:k,ue:A,pe:R,we:D,me:F,ye:O,He:T,internalFileAttributes:U,externalFileAttributes:I,diskNumberStart:C,uncompressedSize:j,compressedSize:M}=n,N=Wi(y,b,g,x,E,v,S),_=f+Wi(h,z)+N;yi(s,l+_-d)&&(await ki(s,c.slice(d,l)),d=l,m=0,await s.closeDisk()),0==r&&(u=wi(s),p=hi(s)),D||Bi(R,18,j),F||Bi(R,14,M),(T||O)&&n.version<45&&_i(R,0,45);const B=mi(_);if(B.Ge(i),B.Ke(k),B.Ye(A.subarray(0,24)),B.Ke(N),B.Ke(Wi(z)),B.Ke(O?e:C),B.Ke(U),B.Ge(I),B.Ge(T?t:w),B.Ye(h),B.Ye(y),B.Ye(b),B.Ye(g),B.Ye(x),B.Ye(E),B.Ye(v),B.Ye(S),B.Ye(z),Li(c,B.Lt,l),l+=_,m++,a.onprogress)try{await a.onprogress(r+1,o.size,new La(n))}catch{}}return await ki(s,d?c.slice(d):c),{qe:{diskNumber:u,diskOffset:p},Ze:{diskNumber:wi(s),Xe:m},Ve:c}}(r,o,a),y=await async function(t,r,n){const a=Ii(t,n,K);if(a){const n=await a(r),o=Wi(n);if(o>e)throw new Error(Gs);const i=mi(6+o);i.Ge(s),i.Ke(o),i.Ye(n);const{writer:c}=t;return yi(c,Wi(i.Lt))&&await c.closeDisk(),await ki(c,i.Lt),6+o}return 0}(r,h,a);await async function(r,n,a,o){const{writer:s}=r,{qe:i,Ze:f,Je:p,We:m}=o;let{Le:w}=o,h=r.ee.size,y=i.diskNumber,b=bi(r,i);const g=Wi(n);if(g>e)throw new Error(ps);let x=Ti(r,a,Aa),E=wi(s);if(yi(s,(x?98:u)+g)&&E++,b>=t||w>=t||h>=e||E>=e){if(!1===x)throw new Error(Us);x=!0}else x===F&&m&&(x=!0);const v=mi(x?98:u);yi(s,Wi(v.Lt)+g)&&await s.closeDisk(),E=wi(s);let S=E==f.diskNumber?f.Xe:0;x&&(v.Ge(l),v.Qe(44),v.Ke(45),v.Ke(45),v.Ge(E),v.Ge(y),v.Qe(S),v.Qe(h),v.Qe(w),v.Qe(b),v.Ge(d),v.Ge(E),v.Qe(BigInt(bi(r,s))+BigInt(w)+BigInt(p)),v.Ge(E+1),Ti(r,a,"supportZip64SplitFile",!0)&&(E=e,y=e),S=e,h=e,b=t,w=t),v.Ge(c),v.Ke(E),v.Ke(y),v.Ke(S),v.Ke(h),v.Ge(w),v.Ge(b),v.Ke(g),await ki(s,v.Lt),g&&await ki(s,n)}(r,n,a,{qe:m,Ze:w,Le:o,Je:y,We:p})}(a,r,n),!ra(p)&&Ti(a,n,q)||await m.getWriter().close(),p.getData?p.getData():m}}class ti{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new $s(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 ni(e,t)}}()}});return ai(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 ai(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 ni(r,t),t}try{return await r.close(t,e)}catch(t){throw await ni(r,t),t}}}class ei extends Promise{then(t,e){const{$e:r}=this;return r&&(r.Pe=!0),super.then(t,e)}}function ri(t,e){const r=new ei((t,r)=>Promise.prototype.then.call(e,t,r)),n={};return r.$e=n,n.Be=Promise.prototype.then.call(r,F,t=>n.error=t),t.oe.push(n),r}async function ni(t,e){try{await t.writer.writable.abort(e)}catch{}}function ai(t,e,r){t.ae.add(e),e.catch(t=>{try{r(t)}catch{}})}function oi(n,a,o){let s=Ti(n,o,ka),i=Ti(n,o,Fa,s?20:768);const c=Ti(n,o,Ua),l=Ci(n,o,"uid"),d=Ci(n,o,"gid");let f=Ci(n,o,Ma),u=Ti(n,o,"unixExtraFieldType"),p=Ti(n,o,Na),m=Ti(n,o,_a),w=Ti(n,o,Ba);if(dt(l,t,Bs),dt(d,t,Ps),dt(f,e,Ls),u!==F&&u!==Ys&&u!==Xs)throw new Error(Ws);if(u===Xs&&(l!==F&&l>e||d!==F&&d>e))throw new Error(qs);u!==F||l===F&&d===F||(u=Ys);let h=Ci(n,o,Sa),y=Ti(n,o,za);const b=h!==F||y!==F;if(l!==F||d!==F||f!==F||u||c?(s=!1,i=i&r|768):b&&(s=!0,i&=r),dt(h,r,Zs),y&&(typeof y!==I||Array.isArray(y)))throw new Error(Vs);if(i>e)throw new Error(gs);let g=Ti(n,o,va);const x=g!==F;x||(g=0),!o[Ta]&&a.endsWith(k)&&(o[Ta]=!0);const A=Ti(n,o,Ta);if(A?(a.endsWith(k)||(a+=k),x||(g=16,s||(g|=16877<<16))):s||x||(g=c?493<<16:27525120),!s){const t=f!==F||Boolean(p||m||w);f=f===F?g>>16&e:f&e,p?f|=S:p=Boolean(f&S),m?f|=z:m=Boolean(f&z),w?f|=512:w=Boolean(512&f),x&&!t||(A?f=-61441&f|v:f&E||(f|=32768),g=(f&e)<<16|g&e)}({msdosAttributesRaw:h,msdosAttributes:y}=function(t,e){if(t!==F)t&=r;else if(e!==F){const{readOnly:n,hidden:a,system:o,directory:s,archive:i}=e;let c=0;n&&(c|=1),a&&(c|=2),o&&(c|=4),s&&(c|=16),i&&(c|=32),t=c&r}return e===F&&(e={readOnly:Boolean(1&t),hidden:Boolean(2&t),system:Boolean(4&t),directory:Boolean(16&t),archive:Boolean(32&t)}),{msdosAttributesRaw:t,msdosAttributes:e}}(h,y)),b&&(g=g&t|h&r);const R=g>>16&e,D=f!==F&&40960==(f&E);return{name:a,ze:{versionMadeBy:i,msDosCompatible:Boolean(s),externalFileAttributes:g,unixExternalUpper:R,uid:l,gid:d,unixMode:f,unixExtraFieldType:u,symlink:D,setuid:p,setgid:m,sticky:w,msdosAttributesRaw:h,msdosAttributes:y}}}function si(t,r,n){const a=Ii(t,n,"encodeText")||qt;let o=a(r,Y);if(o===F&&(o=qt(r)),Wi(o)>e)throw new Error(bs);const s=n[la]||"";if(typeof s!=C)throw new Error(hs);let i=a(s,X);if(i===F&&(i=qt(s)),Wi(i)>e)throw new Error(ws);const c=Ti(t,n,Da);if(c!==F&&c>e)throw new Error(gs);const l=Ui(t,n,wa,new Date),d=Ti(t,n,ha),f=Ui(t,n,ya),u=Ui(t,n,ga),p=Ti(t,n,Ea,0),m=Ti(t,n,_),w=Ti(t,n,M),h=Ti(t,n,N);ct(w,h);const y=Ci(t,n,"encryptionStrength",3),b=Ti(t,n,Oa),g=Ti(t,n,"extendedTimestamp",!0),x=Ti(t,n,"ntfsTimestamp"),E=Ti(t,n,"keepOrder",!0),v=Ti(t,n,P),S=Ti(t,n,W),z=Ti(t,n,"bufferedWrite"),k=Ii(t,n,"createTempStream"),A=Ti(t,n,"dataDescriptorSignature",!0),R=st(Ti(t,n,B));it(R);const D=Ti(t,n,"useUnicodeFileNames",!0),O=Ti(t,n,Ia),T=m||O===F?F:Ke(O);if(!m&&O!==F&&0!==O&&8!==O&&!T)throw new Error(We);let U=Ci(t,n,"level");if(dt(U,9,Hs),t.options[H]){if(w!==F||h!==F)throw new Error(Es);U===F&&O===F&&(U=0)}m&&(U=F);let I=Ti(t,n,L),j=Ti(t,n,Z);z&&j===F&&(j=!1),(j===F||b&&!m)&&(j=!0),U!==F&&6!=U&&(I=!1);const q=Ti(t,n,Aa);if(!(b||w===F&&h===F||Number.isInteger(y)&&y>=1&&y<=3))throw new Error(xs);const V=ii(n[ja]),G=ii(n.localExtraField),K=ii(n.centralExtraField);return{comment:s,ze:{rawFilename:o,rawComment:i,version:c,lastModDate:l,rawLastModDate:d,lastAccessDate:f,creationDate:u,internalFileAttributes:p,passThrough:m,password:w,rawPassword:h,encryptionStrength:y,zipCrypto:b,extendedTimestamp:g,ntfsTimestamp:x,keepOrder:E,useWebWorkers:v,transferStreams:S,bufferedWrite:z,createTempStream:k,dataDescriptorSignature:A,signal:R,useUnicodeFileNames:D,compressionMethod:O,format:T?T.format:F,codecURI:T?T.codecURI:F,er:T?T.versionNeeded:F,level:U,useCompressionStream:I,dataDescriptor:j,zip64:q,rawExtraField:V,rr:G,Se:K}}}function ii(t){if(!t)return j;if(!(t instanceof Map))throw new Error(zs);let r=0,n=0;t.forEach((t,n)=>{if(lt(n,e,ks),!(t instanceof Uint8Array))throw new Error(As);if(Wi(t)>e)throw new Error(Rs);r+=4+Wi(t)});const a=new Uint8Array(r),o=Tt(a);return t.forEach((t,e)=>{_i(o,n,e),_i(o,n+2,Wi(t)),Li(a,t,n+4),n+=4+Wi(t)}),a}function ci(e,r,n,a,o){const{passThrough:s,zipCrypto:i,password:c,rawPassword:l,encryptionStrength:d}=a;let{dataDescriptor:f,zip64:u,level:p,compressionMethod:m}=a,w=0,h=0,y=!1;if(s&&r){if(h=o[fa],h===F)throw new Error(Is);if(m===F)throw new Error(Cs)}const b=!0===u,g=Ti(e,o,Ra);if(r&&s&&!g&&Wi(c,l))throw new Error(Ss);const x=r&&(Boolean(c&&Wi(c)||l&&Wi(l))||s&&g);r||(p=0,m=0);const E=x?i?12:16+4*d:0;r&&(s?(o.uncompressedSize=h,w=n===F?ji(h)+E:n):n===F?(f=!0,(u||u===F)&&(u=y=!0,w=4294967296)):(o.uncompressedSize=h=n,w=(Mi(m,p)?ji(h):h)+E));const v=!(x||r&&(0!==n||s)||Mi(m,p));v&&!i&&Ti(e,o,Z)===F&&(f=!1);const S=b||y||h>=t,z=b||w>=t;if(S||z){if(!1===u)throw new Error(Us);u=!0}return u=u||!1,{nr:w,ze:{dataDescriptor:f,De:v,zip64:u,he:b,ar:y,we:S,me:z,uncompressedSize:h,level:p,compressionMethod:m,encrypted:x}}}function li(t){const{rawFilename:r,lastModDate:a,rawLastModDate:o,lastAccessDate:s,creationDate:i,level:c,zip64:l,zipCrypto:d,useUnicodeFileNames:f,dataDescriptor:u,directory:p,rawExtraField:m,rr:y,encryptionStrength:x,extendedTimestamp:E,ntfsTimestamp:v,passThrough:S,encrypted:z,we:k,me:O,uncompressedSize:T,ar:U,crc32:I}=t;let{version:C,compressionMethod:M}=t;const N=!p&&Mi(M,c);let _;const B=S||!N,P=l&&(t.bufferedWrite||!u||!k&&!O||B&&!U),L=P||l&&u&&(k||O);if(l&&(k||O)){const t=20,e=mi(t);if(e.Ke(1),e.Ke(t-4),_=e.Lt,P&&(e.Qe(T),B)){const t=z?d?12:16+4*x:0;e.Qe(S?0:T+t)}}else _=j;let W,q,Z,V,G;if(z&&!d){const t=mi(Wi(Ks)+2);t.Ke(w),t.Ye(Ks),W=t.Lt,W[8]=x}else W=j;if(E){const t=Di(a),e=Fi(t);if(e){const e=9+(s?4:0)+(i?4:0),r=mi(e);V=1+(s?2:0)+(i?4:0),r.Ke(h),r.Ke(e-4),r.sr(V),r.Ge(t),s&&r.Ge(Oi(Di(s))),i&&r.Ge(Oi(Di(i))),Z=r.Lt}else Z=j;if(v===F?!e||Boolean(s||i):v)try{const t=Ri(a),e=mi(36);e.Ke(10),e.Ke(32),e.ir(4),e.Ke(1),e.Ke(24),e.Qe(t),e.Qe(s?Ri(s):t),e.Qe(i?Ri(i):t),q=e.Lt}catch{q=j}else q=j}else q=Z=j;try{const{uid:r,gid:n,unixExtraFieldType:a}=t;if(a!=Ys||r===F&&n===F)if(a!=Xs||r===F&&n===F)G=j;else{const t=mi(8);t.Ke(g),t.Ke(4),t.Ke((r===F?0:r)&e),t.Ke((n===F?0:n)&e),G=t.Lt}else{const t=fi(r===F?0:r),e=fi(n===F?0:n),a=3+t.length+e.length,o=mi(4+a);o.Ke(b),o.Ke(a),o.sr(1),o.sr(t.length),o.Ye(t),o.sr(e.length),o.Ye(e),G=o.Lt}}catch{G=j}M===F&&(M=N?8:0),C===F&&(C=0!=M||p||z?20:10);const{er:K}=t;N&&K!==F&&(C=C>K?C:K),l&&(C=C>45?C:45),z&&!d&&(C=C>51?C:51,S&&I!==F&&(W[4]=1),_i(Tt(W),9,M),M=99);const Y=L?Wi(_):0,X=Y+Wi(W,Z,q,G,m,y);if(X+(t[H]?67:0)>e)throw new Error(Rs);const J=new Date(2e3*Math.ceil(Math.floor(a.getTime()/1e3)/2)),Q=J<D?D:J>R?R:J,$=Wi(Z)?new Date(1e3*Di(a)):Wi(q)?a:Q,{ue:tt,pe:et,rawLastModDate:rt}=qi({version:C,bitFlag:Zi(c,f,u,z,M),compressionMethod:M,uncompressedSize:T,lastModDate:Q,rawLastModDate:o,rawFilename:r,me:O,we:k,extraFieldLength:X}),nt=mi(A+Wi(r)+X),at=nt.Lt,ot=Tt(at);return nt.Ge(n),nt.Ye(tt),nt.Ye(r),L&&nt.Ye(_),nt.Ye(W),nt.Ye(Z),nt.Ye(q),nt.Ye(G),nt.Ye(m),nt.Ye(y),u&&(O||Bi(ot,18,0),k||Bi(ot,22,0)),{Ae:at,_e:ot,ue:tt,pe:et,lastModDate:$,rawLastModDate:rt,encrypted:z,compressed:N,version:C,compressionMethod:M,je:V,be:j,Ce:Y,xe:Z,Ee:q,ve:G,ge:W,extraFieldLength:X}}function di(t,e){const{Fe:r}=t;let{Ae:n,extraFieldLength:a}=r,o=64-(e+Wi(n))%64;o<4&&(o+=64);const s=new Uint8Array(o),i=Tt(s);_i(i,0,y),_i(i,2,o-4);const c=n;r.Ae=n=new Uint8Array(Wi(c)+o),Li(n,c),Li(n,s,Wi(c));const l=Tt(n);_i(l,28,a+o),r._e=l,t.Ie+=o}function fi(t){const e=new Uint8Array(4);Tt(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function ui({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let n,a=j,s=0,i=t?20:12;return r&&(i+=4),e&&(a=new Uint8Array(i),n=Tt(a),r&&(s=4,Bi(n,0,o))),{Re:a,Me:n,Ne:s}}function pi(r){let n=0,a=!1;for(const[,o]of r){const{rawFilename:r,ge:s,rawComment:i,Ee:c,ve:l,rawExtraField:d,Se:u,extendedTimestamp:p,je:m,lastModDate:w,he:y,uncompressedSize:b,compressedSize:g}=o;let{we:x,me:E}=o;y||(x&&b<t&&(x=o.we=!1),E&&g<t&&(E=o.me=!1)),a=a||x||E;const v=o.offset>=t,S=o.diskNumberStart>=e;let z,k;if(v||S||x||E){const t=4+(x?8:0)+(E?8:0)+(v?8:0)+(S?4:0),e=mi(t);e.Ke(1),e.Ke(t-4),x&&e.Qe(b),E&&e.Qe(g),v&&e.Qe(o.offset),S&&e.Ge(o.diskNumberStart),z=e.Lt}else z=j;o.be=z,o.He=v,o.ye=S;const A=Di(w);if(p&&Fi(A)){const t=mi(9);t.Ke(h),t.Ke(5),t.sr(m),t.Ge(A),k=t.Lt}else k=j;o.xe=k;const R=Wi(z,s,c,l,k,d,u);if(R>e)throw new Error(Rs);n+=f+Wi(r,i)+R}return{Le:n,We:a}}function mi(t){const e=new Uint8Array(t),r=Tt(e);let n=0;return{Lt:e,sr:t=>{!function(t,e,r){t.setUint8(e,r)}(r,n,t),n+=1},Ke:t=>{_i(r,n,t),n+=2},Ge:t=>{Bi(r,n,t),n+=4},Qe:t=>{Pi(r,n,BigInt(t)),n+=8},Ye:t=>{Li(e,t,n),n+=Wi(t)},ir:t=>n+=t}}function wi(t){const{diskNumber:e=0}=t;return e}function hi(t){const{diskOffset:e=0}=t;return e}function yi(t,e){const{availableSize:r=O}=t;return e>r}function bi(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.ne:0)}function gi(t){const e=Tt(t);let r=0;for(;r+4<=Wi(t);){const n=4+Ni(e,r+2);if(1==Ni(e,r))return gi(Ft(t.subarray(0,r),t.subarray(Math.min(r+n,Wi(t)))));r+=n}return t}async function xi(t,e,r,n){if(n>0){const{writer:a}=t;let o=0;try{await Ai(sa(e,{offset:r,size:n}),a,F,t=>o+=t)}catch(e){t.hasCorruptedEntries=!0;try{e.corruptedEntry=!0}catch{}throw e}finally{a.size+=o,t.offset+=o}}}async function Ei(t,e){const r=await oa(t,e,A);if(Wi(r)<A)return A;const n=Tt(r);return A+Ni(n,26)+Ni(n,28)}function vi(t,{offset:e,diskNumberStart:r}){return e+(t.Ht?t.Ht(r):0)}function Si(){const t=new Uint8Array(4);return Bi(Tt(t),0,a),t}async function zi(t,e){delete t.te,await ki(e,Si()),t.offset+=4}async function ki(t,e){const{writable:r}=t,n=r.getWriter();try{await n.ready,t.size+=Wi(e),await n.write(e)}finally{n.releaseLock()}}async function Ai(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(Wi(t))}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}}function Ri(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<Os?Os:e>Ts?Ts:e}}function Di(t){return Math.floor(t.getTime()/1e3)}function Fi(t){return t>=Ds&&t<=Fs}function Oi(t){return Math.min(Fs,Math.max(Ds,t))}function Ti(t,e,r,n){const a=e[r]===F?t.options[r]:e[r];return a===F?n:a}function Ui(t,e,r,n){const a=Ti(t,e,r,n);if(null===a)return n;if(a!==F&&(typeof a.getTime!=U||Number.isNaN(a.getTime())))throw new Error(ys);return a}function Ii(t,e,r){return ot(Ti(t,e,r))}function Ci(t,e,r,n){return ft(Ti(t,e,r,n))}function ji(t){return t+5*(Math.floor(t/16383)+1)}function Mi(t,e){return t===F?e===F||e>0:0!==t}function Ni(t,e){return t.getUint16(e,!0)}function _i(t,e,r){t.setUint16(e,r,!0)}function Bi(t,e,r){t.setUint32(e,r,!0)}function Pi(t,e,r){t.setBigUint64(e,r,!0)}function Li(t,e,r){t.set(e,r)}function Wi(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function qi({version:e,bitFlag:r,compressionMethod:n,uncompressedSize:a,compressedSize:o,lastModDate:s,rawLastModDate:i,rawFilename:c,me:l,we:d,extraFieldLength:f}){const u=mi(26),p=u.Lt,m=Tt(p);if(u.Ke(e),u.Ke(r),u.Ke(n),i===F){const t=new Uint32Array(1),e=Tt(t);_i(e,0,(s.getHours()<<6|s.getMinutes())<<5|s.getSeconds()/2),_i(e,2,(s.getFullYear()-1980<<4|s.getMonth()+1)<<5|s.getDate()),i=t[0]}return u.Ge(i),u.ir(4),l||o!==F?u.Ge(l?t:o):u.ir(4),d||a!==F?u.Ge(d?t:a):u.ir(4),u.Ke(Wi(c)),u.Ke(f),{ue:p,pe:m,rawLastModDate:i}}function Zi(t,e,r,n,a){let o=0;return e&&(o|=x),r&&(o|=8),8!=a&&9!=a||(t>=0&&t<=3&&(o|=6),t>3&&t<=5&&(o|=4),9==t&&(o|=2)),n&&(o|=1),o}function Vi(){const{CompressionStream:t,DecompressionStream:e,CompressionStreamFallback:r,DecompressionStreamFallback:n}=xt(),a=[{compressionMethod:0,compression:!0,decompression:!0,registered:!1},{compressionMethod:8,compression:Hi(r,er)||Hi(t,er)||Hi(t,nr),decompression:Hi(n,er)||Hi(e,er)||Hi(e,nr),registered:!1},{compressionMethod:9,compression:!1,decompression:Hi(n,rr)||Hi(e,rr),registered:!1}];for(const t of Ye()){const e=Xe(t.format);a.push({compressionMethod:t.compressionMethod,compression:e?typeof e.CompressionStream==U:F,decompression:e?typeof e.DecompressionStream==U:F,registered:!0})}return a}function Hi(t,e){if(!t)return!1;const{cr:r}=t;return r?r.includes(e):lr(t,e)}const Gi="2.11.4",Ki=1048576,Yi=".zip.js-temp";function Xi(t={}){const{thresholdBytes:e=Ki,directoryName:r=Yi,getDirectory:n=()=>navigator.storage.getDirectory()}=t;let a;function o(){return a||(a=Promise.resolve(n()).then(t=>t.getDirectoryHandle(r,{create:!0}))),a}return function(){const t=[];let r,n,a,s,i=0,c=!1;const l=new WritableStream({async write(s){c?await a.write(s):(t.push(s),i+=s.length,i>e&&await async function(){const e=await o();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join(""),n=await e.getFileHandle(r,{create:!0}),a=(await n.createWritable()).getWriter(),c=!0;for(const e of t)await a.write(e);t.length=0}())},async close(){a&&(await a.close(),a=null)}});let d=0;return{writable:l,readable:new ReadableStream({async pull(e){if(c){if(!s){const t=await n.getFile();s=t.stream().getReader()}const{value:t,done:r}=await s.read();r?e.close():e.enqueue(t)}else d<t.length?e.enqueue(t[d++]):e.close()},async cancel(t){s&&await s.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(a){try{await a.close()}catch{}a=null}if(r){try{const t=await o();await t.removeEntry(r)}catch{}n=r=null}t.length=0}}}}const Ji=1048576;function Qi(t={}){const{thresholdBytes:e=Ji}=t;return function(){const t=[];let r,n,a,o=0,s=!1;const i=new WritableStream({async write(a){s?await r.write(a):(t.push(a),o+=a.length,o>e&&await async function(){const e=new TransformStream;n=Ne(e.readable),r=e.writable.getWriter(),s=!0;for(const e of t)await r.write(e);t.length=0}())},async close(){r&&(await r.close(),r=null)}});let c=0;return{writable:i,readable:new ReadableStream({async pull(e){if(s){if(!a){const t=await n;a=t.stream().getReader()}const{value:t,done:r}=await a.read();r?e.close():e.enqueue(t)}else c<t.length?e.enqueue(t[c++]):e.close()},async cancel(t){a&&await a.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(r){try{await r.abort()}catch{}r=null}n&&(n.catch(()=>{}),n=null),t.length=0}}}}const $i=1048576,tc=".zip.js-temp",ec="createSyncAccessHandle is only available in dedicated workers";function rc(t={}){const{thresholdBytes:e=$i,directoryName:r=tc,getDirectory:n}=t;if(!(n||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw new Error(ec);const a=n||(()=>navigator.storage.getDirectory());let o;function s(){return o||(o=Promise.resolve(a()).then(t=>t.getDirectoryHandle(r,{create:!0}))),o}return function(){const t=[];let r,n,a=0,o=!1,i=0,c=0;const l=new WritableStream({async write(c){o?(n.write(c,{at:i}),i+=c.length):(t.push(c),a+=c.length,a>e&&await async function(){const e=await s();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join("");const a=await e.getFileHandle(r,{create:!0});n=await a.createSyncAccessHandle(),o=!0;for(const e of t)n.write(e,{at:i}),i+=e.length;t.length=0}())},close(){n&&n.flush()}});let d=0;return{writable:l,readable:new ReadableStream({pull(e){if(o){const t=i-c;if(t<=0)return void e.close();const r=new Uint8Array(Math.min(524288,t)),a=n.read(r,{at:c});a?(c+=a,e.enqueue(r.subarray(0,a))):e.close()}else d<t.length?e.enqueue(t[d++]):e.close()}},{highWaterMark:0}),dispose:async function(){if(n){try{n.close()}catch{}n=null}if(r){try{const t=await s();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{Rt({baseURI:import.meta.url})}catch{}const nc="deflate",ac="deflate-raw",oc="deflate64-raw",sc="gzip";let ic,cc,lc,dc,fc;function uc(t,e,r={}){if(!ic){const t=new Error("WASM module not loaded");throw t.cause=fc,t}const n="number"==typeof r.level?r.level:-1,a="number"==typeof r.outBuffer?r.outBuffer:65536,o="number"==typeof r.inBufferSize?r.inBufferSize:65536;return new TransformStream({start(){try{let r;if(this.lr=cc(a),this.in=cc(o),this.inBufferSize=o,!this.lr||!this.in)throw new Error("allocation failed");if(this.dr=new Uint8Array(a),t?(this.ur=ic.deflate_process,this.pr=ic.deflate_last_consumed,this.mr=ic.deflate_end,this.wr=ic.deflate_new(),r=e===sc?ic.deflate_init_gzip(this.wr,n):e===ac?ic.deflate_init_raw(this.wr,n):ic.deflate_init(this.wr,n)):e===oc?(this.ur=ic.inflate9_process,this.pr=ic.inflate9_last_consumed,this.mr=ic.inflate9_end,this.wr=ic.inflate9_new(),r=ic.inflate9_init_raw(this.wr)):(this.ur=ic.inflate_process,this.pr=ic.inflate_last_consumed,this.mr=ic.inflate_end,this.wr=ic.inflate_new(),r=e===ac?ic.inflate_init_raw(this.wr):e===sc?ic.inflate_init_gzip(this.wr):ic.inflate_init(this.wr)),0!==r)throw new Error("init failed:"+r)}catch(t){throw s(this),t}},transform(t,e){try{const r=t,n=new Uint8Array(dc.buffer),o=this.ur,s=this.pr,i=this.lr,c=this.dr;let l=0;for(;l<r.length;){const t=Math.min(r.length-l,32768);if((!this.in||this.inBufferSize<t)&&(this.in&&lc&&(lc(this.in),this.in=0),this.in=cc(t),this.inBufferSize=t,!this.in))throw new Error("allocation failed");n.set(r.subarray(l,l+t),this.in);const d=o(this.wr,this.in,t,i,a,0),f=d>>24&255,u=128&f?f-256:f;if(u<0)throw new Error("process error:"+u);const p=16777215&d;p&&(c.set(n.subarray(i,i+p),0),e.enqueue(c.slice(0,p)));const m=s(this.wr);if(0===m&&0===p)break;l+=m}}catch(t){s(this),e.error(t)}},flush(t){try{const e=new Uint8Array(dc.buffer),r=this.ur,n=this.lr,o=this.dr;for(;;){const s=r(this.wr,0,0,n,a,4),i=s>>24&255,c=128&i?i-256:i;if(c<0)throw new Error("process error:"+c);const l=16777215&s;if(l&&(o.set(e.subarray(n,n+l),0),t.enqueue(o.slice(0,l))),1===i||0===l)break}}catch(e){t.error(e)}finally{const e=s(this);0!==e&&t.error(new Error("end error:"+e))}},cancel(){s(this)}});function s(t){let e=0;return t.wr&&t.mr&&(e=t.mr(t.wr)),t.wr=0,t.in&&lc&&lc(t.in),t.in=0,t.lr&&lc&&lc(t.lr),t.lr=0,e}}class pc{constructor(t=nc,e){return uc(!0,t,e)}}class mc{constructor(t=nc,e){return uc(!1,t,e)}}pc.ft=!0,mc.ft=!0,pc.cr=[nc,ac,sc],mc.cr=[nc,ac,sc,oc];let wc,hc=!1;function yc(){wc=null,async function(){await Promise.allSettled(Hr.map(t=>(rn(t),t.terminate()))),vr=F,Sr=!1}(),hc=!1,ic=cc=lc=dc=fc=null}!function({yr:t}){kr=t}({yr:t=>{if(!wc){let{wasmURI:e}=t;typeof e==U&&(e=e()),wc=async function(t,{baseURI:e}){if(!hc)try{await async function(t,e){let r,n;try{try{n=new URL(t,e)}catch{}const a=await fetch(n);r=await a.arrayBuffer()}catch(e){if(!t.startsWith("data:application/wasm;base64,"))throw e;r=function(t){const e=t.split(",")[1],r=atob(e),n=r.length,a=new Uint8Array(n);for(let t=0;t<n;++t)a[t]=r.charCodeAt(t);return a.buffer}(t)}!function(t){if(ic=t,({malloc:cc,free:lc,memory:dc}=ic),"function"!=typeof cc||"function"!=typeof lc||!dc)throw ic=cc=lc=dc=null,new Error("Invalid WASM module")}((await WebAssembly.instantiate(r)).instance.exports)}(t,e),hc=!0}catch(t){throw function(t){fc=t}(t),t}}(e,t).catch(t=>{throw wc=null,t})}return wc}}),Rt({CompressionStreamFallback:pc,DecompressionStreamFallback:mc}),Rt({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const bc="Entry filename already exists",gc="Duplicate entry filename in the imported zip file",xc='Invalid duplicates option (must be "throw", "keep-first" or "keep-last")',Ec="Entry is a ancestor of target entry",vc="Readable stream already consumed",Sc="throw",zc="keep-first",kc="keep-last",Ac=new Set([Sc,zc,kc]),Rc="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",Dc="Invalid readerOptions (must be an object)",Fc="The last modification date of an entry encrypted with ZipCrypto cannot be changed when passThrough is set",Oc="zipjs-abort-export",Tc=new Set([1,w,10,h,28789,25461,y,b,g,22613,13]);class Uc{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.gr++,parent:n,children:[],uncompressedSize:r.uncompressedSize||0,Er:r.Er||r.uncompressedSize===F,passThrough:r.passThrough,vr:r.vr||new Date}),!n&&t.root||(t.entries[a.id]=a),n&&a.parent.children.push(a)}getFullname(){return this.getRelativeName()}getRelativeName(t=this.fs.root){let e=this.name,r=this.parent;for(;r&&r!=t;)e=(r.name?r.name+"/":"")+e,r=r.parent;return e}isDescendantOf(t){let e=this.parent;for(;e&&e.id!=t.id;)e=e.parent;return Boolean(e)}rename(t){const e=this;let r=e.parent;if(r){const n=ol(t);n&&(t=n.pop(),r=sl(r,n,e));const a=r.getChildByName(t);if(a&&a!=e)throw new Error(bc);r!=e.parent&&(Zc(e),e.parent=r,r.children.push(e),nl(e.fs,e))}e.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==F))}}class Ic extends Uc{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 Ic(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==Rn?e.type==r:t.constructor!=Sn||e.startsWith("data:"+(r||"")+";base64,"))}(t,r.data))return r.data;{const n=r.reader=Wc(r.Reader,r.data,e),a=r.uncompressedSize||n.size;await Promise.all([na(n),na(t,a)]);const o=st(e.signal),s=function(t,e,r,n){const{onstart:a,onprogress:o,onend:s}=r,{readable:i}=e;return t.data instanceof La||!a&&!o&&!s?i:Me(i).pipeThrough(new Fr({onstart:a,onprogress:o,onend:s,size:e.size}),{signal:n})}(r,n,e,o),i=!ra(t)&&Boolean(e.preventClose);return r.uncompressedSize=n.size,await Me(s).pipeTo(_e(t.writable),{signal:o,preventClose:i,preventAbort:i}),t.getData?t.getData():t.writable}}isPasswordProtected(){return Boolean(this.data&&this.data.encrypted)}async checkPassword(t,e={}){const r=this;if(!r.isPasswordProtected())return!0;try{return await r.data.getData(null,Object.assign({},e,{password:t,checkPasswordOnly:!0})),!0}catch(t){if(t.message==Yt)return!1;throw t}}getText(t,e){return this.getData(new On(t),e)}getBlob(t,e){return this.getData(new Rn(t),e)}getData64URI(t,e){return this.getData(new Sn(t),e)}getUint8Array(t){return this.getData(new Jn,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return Ot(await this.getUint8Array(t)).buffer}replaceBlob(t){Yc(this,{data:t,Reader:An,Writer:Rn,uncompressedSize:t.size})}replaceText(t){Yc(this,{data:t,Reader:Dn,Writer:On,uncompressedSize:Fn(t)})}replaceData64URI(t){Yc(this,{data:t,Reader:vn,Writer:Sn,uncompressedSize:Xc(t)})}replaceUint8Array(t){Yc(this,{data:t,Reader:Xn,Writer:Jn,uncompressedSize:t.length})}replaceReadable(t){Yc(this,{data:null,Reader:Pc(t),Writer:null,uncompressedSize:F})}}class Cc extends Uc{constructor(t,e,r,n){super(t,e,r,n),this.directory=!0}clone(t){const e=this,r=new Cc(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 al(this,t,{options:e},!0)}addText(t,e,r={}){return al(this,t,{data:e,Reader:Dn,Writer:On,options:r,uncompressedSize:Fn(e)})}addBlob(t,e,r={}){return al(this,t,{data:e,Reader:An,Writer:Rn,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){return al(this,t,{data:e,Reader:vn,Writer:Sn,options:r,uncompressedSize:Xc(e)})}addUint8Array(t,e,r={}){return al(this,t,{data:e,Reader:Xn,Writer:Jn,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return al(this,t,{data:e,Reader:class extends Kn{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return al(this,t,{Reader:Pc(e),options:r})}addFileSystemEntry(t,e={}){return $c(this,t,e)}addFileSystemHandle(t,e={}){return $c(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),al(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 An(t),e)}importData64URI(t,e){return this.importZip(new vn(t),e)}importUint8Array(t,e){return this.importZip(new Xn(t),e)}importHttpContent(t,e){return this.importZip(new Kn(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new Rn(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new Sn(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new Jn,t)}async exportWritable(t=new WritableStream,e={}){return await this.exportZip({writable:t},e),t}exportFileSystemHandle(t,e={}){return async function(t,e,r){const{onstart:n,onprogress:a,onend:o}=r,s=Kc(r.readerOptions),i=new AbortController,{signal:c}=i,l=function(t,e){if(!st(t))return()=>{};if(t.aborted)return e.abort(t.reason),()=>{};const r=()=>e.abort(t.reason);return t.addEventListener("abort",r,{once:!0}),()=>t.removeEventListener("abort",r)}(r.signal,i),d=Object.assign({},r,s,{signal:c,onstart:F,onprogress:F,onend:F,preventClose:!1}),f=Nc([t],t=>Bc(t,d.passThrough)),u=[];let p=!1,m=0;try{n&&await Or(n,f),await h(t,e),o&&await Or(o,m)}catch(t){try{t.exportedEntryNames=u}catch{}throw t}finally{l()}return e;function w(t){const e=t.getWriter();return new WritableStream({async write(t){await e.write(t),m+=t.length,a&&await Or(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=>!Vc(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||Vc(c.reason))return;throw c.reason===F?new DOMException(nt,at):c.reason}try{if(e.directory){const t=await r.getDirectoryHandle(e.name,{create:!0});await h(e,t)}else{const n=await r.getFileHandle(e.name,{create:!0}),a=await n.createWritable();try{await e.getData({writable:w(a)},d)}catch(t){throw p?new Error(Oc):t}u.push(e.getRelativeName(t))}}catch(r){p=!0,i.abort(new Error(Oc));try{r.entryName===F&&(r.entryName=e.getRelativeName(t),r.entryId=e.id)}catch{}throw r}}}(this,t,e)}async importZip(t,e={}){let r;t&&typeof t.getEntries==U?(r=t,e=Object.assign({},r.options,e)):(await na(t),r=new Do(t,e));const n=function(t){if(t===F)return Sc;if(Ac.has(t))return t;throw new Error(xc)}(e.duplicates),a=[],o=await r.getEntries(e);for(const t of o){let r=this;try{const o=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=o.pop();let i=!1;for(const t of o){const e=r;if(r=r.getChildByName(t),r){if(!r.directory){if(n==zc){i=!0;break}if(n!=kc)throw new Error(gc);this.fs.remove(r),r=new Cc(this.fs,t,{data:null},e),a.push(r)}}else r=new Cc(this.fs,t,{data:null},e),a.push(r)}if(i)continue;if(t.directory){let e=r;if(s){if(e=r.getChildByName(s),e&&!e.directory){if(n==zc)continue;if(n!=kc)throw new Error(gc);this.fs.remove(e),e=F}e||(e=new Cc(this.fs,s,{data:null},r),a.push(e))}e==this||e.data||(e.data=t)}else{const o=r.getChildByName(s);if(o){if(n==zc)continue;if(n!=kc)throw new Error(gc);this.fs.remove(o)}a.push(al(r,s,{data:t,Reader:Lc(Object.assign({},e)),uncompressedSize:e.passThrough?t.compressedSize:t.uncompressedSize,passThrough:e.passThrough}))}}catch(e){a.reverse().forEach(t=>this.fs.remove(t));try{e.cause={entry:t}}catch{}throw e}}return a}async exportZip(t,e={}){const r=this;(e=Object.assign({},e)).bufferedWrite===F&&(e.bufferedWrite=!0);const[n]=await Promise.all([qc(r,Kc(e.readerOptions)),na(t)]),a=new $s(t,e);return await async function(t,e,r,n,a){const{onstart:o,onprogress:s,onend:i,onentryprogress:c}=n,l=e,d=Nc(e.children,t=>Qc(t)?0:1);let f=0,u=0;if(o&&await Or(o,r),n.bufferedWrite)await async function t(e){const r=(await Promise.allSettled(e.children.map(async e=>{await p(e),await t(e)}))).find(t=>"rejected"==t.status);if(r)throw r.reason}(e);else for(const t of e.getChildren({recursive:!0}))await p(t);async function p(e){if(Qc(e))return;const{name:o,Sr:i}=Hc(e,l,n);let p=0;const m=await t.add(o,a.get(e),Object.assign(i,{onstart:F,onend:F,onprogress:async t=>{f+=t-p,p=t,s&&await Or(s,f,r)}}));u++,c&&await Or(c,u,d,m)}i&&await Or(i,f)}(a,r,Nc([r],_c),e,n),await a.close(e.globalComment),t.getData?t.getData():t.writable}getExportedSize(r={}){const n=this;Kc((r=Object.assign({},r)).readerOptions),r.bufferedWrite===F&&(r.bufferedWrite=!0);const a=n.getChildren({recursive:!0}),o=a.filter(t=>!Qc(t)).map(t=>{const{name:e,Sr:a}=Hc(t,n,r);return{name:e,size:t.directory?0:Gc(t,Jc(t,r)),options:a}}),s=!r.bufferedWrite||o.every(t=>!1!==t.options.keepOrder)&&a.every(t=>Qc(t)||!t.children.length);return async function(r,n,a,o){const s={options:r};if(ot(r[K]))throw new Error(js);if(o!==F&&!(o instanceof Uint8Array))throw new Error(ms);const i=Wi(o);if(i>e)throw new Error(ps);const c=r[H],l=new Map,d=r[V]===F?0:r[V];let f=d,p=O;for(const t of n){let{name:e}=t;const{size:r}=t,n=Object.assign({},t.options);Ti(s,n,Ta)&&!e.endsWith(k)&&(e+=k);const a=oi(s,e,n);({name:e}=a);const{ze:o}=si(s,e,n);0==o.level||o.compressionMethod!==F||o.passThrough||await Ar(xt())||(o.level=0);const i=!Ti(s,n,Ta);if(i&&r===F)throw new Error(js);const{nr:d,ze:u}=ci(s,i,r,o,n);if(i&&!o.passThrough&&Mi(u.compressionMethod,u.level))throw new Error(js);const m=Object.assign({},n,a.ze,o,u,{[H]:c}),w=li(m),h=ui(m),y={Fe:w,Ie:Wi(w.Ae,h.Re)};c&&di(y,f);const b=i?d:0;l.set(e,Object.assign({},m,w,{offset:f,diskNumberStart:0,compressedSize:b}));const g=y.Ie+b;p=Math.min(p,g),f+=g}if(l.size>1&&(c||f-p>=t)&&!a)throw new Error(js);const{Le:m,We:w}=pi(l);let h=Ti(s,r,Aa);if(f>=t||m>=t||l.size>=e){if(!1===h)throw new Error(Us);h=!0}else h===F&&w&&(h=!0);return f-d+m+i+(h?98:u)}(r,o,s,r.globalComment)}getChildByName(t){const e=this.children;for(let r=0;r<e.length;r++){const n=e[r];if(n.name==t)return n}}getChildren(t={}){return function(t,e){const r=[],n=[t];let a=0;for(;a<n.length;)for(const t of n[a++].children)r.push(t),e&&n.push(t);return r}(this,t.recursive)}isPasswordProtected(){const t=this.children;for(let e=0;e<t.length;e++)if(t[e].isPasswordProtected())return!0;return!1}async checkPassword(t,e={}){const r=this.children;return!(await Promise.all(r.map(r=>r.checkPassword(t,e)))).includes(!1)}}class jc{constructor(){el(this)}get children(){return this.root.children}remove(t){Zc(t);const e=[t];for(;e.length;){const t=e.pop();this.entries[t.id]=null;for(const r of t.children)e.push(r)}t.parent=F}move(t,e){if(t==this.root)throw new Error("Root directory cannot be moved");if(!e.directory)throw new Error("Target entry is not a directory");if(e.isDescendantOf(t))throw new Error(Ec);if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw new Error(bc)}else Zc(t),t.parent=e,e.children.push(t),nl(this,t)}}find(t){const e=t.split("/");let r=this.root;for(let t=0;r&&t<e.length;t++)r=r.directory?r.getChildByName(e[t]):F;return r||(r=this.entries.find(e=>e&&(e==this.root||e.isDescendantOf(this.root))&&e.getRelativeName()==t)),r}getById(t){return this.entries[t]}getChildByName(t){return this.root.getChildByName(t)}getChildren(t){return this.root.getChildren(t)}addDirectory(t,e){return this.root.addDirectory(t,e)}addText(t,e,r){return this.root.addText(t,e,r)}addBlob(t,e,r){return this.root.addBlob(t,e,r)}addData64URI(t,e,r){return this.root.addData64URI(t,e,r)}addUint8Array(t,e,r){return this.root.addUint8Array(t,e,r)}addHttpContent(t,e,r){return this.root.addHttpContent(t,e,r)}addReadable(t,e,r){return this.root.addReadable(t,e,r)}addFileSystemEntry(t,e){return this.root.addFileSystemEntry(t,e)}addFileSystemHandle(t,e){return this.root.addFileSystemHandle(t,e)}addFile(t,e){return this.root.addFile(t,e)}importBlob(t,e){return rl(this,r=>r.importBlob(t,e))}importData64URI(t,e){return rl(this,r=>r.importData64URI(t,e))}importUint8Array(t,e){return rl(this,r=>r.importUint8Array(t,e))}importHttpContent(t,e){return rl(this,r=>r.importHttpContent(t,e))}importReadable(t,e){return rl(this,r=>r.importReadable(t,e))}importZip(t,e){return rl(this,r=>r.importZip(t,e))}exportBlob(t){return this.root.exportBlob(t)}exportData64URI(t){return this.root.exportData64URI(t)}exportUint8Array(t){return this.root.exportUint8Array(t)}exportWritable(t,e){return this.root.exportWritable(t,e)}exportFileSystemHandle(t,e){return this.root.exportFileSystemHandle(t,e)}exportZip(t,e){return this.root.exportZip(t,e)}getExportedSize(t){return this.root.getExportedSize(t)}isPasswordProtected(){return this.root.isPasswordProtected()}checkPassword(t,e){return this.root.checkPassword(t,e)}}const Mc={FS:jc,ZipDirectoryEntry:Cc,ZipFileEntry:Ic};function Nc(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 _c(t){return t.uncompressedSize}function Bc(t,e){const{data:r}=t;return e&&r instanceof La?r.compressedSize:t.uncompressedSize}function Pc(t){let e;return function(){if(e)throw new Error(vc);return e=!0,{readable:t}}}function Lc(t){return class extends xn{constructor(t,e={}){super(),this.entry=t,this.options=e}async init(){const e=this,r=Object.assign({},t,e.options),{checkOverlappingEntry:n,checkOverlappingEntryOnly:a}=r,o=await e.entry.getData(new Rn,Object.assign(r,{checkPasswordOnly:!1,checkOverlappingEntry:a||n,checkOverlappingEntryOnly:!1,preventClose:!1}));e.data=o,e.zr=new An(o),e.size=o.size,super.init()}readUint8Array(t,e){return this.zr.readUint8Array(t,e)}}}function Wc(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function qc(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=Wc(t.Reader,t.data,e);a.set(t,r);try{await na(r)}catch(e){try{e.entryId=t.id,e.cause={entry:t}}catch{}throw e}r.size!==F&&(t.uncompressedSize=r.size,t.Er=!1)})),a}function Zc(t){if(t.parent){const e=t.parent.children;e.forEach((r,n)=>{r.id==t.id&&e.splice(n,1)})}}function Vc(t){return Boolean(t)&&t.message==Oc}function Hc(t,e,n){const a=n.relativePath?t.getRelativeName(e):t.getFullname(),o=t.options||{};let s={},i={};if(t.data instanceof La){const{externalFileAttributes:e,versionMadeBy:a,comment:c,lastModDate:l,rawLastModDate:d,creationDate:f,lastAccessDate:u,uncompressedSize:p,encrypted:m,zipCrypto:w,crc32:h,compressionMethod:y,extraFieldAES:b,internalFileAttributes:g,extraField:x,bitFlag:E,uid:v,gid:S}=t.data;s={externalFileAttributes:e,versionMadeBy:a,comment:c,lastModDate:l,creationDate:f,lastAccessDate:u,internalFileAttributes:g};const z=function(t){if(t){const e=new Map;if(t.forEach((t,r)=>{Tc.has(r)||e.set(r,t.data)}),e.size)return e}}(x);if(z&&(s.extraField=z),v===F&&S===F||Object.assign(s,{uid:v,gid:S,unixExtraFieldType:"infozip"}),Jc(t,n)){let t;b&&(t=b.strength),i={passThrough:!0,encrypted:m,zipCrypto:w,crc32:h,uncompressedSize:p,encryptionStrength:t,compressionMethod:y},E&&(i.dataDescriptor=E.dataDescriptor);const e=o.lastModDate===F?n.lastModDate:o.lastModDate;if(e===F)i.rawLastModDate=d;else if(w&&(!E||E.dataDescriptor)&&e instanceof Date&&function(t){let e=new Date(2e3*Math.ceil(Math.floor(t.getTime()/1e3)/2));return e<D?e=D:e>R&&(e=R),(e.getHours()<<3|e.getMinutes()>>3)&r}(e)!=(d>>>8&r))throw new Error(Fc)}}const c=Object.assign({lastModDate:t.vr},s,n,o,i,{directory:t.directory});if(!t.directory&&c.passThrough&&c.uncompressedSize===F)throw new Error(Rc);return{name:a,Sr:c}}function Gc(t,e){const{reader:r}=t;return r&&r.size!==F?r.size:t.Er?F:Bc(t,e)}function Kc(t){if(t&&(typeof t!=I||Array.isArray(t)))throw new Error(Dc);return t}function Yc(t,e){const{uncompressedSize:r}=e;Object.assign(t,e,{reader:null,passThrough:F,uncompressedSize:r===F?0:r,Er:r===F})}function Xc(t){let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;return Math.floor(.75*(e-r))}function Jc(t,e){const{readerOptions:r}=e;return Boolean(!t.directory&&(t.passThrough||r&&r.passThrough))}function Qc(t){return t.directory&&null===t.data}function $c(t,e,r){return async function t(e,n,a,o=""){if(n){const s=o?o+"/"+n.name:n.name;try{if((n.isFile||n.isDirectory)&&(n=await tl(n)),"file"==n.kind){const t=await n.getFile();a.push(al(e,t.name,{Reader:function(){return{readable:t.stream(),size:t.size}},options:Object.assign({},{lastModDate:new Date(t.lastModified)},r),uncompressedSize:t.size}))}else if("directory"==n.kind){const o=e.addDirectory(n.name,r);a.push(o);for await(const e of n.values())await t(o,e,a,s)}}catch(t){try{t.entryName===F&&(t.entryName=s)}catch{}throw t}}return a}(t,e,[])}async function tl(t){const e={name:t.name};if(t.isFile&&(e.kind="file",e.getFile=()=>new Promise((e,r)=>t.file(e,r))),t.isDirectory){e.kind="directory";const r=await async function(t){const e=[];function r(t,n,a){t.readEntries(async o=>{if(o.length){for(const t of o)e.push(await tl(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 el(t){t.entries=[],t.gr=0,t.root=new Cc(t)}function rl(t,e){const{entries:r,gr:n,root:a}=t;return el(t),e(t.root).catch(e=>{throw Object.assign(t,{entries:r,gr:n,root:a}),e})}function nl(t,e){const r=[e];for(;r.length;){const e=r.pop();t.entries[e.id]=e;for(const t of e.children)r.push(t)}}function al(t,e,r,n){if(t.directory){const a=ol(e);return a&&(e=a.pop(),t=sl(t,a)),n?new Cc(t.fs,e,r,t):new Ic(t.fs,e,r,t)}throw new Error("Parent entry is not a directory")}function ol(t){if(t.includes("/")){const e=t.split("/").filter(t=>""!=t&&"."!=t);if(e.length)return e}}function sl(t,e,r){return e.forEach(e=>{const n=t;if(t=t.getChildByName(e)){if(!t.directory)throw new Error(bc);if(r&&(t==r||t.isDescendantOf(r)))throw new Error(Ec)}else t=new Cc(n.fs,e,{data:null},n)}),t}let il;function cl(t){return t&&(il||(il=function(){const t=Object.create(null);for(const e of"application:0andrew-inset ez,2nodex anx,1pplixware aw,1tom!,4cat!,4serv! atomsrv,5vc!,0bbolin lin,0ccxml!,1dmi-capability cdmia,6ontainer cdmic,5domain cdmid,5object cdmio,5queue cdmiq,1u-seeme cu,0davmount!,1ocbook! dbk,1sptype tsp,2sc+der,4! xdssc,0ecmascript es ecma,1mma!,1nvoy evy,1pub+zip,1xi,0font-tdpfr pfr,1ractals fif,1uturesplash spl,0gml!,1px!,1xf,1zip gz tgz,0hta,1yperstudio stk,0inkml! ink inkml,2ternet-property-stream acx,1pfix,0java-archive jar,5serialized-object ser,5vm class,1sonml+json,0lost! lostxml,0m3g,1ac-binhex40 hqx,2ds!,2rc mrc,4xml! mrcx,2thematica nb ma mb,4ml! mathml mml,1box,1ediaservercontrol! mscml,2talink!,84! meta4,3s!,1ods!,1p21 m21 mp21,24 mp4s,1saccess mdb,2word doc dot wiz,1xf,0oda,1ebps-package! opf,1gg ogx,1lescript axs,1mdoc!,1nenote onetoc onetoc2 onetmp onepkg,1xps,0patch-ops-error! xer,1df,1gp-encrypted pgp,4keys key,4signature asc sig,1ics-rules prf,1kcs10 p10,47-mime p7m p7c,6signature p7s,48 p8,2ix-attr-cert ac,5crl crl,5pkipath pkipath,4cmp pki,1ls!,1ostscript ps ai eps epsi epsf eps2 eps3,1rs.cww cww,1skc! pskcxml,0rar,1df!,1eginfo! rif,2lax-ng-compact-syntax rnc,2source-lists! rl,e-diff! rld,1ls-services! rs,1pki-ghostbusters gbr,5manifest mft,5roa roa,1sd!,2s!,1tf,0sbml!,1cvp-cv-request scq,asponse scs,5vp-request spq,asponse spp,1dp,1et-payment-initiation setpay,4registration-initiation setreg,1hf!,1mil! smi smil,1parql-query rq,7results! srx,1rgs gram,4! grxml,2u!,1sdl!,2ml!,0tei! tei teicorpus,1hraud! tfi,1imestamped-data tsd,0vnd.3gpp.pic-bw-large plb,gsmall psb,gvar pvb,82.tcap tcap,5m.post-it-notes pwn,4accpac.simply.aso aso,iimp imp,6ucobol acu,9rp atc acutc,5dobe.air-application-installer-package+zip air,aformscentral.fcdt fcdt,bxp fxp fxpl,axdp! xdp,bfdf xfdf,5head.space ahead,5irzip.filesecure.azf azf,os azs,5mazon.ebook azw,6ericandynamics.acc acc,6iga.ami ami,5ndroid.package-archive apk,6ser-web-certificate-issue-initiation cii,efunds-transfer-initiation fti,6tix.game-component atx,5pple.installer! mpkg,ampegurl m3u8,5ristanetworks.swi swi,5straea-software.iota iota,5udiograph aep,4blueice.multipass mpm,5mi bmi,5usinessobjects rep,4chemdraw! cdxml,6ipnuts.karaoke-mmd mmd,5inderella cdy,5laymore cla,6oanto.rp9 rp9,7nk.c4group c4g c4d c4f c4p c4u,6uetrust.cartomobile-config c11amc,w-pkg c11amz,5ommonspace csp,6ntact.cmsg cdbcmsg,6smocaller cmc,5rick.clicker clkx,h.keyboard clkk,ipalette clkp,itemplate clkt,iwordbank clkw,7ticaltools.wbs! wbs,5tc-posml pml,5ups-ppd ppd,6rl.car car,9pcurl pcurl,4dart dart,6ta-vision.rdz rdz,5ebian.binary-package deb udeb,6ce.data uvf uvvf uvd uvvd,9ttml! uvt uvvt,9unspecified uvx uvvx,9zip uvz uvvz,6novo.fcselayout-link fe_launch,5na dna,5olby.mlp mlp,5pgraph dpg,5reamfactory dfac,5s-keypoint kpxx,5vb.ait ait,8service svc,5ynageo geo,4ecowin.chart mag,5nliven nml,5pson.esf esf,amsf msf,aquickanime qam,asalt slt,bsf ssf,5szigno3! es3 et3,5zpix-album ez2,apackage ez3,4fdf fdf,6sn.mseed mseed,9seed seed dataless,5lographit gph,6uxtime.clip ftc,5ramemaker fm frame maker book,6ogans.fnc fnc,cltf ltf,5sc.weblaunch fsc,5ujitsu.oasys oas,h2 oa2,h3 oa3,hgp fg5,hprs bh2,8xerox.ddd ddd,focuworks xdw,n.binder xbd,6zzysheet fzs,4genomatix.tuxedo txd,6ogebra.file ggb,dtool ggt,7metry-explorer gex gre,7next gxt,7plan g2w,7space g3w,5mx gmx,5oogle-earth.kml! kml,jz kmz,5rafeq gqf gqs,6oove-account gac,bhelp ghf,bidentity-message gim,cnjector grv,btool-message gtm,gtemplate tpl,bvcard vcg,4hal! hal,6ndheld-entertainment! zmm,5bci hbci,5he.lesson-player les,5p-hpgl hpgl,9id hpid,9s hps,7jlyt jlt,7pcl pcl,axl pclxl,5ydrostatix.sof-data sfd-hdstx,5zn-3d-crossword x3d,4ibm.minipay mpy,9odcap afp listafp list3820,8rights-management irm,8secure-container sc,5ccprofile icc icm,5gloader igl,5mmervision-ivp ivp,iu ivu,5nsors.igm igm,6tercon.formnet xpw xpx,9geo i2g,7u.qbo qbo,afx qfx,5punplugged.rcprofile rcprofile,5repository.package! irp,5s-xpr xpr,6ac.fcs fcs,4jam jam,5cp.javame.midlet-rms rms,5isp jisp,5oost.joda-archive joda,4kahootz ktz ktr,5de.karbon karbon,9chart chrt,9formula kfo,9ivio flw,9ontour kon,9presenter kpr kpt,9spread ksp,9word kwd kwt,5enameaapp htke,5idspiration kia,6nar kne knp,5oan skp skd skt skm,6dak-descriptor sse,4las.las! lasxml,5lamagraphics.life-balance.desktop lbd,vexchange! lbe,5otus-1-2-3 123,aapproach apr,afreelance pre,anotes nsf,aorganizer org,ascreencam scm,awordpro lwp,4macports.portpkg portpkg,5cd mcd,5edcalcdata mc1,7iastation.cdkey cdkey,5fer mwf,6mp mfm,5icrografx.flo flo,figx igx,6f mif,5obius.daf daf,cis dis,bmbk mbk,cqy mqy,csl msl,bplc plc,btxf txf,6phun.application mpn,bcertificate mpc,6zilla.xul! xul,5s-artgalry cil,7cab-compressed cab,7excel xls xlb xlt xlm xla xlc xlw,c.addin.macroenabled.12 xlam,dsheet.binary.macroenabled.12 xlsb,jmacroenabled.12 xlsm,dtemplate.macroenabled.12 xltm,7fontobject eot,7htmlhelp chm,7ims ims,7lrm lrm,7officetheme thmx,8utlook msg,7pki.seccat cat,ctl stl,acertstore sst,8owerpoint ppt pps pot ppa pwz,h.addin.macroenabled.12 ppam,ipresentation.macroenabled.12 pptm,islide.macroenabled.12 sldm,nshow.macroenabled.12 ppsm,itemplate.macroenabled.12 potm,8roject mpp mpt,7word.document.macroenabled.12 docm,ctemplate.macroenabled.12 dotm,aks wps wks wcm wdb,8pl wpl,7xpsdocument xps,6eq mseq,5usician mus,6vee.style msty,5ynfc taglet,4neurolanguage.nlu nlu,5itf ntf nitf,5oblenet-directory nnd,dsealer nns,dweb nnw,6kia.n-gage.data ngdat,hsymbian.install n-gage,aradio-preset rpst,ms rpss,6vadigm.edm edm,fx edx,ext ext,4oasis.opendocument.chart odc,s-template otc,ndatabase odb,nformula odf,u-template odft,ngraphics odg,v-template otg,nimage odi,s-template oti,npresentation odp,z-template otp,nspreadsheet ods,y-template ots,ntext odt,r-master odm otm,stemplate ott,sweb oth,5lpc-sugar xo,5ma.dd2! dd2,5penofficeorg.extension oxt,8xmlformats-officedocument.presentationml.presentation pptx,zresentationml.slide sldx,zresentationml.slideshow ppsx,zresentationml.template potx,yspreadsheetml.sheet xlsx,zpreadsheetml.template xltx,ywordprocessingml.document docx,zordprocessingml.template dotx,5sgeo.mapguide.package mgp,7i.dp dp,9subsystem esa,4palm pdb pqa oprc,6waafile paw,5g.format str,7osasli ei6,5icsel efif,5mi.widget wg,5ocketlearn plf,6werbuilder6 pbd,5reviewsystems.box box,6oteus.magazine mgz,5ublishare-delta-tree qps,5vi.ptid1 ptid,4quark.quarkxpress qxd qxt qwd qwt qxl qxb,4realvnc.bed bed,6cordare.musicxml mxl,m! musicxml,5ig.cryptonote cryptonote,5n-realmedia rm,g-vbr rmvb,5oute66.link66! link66,4sailingtracker.track st,5eemail see,6ma sema,7d semd,7f semf,5hana.informed.formdata ifm,ntemplate itp,jinterchange iif,jpackage ipk,5imtech-mindmapper twd twds,5maf mmf,7rt.teacher teacher,5olent.sdkm! sdkm sdkd,5potfire.dxp dxp,dsfs sfs,5qlite3 db sqlite sqlite3 db-wal sqlite-wal db-shm sqlite-shm,5tardivision.calc sdc,ihart sds,hdraw sda,himpress sdd,hmath sdf smf,hwriter sdw vor,n-global sgl,6epmania.package smzip,estepchart sm,5un.xml.calc sxc,g.template stc,cdraw sxd,g.template std,cimpress sxi,j.template sti,cmath sxm,cwriter sxw,i.global sxg,jtemplate stw,6s-calendar sus susp,5vd svd,5ymbian.install sis sisx,6ncml! xsm,a.dm+wbxml bdm,d! xdm,4tao.intent-module-archive tao,5cpdump.pcap pcap cap dmp,5mobile-livetv tmo,5rid.tpt tpt,7scape.mxs mxs,6ueapp tra,4ufdl ufd ufdl,5iq.theme utz,5majin umj,5nity unityweb,5oml! uoml,4vcx vcx,5isio vsd vst vss vsw vsdx vssx vstx vssm vstm,9nary vis,5sf vsf,4wap.sic sic,9lc slc,8wbxml wbxml,9mlc wmlc,bscriptc wmlsc,5ebturbo wtb,5olfram.player nbp,6rdperfect wpd,f5.1 wp5,5qd wqd,5t.stf stf,4xara xar,5fdl xfdl,4yamaha.hv-dic hvd,escript hvs,evoice hvp,bopenscoreformat osf,q.osfpvg! osfpvg,bsmaf-audio saf,gphrase spf,5ellowriver-custom-menu cmp,4zul zir zirz,5zazz.deck! zaz,1oicexml! vxml,0widget wgt,2nhlp hlp,1sdl!,2policy!,0x-123 wk,27z-compressed 7z,2abiword abw,3ce-compressed ace,3pple-diskimage dmg,3uthorware-bin aab x32 u32 vox,dmap aam,dseg aas,2bcpio bcpio,3ittorrent torrent,3lorb blb blorb,3zip bz,62 bz2 boz,2cbr cbr cba cbt cb7,4z cbz,3df cdf cda,4link vcd,3fs-compressed cfs,3hat chat,4ess-pgn pgn,3ompress z,4nference nsc,3pio cpio,3sh csh,2dgc-compressed dgc,3irector dir dxr cst cct cxt w3d fgd swa,3ms dms,3oom wad,3tbncx! ncx,5ook! dtb,5resource! res,3vi dvi,2eva eva,2font-bdf bdf,7ghostscript gsf,7linux-psf psf,7pcf pcf,7snf snf,7ttf ttf ttc,8ype1 pfa pfb pfm afm,3reearc arc,6mind mm,2gca-compressed gca,3lulx ulx,3numeric gnumeric,3o-sgf sgf,3ramps-xml gramps,5phing-calculator gcf,3tar gtar taz,2hdf hdf,3ttpd-eruby rhtml,8php phtml pht php,b-source phps,b3 php3,c-preprocessed php3p,b4 php4,b5 php5,2ica ica,3nfo info,4stall-instructions install,4ternet-signup ins isp,3phone iii,3so9660-image iso,2java-jnlp-file jnlp,3mol jmz,2killustrator kil,3rita kra krz,2latex latex,3yx lyx,3zh-compressed lzh lha,4x lzx,2maker frm fb fbdoc,3ie mie,3obipocket-ebook prc mobi,3s-application application,5installer msi,5shortcut lnk,5wmd wmd,5xbap xbap,4binder obd,4cardfile crd,5lip clp,4dos-program com exe bat dll,4mediaview mvb m13 m14,6tafile wmf wmz emf emz,5oney mny,4publisher pub,4schedule scd,4terminal trm,4write wri,2netcdf nc,3s-proxy-autoconfig pac dat,3wc nwc,3zb nzb,2object o,3z-application oza,2perfmon pma pmc pmr pmw,5l pm pl,3kcs12 p12 pfx,67-certificates p7b spc,creqresp p7r,3ython-code pyc pyo,2qgis qgs shp shx,3uicktimeplayer qtl,2redhat-package-manager rpm rpa,4search-info-systems ris,3uby rb,2sh sh,4ar shar,4ockwave-flash swf swfl,3ilverlight scr,d-app xap,3ql sql,3tuffit sit,9x sitx,3ubrip srt,3v4cpio sv4cpio,6rc sv4crc,2t3vm-image t3,3ar tar,3ex-gf gf,6pk pk,6tfm tfm,5info texinfo texi,3gif obj,3rash ~ % bak old sik,2ustar ustar,2wais-source src,3ingz wz,2x509-ca-cert crt der cer,3cf xcf,3fig fig,3liff! xlf,3pinstall xpi,3z xz,2zmachine z1 z2 z3 z4 z5 z6 z7 z8,1aml!,1cap-diff! xdf,1enc!,1html! xhtml xht,1ml xml xsl xsd xpdl,3-dtd dtd,1op!,1proc! xpl,1slt!,2pf!,1v! mxml xhvml xvml xvm,0yaml yaml yml,2ng,1in!,1nd.ms-pkipko pko,0zip;audio:0aac,1dpcm adp,1iff aiff aif aff,1mr,3-wb awb,1nnodex axa,0basic au snd,0flac,0midi mid midi kar rmi,1p4 mp4a,2eg mpga mpega mp3 m4a mp2a m2a m3a,4url m3u,0ogg oga ogg spx,1pus,0prs.sid sid,0s3m,1ilk sil,0vnd.dece.audio uva uvva,5igital-winds eol,5ra dra,5ts dts,7.hd dtshd,4lucent.voice lvp,4ms-playready.media.pya pya,4nuera.ecelp4800 ecelp4800,f7470 ecelp7470,f9600 ecelp9600,4rip rip,0wav,1ebm weba,0x-aiff aifc,2caf caf,2gsm gsm,2matroska mka,3s-wax wax,6ma wma,2pn-realaudio ram,e-plugin rmp,2realaudio ra,2sd2 sd2,1m;chemical:0x-alchemy alc,2cache cac cache,7-csf csf,5tvs-binary cbin cascii ctab,3dx cdx,3hem3d c3d,3if cif,3mdf cmdf,4l cml,3ompass cpa,3rossfire bsd,3sml csml csm,3tx ctx,3xf cxf cef,2embl-dl-nucleotide emb embl,2gamess-input inp gam gamin,4ussian-checkpoint fch fchk,cube cub,binput gau gjc gjf,blog gal,3cg8-sequence gcg,3enbank gen,2hin hin,2isostar istr ist,2jcamp-dx jdx dx,2kinemage kin,2macmolecule mcm,5romodel-input mmod,3dl-molfile mol,6rdfile rd,7xnfile rxn,6sdfile sd,6tgf tgf,3mcif mcif,3ol2 mol2,5conn-Z b,4pac-graph gpt,8input mop mopcrt zmt,8out moo,2ncbi-asn1 asn,b-ascii prt ent,cbinary val,2rosdal ros,2swissprot sw,2vamas-iso14976 vms,3md vmd,2xtel xtel,3yz xyz;font:0otf,0woff,42;image:0avif avif avifs,0bmp,0cgm,1is-cod cod,0g3fax g3,1if,0heic heif heic,0ief,0jpeg jpeg jpg jpe jfif jfif-tbnl jif,0ktx,0pcx,1jpeg pjpg,1ng,1rs.btif btif,0sgi,1vg! svg svgz,0tiff tiff tif,0vnd.adobe.photoshop psd,4dece.graphic uvi uvvi uvg uvvg,5jvu djvu djv,5wg dwg,5xf dxf,4fastbidsheet fbs,5px fpx,5st fst,5ujixerox.edmics-mmr mmr,lrlc rlc,4ms-modi mdi,7photo wdp,4net-fpx npx,4wap.wbmp wbmp,4xiff xif,0webp,0x-3ds 3ds,2adobe-dng dng,2canon-cr2 cr2,aw crw,3mu-raster ras,4x cmx,3oreldraw cdr,bpattern pat,btemplate cdt,7photopaint cpt,2epson-erf erf,2freehand fh fhc fh4 fh5 fh7,3uji-raf raf,2icns icns,4on ico,2jg art,3ng jng,2kodak-dcr dcr,8k25 k25,9dc kdc,2minolta-mrw mrw,2nikon-nef nef,2olympus-orf orf,2panasonic-raw raw rw2 rwl,3entax-pef pef ptx,3ict pic pct,3ortable-anymap pnm,bbitmap pbm,bgraymap pgm,bpixmap ppm,2rgb rgb,2sigma-x3f x3f,3ony-arw arw,7sr2 sr2,9f srf,2tga tga,2xbitmap xbm,3pixmap xpm,3windowdump xwd;message:0rfc822 eml mime mht mhtml nws;model:0iges igs iges,0mesh msh mesh silo,0vnd.collada! dae,4dwf dwf,4gdl gdl,5tw gtw,4mts mts,4usdz+zip usdz,4vtu vtu,1rml wrl vrml,0x3d+binary x3db x3dbz,4vrml x3dv x3dvz,3! x3dz;text:0cache-manifest manifest appcache,2lendar ics icz ifb,1ss,2v,0h323 323,1tml html htm shtml stm,0iuls uls,0javascript js,1son,0markdown md markdown mdown markdn,0n3,0plain txt text brf conf def list log in bas diff ksh,1rs.lines.tag dsc,0richtext rtx,0scriptlet sct wsc,1gml sgml sgm,0tab-separated-values tsv,1exmacs tm,1roff t tr roff man me ms,1urtle ttl,0uri-list uri uris urls,0vcard,1nd.curl curl,8.dcurl dcurl,9mcurl mcurl,9scurl scurl,4dvb.subtitle sub,4fly fly,5mi.flexstor flx,4graphviz gv,4in3d.3dml 3dml,9spot spot,4sun.j2me.app-descriptor jad,4wap.si si,9l sl,8wml wml,bscript wmls,0webviewhtml htt,0x-asm s asm,2bibtex bib,3oo boo,2c c h dic,3++hdr h++ hpp hxx hh,5src c++ cpp cxx cc,3omponent htc,2diff patch,3src d,2fortran f for f77 f90,2haskell hs,2java java,2literate-haskell lhs,2moc moc,2nfo nfo,2opml opml,2pascal p pas pp inc,3cs-gcd gcd,3ython py,2scala scala,3etext etx,3fv sfv,2tcl tcl tk,3ex tex ltx sty cls,2uuencode uu,2vcalendar vcs,5rd vcf;video:03gpp 3gp,42 3g2,0annodex axv,0dl,1v dif dv,0fli,0gl,0h261,33,34,0jpeg jpgv,2m jpm jpgm,0mj2 mj2 mjp2,1p2t ts,24 mp4 mp4v mpg4,2eg mpeg mpg mpe m1v m2v mp2 mpa mpv2,0ogg ogv,0quicktime qt mov,0vnd.dece.hd uvh uvvh,9mobile uvm uvvm,9pd uvp uvvp,9sd uvs uvvs,9video uvv uvvv,5vb.file dvb,4fvt fvt,4mpegurl mxu m4u,5s-playready.media.pyv pyv,4uvvu.mp4 uvu uvvu,4vivo viv,0webm,0x-f4v f4v,3lv flv,2la-asf lsf lsx,2m4v m4v,3atroska mpv mkv mk3d mks,3ng mng,3s-asf asf asx asr,5vob vob,5wm wm,7v wmv,7x wmx,6vx wvx,4video avi,2sgi-movie movie,3mv smv;x-conference:0x-cooltalk ice;x-world:0x-vrml vrm flr wrz xaf xof".split(";")){const r=e.indexOf(":"),n=e.slice(0,r);let a="";for(const o of e.slice(r+1).split(",")){const e=o.split(" "),r=a.slice(0,Number.parseInt(e[0][0],36))+e[0].slice(1);a=r;const s=r.replace(/!/g,"+xml"),i=e.length>1?e.slice(1):[s.split("+")[0]];for(const e of i)t[e]=n+"/"+s}}return t}()),il)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{An as BlobReader,Rn as BlobWriter,vn as Data64URIReader,Sn as Data64URIWriter,nt as ERR_ABORTED,$a as ERR_AMBIGUOUS_ARCHIVE,Wa as ERR_BAD_FORMAT,Va as ERR_CENTRAL_DIRECTORY_NOT_FOUND,us as ERR_DUPLICATED_NAME,gc as ERR_DUPLICATE_IMPORTED_ENTRY,Ka as ERR_ENCRYPTED,to as ERR_ENCRYPTED_CENTRAL_DIRECTORY,Qa 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,cn as ERR_HTTP_RANGE,ln as ERR_HTTP_RESOURCE_CHANGED,Xt as ERR_INVALID_AUTHENTICATION_CODE,Be as ERR_INVALID_CODEC_DEFINITION,Le as ERR_INVALID_CODEC_MODULE,ps as ERR_INVALID_COMMENT,ms as ERR_INVALID_COMMENT_TYPE,$e as ERR_INVALID_COMPRESSED_DATA,tr as ERR_INVALID_CRC32,ys as ERR_INVALID_DATE,xc as ERR_INVALID_DUPLICATES,xs as ERR_INVALID_ENCRYPTION_STRENGTH,ws as ERR_INVALID_ENTRY_COMMENT,hs as ERR_INVALID_ENTRY_COMMENT_TYPE,bs as ERR_INVALID_ENTRY_NAME,zs as ERR_INVALID_EXTRAFIELD,Rs as ERR_INVALID_EXTRAFIELD_DATA,As as ERR_INVALID_EXTRAFIELD_DATA_TYPE,ks as ERR_INVALID_EXTRAFIELD_TYPE,no as ERR_INVALID_FILENAME_VALIDATION,tt as ERR_INVALID_FUNCTION_OPTION,Ps as ERR_INVALID_GID,Hs as ERR_INVALID_LEVEL,ao as ERR_INVALID_MAX_APPENDED_DATA_SIZE,ut as ERR_INVALID_MAX_WORKERS,Zs as ERR_INVALID_MSDOS_ATTRIBUTES,Vs as ERR_INVALID_MSDOS_DATA,Yt as ERR_INVALID_PASSWORD,rt as ERR_INVALID_PASSWORD_TYPE,Rc as ERR_INVALID_PASS_THROUGH,Ns as ERR_INVALID_READER,Dc as ERR_INVALID_READER_OPTIONS,et as ERR_INVALID_SIGNAL,Gs as ERR_INVALID_SIGNATURE_DATA,ro as ERR_INVALID_STRICTNESS,Bs as ERR_INVALID_UID,Qe as ERR_INVALID_UNCOMPRESSED_SIZE,Ws as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,qs as ERR_INVALID_UNIX_ID_SIZE,Ls as ERR_INVALID_UNIX_MODE,gs as ERR_INVALID_VERSION,dn as ERR_ITERATOR_COMPLETED_TOO_SOON,Ha as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Ja as ERR_OVERLAPPING_ENTRY,vc as ERR_READABLE_CONSUMED,Pe as ERR_RESERVED_COMPRESSION_METHOD,Xa as ERR_SPLIT_ZIP_FILE,Cs as ERR_UNDEFINED_COMPRESSION_METHOD,Ms as ERR_UNDEFINED_READER,Is as ERR_UNDEFINED_UNCOMPRESSED_SIZE,js as ERR_UNDETERMINED_SIZE,eo as ERR_UNSAFE_FILENAME,We as ERR_UNSUPPORTED_COMPRESSION,ec as ERR_UNSUPPORTED_CONTEXT,Qt as ERR_UNSUPPORTED_CRYPTO_API,Ya as ERR_UNSUPPORTED_ENCRYPTION,Ss as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,Es as ERR_UNSUPPORTED_ENCRYPTION_USDZ,Us as ERR_UNSUPPORTED_FORMAT,vs as ERR_UNSUPPORTED_SPLIT_USDZ,oo as ERR_UNSUPPORTED_UINT64,Er as ERR_WORKER_STARTUP_TIMEOUT,fn as ERR_WRITER_NOT_INITIALIZED,Fc as ERR_ZIP_CRYPTO_LAST_MOD_DATE,_s as ERR_ZIP_NOT_EMPTY,Yn as HttpRangeReader,Kn as HttpReader,xn as Reader,Qn as SplitDataReader,$n as SplitDataWriter,Dn as TextReader,On as TextWriter,Xn as Uint8ArrayReader,Jn as Uint8ArrayWriter,Gi as VERSION,po as WARNING_APPENDED_DATA,co as WARNING_COMPRESSED_PATCHED_DATA,yo as WARNING_DUPLICATE_FILENAME,lo as WARNING_MALFORMED_EXTRA_FIELD,go as WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG,xo as WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD,Eo as WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES,bo as WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY,wo as WARNING_PREPENDED_CENTRAL_DIRECTORY,mo as WARNING_PREPENDED_DATA,ho as WARNING_TRAILING_CENTRAL_DIRECTORY_DATA,io as WARNING_UNKNOWN_VERSION,fo as WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA,so as WARNING_UNSORTED_CENTRAL_DIRECTORY,uo as WARNING_WRAPPED_ENTRIES_COUNT,En as Writer,Cc as ZipDirectoryEntry,Uc as ZipEntry,jc as ZipFS,Ic as ZipFileEntry,Do as ZipReader,Fo as ZipReaderStream,$s as ZipWriter,ti as ZipWriterStream,St as configure,Qi as createBlobTempStream,Xi as createOPFSTempStream,rc as createSyncAccessHandleTempStream,Mc as fs,cl as getMimeType,Ye as getRegisteredCodecs,Vi as getSupportedCompressionMethods,Oo as isZipFile,He as registerCodec,Dt as resetConfiguration,yc as terminateWorkers,Ge as unregisterCodec};
1
+ const t=4294967295,e=65535,r=255,n=67324752,a=134695760,o=a,s=84233040,i=33639248,c=101010256,l=101075792,d=117853008,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,T="undefined",I="function",U="object",C="string",j="boolean",M=new Uint8Array,N=Symbol.asyncDispose||Symbol(),_="password",B="rawPassword",P="passThrough",L="signal",W="useWebWorkers",q="useCompressionStream",Z="transferStreams",V="preventClose",H="level",G="useUnicodeFileNames",K="dataDescriptor",Y="offset",X="usdz",J="maxAppendedDataSize",Q="signCentralDirectory",$="entry",tt="filename",et="comment",rt="strict",nt="balanced",at="tolerant",ot="compressed",st="Invalid option (must be a function)",it="Invalid signal (must be an AbortSignal instance)",ct="Invalid password (password must be a string, rawPassword must be a Uint8Array)",lt="Invalid passThrough option (must be a boolean or 'compressed')",dt="The operation was aborted";function ut(t){if(t&&typeof t!=I)throw new Error(st);return t}function ft(t){if(t&&(typeof t.addEventListener!=I||typeof t.aborted!=j))throw new Error(it);return t||F}function pt(t){if(t&&t.aborted)throw t.reason===F?new DOMException(dt,"AbortError"):t.reason}function mt(t,e){if(t&&typeof t!=C||e&&!(e instanceof Uint8Array))throw new Error(ct)}function wt(t){if(t!==F&&typeof t!=j&&t!==ot)throw new Error(lt);return t}function ht(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw new Error(r)}function yt(t,e,r){t!==F&&ht(t,e,r)}function bt(t){return typeof t==C&&t.trim()?Number(t):t}const gt="Invalid maxWorkers (must be an integer greater than 0)",xt="Invalid baseURI (must be a string)",Et="Invalid URI (must be a string or a function returning a string)";let vt=2;try{typeof navigator!=T&&navigator.hardwareConcurrency&&(vt=navigator.hardwareConcurrency)}catch{}const St={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:vt,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=T&&CompressionStream,DecompressionStream:typeof DecompressionStream!=T&&DecompressionStream},zt="maxWorkers",kt="baseURI",At=["wasmURI","workerURI"],Rt=["chunkSize",zt,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],Dt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],Ft=[kt,...At,"useCompressionStream","useWebWorkers","transferStreams",...Rt,...Dt],Ot={...St};function Tt(){return Ot}function It(t){return Ut(t.chunkSize)}function Ut(t){return t=bt(t),Number.isInteger(t)&&t>=1?Math.max(t,64):65536}function Ct(t){Object.assign(Ot,jt(Nt(t)))}function jt(t){const e={};for(const r of Ft){const n=t[r];n!==F&&(e[r]=Mt(r,n))}return e}function Mt(t,e){if(Rt.includes(t)){if(e=bt(e),t==zt&&(!Number.isInteger(e)||e<1))throw new Error(gt)}else if(Dt.includes(t))ut(e);else if(t==kt){if(e&&typeof e!=C)throw new Error(xt)}else if(At.includes(t)&&e&&typeof e!=C&&typeof e!=I)throw new Error(Et);return e}function Nt(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 _t(t){const e=jt(Nt(t));Object.assign(St,e),Object.assign(Ot,e)}function Bt(){for(const t of Ft)delete Ot[t];Object.assign(Ot,St)}function Pt(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function Lt(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function Wt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const qt=[[],[],[],[],[],[],[],[]];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;qt[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=qt[e-1][t];qt[e][t]=r>>>8^qt[0][255&r]}const[Zt,Vt,Ht,Gt,Kt,Yt,Xt,Jt]=qt;class Qt{constructor(t){this.o=t||-1}append(t){let e=0|this.o;const r=0|t.length;let n=0;if(r>=8&&t.buffer){const a=new DataView(t.buffer,t.byteOffset,r),o=r-8;for(;n<=o;n+=8){const t=e^a.getInt32(n,!0),r=a.getInt32(n+4,!0);e=Jt[255&t]^Xt[t>>>8&255]^Yt[t>>>16&255]^Kt[t>>>24&255]^Gt[255&r]^Ht[r>>>8&255]^Vt[r>>>16&255]^Zt[r>>>24&255]}}for(;n<r;n++)e=e>>>8^Zt[255&(e^t[n])];this.o=e}get(){return~this.o}}class $t extends TransformStream{constructor(){let t;const e=new Qt;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 te(t){if(typeof TextEncoder==T){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let r=0;r<e.length;r++)e[r]=t.charCodeAt(r);return e}return(new TextEncoder).encode(t)}const ee={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const r=t[t.length-1],n=ee.l(r);return 32===n?t.concat(e):ee.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)+ee.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]=ee.v(e,t[r-1]&2147483648>>e-1,1)),t},v:(t,e,r)=>32===t?e:(r?0|e:e<<32-t)+1099511627776*t,l:t=>Math.round(t/1099511627776)||32,m(t,e,r,n){for(void 0===n&&(n=[]);e>=32;e-=32)n.push(r),r=0;if(0===e)return n.concat(t);for(let a=0;a<t.length;a++)n.push(r|t[a]>>>e),r=t[a]<<32-e;const a=t.length?t[t.length-1]:0,o=ee.l(a);return n.push(ee.v(e+o&31,e+o>32?r:n.pop(),1)),n}},re={bytes:{S(t){const e=ee.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(ee.v(8*(3&r),n)),e}}},ne=class{constructor(t){const e=this;e.blockSize=512,e.R=[1732584193,4023233417,2562383102,271733878,3285377520],e.D=[1518500249,1859775393,2400959708,3395469782],t?(e.F=t.F.slice(0),e.O=t.O.slice(0),e.T=t.T):e.reset()}reset(){const t=this;return t.F=t.R.slice(0),t.O=[],t.T=0,t}update(t){const e=this;"string"==typeof t&&(t=re.I.A(t));const r=e.O=ee.concat(e.O,t),n=e.T,a=e.T=n+ee.bitLength(t);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const o=new Uint32Array(r);let s=0;for(let t=e.blockSize+n-(e.blockSize+n&e.blockSize-1);t<=a;t+=e.blockSize)e.U(o.subarray(16*s,16*(s+1))),s+=1;return r.splice(0,16*s),e}C(){const t=this;let e=t.O;const r=t.F;e=ee.concat(e,[ee.v(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(Math.floor(t.T/4294967296)),e.push(0|t.T);e.length;)t.U(e.splice(0,16));return t.reset(),r}j(t,e,r,n){return t<=19?e&r|~e&n:t<=39?e^r^n:t<=59?e&r|e&n|r&n:t<=79?e^r^n:void 0}M(t,e){return e<<t|e>>>32-t}U(t){const e=this,r=e.F,n=Array(80);for(let e=0;e<16;e++)n[e]=t[e];let a=r[0],o=r[1],s=r[2],i=r[3],c=r[4];for(let t=0;t<=79;t++){t>=16&&(n[t]=e.M(1,n[t-3]^n[t-8]^n[t-14]^n[t-16]));const r=e.M(5,a)+e.j(t,o,s,i)+c+n[t]+e.D[Math.floor(t/20)]|0;c=i,i=s,s=e.M(30,o),o=a,a=r}r[0]=r[0]+a|0,r[1]=r[1]+o|0,r[2]=r[2]+s|0,r[3]=r[3]+i|0,r[4]=r[4]+c|0}},ae={importKey:t=>new ae.N(re.bytes.A(t)),_(t,e,r,n){if(r=r||1e4,n<0||r<0)throw new Error("invalid params to pbkdf2");const a=1+(n>>5)<<2;let o,s,i,c,l;const d=new ArrayBuffer(a),u=new DataView(d);let f=0;const p=ee;for(e=re.bytes.A(e),l=1;f<(a||1);l++){for(o=s=t.encrypt(p.concat(e,[l])),i=1;i<r;i++)for(s=t.encrypt(s),c=0;c<s.length;c++)o[c]^=s[c];for(i=0;f<(a||1)&&i<o.length;i++)u.setInt32(f,o[i]),f+=4}return d.slice(0,n/8)},N:class{constructor(t){const e=this,r=e.B=ne,n=[[],[]];e.P=[new r,new r];const a=e.P[0].blockSize/32;t.length>a&&(t=(new r).update(t).C());for(let e=0;e<a;e++)n[0][e]=909522486^t[e],n[1][e]=1549556828^t[e];e.P[0].update(n[0]),e.P[1].update(n[1]),e.L=new r(e.P[0])}reset(){const t=this;t.L=new t.B(t.P[0]),t.W=!1}update(t){this.W=!0,this.L.update(t)}digest(){const t=this,e=t.L.C(),r=new t.B(t.P[1]).update(e).C();return t.reset(),r}encrypt(t){if(this.W)throw new Error("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},oe=typeof crypto!=T&&typeof crypto.getRandomValues==I,se="Invalid password",ie="Invalid authentication code",ce="zipjs-abort-check-password",le="Crypto API not supported";function de(t){if(oe)return crypto.getRandomValues(t);throw new Error(le)}const ue=16,fe={name:"PBKDF2"},pe=Object.assign({hash:{name:"HMAC"}},fe),me=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},fe),we=["deriveBits"],he=[8,12,16],ye=[16,24,32],be=10,ge=[0,0,0,0],xe=typeof crypto!=T,Ee=xe&&crypto.subtle,ve=xe&&typeof Ee!=T,Se=re.bytes,ze=class{constructor(t){const e=this;e.Z=[[[],[],[],[],[]],[[],[],[],[],[]]],e.Z[0][0][0]||e.V();const r=e.Z[0][4],n=e.Z[1],a=t.length;let o,s,i,c=1;if(4!==a&&6!==a&&8!==a)throw new Error("invalid aes key size");for(e.D=[s=t.slice(0),i=[]],o=a;o<4*a+28;o++){let t=s[o-1];(o%a===0||8===a&&o%a===4)&&(t=r[t>>>24]<<24^r[t>>16&255]<<16^r[t>>8&255]<<8^r[255&t],o%a===0&&(t=t<<8^t>>>24^c<<24,c=c<<1^283*(c>>7))),s[o]=s[o-a]^t}for(let t=0;o;t++,o--){const e=s[3&t?o:o-4];i[t]=o<=4||t<4?e:n[0][r[e>>>24]]^n[1][r[e>>16&255]]^n[2][r[e>>8&255]]^n[3][r[255&e]]}}encrypt(t){return this.H(t,0)}decrypt(t){return this.H(t,1)}V(){const t=this.Z[0],e=this.Z[1],r=t[4],n=e[4],a=[],o=[];let s,i,c,l;for(let t=0;t<256;t++)o[(a[t]=t<<1^283*(t>>7))^t]=t;for(let d=s=0;!r[d];d^=i||1,s=o[s]||1){let o=s^s<<1^s<<2^s<<3^s<<4;o=o>>8^255&o^99,r[d]=o,n[o]=d,l=a[c=a[i=a[d]]];let u=16843009*l^65537*c^257*i^16843008*d,f=257*a[o]^16843008*o;for(let r=0;r<4;r++)t[r][d]=f=f<<24^f>>>8,e[r][o]=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],o=this.Z[e],s=o[0],i=o[1],c=o[2],l=o[3],d=o[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=s[m>>>24]^i[w>>16&255]^c[h>>8&255]^l[255&y]^r[b],f=s[w>>>24]^i[h>>16&255]^c[y>>8&255]^l[255&m]^r[b+1],p=s[h>>>24]^i[y>>16&255]^c[m>>8&255]^l[255&w]^r[b+2],y=s[y>>>24]^i[m>>16&255]^c[w>>8&255]^l[255&h]^r[b+3],b+=4,m=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}},ke=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=ee.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 ee.h(e,a)}},Ae=ae.N;let Re=xe&&ve&&typeof Ee.importKey==I,De=xe&&ve&&typeof Ee.deriveBits==I;class Fe extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:n,checkAuthenticationCode:a=!0}){super({start(){Te(this,t,e,r)},async transform(t,e){const r=this,{password:a,strength:o,et:s,ready:i}=r;a?(await async function(t,e,r,n){const a=await Ue(t,e,r,je(n,0,he[e])),o=je(n,he[e]);if(a[0]!=o[0]||a[1]!=o[1])throw new Error(se)}(r,o,a,je(t,0,he[o]+2)),t=je(t,he[o]+2),n?e.error(new Error(ce)):s()):await i;const c=new Uint8Array(t.length-be-(t.length-be)%ue);e.enqueue(Ie(r,t,c,0,be,!0))},async flush(t){const{nt:e,ot:r,st:n,ready:o}=this;if(r&&e){await o;const s=je(n,0,n.length-be),i=je(n,n.length-be);let c=M;if(s.length){const t=Ne(Se,s);r.update(t);const n=e.update(t);c=Me(Se,n)}const l=je(Me(Se,r.digest()),0,be);let d=n.length<be?1:0;for(let t=0;t<be;t++)d|=l[t]^i[t];if(d&&a)throw new Error(ie);t.enqueue(c)}}})}}class Oe extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){super({start(){Te(this,t,e,r)},async transform(t,e){const r=this,{password:n,strength:a,et:o,ready:s}=r;let i=M;n?(i=await async function(t,e,r){const n=de(new Uint8Array(he[e]));return Pt(n,await Ue(t,e,r,n))}(r,a,n),o()):await s;const c=new Uint8Array(i.length+t.length-t.length%ue);c.set(i,0),e.enqueue(Ie(r,t,c,i.length,0))},async flush(t){const{nt:e,ot:r,st:n,ready:a}=this;if(r&&e){await a;let o=M;if(n.length){const t=e.update(Ne(Se,n));r.update(t),o=Me(Se,t)}const s=Me(Se,r.digest()).slice(0,be);t.enqueue(Pt(o,s))}}})}}function Te(t,e,r,n){Object.assign(t,{ready:new Promise(e=>t.et=e),password:Ce(e,r),strength:n-1,st:M})}function Ie(t,e,r,n,a,o){const{nt:s,ot:i,st:c}=t;c.length&&(e=Pt(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%ue)),d=0;d<=l-ue;d+=ue){const t=Ne(Se,je(e,d,d+ue));o&&i.update(t);const a=s.update(t);o||i.update(a),r.set(Me(Se,a),d+n)}return t.st=je(e,d),r}async function Ue(t,e,r,n){t.password=null;const a=await async function(t,e,r,n,a){if(!Re)return ae.importKey(e);try{return await Ee.importKey("raw",e,r,!1,a)}catch{return Re=!1,ae.importKey(e)}}(0,r,pe,0,we),o=await async function(t,e,r){if(!De)return ae._(e,t.salt,me.iterations,r);try{return await Ee.deriveBits(t,e,r)}catch{return De=!1,ae._(e,t.salt,me.iterations,r)}}(Object.assign({salt:n},me),a,8*(2*ye[e]+2)),s=new Uint8Array(o),i=Ne(Se,je(s,0,ye[e])),c=Ne(Se,je(s,ye[e],2*ye[e])),l=je(s,2*ye[e]);return Object.assign(t,{keys:{key:i,it:c,passwordVerification:l},nt:new ke(new ze(i),Array.from(ge)),ot:new Ae(c)}),l}function Ce(t,e){return e===F?te(t):e}function je(t,e,r){return t.subarray(e,r)}function Me(t,e){return t.S(e)}function Ne(t,e){return t.A(e)}class _e extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:n}){super({start(){Pe(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=Le(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw new Error(se);t=t.subarray(12)}n?e.error(new Error(ce)):e.enqueue(Le(r,t))}})}}class Be extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){Pe(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=de(new Uint8Array(12));e[11]=r.passwordVerification,n=new Uint8Array(t.length+e.length),n.set(We(r,e),0),a=12}else n=new Uint8Array(t.length),a=0;n.set(We(r,t),a),e.enqueue(n)}})}}function Pe(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 Qt(n[0]),lt:new Qt(n[2])}),r)for(let e=0;e<r.length;e++)qe(t,r[e]);else for(let r=0;r<e.length;r++)qe(t,e.charCodeAt(r))}(t,e,r)}function Le(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Ze(t)^e[n],qe(t,r[n]);return r}function We(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Ze(t)^e[n],qe(t,e[n]);return r}function qe(t,e){let[,r]=t.keys;t.ct.append([e]);const n=~t.ct.get();r=He(Math.imul(He(r+Ve(n)),134775813)+1),t.lt.append([r>>>24]);const a=~t.lt.get();t.keys=[n,r,a]}function Ze(t){const e=2|t.keys[2];return Ve(Math.imul(e,1^e)>>>8)}function Ve(t){return 255&t}function He(t){return 4294967295&t}function Ge(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 Ke(t,e){t=Ge(t);const r=e?{type:e}:{};if(typeof Blob.prototype.stream!=I||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 Ye(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 Xe="Invalid codec definition",Je="Reserved compression method",Qe="Invalid codec module",$e="Compression method not supported",tr=[0,8,9,99],er=new Map,rr=new Map;function nr(t={}){const{compressionMethod:r,format:n,codecURI:a,CompressionStream:o,DecompressionStream:s,versionNeeded:i}=t;if(!Number.isInteger(r)||r<0||r>e||typeof n!=C||!n.length)throw new Error(Xe);if(tr.includes(r))throw new Error(Je);const c=typeof o==I||typeof s==I;if(!(c||typeof a==C&&a.length))throw new Error(Xe);er.set(r,{compressionMethod:r,format:n,codecURI:a,versionNeeded:i}),c&&cr(n,{CompressionStream:o,DecompressionStream:s})}function ar(t){const e=er.get(t);if(e){let r;er.delete(t),er.forEach(t=>r=r||t.format==e.format),r||rr.delete(e.format)}}function or(t){return er.get(t)}function sr(){return Array.from(er.values(),t=>Object.assign({},t,rr.get(t.format)))}function ir(t){return rr.get(t)}function cr(t,e){const{CompressionStream:r,DecompressionStream:n}=e;if(typeof r!=I&&typeof n!=I)throw new Error(Qe);rr.set(t,{CompressionStream:r,DecompressionStream:n})}const lr="Invalid uncompressed size",dr="Invalid compressed data",ur="Invalid CRC32",fr="deflate-raw",pr="deflate64-raw",mr="gzip",wr=[31,139,8];class hr extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:n}){super({});const{compressed:a,encrypted:o,useCompressionStream:s,zipCrypto:i,computeCrc32:c,level:l,deflate64:d,format:u,compressionMethod:f,inputSize:p}=t,m=this;let w,h,y,b=super.readable;const g=u&&ir(u),x=c&&a&&!d&&!g&&(!o||i)&&Boolean(s&&n);if(o&&!i||!c||x||(w=new $t,b=kr(b,w)),a)if(g)b=Ar(b,Sr(g.CompressionStream,u,{level:l,chunkSize:e,compressionMethod:f,uncompressedSize:p}));else if(x)y=new yr,b=Ar(b,new n(mr)),b=kr(b,y);else try{b=zr(b,s,{level:l,chunkSize:e},n,r)}catch(t){let e;try{e=new n(mr)}catch{throw t}b=Ar(b,e),b=kr(b,new yr)}o&&(i?b=kr(b,new Be(t)):(h=new Oe(t),b=kr(b,h))),vr(m,b,()=>{o&&!i||!c||(m.crc32=x?y.crc32:new DataView(w.value.buffer).getUint32(0))})}}class yr 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=Pt(r,t));const o=a-8,s=Math.min(o,r.length);n.enqueue(Pt(r.subarray(0,s),t.subarray(0,o-s))),r=Pt(r.subarray(s),t.subarray(o-s))},flush(){const e=Wt(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class br extends TransformStream{constructor(t,{chunkSize:e,DecompressionStreamFallback:r,DecompressionStream:n}){super({});const{zipCrypto:a,encrypted:o,checkCrc32:s,crc32:i,compressed:c,useCompressionStream:l,deflate64:d,format:u,compressionMethod:f,rawBitFlag:p,outputSize:m}=t;let w,h,y=super.readable;if(o&&(a?y=kr(y,new _e(t)):(h=new Fe(t),y=kr(y,h))),c){const t=u&&ir(u);if(t)y=Ar(y,Sr(t.DecompressionStream,u,{chunkSize:e,compressionMethod:f,rawBitFlag:p,uncompressedSize:m}));else try{y=zr(y,l,{chunkSize:e,deflate64:d},n,r)}catch(t){if(d||m===F)throw t;let e;try{e=new n(mr)}catch{throw t}y=function(t,e,r){const n=new Qt;let a,o,s,i=0,c=!1;const l=new Promise((t,e)=>{o=t,s=e});l.catch(()=>{}),r||o();const d=new TransformStream({start(t){const e=new Uint8Array(10);e.set(wr),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=Wt(e);a.setUint32(0,n.get(),!0),a.setUint32(4,r,!0),t.enqueue(e)},cancel(t){s(t)}}),u=new TransformStream({transform(t,e){n.append(t),i+=t.length,i>=r?o():c&&f(),e.enqueue(t)},cancel(t){s(t)}});return t=kr(t,d),kr(t=Ar(t,e),u);function f(){p(),a=setTimeout(()=>s(new Error(lr)),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(dr);throw e.cause=t,e}const{value:n,done:a}=r;a?t.close():t.enqueue(n)},cancel:t=>e.cancel(t)})}(y)}s&&(w=new $t,y=kr(y,w)),vr(this,y,()=>{if(s){const t=new DataView(w.value.buffer);if(i!=t.getUint32(0,!1))throw new Error(ur)}})}}const gr=new Map;function xr(t,e){if(!t)return!1;let r=gr.get(t);r||(r=new Map,gr.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 Er(t){return xr(t,fr)}function vr(t,e,r){e=kr(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function Sr(t,e,r){if(!t)throw new Error($e);return new t(e,r)}function zr(t,e,r,n,a){const o=e&&n?n:a||n,s=r.deflate64?pr:fr;let i;try{i=new o(s,r)}catch(t){if(!e||!a||o==a)throw t;i=new a(s,r)}return Ar(t,i)}function kr(t,e){return Ge(t).pipeThrough(e)}function Ar(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 Rr="data",Dr="deflate",Fr="inflate";class Or extends TransformStream{constructor(t,e){super({});const r=this,{codecType:n}=t;let a;n.startsWith(Dr)?a=hr:n.startsWith(Fr)&&(a=br),r.outputSize=0;let o=0;const s=new a(t,e),i=super.readable,c=new TransformStream({transform(t,e){t&&t.length&&(o+=t.length,e.enqueue(t))},flush(){Object.assign(r,{inputSize:o})}}),l=new TransformStream({transform(e,n){if(e&&e.length&&(n.enqueue(e),r.outputSize+=e.length,t.outputSize!==F&&r.outputSize>t.outputSize))throw new Error(lr)},flush(){const{crc32:t}=s;Object.assign(r,{crc32:t,inputSize:o})}});Object.defineProperty(r,"readable",{get:()=>i.pipeThrough(c).pipeThrough(s).pipeThrough(l)})}}class Tr extends TransformStream{constructor(t){const e=[];let r=0,n=0;function a(){const n=new Uint8Array(t);let a=0;for(;a<t;){const r=e[0],o=t-a;r.length<=o?(n.set(r,a),a+=r.length,e.shift()):(n.set(r.subarray(0,o),a),e[0]=r.subarray(o),a+=o)}return r-=t,n}(!Number.isFinite(t)||t<1)&&(t=65536),super({transform(o,s){for(e.push(o),r+=o.length;r>t;)n+=t,s.enqueue(a())},flush(t){r&&(n+=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)))}}),Object.defineProperty(this,"outputSize",{get:()=>n})}}const Ir="Worker startup timeout";let Ur,Cr,jr,Mr=()=>{};async function Nr(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;if(r&&!r.ut)return!0;if(Er(e)||xr(e,mr))return!0;if(r)try{return await Mr(t),!0}catch{return!1}return!1}function _r(t){t.createWorker?Cr=!0:Ur=!1}class Br{constructor(t,{readable:e,writable:r},{options:n,config:a,ft:o,useWebWorkers:s,transferStreams:i,workerURI:c,createWorker:l},d){const{signal:u}=o;return Cr&&(l=F),Object.assign(t,{wt:!0,ht:(t.ht||0)+1,readable:e.pipeThrough(new Tr(It(a))).pipeThrough(new Pr(o),{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)}}}),Ur===F&&(Ur=typeof Worker!=T),(s&&jr&&(Ur&&c||l)?jr:Wr)(t,a)}}class Pr extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:n}){let a=0;super({async start(){t&&await Lr(t,r)},async transform(t,n){a+=t.length,e&&await Lr(e,a,r),n.enqueue(t)},async flush(){n&&await Lr(n,a)}})}}async function Lr(t,...e){try{await t(...e)}catch{}}function Wr(t,e){return{run:()=>qr(t,e)}}async function qr({options:t,readable:e,writable:r,xt:n},a){let o,s;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(Dr),r=e?a.CompressionStreamFallback:a.DecompressionStreamFallback,n=e?a.CompressionStream:a.DecompressionStream;if(t.useCompressionStream){if(r&&r.ut&&!Er(n))try{await Mr(a)}catch{}}else try{await Mr(a)}catch{r&&!r.ut||(t.useCompressionStream=!0)}}o=new Or(t,a),s=new Tr(It(a)),await e.pipeThrough(o).pipeThrough(s).pipeTo(r,{preventClose:!0,preventAbort:!0});const{crc32:n,inputSize:i,outputSize:c}=o;return{crc32:n,inputSize:i,outputSize:c}}catch(t){throw o&&(t.outputSize=s?s.outputSize:0),t}finally{n()}}const Zr={type:"module"},Vr="error";let Hr,Gr,Kr,Yr=!0;try{Yr=typeof structuredClone==I&&structuredClone(new DOMException("","AbortError")).code!==F}catch{}var Xr;function Jr(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function Qr(t){const{yt:e}=t;if(e)try{e.terminate()}catch{}t.gt=null}function $r(t,e,r,n,a=!0){const{createWorker:o}=r;let s,i,c;if(o)s=o();else if(Gr===F||Hr!==t){const o=typeof t==I;i=o?t(a):t;const l=i.startsWith("data:"),d=i.startsWith("blob:");if(l||d){n===F&&(n=!1),n&&(c=Zr);try{s=new Worker(i,c)}catch(a){if(d)try{URL.revokeObjectURL(i)}catch{}if(o&&d)return $r(t,e,r,n,!1);if(n)throw a;return $r(t,e,r,!0,!1)}}else{n===F&&(n=!0),n&&(c=Zr);try{i=new URL(i,e)}catch{}try{s=new Worker(i,c)}catch(o){if(n)return $r(t,e,r,!1,a);throw o}}Hr=t,Gr=i,Kr=c}else s=new Worker(Gr,Kr);return s.addEventListener("message",t=>{r.vt=!0,tn(r),async function({data:t},e){const{type:r,value:n,messageId:a,result:o,error:s}=t,{reader:i,writer:c,St:l,zt:d,xt:u,ht:f}=e,p=()=>e.ht!=f;try{if(s){const{message:t,stack:e,code:r,name:n,outputSize:a,cause:o,codecImportFailed:i}=s,c=new Error(t);Object.assign(c,{stack:e,code:r,name:n,outputSize:a}),o&&(c.cause=Object.assign(new Error(o.message),{name:o.name})),i&&(c.codecImportFailed=!0),m(c)}else{if("pull"==r){const{value:t,done:r}=await i.read();p()||rn({type:Rr,value:t,done:r,messageId:a},e)}if(r==Rr){const t=new Uint8Array(n);await c.ready,await c.write(t),e.outputSize+=t.length,p()||rn({type:"ack",messageId:a},e)}"close"==r&&m(null,o)}}catch(s){p()||(Qr(e),m(s))}function m(t,e){p()||(t?d(t):l(e),c&&c.releaseLock(),t&&t.codecImportFailed||u())}}(t,r)}),s.addEventListener(Vr,t=>en(t,r)),s.addEventListener("messageerror",t=>en(t,r)),s}function tn(t){const{kt:e}=t;e&&(clearTimeout(e),t.kt=null)}function en(t,e){t.preventDefault&&t.preventDefault(),tn(e);const{vt:r,zt:n,writer:a,xt:o}=e;Qr(e),r||(e.yt=null);let s=t.error||new Error(t.message||Vr);r||(s=Object.assign(new Error(s.message||Vr),{At:!0}),e.Rt=s),n&&(n(s),a&&a.releaseLock(),r&&o())}function rn(t,{yt:e,writer:r,transferStreams:n,vt:a}){try{const{value:r,readable:o,writable:s}=t,i=[];if(r&&(t.value=Lt(r),i.push(t.value.buffer)),n&&Yr&&a?(o&&i.push(o),s&&i.push(s)):t.readable=t.writable=null,i.length)try{return e.postMessage(t,i),!0}catch{Yr=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}Xr=function(t,e){const{baseURI:r,chunkSize:n,workerStartupTimeout:a}=e;let{wasmURI:o}=e;if(!t.gt){let s;typeof o==I&&(o=o());try{s=$r(t.workerURI,r,t)}catch{return _r(t),Wr(t,e)}Object.assign(t,{yt:s,vt:!1,Et:!1,Rt:null,gt:{run:async()=>{try{return await async function(t,e){if(!t.yt){const{Rt:e}=t;t.Rt=null;const r=e||new Error(Ir);throw r.At=!0,r}let r,n;const a=new Promise((e,a)=>{r=e,n=e=>{e&&e.outputSize===F&&(e.outputSize=t.outputSize),a(e)}});Object.assign(t,{reader:null,writer:null,outputSize:0,St:r,zt:n,result:a});const{readable:o,options:s}=t,{writable:i,closed:c,Dt:l}=function(t){const e=new AbortController,{writable:r,readable:n}=new TransformStream,a=n.pipeTo(t,{preventClose:!0,preventAbort:!0,signal:e.signal});return a.catch(()=>{}),{writable:r,closed:a,Dt:()=>e.abort()}}(t.writable);let d;try{d=rn({type:"start",options:s,config:e,readable:o,writable:i},t)}catch(e){l();try{await c}catch{}throw t.xt(),e}d||Object.assign(t,{reader:o.getReader(),writer:i.getWriter()});const{workerStartupTimeout: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(Qr(t),t.yt=null,e){const t=new Error(Ir);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:o,baseURI:r,workerStartupTimeout:a})}catch(r){if(r&&r.At)return _r(t),Jr(t),qr(t,e);if(r&&r.codecImportFailed){if(t.reader)return Jr(t),qr(t,e);t.xt()}throw r}}}})}return t.gt},jr=Xr;let nn=[];const an=[];let on,sn,cn=0;async function ln(t,e){const{options:r,config:n}=e,{transferStreams:a,useWebWorkers:o,useCompressionStream:s,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){!rr.has(t)&&e&&cr(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&&(o||o===F&&n.useWebWorkers),e.workerURI=e.useWebWorkers&&p?p:F,e.createWorker=e.useWebWorkers&&m?m:F,r.useCompressionStream=s||s===F&&n.useCompressionStream,(await async function(){const r=nn.find(t=>!t.wt);if(r)return mn(r),new Br(r,t,e,b);if(nn.length<w){const r={Ft:cn};return cn++,nn.push(r),new Br(r,t,e,b)}return new Promise(r=>{an.push({resolve:r,stream:t,Ot:e}),sn=n.workerStarvationTimeout,dn()})}()).run();function b(t){if(un(),an.length){const[{resolve:e,stream:r,Ot:n}]=an.splice(0,1);e(new Br(t,r,n,b)),dn()}else t.yt?(mn(t),function(t,e){const{config:r}=e,{terminateWorkerTimeout:n}=r;Number.isFinite(n)&&n>=0&&(t.Et?t.Et=!1:t.Tt=setTimeout(async()=>{nn=nn.filter(e=>e!=t);try{await t.terminate()}catch{}},n))}(t,e)):nn=nn.filter(e=>e!=t)}}function dn(){!on&&an.length&&Number.isFinite(sn)&&sn>=0&&(on=setTimeout(fn,sn))}function un(){on&&(clearTimeout(on),on=null)}function fn(){if(on=null,an.length){const[{resolve:t,stream:e,Ot:r}]=an.splice(0,1),n=Object.assign({},r,{useWebWorkers:!1,workerURI:F,createWorker:F});t(new Br({},e,n,pn)),dn()}}function pn(){un(),dn()}function mn(t){const{Tt:e}=t;e&&(clearTimeout(e),t.Tt=null)}const wn="\0\u263a\u263b\u2665\u2666\u2663\u2660\u2022\u25d8\u25cb\u25d9\u2642\u2640\u266a\u266b\u263c\u25ba\u25c4\u2195\u203c\xb6\xa7\u25ac\u21a8\u2191\u2193\u2192\u2190\u221f\u2194\u25b2\u25bc !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xa2\xa3\xa5\u20a7\u0192\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\u2310\xac\xbd\xbc\xa1\xab\xbb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0".split("");function hn(t,e){return yn(t,e,!0)}function yn(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?function(t){let e="";for(let r=0;r<t.length;r++)e+=wn[t[r]];return e}(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const bn="HTTP error ",gn="HTTP Range not supported",xn="HTTP resource changed",En="Writer iterator completed too soon",vn="Writer not initialized",Sn="Invalid writer (size must be writable)",zn="Content-Range",kn="Range",An="GET",Rn="bytes",Dn=16777216,Fn="writable",On=Symbol();class Tn{constructor(){this.size=0}init(){this.initialized=!0}}class In extends Tn{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=It(Tt())}={}){const n=this;let a=0;return r=Ut(r),new ReadableStream({async pull(o){const s=e===F?r:Math.min(r,e-a),i=await ya(n,t+a,s);i.length&&(o.enqueue(i),a+=i.length),(e!==F&&a>=e||!i.length&&s)&&o.close()}})}}class Un extends Tn{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw new Error(vn);return t.writeUint8Array(Lt(e))}});Object.defineProperty(t,Fn,{get:()=>e})}writeUint8Array(){}}class Cn extends In{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{It:t,Ut:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{Ut:r,It:n}=this,a=new Uint8Array(e),o=4*Math.floor(t/3),s=atob(n.substring(o+r,4*Math.ceil((t+e)/3)+r)),i=t-3*Math.floor(o/4);let c=0;for(let t=i;t<i+e&&t<s.length;t++)a[t-i]=s.charCodeAt(t),c++;return c<a.length?a.subarray(0,c):a}}class jn extends Un{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",Ct:""})}writeUint8Array(t){const e=this;let r,n=e.Ct;const a=e.Ct.length;for(e.Ct="",r=0;r<3*Math.floor((a+t.length)/3)-a;r++)n+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.Ct+=String.fromCharCode(t[r]);n.length>2?e.data+=btoa(n):e.Ct=n+e.Ct}getData(){return this.data+btoa(this.Ct)}}let Mn,Nn;class _n extends In{constructor(t){super(),Object.assign(this,{jt:t,size:t.size}),Nn||(Nn=(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();Mn=1==e}catch{Mn=!1}})())}createReadable(t){const{jt:e,size:r}=this,{offset:n=0,size:a=r-n}=t||{};if(typeof e.stream==I){if(!n&&a>=r)return Ge(e.stream());if(Mn)return Ge(e.slice(n,n+a).stream())}return super.createReadable(t)}async readUint8Array(t,e){const r=this,n=t+e,a=!t&&n>=r.size?r.jt:r.jt.slice(t,n);let o=await a.arrayBuffer();return o.byteLength>e&&(o=o.slice(t,n)),new Uint8Array(o)}}class Bn extends Tn{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,Fn,{get:()=>r.writable}),e.contentType=t,e.Mt=Ke(r.readable,t),e.Mt.catch(()=>{})}getData(){return this.Mt}}class Pn extends _n{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function Ln(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 Wn extends Bn{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 yn(t,e,!1)}(new Uint8Array(await r.arrayBuffer()),t)}}class qn extends In{constructor(t,e){super(),Vn(this,t,e)}async init(){await Hn(this,aa,ta),super.init()}createReadable(t){const e=this,{useRangeHeader:r,forceRangeRequests:n,size:a}=e;if((r||n)&&a!==F){const{offset:r=0,size:n=a-r}=t||{};if(n>0&&r<a)return function(t,e,r){let n,a=e,o=0,s=r;return new ReadableStream({start:()=>i(),async pull(t){n||await i();const{value:e,done:r}=await n.read();if(r)throw new Error(gn);const a=e.length>o?e.subarray(0,o):e;o-=a.length,s-=a.length,a.length&&t.enqueue(a),o||(await async function(){const t=n;n=F,await t.cancel()}(),s||t.close())},cancel:t=>n&&n.cancel(t)});async function i(){const e=Math.min(t.maximumRangeSize,s),r=await aa(An,t,Qn(t,a,e));if(206!=r.status)throw new Error(gn);const i=r.headers.get(zn);if(i){const t=Number(i.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=a)throw new Error(gn)}Jn(t,r),Xn(t,r),a+=e,o=e,n=r.body.getReader()}}(e,r,Math.min(n,a-r))}return super.createReadable(t)}readUint8Array(t,e){return Gn(this,t,e,aa,ta)}}class Zn extends In{constructor(t,e){super(),Vn(this,t,e)}async init(){await Hn(this,oa,ea),super.init()}readUint8Array(t,e){return Gn(this,t,e,oa,ea)}}function Vn(t,e,r){const{preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:o,combineSizeEocd:s,checkResourceChanges:i=!0,maximumRangeSize:c=Dn,fetch:l}=r;delete(r=Object.assign({},r)).preventHeadRequest,delete r.useRangeHeader,delete r.forceRangeRequests,delete r.combineSizeEocd,delete r.checkResourceChanges,delete r.maximumRangeSize,delete r.useXHR,delete r.fetch,Object.assign(t,{url:e,options:r,preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:o,combineSizeEocd:s,checkResourceChanges:i,maximumRangeSize:c,fetch:l})}async function Hn(t,e,r){const{url:n,preventHeadRequest:a,useRangeHeader:o,forceRangeRequests:s,combineSizeEocd:i}=t;if(function(t){const{baseURI:e}=Tt(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r}(n)&&(o||s)&&(typeof a==T||a)){const n=await e(An,t,Qn(t,i?-22:void 0)),a=n.headers.get("Accept-Ranges");if(!(s||a&&a.toLowerCase()==Rn))throw new Error(gn);{if(i){const e=new Uint8Array(await n.arrayBuffer());206==n.status&&e.length==f&&(t._t=e)}Xn(t,n);const a=Kn(n);a===F?await na(t,e,r):t.size=a}}else await na(t,e,r)}async function Gn(t,e,r,n,a){const{useRangeHeader:o,forceRangeRequests:s,_t:i,size:c,options:l}=t;if(o||s){if(i&&e==c-f&&r==f)return i;if(e>=c||0===r)return M;{e+r>c&&(r=c-e);const a=await n(An,t,Qn(t,e,r));if(206!=a.status)throw new Error(gn);const o=a.headers.get(zn);if(o){const t=Number(o.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=e)throw new Error(gn)}Jn(t,a),Xn(t,a);const s=new Uint8Array(await a.arrayBuffer());if(s.length!=r)throw new Error(gn);return s}}{const{data:n}=t;return n||await a(t,l),t.data.subarray(e,e+r)}}function Kn(t){const e=t.headers.get(zn);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function Yn({headers:t}){return{Bt:t.get("Etag")||F,lastModified:t.get("Last-Modified")||F}}function Xn(t,e){const{checkResourceChanges:r,Pt:n}=t;r&&!n&&206==e.status&&(t.Pt=Yn(e))}function Jn(t,e){const{checkResourceChanges:r,Pt:n,size:a}=t;if(r){const t=Kn(e);if(t!==F&&a!==F&&t!=a)throw new Error(xn);if(n){const t=Yn(e);if(Object.entries(n).some(([e,r])=>r!==F&&t[e]!==F&&r!=t[e]))throw new Error(xn)}}}function Qn(t,e=0,r=1){return Object.assign({},$n(t),{[kn]:Rn+"="+(e<0?e:e+"-"+(e+r-1))})}function $n({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function ta(t){await ra(t,aa)}async function ea(t){await ra(t,oa)}async function ra(t,e){const r=await e(An,t,$n(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function na(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const n=await e("HEAD",t,$n(t)),a=n.headers.get("Content-Length");a&&!n.headers.get("Content-Encoding")?t.size=Number(a):await r(t,t.options)}}async function aa(t,{fetch:e=fetch,options:r,url:n},a){const o=await e(n,Object.assign({},r,{method:t,headers:a}));if(o.status>=200&&o.status<=299)return o;throw 416==o.status?new Error(gn):new Error(bn+(o.statusText||o.status))}function oa(t,{url:e},r){return new Promise((n,a)=>{const o=new XMLHttpRequest;if(o.addEventListener("load",()=>{if(o.status>=200&&o.status<=299){const t=[];o.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(e=>{const r=e.trim().split(/\s*:\s*/);r[0]=r[0].trim().replace(/^[a-z]|-[a-z]/g,t=>t.toUpperCase()),t.push(r)}),n({status:o.status,arrayBuffer:()=>o.response,headers:new Map(t)})}else a(416==o.status?new Error(gn):new Error(bn+(o.statusText||o.status)))},!1),o.addEventListener("error",t=>a(t.detail?t.detail.error:new Error("Network error")),!1),o.open(t,e),r)for(const t of Object.entries(r))o.setRequestHeader(t[0],t[1]);o.responseType="arraybuffer",o.send()})}class sa extends In{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new Zn(t,e):new qn(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 ia extends sa{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class ca extends In{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{Lt:t,size:t.length})}readUint8Array(t,e){return this.Lt.slice(t,t+e)}}class la extends Un{constructor(t){super(),this.Wt=t||262144}init(t=0){Object.assign(this,{offset:0,Lt:new Uint8Array(t>0?t:this.Wt)}),super.init()}writeUint8Array(t){const e=this,r=e.offset+t.length;if(r>e.Lt.length){let t=e.Lt.length?2*e.Lt.length:e.Wt;for(;t<r;)t*=2;const n=e.Lt;e.Lt=new Uint8Array(t),e.Lt.set(n)}e.Lt.set(t,e.offset),e.offset+=t.length}getData(){return this.offset===this.Lt.length?this.Lt:this.Lt.slice(0,this.offset)}}class da extends In{constructor(t){super(),this.qt=t}async init(){const t=this;t.Zt=0;const e=t.qt=await Promise.all(t.qt.map(ha));t.Vt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}Ht(t){const{Vt:e,size:r}=this,n=e[t];return n===F?r:n}async readUint8Array(t,e){const r=this,{qt:n}=this;let a,o=0,s=t;for(;n[o]&&s>=n[o].size;)s-=n[o].size,o++;const i=n[o];if(i){const n=i.size;if(s+e<=n)a=await ya(i,s,e);else{const o=n-s;a=Pt(await ya(i,s,o),await r.readUint8Array(t+o,e-o))}}else a=M;return r.Zt=Math.max(o,r.Zt),a}}class ua extends Tn{constructor(t,e=4294967295){super();const r=this;let n,a,o;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:e,availableSize:e});const s=new WritableStream({async write(e){if(e===On)return void(o&&await c());const{availableSize:s}=r;if(o)e.length>=s?(await i(e.subarray(0,s)),await c(),e.length>s&&await this.write(e.subarray(s))):await i(e);else{const{value:s,done:i}=await t.next();if(i&&!s)throw new Error(En);n=s,n.size=0,n.maxSize&&(r.maxSize=n.maxSize),r.availableSize=r.maxSize,await wa(n),a=s.writable,o=a.getWriter(),await this.write(e)}},async close(){o&&(await o.ready,await l())},async abort(t){o&&await o.abort(t)}});async function i(t){const e=t.length;e&&(await o.ready,await o.write(t),n.size+=e,r.availableSize-=e)}async function c(){await l(),r.diskOffset+=n.size,r.diskNumber++,o=null,r.availableSize=r.maxSize}async function l(){await o.close()}Object.defineProperty(r,Fn,{get:()=>s})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(On)}finally{t.releaseLock()}}}class fa{constructor(t){return Array.isArray(t)&&(t=new da(t)),(t instanceof ReadableStream||typeof t.getReader==I)&&(t={readable:Ge(t)}),t}}class pa{constructor(t){t.writable===F&&typeof t.next==I&&(t=new ua(t)),(t instanceof WritableStream||typeof t.getWriter==I)&&(t={writable:Ye(t)});try{t.size=t.size===F?0:t.size}catch{throw new Error(Sn)}return t}}function ma(t){return Boolean(t&&t.getData)}async function wa(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function ha(t){return t=new fa(t),await wa(t),t.size!==F&&t.readUint8Array||(t=new _n(await Ke(t.readable)),await wa(t)),t}function ya(t,e,r){return t.readUint8Array(e,r)}function ba(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?In.prototype.createReadable.call(t,e):t.readable}function ga(t,e,r){if(!t.some(t=>t.reason==e)){const n={reason:e};r!==F&&(n.filename=r),t.push(n)}}const xa="filename",Ea="rawFilename",va="comment",Sa="rawComment",za="uncompressedSize",ka="compressedSize",Aa="offset",Ra="diskNumberStart",Da="lastModDate",Fa="rawLastModDate",Oa="lastAccessDate",Ta="rawLastAccessDate",Ia="creationDate",Ua="rawCreationDate",Ca="internalFileAttributes",ja="externalFileAttributes",Ma="msdosAttributesRaw",Na="msdosAttributes",_a="msDosCompatible",Ba="zip64",Pa="encrypted",La="version",Wa="versionMadeBy",qa="zipCrypto",Za="directory",Va="executable",Ha="compressionMethod",Ga="signature",Ka="extraField",Ya="unixMode",Xa="setuid",Ja="setgid",Qa="sticky",$a=[xa,Ea,za,ka,Da,Fa,va,Sa,Oa,Ta,Ia,Ua,Aa,Ra,Ca,ja,Ma,Na,_a,Ba,Pa,La,Wa,qa,Za,Va,"symlink",Ha,Ga,"crc32",Ka,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",Ya,"unixExternalUpper",Xa,Ja,Qa,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class to{constructor(t){$a.forEach(e=>this[e]=t[e])}}const eo=new Set([1,w,10,h,28789,25461,y,b,g,22613,13]);function ro(t,e,r){return t?e?12:16+4*r:0}const no="File format is not recognized",ao="End of central directory not found",oo="End of Zip64 central directory locator not found",so="Central directory header not found",io="Local file header not found",co="Zip64 extra field not found",lo="File contains encrypted entry",uo="Encryption method not supported",fo="Split zip file",po="Overlapping entry found",mo="Entry data out of bounds",wo="Ambiguous archive",ho="Encrypted central directory is not supported",yo="Unsafe filename",bo="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",go="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",xo="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",Eo="64-bit value exceeds Number.MAX_SAFE_INTEGER",vo="unsorted central directory",So="unknown version needed to extract",zo="compressed patched data",ko="malformed extra field",Ao="unknown zip64 extensible data",Ro="wrapped entries count",Do="appended data",Fo="prepended data",Oo="prepended central directory",To="trailing central directory data",Io="duplicate filename",Uo="mismatched zip64 end of central directory record",Co="multiple end of central directory records",jo="mismatched local file header (filename)",Mo="mismatched local file header (general purpose bit flag)",No="mismatched local file header (compression method)",_o="mismatched local file header (crc32 or sizes)",Bo=/^[a-zA-Z]:/,Po="utf-8",Lo="cp437",Wo=[[za,t],[ka,t],[Aa,t],[Ra,e]],qo={[e]:{Gt:ks,bytes:4},[t]:{Gt:As,bytes:8}},Zo=BigInt(Number.MAX_SAFE_INTEGER);class Vo{constructor(t,e={}){Object.assign(this,{reader:new fa(t),options:e,Kt:new Map})}async*getEntriesGenerator(n={}){const o=this;let{reader:s}=o;if(await wa(s),s.size!==F&&s.readUint8Array||(s=new _n(await Ke(s.readable)),await wa(s)),s.size<f)throw new Error(no);const c=o.warnings=[],w=cs(n,o.options),h=w==rt,y=w!=at,b=us(gs(o,n,J),w),g=function(t,e){if(t===F)return e;if(!is(t))throw new Error(go);return t}(gs(o,n,"filenameValidation"),w),x=gs(o,n,"normalizeFilename"),{Yt:A,Xt:R}=await fs(s,y,b);if(!A)throw await async function(t){return await ss(t)==a}(s)?new Error(fo):new Error(ao);y&&R>1&&bs(Co);const D=Wt(A);let O=ks(D,12),T=ks(D,16);const I=A.offset,U=zs(D,20),C=I+f+U,j=s.size-C;j>b&&bs(Do),j>0&&ga(c,Do);let N=zs(D,4);const _=s.Zt||0;let B,P,L,W,q,Z=zs(D,6),V=zs(D,10),H=0,G=m;const K=T==t||O==t||V==e||Z==e;if(T!=t&&Z!=e&&(T+=os(s,Z)),K){const r=A.offset>=p?await ya(s,A.offset-p,p):M,n=Wt(r);if(r.length==p&&ks(n,0)==d){T=os(s,ks(n,4))+As(n,8);let r=await ya(s,T,m),a=Wt(r);const o=A.offset-p-m;if((r.length<m||ks(a,0)!=l)&&T!=o&&o>=0){const t=T;T=o,T>t&&(H=T-t),r=await ya(s,T,m),a=Wt(r)}if(r.length<m||ks(a,0)!=l)throw new Error(oo);if(L=!0,W=As(a,4)>44,W){const t=Math.min(As(a,4)-44,s.size-T-m);t>0&&(G+=t,q=function(t){const e={rawExtensibleData:t};if(t.length>=28){const r=Wt(t),n=zs(r,26);Object.assign(e,{compressionMethod:zs(r,0),compressedSize:As(r,2),uncompressedSize:As(r,10),encryptionAlgorithm:zs(r,18),bitLength:zs(r,20),flags:zs(r,22),hashAlgorithm:zs(r,24),hashData:t.subarray(28,28+n)})}return e}(await ya(s,T+m,t)))}N==e?N=ks(a,16):N!=ks(a,16)&&ys(h,c,Uo),Z==e?Z=ks(a,20):Z!=ks(a,20)&&ys(h,c,Uo),V==e?V=As(a,32):V!=As(a,32)&&ys(h,c,Uo),O==t?O=As(a,40):O!=As(a,40)&&ys(h,c,Uo),T=os(s,Z)+As(a,48)+H}}let Y=O;const X=A.offset-(L?G+p:0);if(T>=s.size&&(H=s.size-T-O-f,T=s.size-O-f),_!=N)throw new Error(fo);if(T<0)throw new Error(no);let Q=0,$=await ya(s,T,O),nt=Wt($);if(O){if($.length<4)throw new Error(no);const t=X-O;if(T!=t&&Z==N){const e=ks(nt,Q)==i||Boolean(q&&q.compressedSize)||Yo(nt);let r=!e;if(!r&&t>=0&&t+4<=s.size&&(r=ks(Wt(await ya(s,t,4)),0)==i),r){const r=T;T=t,T>r&&(H+=T-r,B=e),$=await ya(s,T,O),nt=Wt($)}}}const ot=X-T;if(O!=ot&&ot>=0&&Z==N&&(O=ot,$=await ya(s,T,O),nt=Wt($)),T<0||T>=s.size)throw new Error(no);o.directoryOffset=T,o.directoryLength=Y;const st=xs(o,n,"decryptCentralDirectory");let it,ct;if(st&&V&&$.length>=4&&ks(nt,0)!=i&&(W||Yo(nt))){const t=function(t,e,r){const n=t&&t.compressedSize?t.compressedSize:e;return n>0&&n<=r?n:r}(q,Y,$.length);ct=$.subarray(t),$=await st($.subarray(0,t),q),nt=Wt($),Y=$.length,it=!0}q&&!it&&($.length<4||ks(nt,0)==i)&&ga(c,Ao),P=T;const lt=gs(o,n,"filenameEncoding"),dt=gs(o,n,"commentEncoding"),ut=new Set;let ft,pt=-1;const mt=!h&&!L;!V&&mt&&(V=Xo(nt,$,Q),V&&ga(c,Ro));for(let t=0;t<V;t++){const a=new Ko(s,o.options);if(Q+u>$.length||ks(nt,Q)!=i){if(0==t&&!it&&(W||Yo(nt)))throw new Error(ho);throw new Error(so)}Qo(a,nt,Q+6);const l=Boolean(a.bitFlag.languageEncodingFlag),d=Q+u,f=d+a.filenameLength,p=f+a.extraFieldLength,m=zs(nt,Q+4),w=!(m>>8),h=m>>8==3,y=$.subarray(d,f),b=zs(nt,Q+32),A=p+b,R=$.subarray(p,A),D=l,O=l,T=ks(nt,Q+38),I=T&r,U={readOnly:Boolean(1&I),hidden:Boolean(2&I),system:Boolean(4&I),directory:Boolean(16&I),archive:Boolean(32&I)},C=ks(nt,Q+42),j=xs(o,n,"decodeText")||hn,M=D?Po:lt||Lo,N=O?Po:dt||Lo;let _=j(y,M,tt);if(_===F&&(_=hn(y,M)),x){const t=x(_);t!==F&&(_=t)}if(ds(_,g)){const t=new Error(yo);throw t.filename=_,t}let B=j(R,N,et);B===F&&(B=hn(R,N)),Object.assign(a,{index:t,Jt:it,versionMadeBy:m,msDosCompatible:w,zip64:!1,compressedSize:0,uncompressedSize:0,Qt:b,offset:C,diskNumberStart:zs(nt,Q+34),internalFileAttributes:zs(nt,Q+36),externalFileAttributes:T,msdosAttributesRaw:I,msdosAttributes:U,rawFilename:y,filenameUTF8:D,commentUTF8:O,rawExtraField:$.subarray(f,p),rawComment:R,filename:_,comment:B}),$o(a,a,nt,Q+6)&&ga(c,ko,_),a.offset+=H;const L=os(s,a.diskNumberStart)+a.offset;P=Math.min(L,P),L<pt&&ga(c,vo,_),pt=L,(a.version&r)>63&&ga(c,So,_),32&~a.rawBitFlag||ga(c,zo,_),ut.has(a.filename)&&(ft=!0),ut.add(a.filename);const q=a.externalFileAttributes>>16&e;a.unixMode===F&&16877&q&&(a.unixMode=q);const Z=Boolean(a.unixMode&S),G=Boolean(a.unixMode&z),K=Boolean(512&a.unixMode),Y=40960==((a.unixMode===F?q:a.unixMode)&E),X=!Y&&(a.unixMode!==F?!!(73&a.unixMode):h&&!!(73&q)),J=a.unixMode!==F&&(a.unixMode&E)==v,rt=(q&E)==v;Object.assign(a,{setuid:Z,setgid:G,sticky:K,symlink:Y,unixExternalUpper:q,executable:X,directory:J||rt||w&&U.directory||a.filename.endsWith(k),zipCrypto:a.encrypted&&!a.extraFieldAES});const at=new to(a);if(at.getData=(t,e)=>a.getData(t,at,o.Kt,e),at.arrayBuffer=async t=>{const e=new TransformStream,r=Ke(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await a.getData(e,at,o.Kt,Object.assign({},t,{preventClose:!1})),r},Q=A,t==V-1&&mt){const t=Xo(nt,$,Q);t&&(V+=t,ga(c,Ro))}const{onprogress:ot}=n;if(ot)try{await ot(t+1,V,new to(a))}catch{}yield at}let wt=Q,ht=Jo($.subarray(Q))||(it?Jo(ct):F);if(!ht&&!it){const t=T+Q,e=Math.min(X-t,65541);e>=6&&(ht=Jo(await ya(s,t,e)))}ht&&(o.digitalSignature=ht,wt=Q+6+ht.length),(Q!=Y&&wt!=Y||!it&&Q!=O&&wt!=O)&&ys(h,c,To),ft&&ys(h,c,Io);const yt=gs(o,n,"extractPrependedData"),bt=gs(o,n,"extractAppendedData"),gt=(h||yt)&&V&&4==P&&await async function(t){const e=await ss(t);return e==a||808471376==e}(s)?4:0;return h&&(H||V&&P>gt)&&bs(Fo),(H||V&&P>4)&&ga(c,Fo),B&&ga(c,Oo),yt&&(o.prependedData=P>gt?await ya(s,gt,P-gt):M),o.comment=U?await ya(s,I+f,U):M,bt&&(o.appendedData=C<s.size?await ya(s,C,s.size-C):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()}[N](){return this.close()}}class Ho{constructor(t={}){let e;const{readable:r,writable:n}=new TransformStream({start(t){e=t}}),a=new Vo(r,t),o=a.getEntriesGenerator(),s=new Set;this.readable=new ReadableStream({async pull(t){const{done:e,value:r}=await o.next();if(e)return t.close();const n=function(t,e){const{readable:r,writable:n}=new TransformStream;let a;const o={cancel:async t=>{e.delete(o),await(a?a.cancel(t):r.cancel(t))}};return o.readable=new ReadableStream({async pull(s){a||(a=r.getReader(),e.add(o),async function(){try{await t.getData(n,{preventClose:!1})}catch(t){try{await n.abort(t)}catch{}}finally{e.delete(o)}}());const{done:i,value:c}=await a.read();i?s.close():s.enqueue(c)},cancel:t=>o.cancel(t)},{highWaterMark:0}),o}(r,s),a={...r,readable:n.readable};delete a.getData,Object.defineProperties(a,{localDirectory:{get:()=>r.localDirectory,enumerable:!0},warnings:{get:()=>r.warnings,enumerable:!0}}),t.enqueue(a)},async cancel(t){const r=Array.from(s);s.clear(),e.error(t),await Promise.allSettled(r.map(e=>e.cancel(t))),await Promise.allSettled([o.return(),a.close()])}}),this.writable=n}}async function Go(t,e={}){if(t=new fa(t),await wa(t),t.size!==F&&t.readUint8Array||(t=new _n(await Ke(t.readable)),await wa(t)),t.size<f)return!1;const r=cs(e,{}),n=r!=at,a=us(e[J],r),{Yt:o,Xt:s}=await fs(t,n,a);if(!o||r==rt&&s>1)return!1;const i=zs(Wt(o),20),c=o.offset+f+i;return t.size-c<=a}let Ko=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,a,s={}){const i=this,c=Tt(),{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=os(l,f)+u,R=await ya(l,k,A),D=Wt(R);let O=gs(i,s,_),T=gs(i,s,B);const I=wt(gs(i,s,P)),U=Boolean(I),C=!0===I;if(mt(O,T),O=O&&O.length&&O,T=T&&T.length&&T,p&&99!=p.originalCompressionMethod)throw new Error($e);if(R.length<A||ks(D,0)!=n)throw new Error(io);Qo(S,D,4);const{extraFieldLength:j,filenameLength:N}=S,H=S.dataOffset=k+A+N+j,G=gs(i,s,"checkLocalDirectory"),K=cs(s,i.options),Y=function(t,e){return t===F?e!=at:Boolean(t)}(G,K),X=gs(i,s,"checkLocalFilename"),J=function(t,e){return t===F?e==rt:Boolean(t)}(X===F?G:X,K);let Q=M;if(J&&(N||j)){const t=await ya(l,k+A,N+j);Q=t.subarray(0,N),S.rawExtraField=t.subarray(N)}else S.rawExtraField=j?await ya(l,k+A+N,j):M;J&&(S.rawFilename=Q),$o(i,S,D,4,!0)&&ga(z,ko),function(t,e,r,n,a){const{rawFilename:o}=t,s=!a,i=t.Jt&&!(8192&~e.rawBitFlag);!n||i||r.length==o.length&&!r.some((t,e)=>t!=o[e])||ys(s,a,jo),(2057&e.rawBitFlag)!=(2057&t.rawBitFlag)&&ys(s,a,Mo),e.compressionMethod!=t.compressionMethod&&ys(s,a,No),e.bitFlag.dataDescriptor||i||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||ys(s,a,_o)}(i,S,Q,J,Y?F:z);const{lastAccessDate:$,creationDate:tt,uid:et,gid:nt}=S;$&&(e.lastAccessDate=$),tt&&(e.creationDate=tt),et!==F&&e.uid===F&&(e.uid=et),nt!==F&&e.gid===F&&(e.gid=nt);const ot=gs(i,s,"checkPasswordOnly"),st=i.encrypted&&S.encrypted&&(!C||ot),it=st&&!p;if(C||(e.zipCrypto=it),st&&!(64&~S.rawBitFlag))throw new Error(uo);const ct=U?F:or(w);if(0!=w&&8!=w&&9!=w&&!ct&&!U)throw new Error($e);if(st){if(!it&&(p.strength<1||p.strength>3))throw new Error(uo);if(!O&&!T)throw new Error(lo)}if(H+E>l.size)throw new Error(mo);const lt=E,dt=Ge(l.createReadable({offset:H,size:lt})),ut=ft(gs(i,s,L));pt(ut);let ht=gs(i,s,"checkOverlappingEntry");const yt=gs(i,s,"checkOverlappingEntryOnly");yt&&(ht=!0);const{onstart:bt,onprogress:gt,onend:xt}=s,Et=0!=w&&!U,vt=U?E-ro(st,it,p&&p.strength):x,St=9==w;let zt=gs(i,s,q);St&&(zt=!1);const kt=gs(i,s,"checkCrc32"),At=(kt===F?gs(i,s,"checkSignature"):kt)&&!U&&(!st||it||p&&1==p.vendorVersion),Rt={options:{codecType:Fr,password:O,rawPassword:T,zipCrypto:it,encryptionStrength:p&&p.strength,checkCrc32:At,checkAuthenticationCode:gs(i,s,"checkAuthenticationCode"),passwordVerification:it&&(v?g>>>8&r:b>>>24&r),outputSize:vt,crc32:b,compressed:Et,encrypted:st,useWebWorkers:gs(i,s,W),useCompressionStream:zt,transferStreams:gs(i,s,Z),deflate64:St,format:ct?ct.format:F,codecURI:ct?ct.codecURI:F,compressionMethod:w,rawBitFlag:y,checkPasswordOnly:ot},config:c,ft:{signal:ut,size:lt,onstart:bt,onprogress:gt,onend:xt}};let Dt,Ft;ht&&await async function({reader:t,$t:e,index:r,offset:n,crc32:a,compressedSize:s,uncompressedSize:i,dataOffset:c,dataDescriptor:l,extraFieldZip64:d,Kt:u}){let f=0;if(l&&(f=d?20:12),f){const r=await ya(t,c+s,f+4),n=Wt(r);let l=r.length==f+4&&ks(n,0)==o;if(l){const t=as(n,4,d);(e.encrypted&&!e.zipCrypto||t.crc32==a)&&t.compressedSize==s&&t.uncompressedSize==i?f+=4:l=!1}if(r.length>=f){const t=as(n,l?4:0,d);t.signature=l,e.localDirectory.dataDescriptor=t}}const p={start:n,end:c+s+f,$t:e};for(const[t,e]of u)if(t!=r&&p.start<e.end&&e.start<p.end){const t=new Error(po);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:H,dataDescriptor:v||S.bitFlag.dataDescriptor,extraFieldZip64:m||S.extraFieldZip64,Kt:a});try{if(!yt){ot&&(t=new WritableStream),t=new pa(t),await wa(t,function(t,e,r){return Math.min(t,r?1032*e:e)}(vt,E,Et)),({writable:Dt}=t);const{outputSize:e}=await ln({readable:dt,writable:Dt},Rt);if(e!=vt)throw Object.assign(new Error(lr),{outputSize:e});t.size+=e}}catch(e){if(e.outputSize!==F&&(t.size+=e.outputSize),!ot||e.message!=ce)throw Ft=e,e}finally{if((ma(t)||!gs(i,s,V))&&Dt&&!Dt.locked){const t=Dt.getWriter();if(Ft)try{await t.abort(Ft)}catch{}else await t.close()}}return ot||yt?F:t.getData?t.getData():Dt}};function Yo(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;r<e;r++)if(134630224==ks(t,r))return!0;return!1}function Xo(t,e,r){let n=0;for(;r+u<=e.length&&ks(t,r)==i;)r+=u+zs(t,r+28)+zs(t,r+30)+zs(t,r+32),n++;return n%65536?0:n}function Jo(t){if(t.length>=6){const e=Wt(t);if(ks(e,0)==s){const r=zs(e,4);if(6+r<=t.length)return t.subarray(6,6+r)}}}function Qo(t,e,r){const n=t.rawBitFlag=zs(e,r+2),a=!(1&~n),o=ks(e,r+6);Object.assign(t,{encrypted:a,version:zs(e,r),bitFlag:{level:(6&n)>>1,dataDescriptor:!(8&~n),languageEncodingFlag:(n&x)==x},rawLastModDate:o,lastModDate:Es(o),filenameLength:zs(e,r+22),extraFieldLength:zs(e,r+24)})}function $o(t,e,r,n,a){const{rawExtraField:o}=e,s=e.extraField=new Map,i=Wt(o);let c=0,l=!1;try{for(;c<o.length;){const t=zs(i,c),e=zs(i,c+2);s.set(t,{type:t,data:o.slice(c+4,c+4+e)}),c+=4+e}}catch{l=!0}c>o.length&&(l=!0);const d=zs(r,n+4);Object.assign(e,{signature:ks(r,n+10),crc32:ks(r,n+10),compressedSize:ks(r,n+14),uncompressedSize:ks(r,n+18)});const u=s.get(1);u&&(function(t,e){e.zip64=!0;const r=Wt(t.data),n=Wo.filter(([t,r])=>e[t]==r),a=n.reduce((t,[,e])=>t+qo[e].bytes,0);if(t.data.length<a)throw new Error(co);for(let a=0,o=0;a<n.length;a++){const[s,i]=n[a],c=qo[i];e[s]=t[s]=c.Gt(r,o),o+=c.bytes}}(u,e),e.extraFieldZip64=u);const f=s.get(28789);f&&(ts(f,xa,Ea,e,t),e.extraFieldUnicodePath=f);const p=s.get(25461);p&&(ts(p,va,Sa,e,t),e.extraFieldUnicodeComment=p);const m=s.get(w);m&&m.data.length>=7?(function(t,e,r){const n=Wt(t.data),a=Ss(n,4);Object.assign(t,{vendorVersion:Ss(n,0),vendorId:Ss(n,2),strength:a,originalCompressionMethod:r,compressionMethod:zs(n,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=F)}(m,e,d),e.extraFieldAES=m):e.compressionMethod=d;const x=s.get(13);x&&(es(x,e),e.extraFieldPkwareUnix=x);const E=s.get(22613);E&&(es(E,e),e.extraFieldUnixType1=E);const v=s.get(10);v&&(function(t,e){const r=Wt(t.data);let n,a=4;try{for(;a<t.data.length&&!n;){const e=zs(r,a),o=zs(r,a+2);1==e&&(n=t.data.slice(a+4,a+4+o)),a+=4+o}}catch{}if(n&&24==n.length){const r=Wt(n),a=r.getBigUint64(0,!0),o=r.getBigUint64(8,!0),s=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:a,rawLastAccessDate:o,rawCreationDate:s});const i={lastModDate:vs(a),lastAccessDate:vs(o),creationDate:vs(s)};Object.assign(t,i),Object.assign(e,i,{rawLastAccessDate:o,rawCreationDate:s})}}(v,e),e.extraFieldNTFS=v);const S=s.get(g);let z;if(S&&(z=rs(S,e,!1),e.extraFieldUnix=S),!z){const t=s.get(b);t&&(rs(t,e,!0),e.extraFieldInfoZip=t)}const k=s.get(h);k&&(function(t,e,r){if(!t.data.length)return;const n=Wt(t.data),a=Ss(n,0),o=[],s=[];r?(1&~a||(o.push(Da),s.push(Fa)),2&~a||(o.push(Oa),s.push(Ta)),4&~a||(o.push(Ia),s.push(Ua))):t.data.length>=5&&(o.push(Da),s.push(Fa));let i=1;o.forEach((r,a)=>{if(t.data.length>=i+4){const o=ks(n,i);e[r]=t[r]=new Date(1e3*(0|o));const c=s[a];t[c]=o}i+=4})}(k,e,a),e.extraFieldExtendedTimestamp=k);const A=s.get(y);return A&&(e.extraFieldUSDZ=A),l}function ts(t,e,r,n,a){if(t.data.length<5)return void(t.valid=!1);const o=Wt(t.data),s=new Qt;s.append(a[r]);const i=Wt(new Uint8Array(4));i.setUint32(0,s.get(),!0);const c=ks(o,1),l=Ss(o,0);Object.assign(t,{version:l,[e]:hn(t.data.subarray(5)),valid:1==l&&!a.bitFlag.languageEncodingFlag&&c==ks(i,0)}),t.valid&&(n[e]=t[e],n[e+"UTF8"]=!0)}function es(t,e){if(t.data.length<8)return;const r=Wt(t.data),n={lastAccessDate:new Date(1e3*(0|ks(r,0))),lastModDate:new Date(1e3*(0|ks(r,4)))};t.data.length>=12&&(n.uid=zs(r,8),n.gid=zs(r,10)),Object.assign(t,n),Object.assign(e,n)}function rs(t,e,r){try{const n=Wt(t.data);let a,o;if(r){let e=0;const r=Ss(n,e++),s=Ss(n,e++);a=ns(t.data.subarray(e,e+s)),e+=s;const i=Ss(n,e++);o=ns(t.data.subarray(e,e+i)),Object.assign(t,{version:r,uid:a,gid:o})}else t.data.length>=4&&(a=zs(n,0),o=zs(n,2),Object.assign(t,{uid:a,gid:o}));return a!==F&&(e.uid=a),o!==F&&(e.gid=o),a!==F||o!==F}catch{}}function ns(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function as(t,e,r){const n=ks(t,e);let a,o;return r?(a=As(t,e+4),o=As(t,e+12)):(a=ks(t,e+4),o=ks(t,e+8)),{crc32:n,compressedSize:a,uncompressedSize:o}}function os(t,e){return t.Ht?t.Ht(e):0}async function ss(t){return ks(Wt(await ya(t,0,4)))}function is(t){return t===rt||t===nt||t===at}function cs(t,e){return ls(t,ls(e,nt))}function ls(t,e){const r=t.strictness;if(r!==F){if(!is(r))throw new Error(bo);return r}const n=t.checkAmbiguity;return n===F?e:n?rt:e==at?at:nt}function ds(t,e){if(e==at)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(r.includes("..")||t.startsWith("/")||t.startsWith("\\\\")||Bo.test(t))||e==rt&&(r.includes(".")||r.includes(""))}function us(t,r){if(t!==F){const e=bt(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw new Error(xo);return e}return r==rt?0:r==at?1/0:e}async function fs(t,e,r){const{size:n}=t,a=Math.min(n,65557),o={count:64};let s,i,c=0;for await(const[r,l,d,u,p]of ps(t,a)){const a=zs(r,u+20);if(p+f+a==n){const a=await ws(t,r,l,u,p,n,o);if(2==a){if(s||(s=ms(d,u,p)),c++,!e||c>1)break}else 1!=a||i||(i=ms(d,u,p))}}return s||(s=i),s||(s=await async function(t,e,r){const{size:n}=t,a=Math.min(n,e==1/0?n:65557+e);let o,s;for await(const[e,i,c,l,d]of ps(t,a)){const a=ms(c,l,d);o||(o=a);const u=await ws(t,e,i,l,d,n,r);if(2==u)return a;1!=u||s||(s=a)}return s||o}(t,r,o)),{Yt:s,Xt:c}}async function*ps(t,e){const r=t.size-e,n=await ya(t,r,e),a=Wt(n);for(let t=n.length-f;t>=0;t--)ks(a,t)==c&&(yield[a,r,n,t,r+t])}function ms(t,e,r){return{offset:r,buffer:t.slice(e,e+f).buffer}}async function ws(r,n,a,o,s,c,l){const u=zs(n,o+10),f=ks(n,o+12),m=ks(n,o+16);if(u==e||f==t||m==t)return await hs(r,n,a,s-p,c,l)==d?2:0;if(!u&&!f)return 1;const w=zs(n,o+6);for(const t of[s-f,os(r,w)+m])if(await hs(r,n,a,t,c,l)==i)return 2;return 0}async function hs(t,e,r,n,a,o){return n<0||n+4>a?F:n>=r?ks(e,n-r):o.count>0?(o.count--,ks(Wt(await ya(t,n,4)),0)):F}function ys(t,e,r){t?bs(r):ga(e,r)}function bs(t){const e=new Error(wo);throw e.reason=t,e}function gs(t,e,r){return e[r]===F?t.options[r]:e[r]}function xs(t,e,r){return ut(gs(t,e,r))}function Es(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 vs(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function Ss(t,e){return t.getUint8(e)}function zs(t,e){return t.getUint16(e,!0)}function ks(t,e){return t.getUint32(e,!0)}function As(t,e){const r=t.getBigUint64(e,!0);if(r>Zo)throw new Error(Eo);return Number(r)}var Rs=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:wo,ERR_BAD_FORMAT:no,ERR_CENTRAL_DIRECTORY_NOT_FOUND:so,ERR_ENCRYPTED:lo,ERR_ENCRYPTED_CENTRAL_DIRECTORY:ho,ERR_ENTRY_DATA_OUT_OF_BOUNDS:mo,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:oo,ERR_EOCDR_NOT_FOUND:ao,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:co,ERR_INVALID_AUTHENTICATION_CODE:ie,ERR_INVALID_COMPRESSED_DATA:dr,ERR_INVALID_CRC32:ur,ERR_INVALID_FILENAME_VALIDATION:go,ERR_INVALID_MAX_APPENDED_DATA_SIZE:xo,ERR_INVALID_PASSWORD:se,ERR_INVALID_STRICTNESS:bo,ERR_INVALID_UNCOMPRESSED_SIZE:lr,ERR_LOCAL_FILE_HEADER_NOT_FOUND:io,ERR_OVERLAPPING_ENTRY:po,ERR_SPLIT_ZIP_FILE:fo,ERR_UNSAFE_FILENAME:yo,ERR_UNSUPPORTED_COMPRESSION:$e,ERR_UNSUPPORTED_ENCRYPTION:uo,ERR_UNSUPPORTED_UINT64:Eo,ERR_WORKER_STARTUP_TIMEOUT:Ir,WARNING_APPENDED_DATA:Do,WARNING_COMPRESSED_PATCHED_DATA:zo,WARNING_DUPLICATE_FILENAME:Io,WARNING_MALFORMED_EXTRA_FIELD:ko,WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG:Mo,WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD:No,WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES:_o,WARNING_MISMATCHED_LOCAL_FILE_HEADER_FILENAME:jo,WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY:Uo,WARNING_MULTIPLE_END_OF_CENTRAL_DIRECTORY:Co,WARNING_PREPENDED_CENTRAL_DIRECTORY:Oo,WARNING_PREPENDED_DATA:Fo,WARNING_TRAILING_CENTRAL_DIRECTORY_DATA:To,WARNING_UNKNOWN_VERSION:So,WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA:Ao,WARNING_UNSORTED_CENTRAL_DIRECTORY:vo,WARNING_WRAPPED_ENTRIES_COUNT:Ro,ZipReader:Vo,ZipReaderStream:Ho,isZipFile:Go});const Ds="File already exists",Fs="Zip file comment exceeds 64KB",Os="Invalid zip file comment (must be a Uint8Array)",Ts="File entry comment exceeds 64KB",Is="Invalid file entry comment (must be a string)",Us="Invalid date (must be a valid Date instance)",Cs="File entry name exceeds 64KB",js="Version exceeds 65535",Ms="The strength must equal 1, 2, or 3",Ns="Encryption is not supported in USDZ files",_s="Split zip files are not supported in USDZ files",Bs="Encryption is not supported when the 'passThrough' option is set to true (use 'compressed' instead)",Ps="Invalid extra field (must be a Map)",Ls="Invalid extra field type (must be integer 0..65535)",Ws="Invalid extra field data (must be a Uint8Array)",qs="Extra field data exceeds 64KB",Zs=-2147483648,Vs=2147483647,Hs=BigInt(0),Gs=BigInt("0x7fffffffffffffff"),Ks="Zip64 is not supported (set the 'zip64' option to 'true')",Ys="Undefined uncompressed size",Xs="Undefined compression method",Js="Undefined CRC32",Qs="Undetermined size",$s="Undefined reader",ti="Invalid reader (must be a Reader instance, a ReadableStream instance, or an object with a 'readable' property)",ei="Zip file not empty",ri="Invalid uid (must be integer 0..2^32-1)",ni="Invalid gid (must be integer 0..2^32-1)",ai="Invalid UNIX mode (must be integer 0..65535)",oi="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",si="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",ii="Invalid msdosAttributesRaw (must be integer 0..255)",ci="Invalid msdosAttributes (must be an object with boolean flags)",li="Invalid level (must be integer 0..9)",di="Signature data exceeds 64KB",ui="Invalid entry option (must be an entry returned by ZipReader#getEntries())",fi="The last modification date of an entry encrypted with ZipCrypto cannot be changed when passThrough is set",pi="compression unavailable",mi="clamped last modification date",wi=new Uint8Array([7,0,2,0,65,69,3,0,0]),hi="infozip",yi="unix",bi=[8,9,5,3];let gi=0;const xi=[];class Ei{constructor(t,e={}){t=new pa(t);const{availableSize:r=O,maxSize:n=O}=t,a=r>0&&r!==O&&n>0&&n!==O;if(a&&e[X])throw new Error(_s);Object.assign(this,{writer:t,te:a,options:e,ee:new Map,re:new Set,offset:e[Y]===F?t.size||t.writable.size||0:e[Y],ne:e[Y]===F?0:e[Y]-(t.size||t.writable.size||0),ae:new Set,oe:[],warnings:[],se:0,ie:0,ce:F,le:!1})}prependZip(t){return ki(this,async function(t,e){if(t.re.size)throw new Error(ei);await t.de(e)}(this,t))}appendZip(t){return ki(this,this.de(t))}async de(t){const e=this,{ae:r,re:n,ee:o}=e;for(;r.size;)await Promise.allSettled(Array.from(r));let s;const i=new Promise(t=>s=t);r.add(i);const c=[];let l;try{t=new fa(t),await wa(t),t.size!==F&&t.readUint8Array||(t=new _n(await Ke(t.readable)),await wa(t));const{ZipReader:r}=await Promise.resolve().then(function(){return Rs}),s=new r(t),i=await s.getEntries();await s.close(),await wa(e.writer);const{directoryOffset:d}=s;i.forEach(({filename:t})=>{if(n.has(t))throw new Error(Ds);n.add(t),c.push(t)}),e.ue=!0;const{fe:u}=e;e.fe=new Promise(t=>l=()=>{e.ue=!1,t()}),await u,e.te&&(delete e.te,await async function(t){return Wt(await ya(t,0,4)).getUint32(0,!0)==a}(t)||(await Xi(e.writer,Ki()),e.offset+=4));const f=await async function(t,e,r,n){const{writer:a}=t,o=new Map;if(a.closeDisk){const s=Array.from(r).sort((t,r)=>Gi(e,t)-Gi(e,r));let i=0;for(const r of s){const n=Gi(e,r);await Vi(t,e,i,n-i),Wi(a,await Hi(e,n))&&await a.closeDisk(),o.set(r,{offset:qi(t,a),diskNumberStart:Pi(a)}),i=n}await Vi(t,e,i,n-i)}else{const a=t.offset;await Vi(t,e,0,n),r.forEach(t=>o.set(t,{offset:a+Gi(e,t),diskNumberStart:0}))}return o}(e,t,i,d);i.forEach(t=>{const{version:e,rawLastModDate:r,rawFilename:n,bitFlag:a,encrypted:s,uncompressedSize:i,compressedSize:c,extraFieldZip64:l}=t;let{compressionMethod:d,rawExtraField:u}=t;const{level:p,languageEncodingFlag:m,dataDescriptor:w}=a;u=Zi(u||M),t.extraFieldAES&&(d=99);const h=fc(u),y=Boolean(l)&&l.uncompressedSize!==F,b=Boolean(l)&&l.compressedSize!==F,g=-7&wc(p,m,w,s,d)|p<<1,{pe:x,me:E}=pc({version:e,bitFlag:g,compressionMethod:d,uncompressedSize:i,compressedSize:c,rawLastModDate:r,rawFilename:n,we:b,he:y,extraFieldLength:h}),{crc32:v}=t;v!==F&&lc(E,10,v);const{offset:S,diskNumberStart:z}=f.get(t);Object.assign(t,{ye:!0,he:y,we:b,offset:S,diskNumberStart:z,be:!1,ge:M,xe:M,Ee:M,ve:M,Se:M,rawExtraField:u,ze:M,extendedTimestamp:!1,pe:x,me:E}),o.set(t.filename,t)})}catch(t){throw c.forEach(t=>n.delete(t)),t}finally{s(),r.delete(i),l&&l()}}add(e="",n,a={}){const o=this,{ae:s}=o,i=async function(e,n,a,o){const s=(o=Object.assign({},o))[$];if(s!==F){const{ke:t,Ae:r}=Di(s,wt(ec(e,o,P)),ec(e,o,Da));delete o[$],o=Object.assign(t,r,o)}if(ec(e,o,Za)&&!n.endsWith(k)&&(n+=k),e.re.has(n))throw new Error(Ds);e.re.add(n),gi<Tt().maxWorkers?gi++:await new Promise(t=>xi.push(t));try{return await async function(e,n,a,o){const s=Fi(e,n,o);({name:n}=s);const i=Oi(e,n,o),{comment:c}=i,l=o[Ka];e.ee.set(n,F);const d=e.ce,u={};let f,p;i.Re.keepOrder&&(u.De=new Promise(t=>f=t)),e.ce=u;try{const{Re:c}=i;0==c.level||c.compressionMethod!==F||c.Fe||await Nr(Tt())||(c.level=0,ga(e.warnings,pi,n));const l=await async function(t,e,{Re:r},n){if(r.Fe&&!e&&!ec(t,n,Za))throw new Error($s);let a;if(e){if(e=new fa(e),await wa(e),!e.readable&&!e.readUint8Array)throw new Error(ti);({size:a}=e)}return Object.assign({reader:e},Ii(t,Boolean(e),a,r,n))}(e,a,i,o);({reader:a}=l);const m=Li(e.writer),w=Pi(e.writer);let h=o.crc32===F?o[Ga]:o.crc32;const y=l.Re.encrypted&&!c.zipCrypto;if(c.Fe&&!c.Oe&&y&&(h=F),c.Fe&&a&&!y&&h===F)throw new Error(Js);const b=Ci(o=Object.assign({},o,s.Re,i.Re,l.Re,{signature:o[Ga],crc32:h,offset:e.offset-m,diskNumberStart:w,[X]:e.options[X]}));b.Te&&ga(e.warnings,mi,n);const g=Ni(o),x=fc(b.Ie,g.Ue);p=await async function(e,n,a,o,s){const{ee:i,writer:c}=e,{keepOrder:l,dataDescriptor:d,Ce:u,signal:f}=s,{je:p,$t:m,Me:w,Ne:h}=o,y=e.options[X];let b,g,x,E,v,S,z,k=m,R=0;const D=l&&w?w.De:F;i.set(n,k);try{s.bufferedWrite||!l||e.ue||e.se||e.ie||!d&&!u?(b=!0,e.se++,z=s.createTempStream?await s.createTempStream():new TransformStream(F,F,{highWaterMark:O}),z.size=0,await wa(c)):(g=!0,e.ie++,z=c,await D,await T()),await wa(z);const m=Li(c);e.te&&!b&&await Yi(e,c),y&&!b&&ji(o,e.offset-m);const{Ie:w}=p;b||await I();const h=Pi(c),x=qi(e,c);if(k.diskNumberStart=h,b||(v=!0,S=c.size,await Xi(z,w)),k=await async function(e,n,{diskNumberStart:a,De:o},s,i,c){const{je:l,_e:d,Be:u}=s,{pe:f,me:p,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,ge:x,Pe:E,Ee:v,Le:S,We:z,ve:k,Se:A,xe:R}=l,{Ue:D}=d,{rawFilename:O,lastAccessDate:T,creationDate:I,password:U,rawPassword:C,level:j,useUnicodeFileNames:M,zip64:N,ye:_,he:B,we:P,zipCrypto:L,dataDescriptor:W,directory:q,executable:Z,versionMadeBy:V,rawComment:H,rawExtraField:G,ze:K,useWebWorkers:Y,transferStreams:X,onstart:J,onprogress:Q,onend:$,signal:tt,encryptionStrength:et,extendedTimestamp:rt,msDosCompatible:nt,internalFileAttributes:at,externalFileAttributes:ot,uid:st,gid:it,unixMode:ct,symlink:lt,setuid:dt,setgid:ut,sticky:ft,unixExternalUpper:pt,msdosAttributesRaw:mt,msdosAttributes:wt,useCompressionStream:ht,Fe:yt,Oe:bt,format:gt,codecURI:xt}=c,Et={De:o,versionMadeBy:V,zip64:N,ye:_,directory:Boolean(q),executable:Boolean(Z),filenameUTF8:Boolean(M),rawFilename:O,commentUTF8:Boolean(M),rawComment:H,ge:x,Pe:E,Ee:v,ve:k,Se:A,xe:R,rawExtraField:G,ze:K,extendedTimestamp:rt,msDosCompatible:nt,internalFileAttributes:at,externalFileAttributes:ot,diskNumberStart:a,uid:st,gid:it,unixMode:ct,symlink:Boolean(lt),setuid:dt,setgid:ut,sticky:ft,unixExternalUpper:pt,msdosAttributesRaw:mt,msdosAttributes:wt};let{crc32:vt,uncompressedSize:St}=c,zt=0;yt||(St=0);const{writable:kt}=n;if(e){const a=e.size,o=Ge(ba(e,{size:a})),s={options:{codecType:Dr,inputSize:a,level:j,rawPassword:C,password:U,encryptionStrength:et,zipCrypto:h&&L,passwordVerification:h&&L&&w>>8&r,computeCrc32:!yt,compressed:y&&!yt,encrypted:h&&!bt,useWebWorkers:Y,useCompressionStream:ht,transferStreams:X,format:gt,codecURI:xt,compressionMethod:g},config:i,ft:{signal:tt,size:a,onstart:J,onprogress:Q,onend:$}};try{const e=await ln({readable:o,writable:kt},s);if(zt=e.outputSize,n.size+=zt,yt||(St=e.inputSize,h&&!L||(vt=e.crc32)),!P&&zt>=t||!B&&St>=t)throw new Error(Ks)}catch(t){throw t.outputSize!==F&&(n.size+=t.outputSize),t}}return function({crc32:t,compressedSize:e,uncompressedSize:r,je:n,_e:a},{zip64:o,zipCrypto:s,Fe:i,dataDescriptor:c}){const{me:l,encrypted:d}=n,{qe:u,Ze:f}=a;d&&!s&&!i||t===F||(lc(l,10,t),c&&lc(u,f,t)),o?c&&(dc(u,f+4,BigInt(e)),dc(u,f+12,BigInt(r))):(lc(l,14,e),lc(l,18,r),c&&(lc(u,f+4,e),lc(u,f+8,r)))}({crc32:vt,compressedSize:zt,uncompressedSize:St,je:l,_e:d},c),W&&await Xi(n,D),Object.assign(Et,{uncompressedSize:St,compressedSize:zt,lastModDate:m,rawLastModDate:w,creationDate:I,lastAccessDate:T,encrypted:Boolean(h),zipCrypto:Boolean(L),size:u+zt,compressionMethod:g,version:b,pe:f,me:p,signature:vt,crc32:!h||L||yt?vt:F,Le:S,We:z,he:B,we:P}),Et}(a,z,k,o,Tt(),s),b||(v=!1),i.set(n,k),k.filename=n,b){if(await Promise.all([z.writable.getWriter().close(),D]),await T(),e.te&&await Yi(e,c),E=!0,S=c.size,await I(),k.diskNumberStart=Pi(c),k.offset=qi(e,c),y){const t=o.Be;ji(o,e.offset-Li(c)),k.size+=o.Be-t}!function({rawFilename:t,encrypted:e,zip64:r,Pe:n,crc32:a,compressedSize:o,uncompressedSize:s,he:i,we:c},l,{dataDescriptor:d,Fe:u}){if(d||((!e||u&&a!==F)&&lc(l,14,a),c||lc(l,18,o),i||lc(l,22,s)),r&&n){const e=A+fc(t)+4;dc(l,e,BigInt(s)),dc(l,e+8,BigInt(o))}}(k,p.Ve,s),await Xi(c,p.Ie),await Ji(z.readable,c,f,t=>R+=t),c.size+=z.size,E=!1}else k.diskNumberStart=h,k.offset=x;return e.offset+=k.size,k}catch(t){if(E||v){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-S,b&&(e.offset+=R)}throw i.delete(n),t}finally{if(b&&e.se--,g&&e.ie--,h&&h(D),x&&x(),b&&z&&z.dispose)try{await z.dispose()}catch{}}async function T(){e.ue=!0;const{fe:t}=e;e.fe=new Promise(t=>x=()=>{e.ue=!1,t()}),await t}async function I(){Wi(c,fc(p.Ie))&&await c.closeDisk()}}(e,n,a,{je:b,_e:g,Be:x,$t:u,Me:d,Ne:f},o)}catch(t){throw e.ee.delete(n),t}finally{f&&f(d&&d.De)}return Object.assign(p,{name:n,comment:c,extraField:l}),new to(p)}(e,n,a,o)}catch(t){throw e.re.delete(n),t}finally{const t=xi.shift();t?t():gi--}}(o,e,n,a);s.add(i);const c=()=>s.delete(i);return Promise.prototype.then.call(i,c,c),ki(o,i)}remove(t){const{re:e,ee:r}=this;if(typeof t==C&&(t=r.get(t)),t&&t.filename!==F){const{filename:n}=t;if(e.has(n)&&r.has(n))return e.delete(n),r.delete(n),!0}return!1}async close(r=M,n={}){const a=this,{ae:o,writer:p}=this,{writable:m}=p;if(a.le)return zi(p);if(!(r instanceof Uint8Array))throw new Error(Os);if(fc(r)>e)throw new Error(Fs);for(;o.size;)await Promise.allSettled(Array.from(o));await Promise.allSettled(a.oe.map(t=>t.He));const w=a.oe.filter(t=>t.error&&!t.Ge);if(w.length){const t=w.map(t=>t.error);w.forEach(t=>t.Ge=!0);const[e]=t;try{e.entryErrors=t}catch{}throw e}return await async function(r,n,a){const{Ke:o,Ye:p}=_i(r.ee),{Xe:m,Je:w,Qe:h}=await async function(r,n,a){const{ee:o,writer:s}=r,c=new Uint8Array(n);await wa(s);let l=0,d=0,f=Pi(s),p=Li(s),m=0;for(const[r,n]of Array.from(o.values()).entries()){const{offset:w,rawFilename:h,ge:y,xe:b,Ee:g,ve:x,Se:E,rawExtraField:v,ze:S,rawComment:z,versionMadeBy:k,pe:A,me:R,he:D,we:F,be:O,$e:T,internalFileAttributes:I,externalFileAttributes:U,diskNumberStart:C,uncompressedSize:j,compressedSize:M}=n,N=fc(y,b,g,x,E,v,S),_=u+fc(h,z)+N;Wi(s,l+_-d)&&(await Xi(s,c.slice(d,l)),d=l,m=0,await s.closeDisk()),0==r&&(f=Pi(s),p=Li(s)),D||lc(R,18,j),F||lc(R,14,M),(T||O)&&n.version<45&&cc(R,0,45);const B=Bi(_);if(B.er(i),B.rr(k),B.nr(A.subarray(0,24)),B.rr(N),B.rr(fc(z)),B.rr(O?e:C),B.rr(I),B.er(U),B.er(T?t:w),B.nr(h),B.nr(y),B.nr(b),B.nr(g),B.nr(x),B.nr(E),B.nr(v),B.nr(S),B.nr(z),uc(c,B.Lt,l),l+=_,m++,a.onprogress)try{await a.onprogress(r+1,o.size,new to(n))}catch{}}return await Xi(s,d?c.slice(d):c),{Xe:{diskNumber:f,diskOffset:p},Je:{diskNumber:Pi(s),ar:m},Qe:c}}(r,o,a),y=await async function(t,r,n){const a=nc(t,n,Q);if(a){const n=await a(r),o=fc(n);if(o>e)throw new Error(di);const i=Bi(6+o);i.er(s),i.rr(o),i.nr(n);const{writer:c}=t;return Wi(c,fc(i.Lt))&&await c.closeDisk(),await Xi(c,i.Lt),6+o}return 0}(r,h,a);await async function(r,n,a,o){const{writer:s}=r,{Xe:i,Je:u,sr:p,Ye:m}=o;let{Ke:w}=o,h=r.ee.size,y=i.diskNumber,b=qi(r,i);const g=fc(n);if(g>e)throw new Error(Fs);let x=ec(r,a,Ba),E=Pi(s);if(Wi(s,(x?98:f)+g)&&E++,b>=t||w>=t||h>=e||E>=e){if(!1===x)throw new Error(Ks);x=!0}else x===F&&m&&(x=!0);const v=Bi(x?98:f);Wi(s,fc(v.Lt)+g)&&await s.closeDisk(),E=Pi(s);let S=E==u.diskNumber?u.ar:0;x&&(v.er(l),v.ir(44),v.rr(45),v.rr(45),v.er(E),v.er(y),v.ir(S),v.ir(h),v.ir(w),v.ir(b),v.er(d),v.er(E),v.ir(BigInt(qi(r,s))+BigInt(w)+BigInt(p)),v.er(E+1),ec(r,a,"supportZip64SplitFile",!0)&&(E=e,y=e),S=e,h=e,b=t,w=t),v.er(c),v.rr(E),v.rr(y),v.rr(S),v.rr(h),v.er(w),v.er(b),v.rr(g),await Xi(s,v.Lt),g&&await Xi(s,n)}(r,n,a,{Xe:m,Je:w,Ke:o,sr:y,Ye:p})}(a,r,n),a.le=!0,!ma(p)&&ec(a,n,V)||await m.getWriter().close(),zi(p)}[N](){return this.close()}}class vi{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new Ei(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 Ai(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 Ai(r,t),t}try{return await r.close(t,e)}catch(t){throw await Ai(r,t),t}}}class Si extends Promise{then(t,e){const{cr:r}=this;return r&&(r.Ge=!0),super.then(t,e)}}function zi(t){return t.getData?t.getData():t.writable}function ki(t,e){const r=new Si((t,r)=>Promise.prototype.then.call(e,t,r)),n={};return r.cr=n,n.He=Promise.prototype.then.call(r,F,t=>n.error=t),t.oe.push(n),r}async function Ai(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 Di(t,e,n){if(null===t||typeof t!=U||Array.isArray(t))throw new Error(ui);const{externalFileAttributes:a,versionMadeBy:o,comment:s,lastModDate:i,rawLastModDate:c,creationDate:l,lastAccessDate:d,uncompressedSize:u,encrypted:f,zipCrypto:p,crc32:m,compressionMethod:w,extraFieldAES:h,extraFieldUnix:y,internalFileAttributes:b,extraField:g,bitFlag:x,directory:E,uid:v,gid:S}=t,z={externalFileAttributes:a,versionMadeBy:o,comment:s,lastModDate:i,creationDate:l,lastAccessDate:d,internalFileAttributes:b,directory:E};x&&x.languageEncodingFlag&&(z[G]=!0);const k=function(t){if(t){const e=new Map;if(t.forEach((t,r)=>{eo.has(r)||e.set(r,t.data)}),e.size)return e}}(g);k&&(z[Ka]=k),v===F&&S===F||Object.assign(z,{uid:v,gid:S,unixExtraFieldType:y?yi:hi});const A={};if(e&&!E)if(Object.assign(A,{uncompressedSize:u,crc32:m,compressionMethod:w}),e!==ot&&Object.assign(A,{encrypted:f,zipCrypto:p,encryptionStrength:h?h.strength:F}),x&&(A.dataDescriptor=x.dataDescriptor,A[H]=bi[x.level]),n===F)A.rawLastModDate=c;else if(e!==ot&&p&&(!x||x.dataDescriptor)&&n 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}(n)!=(c>>>8&r))throw new Error(fi);return{ke:z,Ae:A}}function Fi(n,a,o){let s=ec(n,o,_a),i=ec(n,o,Wa,s?20:768);const c=ec(n,o,Va),l=ac(n,o,"uid"),d=ac(n,o,"gid");let u=ac(n,o,Ya),f=ec(n,o,"unixExtraFieldType"),p=ec(n,o,Xa),m=ec(n,o,Ja),w=ec(n,o,Qa);if(yt(l,t,ri),yt(d,t,ni),yt(u,e,ai),f!==F&&f!==hi&&f!==yi)throw new Error(oi);if(f===yi&&(l!==F&&l>e||d!==F&&d>e))throw new Error(si);f!==F||l===F&&d===F||(f=hi);let h=ac(n,o,Ma),y=ec(n,o,Na);const b=h!==F||y!==F;if(l!==F||d!==F||u!==F||f||c?(s=!1,i=i&r|768):b&&(s=!0,i&=r),yt(h,r,ii),y&&(typeof y!==U||Array.isArray(y)))throw new Error(ci);if(i>e)throw new Error(js);let g=ec(n,o,ja);const x=g!==F;x||(g=0),!o[Za]&&a.endsWith(k)&&(o[Za]=!0);const A=ec(n,o,Za);if(A?(a.endsWith(k)||(a+=k),x||(g=16,s||(g|=16877<<16))):s||x||(g=c?493<<16:27525120),!s){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:o,directory:s,archive:i}=e;let c=0;n&&(c|=1),a&&(c|=2),o&&(c|=4),s&&(c|=16),i&&(c|=32),t=c&r}return e===F&&(e={readOnly:Boolean(1&t),hidden:Boolean(2&t),system:Boolean(4&t),directory:Boolean(16&t),archive:Boolean(32&t)}),{msdosAttributesRaw:t,msdosAttributes:e}}(h,y)),b&&(g=g&t|h&r);const R=g>>16&e,D=u!==F&&40960==(u&E);return{name:a,Re:{versionMadeBy:i,msDosCompatible:Boolean(s),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 Oi(t,r,n){const a=nc(t,n,"encodeText")||te;let o=a(r,tt);if(o===F&&(o=te(r)),fc(o)>e)throw new Error(Cs);const s=n[va]||"";if(typeof s!=C)throw new Error(Is);let i=a(s,et);if(i===F&&(i=te(s)),fc(i)>e)throw new Error(Ts);const c=ec(t,n,La);if(c!==F&&c>e)throw new Error(js);const l=rc(t,n,Da,new Date),d=ec(t,n,Fa),u=rc(t,n,Oa),f=rc(t,n,Ia),p=ec(t,n,Ca,0),m=wt(ec(t,n,P)),w=Boolean(m),h=!0===m,y=ec(t,n,_),b=ec(t,n,B);mt(y,b);const g=ac(t,n,"encryptionStrength",3),x=ec(t,n,qa),E=ec(t,n,"extendedTimestamp",!0),v=ec(t,n,"ntfsTimestamp"),S=ec(t,n,"keepOrder",!0),z=ec(t,n,W),k=ec(t,n,Z),A=ec(t,n,"bufferedWrite"),R=nc(t,n,"createTempStream"),D=ec(t,n,"dataDescriptorSignature",!0),O=ft(ec(t,n,L));pt(O);const T=ec(t,n,G,!mc(o)||!mc(i)),I=ec(t,n,Ha),U=w||I===F?F:or(I);if(!w&&I!==F&&0!==I&&8!==I&&!U)throw new Error($e);let j=ac(t,n,H);if(yt(j,9,li),t.options[X]){if(y!==F||b!==F)throw new Error(Ns);j===F&&I===F&&(j=0)}w&&(j=bt(n[H]));let M=ec(t,n,q),N=ec(t,n,K);A&&N===F&&(N=!1),(N===F||x&&!h)&&(N=!0),j!==F&&6!=j&&(M=!1);const V=ec(t,n,Ba);if(!(x||y===F&&b===F||Number.isInteger(g)&&g>=1&&g<=3))throw new Error(Ms);const Y=Ti(n[Ka]),J=Ti(n.localExtraField),Q=Ti(n.centralExtraField);return{comment:s,Re:{rawFilename:o,rawComment:i,version:c,lastModDate:l,rawLastModDate:d,lastAccessDate:u,creationDate:f,internalFileAttributes:p,Fe:w,Oe:h,password:y,rawPassword:b,encryptionStrength:g,zipCrypto:x,extendedTimestamp:E,ntfsTimestamp:v,keepOrder:S,useWebWorkers:z,transferStreams:k,bufferedWrite:A,createTempStream:R,dataDescriptorSignature:D,signal:O,useUnicodeFileNames:T,compressionMethod:I,format:U?U.format:F,codecURI:U?U.codecURI:F,lr:U?U.versionNeeded:F,level:j,useCompressionStream:M,dataDescriptor:N,zip64:V,rawExtraField:Y,dr:J,ze:Q}}}function Ti(t){if(!t)return M;if(!(t instanceof Map))throw new Error(Ps);let r=0,n=0;t.forEach((t,n)=>{if(ht(n,e,Ls),!(t instanceof Uint8Array))throw new Error(Ws);if(fc(t)>e)throw new Error(qs);r+=4+fc(t)});const a=new Uint8Array(r),o=Wt(a);return t.forEach((t,e)=>{cc(o,n,e),cc(o,n+2,fc(t)),uc(a,t,n+4),n+=4+fc(t)}),a}function Ii(e,r,n,a,o){const{Fe:s,Oe:i,zipCrypto:c,password:l,rawPassword:d,encryptionStrength:u}=a;let{dataDescriptor:f,zip64:p,level:m,compressionMethod:w}=a,h=0,y=0,b=!1;if(s&&r){if(y=o[za],y===F)throw new Error(Ys);if(w===F)throw new Error(Xs)}const g=!0===p,x=ec(e,o,Pa);if(r&&i&&!x&&fc(l,d))throw new Error(Bs);const E=r&&(Boolean(l&&fc(l)||d&&fc(d))||i&&x);r||(m=0,w=0);const v=ro(E,c,u);r&&(s?(o.uncompressedSize=y,h=n===F?oc(y)+v:n+(i?0:v)):n===F?(f=!0,(p||p===F)&&(p=b=!0,h=4294967296)):(o.uncompressedSize=y=n,h=(sc(w,m)?oc(y):y)+v));const S=!(E||r&&(0!==n||s)||sc(w,m));S&&!c&&ec(e,o,K)===F&&(f=!1);const z=g||b||y>=t,k=g||h>=t;if(z||k){if(!1===p)throw new Error(Ks);p=!0}return p=p||!1,{ur:h,Re:{dataDescriptor:f,Ce:S,zip64:p,ye:g,pr:b,he:z,we:k,uncompressedSize:y,level:m,compressionMethod:w,encrypted:E}}}function Ui(e,r,n){const a=e.slice().sort((t,e)=>n?e-t:t-e);let o=r,s=0;for(const e of a){if(o>=t)break;o+=e,s++}return s}function Ci(t){const{rawFilename:r,lastModDate:a,rawLastModDate:o,lastAccessDate:s,creationDate:i,level:c,zip64:l,zipCrypto:d,useUnicodeFileNames:u,dataDescriptor:f,directory:p,rawExtraField:m,dr:y,encryptionStrength:x,extendedTimestamp:E,ntfsTimestamp:v,Fe:S,encrypted:z,he:k,we:O,uncompressedSize:T,pr:I,crc32:U}=t;let{version:C,compressionMethod:j}=t;const N=!p&&sc(j,c);let _;const B=S||!N,P=l&&(t.bufferedWrite||!f||!k&&!O||B&&!I),L=P||l&&f&&(k||O);if(l&&(k||O)){const t=20,e=Bi(t);if(e.rr(1),e.rr(t-4),_=e.Lt,P&&(e.ir(T),B)){const t=ro(z,d,x);e.ir(S?0:T+t)}}else _=M;let W,q,Z,V,H;if(z&&!d){const t=Bi(fc(wi)+2);t.rr(w),t.nr(wi),W=t.Lt,W[8]=x}else W=M;if(E){const t=$i(a),e=(G=t)>=Zs&&G<=Vs;if(e){const e=9+(s?4:0)+(i?4:0),r=Bi(e);V=1+(s?2:0)+(i?4:0),H=t,r.rr(h),r.rr(e-4),r.mr(V),r.er(t),s&&r.er(tc($i(s))),i&&r.er(tc($i(i))),Z=r.Lt}else Z=M;if(v===F?!e||Boolean(s||i):v)try{const t=Qi(a),e=Bi(36);e.rr(10),e.rr(32),e.wr(4),e.rr(1),e.rr(24),e.ir(t),e.ir(s?Qi(s):t),e.ir(i?Qi(i):t),q=e.Lt}catch{q=M}else q=M}else q=Z=M;var G;let K;try{const{uid:r,gid:n,unixExtraFieldType:a}=t;if(a!=hi||r===F&&n===F)if(a!=yi||r===F&&n===F)K=M;else{const t=Bi(8);t.rr(g),t.rr(4),t.rr((r===F?0:r)&e),t.rr((n===F?0:n)&e),K=t.Lt}else{const t=Mi(r===F?0:r),e=Mi(n===F?0:n),a=3+t.length+e.length,o=Bi(4+a);o.rr(b),o.rr(a),o.mr(1),o.mr(t.length),o.nr(t),o.mr(e.length),o.nr(e),K=o.Lt}}catch{K=M}j===F&&(j=N?8:0),C===F&&(C=0!=j||p||z?20:10);const{lr:Y}=t;N&&Y!==F&&(C=C>Y?C:Y),l&&(C=C>45?C:45),z&&!d&&(C=C>51?C:51,S&&U!==F&&(W[4]=1),cc(Wt(W),9,j),j=99);const J=L?fc(_):0,Q=J+fc(W,Z,q,K,m,y);if(Q+(t[X]?67:0)>e)throw new Error(qs);const $=new Date(2e3*Math.ceil(Math.floor(a.getTime()/1e3)/2)),tt=$<D?D:$>R?R:$,et=fc(Z)?new Date(1e3*$i(a)):fc(q)?a:tt,{pe:rt,me:nt,rawLastModDate:at}=pc({version:C,bitFlag:wc(c,u,f,z,j),compressionMethod:j,uncompressedSize:T,lastModDate:tt,rawLastModDate:o,rawFilename:r,we:O,he:k,extraFieldLength:Q}),ot=Bi(A+fc(r)+Q),st=ot.Lt,it=Wt(st);return ot.er(n),ot.nr(rt),ot.nr(r),L&&ot.nr(_),ot.nr(W),ot.nr(Z),ot.nr(q),ot.nr(K),ot.nr(m),ot.nr(y),f&&(O||lc(it,18,0),k||lc(it,22,0)),{Ie:st,Ve:it,pe:rt,me:nt,lastModDate:et,Te:et===tt&&$.getTime()!=tt.getTime(),rawLastModDate:at,encrypted:z,compressed:N,version:C,compressionMethod:j,Le:V,We:H,ge:M,Pe:J,Ee:Z,ve:q,Se:K,xe:W,extraFieldLength:Q}}function ji(t,e){const{je:r}=t;let{Ie:n,extraFieldLength:a}=r,o=64-(e+fc(n))%64;o<4&&(o+=64);const s=new Uint8Array(o),i=Wt(s);cc(i,0,y),cc(i,2,o-4);const c=n;r.Ie=n=new Uint8Array(fc(c)+o),uc(n,c),uc(n,s,fc(c));const l=Wt(n);cc(l,28,a+o),r.Ve=l,t.Be+=o}function Mi(t){const e=new Uint8Array(4);Wt(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function Ni({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let n,a=M,s=0,i=t?20:12;return r&&(i+=4),e&&(a=new Uint8Array(i),n=Wt(a),r&&(s=4,lc(n,0,o))),{Ue:a,qe:n,Ze:s}}function _i(r){let n=0,a=!1;for(const[,o]of r){const{rawFilename:r,xe:s,rawComment:i,ve:c,Se:l,rawExtraField:d,ze:f,Le:p,We:m,ye:w,uncompressedSize:y,compressedSize:b}=o;let{he:g,we:x}=o;w||(g&&y<t&&(g=o.he=!1),x&&b<t&&(x=o.we=!1)),a=a||g||x;const E=o.offset>=t,v=o.diskNumberStart>=e;let S,z;if(E||v||g||x){const t=4+(g?8:0)+(x?8:0)+(E?8:0)+(v?4:0),e=Bi(t);e.rr(1),e.rr(t-4),g&&e.ir(y),x&&e.ir(b),E&&e.ir(o.offset),v&&e.er(o.diskNumberStart),S=e.Lt}else S=M;if(o.ge=S,o.$e=E,o.be=v,m===F)z=M;else{const t=Bi(9);t.rr(h),t.rr(5),t.mr(p),t.er(m),z=t.Lt}o.Ee=z;const k=fc(S,s,c,l,z,d,f);if(k>e)throw new Error(qs);n+=u+fc(r,i)+k}return{Ke:n,Ye:a}}function Bi(t){const e=new Uint8Array(t),r=Wt(e);let n=0;return{Lt:e,mr:t=>{!function(t,e,r){t.setUint8(e,r)}(r,n,t),n+=1},rr:t=>{cc(r,n,t),n+=2},er:t=>{lc(r,n,t),n+=4},ir:t=>{dc(r,n,BigInt(t)),n+=8},nr:t=>{uc(e,t,n),n+=fc(t)},wr:t=>n+=t}}function Pi(t){const{diskNumber:e=0}=t;return e}function Li(t){const{diskOffset:e=0}=t;return e}function Wi(t,e){const{availableSize:r=O}=t;return e>r}function qi(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.ne:0)}function Zi(t){const e=Wt(t);let r=0;for(;r+4<=fc(t);){const n=4+ic(e,r+2);if(1==ic(e,r))return Zi(Pt(t.subarray(0,r),t.subarray(Math.min(r+n,fc(t)))));r+=n}return t}async function Vi(t,e,r,n){if(n>0){const{writer:a}=t;let o=0;try{await Ji(ba(e,{offset:r,size:n}),a,F,t=>o+=t)}catch(e){t.hasCorruptedEntries=!0;try{e.corruptedEntry=!0}catch{}throw e}finally{a.size+=o,t.offset+=o}}}async function Hi(t,e){const r=await ya(t,e,A);if(fc(r)<A)return A;const n=Wt(r);return A+ic(n,26)+ic(n,28)}function Gi(t,{offset:e,diskNumberStart:r}){return e+(t.Ht?t.Ht(r):0)}function Ki(){const t=new Uint8Array(4);return lc(Wt(t),0,a),t}async function Yi(t,e){delete t.te,await Xi(e,Ki()),t.offset+=4}async function Xi(t,e){const{writable:r}=t,n=r.getWriter();try{await n.ready,t.size+=fc(e),await n.write(e)}finally{n.releaseLock()}}async function Ji(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(fc(t))}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}}function Qi(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<Hs?Hs:e>Gs?Gs:e}}function $i(t){return Math.floor(t.getTime()/1e3)}function tc(t){return Math.min(Vs,Math.max(Zs,t))}function ec(t,e,r,n){const a=e[r]===F?t.options[r]:e[r];return a===F?n:a}function rc(t,e,r,n){const a=ec(t,e,r,n);if(null===a)return n;if(a!==F&&(typeof a.getTime!=I||Number.isNaN(a.getTime())))throw new Error(Us);return a}function nc(t,e,r){return ut(ec(t,e,r))}function ac(t,e,r,n){return bt(ec(t,e,r,n))}function oc(t){return t+5*(Math.floor(t/16383)+1)}function sc(t,e){return t===F?e===F||e>0:0!==t}function ic(t,e){return t.getUint16(e,!0)}function cc(t,e,r){t.setUint16(e,r,!0)}function lc(t,e,r){t.setUint32(e,r,!0)}function dc(t,e,r){t.setBigUint64(e,r,!0)}function uc(t,e,r){t.set(e,r)}function fc(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function pc({version:e,bitFlag:r,compressionMethod:n,uncompressedSize:a,compressedSize:o,lastModDate:s,rawLastModDate:i,rawFilename:c,we:l,he:d,extraFieldLength:u}){const f=Bi(26),p=f.Lt,m=Wt(p);if(f.rr(e),f.rr(r),f.rr(n),i===F){const t=new Uint32Array(1),e=Wt(t);cc(e,0,(s.getHours()<<6|s.getMinutes())<<5|s.getSeconds()/2),cc(e,2,(s.getFullYear()-1980<<4|s.getMonth()+1)<<5|s.getDate()),i=t[0]}return f.er(i),f.wr(4),l||o!==F?f.er(l?t:o):f.wr(4),d||a!==F?f.er(d?t:a):f.wr(4),f.rr(fc(c)),f.rr(u),{pe:p,me:m,rawLastModDate:i}}function mc(t){return t.every(t=>t>=32&&t<=126)}function wc(t,e,r,n,a){let o=0;return e&&(o|=x),r&&(o|=8),8!=a&&9!=a||(t>=0&&t<=3&&(o|=6),t>3&&t<=5&&(o|=4),9==t&&(o|=2)),n&&(o|=1),o}function hc(){const{CompressionStream:t,DecompressionStream:e,CompressionStreamFallback:r,DecompressionStreamFallback:n}=Tt(),a=[{compressionMethod:0,compression:!0,decompression:!0,registered:!1},{compressionMethod:8,compression:yc(r,fr)||yc(t,fr)||yc(t,mr),decompression:yc(n,fr)||yc(e,fr)||yc(e,mr),registered:!1},{compressionMethod:9,compression:!1,decompression:yc(n,pr)||yc(e,pr),registered:!1}];for(const t of sr()){const e=ir(t.format);a.push({compressionMethod:t.compressionMethod,compression:e?typeof e.CompressionStream==I:F,decompression:e?typeof e.DecompressionStream==I:F,registered:!0})}return a}function yc(t,e){if(!t)return!1;const{yr:r}=t;return r?r.includes(e):xr(t,e)}const bc="2.12.0",gc=1048576,xc=".zip.js-temp";function Ec(t={}){const{thresholdBytes:e=gc,directoryName:r=xc,getDirectory:n=()=>navigator.storage.getDirectory()}=t;let a;function o(){return a||(a=Promise.resolve(n()).then(t=>t.getDirectoryHandle(r,{create:!0}))),a}return function(){const t=[];let r,n,a,s,i=0,c=!1;const l=new WritableStream({async write(s){c?await a.write(s):(t.push(s),i+=s.length,i>e&&await async function(){const e=await o();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join(""),n=await e.getFileHandle(r,{create:!0}),a=(await n.createWritable()).getWriter(),c=!0;for(const e of t)await a.write(e);t.length=0}())},async close(){a&&(await a.close(),a=null)}});let d=0;return{writable:l,readable:new ReadableStream({async pull(e){if(c){if(!s){const t=await n.getFile();s=t.stream().getReader()}const{value:t,done:r}=await s.read();r?e.close():e.enqueue(t)}else d<t.length?e.enqueue(t[d++]):e.close()},async cancel(t){s&&await s.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(a){try{await a.close()}catch{}a=null}if(r){try{const t=await o();await t.removeEntry(r)}catch{}n=r=null}t.length=0}}}}const vc=1048576;function Sc(t={}){const{thresholdBytes:e=vc}=t;return function(){const t=[];let r,n,a,o=0,s=!1;const i=new WritableStream({async write(a){s?await r.write(a):(t.push(a),o+=a.length,o>e&&await async function(){const e=new TransformStream;n=Ke(e.readable),r=e.writable.getWriter(),s=!0;for(const e of t)await r.write(e);t.length=0}())},async close(){r&&(await r.close(),r=null)}});let c=0;return{writable:i,readable:new ReadableStream({async pull(e){if(s){if(!a){const t=await n;a=t.stream().getReader()}const{value:t,done:r}=await a.read();r?e.close():e.enqueue(t)}else c<t.length?e.enqueue(t[c++]):e.close()},async cancel(t){a&&await a.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(r){try{await r.abort()}catch{}r=null}n&&(n.catch(()=>{}),n=null),t.length=0}}}}const zc=1048576,kc=".zip.js-temp",Ac="createSyncAccessHandle is only available in dedicated workers";function Rc(t={}){const{thresholdBytes:e=zc,directoryName:r=kc,getDirectory:n}=t;if(!(n||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw new Error(Ac);const a=n||(()=>navigator.storage.getDirectory());let o;function s(){return o||(o=Promise.resolve(a()).then(t=>t.getDirectoryHandle(r,{create:!0}))),o}return function(){const t=[];let r,n,a=0,o=!1,i=0,c=0;const l=new WritableStream({async write(c){o?(n.write(c,{at:i}),i+=c.length):(t.push(c),a+=c.length,a>e&&await async function(){const e=await s();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join("");const a=await e.getFileHandle(r,{create:!0});n=await a.createSyncAccessHandle(),o=!0;for(const e of t)n.write(e,{at:i}),i+=e.length;t.length=0}())},close(){n&&n.flush()}});let d=0;return{writable:l,readable:new ReadableStream({pull(e){if(o){const t=i-c;if(t<=0)return void e.close();const r=new Uint8Array(Math.min(524288,t)),a=n.read(r,{at:c});a?(c+=a,e.enqueue(r.subarray(0,a))):e.close()}else d<t.length?e.enqueue(t[d++]):e.close()}},{highWaterMark:0}),dispose:async function(){if(n){try{n.close()}catch{}n=null}if(r){try{const t=await s();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{_t({baseURI:import.meta.url})}catch{}const Dc="deflate",Fc="deflate-raw",Oc="deflate64-raw",Tc="gzip";let Ic,Uc,Cc,jc,Mc;function Nc(t,e,r={}){if(!Ic){const t=new Error("WASM module not loaded");throw t.cause=Mc,t}const n="number"==typeof r.level?r.level:-1,a="number"==typeof r.outBuffer?r.outBuffer:65536,o="number"==typeof r.inBufferSize?r.inBufferSize:65536;return new TransformStream({start(){try{let r;if(this.gr=Uc(a),this.in=Uc(o),this.inBufferSize=o,!this.gr||!this.in)throw new Error("allocation failed");if(this.Er=new Uint8Array(a),t?(this.vr=Ic.deflate_process,this.Sr=Ic.deflate_last_consumed,this.zr=Ic.deflate_end,this.kr=Ic.deflate_new(),r=e===Tc?Ic.deflate_init_gzip(this.kr,n):e===Fc?Ic.deflate_init_raw(this.kr,n):Ic.deflate_init(this.kr,n)):e===Oc?(this.vr=Ic.inflate9_process,this.Sr=Ic.inflate9_last_consumed,this.zr=Ic.inflate9_end,this.kr=Ic.inflate9_new(),r=Ic.inflate9_init_raw(this.kr)):(this.vr=Ic.inflate_process,this.Sr=Ic.inflate_last_consumed,this.zr=Ic.inflate_end,this.kr=Ic.inflate_new(),r=e===Fc?Ic.inflate_init_raw(this.kr):e===Tc?Ic.inflate_init_gzip(this.kr):Ic.inflate_init(this.kr)),0!==r)throw new Error("init failed:"+r)}catch(t){throw s(this),t}},transform(t,e){try{const r=t,n=new Uint8Array(jc.buffer),o=this.vr,s=this.Sr,i=this.gr,c=this.Er;let l=0;for(;l<r.length;){const t=Math.min(r.length-l,32768);if((!this.in||this.inBufferSize<t)&&(this.in&&Cc&&(Cc(this.in),this.in=0),this.in=Uc(t),this.inBufferSize=t,!this.in))throw new Error("allocation failed");n.set(r.subarray(l,l+t),this.in);const d=o(this.kr,this.in,t,i,a,0),u=d>>24&255,f=128&u?u-256:u;if(f<0)throw new Error("process error:"+f);const p=16777215&d;p&&(c.set(n.subarray(i,i+p),0),e.enqueue(c.slice(0,p)));const m=s(this.kr);if(0===m&&0===p)break;l+=m}}catch(t){s(this),e.error(t)}},flush(t){try{const e=new Uint8Array(jc.buffer),r=this.vr,n=this.gr,o=this.Er;for(;;){const s=r(this.kr,0,0,n,a,4),i=s>>24&255,c=128&i?i-256:i;if(c<0)throw new Error("process error:"+c);const l=16777215&s;if(l&&(o.set(e.subarray(n,n+l),0),t.enqueue(o.slice(0,l))),1===i||0===l)break}}catch(e){t.error(e)}finally{const e=s(this);0!==e&&t.error(new Error("end error:"+e))}},cancel(){s(this)}});function s(t){let e=0;return t.kr&&t.zr&&(e=t.zr(t.kr)),t.kr=0,t.in&&Cc&&Cc(t.in),t.in=0,t.gr&&Cc&&Cc(t.gr),t.gr=0,e}}class _c{constructor(t=Dc,e){return Nc(!0,t,e)}}class Bc{constructor(t=Dc,e){return Nc(!1,t,e)}}_c.ut=!0,Bc.ut=!0,_c.yr=[Dc,Fc,Tc],Bc.yr=[Dc,Fc,Tc,Oc];let Pc,Lc=!1;async function Wc(){await async function(){await Promise.allSettled(nn.map(t=>(mn(t),t.terminate()))),Ur=F,Cr=!1}(),Pc=null,Lc=!1,Ic=Uc=Cc=jc=Mc=null}!function({Ar:t}){Mr=t}({Ar:t=>{if(!Pc){let{wasmURI:e}=t;typeof e==I&&(e=e()),Pc=async function(t,{baseURI:e}){if(!Lc)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:Uc,free:Cc,memory:jc}=Ic),"function"!=typeof Uc||"function"!=typeof Cc||!jc)throw Ic=Uc=Cc=jc=null,new Error("Invalid WASM module")}((await WebAssembly.instantiate(r)).instance.exports)}(t,e),Lc=!0}catch(t){throw function(t){Mc=t}(t),t}}(e,t).catch(t=>{throw Pc=null,t})}return Pc}}),_t({CompressionStreamFallback:_c,DecompressionStreamFallback:Bc}),_t({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const qc="Entry filename already exists",Zc="Duplicate entry filename in the imported zip file",Vc='Invalid duplicates option (must be "throw", "keep-first" or "keep-last")',Hc="Entry is an ancestor of target entry",Gc="Root directory cannot be moved",Kc="Target entry is not a directory",Yc="Parent entry is not a directory",Xc="Readable stream already consumed",Jc="throw",Qc="keep-first",$c="keep-last",tl=new Set([Jc,Qc,$c]),el="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",rl="Invalid readerOptions (must be an object)",nl="The 'compressed' passThrough option is only supported by Entry#getData() and ZipWriter#add()",al="zipjs-abort-export";class ol{constructor(t,e,r,n){const a=this;if(t.root&&n&&n.getChildByName(e))throw new Error(qc);r||(r={}),Object.assign(a,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.Rr++,parent:n,children:[],uncompressedSize:r.uncompressedSize||0,Dr:r.Dr||r.uncompressedSize===F,passThrough:r.passThrough,Fr:r.Fr||new Date}),!n&&t.root||(t.entries[a.id]=a),n&&a.parent.children.push(a)}getFullname(){return this.getRelativeName()}getRelativeName(t=this.fs.root){let e=this.name,r=this.parent;for(;r&&r!=t;)e=(r.name?r.name+"/":"")+e,r=r.parent;return e}isDescendantOf(t){let e=this.parent;for(;e&&e.id!=t.id;)e=e.parent;return Boolean(e)}rename(t){const e=this;let r=e.parent;if(r){const n=Ul(t);n&&(t=n.pop(),r=Cl(r,n,e));const a=r.getChildByName(t);if(a&&a!=e)throw new Error(qc);r!=e.parent&&(yl(e),e.parent=r,r.children.push(e),Tl(e.fs,e))}e.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==F))}}class sl extends ol{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 sl(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==Bn?e.type==r:t.constructor!=jn||e.startsWith("data:"+(r||"")+";base64,"))}(t,r.data))return r.data;{const n=r.reader=wl(r.Reader,r.data,e),a=r.uncompressedSize||n.size;await Promise.all([wa(n),wa(t,a)]);const o=ft(e.signal),s=function(t,e,r,n){const{onstart:a,onprogress:o,onend:s}=r,{readable:i}=e;return t.data instanceof to||!a&&!o&&!s?i:Ge(i).pipeThrough(new Pr({onstart:a,onprogress:o,onend:s,size:e.size}),{signal:n})}(r,n,e,o),i=!ma(t)&&Boolean(e.preventClose);return r.uncompressedSize=n.size,await Ge(s).pipeTo(Ye(t.writable),{signal:o,preventClose:i,preventAbort:i}),t.getData?t.getData():t.writable}}isPasswordProtected(){return Boolean(this.data&&this.data.encrypted)}async checkPassword(t,e={}){const r=this;if(!r.isPasswordProtected())return!0;try{return await r.data.getData(null,Object.assign({},e,{password:t,checkPasswordOnly:!0})),!0}catch(t){if(t.message==se)return!1;throw t}}getText(t,e){return this.getData(new Wn(t),e)}getBlob(t,e){return this.getData(new Bn(t),e)}getData64URI(t,e){return this.getData(new jn(t),e)}getUint8Array(t){return this.getData(new la,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return Lt(await this.getUint8Array(t)).buffer}replaceBlob(t){Sl(this,{data:t,Reader:_n,Writer:Bn,uncompressedSize:t.size})}replaceText(t){Sl(this,{data:t,Reader:Pn,Writer:Wn,uncompressedSize:Ln(t)})}replaceData64URI(t){Sl(this,{data:t,Reader:Cn,Writer:jn,uncompressedSize:zl(t)})}replaceUint8Array(t){Sl(this,{data:t,Reader:ca,Writer:la,uncompressedSize:t.length})}replaceReadable(t){Sl(this,{data:null,Reader:pl(t),Writer:null,uncompressedSize:F})}}class il extends ol{constructor(t,e,r,n){super(t,e,r,n),this.directory=!0}clone(t){const e=this,r=new il(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 Il(this,t,{options:e},!0)}addText(t,e,r={}){return Il(this,t,{data:e,Reader:Pn,Writer:Wn,options:r,uncompressedSize:Ln(e)})}addBlob(t,e,r={}){return Il(this,t,{data:e,Reader:_n,Writer:Bn,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){return Il(this,t,{data:e,Reader:Cn,Writer:jn,options:r,uncompressedSize:zl(e)})}addUint8Array(t,e,r={}){return Il(this,t,{data:e,Reader:ca,Writer:la,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return Il(this,t,{data:e,Reader:class extends sa{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return Il(this,t,{Reader:pl(e),options:r})}addFileSystemEntry(t,e={}){return Rl(this,t,e)}addFileSystemHandle(t,e={}){return Rl(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),Il(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 _n(t),e)}importData64URI(t,e){return this.importZip(new Cn(t),e)}importUint8Array(t,e){return this.importZip(new ca(t),e)}importHttpContent(t,e){return this.importZip(new sa(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new Bn(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new jn(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new la,t)}async exportWritable(t=new WritableStream,e={}){return await this.exportZip({writable:t},e),t}exportFileSystemHandle(t,e={}){return async function(t,e,r){const{onstart:n,onprogress:a,onend:o}=r;vl(r.passThrough);const s=El(r.readerOptions),i=new AbortController,{signal:c}=i,l=function(t,e){if(!ft(t))return()=>{};if(t.aborted)return e.abort(t.reason),()=>{};const r=()=>e.abort(t.reason);return t.addEventListener("abort",r,{once:!0}),()=>t.removeEventListener("abort",r)}(r.signal,i),d=Object.assign({},r,s,{signal:c,onstart:F,onprogress:F,onend:F,preventClose:!1}),u=dl([t],t=>fl(t,d.passThrough)),f=[];let p=!1,m=0;try{n&&await Lr(n,u),await h(t,e),o&&await Lr(o,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 Lr(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=>!bl(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||bl(c.reason))return;pt(c)}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(al):t}f.push(e.getRelativeName(t))}}catch(r){p=!0,i.abort(new Error(al));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==I?(r=t,e=Object.assign({},r.options,e)):(await wa(t),r=new Vo(t,e)),vl(e.passThrough);const n=function(t){if(t===F)return Jc;if(tl.has(t))return t;throw new Error(Vc)}(e.duplicates),a=[],o=await r.getEntries(e);for(const t of o){let r=this;try{const o=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=o.pop();let i=!1;for(const t of o){const e=r;if(r=r.getChildByName(t),r){if(!r.directory){if(n==Qc){i=!0;break}if(n!=$c)throw new Error(Zc);this.fs.remove(r),r=new il(this.fs,t,{data:null},e),a.push(r)}}else r=new il(this.fs,t,{data:null},e),a.push(r)}if(i)continue;if(t.directory){let e=r;if(s){if(e=r.getChildByName(s),e&&!e.directory){if(n==Qc)continue;if(n!=$c)throw new Error(Zc);this.fs.remove(e),e=F}e||(e=new il(this.fs,s,{data:null},r),a.push(e))}e==this||e.data||(e.data=t)}else{const o=r.getChildByName(s);if(o){if(n==Qc)continue;if(n!=$c)throw new Error(Zc);this.fs.remove(o)}a.push(Il(r,s,{data:t,Reader:ml(Object.assign({},e)),uncompressedSize:e.passThrough?t.compressedSize:t.uncompressedSize,passThrough:e.passThrough}))}}catch(e){a.reverse().forEach(t=>this.fs.remove(t));try{e.cause={entry:t}}catch{}throw e}}return a}async exportZip(t,e={}){const r=this,n=Boolean(t)&&typeof t.add==I;e=Object.assign({},e),n||e.bufferedWrite!==F||(e.bufferedWrite=!0);const[a]=await Promise.all([hl(r,El(e.readerOptions)),n?F:wa(t)]),o=n?t:new Ei(t,e);return await async function(t,e,r,n,a){const{onstart:o,onprogress:s,onend:i,onentryprogress:c}=n,l=e,d=dl(e.children,t=>Al(t)?0:1);let u=0,f=0;if(o&&await Lr(o,r),n.bufferedWrite)await async function t(e){const r=(await Promise.allSettled(e.children.map(async e=>{await p(e),await t(e)}))).find(t=>"rejected"==t.status);if(r)throw r.reason}(e);else for(const t of e.getChildren({recursive:!0}))await p(t);async function p(e){if(Al(e))return;const{name:o,ke:i}=gl(e,l,n);let p=0;const m=await t.add(o,a.get(e),Object.assign(i,{onstart:F,onend:F,onprogress:async t=>{u+=t-p,p=t,s&&await Lr(s,u,r)}}));f++,c&&await Lr(c,f,d,m)}i&&await Lr(i,u)}(o,r,dl([r],ul),e,a),n?o:(await o.close(e.globalComment),t.getData?t.getData():t.writable)}async getExportedSize(r={}){const n=this;El((r=Object.assign({},r)).readerOptions),r.bufferedWrite===F&&(r.bufferedWrite=!0);const a=n.getChildren({recursive:!0}),o=a.filter(t=>!Al(t)).map(t=>{const{name:e,ke:a}=gl(t,n,r);return{name:e,size:t.directory?0:xl(t,kl(t,r)),options:a}}),s=!r.bufferedWrite||o.every(t=>!1!==t.options.keepOrder)&&a.every(t=>Al(t)||!t.children.length);return await async function(r,n,a,o){const s={options:r};if(ut(r[Q]))throw new Error(Qs);if(o!==F&&!(o instanceof Uint8Array))throw new Error(Os);const i=fc(o);if(i>e)throw new Error(Fs);const c=r[X],l=new Map,d=r[Y]===F?0:r[Y];let u=d,p=O;const m=[],w=new Set;for(const e of n){let{name:r}=e;const{size:n}=e,a=Object.assign({},e.options);ec(s,a,Za)&&!r.endsWith(k)&&(r+=k);const o=Fi(s,r,a);({name:r}=o);const{Re:i}=Oi(s,r,a);0==i.level||i.compressionMethod!==F||i.Fe||await Nr(Tt())||(i.level=0);const d=!ec(s,a,Za);if(d&&n===F)throw new Error(Qs);const{ur:f,Re:h}=Ii(s,d,n,i,a);if(d&&!i.Fe&&sc(h.compressionMethod,h.level))throw new Error(Qs);const y=Object.assign({},a,o.Re,i,h,{[X]:c}),b=Ci(y),g=Ni(y),x={je:b,Be:fc(b.Ie,g.Ue)};c&&ji(x,u);const E=d?f:0;l.set(r,Object.assign({},y,b,{offset:u,diskNumberStart:0,compressedSize:E}));const v=x.Be+E;m.push(v),w.add(Boolean(y.ye||y.uncompressedSize>=t||E>=t)),p=Math.min(p,v),u+=v}if(l.size>1&&(c||u-p>=t&&(w.size>1||Ui(m,d,!0)!=Ui(m,d,!1)))&&!a)throw new Error(Qs);const{Ke:h,Ye:y}=_i(l);let b=ec(s,r,Ba);if(u>=t||h>=t||l.size>=e){if(!1===b)throw new Error(Ks);b=!0}else b===F&&y&&(b=!0);return u-d+h+i+(b?98:f)}(r,o,s,r.globalComment)}getChildByName(t){const e=this.children;for(let r=0;r<e.length;r++){const n=e[r];if(n.name==t)return n}}getChildren(t={}){return function(t,e){const r=[],n=[t];let a=0;for(;a<n.length;)for(const t of n[a++].children)r.push(t),e&&n.push(t);return r}(this,t.recursive)}isPasswordProtected(){const t=this.children;for(let e=0;e<t.length;e++)if(t[e].isPasswordProtected())return!0;return!1}async checkPassword(t,e={}){const r=this.children;return!(await Promise.all(r.map(r=>r.checkPassword(t,e)))).includes(!1)}}class cl{constructor(){Fl(this)}get children(){return this.root.children}remove(t){yl(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(Gc);if(!e.directory)throw new Error(Kc);if(e.isDescendantOf(t))throw new Error(Hc);if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw new Error(qc)}else yl(t),t.parent=e,e.children.push(t),Tl(this,t)}}find(t){const e=t.split("/");let r=this.root;for(let t=0;r&&t<e.length;t++)r=r.directory?r.getChildByName(e[t]):F;return r||(r=this.entries.find(e=>e&&(e==this.root||e.isDescendantOf(this.root))&&e.getRelativeName()==t)),r}getById(t){return this.entries[t]}getChildByName(t){return this.root.getChildByName(t)}getChildren(t){return this.root.getChildren(t)}addDirectory(t,e){return this.root.addDirectory(t,e)}addText(t,e,r){return this.root.addText(t,e,r)}addBlob(t,e,r){return this.root.addBlob(t,e,r)}addData64URI(t,e,r){return this.root.addData64URI(t,e,r)}addUint8Array(t,e,r){return this.root.addUint8Array(t,e,r)}addHttpContent(t,e,r){return this.root.addHttpContent(t,e,r)}addReadable(t,e,r){return this.root.addReadable(t,e,r)}addFileSystemEntry(t,e){return this.root.addFileSystemEntry(t,e)}addFileSystemHandle(t,e){return this.root.addFileSystemHandle(t,e)}addFile(t,e){return this.root.addFile(t,e)}importBlob(t,e){return Ol(this,r=>r.importBlob(t,e))}importData64URI(t,e){return Ol(this,r=>r.importData64URI(t,e))}importUint8Array(t,e){return Ol(this,r=>r.importUint8Array(t,e))}importHttpContent(t,e){return Ol(this,r=>r.importHttpContent(t,e))}importReadable(t,e){return Ol(this,r=>r.importReadable(t,e))}importZip(t,e){return Ol(this,r=>r.importZip(t,e))}exportBlob(t){return this.root.exportBlob(t)}exportData64URI(t){return this.root.exportData64URI(t)}exportUint8Array(t){return this.root.exportUint8Array(t)}exportWritable(t,e){return this.root.exportWritable(t,e)}exportFileSystemHandle(t,e){return this.root.exportFileSystemHandle(t,e)}exportZip(t,e){return this.root.exportZip(t,e)}getExportedSize(t){return this.root.getExportedSize(t)}isPasswordProtected(){return this.root.isPasswordProtected()}checkPassword(t,e){return this.root.checkPassword(t,e)}}const ll={FS:cl,ZipDirectoryEntry:il,ZipFileEntry:sl};function dl(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 ul(t){return t.uncompressedSize}function fl(t,e){const{data:r}=t;return e&&r instanceof to?r.compressedSize:t.uncompressedSize}function pl(t){let e;return function(){if(e)throw new Error(Xc);return e=!0,{readable:t}}}function ml(t){return class extends In{constructor(t,e={}){super(),this.entry=t,this.options=e}async init(){const e=this,r=Object.assign({},t,e.options),{checkOverlappingEntry:n,checkOverlappingEntryOnly:a}=r,o=await e.entry.getData(new Bn,Object.assign(r,{checkPasswordOnly:!1,checkOverlappingEntry:a||n,checkOverlappingEntryOnly:!1,preventClose:!1}));e.data=o,e.Or=new _n(o),e.size=o.size,super.init()}readUint8Array(t,e){return this.Or.readUint8Array(t,e)}}}function wl(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function hl(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=wl(t.Reader,t.data,e);a.set(t,r);try{await wa(r)}catch(e){try{e.entryId=t.id,e.cause={entry:t}}catch{}throw e}r.size!==F&&(t.uncompressedSize=r.size,t.Dr=!1)})),a}function yl(t){if(t.parent){const e=t.parent.children;e.forEach((r,n)=>{r.id==t.id&&e.splice(n,1)})}}function bl(t){return Boolean(t)&&t.message==al}function gl(t,e,r){const n=r.relativePath?t.getRelativeName(e):t.getFullname(),a=t.options||{};let o={},s={};if(t.data instanceof to){const e=kl(t,r),n=a.lastModDate===F?r.lastModDate:a.lastModDate;({ke:o,Ae:s}=Di(t.data,e,n)),e&&(s.passThrough=!0)}const i=Object.assign({lastModDate:t.Fr},o,r,a,s,{directory:t.directory});if(!t.directory&&i.passThrough&&i.uncompressedSize===F)throw new Error(el);return{name:n,ke:i}}function xl(t,e){const{reader:r}=t;return r&&r.size!==F?r.size:t.Dr?F:fl(t,e)}function El(t){if(t&&(typeof t!=U||Array.isArray(t)))throw new Error(rl);return t&&vl(t.passThrough),t}function vl(t){if(wt(t)===ot)throw new Error(nl)}function Sl(t,e){const{uncompressedSize:r}=e;Object.assign(t,e,{reader:null,passThrough:F,uncompressedSize:r===F?0:r,Dr:r===F})}function zl(t){let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;return Math.floor(.75*(e-r))}function kl(t,e){const{readerOptions:r}=e;return Boolean(!t.directory&&(t.passThrough||r&&r.passThrough))}function Al(t){return t.directory&&null===t.data}function Rl(t,e,r){return async function t(e,n,a,o=""){if(n){const s=o?o+"/"+n.name:n.name;try{if((n.isFile||n.isDirectory)&&(n=await Dl(n)),"file"==n.kind){const t=await n.getFile();a.push(Il(e,t.name,{Reader:function(){return{readable:t.stream(),size:t.size}},options:Object.assign({},{lastModDate:new Date(t.lastModified)},r),uncompressedSize:t.size}))}else if("directory"==n.kind){const o=e.addDirectory(n.name,r);a.push(o);for await(const e of n.values())await t(o,e,a,s)}}catch(t){try{t.entryName===F&&(t.entryName=s)}catch{}throw t}}return a}(t,e,[])}async function Dl(t){const e={name:t.name};if(t.isFile&&(e.kind="file",e.getFile=()=>new Promise((e,r)=>t.file(e,r))),t.isDirectory){e.kind="directory";const r=await async function(t){const e=[];function r(t,n,a){t.readEntries(async o=>{if(o.length){for(const t of o)e.push(await Dl(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 Fl(t){t.entries=[],t.Rr=0,t.root=new il(t)}function Ol(t,e){const{entries:r,Rr:n,root:a}=t;return Fl(t),e(t.root).catch(e=>{throw Object.assign(t,{entries:r,Rr:n,root:a}),e})}function Tl(t,e){const r=[e];for(;r.length;){const e=r.pop();t.entries[e.id]=e;for(const t of e.children)r.push(t)}}function Il(t,e,r,n){if(t.directory){const a=Ul(e);return a&&(e=a.pop(),t=Cl(t,a)),n?new il(t.fs,e,r,t):new sl(t.fs,e,r,t)}throw new Error(Yc)}function Ul(t){if(t.includes("/")){const e=t.split("/").filter(t=>""!=t&&"."!=t);if(e.length)return e}}function Cl(t,e,r){return e.forEach(e=>{const n=t;if(t=t.getChildByName(e)){if(!t.directory)throw new Error(qc);if(r&&(t==r||t.isDescendantOf(r)))throw new Error(Hc)}else t=new il(n.fs,e,{data:null},n)}),t}let jl;function Ml(t){return t&&(jl||(jl=function(){const t=Object.create(null);for(const e of"application:0andrew-inset ez,2nodex anx,1pplixware aw,1tom!,4cat!,4serv! atomsrv,5vc!,0bbolin lin,0ccxml!,1dmi-capability cdmia,6ontainer cdmic,5domain cdmid,5object cdmio,5queue cdmiq,1u-seeme cu,0davmount!,1ocbook! dbk,1sptype tsp,2sc+der,4! xdssc,0ecmascript es ecma,1mma!,1nvoy evy,1pub+zip,1xi,0font-tdpfr pfr,1ractals fif,1uturesplash spl,0gml!,1px!,1xf,1zip gz tgz,0hta,1yperstudio stk,0inkml! ink inkml,2ternet-property-stream acx,1pfix,0java-archive jar,5serialized-object ser,5vm class,1sonml+json,0lost! lostxml,0m3g,1ac-binhex40 hqx,2ds!,2rc mrc,4xml! mrcx,2thematica nb ma mb,4ml! mathml mml,1box,1ediaservercontrol! mscml,2talink!,84! meta4,3s!,1ods!,1p21 m21 mp21,24 mp4s,1saccess mdb,2word doc dot wiz,1xf,0oda,1ebps-package! opf,1gg ogx,1lescript axs,1mdoc!,1nenote onetoc onetoc2 onetmp onepkg,1xps,0patch-ops-error! xer,1df,1gp-encrypted pgp,4keys key,4signature asc sig,1ics-rules prf,1kcs10 p10,47-mime p7m p7c,6signature p7s,48 p8,2ix-attr-cert ac,5crl crl,5pkipath pkipath,4cmp pki,1ls!,1ostscript ps ai eps epsi epsf eps2 eps3,1rs.cww cww,1skc! pskcxml,0rar,1df!,1eginfo! rif,2lax-ng-compact-syntax rnc,2source-lists! rl,e-diff! rld,1ls-services! rs,1pki-ghostbusters gbr,5manifest mft,5roa roa,1sd!,2s!,1tf,0sbml!,1cvp-cv-request scq,asponse scs,5vp-request spq,asponse spp,1dp,1et-payment-initiation setpay,4registration-initiation setreg,1hf!,1mil! smi smil,1parql-query rq,7results! srx,1rgs gram,4! grxml,2u!,1sdl!,2ml!,0tei! tei teicorpus,1hraud! tfi,1imestamped-data tsd,0vnd.3gpp.pic-bw-large plb,gsmall psb,gvar pvb,82.tcap tcap,5m.post-it-notes pwn,4accpac.simply.aso aso,iimp imp,6ucobol acu,9rp atc acutc,5dobe.air-application-installer-package+zip air,aformscentral.fcdt fcdt,bxp fxp fxpl,axdp! xdp,bfdf xfdf,5head.space ahead,5irzip.filesecure.azf azf,os azs,5mazon.ebook azw,6ericandynamics.acc acc,6iga.ami ami,5ndroid.package-archive apk,6ser-web-certificate-issue-initiation cii,efunds-transfer-initiation fti,6tix.game-component atx,5pple.installer! mpkg,ampegurl m3u8,5ristanetworks.swi swi,5straea-software.iota iota,5udiograph aep,4blueice.multipass mpm,5mi bmi,5usinessobjects rep,4chemdraw! cdxml,6ipnuts.karaoke-mmd mmd,5inderella cdy,5laymore cla,6oanto.rp9 rp9,7nk.c4group c4g c4d c4f c4p c4u,6uetrust.cartomobile-config c11amc,w-pkg c11amz,5ommonspace csp,6ntact.cmsg cdbcmsg,6smocaller cmc,5rick.clicker clkx,h.keyboard clkk,ipalette clkp,itemplate clkt,iwordbank clkw,7ticaltools.wbs! wbs,5tc-posml pml,5ups-ppd ppd,6rl.car car,9pcurl pcurl,4dart dart,6ta-vision.rdz rdz,5ebian.binary-package deb udeb,6ce.data uvf uvvf uvd uvvd,9ttml! uvt uvvt,9unspecified uvx uvvx,9zip uvz uvvz,6novo.fcselayout-link fe_launch,5na dna,5olby.mlp mlp,5pgraph dpg,5reamfactory dfac,5s-keypoint kpxx,5vb.ait ait,8service svc,5ynageo geo,4ecowin.chart mag,5nliven nml,5pson.esf esf,amsf msf,aquickanime qam,asalt slt,bsf ssf,5szigno3! es3 et3,5zpix-album ez2,apackage ez3,4fdf fdf,6sn.mseed mseed,9seed seed dataless,5lographit gph,6uxtime.clip ftc,5ramemaker fm frame maker book,6ogans.fnc fnc,cltf ltf,5sc.weblaunch fsc,5ujitsu.oasys oas,h2 oa2,h3 oa3,hgp fg5,hprs bh2,8xerox.ddd ddd,focuworks xdw,n.binder xbd,6zzysheet fzs,4genomatix.tuxedo txd,6ogebra.file ggb,dtool ggt,7metry-explorer gex gre,7next gxt,7plan g2w,7space g3w,5mx gmx,5oogle-earth.kml! kml,jz kmz,5rafeq gqf gqs,6oove-account gac,bhelp ghf,bidentity-message gim,cnjector grv,btool-message gtm,gtemplate tpl,bvcard vcg,4hal! hal,6ndheld-entertainment! zmm,5bci hbci,5he.lesson-player les,5p-hpgl hpgl,9id hpid,9s hps,7jlyt jlt,7pcl pcl,axl pclxl,5ydrostatix.sof-data sfd-hdstx,5zn-3d-crossword x3d,4ibm.minipay mpy,9odcap afp listafp list3820,8rights-management irm,8secure-container sc,5ccprofile icc icm,5gloader igl,5mmervision-ivp ivp,iu ivu,5nsors.igm igm,6tercon.formnet xpw xpx,9geo i2g,7u.qbo qbo,afx qfx,5punplugged.rcprofile rcprofile,5repository.package! irp,5s-xpr xpr,6ac.fcs fcs,4jam jam,5cp.javame.midlet-rms rms,5isp jisp,5oost.joda-archive joda,4kahootz ktz ktr,5de.karbon karbon,9chart chrt,9formula kfo,9ivio flw,9ontour kon,9presenter kpr kpt,9spread ksp,9word kwd kwt,5enameaapp htke,5idspiration kia,6nar kne knp,5oan skp skd skt skm,6dak-descriptor sse,4las.las! lasxml,5lamagraphics.life-balance.desktop lbd,vexchange! lbe,5otus-1-2-3 123,aapproach apr,afreelance pre,anotes nsf,aorganizer org,ascreencam scm,awordpro lwp,4macports.portpkg portpkg,5cd mcd,5edcalcdata mc1,7iastation.cdkey cdkey,5fer mwf,6mp mfm,5icrografx.flo flo,figx igx,6f mif,5obius.daf daf,cis dis,bmbk mbk,cqy mqy,csl msl,bplc plc,btxf txf,6phun.application mpn,bcertificate mpc,6zilla.xul! xul,5s-artgalry cil,7cab-compressed cab,7excel xls xlb xlt xlm xla xlc xlw,c.addin.macroenabled.12 xlam,dsheet.binary.macroenabled.12 xlsb,jmacroenabled.12 xlsm,dtemplate.macroenabled.12 xltm,7fontobject eot,7htmlhelp chm,7ims ims,7lrm lrm,7officetheme thmx,8utlook msg,7pki.seccat cat,ctl stl,acertstore sst,8owerpoint ppt pps pot ppa pwz,h.addin.macroenabled.12 ppam,ipresentation.macroenabled.12 pptm,islide.macroenabled.12 sldm,nshow.macroenabled.12 ppsm,itemplate.macroenabled.12 potm,8roject mpp mpt,7word.document.macroenabled.12 docm,ctemplate.macroenabled.12 dotm,aks wps wks wcm wdb,8pl wpl,7xpsdocument xps,6eq mseq,5usician mus,6vee.style msty,5ynfc taglet,4neurolanguage.nlu nlu,5itf ntf nitf,5oblenet-directory nnd,dsealer nns,dweb nnw,6kia.n-gage.data ngdat,hsymbian.install n-gage,aradio-preset rpst,ms rpss,6vadigm.edm edm,fx edx,ext ext,4oasis.opendocument.chart odc,s-template otc,ndatabase odb,nformula odf,u-template odft,ngraphics odg,v-template otg,nimage odi,s-template oti,npresentation odp,z-template otp,nspreadsheet ods,y-template ots,ntext odt,r-master odm otm,stemplate ott,sweb oth,5lpc-sugar xo,5ma.dd2! dd2,5penofficeorg.extension oxt,8xmlformats-officedocument.presentationml.presentation pptx,zresentationml.slide sldx,zresentationml.slideshow ppsx,zresentationml.template potx,yspreadsheetml.sheet xlsx,zpreadsheetml.template xltx,ywordprocessingml.document docx,zordprocessingml.template dotx,5sgeo.mapguide.package mgp,7i.dp dp,9subsystem esa,4palm pdb pqa oprc,6waafile paw,5g.format str,7osasli ei6,5icsel efif,5mi.widget wg,5ocketlearn plf,6werbuilder6 pbd,5reviewsystems.box box,6oteus.magazine mgz,5ublishare-delta-tree qps,5vi.ptid1 ptid,4quark.quarkxpress qxd qxt qwd qwt qxl qxb,4realvnc.bed bed,6cordare.musicxml mxl,m! musicxml,5ig.cryptonote cryptonote,5n-realmedia rm,g-vbr rmvb,5oute66.link66! link66,4sailingtracker.track st,5eemail see,6ma sema,7d semd,7f semf,5hana.informed.formdata ifm,ntemplate itp,jinterchange iif,jpackage ipk,5imtech-mindmapper twd twds,5maf mmf,7rt.teacher teacher,5olent.sdkm! sdkm sdkd,5potfire.dxp dxp,dsfs sfs,5qlite3 db sqlite sqlite3 db-wal sqlite-wal db-shm sqlite-shm,5tardivision.calc sdc,ihart sds,hdraw sda,himpress sdd,hmath sdf smf,hwriter sdw vor,n-global sgl,6epmania.package smzip,estepchart sm,5un.xml.calc sxc,g.template stc,cdraw sxd,g.template std,cimpress sxi,j.template sti,cmath sxm,cwriter sxw,i.global sxg,jtemplate stw,6s-calendar sus susp,5vd svd,5ymbian.install sis sisx,6ncml! xsm,a.dm+wbxml bdm,d! xdm,4tao.intent-module-archive tao,5cpdump.pcap pcap cap dmp,5mobile-livetv tmo,5rid.tpt tpt,7scape.mxs mxs,6ueapp tra,4ufdl ufd ufdl,5iq.theme utz,5majin umj,5nity unityweb,5oml! uoml,4vcx vcx,5isio vsd vst vss vsw vsdx vssx vstx vssm vstm,9nary vis,5sf vsf,4wap.sic sic,9lc slc,8wbxml wbxml,9mlc wmlc,bscriptc wmlsc,5ebturbo wtb,5olfram.player nbp,6rdperfect wpd,f5.1 wp5,5qd wqd,5t.stf stf,4xara xar,5fdl xfdl,4yamaha.hv-dic hvd,escript hvs,evoice hvp,bopenscoreformat osf,q.osfpvg! osfpvg,bsmaf-audio saf,gphrase spf,5ellowriver-custom-menu cmp,4zul zir zirz,5zazz.deck! zaz,1oicexml! vxml,0widget wgt,2nhlp hlp,1sdl!,2policy!,0x-123 wk,27z-compressed 7z,2abiword abw,3ce-compressed ace,3pple-diskimage dmg,3uthorware-bin aab x32 u32 vox,dmap aam,dseg aas,2bcpio bcpio,3ittorrent torrent,3lorb blb blorb,3zip bz,62 bz2 boz,2cbr cbr cba cbt cb7,4z cbz,3df cdf cda,4link vcd,3fs-compressed cfs,3hat chat,4ess-pgn pgn,3ompress z,4nference nsc,3pio cpio,3sh csh,2dgc-compressed dgc,3irector dir dxr cst cct cxt w3d fgd swa,3ms dms,3oom wad,3tbncx! ncx,5ook! dtb,5resource! res,3vi dvi,2eva eva,2font-bdf bdf,7ghostscript gsf,7linux-psf psf,7pcf pcf,7snf snf,7ttf ttf ttc,8ype1 pfa pfb pfm afm,3reearc arc,6mind mm,2gca-compressed gca,3lulx ulx,3numeric gnumeric,3o-sgf sgf,3ramps-xml gramps,5phing-calculator gcf,3tar gtar taz,2hdf hdf,3ttpd-eruby rhtml,8php phtml pht php,b-source phps,b3 php3,c-preprocessed php3p,b4 php4,b5 php5,2ica ica,3nfo info,4stall-instructions install,4ternet-signup ins isp,3phone iii,3so9660-image iso,2java-jnlp-file jnlp,3mol jmz,2killustrator kil,3rita kra krz,2latex latex,3yx lyx,3zh-compressed lzh lha,4x lzx,2maker frm fb fbdoc,3ie mie,3obipocket-ebook prc mobi,3s-application application,5installer msi,5shortcut lnk,5wmd wmd,5xbap xbap,4binder obd,4cardfile crd,5lip clp,4dos-program com exe bat dll,4mediaview mvb m13 m14,6tafile wmf wmz emf emz,5oney mny,4publisher pub,4schedule scd,4terminal trm,4write wri,2netcdf nc,3s-proxy-autoconfig pac dat,3wc nwc,3zb nzb,2object o,3z-application oza,2perfmon pma pmc pmr pmw,5l pm pl,3kcs12 p12 pfx,67-certificates p7b spc,creqresp p7r,3ython-code pyc pyo,2qgis qgs shp shx,3uicktimeplayer qtl,2redhat-package-manager rpm rpa,4search-info-systems ris,3uby rb,2sh sh,4ar shar,4ockwave-flash swf swfl,3ilverlight scr,d-app xap,3ql sql,3tuffit sit,9x sitx,3ubrip srt,3v4cpio sv4cpio,6rc sv4crc,2t3vm-image t3,3ar tar,3ex-gf gf,6pk pk,6tfm tfm,5info texinfo texi,3gif obj,3rash ~ % bak old sik,2ustar ustar,2wais-source src,3ingz wz,2x509-ca-cert crt der cer,3cf xcf,3fig fig,3liff! xlf,3pinstall xpi,3z xz,2zmachine z1 z2 z3 z4 z5 z6 z7 z8,1aml!,1cap-diff! xdf,1enc!,1html! xhtml xht,1ml xml xsl xsd xpdl,3-dtd dtd,1op!,1proc! xpl,1slt!,2pf!,1v! mxml xhvml xvml xvm,0yaml yaml yml,2ng,1in!,1nd.ms-pkipko pko,0zip;audio:0aac,1dpcm adp,1iff aiff aif aff,1mr,3-wb awb,1nnodex axa,0basic au snd,0flac,0midi mid midi kar rmi,1p4 mp4a,2eg mpga mpega mp3 m4a mp2a m2a m3a,4url m3u,0ogg oga ogg spx,1pus,0prs.sid sid,0s3m,1ilk sil,0vnd.dece.audio uva uvva,5igital-winds eol,5ra dra,5ts dts,7.hd dtshd,4lucent.voice lvp,4ms-playready.media.pya pya,4nuera.ecelp4800 ecelp4800,f7470 ecelp7470,f9600 ecelp9600,4rip rip,0wav,1ebm weba,0x-aiff aifc,2caf caf,2gsm gsm,2matroska mka,3s-wax wax,6ma wma,2pn-realaudio ram,e-plugin rmp,2realaudio ra,2sd2 sd2,1m;chemical:0x-alchemy alc,2cache cac cache,7-csf csf,5tvs-binary cbin cascii ctab,3dx cdx,3hem3d c3d,3if cif,3mdf cmdf,4l cml,3ompass cpa,3rossfire bsd,3sml csml csm,3tx ctx,3xf cxf cef,2embl-dl-nucleotide emb embl,2gamess-input inp gam gamin,4ussian-checkpoint fch fchk,cube cub,binput gau gjc gjf,blog gal,3cg8-sequence gcg,3enbank gen,2hin hin,2isostar istr ist,2jcamp-dx jdx dx,2kinemage kin,2macmolecule mcm,5romodel-input mmod,3dl-molfile mol,6rdfile rd,7xnfile rxn,6sdfile sd,6tgf tgf,3mcif mcif,3ol2 mol2,5conn-Z b,4pac-graph gpt,8input mop mopcrt zmt,8out moo,2ncbi-asn1 asn,b-ascii prt ent,cbinary val,2rosdal ros,2swissprot sw,2vamas-iso14976 vms,3md vmd,2xtel xtel,3yz xyz;font:0otf,0woff,42;image:0avif avif avifs,0bmp,0cgm,1is-cod cod,0g3fax g3,1if,0heic heif heic,0ief,0jpeg jpeg jpg jpe jfif jfif-tbnl jif,0ktx,0pcx,1jpeg pjpg,1ng,1rs.btif btif,0sgi,1vg! svg svgz,0tiff tiff tif,0vnd.adobe.photoshop psd,4dece.graphic uvi uvvi uvg uvvg,5jvu djvu djv,5wg dwg,5xf dxf,4fastbidsheet fbs,5px fpx,5st fst,5ujixerox.edmics-mmr mmr,lrlc rlc,4ms-modi mdi,7photo wdp,4net-fpx npx,4wap.wbmp wbmp,4xiff xif,0webp,0x-3ds 3ds,2adobe-dng dng,2canon-cr2 cr2,aw crw,3mu-raster ras,4x cmx,3oreldraw cdr,bpattern pat,btemplate cdt,7photopaint cpt,2epson-erf erf,2freehand fh fhc fh4 fh5 fh7,3uji-raf raf,2icns icns,4on ico,2jg art,3ng jng,2kodak-dcr dcr,8k25 k25,9dc kdc,2minolta-mrw mrw,2nikon-nef nef,2olympus-orf orf,2panasonic-raw raw rw2 rwl,3entax-pef pef ptx,3ict pic pct,3ortable-anymap pnm,bbitmap pbm,bgraymap pgm,bpixmap ppm,2rgb rgb,2sigma-x3f x3f,3ony-arw arw,7sr2 sr2,9f srf,2tga tga,2xbitmap xbm,3pixmap xpm,3windowdump xwd;message:0rfc822 eml mime mht mhtml nws;model:0iges igs iges,0mesh msh mesh silo,0vnd.collada! dae,4dwf dwf,4gdl gdl,5tw gtw,4mts mts,4usdz+zip usdz,4vtu vtu,1rml wrl vrml,0x3d+binary x3db x3dbz,4vrml x3dv x3dvz,3! x3dz;text:0cache-manifest manifest appcache,2lendar ics icz ifb,1ss,2v,0h323 323,1tml html htm shtml stm,0iuls uls,0javascript js,1son,0markdown md markdown mdown markdn,0n3,0plain txt text brf conf def list log in bas diff ksh,1rs.lines.tag dsc,0richtext rtx,0scriptlet sct wsc,1gml sgml sgm,0tab-separated-values tsv,1exmacs tm,1roff t tr roff man me ms,1urtle ttl,0uri-list uri uris urls,0vcard,1nd.curl curl,8.dcurl dcurl,9mcurl mcurl,9scurl scurl,4dvb.subtitle sub,4fly fly,5mi.flexstor flx,4graphviz gv,4in3d.3dml 3dml,9spot spot,4sun.j2me.app-descriptor jad,4wap.si si,9l sl,8wml wml,bscript wmls,0webviewhtml htt,0x-asm s asm,2bibtex bib,3oo boo,2c c h dic,3++hdr h++ hpp hxx hh,5src c++ cpp cxx cc,3omponent htc,2diff patch,3src d,2fortran f for f77 f90,2haskell hs,2java java,2literate-haskell lhs,2moc moc,2nfo nfo,2opml opml,2pascal p pas pp inc,3cs-gcd gcd,3ython py,2scala scala,3etext etx,3fv sfv,2tcl tcl tk,3ex tex ltx sty cls,2uuencode uu,2vcalendar vcs,5rd vcf;video:03gpp 3gp,42 3g2,0annodex axv,0dl,1v dif dv,0fli,0gl,0h261,33,34,0jpeg jpgv,2m jpm jpgm,0mj2 mj2 mjp2,1p2t ts,24 mp4 mp4v mpg4,2eg mpeg mpg mpe m1v m2v mp2 mpa mpv2,0ogg ogv,0quicktime qt mov,0vnd.dece.hd uvh uvvh,9mobile uvm uvvm,9pd uvp uvvp,9sd uvs uvvs,9video uvv uvvv,5vb.file dvb,4fvt fvt,4mpegurl mxu m4u,5s-playready.media.pyv pyv,4uvvu.mp4 uvu uvvu,4vivo viv,0webm,0x-f4v f4v,3lv flv,2la-asf lsf lsx,2m4v m4v,3atroska mpv mkv mk3d mks,3ng mng,3s-asf asf asx asr,5vob vob,5wm wm,7v wmv,7x wmx,6vx wvx,4video avi,2sgi-movie movie,3mv smv;x-conference:0x-cooltalk ice;x-world:0x-vrml vrm flr wrz xaf xof".split(";")){const r=e.indexOf(":"),n=e.slice(0,r);let a="";for(const o of e.slice(r+1).split(",")){const e=o.split(" "),r=a.slice(0,Number.parseInt(e[0][0],36))+e[0].slice(1);a=r;const s=r.replace(/!/g,"+xml"),i=e.length>1?e.slice(1):[s.split("+")[0]];for(const e of i)t[e]=n+"/"+s}}return t}()),jl)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{_n as BlobReader,Bn as BlobWriter,Cn as Data64URIReader,jn as Data64URIWriter,dt as ERR_ABORTED,wo as ERR_AMBIGUOUS_ARCHIVE,Hc as ERR_ANCESTOR_ENTRY,no as ERR_BAD_FORMAT,so as ERR_CENTRAL_DIRECTORY_NOT_FOUND,Ds as ERR_DUPLICATED_NAME,Zc as ERR_DUPLICATE_IMPORTED_ENTRY,lo as ERR_ENCRYPTED,ho as ERR_ENCRYPTED_CENTRAL_DIRECTORY,mo as ERR_ENTRY_DATA_OUT_OF_BOUNDS,qc as ERR_ENTRY_EXISTS,oo as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,ao as ERR_EOCDR_NOT_FOUND,co as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,gn as ERR_HTTP_RANGE,xn as ERR_HTTP_RESOURCE_CHANGED,bn as ERR_HTTP_STATUS,ie as ERR_INVALID_AUTHENTICATION_CODE,xt as ERR_INVALID_BASE_URI,Xe as ERR_INVALID_CODEC_DEFINITION,Qe as ERR_INVALID_CODEC_MODULE,Fs as ERR_INVALID_COMMENT,Os as ERR_INVALID_COMMENT_TYPE,dr as ERR_INVALID_COMPRESSED_DATA,ur as ERR_INVALID_CRC32,Us as ERR_INVALID_DATE,Vc as ERR_INVALID_DUPLICATES,Ms as ERR_INVALID_ENCRYPTION_STRENGTH,ui as ERR_INVALID_ENTRY,Ts as ERR_INVALID_ENTRY_COMMENT,Is as ERR_INVALID_ENTRY_COMMENT_TYPE,Cs as ERR_INVALID_ENTRY_NAME,Ps as ERR_INVALID_EXTRAFIELD,qs as ERR_INVALID_EXTRAFIELD_DATA,Ws as ERR_INVALID_EXTRAFIELD_DATA_TYPE,Ls as ERR_INVALID_EXTRAFIELD_TYPE,go as ERR_INVALID_FILENAME_VALIDATION,st as ERR_INVALID_FUNCTION_OPTION,ni as ERR_INVALID_GID,li as ERR_INVALID_LEVEL,xo as ERR_INVALID_MAX_APPENDED_DATA_SIZE,gt as ERR_INVALID_MAX_WORKERS,ii as ERR_INVALID_MSDOS_ATTRIBUTES,ci as ERR_INVALID_MSDOS_DATA,se as ERR_INVALID_PASSWORD,ct as ERR_INVALID_PASSWORD_TYPE,el as ERR_INVALID_PASS_THROUGH,lt as ERR_INVALID_PASS_THROUGH_VALUE,ti as ERR_INVALID_READER,rl as ERR_INVALID_READER_OPTIONS,it as ERR_INVALID_SIGNAL,di as ERR_INVALID_SIGNATURE_DATA,bo as ERR_INVALID_STRICTNESS,ri as ERR_INVALID_UID,lr as ERR_INVALID_UNCOMPRESSED_SIZE,oi as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,si as ERR_INVALID_UNIX_ID_SIZE,ai as ERR_INVALID_UNIX_MODE,Et as ERR_INVALID_URI,js as ERR_INVALID_VERSION,En as ERR_ITERATOR_COMPLETED_TOO_SOON,io as ERR_LOCAL_FILE_HEADER_NOT_FOUND,po as ERR_OVERLAPPING_ENTRY,Yc as ERR_PARENT_NOT_DIRECTORY,Xc as ERR_READABLE_CONSUMED,Je as ERR_RESERVED_COMPRESSION_METHOD,Gc as ERR_ROOT_DIRECTORY_NOT_MOVABLE,fo as ERR_SPLIT_ZIP_FILE,Kc as ERR_TARGET_NOT_DIRECTORY,Xs as ERR_UNDEFINED_COMPRESSION_METHOD,Js as ERR_UNDEFINED_CRC32,$s as ERR_UNDEFINED_READER,Ys as ERR_UNDEFINED_UNCOMPRESSED_SIZE,Qs as ERR_UNDETERMINED_SIZE,yo as ERR_UNSAFE_FILENAME,$e as ERR_UNSUPPORTED_COMPRESSION,Ac as ERR_UNSUPPORTED_CONTEXT,le as ERR_UNSUPPORTED_CRYPTO_API,uo as ERR_UNSUPPORTED_ENCRYPTION,Bs as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,Ns as ERR_UNSUPPORTED_ENCRYPTION_USDZ,Ks as ERR_UNSUPPORTED_FORMAT,nl as ERR_UNSUPPORTED_PASS_THROUGH_VALUE,_s as ERR_UNSUPPORTED_SPLIT_USDZ,Eo as ERR_UNSUPPORTED_UINT64,Ir as ERR_WORKER_STARTUP_TIMEOUT,vn as ERR_WRITER_NOT_INITIALIZED,Sn as ERR_WRITER_SIZE_NOT_WRITABLE,fi as ERR_ZIP_CRYPTO_LAST_MOD_DATE,ei as ERR_ZIP_NOT_EMPTY,ia as HttpRangeReader,sa as HttpReader,In as Reader,da as SplitDataReader,ua as SplitDataWriter,Pn as TextReader,Wn as TextWriter,ca as Uint8ArrayReader,la as Uint8ArrayWriter,bc as VERSION,Do as WARNING_APPENDED_DATA,mi as WARNING_CLAMPED_LAST_MODIFICATION_DATE,zo as WARNING_COMPRESSED_PATCHED_DATA,pi as WARNING_COMPRESSION_UNAVAILABLE,Io as WARNING_DUPLICATE_FILENAME,ko as WARNING_MALFORMED_EXTRA_FIELD,Mo as WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG,No as WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD,_o as WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES,jo as WARNING_MISMATCHED_LOCAL_FILE_HEADER_FILENAME,Uo as WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY,Co as WARNING_MULTIPLE_END_OF_CENTRAL_DIRECTORY,Oo as WARNING_PREPENDED_CENTRAL_DIRECTORY,Fo as WARNING_PREPENDED_DATA,To as WARNING_TRAILING_CENTRAL_DIRECTORY_DATA,So as WARNING_UNKNOWN_VERSION,Ao as WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA,vo as WARNING_UNSORTED_CENTRAL_DIRECTORY,Ro as WARNING_WRAPPED_ENTRIES_COUNT,Un as Writer,il as ZipDirectoryEntry,ol as ZipEntry,cl as ZipFS,sl as ZipFileEntry,Vo as ZipReader,Ho as ZipReaderStream,Ei as ZipWriter,vi as ZipWriterStream,Ct as configure,Sc as createBlobTempStream,Ec as createOPFSTempStream,Rc as createSyncAccessHandleTempStream,ll as fs,Ml as getMimeType,sr as getRegisteredCodecs,hc as getSupportedCompressionMethods,Go as isZipFile,nr as registerCodec,Bt as resetConfiguration,Wc as terminateWorkers,ar as unregisterCodec};