diff --git a/build.sh b/build.sh index 12accd5..a7ae257 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -deno vendor "npm:single-file-core@1.5.14" +deno vendor "npm:single-file-core@1.5.15" echo " import { build } from 'npm:esbuild'; diff --git a/lib/single-file-bundle.js b/lib/single-file-bundle.js index b14ae16..99037a2 100644 --- a/lib/single-file-bundle.js +++ b/lib/single-file-bundle.js @@ -1 +1 @@ -const script = "var singlefile=(()=>{var Yn=Object.defineProperty;var Qw=Object.getOwnPropertyDescriptor;var ef=Object.getOwnPropertyNames;var tf=Object.prototype.hasOwnProperty;var se=(e,t)=>{for(var a in t)Yn(e,a,{get:t[a],enumerable:!0})},af=(e,t,a,o)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let i of ef(t))!tf.call(e,i)&&i!==a&&Yn(e,i,{get:()=>t[i],enumerable:!(o=Qw(t,i))||o.enumerable});return e};var of=e=>af(Yn({},\"__esModule\",{value:!0}),e);var A1={};se(A1,{SingleFile:()=>Kn,getPageData:()=>x1,helper:()=>Yi,init:()=>Gw,modules:()=>Fn,processors:()=>Ps,vendor:()=>Mn});var Ps={};se(Ps,{compression:()=>Ro,frameTree:()=>Uo,hooksFrames:()=>zo,lazy:()=>ra});var Ro={};se(Ro,{process:()=>Aa});var os={};se(os,{BlobReader:()=>ta,BlobWriter:()=>xi,Data64URIReader:()=>kr,Data64URIWriter:()=>vr,ERR_BAD_FORMAT:()=>ki,ERR_CENTRAL_DIRECTORY_NOT_FOUND:()=>cm,ERR_DUPLICATED_NAME:()=>wm,ERR_ENCRYPTED:()=>hm,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:()=>lm,ERR_EOCDR_NOT_FOUND:()=>sm,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:()=>mm,ERR_HTTP_RANGE:()=>Lo,ERR_INVALID_COMMENT:()=>fm,ERR_INVALID_ENCRYPTION_STRENGTH:()=>km,ERR_INVALID_ENTRY_COMMENT:()=>bm,ERR_INVALID_ENTRY_NAME:()=>ym,ERR_INVALID_EXTRAFIELD_DATA:()=>Sm,ERR_INVALID_EXTRAFIELD_TYPE:()=>vm,ERR_INVALID_PASSWORD:()=>Vr,ERR_INVALID_SIGNATURE:()=>Wr,ERR_INVALID_VERSION:()=>Pr,ERR_ITERATOR_COMPLETED_TOO_SOON:()=>Hd,ERR_LOCAL_FILE_HEADER_NOT_FOUND:()=>dm,ERR_SPLIT_ZIP_FILE:()=>Ir,ERR_UNSUPPORTED_COMPRESSION:()=>zr,ERR_UNSUPPORTED_ENCRYPTION:()=>um,ERR_UNSUPPORTED_FORMAT:()=>zi,HttpRangeReader:()=>Cr,HttpReader:()=>Ai,Reader:()=>bt,SplitDataReader:()=>jo,SplitDataWriter:()=>va,SplitZipReader:()=>eb,SplitZipWriter:()=>tb,TextReader:()=>So,TextWriter:()=>Sr,Uint8ArrayReader:()=>Tr,Uint8ArrayWriter:()=>Eo,Writer:()=>vo,ZipReader:()=>Ti,ZipReaderStream:()=>_r,ZipWriter:()=>Ea,ZipWriterStream:()=>Dr,configure:()=>Co,getMimeType:()=>pf,initReader:()=>Qr,initShimAsyncCodec:()=>gf,initStream:()=>Ct,initWriter:()=>es,readUint8Array:()=>ze,terminateWorkers:()=>Gf});var Cb={},{Array:Ft,Object:N,String:Lc,Number:xo,BigInt:Ie,Math:le,Date:ja,Map:Nr,Set:Rc,Response:Or,URL:Fr,Error:q,Uint8Array:D,Uint16Array:zc,Uint32Array:Br,DataView:aa,Blob:rd,Promise:Ne,TextEncoder:Ic,TextDecoder:sd,crypto:fo,btoa:_c,TransformStream:ue,ReadableStream:Ur,WritableStream:Ao,CompressionStream:Mc,DecompressionStream:Pc,navigator:$n,Worker:gi}=globalThis,we=4294967295,he=65535,ar=8,ld=0,cd=99,dd=67324752,Hr=134695760,nf=Hr,or=33639248,md=101010256,ir=101075792,hd=117853008,Qe=22,po=20,go=56,rf=Qe+po+go,ud=1,pd=39169,gd=10,wd=1,qr=21589,sf=28789,lf=25461,fd=6534,nr=1,cf=6,rr=8,sr=2048,lr=16,df=20,Dc=45,Nc=51,wi=\"/\",Oc=new ja(2107,11,31),Fc=new ja(1980,0,1),te=void 0,Bt=\"undefined\",xa=\"function\",Si=class{constructor(t){return class extends ue{constructor(a,o){let i=new t(o);super({transform(n,r){r.enqueue(i.append(n))},flush(n){let r=i.flush();r&&n.enqueue(r)}})}}}},mf=64,bd=2;try{typeof $n!=Bt&&$n.hardwareConcurrency&&(bd=$n.hardwareConcurrency)}catch{}var hf={chunkSize:512*1024,maxWorkers:bd,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:te,CompressionStreamNative:typeof Mc!=Bt&&Mc,DecompressionStreamNative:typeof Pc!=Bt&&Pc},Nt=N.assign({},hf);function Gr(){return Nt}function yd(e){return le.max(e.chunkSize,mf)}function Co(e){let{baseURL:t,chunkSize:a,maxWorkers:o,terminateWorkerTimeout:i,useCompressionStream:n,useWebWorkers:r,Deflate:s,Inflate:l,CompressionStream:c,DecompressionStream:d,workerScripts:m}=e;if(Pt(\"baseURL\",t),Pt(\"chunkSize\",a),Pt(\"maxWorkers\",o),Pt(\"terminateWorkerTimeout\",i),Pt(\"useCompressionStream\",n),Pt(\"useWebWorkers\",r),s&&(Nt.CompressionStream=new Si(s)),l&&(Nt.DecompressionStream=new Si(l)),Pt(\"CompressionStream\",c),Pt(\"DecompressionStream\",d),m!==te){let{deflate:h,inflate:u}=m;if((h||u)&&(Nt.workerScripts||(Nt.workerScripts={})),h){if(!Ft.isArray(h))throw new q(\"workerScripts.deflate must be an array\");Nt.workerScripts.deflate=h}if(u){if(!Ft.isArray(u))throw new q(\"workerScripts.inflate must be an array\");Nt.workerScripts.inflate=u}}}function Pt(e,t){t!==te&&(Nt[e]=t)}function uf(e){let t=()=>Fr.createObjectURL(new rd([`const{Array:e,Object:t,Number:n,Math:s,Error:r,Uint8Array:a,Uint16Array:i,Uint32Array:o,Int32Array:l,Map:c,DataView:h,Promise:f,TextEncoder:u,crypto:p,postMessage:d,TransformStream:g,ReadableStream:w,WritableStream:y,CompressionStream:v,DecompressionStream:b}=self,m=void 0,_=\"undefined\",S=\"function\";class k{constructor(e){return class extends g{constructor(t,n){const s=new e(n);super({transform(e,t){t.enqueue(s.append(e))},flush(e){const t=s.flush();t&&e.enqueue(t)}})}}}}const z=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;z[e]=t}class D{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,s=0|e.length;s>n;n++)t=t>>>8^z[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class C extends g{constructor(){let e;const t=new D;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new a(4);new h(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const x={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],s=x.getPartial(n);return 32===s?e.concat(t):x._shiftRight(t,s,0|n,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+x.getPartial(n)},clamp(e,t){if(32*e.length0&&t&&(e[n-1]=x.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>s.round(e/1099511627776)||32,_shiftRight(e,t,n,s){for(void 0===s&&(s=[]);t>=32;t-=32)s.push(n),n=0;if(0===t)return s.concat(e);for(let r=0;r>>t),n=e[r]<<32-t;const r=e.length?e[e.length-1]:0,a=x.getPartial(r);return s.push(x.partial(t+a&31,t+a>32?n:s.pop(),1)),s}},I={bytes:{fromBits(e){const t=x.bitLength(e)/8,n=new a(t);let s;for(let r=0;t>r;r++)3&r||(s=e[r/4]),n[r]=s>>>24,s<<=8;return n},toBits(e){const t=[];let n,s=0;for(n=0;n9007199254740991)throw new r(\"Cannot hash more than 2^53 - 1 bits\");const i=new o(n);let l=0;for(let e=t.blockSize+s-(t.blockSize+s&t.blockSize-1);a>=e;e+=t.blockSize)t._block(i.subarray(16*l,16*(l+1))),l+=1;return n.splice(0,16*l),t}finalize(){const e=this;let t=e._buffer;const n=e._h;t=x.concat(t,[x.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(s.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n}_f(e,t,n,s){return e>19?e>39?e>59?e>79?void 0:t^n^s:t&n|t&s|n&s:t^n^s:t&n|~t&s}_S(e,t){return t<>>32-e}_block(t){const n=this,r=n._h,a=e(80);for(let e=0;16>e;e++)a[e]=t[e];let i=r[0],o=r[1],l=r[2],c=r[3],h=r[4];for(let e=0;79>=e;e++){16>e||(a[e]=n._S(1,a[e-3]^a[e-8]^a[e-14]^a[e-16]));const t=n._S(5,i)+n._f(e,o,l,c)+h+a[e]+n._key[s.floor(e/20)]|0;h=c,c=l,l=n._S(30,o),o=i,i=t}r[0]=r[0]+i|0,r[1]=r[1]+o|0,r[2]=r[2]+l|0,r[3]=r[3]+c|0,r[4]=r[4]+h|0}},A={getRandomValues(e){const t=new o(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(s.random()>.5?1:-1))};for(let r,a=0;anew q.hmacSha1(I.bytes.toBits(e)),pbkdf2(e,t,n,s){if(n=n||1e4,0>s||0>n)throw new r(\"invalid params to pbkdf2\");const a=1+(s>>5)<<2;let i,o,l,c,f;const u=new ArrayBuffer(a),p=new h(u);let d=0;const g=x;for(t=I.bytes.toBits(t),f=1;(a||1)>d;f++){for(i=o=e.encrypt(g.concat(t,[f])),l=1;n>l;l++)for(o=e.encrypt(o),c=0;cd&&lr&&(e=(new n).update(e).finalize());for(let t=0;r>t;t++)s[0][t]=909522486^e[t],s[1][t]=1549556828^e[t];t._baseHash[0].update(s[0]),t._baseHash[1].update(s[1]),t._resultHash=new n(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){this._updated=!0,this._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}encrypt(e){if(this._updated)throw new r(\"encrypt on already updated hmac called!\");return this.update(e),this.digest(e)}}},R=typeof p!=_&&typeof p.getRandomValues==S,H=\"Invalid password\",P=\"Invalid signature\",B=\"zipjs-abort-check-password\";function K(e){return R?p.getRandomValues(e):A.getRandomValues(e)}const V=16,E={name:\"PBKDF2\"},U=t.assign({hash:{name:\"HMAC\"}},E),W=t.assign({iterations:1e3,hash:{name:\"SHA-1\"}},E),M=[\"deriveBits\"],N=[8,12,16],O=[16,24,32],F=10,L=[0,0,0,0],j=typeof p!=_,G=j&&p.subtle,X=j&&typeof G!=_,J=I.bytes,Q=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],s=t._tables[1],a=e.length;let i,o,l,c=1;if(4!==a&&6!==a&&8!==a)throw new r(\"invalid aes key size\");for(t._key=[o=e.slice(0),l=[]],i=a;4*a+28>i;i++){let e=o[i-1];(i%a==0||8===a&&i%a==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],i%a==0&&(e=e<<8^e>>>24^c<<24,c=c<<1^283*(c>>7))),o[i]=o[i-a]^e}for(let e=0;i;e++,i--){const t=o[3&e?i:i-4];l[e]=4>=i||4>e?t:s[0][n[t>>>24]]^s[1][n[t>>16&255]]^s[2][n[t>>8&255]]^s[3][n[255&t]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],s=t[4],r=[],a=[];let i,o,l,c;for(let e=0;256>e;e++)a[(r[e]=e<<1^283*(e>>7))^e]=e;for(let h=i=0;!n[h];h^=o||1,i=a[i]||1){let a=i^i<<1^i<<2^i<<3^i<<4;a=a>>8^255&a^99,n[h]=a,s[a]=h,c=r[l=r[o=r[h]]];let f=16843009*c^65537*l^257*o^16843008*h,u=257*r[a]^16843008*a;for(let n=0;4>n;n++)e[n][h]=u=u<<24^u>>>8,t[n][a]=f=f<<24^f>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new r(\"invalid aes block size\");const n=this._key[t],s=n.length/4-2,a=[0,0,0,0],i=this._tables[t],o=i[0],l=i[1],c=i[2],h=i[3],f=i[4];let u,p,d,g=e[0]^n[0],w=e[t?3:1]^n[1],y=e[2]^n[2],v=e[t?1:3]^n[3],b=4;for(let e=0;s>e;e++)u=o[g>>>24]^l[w>>16&255]^c[y>>8&255]^h[255&v]^n[b],p=o[w>>>24]^l[y>>16&255]^c[v>>8&255]^h[255&g]^n[b+1],d=o[y>>>24]^l[v>>16&255]^c[g>>8&255]^h[255&w]^n[b+2],v=o[v>>>24]^l[g>>16&255]^c[w>>8&255]^h[255&y]^n[b+3],b+=4,g=u,w=p,y=d;for(let e=0;4>e;e++)a[t?3&-e:e]=f[g>>>24]<<24^f[w>>16&255]<<16^f[y>>8&255]<<8^f[255&v]^n[b++],u=g,g=w,w=y,y=v,v=u;return a}},Y=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,s=255&e;255===t?(t=0,255===n?(n=0,255===s?s=0:++s):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=s}return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let s;if(!(s=t.length))return[];const r=x.bitLength(t);for(let r=0;s>r;r+=4){this.incCounter(n);const s=e.encrypt(n);t[r]^=s[0],t[r+1]^=s[1],t[r+2]^=s[2],t[r+3]^=s[3]}return x.clamp(t,r)}},Z=q.hmacSha1;let $=j&&X&&typeof G.importKey==S,ee=j&&X&&typeof G.deriveBits==S;class te extends g{constructor({password:e,rawPassword:n,signed:s,encryptionStrength:i,checkPasswordOnly:o}){super({start(){t.assign(this,{ready:new f((e=>this.resolveReady=e)),password:ae(e,n),signed:s,strength:i-1,pending:new a})},async transform(e,t){const n=this,{password:s,strength:i,resolveReady:l,ready:c}=n;s?(await(async(e,t,n,s)=>{const a=await re(e,t,n,oe(s,0,N[t])),i=oe(s,N[t]);if(a[0]!=i[0]||a[1]!=i[1])throw new r(H)})(n,i,s,oe(e,0,N[i]+2)),e=oe(e,N[i]+2),o?t.error(new r(B)):l()):await c;const h=new a(e.length-F-(e.length-F)%V);t.enqueue(se(n,e,h,0,F,!0))},async flush(e){const{signed:t,ctr:n,hmac:s,pending:i,ready:o}=this;if(s&&n){await o;const l=oe(i,0,i.length-F),c=oe(i,i.length-F);let h=new a;if(l.length){const e=ce(J,l);s.update(e);const t=n.update(e);h=le(J,t)}if(t){const e=oe(le(J,s.digest()),0,F);for(let t=0;F>t;t++)if(e[t]!=c[t])throw new r(P)}e.enqueue(h)}}})}}class ne extends g{constructor({password:e,rawPassword:n,encryptionStrength:s}){let r;super({start(){t.assign(this,{ready:new f((e=>this.resolveReady=e)),password:ae(e,n),strength:s-1,pending:new a})},async transform(e,t){const n=this,{password:s,strength:r,resolveReady:i,ready:o}=n;let l=new a;s?(l=await(async(e,t,n)=>{const s=K(new a(N[t]));return ie(s,await re(e,t,n,s))})(n,r,s),i()):await o;const c=new a(l.length+e.length-e.length%V);c.set(l,0),t.enqueue(se(n,e,c,l.length,0))},async flush(e){const{ctr:t,hmac:n,pending:s,ready:i}=this;if(n&&t){await i;let o=new a;if(s.length){const e=t.update(ce(J,s));n.update(e),o=le(J,e)}r.signature=le(J,n.digest()).slice(0,F),e.enqueue(ie(o,r.signature))}}}),r=this}}function se(e,t,n,s,r,i){const{ctr:o,hmac:l,pending:c}=e,h=t.length-r;let f;for(c.length&&(t=ie(c,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new a(t)).set(n,0)}return e})(n,h-h%V)),f=0;h-V>=f;f+=V){const e=ce(J,oe(t,f,f+V));i&&l.update(e);const r=o.update(e);i||l.update(r),n.set(le(J,r),f+s)}return e.pending=oe(t,f),n}async function re(n,s,r,i){n.password=null;const o=await(async(e,t,n,s,r)=>{if(!$)return q.importKey(t);try{return await G.importKey(\"raw\",t,n,!1,r)}catch(e){return $=!1,q.importKey(t)}})(0,r,U,0,M),l=await(async(e,t,n)=>{if(!ee)return q.pbkdf2(t,e.salt,W.iterations,n);try{return await G.deriveBits(e,t,n)}catch(s){return ee=!1,q.pbkdf2(t,e.salt,W.iterations,n)}})(t.assign({salt:i},W),o,8*(2*O[s]+2)),c=new a(l),h=ce(J,oe(c,0,O[s])),f=ce(J,oe(c,O[s],2*O[s])),u=oe(c,2*O[s]);return t.assign(n,{keys:{key:h,authentication:f,passwordVerification:u},ctr:new Y(new Q(h),e.from(L)),hmac:new Z(f)}),u}function ae(e,t){return t===m?(e=>{if(typeof u==_){const t=new a((e=unescape(encodeURIComponent(e))).length);for(let n=0;n>>24]),a=~e.crcKey2.get(),e.keys=[n,r,a]}function we(e){const t=2|e.keys[2];return ye(s.imul(t,1^t)>>>8)}function ye(e){return 255&e}function ve(e){return 4294967295&e}const be=\"deflate-raw\";class me extends g{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:s}){super({});const{compressed:r,encrypted:a,useCompressionStream:i,zipCrypto:o,signed:l,level:c}=e,f=this;let u,p,d=Se(super.readable);a&&!o||!l||(u=new C,d=De(d,u)),r&&(d=ze(d,i,{level:c,chunkSize:t},s,n)),a&&(o?d=De(d,new fe(e)):(p=new ne(e),d=De(d,p))),ke(f,d,(()=>{let e;a&&!o&&(e=p.signature),a&&!o||!l||(e=new h(u.value.buffer).getUint32(0)),f.signature=e}))}}class _e extends g{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:s}){super({});const{zipCrypto:a,encrypted:i,signed:o,signature:l,compressed:c,useCompressionStream:f}=e;let u,p,d=Se(super.readable);i&&(a?d=De(d,new he(e)):(p=new te(e),d=De(d,p))),c&&(d=ze(d,f,{chunkSize:t},s,n)),i&&!a||!o||(u=new C,d=De(d,u)),ke(this,d,(()=>{if((!i||a)&&o){const e=new h(u.value.buffer);if(l!=e.getUint32(0,!1))throw new r(P)}}))}}function Se(e){return De(e,new g({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ke(e,n,s){n=De(n,new g({flush:s})),t.defineProperty(e,\"readable\",{get:()=>n})}function ze(e,t,n,s,r){try{e=De(e,new(t&&s?s:r)(be,n))}catch(s){if(!t)return e;try{e=De(e,new r(be,n))}catch(t){return e}}return e}function De(e,t){return e.pipeThrough(t)}const Ce=\"data\",xe=\"close\";class Ie extends g{constructor(e,n){super({});const s=this,{codecType:r}=e;let a;r.startsWith(\"deflate\")?a=me:r.startsWith(\"inflate\")&&(a=_e);let i=0,o=0;const l=new a(e,n),c=super.readable,h=new g({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){t.assign(s,{inputSize:o})}}),f=new g({transform(e,t){e&&e.length&&(i+=e.length,t.enqueue(e))},flush(){const{signature:e}=l;t.assign(s,{signature:e,outputSize:i,inputSize:o})}});t.defineProperty(s,\"readable\",{get:()=>c.pipeThrough(h).pipeThrough(l).pipeThrough(f)})}}class Te extends g{constructor(e){let t;super({transform:function n(s,r){if(t){const e=new a(t.length+s.length);e.set(t),e.set(s,t.length),s=e,t=null}s.length>e?(r.enqueue(s.slice(0,e)),n(s.slice(e),r)):t=s},flush(e){t&&t.length&&e.enqueue(t)}})}}const Ae=new c,qe=new c;let Re,He=0,Pe=!0;async function Be(e){try{const{options:t,scripts:s,config:r}=e;if(s&&s.length)try{Pe?importScripts.apply(m,s):await Ke(s)}catch(e){Pe=!1,await Ke(s)}self.initCodec&&self.initCodec(),r.CompressionStreamNative=self.CompressionStream,r.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(r.CompressionStream=new k(self.Deflate)),self.Inflate&&(r.DecompressionStream=new k(self.Inflate));const a={highWaterMark:1},i=e.readable||new w({async pull(e){const t=new f((e=>Ae.set(He,e)));Ve({type:\"pull\",messageId:He}),He=(He+1)%n.MAX_SAFE_INTEGER;const{value:s,done:r}=await t;e.enqueue(s),r&&e.close()}},a),o=e.writable||new y({async write(e){let t;const s=new f((e=>t=e));qe.set(He,t),Ve({type:Ce,value:e,messageId:He}),He=(He+1)%n.MAX_SAFE_INTEGER,await s}},a),l=new Ie(t,r);Re=new AbortController;const{signal:c}=Re;await i.pipeThrough(l).pipeThrough(new Te(r.chunkSize)).pipeTo(o,{signal:c,preventClose:!0,preventAbort:!0}),await o.getWriter().close();const{signature:h,inputSize:u,outputSize:p}=l;Ve({type:xe,result:{signature:h,inputSize:u,outputSize:p}})}catch(e){Ee(e)}}async function Ke(e){for(const t of e)await import(t)}function Ve(e){let{value:t}=e;if(t)if(t.length)try{t=new a(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ee(e=new r(\"Unknown error\")){const{message:t,stack:n,code:s,name:a}=e;d({error:{message:t,stack:n,code:s,name:a}})}addEventListener(\"message\",(({data:e})=>{const{type:t,messageId:n,value:s,done:r}=e;try{if(\"start\"==t&&Be(e),t==Ce){const e=Ae.get(n);Ae.delete(n),e({value:new a(s),done:r})}if(\"ack\"==t){const e=qe.get(n);qe.delete(n),e()}t==xe&&Re.abort()}catch(e){Ee(e)}}));var Ue=a,We=i,Me=l,Ne=new Ue([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Oe=new Ue([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Fe=new Ue([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Le=(e,t)=>{for(var n=new We(31),s=0;31>s;++s)n[s]=t+=1<s;++s)for(var a=n[s];a$e;++$e){var et=(43690&$e)>>1|(21845&$e)<<1;et=(61680&(et=(52428&et)>>2|(13107&et)<<2))>>4|(3855&et)<<4,Ze[$e]=((65280&et)>>8|(255&et)<<8)>>1}var tt=(e,t,n)=>{for(var s=e.length,r=0,a=new We(t);s>r;++r)e[r]&&++a[e[r]-1];var i,o=new We(t);for(r=1;t>r;++r)o[r]=o[r-1]+a[r-1]<<1;if(n){i=new We(1<r;++r)if(e[r])for(var c=r<<4|e[r],h=t-e[r],f=o[e[r]-1]++<=f;++f)i[Ze[f]>>l]=c}else for(i=new We(s),r=0;s>r;++r)e[r]&&(i[r]=Ze[o[e[r]-1]++]>>15-e[r]);return i},nt=new Ue(288);for($e=0;144>$e;++$e)nt[$e]=8;for($e=144;256>$e;++$e)nt[$e]=9;for($e=256;280>$e;++$e)nt[$e]=7;for($e=280;288>$e;++$e)nt[$e]=8;var st=new Ue(32);for($e=0;32>$e;++$e)st[$e]=5;var rt=tt(nt,9,0),at=tt(nt,9,1),it=tt(st,5,0),ot=tt(st,5,1),lt=e=>{for(var t=e[0],n=1;nt&&(t=e[n]);return t},ct=(e,t,n)=>{var s=t/8|0;return(e[s]|e[s+1]<<8)>>(7&t)&n},ht=(e,t)=>{var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},ft=e=>(e+7)/8|0,ut=(e,t,n)=>((null==t||0>t)&&(t=0),(null==n||n>e.length)&&(n=e.length),new Ue(e.subarray(t,n))),pt=[\"unexpected EOF\",\"invalid block type\",\"invalid length/literal\",\"invalid distance\",\"stream finished\",\"no stream handler\",,\"no callback\",\"invalid UTF-8 data\",\"extra field too long\",\"date not in range 1980-2099\",\"filename too long\",\"stream finishing\",\"invalid zip data\"],dt=(e,t,n)=>{var s=new r(t||pt[e]);if(s.code=e,r.captureStackTrace&&r.captureStackTrace(s,dt),!n)throw s;return s},gt=(e,t,n)=>{n<<=7&t;var s=t/8|0;e[s]|=n,e[s+1]|=n>>8},wt=(e,t,n)=>{n<<=7&t;var s=t/8|0;e[s]|=n,e[s+1]|=n>>8,e[s+2]|=n>>16},yt=(e,t)=>{for(var n=[],s=0;se.f-t.f)),n.push({s:-1,f:25001});var o=n[0],l=n[1],c=0,h=1,f=2;for(n[0]={s:-1,f:o.f+l.f,l:o,r:l};h!=r-1;)o=n[n[c].fs;++s)a[s].s>u&&(u=a[s].s);var p=new We(u+1),d=vt(n[h-1],p,0);if(d>t){s=0;var g=0,w=d-t,y=1<p[t.s]-p[e.s]||e.f-t.f));r>s;++s){var v=a[s].s;if(p[v]<=t)break;g+=y-(1<>=w;g>0;){var b=a[s].s;p[b]=0&&g;--s){var m=a[s].s;p[m]==t&&(--p[m],++g)}d=t}return{t:new Ue(p),l:d}},vt=(e,t,n)=>-1==e.s?s.max(vt(e.l,t,n+1),vt(e.r,t,n+1)):t[e.s]=n,bt=e=>{for(var t=e.length;t&&!e[--t];);for(var n=new We(++t),s=0,r=e[0],a=1,i=e=>{n[s++]=e},o=1;t>=o;++o)if(e[o]==r&&o!=t)++a;else{if(!r&&a>2){for(;a>138;a-=138)i(32754);a>2&&(i(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(i(r),--a;a>6;a-=6)i(8304);a>2&&(i(a-3<<5|8208),a=0)}for(;a--;)i(r);a=1,r=e[o]}return{c:n.subarray(0,s),n:t}},mt=(e,t)=>{for(var n=0,s=0;s{var s=n.length,r=ft(t+2);e[r]=255&s,e[r+1]=s>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var a=0;s>a;++a)e[r+a+4]=n[a];return 8*(r+4+s)},St=(e,t,n,s,r,a,i,o,l,c,h)=>{gt(t,h++,n),++r[256];for(var f=yt(r,15),u=f.t,p=f.l,d=yt(a,15),g=d.t,w=d.l,y=bt(u),v=y.c,b=y.n,m=bt(g),_=m.c,S=m.n,k=new We(19),z=0;z4&&!C[Fe[I-1]];--I);var T,A,q,R,H=c+5<<3,P=mt(r,nt)+mt(a,st)+i,B=mt(r,u)+mt(a,g)+i+14+3*I+mt(k,C)+2*k[16]+3*k[17]+7*k[18];if(l>=0&&P>=H&&B>=H)return _t(t,h,e.subarray(l,l+c));if(gt(t,h,1+(P>B)),h+=2,P>B){T=tt(u,p,0),A=u,q=tt(g,w,0),R=g;var K=tt(C,x,0);for(gt(t,h,b-257),gt(t,h+5,S-1),gt(t,h+10,I-4),h+=14,z=0;I>z;++z)gt(t,h+3*z,C[Fe[z]]);h+=3*I;for(var V=[v,_],E=0;2>E;++E){var U=V[E];for(z=0;z15&&(gt(t,h,U[z]>>5&127),h+=U[z]>>12)}}}else T=rt,A=nt,q=it,R=st;for(z=0;o>z;++z){var M=s[z];if(M>255){wt(t,h,T[257+(W=M>>18&31)]),h+=A[W+257],W>7&&(gt(t,h,M>>23&31),h+=Ne[W]);var N=31&M;wt(t,h,q[N]),h+=R[N],N>3&&(wt(t,h,M>>5&8191),h+=Oe[N])}else wt(t,h,T[M]),h+=A[M]}return wt(t,h,T[256]),h+A[256]},kt=new Me([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),zt=new Ue(0),Dt=function(){function e(e,t){if(\"function\"==typeof e&&(t=e,e={}),this.ondata=t,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new Ue(98304),this.o.dictionary){var n=this.o.dictionary.subarray(-32768);this.b.set(n,32768-n.length),this.s.i=32768-n.length}}return e.prototype.p=function(e,t){this.ondata(((e,t,n,r,a)=>{if(!a&&(a={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),o=new Ue(i.length+e.length);o.set(i),o.set(e,i.length),e=o,a.w=i.length}return((e,t,n,r,a,i)=>{var o=i.z||e.length,l=new Ue(0+o+5*(1+s.ceil(o/7e3))+0),c=l.subarray(0,l.length-0),h=i.l,f=7&(i.r||0);if(t){f&&(c[0]=i.r>>3);for(var u=kt[t-1],p=u>>13,d=8191&u,g=(1<(e[t]^e[t+1]<C+2;++C){var A=m(C),q=32767&C,R=y[A];if(w[q]=R,y[A]=q,C>=I){var H=o-C;if((z>7e3||x>24576)&&(H>423||!h)){f=St(e,c,0,_,S,k,D,x,T,C-T,f),x=z=D=0,T=C;for(var P=0;286>P;++P)S[P]=0;for(P=0;30>P;++P)k[P]=0}var B=2,K=0,V=d,E=q-R&32767;if(H>2&&A==m(C-E))for(var U=s.min(p,H)-1,W=s.min(32767,C),M=s.min(258,H);W>=E&&--V&&q!=R;){if(e[C+B]==e[C+B-E]){for(var N=0;M>N&&e[C+N]==e[C+N-E];++N);if(N>B){if(B=N,K=E,N>U)break;var O=s.min(E,N-2),F=0;for(P=0;O>P;++P){var L=C-E+P&32767,j=L-w[L]&32767;j>F&&(F=j,R=L)}}}E+=(q=R)-(R=w[q])&32767}if(K){_[x++]=268435456|Xe[B]<<18|Ye[K];var G=31&Xe[B],X=31&Ye[K];D+=Ne[G]+Oe[X],++S[257+G],++k[X],I=C+B,++z}else _[x++]=e[C],++S[e[C]]}}for(C=s.max(C,I);o>C;++C)_[x++]=e[C],++S[e[C]];f=St(e,c,h,_,S,k,D,x,T,C-T,f),h||(i.r=7&f|c[f/8|0]<<3,f-=7,i.h=y,i.p=w,i.i=C,i.w=I)}else{for(C=i.w||0;o+h>C;C+=65535){var J=C+65535;o>J||(c[f/8|0]=h,J=o),f=_t(c,f+1,e.subarray(C,J))}i.i=o}return ut(l,0,0+ft(f)+0)})(e,null==t.level?6:t.level,null==t.mem?a.l?s.ceil(1.5*s.max(8,s.min(13,s.log(e.length)))):20:12+t.mem,0,0,a)})(e,this.o,0,0,this.s),t)},e.prototype.push=function(e,t){this.ondata||dt(5),this.s.l&&dt(4);var n=e.length+this.s.z;if(n>this.b.length){if(n>2*this.b.length-32768){var s=new Ue(-32768&n);s.set(this.b.subarray(0,this.s.z)),this.b=s}var r=this.b.length-this.s.z;this.b.set(e.subarray(0,r),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(r),32768),this.s.z=e.length-r+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=1&t,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2)},e.prototype.flush=function(){this.ondata||dt(5),this.s.l&&dt(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},e}(),Ct=function(){function e(e,t){\"function\"==typeof e&&(t=e,e={}),this.ondata=t;var n=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:n?n.length:0},this.o=new Ue(32768),this.p=new Ue(0),n&&this.o.set(n)}return e.prototype.e=function(e){if(this.ondata||dt(5),this.d&&dt(4),this.p.length){if(e.length){var t=new Ue(this.p.length+e.length);t.set(this.p),t.set(e,this.p.length),this.p=t}}else this.p=e},e.prototype.c=function(e){this.s.i=+(this.d=e||!1);var t=this.s.b,n=((e,t,n)=>{var r=e.length;if(!r||t.f&&!t.l)return n||new Ue(0);var a=!n,i=a||2!=t.i,o=t.i;a&&(n=new Ue(3*r));var l=e=>{var t=n.length;if(e>t){var r=new Ue(s.max(2*t,e));r.set(n),n=r}},c=t.f||0,h=t.p||0,f=t.b||0,u=t.l,p=t.d,d=t.m,g=t.n,w=8*r;do{if(!u){c=ct(e,h,1);var y=ct(e,h+1,3);if(h+=3,!y){var v=e[(T=ft(h)+4)-4]|e[T-3]<<8,b=T+v;if(b>r){o&&dt(0);break}i&&l(f+v),n.set(e.subarray(T,b),f),t.b=f+=v,t.p=h=8*b,t.f=c;continue}if(1==y)u=at,p=ot,d=9,g=5;else if(2==y){var m=ct(e,h,31)+257,_=ct(e,h+10,15)+4,S=m+ct(e,h+5,31)+1;h+=14;for(var k=new Ue(S),z=new Ue(19),D=0;_>D;++D)z[Fe[D]]=ct(e,h+3*D,7);h+=3*_;var C=lt(z),x=(1<D;){var T,A=I[ct(e,h,x)];if(h+=15&A,16>(T=A>>4))k[D++]=T;else{var q=0,R=0;for(16==T?(R=3+ct(e,h,3),h+=2,q=k[D-1]):17==T?(R=3+ct(e,h,7),h+=3):18==T&&(R=11+ct(e,h,127),h+=7);R--;)k[D++]=q}}var H=k.subarray(0,m),P=k.subarray(m);d=lt(H),g=lt(P),u=tt(H,d,1),p=tt(P,g,1)}else dt(1);if(h>w){o&&dt(0);break}}i&&l(f+131072);for(var B=(1<>4;if((h+=15&q)>w){o&&dt(0);break}if(q||dt(2),256>E)n[f++]=E;else{if(256==E){V=h,u=null;break}var U=E-254;if(E>264){var W=Ne[D=E-257];U=ct(e,h,(1<>4;if(M||dt(3),h+=15&M,P=Qe[N],N>3&&(W=Oe[N],P+=ht(e,h)&(1<w){o&&dt(0);break}i&&l(f+131072);var O=f+U;if(P>f){var F=0-P,L=s.min(P,O);for(0>F+f&&dt(3);L>f;++f)n[f]=(void 0)[F+f]}for(;O>f;++f)n[f]=n[f-P]}}t.l=u,t.p=V,t.b=f,t.f=c,u&&(c=1,t.m=d,t.d=p,t.n=g)}while(!c);return f!=n.length&&a?ut(n,0,f):n.subarray(0,f)})(this.p,this.s,this.o);this.ondata(ut(n,t,this.s.b),this.d),this.o=ut(n,this.s.b-32768),this.s.b=this.o.length,this.p=ut(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),xt=\"undefined\"!=typeof TextDecoder&&new TextDecoder;try{xt.decode(zt,{stream:!0})}catch(e){}function It(e,n,s){return class{constructor(r){const i=this;var o,l;o=r,l=\"level\",(typeof t.hasOwn===S?t.hasOwn(o,l):o.hasOwnProperty(l))&&r.level===m&&delete r.level,i.codec=new e(t.assign({},n,r)),s(i.codec,(e=>{if(i.pendingData){const t=i.pendingData;i.pendingData=new a(t.length+e.length);const{pendingData:n}=i;n.set(t,0),n.set(e,t.length)}else i.pendingData=new a(e)}))}append(e){return this.codec.push(e),r(this)}flush(){return this.codec.push(new a,!0),r(this)}};function r(e){if(e.pendingData){const t=e.pendingData;return e.pendingData=null,t}return new a}}const{Deflate:Tt,Inflate:At}=((e,t={},n)=>({Deflate:It(e.Deflate,t.deflate,n),Inflate:It(e.Inflate,t.inflate,n)}))({Deflate:Dt,Inflate:Ct},m,((e,t)=>e.ondata=t));self.initCodec=()=>{self.Deflate=Tt,self.Inflate=At};\n`],{type:\"text/javascript\"}));e({workerScripts:{inflate:[t],deflate:[t]}})}function pf(){return\"application/octet-stream\"}function gf(e,t={},a){return{Deflate:Bc(e.Deflate,t.deflate,a),Inflate:Bc(e.Inflate,t.inflate,a)}}function wf(e,t){return typeof N.hasOwn===xa?N.hasOwn(e,t):e.hasOwnProperty(t)}function Bc(e,t,a){return class{constructor(i){let n=this,r=s=>{if(n.pendingData){let l=n.pendingData;n.pendingData=new D(l.length+s.length);let{pendingData:c}=n;c.set(l,0),c.set(s,l.length)}else n.pendingData=new D(s)};wf(i,\"level\")&&i.level===te&&delete i.level,n.codec=new e(N.assign({},t,i)),a(n.codec,r)}append(i){return this.codec.push(i),o(this)}flush(){return this.codec.push(new D,!0),o(this)}};function o(i){if(i.pendingData){let n=i.pendingData;return i.pendingData=null,n}else return new D}}var kd=[];for(let e=0;e<256;e++){let t=e;for(let a=0;a<8;a++)t&1?t=t>>>1^3988292384:t=t>>>1;kd[e]=t}var ya=class{constructor(t){this.crc=t||-1}append(t){let a=this.crc|0;for(let o=0,i=t.length|0;o>>8^kd[(a^t[o])&255];this.crc=a}get(){return~this.crc}},Ei=class extends ue{constructor(){let t,a=new ya;super({transform(o,i){a.append(o),i.enqueue(o)},flush(){let o=new D(4);new aa(o.buffer).setUint32(0,a.get()),t.value=o}}),t=this}};function fi(e){if(typeof Ic==Bt){e=unescape(encodeURIComponent(e));let t=new D(e.length);for(let a=0;a0&&t&&(e[a-1]=De.partial(t,e[a-1]&2147483648>>t-1,1)),e},partial(e,t,a){return e===32?t:(a?t|0:t<<32-e)+e*1099511627776},getPartial(e){return le.round(e/1099511627776)||32},_shiftRight(e,t,a,o){for(o===void 0&&(o=[]);t>=32;t-=32)o.push(a),a=0;if(t===0)return o.concat(e);for(let r=0;r>>t),a=e[r]<<32-t;let i=e.length?e[e.length-1]:0,n=De.getPartial(i);return o.push(De.partial(t+n&31,t+n>32?a:o.pop(),1)),o}},ji={bytes:{fromBits(e){let a=De.bitLength(e)/8,o=new D(a),i;for(let n=0;n>>24,i<<=8;return o},toBits(e){let t=[],a,o=0;for(a=0;a9007199254740991)throw new q(\"Cannot hash more than 2^53 - 1 bits\");let n=new Br(a),r=0;for(let s=t.blockSize+o-(t.blockSize+o&t.blockSize-1);s<=i;s+=t.blockSize)t._block(n.subarray(16*r,16*(r+1))),r+=1;return a.splice(0,16*r),t}finalize(){let e=this,t=e._buffer,a=e._h;t=De.concat(t,[De.partial(1,1)]);for(let o=t.length+2;o&15;o++)t.push(0);for(t.push(le.floor(e._length/4294967296)),t.push(e._length|0);t.length;)e._block(t.splice(0,16));return e.reset(),a}_f(e,t,a,o){if(e<=19)return t&a|~t&o;if(e<=39)return t^a^o;if(e<=59)return t&a|t&o|a&o;if(e<=79)return t^a^o}_S(e,t){return t<>>32-e}_block(e){let t=this,a=t._h,o=Ft(80);for(let c=0;c<16;c++)o[c]=e[c];let i=a[0],n=a[1],r=a[2],s=a[3],l=a[4];for(let c=0;c<=79;c++){c>=16&&(o[c]=t._S(1,o[c-3]^o[c-8]^o[c-14]^o[c-16]));let d=t._S(5,i)+t._f(c,n,r,s)+l+o[c]+t._key[le.floor(c/20)]|0;l=s,s=r,r=t._S(30,n),n=i,i=d}a[0]=a[0]+i|0,a[1]=a[1]+n|0,a[2]=a[2]+r|0,a[3]=a[3]+s|0,a[4]=a[4]+l|0}};var Sd={};Sd.aes=class{constructor(e){let t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();let a=t._tables[0][4],o=t._tables[1],i=e.length,n,r,s,l=1;if(i!==4&&i!==6&&i!==8)throw new q(\"invalid aes key size\");for(t._key=[r=e.slice(0),s=[]],n=i;n<4*i+28;n++){let c=r[n-1];(n%i===0||i===8&&n%i===4)&&(c=a[c>>>24]<<24^a[c>>16&255]<<16^a[c>>8&255]<<8^a[c&255],n%i===0&&(c=c<<8^c>>>24^l<<24,l=l<<1^(l>>7)*283)),r[n]=r[n-i]^c}for(let c=0;n;c++,n--){let d=r[c&3?n:n-4];n<=4||c<4?s[c]=d:s[c]=o[0][a[d>>>24]]^o[1][a[d>>16&255]]^o[2][a[d>>8&255]]^o[3][a[d&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){let e=this._tables[0],t=this._tables[1],a=e[4],o=t[4],i=[],n=[],r,s,l,c;for(let d=0;d<256;d++)n[(i[d]=d<<1^(d>>7)*283)^d]=d;for(let d=r=0;!a[d];d^=s||1,r=n[r]||1){let m=r^r<<1^r<<2^r<<3^r<<4;m=m>>8^m&255^99,a[d]=m,o[m]=d,c=i[l=i[s=i[d]]];let h=c*16843009^l*65537^s*257^d*16843008,u=i[m]*257^m*16843008;for(let p=0;p<4;p++)e[p][d]=u=u<<24^u>>>8,t[p][m]=h=h<<24^h>>>8}for(let d=0;d<5;d++)e[d]=e[d].slice(0),t[d]=t[d].slice(0)}_crypt(e,t){if(e.length!==4)throw new q(\"invalid aes block size\");let a=this._key[t],o=a.length/4-2,i=[0,0,0,0],n=this._tables[t],r=n[0],s=n[1],l=n[2],c=n[3],d=n[4],m=e[0]^a[0],h=e[t?3:1]^a[1],u=e[2]^a[2],p=e[t?1:3]^a[3],g=4,k,f,E;for(let v=0;v>>24]^s[h>>16&255]^l[u>>8&255]^c[p&255]^a[g],f=r[h>>>24]^s[u>>16&255]^l[p>>8&255]^c[m&255]^a[g+1],E=r[u>>>24]^s[p>>16&255]^l[m>>8&255]^c[h&255]^a[g+2],p=r[p>>>24]^s[m>>16&255]^l[h>>8&255]^c[u&255]^a[g+3],g+=4,m=k,h=f,u=E;for(let v=0;v<4;v++)i[t?3&-v:v]=d[m>>>24]<<24^d[h>>16&255]<<16^d[u>>8&255]<<8^d[p&255]^a[g++],k=m,m=h,h=u,u=p,p=k;return i}};var ff={getRandomValues(e){let t=new Br(e.buffer),a=o=>{let i=987654321,n=4294967295;return function(){return i=36969*(i&65535)+(i>>16)&n,o=18e3*(o&65535)+(o>>16)&n,(((i<<16)+o&n)/4294967296+.5)*(le.random()>.5?1:-1)}};for(let o=0,i;o>24&255)===255){let t=e>>16&255,a=e>>8&255,o=e&255;t===255?(t=0,a===255?(a=0,o===255?o=0:++o):++a):++t,e=0,e+=t<<16,e+=a<<8,e+=o}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,t,a){let o;if(!(o=t.length))return[];let i=De.bitLength(t);for(let n=0;n>5)+1<<2,n,r,s,l,c,d=new ArrayBuffer(i),m=new aa(d),h=0,u=De;for(t=ji.bytes.toBits(t),c=1;h<(i||1);c++){for(n=r=e.encrypt(u.concat(t,[c])),s=1;si&&(e=new a().update(e).finalize());for(let n=0;nthis.resolveReady=r),password:Ld(t,a),signed:o,strength:i-1,pending:new D})},async transform(r,s){let l=this,{password:c,strength:d,resolveReady:m,ready:h}=l;c?(await Tf(l,d,c,et(r,0,bo[d]+2)),r=et(r,bo[d]+2),n?s.error(new q(Kr)):m()):await h;let u=new D(r.length-Dt-(r.length-Dt)%wa);s.enqueue(Cd(l,r,u,0,Dt,!0))},async flush(r){let{signed:s,ctr:l,hmac:c,pending:d,ready:m}=this;if(c&&l){await m;let h=et(d,0,d.length-Dt),u=et(d,d.length-Dt),p=new D;if(h.length){let g=ko(wt,h);c.update(g);let k=l.update(g);p=yo(wt,k)}if(s){let g=et(yo(wt,c.digest()),0,Dt);for(let k=0;kthis.resolveReady=n),password:Ld(t,a),strength:o-1,pending:new D})},async transform(n,r){let s=this,{password:l,strength:c,resolveReady:d,ready:m}=s,h=new D;l?(h=await Lf(s,c,l),d()):await m;let u=new D(h.length+n.length-n.length%wa);u.set(h,0),r.enqueue(Cd(s,n,u,h.length,0))},async flush(n){let{ctr:r,hmac:s,pending:l,ready:c}=this;if(s&&r){await c;let d=new D;if(l.length){let m=r.update(ko(wt,l));s.update(m),d=yo(wt,m)}i.signature=yo(wt,s.digest()).slice(0,Dt),n.enqueue(Xr(d,i.signature))}}}),i=this}};function Cd(e,t,a,o,i,n){let{ctr:r,hmac:s,pending:l}=e,c=t.length-i;l.length&&(t=Xr(l,t),a=If(a,c-c%wa));let d;for(d=0;d<=c-wa;d+=wa){let m=ko(wt,et(t,d,d+wa));n&&s.update(m);let h=r.update(m);n||s.update(h),a.set(yo(wt,h),d+o)}return e.pending=et(t,d),a}async function Tf(e,t,a,o){let i=await Td(e,t,a,et(o,0,bo[t])),n=et(o,bo[t]);if(i[0]!=n[0]||i[1]!=n[1])throw new q(Vr)}async function Lf(e,t,a){let o=jd(new D(bo[t])),i=await Td(e,t,a,o);return Xr(o,i)}async function Td(e,t,a,o){e.password=null;let i=await Rf(yf,a,Sf,!1,Ef),n=await zf(N.assign({salt:o},cr),i,8*(uo[t]*2+2)),r=new D(n),s=ko(wt,et(r,0,uo[t])),l=ko(wt,et(r,uo[t],uo[t]*2)),c=et(r,uo[t]*2);return N.assign(e,{keys:{key:s,authentication:l,passwordVerification:c},ctr:new Af(new xf(s),Ft.from(jf)),hmac:new Cf(l)}),c}async function Rf(e,t,a,o,i){if(Uc)try{return await To.importKey(e,t,a,o,i)}catch{return Uc=!1,ea.importKey(t)}else return ea.importKey(t)}async function zf(e,t,a){if(Hc)try{return await To.deriveBits(e,t,a)}catch{return Hc=!1,ea.pbkdf2(t,e.salt,cr.iterations,a)}else return ea.pbkdf2(t,e.salt,cr.iterations,a)}function Ld(e,t){return t===te?fi(e):t}function Xr(e,t){let a=e;return e.length+t.length&&(a=new D(e.length+t.length),a.set(e,0),a.set(t,e.length)),a}function If(e,t){if(t&&t>e.length){let a=e;e=new D(t),e.set(a,0)}return e}function et(e,t,a){return e.subarray(t,a)}function yo(e,t){return e.fromBits(t)}function ko(e,t){return e.toBits(t)}var fa=12,hr=class extends ue{constructor({password:t,passwordVerification:a,checkPasswordOnly:o}){super({start(){N.assign(this,{password:t,passwordVerification:a}),Rd(this,t)},transform(i,n){let r=this;if(r.password){let s=qc(r,i.subarray(0,fa));if(r.password=null,s[fa-1]!=r.passwordVerification)throw new q(Vr);i=i.subarray(fa)}o?n.error(new q(Kr)):n.enqueue(qc(r,i))}})}},ur=class extends ue{constructor({password:t,passwordVerification:a}){super({start(){N.assign(this,{password:t,passwordVerification:a}),Rd(this,t)},transform(o,i){let n=this,r,s;if(n.password){n.password=null;let l=jd(new D(fa));l[fa-1]=n.passwordVerification,r=new D(o.length+l.length),r.set(Gc(n,l),0),s=fa}else r=new D(o.length),s=0;r.set(Gc(n,o),s),i.enqueue(r)}})}};function qc(e,t){let a=new D(t.length);for(let o=0;o>>24]),i=~e.crcKey2.get(),e.keys=[a,o,i]}function zd(e){let t=e.keys[2]|2;return Id(le.imul(t,t^1)>>>8)}function Id(e){return e&255}function Vc(e){return e&4294967295}var Wc=\"deflate-raw\",pr=class extends ue{constructor(t,{chunkSize:a,CompressionStream:o,CompressionStreamNative:i}){super({});let{compressed:n,encrypted:r,useCompressionStream:s,zipCrypto:l,signed:c,level:d}=t,m=this,h,u,p=_d(super.readable);(!r||l)&&c&&(h=new Ei,p=ft(p,h)),n&&(p=Pd(p,s,{level:d,chunkSize:a},i,o)),r&&(l?p=ft(p,new ur(t)):(u=new mr(t),p=ft(p,u))),Md(m,p,()=>{let g;r&&!l&&(g=u.signature),(!r||l)&&c&&(g=new aa(h.value.buffer).getUint32(0)),m.signature=g})}},gr=class extends ue{constructor(t,{chunkSize:a,DecompressionStream:o,DecompressionStreamNative:i}){super({});let{zipCrypto:n,encrypted:r,signed:s,signature:l,compressed:c,useCompressionStream:d}=t,m,h,u=_d(super.readable);r&&(n?u=ft(u,new hr(t)):(h=new dr(t),u=ft(u,h))),c&&(u=Pd(u,d,{chunkSize:a},i,o)),(!r||n)&&s&&(m=new Ei,u=ft(u,m)),Md(this,u,()=>{if((!r||n)&&s){let p=new aa(m.value.buffer);if(l!=p.getUint32(0,!1))throw new q(Wr)}})}};function _d(e){return ft(e,new ue({transform(t,a){t&&t.length&&a.enqueue(t)}}))}function Md(e,t,a){t=ft(t,new ue({flush:a})),N.defineProperty(e,\"readable\",{get(){return t}})}function Pd(e,t,a,o,i){try{let n=t&&o?o:i;e=ft(e,new n(Wc,a))}catch{if(t)try{e=ft(e,new i(Wc,a))}catch{return e}else return e}return e}function ft(e,t){return e.pipeThrough(t)}var _f=\"message\",Mf=\"start\",Pf=\"pull\",Kc=\"data\",Df=\"ack\",Xc=\"close\",Dd=\"deflate\",Nd=\"inflate\",wr=class extends ue{constructor(t,a){super({});let o=this,{codecType:i}=t,n;i.startsWith(Dd)?n=pr:i.startsWith(Nd)&&(n=gr);let r=0,s=0,l=new n(t,a),c=super.readable,d=new ue({transform(h,u){h&&h.length&&(s+=h.length,u.enqueue(h))},flush(){N.assign(o,{inputSize:s})}}),m=new ue({transform(h,u){h&&h.length&&(r+=h.length,u.enqueue(h))},flush(){let{signature:h}=l;N.assign(o,{signature:h,outputSize:r,inputSize:s})}});N.defineProperty(o,\"readable\",{get(){return c.pipeThrough(d).pipeThrough(l).pipeThrough(m)}})}},fr=class extends ue{constructor(t){let a;super({transform:o,flush(i){a&&a.length&&i.enqueue(a)}});function o(i,n){if(a){let r=new D(a.length+i.length);r.set(a),r.set(i,a.length),i=r,a=null}i.length>t?(n.enqueue(i.slice(0,t)),o(i.slice(t),n)):a=i}}},Od=typeof gi!=Bt,wo=class{constructor(t,{readable:a,writable:o},{options:i,config:n,streamOptions:r,useWebWorkers:s,transferStreams:l,scripts:c},d){let{signal:m}=r;return N.assign(t,{busy:!0,readable:a.pipeThrough(new fr(n.chunkSize)).pipeThrough(new br(a,r),{signal:m}),writable:o,options:N.assign({},i),scripts:c,transferStreams:l,terminate(){return new Ne(h=>{let{worker:u,busy:p}=t;u?(p?t.resolveTerminated=h:(u.terminate(),h()),t.interface=null):h()})},onTaskFinished(){let{resolveTerminated:h}=t;h&&(t.resolveTerminated=null,t.terminated=!0,t.worker.terminate(),h()),t.busy=!1,d(t)}}),(s&&Od?Nf:Fd)(t,n)}},br=class extends ue{constructor(t,{onstart:a,onprogress:o,size:i,onend:n}){let r=0;super({async start(){a&&await Jn(a,i)},async transform(s,l){r+=s.length,o&&await Jn(o,r,i),l.enqueue(s)},async flush(){t.size=r,n&&await Jn(n,r)}})}};async function Jn(e,...t){try{await e(...t)}catch{}}function Fd(e,t){return{run:()=>Of(e,t)}}function Nf(e,t){let{baseURL:a,chunkSize:o}=t;if(!e.interface){let i;try{i=Uf(e.scripts[0],a,e)}catch{return Od=!1,Fd(e,t)}N.assign(e,{worker:i,interface:{run:()=>Ff(e,{chunkSize:o})}})}return e.interface}async function Of({options:e,readable:t,writable:a,onTaskFinished:o},i){try{let n=new wr(e,i);await t.pipeThrough(n).pipeTo(a,{preventClose:!0,preventAbort:!0});let{signature:r,inputSize:s,outputSize:l}=n;return{signature:r,inputSize:s,outputSize:l}}finally{o()}}async function Ff(e,t){let a,o,i=new Ne((h,u)=>{a=h,o=u});N.assign(e,{reader:null,writer:null,resolveResult:a,rejectResult:o,result:i});let{readable:n,options:r,scripts:s}=e,{writable:l,closed:c}=Bf(e.writable),d=bi({type:Mf,scripts:s.slice(1),options:r,config:t,readable:n,writable:l},e);d||N.assign(e,{reader:n.getReader(),writer:l.getWriter()});let m=await i;return d||await l.getWriter().close(),await c,m}function Bf(e){let t,a=new Ne(i=>t=i);return{writable:new Ao({async write(i){let n=e.getWriter();await n.ready,await n.write(i),n.releaseLock()},close(){t()},abort(i){return e.getWriter().abort(i)}}),closed:a}}var Yc=!0,$c=!0;function Uf(e,t,a){let o={type:\"module\"},i,n;typeof e==xa&&(e=e());try{i=new Fr(e,t)}catch{i=e}if(Yc)try{n=new gi(i)}catch{Yc=!1,n=new gi(i,o)}else n=new gi(i,o);return n.addEventListener(_f,r=>Hf(r,a)),n}function bi(e,{worker:t,writer:a,onTaskFinished:o,transferStreams:i}){try{let{value:n,readable:r,writable:s}=e,l=[];if(n&&(n.byteLength!f.busy);if(k)return yr(k),new wo(k,e,t,g);if(Ot.lengthZn.push({resolve:f,stream:e,workerOptions:t}))}function g(k){if(Zn.length){let[{resolve:f,stream:E,workerOptions:v}]=Zn.splice(0,1);f(new wo(k,E,v,g))}else k.worker?(yr(k),qf(k,t)):Ot=Ot.filter(f=>f!=k)}}function qf(e,t){let{config:a}=t,{terminateWorkerTimeout:o}=a;xo.isFinite(o)&&o>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{Ot=Ot.filter(i=>i!=e);try{await e.terminate()}catch{}},o))}function yr(e){let{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}async function Gf(){await Ne.allSettled(Ot.map(e=>(yr(e),e.terminate())))}var Ud=\"HTTP error \",Lo=\"HTTP Range not supported\",Hd=\"Writer iterator completed too soon\",Vf=\"text/plain\",Wf=\"Content-Length\",Kf=\"Content-Range\",Xf=\"Accept-Ranges\",Yf=\"Range\",$f=\"Content-Type\",Jf=\"HEAD\",$r=\"GET\",qd=\"bytes\",Zf=64*1024,Jr=\"writable\",ka=class{constructor(){this.size=0}init(){this.initialized=!0}},bt=class extends ka{get readable(){let t=this,{chunkSize:a=Zf}=t,o=new Ur({start(){this.chunkOffset=0},async pull(i){let{offset:n=0,size:r,diskNumberStart:s}=o,{chunkOffset:l}=this;i.enqueue(await ze(t,n+l,le.min(a,r-l),s)),l+a>r?i.close():this.chunkOffset+=a}});return o}},vo=class extends ka{constructor(){super();let t=this,a=new Ao({write(o){return t.writeUint8Array(o)}});N.defineProperty(t,Jr,{get(){return a}})}writeUint8Array(){}},kr=class extends bt{constructor(t){super();let a=t.length;for(;t.charAt(a-1)==\"=\";)a--;let o=t.indexOf(\",\")+1;N.assign(this,{dataURI:t,dataStart:o,size:le.floor((a-o)*.75)})}readUint8Array(t,a){let{dataStart:o,dataURI:i}=this,n=new D(a),r=le.floor(t/3)*4,s=atob(i.substring(r+o,le.ceil((t+a)/3)*4+o)),l=t-le.floor(r/4)*3;for(let c=l;c2?a.data+=_c(i):a.pending=i}getData(){return this.data+_c(this.pending)}},ta=class extends bt{constructor(t){super(),N.assign(this,{blob:t,size:t.size})}async readUint8Array(t,a){let o=this,i=t+a,r=await(t||ia&&(r=r.slice(t,i)),new D(r)}},xi=class extends ka{constructor(t){super();let a=this,o=new ue,i=[];t&&i.push([$f,t]),N.defineProperty(a,Jr,{get(){return o.writable}}),a.blob=new Or(o.readable,{headers:i}).blob()}getData(){return this.blob}},So=class extends ta{constructor(t){super(new rd([t],{type:Vf}))}},Sr=class extends xi{constructor(t){super(t),N.assign(this,{encoding:t,utf8:!t||t.toLowerCase()==\"utf-8\"})}async getData(){let{encoding:t,utf8:a}=this,o=await super.getData();if(o.text&&a)return o.text();{let i=new FileReader;return new Ne((n,r)=>{N.assign(i,{onload:({target:s})=>n(s.result),onerror:()=>r(i.error)}),i.readAsText(o,t)})}}},Er=class extends bt{constructor(t,a){super(),Gd(this,t,a)}async init(){await Vd(this,xr,Zc),super.init()}readUint8Array(t,a){return Wd(this,t,a,xr,Zc)}},jr=class extends bt{constructor(t,a){super(),Gd(this,t,a)}async init(){await Vd(this,Ar,Qc),super.init()}readUint8Array(t,a){return Wd(this,t,a,Ar,Qc)}};function Gd(e,t,a){let{preventHeadRequest:o,useRangeHeader:i,forceRangeRequests:n,combineSizeEocd:r}=a;a=N.assign({},a),delete a.preventHeadRequest,delete a.useRangeHeader,delete a.forceRangeRequests,delete a.combineSizeEocd,delete a.useXHR,N.assign(e,{url:t,options:a,preventHeadRequest:o,useRangeHeader:i,forceRangeRequests:n,combineSizeEocd:r})}async function Vd(e,t,a){let{url:o,preventHeadRequest:i,useRangeHeader:n,forceRangeRequests:r,combineSizeEocd:s}=e;if(Qf(o)&&(n||r)&&(typeof i>\"u\"||i)){let l=await t($r,e,Kd(e,s?-Qe:void 0));if(!r&&l.headers.get(Xf)!=qd)throw new q(Lo);{s&&(e.eocdCache=new D(await l.arrayBuffer()));let c,d=l.headers.get(Kf);if(d){let m=d.trim().split(/\\s*\\/\\s*/);if(m.length){let h=m[1];h&&h!=\"*\"&&(c=xo(h))}}c===te?await ed(e,t,a):e.size=c}}else await ed(e,t,a)}async function Wd(e,t,a,o,i){let{useRangeHeader:n,forceRangeRequests:r,eocdCache:s,size:l,options:c}=e;if(n||r){if(s&&t==l-Qe&&a==Qe)return s;let d=await o($r,e,Kd(e,t,a));if(d.status!=206)throw new q(Lo);return new D(await d.arrayBuffer())}else{let{data:d}=e;return d||await i(e,c),new D(e.data.subarray(t,t+a))}}function Kd(e,t=0,a=1){return N.assign({},Zr(e),{[Yf]:qd+\"=\"+(t<0?t:t+\"-\"+(t+a-1))})}function Zr({options:e}){let{headers:t}=e;if(t)return Symbol.iterator in t?N.fromEntries(t):t}async function Zc(e){await Xd(e,xr)}async function Qc(e){await Xd(e,Ar)}async function Xd(e,t){let a=await t($r,e,Zr(e));e.data=new D(await a.arrayBuffer()),e.size||(e.size=e.data.length)}async function ed(e,t,a){if(e.preventHeadRequest)await a(e,e.options);else{let i=(await t(Jf,e,Zr(e))).headers.get(Wf);i?e.size=xo(i):await a(e,e.options)}}async function xr(e,{options:t,url:a},o){let i=await fetch(a,N.assign({},t,{method:e,headers:o}));if(i.status<400)return i;throw i.status==416?new q(Lo):new q(Ud+(i.statusText||i.status))}function Ar(e,{url:t},a){return new Ne((o,i)=>{let n=new XMLHttpRequest;if(n.addEventListener(\"load\",()=>{if(n.status<400){let r=[];n.getAllResponseHeaders().trim().split(/[\\r\\n]+/).forEach(s=>{let l=s.trim().split(/\\s*:\\s*/);l[0]=l[0].trim().replace(/^[a-z]|-[a-z]/g,c=>c.toUpperCase()),r.push(l)}),o({status:n.status,arrayBuffer:()=>n.response,headers:new Nr(r)})}else i(n.status==416?new q(Lo):new q(Ud+(n.statusText||n.status)))},!1),n.addEventListener(\"error\",r=>i(r.detail?r.detail.error:new q(\"Network error\")),!1),n.open(e,t),a)for(let r of N.entries(a))n.setRequestHeader(r[0],r[1]);n.responseType=\"arraybuffer\",n.send()})}var Ai=class extends bt{constructor(t,a={}){super(),N.assign(this,{url:t,reader:a.useXHR?new jr(t,a):new Er(t,a)})}set size(t){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}readUint8Array(t,a){return this.reader.readUint8Array(t,a)}},Cr=class extends Ai{constructor(t,a={}){a.useRangeHeader=!0,super(t,a)}},Tr=class extends bt{constructor(t){super(),N.assign(this,{array:t,size:t.length})}readUint8Array(t,a){return this.array.slice(t,t+a)}},Eo=class extends vo{init(t=0){N.assign(this,{offset:0,array:new D(t)}),super.init()}writeUint8Array(t){let a=this;if(a.offset+t.length>a.array.length){let o=a.array;a.array=new D(o.length+t.length),a.array.set(o)}a.array.set(t,a.offset),a.offset+=t.length}getData(){return this.array}},jo=class extends bt{constructor(t){super(),this.readers=t}async init(){let t=this,{readers:a}=t;t.lastDiskNumber=0,t.lastDiskOffset=0,await Ne.all(a.map(async(o,i)=>{await o.init(),i!=a.length-1&&(t.lastDiskOffset+=o.size),t.size+=o.size})),super.init()}async readUint8Array(t,a,o=0){let i=this,{readers:n}=this,r,s=o;s==-1&&(s=n.length-1);let l=t;for(;l>=n[s].size;)l-=n[s].size,s++;let c=n[s],d=c.size;if(l+a<=d)r=await ze(c,l,a);else{let m=d-l;r=new D(a),r.set(await ze(c,l,m)),r.set(await i.readUint8Array(t+m,a-m,o),m)}return i.lastDiskNumber=le.max(s,i.lastDiskNumber),r}},va=class extends ka{constructor(t,a=4294967295){super();let o=this;N.assign(o,{diskNumber:0,diskOffset:0,size:0,maxSize:a,availableSize:a});let i,n,r,s=new Ao({async write(d){let{availableSize:m}=o;if(r)d.length>=m?(await l(d.slice(0,m)),await c(),o.diskOffset+=i.size,o.diskNumber++,r=null,await this.write(d.slice(m))):await l(d);else{let{value:h,done:u}=await t.next();if(u&&!h)throw new q(Hd);i=h,i.size=0,i.maxSize&&(o.maxSize=i.maxSize),o.availableSize=o.maxSize,await Ct(i),n=h.writable,r=n.getWriter(),await this.write(d)}},async close(){await r.ready,await c()}});N.defineProperty(o,Jr,{get(){return s}});async function l(d){let m=d.length;m&&(await r.ready,await r.write(d),i.size+=m,o.size+=m,o.availableSize-=m)}async function c(){n.size=i.size,await r.close()}}};function Qf(e){let{baseURL:t}=Gr(),{protocol:a}=new Fr(e,t);return a==\"http:\"||a==\"https:\"}async function Ct(e,t){if(e.init&&!e.initialized)await e.init(t);else return Ne.resolve()}function Qr(e){return Ft.isArray(e)&&(e=new jo(e)),e instanceof Ur&&(e={readable:e}),e}function es(e){e.writable===te&&typeof e.next==xa&&(e=new va(e)),e instanceof Ao&&(e={writable:e});let{writable:t}=e;return t.size===te&&(t.size=0),e instanceof va||N.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function ze(e,t,a,o){return e.readUint8Array(t,a,o)}var eb=jo,tb=va,Yd=\"\\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 \".split(\"\"),ab=Yd.length==256;function ob(e){if(ab){let t=\"\";for(let a=0;athis[a]=t[a])}},ki=\"File format is not recognized\",sm=\"End of central directory not found\",lm=\"End of Zip64 central directory locator not found\",cm=\"Central directory header not found\",dm=\"Local file header not found\",mm=\"Zip64 extra field not found\",hm=\"File contains encrypted entry\",um=\"Encryption method not supported\",zr=\"Compression method not supported\",Ir=\"Split zip file\",td=\"utf-8\",ad=\"cp437\",sb=[[em,we],[tm,we],[am,we],[Lr,he]],lb={[he]:{getValue:ge,bytes:4},[we]:{getValue:vi,bytes:8}},Ti=class{constructor(t,a={}){N.assign(this,{reader:Qr(t),options:a,config:Gr()})}async*getEntriesGenerator(t={}){let a=this,{reader:o}=a,{config:i}=a;if(await Ct(o),(o.size===te||!o.readUint8Array)&&(o=new ta(await new Or(o.readable).blob()),await Ct(o)),o.size=o.size&&(k=o.size-l-s-Qe,l=o.size-s-Qe),u!=h)throw new q(Ir);if(l<0)throw new q(ki);let E=0,v=await ze(o,l,s,p),A=Ae(v);if(s){let T=n.offset-s;if(ge(A,E)!=or&&l!=T){let x=l;l=T,k+=l-x,v=await ze(o,l,s,p),A=Ae(v)}}let b=n.offset-l-(o.lastDiskOffset||0);if(s!=b&&b>=0&&(s=b,v=await ze(o,l,s,p),A=Ae(v)),l<0||l>=o.size)throw new q(ki);let j=Be(a,t,\"filenameEncoding\"),C=Be(a,t,\"commentEncoding\");for(let T=0;Tx.getData(Fe,Pe,Ve),E=W;let{onprogress:V}=t;if(V)try{await V(T+1,g,new Sa(x))}catch{}yield Pe}let w=Be(a,t,\"extractPrependedData\"),y=Be(a,t,\"extractAppendedData\");return w&&(a.prependedData=f>0?await ze(o,0,f):new D),a.comment=d?await ze(o,c+Qe,d):new D,y&&(a.appendedData=m>>8&255:h>>>24&255),signature:h,compressed:c!=0,encrypted:b,useWebWorkers:Be(i,o,\"useWebWorkers\"),useCompressionStream:Be(i,o,\"useCompressionStream\"),transferStreams:Be(i,o,\"transferStreams\"),checkPasswordOnly:x},config:d,streamOptions:{signal:T,size:w,onstart:O,onprogress:H,onend:z}},F=0;try{({outputSize:F}=await Bd({readable:y,writable:M},P))}catch(U){if(!x||U.message!=Kr)throw U}finally{let U=Be(i,o,\"preventClose\");M.size+=F,!U&&!M.locked&&await M.getWriter().close()}return x?te:t.getData?t.getData():M}};function pm(e,t,a){let o=e.rawBitFlag=xe(t,a+2),i=(o&nr)==nr,n=ge(t,a+6);N.assign(e,{encrypted:i,version:xe(t,a),bitFlag:{level:(o&cf)>>1,dataDescriptor:(o&rr)==rr,languageEncodingFlag:(o&sr)==sr},rawLastModDate:n,lastModDate:pb(n),filenameLength:xe(t,a+22),extraFieldLength:xe(t,a+24)})}async function gm(e,t,a,o,i){let{rawExtraField:n}=t,r=t.extraField=new Nr,s=Ae(new D(n)),l=0;try{for(;lt[i]==n);for(let i=0,n=0;i=5&&(n.push(Ci),r.push(Rr));let s=1;n.forEach((l,c)=>{if(e.data.length>=s+4){let d=ge(o,s);t[l]=e[l]=new ja(d*1e3);let m=r[c];e[m]=d}s+=4})}async function ub(e,t,a,o,i){let n=new D(4),r=Ae(n);gb(r,0,t);let s=o+i;return await l(o)||await l(le.min(s,a));async function l(c){let d=a-c,m=await ze(e,d,c);for(let h=m.length-o;h>=0;h--)if(m[h]==n[0]&&m[h+1]==n[1]&&m[h+2]==n[2]&&m[h+3]==n[3])return{offset:d+h,buffer:m.slice(h,h+o).buffer}}}function Be(e,t,a){return t[a]===te?e.options[a]:t[a]}function pb(e){let t=(e&4294901760)>>16,a=e&65535;try{return new ja(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(a&63488)>>11,(a&2016)>>5,(a&31)*2,0)}catch{}}function Qn(e){return new ja(xo(e/Ie(1e4)-Ie(116444736e5)))}function ba(e,t){return e.getUint8(t)}function xe(e,t){return e.getUint16(t,!0)}function ge(e,t){return e.getUint32(t,!0)}function vi(e,t){return xo(e.getBigUint64(t,!0))}function gb(e,t,a){e.setUint32(t,a,!0)}function Ae(e){return new aa(e.buffer)}var wm=\"File already exists\",fm=\"Zip file comment exceeds 64KB\",bm=\"File entry comment exceeds 64KB\",ym=\"File entry name exceeds 64KB\",Pr=\"Version exceeds 65535\",km=\"The strength must equal 1, 2, or 3\",vm=\"Extra field type exceeds 65535\",Sm=\"Extra field data exceeds 64KB\",zi=\"Zip64 is not supported (make sure 'keepOrder' is set to 'true')\",id=new D([7,0,2,0,65,69,3,0,0]),er=0,nd=[],Ea=class{constructor(t,a={}){t=es(t);let o=t.availableSize!==te&&t.availableSize>0&&t.availableSize!==1/0&&t.maxSize!==te&&t.maxSize>0&&t.maxSize!==1/0;N.assign(this,{writer:t,addSplitZipSignature:o,options:a,config:Gr(),files:new Nr,filenames:new Rc,offset:t.writable.size,pendingEntriesSize:0,pendingAddFileCalls:new Rc,bufferedWrites:0})}async add(t=\"\",a,o={}){let i=this,{pendingAddFileCalls:n,config:r}=i;ernd.push(l));let s;try{if(t=t.trim(),i.filenames.has(t))throw new q(wm);return i.filenames.add(t),s=wb(i,t,a,o),n.add(s),await s}catch(l){throw i.filenames.delete(t),l}finally{n.delete(s);let l=nd.shift();l?l():er--}}async close(t=new D,a={}){let o=this,{pendingAddFileCalls:i,writer:n}=this,{writable:r}=n;for(;i.size;)await Ne.allSettled(Ft.from(i));return await xb(this,t,a),oe(o,a,\"preventClose\")||await r.getWriter().close(),n.getData?n.getData():r}},Dr=class{constructor(t={}){let{readable:a,writable:o}=new ue;this.readable=a,this.zipWriter=new Ea(o,t)}transform(t){let{readable:a,writable:o}=new ue({flush:()=>{this.zipWriter.close()}});return this.zipWriter.add(t,a),{readable:this.readable,writable:o}}writable(t){let{readable:a,writable:o}=new ue;return this.zipWriter.add(t,a),o}close(t=void 0,a={}){return this.zipWriter.close(t,a)}};async function wb(e,t,a,o){t=t.trim(),o.directory&&!t.endsWith(wi)?t+=wi:o.directory=t.endsWith(wi);let i=oe(e,o,\"encodeText\",fi),n=i(t);if(n===te&&(n=fi(t)),X(n)>he)throw new q(ym);let r=o.comment||\"\",s=i(r);if(s===te&&(s=fi(r)),X(s)>he)throw new q(bm);let l=oe(e,o,\"version\",df);if(l>he)throw new q(Pr);let c=oe(e,o,\"versionMadeBy\",20);if(c>he)throw new q(Pr);let d=oe(e,o,Ci,new ja),m=oe(e,o,ts),h=oe(e,o,as),u=oe(e,o,nm,!0),p=oe(e,o,om,0),g=oe(e,o,im,0),k=oe(e,o,\"password\"),f=oe(e,o,\"rawPassword\"),E=oe(e,o,\"encryptionStrength\",3),v=oe(e,o,\"zipCrypto\"),A=oe(e,o,\"extendedTimestamp\",!0),b=oe(e,o,\"keepOrder\",!0),j=oe(e,o,\"level\"),C=oe(e,o,\"useWebWorkers\"),w=oe(e,o,\"bufferedWrite\"),y=oe(e,o,\"dataDescriptorSignature\",!1),T=oe(e,o,\"signal\"),x=oe(e,o,\"useCompressionStream\"),M=oe(e,o,\"dataDescriptor\",!0),O=oe(e,o,rm);if(k!==te&&E!==te&&(E<1||E>3))throw new q(km);let H=new D,{extraField:z}=o;if(z){let V=0,Fe=0;z.forEach(Ve=>V+=4+X(Ve)),H=new D(V),z.forEach((Ve,ve)=>{if(ve>he)throw new q(vm);if(X(Ve)>he)throw new q(Sm);fe(H,new zc([ve]),Fe),fe(H,new zc([X(Ve)]),Fe+2),fe(H,Ve,Fe+4),Fe+=4+X(Ve)})}let P=0,F=0,U=0,Y=O===!0;a&&(a=Qr(a),await Ct(a),a.size===te?(M=!0,(O||O===te)&&(O=!0,U=P=we+1)):(U=a.size,P=Ab(U)));let{diskOffset:W,diskNumber:G,maxSize:$}=e.writer,de=Y||U>we,ye=Y||P>we,pe=Y||e.offset+e.pendingEntriesSize-W>we,L=oe(e,o,\"supportZip64SplitFile\",!0)&&Y||G+le.ceil(e.pendingEntriesSize/$)>he;if(pe||de||ye||L){if(O===!1||!b)throw new q(zi);O=!0}O=O||!1,o=N.assign({},o,{rawFilename:n,rawComment:s,version:l,versionMadeBy:c,lastModDate:d,lastAccessDate:m,creationDate:h,rawExtraField:H,zip64:O,zip64UncompressedSize:de,zip64CompressedSize:ye,zip64Offset:pe,zip64DiskNumberStart:L,password:k,rawPassword:f,level:!x&&e.config.CompressionStream===te&&e.config.CompressionStreamNative===te?0:j,useWebWorkers:C,encryptionStrength:E,extendedTimestamp:A,zipCrypto:v,bufferedWrite:w,keepOrder:b,dataDescriptor:M,dataDescriptorSignature:y,signal:T,msDosCompatible:u,internalFileAttribute:p,externalFileAttribute:g,useCompressionStream:x});let ke=yb(o),je=vb(o),me=X(ke.localHeaderArray,je.dataDescriptorArray);F=me+P,e.options.usdz&&(F+=F+64),e.pendingEntriesSize+=F;let Pe;try{Pe=await fb(e,t,a,{headerInfo:ke,dataDescriptorInfo:je,metadataSize:me},o)}finally{e.pendingEntriesSize-=F}return N.assign(Pe,{name:t,comment:r,extraField:z}),new Sa(Pe)}async function fb(e,t,a,o,i){let{files:n,writer:r}=e,{keepOrder:s,dataDescriptor:l,signal:c}=i,{headerInfo:d}=o,{usdz:m}=e.options,h=Ft.from(n.values()).pop(),u={},p,g,k,f,E,v,A;n.set(t,u);try{let w;s&&(w=h&&h.lock,b()),(i.bufferedWrite||e.writerLocked||e.bufferedWrites&&s||!l)&&!m?(v=new ue,A=new Or(v.readable).blob(),v.writable.size=0,p=!0,e.bufferedWrites++,await Ct(r)):(v=r,await j()),await Ct(v);let{writable:y}=r,{diskOffset:T}=r;if(e.addSplitZipSignature){delete e.addSplitZipSignature;let M=new D(4),O=_e(M);K(O,0,Hr),await gt(y,M),e.offset+=4}m&&kb(o,e.offset-T),p||(await w,await C(y));let{diskNumber:x}=r;if(E=!0,u.diskNumberStart=x,u=await bb(a,v,u,o,e.config,i),E=!1,n.set(t,u),u.filename=t,p){await v.writable.getWriter().close();let M=await A;await w,await j(),f=!0,l||(M=await Eb(u,M,y,i)),await C(y),u.diskNumberStart=r.diskNumber,T=r.diskOffset,await M.stream().pipeTo(y,{preventClose:!0,preventAbort:!0,signal:c}),y.size+=M.size,f=!1}if(u.offset=e.offset-T,u.zip64)jb(u,i);else if(u.offset>we)throw new q(zi);return e.offset+=u.size,u}catch(w){if(p&&f||!p&&E){if(e.hasCorruptedEntries=!0,w)try{w.corruptedEntry=!0}catch{}p?e.offset+=v.writable.size:e.offset=v.writable.size}throw n.delete(t),w}finally{p&&e.bufferedWrites--,k&&k(),g&&g()}function b(){u.lock=new Ne(w=>k=w)}async function j(){e.writerLocked=!0;let{lockWriter:w}=e;e.lockWriter=new Ne(y=>g=()=>{e.writerLocked=!1,y()}),await w}async function C(w){X(d.localHeaderArray)>r.availableSize&&(r.availableSize=0,await gt(w,new D))}}async function bb(e,t,{diskNumberStart:a,lock:o},i,n,r){let{headerInfo:s,dataDescriptorInfo:l,metadataSize:c}=i,{localHeaderArray:d,headerArray:m,lastModDate:h,rawLastModDate:u,encrypted:p,compressed:g,version:k,compressionMethod:f,rawExtraFieldExtendedTimestamp:E,extraFieldExtendedTimestampFlag:v,rawExtraFieldNTFS:A,rawExtraFieldAES:b}=s,{dataDescriptorArray:j}=l,{rawFilename:C,lastAccessDate:w,creationDate:y,password:T,rawPassword:x,level:M,zip64:O,zip64UncompressedSize:H,zip64CompressedSize:z,zip64Offset:P,zip64DiskNumberStart:F,zipCrypto:U,dataDescriptor:Y,directory:W,versionMadeBy:G,rawComment:$,rawExtraField:de,useWebWorkers:ye,onstart:pe,onprogress:lt,onend:L,signal:ke,encryptionStrength:je,extendedTimestamp:me,msDosCompatible:Pe,internalFileAttribute:V,externalFileAttribute:Fe,useCompressionStream:Ve}=r,ve={lock:o,versionMadeBy:G,zip64:O,directory:!!W,filenameUTF8:!0,rawFilename:C,commentUTF8:!0,rawComment:$,rawExtraFieldExtendedTimestamp:E,rawExtraFieldNTFS:A,rawExtraFieldAES:b,rawExtraField:de,extendedTimestamp:me,msDosCompatible:Pe,internalFileAttribute:V,externalFileAttribute:Fe,diskNumberStart:a},Jt=0,ga=0,mo,{writable:Mt}=t;if(e){e.chunkSize=yd(n),await gt(Mt,d);let Q=e.readable,Xn=Q.size=e.size,pi={options:{codecType:Dd,level:M,rawPassword:x,password:T,encryptionStrength:je,zipCrypto:p&&U,passwordVerification:p&&U&&u>>8&255,signed:!0,compressed:g,encrypted:p,useWebWorkers:ye,useCompressionStream:Ve,transferStreams:!1},config:n,streamOptions:{signal:ke,size:Xn,onstart:pe,onprogress:lt,onend:L}},Qt=await Bd({readable:Q,writable:Mt},pi);ga=Qt.inputSize,Jt=Qt.outputSize,mo=Qt.signature,Mt.size+=ga}else await gt(Mt,d);let Zt;if(O){let Q=4;H&&(Q+=8),z&&(Q+=8),P&&(Q+=8),F&&(Q+=4),Zt=new D(Q)}else Zt=new D;return Sb({signature:mo,rawExtraFieldZip64:Zt,compressedSize:Jt,uncompressedSize:ga,headerInfo:s,dataDescriptorInfo:l},r),Y&&await gt(Mt,j),N.assign(ve,{uncompressedSize:ga,compressedSize:Jt,lastModDate:h,rawLastModDate:u,creationDate:y,lastAccessDate:w,encrypted:p,size:c+Jt,compressionMethod:f,version:k,headerArray:m,signature:mo,rawExtraFieldZip64:Zt,extraFieldExtendedTimestampFlag:v,zip64UncompressedSize:H,zip64CompressedSize:z,zip64Offset:P,zip64DiskNumberStart:F}),ve}function yb(e){let{rawFilename:t,lastModDate:a,lastAccessDate:o,creationDate:i,rawPassword:n,password:r,level:s,zip64:l,zipCrypto:c,dataDescriptor:d,directory:m,rawExtraField:h,encryptionStrength:u,extendedTimestamp:p}=e,g=s!==0&&!m,k=!!(r&&X(r)||n&&X(n)),f=e.version,E;if(k&&!c){E=new D(X(id)+2);let F=_e(E);J(F,0,pd),fe(E,id,2),Li(F,8,u)}else E=new D;let v,A,b;if(p){A=new D(9+(o?4:0)+(i?4:0));let F=_e(A);J(F,0,qr),J(F,2,X(A)-4),b=1+(o?2:0)+(i?4:0),Li(F,4,b);let U=5;K(F,U,le.floor(a.getTime()/1e3)),U+=4,o&&(K(F,U,le.floor(o.getTime()/1e3)),U+=4),i&&K(F,U,le.floor(i.getTime()/1e3));try{v=new D(36);let Y=_e(v),W=tr(a);J(Y,0,gd),J(Y,2,32),J(Y,8,wd),J(Y,10,24),Ue(Y,12,W),Ue(Y,20,tr(o)||W),Ue(Y,28,tr(i)||W)}catch{v=new D}}else v=A=new D;let j=sr;d&&(j=j|rr);let C=ld;g&&(C=ar),l&&(f=f>Dc?f:Dc),k&&(j=j|nr,c||(f=f>Nc?f:Nc,C=cd,g&&(E[9]=ar)));let w=new D(26),y=_e(w);J(y,0,f),J(y,2,j),J(y,4,C);let T=new Br(1),x=_e(T),M;aOc?M=Oc:M=a,J(x,0,(M.getHours()<<6|M.getMinutes())<<5|M.getSeconds()/2),J(x,2,(M.getFullYear()-1980<<4|M.getMonth()+1)<<5|M.getDate());let O=T[0];K(y,6,O),J(y,22,X(t));let H=X(E,A,v,h);J(y,24,H);let z=new D(30+X(t)+H),P=_e(z);return K(P,0,dd),fe(z,w,4),fe(z,t,30),fe(z,E,30+X(t)),fe(z,A,30+X(t,E)),fe(z,v,30+X(t,E,A)),fe(z,h,30+X(t,E,A,v)),{localHeaderArray:z,headerArray:w,headerView:y,lastModDate:a,rawLastModDate:O,encrypted:k,compressed:g,version:f,compressionMethod:C,extraFieldExtendedTimestampFlag:b,rawExtraFieldExtendedTimestamp:A,rawExtraFieldNTFS:v,rawExtraFieldAES:E,extraFieldLength:H}}function kb(e,t){let{headerInfo:a}=e,{localHeaderArray:o,extraFieldLength:i}=a,n=_e(o),r=64-(t+X(o))%64;r<4&&(r+=64);let s=new D(r),l=_e(s);J(l,0,fd),J(l,2,r-2);let c=o;a.localHeaderArray=o=new D(X(c)+r),fe(o,c),fe(o,s,X(c)),n=_e(o),J(n,28,i+r),e.metadataSize+=r}function vb(e){let{zip64:t,dataDescriptor:a,dataDescriptorSignature:o}=e,i=new D,n,r=0;return a&&(i=new D(t?o?24:20:o?16:12),n=_e(i),o&&(r=4,K(n,0,nf))),{dataDescriptorArray:i,dataDescriptorView:n,dataDescriptorOffset:r}}function Sb(e,t){let{signature:a,rawExtraFieldZip64:o,compressedSize:i,uncompressedSize:n,headerInfo:r,dataDescriptorInfo:s}=e,{headerView:l,encrypted:c}=r,{dataDescriptorView:d,dataDescriptorOffset:m}=s,{zip64:h,zip64UncompressedSize:u,zip64CompressedSize:p,zipCrypto:g,dataDescriptor:k}=t;if((!c||g)&&a!==te&&(K(l,10,a),k&&K(d,m,a)),h){let f=_e(o);J(f,0,ud),J(f,2,X(o)-4);let E=4;u&&(K(l,18,we),Ue(f,E,Ie(n)),E+=8),p&&(K(l,14,we),Ue(f,E,Ie(i))),k&&(Ue(d,m+4,Ie(i)),Ue(d,m+12,Ie(n)))}else K(l,14,i),K(l,18,n),k&&(K(d,m+4,i),K(d,m+8,n))}async function Eb(e,t,a,{zipCrypto:o}){let i;i=await t.slice(0,26).arrayBuffer(),i.byteLength!=26&&(i=i.slice(0,26));let n=new aa(i);return(!e.encrypted||o)&&K(n,14,e.signature),e.zip64?(K(n,18,we),K(n,22,we)):(K(n,18,e.compressedSize),K(n,22,e.uncompressedSize)),await gt(a,new D(i)),t.slice(i.byteLength)}function jb(e,t){let{rawExtraFieldZip64:a,offset:o,diskNumberStart:i}=e,{zip64UncompressedSize:n,zip64CompressedSize:r,zip64Offset:s,zip64DiskNumberStart:l}=t,c=_e(a),d=4;n&&(d+=8),r&&(d+=8),s&&(Ue(c,d,Ie(o)),d+=8),l&&K(c,d,i)}async function xb(e,t,a){let{files:o,writer:i}=e,{diskOffset:n,writable:r}=i,{diskNumber:s}=i,l=0,c=0,d=e.offset-n,m=o.size;for(let[,b]of o){let{rawFilename:j,rawExtraFieldZip64:C,rawExtraFieldAES:w,rawComment:y,rawExtraFieldNTFS:T,rawExtraField:x,extendedTimestamp:M,extraFieldExtendedTimestampFlag:O,lastModDate:H}=b,z;if(M){z=new D(9);let P=_e(z);J(P,0,qr),J(P,2,5),Li(P,4,O),K(P,5,le.floor(H.getTime()/1e3))}else z=new D;b.rawExtraFieldCDExtendedTimestamp=z,c+=46+X(j,y,C,w,T,z,x)}let h=new D(c),u=_e(h);await Ct(i);let p=0;for(let[b,j]of Ft.from(o.values()).entries()){let{offset:C,rawFilename:w,rawExtraFieldZip64:y,rawExtraFieldAES:T,rawExtraFieldCDExtendedTimestamp:x,rawExtraFieldNTFS:M,rawExtraField:O,rawComment:H,versionMadeBy:z,headerArray:P,directory:F,zip64:U,zip64UncompressedSize:Y,zip64CompressedSize:W,zip64DiskNumberStart:G,zip64Offset:$,msDosCompatible:de,internalFileAttribute:ye,externalFileAttribute:pe,diskNumberStart:lt,uncompressedSize:L,compressedSize:ke}=j,je=X(y,T,x,M,O);K(u,l,or),J(u,l+4,z);let me=_e(P);Y||K(me,18,L),W||K(me,14,ke),fe(h,P,l+6),J(u,l+30,je),J(u,l+32,X(H)),J(u,l+34,U&&G?he:lt),J(u,l+36,ye),pe?K(u,l+38,pe):F&&de&&Li(u,l+38,lr),K(u,l+42,U&&$?we:C),fe(h,w,l+46),fe(h,y,l+46+X(w)),fe(h,T,l+46+X(w,y)),fe(h,x,l+46+X(w,y,T)),fe(h,M,l+46+X(w,y,T,x)),fe(h,O,l+46+X(w,y,T,x,M)),fe(h,H,l+46+X(w)+je);let Pe=46+X(w,H)+je;if(l-p>i.availableSize&&(i.availableSize=0,await gt(r,h.slice(p,l)),p=l),l+=Pe,a.onprogress)try{await a.onprogress(b+1,o.size,new Sa(j))}catch{}}await gt(r,p?h.slice(p):h);let g=i.diskNumber,{availableSize:k}=i;kwe||c>we||m>he||g>he){if(f===!1)throw new q(zi);f=!0}let E=new D(f?rf:Qe),v=_e(E);l=0,f&&(K(v,0,ir),Ue(v,4,Ie(44)),J(v,12,45),J(v,14,45),K(v,16,g),K(v,20,s),Ue(v,24,Ie(m)),Ue(v,32,Ie(m)),Ue(v,40,Ie(c)),Ue(v,48,Ie(d)),K(v,56,hd),Ue(v,64,Ie(d)+Ie(c)),K(v,72,g+1),oe(e,a,\"supportZip64SplitFile\",!0)&&(g=he,s=he),m=he,d=we,c=we,l+=go+po),K(v,l,md),J(v,l+4,g),J(v,l+6,s),J(v,l+8,m),J(v,l+10,m),K(v,l+12,c),K(v,l+16,d);let A=X(t);if(A)if(A<=he)J(v,l+20,A);else throw new q(fm);await gt(r,E),A&&await gt(r,t)}async function gt(e,t){let a=e.getWriter();try{await a.ready,e.size+=X(t),await a.write(t)}finally{a.releaseLock()}}function tr(e){if(e)return(Ie(e.getTime())+Ie(116444736e5))*Ie(1e4)}function oe(e,t,a,o){let i=t[a]===te?e.options[a]:t[a];return i===te?o:i}function Ab(e){return e+5*(le.floor(e/16383)+1)}function Li(e,t,a){e.setUint8(t,a)}function J(e,t,a){e.setUint16(t,a,!0)}function K(e,t,a){e.setUint32(t,a,!0)}function Ue(e,t,a){e.setBigUint64(t,a,!0)}function fe(e,t,a){e.set(t,a)}function _e(e){return new aa(e.buffer)}function X(...e){let t=0;return e.forEach(a=>a&&(t+=a.length)),t}var Em;try{Em=Cb.url}catch{}Co({baseURL:Em});uf(Co);async function jm(e,{password:t,prompt:a=()=>{},shadowRootScriptURL:o,zipOptions:i={useWebWorkers:!1},noBlobURL:n}={}){let r={gif:\"image/gif\",jpg:\"image/jpeg\",png:\"image/png\",tif:\"image/tiff\",tiff:\"image/tiff\",bmp:\"image/bmp\",ico:\"image/vnd.microsoft.icon\",webp:\"image/webp\",svg:\"image/svg+xml\",avi:\"video/x-msvideo\",ogv:\"video/ogg\",mp4:\"video/mp4\",mpeg:\"video/mpeg\",ts:\"video/mp2t\",webm:\"video/webm\",\"3gp\":\"video/3gpp\",\"3g2\":\"video/3gpp\",mp3:\"audio/mpeg\",oga:\"audio/ogg\",mid:\"audio/midi\",midi:\"audio/midi\",opus:\"audio/opus\",wav:\"audio/wav\",weba:\"audio/webm\",heif:\"image/heif\",heic:\"image/heic\",avif:\"image/avif\",apng:\"image/apng\",mov:\"video/quicktime\",otf:\"font/otf\",ttf:\"font/ttf\",woff:\"font/woff\",woff2:\"font/woff2\",eot:\"application/vnd.ms-fontobject\",pdf:\"application/pdf\"},s=/stylesheet_[0-9]+\\.css/,l=/scripts\\/[0-9]+\\.js/,c=/^([0-9_]+\\/)?index\\.html$/,d=/index\\.html$/,m=/frames\\//,h=/^frames\\/\\d+\\/index.html/,u=/manifest\\.json$/,p=\";charset=utf-8\",g=/([{}()^$&.*?/+|[\\\\\\\\]|\\]|-)/g;Array.isArray(e)&&(e=new Blob([new Uint8Array(e)])),zip.configure(i);let k=new zip.BlobReader(e),f=new zip.ZipReader(k),E=await f.getEntries(),v={password:t},A,b,j,C=[],w=[],y=[];await Promise.all(E.map(async z=>{let{filename:P}=z,F,U,Y,W,G={};if(!v.password&&z.encrypted&&(v.password=a(\"Please enter the password to view the page\")),P.match(d)||P.match(s)||P.match(l))P.match(d)?w.push(G):y.push(G),F=new zip.TextWriter,Y=await z.getData(F,v),P.match(d)?W=\"text/html\"+p:P.match(s)?W=\"text/css\"+p:P.match(l)&&(W=\"text/javascript\"+p);else{C.push(G);let pe=P.match(/\\.([^.]+)/);if(pe&&pe[1]&&r[pe[1]]?W=r[pe[1]]:W=\"application/octet-stream\",P.match(m)||n)U=await z.getData(new zip.Data64URIWriter(W),v);else{let lt=await z.getData(new zip.BlobWriter(W),v);U=URL.createObjectURL(lt)}}let $=z.filename.match(/^([0-9_]+\\/)?(.*)$/)[2],de=\"\",ye=P.match(/(.*\\/)[^/]+$/);ye&&ye[1]&&(de=ye[1]),Object.assign(G,{prefixPath:de,filename:z.filename,name:$,url:z.comment,content:U,mimeType:W,textContent:Y,parentResources:[]})})),await f.close(),w.sort(O),y.sort(H),C=C.sort(O).concat(...y).concat(...w);for(let z of C){let{filename:P,prefixPath:F}=z,{textContent:U}=z;U!==void 0&&(P.match(c)&&(b=U),P.match(l)||(C.forEach(Y=>{let{filename:W,parentResources:G,content:$}=Y;if(W.startsWith(F)&&W!=z.filename){let de=W.substring(F.length);de.match(u)||U.includes(de)&&(G.push(z.filename),Y.textContent===void 0&&(U=M(U,de,$)))}}),z.textContent=U))}for(let z of C){let{textContent:P,prefixPath:F,filename:U}=z;if(P!==void 0){if(!U.match(l)){let Y=U;for(let W of C){let{filename:G}=W;if(G.startsWith(F)&&G!=Y){let $=G.substring(F.length);$.match(u)||P.indexOf($)!=-1&&(W.content=await T(W),P=M(P,$,W.content))}}z.textContent=P,z.content=await T(z)}U.match(d)&&o&&(z.textContent=P.replace(/