1import{F as D}from"./DP_XYmwW.js";import"./DLPX0U8F.js";import"./IfjeQVYi.js";import"./CSX3ntIy.js";import"./C78jYkUx.js";import"./CcThQCsE.js";import"./eh2bsiju.js";import"./DtTjn5Hu.js";import"./Cdq0t6wj.js";import"./C6Sz6Qmf.js";import"./1Wv6AGCD.js";import"./DTAhAtzT.js";import"./CKKvky-0.js";import"./NKNYOpvE.js";import"./DVThiZIq.js";import"./DIm51h6y.js";import"./0tATXESo.js";import"./DY53gEXS.js";import"./DfTlTRtp.js";import"./aP0pLVbW.js";import"./BsSj1-5k.js";import"./BDjwot30.js";import"./DB9gmwfG.js";import"./B_VY8agd.js";import"./BFNKhelc.js";import"./B2tnkJ0J.js";import"./D7OEU07a.js";import"./CijpmctJ.js";import"./C2QUdrSA.js";import"./B_GtWe8c.js";import"./DWH5c6Zc.js";import"./C2WA2VRD.js";import"./1nwh6u2m.js";import"./DsYRInVS.js";import"./D6G5mq0y.js";import"./uGh8-60C.js";import"./CEUggb9l.js";import"./BPQQ5hw3.js";import"./COhJixEw.js";import"./CAkXg05h.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="00dae1c1-c3dc-425e-bb30-4517105919a2",e._sentryDebugIdIdentifier="sentry-dbid-00dae1c1-c3dc-425e-bb30-4517105919a2")}catch{}})();"stream"in Blob.prototype||Object.defineProperty(Blob.prototype,"stream",{value(){return new Response(this).body}});"setBigUint64"in DataView.prototype||Object.defineProperty(DataView.prototype,"setBigUint64",{value(e,t,r){const n=Number(t&0xFFFFFFFFn),i=Number(t>>32n);this.setUint32(e+(r?0:4),n,r),this.setUint32(e+(r?4:0),i,r)}});const g=e=>new DataView(new ArrayBuffer(e)),f=e=>new Uint8Array(e.buffer||e),m=e=>new TextEncoder().encode(String(e)),d=e=>Math.min(4294967295,Number(e)),U=e=>Math.min(65535,Number(e));function N(e,t){if(t!==void 0&&!(t instanceof Date)&&(t=new Date(t)),e instanceof File)return{isFile:!0,modDate:t||new Date(e.lastModified),bytes:e.stream()};if(e instanceof Response)return{isFile:!0,modDate:t||new Date(e.headers.get("Last-Modified")||Date.now()),bytes:e.body};if(t===void 0)t=new Date;else if(isNaN(t))throw new Error("Invalid modification date.");if(e===void 0)return{isFile:!1,modDate:t};if(typeof e=="string")return{isFile:!0,modDate:t,bytes:m(e)};if(e instanceof Blob)return{isFile:!0,modDate:t,bytes:e.stream()};if(e instanceof Uint8Array||e instanceof ReadableStream)return{isFile:!0,modDate:t,bytes:e};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return{isFile:!0,modDate:t,bytes:f(e)};if(Symbol.asyncIterator in e)return{isFile:!0,modDate:t,bytes:B(e[Symbol.asyncIterator]())};throw new TypeError("Unsupported input format.")}function B(e,t=e){return new ReadableStream({async pull(r){let n=0;for(;r.desiredSize>n;){const i=await e.next();if(i.value){const o=T(i.value);r.enqueue(o),n+=o.byteLength}else{r.close();break}}},cancel(r){var n;(n=t.throw)==null||n.call(t,r)}})}function T(e){return typeof e=="string"?m(e):e instanceof Uint8Array?e:f(e)}function z(e,t,r){let[n,i]=M(t);if(e instanceof File)return{encodedName:F(n||m(e.name)),uncompressedSize:BigInt(e.size),nameIsBuffer:i};if(e instanceof Response){const o=e.headers.get("content-disposition"),c=o&&o.match(/;\s*filename\*?=["']?(.*?)["']?$/i),a=c&&c[1]||e.url&&new URL(e.url).pathname.split("/").findLast(Boolean),s=a&&decodeURIComponent(a),u=r||+e.headers.get("content-length");return{encodedName:F(n||m(s)),uncompressedSize:BigInt(u),nameIsBuffer:i}}return n=F(n,e!==void 0||r!==void 0),typeof e=="string"?{encodedName:n,uncompressedSize:BigInt(m(e).length),nameIsBuffer:i}:e instanceof Blob?{encodedName:n,uncompressedSize:BigInt(e.size),nameIsBuffer:i}:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?{encodedName:n,uncompressedSize:BigInt(e.byteLength),nameIsBuffer:i}:{encodedName:n,uncompressedSize:k(e,r),nameIsBuffer:i}}function k(e,t){return t>-1?BigInt(t):e?void 0:0n}function M(e){return e?e instanceof Uint8Array?[e,!0]:ArrayBuffer.isView(e)||e instanceof ArrayBuffer?[f(e),!0]:[m(e),!1]:[void 0,!1]}function F(e,t=!0){if(!e||e.every(r=>r===47))throw new Error("The file must have a name.");if(t)for(;e[e.length-1]===47;)e=e.subarray(0,-1);else e[e.length-1]!==47&&(e=new Uint8Array([...e,47]));return e}const I=new Uint32Array(256);for(let e=0;e<256;++e){let t=e;for(let r=0;r<8;++r)t=t>>>1^(t&1&&3988292384);I[e]=t}function w(e,t=0){t=t^-1;for(var r=0,n=e.length;r<n;r++)t=t>>>8^I[t&255^e[r]];return(t^-1)>>>0}function v(e,t,r=0){const n=e.getSeconds()>>1|e.getMinutes()<<5|e.getHours()<<11,i=e.getDate()|e.getMonth()+1<<5|e.getFullYear()-1980<<9;t.setUint16(r,n,!0),t.setUint16(r+2,i,!0)}const O=1347093252,h=30,E=1347094280,b=16,C=1347092738,x=46,V=1347093766,A=22,H=1347094022,y=56,_=1347094023,R=20;function j(e){let t=BigInt(A),r=0n,n=!1;for(const i of e){if(!i.encodedName)throw new Error("Every file must have a non-empty name.");if(i.uncompressedSize===void 0)throw new Error(`Missing size for file "${new TextDecoder().decode(i.encodedName)}".`);const o=i.uncompressedSize>=0xFFFFFFFFn,c=r>=0xFFFFFFFFn;r+=BigInt(h+b+i.encodedName.length+(o&&8))+i.uncompressedSize,t+=BigInt(i.encodedName.length+x+(c*12|o*28)),n||(n=o)}return(n||r>=0xFFFFFFFFn)&&(t+=BigInt(y+R)),t+r}function P({encodedName:e,nameIsBuffer:t},r){return(!t||(r??W(e)))*8}const Z=new TextDecoder("utf8",{fatal:!0});function W(e){try{Z.decode(e)}catch{return!1}return!0}async function*$(e,t){const r=[];let n=0n,i=0n,o=!1;for await(const s of e){const u=P(s,t.buffersAreUTF8);yield q(s,u),yield s.encodedName,s.isFile&&(yield*Y(s));const l=s.uncompressedSize>=0xFFFFFFFFn,p=(n>=0xFFFFFFFFn)*12|l*28;yield G(s,l),r.push(J(s,n,u,p)),r.push(s.encodedName),p&&r.push(K(s,n,p)),l&&(n+=8n),i++,n+=BigInt(h+b+s.encodedName.length)+s.uncompressedSize,o||(o=l)}let c=0n;for(const s of r)yield s,c+=BigInt(s.length);if(o||n>=0xFFFFFFFFn){const s=g(y+R);s.setUint32(0,H),s.setBigUint64(4,BigInt(y-12),!0),s.setUint32(12,755182848),s.setBigUint64(24,i,!0),s.setBigUint64(32,i,!0),s.setBigUint64(40,c,!0),s.setBigUint64(48,n,!0),s.setUint32(56,_),s.setBigUint64(64,n+c,!0),s.setUint32(72,1,!0),yield f(s)}const a=g(A);a.setUint32(0,V),a.setUint16(8,U(i),!0),a.setUint16(10,U(i),!0),a.setUint32(12,d(c),!0),a.setUint32(16,d(n),!0),yield f(a)}function q(e,t=0){const r=g(h);return r.setUint32(0,O),r.setUint32(4,754976768|t),v(e.modDate,r,10),r.setUint16(26,e.encodedName.length,!0),f(r)}async function*Y(e){let{bytes:t}=e;if("then"in t&&(t=await t),t instanceof Uint8Array)yield t,e.crc=w(t,0),e.uncompressedSize=BigInt(t.length);else{e.uncompressedSize=0n;const r=t.getReader();for(;;){const{value:n,done:i}=await r.read();if(i)break;e.crc=w(n,e.crc),e.uncompressedSize+=BigInt(n.length),yield n}}}function G(e,t){const r=g(b+(t?8:0));
1return r.setUint32(0,E),r.setUint32(4,e.isFile?e.crc:0,!0),t?(r.setBigUint64(8,e.uncompressedSize,!0),r.setBigUint64(16,e.uncompressedSize,!0)):(r.setUint32(8,d(e.uncompressedSize),!0),r.setUint32(12,d(e.uncompressedSize),!0)),f(r)}function J(e,t,r=0,n=0){const i=g(x);return i.setUint32(0,C),i.setUint32(4,755182848),i.setUint16(8,2048|r),v(e.modDate,i,12),i.setUint32(16,e.isFile?e.crc:0,!0),i.setUint32(20,d(e.uncompressedSize),!0),i.setUint32(24,d(e.uncompressedSize),!0),i.setUint16(28,e.encodedName.length,!0),i.setUint16(30,n,!0),i.setUint16(40,e.isFile?33204:16893,!0),i.setUint32(42,d(t),!0),f(i)}function K(e,t,r){const n=g(r);return n.setUint16(0,1,!0),n.setUint16(2,r-4,!0),r&16&&(n.setBigUint64(4,e.uncompressedSize,!0),n.setBigUint64(12,e.uncompressedSize,!0)),n.setBigUint64(r-8,t,!0),f(n)}function L(e){return e instanceof File||e instanceof Response?[[e],[e]]:[[e.input,e.name,e.size],[e.input,e.lastModified]]}function*Q(e){for(const t of e)yield z(...L(t)[0])}function X(e){var r;const t=e[Symbol.iterator in e?Symbol.iterator:Symbol.asyncIterator]();return{async next(){const n=await t.next();if(n.done)return n;const[i,o]=L(n.value);return{done:!1,value:Object.assign(N(...o),z(...i))}},throw:(r=t.throw)==null?void 0:r.bind(t),[Symbol.asyncIterator](){return this}}}const ee=e=>j(Q(e));function te(e,t={}){const r=X(e);return B($(r,t),r)}function S(e){return e.map(t=>({name:t.webkitRelativePath,input:t}))}class Pe extends D{constructor(t,r){super(t,{name:(r[0].webkitRelativePath||r[0].name).split("/")[0]+".zip",size:Number(ee(S(r)))}),this.files=r}async createReadableStream(){let t=!1;const n=te(S(this.files)).getReader();return{async start(i,o,c){try{for(;!t;){const{done:a,value:s}=await n.read();if(a||!s)break;for(let u=0;u<s.length&&!t;u+=i){const l=s.subarray(u,u+i);await o(l)}}}catch(a){t=!0,c(a)}finally{t||n.releaseLock()}},close(){t=!0,n.cancel().catch(()=>{})}}}}export{Pe as OutgoingDirectory};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.