Merge pull request #1486 from docker/dependabot/npm_and_yarn/undici-6.24.0

chore(deps): Bump undici from 6.23.0 to 6.24.1
This commit is contained in:
CrazyMax authored and GitHub committed 2026-03-20 11:35:38 +01:00
commit a3f8b56eb8
3 files changed
+7 -7

No files matched your search

Generated Vendored
+3 -3
View File
@@ -102,9 +102,9 @@ i.exports=function(i,u){if(typeof i!=="string"){throw new TypeError("expected pa
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*/const A=p(79896);const w=p(70857);const C=p(16928);const S=p(76982);const v={fs:A.constants,os:w.constants};const B="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",_=/XXXXXX/,T=3,N=(v.O_CREAT||v.fs.O_CREAT)|(v.O_EXCL||v.fs.O_EXCL)|(v.O_RDWR||v.fs.O_RDWR),x=w.platform()==="win32",k=v.EBADF||v.os.errno.EBADF,O=v.ENOENT||v.os.errno.ENOENT,D=448,Q=384,P="exit",L=[],U=A.rmdirSync.bind(A);let H=false;function rimraf(i,u){return A.rm(i,{recursive:true},u)}function FN_RIMRAF_SYNC(i){return A.rmSync(i,{recursive:true})}function tmpName(i,u){const p=_parseArguments(i,u),g=p[0],w=p[1];_assertAndSanitizeOptions(g,(function(i,u){if(i)return w(i);let p=u.tries;(function _getUniqueName(){try{const i=_generateTmpName(u);A.stat(i,(function(u){if(!u){if(p-- >0)return _getUniqueName();return w(new Error("Could not get a unique tmp filename, max tries reached "+i))}w(null,i)}))}catch(i){w(i)}})()}))}function tmpNameSync(i){const u=_parseArguments(i),p=u[0];const g=_assertAndSanitizeOptionsSync(p);let w=g.tries;do{const i=_generateTmpName(g);try{A.statSync(i)}catch(u){return i}}while(w-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(i,u){const p=_parseArguments(i,u),g=p[0],w=p[1];tmpName(g,(function _tmpNameCreated(i,u){if(i)return w(i);A.open(u,N,g.mode||Q,(function _fileCreated(i,p){if(i)return w(i);if(g.discardDescriptor){return A.close(p,(function _discardCallback(i){return w(i,u,undefined,_prepareTmpFileRemoveCallback(u,-1,g,false))}))}else{const i=g.discardDescriptor||g.detachDescriptor;w(null,u,p,_prepareTmpFileRemoveCallback(u,i?-1:p,g,false))}}))}))}function fileSync(i){const u=_parseArguments(i),p=u[0];const g=p.discardDescriptor||p.detachDescriptor;const w=tmpNameSync(p);let C=A.openSync(w,N,p.mode||Q);if(p.discardDescriptor){A.closeSync(C);C=undefined}return{name:w,fd:C,removeCallback:_prepareTmpFileRemoveCallback(w,g?-1:C,p,true)}}function dir(i,u){const p=_parseArguments(i,u),g=p[0],w=p[1];tmpName(g,(function _tmpNameCreated(i,u){if(i)return w(i);A.mkdir(u,g.mode||D,(function _dirCreated(i){if(i)return w(i);w(null,u,_prepareTmpDirRemoveCallback(u,g,false))}))}))}function dirSync(i){const u=_parseArguments(i),p=u[0];const g=tmpNameSync(p);A.mkdirSync(g,p.mode||D);return{name:g,removeCallback:_prepareTmpDirRemoveCallback(g,p,true)}}function _removeFileAsync(i,u){const _handler=function(i){if(i&&!_isENOENT(i)){return u(i)}u()};if(0<=i[0])A.close(i[0],(function(){A.unlink(i[1],_handler)}));else A.unlink(i[1],_handler)}function _removeFileSync(i){let u=null;try{if(0<=i[0])A.closeSync(i[0])}catch(i){if(!_isEBADF(i)&&!_isENOENT(i))throw i}finally{try{A.unlinkSync(i[1])}catch(i){if(!_isENOENT(i))u=i}}if(u!==null){throw u}}function _prepareTmpFileRemoveCallback(i,u,p,g){const A=_prepareRemoveCallback(_removeFileSync,[u,i],g);const w=_prepareRemoveCallback(_removeFileAsync,[u,i],g,A);if(!p.keep)L.unshift(A);return g?A:w}function _prepareTmpDirRemoveCallback(i,u,p){const g=u.unsafeCleanup?rimraf:A.rmdir.bind(A);const w=u.unsafeCleanup?FN_RIMRAF_SYNC:U;const C=_prepareRemoveCallback(w,i,p);const S=_prepareRemoveCallback(g,i,p,C);if(!u.keep)L.unshift(C);return p?C:S}function _prepareRemoveCallback(i,u,p,g){let A=false;return function _cleanupCallback(w){if(!A){const C=g||_cleanupCallback;const S=L.indexOf(C);if(S>=0)L.splice(S,1);A=true;if(p||i===U||i===FN_RIMRAF_SYNC){return i(u)}else{return i(u,w||function(){})}}}}function _garbageCollector(){if(!H)return;while(L.length){try{L[0]()}catch(i){}}}function _randomChars(i){let u=[],p=null;try{p=S.randomBytes(i)}catch(u){p=S.pseudoRandomBytes(i)}for(let g=0;g<i;g++){u.push(B[p[g]%B.length])}return u.join("")}function _isUndefined(i){return typeof i==="undefined"}function _parseArguments(i,u){if(typeof i==="function"){return[{},i]}if(_isUndefined(i)){return[{},u]}const p={};for(const u of Object.getOwnPropertyNames(i)){p[u]=i[u]}return[p,u]}function _resolvePath(i,u,p){const g=C.isAbsolute(i)?i:C.join(u,i);A.stat(g,(function(i){if(i){A.realpath(C.dirname(g),(function(i,u){if(i)return p(i);p(null,C.join(u,C.basename(g)))}))}else{A.realpath(g,p)}}))}function _resolvePathSync(i,u){const p=C.isAbsolute(i)?i:C.join(u,i);try{A.statSync(p);return A.realpathSync(p)}catch(i){const u=A.realpathSync(C.dirname(p));return C.join(u,C.basename(p))}}function _generateTmpName(i){const u=i.tmpdir;if(!_isUndefined(i.name)){return C.join(u,i.dir,i.name)}if(!_isUndefined(i.template)){return C.join(u,i.dir,i.template).replace(_,_randomChars(6))}const p=[i.prefix?i.prefix:"tmp","-",process.pid,"-",_randomChars(12),i.postfix?"-"+i.postfix:""].join("");return C.join(u,i.dir,p)}function _assertOptionsBase(i){if(!_isUndefined(i.name)){const u=i.name;if(C.isAbsolute(u))throw new Error(`name option must not contain an absolute path, found "${u}".`);const p=C.basename(u);if(p===".."||p==="."||p!==u)throw new Error(`name option must not contain a path, found "${u}".`)}if(!_isUndefined(i.template)&&!i.template.match(_)){throw new Error(`Invalid teLine truncated
*/const A=p(79896);const w=p(70857);const C=p(16928);const S=p(76982);const v={fs:A.constants,os:w.constants};const B="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",_=/XXXXXX/,T=3,N=(v.O_CREAT||v.fs.O_CREAT)|(v.O_EXCL||v.fs.O_EXCL)|(v.O_RDWR||v.fs.O_RDWR),x=w.platform()==="win32",k=v.EBADF||v.os.errno.EBADF,O=v.ENOENT||v.os.errno.ENOENT,D=448,Q=384,P="exit",L=[],U=A.rmdirSync.bind(A);let H=false;function rimraf(i,u){return A.rm(i,{recursive:true},u)}function FN_RIMRAF_SYNC(i){return A.rmSync(i,{recursive:true})}function tmpName(i,u){const p=_parseArguments(i,u),g=p[0],w=p[1];_assertAndSanitizeOptions(g,(function(i,u){if(i)return w(i);let p=u.tries;(function _getUniqueName(){try{const i=_generateTmpName(u);A.stat(i,(function(u){if(!u){if(p-- >0)return _getUniqueName();return w(new Error("Could not get a unique tmp filename, max tries reached "+i))}w(null,i)}))}catch(i){w(i)}})()}))}function tmpNameSync(i){const u=_parseArguments(i),p=u[0];const g=_assertAndSanitizeOptionsSync(p);let w=g.tries;do{const i=_generateTmpName(g);try{A.statSync(i)}catch(u){return i}}while(w-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(i,u){const p=_parseArguments(i,u),g=p[0],w=p[1];tmpName(g,(function _tmpNameCreated(i,u){if(i)return w(i);A.open(u,N,g.mode||Q,(function _fileCreated(i,p){if(i)return w(i);if(g.discardDescriptor){return A.close(p,(function _discardCallback(i){return w(i,u,undefined,_prepareTmpFileRemoveCallback(u,-1,g,false))}))}else{const i=g.discardDescriptor||g.detachDescriptor;w(null,u,p,_prepareTmpFileRemoveCallback(u,i?-1:p,g,false))}}))}))}function fileSync(i){const u=_parseArguments(i),p=u[0];const g=p.discardDescriptor||p.detachDescriptor;const w=tmpNameSync(p);let C=A.openSync(w,N,p.mode||Q);if(p.discardDescriptor){A.closeSync(C);C=undefined}return{name:w,fd:C,removeCallback:_prepareTmpFileRemoveCallback(w,g?-1:C,p,true)}}function dir(i,u){const p=_parseArguments(i,u),g=p[0],w=p[1];tmpName(g,(function _tmpNameCreated(i,u){if(i)return w(i);A.mkdir(u,g.mode||D,(function _dirCreated(i){if(i)return w(i);w(null,u,_prepareTmpDirRemoveCallback(u,g,false))}))}))}function dirSync(i){const u=_parseArguments(i),p=u[0];const g=tmpNameSync(p);A.mkdirSync(g,p.mode||D);return{name:g,removeCallback:_prepareTmpDirRemoveCallback(g,p,true)}}function _removeFileAsync(i,u){const _handler=function(i){if(i&&!_isENOENT(i)){return u(i)}u()};if(0<=i[0])A.close(i[0],(function(){A.unlink(i[1],_handler)}));else A.unlink(i[1],_handler)}function _removeFileSync(i){let u=null;try{if(0<=i[0])A.closeSync(i[0])}catch(i){if(!_isEBADF(i)&&!_isENOENT(i))throw i}finally{try{A.unlinkSync(i[1])}catch(i){if(!_isENOENT(i))u=i}}if(u!==null){throw u}}function _prepareTmpFileRemoveCallback(i,u,p,g){const A=_prepareRemoveCallback(_removeFileSync,[u,i],g);const w=_prepareRemoveCallback(_removeFileAsync,[u,i],g,A);if(!p.keep)L.unshift(A);return g?A:w}function _prepareTmpDirRemoveCallback(i,u,p){const g=u.unsafeCleanup?rimraf:A.rmdir.bind(A);const w=u.unsafeCleanup?FN_RIMRAF_SYNC:U;const C=_prepareRemoveCallback(w,i,p);const S=_prepareRemoveCallback(g,i,p,C);if(!u.keep)L.unshift(C);return p?C:S}function _prepareRemoveCallback(i,u,p,g){let A=false;return function _cleanupCallback(w){if(!A){const C=g||_cleanupCallback;const S=L.indexOf(C);if(S>=0)L.splice(S,1);A=true;if(p||i===U||i===FN_RIMRAF_SYNC){return i(u)}else{return i(u,w||function(){})}}}}function _garbageCollector(){if(!H)return;while(L.length){try{L[0]()}catch(i){}}}function _randomChars(i){let u=[],p=null;try{p=S.randomBytes(i)}catch(u){p=S.pseudoRandomBytes(i)}for(let g=0;g<i;g++){u.push(B[p[g]%B.length])}return u.join("")}function _isUndefined(i){return typeof i==="undefined"}function _parseArguments(i,u){if(typeof i==="function"){return[{},i]}if(_isUndefined(i)){return[{},u]}const p={};for(const u of Object.getOwnPropertyNames(i)){p[u]=i[u]}return[p,u]}function _resolvePath(i,u,p){const g=C.isAbsolute(i)?i:C.join(u,i);A.stat(g,(function(i){if(i){A.realpath(C.dirname(g),(function(i,u){if(i)return p(i);p(null,C.join(u,C.basename(g)))}))}else{A.realpath(g,p)}}))}function _resolvePathSync(i,u){const p=C.isAbsolute(i)?i:C.join(u,i);try{A.statSync(p);return A.realpathSync(p)}catch(i){const u=A.realpathSync(C.dirname(p));return C.join(u,C.basename(p))}}function _generateTmpName(i){const u=i.tmpdir;if(!_isUndefined(i.name)){return C.join(u,i.dir,i.name)}if(!_isUndefined(i.template)){return C.join(u,i.dir,i.template).replace(_,_randomChars(6))}const p=[i.prefix?i.prefix:"tmp","-",process.pid,"-",_randomChars(12),i.postfix?"-"+i.postfix:""].join("");return C.join(u,i.dir,p)}function _assertOptionsBase(i){if(!_isUndefined(i.name)){const u=i.name;if(C.isAbsolute(u))throw new Error(`name option must not contain an absolute path, found "${u}".`);const p=C.basename(u);if(p===".."||p==="."||p!==u)throw new Error(`name option must not contain a path, found "${u}".`)}if(!_isUndefined(i.template)&&!i.template.match(_)){throw new Error(`Invalid teLine truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=i=>i.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=i=>i.replace(/\r?\n|\r/g,"\r\n");const g=[];const A=new Uint8Array([13,10]);_=0;let w=false;for(const[u,C]of i){if(typeof C==="string"){const i=z.encode(p+`; name="${escape(normalizeLinefeeds(u))}"`+`\r\n\r\n${normalizeLinefeeds(C)}\r\n`);g.push(i);_+=i.byteLength}else{const i=z.encode(`${p}; name="${escape(normalizeLinefeeds(u))}"`+(C.name?`; filename="${escape(C.name)}"`:"")+"\r\n"+`Content-Type: ${C.type||"application/octet-stream"}\r\n\r\n`);g.push(i,C,A);if(typeof C.size==="number"){_+=i.byteLength+C.size+A.byteLength}else{w=true}}}const C=z.encode(`--${u}--\r\n`);g.push(C);_+=C.byteLength;if(w){_=null}B=i;v=async function*(){for(const i of g){if(i.stream){yield*i.stream()}else{yield i}}};T=`multipart/form-data; boundary=${u}`}else if(w(i)){B=i;_=i.size;if(i.type){T=i.type}}else if(typeof i[Symbol.asyncIterator]==="function"){if(u){throw new TypeError("keepalive")}if(g.isDisturbed(i)||i.locked){throw new TypeError("Response body object should not be disturbed or locked")}p=i instanceof ReadableStream?i:A(i)}if(typeof B==="string"||g.isBuffer(B)){_=Buffer.byteLength(B)}if(v!=null){let u;p=new ReadableStream({async start(){u=v(i)[Symbol.asyncIterator]()},async pull(i){const{value:g,done:A}=await u.next();if(A){queueMicrotask((()=>{i.close();i.byobRequest?.respond(0)}))}else{if(!Q(p)){const u=new Uint8Array(g);if(u.byteLength){i.enqueue(u)}}}return i.desiredSize>0},async cancel(i){await u.return()},type:"bytes"})}const N={stream:p,source:B,length:_};return[N,T]}function safelyExtractBody(i,u=false){if(i instanceof ReadableStream){D(!g.isDisturbed(i),"The body has already been consumed.");D(!i.locked,"The stream is locked.")}return extractBody(i,u)}function cloneBody(i,u){const[p,g]=u.stream.tee();u.stream=p;return{stream:g,length:u.length,source:u.source}}function throwIfAborted(i){if(i.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(i){const u={blob(){return consumeBody(this,(i=>{let u=bodyMimeType(this);if(u===null){u=""}else if(u){u=U(u)}return new O([i],{type:u})}),i)},arrayBuffer(){return consumeBody(this,(i=>new Uint8Array(i).buffer),i)},text(){return consumeBody(this,T,i)},json(){return consumeBody(this,parseJSONFromBytes,i)},formData(){return consumeBody(this,(i=>{const u=bodyMimeType(this);if(u!==null){switch(u.essence){case"multipart/form-data":{const p=H(i,u);if(p==="failure"){throw new TypeError("Failed to parse body as FormData.")}const g=new N;g[x]=p;return g}case"application/x-www-form-urlencoded":{const u=new URLSearchParams(i.toString());const p=new N;for(const[i,g]of u){p.append(i,g)}return p}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),i)},bytes(){return consumeBody(this,(i=>new Uint8Array(i)),i)}};return u}function mixinBody(i){Object.assign(i.prototype,bodyMixinMethods(i))}async function consumeBody(i,u,p){k.brandCheck(i,p);if(bodyUnusable(i)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(i[x]);const g=v();const errorSteps=i=>g.reject(i);const successSteps=i=>{try{g.resolve(u(i))}catch(i){errorSteps(i)}};if(i[x].body==null){successSteps(Buffer.allocUnsafe(0));return g.promise}await B(i[x].body,successSteps,errorSteps);return g.promise}function bodyUnusable(i){const u=i[x].body;return u!=null&&(u.stream.locked||g.isDisturbed(u.stream))}function parseJSONFromBytes(i){return JSON.parse(T(i))}function bodyMimeType(i){const u=i[x].headersList;const p=_(u);if(p==="failure"){return null}return p}i.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:$,hasFinalizationRegistry:q,bodyUnusable:bodyUnusable}},4495:i=>{const u=["GET","HEAD","POST"];const p=new Set(u);const g=[101,204,205,304];const A=[301,302,303,307,308];const w=new Set(A);const C=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const S=new Set(C);const v=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const B=new Set(v);const _=["follow","manual","error"];const T=["GET","HEAD","OPTIONS","TRACE"];const N=new Set(T);const x=["navigate","same-origin","no-cors","cors"];const k=["omit","same-origin","include"];const O=["default","no-store","reload","no-cache","force-cLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */S[C-4]=p[0];S[C-3]=p[1];S[C-2]=p[2];S[C-1]=p[3];S[1]=w;if(w===126){S.writeUInt16BE(A,2)}else if(w===127){S[2]=S[3]=0;S.writeUIntBE(A,4,6)}S[1]|=128;for(let i=0;i<A;++i){S[C+i]=u[i]^p[i&3]}return S}}i.exports={WebsocketFrameSend:WebsocketFrameSend}},19469:(i,u,p)=>{const{createInflateRaw:g,Z_DEFAULT_WINDOWBITS:A}=p(38522);const{isValidClientWindowBits:w}=p(98625);const C=Buffer.from([0,0,255,255]);const S=Symbol("kBuffer");const v=Symbol("kLength");class PerMessageDeflate{#ce;#e={};constructor(i){this.#e.serverNoContextTakeover=i.has("server_no_context_takeover");this.#e.serverMaxWindowBits=i.get("server_max_window_bits")}decompress(i,u,p){if(!this.#ce){let i=A;if(this.#e.serverMaxWindowBits){if(!w(this.#e.serverMaxWindowBits)){p(new Error("Invalid server_max_window_bits"));return}i=Number.parseInt(this.#e.serverMaxWindowBits)}this.#ce=g({windowBits:i});this.#ce[S]=[];this.#ce[v]=0;this.#ce.on("data",(i=>{this.#ce[S].push(i);this.#ce[v]+=i.length}));this.#ce.on("error",(i=>{this.#ce=null;p(i)}))}this.#ce.write(i);if(u){this.#ce.write(C)}this.#ce.flush((()=>{const i=Buffer.concat(this.#ce[S],this.#ce[v]);this.#ce[S].length=0;this.#ce[v]=0;p(null,i)}))}}i.exports={PerMessageDeflate:PerMessageDeflate}},81652:(i,u,p)=>{const{Writable:g}=p(57075);const A=p(34589);const{parserStates:w,opcodes:C,states:S,emptyBuffer:v,sentCloseFrameState:B}=p(20736);const{kReadyState:_,kSentClose:T,kResponse:N,kReceivedClose:x}=p(61216);const{channels:k}=p(42414);const{isValidStatusCode:O,isValidOpcode:D,failWebsocketConnection:Q,websocketMessageReceived:P,utf8Decode:L,isControlFrame:U,isTextBinaryFrame:H,isContinuationFrame:j}=p(98625);const{WebsocketFrameSend:z}=p(3264);const{closeWebSocketConnection:q}=p(86897);const{PerMessageDeflate:$}=p(19469);class ByteParser extends g{#le=[];#ue=0;#de=false;#O=w.INFO;#he={};#fe=[];#pe;constructor(i,u){super();this.ws=i;this.#pe=u==null?new Map:u;if(this.#pe.has("permessage-deflate")){this.#pe.set("permessage-deflate",new $(u))}}_write(i,u,p){this.#le.push(i);this.#ue+=i.length;this.#de=true;this.run(p)}run(i){while(this.#de){if(this.#O===w.INFO){if(this.#ue<2){return i()}const u=this.consume(2);const p=(u[0]&128)!==0;const g=u[0]&15;const A=(u[1]&128)===128;const S=!p&&g!==C.CONTINUATION;const v=u[1]&127;const B=u[0]&64;const _=u[0]&32;const T=u[0]&16;if(!D(g)){Q(this.ws,"Invalid opcode received");return i()}if(A){Q(this.ws,"Frame cannot be masked");return i()}if(B!==0&&!this.#pe.has("permessage-deflate")){Q(this.ws,"Expected RSV1 to be clear.");return}if(_!==0||T!==0){Q(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(S&&!H(g)){Q(this.ws,"Invalid frame type was fragmented.");return}if(H(g)&&this.#fe.length>0){Q(this.ws,"Expected continuation frame");return}if(this.#he.fragmented&&S){Q(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((v>125||S)&&U(g)){Q(this.ws,"Control frame either too large or fragmented");return}if(j(g)&&this.#fe.length===0&&!this.#he.compressed){Q(this.ws,"Unexpected continuation frame");return}if(v<=125){this.#he.payloadLength=v;this.#O=w.READ_DATA}else if(v===126){this.#O=w.PAYLOADLENGTH_16}else if(v===127){this.#O=w.PAYLOADLENGTH_64}if(H(g)){this.#he.binaryType=g;this.#he.compressed=B!==0}this.#he.opcode=g;this.#he.masked=A;this.#he.fin=p;this.#he.fragmented=S}else if(this.#O===w.PAYLOADLENGTH_16){if(this.#ue<2){return i()}const u=this.consume(2);this.#he.payloadLength=u.readUInt16BE(0);this.#O=w.READ_DATA}else if(this.#O===w.PAYLOADLENGTH_64){if(this.#ue<8){return i()}const u=this.consume(8);const p=u.readUInt32BE(0);if(p>2**31-1){Q(this.ws,"Received payload length > 2^31 bytes.");return}const g=u.readUInt32BE(4);this.#he.payloadLength=(p<<8)+g;this.#O=w.READ_DATA}else if(this.#O===w.READ_DATA){if(this.#ue<this.#he.payloadLength){return i()}const u=this.consume(this.#he.payloadLength);if(U(this.#he.opcode)){this.#de=this.parseControlFrame(u);this.#O=w.INFO}else{if(!this.#he.compressed){this.#fe.push(u);if(!this.#he.fragmented&&this.#he.fin){const i=Buffer.concat(this.#fe);P(this.ws,this.#he.binaryType,i);this.#fe.length=0}this.#O=w.INFO}else{this.#pe.get("permessage-deflate").decompress(u,this.#he.fin,((u,p)=>{if(u){q(this.ws,1007,u.message,u.message.length);return}this.#fe.push(p);if(!this.#he.fin){this.#O=w.INFO;this.#de=true;this.run(i);return}P(this.ws,this.#he.binaryType,Buffer.concat(this.#fe));this.#de=true;this.#O=w.INFO;this.#fe.length=0;this.run(i)}));this.#de=false;break}}}}}consume(i){if(i>this.#ue){throw new Error("Called consume() before buffers satiated.")}else if(i===0){return v}if(this.#le[0].length===i){this.#ue-=this.#le[0].length;return this.#le.shift()}const u=Buffer.allocUnsafe(i);let p=0;while(p!==i){const g=this.#le[0];const{length:A}=g;if(A+p===i){u.set(this.#le.shift(),p);break}else if(A+p>i){u.set(g.subarray(0,i-p),p);this.#le[0]=g.subarray(i-p);break}else{u.set(this.#le.shift(),p);p+=g.length}}this.#ue-=i;return u}parseCloseBody(i){A(i.length!==1);let u;if(i.lengtLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */S[C-4]=p[0];S[C-3]=p[1];S[C-2]=p[2];S[C-1]=p[3];S[1]=w;if(w===126){S.writeUInt16BE(A,2)}else if(w===127){S[2]=S[3]=0;S.writeUIntBE(A,4,6)}S[1]|=128;for(let i=0;i<A;++i){S[C+i]=u[i]^p[i&3]}return S}}i.exports={WebsocketFrameSend:WebsocketFrameSend}},19469:(i,u,p)=>{const{createInflateRaw:g,Z_DEFAULT_WINDOWBITS:A}=p(38522);const{isValidClientWindowBits:w}=p(98625);const{MessageSizeExceededError:C}=p(68707);const S=Buffer.from([0,0,255,255]);const v=Symbol("kBuffer");const B=Symbol("kLength");const _=4*1024*1024;class PerMessageDeflate{#ce;#e={};#M=false;#le=null;constructor(i){this.#e.serverNoContextTakeover=i.has("server_no_context_takeover");this.#e.serverMaxWindowBits=i.get("server_max_window_bits")}decompress(i,u,p){if(this.#M){p(new C);return}if(!this.#ce){let i=A;if(this.#e.serverMaxWindowBits){if(!w(this.#e.serverMaxWindowBits)){p(new Error("Invalid server_max_window_bits"));return}i=Number.parseInt(this.#e.serverMaxWindowBits)}try{this.#ce=g({windowBits:i})}catch(i){p(i);return}this.#ce[v]=[];this.#ce[B]=0;this.#ce.on("data",(i=>{if(this.#M){return}this.#ce[B]+=i.length;if(this.#ce[B]>_){this.#M=true;this.#ce.removeAllListeners();this.#ce.destroy();this.#ce=null;if(this.#le){const i=this.#le;this.#le=null;i(new C)}return}this.#ce[v].push(i)}));this.#ce.on("error",(i=>{this.#ce=null;p(i)}))}this.#le=p;this.#ce.write(i);if(u){this.#ce.write(S)}this.#ce.flush((()=>{if(this.#M||!this.#ce){return}const i=Buffer.concat(this.#ce[v],this.#ce[B]);this.#ce[v].length=0;this.#ce[B]=0;this.#le=null;p(null,i)}))}}i.exports={PerMessageDeflate:PerMessageDeflate}},81652:(i,u,p)=>{const{Writable:g}=p(57075);const A=p(34589);const{parserStates:w,opcodes:C,states:S,emptyBuffer:v,sentCloseFrameState:B}=p(20736);const{kReadyState:_,kSentClose:T,kResponse:N,kReceivedClose:x}=p(61216);const{channels:k}=p(42414);const{isValidStatusCode:O,isValidOpcode:D,failWebsocketConnection:Q,websocketMessageReceived:P,utf8Decode:L,isControlFrame:U,isTextBinaryFrame:H,isContinuationFrame:j}=p(98625);const{WebsocketFrameSend:z}=p(3264);const{closeWebSocketConnection:q}=p(86897);const{PerMessageDeflate:$}=p(19469);class ByteParser extends g{#ue=[];#de=0;#he=false;#O=w.INFO;#fe={};#pe=[];#ge;constructor(i,u){super();this.ws=i;this.#ge=u==null?new Map:u;if(this.#ge.has("permessage-deflate")){this.#ge.set("permessage-deflate",new $(u))}}_write(i,u,p){this.#ue.push(i);this.#de+=i.length;this.#he=true;this.run(p)}run(i){while(this.#he){if(this.#O===w.INFO){if(this.#de<2){return i()}const u=this.consume(2);const p=(u[0]&128)!==0;const g=u[0]&15;const A=(u[1]&128)===128;const S=!p&&g!==C.CONTINUATION;const v=u[1]&127;const B=u[0]&64;const _=u[0]&32;const T=u[0]&16;if(!D(g)){Q(this.ws,"Invalid opcode received");return i()}if(A){Q(this.ws,"Frame cannot be masked");return i()}if(B!==0&&!this.#ge.has("permessage-deflate")){Q(this.ws,"Expected RSV1 to be clear.");return}if(_!==0||T!==0){Q(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(S&&!H(g)){Q(this.ws,"Invalid frame type was fragmented.");return}if(H(g)&&this.#pe.length>0){Q(this.ws,"Expected continuation frame");return}if(this.#fe.fragmented&&S){Q(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((v>125||S)&&U(g)){Q(this.ws,"Control frame either too large or fragmented");return}if(j(g)&&this.#pe.length===0&&!this.#fe.compressed){Q(this.ws,"Unexpected continuation frame");return}if(v<=125){this.#fe.payloadLength=v;this.#O=w.READ_DATA}else if(v===126){this.#O=w.PAYLOADLENGTH_16}else if(v===127){this.#O=w.PAYLOADLENGTH_64}if(H(g)){this.#fe.binaryType=g;this.#fe.compressed=B!==0}this.#fe.opcode=g;this.#fe.masked=A;this.#fe.fin=p;this.#fe.fragmented=S}else if(this.#O===w.PAYLOADLENGTH_16){if(this.#de<2){return i()}const u=this.consume(2);this.#fe.payloadLength=u.readUInt16BE(0);this.#O=w.READ_DATA}else if(this.#O===w.PAYLOADLENGTH_64){if(this.#de<8){return i()}const u=this.consume(8);const p=u.readUInt32BE(0);const g=u.readUInt32BE(4);if(p!==0||g>2**31-1){Q(this.ws,"Received payload length > 2^31 bytes.");return}this.#fe.payloadLength=g;this.#O=w.READ_DATA}else if(this.#O===w.READ_DATA){if(this.#de<this.#fe.payloadLength){return i()}const u=this.consume(this.#fe.payloadLength);if(U(this.#fe.opcode)){this.#he=this.parseControlFrame(u);this.#O=w.INFO}else{if(!this.#fe.compressed){this.#pe.push(u);if(!this.#fe.fragmented&&this.#fe.fin){const i=Buffer.concat(this.#pe);P(this.ws,this.#fe.binaryType,i);this.#pe.length=0}this.#O=w.INFO}else{this.#ge.get("permessage-deflate").decompress(u,this.#fe.fin,((u,p)=>{if(u){Q(this.ws,u.message);return}this.#pe.push(p);if(!this.#fe.fin){this.#O=w.INFO;this.#he=true;this.run(i);return}P(this.ws,this.#fe.binaryType,Buffer.concat(this.#pe));this.#he=true;this.#O=w.INFO;this.#pe.length=0;this.run(i)}));this.#he=false;break}}}}}consume(i){if(i>this.#de){throw new Error("Called consume() before buffers satiated.")}else if(i===0){return v}if(this.#ue[0].length===i){this.#de-=this.#ue[0].length;return tLine truncated
/**
* ZipStream
*
@@ -112,7 +112,7 @@ i.exports=function(i,u){if(typeof i!=="string"){throw new TypeError("expected pa
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
* @copyright (c) 2014 Chris Talkington, contributors.
*/
var g=p(39023).inherits;var A=p(47544).ZipArchiveOutputStream;var w=p(47544).ZipArchiveEntry;var C=p(53296);var S=i.exports=function(i){if(!(this instanceof S)){return new S(i)}i=this.options=i||{};i.zlib=i.zlib||{};A.call(this,i);if(typeof i.level==="number"&&i.level>=0){i.zlib.level=i.level;delete i.level}if(!i.forceZip64&&typeof i.zlib.level==="number"&&i.zlib.level===0){i.store=true}i.namePrependSlash=i.namePrependSlash||false;if(i.comment&&i.comment.length>0){this.setComment(i.comment)}};g(S,A);S.prototype._normalizeFileData=function(i){i=C.defaults(i,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var u=i.type==="directory";var p=i.type==="symlink";if(i.name){i.name=C.sanitizePath(i.name);if(!p&&i.name.slice(-1)==="/"){u=true;i.type="directory"}else if(u){i.name+="/"}}if(u||p){i.store=true}i.date=C.dateify(i.date);return i};S.prototype.entry=function(i,u,p){if(typeof p!=="function"){p=this._emitErrorCallback.bind(this)}u=this._normalizeFileData(u);if(u.type!=="file"&&u.type!=="directory"&&u.type!=="symlink"){p(new Error(u.type+" entries not currently supported"));return}if(typeof u.name!=="string"||u.name.length===0){p(new Error("entry name must be a non-empty string value"));return}if(u.type==="symlink"&&typeof u.linkname!=="string"){p(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var g=new w(u.name);g.setTime(u.date,this.options.forceLocalTime);if(u.namePrependSlash){g.setName(u.name,true)}if(u.store){g.setMethod(0)}if(u.comment.length>0){g.setComment(u.comment)}if(u.type==="symlink"&&typeof u.mode!=="number"){u.mode=40960}if(typeof u.mode==="number"){if(u.type==="symlink"){u.mode|=40960}g.setUnixMode(u.mode)}if(u.type==="symlink"&&typeof u.linkname==="string"){i=Buffer.from(u.linkname)}return A.prototype.entry.call(this,g,i,p)};S.prototype.finalize=function(){this.finish()}},42613:u=>{u.exports=i(import.meta.url)("assert")},20181:u=>{u.exports=i(import.meta.url)("buffer")},49140:u=>{u.exports=i(import.meta.url)("constants")},76982:u=>{u.exports=i(import.meta.url)("crypto")},72250:u=>{u.exports=i(import.meta.url)("dns")},24434:u=>{u.exports=i(import.meta.url)("events")},79896:u=>{u.exports=i(import.meta.url)("fs")},91943:u=>{u.exports=i(import.meta.url)("fs/promises")},58611:u=>{u.exports=i(import.meta.url)("http")},85675:u=>{u.exports=i(import.meta.url)("http2")},65692:u=>{u.exports=i(import.meta.url)("https")},69278:u=>{u.exports=i(import.meta.url)("net")},34589:u=>{u.exports=i(import.meta.url)("node:assert")},16698:u=>{u.exports=i(import.meta.url)("node:async_hooks")},4573:u=>{u.exports=i(import.meta.url)("node:buffer")},37540:u=>{u.exports=i(import.meta.url)("node:console")},77598:u=>{u.exports=i(import.meta.url)("node:crypto")},53053:u=>{u.exports=i(import.meta.url)("node:diagnostics_channel")},40610:u=>{u.exports=i(import.meta.url)("node:dns")},78474:u=>{u.exports=i(import.meta.url)("node:events")},73024:u=>{u.exports=i(import.meta.url)("node:fs")},51455:u=>{u.exports=i(import.meta.url)("node:fs/promises")},37067:u=>{u.exports=i(import.meta.url)("node:http")},32467:u=>{u.exports=i(import.meta.url)("node:http2")},77030:u=>{u.exports=i(import.meta.url)("node:net")},76760:u=>{u.exports=i(import.meta.url)("node:path")},643:u=>{u.exports=i(import.meta.url)("node:perf_hooks")},41792:u=>{u.exports=i(import.meta.url)("node:querystring")},57075:u=>{u.exports=i(import.meta.url)("node:stream")},46193:u=>{u.exports=i(import.meta.url)("node:string_decoder")},41692:u=>{u.exports=i(import.meta.url)("node:tls")},73136:u=>{u.exports=i(import.meta.url)("node:url")},57975:u=>{u.exports=i(import.meta.url)("node:util")},73429:u=>{u.exports=i(import.meta.url)("node:util/types")},75919:u=>{u.exports=i(import.meta.url)("node:worker_threads")},38522:u=>{u.exports=i(import.meta.url)("node:zlib")},70857:u=>{u.exports=i(import.meta.url)("os")},16928:u=>{u.exports=i(import.meta.url)("path")},2203:u=>{u.exports=i(import.meta.url)("stream")},13193:u=>{u.exports=i(import.meta.url)("string_decoder")},16460:u=>{u.exports=i(import.meta.url)("timers/promises")},64756:u=>{u.exports=i(import.meta.url)("tls")},52018:u=>{u.exports=i(import.meta.url)("tty")},87016:u=>{u.exports=i(import.meta.url)("url")},39023:u=>{u.exports=i(import.meta.url)("util")},43106:u=>{u.exports=i(import.meta.url)("zlib")},33345:(i,u)=>{var p;p={value:true};u.w=void 0;u.w={operationRequestMap:new WeakMap}},38914:(i,u)=>{var p;p={value:true};u.w=void 0;u.w={instrumenterImplementation:undefined}},49498:(i,u,p)=>{const g=p(5546);const isRetryError=i=>i?.code==="EPROMISERETRY"&&Object.hasOwn(i,"retried");async function promiseRetry(i,u={}){const p=g.operation(u);return new Promise((function(u,g){p.attempt((async A=>{try{const g=await i((i=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:i})}),A,p);return u(g)}catch(i){if(isRetryError(i)){if(p.retry(i.retried||new Error)){return}return g(i.retried)Line truncated
var g=p(39023).inherits;var A=p(47544).ZipArchiveOutputStream;var w=p(47544).ZipArchiveEntry;var C=p(53296);var S=i.exports=function(i){if(!(this instanceof S)){return new S(i)}i=this.options=i||{};i.zlib=i.zlib||{};A.call(this,i);if(typeof i.level==="number"&&i.level>=0){i.zlib.level=i.level;delete i.level}if(!i.forceZip64&&typeof i.zlib.level==="number"&&i.zlib.level===0){i.store=true}i.namePrependSlash=i.namePrependSlash||false;if(i.comment&&i.comment.length>0){this.setComment(i.comment)}};g(S,A);S.prototype._normalizeFileData=function(i){i=C.defaults(i,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var u=i.type==="directory";var p=i.type==="symlink";if(i.name){i.name=C.sanitizePath(i.name);if(!p&&i.name.slice(-1)==="/"){u=true;i.type="directory"}else if(u){i.name+="/"}}if(u||p){i.store=true}i.date=C.dateify(i.date);return i};S.prototype.entry=function(i,u,p){if(typeof p!=="function"){p=this._emitErrorCallback.bind(this)}u=this._normalizeFileData(u);if(u.type!=="file"&&u.type!=="directory"&&u.type!=="symlink"){p(new Error(u.type+" entries not currently supported"));return}if(typeof u.name!=="string"||u.name.length===0){p(new Error("entry name must be a non-empty string value"));return}if(u.type==="symlink"&&typeof u.linkname!=="string"){p(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var g=new w(u.name);g.setTime(u.date,this.options.forceLocalTime);if(u.namePrependSlash){g.setName(u.name,true)}if(u.store){g.setMethod(0)}if(u.comment.length>0){g.setComment(u.comment)}if(u.type==="symlink"&&typeof u.mode!=="number"){u.mode=40960}if(typeof u.mode==="number"){if(u.type==="symlink"){u.mode|=40960}g.setUnixMode(u.mode)}if(u.type==="symlink"&&typeof u.linkname==="string"){i=Buffer.from(u.linkname)}return A.prototype.entry.call(this,g,i,p)};S.prototype.finalize=function(){this.finish()}},42613:u=>{u.exports=i(import.meta.url)("assert")},20181:u=>{u.exports=i(import.meta.url)("buffer")},49140:u=>{u.exports=i(import.meta.url)("constants")},76982:u=>{u.exports=i(import.meta.url)("crypto")},72250:u=>{u.exports=i(import.meta.url)("dns")},24434:u=>{u.exports=i(import.meta.url)("events")},79896:u=>{u.exports=i(import.meta.url)("fs")},91943:u=>{u.exports=i(import.meta.url)("fs/promises")},58611:u=>{u.exports=i(import.meta.url)("http")},85675:u=>{u.exports=i(import.meta.url)("http2")},65692:u=>{u.exports=i(import.meta.url)("https")},69278:u=>{u.exports=i(import.meta.url)("net")},34589:u=>{u.exports=i(import.meta.url)("node:assert")},16698:u=>{u.exports=i(import.meta.url)("node:async_hooks")},4573:u=>{u.exports=i(import.meta.url)("node:buffer")},37540:u=>{u.exports=i(import.meta.url)("node:console")},77598:u=>{u.exports=i(import.meta.url)("node:crypto")},53053:u=>{u.exports=i(import.meta.url)("node:diagnostics_channel")},40610:u=>{u.exports=i(import.meta.url)("node:dns")},78474:u=>{u.exports=i(import.meta.url)("node:events")},73024:u=>{u.exports=i(import.meta.url)("node:fs")},51455:u=>{u.exports=i(import.meta.url)("node:fs/promises")},37067:u=>{u.exports=i(import.meta.url)("node:http")},32467:u=>{u.exports=i(import.meta.url)("node:http2")},77030:u=>{u.exports=i(import.meta.url)("node:net")},76760:u=>{u.exports=i(import.meta.url)("node:path")},643:u=>{u.exports=i(import.meta.url)("node:perf_hooks")},41792:u=>{u.exports=i(import.meta.url)("node:querystring")},57075:u=>{u.exports=i(import.meta.url)("node:stream")},46193:u=>{u.exports=i(import.meta.url)("node:string_decoder")},41692:u=>{u.exports=i(import.meta.url)("node:tls")},73136:u=>{u.exports=i(import.meta.url)("node:url")},57975:u=>{u.exports=i(import.meta.url)("node:util")},73429:u=>{u.exports=i(import.meta.url)("node:util/types")},75919:u=>{u.exports=i(import.meta.url)("node:worker_threads")},38522:u=>{u.exports=i(import.meta.url)("node:zlib")},70857:u=>{u.exports=i(import.meta.url)("os")},16928:u=>{u.exports=i(import.meta.url)("path")},2203:u=>{u.exports=i(import.meta.url)("stream")},13193:u=>{u.exports=i(import.meta.url)("string_decoder")},16460:u=>{u.exports=i(import.meta.url)("timers/promises")},64756:u=>{u.exports=i(import.meta.url)("tls")},52018:u=>{u.exports=i(import.meta.url)("tty")},87016:u=>{u.exports=i(import.meta.url)("url")},39023:u=>{u.exports=i(import.meta.url)("util")},43106:u=>{u.exports=i(import.meta.url)("zlib")},33345:(i,u)=>{var p;p={value:true};u.w=void 0;u.w={operationRequestMap:new WeakMap}},38914:(i,u)=>{var p;p={value:true};u.w=void 0;u.w={instrumenterImplementation:undefined}},49498:(i,u,p)=>{const g=p(5546);const isRetryError=i=>i?.code==="EPROMISERETRY"&&Object.hasOwn(i,"retried");async function promiseRetry(i,u={}){const p=g.operation(u);return new Promise((function(u,g){p.attempt((async A=>{try{const g=await i((i=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:i})}),A,p);return u(g)}catch(i){if(isRetryError(i)){if(p.retry(i.retried||new Error)){return}return g(i.retried)Line truncated
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */if("response"in p){this.response=p.response}const g=Object.assign({},p.request);if(p.request.headers.authorization){g.headers=Object.assign({},p.request.headers,{authorization:p.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})}g.url=g.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=g}}var Yg="10.0.8";var Kg={headers:{"user-agent":`octokit-request.js/${Yg} ${getUserAgent()}`}};function dist_bundle_isPlainObject(i){if(typeof i!=="object"||i===null)return false;if(Object.prototype.toString.call(i)!=="[object Object]")return false;const u=Object.getPrototypeOf(i);if(u===null)return true;const p=Object.prototype.hasOwnProperty.call(u,"constructor")&&u.constructor;return typeof p==="function"&&p instanceof p&&Function.prototype.call(p)===Function.prototype.call(i)}var noop=()=>"";async function fetchWrapper(i){const u=i.request?.fetch||globalThis.fetch;if(!u){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const p=i.request?.log||console;const g=i.request?.parseSuccessResponseBody!==false;const A=dist_bundle_isPlainObject(i.body)||Array.isArray(i.body)?JSONStringify(i.body):i.body;const w=Object.fromEntries(Object.entries(i.headers).map((([i,u])=>[i,String(u)])));let C;try{C=await u(i.url,{method:i.method,body:A,redirect:i.request?.redirect,headers:w,signal:i.request?.signal,...i.body&&{duplex:"half"}})}catch(u){let p="Unknown Error";if(u instanceof Error){if(u.name==="AbortError"){u.status=500;throw u}p=u.message;if(u.name==="TypeError"&&"cause"in u){if(u.cause instanceof Error){p=u.cause.message}else if(typeof u.cause==="string"){p=u.cause}}}const g=new RequestError(p,500,{request:i});g.cause=u;throw g}const S=C.status;const v=C.url;const B={};for(const[i,u]of C.headers){B[i]=u}const _={url:v,status:S,headers:B,data:""};if("deprecation"in B){const u=B.link&&B.link.match(/<([^<>]+)>; rel="deprecation"/);const g=u&&u.pop();p.warn(`[@octokit/request] "${i.method} ${i.url}" is deprecated. It is scheduled to be removed on ${B.sunset}${g?`. See ${g}`:""}`)}if(S===204||S===205){return _}if(i.method==="HEAD"){if(S<400){return _}throw new RequestError(C.statusText,S,{response:_,request:i})}if(S===304){_.data=await getResponseData(C);throw new RequestError("Not modified",S,{response:_,request:i})}if(S>=400){_.data=await getResponseData(C);throw new RequestError(toErrorMessage(_.data),S,{response:_,request:i})}_.data=g?await getResponseData(C):C.body;return _}async function getResponseData(i){const u=i.headers.get("content-type");if(!u){return i.text().catch(noop)}const p=(0,Mg.xL)(u);if(isJSONResponse(p)){let u="";try{u=await i.text();return JSONParse(u)}catch(i){return u}}else if(p.type.startsWith("text/")||p.parameters.charset?.toLowerCase()==="utf-8"){return i.text().catch(noop)}else{return i.arrayBuffer().catch((
/* v8 ignore next -- @preserve */
()=>new ArrayBuffer(0)))}}function isJSONResponse(i){return i.type==="application/json"||i.type==="application/scim+json"}function toErrorMessage(i){if(typeof i==="string"){return i}if(i instanceof ArrayBuffer){return"Unknown error"}if("message"in i){const u="documentation_url"in i?` - ${i.documentation_url}`:"";return Array.isArray(i.errors)?`${i.message}: ${i.errors.map((i=>JSON.stringify(i))).join(", ")}${u}`:`${i.message}${u}`}return`Unknown error: ${JSON.stringify(i)}`}function dist_bundle_withDefaults(i,u){const p=i.defaults(u);const newApi=function(i,u){const g=p.merge(i,u);if(!g.request||!g.request.hook){return fetchWrapper(p.parse(g))}const request2=(i,u)=>fetchWrapper(p.parse(p.merge(i,u)));Object.assign(request2,{endpoint:p,defaults:dist_bundle_withDefaults.bind(null,p)});return g.request.hook(request2,g)};return Object.assign(newApi,{endpoint:p,defaults:dist_bundle_withDefaults.bind(null,p)})}var Zg=dist_bundle_withDefaults(Lg,Kg);
Generated Vendored
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"index.js","names":["__awaiter","this","thisArg","_arguments","P","generator","adopt","value","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","Object","defineProperty","exports","ClientStreamingCall","constructor","method","requestHeaders","request","headers","response","status","trailers","requests","onfulfilled","onrejected","promiseFinished","reason","all","Deferred","DeferredState","preventUnhandledRejectionWarning","_state","PENDING","_promise","_resolve","_reject","catch","_","state","promise","Error","toLowerCase","RESOLVED","REJECTED","resolvePending","val","rejectPending","DuplexStreamingCall","responses","__webpack_unused_export__","service_type_1","__webpack_require__","enumerable","get","ServiceType","reflection_info_1","readMethodOptions","readMethodOption","readServiceOption","rpc_error_1","RpcError","rpc_options_1","mergeRpcOptions","rpc_output_stream_1","RpcOutputStreamController","test_transport_1","TestTransport","deferred_1","duplex_streaming_call_1","client_streaming_call_1","server_streaming_call_1","ServerStreamingCall","unary_call_1","UnaryCall","rpc_interceptor_1","stackIntercept","stackDuplexStreamingInterceptors","stackClientStreamingInterceptors","stackServerStreamingInterceptors","stackUnaryInterceptors","server_call_context_1","ServerCallContextController","normalizeMethodInfo","runtime_1","service","_a","_b","_c","m","localName","lowerCamelCase","name","serverStreaming","clientStreaming","options","idempotency","undefined","methodName","extensionName","extensionType","methods","find","i","fromJson","optionVal","message","code","meta","super","setPrototypeOf","prototype","toString","l","push","serviceName","entries","length","k","v","join","kind","transport","input","_d","tail","mtd","inp","opt","unary","curr","interceptors","filter","interceptUnary","reverse","interceptServerStreaming","interceptClientStreaming","duplex","interceptDuplex","assertNever","defaults","o","copy","key","keys","jsonOptions","mergeJsonOptions","binaryOptions","mergeBinaryOptions","concat","a","into","c","Date","getTime","Array","isArray","_lis","nxt","msg","err","cmp","_closed","_itState","q","onNext","callback","addLis","onMessage","onError","onComplete","list","indexOf","splice","clearLis","values","closed","notifyNext","error","complete","assert","notifyMessage","notifyError","notifyComplete","pushIt","forEach","Symbol","asyncIterator","p","first","shift","deadline","sendResponseHeadersFn","defaultStatus","detail","_cancelled","_listeners","_sendRH","notifyCancelled","sendResponseHeaders","data","cancelled","onCancel","typeName","map","suppressUncaughtRejections","headerDelay","responseDelay","betweenResponseDelay","afterResponseDelay","sentMessages","lastInput","TestInputStream","sent","single","sendComplete","completed","promiseHeaders","defaultHeaders","promiseSingleResponse","r","O","create","is","streamResponses","stream","abort","messages","delay","promiseStatus","promiseTrailers","defaultTrailers","maybeSuppressUncaught","mergeOptions","headersPromise","responsePromise","statusPromise","trailersPromise","outputStream","responseStreamClosedPromise","responseHeader","responseTrailer","ms","aborted","id","setTimeout","addEventListener","ev","clearTimeout","_completed","_sent","send","inputMessage","delayMs","inputComplete","assertFloat32","assertUInt32","assertInt32","condition","FLOAT32_MAX","FLOAT32_MIN","UINT32_MAX","INT32_MAX","INT32_MIN","arg","Number","isInteger","isFinite","base64encode","base64decode","encTable","split","decTable","charCodeAt","base64Str","es","bytes","Uint8Array","bytePos","groupPos","b","subarray","base64","WireType","UnknownFieldHandler","symbol","for","onRead","fieldNo","wireType","container","no","onWrite","writer","tag","raw","uf","last","slice","assign","BinaryReader","binaryReadOptions","binary_format_contract_1","pb_long_1","goog_varint_1","defaultsRead","readUnknownField","readerFactory","buf","textDecoder","varint64","varint64read","uint32","varint32read","len","pos","view","DataView","buffer","byteOffset","byteLength","TextDecoder","fatal","ignoreBOM","skip","start","Varint","Bit64","Bit32","LengthDelimited","StartGroup","t","EndGroup","assertBounds","RangeError","int32","sint32","zze","int64","PbLong","uint64","PbULong","sint64","lo","hi","s","bool","fixed32","getUint32","sfixed32","getInt32","fixed64","sfixed64","float","getFloat32","double","getFloat64","string","decode","BinaryWriter","binaryWriteOptions","assert_1","defaultsWrite","writeUnknownFields","writerFactory","textEncoder","stack","TextEncoder","chunks","finish","offset","set","fork","chunk","prev","pop","type","varint32write","encode","setFloat32","setFloat64","setUint32","setInt32","long","from","varint64write","sign","listEnumNumbers","listEnumNames","listEnumValues","isEnumObject","hasOwnProperty","num","parseInt","isNaN","nam","enumObject","number","index","arr","int64toString","int64fromString","lowBits","highBits","mLine truncated
{"version":3,"file":"index.js","names":["__awaiter","this","thisArg","_arguments","P","generator","adopt","value","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","Object","defineProperty","exports","ClientStreamingCall","constructor","method","requestHeaders","request","headers","response","status","trailers","requests","onfulfilled","onrejected","promiseFinished","reason","all","Deferred","DeferredState","preventUnhandledRejectionWarning","_state","PENDING","_promise","_resolve","_reject","catch","_","state","promise","Error","toLowerCase","RESOLVED","REJECTED","resolvePending","val","rejectPending","DuplexStreamingCall","responses","__webpack_unused_export__","service_type_1","__webpack_require__","enumerable","get","ServiceType","reflection_info_1","readMethodOptions","readMethodOption","readServiceOption","rpc_error_1","RpcError","rpc_options_1","mergeRpcOptions","rpc_output_stream_1","RpcOutputStreamController","test_transport_1","TestTransport","deferred_1","duplex_streaming_call_1","client_streaming_call_1","server_streaming_call_1","ServerStreamingCall","unary_call_1","UnaryCall","rpc_interceptor_1","stackIntercept","stackDuplexStreamingInterceptors","stackClientStreamingInterceptors","stackServerStreamingInterceptors","stackUnaryInterceptors","server_call_context_1","ServerCallContextController","normalizeMethodInfo","runtime_1","service","_a","_b","_c","m","localName","lowerCamelCase","name","serverStreaming","clientStreaming","options","idempotency","undefined","methodName","extensionName","extensionType","methods","find","i","fromJson","optionVal","message","code","meta","super","setPrototypeOf","prototype","toString","l","push","serviceName","entries","length","k","v","join","kind","transport","input","_d","tail","mtd","inp","opt","unary","curr","interceptors","filter","interceptUnary","reverse","interceptServerStreaming","interceptClientStreaming","duplex","interceptDuplex","assertNever","defaults","o","copy","key","keys","jsonOptions","mergeJsonOptions","binaryOptions","mergeBinaryOptions","concat","a","into","c","Date","getTime","Array","isArray","_lis","nxt","msg","err","cmp","_closed","_itState","q","onNext","callback","addLis","onMessage","onError","onComplete","list","indexOf","splice","clearLis","values","closed","notifyNext","error","complete","assert","notifyMessage","notifyError","notifyComplete","pushIt","forEach","Symbol","asyncIterator","p","first","shift","deadline","sendResponseHeadersFn","defaultStatus","detail","_cancelled","_listeners","_sendRH","notifyCancelled","sendResponseHeaders","data","cancelled","onCancel","typeName","map","suppressUncaughtRejections","headerDelay","responseDelay","betweenResponseDelay","afterResponseDelay","sentMessages","lastInput","TestInputStream","sent","single","sendComplete","completed","promiseHeaders","defaultHeaders","promiseSingleResponse","r","O","create","is","streamResponses","stream","abort","messages","delay","promiseStatus","promiseTrailers","defaultTrailers","maybeSuppressUncaught","mergeOptions","headersPromise","responsePromise","statusPromise","trailersPromise","outputStream","responseStreamClosedPromise","responseHeader","responseTrailer","ms","aborted","id","setTimeout","addEventListener","ev","clearTimeout","_completed","_sent","send","inputMessage","delayMs","inputComplete","assertFloat32","assertUInt32","assertInt32","condition","FLOAT32_MAX","FLOAT32_MIN","UINT32_MAX","INT32_MAX","INT32_MIN","arg","Number","isInteger","isFinite","base64encode","base64decode","encTable","split","decTable","charCodeAt","base64Str","es","bytes","Uint8Array","bytePos","groupPos","b","subarray","base64","WireType","UnknownFieldHandler","symbol","for","onRead","fieldNo","wireType","container","no","onWrite","writer","tag","raw","uf","last","slice","assign","BinaryReader","binaryReadOptions","binary_format_contract_1","pb_long_1","goog_varint_1","defaultsRead","readUnknownField","readerFactory","buf","textDecoder","varint64","varint64read","uint32","varint32read","len","pos","view","DataView","buffer","byteOffset","byteLength","TextDecoder","fatal","ignoreBOM","skip","start","Varint","Bit64","Bit32","LengthDelimited","StartGroup","t","EndGroup","assertBounds","RangeError","int32","sint32","zze","int64","PbLong","uint64","PbULong","sint64","lo","hi","s","bool","fixed32","getUint32","sfixed32","getInt32","fixed64","sfixed64","float","getFloat32","double","getFloat64","string","decode","BinaryWriter","binaryWriteOptions","assert_1","defaultsWrite","writeUnknownFields","writerFactory","textEncoder","stack","TextEncoder","chunks","finish","offset","set","fork","chunk","prev","pop","type","varint32write","encode","setFloat32","setFloat64","setUint32","setInt32","long","from","varint64write","sign","listEnumNumbers","listEnumNames","listEnumValues","isEnumObject","hasOwnProperty","num","parseInt","isNaN","nam","enumObject","number","index","arr","int64toString","int64fromString","lowBits","highBits","mLine truncated
+3 -3
View File
@@ -4412,9 +4412,9 @@ __metadata:
linkType: hard
"undici@npm:^6.23.0":
version: 6.23.0
resolution: "undici@npm:6.23.0"
checksum: 10/56950995e7b628e62c996430445d17995ca9b70f6f2afe760a63da54205660d968bd08f0741b6f4fb008f40aa35c69cce979cd96ced399585d8c897a76a4f1d1
version: 6.24.1
resolution: "undici@npm:6.24.1"
checksum: 10/4f84e6045520eef9ba8eabb96360b50c759f59905c1703b12187c2dbcc6d1584c5d7ecddeb45b0ed6cac84ca2d132b21bfd8a38f77fa30378b1ac5d2ae390fd9
languageName: node
linkType: hard