@testmuai/kane-cli 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChromeProfilePicker-HNP7QQ4J.js → ChromeProfilePicker-H427EL5U.js} +1 -1
- package/dist/{CliFeedbackPrompt-OSNATI4W.js → CliFeedbackPrompt-D7DXZR4B.js} +1 -1
- package/dist/{CliUploadProgress-7HRWDZ4P.js → CliUploadProgress-TZOIZVBK.js} +1 -1
- package/dist/{ConfigView-PQH67FUK.js → ConfigView-ZU5ZNKUD.js} +1 -1
- package/dist/FolderPicker-3NJWN2F2.js +2 -0
- package/dist/{HelpView-HFKFRKG3.js → HelpView-DWUH3LLF.js} +1 -1
- package/dist/{InfoBox-3IN3IZ2I.js → InfoBox-5GHCKHZE.js} +1 -1
- package/dist/{LinksBox-DI5QKX6K.js → LinksBox-7RJTKT4B.js} +1 -1
- package/dist/{ProfilesView-N6XNSUHQ.js → ProfilesView-YSIGYTJM.js} +1 -1
- package/dist/{ProjectPicker-6QIVHOO7.js → ProjectPicker-XC6TSIR2.js} +1 -1
- package/dist/{SaveSessionPrompt-7CZHPNYK.js → SaveSessionPrompt-MRUJIK7M.js} +1 -1
- package/dist/SingleShotApp-M6GGEFNF.js +2 -0
- package/dist/{SummaryBox-7ZK2A6MA.js → SummaryBox-ANGQ3UJN.js} +1 -1
- package/dist/TestMdRunView-PMTEPMCQ.js +2 -0
- package/dist/{WhoamiView-3E447A3G.js → WhoamiView-D5XIL6WM.js} +1 -1
- package/dist/{changelog-ZBTZCYKI.js → changelog-LAWVQATM.js} +1 -1
- package/dist/{chunk-CZBHDBID.js → chunk-2COEECXK.js} +1 -1
- package/dist/{chunk-NKFXY5TF.js → chunk-2PAQTECV.js} +2 -2
- package/dist/{chunk-RCL22HDJ.js → chunk-34JPQPWA.js} +1 -1
- package/dist/{chunk-VBZIIF5N.js → chunk-5JCW7SWD.js} +1 -1
- package/dist/{chunk-S7JV4A3U.js → chunk-6TJO4BQP.js} +1 -1
- package/dist/{chunk-YB67GRWE.js → chunk-ALVFWRMC.js} +1 -1
- package/dist/{chunk-4ZHU4DLD.js → chunk-CIJJJRAO.js} +1 -1
- package/dist/{chunk-EEF6OT52.js → chunk-D3NAXZ2R.js} +8 -8
- package/dist/{chunk-34YRU7WM.js → chunk-F5QI2E6V.js} +2 -2
- package/dist/{chunk-KPF3BPJ5.js → chunk-FNRTXVR2.js} +1 -1
- package/dist/chunk-FS2B5IHO.js +2 -0
- package/dist/{chunk-GNJBT6SS.js → chunk-GAZK7QSI.js} +1 -1
- package/dist/{chunk-PQIPYWTP.js → chunk-H6SXCNLJ.js} +1 -1
- package/dist/{chunk-UHGECBEN.js → chunk-IUECYFR6.js} +1 -1
- package/dist/{chunk-RD6G3CMN.js → chunk-JRBDKEHJ.js} +1 -1
- package/dist/chunk-JSCT5YQ6.js +2 -0
- package/dist/chunk-JULO4KDA.js +22 -0
- package/dist/{chunk-VL57GII7.js → chunk-JWJAOZT6.js} +1 -1
- package/dist/{chunk-QXVI3LI4.js → chunk-KXRQELOX.js} +1 -1
- package/dist/{chunk-ELZIC2EH.js → chunk-LCLMSRS3.js} +1 -1
- package/dist/{chunk-OISHNB7D.js → chunk-LUYOWEJW.js} +1 -1
- package/dist/{chunk-7CBWZLRS.js → chunk-M23DF6UM.js} +1 -1
- package/dist/{chunk-PF7PBYCJ.js → chunk-MCYS4R5P.js} +1 -1
- package/dist/{chunk-R7T6Z6QW.js → chunk-MRKDRLID.js} +1 -1
- package/dist/{chunk-FFTIDI5K.js → chunk-POFY6TC3.js} +1 -1
- package/dist/{chunk-HN7DVSVI.js → chunk-PUU7A26K.js} +1 -1
- package/dist/chunk-QAS2SVT3.js +5 -0
- package/dist/chunk-QIMR6EU3.js +8 -0
- package/dist/{chunk-AAJSF67A.js → chunk-QSOQ2JMW.js} +1 -1
- package/dist/{chunk-4UKCDU64.js → chunk-RKAQBRNT.js} +1 -1
- package/dist/{chunk-DGUXTSHM.js → chunk-RSRBUJRW.js} +1 -1
- package/dist/chunk-TTRJNNAV.js +2 -0
- package/dist/{chunk-BM25JQ3Z.js → chunk-W4OWTRMO.js} +1 -1
- package/dist/{chunk-Y6IUJZMV.js → chunk-WUY26ICP.js} +1 -1
- package/dist/{chunk-TQGNNJX5.js → chunk-YJY3HPGV.js} +1 -1
- package/dist/{chunk-LOSNFBZV.js → chunk-YPOA4277.js} +1 -1
- package/dist/{chunk-AKKATURY.js → chunk-Z5YG763L.js} +2 -2
- package/dist/chunk-ZTYRCGGQ.js +60 -0
- package/dist/{generate-headless-WL6A6ACX.js → generate-headless-FYQ4IAPL.js} +2 -2
- package/dist/index.js +36 -36
- package/dist/{list-commands-MK4W3Q7O.js → list-commands-JMSIAYLR.js} +1 -1
- package/dist/login-flow-WMUIDH7C.js +2 -0
- package/dist/{persist-recorded-session-A5EJ25AE.js → persist-recorded-session-QUEFYH4U.js} +1 -1
- package/dist/{pipeline-L5TDZMLS.js → pipeline-IXEPO6AR.js} +1 -1
- package/dist/{recording-banner-6UI6NNRK.js → recording-banner-TI2Q7HV5.js} +1 -1
- package/dist/{require-project-folder-J5WZR653.js → require-project-folder-HOSORDUO.js} +1 -1
- package/dist/{run-test-md-I76IV7QA.js → run-test-md-XFQCBCIC.js} +6 -6
- package/dist/{skill-installer-ZLBRT4QP.js → skill-installer-WYDRFJRS.js} +1 -1
- package/dist/tcg-generate-7IZZWQSU.js +2 -0
- package/dist/testmd-actions-QH7EQAOK.js +2 -0
- package/dist/token-refresh-YTRMAHED.js +2 -0
- package/dist/{validate-basic-QUPVT2EV.js → validate-basic-CAF6WSCM.js} +1 -1
- package/dist/{version-check-RVK5YKDZ.js → version-check-2RMMQEZJ.js} +1 -1
- package/package.json +6 -5
- package/dist/FolderPicker-SET7IG6S.js +0 -2
- package/dist/SingleShotApp-A4VXMXEZ.js +0 -2
- package/dist/TestMdRunView-KGHEZZBK.js +0 -2
- package/dist/chunk-3QWAABMG.js +0 -2
- package/dist/chunk-DQASLGFG.js +0 -60
- package/dist/chunk-H2P7UJAU.js +0 -8
- package/dist/chunk-K4PLPKPF.js +0 -5
- package/dist/chunk-LY5LHKGG.js +0 -18
- package/dist/chunk-RLSBAT6P.js +0 -2
- package/dist/chunk-WFSTRBQF.js +0 -2
- package/dist/login-flow-CDR6ARK3.js +0 -2
- package/dist/tcg-generate-R6P4QUGO.js +0 -2
- package/dist/testmd-actions-W2INQVTH.js +0 -2
- package/dist/token-refresh-4QLWR5ZI.js +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as Oc,b as Ic}from"./chunk-MDBXYXSC.js";import{a as Ac}from"./chunk-WAOCHXJ5.js";import{a as Rc}from"./chunk-LPUQ4HWQ.js";import{a as Tc}from"./chunk-NLCCBXXV.js";import{a as Xt}from"./chunk-RZ4F3BHX.js";import{a as P,b as QE,c as g,d as XE,e as JE,f as ev}from"./chunk-UR6MHSHU.js";var qc=g((XB,Fc)=>{"use strict";var fv=typeof process=="object"&&process&&process.platform==="win32";Fc.exports=fv?{sep:"\\"}:{sep:"/"}});var zc=g((JB,Wc)=>{"use strict";Wc.exports=Bc;function Bc(t,e,r){t instanceof RegExp&&(t=jc(t,r)),e instanceof RegExp&&(e=jc(e,r));var i=Uc(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function jc(t,e){var r=e.match(t);return r?r[0]:null}Bc.range=Uc;function Uc(t,e,r){var i,n,s,o,a,l=r.indexOf(t),u=r.indexOf(e,l+1),f=l;if(l>=0&&u>0){if(t===e)return[l,u];for(i=[],s=r.length;f>=0&&!a;)f==l?(i.push(f),l=r.indexOf(t,f+1)):i.length==1?a=[i.pop(),u]:(n=i.pop(),n<s&&(s=n,o=u),u=r.indexOf(e,f+1)),f=l<u&&l>=0?l:u;i.length&&(a=[s,o])}return a}});var oa=g((e3,Zc)=>{"use strict";var Gc=zc();Zc.exports=dv;var $c="\0SLASH"+Math.random()+"\0",Hc="\0OPEN"+Math.random()+"\0",sa="\0CLOSE"+Math.random()+"\0",Vc="\0COMMA"+Math.random()+"\0",Yc="\0PERIOD"+Math.random()+"\0";function na(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function cv(t){return t.split("\\\\").join($c).split("\\{").join(Hc).split("\\}").join(sa).split("\\,").join(Vc).split("\\.").join(Yc)}function hv(t){return t.split($c).join("\\").split(Hc).join("{").split(sa).join("}").split(Vc).join(",").split(Yc).join(".")}function Kc(t){if(!t)return[""];var e=[],r=Gc("{","}",t);if(!r)return t.split(",");var i=r.pre,n=r.body,s=r.post,o=i.split(",");o[o.length-1]+="{"+n+"}";var a=Kc(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function dv(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),_i(cv(t),!0).map(hv)):[]}function pv(t){return"{"+t+"}"}function gv(t){return/^-?0\d/.test(t)}function _v(t,e){return t<=e}function yv(t,e){return t>=e}function _i(t,e){var r=[],i=Gc("{","}",t);if(!i)return[t];var n=i.pre,s=i.post.length?_i(i.post,!1):[""];if(/\$$/.test(i.pre))for(var o=0;o<s.length;o++){var a=n+"{"+i.body+"}"+s[o];r.push(a)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=l||u,c=i.body.indexOf(",")>=0;if(!f&&!c)return i.post.match(/,(?!,).*\}/)?(t=i.pre+"{"+i.body+sa+i.post,_i(t)):[t];var h;if(f)h=i.body.split(/\.\./);else if(h=Kc(i.body),h.length===1&&(h=_i(h[0],!1).map(pv),h.length===1))return s.map(function(R){return i.pre+h[0]+R});var d;if(f){var m=na(h[0]),p=na(h[1]),S=Math.max(h[0].length,h[1].length),y=h.length==3?Math.max(Math.abs(na(h[2])),1):1,b=_v,v=p<m;v&&(y*=-1,b=yv);var E=h.some(gv);d=[];for(var T=m;b(T,p);T+=y){var D;if(u)D=String.fromCharCode(T),D==="\\"&&(D="");else if(D=String(T),E){var x=S-D.length;if(x>0){var O=new Array(x+1).join("0");T<0?D="-"+O+D.slice(1):D=O+D}}d.push(D)}}else{d=[];for(var w=0;w<h.length;w++)d.push.apply(d,_i(h[w],!1))}for(var w=0;w<d.length;w++)for(var o=0;o<s.length;o++){var a=n+d[w]+s[o];(!e||f||a)&&r.push(a)}}return r}});var rh=g((r3,ca)=>{"use strict";var Ne=ca.exports=(t,e,r={})=>(Fn(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Er(e,r).match(t));ca.exports=Ne;var ua=qc();Ne.sep=ua.sep;var Ae=Symbol("globstar **");Ne.GLOBSTAR=Ae;var mv=oa(),Qc={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},fa="[^/]",aa=fa+"*?",bv="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",wv="(?:(?!(?:\\/|^)\\.).)*?",eh=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),Xc=eh("().*{}+?[]^$\\!"),Sv=eh("[.("),Jc=/\/+/;Ne.filter=(t,e={})=>(r,i,n)=>Ne(r,t,e);var Rt=(t,e={})=>{let r={};return Object.keys(t).forEach(i=>r[i]=t[i]),Object.keys(e).forEach(i=>r[i]=e[i]),r};Ne.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Ne;let e=Ne,r=(i,n,s)=>e(i,n,Rt(t,s));return r.Minimatch=class extends e.Minimatch{constructor(n,s){super(n,Rt(t,s))}},r.Minimatch.defaults=i=>e.defaults(Rt(t,i)).Minimatch,r.filter=(i,n)=>e.filter(i,Rt(t,n)),r.defaults=i=>e.defaults(Rt(t,i)),r.makeRe=(i,n)=>e.makeRe(i,Rt(t,n)),r.braceExpand=(i,n)=>e.braceExpand(i,Rt(t,n)),r.match=(i,n,s)=>e.match(i,n,Rt(t,s)),r};Ne.braceExpand=(t,e)=>th(t,e);var th=(t,e={})=>(Fn(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:mv(t)),Ev=1024*64,Fn=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Ev)throw new TypeError("pattern is too long")},la=Symbol("subparse");Ne.makeRe=(t,e)=>new Er(t,e||{}).makeRe();Ne.match=(t,e,r={})=>{let i=new Er(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};var vv=t=>t.replace(/\\(.)/g,"$1"),xv=t=>t.replace(/\\([^-\]])/g,"$1"),Tv=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Rv=t=>t.replace(/[[\]\\]/g,"\\$&"),Er=class{constructor(e,r){Fn(e),r||(r={}),this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion!==void 0?r.maxGlobstarRecursion:200,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}debug(){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let i=this.globSet=this.braceExpand();r.debug&&(this.debug=(...n)=>console.error(...n)),this.debug(this.pattern,i),i=this.globParts=i.map(n=>n.split(Jc)),this.debug(this.pattern,i),i=i.map((n,s,o)=>n.map(this.parse,this)),this.debug(this.pattern,i),i=i.filter(n=>n.indexOf(!1)===-1),this.debug(this.pattern,i),this.set=i}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,r=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=e.slice(i)),this.negate=r}matchOne(e,r,i){return r.indexOf(Ae)!==-1?this._matchGlobstar(e,r,i,0,0):this._matchOne(e,r,i,0,0)}_matchGlobstar(e,r,i,n,s){let o=-1;for(let b=s;b<r.length;b++)if(r[b]===Ae){o=b;break}let a=-1;for(let b=r.length-1;b>=0;b--)if(r[b]===Ae){a=b;break}let l=r.slice(s,o),u=i?r.slice(o+1):r.slice(o+1,a),f=i?[]:r.slice(a+1);if(l.length){let b=e.slice(n,n+l.length);if(!this._matchOne(b,l,i,0,0))return!1;n+=l.length}let c=0;if(f.length){if(f.length+n>e.length)return!1;let b=e.length-f.length;if(this._matchOne(e,f,i,b,0))c=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||!this._matchOne(e,f,i,b-1,0))return!1;c=f.length+1}}if(!u.length){let b=!!c;for(let v=n;v<e.length-c;v++){let E=String(e[v]);if(b=!0,E==="."||E===".."||!this.options.dot&&E.charAt(0)===".")return!1}return i||b}let h=[[[],0]],d=h[0],m=0,p=[0];for(let b of u)b===Ae?(p.push(m),d=[[],0],h.push(d)):(d[0].push(b),m++);let S=h.length-1,y=e.length-c;for(let b of h)b[1]=y-(p[S--]+b[0].length);return!!this._matchGlobStarBodySections(e,h,n,0,i,0,!!c)}_matchGlobStarBodySections(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let c=i;c<e.length;c++){a=!0;let h=e[c];if(h==="."||h===".."||!this.options.dot&&h.charAt(0)===".")return!1}return a}let[u,f]=l;for(;i<=f;){if(this._matchOne(e.slice(0,i+u.length),u,s,i,0)&&o<this.maxGlobstarRecursion){let d=this._matchGlobStarBodySections(e,r,i+u.length,n+1,s,o+1,a);if(d!==!1)return d}let h=e[i];if(h==="."||h===".."||!this.options.dot&&h.charAt(0)===".")return!1;i++}return s||null}_matchOne(e,r,i,n,s){let o,a,l,u;for(o=n,a=s,l=e.length,u=r.length;o<l&&a<u;o++,a++){this.debug("matchOne loop");let f=r[a],c=e[o];if(this.debug(r,f,c),f===!1||f===Ae)return!1;let h;if(typeof f=="string"?(h=c===f,this.debug("string match",f,c,h)):(h=c.match(f),this.debug("pattern match",f,c,h)),!h)return!1}if(o===l&&a===u)return!0;if(o===l)return i;if(a===u)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return th(this.pattern,this.options)}parse(e,r){Fn(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return Ae;if(e==="")return"";let n="",s=!1,o=!1,a=[],l=[],u,f=!1,c=-1,h=-1,d,m,p,S=e.charAt(0)===".",y=i.dot||S,b=()=>S?"":y?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",v=x=>x.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",E=()=>{if(u){switch(u){case"*":n+=aa,s=!0;break;case"?":n+=fa,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let x=0,O;x<e.length&&(O=e.charAt(x));x++){if(this.debug("%s %s %s %j",e,x,n,O),o){if(O==="/")return!1;Xc[O]&&(n+="\\"),n+=O,o=!1;continue}switch(O){case"/":return!1;case"\\":if(f&&e.charAt(x+1)==="-"){n+=O;continue}E(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,x,n,O),f){this.debug(" in class"),O==="!"&&x===h+1&&(O="^"),n+=O;continue}if(O==="*"&&u==="*")continue;this.debug("call clearStateChar %j",u),E(),u=O,i.noext&&E();continue;case"(":{if(f){n+="(";continue}if(!u){n+="\\(";continue}let w={type:u,start:x-1,reStart:n.length,open:Qc[u].open,close:Qc[u].close};this.debug(this.pattern," ",w),a.push(w),n+=w.open,w.start===0&&w.type!=="!"&&(S=!0,n+=v(e.slice(x+1))),this.debug("plType %j %j",u,n),u=!1;continue}case")":{let w=a[a.length-1];if(f||!w){n+="\\)";continue}a.pop(),E(),s=!0,m=w,n+=m.close,m.type==="!"&&l.push(Object.assign(m,{reEnd:n.length}));continue}case"|":{let w=a[a.length-1];if(f||!w){n+="\\|";continue}E(),n+="|",w.start===0&&w.type!=="!"&&(S=!0,n+=v(e.slice(x+1)));continue}case"[":if(E(),f){n+="\\"+O;continue}f=!0,h=x,c=n.length,n+=O;continue;case"]":if(x===h+1||!f){n+="\\"+O;continue}d=e.substring(h+1,x);try{RegExp("["+Rv(xv(d))+"]"),n+=O}catch{n=n.substring(0,c)+"(?:$.)"}s=!0,f=!1;continue;default:E(),Xc[O]&&!(O==="^"&&f)&&(n+="\\"),n+=O;break}}for(f&&(d=e.slice(h+1),p=this.parse(d,la),n=n.substring(0,c)+"\\["+p[0],s=s||p[1]),m=a.pop();m;m=a.pop()){let x;x=n.slice(m.reStart+m.open.length),this.debug("setting tail",n,m),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,(w,R,A)=>(A||(A="\\"),R+R+A+"|")),this.debug(`tail=%j
|
|
3
|
-
%s`,x,x,m,n);let O=m.type==="*"?aa:m.type==="?"?fa:"\\"+m.type;s=!0,n=n.slice(0,m.reStart)+O+"\\("+x}E(),o&&(n+="\\\\");let T=Sv[n.charAt(0)];for(let x=l.length-1;x>-1;x--){let O=l[x],w=n.slice(0,O.reStart),R=n.slice(O.reStart,O.reEnd-8),A=n.slice(O.reEnd),N=n.slice(O.reEnd-8,O.reEnd)+A,z=w.split(")").length,ue=w.split("(").length-z,Z=A;for(let V=0;V<ue;V++)Z=Z.replace(/\)[+*?]?/,"");A=Z;let te=A===""&&r!==la?"(?:$|\\/)":"";n=w+R+A+te+N}if(n!==""&&s&&(n="(?=.)"+n),T&&(n=b()+n),r===la)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return vv(e);let D=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",D),{_glob:e,_src:n})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?aa:r.dot?bv:wv,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?Tv(a):a===Ae?Ae:a._src).reduce((a,l)=>(a[a.length-1]===Ae&&l===Ae||a.push(l),a),[]),o.forEach((a,l)=>{a!==Ae||o[l-1]===Ae||(l===0?o.length>1?o[l+1]="(?:\\/|"+i+"\\/)?"+o[l+1]:o[l]=i:l===o.length-1?o[l-1]+="(?:\\/|"+i+")?":(o[l-1]+="(?:\\/|\\/"+i+"\\/)"+o[l+1],o[l+1]=Ae))}),o.filter(a=>a!==Ae).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;ua.sep!=="/"&&(e=e.split(ua.sep).join("/")),e=e.split(Jc),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<n.length;o++){let a=n[o],l=e;if(i.matchBase&&a.length===1&&(l=[s]),this.matchOne(l,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Ne.defaults(e).Minimatch}};Ne.Minimatch=Er});var ah=g((i3,oh)=>{"use strict";oh.exports=sh;var da=P("fs"),{EventEmitter:Av}=P("events"),{Minimatch:ha}=rh(),{resolve:Ov}=P("path");function Iv(t,e){return new Promise((r,i)=>{da.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}function ih(t,e){return new Promise((r,i)=>{(e?da.stat:da.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?ih(t,!1):null):r(null):r(o)})})}async function*nh(t,e,r,i,n,s){let o=await Iv(e+t,s);for(let a of o){let l=a.name;l===void 0&&(l=a,i=!0);let u=t+"/"+l,f=u.slice(1),c=e+"/"+f,h=null;(i||r)&&(h=await ih(c,r)),!h&&a.name!==void 0&&(h=a),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?n(f)||(yield{relative:f,absolute:c,stats:h},yield*nh(u,e,r,i,n,!1)):yield{relative:f,absolute:c,stats:h}}}async function*Dv(t,e,r,i){yield*nh("",t,e,r,i,!0)}function Pv(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var qn=class extends Av{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=Pv(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new ha(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new ha(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new ha(s,{dot:!0}))}this.iterator=Dv(Ov(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit("match",{relative:i,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function sh(t,e,r){return new qn(t,e,r)}sh.ReaddirGlob=qn});var sd={};XE(sd,{all:()=>Ea,allLimit:()=>va,allSeries:()=>xa,any:()=>Pa,anyLimit:()=>La,anySeries:()=>Na,apply:()=>dh,applyEach:()=>bh,applyEachSeries:()=>wh,asyncify:()=>Bn,auto:()=>Ma,autoInject:()=>Sh,cargo:()=>Eh,cargoQueue:()=>vh,compose:()=>xh,concat:()=>_a,concatLimit:()=>bi,concatSeries:()=>ya,constant:()=>Th,default:()=>Mx,detect:()=>ma,detectLimit:()=>ba,detectSeries:()=>wa,dir:()=>Ah,doDuring:()=>Un,doUntil:()=>Oh,doWhilst:()=>Un,during:()=>Hn,each:()=>Sa,eachLimit:()=>Wn,eachOf:()=>qe,eachOfLimit:()=>mi,eachOfSeries:()=>Xe,eachSeries:()=>zn,ensureAsync:()=>ja,every:()=>Ea,everyLimit:()=>va,everySeries:()=>xa,filter:()=>Ta,filterLimit:()=>Ra,filterSeries:()=>Aa,find:()=>ma,findLimit:()=>ba,findSeries:()=>wa,flatMap:()=>_a,flatMapLimit:()=>bi,flatMapSeries:()=>ya,foldl:()=>vr,foldr:()=>Ia,forEach:()=>Sa,forEachLimit:()=>Wn,forEachOf:()=>qe,forEachOfLimit:()=>mi,forEachOfSeries:()=>Xe,forEachSeries:()=>zn,forever:()=>Dh,groupBy:()=>Ph,groupByLimit:()=>Qn,groupBySeries:()=>Lh,inject:()=>vr,log:()=>Nh,map:()=>Kn,mapLimit:()=>Ei,mapSeries:()=>ka,mapValues:()=>Ch,mapValuesLimit:()=>Xn,mapValuesSeries:()=>kh,memoize:()=>Mh,nextTick:()=>Fh,parallel:()=>qh,parallelLimit:()=>jh,priorityQueue:()=>Bh,queue:()=>Ua,race:()=>Uh,reduce:()=>vr,reduceRight:()=>Ia,reflect:()=>Gn,reflectAll:()=>Wh,reject:()=>zh,rejectLimit:()=>Gh,rejectSeries:()=>$h,retry:()=>$n,retryable:()=>Yh,select:()=>Ta,selectLimit:()=>Ra,selectSeries:()=>Aa,seq:()=>qa,series:()=>Kh,setImmediate:()=>At,some:()=>Pa,someLimit:()=>La,someSeries:()=>Na,sortBy:()=>Zh,timeout:()=>Qh,times:()=>Xh,timesLimit:()=>Jn,timesSeries:()=>Jh,transform:()=>ed,tryEach:()=>td,unmemoize:()=>rd,until:()=>id,waterfall:()=>nd,whilst:()=>Hn,wrapSync:()=>Bn});function dh(t,...e){return(...r)=>t(...e,...r)}function wi(t){return function(...e){var r=e.pop();return t.call(this,e,r)}}function _h(t){setTimeout(t,0)}function yh(t){return(e,...r)=>t(()=>e(...r))}function Bn(t){return Si(t)?function(...e){let r=e.pop(),i=t.apply(this,e);return lh(i,r)}:wi(function(e,r){var i;try{i=t.apply(this,e)}catch(n){return r(n)}if(i&&typeof i.then=="function")return lh(i,r);r(null,i)})}function lh(t,e){return t.then(r=>{uh(e,null,r)},r=>{uh(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function uh(t,e,r){try{t(e,r)}catch(i){At(n=>{throw n},i)}}function Si(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Nv(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Cv(t){return typeof t[Symbol.asyncIterator]=="function"}function F(t){if(typeof t!="function")throw new Error("expected a function");return Si(t)?Bn(t):t}function M(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((n,s)=>{i[e-1]=(o,...a)=>{if(o)return s(o);n(a.length>1?a:a[0])},t.apply(this,i)})}return r}function mh(t){return function(r,...i){return M(function(s){var o=this;return t(r,(a,l)=>{F(a).apply(o,i.concat(l))},s)})}}function Ca(t,e,r,i){e=e||[];var n=[],s=0,o=F(r);return t(e,(a,l,u)=>{var f=s++;o(a,(c,h)=>{n[f]=h,u(c)})},a=>{i(a,n)})}function Vn(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}function Ot(t){function e(...r){if(t!==null){var i=t;t=null,i.apply(this,r)}}return Object.assign(e,t),e}function kv(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function Mv(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Fv(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function qv(t){var e=t?Object.keys(t):[],r=-1,i=e.length;return function n(){var s=e[++r];return s==="__proto__"?n():r<i?{value:t[s],key:s}:null}}function jv(t){if(Vn(t))return Mv(t);var e=kv(t);return e?Fv(e):qv(t)}function It(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}function fh(t,e,r,i){let n=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||n||(o=!0,t.next().then(({value:h,done:d})=>{if(!(s||n)){if(o=!1,d){n=!0,a<=0&&i(null);return}a++,r(h,l,f),l++,u()}}).catch(c))}function f(h,d){if(a-=1,!s){if(h)return c(h);if(h===!1){n=!0,s=!0;return}if(d===Yn||n&&a<=0)return n=!0,i(null);u()}}function c(h){s||(o=!1,n=!0,i(h))}u()}function Bv(t,e,r,i){return $e(e)(t,F(r),i)}function Uv(t,e,r){r=Ot(r);var i=0,n=0,{length:s}=t,o=!1;s===0&&r(null);function a(l,u){l===!1&&(o=!0),o!==!0&&(l?r(l):(++n===s||u===Yn)&&r(null))}for(;i<s;i++)e(t[i],i,It(a))}function Wv(t,e,r){return mi(t,1/0,e,r)}function zv(t,e,r){var i=Vn(t)?Uv:Wv;return i(t,F(e),r)}function Gv(t,e,r){return Ca(qe,t,e,r)}function $v(t,e,r){return mi(t,1,e,r)}function Hv(t,e,r){return Ca(Xe,t,e,r)}function xr(){let t,e;function r(i,...n){if(i)return e(i);t(n.length>1?n:n[0])}return r[Tr]=new Promise((i,n)=>{t=i,e=n}),r}function Ma(t,e,r){typeof e!="number"&&(r=e,e=null),r=Ot(r||xr());var i=Object.keys(t).length;if(!i)return r(null);e||(e=i);var n={},s=0,o=!1,a=!1,l=Object.create(null),u=[],f=[],c={};Object.keys(t).forEach(v=>{var E=t[v];if(!Array.isArray(E)){h(v,[E]),f.push(v);return}var T=E.slice(0,E.length-1),D=T.length;if(D===0){h(v,E),f.push(v);return}c[v]=D,T.forEach(x=>{if(!t[x])throw new Error("async.auto task `"+v+"` has a non-existent dependency `"+x+"` in "+T.join(", "));m(x,()=>{D--,D===0&&h(v,E)})})}),y(),d();function h(v,E){u.push(()=>S(v,E))}function d(){if(!o){if(u.length===0&&s===0)return r(null,n);for(;u.length&&s<e;){var v=u.shift();v()}}}function m(v,E){var T=l[v];T||(T=l[v]=[]),T.push(E)}function p(v){var E=l[v]||[];E.forEach(T=>T()),d()}function S(v,E){if(!a){var T=It((x,...O)=>{if(s--,x===!1){o=!0;return}if(O.length<2&&([O]=O),x){var w={};if(Object.keys(n).forEach(R=>{w[R]=n[R]}),w[v]=O,a=!0,l=Object.create(null),o)return;r(x,w)}else n[v]=O,p(v)});s++;var D=F(E[E.length-1]);E.length>1?D(n,T):D(T)}}function y(){for(var v,E=0;f.length;)v=f.pop(),E++,b(v).forEach(T=>{--c[T]===0&&f.push(T)});if(E!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function b(v){var E=[];return Object.keys(t).forEach(T=>{let D=t[T];Array.isArray(D)&&D.indexOf(v)>=0&&E.push(T)}),E}return r[Tr]}function Qv(t){let e="",r=0,i=t.indexOf("*/");for(;r<t.length;)if(t[r]==="/"&&t[r+1]==="/"){let n=t.indexOf(`
|
|
2
|
+
import{a as Oc,b as Ic}from"./chunk-MDBXYXSC.js";import{a as Ac}from"./chunk-WAOCHXJ5.js";import{a as Rc}from"./chunk-LPUQ4HWQ.js";import{a as Tc}from"./chunk-NLCCBXXV.js";import{a as Xt}from"./chunk-RZ4F3BHX.js";import{a as L,b as QE,c as g,d as XE,e as JE,f as ev}from"./chunk-UR6MHSHU.js";var qc=g((XB,Fc)=>{"use strict";var fv=typeof process=="object"&&process&&process.platform==="win32";Fc.exports=fv?{sep:"\\"}:{sep:"/"}});var zc=g((JB,Wc)=>{"use strict";Wc.exports=Bc;function Bc(t,e,r){t instanceof RegExp&&(t=jc(t,r)),e instanceof RegExp&&(e=jc(e,r));var i=Uc(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function jc(t,e){var r=e.match(t);return r?r[0]:null}Bc.range=Uc;function Uc(t,e,r){var i,n,s,o,a,l=r.indexOf(t),u=r.indexOf(e,l+1),f=l;if(l>=0&&u>0){if(t===e)return[l,u];for(i=[],s=r.length;f>=0&&!a;)f==l?(i.push(f),l=r.indexOf(t,f+1)):i.length==1?a=[i.pop(),u]:(n=i.pop(),n<s&&(s=n,o=u),u=r.indexOf(e,f+1)),f=l<u&&l>=0?l:u;i.length&&(a=[s,o])}return a}});var oa=g((e3,Zc)=>{"use strict";var Gc=zc();Zc.exports=dv;var $c="\0SLASH"+Math.random()+"\0",Hc="\0OPEN"+Math.random()+"\0",sa="\0CLOSE"+Math.random()+"\0",Vc="\0COMMA"+Math.random()+"\0",Yc="\0PERIOD"+Math.random()+"\0";function na(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function cv(t){return t.split("\\\\").join($c).split("\\{").join(Hc).split("\\}").join(sa).split("\\,").join(Vc).split("\\.").join(Yc)}function hv(t){return t.split($c).join("\\").split(Hc).join("{").split(sa).join("}").split(Vc).join(",").split(Yc).join(".")}function Kc(t){if(!t)return[""];var e=[],r=Gc("{","}",t);if(!r)return t.split(",");var i=r.pre,n=r.body,s=r.post,o=i.split(",");o[o.length-1]+="{"+n+"}";var a=Kc(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function dv(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),_i(cv(t),!0).map(hv)):[]}function pv(t){return"{"+t+"}"}function gv(t){return/^-?0\d/.test(t)}function _v(t,e){return t<=e}function yv(t,e){return t>=e}function _i(t,e){var r=[],i=Gc("{","}",t);if(!i)return[t];var n=i.pre,s=i.post.length?_i(i.post,!1):[""];if(/\$$/.test(i.pre))for(var o=0;o<s.length;o++){var a=n+"{"+i.body+"}"+s[o];r.push(a)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=l||u,c=i.body.indexOf(",")>=0;if(!f&&!c)return i.post.match(/,(?!,).*\}/)?(t=i.pre+"{"+i.body+sa+i.post,_i(t)):[t];var h;if(f)h=i.body.split(/\.\./);else if(h=Kc(i.body),h.length===1&&(h=_i(h[0],!1).map(pv),h.length===1))return s.map(function(R){return i.pre+h[0]+R});var d;if(f){var y=na(h[0]),p=na(h[1]),S=Math.max(h[0].length,h[1].length),m=h.length==3?Math.max(Math.abs(na(h[2])),1):1,b=_v,v=p<y;v&&(m*=-1,b=yv);var E=h.some(gv);d=[];for(var T=y;b(T,p);T+=m){var D;if(u)D=String.fromCharCode(T),D==="\\"&&(D="");else if(D=String(T),E){var x=S-D.length;if(x>0){var O=new Array(x+1).join("0");T<0?D="-"+O+D.slice(1):D=O+D}}d.push(D)}}else{d=[];for(var w=0;w<h.length;w++)d.push.apply(d,_i(h[w],!1))}for(var w=0;w<d.length;w++)for(var o=0;o<s.length;o++){var a=n+d[w]+s[o];(!e||f||a)&&r.push(a)}}return r}});var rh=g((r3,ca)=>{"use strict";var Ne=ca.exports=(t,e,r={})=>(Fn(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Er(e,r).match(t));ca.exports=Ne;var ua=qc();Ne.sep=ua.sep;var Ae=Symbol("globstar **");Ne.GLOBSTAR=Ae;var mv=oa(),Qc={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},fa="[^/]",aa=fa+"*?",bv="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",wv="(?:(?!(?:\\/|^)\\.).)*?",eh=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),Xc=eh("().*{}+?[]^$\\!"),Sv=eh("[.("),Jc=/\/+/;Ne.filter=(t,e={})=>(r,i,n)=>Ne(r,t,e);var Rt=(t,e={})=>{let r={};return Object.keys(t).forEach(i=>r[i]=t[i]),Object.keys(e).forEach(i=>r[i]=e[i]),r};Ne.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Ne;let e=Ne,r=(i,n,s)=>e(i,n,Rt(t,s));return r.Minimatch=class extends e.Minimatch{constructor(n,s){super(n,Rt(t,s))}},r.Minimatch.defaults=i=>e.defaults(Rt(t,i)).Minimatch,r.filter=(i,n)=>e.filter(i,Rt(t,n)),r.defaults=i=>e.defaults(Rt(t,i)),r.makeRe=(i,n)=>e.makeRe(i,Rt(t,n)),r.braceExpand=(i,n)=>e.braceExpand(i,Rt(t,n)),r.match=(i,n,s)=>e.match(i,n,Rt(t,s)),r};Ne.braceExpand=(t,e)=>th(t,e);var th=(t,e={})=>(Fn(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:mv(t)),Ev=1024*64,Fn=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Ev)throw new TypeError("pattern is too long")},la=Symbol("subparse");Ne.makeRe=(t,e)=>new Er(t,e||{}).makeRe();Ne.match=(t,e,r={})=>{let i=new Er(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};var vv=t=>t.replace(/\\(.)/g,"$1"),xv=t=>t.replace(/\\([^-\]])/g,"$1"),Tv=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Rv=t=>t.replace(/[[\]\\]/g,"\\$&"),Er=class{constructor(e,r){Fn(e),r||(r={}),this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion!==void 0?r.maxGlobstarRecursion:200,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}debug(){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let i=this.globSet=this.braceExpand();r.debug&&(this.debug=(...n)=>console.error(...n)),this.debug(this.pattern,i),i=this.globParts=i.map(n=>n.split(Jc)),this.debug(this.pattern,i),i=i.map((n,s,o)=>n.map(this.parse,this)),this.debug(this.pattern,i),i=i.filter(n=>n.indexOf(!1)===-1),this.debug(this.pattern,i),this.set=i}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,r=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=e.slice(i)),this.negate=r}matchOne(e,r,i){return r.indexOf(Ae)!==-1?this._matchGlobstar(e,r,i,0,0):this._matchOne(e,r,i,0,0)}_matchGlobstar(e,r,i,n,s){let o=-1;for(let b=s;b<r.length;b++)if(r[b]===Ae){o=b;break}let a=-1;for(let b=r.length-1;b>=0;b--)if(r[b]===Ae){a=b;break}let l=r.slice(s,o),u=i?r.slice(o+1):r.slice(o+1,a),f=i?[]:r.slice(a+1);if(l.length){let b=e.slice(n,n+l.length);if(!this._matchOne(b,l,i,0,0))return!1;n+=l.length}let c=0;if(f.length){if(f.length+n>e.length)return!1;let b=e.length-f.length;if(this._matchOne(e,f,i,b,0))c=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||!this._matchOne(e,f,i,b-1,0))return!1;c=f.length+1}}if(!u.length){let b=!!c;for(let v=n;v<e.length-c;v++){let E=String(e[v]);if(b=!0,E==="."||E===".."||!this.options.dot&&E.charAt(0)===".")return!1}return i||b}let h=[[[],0]],d=h[0],y=0,p=[0];for(let b of u)b===Ae?(p.push(y),d=[[],0],h.push(d)):(d[0].push(b),y++);let S=h.length-1,m=e.length-c;for(let b of h)b[1]=m-(p[S--]+b[0].length);return!!this._matchGlobStarBodySections(e,h,n,0,i,0,!!c)}_matchGlobStarBodySections(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let c=i;c<e.length;c++){a=!0;let h=e[c];if(h==="."||h===".."||!this.options.dot&&h.charAt(0)===".")return!1}return a}let[u,f]=l;for(;i<=f;){if(this._matchOne(e.slice(0,i+u.length),u,s,i,0)&&o<this.maxGlobstarRecursion){let d=this._matchGlobStarBodySections(e,r,i+u.length,n+1,s,o+1,a);if(d!==!1)return d}let h=e[i];if(h==="."||h===".."||!this.options.dot&&h.charAt(0)===".")return!1;i++}return s||null}_matchOne(e,r,i,n,s){let o,a,l,u;for(o=n,a=s,l=e.length,u=r.length;o<l&&a<u;o++,a++){this.debug("matchOne loop");let f=r[a],c=e[o];if(this.debug(r,f,c),f===!1||f===Ae)return!1;let h;if(typeof f=="string"?(h=c===f,this.debug("string match",f,c,h)):(h=c.match(f),this.debug("pattern match",f,c,h)),!h)return!1}if(o===l&&a===u)return!0;if(o===l)return i;if(a===u)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return th(this.pattern,this.options)}parse(e,r){Fn(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return Ae;if(e==="")return"";let n="",s=!1,o=!1,a=[],l=[],u,f=!1,c=-1,h=-1,d,y,p,S=e.charAt(0)===".",m=i.dot||S,b=()=>S?"":m?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",v=x=>x.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",E=()=>{if(u){switch(u){case"*":n+=aa,s=!0;break;case"?":n+=fa,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let x=0,O;x<e.length&&(O=e.charAt(x));x++){if(this.debug("%s %s %s %j",e,x,n,O),o){if(O==="/")return!1;Xc[O]&&(n+="\\"),n+=O,o=!1;continue}switch(O){case"/":return!1;case"\\":if(f&&e.charAt(x+1)==="-"){n+=O;continue}E(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,x,n,O),f){this.debug(" in class"),O==="!"&&x===h+1&&(O="^"),n+=O;continue}if(O==="*"&&u==="*")continue;this.debug("call clearStateChar %j",u),E(),u=O,i.noext&&E();continue;case"(":{if(f){n+="(";continue}if(!u){n+="\\(";continue}let w={type:u,start:x-1,reStart:n.length,open:Qc[u].open,close:Qc[u].close};this.debug(this.pattern," ",w),a.push(w),n+=w.open,w.start===0&&w.type!=="!"&&(S=!0,n+=v(e.slice(x+1))),this.debug("plType %j %j",u,n),u=!1;continue}case")":{let w=a[a.length-1];if(f||!w){n+="\\)";continue}a.pop(),E(),s=!0,y=w,n+=y.close,y.type==="!"&&l.push(Object.assign(y,{reEnd:n.length}));continue}case"|":{let w=a[a.length-1];if(f||!w){n+="\\|";continue}E(),n+="|",w.start===0&&w.type!=="!"&&(S=!0,n+=v(e.slice(x+1)));continue}case"[":if(E(),f){n+="\\"+O;continue}f=!0,h=x,c=n.length,n+=O;continue;case"]":if(x===h+1||!f){n+="\\"+O;continue}d=e.substring(h+1,x);try{RegExp("["+Rv(xv(d))+"]"),n+=O}catch{n=n.substring(0,c)+"(?:$.)"}s=!0,f=!1;continue;default:E(),Xc[O]&&!(O==="^"&&f)&&(n+="\\"),n+=O;break}}for(f&&(d=e.slice(h+1),p=this.parse(d,la),n=n.substring(0,c)+"\\["+p[0],s=s||p[1]),y=a.pop();y;y=a.pop()){let x;x=n.slice(y.reStart+y.open.length),this.debug("setting tail",n,y),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,(w,R,A)=>(A||(A="\\"),R+R+A+"|")),this.debug(`tail=%j
|
|
3
|
+
%s`,x,x,y,n);let O=y.type==="*"?aa:y.type==="?"?fa:"\\"+y.type;s=!0,n=n.slice(0,y.reStart)+O+"\\("+x}E(),o&&(n+="\\\\");let T=Sv[n.charAt(0)];for(let x=l.length-1;x>-1;x--){let O=l[x],w=n.slice(0,O.reStart),R=n.slice(O.reStart,O.reEnd-8),A=n.slice(O.reEnd),N=n.slice(O.reEnd-8,O.reEnd)+A,z=w.split(")").length,ue=w.split("(").length-z,Z=A;for(let V=0;V<ue;V++)Z=Z.replace(/\)[+*?]?/,"");A=Z;let te=A===""&&r!==la?"(?:$|\\/)":"";n=w+R+A+te+N}if(n!==""&&s&&(n="(?=.)"+n),T&&(n=b()+n),r===la)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return vv(e);let D=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",D),{_glob:e,_src:n})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?aa:r.dot?bv:wv,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?Tv(a):a===Ae?Ae:a._src).reduce((a,l)=>(a[a.length-1]===Ae&&l===Ae||a.push(l),a),[]),o.forEach((a,l)=>{a!==Ae||o[l-1]===Ae||(l===0?o.length>1?o[l+1]="(?:\\/|"+i+"\\/)?"+o[l+1]:o[l]=i:l===o.length-1?o[l-1]+="(?:\\/|"+i+")?":(o[l-1]+="(?:\\/|\\/"+i+"\\/)"+o[l+1],o[l+1]=Ae))}),o.filter(a=>a!==Ae).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;ua.sep!=="/"&&(e=e.split(ua.sep).join("/")),e=e.split(Jc),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<n.length;o++){let a=n[o],l=e;if(i.matchBase&&a.length===1&&(l=[s]),this.matchOne(l,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Ne.defaults(e).Minimatch}};Ne.Minimatch=Er});var ah=g((i3,oh)=>{"use strict";oh.exports=sh;var da=L("fs"),{EventEmitter:Av}=L("events"),{Minimatch:ha}=rh(),{resolve:Ov}=L("path");function Iv(t,e){return new Promise((r,i)=>{da.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}function ih(t,e){return new Promise((r,i)=>{(e?da.stat:da.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?ih(t,!1):null):r(null):r(o)})})}async function*nh(t,e,r,i,n,s){let o=await Iv(e+t,s);for(let a of o){let l=a.name;l===void 0&&(l=a,i=!0);let u=t+"/"+l,f=u.slice(1),c=e+"/"+f,h=null;(i||r)&&(h=await ih(c,r)),!h&&a.name!==void 0&&(h=a),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?n(f)||(yield{relative:f,absolute:c,stats:h},yield*nh(u,e,r,i,n,!1)):yield{relative:f,absolute:c,stats:h}}}async function*Dv(t,e,r,i){yield*nh("",t,e,r,i,!0)}function Lv(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var qn=class extends Av{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=Lv(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new ha(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new ha(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new ha(s,{dot:!0}))}this.iterator=Dv(Ov(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit("match",{relative:i,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function sh(t,e,r){return new qn(t,e,r)}sh.ReaddirGlob=qn});var sd={};XE(sd,{all:()=>Ea,allLimit:()=>va,allSeries:()=>xa,any:()=>La,anyLimit:()=>Pa,anySeries:()=>Na,apply:()=>dh,applyEach:()=>bh,applyEachSeries:()=>wh,asyncify:()=>Bn,auto:()=>Ma,autoInject:()=>Sh,cargo:()=>Eh,cargoQueue:()=>vh,compose:()=>xh,concat:()=>_a,concatLimit:()=>bi,concatSeries:()=>ya,constant:()=>Th,default:()=>Mx,detect:()=>ma,detectLimit:()=>ba,detectSeries:()=>wa,dir:()=>Ah,doDuring:()=>Un,doUntil:()=>Oh,doWhilst:()=>Un,during:()=>Hn,each:()=>Sa,eachLimit:()=>Wn,eachOf:()=>qe,eachOfLimit:()=>mi,eachOfSeries:()=>Xe,eachSeries:()=>zn,ensureAsync:()=>ja,every:()=>Ea,everyLimit:()=>va,everySeries:()=>xa,filter:()=>Ta,filterLimit:()=>Ra,filterSeries:()=>Aa,find:()=>ma,findLimit:()=>ba,findSeries:()=>wa,flatMap:()=>_a,flatMapLimit:()=>bi,flatMapSeries:()=>ya,foldl:()=>vr,foldr:()=>Ia,forEach:()=>Sa,forEachLimit:()=>Wn,forEachOf:()=>qe,forEachOfLimit:()=>mi,forEachOfSeries:()=>Xe,forEachSeries:()=>zn,forever:()=>Dh,groupBy:()=>Lh,groupByLimit:()=>Qn,groupBySeries:()=>Ph,inject:()=>vr,log:()=>Nh,map:()=>Kn,mapLimit:()=>Ei,mapSeries:()=>ka,mapValues:()=>Ch,mapValuesLimit:()=>Xn,mapValuesSeries:()=>kh,memoize:()=>Mh,nextTick:()=>Fh,parallel:()=>qh,parallelLimit:()=>jh,priorityQueue:()=>Bh,queue:()=>Ua,race:()=>Uh,reduce:()=>vr,reduceRight:()=>Ia,reflect:()=>Gn,reflectAll:()=>Wh,reject:()=>zh,rejectLimit:()=>Gh,rejectSeries:()=>$h,retry:()=>$n,retryable:()=>Yh,select:()=>Ta,selectLimit:()=>Ra,selectSeries:()=>Aa,seq:()=>qa,series:()=>Kh,setImmediate:()=>At,some:()=>La,someLimit:()=>Pa,someSeries:()=>Na,sortBy:()=>Zh,timeout:()=>Qh,times:()=>Xh,timesLimit:()=>Jn,timesSeries:()=>Jh,transform:()=>ed,tryEach:()=>td,unmemoize:()=>rd,until:()=>id,waterfall:()=>nd,whilst:()=>Hn,wrapSync:()=>Bn});function dh(t,...e){return(...r)=>t(...e,...r)}function wi(t){return function(...e){var r=e.pop();return t.call(this,e,r)}}function _h(t){setTimeout(t,0)}function yh(t){return(e,...r)=>t(()=>e(...r))}function Bn(t){return Si(t)?function(...e){let r=e.pop(),i=t.apply(this,e);return lh(i,r)}:wi(function(e,r){var i;try{i=t.apply(this,e)}catch(n){return r(n)}if(i&&typeof i.then=="function")return lh(i,r);r(null,i)})}function lh(t,e){return t.then(r=>{uh(e,null,r)},r=>{uh(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function uh(t,e,r){try{t(e,r)}catch(i){At(n=>{throw n},i)}}function Si(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Nv(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Cv(t){return typeof t[Symbol.asyncIterator]=="function"}function F(t){if(typeof t!="function")throw new Error("expected a function");return Si(t)?Bn(t):t}function M(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((n,s)=>{i[e-1]=(o,...a)=>{if(o)return s(o);n(a.length>1?a:a[0])},t.apply(this,i)})}return r}function mh(t){return function(r,...i){return M(function(s){var o=this;return t(r,(a,l)=>{F(a).apply(o,i.concat(l))},s)})}}function Ca(t,e,r,i){e=e||[];var n=[],s=0,o=F(r);return t(e,(a,l,u)=>{var f=s++;o(a,(c,h)=>{n[f]=h,u(c)})},a=>{i(a,n)})}function Vn(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}function Ot(t){function e(...r){if(t!==null){var i=t;t=null,i.apply(this,r)}}return Object.assign(e,t),e}function kv(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function Mv(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Fv(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function qv(t){var e=t?Object.keys(t):[],r=-1,i=e.length;return function n(){var s=e[++r];return s==="__proto__"?n():r<i?{value:t[s],key:s}:null}}function jv(t){if(Vn(t))return Mv(t);var e=kv(t);return e?Fv(e):qv(t)}function It(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}function fh(t,e,r,i){let n=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||n||(o=!0,t.next().then(({value:h,done:d})=>{if(!(s||n)){if(o=!1,d){n=!0,a<=0&&i(null);return}a++,r(h,l,f),l++,u()}}).catch(c))}function f(h,d){if(a-=1,!s){if(h)return c(h);if(h===!1){n=!0,s=!0;return}if(d===Yn||n&&a<=0)return n=!0,i(null);u()}}function c(h){s||(o=!1,n=!0,i(h))}u()}function Bv(t,e,r,i){return $e(e)(t,F(r),i)}function Uv(t,e,r){r=Ot(r);var i=0,n=0,{length:s}=t,o=!1;s===0&&r(null);function a(l,u){l===!1&&(o=!0),o!==!0&&(l?r(l):(++n===s||u===Yn)&&r(null))}for(;i<s;i++)e(t[i],i,It(a))}function Wv(t,e,r){return mi(t,1/0,e,r)}function zv(t,e,r){var i=Vn(t)?Uv:Wv;return i(t,F(e),r)}function Gv(t,e,r){return Ca(qe,t,e,r)}function $v(t,e,r){return mi(t,1,e,r)}function Hv(t,e,r){return Ca(Xe,t,e,r)}function xr(){let t,e;function r(i,...n){if(i)return e(i);t(n.length>1?n:n[0])}return r[Tr]=new Promise((i,n)=>{t=i,e=n}),r}function Ma(t,e,r){typeof e!="number"&&(r=e,e=null),r=Ot(r||xr());var i=Object.keys(t).length;if(!i)return r(null);e||(e=i);var n={},s=0,o=!1,a=!1,l=Object.create(null),u=[],f=[],c={};Object.keys(t).forEach(v=>{var E=t[v];if(!Array.isArray(E)){h(v,[E]),f.push(v);return}var T=E.slice(0,E.length-1),D=T.length;if(D===0){h(v,E),f.push(v);return}c[v]=D,T.forEach(x=>{if(!t[x])throw new Error("async.auto task `"+v+"` has a non-existent dependency `"+x+"` in "+T.join(", "));y(x,()=>{D--,D===0&&h(v,E)})})}),m(),d();function h(v,E){u.push(()=>S(v,E))}function d(){if(!o){if(u.length===0&&s===0)return r(null,n);for(;u.length&&s<e;){var v=u.shift();v()}}}function y(v,E){var T=l[v];T||(T=l[v]=[]),T.push(E)}function p(v){var E=l[v]||[];E.forEach(T=>T()),d()}function S(v,E){if(!a){var T=It((x,...O)=>{if(s--,x===!1){o=!0;return}if(O.length<2&&([O]=O),x){var w={};if(Object.keys(n).forEach(R=>{w[R]=n[R]}),w[v]=O,a=!0,l=Object.create(null),o)return;r(x,w)}else n[v]=O,p(v)});s++;var D=F(E[E.length-1]);E.length>1?D(n,T):D(T)}}function m(){for(var v,E=0;f.length;)v=f.pop(),E++,b(v).forEach(T=>{--c[T]===0&&f.push(T)});if(E!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function b(v){var E=[];return Object.keys(t).forEach(T=>{let D=t[T];Array.isArray(D)&&D.indexOf(v)>=0&&E.push(T)}),E}return r[Tr]}function Qv(t){let e="",r=0,i=t.indexOf("*/");for(;r<t.length;)if(t[r]==="/"&&t[r+1]==="/"){let n=t.indexOf(`
|
|
4
4
|
`,r);r=n===-1?t.length:n}else if(i!==-1&&t[r]==="/"&&t[r+1]==="*"){let n=t.indexOf("*/",r);n!==-1?(r=n+2,i=t.indexOf("*/",r)):(e+=t[r],r++)}else e+=t[r],r++;return e}function Xv(t){let e=Qv(t.toString()),r=e.match(Vv);if(r||(r=e.match(Yv)),!r)throw new Error(`could not parse args in autoInject
|
|
5
5
|
Source:
|
|
6
|
-
`+e);let[,i]=r;return i.replace(/\s/g,"").split(Kv).map(n=>n.replace(Zv,"").trim())}function Sh(t,e){var r={};return Object.keys(t).forEach(i=>{var n=t[i],s,o=Si(n),a=!o&&n.length===1||o&&n.length===0;if(Array.isArray(n))s=[...n],n=s.pop(),r[i]=s.concat(s.length>0?l:n);else if(a)r[i]=n;else{if(s=Xv(n),n.length===0&&!o&&s.length===0)throw new Error("autoInject task functions require explicit parameters.");o||s.pop(),r[i]=s.concat(l)}function l(u,f){var c=s.map(h=>u[h]);c.push(f),F(n)(...c)}}),Ma(r,e)}function ch(t,e){t.length=1,t.head=t.tail=e}function Fa(t,e,r){if(e==null)e=1;else if(e===0)throw new RangeError("Concurrency must not be zero");var i=F(t),n=0,s=[];let o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(b,v){o[b].push(v)}function l(b,v){let E=(...T)=>{u(b,E),v(...T)};o[b].push(E)}function u(b,v){if(!b)return Object.keys(o).forEach(E=>o[E]=[]);if(!v)return o[b]=[];o[b]=o[b].filter(E=>E!==v)}function f(b,...v){o[b].forEach(E=>E(...v))}var c=!1;function h(b,v,E,T){if(T!=null&&typeof T!="function")throw new Error("task callback must be a function");y.started=!0;var D,x;function O(R,...A){if(R)return E?x(R):D();if(A.length<=1)return D(A[0]);D(A)}var w=y._createTaskItem(b,E?O:T||O);if(v?y._tasks.unshift(w):y._tasks.push(w),c||(c=!0,At(()=>{c=!1,y.process()})),E||!T)return new Promise((R,A)=>{D=R,x=A})}function d(b){return function(v,...E){n-=1;for(var T=0,D=b.length;T<D;T++){var x=b[T],O=s.indexOf(x);O===0?s.shift():O>0&&s.splice(O,1),x.callback(v,...E),v!=null&&f("error",v,x.data)}n<=y.concurrency-y.buffer&&f("unsaturated"),y.idle()&&f("drain"),y.process()}}function m(b){return b.length===0&&y.idle()?(At(()=>f("drain")),!0):!1}let p=b=>v=>{if(!v)return new Promise((E,T)=>{l(b,(D,x)=>{if(D)return T(D);E(x)})});u(b),a(b,v)};var S=!1,y={_tasks:new ga,_createTaskItem(b,v){return{data:b,callback:v}},*[Symbol.iterator](){yield*y._tasks[Symbol.iterator]()},concurrency:e,payload:r,buffer:e/4,started:!1,paused:!1,push(b,v){return Array.isArray(b)?m(b)?void 0:b.map(E=>h(E,!1,!1,v)):h(b,!1,!1,v)},pushAsync(b,v){return Array.isArray(b)?m(b)?void 0:b.map(E=>h(E,!1,!0,v)):h(b,!1,!0,v)},kill(){u(),y._tasks.empty()},unshift(b,v){return Array.isArray(b)?m(b)?void 0:b.map(E=>h(E,!0,!1,v)):h(b,!0,!1,v)},unshiftAsync(b,v){return Array.isArray(b)?m(b)?void 0:b.map(E=>h(E,!0,!0,v)):h(b,!0,!0,v)},remove(b){y._tasks.remove(b)},process(){if(!S){for(S=!0;!y.paused&&n<y.concurrency&&y._tasks.length;){var b=[],v=[],E=y._tasks.length;y.payload&&(E=Math.min(E,y.payload));for(var T=0;T<E;T++){var D=y._tasks.shift();b.push(D),s.push(D),v.push(D.data)}n+=1,y._tasks.length===0&&f("empty"),n===y.concurrency&&f("saturated");var x=It(d(b));i(v,x)}S=!1}},length(){return y._tasks.length},running(){return n},workersList(){return s},idle(){return y._tasks.length+n===0},pause(){y.paused=!0},resume(){y.paused!==!1&&(y.paused=!1,At(y.process))}};return Object.defineProperties(y,{saturated:{writable:!1,value:p("saturated")},unsaturated:{writable:!1,value:p("unsaturated")},empty:{writable:!1,value:p("empty")},drain:{writable:!1,value:p("drain")},error:{writable:!1,value:p("error")}}),y}function Eh(t,e){return Fa(t,1,e)}function vh(t,e,r){return Fa(t,e,r)}function Jv(t,e,r,i){i=Ot(i);var n=F(r);return Xe(t,(s,o,a)=>{n(e,s,(l,u)=>{e=u,a(l)})},s=>i(s,e))}function qa(...t){var e=t.map(F);return function(...r){var i=this,n=r[r.length-1];return typeof n=="function"?r.pop():n=xr(),vr(e,r,(s,o,a)=>{o.apply(i,s.concat((l,...u)=>{a(l,u)}))},(s,o)=>n(s,...o)),n[Tr]}}function xh(...t){return qa(...t.reverse())}function ex(t,e,r,i){return Ca($e(e),t,r,i)}function tx(t,e,r,i){var n=F(r);return Ei(t,e,(s,o)=>{n(s,(a,...l)=>a?o(a):o(a,l))},(s,o)=>{for(var a=[],l=0;l<o.length;l++)o[l]&&(a=a.concat(...o[l]));return i(s,a)})}function rx(t,e,r){return bi(t,1/0,e,r)}function ix(t,e,r){return bi(t,1,e,r)}function Th(...t){return function(...e){var r=e.pop();return r(null,...t)}}function dt(t,e){return(r,i,n,s)=>{var o=!1,a;let l=F(n);r(i,(u,f,c)=>{l(u,(h,d)=>{if(h||h===!1)return c(h);if(t(d)&&!a)return o=!0,a=e(!0,u),c(null,Yn);c()})},u=>{if(u)return s(u);s(null,o?a:e(!1))})}}function nx(t,e,r){return dt(i=>i,(i,n)=>n)(qe,t,e,r)}function sx(t,e,r,i){return dt(n=>n,(n,s)=>s)($e(e),t,r,i)}function ox(t,e,r){return dt(i=>i,(i,n)=>n)($e(1),t,e,r)}function Rh(t){return(e,...r)=>F(e)(...r,(i,...n)=>{typeof console=="object"&&(i?console.error&&console.error(i):console[t]&&n.forEach(s=>console[t](s)))})}function ax(t,e,r){r=It(r);var i=F(t),n=F(e),s;function o(l,...u){if(l)return r(l);l!==!1&&(s=u,n(...u,a))}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return a(null,!0)}function Oh(t,e,r){let i=F(e);return Un(t,(...n)=>{let s=n.pop();i(...n,(o,a)=>s(o,!a))},r)}function Ih(t){return(e,r,i)=>t(e,i)}function lx(t,e,r){return qe(t,Ih(F(e)),r)}function ux(t,e,r,i){return $e(e)(t,Ih(F(r)),i)}function fx(t,e,r){return Wn(t,1,e,r)}function ja(t){return Si(t)?t:function(...e){var r=e.pop(),i=!0;e.push((...n)=>{i?At(()=>r(...n)):r(...n)}),t.apply(this,e),i=!1}}function cx(t,e,r){return dt(i=>!i,i=>!i)(qe,t,e,r)}function hx(t,e,r,i){return dt(n=>!n,n=>!n)($e(e),t,r,i)}function dx(t,e,r){return dt(i=>!i,i=>!i)(Xe,t,e,r)}function px(t,e,r,i){var n=new Array(e.length);t(e,(s,o,a)=>{r(s,(l,u)=>{n[o]=!!u,a(l)})},s=>{if(s)return i(s);for(var o=[],a=0;a<e.length;a++)n[a]&&o.push(e[a]);i(null,o)})}function gx(t,e,r,i){var n=[];t(e,(s,o,a)=>{r(s,(l,u)=>{if(l)return a(l);u&&n.push({index:o,value:s}),a(l)})},s=>{if(s)return i(s);i(null,n.sort((o,a)=>o.index-a.index).map(o=>o.value))})}function Zn(t,e,r,i){var n=Vn(e)?px:gx;return n(t,e,F(r),i)}function _x(t,e,r){return Zn(qe,t,e,r)}function yx(t,e,r,i){return Zn($e(e),t,r,i)}function mx(t,e,r){return Zn(Xe,t,e,r)}function bx(t,e){var r=It(e),i=F(ja(t));function n(s){if(s)return r(s);s!==!1&&i(n)}return n()}function wx(t,e,r,i){var n=F(r);return Ei(t,e,(s,o)=>{n(s,(a,l)=>a?o(a):o(a,{key:l,val:s}))},(s,o)=>{for(var a={},{hasOwnProperty:l}=Object.prototype,u=0;u<o.length;u++)if(o[u]){var{key:f}=o[u],{val:c}=o[u];l.call(a,f)?a[f].push(c):a[f]=[c]}return i(s,a)})}function Ph(t,e,r){return Qn(t,1/0,e,r)}function Lh(t,e,r){return Qn(t,1,e,r)}function Sx(t,e,r,i){i=Ot(i);var n={},s=F(r);return $e(e)(t,(o,a,l)=>{s(o,a,(u,f)=>{if(u)return l(u);n[a]=f,l(u)})},o=>i(o,n))}function Ch(t,e,r){return Xn(t,1/0,e,r)}function kh(t,e,r){return Xn(t,1,e,r)}function Mh(t,e=r=>r){var r=Object.create(null),i=Object.create(null),n=F(t),s=wi((o,a)=>{var l=e(...o);l in r?At(()=>a(null,...r[l])):l in i?i[l].push(a):(i[l]=[a],n(...o,(u,...f)=>{u||(r[l]=f);var c=i[l];delete i[l];for(var h=0,d=c.length;h<d;h++)c[h](u,...f)}))});return s.memo=r,s.unmemoized=t,s}function qh(t,e){return Ba(qe,t,e)}function jh(t,e,r){return Ba($e(e),t,r)}function Ua(t,e){var r=F(t);return Fa((i,n)=>{r(i[0],n)},e,1)}function Ex(t){return(t<<1)+1}function hh(t){return(t+1>>1)-1}function pa(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function Bh(t,e){var r=Ua(t,e),{push:i,pushAsync:n}=r;r._tasks=new Oa,r._createTaskItem=({data:o,priority:a},l)=>({data:o,priority:a,callback:l});function s(o,a){return Array.isArray(o)?o.map(l=>({data:l,priority:a})):{data:o,priority:a}}return r.push=function(o,a=0,l){return i(s(o,a),l)},r.pushAsync=function(o,a=0,l){return n(s(o,a),l)},delete r.unshift,delete r.unshiftAsync,r}function vx(t,e){if(e=Ot(e),!Array.isArray(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var r=0,i=t.length;r<i;r++)F(t[r])(e)}function Ia(t,e,r,i){var n=[...t].reverse();return vr(n,e,r,i)}function Gn(t){var e=F(t);return wi(function(i,n){return i.push((s,...o)=>{let a={};if(s&&(a.error=s),o.length>0){var l=o;o.length<=1&&([l]=o),a.value=l}n(null,a)}),e.apply(this,i)})}function Wh(t){var e;return Array.isArray(t)?e=t.map(Gn):(e={},Object.keys(t).forEach(r=>{e[r]=Gn.call(this,t[r])})),e}function Wa(t,e,r,i){let n=F(r);return Zn(t,e,(s,o)=>{n(s,(a,l)=>{o(a,!l)})},i)}function xx(t,e,r){return Wa(qe,t,e,r)}function Tx(t,e,r,i){return Wa($e(e),t,r,i)}function Rx(t,e,r){return Wa(Xe,t,e,r)}function Hh(t){return function(){return t}}function $n(t,e,r){var i={times:Da,intervalFunc:Hh(Vh)};if(arguments.length<3&&typeof t=="function"?(r=e||xr(),e=t):(Ax(i,t),r=r||xr()),typeof e!="function")throw new Error("Invalid arguments for async.retry");var n=F(e),s=1;function o(){n((a,...l)=>{a!==!1&&(a&&s++<i.times&&(typeof i.errorFilter!="function"||i.errorFilter(a))?setTimeout(o,i.intervalFunc(s-1)):r(a,...l))})}return o(),r[Tr]}function Ax(t,e){if(typeof e=="object")t.times=+e.times||Da,t.intervalFunc=typeof e.interval=="function"?e.interval:Hh(+e.interval||Vh),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||Da;else throw new Error("Invalid arguments for async.retry")}function Yh(t,e){e||(e=t,t=null);let r=t&&t.arity||e.length;Si(e)&&(r+=1);var i=F(e);return wi((n,s)=>{(n.length<r-1||s==null)&&(n.push(s),s=xr());function o(a){i(...n,a)}return t?$n(t,o,s):$n(o,s),s[Tr]})}function Kh(t,e){return Ba(Xe,t,e)}function Ox(t,e,r){return dt(Boolean,i=>i)(qe,t,e,r)}function Ix(t,e,r,i){return dt(Boolean,n=>n)($e(e),t,r,i)}function Dx(t,e,r){return dt(Boolean,i=>i)(Xe,t,e,r)}function Px(t,e,r){var i=F(e);return Kn(t,(s,o)=>{i(s,(a,l)=>{if(a)return o(a);o(a,{value:s,criteria:l})})},(s,o)=>{if(s)return r(s);r(null,o.sort(n).map(a=>a.value))});function n(s,o){var a=s.criteria,l=o.criteria;return a<l?-1:a>l?1:0}}function Qh(t,e,r){var i=F(t);return wi((n,s)=>{var o=!1,a;function l(){var u=t.name||"anonymous",f=new Error('Callback function "'+u+'" timed out.');f.code="ETIMEDOUT",r&&(f.info=r),o=!0,s(f)}n.push((...u)=>{o||(s(...u),clearTimeout(a))}),a=setTimeout(l,e),i(...n)})}function Lx(t){for(var e=Array(t);t--;)e[t]=t;return e}function Jn(t,e,r,i){var n=F(r);return Ei(Lx(t),e,n,i)}function Xh(t,e,r){return Jn(t,1/0,e,r)}function Jh(t,e,r){return Jn(t,1,e,r)}function ed(t,e,r,i){arguments.length<=3&&typeof e=="function"&&(i=r,r=e,e=Array.isArray(t)?[]:{}),i=Ot(i||xr());var n=F(r);return qe(t,(s,o,a)=>{n(e,s,o,a)},s=>i(s,e)),i[Tr]}function Nx(t,e){var r=null,i;return zn(t,(n,s)=>{F(n)((o,...a)=>{if(o===!1)return s(o);a.length<2?[i]=a:i=a,r=o,s(o?null:{})})},()=>e(r,i))}function rd(t){return(...e)=>(t.unmemoized||t)(...e)}function Cx(t,e,r){r=It(r);var i=F(e),n=F(t),s=[];function o(l,...u){if(l)return r(l);s=u,l!==!1&&n(a)}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return n(a)}function id(t,e,r){let i=F(t);return Hn(n=>i((s,o)=>n(s,!o)),e,r)}function kx(t,e){if(e=Ot(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function i(s){var o=F(t[r++]);o(...s,It(n))}function n(s,...o){if(s!==!1){if(s||r===t.length)return e(s,...o);i(o)}}i([])}var Lv,ph,gh,yi,At,Yn,$e,mi,qe,Kn,bh,Xe,ka,wh,Tr,Vv,Yv,Kv,Zv,ga,vr,Ei,bi,_a,ya,ma,ba,wa,Ah,Un,Sa,Wn,zn,Ea,va,xa,Ta,Ra,Aa,Dh,Qn,Nh,Xn,jn,Fh,Ba,Oa,Uh,zh,Gh,$h,Da,Vh,Pa,La,Na,Zh,td,Hn,nd,Mx,od=QE(()=>{"use strict";Lv=typeof queueMicrotask=="function"&&queueMicrotask,ph=typeof setImmediate=="function"&&setImmediate,gh=typeof process=="object"&&typeof process.nextTick=="function";Lv?yi=queueMicrotask:ph?yi=setImmediate:gh?yi=process.nextTick:yi=_h;At=yh(yi);Yn={};$e=t=>(e,r,i)=>{if(i=Ot(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if(Nv(e))return fh(e,t,r,i);if(Cv(e))return fh(e[Symbol.asyncIterator](),t,r,i);var n=jv(e),s=!1,o=!1,a=0,l=!1;function u(c,h){if(!o)if(a-=1,c)s=!0,i(c);else if(c===!1)s=!0,o=!0;else{if(h===Yn||s&&a<=0)return s=!0,i(null);l||f()}}function f(){for(l=!0;a<t&&!s;){var c=n();if(c===null){s=!0,a<=0&&i(null);return}a+=1,r(c.value,c.key,It(u))}l=!1}f()};mi=M(Bv,4);qe=M(zv,3);Kn=M(Gv,3),bh=mh(Kn);Xe=M($v,3);ka=M(Hv,3),wh=mh(ka),Tr=Symbol("promiseCallback");Vv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,Yv=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,Kv=/,/,Zv=/(=.+)?(\s*)$/;ga=class{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,r){r.prev=e,r.next=e.next,e.next?e.next.prev=r:this.tail=r,e.next=r,this.length+=1}insertBefore(e,r){r.prev=e.prev,r.next=e,e.prev?e.prev.next=r:this.head=r,e.prev=r,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):ch(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):ch(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var r=this.head;r;){var{next:i}=r;e(r)&&this.removeLink(r),r=i}return this}};vr=M(Jv,4);Ei=M(ex,4);bi=M(tx,4);_a=M(rx,3);ya=M(ix,3);ma=M(nx,3);ba=M(sx,4);wa=M(ox,3);Ah=Rh("dir");Un=M(ax,3);Sa=M(lx,3);Wn=M(ux,4);zn=M(fx,3);Ea=M(cx,3);va=M(hx,4);xa=M(dx,3);Ta=M(_x,3);Ra=M(yx,4);Aa=M(mx,3);Dh=M(bx,2);Qn=M(wx,4);Nh=Rh("log");Xn=M(Sx,4);gh?jn=process.nextTick:ph?jn=setImmediate:jn=_h;Fh=yh(jn),Ba=M((t,e,r)=>{var i=Vn(e)?[]:{};t(e,(n,s,o)=>{F(n)((a,...l)=>{l.length<2&&([l]=l),i[s]=l,o(a)})},n=>r(n,i))},3);Oa=class{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let r;for(;e>0&&pa(this.heap[e],this.heap[r=hh(e)]);){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}percDown(e){let r;for(;(r=Ex(e))<this.heap.length&&(r+1<this.heap.length&&pa(this.heap[r+1],this.heap[r])&&(r=r+1),!pa(this.heap[e],this.heap[r]));){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let r=0;for(let i=0;i<this.heap.length;i++)e(this.heap[i])||(this.heap[r]=this.heap[i],r++);this.heap.splice(r);for(let i=hh(this.heap.length-1);i>=0;i--)this.percDown(i);return this}};Uh=M(vx,2);zh=M(xx,3);Gh=M(Tx,4);$h=M(Rx,3);Da=5,Vh=0;Pa=M(Ox,3);La=M(Ix,4);Na=M(Dx,3);Zh=M(Px,3);td=M(Nx);Hn=M(Cx,3);nd=M(kx),Mx={apply:dh,applyEach:bh,applyEachSeries:wh,asyncify:Bn,auto:Ma,autoInject:Sh,cargo:Eh,cargoQueue:vh,compose:xh,concat:_a,concatLimit:bi,concatSeries:ya,constant:Th,detect:ma,detectLimit:ba,detectSeries:wa,dir:Ah,doUntil:Oh,doWhilst:Un,each:Sa,eachLimit:Wn,eachOf:qe,eachOfLimit:mi,eachOfSeries:Xe,eachSeries:zn,ensureAsync:ja,every:Ea,everyLimit:va,everySeries:xa,filter:Ta,filterLimit:Ra,filterSeries:Aa,forever:Dh,groupBy:Ph,groupByLimit:Qn,groupBySeries:Lh,log:Nh,map:Kn,mapLimit:Ei,mapSeries:ka,mapValues:Ch,mapValuesLimit:Xn,mapValuesSeries:kh,memoize:Mh,nextTick:Fh,parallel:qh,parallelLimit:jh,priorityQueue:Bh,queue:Ua,race:Uh,reduce:vr,reduceRight:Ia,reflect:Gn,reflectAll:Wh,reject:zh,rejectLimit:Gh,rejectSeries:$h,retry:$n,retryable:Yh,seq:qa,series:Kh,setImmediate:At,some:Pa,someLimit:La,someSeries:Na,sortBy:Zh,timeout:Qh,times:Xh,timesLimit:Jn,timesSeries:Jh,transform:ed,tryEach:td,unmemoize:rd,until:id,waterfall:nd,whilst:Hn,all:Ea,allLimit:va,allSeries:xa,any:Pa,anyLimit:La,anySeries:Na,find:ma,findLimit:ba,findSeries:wa,flatMap:_a,flatMapLimit:bi,flatMapSeries:ya,forEach:Sa,forEachSeries:zn,forEachLimit:Wn,forEachOf:qe,forEachOfSeries:Xe,forEachOfLimit:mi,inject:vr,foldl:vr,foldr:Ia,select:Ta,selectLimit:Ra,selectSeries:Aa,wrapSync:Bn,during:Hn,doDuring:Un}});var ld=g((n3,ad)=>{"use strict";var Dt=P("constants"),Fx=process.cwd,es=null,qx=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return es||(es=Fx.call(process)),es};try{process.cwd()}catch{}typeof process.chdir=="function"&&(za=process.chdir,process.chdir=function(t){es=null,za.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,za));var za;ad.exports=jx;function jx(t){Dt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,c,h){h&&process.nextTick(h)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,c,h,d){d&&process.nextTick(d)},t.lchownSync=function(){}),qx==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(f){function c(h,d,m){var p=Date.now(),S=0;f(h,d,function y(b){if(b&&(b.code==="EACCES"||b.code==="EPERM"||b.code==="EBUSY")&&Date.now()-p<6e4){setTimeout(function(){t.stat(d,function(v,E){v&&v.code==="ENOENT"?f(h,d,y):m(b)})},S),S<100&&(S+=10);return}m&&m(b)})}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(f){function c(h,d,m,p,S,y){var b;if(y&&typeof y=="function"){var v=0;b=function(E,T,D){if(E&&E.code==="EAGAIN"&&v<10)return v++,f.call(t,h,d,m,p,S,b);y.apply(this,arguments)}}return f.call(t,h,d,m,p,S,b)}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(f){return function(c,h,d,m,p){for(var S=0;;)try{return f.call(t,c,h,d,m,p)}catch(y){if(y.code==="EAGAIN"&&S<10){S++;continue}throw y}}})(t.readSync);function e(f){f.lchmod=function(c,h,d){f.open(c,Dt.O_WRONLY|Dt.O_SYMLINK,h,function(m,p){if(m){d&&d(m);return}f.fchmod(p,h,function(S){f.close(p,function(y){d&&d(S||y)})})})},f.lchmodSync=function(c,h){var d=f.openSync(c,Dt.O_WRONLY|Dt.O_SYMLINK,h),m=!0,p;try{p=f.fchmodSync(d,h),m=!1}finally{if(m)try{f.closeSync(d)}catch{}else f.closeSync(d)}return p}}function r(f){Dt.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(c,h,d,m){f.open(c,Dt.O_SYMLINK,function(p,S){if(p){m&&m(p);return}f.futimes(S,h,d,function(y){f.close(S,function(b){m&&m(y||b)})})})},f.lutimesSync=function(c,h,d){var m=f.openSync(c,Dt.O_SYMLINK),p,S=!0;try{p=f.futimesSync(m,h,d),S=!1}finally{if(S)try{f.closeSync(m)}catch{}else f.closeSync(m)}return p}):f.futimes&&(f.lutimes=function(c,h,d,m){m&&process.nextTick(m)},f.lutimesSync=function(){})}function i(f){return f&&function(c,h,d){return f.call(t,c,h,function(m){u(m)&&(m=null),d&&d.apply(this,arguments)})}}function n(f){return f&&function(c,h){try{return f.call(t,c,h)}catch(d){if(!u(d))throw d}}}function s(f){return f&&function(c,h,d,m){return f.call(t,c,h,d,function(p){u(p)&&(p=null),m&&m.apply(this,arguments)})}}function o(f){return f&&function(c,h,d){try{return f.call(t,c,h,d)}catch(m){if(!u(m))throw m}}}function a(f){return f&&function(c,h,d){typeof h=="function"&&(d=h,h=null);function m(p,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),d&&d.apply(this,arguments)}return h?f.call(t,c,h,m):f.call(t,c,m)}}function l(f){return f&&function(c,h){var d=h?f.call(t,c,h):f.call(t,c);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function u(f){if(!f||f.code==="ENOSYS")return!0;var c=!process.getuid||process.getuid()!==0;return!!(c&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var cd=g((s3,fd)=>{"use strict";var ud=P("stream").Stream;fd.exports=Bx;function Bx(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);ud.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,n=n||{};for(var o=Object.keys(n),a=0,l=o.length;a<l;a++){var u=o[a];this[u]=n[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,c){if(f){s.emit("error",f),s.readable=!1;return}s.fd=c,s.emit("open",c),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);ud.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var s=Object.keys(n),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=n[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var dd=g((o3,hd)=>{"use strict";hd.exports=Wx;var Ux=Object.getPrototypeOf||function(t){return t.__proto__};function Wx(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Ux(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var Va=g((a3,Ha)=>{"use strict";var ne=P("fs"),zx=ld(),Gx=cd(),$x=dd(),ts=P("util"),me,is;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),is=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",is="___graceful-fs.previous");function Hx(){}function _d(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var Jt=Hx;ts.debuglog?Jt=ts.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Jt=function(){var t=ts.format.apply(ts,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
7
|
-
GFS4: `),console.error(t)});ne[me]||(pd=global[me]||[],_d(ne,pd),ne.close=(function(t){function e(r,i){return t.call(ne,r,function(n){n||gd(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,is,{value:t}),e})(ne.close),ne.closeSync=(function(t){function e(r){t.apply(ne,arguments),gd()}return Object.defineProperty(e,is,{value:t}),e})(ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Jt(ne[me]),P("assert").equal(ne[me].length,0)}));var pd;global[me]||_d(global,ne[me]);Ha.exports=Ga($x(ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ne.__patched&&(Ha.exports=Ga(ne),ne.__patched=!0);function Ga(t){zx(t),t.gracefulify=Ga,t.createReadStream=T,t.createWriteStream=D;var e=t.readFile;t.readFile=r;function r(w,R,A){return typeof R=="function"&&(A=R,R=null),N(w,R,A);function N(z,ue,Z,te){return e(z,ue,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?Rr([N,[z,ue,Z],V,te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(w,R,A,N){return typeof A=="function"&&(N=A,A=null),z(w,R,A,N);function z(ue,Z,te,V,ye){return i(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Rr([z,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(w,R,A,N){return typeof A=="function"&&(N=A,A=null),z(w,R,A,N);function z(ue,Z,te,V,ye){return s(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Rr([z,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(w,R,A,N){return typeof A=="function"&&(N=A,A=0),z(w,R,A,N);function z(ue,Z,te,V,ye){return a(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Rr([z,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var u=t.readdir;t.readdir=c;var f=/^v[0-5]\./;function c(w,R,A){typeof R=="function"&&(A=R,R=null);var N=f.test(process.version)?function(Z,te,V,ye){return u(Z,z(Z,te,V,ye))}:function(Z,te,V,ye){return u(Z,te,z(Z,te,V,ye))};return N(w,R,A);function z(ue,Z,te,V){return function(ye,re){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?Rr([N,[ue,Z,te],ye,V||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof te=="function"&&te.call(this,ye,re))}}}if(process.version.substr(0,4)==="v0.8"){var h=Gx(t);y=h.ReadStream,v=h.WriteStream}var d=t.ReadStream;d&&(y.prototype=Object.create(d.prototype),y.prototype.open=b);var m=t.WriteStream;m&&(v.prototype=Object.create(m.prototype),v.prototype.open=E),Object.defineProperty(t,"ReadStream",{get:function(){return y},set:function(w){y=w},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return v},set:function(w){v=w},enumerable:!0,configurable:!0});var p=y;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(w){p=w},enumerable:!0,configurable:!0});var S=v;Object.defineProperty(t,"FileWriteStream",{get:function(){return S},set:function(w){S=w},enumerable:!0,configurable:!0});function y(w,R){return this instanceof y?(d.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function b(){var w=this;O(w.path,w.flags,w.mode,function(R,A){R?(w.autoClose&&w.destroy(),w.emit("error",R)):(w.fd=A,w.emit("open",A),w.read())})}function v(w,R){return this instanceof v?(m.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function E(){var w=this;O(w.path,w.flags,w.mode,function(R,A){R?(w.destroy(),w.emit("error",R)):(w.fd=A,w.emit("open",A))})}function T(w,R){return new t.ReadStream(w,R)}function D(w,R){return new t.WriteStream(w,R)}var x=t.open;t.open=O;function O(w,R,A,N){return typeof A=="function"&&(N=A,A=null),z(w,R,A,N);function z(ue,Z,te,V,ye){return x(ue,Z,te,function(re,KB){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Rr([z,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return t}function Rr(t){Jt("ENQUEUE",t[0].name,t[1]),ne[me].push(t),$a()}var rs;function gd(){for(var t=Date.now(),e=0;e<ne[me].length;++e)ne[me][e].length>2&&(ne[me][e][3]=t,ne[me][e][4]=t);$a()}function $a(){if(clearTimeout(rs),rs=void 0,ne[me].length!==0){var t=ne[me].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)Jt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Jt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-s,l=Math.max(s-n,1),u=Math.min(l*1.2,100);a>=u?(Jt("RETRY",e.name,r),e.apply(null,r.concat([n]))):ne[me].push(t)}rs===void 0&&(rs=setTimeout($a,0))}}});var ns=g((l3,yd)=>{"use strict";var Je=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Je.writable=t=>Je(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Je.readable=t=>Je(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Je.duplex=t=>Je.writable(t)&&Je.readable(t);Je.transform=t=>Je.duplex(t)&&typeof t._transform=="function";yd.exports=Je});var vi=g((u3,Ya)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ya.exports={nextTick:Vx}:Ya.exports=process;function Vx(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,s,o;switch(n){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,r)});case 4:return process.nextTick(function(){t.call(null,e,r,i)});default:for(s=new Array(n-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){t.apply(null,s)})}}});var bd=g((f3,md)=>{"use strict";var Yx={}.toString;md.exports=Array.isArray||function(t){return Yx.call(t)=="[object Array]"}});var Ka=g((c3,wd)=>{"use strict";wd.exports=P("stream")});var xi=g((Za,Ed)=>{"use strict";var ss=P("buffer"),pt=ss.Buffer;function Sd(t,e){for(var r in t)e[r]=t[r]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?Ed.exports=ss:(Sd(ss,Za),Za.Buffer=Ar);function Ar(t,e,r){return pt(t,e,r)}Sd(pt,Ar);Ar.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return pt(t,e,r)};Ar.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=pt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Ar.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return pt(t)};Ar.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ss.SlowBuffer(t)}});var Or=g(ve=>{"use strict";function Kx(t){return Array.isArray?Array.isArray(t):os(t)==="[object Array]"}ve.isArray=Kx;function Zx(t){return typeof t=="boolean"}ve.isBoolean=Zx;function Qx(t){return t===null}ve.isNull=Qx;function Xx(t){return t==null}ve.isNullOrUndefined=Xx;function Jx(t){return typeof t=="number"}ve.isNumber=Jx;function eT(t){return typeof t=="string"}ve.isString=eT;function tT(t){return typeof t=="symbol"}ve.isSymbol=tT;function rT(t){return t===void 0}ve.isUndefined=rT;function iT(t){return os(t)==="[object RegExp]"}ve.isRegExp=iT;function nT(t){return typeof t=="object"&&t!==null}ve.isObject=nT;function sT(t){return os(t)==="[object Date]"}ve.isDate=sT;function oT(t){return os(t)==="[object Error]"||t instanceof Error}ve.isError=oT;function aT(t){return typeof t=="function"}ve.isFunction=aT;function lT(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}ve.isPrimitive=lT;ve.isBuffer=P("buffer").Buffer.isBuffer;function os(t){return Object.prototype.toString.call(t)}});var vd=g((d3,Qa)=>{"use strict";typeof Object.create=="function"?Qa.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Qa.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var Ir=g((p3,Ja)=>{"use strict";try{if(Xa=P("util"),typeof Xa.inherits!="function")throw"";Ja.exports=Xa.inherits}catch{Ja.exports=vd()}var Xa});var Td=g((g3,el)=>{"use strict";function uT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var xd=xi().Buffer,Ti=P("util");function fT(t,e,r){t.copy(e,r)}el.exports=(function(){function t(){uT(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},t.prototype.concat=function(r){if(this.length===0)return xd.alloc(0);for(var i=xd.allocUnsafe(r>>>0),n=this.head,s=0;n;)fT(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();Ti&&Ti.inspect&&Ti.inspect.custom&&(el.exports.prototype[Ti.inspect.custom]=function(){var t=Ti.inspect({length:this.length});return this.constructor.name+" "+t})});var tl=g((_3,Rd)=>{"use strict";var as=vi();function cT(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,as.nextTick(ls,this,t)):as.nextTick(ls,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,as.nextTick(ls,r,s)):as.nextTick(ls,r,s):e&&e(s)}),this)}function hT(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ls(t,e){t.emit("error",e)}Rd.exports={destroy:cT,undestroy:hT}});var Od=g((y3,Ad)=>{"use strict";Ad.exports=P("util").deprecate});var il=g((m3,Md)=>{"use strict";var er=vi();Md.exports=fe;function Dd(t){var e=this;this.next=null,this.entry=null,this.finish=function(){DT(e,t)}}var dT=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:er.nextTick,Dr;fe.WritableState=Ai;var Pd=Object.create(Or());Pd.inherits=Ir();var pT={deprecate:Od()},Ld=Ka(),fs=xi().Buffer,gT=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _T(t){return fs.from(t)}function yT(t){return fs.isBuffer(t)||t instanceof gT}var Nd=tl();Pd.inherits(fe,Ld);function mT(){}function Ai(t,e){Dr=Dr||tr(),t=t||{};var r=e instanceof Dr;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,n=t.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){TT(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Dd(this)}Ai.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Ai.prototype,"buffer",{get:pT.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var us;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(us=Function.prototype[Symbol.hasInstance],Object.defineProperty(fe,Symbol.hasInstance,{value:function(t){return us.call(this,t)?!0:this!==fe?!1:t&&t._writableState instanceof Ai}})):us=function(t){return t instanceof this};function fe(t){if(Dr=Dr||tr(),!us.call(fe,this)&&!(this instanceof Dr))return new fe(t);this._writableState=new Ai(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Ld.call(this)}fe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function bT(t,e){var r=new Error("write after end");t.emit("error",r),er.nextTick(e,r)}function wT(t,e,r,i){var n=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),er.nextTick(i,s),n=!1),n}fe.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&yT(t);return s&&!fs.isBuffer(t)&&(t=_T(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=mT),i.ended?bT(this,r):(s||wT(this,i,t,r))&&(i.pendingcb++,n=ET(this,i,s,t,e,r)),n};fe.prototype.cork=function(){var t=this._writableState;t.corked++};fe.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Cd(this,t))};fe.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function ST(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=fs.from(e,r)),e}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ET(t,e,r,i,n,s){if(!r){var o=ST(e,i,n);i!==o&&(r=!0,n="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else rl(t,e,!1,a,i,n,s);return l}function rl(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function vT(t,e,r,i,n){--e.pendingcb,r?(er.nextTick(n,i),er.nextTick(Ri,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Ri(t,e))}function xT(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function TT(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(xT(r),e)vT(t,r,i,e,n);else{var s=kd(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Cd(t,r),i?dT(Id,t,r,s,n):Id(t,r,s,n)}}function Id(t,e,r,i){r||RT(t,e),e.pendingcb--,i(),Ri(t,e)}function RT(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Cd(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)n[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;n.allBuffers=a,rl(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Dd(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,c=e.objectMode?1:l.length;if(rl(t,e,!1,c,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}fe.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};fe.prototype._writev=null;fe.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||IT(this,i,r)};function kd(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function AT(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Ri(t,e)})}function OT(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,er.nextTick(AT,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Ri(t,e){var r=kd(e);return r&&(OT(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function IT(t,e,r){e.ending=!0,Ri(t,e),r&&(e.finished?er.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function DT(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(fe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});fe.prototype.destroy=Nd.destroy;fe.prototype._undestroy=Nd.undestroy;fe.prototype._destroy=function(t,e){this.end(),e(t)}});var tr=g((b3,Bd)=>{"use strict";var Fd=vi(),PT=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Bd.exports=gt;var qd=Object.create(Or());qd.inherits=Ir();var jd=ol(),sl=il();qd.inherits(gt,jd);for(nl=PT(sl.prototype),cs=0;cs<nl.length;cs++)hs=nl[cs],gt.prototype[hs]||(gt.prototype[hs]=sl.prototype[hs]);var nl,hs,cs;function gt(t){if(!(this instanceof gt))return new gt(t);jd.call(this,t),sl.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",LT)}Object.defineProperty(gt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function LT(){this.allowHalfOpen||this._writableState.ended||Fd.nextTick(NT,this)}function NT(t){t.end()}Object.defineProperty(gt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});gt.prototype._destroy=function(t,e){this.push(null),this.end(),Fd.nextTick(e,t)}});var ul=g(Wd=>{"use strict";var ll=xi().Buffer,Ud=ll.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function CT(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function kT(t){var e=CT(t);if(typeof e!="string"&&(ll.isEncoding===Ud||!Ud(t)))throw new Error("Unknown encoding: "+t);return e||t}Wd.StringDecoder=Oi;function Oi(t){this.encoding=kT(t);var e;switch(this.encoding){case"utf16le":this.text=UT,this.end=WT,e=4;break;case"utf8":this.fillLast=qT,e=4;break;case"base64":this.text=zT,this.end=GT,e=3;break;default:this.write=$T,this.end=HT;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ll.allocUnsafe(e)}Oi.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Oi.prototype.end=BT;Oi.prototype.text=jT;Oi.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function al(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function MT(t,e,r){var i=e.length-1;if(i<r)return 0;var n=al(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=al(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=al(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function FT(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function qT(t){var e=this.lastTotal-this.lastNeed,r=FT(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function jT(t,e){var r=MT(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function BT(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function UT(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function WT(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function zT(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function GT(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function $T(t){return t.toString(this.encoding)}function HT(t){return t&&t.length?this.write(t):""}});var ol=g((E3,ep)=>{"use strict";var Lr=vi();ep.exports=Q;var VT=bd(),Ii;Q.ReadableState=Kd;var S3=P("events").EventEmitter,Hd=function(t,e){return t.listeners(e).length},pl=Ka(),Di=xi().Buffer,YT=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function KT(t){return Di.from(t)}function ZT(t){return Di.isBuffer(t)||t instanceof YT}var Vd=Object.create(Or());Vd.inherits=Ir();var fl=P("util"),$=void 0;fl&&fl.debuglog?$=fl.debuglog("stream"):$=function(){};var QT=Td(),Yd=tl(),Pr;Vd.inherits(Q,pl);var cl=["error","close","destroy","pause","resume"];function XT(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):VT(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Kd(t,e){Ii=Ii||tr(),t=t||{};var r=e instanceof Ii;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,n=t.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new QT,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Pr||(Pr=ul().StringDecoder),this.decoder=new Pr(t.encoding),this.encoding=t.encoding)}function Q(t){if(Ii=Ii||tr(),!(this instanceof Q))return new Q(t);this._readableState=new Kd(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),pl.call(this)}Object.defineProperty(Q.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Q.prototype.destroy=Yd.destroy;Q.prototype._undestroy=Yd.undestroy;Q.prototype._destroy=function(t,e){this.push(null),e(t)};Q.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Di.from(t,e),e=""),i=!0),Zd(this,t,e,!1,i)};Q.prototype.unshift=function(t){return Zd(this,t,null,!0,!1)};function Zd(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,r1(t,s);else{var o;n||(o=JT(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Di.prototype&&(e=KT(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):hl(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?hl(t,s,e,!1):Qd(t,s)):hl(t,s,e,!1))):i||(s.reading=!1)}return e1(s)}function hl(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&ds(t)),Qd(t,e)}function JT(t,e){var r;return!ZT(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function e1(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Q.prototype.isPaused=function(){return this._readableState.flowing===!1};Q.prototype.setEncoding=function(t){return Pr||(Pr=ul().StringDecoder),this._readableState.decoder=new Pr(t),this._readableState.encoding=t,this};var zd=8388608;function t1(t){return t>=zd?t=zd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Gd(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=t1(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Q.prototype.read=function(t){$("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return $("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?dl(this):ds(this),null;if(t=Gd(t,e),t===0&&e.ended)return e.length===0&&dl(this),null;var i=e.needReadable;$("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,$("length less than watermark",i)),e.ended||e.reading?(i=!1,$("reading or ended",i)):i&&($("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Gd(r,e)));var n;return t>0?n=Xd(t,e):n=null,n===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&dl(this)),n!==null&&this.emit("data",n),n};function r1(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,ds(t)}}function ds(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Lr.nextTick($d,t):$d(t))}function $d(t){$("emit readable"),t.emit("readable"),gl(t)}function Qd(t,e){e.readingMore||(e.readingMore=!0,Lr.nextTick(i1,t,e))}function i1(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&($("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}Q.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};Q.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,$("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:S;i.endEmitted?Lr.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(y,b){$("onunpipe"),y===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function a(){$("onend"),t.end()}var l=n1(r);t.on("drain",l);var u=!1;function f(){$("cleanup"),t.removeListener("close",m),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",S),r.removeListener("data",h),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var c=!1;r.on("data",h);function h(y){$("ondata"),c=!1;var b=t.write(y);b===!1&&!c&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Jd(i.pipes,t)!==-1)&&!u&&($("false write response, pause",i.awaitDrain),i.awaitDrain++,c=!0),r.pause())}function d(y){$("onerror",y),S(),t.removeListener("error",d),Hd(t,"error")===0&&t.emit("error",y)}XT(t,"error",d);function m(){t.removeListener("finish",p),S()}t.once("close",m);function p(){$("onfinish"),t.removeListener("close",m),S()}t.once("finish",p);function S(){$("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||($("pipe resume"),r.resume()),t};function n1(t){return function(){var e=t._readableState;$("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Hd(t,"data")&&(e.flowing=!0,gl(t))}}Q.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Jd(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Q.prototype.on=function(t,e){var r=pl.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&ds(this):Lr.nextTick(s1,this))}return r};Q.prototype.addListener=Q.prototype.on;function s1(t){$("readable nexttick read 0"),t.read(0)}Q.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!0,o1(this,t)),this};function o1(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Lr.nextTick(a1,t,e))}function a1(t,e){e.reading||($("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),gl(t),e.flowing&&!e.reading&&t.read(0)}Q.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function gl(t){var e=t._readableState;for($("flow",e.flowing);e.flowing&&t.read()!==null;);}Q.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if($("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if($("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(o){return function(){return t[o].apply(t,arguments)}})(n));for(var s=0;s<cl.length;s++)t.on(cl[s],this.emit.bind(this,cl[s]));return this._read=function(o){$("wrapped _read",o),i&&(i=!1,t.resume())},this};Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Q._fromList=Xd;function Xd(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=l1(t,e.buffer,e.decoder),r}function l1(t,e,r){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?i=e.shift():i=r?u1(t,e):f1(t,e),i}function u1(t,e){var r=e.head,i=1,n=r.data;for(t-=n.length;r=r.next;){var s=r.data,o=t>s.length?s.length:t;if(o===s.length?n+=s:n+=s.slice(0,t),t-=o,t===0){o===s.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(o));break}++i}return e.length-=i,n}function f1(t,e){var r=Di.allocUnsafe(t),i=e.head,n=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var s=i.data,o=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,o),t-=o,t===0){o===s.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=s.slice(o));break}++n}return e.length-=n,r}function dl(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Lr.nextTick(c1,e,t))}function c1(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Jd(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var _l=g((v3,ip)=>{"use strict";ip.exports=_t;var ps=tr(),rp=Object.create(Or());rp.inherits=Ir();rp.inherits(_t,ps);function h1(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function _t(t){if(!(this instanceof _t))return new _t(t);ps.call(this,t),this._transformState={afterTransform:h1.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",d1)}function d1(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){tp(t,e,r)}):tp(this,null,null)}_t.prototype.push=function(t,e){return this._transformState.needTransform=!1,ps.prototype.push.call(this,t,e)};_t.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};_t.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};_t.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};_t.prototype._destroy=function(t,e){var r=this;ps.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function tp(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var ap=g((x3,op)=>{"use strict";op.exports=Pi;var np=_l(),sp=Object.create(Or());sp.inherits=Ir();sp.inherits(Pi,np);function Pi(t){if(!(this instanceof Pi))return new Pi(t);np.call(this,t)}Pi.prototype._transform=function(t,e,r){r(null,t)}});var lp=g((be,gs)=>{"use strict";var et=P("stream");process.env.READABLE_STREAM==="disable"&&et?(gs.exports=et,be=gs.exports=et.Readable,be.Readable=et.Readable,be.Writable=et.Writable,be.Duplex=et.Duplex,be.Transform=et.Transform,be.PassThrough=et.PassThrough,be.Stream=et):(be=gs.exports=ol(),be.Stream=et||be,be.Readable=be,be.Writable=il(),be.Duplex=tr(),be.Transform=_l(),be.PassThrough=ap())});var fp=g((T3,up)=>{"use strict";up.exports=lp().PassThrough});var pp=g((R3,dp)=>{"use strict";var cp=P("util"),ms=fp();dp.exports={Readable:_s,Writable:ys};cp.inherits(_s,ms);cp.inherits(ys,ms);function hp(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function _s(t,e){if(!(this instanceof _s))return new _s(t,e);ms.call(this,e),hp(this,"_read",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),r.pipe(this)}),this.emit("readable")}function ys(t,e){if(!(this instanceof ys))return new ys(t,e);ms.call(this,e),hp(this,"_write",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),this.pipe(r)}),this.emit("writable")}});var yl=g((A3,gp)=>{"use strict";gp.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var i="";if(r>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),i="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),i+s.join("/")}});var ml=g((O3,_p)=>{"use strict";function p1(t){return t}_p.exports=p1});var mp=g((I3,yp)=>{"use strict";function g1(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}yp.exports=g1});var Sp=g((D3,wp)=>{"use strict";var _1=mp(),bp=Math.max;function y1(t,e,r){return e=bp(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=bp(i.length-e,0),o=Array(s);++n<s;)o[n]=i[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=i[n];return a[e]=r(o),_1(t,this,a)}}wp.exports=y1});var vp=g((P3,Ep)=>{"use strict";function m1(t){return function(){return t}}Ep.exports=m1});var bl=g((L3,xp)=>{"use strict";var b1=typeof global=="object"&&global&&global.Object===Object&&global;xp.exports=b1});var Nr=g((N3,Tp)=>{"use strict";var w1=bl(),S1=typeof self=="object"&&self&&self.Object===Object&&self,E1=w1||S1||Function("return this")();Tp.exports=E1});var bs=g((C3,Rp)=>{"use strict";var v1=Nr(),x1=v1.Symbol;Rp.exports=x1});var Dp=g((k3,Ip)=>{"use strict";var Ap=bs(),Op=Object.prototype,T1=Op.hasOwnProperty,R1=Op.toString,Li=Ap?Ap.toStringTag:void 0;function A1(t){var e=T1.call(t,Li),r=t[Li];try{t[Li]=void 0;var i=!0}catch{}var n=R1.call(t);return i&&(e?t[Li]=r:delete t[Li]),n}Ip.exports=A1});var Lp=g((M3,Pp)=>{"use strict";var O1=Object.prototype,I1=O1.toString;function D1(t){return I1.call(t)}Pp.exports=D1});var Ni=g((F3,kp)=>{"use strict";var Np=bs(),P1=Dp(),L1=Lp(),N1="[object Null]",C1="[object Undefined]",Cp=Np?Np.toStringTag:void 0;function k1(t){return t==null?t===void 0?C1:N1:Cp&&Cp in Object(t)?P1(t):L1(t)}kp.exports=k1});var Ci=g((q3,Mp)=>{"use strict";function M1(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}Mp.exports=M1});var wl=g((j3,Fp)=>{"use strict";var F1=Ni(),q1=Ci(),j1="[object AsyncFunction]",B1="[object Function]",U1="[object GeneratorFunction]",W1="[object Proxy]";function z1(t){if(!q1(t))return!1;var e=F1(t);return e==B1||e==U1||e==j1||e==W1}Fp.exports=z1});var jp=g((B3,qp)=>{"use strict";var G1=Nr(),$1=G1["__core-js_shared__"];qp.exports=$1});var Wp=g((U3,Up)=>{"use strict";var Sl=jp(),Bp=(function(){var t=/[^.]+$/.exec(Sl&&Sl.keys&&Sl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function H1(t){return!!Bp&&Bp in t}Up.exports=H1});var Gp=g((W3,zp)=>{"use strict";var V1=Function.prototype,Y1=V1.toString;function K1(t){if(t!=null){try{return Y1.call(t)}catch{}try{return t+""}catch{}}return""}zp.exports=K1});var Hp=g((z3,$p)=>{"use strict";var Z1=wl(),Q1=Wp(),X1=Ci(),J1=Gp(),eR=/[\\^$.*+?()[\]{}|]/g,tR=/^\[object .+?Constructor\]$/,rR=Function.prototype,iR=Object.prototype,nR=rR.toString,sR=iR.hasOwnProperty,oR=RegExp("^"+nR.call(sR).replace(eR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aR(t){if(!X1(t)||Q1(t))return!1;var e=Z1(t)?oR:tR;return e.test(J1(t))}$p.exports=aR});var Yp=g((G3,Vp)=>{"use strict";function lR(t,e){return t?.[e]}Vp.exports=lR});var ki=g(($3,Kp)=>{"use strict";var uR=Hp(),fR=Yp();function cR(t,e){var r=fR(t,e);return uR(r)?r:void 0}Kp.exports=cR});var Qp=g((H3,Zp)=>{"use strict";var hR=ki(),dR=(function(){try{var t=hR(Object,"defineProperty");return t({},"",{}),t}catch{}})();Zp.exports=dR});var eg=g((V3,Jp)=>{"use strict";var pR=vp(),Xp=Qp(),gR=ml(),_R=Xp?function(t,e){return Xp(t,"toString",{configurable:!0,enumerable:!1,value:pR(e),writable:!0})}:gR;Jp.exports=_R});var rg=g((Y3,tg)=>{"use strict";var yR=800,mR=16,bR=Date.now;function wR(t){var e=0,r=0;return function(){var i=bR(),n=mR-(i-r);if(r=i,n>0){if(++e>=yR)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}tg.exports=wR});var ng=g((K3,ig)=>{"use strict";var SR=eg(),ER=rg(),vR=ER(SR);ig.exports=vR});var ws=g((Z3,sg)=>{"use strict";var xR=ml(),TR=Sp(),RR=ng();function AR(t,e){return RR(TR(t,e,xR),t+"")}sg.exports=AR});var Ss=g((Q3,og)=>{"use strict";function OR(t,e){return t===e||t!==t&&e!==e}og.exports=OR});var El=g((X3,ag)=>{"use strict";var IR=9007199254740991;function DR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=IR}ag.exports=DR});var Es=g((J3,lg)=>{"use strict";var PR=wl(),LR=El();function NR(t){return t!=null&&LR(t.length)&&!PR(t)}lg.exports=NR});var vl=g((e4,ug)=>{"use strict";var CR=9007199254740991,kR=/^(?:0|[1-9]\d*)$/;function MR(t,e){var r=typeof t;return e=e??CR,!!e&&(r=="number"||r!="symbol"&&kR.test(t))&&t>-1&&t%1==0&&t<e}ug.exports=MR});var cg=g((t4,fg)=>{"use strict";var FR=Ss(),qR=Es(),jR=vl(),BR=Ci();function UR(t,e,r){if(!BR(r))return!1;var i=typeof e;return(i=="number"?qR(r)&&jR(e,r.length):i=="string"&&e in r)?FR(r[e],t):!1}fg.exports=UR});var dg=g((r4,hg)=>{"use strict";function WR(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}hg.exports=WR});var Cr=g((i4,pg)=>{"use strict";function zR(t){return t!=null&&typeof t=="object"}pg.exports=zR});var _g=g((n4,gg)=>{"use strict";var GR=Ni(),$R=Cr(),HR="[object Arguments]";function VR(t){return $R(t)&&GR(t)==HR}gg.exports=VR});var xl=g((s4,bg)=>{"use strict";var yg=_g(),YR=Cr(),mg=Object.prototype,KR=mg.hasOwnProperty,ZR=mg.propertyIsEnumerable,QR=yg((function(){return arguments})())?yg:function(t){return YR(t)&&KR.call(t,"callee")&&!ZR.call(t,"callee")};bg.exports=QR});var Tl=g((o4,wg)=>{"use strict";var XR=Array.isArray;wg.exports=XR});var Eg=g((a4,Sg)=>{"use strict";function JR(){return!1}Sg.exports=JR});var Rg=g((Mi,kr)=>{"use strict";var eA=Nr(),tA=Eg(),Tg=typeof Mi=="object"&&Mi&&!Mi.nodeType&&Mi,vg=Tg&&typeof kr=="object"&&kr&&!kr.nodeType&&kr,rA=vg&&vg.exports===Tg,xg=rA?eA.Buffer:void 0,iA=xg?xg.isBuffer:void 0,nA=iA||tA;kr.exports=nA});var Og=g((l4,Ag)=>{"use strict";var sA=Ni(),oA=El(),aA=Cr(),lA="[object Arguments]",uA="[object Array]",fA="[object Boolean]",cA="[object Date]",hA="[object Error]",dA="[object Function]",pA="[object Map]",gA="[object Number]",_A="[object Object]",yA="[object RegExp]",mA="[object Set]",bA="[object String]",wA="[object WeakMap]",SA="[object ArrayBuffer]",EA="[object DataView]",vA="[object Float32Array]",xA="[object Float64Array]",TA="[object Int8Array]",RA="[object Int16Array]",AA="[object Int32Array]",OA="[object Uint8Array]",IA="[object Uint8ClampedArray]",DA="[object Uint16Array]",PA="[object Uint32Array]",X={};X[vA]=X[xA]=X[TA]=X[RA]=X[AA]=X[OA]=X[IA]=X[DA]=X[PA]=!0;X[lA]=X[uA]=X[SA]=X[fA]=X[EA]=X[cA]=X[hA]=X[dA]=X[pA]=X[gA]=X[_A]=X[yA]=X[mA]=X[bA]=X[wA]=!1;function LA(t){return aA(t)&&oA(t.length)&&!!X[sA(t)]}Ag.exports=LA});var Rl=g((u4,Ig)=>{"use strict";function NA(t){return function(e){return t(e)}}Ig.exports=NA});var Pg=g((Fi,Mr)=>{"use strict";var CA=bl(),Dg=typeof Fi=="object"&&Fi&&!Fi.nodeType&&Fi,qi=Dg&&typeof Mr=="object"&&Mr&&!Mr.nodeType&&Mr,kA=qi&&qi.exports===Dg,Al=kA&&CA.process,MA=(function(){try{var t=qi&&qi.require&&qi.require("util").types;return t||Al&&Al.binding&&Al.binding("util")}catch{}})();Mr.exports=MA});var kg=g((f4,Cg)=>{"use strict";var FA=Og(),qA=Rl(),Lg=Pg(),Ng=Lg&&Lg.isTypedArray,jA=Ng?qA(Ng):FA;Cg.exports=jA});var Fg=g((c4,Mg)=>{"use strict";var BA=dg(),UA=xl(),WA=Tl(),zA=Rg(),GA=vl(),$A=kg(),HA=Object.prototype,VA=HA.hasOwnProperty;function YA(t,e){var r=WA(t),i=!r&&UA(t),n=!r&&!i&&zA(t),s=!r&&!i&&!n&&$A(t),o=r||i||n||s,a=o?BA(t.length,String):[],l=a.length;for(var u in t)(e||VA.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||GA(u,l)))&&a.push(u);return a}Mg.exports=YA});var jg=g((h4,qg)=>{"use strict";var KA=Object.prototype;function ZA(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||KA;return t===r}qg.exports=ZA});var Ug=g((d4,Bg)=>{"use strict";function QA(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}Bg.exports=QA});var zg=g((p4,Wg)=>{"use strict";var XA=Ci(),JA=jg(),eO=Ug(),tO=Object.prototype,rO=tO.hasOwnProperty;function iO(t){if(!XA(t))return eO(t);var e=JA(t),r=[];for(var i in t)i=="constructor"&&(e||!rO.call(t,i))||r.push(i);return r}Wg.exports=iO});var $g=g((g4,Gg)=>{"use strict";var nO=Fg(),sO=zg(),oO=Es();function aO(t){return oO(t)?nO(t,!0):sO(t)}Gg.exports=aO});var Yg=g((_4,Vg)=>{"use strict";var lO=ws(),uO=Ss(),fO=cg(),cO=$g(),Hg=Object.prototype,hO=Hg.hasOwnProperty,dO=lO(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&fO(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=cO(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||uO(f,Hg[u])&&!hO.call(t,u))&&(t[u]=s[u])}return t});Vg.exports=dO});var ie=g((y4,Kg)=>{"use strict";var Ol=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let i=0;i<e.length;i++)r+=` ${e[i].stack}
|
|
8
|
-
`;super(r),this.name="AggregateError",this.errors=e}};Kg.exports={AggregateError:Ol,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Il=g((m4,Zg)=>{"use strict";Zg.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var xe=g((b4,Jg)=>{"use strict";var{format:pO,inspect:vs}=Il(),{AggregateError:gO}=ie(),_O=globalThis.AggregateError||gO,yO=Symbol("kIsNodeError"),mO=["string","function","number","object","Function","Object","boolean","bigint","symbol"],bO=/^([A-Z][a-z0-9]*)+$/,wO="__node_internal_",xs={};function rr(t,e){if(!t)throw new xs.ERR_INTERNAL_ASSERTION(e)}function Qg(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function SO(t,e,r){if(typeof e=="function")return rr(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return rr(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:pO(e,...r)}function we(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(SO(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[yO]=!0,xs[t]=i}function Xg(t){let e=wO+t.name;return Object.defineProperty(t,"name",{value:e}),t}function EO(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new _O([e,t],e.message);return r.code=e.code,r}return t||e}var Dl=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new xs.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};we("ERR_ASSERTION","%s",Error);we("ERR_INVALID_ARG_TYPE",(t,e,r)=>{rr(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],o=[];for(let l of e)rr(typeof l=="string","All expected entries have to be of type string"),mO.includes(l)?n.push(l.toLowerCase()):bO.test(l)?s.push(l):(rr(l!=="object",'The value "object" should be written as "Object"'),o.push(l));if(s.length>0){let l=n.indexOf("object");l!==-1&&(n.splice(n,l,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let l=n.pop();i+=`one of type ${n.join(", ")}, or ${l}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();i+=`an instance of ${s.join(", ")}, or ${l}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();i+=`one of ${o.join(", ")}, or ${l}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=`. Received an instance of ${r.constructor.name}`;else{let l=vs(r,{depth:-1});i+=`. Received ${l}`}}else{let l=vs(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);we("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=vs(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);we("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var i;let n=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${n}.`},TypeError);we("ERR_MISSING_ARGS",(...t)=>{rr(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(i=>`"${i}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let i=t.pop();e+=`The ${t.join(", ")}, and ${i} arguments`}break}return`${e} must be specified`},TypeError);we("ERR_OUT_OF_RANGE",(t,e,r)=>{rr(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=Qg(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=Qg(i)),i+="n"}else i=vs(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);we("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);we("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);we("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);we("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);we("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);we("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);we("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);we("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);we("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);we("ERR_STREAM_WRITE_AFTER_END","write after end",Error);we("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);Jg.exports={AbortError:Dl,aggregateTwoErrors:Xg(EO),hideStackFrames:Xg,codes:xs}});var u_=g((Ui,Bi)=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});var s_=new WeakMap,Pl=new WeakMap;function J(t){let e=s_.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function e_(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}function Fr(t,e){s_.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(e);for(let i=0;i<r.length;++i){let n=r[i];n in this||Object.defineProperty(this,n,o_(n))}}Fr.prototype={get type(){return J(this).event.type},get target(){return J(this).eventTarget},get currentTarget(){return J(this).currentTarget},composedPath(){let t=J(this).currentTarget;return t==null?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return J(this).eventPhase},stopPropagation(){let t=J(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=J(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!J(this).event.bubbles},get cancelable(){return!!J(this).event.cancelable},preventDefault(){e_(J(this))},get defaultPrevented(){return J(this).canceled},get composed(){return!!J(this).event.composed},get timeStamp(){return J(this).timeStamp},get srcElement(){return J(this).eventTarget},get cancelBubble(){return J(this).stopped},set cancelBubble(t){if(!t)return;let e=J(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!J(this).canceled},set returnValue(t){t||e_(J(this))},initEvent(){}};Object.defineProperty(Fr.prototype,"constructor",{value:Fr,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(Fr.prototype,window.Event.prototype),Pl.set(window.Event.prototype,Fr));function o_(t){return{get(){return J(this).event[t]},set(e){J(this).event[t]=e},configurable:!0,enumerable:!0}}function vO(t){return{value(){let e=J(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function xO(t,e){let r=Object.keys(e);if(r.length===0)return t;function i(n,s){t.call(this,n,s)}i.prototype=Object.create(t.prototype,{constructor:{value:i,configurable:!0,writable:!0}});for(let n=0;n<r.length;++n){let s=r[n];if(!(s in t.prototype)){let a=typeof Object.getOwnPropertyDescriptor(e,s).value=="function";Object.defineProperty(i.prototype,s,a?vO(s):o_(s))}}return i}function a_(t){if(t==null||t===Object.prototype)return Fr;let e=Pl.get(t);return e==null&&(e=xO(a_(Object.getPrototypeOf(t)),t),Pl.set(t,e)),e}function TO(t,e){let r=a_(Object.getPrototypeOf(e));return new r(t,e)}function RO(t){return J(t).immediateStopped}function AO(t,e){J(t).eventPhase=e}function OO(t,e){J(t).currentTarget=e}function t_(t,e){J(t).passiveListener=e}var l_=new WeakMap,r_=1,i_=2,Ts=3;function Rs(t){return t!==null&&typeof t=="object"}function ji(t){let e=l_.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function IO(t){return{get(){let r=ji(this).get(t);for(;r!=null;){if(r.listenerType===Ts)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!Rs(e)&&(e=null);let r=ji(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===Ts?i!==null?i.next=n.next:n.next!==null?r.set(t,n.next):r.delete(t):i=n,n=n.next;if(e!==null){let s={listener:e,listenerType:Ts,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function Ll(t,e){Object.defineProperty(t,`on${e}`,IO(e))}function n_(t){function e(){He.call(this)}e.prototype=Object.create(He.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)Ll(e.prototype,t[r]);return e}function He(){if(this instanceof He){l_.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return n_(arguments[0]);if(arguments.length>0){let t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return n_(t)}throw new TypeError("Cannot call a class as a function")}He.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!Rs(e))throw new TypeError("'listener' should be a function or an object.");let i=ji(this),n=Rs(r),o=(n?!!r.capture:!!r)?r_:i_,a={listener:e,listenerType:o,passive:n&&!!r.passive,once:n&&!!r.once,next:null},l=i.get(t);if(l===void 0){i.set(t,a);return}let u=null;for(;l!=null;){if(l.listener===e&&l.listenerType===o)return;u=l,l=l.next}u.next=a},removeEventListener(t,e,r){if(e==null)return;let i=ji(this),s=(Rs(r)?!!r.capture:!!r)?r_:i_,o=null,a=i.get(t);for(;a!=null;){if(a.listener===e&&a.listenerType===s){o!==null?o.next=a.next:a.next!==null?i.set(t,a.next):i.delete(t);return}o=a,a=a.next}},dispatchEvent(t){if(t==null||typeof t.type!="string")throw new TypeError('"event.type" should be a string.');let e=ji(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=TO(this,t),s=null;for(;i!=null;){if(i.once?s!==null?s.next=i.next:i.next!==null?e.set(r,i.next):e.delete(r):s=i,t_(n,i.passive?i.listener:null),typeof i.listener=="function")try{i.listener.call(this,n)}catch(o){typeof console<"u"&&typeof console.error=="function"&&console.error(o)}else i.listenerType!==Ts&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(RO(n))break;i=i.next}return t_(n,null),AO(n,0),OO(n,null),!n.defaultPrevented}};Object.defineProperty(He.prototype,"constructor",{value:He,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(He.prototype,window.EventTarget.prototype);Ui.defineEventAttribute=Ll;Ui.EventTarget=He;Ui.default=He;Bi.exports=He;Bi.exports.EventTarget=Bi.exports.default=He;Bi.exports.defineEventAttribute=Ll});var qr=g((zi,Wi)=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});var Nl=u_(),Pt=class extends Nl.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=As.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};Nl.defineEventAttribute(Pt.prototype,"abort");function DO(){let t=Object.create(Pt.prototype);return Nl.EventTarget.call(t),As.set(t,!1),t}function PO(t){As.get(t)===!1&&(As.set(t,!0),t.dispatchEvent({type:"abort"}))}var As=new WeakMap;Object.defineProperties(Pt.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Pt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Lt=class{constructor(){c_.set(this,DO())}get signal(){return f_(this)}abort(){PO(f_(this))}},c_=new WeakMap;function f_(t){let e=c_.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}Object.defineProperties(Lt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Lt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});zi.AbortController=Lt;zi.AbortSignal=Pt;zi.default=Lt;Wi.exports=Lt;Wi.exports.AbortController=Wi.exports.default=Lt;Wi.exports.AbortSignal=Pt});var Oe=g((w4,kl)=>{"use strict";var LO=P("buffer"),{format:NO,inspect:CO}=Il(),{codes:{ERR_INVALID_ARG_TYPE:Cl}}=xe(),{kResistStopPropagation:kO,AggregateError:MO,SymbolDispose:FO}=ie(),qO=globalThis.AbortSignal||qr().AbortSignal,jO=globalThis.AbortController||qr().AbortController,BO=Object.getPrototypeOf(async function(){}).constructor,h_=globalThis.Blob||LO.Blob,UO=typeof h_<"u"?function(e){return e instanceof h_}:function(e){return!1},d_=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Cl(e,"AbortSignal",t)},WO=(t,e)=>{if(typeof t!="function")throw new Cl(e,"Function",t)};kl.exports={AggregateError:MO,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format:NO,inspect:CO,types:{isAsyncFunction(t){return t instanceof BO},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:UO,deprecate(t,e){return t},addAbortListener:P("events").addAbortListener||function(e,r){if(e===void 0)throw new Cl("signal","AbortSignal",e);d_(e,"signal"),WO(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[kO]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[FO](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:qO.any||function(e){if(e.length===1)return e[0];let r=new jO,i=()=>r.abort();return e.forEach(n=>{d_(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};kl.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Br=g((S4,v_)=>{"use strict";var{ArrayIsArray:Fl,ArrayPrototypeIncludes:y_,ArrayPrototypeJoin:m_,ArrayPrototypeMap:zO,NumberIsInteger:ql,NumberIsNaN:GO,NumberMAX_SAFE_INTEGER:$O,NumberMIN_SAFE_INTEGER:HO,NumberParseInt:VO,ObjectPrototypeHasOwnProperty:YO,RegExpPrototypeExec:b_,String:KO,StringPrototypeToUpperCase:ZO,StringPrototypeTrim:QO}=ie(),{hideStackFrames:je,codes:{ERR_SOCKET_BAD_PORT:XO,ERR_INVALID_ARG_TYPE:Te,ERR_INVALID_ARG_VALUE:jr,ERR_OUT_OF_RANGE:ir,ERR_UNKNOWN_SIGNAL:p_}}=xe(),{normalizeEncoding:JO}=Oe(),{isAsyncFunction:eI,isArrayBufferView:tI}=Oe().types,g_={};function rI(t){return t===(t|0)}function iI(t){return t===t>>>0}var nI=/^[0-7]+$/,sI="must be a 32-bit unsigned integer or an octal string";function oI(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(b_(nI,t)===null)throw new jr(e,t,sI);t=VO(t,8)}return w_(t,e),t}var aI=je((t,e,r=HO,i=$O)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!ql(t))throw new ir(e,"an integer",t);if(t<r||t>i)throw new ir(e,`>= ${r} && <= ${i}`,t)}),lI=je((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!ql(t))throw new ir(e,"an integer",t);if(t<r||t>i)throw new ir(e,`>= ${r} && <= ${i}`,t)}),w_=je((t,e,r=!1)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!ql(t))throw new ir(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new ir(e,`>= ${i} && <= ${n}`,t)});function jl(t,e){if(typeof t!="string")throw new Te(e,"string",t)}function uI(t,e,r=void 0,i){if(typeof t!="number")throw new Te(e,"number",t);if(r!=null&&t<r||i!=null&&t>i||(r!=null||i!=null)&&GO(t))throw new ir(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var fI=je((t,e,r)=>{if(!y_(r,t)){let n="must be one of: "+m_(zO(r,s=>typeof s=="string"?`'${s}'`:KO(s)),", ");throw new jr(e,t,n)}});function S_(t,e){if(typeof t!="boolean")throw new Te(e,"boolean",t)}function Ml(t,e,r){return t==null||!YO(t,e)?r:t[e]}var cI=je((t,e,r=null)=>{let i=Ml(r,"allowArray",!1),n=Ml(r,"allowFunction",!1);if(!Ml(r,"nullable",!1)&&t===null||!i&&Fl(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Te(e,"Object",t)}),hI=je((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Te(e,"a dictionary",t)}),Os=je((t,e,r=0)=>{if(!Fl(t))throw new Te(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new jr(e,t,i)}});function dI(t,e){Os(t,e);for(let r=0;r<t.length;r++)jl(t[r],`${e}[${r}]`)}function pI(t,e){Os(t,e);for(let r=0;r<t.length;r++)S_(t[r],`${e}[${r}]`)}function gI(t,e){Os(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new Te(n,"AbortSignal",i);E_(i,n)}}function _I(t,e="signal"){if(jl(t,e),g_[t]===void 0)throw g_[ZO(t)]!==void 0?new p_(t+" (signals must use all capital letters)"):new p_(t)}var yI=je((t,e="buffer")=>{if(!tI(t))throw new Te(e,["Buffer","TypedArray","DataView"],t)});function mI(t,e){let r=JO(e),i=t.length;if(r==="hex"&&i%2!==0)throw new jr("encoding",e,`is invalid for data of length ${i}`)}function bI(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&QO(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new XO(e,t,r);return t|0}var E_=je((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Te(e,"AbortSignal",t)}),wI=je((t,e)=>{if(typeof t!="function")throw new Te(e,"Function",t)}),SI=je((t,e)=>{if(typeof t!="function"||eI(t))throw new Te(e,"Function",t)}),EI=je((t,e)=>{if(t!==void 0)throw new Te(e,"undefined",t)});function vI(t,e,r){if(!y_(r,t))throw new Te(e,`('${m_(r,"|")}')`,t)}var xI=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function __(t,e){if(typeof t>"u"||!b_(xI,t))throw new jr(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function TI(t){if(typeof t=="string")return __(t,"hints"),t;if(Fl(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];__(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new jr("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}v_.exports={isInt32:rI,isUint32:iI,parseFileMode:oI,validateArray:Os,validateStringArray:dI,validateBooleanArray:pI,validateAbortSignalArray:gI,validateBoolean:S_,validateBuffer:yI,validateDictionary:hI,validateEncoding:mI,validateFunction:wI,validateInt32:lI,validateInteger:aI,validateNumber:uI,validateObject:cI,validateOneOf:fI,validatePlainFunction:SI,validatePort:bI,validateSignalName:_I,validateString:jl,validateUint32:w_,validateUndefined:EI,validateUnion:vI,validateAbortSignal:E_,validateLinkHeaderValue:TI}});var Nt=g((E4,x_)=>{"use strict";x_.exports=global.process});var rt=g((v4,j_)=>{"use strict";var{SymbolAsyncIterator:T_,SymbolIterator:R_,SymbolFor:nr}=ie(),A_=nr("nodejs.stream.destroyed"),O_=nr("nodejs.stream.errored"),Bl=nr("nodejs.stream.readable"),Ul=nr("nodejs.stream.writable"),I_=nr("nodejs.stream.disturbed"),RI=nr("nodejs.webstream.isClosedPromise"),AI=nr("nodejs.webstream.controllerErrorFunction");function Is(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function Ds(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function OI(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function tt(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function D_(t){return!!(t&&!tt(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function P_(t){return!!(t&&!tt(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function L_(t){return!!(t&&!tt(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function II(t){return D_(t)||P_(t)||L_(t)}function DI(t,e){return t==null?!1:e===!0?typeof t[T_]=="function":e===!1?typeof t[R_]=="function":typeof t[T_]=="function"||typeof t[R_]=="function"}function Ps(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[A_]||i!=null&&i.destroyed)}function N_(t){if(!Ds(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function PI(t,e){if(!Ds(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function LI(t){if(!Is(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function C_(t,e){if(!Is(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function k_(t){return t&&t[Bl]!=null?t[Bl]:typeof t?.readable!="boolean"?null:Ps(t)?!1:Is(t)&&t.readable&&!C_(t)}function M_(t){return t&&t[Ul]!=null?t[Ul]:typeof t?.writable!="boolean"?null:Ps(t)?!1:Ds(t)&&t.writable&&!N_(t)}function NI(t,e){return tt(t)?Ps(t)?!0:!(e?.readable!==!1&&k_(t)||e?.writable!==!1&&M_(t)):null}function CI(t){var e,r;return tt(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function kI(t){var e,r;return tt(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function MI(t){if(!tt(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&F_(t)?t._closed:null}function F_(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function q_(t){return typeof t._sent100=="boolean"&&F_(t)}function FI(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function qI(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&q_(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function jI(t){var e;return!!(t&&((e=t[I_])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function BI(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[O_])!==null&&o!==void 0?o:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&n!==void 0?n:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&i!==void 0?i:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((f=t._writableState)===null||f===void 0)&&f.errored))}j_.exports={isDestroyed:Ps,kIsDestroyed:A_,isDisturbed:jI,kIsDisturbed:I_,isErrored:BI,kIsErrored:O_,isReadable:k_,kIsReadable:Bl,kIsClosedPromise:RI,kControllerErrorFunction:AI,kIsWritable:Ul,isClosed:MI,isDuplexNodeStream:OI,isFinished:NI,isIterable:DI,isReadableNodeStream:Is,isReadableStream:D_,isReadableEnded:LI,isReadableFinished:C_,isReadableErrored:kI,isNodeStream:tt,isWebStream:II,isWritable:M_,isWritableNodeStream:Ds,isWritableStream:P_,isWritableEnded:N_,isWritableFinished:PI,isWritableErrored:CI,isServerRequest:FI,isServerResponse:q_,willEmitClose:qI,isTransformStream:L_}});var yt=g((x4,Hl)=>{"use strict";var Ct=Nt(),{AbortError:Y_,codes:UI}=xe(),{ERR_INVALID_ARG_TYPE:WI,ERR_STREAM_PREMATURE_CLOSE:B_}=UI,{kEmptyObject:zl,once:Gl}=Oe(),{validateAbortSignal:zI,validateFunction:GI,validateObject:$I,validateBoolean:HI}=Br(),{Promise:VI,PromisePrototypeThen:YI,SymbolDispose:K_}=ie(),{isClosed:KI,isReadable:U_,isReadableNodeStream:Wl,isReadableStream:ZI,isReadableFinished:W_,isReadableErrored:z_,isWritable:G_,isWritableNodeStream:$_,isWritableStream:QI,isWritableFinished:H_,isWritableErrored:V_,isNodeStream:XI,willEmitClose:JI,kIsClosedPromise:eD}=rt(),Ur;function tD(t){return t.setHeader&&typeof t.abort=="function"}var $l=()=>{};function Z_(t,e,r){var i,n;if(arguments.length===2?(r=e,e=zl):e==null?e=zl:$I(e,"options"),GI(r,"callback"),zI(e.signal,"options.signal"),r=Gl(r),ZI(t)||QI(t))return rD(t,e,r);if(!XI(t))throw new WI("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:Wl(t),o=(n=e.writable)!==null&&n!==void 0?n:$_(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||h()},f=JI(t)&&Wl(t)===s&&$_(t)===o,c=H_(t,!1),h=()=>{c=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||d)&&r.call(t)},d=W_(t,!1),m=()=>{d=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||c)&&r.call(t)},p=T=>{r.call(t,T)},S=KI(t),y=()=>{S=!0;let T=V_(t)||z_(t);if(T&&typeof T!="boolean")return r.call(t,T);if(s&&!d&&Wl(t,!0)&&!W_(t,!1))return r.call(t,new B_);if(o&&!c&&!H_(t,!1))return r.call(t,new B_);r.call(t)},b=()=>{S=!0;let T=V_(t)||z_(t);if(T&&typeof T!="boolean")return r.call(t,T);r.call(t)},v=()=>{t.req.on("finish",h)};tD(t)?(t.on("complete",h),f||t.on("abort",y),t.req?v():t.on("request",v)):o&&!a&&(t.on("end",u),t.on("close",u)),!f&&typeof t.aborted=="boolean"&&t.on("aborted",y),t.on("end",m),t.on("finish",h),e.error!==!1&&t.on("error",p),t.on("close",y),S?Ct.nextTick(y):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?f||Ct.nextTick(b):(!s&&(!f||U_(t))&&(c||G_(t)===!1)||!o&&(!f||G_(t))&&(d||U_(t)===!1)||l&&t.req&&t.aborted)&&Ct.nextTick(b);let E=()=>{r=$l,t.removeListener("aborted",y),t.removeListener("complete",h),t.removeListener("abort",y),t.removeListener("request",v),t.req&&t.req.removeListener("finish",h),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",h),t.removeListener("end",m),t.removeListener("error",p),t.removeListener("close",y)};if(e.signal&&!S){let T=()=>{let D=r;E(),D.call(t,new Y_(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Ct.nextTick(T);else{Ur=Ur||Oe().addAbortListener;let D=Ur(e.signal,T),x=r;r=Gl((...O)=>{D[K_](),x.apply(t,O)})}}return E}function rD(t,e,r){let i=!1,n=$l;if(e.signal)if(n=()=>{i=!0,r.call(t,new Y_(void 0,{cause:e.signal.reason}))},e.signal.aborted)Ct.nextTick(n);else{Ur=Ur||Oe().addAbortListener;let o=Ur(e.signal,n),a=r;r=Gl((...l)=>{o[K_](),a.apply(t,l)})}let s=(...o)=>{i||Ct.nextTick(()=>r.apply(t,o))};return YI(t[eD].promise,s,s),$l}function iD(t,e){var r;let i=!1;return e===null&&(e=zl),(r=e)!==null&&r!==void 0&&r.cleanup&&(HI(e.cleanup,"cleanup"),i=e.cleanup),new VI((n,s)=>{let o=Z_(t,e,a=>{i&&o(),a?s(a):n()})})}Hl.exports=Z_;Hl.exports.finished=iD});var sr=g((T4,ny)=>{"use strict";var it=Nt(),{aggregateTwoErrors:nD,codes:{ERR_MULTIPLE_CALLBACK:sD},AbortError:oD}=xe(),{Symbol:J_}=ie(),{kIsDestroyed:aD,isDestroyed:lD,isFinished:uD,isServerRequest:fD}=rt(),ey=J_("kDestroy"),Vl=J_("kConstruct");function ty(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function cD(t,e){let r=this._readableState,i=this._writableState,n=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(ty(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Q_(this,t,e):this.once(ey,function(s){Q_(this,nD(s,t),e)}),this)}function Q_(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;ty(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?it.nextTick(hD,t,s):it.nextTick(ry,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function hD(t,e){Yl(t,e),ry(t)}function ry(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function Yl(t,e){let r=t._readableState,i=t._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function dD(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function Kl(t,e,r){let i=t._readableState,n=t._writableState;if(n!=null&&n.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||n!=null&&n.autoDestroy?t.destroy(e):e&&(e.stack,n&&!n.errored&&(n.errored=e),i&&!i.errored&&(i.errored=e),r?it.nextTick(Yl,t,e):Yl(t,e))}function pD(t,e){if(typeof t._construct!="function")return;let r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(Vl,e),!(t.listenerCount(Vl)>1)&&it.nextTick(gD,t)}function gD(t){let e=!1;function r(i){if(e){Kl(t,i??new sD);return}e=!0;let n=t._readableState,s=t._writableState,o=s||n;n&&(n.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(ey,i):i?Kl(t,i,!0):it.nextTick(_D,t)}try{t._construct(i=>{it.nextTick(r,i)})}catch(i){it.nextTick(r,i)}}function _D(t){t.emit(Vl)}function X_(t){return t?.setHeader&&typeof t.abort=="function"}function iy(t){t.emit("close")}function yD(t,e){t.emit("error",e),it.nextTick(iy,t)}function mD(t,e){!t||lD(t)||(!e&&!uD(t)&&(e=new oD),fD(t)?(t.socket=null,t.destroy(e)):X_(t)?t.abort():X_(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?it.nextTick(yD,t,e):it.nextTick(iy,t),t.destroyed||(t[aD]=!0))}ny.exports={construct:pD,destroyer:mD,destroy:cD,undestroy:dD,errorOrDestroy:Kl}});var Cs=g((R4,oy)=>{"use strict";var{ArrayIsArray:bD,ObjectSetPrototypeOf:sy}=ie(),{EventEmitter:Ls}=P("events");function Ns(t){Ls.call(this,t)}sy(Ns.prototype,Ls.prototype);sy(Ns,Ls);Ns.prototype.pipe=function(t,e){let r=this;function i(f){t.writable&&t.write(f)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",a));let s=!1;function o(){s||(s=!0,t.end())}function a(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function l(f){u(),Ls.listenerCount(this,"error")===0&&this.emit("error",f)}Zl(r,"error",l),Zl(t,"error",l);function u(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t};function Zl(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):bD(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}oy.exports={Stream:Ns,prependListener:Zl}});var Gi=g((A4,ks)=>{"use strict";var{SymbolDispose:wD}=ie(),{AbortError:ay,codes:SD}=xe(),{isNodeStream:ly,isWebStream:ED,kControllerErrorFunction:vD}=rt(),xD=yt(),{ERR_INVALID_ARG_TYPE:uy}=SD,Ql,TD=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new uy(e,"AbortSignal",t)};ks.exports.addAbortSignal=function(e,r){if(TD(e,"signal"),!ly(r)&&!ED(r))throw new uy("stream",["ReadableStream","WritableStream","Stream"],r);return ks.exports.addAbortSignalNoValidate(e,r)};ks.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=ly(e)?()=>{e.destroy(new ay(void 0,{cause:t.reason}))}:()=>{e[vD](new ay(void 0,{cause:t.reason}))};if(t.aborted)r();else{Ql=Ql||Oe().addAbortListener;let i=Ql(t,r);xD(e,i[wD])}return e}});var hy=g((I4,cy)=>{"use strict";var{StringPrototypeSlice:fy,SymbolIterator:RD,TypedArrayPrototypeSet:Ms,Uint8Array:AD}=ie(),{Buffer:Xl}=P("buffer"),{inspect:OD}=Oe();cy.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=e+r.data;return i}concat(e){if(this.length===0)return Xl.alloc(0);let r=Xl.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)Ms(r,i.data,n),n+=i.data.length,i=i.next;return r}consume(e,r){let i=this.head.data;if(e<i.length){let n=i.slice(0,e);return this.head.data=i.slice(e),n}return e===i.length?this.shift():r?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[RD](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let r="",i=this.head,n=0;do{let s=i.data;if(e>s.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++n,i.next?this.head=i.next:this.head=this.tail=null):(r+=fy(s,0,e),this.head=i,i.data=fy(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Xl.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)Ms(r,o,i-e),e-=o.length;else{e===o.length?(Ms(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(Ms(r,new AD(o.buffer,o.byteOffset,e),i-e),this.head=n,n.data=o.slice(e));break}++s}while((n=n.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return OD(this,{...r,depth:0,customInspect:!1})}}});var $i=g((D4,_y)=>{"use strict";var{MathFloor:ID,NumberIsInteger:DD}=ie(),{validateInteger:PD}=Br(),{ERR_INVALID_ARG_VALUE:LD}=xe().codes,dy=16*1024,py=16;function ND(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function gy(t){return t?py:dy}function CD(t,e){PD(e,"value",0),t?py=e:dy=e}function kD(t,e,r,i){let n=ND(e,i,r);if(n!=null){if(!DD(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new LD(s,n)}return ID(n)}return gy(t.objectMode)}_y.exports={getHighWaterMark:kD,getDefaultHighWaterMark:gy,setDefaultHighWaterMark:CD}});var by=g((Jl,my)=>{"use strict";var Fs=P("buffer"),nt=Fs.Buffer;function yy(t,e){for(var r in t)e[r]=t[r]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?my.exports=Fs:(yy(Fs,Jl),Jl.Buffer=or);function or(t,e,r){return nt(t,e,r)}or.prototype=Object.create(nt.prototype);yy(nt,or);or.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return nt(t,e,r)};or.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=nt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};or.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nt(t)};or.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Fs.SlowBuffer(t)}});var Ey=g(Sy=>{"use strict";var tu=by().Buffer,wy=tu.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function MD(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function FD(t){var e=MD(t);if(typeof e!="string"&&(tu.isEncoding===wy||!wy(t)))throw new Error("Unknown encoding: "+t);return e||t}Sy.StringDecoder=Hi;function Hi(t){this.encoding=FD(t);var e;switch(this.encoding){case"utf16le":this.text=zD,this.end=GD,e=4;break;case"utf8":this.fillLast=BD,e=4;break;case"base64":this.text=$D,this.end=HD,e=3;break;default:this.write=VD,this.end=YD;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=tu.allocUnsafe(e)}Hi.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Hi.prototype.end=WD;Hi.prototype.text=UD;Hi.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function eu(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function qD(t,e,r){var i=e.length-1;if(i<r)return 0;var n=eu(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=eu(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=eu(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function jD(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function BD(t){var e=this.lastTotal-this.lastNeed,r=jD(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function UD(t,e){var r=qD(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function WD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function zD(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function GD(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function $D(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function HD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function VD(t){return t.toString(this.encoding)}function YD(t){return t&&t.length?this.write(t):""}});var ru=g((L4,Ry)=>{"use strict";var vy=Nt(),{PromisePrototypeThen:KD,SymbolAsyncIterator:xy,SymbolIterator:Ty}=ie(),{Buffer:ZD}=P("buffer"),{ERR_INVALID_ARG_TYPE:QD,ERR_STREAM_NULL_VALUES:XD}=xe().codes;function JD(t,e,r){let i;if(typeof e=="string"||e instanceof ZD)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[xy])n=!0,i=e[xy]();else if(e&&e[Ty])n=!1,i=e[Ty]();else throw new QD("iterable",["Iterable"],e);let s=new t({objectMode:!0,highWaterMark:1,...r}),o=!1;s._read=function(){o||(o=!0,l())},s._destroy=function(u,f){KD(a(u),()=>vy.nextTick(f,u),c=>vy.nextTick(f,c||u))};async function a(u){let f=u!=null,c=typeof i.throw=="function";if(f&&c){let{value:h,done:d}=await i.throw(u);if(await h,d)return}if(typeof i.return=="function"){let{value:h}=await i.return();await h}}async function l(){for(;;){try{let{value:u,done:f}=n?await i.next():i.next();if(f)s.push(null);else{let c=u&&typeof u.then=="function"?await u:u;if(c===null)throw o=!1,new XD;if(s.push(c))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}Ry.exports=JD});var Yi=g((N4,Gy)=>{"use strict";var Ve=Nt(),{ArrayPrototypeIndexOf:eP,NumberIsInteger:tP,NumberIsNaN:rP,NumberParseInt:iP,ObjectDefineProperties:fu,ObjectKeys:nP,ObjectSetPrototypeOf:Iy,Promise:Dy,SafeSet:sP,SymbolAsyncDispose:oP,SymbolAsyncIterator:aP,Symbol:lP}=ie();Gy.exports=k;k.ReadableState=Us;var{EventEmitter:uP}=P("events"),{Stream:kt,prependListener:fP}=Cs(),{Buffer:iu}=P("buffer"),{addAbortSignal:cP}=Gi(),Py=yt(),B=Oe().debuglog("stream",t=>{B=t}),hP=hy(),Gr=sr(),{getHighWaterMark:dP,getDefaultHighWaterMark:pP}=$i(),{aggregateTwoErrors:Ay,codes:{ERR_INVALID_ARG_TYPE:gP,ERR_METHOD_NOT_IMPLEMENTED:_P,ERR_OUT_OF_RANGE:yP,ERR_STREAM_PUSH_AFTER_EOF:mP,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:bP},AbortError:wP}=xe(),{validateObject:SP}=Br(),ar=lP("kPaused"),{StringDecoder:Ly}=Ey(),EP=ru();Iy(k.prototype,kt.prototype);Iy(k,kt);var nu=()=>{},{errorOrDestroy:Wr}=Gr,zr=1,vP=2,Ny=4,Vi=8,Cy=16,qs=32,js=64,ky=128,xP=256,TP=512,RP=1024,lu=2048,uu=4096,AP=8192,OP=16384,IP=32768,My=65536,DP=1<<17,PP=1<<18;function ce(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}fu(Us.prototype,{objectMode:ce(zr),ended:ce(vP),endEmitted:ce(Ny),reading:ce(Vi),constructed:ce(Cy),sync:ce(qs),needReadable:ce(js),emittedReadable:ce(ky),readableListening:ce(xP),resumeScheduled:ce(TP),errorEmitted:ce(RP),emitClose:ce(lu),autoDestroy:ce(uu),destroyed:ce(AP),closed:ce(OP),closeEmitted:ce(IP),multiAwaitDrain:ce(My),readingMore:ce(DP),dataEmitted:ce(PP)});function Us(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.state=lu|uu|Cy|qs,t&&t.objectMode&&(this.state|=zr),r&&t&&t.readableObjectMode&&(this.state|=zr),this.highWaterMark=t?dP(this,t,"readableHighWaterMark",r):pP(!1),this.buffer=new hP,this.length=0,this.pipes=[],this.flowing=null,this[ar]=null,t&&t.emitClose===!1&&(this.state&=~lu),t&&t.autoDestroy===!1&&(this.state&=~uu),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Ly(t.encoding),this.encoding=t.encoding)}function k(t){if(!(this instanceof k))return new k(t);let e=this instanceof st();this._readableState=new Us(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&cP(t.signal,this)),kt.call(this,t),Gr.construct(this,()=>{this._readableState.needReadable&&Bs(this,this._readableState)})}k.prototype.destroy=Gr.destroy;k.prototype._undestroy=Gr.undestroy;k.prototype._destroy=function(t,e){e(t)};k.prototype[uP.captureRejectionSymbol]=function(t){this.destroy(t)};k.prototype[oP]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new wP,this.destroy(t)),new Dy((e,r)=>Py(this,i=>i&&i!==t?r(i):e(null)))};k.prototype.push=function(t,e){return Fy(this,t,e,!1)};k.prototype.unshift=function(t,e){return Fy(this,t,e,!0)};function Fy(t,e,r,i){B("readableAddChunk",e);let n=t._readableState,s;if((n.state&zr)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=iu.from(e,r).toString(n.encoding):(e=iu.from(e,r),r=""))):e instanceof iu?r="":kt._isUint8Array(e)?(e=kt._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new gP("chunk",["string","Buffer","Uint8Array"],e))),s)Wr(t,s);else if(e===null)n.state&=~Vi,CP(t,n);else if((n.state&zr)!==0||e&&e.length>0)if(i)if((n.state&Ny)!==0)Wr(t,new bP);else{if(n.destroyed||n.errored)return!1;su(t,n,e,!0)}else if(n.ended)Wr(t,new mP);else{if(n.destroyed||n.errored)return!1;n.state&=~Vi,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?su(t,n,e,!1):Bs(t,n)):su(t,n,e,!1)}else i||(n.state&=~Vi,Bs(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function su(t,e,r,i){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&My)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),(e.state&js)!==0&&Ws(t)),Bs(t,e)}k.prototype.isPaused=function(){let t=this._readableState;return t[ar]===!0||t.flowing===!1};k.prototype.setEncoding=function(t){let e=new Ly(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,i="";for(let n of r)i+=e.write(n);return r.clear(),i!==""&&r.push(i),this._readableState.length=i.length,this};var LP=1073741824;function NP(t){if(t>LP)throw new yP("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function Oy(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&zr)!==0?1:rP(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}k.prototype.read=function(t){B("read",t),t===void 0?t=NaN:tP(t)||(t=iP(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=NP(t)),t!==0&&(e.state&=~ky),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return B("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?ou(this):Ws(this),null;if(t=Oy(t,e),t===0&&e.ended)return e.length===0&&ou(this),null;let i=(e.state&js)!==0;if(B("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,B("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,B("reading, ended or constructing",i);else if(i){B("do read"),e.state|=Vi|qs,e.length===0&&(e.state|=js);try{this._read(e.highWaterMark)}catch(s){Wr(this,s)}e.state&=~qs,e.reading||(t=Oy(r,e))}let n;return t>0?n=Wy(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&ou(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function CP(t,e){if(B("onEofChunk"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Ws(t):(e.needReadable=!1,e.emittedReadable=!0,qy(t))}}function Ws(t){let e=t._readableState;B("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(B("emitReadable",e.flowing),e.emittedReadable=!0,Ve.nextTick(qy,t))}function qy(t){let e=t._readableState;B("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,By(t)}function Bs(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Ve.nextTick(kP,t,e))}function kP(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(B("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}k.prototype._read=function(t){throw new _P("_read()")};k.prototype.pipe=function(t,e){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new sP(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),B("pipe count=%d opts=%j",i.pipes.length,e);let s=(!e||e.end!==!1)&&t!==Ve.stdout&&t!==Ve.stderr?a:S;i.endEmitted?Ve.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(y,b){B("onunpipe"),y===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function a(){B("onend"),t.end()}let l,u=!1;function f(){B("cleanup"),t.removeListener("close",m),t.removeListener("finish",p),l&&t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",S),r.removeListener("data",h),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function c(){u||(i.pipes.length===1&&i.pipes[0]===t?(B("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(B("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=MP(r,t),t.on("drain",l))}r.on("data",h);function h(y){B("ondata");let b=t.write(y);B("dest.write",b),b===!1&&c()}function d(y){if(B("onerror",y),S(),t.removeListener("error",d),t.listenerCount("error")===0){let b=t._writableState||t._readableState;b&&!b.errorEmitted?Wr(t,y):t.emit("error",y)}}fP(t,"error",d);function m(){t.removeListener("finish",p),S()}t.once("close",m);function p(){B("onfinish"),t.removeListener("close",m),S()}t.once("finish",p);function S(){B("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?c():i.flowing||(B("pipe resume"),r.resume()),t};function MP(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(B("pipeOnDrain",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(B("pipeOnDrain",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}k.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let n=e.pipes;e.pipes=[],this.pause();for(let s=0;s<n.length;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}let i=eP(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};k.prototype.on=function(t,e){let r=kt.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,B("on readable",i.length,i.reading),i.length?Ws(this):i.reading||Ve.nextTick(FP,this)),r};k.prototype.addListener=k.prototype.on;k.prototype.removeListener=function(t,e){let r=kt.prototype.removeListener.call(this,t,e);return t==="readable"&&Ve.nextTick(jy,this),r};k.prototype.off=k.prototype.removeListener;k.prototype.removeAllListeners=function(t){let e=kt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Ve.nextTick(jy,this),e};function jy(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[ar]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function FP(t){B("readable nexttick read 0"),t.read(0)}k.prototype.resume=function(){let t=this._readableState;return t.flowing||(B("resume"),t.flowing=!t.readableListening,qP(this,t)),t[ar]=!1,this};function qP(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ve.nextTick(jP,t,e))}function jP(t,e){B("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),By(t),e.flowing&&!e.reading&&t.read(0)}k.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[ar]=!0,this};function By(t){let e=t._readableState;for(B("flow",e.flowing);e.flowing&&t.read()!==null;);}k.prototype.wrap=function(t){let e=!1;t.on("data",i=>{!this.push(i)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",i=>{Wr(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=nP(t);for(let i=1;i<r.length;i++){let n=r[i];this[n]===void 0&&typeof t[n]=="function"&&(this[n]=t[n].bind(t))}return this};k.prototype[aP]=function(){return Uy(this)};k.prototype.iterator=function(t){return t!==void 0&&SP(t,"options"),Uy(this,t)};function Uy(t,e){typeof t.read!="function"&&(t=k.wrap(t,{objectMode:!0}));let r=BP(t,e);return r.stream=t,r}async function*BP(t,e){let r=nu;function i(o){this===t?(r(),r=nu):r=o}t.on("readable",i);let n,s=Py(t,{writable:!1},o=>{n=o?Ay(n,o):null,r(),r=nu});try{for(;;){let o=t.destroyed?null:t.read();if(o!==null)yield o;else{if(n)throw n;if(n===null)return;await new Dy(i)}}}catch(o){throw n=Ay(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Gr.destroyer(t,null):(t.off("readable",i),s())}}fu(k.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});fu(Us.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[ar]!==!1},set(t){this[ar]=!!t}}});k._fromList=Wy;function Wy(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function ou(t){let e=t._readableState;B("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Ve.nextTick(UP,e,t))}function UP(t,e){if(B("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Ve.nextTick(WP,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function WP(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}k.from=function(t,e){return EP(k,t,e)};var au;function zy(){return au===void 0&&(au={}),au}k.fromWeb=function(t,e){return zy().newStreamReadableFromReadableStream(t,e)};k.toWeb=function(t,e){return zy().newReadableStreamFromStreamReadable(t,e)};k.wrap=function(t,e){var r,i;return new k({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){Gr.destroyer(t,n),s(n)}}).wrap(t)}});var Vs=g((C4,rm)=>{"use strict";var lr=Nt(),{ArrayPrototypeSlice:Vy,Error:zP,FunctionPrototypeSymbolHasInstance:Yy,ObjectDefineProperty:Ky,ObjectDefineProperties:GP,ObjectSetPrototypeOf:Zy,StringPrototypeToLowerCase:$P,Symbol:HP,SymbolHasInstance:VP}=ie();rm.exports=se;se.WritableState=Qi;var{EventEmitter:YP}=P("events"),Ki=Cs().Stream,{Buffer:zs}=P("buffer"),Hs=sr(),{addAbortSignal:KP}=Gi(),{getHighWaterMark:ZP,getDefaultHighWaterMark:QP}=$i(),{ERR_INVALID_ARG_TYPE:XP,ERR_METHOD_NOT_IMPLEMENTED:JP,ERR_MULTIPLE_CALLBACK:Qy,ERR_STREAM_CANNOT_PIPE:eL,ERR_STREAM_DESTROYED:Zi,ERR_STREAM_ALREADY_FINISHED:tL,ERR_STREAM_NULL_VALUES:rL,ERR_STREAM_WRITE_AFTER_END:iL,ERR_UNKNOWN_ENCODING:Xy}=xe().codes,{errorOrDestroy:$r}=Hs;Zy(se.prototype,Ki.prototype);Zy(se,Ki);function du(){}var Hr=HP("kOnFinished");function Qi(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?ZP(this,t,"writableHighWaterMark",r):QP(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let i=!!(t&&t.decodeStrings===!1);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=sL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,$s(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Hr]=[]}function $s(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Qi.prototype.getBuffer=function(){return Vy(this.buffered,this.bufferedIndex)};Ky(Qi.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function se(t){let e=this instanceof st();if(!e&&!Yy(se,this))return new se(t);this._writableState=new Qi(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&KP(t.signal,this)),Ki.call(this,t),Hs.construct(this,()=>{let r=this._writableState;r.writing||gu(this,r),_u(this,r)})}Ky(se,VP,{__proto__:null,value:function(t){return Yy(this,t)?!0:this!==se?!1:t&&t._writableState instanceof Qi}});se.prototype.pipe=function(){$r(this,new eL)};function Jy(t,e,r,i){let n=t._writableState;if(typeof r=="function")i=r,r=n.defaultEncoding;else{if(!r)r=n.defaultEncoding;else if(r!=="buffer"&&!zs.isEncoding(r))throw new Xy(r);typeof i!="function"&&(i=du)}if(e===null)throw new rL;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=zs.from(e,r),r="buffer");else if(e instanceof zs)r="buffer";else if(Ki._isUint8Array(e))e=Ki._uint8ArrayToBuffer(e),r="buffer";else throw new XP("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new iL:n.destroyed&&(s=new Zi("write")),s?(lr.nextTick(i,s),$r(t,s,!0),s):(n.pendingcb++,nL(t,n,e,r,i))}se.prototype.write=function(t,e,r){return Jy(this,t,e,r)===!0};se.prototype.cork=function(){this._writableState.corked++};se.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||gu(this,t))};se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=$P(e)),!zs.isEncoding(e))throw new Xy(e);return this._writableState.defaultEncoding=e,this};function nL(t,e,r,i,n){let s=e.objectMode?1:r.length;e.length+=s;let o=e.length<e.highWaterMark;return o||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:i,callback:n}),e.allBuffers&&i!=="buffer"&&(e.allBuffers=!1),e.allNoop&&n!==du&&(e.allNoop=!1)):(e.writelen=s,e.writecb=n,e.writing=!0,e.sync=!0,t._write(r,i,e.onwrite),e.sync=!1),o&&!e.errored&&!e.destroyed}function $y(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Zi("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function Hy(t,e,r,i){--e.pendingcb,i(r),pu(e),$r(t,r)}function sL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){$r(t,new Qy);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?lr.nextTick(Hy,t,r,e,n):Hy(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&gu(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},lr.nextTick(oL,r.afterWriteTickInfo)):em(t,r,1,n))}function oL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,em(t,e,r,i)}function em(t,e,r,i){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,i();e.destroyed&&pu(e),_u(t,e)}function pu(t){if(t.writing)return;for(let n=t.bufferedIndex;n<t.buffered.length;++n){var e;let{chunk:s,callback:o}=t.buffered[n],a=t.objectMode?1:s.length;t.length-=a,o((e=t.errored)!==null&&e!==void 0?e:new Zi("write"))}let r=t[Hr].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new Zi("end"))}$s(t)}function gu(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:r,bufferedIndex:i,objectMode:n}=e,s=r.length-i;if(!s)return;let o=i;if(e.bufferProcessing=!0,s>1&&t._writev){e.pendingcb-=s-1;let a=e.allNoop?du:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:Vy(r,o);l.allBuffers=e.allBuffers,$y(t,e,!0,e.length,l,"",a),$s(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;$y(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?$s(e):o>256?(r.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}se.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new JP("_write()")};se.prototype._writev=null;se.prototype.end=function(t,e,r){let i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n;if(t!=null){let s=Jy(this,t,e);s instanceof zP&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,_u(this,i,!0),i.ended=!0):i.finished?n=new tL("end"):i.destroyed&&(n=new Zi("end"))),typeof r=="function"&&(n||i.finished?lr.nextTick(r,n):i[Hr].push(r)),this};function Gs(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function aL(t,e){let r=!1;function i(n){if(r){$r(t,n??Qy());return}if(r=!0,e.pendingcb--,n){let s=e[Hr].splice(0);for(let o=0;o<s.length;o++)s[o](n);$r(t,n,e.sync)}else Gs(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,lr.nextTick(hu,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function lL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,aL(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function _u(t,e,r){Gs(e)&&(lL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,lr.nextTick((i,n)=>{Gs(n)?hu(i,n):n.pendingcb--},t,e)):Gs(e)&&(e.pendingcb++,hu(t,e))))}function hu(t,e){e.pendingcb--,e.finished=!0;let r=e[Hr].splice(0);for(let i=0;i<r.length;i++)r[i]();if(t.emit("finish"),e.autoDestroy){let i=t._readableState;(!i||i.autoDestroy&&(i.endEmitted||i.readable===!1))&&t.destroy()}}GP(se.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var uL=Hs.destroy;se.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[Hr].length)&&lr.nextTick(pu,r),uL.call(this,t,e),this};se.prototype._undestroy=Hs.undestroy;se.prototype._destroy=function(t,e){e(t)};se.prototype[YP.captureRejectionSymbol]=function(t){this.destroy(t)};var cu;function tm(){return cu===void 0&&(cu={}),cu}se.fromWeb=function(t,e){return tm().newStreamWritableFromWritableStream(t,e)};se.toWeb=function(t){return tm().newWritableStreamFromStreamWritable(t)}});var ym=g((k4,_m)=>{"use strict";var yu=Nt(),fL=P("buffer"),{isReadable:cL,isWritable:hL,isIterable:im,isNodeStream:dL,isReadableNodeStream:nm,isWritableNodeStream:sm,isDuplexNodeStream:pL,isReadableStream:om,isWritableStream:am}=rt(),lm=yt(),{AbortError:pm,codes:{ERR_INVALID_ARG_TYPE:gL,ERR_INVALID_RETURN_VALUE:um}}=xe(),{destroyer:Yr}=sr(),_L=st(),gm=Yi(),yL=Vs(),{createDeferredPromise:fm}=Oe(),cm=ru(),hm=globalThis.Blob||fL.Blob,mL=typeof hm<"u"?function(e){return e instanceof hm}:function(e){return!1},bL=globalThis.AbortController||qr().AbortController,{FunctionPrototypeCall:dm}=ie(),Mt=class extends _L{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};_m.exports=function t(e,r){if(pL(e))return e;if(nm(e))return Vr({readable:e});if(sm(e))return Vr({writable:e});if(dL(e))return Vr({writable:!1,readable:!1});if(om(e))return Vr({readable:gm.fromWeb(e)});if(am(e))return Vr({writable:yL.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=wL(e);if(im(n))return cm(Mt,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=dm(l,n,c=>{if(c!=null)throw new um("nully","body",c)},c=>{Yr(u,c)});return u=new Mt({objectMode:!0,readable:!1,write:s,final(c){o(async()=>{try{await f,yu.nextTick(c,null)}catch(h){yu.nextTick(c,h)}})},destroy:a})}throw new um("Iterable, AsyncIterable or AsyncFunction",r,n)}if(mL(e))return t(e.arrayBuffer());if(im(e))return cm(Mt,e,{objectMode:!0,writable:!1});if(om(e?.readable)&&am(e?.writable))return Mt.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?nm(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?sm(e?.writable)?e?.writable:t(e.writable):void 0;return Vr({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return dm(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{Yr(n,s)}),n=new Mt({objectMode:!0,writable:!1,read(){}})}throw new gL(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function wL(t){let{promise:e,resolve:r}=fm(),i=new bL,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(yu.nextTick(u),l)return;if(n.aborted)throw new pm(void 0,{cause:n.reason});({promise:e,resolve:r}=fm()),yield a}})(),{signal:n}),write(o,a,l){let u=r;r=null,u({chunk:o,done:!1,cb:l})},final(o){let a=r;r=null,a({done:!0,cb:o})},destroy(o,a){i.abort(),a(o)}}}function Vr(t){let e=t.readable&&typeof t.readable.read!="function"?gm.wrap(t.readable):t.readable,r=t.writable,i=!!cL(e),n=!!hL(r),s,o,a,l,u;function f(c){let h=l;l=null,h?h(c):c&&u.destroy(c)}return u=new Mt({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(lm(r,c=>{n=!1,c&&Yr(e,c),f(c)}),u._write=function(c,h,d){r.write(c,h)?d():s=d},u._final=function(c){r.end(),o=c},r.on("drain",function(){if(s){let c=s;s=null,c()}}),r.on("finish",function(){if(o){let c=o;o=null,c()}})),i&&(lm(e,c=>{i=!1,c&&Yr(e,c),f(c)}),e.on("readable",function(){if(a){let c=a;a=null,c()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let c=e.read();if(c===null){a=u._read;return}if(!u.push(c))return}}),u._destroy=function(c,h){!c&&l!==null&&(c=new pm),a=null,s=null,o=null,l===null?h(c):(l=h,Yr(r,c),Yr(e,c))},u}});var st=g((M4,wm)=>{"use strict";var{ObjectDefineProperties:SL,ObjectGetOwnPropertyDescriptor:mt,ObjectKeys:EL,ObjectSetPrototypeOf:mm}=ie();wm.exports=Ye;var wu=Yi(),Be=Vs();mm(Ye.prototype,wu.prototype);mm(Ye,wu);{let t=EL(Be.prototype);for(let e=0;e<t.length;e++){let r=t[e];Ye.prototype[r]||(Ye.prototype[r]=Be.prototype[r])}}function Ye(t){if(!(this instanceof Ye))return new Ye(t);wu.call(this,t),Be.call(this,t),t?(this.allowHalfOpen=t.allowHalfOpen!==!1,t.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}SL(Ye.prototype,{writable:{__proto__:null,...mt(Be.prototype,"writable")},writableHighWaterMark:{__proto__:null,...mt(Be.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...mt(Be.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...mt(Be.prototype,"writableBuffer")},writableLength:{__proto__:null,...mt(Be.prototype,"writableLength")},writableFinished:{__proto__:null,...mt(Be.prototype,"writableFinished")},writableCorked:{__proto__:null,...mt(Be.prototype,"writableCorked")},writableEnded:{__proto__:null,...mt(Be.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...mt(Be.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var mu;function bm(){return mu===void 0&&(mu={}),mu}Ye.fromWeb=function(t,e){return bm().newStreamDuplexFromReadableWritablePair(t,e)};Ye.toWeb=function(t){return bm().newReadableWritablePairFromDuplex(t)};var bu;Ye.from=function(t){return bu||(bu=ym()),bu(t,"body")}});var vu=g((F4,Em)=>{"use strict";var{ObjectSetPrototypeOf:Sm,Symbol:vL}=ie();Em.exports=bt;var{ERR_METHOD_NOT_IMPLEMENTED:xL}=xe().codes,Eu=st(),{getHighWaterMark:TL}=$i();Sm(bt.prototype,Eu.prototype);Sm(bt,Eu);var Xi=vL("kCallback");function bt(t){if(!(this instanceof bt))return new bt(t);let e=t?TL(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),Eu.call(this,t),this._readableState.sync=!1,this[Xi]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",RL)}function Su(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function RL(){this._final!==Su&&Su.call(this)}bt.prototype._final=Su;bt.prototype._transform=function(t,e,r){throw new xL("_transform()")};bt.prototype._write=function(t,e,r){let i=this._readableState,n=this._writableState,s=i.length;this._transform(t,e,(o,a)=>{if(o){r(o);return}a!=null&&this.push(a),n.ended||s===i.length||i.length<i.highWaterMark?r():this[Xi]=r})};bt.prototype._read=function(){if(this[Xi]){let t=this[Xi];this[Xi]=null,t()}}});var Tu=g((q4,xm)=>{"use strict";var{ObjectSetPrototypeOf:vm}=ie();xm.exports=Kr;var xu=vu();vm(Kr.prototype,xu.prototype);vm(Kr,xu);function Kr(t){if(!(this instanceof Kr))return new Kr(t);xu.call(this,t)}Kr.prototype._transform=function(t,e,r){r(null,t)}});var Qs=g((j4,Im)=>{"use strict";var Ji=Nt(),{ArrayIsArray:AL,Promise:OL,SymbolAsyncIterator:IL,SymbolDispose:DL}=ie(),Zs=yt(),{once:PL}=Oe(),LL=sr(),Tm=st(),{aggregateTwoErrors:NL,codes:{ERR_INVALID_ARG_TYPE:Cu,ERR_INVALID_RETURN_VALUE:Ru,ERR_MISSING_ARGS:CL,ERR_STREAM_DESTROYED:kL,ERR_STREAM_PREMATURE_CLOSE:ML},AbortError:FL}=xe(),{validateFunction:qL,validateAbortSignal:jL}=Br(),{isIterable:ur,isReadable:Au,isReadableNodeStream:Ks,isNodeStream:Rm,isTransformStream:Zr,isWebStream:BL,isReadableStream:Ou,isReadableFinished:UL}=rt(),WL=globalThis.AbortController||qr().AbortController,Iu,Du,Pu;function Am(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Zs(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,LL.destroyer(t,s||new kL("pipe")))},cleanup:n}}function zL(t){return qL(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Lu(t){if(ur(t))return t;if(Ks(t))return GL(t);throw new Cu("val",["Readable","Iterable","AsyncIterable"],t)}async function*GL(t){Du||(Du=Yi()),yield*Du.prototype[IL].call(t)}async function Ys(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new OL((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Zs(e,{readable:!1},o);try{e.writableNeedDrain&&await a();for await(let u of t)e.write(u)||await a();i&&(e.end(),await a()),r()}catch(u){r(n!==u?NL(n,u):u)}finally{l(),e.off("drain",o)}}async function Nu(t,e,r,{end:i}){Zr(e)&&(e=e.writable);let n=e.getWriter();try{for await(let s of t)await n.ready,n.write(s).catch(()=>{});await n.ready,i&&await n.close(),r()}catch(s){try{await n.abort(s),r(s)}catch(o){r(o)}}}function $L(...t){return Om(t,PL(zL(t)))}function Om(t,e,r){if(t.length===1&&AL(t[0])&&(t=t[0]),t.length<2)throw new CL("streams");let i=new WL,n=i.signal,s=r?.signal,o=[];jL(s,"options.signal");function a(){m(new FL)}Pu=Pu||Oe().addAbortListener;let l;s&&(l=Pu(s,a));let u,f,c=[],h=0;function d(v){m(v,--h===0)}function m(v,E){var T;if(v&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=v),!(!u&&!E)){for(;c.length;)c.shift()(u);(T=l)===null||T===void 0||T[DL](),i.abort(),E&&(u||o.forEach(D=>D()),Ji.nextTick(e,u,f))}}let p;for(let v=0;v<t.length;v++){let E=t[v],T=v<t.length-1,D=v>0,x=T||r?.end!==!1,O=v===t.length-1;if(Rm(E)){let w=function(R){R&&R.name!=="AbortError"&&R.code!=="ERR_STREAM_PREMATURE_CLOSE"&&d(R)};var b=w;if(x){let{destroy:R,cleanup:A}=Am(E,T,D);c.push(R),Au(E)&&O&&o.push(A)}E.on("error",w),Au(E)&&O&&o.push(()=>{E.removeListener("error",w)})}if(v===0)if(typeof E=="function"){if(p=E({signal:n}),!ur(p))throw new Ru("Iterable, AsyncIterable or Stream","source",p)}else ur(E)||Ks(E)||Zr(E)?p=E:p=Tm.from(E);else if(typeof E=="function"){if(Zr(p)){var S;p=Lu((S=p)===null||S===void 0?void 0:S.readable)}else p=Lu(p);if(p=E(p,{signal:n}),T){if(!ur(p,!0))throw new Ru("AsyncIterable",`transform[${v-1}]`,p)}else{var y;Iu||(Iu=Tu());let w=new Iu({objectMode:!0}),R=(y=p)===null||y===void 0?void 0:y.then;if(typeof R=="function")h++,R.call(p,z=>{f=z,z!=null&&w.write(z),x&&w.end(),Ji.nextTick(d)},z=>{w.destroy(z),Ji.nextTick(d,z)});else if(ur(p,!0))h++,Ys(p,w,d,{end:x});else if(Ou(p)||Zr(p)){let z=p.readable||p;h++,Ys(z,w,d,{end:x})}else throw new Ru("AsyncIterable or Promise","destination",p);p=w;let{destroy:A,cleanup:N}=Am(p,!1,!0);c.push(A),O&&o.push(N)}}else if(Rm(E)){if(Ks(p)){h+=2;let w=HL(p,E,d,{end:x});Au(E)&&O&&o.push(w)}else if(Zr(p)||Ou(p)){let w=p.readable||p;h++,Ys(w,E,d,{end:x})}else if(ur(p))h++,Ys(p,E,d,{end:x});else throw new Cu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=E}else if(BL(E)){if(Ks(p))h++,Nu(Lu(p),E,d,{end:x});else if(Ou(p)||ur(p))h++,Nu(p,E,d,{end:x});else if(Zr(p))h++,Nu(p.readable,E,d,{end:x});else throw new Cu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=E}else p=Tm.from(E)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&Ji.nextTick(a),p}function HL(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new ML)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;UL(t)?Ji.nextTick(o):t.once("end",o)}else r();return Zs(t,{readable:!0,writable:!1},o=>{let a=t._readableState;o&&o.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted?t.once("end",r).once("error",r):r(o)}),Zs(e,{readable:!1,writable:!0},r)}Im.exports={pipelineImpl:Om,pipeline:$L}});var Mu=g((B4,km)=>{"use strict";var{pipeline:VL}=Qs(),Xs=st(),{destroyer:YL}=sr(),{isNodeStream:Js,isReadable:Dm,isWritable:Pm,isWebStream:ku,isTransformStream:fr,isWritableStream:Lm,isReadableStream:Nm}=rt(),{AbortError:KL,codes:{ERR_INVALID_ARG_VALUE:Cm,ERR_MISSING_ARGS:ZL}}=xe(),QL=yt();km.exports=function(...e){if(e.length===0)throw new ZL("streams");if(e.length===1)return Xs.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=Xs.from(e[0])),typeof e[e.length-1]=="function"){let d=e.length-1;e[d]=Xs.from(e[d])}for(let d=0;d<e.length;++d)if(!(!Js(e[d])&&!ku(e[d]))){if(d<e.length-1&&!(Dm(e[d])||Nm(e[d])||fr(e[d])))throw new Cm(`streams[${d}]`,r[d],"must be readable");if(d>0&&!(Pm(e[d])||Lm(e[d])||fr(e[d])))throw new Cm(`streams[${d}]`,r[d],"must be writable")}let i,n,s,o,a;function l(d){let m=o;o=null,m?m(d):d?a.destroy(d):!h&&!c&&a.destroy()}let u=e[0],f=VL(e,l),c=!!(Pm(u)||Lm(u)||fr(u)),h=!!(Dm(f)||Nm(f)||fr(f));if(a=new Xs({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:c,readable:h}),c){if(Js(u))a._write=function(m,p,S){u.write(m,p)?S():i=S},a._final=function(m){u.end(),n=m},u.on("drain",function(){if(i){let m=i;i=null,m()}});else if(ku(u)){let p=(fr(u)?u.writable:u).getWriter();a._write=async function(S,y,b){try{await p.ready,p.write(S).catch(()=>{}),b()}catch(v){b(v)}},a._final=async function(S){try{await p.ready,p.close().catch(()=>{}),n=S}catch(y){S(y)}}}let d=fr(f)?f.readable:f;QL(d,()=>{if(n){let m=n;n=null,m()}})}if(h){if(Js(f))f.on("readable",function(){if(s){let d=s;s=null,d()}}),f.on("end",function(){a.push(null)}),a._read=function(){for(;;){let d=f.read();if(d===null){s=a._read;return}if(!a.push(d))return}};else if(ku(f)){let m=(fr(f)?f.readable:f).getReader();a._read=async function(){for(;;)try{let{value:p,done:S}=await m.read();if(!a.push(p))return;if(S){a.push(null);return}}catch{return}}}}return a._destroy=function(d,m){!d&&o!==null&&(d=new KL),s=null,i=null,n=null,o===null?m(d):(o=m,Js(f)&&YL(f,d))},a}});var $m=g((U4,ju)=>{"use strict";var XL=globalThis.AbortController||qr().AbortController,{codes:{ERR_INVALID_ARG_VALUE:JL,ERR_INVALID_ARG_TYPE:en,ERR_MISSING_ARGS:eN,ERR_OUT_OF_RANGE:tN},AbortError:ot}=xe(),{validateAbortSignal:cr,validateInteger:Mm,validateObject:hr}=Br(),rN=ie().Symbol("kWeak"),iN=ie().Symbol("kResistStopPropagation"),{finished:nN}=yt(),sN=Mu(),{addAbortSignalNoValidate:oN}=Gi(),{isWritable:aN,isNodeStream:lN}=rt(),{deprecate:uN}=Oe(),{ArrayPrototypePush:fN,Boolean:cN,MathFloor:Fm,Number:hN,NumberIsNaN:dN,Promise:qm,PromiseReject:jm,PromiseResolve:pN,PromisePrototypeThen:Bm,Symbol:Wm}=ie(),eo=Wm("kEmpty"),Um=Wm("kEof");function gN(t,e){if(e!=null&&hr(e,"options"),e?.signal!=null&&cr(e.signal,"options.signal"),lN(t)&&!aN(t))throw new JL("stream",t,"must be writable");let r=sN(this,t);return e!=null&&e.signal&&oN(e.signal,r),r}function to(t,e){if(typeof t!="function")throw new en("fn",["Function","AsyncFunction"],t);e!=null&&hr(e,"options"),e?.signal!=null&&cr(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=Fm(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=Fm(e.highWaterMark)),Mm(r,"options.concurrency",1),Mm(i,"options.highWaterMark",0),i+=r,async function*(){let s=Oe().AbortSignalAny([e?.signal].filter(cN)),o=this,a=[],l={signal:s},u,f,c=!1,h=0;function d(){c=!0,m()}function m(){h-=1,p()}function p(){f&&!c&&h<r&&a.length<i&&(f(),f=null)}async function S(){try{for await(let y of o){if(c)return;if(s.aborted)throw new ot;try{if(y=t(y,l),y===eo)continue;y=pN(y)}catch(b){y=jm(b)}h+=1,Bm(y,m,d),a.push(y),u&&(u(),u=null),!c&&(a.length>=i||h>=r)&&await new qm(b=>{f=b})}a.push(Um)}catch(y){let b=jm(y);Bm(b,m,d),a.push(b)}finally{c=!0,u&&(u(),u=null)}}S();try{for(;;){for(;a.length>0;){let y=await a[0];if(y===Um)return;if(s.aborted)throw new ot;y!==eo&&(yield y),a.shift(),p()}await new qm(y=>{u=y})}}finally{c=!0,f&&(f(),f=null)}}.call(this)}function _N(t=void 0){return t!=null&&hr(t,"options"),t?.signal!=null&&cr(t.signal,"options.signal"),async function*(){let r=0;for await(let n of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ot({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function zm(t,e=void 0){for await(let r of qu.call(this,t,e))return!0;return!1}async function yN(t,e=void 0){if(typeof t!="function")throw new en("fn",["Function","AsyncFunction"],t);return!await zm.call(this,async(...r)=>!await t(...r),e)}async function mN(t,e){for await(let r of qu.call(this,t,e))return r}async function bN(t,e){if(typeof t!="function")throw new en("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),eo}for await(let i of to.call(this,r,e));}function qu(t,e){if(typeof t!="function")throw new en("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:eo}return to.call(this,r,e)}var Fu=class extends eN{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function wN(t,e,r){var i;if(typeof t!="function")throw new en("reducer",["Function","AsyncFunction"],t);r!=null&&hr(r,"options"),r?.signal!=null&&cr(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let u=new ot(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await nN(this.destroy(u)),u}let s=new XL,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[rN]:this,[iN]:!0};r.signal.addEventListener("abort",()=>s.abort(),u)}let a=!1;try{for await(let u of this){var l;if(a=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ot;n?e=await t(e,u,{signal:o}):(e=u,n=!0)}if(!a&&!n)throw new Fu}finally{s.abort()}return e}async function SN(t){t!=null&&hr(t,"options"),t?.signal!=null&&cr(t.signal,"options.signal");let e=[];for await(let i of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new ot(void 0,{cause:t.signal.reason});fN(e,i)}return e}function EN(t,e){let r=to.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function Gm(t){if(t=hN(t),dN(t))return 0;if(t<0)throw new tN("number",">= 0",t);return t}function vN(t,e=void 0){return e!=null&&hr(e,"options"),e?.signal!=null&&cr(e.signal,"options.signal"),t=Gm(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;t--<=0&&(yield s)}}.call(this)}function xN(t,e=void 0){return e!=null&&hr(e,"options"),e?.signal!=null&&cr(e.signal,"options.signal"),t=Gm(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;if(t-- >0&&(yield s),t<=0)return}}.call(this)}ju.exports.streamReturningOperators={asIndexedPairs:uN(_N,"readable.asIndexedPairs will be removed in a future version."),drop:vN,filter:qu,flatMap:EN,map:to,take:xN,compose:gN};ju.exports.promiseReturningOperators={every:yN,forEach:bN,reduce:wN,toArray:SN,some:zm,find:mN}});var Bu=g((W4,Hm)=>{"use strict";var{ArrayPrototypePop:TN,Promise:RN}=ie(),{isIterable:AN,isNodeStream:ON,isWebStream:IN}=rt(),{pipelineImpl:DN}=Qs(),{finished:PN}=yt();Uu();function LN(...t){return new RN((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!ON(s)&&!AN(s)&&!IN(s)){let o=TN(t);i=o.signal,n=o.end}DN(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}Hm.exports={finished:PN,pipeline:LN}});var Uu=g((z4,tb)=>{"use strict";var{Buffer:NN}=P("buffer"),{ObjectDefineProperty:wt,ObjectKeys:Km,ReflectApply:Zm}=ie(),{promisify:{custom:Qm}}=Oe(),{streamReturningOperators:Vm,promiseReturningOperators:Ym}=$m(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Xm}}=xe(),CN=Mu(),{setDefaultHighWaterMark:kN,getDefaultHighWaterMark:MN}=$i(),{pipeline:Jm}=Qs(),{destroyer:FN}=sr(),eb=yt(),Wu=Bu(),tn=rt(),ee=tb.exports=Cs().Stream;ee.isDestroyed=tn.isDestroyed;ee.isDisturbed=tn.isDisturbed;ee.isErrored=tn.isErrored;ee.isReadable=tn.isReadable;ee.isWritable=tn.isWritable;ee.Readable=Yi();for(let t of Km(Vm)){let r=function(...i){if(new.target)throw Xm();return ee.Readable.from(Zm(e,this,i))},e=Vm[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of Km(Ym)){let r=function(...i){if(new.target)throw Xm();return Zm(e,this,i)},e=Ym[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}ee.Writable=Vs();ee.Duplex=st();ee.Transform=vu();ee.PassThrough=Tu();ee.pipeline=Jm;var{addAbortSignal:qN}=Gi();ee.addAbortSignal=qN;ee.finished=eb;ee.destroy=FN;ee.compose=CN;ee.setDefaultHighWaterMark=kN;ee.getDefaultHighWaterMark=MN;wt(ee,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return Wu}});wt(Jm,Qm,{__proto__:null,enumerable:!0,get(){return Wu.pipeline}});wt(eb,Qm,{__proto__:null,enumerable:!0,get(){return Wu.finished}});ee.Stream=ee;ee._isUint8Array=function(e){return e instanceof Uint8Array};ee._uint8ArrayToBuffer=function(e){return NN.from(e.buffer,e.byteOffset,e.byteLength)}});var dr=g((G4,j)=>{"use strict";var he=P("stream");if(he&&process.env.READABLE_STREAM==="disable"){let t=he.promises;j.exports._uint8ArrayToBuffer=he._uint8ArrayToBuffer,j.exports._isUint8Array=he._isUint8Array,j.exports.isDisturbed=he.isDisturbed,j.exports.isErrored=he.isErrored,j.exports.isReadable=he.isReadable,j.exports.Readable=he.Readable,j.exports.Writable=he.Writable,j.exports.Duplex=he.Duplex,j.exports.Transform=he.Transform,j.exports.PassThrough=he.PassThrough,j.exports.addAbortSignal=he.addAbortSignal,j.exports.finished=he.finished,j.exports.destroy=he.destroy,j.exports.pipeline=he.pipeline,j.exports.compose=he.compose,Object.defineProperty(he,"promises",{configurable:!0,enumerable:!0,get(){return t}}),j.exports.Stream=he.Stream}else{let t=Uu(),e=Bu(),r=t.Readable.destroy;j.exports=t.Readable,j.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,j.exports._isUint8Array=t._isUint8Array,j.exports.isDisturbed=t.isDisturbed,j.exports.isErrored=t.isErrored,j.exports.isReadable=t.isReadable,j.exports.Readable=t.Readable,j.exports.Writable=t.Writable,j.exports.Duplex=t.Duplex,j.exports.Transform=t.Transform,j.exports.PassThrough=t.PassThrough,j.exports.addAbortSignal=t.addAbortSignal,j.exports.finished=t.finished,j.exports.destroy=t.destroy,j.exports.destroy=r,j.exports.pipeline=t.pipeline,j.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),j.exports.Stream=t.Stream}j.exports.default=j.exports});var ib=g(($4,rb)=>{"use strict";function jN(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}rb.exports=jN});var ab=g((H4,ob)=>{"use strict";var nb=bs(),BN=xl(),UN=Tl(),sb=nb?nb.isConcatSpreadable:void 0;function WN(t){return UN(t)||BN(t)||!!(sb&&t&&t[sb])}ob.exports=WN});var ro=g((V4,ub)=>{"use strict";var zN=ib(),GN=ab();function lb(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=GN),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?lb(a,e-1,r,i,n):zN(n,a):i||(n[n.length]=a)}return n}ub.exports=lb});var cb=g((Y4,fb)=>{"use strict";var $N=ro();function HN(t){var e=t==null?0:t.length;return e?$N(t,1):[]}fb.exports=HN});var rn=g((K4,hb)=>{"use strict";var VN=ki(),YN=VN(Object,"create");hb.exports=YN});var gb=g((Z4,pb)=>{"use strict";var db=rn();function KN(){this.__data__=db?db(null):{},this.size=0}pb.exports=KN});var yb=g((Q4,_b)=>{"use strict";function ZN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}_b.exports=ZN});var bb=g((X4,mb)=>{"use strict";var QN=rn(),XN="__lodash_hash_undefined__",JN=Object.prototype,eC=JN.hasOwnProperty;function tC(t){var e=this.__data__;if(QN){var r=e[t];return r===XN?void 0:r}return eC.call(e,t)?e[t]:void 0}mb.exports=tC});var Sb=g((J4,wb)=>{"use strict";var rC=rn(),iC=Object.prototype,nC=iC.hasOwnProperty;function sC(t){var e=this.__data__;return rC?e[t]!==void 0:nC.call(e,t)}wb.exports=sC});var vb=g((e6,Eb)=>{"use strict";var oC=rn(),aC="__lodash_hash_undefined__";function lC(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=oC&&e===void 0?aC:e,this}Eb.exports=lC});var Tb=g((t6,xb)=>{"use strict";var uC=gb(),fC=yb(),cC=bb(),hC=Sb(),dC=vb();function Qr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Qr.prototype.clear=uC;Qr.prototype.delete=fC;Qr.prototype.get=cC;Qr.prototype.has=hC;Qr.prototype.set=dC;xb.exports=Qr});var Ab=g((r6,Rb)=>{"use strict";function pC(){this.__data__=[],this.size=0}Rb.exports=pC});var nn=g((i6,Ob)=>{"use strict";var gC=Ss();function _C(t,e){for(var r=t.length;r--;)if(gC(t[r][0],e))return r;return-1}Ob.exports=_C});var Db=g((n6,Ib)=>{"use strict";var yC=nn(),mC=Array.prototype,bC=mC.splice;function wC(t){var e=this.__data__,r=yC(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():bC.call(e,r,1),--this.size,!0}Ib.exports=wC});var Lb=g((s6,Pb)=>{"use strict";var SC=nn();function EC(t){var e=this.__data__,r=SC(e,t);return r<0?void 0:e[r][1]}Pb.exports=EC});var Cb=g((o6,Nb)=>{"use strict";var vC=nn();function xC(t){return vC(this.__data__,t)>-1}Nb.exports=xC});var Mb=g((a6,kb)=>{"use strict";var TC=nn();function RC(t,e){var r=this.__data__,i=TC(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}kb.exports=RC});var qb=g((l6,Fb)=>{"use strict";var AC=Ab(),OC=Db(),IC=Lb(),DC=Cb(),PC=Mb();function Xr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Xr.prototype.clear=AC;Xr.prototype.delete=OC;Xr.prototype.get=IC;Xr.prototype.has=DC;Xr.prototype.set=PC;Fb.exports=Xr});var Bb=g((u6,jb)=>{"use strict";var LC=ki(),NC=Nr(),CC=LC(NC,"Map");jb.exports=CC});var zb=g((f6,Wb)=>{"use strict";var Ub=Tb(),kC=qb(),MC=Bb();function FC(){this.size=0,this.__data__={hash:new Ub,map:new(MC||kC),string:new Ub}}Wb.exports=FC});var $b=g((c6,Gb)=>{"use strict";function qC(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}Gb.exports=qC});var sn=g((h6,Hb)=>{"use strict";var jC=$b();function BC(t,e){var r=t.__data__;return jC(e)?r[typeof e=="string"?"string":"hash"]:r.map}Hb.exports=BC});var Yb=g((d6,Vb)=>{"use strict";var UC=sn();function WC(t){var e=UC(this,t).delete(t);return this.size-=e?1:0,e}Vb.exports=WC});var Zb=g((p6,Kb)=>{"use strict";var zC=sn();function GC(t){return zC(this,t).get(t)}Kb.exports=GC});var Xb=g((g6,Qb)=>{"use strict";var $C=sn();function HC(t){return $C(this,t).has(t)}Qb.exports=HC});var ew=g((_6,Jb)=>{"use strict";var VC=sn();function YC(t,e){var r=VC(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}Jb.exports=YC});var rw=g((y6,tw)=>{"use strict";var KC=zb(),ZC=Yb(),QC=Zb(),XC=Xb(),JC=ew();function Jr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Jr.prototype.clear=KC;Jr.prototype.delete=ZC;Jr.prototype.get=QC;Jr.prototype.has=XC;Jr.prototype.set=JC;tw.exports=Jr});var nw=g((m6,iw)=>{"use strict";var ek="__lodash_hash_undefined__";function tk(t){return this.__data__.set(t,ek),this}iw.exports=tk});var ow=g((b6,sw)=>{"use strict";function rk(t){return this.__data__.has(t)}sw.exports=rk});var zu=g((w6,aw)=>{"use strict";var ik=rw(),nk=nw(),sk=ow();function io(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new ik;++e<r;)this.add(t[e])}io.prototype.add=io.prototype.push=nk;io.prototype.has=sk;aw.exports=io});var uw=g((S6,lw)=>{"use strict";function ok(t,e,r,i){for(var n=t.length,s=r+(i?1:-1);i?s--:++s<n;)if(e(t[s],s,t))return s;return-1}lw.exports=ok});var cw=g((E6,fw)=>{"use strict";function ak(t){return t!==t}fw.exports=ak});var dw=g((v6,hw)=>{"use strict";function lk(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}hw.exports=lk});var gw=g((x6,pw)=>{"use strict";var uk=uw(),fk=cw(),ck=dw();function hk(t,e,r){return e===e?ck(t,e,r):uk(t,fk,r)}pw.exports=hk});var Gu=g((T6,_w)=>{"use strict";var dk=gw();function pk(t,e){var r=t==null?0:t.length;return!!r&&dk(t,e,0)>-1}_w.exports=pk});var $u=g((R6,yw)=>{"use strict";function gk(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}yw.exports=gk});var bw=g((A6,mw)=>{"use strict";function _k(t,e){for(var r=-1,i=t==null?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}mw.exports=_k});var Hu=g((O6,ww)=>{"use strict";function yk(t,e){return t.has(e)}ww.exports=yk});var Ew=g((I6,Sw)=>{"use strict";var mk=zu(),bk=Gu(),wk=$u(),Sk=bw(),Ek=Rl(),vk=Hu(),xk=200;function Tk(t,e,r,i){var n=-1,s=bk,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=Sk(e,Ek(r))),i?(s=wk,o=!1):e.length>=xk&&(s=vk,o=!1,e=new mk(e));e:for(;++n<a;){var f=t[n],c=r==null?f:r(f);if(f=i||f!==0?f:0,o&&c===c){for(var h=u;h--;)if(e[h]===c)continue e;l.push(f)}else s(e,c,i)||l.push(f)}return l}Sw.exports=Tk});var Vu=g((D6,vw)=>{"use strict";var Rk=Es(),Ak=Cr();function Ok(t){return Ak(t)&&Rk(t)}vw.exports=Ok});var Rw=g((P6,Tw)=>{"use strict";var Ik=Ew(),Dk=ro(),Pk=ws(),xw=Vu(),Lk=Pk(function(t,e){return xw(t)?Ik(t,Dk(e,1,xw,!0)):[]});Tw.exports=Lk});var Ow=g((L6,Aw)=>{"use strict";var Nk=ki(),Ck=Nr(),kk=Nk(Ck,"Set");Aw.exports=kk});var Dw=g((N6,Iw)=>{"use strict";function Mk(){}Iw.exports=Mk});var Yu=g((C6,Pw)=>{"use strict";function Fk(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}Pw.exports=Fk});var Nw=g((k6,Lw)=>{"use strict";var Ku=Ow(),qk=Dw(),jk=Yu(),Bk=1/0,Uk=Ku&&1/jk(new Ku([,-0]))[1]==Bk?function(t){return new Ku(t)}:qk;Lw.exports=Uk});var kw=g((M6,Cw)=>{"use strict";var Wk=zu(),zk=Gu(),Gk=$u(),$k=Hu(),Hk=Nw(),Vk=Yu(),Yk=200;function Kk(t,e,r){var i=-1,n=zk,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=Gk;else if(s>=Yk){var u=e?null:Hk(t);if(u)return Vk(u);o=!1,n=$k,l=new Wk}else l=e?[]:a;e:for(;++i<s;){var f=t[i],c=e?e(f):f;if(f=r||f!==0?f:0,o&&c===c){for(var h=l.length;h--;)if(l[h]===c)continue e;e&&l.push(c),a.push(f)}else n(l,c,r)||(l!==a&&l.push(c),a.push(f))}return a}Cw.exports=Kk});var Fw=g((F6,Mw)=>{"use strict";var Zk=ro(),Qk=ws(),Xk=kw(),Jk=Vu(),eM=Qk(function(t){return Xk(Zk(t,1,Jk,!0))});Mw.exports=eM});var jw=g((q6,qw)=>{"use strict";function tM(t,e){return function(r){return t(e(r))}}qw.exports=tM});var Uw=g((j6,Bw)=>{"use strict";var rM=jw(),iM=rM(Object.getPrototypeOf,Object);Bw.exports=iM});var Gw=g((B6,zw)=>{"use strict";var nM=Ni(),sM=Uw(),oM=Cr(),aM="[object Object]",lM=Function.prototype,uM=Object.prototype,Ww=lM.toString,fM=uM.hasOwnProperty,cM=Ww.call(Object);function hM(t){if(!oM(t)||nM(t)!=aM)return!1;var e=sM(t);if(e===null)return!0;var r=fM.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Ww.call(r)==cM}zw.exports=hM});var $w=g(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.assertValidPattern=void 0;var dM=1024*64,pM=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>dM)throw new TypeError("pattern is too long")};no.assertValidPattern=pM});var Vw=g(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.parseClass=void 0;var gM={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},on=t=>t.replace(/[[\]\\-]/g,"\\$&"),_M=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Hw=t=>t.join(""),yM=(t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let i=[],n=[],s=r+1,o=!1,a=!1,l=!1,u=!1,f=r,c="";e:for(;s<t.length;){let p=t.charAt(s);if((p==="!"||p==="^")&&s===r+1){u=!0,s++;continue}if(p==="]"&&o&&!l){f=s+1;break}if(o=!0,p==="\\"&&!l){l=!0,s++;continue}if(p==="["&&!l){for(let[S,[y,b,v]]of Object.entries(gM))if(t.startsWith(S,s)){if(c)return["$.",!1,t.length-r,!0];s+=S.length,v?n.push(y):i.push(y),a=a||b;continue e}}if(l=!1,c){p>c?i.push(on(c)+"-"+on(p)):p===c&&i.push(on(p)),c="",s++;continue}if(t.startsWith("-]",s+1)){i.push(on(p+"-")),s+=2;continue}if(t.startsWith("-",s+1)){c=p,s+=2;continue}i.push(on(p)),s++}if(f<s)return["",!1,0,!1];if(!i.length&&!n.length)return["$.",!1,t.length-r,!0];if(n.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!u){let p=i[0].length===2?i[0].slice(-1):i[0];return[_M(p),!1,f-r,!1]}let h="["+(u?"^":"")+Hw(i)+"]",d="["+(u?"":"^")+Hw(n)+"]";return[i.length&&n.length?"("+h+"|"+d+")":i.length?h:d,a,f-r,!0]};so.parseClass=yM});var ao=g(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.unescape=void 0;var mM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");oo.unescape=mM});var Xu=g(co=>{"use strict";var Le;Object.defineProperty(co,"__esModule",{value:!0});co.AST=void 0;var bM=Vw(),lo=ao(),wM=new Set(["!","?","+","*","@"]),Zu=t=>wM.has(t),Yw=t=>Zu(t.type),SM=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),EM=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),vM=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Kw=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),xM="(?!(?:^|/)\\.\\.?(?:$|/))",uo="(?!\\.)",TM=new Set(["[","."]),RM=new Set(["..","."]),AM=new Set("().*{}+?[]^$\\!"),OM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Qu="[^/]",Zw=Qu+"*?",Qw=Qu+"+?",fo=class{type;#e;#r;#n=!1;#t=[];#o;#S;#u;#c=!1;#l;#a;#s=!1;constructor(e,r,i={}){this.type=e,e&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#l=this.#e===this?i:this.#e.#l,this.#u=this.#e===this?[]:this.#e.#u,e==="!"&&!this.#e.#c&&this.#u.push(this),this.#S=this.#o?this.#o.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#a=this.#t.map(e=>String(e)).join("")}#y(){if(this!==this.#e)throw new Error("should only call on root");if(this.#c)return this;this.toString(),this.#c=!0;let e;for(;e=this.#u.pop();){if(e.type!=="!")continue;let r=e,i=r.#o;for(;i;){for(let n=r.#S+1;!i.type&&n<i.#t.length;n++)for(let s of e.#t){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(i.#t[n])}r=i,i=r.#o}}return this}push(...e){for(let r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof Le&&r.#o===this))throw new Error("invalid part: "+r);this.#t.push(r)}}toJSON(){let e=this.type===null?this.#t.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#c&&this.#o?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#S===0)return!0;let e=this.#o;for(let r=0;r<this.#S;r++){let i=e.#t[r];if(!(i instanceof Le&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let e=this.#o?this.#o.#t.length:0;return this.#S===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let r=new Le(this.type,e);for(let i of this.#t)r.copyIn(i);return r}static#m(e,r,i,n,s){let o=n.maxExtglobRecursion??2,a=!1,l=!1,u=-1,f=!1;if(r.type===null){let p=i,S="";for(;p<e.length;){let y=e.charAt(p++);if(a||y==="\\"){a=!a,S+=y;continue}if(l){p===u+1?(y==="^"||y==="!")&&(f=!0):y==="]"&&!(p===u+2&&f)&&(l=!1),S+=y;continue}else if(y==="["){l=!0,u=p,f=!1,S+=y;continue}if(!n.noext&&Zu(y)&&e.charAt(p)==="("&&s<=o){r.push(S),S="";let v=new Le(y,r);p=Le.#m(e,v,p,n,s+1),r.push(v);continue}S+=y}return r.push(S),p}let c=i+1,h=new Le(null,r),d=[],m="";for(;c<e.length;){let p=e.charAt(c++);if(a||p==="\\"){a=!a,m+=p;continue}if(l){c===u+1?(p==="^"||p==="!")&&(f=!0):p==="]"&&!(c===u+2&&f)&&(l=!1),m+=p;continue}else if(p==="["){l=!0,u=c,f=!1,m+=p;continue}if(Zu(p)&&e.charAt(c)==="("&&(s<=o||r&&r.#E(p))){let y=r&&r.#E(p)?0:1;h.push(m),m="";let b=new Le(p,h);h.push(b),c=Le.#m(e,b,c,n,s+y);continue}if(p==="|"){h.push(m),m="",d.push(h),h=new Le(null,r);continue}if(p===")")return m===""&&r.#t.length===0&&(r.#s=!0),h.push(m),m="",r.push(...d,h),c;m+=p}return r.type=null,r.#r=void 0,r.#t=[e.substring(i-1)],c}#g(e){return this.#d(e,EM)}#d(e,r=SM){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;let i=e.#t[0];return!i||typeof i!="object"||i.type===null?!1:this.#E(i.type,r)}#E(e,r=vM){return!!r.get(this.type)?.includes(e)}#p(e,r){let i=e.#t[0],n=new Le(null,i,this.options);n.#t.push(""),i.push(n),this.#x(e,r)}#x(e,r){let i=e.#t[0];this.#t.splice(r,1,...i.#t);for(let n of i.#t)typeof n=="object"&&(n.#o=this);this.#a=void 0}#T(e){return!!Kw.get(this.type)?.has(e)}#_(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let r=e.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#T(r.type)}#v(e){let r=Kw.get(this.type),i=e.#t[0],n=r?.get(i.type);if(!n)return!1;this.#t=i.#t;for(let s of this.#t)typeof s=="object"&&(s.#o=this);this.type=n,this.#a=void 0,this.#s=!1}#b(){if(Yw(this)){let e=0,r=!1;do{r=!0;for(let i=0;i<this.#t.length;i++){let n=this.#t[i];typeof n=="object"&&(n.#b(),this.#d(n)?(r=!1,this.#x(n,i)):this.#g(n)?(r=!1,this.#p(n,i)):this.#_(n)&&(r=!1,this.#v(n)))}}while(!r&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#b();this.#a=void 0}static fromGlob(e,r={}){let i=new Le(null,void 0,r);return Le.#m(e,i,0,r,0),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[r,i,n,s]=this.toRegExpSource();if(!(n||this.#r||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let a=(this.#l.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:e})}get options(){return this.#l}toRegExpSource(e){let r=e??!!this.#l.dot;if(this.#e===this&&(this.#b(),this.#y()),!Yw(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(d=>{let[m,p,S,y]=typeof d=="string"?Le.#R(d,this.#r,l):d.toRegExpSource(e);return this.#r=this.#r||S,this.#n=this.#n||y,m}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&RM.has(this.#t[0]))){let m=TM,p=r&&m.has(u.charAt(0))||u.startsWith("\\.")&&m.has(u.charAt(2))||u.startsWith("\\.\\.")&&m.has(u.charAt(4)),S=!r&&!e&&m.has(u.charAt(0));f=p?xM:S?uo:""}let c="";return this.isEnd()&&this.#e.#c&&this.#o?.type==="!"&&(c="(?:$|\\/)"),[f+u+c,(0,lo.unescape)(u),this.#r=!!this.#r,this.#n]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#h(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,(0,lo.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!uo?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?uo:"")+Qw;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?uo:"")+Zw+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,lo.unescape)(s),this.#r=!!this.#r,this.#n]}#h(e){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[i,n,s,o]=r.toRegExpSource(e);return this.#n=this.#n||o,i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#R(e,r,i=!1){let n=!1,s="",o=!1,a=!1;for(let l=0;l<e.length;l++){let u=e.charAt(l);if(n){n=!1,s+=(AM.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,c,h,d]=(0,bM.parseClass)(e,l);if(h){s+=f,o=o||c,l+=h-1,r=r||d,a=!1;continue}}if(u==="*"){if(a)continue;a=!0,s+=i&&/^[*]+$/.test(e)?Qw:Zw,r=!0;continue}else a=!1;if(u==="?"){s+=Qu,r=!0;continue}s+=OM(u)}return[s,(0,lo.unescape)(e),!!r,o]}};co.AST=fo;Le=fo});var Ju=g(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.escape=void 0;var IM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");ho.escape=IM});var Ft=g(I=>{"use strict";var DM=I&&I.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(I,"__esModule",{value:!0});I.unescape=I.escape=I.AST=I.Minimatch=I.match=I.makeRe=I.braceExpand=I.defaults=I.filter=I.GLOBSTAR=I.sep=I.minimatch=void 0;var PM=DM(oa()),po=$w(),e0=Xu(),LM=Ju(),NM=ao(),CM=(t,e,r={})=>((0,po.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new pr(e,r).match(t));I.minimatch=CM;var kM=/^\*+([^+@!?\*\[\(]*)$/,MM=t=>e=>!e.startsWith(".")&&e.endsWith(t),FM=t=>e=>e.endsWith(t),qM=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),jM=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),BM=/^\*+\.\*+$/,UM=t=>!t.startsWith(".")&&t.includes("."),WM=t=>t!=="."&&t!==".."&&t.includes("."),zM=/^\.\*+$/,GM=t=>t!=="."&&t!==".."&&t.startsWith("."),$M=/^\*+$/,HM=t=>t.length!==0&&!t.startsWith("."),VM=t=>t.length!==0&&t!=="."&&t!=="..",YM=/^\?+([^+@!?\*\[\(]*)?$/,KM=([t,e=""])=>{let r=t0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},ZM=([t,e=""])=>{let r=r0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},QM=([t,e=""])=>{let r=r0([t]);return e?i=>r(i)&&i.endsWith(e):r},XM=([t,e=""])=>{let r=t0([t]);return e?i=>r(i)&&i.endsWith(e):r},t0=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},r0=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},i0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Xw={win32:{sep:"\\"},posix:{sep:"/"}};I.sep=i0==="win32"?Xw.win32.sep:Xw.posix.sep;I.minimatch.sep=I.sep;I.GLOBSTAR=Symbol("globstar **");I.minimatch.GLOBSTAR=I.GLOBSTAR;var JM="[^/]",e2=JM+"*?",t2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",r2="(?:(?!(?:\\/|^)\\.).)*?",i2=(t,e={})=>r=>(0,I.minimatch)(r,t,e);I.filter=i2;I.minimatch.filter=I.filter;var Ue=(t,e={})=>Object.assign({},t,e),n2=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return I.minimatch;let e=I.minimatch;return Object.assign((i,n,s={})=>e(i,n,Ue(t,s)),{Minimatch:class extends e.Minimatch{constructor(n,s={}){super(n,Ue(t,s))}static defaults(n){return e.defaults(Ue(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,s,o={}){super(n,s,Ue(t,o))}static fromGlob(n,s={}){return e.AST.fromGlob(n,Ue(t,s))}},unescape:(i,n={})=>e.unescape(i,Ue(t,n)),escape:(i,n={})=>e.escape(i,Ue(t,n)),filter:(i,n={})=>e.filter(i,Ue(t,n)),defaults:i=>e.defaults(Ue(t,i)),makeRe:(i,n={})=>e.makeRe(i,Ue(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,Ue(t,n)),match:(i,n,s={})=>e.match(i,n,Ue(t,s)),sep:e.sep,GLOBSTAR:I.GLOBSTAR})};I.defaults=n2;I.minimatch.defaults=I.defaults;var s2=(t,e={})=>((0,po.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,PM.default)(t));I.braceExpand=s2;I.minimatch.braceExpand=I.braceExpand;var o2=(t,e={})=>new pr(t,e).makeRe();I.makeRe=o2;I.minimatch.makeRe=I.makeRe;var a2=(t,e,r={})=>{let i=new pr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};I.match=a2;I.minimatch.match=I.match;var Jw=/[?*]|[+@!]\(.*?\)|\[|\]/,l2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),pr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,po.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||i0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!Jw.test(s[2]))&&!Jw.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(u)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,n),this.set=n.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let n=0;n<e[i].length;n++)e[i][n]==="**"&&(e[i][n]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let n=i;for(;r[n+1]==="**";)n++;n!==i&&r.splice(i,n-i)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((i,n)=>{let s=i[i.length-1];return n==="**"&&s==="**"?i:n===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(n),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let s=e[n];n===1&&s===""&&e[0]===""||(s==="."||s==="")&&(r=!0,e.splice(n,1),n--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let n=e[i-1];n&&n!=="."&&n!==".."&&n!=="**"&&(r=!0,e.splice(i-1,2),i-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let i of e){let n=-1;for(;(n=i.indexOf("**",n+1))!==-1;){let o=n;for(;i[o+1]==="**";)o++;o>n&&i.splice(n+1,o-n);let a=i[n+1],l=i[n+2],u=i[n+3];if(a!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,i.splice(n,1);let f=i.slice(0);f[n]="**",e.push(f),n--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let a=i[o];o===1&&a===""&&i[0]===""||(a==="."||a==="")&&(r=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){let o=i[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let l=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...l),i.length===0&&i.push(""),s-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let i=r+1;i<e.length;i++){let n=this.partsMatch(e[r],e[i],!this.preserveMultipleSlashes);if(n){e[r]=[],e[i]=n;break}}return e.filter(r=>r.length)}partsMatch(e,r,i=!1){let n=0,s=0,o=[],a="";for(;n<e.length&&s<r.length;)if(e[n]===r[s])o.push(a==="b"?r[s]:e[n]),n++,s++;else if(i&&e[n]==="**"&&r[s]===e[n+1])o.push(e[n]),n++;else if(i&&r[s]==="**"&&e[n]===r[s+1])o.push(r[s]),s++;else if(e[n]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[n]),n++,s++}else if(r[s]==="*"&&e[n]&&(this.options.dot||!e[n].startsWith("."))&&e[n]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),n++,s++}else return!1;return e.length===r.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=e.slice(i)),this.negate=r}matchOne(e,r,i=!1){let n=0,s=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),f=!u&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),c=l?3:a?0:void 0,h=f?3:u?0:void 0;if(typeof c=="number"&&typeof h=="number"){let[d,m]=[e[c],r[h]];d.toLowerCase()===m.toLowerCase()&&(r[h]=d,s=h,n=c)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(I.GLOBSTAR)?this.#e(e,r,i,n,s):this.#n(e,r,i,n,s)}#e(e,r,i,n,s){let o=r.indexOf(I.GLOBSTAR,s),a=r.lastIndexOf(I.GLOBSTAR),[l,u,f]=i?[r.slice(s,o),r.slice(o+1),[]]:[r.slice(s,o),r.slice(o+1,a),r.slice(a+1)];if(l.length){let b=e.slice(n,n+l.length);if(!this.#n(b,l,i,0,0))return!1;n+=l.length}let c=0;if(f.length){if(f.length+n>e.length)return!1;let b=e.length-f.length;if(this.#n(e,f,i,b,0))c=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||(b--,!this.#n(e,f,i,b,0)))return!1;c=f.length+1}}if(!u.length){let b=!!c;for(let v=n;v<e.length-c;v++){let E=String(e[v]);if(b=!0,E==="."||E===".."||!this.options.dot&&E.startsWith("."))return!1}return i||b}let h=[[[],0]],d=h[0],m=0,p=[0];for(let b of u)b===I.GLOBSTAR?(p.push(m),d=[[],0],h.push(d)):(d[0].push(b),m++);let S=h.length-1,y=e.length-c;for(let b of h)b[1]=y-(p[S--]+b[0].length);return!!this.#r(e,h,n,0,i,0,!!c)}#r(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let c=i;c<e.length;c++){a=!0;let h=e[c];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return a}let[u,f]=l;for(;i<=f;){if(this.#n(e.slice(0,i+u.length),u,s,i,0)&&o<this.maxGlobstarRecursion){let d=this.#r(e,r,i+u.length,n+1,s,o+1,a);if(d!==!1)return d}let h=e[i];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;i++}return s||null}#n(e,r,i,n,s){let o,a,l,u;for(o=n,a=s,u=e.length,l=r.length;o<u&&a<l;o++,a++){this.debug("matchOne loop");let f=r[a],c=e[o];if(this.debug(r,f,c),f===!1||f===I.GLOBSTAR)return!1;let h;if(typeof f=="string"?(h=c===f,this.debug("string match",f,c,h)):(h=f.test(c),this.debug("pattern match",f,c,h)),!h)return!1}if(o===u&&a===l)return!0;if(o===u)return i;if(a===l)return o===u-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,I.braceExpand)(this.pattern,this.options)}parse(e){(0,po.assertValidPattern)(e);let r=this.options;if(e==="**")return I.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match($M))?n=r.dot?VM:HM:(i=e.match(kM))?n=(r.nocase?r.dot?jM:qM:r.dot?FM:MM)(i[1]):(i=e.match(YM))?n=(r.nocase?r.dot?ZM:KM:r.dot?QM:XM)(i):(i=e.match(BM))?n=r.dot?WM:UM:(i=e.match(zM))&&(n=GM);let s=e0.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?e2:r.dot?t2:r2,n=new Set(r.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let c of f.flags.split(""))n.add(c);return typeof f=="string"?l2(f):f===I.GLOBSTAR?I.GLOBSTAR:f._src});return u.forEach((f,c)=>{let h=u[c+1],d=u[c-1];f!==I.GLOBSTAR||d===I.GLOBSTAR||(d===void 0?h!==void 0&&h!==I.GLOBSTAR?u[c+1]="(?:\\/|"+i+"\\/)?"+h:u[c]=i:h===void 0?u[c-1]=d+"(?:\\/|"+i+")?":h!==I.GLOBSTAR&&(u[c-1]=d+"(?:\\/|\\/"+i+"\\/)"+h,u[c+1]=I.GLOBSTAR))}),u.filter(f=>f!==I.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let l=s[a],u=n;if(i.matchBase&&l.length===1&&(u=[o]),this.matchOne(u,l,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return I.minimatch.defaults(e).Minimatch}};I.Minimatch=pr;var u2=Xu();Object.defineProperty(I,"AST",{enumerable:!0,get:function(){return u2.AST}});var f2=Ju();Object.defineProperty(I,"escape",{enumerable:!0,get:function(){return f2.escape}});var c2=ao();Object.defineProperty(I,"unescape",{enumerable:!0,get:function(){return c2.unescape}});I.minimatch.AST=e0.AST;I.minimatch.Minimatch=pr;I.minimatch.escape=LM.escape;I.minimatch.unescape=NM.unescape});var l0=g(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.LRUCache=void 0;var ei=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,s0=new Set,ef=typeof process=="object"&&process?process:{},o0=(t,e,r,i)=>{typeof ef.emitWarning=="function"?ef.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},go=globalThis.AbortController,n0=globalThis.AbortSignal;if(typeof go>"u"){n0=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},go=class{constructor(){e()}signal=new n0;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=ef.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,o0("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var h2=t=>!s0.has(t),qt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),a0=t=>qt(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?ti:null:null,ti=class extends Array{constructor(e){super(e),this.fill(0)}},tf=class t{heap;length;static#e=!1;static create(e){let r=a0(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},rf=class t{#e;#r;#n;#t;#o;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#u;#c;#l;#a;#s;#y;#m;#g;#d;#E;#p;#x;#T;#_;#v;#b;#h;static unsafeExposeInternals(e){return{starts:e.#T,ttls:e.#_,sizes:e.#x,keyMap:e.#l,keyList:e.#a,valList:e.#s,next:e.#y,prev:e.#m,get head(){return e.#g},get tail(){return e.#d},free:e.#E,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,i,n,s)=>e.#q(r,i,n,s),moveToTail:r=>e.#B(r),indexes:r=>e.#O(r),rindexes:r=>e.#I(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#c}get size(){return this.#u}get fetchMethod(){return this.#o}get memoMethod(){return this.#S}get dispose(){return this.#n}get disposeAfter(){return this.#t}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:f,noDisposeOnSet:c,noUpdateTTL:h,maxSize:d=0,maxEntrySize:m=0,sizeCalculation:p,fetchMethod:S,memoMethod:y,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:T,ignoreFetchAbort:D}=e;if(r!==0&&!qt(r))throw new TypeError("max option must be a nonnegative integer");let x=r?a0(r):Array;if(!x)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=d,this.maxEntrySize=m||this.#r,this.sizeCalculation=p,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(y!==void 0&&typeof y!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=y,S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=S,this.#b=!!S,this.#l=new Map,this.#a=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#y=new x(r),this.#m=new x(r),this.#g=0,this.#d=0,this.#E=tf.create(r),this.#u=0,this.#c=0,typeof u=="function"&&(this.#n=u),typeof f=="function"?(this.#t=f,this.#p=[]):(this.#t=void 0,this.#p=void 0),this.#v=!!this.#n,this.#h=!!this.#t,this.noDisposeOnSet=!!c,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!E,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!D,this.maxEntrySize!==0){if(this.#r!==0&&!qt(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!qt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#D()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=qt(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!qt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let O="LRU_CACHE_UNBOUNDED";h2(O)&&(s0.add(O),o0("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",O,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#R(){let e=new ti(this.#e),r=new ti(this.#e);this.#_=e,this.#T=r,this.#L=(s,o,a=ei.now())=>{if(r[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(s)&&this.#P(this.#a[s],"expire")},o+1);l.unref&&l.unref()}},this.#A=s=>{r[s]=e[s]!==0?ei.now():0},this.#i=(s,o)=>{if(e[o]){let a=e[o],l=r[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=i||n();let u=s.now-l;s.remainingTTL=a-u}};let i=0,n=()=>{let s=ei.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#l.get(s);if(o===void 0)return 0;let a=e[o],l=r[o];if(!a||!l)return 1/0;let u=(i||n())-l;return a-u},this.#w=s=>{let o=r[s],a=e[s];return!!a&&!!o&&(i||n())-o>a}}#A=()=>{};#i=()=>{};#L=()=>{};#w=()=>!1;#D(){let e=new ti(this.#e);this.#c=0,this.#x=e,this.#N=r=>{this.#c-=e[r],e[r]=0},this.#k=(r,i,n,s)=>{if(this.#f(i))return 0;if(!qt(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!qt(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#C=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#c>s;)this.#F(!0)}this.#c+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#c)}}#N=e=>{};#C=(e,r,i)=>{};#k=(e,r,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#d;!(!this.#M(r)||((e||!this.#w(r))&&(yield r),r===this.#g));)r=this.#m[r]}*#I({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#g;!(!this.#M(r)||((e||!this.#w(r))&&(yield r),r===this.#d));)r=this.#y[r]}#M(e){return e!==void 0&&this.#l.get(this.#a[e])===e}*entries(){for(let e of this.#O())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*rentries(){for(let e of this.#I())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*keys(){for(let e of this.#O()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*rkeys(){for(let e of this.#I()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*values(){for(let e of this.#O())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}*rvalues(){for(let e of this.#I())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;if(s!==void 0&&e(s,this.#a[i],this))return this.get(this.#a[i],r)}}forEach(e,r=this){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}rforEach(e,r=this){for(let i of this.#I()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}purgeStale(){let e=!1;for(let r of this.#I({allowStale:!0}))this.#w(r)&&(this.#P(this.#a[r],"expire"),e=!0);return e}info(e){let r=this.#l.get(e);if(r===void 0)return;let i=this.#s[r],n=this.#f(i)?i.__staleWhileFetching:i;if(n===void 0)return;let s={value:n};if(this.#_&&this.#T){let o=this.#_[r],a=this.#T[r];if(o&&a){let l=o-(ei.now()-a);s.ttl=l,s.start=Date.now()}}return this.#x&&(s.size=this.#x[r]),s}dump(){let e=[];for(let r of this.#O({allowStale:!0})){let i=this.#a[r],n=this.#s[r],s=this.#f(n)?n.__staleWhileFetching:n;if(s===void 0||i===void 0)continue;let o={value:s};if(this.#_&&this.#T){o.ttl=this.#_[r];let a=ei.now()-this.#T[r];o.start=Math.floor(Date.now()-a)}this.#x&&(o.size=this.#x[r]),e.unshift([i,o])}return e}load(e){this.clear();for(let[r,i]of e){if(i.start){let n=Date.now()-i.start;i.start=ei.now()-n}this.set(r,i.value,i)}}set(e,r,i={}){if(r===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:u=this.noUpdateTTL}=i,f=this.#k(e,r,i.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#P(e,"set"),this;let c=this.#u===0?void 0:this.#l.get(e);if(c===void 0)c=this.#u===0?this.#d:this.#E.length!==0?this.#E.pop():this.#u===this.#e?this.#F(!1):this.#u,this.#a[c]=e,this.#s[c]=r,this.#l.set(e,c),this.#y[this.#d]=c,this.#m[c]=this.#d,this.#d=c,this.#u++,this.#C(c,f,l),l&&(l.set="add"),u=!1;else{this.#B(c);let h=this.#s[c];if(r!==h){if(this.#b&&this.#f(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=h;d!==void 0&&!o&&(this.#v&&this.#n?.(d,e,"set"),this.#h&&this.#p?.push([d,e,"set"]))}else o||(this.#v&&this.#n?.(h,e,"set"),this.#h&&this.#p?.push([h,e,"set"]));if(this.#N(c),this.#C(c,f,l),this.#s[c]=r,l){l.set="replace";let d=h&&this.#f(h)?h.__staleWhileFetching:h;d!==void 0&&(l.oldValue=d)}}else l&&(l.set="update")}if(n!==0&&!this.#_&&this.#R(),this.#_&&(u||this.#L(c,n,s),l&&this.#i(l,c)),!o&&this.#h&&this.#p){let h=this.#p,d;for(;d=h?.shift();)this.#t?.(...d)}return this}pop(){try{for(;this.#u;){let e=this.#s[this.#g];if(this.#F(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#p){let e=this.#p,r;for(;r=e?.shift();)this.#t?.(...r)}}}#F(e){let r=this.#g,i=this.#a[r],n=this.#s[r];return this.#b&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(n,i,"evict"),this.#h&&this.#p?.push([n,i,"evict"])),this.#N(r),e&&(this.#a[r]=void 0,this.#s[r]=void 0,this.#E.push(r)),this.#u===1?(this.#g=this.#d=0,this.#E.length=0):this.#g=this.#y[r],this.#l.delete(i),this.#u--,r}has(e,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=r,s=this.#l.get(e);if(s!==void 0){let o=this.#s[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#w(s))n&&(n.has="stale",this.#i(n,s));else return i&&this.#A(s),n&&(n.has="hit",this.#i(n,s)),!0}else n&&(n.has="miss");return!1}peek(e,r={}){let{allowStale:i=this.allowStale}=r,n=this.#l.get(e);if(n===void 0||!i&&this.#w(n))return;let s=this.#s[n];return this.#f(s)?s.__staleWhileFetching:s}#q(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new go,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},u=(p,S=!1)=>{let{aborted:y}=o.signal,b=i.ignoreFetchAbort&&p!==void 0;if(i.status&&(y&&!S?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,b&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),y&&!b&&!S)return c(o.signal.reason);let v=d;return this.#s[r]===d&&(p===void 0?v.__staleWhileFetching?this.#s[r]=v.__staleWhileFetching:this.#P(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,p,l.options))),p},f=p=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=p),c(p)),c=p=>{let{aborted:S}=o.signal,y=S&&i.allowStaleOnFetchAbort,b=y||i.allowStaleOnFetchRejection,v=b||i.noDeleteOnFetchRejection,E=d;if(this.#s[r]===d&&(!v||E.__staleWhileFetching===void 0?this.#P(e,"fetch"):y||(this.#s[r]=E.__staleWhileFetching)),b)return i.status&&E.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),E.__staleWhileFetching;if(E.__returned===E)throw p},h=(p,S)=>{let y=this.#o?.(e,s,l);y&&y instanceof Promise&&y.then(b=>p(b===void 0?void 0:b),S),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(p(void 0),i.allowStaleOnFetchAbort&&(p=b=>u(b,!0)))})};i.status&&(i.status.fetchDispatched=!0);let d=new Promise(h).then(u,f),m=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,m,{...l.options,status:void 0}),r=this.#l.get(e)):this.#s[r]=m,m}#f(e){if(!this.#b)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof go}async fetch(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:m=this.allowStaleOnFetchAbort,context:p,forceRefresh:S=!1,status:y,signal:b}=r;if(!this.#b)return y&&(y.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:y});let v={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:m,ignoreFetchAbort:d,status:y,signal:b},E=this.#l.get(e);if(E===void 0){y&&(y.fetch="miss");let T=this.#q(e,E,v,p);return T.__returned=T}else{let T=this.#s[E];if(this.#f(T)){let R=i&&T.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",R&&(y.returnedStale=!0)),R?T.__staleWhileFetching:T.__returned=T}let D=this.#w(E);if(!S&&!D)return y&&(y.fetch="hit"),this.#B(E),n&&this.#A(E),y&&this.#i(y,E),T;let x=this.#q(e,E,v,p),w=x.__staleWhileFetching!==void 0&&i;return y&&(y.fetch=D?"stale":"refresh",w&&D&&(y.returnedStale=!0)),w?x.__staleWhileFetching:x.__returned=x}}async forceFetch(e,r={}){let i=await this.fetch(e,r);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,r={}){let i=this.#S;if(!i)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:s,...o}=r,a=this.get(e,o);if(!s&&a!==void 0)return a;let l=i(e,a,{options:o,context:n});return this.set(e,l,o),l}get(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#l.get(e);if(a!==void 0){let l=this.#s[a],u=this.#f(l);return o&&this.#i(o,a),this.#w(a)?(o&&(o.get="stale"),u?(o&&i&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?l.__staleWhileFetching:void 0):(s||this.#P(e,"expire"),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(this.#B(a),n&&this.#A(a),l))}else o&&(o.get="miss")}#j(e,r){this.#m[r]=e,this.#y[e]=r}#B(e){e!==this.#d&&(e===this.#g?this.#g=this.#y[e]:this.#j(this.#m[e],this.#y[e]),this.#j(this.#d,e),this.#d=e)}delete(e){return this.#P(e,"delete")}#P(e,r){let i=!1;if(this.#u!==0){let n=this.#l.get(e);if(n!==void 0)if(i=!0,this.#u===1)this.#U(r);else{this.#N(n);let s=this.#s[n];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(s,e,r),this.#h&&this.#p?.push([s,e,r])),this.#l.delete(e),this.#a[n]=void 0,this.#s[n]=void 0,n===this.#d)this.#d=this.#m[n];else if(n===this.#g)this.#g=this.#y[n];else{let o=this.#m[n];this.#y[o]=this.#y[n];let a=this.#y[n];this.#m[a]=this.#m[n]}this.#u--,this.#E.push(n)}}if(this.#h&&this.#p?.length){let n=this.#p,s;for(;s=n?.shift();)this.#t?.(...s)}return i}clear(){return this.#U("delete")}#U(e){for(let r of this.#I({allowStale:!0})){let i=this.#s[r];if(this.#f(i))i.__abortController.abort(new Error("deleted"));else{let n=this.#a[r];this.#v&&this.#n?.(i,n,e),this.#h&&this.#p?.push([i,n,e])}}if(this.#l.clear(),this.#s.fill(void 0),this.#a.fill(void 0),this.#_&&this.#T&&(this.#_.fill(0),this.#T.fill(0)),this.#x&&this.#x.fill(0),this.#g=0,this.#d=0,this.#E.length=0,this.#c=0,this.#u=0,this.#h&&this.#p){let r=this.#p,i;for(;i=r?.shift();)this.#t?.(...i)}}};_o.LRUCache=rf});var cf=g(De=>{"use strict";var d2=De&&De.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(De,"__esModule",{value:!0});De.Minipass=De.isWritable=De.isReadable=De.isStream=void 0;var u0=typeof process=="object"&&process?process:{stdout:null,stderr:null},ff=P("events"),d0=d2(P("stream")),p2=P("string_decoder"),g2=t=>!!t&&typeof t=="object"&&(t instanceof vo||t instanceof d0.default||(0,De.isReadable)(t)||(0,De.isWritable)(t));De.isStream=g2;var _2=t=>!!t&&typeof t=="object"&&t instanceof ff.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==d0.default.Writable.prototype.pipe;De.isReadable=_2;var y2=t=>!!t&&typeof t=="object"&&t instanceof ff.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";De.isWritable=y2;var St=Symbol("EOF"),Et=Symbol("maybeEmitEnd"),jt=Symbol("emittedEnd"),yo=Symbol("emittingEnd"),an=Symbol("emittedError"),mo=Symbol("closed"),f0=Symbol("read"),bo=Symbol("flush"),c0=Symbol("flushChunk"),Ke=Symbol("encoding"),ri=Symbol("decoder"),de=Symbol("flowing"),ln=Symbol("paused"),ii=Symbol("resume"),pe=Symbol("buffer"),Ie=Symbol("pipes"),ge=Symbol("bufferLength"),nf=Symbol("bufferPush"),wo=Symbol("bufferShift"),Re=Symbol("objectMode"),le=Symbol("destroyed"),sf=Symbol("error"),of=Symbol("emitData"),h0=Symbol("emitEnd"),af=Symbol("emitEnd2"),at=Symbol("async"),lf=Symbol("abort"),So=Symbol("aborted"),un=Symbol("signal"),gr=Symbol("dataListeners"),Ce=Symbol("discarded"),fn=t=>Promise.resolve().then(t),m2=t=>t(),b2=t=>t==="end"||t==="finish"||t==="prefinish",w2=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,S2=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Eo=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ii](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},uf=class extends Eo{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>this.dest.emit("error",n),e.on("error",this.proxyErrors)}},E2=t=>!!t.objectMode,v2=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",vo=class extends ff.EventEmitter{[de]=!1;[ln]=!1;[Ie]=[];[pe]=[];[Re];[Ke];[at];[ri];[St]=!1;[jt]=!1;[yo]=!1;[mo]=!1;[an]=null;[ge]=0;[le]=!1;[un];[So]=!1;[gr]=0;[Ce]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");E2(r)?(this[Re]=!0,this[Ke]=null):v2(r)?(this[Ke]=r.encoding,this[Re]=!1):(this[Re]=!1,this[Ke]=null),this[at]=!!r.async,this[ri]=this[Ke]?new p2.StringDecoder(this[Ke]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[pe]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ie]});let{signal:i}=r;i&&(this[un]=i,i.aborted?this[lf]():i.addEventListener("abort",()=>this[lf]()))}get bufferLength(){return this[ge]}get encoding(){return this[Ke]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Re]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[at]}set async(e){this[at]=this[at]||!!e}[lf](){this[So]=!0,this.emit("abort",this[un]?.reason),this.destroy(this[un]?.reason)}get aborted(){return this[So]}set aborted(e){}write(e,r,i){if(this[So])return!1;if(this[St])throw new Error("write after end");if(this[le])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[at]?fn:m2;if(!this[Re]&&!Buffer.isBuffer(e)){if(S2(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(w2(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Re]?(this[de]&&this[ge]!==0&&this[bo](!0),this[de]?this.emit("data",e):this[nf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):e.length?(typeof e=="string"&&!(r===this[Ke]&&!this[ri]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ke]&&(e=this[ri].write(e)),this[de]&&this[ge]!==0&&this[bo](!0),this[de]?this.emit("data",e):this[nf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):(this[ge]!==0&&this.emit("readable"),i&&n(i),this[de])}read(e){if(this[le])return null;if(this[Ce]=!1,this[ge]===0||e===0||e&&e>this[ge])return this[Et](),null;this[Re]&&(e=null),this[pe].length>1&&!this[Re]&&(this[pe]=[this[Ke]?this[pe].join(""):Buffer.concat(this[pe],this[ge])]);let r=this[f0](e||null,this[pe][0]);return this[Et](),r}[f0](e,r){if(this[Re])this[wo]();else{let i=r;e===i.length||e===null?this[wo]():typeof i=="string"?(this[pe][0]=i.slice(e),r=i.slice(0,e),this[ge]-=e):(this[pe][0]=i.subarray(e),r=i.subarray(0,e),this[ge]-=e)}return this.emit("data",r),!this[pe].length&&!this[St]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=void 0),typeof r=="function"&&(i=r,r="utf8"),e!==void 0&&this.write(e,r),i&&this.once("end",i),this[St]=!0,this.writable=!1,(this[de]||!this[ln])&&this[Et](),this}[ii](){this[le]||(!this[gr]&&!this[Ie].length&&(this[Ce]=!0),this[ln]=!1,this[de]=!0,this.emit("resume"),this[pe].length?this[bo]():this[St]?this[Et]():this.emit("drain"))}resume(){return this[ii]()}pause(){this[de]=!1,this[ln]=!0,this[Ce]=!1}get destroyed(){return this[le]}get flowing(){return this[de]}get paused(){return this[ln]}[nf](e){this[Re]?this[ge]+=1:this[ge]+=e.length,this[pe].push(e)}[wo](){return this[Re]?this[ge]-=1:this[ge]-=this[pe][0].length,this[pe].shift()}[bo](e=!1){do;while(this[c0](this[wo]())&&this[pe].length);!e&&!this[pe].length&&!this[St]&&this.emit("drain")}[c0](e){return this.emit("data",e),this[de]}pipe(e,r){if(this[le])return e;this[Ce]=!1;let i=this[jt];return r=r||{},e===u0.stdout||e===u0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ie].push(r.proxyErrors?new uf(this,e,r):new Eo(this,e,r)),this[at]?fn(()=>this[ii]()):this[ii]()),e}unpipe(e){let r=this[Ie].find(i=>i.dest===e);r&&(this[Ie].length===1?(this[de]&&this[gr]===0&&(this[de]=!1),this[Ie]=[]):this[Ie].splice(this[Ie].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);if(e==="data")this[Ce]=!1,this[gr]++,!this[Ie].length&&!this[de]&&this[ii]();else if(e==="readable"&&this[ge]!==0)super.emit("readable");else if(b2(e)&&this[jt])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[an]){let n=r;this[at]?fn(()=>n.call(this,this[an])):n.call(this,this[an])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[gr]=this.listeners("data").length,this[gr]===0&&!this[Ce]&&!this[Ie].length&&(this[de]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[gr]=0,!this[Ce]&&!this[Ie].length&&(this[de]=!1)),r}get emittedEnd(){return this[jt]}[Et](){!this[yo]&&!this[jt]&&!this[le]&&this[pe].length===0&&this[St]&&(this[yo]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[mo]&&this.emit("close"),this[yo]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==le&&this[le])return!1;if(e==="data")return!this[Re]&&!i?!1:this[at]?(fn(()=>this[of](i)),!0):this[of](i);if(e==="end")return this[h0]();if(e==="close"){if(this[mo]=!0,!this[jt]&&!this[le])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[an]=i,super.emit(sf,i);let s=!this[un]||this.listeners("error").length?super.emit("error",i):!1;return this[Et](),s}else if(e==="resume"){let s=super.emit("resume");return this[Et](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,...r);return this[Et](),n}[of](e){for(let i of this[Ie])i.dest.write(e)===!1&&this.pause();let r=this[Ce]?!1:super.emit("data",e);return this[Et](),r}[h0](){return this[jt]?!1:(this[jt]=!0,this.readable=!1,this[at]?(fn(()=>this[af]()),!0):this[af]())}[af](){if(this[ri]){let r=this[ri].end();if(r){for(let i of this[Ie])i.dest.write(r);this[Ce]||super.emit("data",r)}}for(let r of this[Ie])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Re]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Re]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[Re])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Ke]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(le,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Ce]=!1;let e=!1,r=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return r();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[St])return r();let s,o,a=c=>{this.off("data",l),this.off("end",u),this.off(le,f),r(),o(c)},l=c=>{this.off("error",a),this.off("end",u),this.off(le,f),this.pause(),s({value:c,done:!!this[St]})},u=()=>{this.off("error",a),this.off("data",l),this.off(le,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((c,h)=>{o=h,s=c,this.once(le,f),this.once("error",a),this.once("end",u),this.once("data",l)})},throw:r,return:r,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[Ce]=!1;let e=!1,r=()=>(this.pause(),this.off(sf,r),this.off(le,r),this.off("end",r),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return r();let n=this.read();return n===null?r():{done:!1,value:n}};return this.once("end",r),this.once(sf,r),this.once(le,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[le])return e?this.emit("error",e):this.emit(le),this;this[le]=!0,this[Ce]=!0,this[pe].length=0,this[ge]=0;let r=this;return typeof r.close=="function"&&!this[mo]&&r.close(),e?this.emit("error",e):this.emit(le),this}static get isStream(){return De.isStream}};De.Minipass=vo});var O0=g(H=>{"use strict";var x2=H&&H.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),T2=H&&H.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),R2=H&&H.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&x2(e,t,r);return T2(e,t),e};Object.defineProperty(H,"__esModule",{value:!0});H.PathScurry=H.Path=H.PathScurryDarwin=H.PathScurryPosix=H.PathScurryWin32=H.PathScurryBase=H.PathPosix=H.PathWin32=H.PathBase=H.ChildrenCache=H.ResolveCache=void 0;var b0=l0(),Oo=P("path"),A2=P("url"),hn=P("fs"),O2=R2(P("fs")),I2=hn.realpathSync.native,xo=P("fs/promises"),p0=cf(),dn={lstatSync:hn.lstatSync,readdir:hn.readdir,readdirSync:hn.readdirSync,readlinkSync:hn.readlinkSync,realpathSync:I2,promises:{lstat:xo.lstat,readdir:xo.readdir,readlink:xo.readlink,realpath:xo.realpath}},w0=t=>!t||t===dn||t===O2?dn:{...dn,...t,promises:{...dn.promises,...t.promises||{}}},S0=/^\\\\\?\\([a-z]:)\\?$/i,D2=t=>t.replace(/\//g,"\\").replace(S0,"$1\\"),P2=/[\\\/]/,ze=0,E0=1,v0=2,lt=4,x0=6,T0=8,_r=10,R0=12,We=15,cn=~We,hf=16,g0=32,pn=64,Ze=128,To=256,Ao=512,_0=pn|Ze|Ao,L2=1023,df=t=>t.isFile()?T0:t.isDirectory()?lt:t.isSymbolicLink()?_r:t.isCharacterDevice()?v0:t.isBlockDevice()?x0:t.isSocket()?R0:t.isFIFO()?E0:ze,y0=new Map,gn=t=>{let e=y0.get(t);if(e)return e;let r=t.normalize("NFKD");return y0.set(t,r),r},m0=new Map,Ro=t=>{let e=m0.get(t);if(e)return e;let r=gn(t.toLowerCase());return m0.set(t,r),r},_n=class extends b0.LRUCache{constructor(){super({max:256})}};H.ResolveCache=_n;var Io=class extends b0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};H.ChildrenCache=Io;var A0=Symbol("PathScurry setAsCwd"),Se=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#n;get mode(){return this.#n}#t;get nlink(){return this.#t}#o;get uid(){return this.#o}#S;get gid(){return this.#S}#u;get rdev(){return this.#u}#c;get blksize(){return this.#c}#l;get ino(){return this.#l}#a;get size(){return this.#a}#s;get blocks(){return this.#s}#y;get atimeMs(){return this.#y}#m;get mtimeMs(){return this.#m}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#E;get atime(){return this.#E}#p;get mtime(){return this.#p}#x;get ctime(){return this.#x}#T;get birthtime(){return this.#T}#_;#v;#b;#h;#R;#A;#i;#L;#w;#D;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=ze,i,n,s,o,a){this.name=e,this.#_=s?Ro(e):gn(e),this.#i=r&L2,this.nocase=s,this.roots=n,this.root=i||this,this.#L=o,this.#b=a.fullpath,this.#R=a.relative,this.#A=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=w0(a.fs)}depth(){return this.#v!==void 0?this.#v:this.parent?this.#v=this.parent.depth()+1:this.#v=0}childrenCache(){return this.#L}resolve(e){if(!e)return this;let r=this.getRootString(e),n=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#N(n):this.#N(n)}#N(e){let r=this;for(let i of e)r=r.child(i);return r}children(){let e=this.#L.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#L.set(this,r),this.#i&=~hf,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),n=this.nocase?Ro(e):gn(e);for(let l of i)if(l.#_===n)return l;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+e:void 0,a=this.newChild(e,ze,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=Ze),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#R!==void 0)return this.#R;let e=this.name,r=this.parent;if(!r)return this.#R=this.name;let i=r.relative();return i+(!i||!r.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let e=this.name,r=this.parent;if(!r)return this.#A=this.fullpathPosix();let i=r.relativePosix();return i+(!i||!r.parent?"":"/")+e}fullpath(){if(this.#b!==void 0)return this.#b;let e=this.name,r=this.parent;if(!r)return this.#b=this.name;let n=r.fullpath()+(r.parent?this.sep:"")+e;return this.#b=n}fullpathPosix(){if(this.#h!==void 0)return this.#h;if(this.sep==="/")return this.#h=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#h=`//?/${n}`:this.#h=n}let e=this.parent,r=e.fullpathPosix(),i=r+(!r||!e.parent?"":"/")+this.name;return this.#h=i}isUnknown(){return(this.#i&We)===ze}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&We)===T0}isDirectory(){return(this.#i&We)===lt}isCharacterDevice(){return(this.#i&We)===v0}isBlockDevice(){return(this.#i&We)===x0}isFIFO(){return(this.#i&We)===E0}isSocket(){return(this.#i&We)===R0}isSymbolicLink(){return(this.#i&_r)===_r}lstatCached(){return this.#i&g0?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#D}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#w)return!0;if(!this.parent)return!1;let e=this.#i&We;return!(e!==ze&&e!==_r||this.#i&To||this.#i&Ze)}calledReaddir(){return!!(this.#i&hf)}isENOENT(){return!!(this.#i&Ze)}isNamed(e){return this.nocase?this.#_===Ro(e):this.#_===gn(e)}async readlink(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}readlinkSync(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}#C(e){this.#i|=hf;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#k()}}#k(){this.#i&Ze||(this.#i=(this.#i|Ze)&cn,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#k()}#I(){this.#i|=Ao,this.#M()}#M(){if(this.#i&pn)return;let e=this.#i;(e&We)===lt&&(e&=cn),this.#i=e|pn,this.#O()}#F(e=""){e==="ENOTDIR"||e==="EPERM"?this.#M():e==="ENOENT"?this.#k():this.children().provisional=0}#q(e=""){e==="ENOTDIR"?this.parent.#M():e==="ENOENT"&&this.#k()}#f(e=""){let r=this.#i;r|=To,e==="ENOENT"&&(r|=Ze),(e==="EINVAL"||e==="UNKNOWN")&&(r&=cn),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#M()}#j(e,r){return this.#P(e,r)||this.#B(e,r)}#B(e,r){let i=df(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&We;return s!==lt&&s!==_r&&s!==ze&&(n.#i|=pn),r.unshift(n),r.provisional++,n}#P(e,r){for(let i=r.provisional;i<r.length;i++){let n=r[i];if((this.nocase?Ro(e.name):gn(e.name))===n.#_)return this.#U(e,n,i,r)}}#U(e,r,i,n){let s=r.name;return r.#i=r.#i&cn|df(e),s!==e.name&&(r.name=e.name),i!==n.provisional&&(i===n.length-1?n.pop():n.splice(i,1),n.unshift(r)),n.provisional++,r}async lstat(){if((this.#i&Ze)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#q(e.code)}}lstatSync(){if((this.#i&Ze)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#q(e.code)}}#$(e){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:f,gid:c,ino:h,mode:d,mtime:m,mtimeMs:p,nlink:S,rdev:y,size:b,uid:v}=e;this.#E=r,this.#y=i,this.#T=n,this.#d=s,this.#c=o,this.#s=a,this.#x=l,this.#g=u,this.#r=f,this.#S=c,this.#l=h,this.#n=d,this.#p=m,this.#m=p,this.#t=S,this.#u=y,this.#a=b,this.#o=v;let E=df(e);this.#i=this.#i&cn|E|g0,E!==ze&&E!==lt&&E!==_r&&(this.#i|=pn)}#z=[];#G=!1;#H(e){this.#G=!1;let r=this.#z.slice();this.#z.length=0,r.forEach(i=>i(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);r?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#z.push(e),this.#G)return;this.#G=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(s,o)=>{if(s)this.#F(s.code),i.provisional=0;else{for(let a of o)this.#j(a,i);this.#C(i)}this.#H(i.slice(0,i.provisional))})}#W;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();if(this.#W)await this.#W;else{let i=()=>{};this.#W=new Promise(n=>i=n);try{for(let n of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#j(n,e);this.#C(e)}catch(n){this.#F(n.code),e.provisional=0}this.#W=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#j(i,e);this.#C(e)}catch(i){this.#F(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&_0)return!1;let e=We&this.#i;return e===ze||e===lt||e===_r}shouldWalk(e,r){return(this.#i<)===lt&&!(this.#i&_0)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#D)return this.#D;if(!((Ao|To|Ze)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}realpathSync(){if(this.#D)return this.#D;if(!((Ao|To|Ze)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}[A0](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let r=new Set([]),i=[],n=this;for(;n&&n.parent;)r.add(n),n.#R=i.join(this.sep),n.#A=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!r.has(n);)n.#R=void 0,n.#A=void 0,n=n.parent}};H.PathBase=Se;var yn=class t extends Se{sep="\\";splitSep=P2;constructor(e,r=ze,i,n,s,o,a){super(e,r,i,n,s,o,a)}newChild(e,r=ze,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return Oo.win32.parse(e).root}getRoot(e){if(e=D2(e.toUpperCase()),e===this.root.name)return this.root;for(let[r,i]of Object.entries(this.roots))if(this.sameRoot(e,r))return this.roots[e]=i;return this.roots[e]=new wn(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(S0,"$1\\"),e===r}};H.PathWin32=yn;var mn=class t extends Se{splitSep="/";sep="/";constructor(e,r=ze,i,n,s,o,a){super(e,r,i,n,s,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=ze,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};H.PathPosix=mn;var bn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=dn}={}){this.#t=w0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,A2.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new _n,this.#r=new _n,this.#n=new Io(s);let l=a.substring(this.rootPath.length).split(i);if(l.length===1&&!l[0]&&l.pop(),n===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let u=this.root,f=l.length-1,c=r.sep,h=this.rootPath,d=!1;for(let m of l){let p=f--;u=u.child(m,{relative:new Array(p).fill("..").join(c),relativePosix:new Array(p).fill("..").join("/"),fullpath:h+=(d?"":c)+m}),d=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#e.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpath();return this.#e.set(r,n),n}resolvePosix(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#r.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,n),n}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i}=r;if(e.canReaddir()){let n=await e.readdir();return i?n:n.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0}=r;return e.canReaddir()?i?e.readdirSync():e.readdirSync().map(n=>n.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=await e.readlink();return r?i:i?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=e.readlinkSync();return r?i:i?.fullpath()}async realpath(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=await e.realpath();return r?i:i?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=e.realpathSync();return r?i:i?.fullpath()}async walk(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set,u=(c,h)=>{l.add(c),c.readdirCB((d,m)=>{if(d)return h(d);let p=m.length;if(!p)return h();let S=()=>{--p===0&&h()};for(let y of m)(!s||s(y))&&a.push(i?y:y.fullpath()),n&&y.isSymbolicLink()?y.realpath().then(b=>b?.isUnknown()?b.lstat():b).then(b=>b?.shouldWalk(l,o)?u(b,S):S()):y.shouldWalk(l,o)?u(y,S):S()},!0)},f=e;return new Promise((c,h)=>{u(f,d=>{if(d)return h(d);c(a)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set([e]);for(let u of l){let f=u.readdirSync();for(let c of f){(!s||s(c))&&a.push(i?c:c.fullpath());let h=c;if(c.isSymbolicLink()){if(!(n&&(h=c.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,o)&&l.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r;(!s||s(e))&&(yield i?e:e.fullpath());let a=new Set([e]);for(let l of a){let u=l.readdirSync();for(let f of u){(!s||s(f))&&(yield i?f:f.fullpath());let c=f;if(f.isSymbolicLink()){if(!(n&&(c=f.realpathSync())))continue;c.isUnknown()&&c.lstatSync()}c.shouldWalk(a,o)&&a.add(c)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new p0.Minipass({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let l=new Set,u=[e],f=0,c=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let m=(S,y,b=!1)=>{if(S)return a.emit("error",S);if(n&&!b){let v=[];for(let E of y)E.isSymbolicLink()&&v.push(E.realpath().then(T=>T?.isUnknown()?T.lstat():T));if(v.length){Promise.all(v).then(()=>m(null,y,!0));return}}for(let v of y)v&&(!s||s(v))&&(a.write(i?v:v.fullpath())||(h=!0));f--;for(let v of y){let E=v.realpathCached()||v;E.shouldWalk(l,o)&&u.push(E)}h&&!a.flowing?a.once("drain",c):p||c()},p=!0;d.readdirCB(m,!0),p=!1}};return c(),a}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new p0.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],f=0,c=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let m=d.readdirSync();for(let p of m)(!s||s(p))&&(a.write(i?p:p.fullpath())||(h=!0));f--;for(let p of m){let S=p;if(p.isSymbolicLink()){if(!(n&&(S=p.realpathSync())))continue;S.isUnknown()&&S.lstatSync()}S.shouldWalk(l,o)&&u.push(S)}}h&&!a.flowing&&a.once("drain",c)};return c(),a}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[A0](r)}};H.PathScurryBase=bn;var wn=class extends bn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,Oo.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return Oo.win32.parse(e).root.toUpperCase()}newRoot(e){return new yn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};H.PathScurryWin32=wn;var Sn=class extends bn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,Oo.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new mn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};H.PathScurryPosix=Sn;var Do=class extends Sn{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};H.PathScurryDarwin=Do;H.Path=process.platform==="win32"?yn:mn;H.PathScurry=process.platform==="win32"?wn:process.platform==="darwin"?Do:Sn});var gf=g(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.Pattern=void 0;var N2=Ft(),C2=t=>t.length>=1,k2=t=>t.length>=1,pf=class t{#e;#r;#n;length;#t;#o;#S;#u;#c;#l;#a=!0;constructor(e,r,i,n){if(!C2(e))throw new TypeError("empty pattern list");if(!k2(r))throw new TypeError("empty glob list");if(r.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#r=r,this.#n=i,this.#t=n,this.#n===0){if(this.isUNC()){let[s,o,a,l,...u]=this.#e,[f,c,h,d,...m]=this.#r;u[0]===""&&(u.shift(),m.shift());let p=[s,o,a,l,""].join("/"),S=[f,c,h,d,""].join("/");this.#e=[p,...u],this.#r=[S,...m],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...l]=this.#r;o[0]===""&&(o.shift(),l.shift());let u=s+"/",f=a+"/";this.#e=[u,...o],this.#r=[f,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===N2.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#S=this.#S||(this.#n===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new t(this.#e,this.#r,this.#n+1,this.#t),this.#o.#l=this.#l,this.#o.#c=this.#c,this.#o.#u=this.#u,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#t==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#t==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#a)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#a?!1:(this.#a=!1,!0)}};Po.Pattern=pf});var yf=g(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.Ignore=void 0;var I0=Ft(),M2=gf(),F2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",_f=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=F2}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:i,noext:n,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let r=new I0.Minimatch(e,this.mmopts);for(let i=0;i<r.set.length;i++){let n=r.set[i],s=r.globParts[i];if(!n||!s)throw new Error("invalid pattern object");for(;n[0]==="."&&s[0]===".";)n.shift(),s.shift();let o=new M2.Pattern(n,s,0,this.platform),a=new I0.Minimatch(o.globString(),this.mmopts),l=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),l&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let r=e.fullpath(),i=`${r}/`,n=e.relative()||".",s=`${n}/`;for(let o of this.relative)if(o.match(n)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(i))return!0;return!1}childrenIgnored(e){let r=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let n of this.relativeChildren)if(n.match(i))return!0;for(let n of this.absoluteChildren)if(n.match(r))return!0;return!1}};Lo.Ignore=_f});var P0=g(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.Processor=ut.SubWalks=ut.MatchRecord=ut.HasWalkedCache=void 0;var D0=Ft(),No=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let i=e.fullpath(),n=this.store.get(i);n?n.add(r.globString()):this.store.set(i,new Set([r.globString()]))}};ut.HasWalkedCache=No;var Co=class{store=new Map;add(e,r,i){let n=(r?2:0)|(i?1:0),s=this.store.get(e);this.store.set(e,s===void 0?n:n&s)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};ut.MatchRecord=Co;var ko=class{store=new Map;add(e,r){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(n=>n.globString()===r.globString())||i.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};ut.SubWalks=ko;var mf=class t{hasWalkedCache;matches=new Co;subwalks=new ko;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new No}processPatterns(e,r){this.patterns=r;let i=r.map(n=>[e,n]);for(let[n,s]of i){this.hasWalkedCache.storeWalked(n,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){n=n.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let c=s.rest();if(c)s=c;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let l,u,f=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)n=n.resolve(l),s=u,f=!0;if(l=s.pattern(),u=s.rest(),f){if(this.hasWalkedCache.hasWalked(n,s))continue;this.hasWalkedCache.storeWalked(n,s)}if(typeof l=="string"){let c=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,c);continue}else if(l===D0.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let c=u?.pattern(),h=u?.rest();if(!u||(c===""||c===".")&&!h)this.matches.add(n,a,c===""||c===".");else if(c===".."){let d=n.parent||n;h?this.hasWalkedCache.hasWalked(d,h)||this.subwalks.add(d,h):this.matches.add(d,a,!0)}}else l instanceof RegExp&&this.subwalks.add(n,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let i=this.subwalks.get(e),n=this.child();for(let s of r)for(let o of i){let a=o.isAbsolute(),l=o.pattern(),u=o.rest();l===D0.GLOBSTAR?n.testGlobstar(s,o,u,a):l instanceof RegExp?n.testRegExp(s,l,u,a):n.testString(s,l,u,a)}return n}testGlobstar(e,r,i,n){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(i&&r.checkFollowGlobstar()?this.subwalks.add(e,i):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),i){let s=i.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,i.rest(),n);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,i)}else s instanceof RegExp&&this.testRegExp(e,s,i.rest(),n)}}testRegExp(e,r,i,n){r.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}testString(e,r,i,n){e.isNamed(r)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}};ut.Processor=mf});var C0=g(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.GlobStream=Bt.GlobWalker=Bt.GlobUtil=void 0;var q2=cf(),L0=yf(),N0=P0(),j2=(t,e)=>typeof t=="string"?new L0.Ignore([t],e):Array.isArray(t)?new L0.Ignore(t,e):t,En=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#n;signal;maxDepth;includeChildMatches;constructor(e,r,i){if(this.patterns=e,this.path=r,this.opts=i,this.#n=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#r=j2(i.ignore??[],i),!this.includeChildMatches&&typeof this.#r.add!="function")){let n="cannot ignore child matches, ignore lacks add() method.";throw new Error(n)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#r?.ignored?.(e)}#o(e){return!!this.#r?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(e,r){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!r||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(e,r){if(this.#t(e))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${e.relativePosix()}/**`;this.#r.add(s)}let i=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(e);let n=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+n)}else{let s=this.opts.posix?e.relativePosix():e.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(s?o+s+n:"."+n)}}async match(e,r,i){let n=await this.matchCheck(e,i);n&&this.matchFinish(n,r)}matchSync(e,r,i){let n=this.matchCheckSync(e,i);n&&this.matchFinish(n,r)}walkCB(e,r,i){this.signal?.aborted&&i(),this.walkCB2(e,r,new N0.Processor(this.opts),i)}walkCB2(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,i,o):a.readdirCB((u,f)=>this.walkCB3(a,f,i,o),!0)}o()}walkCB3(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let[a,l]of i.subwalks.entries())s++,this.walkCB2(a,l,i.child(),o);o()}walkCBSync(e,r,i){this.signal?.aborted&&i(),this.walkCB2Sync(e,r,new N0.Processor(this.opts),i)}walkCB2Sync(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2Sync(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirSync();this.walkCB3Sync(a,l,i,o)}o()}walkCB3Sync(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let[a,l]of i.subwalks.entries())s++,this.walkCB2Sync(a,l,i.child(),o);o()}};Bt.GlobUtil=En;var bf=class extends En{matches=new Set;constructor(e,r,i){super(e,r,i)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};Bt.GlobWalker=bf;var wf=class extends En{results;constructor(e,r,i){super(e,r,i),this.results=new q2.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};Bt.GlobStream=wf});var Ef=g(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.Glob=void 0;var B2=Ft(),U2=P("url"),Mo=O0(),W2=gf(),Fo=C0(),z2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Sf=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,U2.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=r.platform||z2,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=r.platform==="win32"?Mo.PathScurryWin32:r.platform==="darwin"?Mo.PathScurryDarwin:r.platform?Mo.PathScurryPosix:Mo.PathScurry;this.scurry=new l(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",n={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new B2.Minimatch(l,n)),[o,a]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=o.map((l,u)=>{let f=a[u];if(!f)throw new Error("invalid pattern object");return new W2.Pattern(l,f,0,this.platform)})}async walk(){return[...await new Fo.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Fo.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Fo.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Fo.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};qo.Glob=Sf});var vf=g(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.hasMagic=void 0;var G2=Ft(),$2=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new G2.Minimatch(r,e).hasMagic())return!0;return!1};jo.hasMagic=$2});var q0=g(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.glob=U.sync=U.iterate=U.iterateSync=U.stream=U.streamSync=U.Ignore=U.hasMagic=U.Glob=U.unescape=U.escape=void 0;U.globStreamSync=vn;U.globStream=xf;U.globSync=Tf;U.globIterateSync=xn;U.globIterate=Rf;var k0=Ft(),yr=Ef(),H2=vf(),F0=Ft();Object.defineProperty(U,"escape",{enumerable:!0,get:function(){return F0.escape}});Object.defineProperty(U,"unescape",{enumerable:!0,get:function(){return F0.unescape}});var V2=Ef();Object.defineProperty(U,"Glob",{enumerable:!0,get:function(){return V2.Glob}});var Y2=vf();Object.defineProperty(U,"hasMagic",{enumerable:!0,get:function(){return Y2.hasMagic}});var K2=yf();Object.defineProperty(U,"Ignore",{enumerable:!0,get:function(){return K2.Ignore}});function vn(t,e={}){return new yr.Glob(t,e).streamSync()}function xf(t,e={}){return new yr.Glob(t,e).stream()}function Tf(t,e={}){return new yr.Glob(t,e).walkSync()}async function M0(t,e={}){return new yr.Glob(t,e).walk()}function xn(t,e={}){return new yr.Glob(t,e).iterateSync()}function Rf(t,e={}){return new yr.Glob(t,e).iterate()}U.streamSync=vn;U.stream=Object.assign(xf,{sync:vn});U.iterateSync=xn;U.iterate=Object.assign(Rf,{sync:xn});U.sync=Object.assign(Tf,{stream:vn,iterate:xn});U.glob=Object.assign(M0,{glob:M0,globSync:Tf,sync:U.sync,globStream:xf,stream:U.stream,globStreamSync:vn,streamSync:U.streamSync,globIterate:Rf,iterate:U.iterate,globIterateSync:xn,iterateSync:U.iterateSync,Glob:yr.Glob,hasMagic:H2.hasMagic,escape:k0.escape,unescape:k0.unescape});U.glob.glob=U.glob});var W0=g((aU,U0)=>{"use strict";var B0=Va(),ni=P("path"),Af=cb(),Z2=Rw(),Q2=Fw(),X2=Gw(),J2=q0(),mr=U0.exports={},j0=/[\/\\]/g,eF=function(t,e){var r=[];return Af(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=Z2(r,s):r=Q2(r,s)}),r};mr.exists=function(){var t=ni.join.apply(ni,arguments);return B0.existsSync(t)};mr.expand=function(...t){var e=X2(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=eF(r,function(n){return J2.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=ni.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):B0.statSync(n)[e.filter]()}catch{return!1}})),i};mr.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return ni.join(s||"",o)}},r);var i=[],n={};return mr.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=ni.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=ni.join(r.cwd,s)),a=a.replace(j0,"/"),s=s.replace(j0,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};mr.normalizeFilesArray=function(t){var e=[];return t.forEach(function(r){var i;("src"in r||"dest"in r)&&e.push(r)}),e.length===0?[]:(e=_(e).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=Af(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return mr.expandMapping(r.src,r.dest,i).map(function(s){var o=Object.assign({},r);return o.orig=Object.assign({},r),o.src=s.src,o.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(a){delete o[a]}),o});var n=Object.assign({},r);return n.orig=Object.assign({},r),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function s(){var o;return"result"in s||(o=r.src,o=Array.isArray(o)?Af(o):[o],s.result=mr.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var si=g((uU,$0)=>{"use strict";var Of=Va(),z0=P("path"),tF=ns(),rF=pp(),G0=yl(),iF=Yg(),lU=P("stream").Stream,nF=dr().PassThrough,ke=$0.exports={};ke.file=W0();ke.collectStream=function(t,e){var r=[],i=0;t.on("error",e),t.on("data",function(n){r.push(n),i+=n.length}),t.on("end",function(){var n=Buffer.alloc(i),s=0;r.forEach(function(o){o.copy(n,s),s+=o.length}),e(null,n)})};ke.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};ke.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},iF(...i)};ke.isStream=function(t){return tF(t)};ke.lazyReadStream=function(t){return new rF.Readable(function(){return Of.createReadStream(t)})};ke.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):ke.isStream(t)?t.pipe(new nF):t};ke.sanitizePath=function(t){return G0(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};ke.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};ke.unixifyPath=function(t){return G0(t,!1).replace(/^\w+:/,"")};ke.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Of.readdir(t,function(n,s){var o=0,a,l;if(n)return r(n);(function u(){if(a=s[o++],!a)return r(null,i);l=z0.join(t,a),Of.stat(l,function(f,c){i.push({path:l,relative:z0.relative(e,l).replace(/\\/g,"/"),stats:c}),c&&c.isDirectory()?ke.walkdir(l,e,function(h,d){if(h)return r(h);d.forEach(function(m){i.push(m)}),u()}):u()})})()})}});var K0=g((V0,Y0)=>{"use strict";var sF=P("util"),oF={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function H0(t,e){Error.captureStackTrace(this,this.constructor),this.message=oF[t]||t,this.code=t,this.data=e}sF.inherits(H0,Error);V0=Y0.exports=H0});var eS=g((fU,J0)=>{"use strict";var Pf=P("fs"),Q0=ah(),Z0=(od(),ev(sd)),If=P("path"),ft=si(),aF=P("util").inherits,ae=K0(),X0=dr().Transform,Df=process.platform==="win32",G=function(t,e){if(!(this instanceof G))return new G(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=ft.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),X0.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=Z0.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=Z0.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};aF(G,X0);G.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};G.prototype._append=function(t,e){e=e||{};var r={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof Pf.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};G.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};G.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};G.prototype._moduleAppend=function(t,e,r){if(this._state.aborted){r();return}this._module.append(t,e,function(i){if(this._task=null,this._state.aborted){this._shutdown();return}if(i){this.emit("error",i),setImmediate(r);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}.bind(this))};G.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new ae("NOENDMETHOD"))};G.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};G.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};G.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};G.prototype._normalizeEntryData=function(t,e){t=ft.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var r=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=ft.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?Df?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(Df?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,Df&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=ft.dateify(t.date),t};G.prototype._onModuleError=function(t){this.emit("error",t)};G.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};G.prototype._onQueueTask=function(t,e){var r=()=>{t.data.callback&&t.data.callback(),e()};if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}this._task=t,this._moduleAppend(t.source,t.data,r)};G.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}Pf.lstat(t.filepath,function(r,i){if(this._state.aborted){setImmediate(e);return}if(r){this._entriesCount--,this.emit("warning",r),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,i),t&&(i.size&&(this._fsEntriesTotalBytes+=i.size),this._queue.push(t)),setImmediate(e)}.bind(this))};G.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};G.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};G.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=ft.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=ft.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=ft.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=Pf.readlinkSync(t.filepath),i=If.dirname(t.filepath);t.data.type="symlink",t.data.linkname=If.relative(i,If.resolve(i,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new ae("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new ae("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new ae("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};G.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};G.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new ae("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new ae("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=ft.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(ft.isStream(t))e.sourceType="stream";else return this.emit("error",new ae("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};G.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var i=!1;typeof r=="function"?(i=r,r={}):typeof r!="object"&&(r={});var n={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}function o(u){this.emit("error",u)}function a(u){l.pause();var f=!1,c=Object.assign({},r);c.name=u.relative,c.prefix=e,c.stats=u.stat,c.callback=l.resume.bind(l);try{if(i){if(c=i(c),c===!1)f=!0;else if(typeof c!="object")throw new ae("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(h){this.emit("error",h);return}if(f){l.resume();return}this._append(u.absolute,c)}var l=Q0(t,n);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};G.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new ae("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new ae("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};G.prototype.glob=function(t,e,r){this._pending++,e=ft.defaults(e,{stat:!0,pattern:t});function i(){this._pending--,this._maybeFinalize()}function n(a){this.emit("error",a)}function s(a){o.pause();var l=Object.assign({},r);l.callback=o.resume.bind(o),l.stats=a.stat,l.name=a.relative,this._append(a.absolute,l)}var o=Q0(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};G.prototype.finalize=function(){if(this._state.aborted){var t=new ae("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new ae("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(i,n){var s;r._module.on("end",function(){s||i()}),r._module.on("error",function(o){s=!0,n(o)})})};G.prototype.setFormat=function(t){return this._format?(this.emit("error",new ae("FORMATSET")),this):(this._format=t,this)};G.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new ae("ABORTED")),this):this._state.module?(this.emit("error",new ae("MODULESET")),this):(this._module=t,this._modulePipe(),this)};G.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new ae("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new ae("SYMLINKNOTSUPPORTED",{filepath:t})),this;var i={};return i.type="symlink",i.name=t.replace(/\\/g,"/"),i.linkname=e.replace(/\\/g,"/"),i.sourceType="buffer",typeof r=="number"&&(i.mode=r),this._entriesCount++,this._queue.push({data:i,source:Buffer.concat([])}),this};G.prototype.pointer=function(){return this._pointer};G.prototype.use=function(t){return this._streams.push(t),this};J0.exports=G});var Uo=g((cU,tS)=>{"use strict";var Bo=tS.exports=function(){};Bo.prototype.getName=function(){};Bo.prototype.getSize=function(){};Bo.prototype.getLastModifiedDate=function(){};Bo.prototype.isDirectory=function(){}});var Wo=g((hU,rS)=>{"use strict";var Ge=rS.exports={};Ge.dateToDos=function(t,e){e=e||!1;var r=e?t.getFullYear():t.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 2141175677;var i={year:r,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return i.year-1980<<25|i.month+1<<21|i.date<<16|i.hours<<11|i.minutes<<5|i.seconds/2};Ge.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};Ge.fromDosTime=function(t){return Ge.dosToDate(t.readUInt32LE(0))};Ge.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};Ge.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};Ge.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};Ge.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};Ge.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};Ge.toDosTime=function(t){return Ge.getLongBytes(Ge.dateToDos(t))}});var Lf=g((dU,lS)=>{"use strict";var iS=Wo(),nS=8,sS=1,lF=4,uF=2,oS=64,aS=2048,Ee=lS.exports=function(){return this instanceof Ee?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Ee};Ee.prototype.encode=function(){return iS.getShortBytes((this.descriptor?nS:0)|(this.utf8?aS:0)|(this.encryption?sS:0)|(this.strongEncryption?oS:0))};Ee.prototype.parse=function(t,e){var r=iS.getShortBytesValue(t,e),i=new Ee;return i.useDataDescriptor((r&nS)!==0),i.useUTF8ForNames((r&aS)!==0),i.useStrongEncryption((r&oS)!==0),i.useEncryption((r&sS)!==0),i.setSlidingDictionarySize((r&uF)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&lF)!==0?3:2),i};Ee.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Ee.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Ee.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Ee.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Ee.prototype.useDataDescriptor=function(t){this.descriptor=t};Ee.prototype.usesDataDescriptor=function(){return this.descriptor};Ee.prototype.useEncryption=function(t){this.encryption=t};Ee.prototype.usesEncryption=function(){return this.encryption};Ee.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Ee.prototype.usesStrongEncryption=function(){return this.strongEncryption};Ee.prototype.useUTF8ForNames=function(t){this.utf8=t};Ee.prototype.usesUTF8ForNames=function(){return this.utf8}});var fS=g((pU,uS)=>{"use strict";uS.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var Nf=g((gU,cS)=>{"use strict";cS.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var Cf=g((_U,_S)=>{"use strict";var fF=P("util").inherits,cF=yl(),dS=Uo(),pS=Lf(),hS=fS(),Pe=Nf(),gS=Wo(),q=_S.exports=function(t){if(!(this instanceof q))return new q(t);dS.call(this),this.platform=Pe.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new pS,this.crc=0,this.time=-1,this.minver=Pe.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};fF(q,dS);q.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};q.prototype.getComment=function(){return this.comment!==null?this.comment:""};q.prototype.getCompressedSize=function(){return this.csize};q.prototype.getCrc=function(){return this.crc};q.prototype.getExternalAttributes=function(){return this.exattr};q.prototype.getExtra=function(){return this.extra!==null?this.extra:Pe.EMPTY};q.prototype.getGeneralPurposeBit=function(){return this.gpb};q.prototype.getInternalAttributes=function(){return this.inattr};q.prototype.getLastModifiedDate=function(){return this.getTime()};q.prototype.getLocalFileDataExtra=function(){return this.getExtra()};q.prototype.getMethod=function(){return this.method};q.prototype.getName=function(){return this.name};q.prototype.getPlatform=function(){return this.platform};q.prototype.getSize=function(){return this.size};q.prototype.getTime=function(){return this.time!==-1?gS.dosToDate(this.time):-1};q.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};q.prototype.getUnixMode=function(){return this.platform!==Pe.PLATFORM_UNIX?0:this.getExternalAttributes()>>Pe.SHORT_SHIFT&Pe.SHORT_MASK};q.prototype.getVersionNeededToExtract=function(){return this.minver};q.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};q.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};q.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};q.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};q.prototype.setExtra=function(t){this.extra=t};q.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof pS))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};q.prototype.setInternalAttributes=function(t){this.inattr=t};q.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};q.prototype.setName=function(t,e=!1){t=cF(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};q.prototype.setPlatform=function(t){this.platform=t};q.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};q.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=gS.dateToDos(t,e)};q.prototype.setUnixMode=function(t){t|=this.isDirectory()?Pe.S_IFDIR:Pe.S_IFREG;var e=0;e|=t<<Pe.SHORT_SHIFT|(this.isDirectory()?Pe.S_DOS_D:Pe.S_DOS_A),this.setExternalAttributes(e),this.mode=t&Pe.MODE_MASK,this.platform=Pe.PLATFORM_UNIX};q.prototype.setVersionNeededToExtract=function(t){this.minver=t};q.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};q.prototype.isUnixSymlink=function(){return(this.getUnixMode()&hS.FILE_TYPE_FLAG)===hS.LINK_FLAG};q.prototype.isZip64=function(){return this.csize>Pe.ZIP64_MAGIC||this.size>Pe.ZIP64_MAGIC}});var kf=g((mU,yS)=>{"use strict";var yU=P("stream").Stream,hF=dr().PassThrough,dF=ns(),pF=yS.exports={};pF.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(dF(t)&&!t._readableState){var e=new hF;return t.pipe(e),e}return t}});var Ff=g((bU,mS)=>{"use strict";var gF=P("util").inherits,_F=ns(),Mf=dr().Transform,yF=Uo(),mF=kf(),Me=mS.exports=function(t){if(!(this instanceof Me))return new Me(t);Mf.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};gF(Me,Mf);Me.prototype._appendBuffer=function(t,e,r){};Me.prototype._appendStream=function(t,e,r){};Me.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};Me.prototype._finish=function(t){};Me.prototype._normalizeEntry=function(t){};Me.prototype._transform=function(t,e,r){r(null,t)};Me.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof yF)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=mF.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(_F(e))this._appendStream(t,e,r);else{this._archive.processing=!1,r(new Error("input source must be valid Stream or Buffer instance"));return}return this};Me.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};Me.prototype.getBytesWritten=function(){return this.offset};Me.prototype.write=function(t,e){return t&&(this.offset+=t.length),Mf.prototype.write.call(this,t,e)}});var zo=g(qf=>{"use strict";var bS;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof qf=="object"?t(qf):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(bS={}):t(bS={})})(function(t){t.version="1.2.2";function e(){for(var x=0,O=new Array(256),w=0;w!=256;++w)x=w,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,O[w]=x;return typeof Int32Array<"u"?new Int32Array(O):O}var r=e();function i(x){var O=0,w=0,R=0,A=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(R=0;R!=256;++R)A[R]=x[R];for(R=0;R!=256;++R)for(w=x[R],O=256+R;O<4096;O+=256)w=A[O]=w>>>8^x[w&255];var N=[];for(R=1;R!=16;++R)N[R-1]=typeof Int32Array<"u"?A.subarray(R*256,R*256+256):A.slice(R*256,R*256+256);return N}var n=i(r),s=n[0],o=n[1],a=n[2],l=n[3],u=n[4],f=n[5],c=n[6],h=n[7],d=n[8],m=n[9],p=n[10],S=n[11],y=n[12],b=n[13],v=n[14];function E(x,O){for(var w=O^-1,R=0,A=x.length;R<A;)w=w>>>8^r[(w^x.charCodeAt(R++))&255];return~w}function T(x,O){for(var w=O^-1,R=x.length-15,A=0;A<R;)w=v[x[A++]^w&255]^b[x[A++]^w>>8&255]^y[x[A++]^w>>16&255]^S[x[A++]^w>>>24]^p[x[A++]]^m[x[A++]]^d[x[A++]]^h[x[A++]]^c[x[A++]]^f[x[A++]]^u[x[A++]]^l[x[A++]]^a[x[A++]]^o[x[A++]]^s[x[A++]]^r[x[A++]];for(R+=15;A<R;)w=w>>>8^r[(w^x[A++])&255];return~w}function D(x,O){for(var w=O^-1,R=0,A=x.length,N=0,z=0;R<A;)N=x.charCodeAt(R++),N<128?w=w>>>8^r[(w^N)&255]:N<2048?(w=w>>>8^r[(w^(192|N>>6&31))&255],w=w>>>8^r[(w^(128|N&63))&255]):N>=55296&&N<57344?(N=(N&1023)+64,z=x.charCodeAt(R++)&1023,w=w>>>8^r[(w^(240|N>>8&7))&255],w=w>>>8^r[(w^(128|N>>2&63))&255],w=w>>>8^r[(w^(128|z>>6&15|(N&3)<<4))&255],w=w>>>8^r[(w^(128|z&63))&255]):(w=w>>>8^r[(w^(224|N>>12&15))&255],w=w>>>8^r[(w^(128|N>>6&63))&255],w=w>>>8^r[(w^(128|N&63))&255]);return~w}t.table=r,t.bstr=E,t.buf=T,t.str=D})});var SS=g((SU,wS)=>{"use strict";var{Transform:bF}=dr(),wF=zo(),jf=class extends bF{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=wF.buf(e,this.checksum)>>>0,this.rawSize+=e.length),i(null,e)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};wS.exports=jf});var vS=g((EU,ES)=>{"use strict";var{DeflateRaw:SF}=P("zlib"),EF=zo(),Bf=class extends SF{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,r){return e&&(this.compressedSize+=e.length),super.push(e,r)}_transform(e,r,i){e&&(this.checksum=EF.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,r,i)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};ES.exports=Bf});var Uf=g((vU,xS)=>{"use strict";xS.exports={CRC32Stream:SS(),DeflateCRC32Stream:vS()}});var AS=g((AU,RS)=>{"use strict";var vF=P("util").inherits,xF=zo(),{CRC32Stream:TF}=Uf(),{DeflateCRC32Stream:RF}=Uf(),TS=Ff(),xU=Cf(),TU=Lf(),C=Nf(),RU=kf(),L=Wo(),_e=RS.exports=function(t){if(!(this instanceof _e))return new _e(t);t=this.options=this._defaults(t),TS.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};vF(_e,TS);_e.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};_e.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(C.METHOD_STORED);var i=t.getMethod();if(i===C.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(xF.buf(e)>>>0)),this._writeLocalFileHeader(t),i===C.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(i===C.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+i+" not implemented"));return}};_e.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var i=this._smartStream(t,r);e.once("error",function(n){i.emit("error",n),i.end()}),e.pipe(i)};_e.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=C.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};_e.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};_e.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(C.METHOD_DEFLATED),t.getMethod()===C.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};_e.prototype._smartStream=function(t,e){var r=t.getMethod()===C.METHOD_DEFLATED,i=r?new RF(this.options.zlib):new TF,n=null;function s(){var o=i.digest().readUInt32BE(0);t.setCrc(o),t.setSize(i.size()),t.setCompressedSize(i.size(!0)),this._afterAppend(t),e(n,t)}return i.once("end",s.bind(this)),i.once("error",function(o){n=o}),i.pipe(this,{end:!1}),i};_e.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=C.ZIP64_MAGIC_SHORT,e=C.ZIP64_MAGIC,r=C.ZIP64_MAGIC),this.write(L.getLongBytes(C.SIG_EOCD)),this.write(C.SHORT_ZERO),this.write(C.SHORT_ZERO),this.write(L.getShortBytes(t)),this.write(L.getShortBytes(t)),this.write(L.getLongBytes(e)),this.write(L.getLongBytes(r));var i=this.getComment(),n=Buffer.byteLength(i);this.write(L.getShortBytes(n)),this.write(i)};_e.prototype._writeCentralDirectoryZip64=function(){this.write(L.getLongBytes(C.SIG_ZIP64_EOCD)),this.write(L.getEightBytes(44)),this.write(L.getShortBytes(C.MIN_VERSION_ZIP64)),this.write(L.getShortBytes(C.MIN_VERSION_ZIP64)),this.write(C.LONG_ZERO),this.write(C.LONG_ZERO),this.write(L.getEightBytes(this._entries.length)),this.write(L.getEightBytes(this._entries.length)),this.write(L.getEightBytes(this._archive.centralLength)),this.write(L.getEightBytes(this._archive.centralOffset)),this.write(L.getLongBytes(C.SIG_ZIP64_EOCD_LOC)),this.write(C.LONG_ZERO),this.write(L.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(L.getLongBytes(1))};_e.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t._offsets.file,n=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||i>C.ZIP64_MAGIC){n=C.ZIP64_MAGIC,s=C.ZIP64_MAGIC,i=C.ZIP64_MAGIC,t.setVersionNeededToExtract(C.MIN_VERSION_ZIP64);var o=Buffer.concat([L.getShortBytes(C.ZIP64_EXTRA_ID),L.getShortBytes(24),L.getEightBytes(t.getSize()),L.getEightBytes(t.getCompressedSize()),L.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write(L.getLongBytes(C.SIG_CFH)),this.write(L.getShortBytes(t.getPlatform()<<8|C.VERSION_MADEBY)),this.write(L.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(L.getShortBytes(r)),this.write(L.getLongBytes(t.getTimeDos())),this.write(L.getLongBytes(t.getCrc())),this.write(L.getLongBytes(s)),this.write(L.getLongBytes(n));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write(L.getShortBytes(a.length)),this.write(L.getShortBytes(u.length)),this.write(L.getShortBytes(l.length)),this.write(C.SHORT_ZERO),this.write(L.getShortBytes(t.getInternalAttributes())),this.write(L.getLongBytes(t.getExternalAttributes())),this.write(L.getLongBytes(i)),this.write(a),this.write(u),this.write(l)};_e.prototype._writeDataDescriptor=function(t){this.write(L.getLongBytes(C.SIG_DD)),this.write(L.getLongBytes(t.getCrc())),t.isZip64()?(this.write(L.getEightBytes(t.getCompressedSize())),this.write(L.getEightBytes(t.getSize()))):(this.write(L.getLongBytes(t.getCompressedSize())),this.write(L.getLongBytes(t.getSize())))};_e.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t.getName(),n=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(i=Buffer.from(i)),t._offsets.file=this.offset,this.write(L.getLongBytes(C.SIG_LFH)),this.write(L.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(L.getShortBytes(r)),this.write(L.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(C.LONG_ZERO),this.write(C.LONG_ZERO),this.write(C.LONG_ZERO)):(this.write(L.getLongBytes(t.getCrc())),this.write(L.getLongBytes(t.getCompressedSize())),this.write(L.getLongBytes(t.getSize()))),this.write(L.getShortBytes(i.length)),this.write(L.getShortBytes(n.length)),this.write(i),this.write(n),t._offsets.contents=this.offset};_e.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};_e.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>C.ZIP64_MAGIC_SHORT||this._archive.centralLength>C.ZIP64_MAGIC||this._archive.centralOffset>C.ZIP64_MAGIC};_e.prototype.setComment=function(t){this._archive.comment=t}});var Wf=g((OU,OS)=>{"use strict";OS.exports={ArchiveEntry:Uo(),ZipArchiveEntry:Cf(),ArchiveOutputStream:Ff(),ZipArchiveOutputStream:AS()}});var DS=g((IU,IS)=>{"use strict";var AF=P("util").inherits,Gf=Wf().ZipArchiveOutputStream,OF=Wf().ZipArchiveEntry,zf=si(),oi=IS.exports=function(t){if(!(this instanceof oi))return new oi(t);t=this.options=t||{},t.zlib=t.zlib||{},Gf.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};AF(oi,Gf);oi.prototype._normalizeFileData=function(t){t=zf.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var e=t.type==="directory",r=t.type==="symlink";return t.name&&(t.name=zf.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=zf.dateify(t.date),t};oi.prototype.entry=function(t,e,r){if(typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){r(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var i=new OF(e.name);return i.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&i.setName(e.name,!0),e.store&&i.setMethod(0),e.comment.length>0&&i.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),i.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),Gf.prototype.entry.call(this,i,t,r)};oi.prototype.finalize=function(){this.finish()}});var LS=g((DU,PS)=>{"use strict";var IF=DS(),DF=si(),Ut=function(t){if(!(this instanceof Ut))return new Ut(t);t=this.options=DF.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new IF(t)};Ut.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};Ut.prototype.finalize=function(){this.engine.finalize()};Ut.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Ut.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Ut.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};PS.exports=Ut});var CS=g((PU,NS)=>{"use strict";NS.exports=P("events")});var MS=g((NU,kS)=>{"use strict";kS.exports=class{constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var $f=g((kU,qS)=>{"use strict";var FS=MS();qS.exports=class{constructor(e){this.hwm=e||16,this.head=new FS(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let r=this.head;this.head=r.next=new FS(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let r=this.tail.next;return this.tail.next=null,this.tail=r,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var Hf=g((MU,jS)=>{"use strict";function PF(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function LF(t){return Buffer.isEncoding(t)}function NF(t,e,r){return Buffer.alloc(t,e,r)}function CF(t){return Buffer.allocUnsafe(t)}function kF(t){return Buffer.allocUnsafeSlow(t)}function MF(t,e){return Buffer.byteLength(t,e)}function FF(t,e){return Buffer.compare(t,e)}function qF(t,e){return Buffer.concat(t,e)}function jF(t,e,r,i,n){return Y(t).copy(e,r,i,n)}function BF(t,e){return Y(t).equals(e)}function UF(t,e,r,i,n){return Y(t).fill(e,r,i,n)}function WF(t,e,r){return Buffer.from(t,e,r)}function zF(t,e,r,i){return Y(t).includes(e,r,i)}function GF(t,e,r,i){return Y(t).indexOf(e,r,i)}function $F(t,e,r,i){return Y(t).lastIndexOf(e,r,i)}function HF(t){return Y(t).swap16()}function VF(t){return Y(t).swap32()}function YF(t){return Y(t).swap64()}function Y(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function KF(t,e,r,i){return Y(t).toString(e,r,i)}function ZF(t,e,r,i,n){return Y(t).write(e,r,i,n)}function QF(t,e){return Y(t).readDoubleBE(e)}function XF(t,e){return Y(t).readDoubleLE(e)}function JF(t,e){return Y(t).readFloatBE(e)}function eq(t,e){return Y(t).readFloatLE(e)}function tq(t,e){return Y(t).readInt32BE(e)}function rq(t,e){return Y(t).readInt32LE(e)}function iq(t,e){return Y(t).readUInt32BE(e)}function nq(t,e){return Y(t).readUInt32LE(e)}function sq(t,e,r){return Y(t).writeDoubleBE(e,r)}function oq(t,e,r){return Y(t).writeDoubleLE(e,r)}function aq(t,e,r){return Y(t).writeFloatBE(e,r)}function lq(t,e,r){return Y(t).writeFloatLE(e,r)}function uq(t,e,r){return Y(t).writeInt32BE(e,r)}function fq(t,e,r){return Y(t).writeInt32LE(e,r)}function cq(t,e,r){return Y(t).writeUInt32BE(e,r)}function hq(t,e,r){return Y(t).writeUInt32LE(e,r)}jS.exports={isBuffer:PF,isEncoding:LF,alloc:NF,allocUnsafe:CF,allocUnsafeSlow:kF,byteLength:MF,compare:FF,concat:qF,copy:jF,equals:BF,fill:UF,from:WF,includes:zF,indexOf:GF,lastIndexOf:$F,swap16:HF,swap32:VF,swap64:YF,toBuffer:Y,toString:KF,write:ZF,readDoubleBE:QF,readDoubleLE:XF,readFloatBE:JF,readFloatLE:eq,readInt32BE:tq,readInt32LE:rq,readUInt32BE:iq,readUInt32LE:nq,writeDoubleBE:sq,writeDoubleLE:oq,writeFloatBE:aq,writeFloatLE:lq,writeInt32BE:uq,writeInt32LE:fq,writeUInt32BE:cq,writeUInt32LE:hq}});var US=g((qU,BS)=>{"use strict";var dq=Hf();BS.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return dq.toString(e,this.encoding)}flush(){return""}}});var $S=g((BU,GS)=>{"use strict";var WS=Hf();GS.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&zS(e,0)===0)return this.bytesSeen=pq(e),WS.toString(e,"utf8");let r="",i=0;if(this.bytesNeeded>0){for(;i<e.byteLength;){let o=e[i];if(o<this.lowerBoundary||o>this.upperBoundary){r+="\uFFFD",this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|o&63,this.bytesSeen++,i++,this.bytesSeen===this.bytesNeeded){r+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return r}let n=zS(e,i),s=e.byteLength-n;s>i&&(r+=WS.toString(e,"utf8",i,s));for(let o=s;o<e.byteLength;o++){let a=e[o];if(this.bytesNeeded===0){a<=127?(this.bytesSeen=0,r+=String.fromCharCode(a)):a>=194&&a<=223?(this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=a&31):a>=224&&a<=239?(a===224?this.lowerBoundary=160:a===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=a&15):a>=240&&a<=244?(a===240?this.lowerBoundary=144:a===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=a&7):(this.bytesSeen=1,r+="\uFFFD");continue}if(a<this.lowerBoundary||a>this.upperBoundary){r+="\uFFFD",o--,this._reset();continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|a&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(r+=String.fromCodePoint(this.codePoint),this._reset())}return r}flush(){let e=this.bytesNeeded>0?"\uFFFD":"";return this._reset(),e}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}};function zS(t,e){let r=t.byteLength;if(r<=e)return 0;let i=Math.max(e,r-4),n=r-1;for(;n>i&&(t[n]&192)===128;)n--;if(n<e)return 0;let s=t[n],o;if(s<=127)return 0;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 0;let a=r-n;return a<o?a:0}function pq(t){let e=t.byteLength;if(e===0)return 0;let r=t[e-1];if(r<=127)return 0;if((r&192)!==128)return 1;let i=Math.max(0,e-4),n=e-2;for(;n>=i&&(t[n]&192)===128;)n--;if(n<0)return 1;let s=t[n],o;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 1;if(e-n!==o)return 1;if(o>=3){let a=t[n+1];if(s===224&&a<160||s===237&&a>159||s===240&&a<144||s===244&&a>143)return 1}return 0}});var VS=g((WU,HS)=>{"use strict";var gq=US(),_q=$S();HS.exports=class{constructor(e="utf8"){switch(this.encoding=yq(e),this.encoding){case"utf8":this.decoder=new _q;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new gq(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return typeof e=="string"?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let r="";return e&&(r=this.push(e)),r+=this.decoder.flush(),r}};function yq(t){switch(t=t.toLowerCase(),t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:throw new Error("Unknown encoding: "+t)}}});var lc=g((zU,_E)=>{"use strict";var{EventEmitter:mq}=CS(),Ko=new Error("Stream was destroyed"),Vf=new Error("Premature close"),JS=$f(),bq=VS(),Yf=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,oe=(1<<29)-1,ct=1,tc=2,vt=4,Tn=8,eE=oe^ct,wq=oe^tc,Dn=16,ai=32,fi=64,zt=128,Pn=256,rc=512,Gt=1024,Kf=2048,ic=4096,nc=8192,Qe=16384,Wt=32768,Zo=65536,br=131072,tE=Pn|rc,Sq=Dn|Zo,Eq=fi|Dn,vq=ic|zt,sc=Pn|br,xq=oe^Dn,Tq=oe^fi,Rq=oe^(fi|Zo),YS=oe^Zo,Aq=oe^Pn,Oq=oe^(zt|nc),Iq=oe^Gt,KS=oe^tE,rE=oe^Wt,Dq=oe^ai,iE=oe^br,Pq=oe^sc,xt=1<<18,ui=2<<18,Ln=4<<18,wr=8<<18,Nn=16<<18,Ht=32<<18,Zf=64<<18,li=128<<18,oc=256<<18,$t=512<<18,Qo=1024<<18,Lq=oe^(xt|oc),nE=oe^Ln,Nq=oe^(xt|$t),Cq=oe^Nn,kq=oe^wr,sE=oe^li,Mq=oe^ui,oE=oe^Qo,Rn=Dn|xt,aE=oe^Rn,ac=Qe|Ht,ht=vt|Tn|tc,Fe=ht|ct,lE=ht|ac,Fq=nE&Tq,Xo=li|Wt,qq=Xo&aE,uE=Fe|qq,jq=Fe|Gt|Qe,ZS=Fe|Qe|zt,Bq=Fe|Gt|zt,Uq=Fe|ic|zt|nc,Wq=Fe|Dn|Gt|Qe|Zo|br,zq=ht|Gt|Qe,Gq=ai|Fe|Wt|fi,$q=Wt|ct,Hq=Fe|$t|Ht,Vq=wr|Nn,fE=wr|xt,Yq=wr|Nn|Fe|xt,QS=Fe|xt|wr|Qo,Kq=Ln|xt,Zq=xt|oc,Qq=Fe|$t|fE|Ht,Xq=Nn|ht|$t|Ht,Jq=ui|Fe|li|Ln,ej=$t|Ht|ht,Go=Symbol.asyncIterator||Symbol("asyncIterator"),$o=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new JS,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||gE,this.map=n||i,this.afterWrite=ij.bind(this),this.afterUpdateNextTick=oj.bind(this)}get ending(){return(this.stream._duplexState&$t)!==0}get ended(){return(this.stream._duplexState&Ht)!==0}push(e){return(this.stream._duplexState&ej)!==0?!1:(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=wr,!0):(this.stream._duplexState|=Vq,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=kq),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|$t)&nE}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&QS)===fE;)i.push(n._writableState.shift());if((n._duplexState&Fe)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=ui;do{for(;(e._duplexState&QS)===wr;){let r=this.shift();e._duplexState|=Zq,e._write(r,this.afterWrite)}(e._duplexState&Kq)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=Mq}updateNonPrimary(){let e=this.stream;if((e._duplexState&Qq)===$t){e._duplexState=e._duplexState|xt,e._final(rj.bind(this));return}if((e._duplexState&ht)===vt){(e._duplexState&Xo)===0&&(e._duplexState|=Rn,e._destroy(cE.bind(this)));return}(e._duplexState&uE)===ct&&(e._duplexState=(e._duplexState|Rn)&eE,e._open(hE.bind(this)))}continueUpdate(){return(this.stream._duplexState&li)===0?!1:(this.stream._duplexState&=sE,!0)}updateCallback(){(this.stream._duplexState&Jq)===Ln?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&li)===0&&(this.stream._duplexState|=li,(this.stream._duplexState&ui)===0&&Yf(this.afterUpdateNextTick))}},Qf=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new JS,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||gE,this.map=n||i,this.pipeTo=null,this.afterRead=nj.bind(this),this.afterUpdateNextTick=sj.bind(this)}get ending(){return(this.stream._duplexState&Gt)!==0}get ended(){return(this.stream._duplexState&Qe)!==0}pipe(e,r){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=rc,this.pipeTo=e,this.pipeline=new Jf(this.stream,e,r),r&&this.stream.on("error",XS),In(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",XS),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let i=this.pipeline.done.bind(this.pipeline,e),n=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",i),e.on("close",n),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",tj.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|Gt)&Rq,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=YS,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|zt)&YS,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=Oq),e}unshift(e){let r=[this.map!==null?this.map(e):e];for(;this.buffered>0;)r.push(this.shift());for(let i=0;i<r.length-1;i++){let n=r[i];this.buffered+=this.byteLength(n),this.queue.push(n)}this.push(r[r.length-1])}read(){let e=this.stream;if((e._duplexState&ZS)===zt){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=KS),(e._duplexState&Kf)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=br,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&ZS)===zt&&(e._duplexState&tE)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=KS),(e._duplexState&Kf)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=ai;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&Wq)===br;)e._duplexState|=Sq,e._read(this.afterRead),this.drain();(e._duplexState&Uq)===vq&&(e._duplexState|=nc,e.emit("readable")),(e._duplexState&Eq)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=Dq}updateNonPrimary(){let e=this.stream;if((e._duplexState&Bq)===Gt&&(e._duplexState=(e._duplexState|Qe)&Iq,e.emit("end"),(e._duplexState&lE)===ac&&(e._duplexState|=vt),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&ht)===vt){(e._duplexState&Xo)===0&&(e._duplexState|=Rn,e._destroy(cE.bind(this)));return}(e._duplexState&uE)===ct&&(e._duplexState=(e._duplexState|Rn)&eE,e._open(hE.bind(this)))}continueUpdate(){return(this.stream._duplexState&Wt)===0?!1:(this.stream._duplexState&=rE,!0)}updateCallback(){(this.stream._duplexState&Gq)===fi?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&$q)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&ai)===0&&Yf(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&Wt)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&ai)===0&&Yf(this.afterUpdateNextTick))}},Xf=class{constructor(e){this.data=null,this.afterTransform=lj.bind(e),this.afterFinal=null}},Jf=class{constructor(e,r,i){this.from=e,this.to=r,this.afterPipe=i,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,r){if(r&&(this.error=r),e===this.to&&(this.to=null,this.from!==null)){((this.from._duplexState&Qe)===0||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&Qe)===0&&this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function tj(){this.stream._duplexState|=rc,this.updateCallback()}function rj(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ht)===0&&(e._duplexState|=Ht,e.emit("finish")),(e._duplexState&lE)===ac&&(e._duplexState|=vt),e._duplexState&=Nq,(e._duplexState&ui)===0?this.update():this.updateNextTick()}function cE(t){let e=this.stream;!t&&this.error!==Ko&&(t=this.error),t&&e.emit("error",t),e._duplexState|=Tn,e.emit("close");let r=e._readableState,i=e._writableState;if(r!==null&&r.pipeline!==null&&r.pipeline.done(e,t),i!==null){for(;i.drains!==null&&i.drains.length>0;)i.drains.shift().resolve(!1);i.pipeline!==null&&i.pipeline.done(e,t)}}function ij(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=Lq,this.drains!==null&&aj(this.drains),(e._duplexState&Yq)===Nn&&(e._duplexState&=Cq,(e._duplexState&Zf)===Zf&&e.emit("drain")),this.updateCallback()}function nj(t){t&&this.stream.destroy(t),this.stream._duplexState&=xq,this.readAhead===!1&&(this.stream._duplexState&Pn)===0&&(this.stream._duplexState&=iE),this.updateCallback()}function sj(){(this.stream._duplexState&ai)===0&&(this.stream._duplexState&=rE,this.update())}function oj(){(this.stream._duplexState&ui)===0&&(this.stream._duplexState&=sE,this.update())}function aj(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function hE(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&vt)===0&&((e._duplexState&jq)===0&&(e._duplexState|=fi),(e._duplexState&Hq)===0&&(e._duplexState|=Ln),e.emit("open")),e._duplexState&=aE,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function lj(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function uj(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=Kf|sc,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=ic,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=Zf,this._writableState.updateNextTick())}var An=class extends mq{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",Sj.bind(this))),this.on("newListener",uj)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&Tn)!==0}get destroying(){return(this._duplexState&ht)!==0}destroy(e){(this._duplexState&ht)===0&&(e||(e=Ko),this._duplexState=(this._duplexState|vt)&Fq,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=tc,this._predestroy(),this._duplexState&=wq,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},Ho=class t extends An{constructor(e){super(e),this._duplexState|=ct|Ht|br,this._readableState=new Qf(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=iE),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let r=new bq(e),i=this._readableState.map||hj;return this._readableState.map=n,this;function n(s){let o=r.push(s);return o===""&&(s.byteLength!==0||r.remaining>0)?null:i(o)}}_read(e){e(null)}pipe(e,r){return this._readableState.updateNextTick(),this._readableState.pipe(e,r),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=sc,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?Pq:Aq,this}static _fromAsyncIterator(e,r){let i,n=new t({...r,read(o){e.next().then(s).then(o.bind(null,null)).catch(o)},predestroy(){i=e.return()},destroy(o){if(!i)return o(null);i.then(o.bind(null,null)).catch(o)}});return n;function s(o){o.done?n.push(null):n.push(o.value)}}static from(e,r){if(mj(e))return e;if(e[Go])return this._fromAsyncIterator(e[Go](),r);Array.isArray(e)||(e=e===void 0?[]:[e]);let i=0;return new t({...r,read(n){this.push(i===e.length?null:e[i++]),n(null)}})}static isBackpressured(e){return(e._duplexState&zq)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&Pn)===0}[Go](){let e=this,r=null,i=null,n=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",o),{[Go](){return this},next(){return new Promise(function(u,f){i=u,n=f;let c=e.read();c!==null?a(c):(e._duplexState&Tn)!==0&&a(null)})},return(){return l(null)},throw(u){return l(u)}};function s(){i!==null&&a(e.read())}function o(){i!==null&&a(null)}function a(u){n!==null&&(r?n(r):u===null&&(e._duplexState&Qe)===0?n(Ko):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,c)=>{if(e._duplexState&Tn)return f({value:void 0,done:!0});e.once("close",function(){u?c(u):f({value:void 0,done:!0})})})}}},Vo=class extends An{constructor(e){super(e),this._duplexState|=ct|Qe,this._writableState=new $o(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=Qo}uncork(){this._duplexState&=oE,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&Xq)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(Ej(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&oc?1:0);return n===0?Promise.resolve(!0):(r.drains===null&&(r.drains=[]),new Promise(s=>{r.drains.push({writes:n,resolve:s})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},On=class extends Ho{constructor(e){super(e),this._duplexState=ct|this._duplexState&br,this._writableState=new $o(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=Qo}uncork(){this._duplexState&=oE,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Yo=class extends On{constructor(e){super(e),this._transformState=new Xf(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,r){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let r=this._transformState.data;this._transformState.data=null,e(null),this._transform(r,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,r){r(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(fj.bind(this))}},ec=class extends Yo{};function fj(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function cj(...t){return new Promise((e,r)=>dE(...t,i=>{if(i)return r(i);e()}))}function dE(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],i=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let n=r[0],s=null,o=null;for(let u=1;u<r.length;u++)s=r[u],In(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=In(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",c=>{o===null&&(o=c)}),s.on("finish",()=>{u=!0,f||i(o)}),f&&s.on("close",()=>i(o||(u?null:Vf)))}return s;function a(u,f,c,h){u.on("error",h),u.on("close",d);function d(){if(f&&u._readableState&&!u._readableState.ended||c&&u._writableState&&!u._writableState.ended)return h(Vf)}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function hj(t){return t}function pE(t){return!!t._readableState||!!t._writableState}function In(t){return typeof t._duplexState=="number"&&pE(t)}function dj(t){return!!t._readableState&&t._readableState.ending}function pj(t){return!!t._readableState&&t._readableState.ended}function gj(t){return!!t._writableState&&t._writableState.ending}function _j(t){return!!t._writableState&&t._writableState.ended}function yj(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&r===Ko?null:r}function mj(t){return In(t)&&t.readable}function bj(t){return(t._duplexState&ct)!==ct||(t._duplexState&vt)===vt||(t._duplexState&Xo)!==0}function wj(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function gE(t){return wj(t)?t.byteLength:1024}function XS(){}function Sj(){this.destroy(new Error("Stream aborted."))}function Ej(t){return t._writev!==Vo.prototype._writev&&t._writev!==On.prototype._writev}_E.exports={pipeline:dE,pipelinePromise:cj,isStream:pE,isStreamx:In,isEnding:dj,isEnded:pj,isFinishing:gj,isFinished:_j,isDisturbed:bj,getStreamError:yj,Stream:An,Writable:Vo,Readable:Ho,Duplex:On,Transform:Yo,PassThrough:ec}});var Jo=g((GU,yE)=>{"use strict";function vj(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function xj(t){return Buffer.isEncoding(t)}function Tj(t,e,r){return Buffer.alloc(t,e,r)}function Rj(t){return Buffer.allocUnsafe(t)}function Aj(t){return Buffer.allocUnsafeSlow(t)}function Oj(t,e){return Buffer.byteLength(t,e)}function Ij(t,e){return Buffer.compare(t,e)}function Dj(t,e){return Buffer.concat(t,e)}function Pj(t,e,r,i,n){return K(t).copy(e,r,i,n)}function Lj(t,e){return K(t).equals(e)}function Nj(t,e,r,i,n){return K(t).fill(e,r,i,n)}function Cj(t,e,r){return Buffer.from(t,e,r)}function kj(t,e,r,i){return K(t).includes(e,r,i)}function Mj(t,e,r,i){return K(t).indexOf(e,r,i)}function Fj(t,e,r,i){return K(t).lastIndexOf(e,r,i)}function qj(t){return K(t).swap16()}function jj(t){return K(t).swap32()}function Bj(t){return K(t).swap64()}function K(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Uj(t,e,r,i){return K(t).toString(e,r,i)}function Wj(t,e,r,i,n){return K(t).write(e,r,i,n)}function zj(t,e){return K(t).readDoubleBE(e)}function Gj(t,e){return K(t).readDoubleLE(e)}function $j(t,e){return K(t).readFloatBE(e)}function Hj(t,e){return K(t).readFloatLE(e)}function Vj(t,e){return K(t).readInt32BE(e)}function Yj(t,e){return K(t).readInt32LE(e)}function Kj(t,e){return K(t).readUInt32BE(e)}function Zj(t,e){return K(t).readUInt32LE(e)}function Qj(t,e,r){return K(t).writeDoubleBE(e,r)}function Xj(t,e,r){return K(t).writeDoubleLE(e,r)}function Jj(t,e,r){return K(t).writeFloatBE(e,r)}function eB(t,e,r){return K(t).writeFloatLE(e,r)}function tB(t,e,r){return K(t).writeInt32BE(e,r)}function rB(t,e,r){return K(t).writeInt32LE(e,r)}function iB(t,e,r){return K(t).writeUInt32BE(e,r)}function nB(t,e,r){return K(t).writeUInt32LE(e,r)}yE.exports={isBuffer:vj,isEncoding:xj,alloc:Tj,allocUnsafe:Rj,allocUnsafeSlow:Aj,byteLength:Oj,compare:Ij,concat:Dj,copy:Pj,equals:Lj,fill:Nj,from:Cj,includes:kj,indexOf:Mj,lastIndexOf:Fj,swap16:qj,swap32:jj,swap64:Bj,toBuffer:K,toString:Uj,write:Wj,readDoubleBE:zj,readDoubleLE:Gj,readFloatBE:$j,readFloatLE:Hj,readInt32BE:Vj,readInt32LE:Yj,readUInt32BE:Kj,readUInt32LE:Zj,writeDoubleBE:Qj,writeDoubleLE:Xj,writeFloatBE:Jj,writeFloatLE:eB,writeInt32BE:tB,writeInt32LE:rB,writeUInt32BE:iB,writeUInt32LE:nB}});var cc=g(hi=>{"use strict";var W=Jo(),sB="0000000000000000000",oB="7777777777777777777",ea=48,mE=W.from([117,115,116,97,114,0]),aB=W.from([ea,ea]),lB=W.from([117,115,116,97,114,32]),uB=W.from([32,0]),fB=4095,Cn=257,fc=263;hi.decodeLongPath=function(e,r){return ci(e,0,e.length,r)};hi.encodePax=function(e){let r="";e.name&&(r+=uc(" path="+e.name+`
|
|
6
|
+
`+e);let[,i]=r;return i.replace(/\s/g,"").split(Kv).map(n=>n.replace(Zv,"").trim())}function Sh(t,e){var r={};return Object.keys(t).forEach(i=>{var n=t[i],s,o=Si(n),a=!o&&n.length===1||o&&n.length===0;if(Array.isArray(n))s=[...n],n=s.pop(),r[i]=s.concat(s.length>0?l:n);else if(a)r[i]=n;else{if(s=Xv(n),n.length===0&&!o&&s.length===0)throw new Error("autoInject task functions require explicit parameters.");o||s.pop(),r[i]=s.concat(l)}function l(u,f){var c=s.map(h=>u[h]);c.push(f),F(n)(...c)}}),Ma(r,e)}function ch(t,e){t.length=1,t.head=t.tail=e}function Fa(t,e,r){if(e==null)e=1;else if(e===0)throw new RangeError("Concurrency must not be zero");var i=F(t),n=0,s=[];let o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(b,v){o[b].push(v)}function l(b,v){let E=(...T)=>{u(b,E),v(...T)};o[b].push(E)}function u(b,v){if(!b)return Object.keys(o).forEach(E=>o[E]=[]);if(!v)return o[b]=[];o[b]=o[b].filter(E=>E!==v)}function f(b,...v){o[b].forEach(E=>E(...v))}var c=!1;function h(b,v,E,T){if(T!=null&&typeof T!="function")throw new Error("task callback must be a function");m.started=!0;var D,x;function O(R,...A){if(R)return E?x(R):D();if(A.length<=1)return D(A[0]);D(A)}var w=m._createTaskItem(b,E?O:T||O);if(v?m._tasks.unshift(w):m._tasks.push(w),c||(c=!0,At(()=>{c=!1,m.process()})),E||!T)return new Promise((R,A)=>{D=R,x=A})}function d(b){return function(v,...E){n-=1;for(var T=0,D=b.length;T<D;T++){var x=b[T],O=s.indexOf(x);O===0?s.shift():O>0&&s.splice(O,1),x.callback(v,...E),v!=null&&f("error",v,x.data)}n<=m.concurrency-m.buffer&&f("unsaturated"),m.idle()&&f("drain"),m.process()}}function y(b){return b.length===0&&m.idle()?(At(()=>f("drain")),!0):!1}let p=b=>v=>{if(!v)return new Promise((E,T)=>{l(b,(D,x)=>{if(D)return T(D);E(x)})});u(b),a(b,v)};var S=!1,m={_tasks:new ga,_createTaskItem(b,v){return{data:b,callback:v}},*[Symbol.iterator](){yield*m._tasks[Symbol.iterator]()},concurrency:e,payload:r,buffer:e/4,started:!1,paused:!1,push(b,v){return Array.isArray(b)?y(b)?void 0:b.map(E=>h(E,!1,!1,v)):h(b,!1,!1,v)},pushAsync(b,v){return Array.isArray(b)?y(b)?void 0:b.map(E=>h(E,!1,!0,v)):h(b,!1,!0,v)},kill(){u(),m._tasks.empty()},unshift(b,v){return Array.isArray(b)?y(b)?void 0:b.map(E=>h(E,!0,!1,v)):h(b,!0,!1,v)},unshiftAsync(b,v){return Array.isArray(b)?y(b)?void 0:b.map(E=>h(E,!0,!0,v)):h(b,!0,!0,v)},remove(b){m._tasks.remove(b)},process(){if(!S){for(S=!0;!m.paused&&n<m.concurrency&&m._tasks.length;){var b=[],v=[],E=m._tasks.length;m.payload&&(E=Math.min(E,m.payload));for(var T=0;T<E;T++){var D=m._tasks.shift();b.push(D),s.push(D),v.push(D.data)}n+=1,m._tasks.length===0&&f("empty"),n===m.concurrency&&f("saturated");var x=It(d(b));i(v,x)}S=!1}},length(){return m._tasks.length},running(){return n},workersList(){return s},idle(){return m._tasks.length+n===0},pause(){m.paused=!0},resume(){m.paused!==!1&&(m.paused=!1,At(m.process))}};return Object.defineProperties(m,{saturated:{writable:!1,value:p("saturated")},unsaturated:{writable:!1,value:p("unsaturated")},empty:{writable:!1,value:p("empty")},drain:{writable:!1,value:p("drain")},error:{writable:!1,value:p("error")}}),m}function Eh(t,e){return Fa(t,1,e)}function vh(t,e,r){return Fa(t,e,r)}function Jv(t,e,r,i){i=Ot(i);var n=F(r);return Xe(t,(s,o,a)=>{n(e,s,(l,u)=>{e=u,a(l)})},s=>i(s,e))}function qa(...t){var e=t.map(F);return function(...r){var i=this,n=r[r.length-1];return typeof n=="function"?r.pop():n=xr(),vr(e,r,(s,o,a)=>{o.apply(i,s.concat((l,...u)=>{a(l,u)}))},(s,o)=>n(s,...o)),n[Tr]}}function xh(...t){return qa(...t.reverse())}function ex(t,e,r,i){return Ca($e(e),t,r,i)}function tx(t,e,r,i){var n=F(r);return Ei(t,e,(s,o)=>{n(s,(a,...l)=>a?o(a):o(a,l))},(s,o)=>{for(var a=[],l=0;l<o.length;l++)o[l]&&(a=a.concat(...o[l]));return i(s,a)})}function rx(t,e,r){return bi(t,1/0,e,r)}function ix(t,e,r){return bi(t,1,e,r)}function Th(...t){return function(...e){var r=e.pop();return r(null,...t)}}function dt(t,e){return(r,i,n,s)=>{var o=!1,a;let l=F(n);r(i,(u,f,c)=>{l(u,(h,d)=>{if(h||h===!1)return c(h);if(t(d)&&!a)return o=!0,a=e(!0,u),c(null,Yn);c()})},u=>{if(u)return s(u);s(null,o?a:e(!1))})}}function nx(t,e,r){return dt(i=>i,(i,n)=>n)(qe,t,e,r)}function sx(t,e,r,i){return dt(n=>n,(n,s)=>s)($e(e),t,r,i)}function ox(t,e,r){return dt(i=>i,(i,n)=>n)($e(1),t,e,r)}function Rh(t){return(e,...r)=>F(e)(...r,(i,...n)=>{typeof console=="object"&&(i?console.error&&console.error(i):console[t]&&n.forEach(s=>console[t](s)))})}function ax(t,e,r){r=It(r);var i=F(t),n=F(e),s;function o(l,...u){if(l)return r(l);l!==!1&&(s=u,n(...u,a))}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return a(null,!0)}function Oh(t,e,r){let i=F(e);return Un(t,(...n)=>{let s=n.pop();i(...n,(o,a)=>s(o,!a))},r)}function Ih(t){return(e,r,i)=>t(e,i)}function lx(t,e,r){return qe(t,Ih(F(e)),r)}function ux(t,e,r,i){return $e(e)(t,Ih(F(r)),i)}function fx(t,e,r){return Wn(t,1,e,r)}function ja(t){return Si(t)?t:function(...e){var r=e.pop(),i=!0;e.push((...n)=>{i?At(()=>r(...n)):r(...n)}),t.apply(this,e),i=!1}}function cx(t,e,r){return dt(i=>!i,i=>!i)(qe,t,e,r)}function hx(t,e,r,i){return dt(n=>!n,n=>!n)($e(e),t,r,i)}function dx(t,e,r){return dt(i=>!i,i=>!i)(Xe,t,e,r)}function px(t,e,r,i){var n=new Array(e.length);t(e,(s,o,a)=>{r(s,(l,u)=>{n[o]=!!u,a(l)})},s=>{if(s)return i(s);for(var o=[],a=0;a<e.length;a++)n[a]&&o.push(e[a]);i(null,o)})}function gx(t,e,r,i){var n=[];t(e,(s,o,a)=>{r(s,(l,u)=>{if(l)return a(l);u&&n.push({index:o,value:s}),a(l)})},s=>{if(s)return i(s);i(null,n.sort((o,a)=>o.index-a.index).map(o=>o.value))})}function Zn(t,e,r,i){var n=Vn(e)?px:gx;return n(t,e,F(r),i)}function _x(t,e,r){return Zn(qe,t,e,r)}function yx(t,e,r,i){return Zn($e(e),t,r,i)}function mx(t,e,r){return Zn(Xe,t,e,r)}function bx(t,e){var r=It(e),i=F(ja(t));function n(s){if(s)return r(s);s!==!1&&i(n)}return n()}function wx(t,e,r,i){var n=F(r);return Ei(t,e,(s,o)=>{n(s,(a,l)=>a?o(a):o(a,{key:l,val:s}))},(s,o)=>{for(var a={},{hasOwnProperty:l}=Object.prototype,u=0;u<o.length;u++)if(o[u]){var{key:f}=o[u],{val:c}=o[u];l.call(a,f)?a[f].push(c):a[f]=[c]}return i(s,a)})}function Lh(t,e,r){return Qn(t,1/0,e,r)}function Ph(t,e,r){return Qn(t,1,e,r)}function Sx(t,e,r,i){i=Ot(i);var n={},s=F(r);return $e(e)(t,(o,a,l)=>{s(o,a,(u,f)=>{if(u)return l(u);n[a]=f,l(u)})},o=>i(o,n))}function Ch(t,e,r){return Xn(t,1/0,e,r)}function kh(t,e,r){return Xn(t,1,e,r)}function Mh(t,e=r=>r){var r=Object.create(null),i=Object.create(null),n=F(t),s=wi((o,a)=>{var l=e(...o);l in r?At(()=>a(null,...r[l])):l in i?i[l].push(a):(i[l]=[a],n(...o,(u,...f)=>{u||(r[l]=f);var c=i[l];delete i[l];for(var h=0,d=c.length;h<d;h++)c[h](u,...f)}))});return s.memo=r,s.unmemoized=t,s}function qh(t,e){return Ba(qe,t,e)}function jh(t,e,r){return Ba($e(e),t,r)}function Ua(t,e){var r=F(t);return Fa((i,n)=>{r(i[0],n)},e,1)}function Ex(t){return(t<<1)+1}function hh(t){return(t+1>>1)-1}function pa(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function Bh(t,e){var r=Ua(t,e),{push:i,pushAsync:n}=r;r._tasks=new Oa,r._createTaskItem=({data:o,priority:a},l)=>({data:o,priority:a,callback:l});function s(o,a){return Array.isArray(o)?o.map(l=>({data:l,priority:a})):{data:o,priority:a}}return r.push=function(o,a=0,l){return i(s(o,a),l)},r.pushAsync=function(o,a=0,l){return n(s(o,a),l)},delete r.unshift,delete r.unshiftAsync,r}function vx(t,e){if(e=Ot(e),!Array.isArray(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var r=0,i=t.length;r<i;r++)F(t[r])(e)}function Ia(t,e,r,i){var n=[...t].reverse();return vr(n,e,r,i)}function Gn(t){var e=F(t);return wi(function(i,n){return i.push((s,...o)=>{let a={};if(s&&(a.error=s),o.length>0){var l=o;o.length<=1&&([l]=o),a.value=l}n(null,a)}),e.apply(this,i)})}function Wh(t){var e;return Array.isArray(t)?e=t.map(Gn):(e={},Object.keys(t).forEach(r=>{e[r]=Gn.call(this,t[r])})),e}function Wa(t,e,r,i){let n=F(r);return Zn(t,e,(s,o)=>{n(s,(a,l)=>{o(a,!l)})},i)}function xx(t,e,r){return Wa(qe,t,e,r)}function Tx(t,e,r,i){return Wa($e(e),t,r,i)}function Rx(t,e,r){return Wa(Xe,t,e,r)}function Hh(t){return function(){return t}}function $n(t,e,r){var i={times:Da,intervalFunc:Hh(Vh)};if(arguments.length<3&&typeof t=="function"?(r=e||xr(),e=t):(Ax(i,t),r=r||xr()),typeof e!="function")throw new Error("Invalid arguments for async.retry");var n=F(e),s=1;function o(){n((a,...l)=>{a!==!1&&(a&&s++<i.times&&(typeof i.errorFilter!="function"||i.errorFilter(a))?setTimeout(o,i.intervalFunc(s-1)):r(a,...l))})}return o(),r[Tr]}function Ax(t,e){if(typeof e=="object")t.times=+e.times||Da,t.intervalFunc=typeof e.interval=="function"?e.interval:Hh(+e.interval||Vh),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||Da;else throw new Error("Invalid arguments for async.retry")}function Yh(t,e){e||(e=t,t=null);let r=t&&t.arity||e.length;Si(e)&&(r+=1);var i=F(e);return wi((n,s)=>{(n.length<r-1||s==null)&&(n.push(s),s=xr());function o(a){i(...n,a)}return t?$n(t,o,s):$n(o,s),s[Tr]})}function Kh(t,e){return Ba(Xe,t,e)}function Ox(t,e,r){return dt(Boolean,i=>i)(qe,t,e,r)}function Ix(t,e,r,i){return dt(Boolean,n=>n)($e(e),t,r,i)}function Dx(t,e,r){return dt(Boolean,i=>i)(Xe,t,e,r)}function Lx(t,e,r){var i=F(e);return Kn(t,(s,o)=>{i(s,(a,l)=>{if(a)return o(a);o(a,{value:s,criteria:l})})},(s,o)=>{if(s)return r(s);r(null,o.sort(n).map(a=>a.value))});function n(s,o){var a=s.criteria,l=o.criteria;return a<l?-1:a>l?1:0}}function Qh(t,e,r){var i=F(t);return wi((n,s)=>{var o=!1,a;function l(){var u=t.name||"anonymous",f=new Error('Callback function "'+u+'" timed out.');f.code="ETIMEDOUT",r&&(f.info=r),o=!0,s(f)}n.push((...u)=>{o||(s(...u),clearTimeout(a))}),a=setTimeout(l,e),i(...n)})}function Px(t){for(var e=Array(t);t--;)e[t]=t;return e}function Jn(t,e,r,i){var n=F(r);return Ei(Px(t),e,n,i)}function Xh(t,e,r){return Jn(t,1/0,e,r)}function Jh(t,e,r){return Jn(t,1,e,r)}function ed(t,e,r,i){arguments.length<=3&&typeof e=="function"&&(i=r,r=e,e=Array.isArray(t)?[]:{}),i=Ot(i||xr());var n=F(r);return qe(t,(s,o,a)=>{n(e,s,o,a)},s=>i(s,e)),i[Tr]}function Nx(t,e){var r=null,i;return zn(t,(n,s)=>{F(n)((o,...a)=>{if(o===!1)return s(o);a.length<2?[i]=a:i=a,r=o,s(o?null:{})})},()=>e(r,i))}function rd(t){return(...e)=>(t.unmemoized||t)(...e)}function Cx(t,e,r){r=It(r);var i=F(e),n=F(t),s=[];function o(l,...u){if(l)return r(l);s=u,l!==!1&&n(a)}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return n(a)}function id(t,e,r){let i=F(t);return Hn(n=>i((s,o)=>n(s,!o)),e,r)}function kx(t,e){if(e=Ot(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function i(s){var o=F(t[r++]);o(...s,It(n))}function n(s,...o){if(s!==!1){if(s||r===t.length)return e(s,...o);i(o)}}i([])}var Pv,ph,gh,yi,At,Yn,$e,mi,qe,Kn,bh,Xe,ka,wh,Tr,Vv,Yv,Kv,Zv,ga,vr,Ei,bi,_a,ya,ma,ba,wa,Ah,Un,Sa,Wn,zn,Ea,va,xa,Ta,Ra,Aa,Dh,Qn,Nh,Xn,jn,Fh,Ba,Oa,Uh,zh,Gh,$h,Da,Vh,La,Pa,Na,Zh,td,Hn,nd,Mx,od=QE(()=>{"use strict";Pv=typeof queueMicrotask=="function"&&queueMicrotask,ph=typeof setImmediate=="function"&&setImmediate,gh=typeof process=="object"&&typeof process.nextTick=="function";Pv?yi=queueMicrotask:ph?yi=setImmediate:gh?yi=process.nextTick:yi=_h;At=yh(yi);Yn={};$e=t=>(e,r,i)=>{if(i=Ot(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if(Nv(e))return fh(e,t,r,i);if(Cv(e))return fh(e[Symbol.asyncIterator](),t,r,i);var n=jv(e),s=!1,o=!1,a=0,l=!1;function u(c,h){if(!o)if(a-=1,c)s=!0,i(c);else if(c===!1)s=!0,o=!0;else{if(h===Yn||s&&a<=0)return s=!0,i(null);l||f()}}function f(){for(l=!0;a<t&&!s;){var c=n();if(c===null){s=!0,a<=0&&i(null);return}a+=1,r(c.value,c.key,It(u))}l=!1}f()};mi=M(Bv,4);qe=M(zv,3);Kn=M(Gv,3),bh=mh(Kn);Xe=M($v,3);ka=M(Hv,3),wh=mh(ka),Tr=Symbol("promiseCallback");Vv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,Yv=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,Kv=/,/,Zv=/(=.+)?(\s*)$/;ga=class{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,r){r.prev=e,r.next=e.next,e.next?e.next.prev=r:this.tail=r,e.next=r,this.length+=1}insertBefore(e,r){r.prev=e.prev,r.next=e,e.prev?e.prev.next=r:this.head=r,e.prev=r,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):ch(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):ch(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var r=this.head;r;){var{next:i}=r;e(r)&&this.removeLink(r),r=i}return this}};vr=M(Jv,4);Ei=M(ex,4);bi=M(tx,4);_a=M(rx,3);ya=M(ix,3);ma=M(nx,3);ba=M(sx,4);wa=M(ox,3);Ah=Rh("dir");Un=M(ax,3);Sa=M(lx,3);Wn=M(ux,4);zn=M(fx,3);Ea=M(cx,3);va=M(hx,4);xa=M(dx,3);Ta=M(_x,3);Ra=M(yx,4);Aa=M(mx,3);Dh=M(bx,2);Qn=M(wx,4);Nh=Rh("log");Xn=M(Sx,4);gh?jn=process.nextTick:ph?jn=setImmediate:jn=_h;Fh=yh(jn),Ba=M((t,e,r)=>{var i=Vn(e)?[]:{};t(e,(n,s,o)=>{F(n)((a,...l)=>{l.length<2&&([l]=l),i[s]=l,o(a)})},n=>r(n,i))},3);Oa=class{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let r;for(;e>0&&pa(this.heap[e],this.heap[r=hh(e)]);){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}percDown(e){let r;for(;(r=Ex(e))<this.heap.length&&(r+1<this.heap.length&&pa(this.heap[r+1],this.heap[r])&&(r=r+1),!pa(this.heap[e],this.heap[r]));){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let r=0;for(let i=0;i<this.heap.length;i++)e(this.heap[i])||(this.heap[r]=this.heap[i],r++);this.heap.splice(r);for(let i=hh(this.heap.length-1);i>=0;i--)this.percDown(i);return this}};Uh=M(vx,2);zh=M(xx,3);Gh=M(Tx,4);$h=M(Rx,3);Da=5,Vh=0;La=M(Ox,3);Pa=M(Ix,4);Na=M(Dx,3);Zh=M(Lx,3);td=M(Nx);Hn=M(Cx,3);nd=M(kx),Mx={apply:dh,applyEach:bh,applyEachSeries:wh,asyncify:Bn,auto:Ma,autoInject:Sh,cargo:Eh,cargoQueue:vh,compose:xh,concat:_a,concatLimit:bi,concatSeries:ya,constant:Th,detect:ma,detectLimit:ba,detectSeries:wa,dir:Ah,doUntil:Oh,doWhilst:Un,each:Sa,eachLimit:Wn,eachOf:qe,eachOfLimit:mi,eachOfSeries:Xe,eachSeries:zn,ensureAsync:ja,every:Ea,everyLimit:va,everySeries:xa,filter:Ta,filterLimit:Ra,filterSeries:Aa,forever:Dh,groupBy:Lh,groupByLimit:Qn,groupBySeries:Ph,log:Nh,map:Kn,mapLimit:Ei,mapSeries:ka,mapValues:Ch,mapValuesLimit:Xn,mapValuesSeries:kh,memoize:Mh,nextTick:Fh,parallel:qh,parallelLimit:jh,priorityQueue:Bh,queue:Ua,race:Uh,reduce:vr,reduceRight:Ia,reflect:Gn,reflectAll:Wh,reject:zh,rejectLimit:Gh,rejectSeries:$h,retry:$n,retryable:Yh,seq:qa,series:Kh,setImmediate:At,some:La,someLimit:Pa,someSeries:Na,sortBy:Zh,timeout:Qh,times:Xh,timesLimit:Jn,timesSeries:Jh,transform:ed,tryEach:td,unmemoize:rd,until:id,waterfall:nd,whilst:Hn,all:Ea,allLimit:va,allSeries:xa,any:La,anyLimit:Pa,anySeries:Na,find:ma,findLimit:ba,findSeries:wa,flatMap:_a,flatMapLimit:bi,flatMapSeries:ya,forEach:Sa,forEachSeries:zn,forEachLimit:Wn,forEachOf:qe,forEachOfSeries:Xe,forEachOfLimit:mi,inject:vr,foldl:vr,foldr:Ia,select:Ta,selectLimit:Ra,selectSeries:Aa,wrapSync:Bn,during:Hn,doDuring:Un}});var ld=g((n3,ad)=>{"use strict";var Dt=L("constants"),Fx=process.cwd,es=null,qx=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return es||(es=Fx.call(process)),es};try{process.cwd()}catch{}typeof process.chdir=="function"&&(za=process.chdir,process.chdir=function(t){es=null,za.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,za));var za;ad.exports=jx;function jx(t){Dt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,c,h){h&&process.nextTick(h)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,c,h,d){d&&process.nextTick(d)},t.lchownSync=function(){}),qx==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(f){function c(h,d,y){var p=Date.now(),S=0;f(h,d,function m(b){if(b&&(b.code==="EACCES"||b.code==="EPERM"||b.code==="EBUSY")&&Date.now()-p<6e4){setTimeout(function(){t.stat(d,function(v,E){v&&v.code==="ENOENT"?f(h,d,m):y(b)})},S),S<100&&(S+=10);return}y&&y(b)})}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(f){function c(h,d,y,p,S,m){var b;if(m&&typeof m=="function"){var v=0;b=function(E,T,D){if(E&&E.code==="EAGAIN"&&v<10)return v++,f.call(t,h,d,y,p,S,b);m.apply(this,arguments)}}return f.call(t,h,d,y,p,S,b)}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(f){return function(c,h,d,y,p){for(var S=0;;)try{return f.call(t,c,h,d,y,p)}catch(m){if(m.code==="EAGAIN"&&S<10){S++;continue}throw m}}})(t.readSync);function e(f){f.lchmod=function(c,h,d){f.open(c,Dt.O_WRONLY|Dt.O_SYMLINK,h,function(y,p){if(y){d&&d(y);return}f.fchmod(p,h,function(S){f.close(p,function(m){d&&d(S||m)})})})},f.lchmodSync=function(c,h){var d=f.openSync(c,Dt.O_WRONLY|Dt.O_SYMLINK,h),y=!0,p;try{p=f.fchmodSync(d,h),y=!1}finally{if(y)try{f.closeSync(d)}catch{}else f.closeSync(d)}return p}}function r(f){Dt.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(c,h,d,y){f.open(c,Dt.O_SYMLINK,function(p,S){if(p){y&&y(p);return}f.futimes(S,h,d,function(m){f.close(S,function(b){y&&y(m||b)})})})},f.lutimesSync=function(c,h,d){var y=f.openSync(c,Dt.O_SYMLINK),p,S=!0;try{p=f.futimesSync(y,h,d),S=!1}finally{if(S)try{f.closeSync(y)}catch{}else f.closeSync(y)}return p}):f.futimes&&(f.lutimes=function(c,h,d,y){y&&process.nextTick(y)},f.lutimesSync=function(){})}function i(f){return f&&function(c,h,d){return f.call(t,c,h,function(y){u(y)&&(y=null),d&&d.apply(this,arguments)})}}function n(f){return f&&function(c,h){try{return f.call(t,c,h)}catch(d){if(!u(d))throw d}}}function s(f){return f&&function(c,h,d,y){return f.call(t,c,h,d,function(p){u(p)&&(p=null),y&&y.apply(this,arguments)})}}function o(f){return f&&function(c,h,d){try{return f.call(t,c,h,d)}catch(y){if(!u(y))throw y}}}function a(f){return f&&function(c,h,d){typeof h=="function"&&(d=h,h=null);function y(p,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),d&&d.apply(this,arguments)}return h?f.call(t,c,h,y):f.call(t,c,y)}}function l(f){return f&&function(c,h){var d=h?f.call(t,c,h):f.call(t,c);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function u(f){if(!f||f.code==="ENOSYS")return!0;var c=!process.getuid||process.getuid()!==0;return!!(c&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var cd=g((s3,fd)=>{"use strict";var ud=L("stream").Stream;fd.exports=Bx;function Bx(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);ud.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,n=n||{};for(var o=Object.keys(n),a=0,l=o.length;a<l;a++){var u=o[a];this[u]=n[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,c){if(f){s.emit("error",f),s.readable=!1;return}s.fd=c,s.emit("open",c),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);ud.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var s=Object.keys(n),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=n[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var dd=g((o3,hd)=>{"use strict";hd.exports=Wx;var Ux=Object.getPrototypeOf||function(t){return t.__proto__};function Wx(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Ux(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var Va=g((a3,Ha)=>{"use strict";var ne=L("fs"),zx=ld(),Gx=cd(),$x=dd(),ts=L("util"),me,is;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),is=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",is="___graceful-fs.previous");function Hx(){}function _d(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var Jt=Hx;ts.debuglog?Jt=ts.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Jt=function(){var t=ts.format.apply(ts,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
7
|
+
GFS4: `),console.error(t)});ne[me]||(pd=global[me]||[],_d(ne,pd),ne.close=(function(t){function e(r,i){return t.call(ne,r,function(n){n||gd(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,is,{value:t}),e})(ne.close),ne.closeSync=(function(t){function e(r){t.apply(ne,arguments),gd()}return Object.defineProperty(e,is,{value:t}),e})(ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Jt(ne[me]),L("assert").equal(ne[me].length,0)}));var pd;global[me]||_d(global,ne[me]);Ha.exports=Ga($x(ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ne.__patched&&(Ha.exports=Ga(ne),ne.__patched=!0);function Ga(t){zx(t),t.gracefulify=Ga,t.createReadStream=T,t.createWriteStream=D;var e=t.readFile;t.readFile=r;function r(w,R,A){return typeof R=="function"&&(A=R,R=null),N(w,R,A);function N(z,ue,Z,te){return e(z,ue,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?Rr([N,[z,ue,Z],V,te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(w,R,A,N){return typeof A=="function"&&(N=A,A=null),z(w,R,A,N);function z(ue,Z,te,V,ye){return i(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Rr([z,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(w,R,A,N){return typeof A=="function"&&(N=A,A=null),z(w,R,A,N);function z(ue,Z,te,V,ye){return s(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Rr([z,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(w,R,A,N){return typeof A=="function"&&(N=A,A=0),z(w,R,A,N);function z(ue,Z,te,V,ye){return a(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Rr([z,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var u=t.readdir;t.readdir=c;var f=/^v[0-5]\./;function c(w,R,A){typeof R=="function"&&(A=R,R=null);var N=f.test(process.version)?function(Z,te,V,ye){return u(Z,z(Z,te,V,ye))}:function(Z,te,V,ye){return u(Z,te,z(Z,te,V,ye))};return N(w,R,A);function z(ue,Z,te,V){return function(ye,re){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?Rr([N,[ue,Z,te],ye,V||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof te=="function"&&te.call(this,ye,re))}}}if(process.version.substr(0,4)==="v0.8"){var h=Gx(t);m=h.ReadStream,v=h.WriteStream}var d=t.ReadStream;d&&(m.prototype=Object.create(d.prototype),m.prototype.open=b);var y=t.WriteStream;y&&(v.prototype=Object.create(y.prototype),v.prototype.open=E),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(w){m=w},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return v},set:function(w){v=w},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(w){p=w},enumerable:!0,configurable:!0});var S=v;Object.defineProperty(t,"FileWriteStream",{get:function(){return S},set:function(w){S=w},enumerable:!0,configurable:!0});function m(w,R){return this instanceof m?(d.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function b(){var w=this;O(w.path,w.flags,w.mode,function(R,A){R?(w.autoClose&&w.destroy(),w.emit("error",R)):(w.fd=A,w.emit("open",A),w.read())})}function v(w,R){return this instanceof v?(y.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function E(){var w=this;O(w.path,w.flags,w.mode,function(R,A){R?(w.destroy(),w.emit("error",R)):(w.fd=A,w.emit("open",A))})}function T(w,R){return new t.ReadStream(w,R)}function D(w,R){return new t.WriteStream(w,R)}var x=t.open;t.open=O;function O(w,R,A,N){return typeof A=="function"&&(N=A,A=null),z(w,R,A,N);function z(ue,Z,te,V,ye){return x(ue,Z,te,function(re,KB){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Rr([z,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return t}function Rr(t){Jt("ENQUEUE",t[0].name,t[1]),ne[me].push(t),$a()}var rs;function gd(){for(var t=Date.now(),e=0;e<ne[me].length;++e)ne[me][e].length>2&&(ne[me][e][3]=t,ne[me][e][4]=t);$a()}function $a(){if(clearTimeout(rs),rs=void 0,ne[me].length!==0){var t=ne[me].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)Jt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Jt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-s,l=Math.max(s-n,1),u=Math.min(l*1.2,100);a>=u?(Jt("RETRY",e.name,r),e.apply(null,r.concat([n]))):ne[me].push(t)}rs===void 0&&(rs=setTimeout($a,0))}}});var ns=g((l3,yd)=>{"use strict";var Je=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Je.writable=t=>Je(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Je.readable=t=>Je(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Je.duplex=t=>Je.writable(t)&&Je.readable(t);Je.transform=t=>Je.duplex(t)&&typeof t._transform=="function";yd.exports=Je});var vi=g((u3,Ya)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ya.exports={nextTick:Vx}:Ya.exports=process;function Vx(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,s,o;switch(n){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,r)});case 4:return process.nextTick(function(){t.call(null,e,r,i)});default:for(s=new Array(n-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){t.apply(null,s)})}}});var bd=g((f3,md)=>{"use strict";var Yx={}.toString;md.exports=Array.isArray||function(t){return Yx.call(t)=="[object Array]"}});var Ka=g((c3,wd)=>{"use strict";wd.exports=L("stream")});var xi=g((Za,Ed)=>{"use strict";var ss=L("buffer"),pt=ss.Buffer;function Sd(t,e){for(var r in t)e[r]=t[r]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?Ed.exports=ss:(Sd(ss,Za),Za.Buffer=Ar);function Ar(t,e,r){return pt(t,e,r)}Sd(pt,Ar);Ar.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return pt(t,e,r)};Ar.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=pt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Ar.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return pt(t)};Ar.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ss.SlowBuffer(t)}});var Or=g(ve=>{"use strict";function Kx(t){return Array.isArray?Array.isArray(t):os(t)==="[object Array]"}ve.isArray=Kx;function Zx(t){return typeof t=="boolean"}ve.isBoolean=Zx;function Qx(t){return t===null}ve.isNull=Qx;function Xx(t){return t==null}ve.isNullOrUndefined=Xx;function Jx(t){return typeof t=="number"}ve.isNumber=Jx;function eT(t){return typeof t=="string"}ve.isString=eT;function tT(t){return typeof t=="symbol"}ve.isSymbol=tT;function rT(t){return t===void 0}ve.isUndefined=rT;function iT(t){return os(t)==="[object RegExp]"}ve.isRegExp=iT;function nT(t){return typeof t=="object"&&t!==null}ve.isObject=nT;function sT(t){return os(t)==="[object Date]"}ve.isDate=sT;function oT(t){return os(t)==="[object Error]"||t instanceof Error}ve.isError=oT;function aT(t){return typeof t=="function"}ve.isFunction=aT;function lT(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}ve.isPrimitive=lT;ve.isBuffer=L("buffer").Buffer.isBuffer;function os(t){return Object.prototype.toString.call(t)}});var vd=g((d3,Qa)=>{"use strict";typeof Object.create=="function"?Qa.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Qa.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var Ir=g((p3,Ja)=>{"use strict";try{if(Xa=L("util"),typeof Xa.inherits!="function")throw"";Ja.exports=Xa.inherits}catch{Ja.exports=vd()}var Xa});var Td=g((g3,el)=>{"use strict";function uT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var xd=xi().Buffer,Ti=L("util");function fT(t,e,r){t.copy(e,r)}el.exports=(function(){function t(){uT(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},t.prototype.concat=function(r){if(this.length===0)return xd.alloc(0);for(var i=xd.allocUnsafe(r>>>0),n=this.head,s=0;n;)fT(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();Ti&&Ti.inspect&&Ti.inspect.custom&&(el.exports.prototype[Ti.inspect.custom]=function(){var t=Ti.inspect({length:this.length});return this.constructor.name+" "+t})});var tl=g((_3,Rd)=>{"use strict";var as=vi();function cT(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,as.nextTick(ls,this,t)):as.nextTick(ls,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,as.nextTick(ls,r,s)):as.nextTick(ls,r,s):e&&e(s)}),this)}function hT(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ls(t,e){t.emit("error",e)}Rd.exports={destroy:cT,undestroy:hT}});var Od=g((y3,Ad)=>{"use strict";Ad.exports=L("util").deprecate});var il=g((m3,Md)=>{"use strict";var er=vi();Md.exports=fe;function Dd(t){var e=this;this.next=null,this.entry=null,this.finish=function(){DT(e,t)}}var dT=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:er.nextTick,Dr;fe.WritableState=Ai;var Ld=Object.create(Or());Ld.inherits=Ir();var pT={deprecate:Od()},Pd=Ka(),fs=xi().Buffer,gT=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _T(t){return fs.from(t)}function yT(t){return fs.isBuffer(t)||t instanceof gT}var Nd=tl();Ld.inherits(fe,Pd);function mT(){}function Ai(t,e){Dr=Dr||tr(),t=t||{};var r=e instanceof Dr;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,n=t.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){TT(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Dd(this)}Ai.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Ai.prototype,"buffer",{get:pT.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var us;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(us=Function.prototype[Symbol.hasInstance],Object.defineProperty(fe,Symbol.hasInstance,{value:function(t){return us.call(this,t)?!0:this!==fe?!1:t&&t._writableState instanceof Ai}})):us=function(t){return t instanceof this};function fe(t){if(Dr=Dr||tr(),!us.call(fe,this)&&!(this instanceof Dr))return new fe(t);this._writableState=new Ai(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Pd.call(this)}fe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function bT(t,e){var r=new Error("write after end");t.emit("error",r),er.nextTick(e,r)}function wT(t,e,r,i){var n=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),er.nextTick(i,s),n=!1),n}fe.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&yT(t);return s&&!fs.isBuffer(t)&&(t=_T(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=mT),i.ended?bT(this,r):(s||wT(this,i,t,r))&&(i.pendingcb++,n=ET(this,i,s,t,e,r)),n};fe.prototype.cork=function(){var t=this._writableState;t.corked++};fe.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Cd(this,t))};fe.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function ST(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=fs.from(e,r)),e}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ET(t,e,r,i,n,s){if(!r){var o=ST(e,i,n);i!==o&&(r=!0,n="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else rl(t,e,!1,a,i,n,s);return l}function rl(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function vT(t,e,r,i,n){--e.pendingcb,r?(er.nextTick(n,i),er.nextTick(Ri,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Ri(t,e))}function xT(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function TT(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(xT(r),e)vT(t,r,i,e,n);else{var s=kd(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Cd(t,r),i?dT(Id,t,r,s,n):Id(t,r,s,n)}}function Id(t,e,r,i){r||RT(t,e),e.pendingcb--,i(),Ri(t,e)}function RT(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Cd(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)n[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;n.allBuffers=a,rl(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Dd(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,c=e.objectMode?1:l.length;if(rl(t,e,!1,c,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}fe.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};fe.prototype._writev=null;fe.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||IT(this,i,r)};function kd(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function AT(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Ri(t,e)})}function OT(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,er.nextTick(AT,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Ri(t,e){var r=kd(e);return r&&(OT(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function IT(t,e,r){e.ending=!0,Ri(t,e),r&&(e.finished?er.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function DT(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(fe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});fe.prototype.destroy=Nd.destroy;fe.prototype._undestroy=Nd.undestroy;fe.prototype._destroy=function(t,e){this.end(),e(t)}});var tr=g((b3,Bd)=>{"use strict";var Fd=vi(),LT=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Bd.exports=gt;var qd=Object.create(Or());qd.inherits=Ir();var jd=ol(),sl=il();qd.inherits(gt,jd);for(nl=LT(sl.prototype),cs=0;cs<nl.length;cs++)hs=nl[cs],gt.prototype[hs]||(gt.prototype[hs]=sl.prototype[hs]);var nl,hs,cs;function gt(t){if(!(this instanceof gt))return new gt(t);jd.call(this,t),sl.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",PT)}Object.defineProperty(gt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function PT(){this.allowHalfOpen||this._writableState.ended||Fd.nextTick(NT,this)}function NT(t){t.end()}Object.defineProperty(gt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});gt.prototype._destroy=function(t,e){this.push(null),this.end(),Fd.nextTick(e,t)}});var ul=g(Wd=>{"use strict";var ll=xi().Buffer,Ud=ll.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function CT(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function kT(t){var e=CT(t);if(typeof e!="string"&&(ll.isEncoding===Ud||!Ud(t)))throw new Error("Unknown encoding: "+t);return e||t}Wd.StringDecoder=Oi;function Oi(t){this.encoding=kT(t);var e;switch(this.encoding){case"utf16le":this.text=UT,this.end=WT,e=4;break;case"utf8":this.fillLast=qT,e=4;break;case"base64":this.text=zT,this.end=GT,e=3;break;default:this.write=$T,this.end=HT;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ll.allocUnsafe(e)}Oi.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Oi.prototype.end=BT;Oi.prototype.text=jT;Oi.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function al(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function MT(t,e,r){var i=e.length-1;if(i<r)return 0;var n=al(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=al(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=al(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function FT(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function qT(t){var e=this.lastTotal-this.lastNeed,r=FT(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function jT(t,e){var r=MT(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function BT(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function UT(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function WT(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function zT(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function GT(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function $T(t){return t.toString(this.encoding)}function HT(t){return t&&t.length?this.write(t):""}});var ol=g((E3,ep)=>{"use strict";var Pr=vi();ep.exports=Q;var VT=bd(),Ii;Q.ReadableState=Kd;var S3=L("events").EventEmitter,Hd=function(t,e){return t.listeners(e).length},pl=Ka(),Di=xi().Buffer,YT=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function KT(t){return Di.from(t)}function ZT(t){return Di.isBuffer(t)||t instanceof YT}var Vd=Object.create(Or());Vd.inherits=Ir();var fl=L("util"),$=void 0;fl&&fl.debuglog?$=fl.debuglog("stream"):$=function(){};var QT=Td(),Yd=tl(),Lr;Vd.inherits(Q,pl);var cl=["error","close","destroy","pause","resume"];function XT(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):VT(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Kd(t,e){Ii=Ii||tr(),t=t||{};var r=e instanceof Ii;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,n=t.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new QT,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Lr||(Lr=ul().StringDecoder),this.decoder=new Lr(t.encoding),this.encoding=t.encoding)}function Q(t){if(Ii=Ii||tr(),!(this instanceof Q))return new Q(t);this._readableState=new Kd(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),pl.call(this)}Object.defineProperty(Q.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Q.prototype.destroy=Yd.destroy;Q.prototype._undestroy=Yd.undestroy;Q.prototype._destroy=function(t,e){this.push(null),e(t)};Q.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Di.from(t,e),e=""),i=!0),Zd(this,t,e,!1,i)};Q.prototype.unshift=function(t){return Zd(this,t,null,!0,!1)};function Zd(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,r1(t,s);else{var o;n||(o=JT(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Di.prototype&&(e=KT(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):hl(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?hl(t,s,e,!1):Qd(t,s)):hl(t,s,e,!1))):i||(s.reading=!1)}return e1(s)}function hl(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&ds(t)),Qd(t,e)}function JT(t,e){var r;return!ZT(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function e1(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Q.prototype.isPaused=function(){return this._readableState.flowing===!1};Q.prototype.setEncoding=function(t){return Lr||(Lr=ul().StringDecoder),this._readableState.decoder=new Lr(t),this._readableState.encoding=t,this};var zd=8388608;function t1(t){return t>=zd?t=zd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Gd(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=t1(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Q.prototype.read=function(t){$("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return $("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?dl(this):ds(this),null;if(t=Gd(t,e),t===0&&e.ended)return e.length===0&&dl(this),null;var i=e.needReadable;$("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,$("length less than watermark",i)),e.ended||e.reading?(i=!1,$("reading or ended",i)):i&&($("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Gd(r,e)));var n;return t>0?n=Xd(t,e):n=null,n===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&dl(this)),n!==null&&this.emit("data",n),n};function r1(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,ds(t)}}function ds(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Pr.nextTick($d,t):$d(t))}function $d(t){$("emit readable"),t.emit("readable"),gl(t)}function Qd(t,e){e.readingMore||(e.readingMore=!0,Pr.nextTick(i1,t,e))}function i1(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&($("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}Q.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};Q.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,$("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:S;i.endEmitted?Pr.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(m,b){$("onunpipe"),m===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function a(){$("onend"),t.end()}var l=n1(r);t.on("drain",l);var u=!1;function f(){$("cleanup"),t.removeListener("close",y),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",S),r.removeListener("data",h),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var c=!1;r.on("data",h);function h(m){$("ondata"),c=!1;var b=t.write(m);b===!1&&!c&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Jd(i.pipes,t)!==-1)&&!u&&($("false write response, pause",i.awaitDrain),i.awaitDrain++,c=!0),r.pause())}function d(m){$("onerror",m),S(),t.removeListener("error",d),Hd(t,"error")===0&&t.emit("error",m)}XT(t,"error",d);function y(){t.removeListener("finish",p),S()}t.once("close",y);function p(){$("onfinish"),t.removeListener("close",y),S()}t.once("finish",p);function S(){$("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||($("pipe resume"),r.resume()),t};function n1(t){return function(){var e=t._readableState;$("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Hd(t,"data")&&(e.flowing=!0,gl(t))}}Q.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Jd(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Q.prototype.on=function(t,e){var r=pl.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&ds(this):Pr.nextTick(s1,this))}return r};Q.prototype.addListener=Q.prototype.on;function s1(t){$("readable nexttick read 0"),t.read(0)}Q.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!0,o1(this,t)),this};function o1(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Pr.nextTick(a1,t,e))}function a1(t,e){e.reading||($("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),gl(t),e.flowing&&!e.reading&&t.read(0)}Q.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function gl(t){var e=t._readableState;for($("flow",e.flowing);e.flowing&&t.read()!==null;);}Q.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if($("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if($("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(o){return function(){return t[o].apply(t,arguments)}})(n));for(var s=0;s<cl.length;s++)t.on(cl[s],this.emit.bind(this,cl[s]));return this._read=function(o){$("wrapped _read",o),i&&(i=!1,t.resume())},this};Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Q._fromList=Xd;function Xd(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=l1(t,e.buffer,e.decoder),r}function l1(t,e,r){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?i=e.shift():i=r?u1(t,e):f1(t,e),i}function u1(t,e){var r=e.head,i=1,n=r.data;for(t-=n.length;r=r.next;){var s=r.data,o=t>s.length?s.length:t;if(o===s.length?n+=s:n+=s.slice(0,t),t-=o,t===0){o===s.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(o));break}++i}return e.length-=i,n}function f1(t,e){var r=Di.allocUnsafe(t),i=e.head,n=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var s=i.data,o=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,o),t-=o,t===0){o===s.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=s.slice(o));break}++n}return e.length-=n,r}function dl(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Pr.nextTick(c1,e,t))}function c1(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Jd(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var _l=g((v3,ip)=>{"use strict";ip.exports=_t;var ps=tr(),rp=Object.create(Or());rp.inherits=Ir();rp.inherits(_t,ps);function h1(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function _t(t){if(!(this instanceof _t))return new _t(t);ps.call(this,t),this._transformState={afterTransform:h1.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",d1)}function d1(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){tp(t,e,r)}):tp(this,null,null)}_t.prototype.push=function(t,e){return this._transformState.needTransform=!1,ps.prototype.push.call(this,t,e)};_t.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};_t.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};_t.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};_t.prototype._destroy=function(t,e){var r=this;ps.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function tp(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var ap=g((x3,op)=>{"use strict";op.exports=Li;var np=_l(),sp=Object.create(Or());sp.inherits=Ir();sp.inherits(Li,np);function Li(t){if(!(this instanceof Li))return new Li(t);np.call(this,t)}Li.prototype._transform=function(t,e,r){r(null,t)}});var lp=g((be,gs)=>{"use strict";var et=L("stream");process.env.READABLE_STREAM==="disable"&&et?(gs.exports=et,be=gs.exports=et.Readable,be.Readable=et.Readable,be.Writable=et.Writable,be.Duplex=et.Duplex,be.Transform=et.Transform,be.PassThrough=et.PassThrough,be.Stream=et):(be=gs.exports=ol(),be.Stream=et||be,be.Readable=be,be.Writable=il(),be.Duplex=tr(),be.Transform=_l(),be.PassThrough=ap())});var fp=g((T3,up)=>{"use strict";up.exports=lp().PassThrough});var pp=g((R3,dp)=>{"use strict";var cp=L("util"),ms=fp();dp.exports={Readable:_s,Writable:ys};cp.inherits(_s,ms);cp.inherits(ys,ms);function hp(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function _s(t,e){if(!(this instanceof _s))return new _s(t,e);ms.call(this,e),hp(this,"_read",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),r.pipe(this)}),this.emit("readable")}function ys(t,e){if(!(this instanceof ys))return new ys(t,e);ms.call(this,e),hp(this,"_write",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),this.pipe(r)}),this.emit("writable")}});var yl=g((A3,gp)=>{"use strict";gp.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var i="";if(r>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),i="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),i+s.join("/")}});var ml=g((O3,_p)=>{"use strict";function p1(t){return t}_p.exports=p1});var mp=g((I3,yp)=>{"use strict";function g1(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}yp.exports=g1});var Sp=g((D3,wp)=>{"use strict";var _1=mp(),bp=Math.max;function y1(t,e,r){return e=bp(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=bp(i.length-e,0),o=Array(s);++n<s;)o[n]=i[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=i[n];return a[e]=r(o),_1(t,this,a)}}wp.exports=y1});var vp=g((L3,Ep)=>{"use strict";function m1(t){return function(){return t}}Ep.exports=m1});var bl=g((P3,xp)=>{"use strict";var b1=typeof global=="object"&&global&&global.Object===Object&&global;xp.exports=b1});var Nr=g((N3,Tp)=>{"use strict";var w1=bl(),S1=typeof self=="object"&&self&&self.Object===Object&&self,E1=w1||S1||Function("return this")();Tp.exports=E1});var bs=g((C3,Rp)=>{"use strict";var v1=Nr(),x1=v1.Symbol;Rp.exports=x1});var Dp=g((k3,Ip)=>{"use strict";var Ap=bs(),Op=Object.prototype,T1=Op.hasOwnProperty,R1=Op.toString,Pi=Ap?Ap.toStringTag:void 0;function A1(t){var e=T1.call(t,Pi),r=t[Pi];try{t[Pi]=void 0;var i=!0}catch{}var n=R1.call(t);return i&&(e?t[Pi]=r:delete t[Pi]),n}Ip.exports=A1});var Pp=g((M3,Lp)=>{"use strict";var O1=Object.prototype,I1=O1.toString;function D1(t){return I1.call(t)}Lp.exports=D1});var Ni=g((F3,kp)=>{"use strict";var Np=bs(),L1=Dp(),P1=Pp(),N1="[object Null]",C1="[object Undefined]",Cp=Np?Np.toStringTag:void 0;function k1(t){return t==null?t===void 0?C1:N1:Cp&&Cp in Object(t)?L1(t):P1(t)}kp.exports=k1});var Ci=g((q3,Mp)=>{"use strict";function M1(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}Mp.exports=M1});var wl=g((j3,Fp)=>{"use strict";var F1=Ni(),q1=Ci(),j1="[object AsyncFunction]",B1="[object Function]",U1="[object GeneratorFunction]",W1="[object Proxy]";function z1(t){if(!q1(t))return!1;var e=F1(t);return e==B1||e==U1||e==j1||e==W1}Fp.exports=z1});var jp=g((B3,qp)=>{"use strict";var G1=Nr(),$1=G1["__core-js_shared__"];qp.exports=$1});var Wp=g((U3,Up)=>{"use strict";var Sl=jp(),Bp=(function(){var t=/[^.]+$/.exec(Sl&&Sl.keys&&Sl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function H1(t){return!!Bp&&Bp in t}Up.exports=H1});var Gp=g((W3,zp)=>{"use strict";var V1=Function.prototype,Y1=V1.toString;function K1(t){if(t!=null){try{return Y1.call(t)}catch{}try{return t+""}catch{}}return""}zp.exports=K1});var Hp=g((z3,$p)=>{"use strict";var Z1=wl(),Q1=Wp(),X1=Ci(),J1=Gp(),eR=/[\\^$.*+?()[\]{}|]/g,tR=/^\[object .+?Constructor\]$/,rR=Function.prototype,iR=Object.prototype,nR=rR.toString,sR=iR.hasOwnProperty,oR=RegExp("^"+nR.call(sR).replace(eR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aR(t){if(!X1(t)||Q1(t))return!1;var e=Z1(t)?oR:tR;return e.test(J1(t))}$p.exports=aR});var Yp=g((G3,Vp)=>{"use strict";function lR(t,e){return t?.[e]}Vp.exports=lR});var ki=g(($3,Kp)=>{"use strict";var uR=Hp(),fR=Yp();function cR(t,e){var r=fR(t,e);return uR(r)?r:void 0}Kp.exports=cR});var Qp=g((H3,Zp)=>{"use strict";var hR=ki(),dR=(function(){try{var t=hR(Object,"defineProperty");return t({},"",{}),t}catch{}})();Zp.exports=dR});var eg=g((V3,Jp)=>{"use strict";var pR=vp(),Xp=Qp(),gR=ml(),_R=Xp?function(t,e){return Xp(t,"toString",{configurable:!0,enumerable:!1,value:pR(e),writable:!0})}:gR;Jp.exports=_R});var rg=g((Y3,tg)=>{"use strict";var yR=800,mR=16,bR=Date.now;function wR(t){var e=0,r=0;return function(){var i=bR(),n=mR-(i-r);if(r=i,n>0){if(++e>=yR)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}tg.exports=wR});var ng=g((K3,ig)=>{"use strict";var SR=eg(),ER=rg(),vR=ER(SR);ig.exports=vR});var ws=g((Z3,sg)=>{"use strict";var xR=ml(),TR=Sp(),RR=ng();function AR(t,e){return RR(TR(t,e,xR),t+"")}sg.exports=AR});var Ss=g((Q3,og)=>{"use strict";function OR(t,e){return t===e||t!==t&&e!==e}og.exports=OR});var El=g((X3,ag)=>{"use strict";var IR=9007199254740991;function DR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=IR}ag.exports=DR});var Es=g((J3,lg)=>{"use strict";var LR=wl(),PR=El();function NR(t){return t!=null&&PR(t.length)&&!LR(t)}lg.exports=NR});var vl=g((e4,ug)=>{"use strict";var CR=9007199254740991,kR=/^(?:0|[1-9]\d*)$/;function MR(t,e){var r=typeof t;return e=e??CR,!!e&&(r=="number"||r!="symbol"&&kR.test(t))&&t>-1&&t%1==0&&t<e}ug.exports=MR});var cg=g((t4,fg)=>{"use strict";var FR=Ss(),qR=Es(),jR=vl(),BR=Ci();function UR(t,e,r){if(!BR(r))return!1;var i=typeof e;return(i=="number"?qR(r)&&jR(e,r.length):i=="string"&&e in r)?FR(r[e],t):!1}fg.exports=UR});var dg=g((r4,hg)=>{"use strict";function WR(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}hg.exports=WR});var Cr=g((i4,pg)=>{"use strict";function zR(t){return t!=null&&typeof t=="object"}pg.exports=zR});var _g=g((n4,gg)=>{"use strict";var GR=Ni(),$R=Cr(),HR="[object Arguments]";function VR(t){return $R(t)&&GR(t)==HR}gg.exports=VR});var xl=g((s4,bg)=>{"use strict";var yg=_g(),YR=Cr(),mg=Object.prototype,KR=mg.hasOwnProperty,ZR=mg.propertyIsEnumerable,QR=yg((function(){return arguments})())?yg:function(t){return YR(t)&&KR.call(t,"callee")&&!ZR.call(t,"callee")};bg.exports=QR});var Tl=g((o4,wg)=>{"use strict";var XR=Array.isArray;wg.exports=XR});var Eg=g((a4,Sg)=>{"use strict";function JR(){return!1}Sg.exports=JR});var Rg=g((Mi,kr)=>{"use strict";var eA=Nr(),tA=Eg(),Tg=typeof Mi=="object"&&Mi&&!Mi.nodeType&&Mi,vg=Tg&&typeof kr=="object"&&kr&&!kr.nodeType&&kr,rA=vg&&vg.exports===Tg,xg=rA?eA.Buffer:void 0,iA=xg?xg.isBuffer:void 0,nA=iA||tA;kr.exports=nA});var Og=g((l4,Ag)=>{"use strict";var sA=Ni(),oA=El(),aA=Cr(),lA="[object Arguments]",uA="[object Array]",fA="[object Boolean]",cA="[object Date]",hA="[object Error]",dA="[object Function]",pA="[object Map]",gA="[object Number]",_A="[object Object]",yA="[object RegExp]",mA="[object Set]",bA="[object String]",wA="[object WeakMap]",SA="[object ArrayBuffer]",EA="[object DataView]",vA="[object Float32Array]",xA="[object Float64Array]",TA="[object Int8Array]",RA="[object Int16Array]",AA="[object Int32Array]",OA="[object Uint8Array]",IA="[object Uint8ClampedArray]",DA="[object Uint16Array]",LA="[object Uint32Array]",X={};X[vA]=X[xA]=X[TA]=X[RA]=X[AA]=X[OA]=X[IA]=X[DA]=X[LA]=!0;X[lA]=X[uA]=X[SA]=X[fA]=X[EA]=X[cA]=X[hA]=X[dA]=X[pA]=X[gA]=X[_A]=X[yA]=X[mA]=X[bA]=X[wA]=!1;function PA(t){return aA(t)&&oA(t.length)&&!!X[sA(t)]}Ag.exports=PA});var Rl=g((u4,Ig)=>{"use strict";function NA(t){return function(e){return t(e)}}Ig.exports=NA});var Lg=g((Fi,Mr)=>{"use strict";var CA=bl(),Dg=typeof Fi=="object"&&Fi&&!Fi.nodeType&&Fi,qi=Dg&&typeof Mr=="object"&&Mr&&!Mr.nodeType&&Mr,kA=qi&&qi.exports===Dg,Al=kA&&CA.process,MA=(function(){try{var t=qi&&qi.require&&qi.require("util").types;return t||Al&&Al.binding&&Al.binding("util")}catch{}})();Mr.exports=MA});var kg=g((f4,Cg)=>{"use strict";var FA=Og(),qA=Rl(),Pg=Lg(),Ng=Pg&&Pg.isTypedArray,jA=Ng?qA(Ng):FA;Cg.exports=jA});var Fg=g((c4,Mg)=>{"use strict";var BA=dg(),UA=xl(),WA=Tl(),zA=Rg(),GA=vl(),$A=kg(),HA=Object.prototype,VA=HA.hasOwnProperty;function YA(t,e){var r=WA(t),i=!r&&UA(t),n=!r&&!i&&zA(t),s=!r&&!i&&!n&&$A(t),o=r||i||n||s,a=o?BA(t.length,String):[],l=a.length;for(var u in t)(e||VA.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||GA(u,l)))&&a.push(u);return a}Mg.exports=YA});var jg=g((h4,qg)=>{"use strict";var KA=Object.prototype;function ZA(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||KA;return t===r}qg.exports=ZA});var Ug=g((d4,Bg)=>{"use strict";function QA(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}Bg.exports=QA});var zg=g((p4,Wg)=>{"use strict";var XA=Ci(),JA=jg(),eO=Ug(),tO=Object.prototype,rO=tO.hasOwnProperty;function iO(t){if(!XA(t))return eO(t);var e=JA(t),r=[];for(var i in t)i=="constructor"&&(e||!rO.call(t,i))||r.push(i);return r}Wg.exports=iO});var $g=g((g4,Gg)=>{"use strict";var nO=Fg(),sO=zg(),oO=Es();function aO(t){return oO(t)?nO(t,!0):sO(t)}Gg.exports=aO});var Yg=g((_4,Vg)=>{"use strict";var lO=ws(),uO=Ss(),fO=cg(),cO=$g(),Hg=Object.prototype,hO=Hg.hasOwnProperty,dO=lO(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&fO(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=cO(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||uO(f,Hg[u])&&!hO.call(t,u))&&(t[u]=s[u])}return t});Vg.exports=dO});var ie=g((y4,Kg)=>{"use strict";var Ol=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let i=0;i<e.length;i++)r+=` ${e[i].stack}
|
|
8
|
+
`;super(r),this.name="AggregateError",this.errors=e}};Kg.exports={AggregateError:Ol,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Il=g((m4,Zg)=>{"use strict";Zg.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var xe=g((b4,Jg)=>{"use strict";var{format:pO,inspect:vs}=Il(),{AggregateError:gO}=ie(),_O=globalThis.AggregateError||gO,yO=Symbol("kIsNodeError"),mO=["string","function","number","object","Function","Object","boolean","bigint","symbol"],bO=/^([A-Z][a-z0-9]*)+$/,wO="__node_internal_",xs={};function rr(t,e){if(!t)throw new xs.ERR_INTERNAL_ASSERTION(e)}function Qg(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function SO(t,e,r){if(typeof e=="function")return rr(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return rr(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:pO(e,...r)}function we(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(SO(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[yO]=!0,xs[t]=i}function Xg(t){let e=wO+t.name;return Object.defineProperty(t,"name",{value:e}),t}function EO(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new _O([e,t],e.message);return r.code=e.code,r}return t||e}var Dl=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new xs.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};we("ERR_ASSERTION","%s",Error);we("ERR_INVALID_ARG_TYPE",(t,e,r)=>{rr(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],o=[];for(let l of e)rr(typeof l=="string","All expected entries have to be of type string"),mO.includes(l)?n.push(l.toLowerCase()):bO.test(l)?s.push(l):(rr(l!=="object",'The value "object" should be written as "Object"'),o.push(l));if(s.length>0){let l=n.indexOf("object");l!==-1&&(n.splice(n,l,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let l=n.pop();i+=`one of type ${n.join(", ")}, or ${l}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();i+=`an instance of ${s.join(", ")}, or ${l}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();i+=`one of ${o.join(", ")}, or ${l}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=`. Received an instance of ${r.constructor.name}`;else{let l=vs(r,{depth:-1});i+=`. Received ${l}`}}else{let l=vs(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);we("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=vs(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);we("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var i;let n=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${n}.`},TypeError);we("ERR_MISSING_ARGS",(...t)=>{rr(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(i=>`"${i}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let i=t.pop();e+=`The ${t.join(", ")}, and ${i} arguments`}break}return`${e} must be specified`},TypeError);we("ERR_OUT_OF_RANGE",(t,e,r)=>{rr(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=Qg(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=Qg(i)),i+="n"}else i=vs(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);we("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);we("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);we("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);we("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);we("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);we("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);we("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);we("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);we("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);we("ERR_STREAM_WRITE_AFTER_END","write after end",Error);we("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);Jg.exports={AbortError:Dl,aggregateTwoErrors:Xg(EO),hideStackFrames:Xg,codes:xs}});var u_=g((Ui,Bi)=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});var s_=new WeakMap,Ll=new WeakMap;function J(t){let e=s_.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function e_(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}function Fr(t,e){s_.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(e);for(let i=0;i<r.length;++i){let n=r[i];n in this||Object.defineProperty(this,n,o_(n))}}Fr.prototype={get type(){return J(this).event.type},get target(){return J(this).eventTarget},get currentTarget(){return J(this).currentTarget},composedPath(){let t=J(this).currentTarget;return t==null?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return J(this).eventPhase},stopPropagation(){let t=J(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=J(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!J(this).event.bubbles},get cancelable(){return!!J(this).event.cancelable},preventDefault(){e_(J(this))},get defaultPrevented(){return J(this).canceled},get composed(){return!!J(this).event.composed},get timeStamp(){return J(this).timeStamp},get srcElement(){return J(this).eventTarget},get cancelBubble(){return J(this).stopped},set cancelBubble(t){if(!t)return;let e=J(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!J(this).canceled},set returnValue(t){t||e_(J(this))},initEvent(){}};Object.defineProperty(Fr.prototype,"constructor",{value:Fr,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(Fr.prototype,window.Event.prototype),Ll.set(window.Event.prototype,Fr));function o_(t){return{get(){return J(this).event[t]},set(e){J(this).event[t]=e},configurable:!0,enumerable:!0}}function vO(t){return{value(){let e=J(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function xO(t,e){let r=Object.keys(e);if(r.length===0)return t;function i(n,s){t.call(this,n,s)}i.prototype=Object.create(t.prototype,{constructor:{value:i,configurable:!0,writable:!0}});for(let n=0;n<r.length;++n){let s=r[n];if(!(s in t.prototype)){let a=typeof Object.getOwnPropertyDescriptor(e,s).value=="function";Object.defineProperty(i.prototype,s,a?vO(s):o_(s))}}return i}function a_(t){if(t==null||t===Object.prototype)return Fr;let e=Ll.get(t);return e==null&&(e=xO(a_(Object.getPrototypeOf(t)),t),Ll.set(t,e)),e}function TO(t,e){let r=a_(Object.getPrototypeOf(e));return new r(t,e)}function RO(t){return J(t).immediateStopped}function AO(t,e){J(t).eventPhase=e}function OO(t,e){J(t).currentTarget=e}function t_(t,e){J(t).passiveListener=e}var l_=new WeakMap,r_=1,i_=2,Ts=3;function Rs(t){return t!==null&&typeof t=="object"}function ji(t){let e=l_.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function IO(t){return{get(){let r=ji(this).get(t);for(;r!=null;){if(r.listenerType===Ts)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!Rs(e)&&(e=null);let r=ji(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===Ts?i!==null?i.next=n.next:n.next!==null?r.set(t,n.next):r.delete(t):i=n,n=n.next;if(e!==null){let s={listener:e,listenerType:Ts,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function Pl(t,e){Object.defineProperty(t,`on${e}`,IO(e))}function n_(t){function e(){He.call(this)}e.prototype=Object.create(He.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)Pl(e.prototype,t[r]);return e}function He(){if(this instanceof He){l_.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return n_(arguments[0]);if(arguments.length>0){let t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return n_(t)}throw new TypeError("Cannot call a class as a function")}He.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!Rs(e))throw new TypeError("'listener' should be a function or an object.");let i=ji(this),n=Rs(r),o=(n?!!r.capture:!!r)?r_:i_,a={listener:e,listenerType:o,passive:n&&!!r.passive,once:n&&!!r.once,next:null},l=i.get(t);if(l===void 0){i.set(t,a);return}let u=null;for(;l!=null;){if(l.listener===e&&l.listenerType===o)return;u=l,l=l.next}u.next=a},removeEventListener(t,e,r){if(e==null)return;let i=ji(this),s=(Rs(r)?!!r.capture:!!r)?r_:i_,o=null,a=i.get(t);for(;a!=null;){if(a.listener===e&&a.listenerType===s){o!==null?o.next=a.next:a.next!==null?i.set(t,a.next):i.delete(t);return}o=a,a=a.next}},dispatchEvent(t){if(t==null||typeof t.type!="string")throw new TypeError('"event.type" should be a string.');let e=ji(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=TO(this,t),s=null;for(;i!=null;){if(i.once?s!==null?s.next=i.next:i.next!==null?e.set(r,i.next):e.delete(r):s=i,t_(n,i.passive?i.listener:null),typeof i.listener=="function")try{i.listener.call(this,n)}catch(o){typeof console<"u"&&typeof console.error=="function"&&console.error(o)}else i.listenerType!==Ts&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(RO(n))break;i=i.next}return t_(n,null),AO(n,0),OO(n,null),!n.defaultPrevented}};Object.defineProperty(He.prototype,"constructor",{value:He,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(He.prototype,window.EventTarget.prototype);Ui.defineEventAttribute=Pl;Ui.EventTarget=He;Ui.default=He;Bi.exports=He;Bi.exports.EventTarget=Bi.exports.default=He;Bi.exports.defineEventAttribute=Pl});var qr=g((zi,Wi)=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});var Nl=u_(),Lt=class extends Nl.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=As.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};Nl.defineEventAttribute(Lt.prototype,"abort");function DO(){let t=Object.create(Lt.prototype);return Nl.EventTarget.call(t),As.set(t,!1),t}function LO(t){As.get(t)===!1&&(As.set(t,!0),t.dispatchEvent({type:"abort"}))}var As=new WeakMap;Object.defineProperties(Lt.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Lt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Pt=class{constructor(){c_.set(this,DO())}get signal(){return f_(this)}abort(){LO(f_(this))}},c_=new WeakMap;function f_(t){let e=c_.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}Object.defineProperties(Pt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Pt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});zi.AbortController=Pt;zi.AbortSignal=Lt;zi.default=Pt;Wi.exports=Pt;Wi.exports.AbortController=Wi.exports.default=Pt;Wi.exports.AbortSignal=Lt});var Oe=g((w4,kl)=>{"use strict";var PO=L("buffer"),{format:NO,inspect:CO}=Il(),{codes:{ERR_INVALID_ARG_TYPE:Cl}}=xe(),{kResistStopPropagation:kO,AggregateError:MO,SymbolDispose:FO}=ie(),qO=globalThis.AbortSignal||qr().AbortSignal,jO=globalThis.AbortController||qr().AbortController,BO=Object.getPrototypeOf(async function(){}).constructor,h_=globalThis.Blob||PO.Blob,UO=typeof h_<"u"?function(e){return e instanceof h_}:function(e){return!1},d_=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Cl(e,"AbortSignal",t)},WO=(t,e)=>{if(typeof t!="function")throw new Cl(e,"Function",t)};kl.exports={AggregateError:MO,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format:NO,inspect:CO,types:{isAsyncFunction(t){return t instanceof BO},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:UO,deprecate(t,e){return t},addAbortListener:L("events").addAbortListener||function(e,r){if(e===void 0)throw new Cl("signal","AbortSignal",e);d_(e,"signal"),WO(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[kO]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[FO](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:qO.any||function(e){if(e.length===1)return e[0];let r=new jO,i=()=>r.abort();return e.forEach(n=>{d_(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};kl.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Br=g((S4,v_)=>{"use strict";var{ArrayIsArray:Fl,ArrayPrototypeIncludes:y_,ArrayPrototypeJoin:m_,ArrayPrototypeMap:zO,NumberIsInteger:ql,NumberIsNaN:GO,NumberMAX_SAFE_INTEGER:$O,NumberMIN_SAFE_INTEGER:HO,NumberParseInt:VO,ObjectPrototypeHasOwnProperty:YO,RegExpPrototypeExec:b_,String:KO,StringPrototypeToUpperCase:ZO,StringPrototypeTrim:QO}=ie(),{hideStackFrames:je,codes:{ERR_SOCKET_BAD_PORT:XO,ERR_INVALID_ARG_TYPE:Te,ERR_INVALID_ARG_VALUE:jr,ERR_OUT_OF_RANGE:ir,ERR_UNKNOWN_SIGNAL:p_}}=xe(),{normalizeEncoding:JO}=Oe(),{isAsyncFunction:eI,isArrayBufferView:tI}=Oe().types,g_={};function rI(t){return t===(t|0)}function iI(t){return t===t>>>0}var nI=/^[0-7]+$/,sI="must be a 32-bit unsigned integer or an octal string";function oI(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(b_(nI,t)===null)throw new jr(e,t,sI);t=VO(t,8)}return w_(t,e),t}var aI=je((t,e,r=HO,i=$O)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!ql(t))throw new ir(e,"an integer",t);if(t<r||t>i)throw new ir(e,`>= ${r} && <= ${i}`,t)}),lI=je((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!ql(t))throw new ir(e,"an integer",t);if(t<r||t>i)throw new ir(e,`>= ${r} && <= ${i}`,t)}),w_=je((t,e,r=!1)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!ql(t))throw new ir(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new ir(e,`>= ${i} && <= ${n}`,t)});function jl(t,e){if(typeof t!="string")throw new Te(e,"string",t)}function uI(t,e,r=void 0,i){if(typeof t!="number")throw new Te(e,"number",t);if(r!=null&&t<r||i!=null&&t>i||(r!=null||i!=null)&&GO(t))throw new ir(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var fI=je((t,e,r)=>{if(!y_(r,t)){let n="must be one of: "+m_(zO(r,s=>typeof s=="string"?`'${s}'`:KO(s)),", ");throw new jr(e,t,n)}});function S_(t,e){if(typeof t!="boolean")throw new Te(e,"boolean",t)}function Ml(t,e,r){return t==null||!YO(t,e)?r:t[e]}var cI=je((t,e,r=null)=>{let i=Ml(r,"allowArray",!1),n=Ml(r,"allowFunction",!1);if(!Ml(r,"nullable",!1)&&t===null||!i&&Fl(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Te(e,"Object",t)}),hI=je((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Te(e,"a dictionary",t)}),Os=je((t,e,r=0)=>{if(!Fl(t))throw new Te(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new jr(e,t,i)}});function dI(t,e){Os(t,e);for(let r=0;r<t.length;r++)jl(t[r],`${e}[${r}]`)}function pI(t,e){Os(t,e);for(let r=0;r<t.length;r++)S_(t[r],`${e}[${r}]`)}function gI(t,e){Os(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new Te(n,"AbortSignal",i);E_(i,n)}}function _I(t,e="signal"){if(jl(t,e),g_[t]===void 0)throw g_[ZO(t)]!==void 0?new p_(t+" (signals must use all capital letters)"):new p_(t)}var yI=je((t,e="buffer")=>{if(!tI(t))throw new Te(e,["Buffer","TypedArray","DataView"],t)});function mI(t,e){let r=JO(e),i=t.length;if(r==="hex"&&i%2!==0)throw new jr("encoding",e,`is invalid for data of length ${i}`)}function bI(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&QO(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new XO(e,t,r);return t|0}var E_=je((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Te(e,"AbortSignal",t)}),wI=je((t,e)=>{if(typeof t!="function")throw new Te(e,"Function",t)}),SI=je((t,e)=>{if(typeof t!="function"||eI(t))throw new Te(e,"Function",t)}),EI=je((t,e)=>{if(t!==void 0)throw new Te(e,"undefined",t)});function vI(t,e,r){if(!y_(r,t))throw new Te(e,`('${m_(r,"|")}')`,t)}var xI=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function __(t,e){if(typeof t>"u"||!b_(xI,t))throw new jr(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function TI(t){if(typeof t=="string")return __(t,"hints"),t;if(Fl(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];__(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new jr("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}v_.exports={isInt32:rI,isUint32:iI,parseFileMode:oI,validateArray:Os,validateStringArray:dI,validateBooleanArray:pI,validateAbortSignalArray:gI,validateBoolean:S_,validateBuffer:yI,validateDictionary:hI,validateEncoding:mI,validateFunction:wI,validateInt32:lI,validateInteger:aI,validateNumber:uI,validateObject:cI,validateOneOf:fI,validatePlainFunction:SI,validatePort:bI,validateSignalName:_I,validateString:jl,validateUint32:w_,validateUndefined:EI,validateUnion:vI,validateAbortSignal:E_,validateLinkHeaderValue:TI}});var Nt=g((E4,x_)=>{"use strict";x_.exports=global.process});var rt=g((v4,j_)=>{"use strict";var{SymbolAsyncIterator:T_,SymbolIterator:R_,SymbolFor:nr}=ie(),A_=nr("nodejs.stream.destroyed"),O_=nr("nodejs.stream.errored"),Bl=nr("nodejs.stream.readable"),Ul=nr("nodejs.stream.writable"),I_=nr("nodejs.stream.disturbed"),RI=nr("nodejs.webstream.isClosedPromise"),AI=nr("nodejs.webstream.controllerErrorFunction");function Is(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function Ds(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function OI(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function tt(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function D_(t){return!!(t&&!tt(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function L_(t){return!!(t&&!tt(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function P_(t){return!!(t&&!tt(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function II(t){return D_(t)||L_(t)||P_(t)}function DI(t,e){return t==null?!1:e===!0?typeof t[T_]=="function":e===!1?typeof t[R_]=="function":typeof t[T_]=="function"||typeof t[R_]=="function"}function Ls(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[A_]||i!=null&&i.destroyed)}function N_(t){if(!Ds(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function LI(t,e){if(!Ds(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function PI(t){if(!Is(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function C_(t,e){if(!Is(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function k_(t){return t&&t[Bl]!=null?t[Bl]:typeof t?.readable!="boolean"?null:Ls(t)?!1:Is(t)&&t.readable&&!C_(t)}function M_(t){return t&&t[Ul]!=null?t[Ul]:typeof t?.writable!="boolean"?null:Ls(t)?!1:Ds(t)&&t.writable&&!N_(t)}function NI(t,e){return tt(t)?Ls(t)?!0:!(e?.readable!==!1&&k_(t)||e?.writable!==!1&&M_(t)):null}function CI(t){var e,r;return tt(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function kI(t){var e,r;return tt(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function MI(t){if(!tt(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&F_(t)?t._closed:null}function F_(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function q_(t){return typeof t._sent100=="boolean"&&F_(t)}function FI(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function qI(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&q_(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function jI(t){var e;return!!(t&&((e=t[I_])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function BI(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[O_])!==null&&o!==void 0?o:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&n!==void 0?n:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&i!==void 0?i:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((f=t._writableState)===null||f===void 0)&&f.errored))}j_.exports={isDestroyed:Ls,kIsDestroyed:A_,isDisturbed:jI,kIsDisturbed:I_,isErrored:BI,kIsErrored:O_,isReadable:k_,kIsReadable:Bl,kIsClosedPromise:RI,kControllerErrorFunction:AI,kIsWritable:Ul,isClosed:MI,isDuplexNodeStream:OI,isFinished:NI,isIterable:DI,isReadableNodeStream:Is,isReadableStream:D_,isReadableEnded:PI,isReadableFinished:C_,isReadableErrored:kI,isNodeStream:tt,isWebStream:II,isWritable:M_,isWritableNodeStream:Ds,isWritableStream:L_,isWritableEnded:N_,isWritableFinished:LI,isWritableErrored:CI,isServerRequest:FI,isServerResponse:q_,willEmitClose:qI,isTransformStream:P_}});var yt=g((x4,Hl)=>{"use strict";var Ct=Nt(),{AbortError:Y_,codes:UI}=xe(),{ERR_INVALID_ARG_TYPE:WI,ERR_STREAM_PREMATURE_CLOSE:B_}=UI,{kEmptyObject:zl,once:Gl}=Oe(),{validateAbortSignal:zI,validateFunction:GI,validateObject:$I,validateBoolean:HI}=Br(),{Promise:VI,PromisePrototypeThen:YI,SymbolDispose:K_}=ie(),{isClosed:KI,isReadable:U_,isReadableNodeStream:Wl,isReadableStream:ZI,isReadableFinished:W_,isReadableErrored:z_,isWritable:G_,isWritableNodeStream:$_,isWritableStream:QI,isWritableFinished:H_,isWritableErrored:V_,isNodeStream:XI,willEmitClose:JI,kIsClosedPromise:eD}=rt(),Ur;function tD(t){return t.setHeader&&typeof t.abort=="function"}var $l=()=>{};function Z_(t,e,r){var i,n;if(arguments.length===2?(r=e,e=zl):e==null?e=zl:$I(e,"options"),GI(r,"callback"),zI(e.signal,"options.signal"),r=Gl(r),ZI(t)||QI(t))return rD(t,e,r);if(!XI(t))throw new WI("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:Wl(t),o=(n=e.writable)!==null&&n!==void 0?n:$_(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||h()},f=JI(t)&&Wl(t)===s&&$_(t)===o,c=H_(t,!1),h=()=>{c=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||d)&&r.call(t)},d=W_(t,!1),y=()=>{d=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||c)&&r.call(t)},p=T=>{r.call(t,T)},S=KI(t),m=()=>{S=!0;let T=V_(t)||z_(t);if(T&&typeof T!="boolean")return r.call(t,T);if(s&&!d&&Wl(t,!0)&&!W_(t,!1))return r.call(t,new B_);if(o&&!c&&!H_(t,!1))return r.call(t,new B_);r.call(t)},b=()=>{S=!0;let T=V_(t)||z_(t);if(T&&typeof T!="boolean")return r.call(t,T);r.call(t)},v=()=>{t.req.on("finish",h)};tD(t)?(t.on("complete",h),f||t.on("abort",m),t.req?v():t.on("request",v)):o&&!a&&(t.on("end",u),t.on("close",u)),!f&&typeof t.aborted=="boolean"&&t.on("aborted",m),t.on("end",y),t.on("finish",h),e.error!==!1&&t.on("error",p),t.on("close",m),S?Ct.nextTick(m):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?f||Ct.nextTick(b):(!s&&(!f||U_(t))&&(c||G_(t)===!1)||!o&&(!f||G_(t))&&(d||U_(t)===!1)||l&&t.req&&t.aborted)&&Ct.nextTick(b);let E=()=>{r=$l,t.removeListener("aborted",m),t.removeListener("complete",h),t.removeListener("abort",m),t.removeListener("request",v),t.req&&t.req.removeListener("finish",h),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",h),t.removeListener("end",y),t.removeListener("error",p),t.removeListener("close",m)};if(e.signal&&!S){let T=()=>{let D=r;E(),D.call(t,new Y_(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Ct.nextTick(T);else{Ur=Ur||Oe().addAbortListener;let D=Ur(e.signal,T),x=r;r=Gl((...O)=>{D[K_](),x.apply(t,O)})}}return E}function rD(t,e,r){let i=!1,n=$l;if(e.signal)if(n=()=>{i=!0,r.call(t,new Y_(void 0,{cause:e.signal.reason}))},e.signal.aborted)Ct.nextTick(n);else{Ur=Ur||Oe().addAbortListener;let o=Ur(e.signal,n),a=r;r=Gl((...l)=>{o[K_](),a.apply(t,l)})}let s=(...o)=>{i||Ct.nextTick(()=>r.apply(t,o))};return YI(t[eD].promise,s,s),$l}function iD(t,e){var r;let i=!1;return e===null&&(e=zl),(r=e)!==null&&r!==void 0&&r.cleanup&&(HI(e.cleanup,"cleanup"),i=e.cleanup),new VI((n,s)=>{let o=Z_(t,e,a=>{i&&o(),a?s(a):n()})})}Hl.exports=Z_;Hl.exports.finished=iD});var sr=g((T4,ny)=>{"use strict";var it=Nt(),{aggregateTwoErrors:nD,codes:{ERR_MULTIPLE_CALLBACK:sD},AbortError:oD}=xe(),{Symbol:J_}=ie(),{kIsDestroyed:aD,isDestroyed:lD,isFinished:uD,isServerRequest:fD}=rt(),ey=J_("kDestroy"),Vl=J_("kConstruct");function ty(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function cD(t,e){let r=this._readableState,i=this._writableState,n=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(ty(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Q_(this,t,e):this.once(ey,function(s){Q_(this,nD(s,t),e)}),this)}function Q_(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;ty(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?it.nextTick(hD,t,s):it.nextTick(ry,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function hD(t,e){Yl(t,e),ry(t)}function ry(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function Yl(t,e){let r=t._readableState,i=t._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function dD(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function Kl(t,e,r){let i=t._readableState,n=t._writableState;if(n!=null&&n.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||n!=null&&n.autoDestroy?t.destroy(e):e&&(e.stack,n&&!n.errored&&(n.errored=e),i&&!i.errored&&(i.errored=e),r?it.nextTick(Yl,t,e):Yl(t,e))}function pD(t,e){if(typeof t._construct!="function")return;let r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(Vl,e),!(t.listenerCount(Vl)>1)&&it.nextTick(gD,t)}function gD(t){let e=!1;function r(i){if(e){Kl(t,i??new sD);return}e=!0;let n=t._readableState,s=t._writableState,o=s||n;n&&(n.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(ey,i):i?Kl(t,i,!0):it.nextTick(_D,t)}try{t._construct(i=>{it.nextTick(r,i)})}catch(i){it.nextTick(r,i)}}function _D(t){t.emit(Vl)}function X_(t){return t?.setHeader&&typeof t.abort=="function"}function iy(t){t.emit("close")}function yD(t,e){t.emit("error",e),it.nextTick(iy,t)}function mD(t,e){!t||lD(t)||(!e&&!uD(t)&&(e=new oD),fD(t)?(t.socket=null,t.destroy(e)):X_(t)?t.abort():X_(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?it.nextTick(yD,t,e):it.nextTick(iy,t),t.destroyed||(t[aD]=!0))}ny.exports={construct:pD,destroyer:mD,destroy:cD,undestroy:dD,errorOrDestroy:Kl}});var Cs=g((R4,oy)=>{"use strict";var{ArrayIsArray:bD,ObjectSetPrototypeOf:sy}=ie(),{EventEmitter:Ps}=L("events");function Ns(t){Ps.call(this,t)}sy(Ns.prototype,Ps.prototype);sy(Ns,Ps);Ns.prototype.pipe=function(t,e){let r=this;function i(f){t.writable&&t.write(f)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",a));let s=!1;function o(){s||(s=!0,t.end())}function a(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function l(f){u(),Ps.listenerCount(this,"error")===0&&this.emit("error",f)}Zl(r,"error",l),Zl(t,"error",l);function u(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t};function Zl(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):bD(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}oy.exports={Stream:Ns,prependListener:Zl}});var Gi=g((A4,ks)=>{"use strict";var{SymbolDispose:wD}=ie(),{AbortError:ay,codes:SD}=xe(),{isNodeStream:ly,isWebStream:ED,kControllerErrorFunction:vD}=rt(),xD=yt(),{ERR_INVALID_ARG_TYPE:uy}=SD,Ql,TD=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new uy(e,"AbortSignal",t)};ks.exports.addAbortSignal=function(e,r){if(TD(e,"signal"),!ly(r)&&!ED(r))throw new uy("stream",["ReadableStream","WritableStream","Stream"],r);return ks.exports.addAbortSignalNoValidate(e,r)};ks.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=ly(e)?()=>{e.destroy(new ay(void 0,{cause:t.reason}))}:()=>{e[vD](new ay(void 0,{cause:t.reason}))};if(t.aborted)r();else{Ql=Ql||Oe().addAbortListener;let i=Ql(t,r);xD(e,i[wD])}return e}});var hy=g((I4,cy)=>{"use strict";var{StringPrototypeSlice:fy,SymbolIterator:RD,TypedArrayPrototypeSet:Ms,Uint8Array:AD}=ie(),{Buffer:Xl}=L("buffer"),{inspect:OD}=Oe();cy.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=e+r.data;return i}concat(e){if(this.length===0)return Xl.alloc(0);let r=Xl.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)Ms(r,i.data,n),n+=i.data.length,i=i.next;return r}consume(e,r){let i=this.head.data;if(e<i.length){let n=i.slice(0,e);return this.head.data=i.slice(e),n}return e===i.length?this.shift():r?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[RD](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let r="",i=this.head,n=0;do{let s=i.data;if(e>s.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++n,i.next?this.head=i.next:this.head=this.tail=null):(r+=fy(s,0,e),this.head=i,i.data=fy(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Xl.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)Ms(r,o,i-e),e-=o.length;else{e===o.length?(Ms(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(Ms(r,new AD(o.buffer,o.byteOffset,e),i-e),this.head=n,n.data=o.slice(e));break}++s}while((n=n.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return OD(this,{...r,depth:0,customInspect:!1})}}});var $i=g((D4,_y)=>{"use strict";var{MathFloor:ID,NumberIsInteger:DD}=ie(),{validateInteger:LD}=Br(),{ERR_INVALID_ARG_VALUE:PD}=xe().codes,dy=16*1024,py=16;function ND(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function gy(t){return t?py:dy}function CD(t,e){LD(e,"value",0),t?py=e:dy=e}function kD(t,e,r,i){let n=ND(e,i,r);if(n!=null){if(!DD(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new PD(s,n)}return ID(n)}return gy(t.objectMode)}_y.exports={getHighWaterMark:kD,getDefaultHighWaterMark:gy,setDefaultHighWaterMark:CD}});var by=g((Jl,my)=>{"use strict";var Fs=L("buffer"),nt=Fs.Buffer;function yy(t,e){for(var r in t)e[r]=t[r]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?my.exports=Fs:(yy(Fs,Jl),Jl.Buffer=or);function or(t,e,r){return nt(t,e,r)}or.prototype=Object.create(nt.prototype);yy(nt,or);or.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return nt(t,e,r)};or.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=nt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};or.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nt(t)};or.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Fs.SlowBuffer(t)}});var Ey=g(Sy=>{"use strict";var tu=by().Buffer,wy=tu.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function MD(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function FD(t){var e=MD(t);if(typeof e!="string"&&(tu.isEncoding===wy||!wy(t)))throw new Error("Unknown encoding: "+t);return e||t}Sy.StringDecoder=Hi;function Hi(t){this.encoding=FD(t);var e;switch(this.encoding){case"utf16le":this.text=zD,this.end=GD,e=4;break;case"utf8":this.fillLast=BD,e=4;break;case"base64":this.text=$D,this.end=HD,e=3;break;default:this.write=VD,this.end=YD;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=tu.allocUnsafe(e)}Hi.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Hi.prototype.end=WD;Hi.prototype.text=UD;Hi.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function eu(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function qD(t,e,r){var i=e.length-1;if(i<r)return 0;var n=eu(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=eu(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=eu(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function jD(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function BD(t){var e=this.lastTotal-this.lastNeed,r=jD(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function UD(t,e){var r=qD(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function WD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function zD(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function GD(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function $D(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function HD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function VD(t){return t.toString(this.encoding)}function YD(t){return t&&t.length?this.write(t):""}});var ru=g((P4,Ry)=>{"use strict";var vy=Nt(),{PromisePrototypeThen:KD,SymbolAsyncIterator:xy,SymbolIterator:Ty}=ie(),{Buffer:ZD}=L("buffer"),{ERR_INVALID_ARG_TYPE:QD,ERR_STREAM_NULL_VALUES:XD}=xe().codes;function JD(t,e,r){let i;if(typeof e=="string"||e instanceof ZD)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[xy])n=!0,i=e[xy]();else if(e&&e[Ty])n=!1,i=e[Ty]();else throw new QD("iterable",["Iterable"],e);let s=new t({objectMode:!0,highWaterMark:1,...r}),o=!1;s._read=function(){o||(o=!0,l())},s._destroy=function(u,f){KD(a(u),()=>vy.nextTick(f,u),c=>vy.nextTick(f,c||u))};async function a(u){let f=u!=null,c=typeof i.throw=="function";if(f&&c){let{value:h,done:d}=await i.throw(u);if(await h,d)return}if(typeof i.return=="function"){let{value:h}=await i.return();await h}}async function l(){for(;;){try{let{value:u,done:f}=n?await i.next():i.next();if(f)s.push(null);else{let c=u&&typeof u.then=="function"?await u:u;if(c===null)throw o=!1,new XD;if(s.push(c))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}Ry.exports=JD});var Yi=g((N4,Gy)=>{"use strict";var Ve=Nt(),{ArrayPrototypeIndexOf:eL,NumberIsInteger:tL,NumberIsNaN:rL,NumberParseInt:iL,ObjectDefineProperties:fu,ObjectKeys:nL,ObjectSetPrototypeOf:Iy,Promise:Dy,SafeSet:sL,SymbolAsyncDispose:oL,SymbolAsyncIterator:aL,Symbol:lL}=ie();Gy.exports=k;k.ReadableState=Us;var{EventEmitter:uL}=L("events"),{Stream:kt,prependListener:fL}=Cs(),{Buffer:iu}=L("buffer"),{addAbortSignal:cL}=Gi(),Ly=yt(),B=Oe().debuglog("stream",t=>{B=t}),hL=hy(),Gr=sr(),{getHighWaterMark:dL,getDefaultHighWaterMark:pL}=$i(),{aggregateTwoErrors:Ay,codes:{ERR_INVALID_ARG_TYPE:gL,ERR_METHOD_NOT_IMPLEMENTED:_L,ERR_OUT_OF_RANGE:yL,ERR_STREAM_PUSH_AFTER_EOF:mL,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:bL},AbortError:wL}=xe(),{validateObject:SL}=Br(),ar=lL("kPaused"),{StringDecoder:Py}=Ey(),EL=ru();Iy(k.prototype,kt.prototype);Iy(k,kt);var nu=()=>{},{errorOrDestroy:Wr}=Gr,zr=1,vL=2,Ny=4,Vi=8,Cy=16,qs=32,js=64,ky=128,xL=256,TL=512,RL=1024,lu=2048,uu=4096,AL=8192,OL=16384,IL=32768,My=65536,DL=1<<17,LL=1<<18;function ce(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}fu(Us.prototype,{objectMode:ce(zr),ended:ce(vL),endEmitted:ce(Ny),reading:ce(Vi),constructed:ce(Cy),sync:ce(qs),needReadable:ce(js),emittedReadable:ce(ky),readableListening:ce(xL),resumeScheduled:ce(TL),errorEmitted:ce(RL),emitClose:ce(lu),autoDestroy:ce(uu),destroyed:ce(AL),closed:ce(OL),closeEmitted:ce(IL),multiAwaitDrain:ce(My),readingMore:ce(DL),dataEmitted:ce(LL)});function Us(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.state=lu|uu|Cy|qs,t&&t.objectMode&&(this.state|=zr),r&&t&&t.readableObjectMode&&(this.state|=zr),this.highWaterMark=t?dL(this,t,"readableHighWaterMark",r):pL(!1),this.buffer=new hL,this.length=0,this.pipes=[],this.flowing=null,this[ar]=null,t&&t.emitClose===!1&&(this.state&=~lu),t&&t.autoDestroy===!1&&(this.state&=~uu),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Py(t.encoding),this.encoding=t.encoding)}function k(t){if(!(this instanceof k))return new k(t);let e=this instanceof st();this._readableState=new Us(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&cL(t.signal,this)),kt.call(this,t),Gr.construct(this,()=>{this._readableState.needReadable&&Bs(this,this._readableState)})}k.prototype.destroy=Gr.destroy;k.prototype._undestroy=Gr.undestroy;k.prototype._destroy=function(t,e){e(t)};k.prototype[uL.captureRejectionSymbol]=function(t){this.destroy(t)};k.prototype[oL]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new wL,this.destroy(t)),new Dy((e,r)=>Ly(this,i=>i&&i!==t?r(i):e(null)))};k.prototype.push=function(t,e){return Fy(this,t,e,!1)};k.prototype.unshift=function(t,e){return Fy(this,t,e,!0)};function Fy(t,e,r,i){B("readableAddChunk",e);let n=t._readableState,s;if((n.state&zr)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=iu.from(e,r).toString(n.encoding):(e=iu.from(e,r),r=""))):e instanceof iu?r="":kt._isUint8Array(e)?(e=kt._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new gL("chunk",["string","Buffer","Uint8Array"],e))),s)Wr(t,s);else if(e===null)n.state&=~Vi,CL(t,n);else if((n.state&zr)!==0||e&&e.length>0)if(i)if((n.state&Ny)!==0)Wr(t,new bL);else{if(n.destroyed||n.errored)return!1;su(t,n,e,!0)}else if(n.ended)Wr(t,new mL);else{if(n.destroyed||n.errored)return!1;n.state&=~Vi,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?su(t,n,e,!1):Bs(t,n)):su(t,n,e,!1)}else i||(n.state&=~Vi,Bs(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function su(t,e,r,i){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&My)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),(e.state&js)!==0&&Ws(t)),Bs(t,e)}k.prototype.isPaused=function(){let t=this._readableState;return t[ar]===!0||t.flowing===!1};k.prototype.setEncoding=function(t){let e=new Py(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,i="";for(let n of r)i+=e.write(n);return r.clear(),i!==""&&r.push(i),this._readableState.length=i.length,this};var PL=1073741824;function NL(t){if(t>PL)throw new yL("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function Oy(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&zr)!==0?1:rL(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}k.prototype.read=function(t){B("read",t),t===void 0?t=NaN:tL(t)||(t=iL(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=NL(t)),t!==0&&(e.state&=~ky),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return B("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?ou(this):Ws(this),null;if(t=Oy(t,e),t===0&&e.ended)return e.length===0&&ou(this),null;let i=(e.state&js)!==0;if(B("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,B("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,B("reading, ended or constructing",i);else if(i){B("do read"),e.state|=Vi|qs,e.length===0&&(e.state|=js);try{this._read(e.highWaterMark)}catch(s){Wr(this,s)}e.state&=~qs,e.reading||(t=Oy(r,e))}let n;return t>0?n=Wy(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&ou(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function CL(t,e){if(B("onEofChunk"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Ws(t):(e.needReadable=!1,e.emittedReadable=!0,qy(t))}}function Ws(t){let e=t._readableState;B("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(B("emitReadable",e.flowing),e.emittedReadable=!0,Ve.nextTick(qy,t))}function qy(t){let e=t._readableState;B("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,By(t)}function Bs(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Ve.nextTick(kL,t,e))}function kL(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(B("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}k.prototype._read=function(t){throw new _L("_read()")};k.prototype.pipe=function(t,e){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new sL(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),B("pipe count=%d opts=%j",i.pipes.length,e);let s=(!e||e.end!==!1)&&t!==Ve.stdout&&t!==Ve.stderr?a:S;i.endEmitted?Ve.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(m,b){B("onunpipe"),m===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function a(){B("onend"),t.end()}let l,u=!1;function f(){B("cleanup"),t.removeListener("close",y),t.removeListener("finish",p),l&&t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",S),r.removeListener("data",h),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function c(){u||(i.pipes.length===1&&i.pipes[0]===t?(B("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(B("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=ML(r,t),t.on("drain",l))}r.on("data",h);function h(m){B("ondata");let b=t.write(m);B("dest.write",b),b===!1&&c()}function d(m){if(B("onerror",m),S(),t.removeListener("error",d),t.listenerCount("error")===0){let b=t._writableState||t._readableState;b&&!b.errorEmitted?Wr(t,m):t.emit("error",m)}}fL(t,"error",d);function y(){t.removeListener("finish",p),S()}t.once("close",y);function p(){B("onfinish"),t.removeListener("close",y),S()}t.once("finish",p);function S(){B("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?c():i.flowing||(B("pipe resume"),r.resume()),t};function ML(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(B("pipeOnDrain",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(B("pipeOnDrain",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}k.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let n=e.pipes;e.pipes=[],this.pause();for(let s=0;s<n.length;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}let i=eL(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};k.prototype.on=function(t,e){let r=kt.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,B("on readable",i.length,i.reading),i.length?Ws(this):i.reading||Ve.nextTick(FL,this)),r};k.prototype.addListener=k.prototype.on;k.prototype.removeListener=function(t,e){let r=kt.prototype.removeListener.call(this,t,e);return t==="readable"&&Ve.nextTick(jy,this),r};k.prototype.off=k.prototype.removeListener;k.prototype.removeAllListeners=function(t){let e=kt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Ve.nextTick(jy,this),e};function jy(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[ar]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function FL(t){B("readable nexttick read 0"),t.read(0)}k.prototype.resume=function(){let t=this._readableState;return t.flowing||(B("resume"),t.flowing=!t.readableListening,qL(this,t)),t[ar]=!1,this};function qL(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ve.nextTick(jL,t,e))}function jL(t,e){B("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),By(t),e.flowing&&!e.reading&&t.read(0)}k.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[ar]=!0,this};function By(t){let e=t._readableState;for(B("flow",e.flowing);e.flowing&&t.read()!==null;);}k.prototype.wrap=function(t){let e=!1;t.on("data",i=>{!this.push(i)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",i=>{Wr(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=nL(t);for(let i=1;i<r.length;i++){let n=r[i];this[n]===void 0&&typeof t[n]=="function"&&(this[n]=t[n].bind(t))}return this};k.prototype[aL]=function(){return Uy(this)};k.prototype.iterator=function(t){return t!==void 0&&SL(t,"options"),Uy(this,t)};function Uy(t,e){typeof t.read!="function"&&(t=k.wrap(t,{objectMode:!0}));let r=BL(t,e);return r.stream=t,r}async function*BL(t,e){let r=nu;function i(o){this===t?(r(),r=nu):r=o}t.on("readable",i);let n,s=Ly(t,{writable:!1},o=>{n=o?Ay(n,o):null,r(),r=nu});try{for(;;){let o=t.destroyed?null:t.read();if(o!==null)yield o;else{if(n)throw n;if(n===null)return;await new Dy(i)}}}catch(o){throw n=Ay(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Gr.destroyer(t,null):(t.off("readable",i),s())}}fu(k.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});fu(Us.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[ar]!==!1},set(t){this[ar]=!!t}}});k._fromList=Wy;function Wy(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function ou(t){let e=t._readableState;B("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Ve.nextTick(UL,e,t))}function UL(t,e){if(B("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Ve.nextTick(WL,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function WL(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}k.from=function(t,e){return EL(k,t,e)};var au;function zy(){return au===void 0&&(au={}),au}k.fromWeb=function(t,e){return zy().newStreamReadableFromReadableStream(t,e)};k.toWeb=function(t,e){return zy().newReadableStreamFromStreamReadable(t,e)};k.wrap=function(t,e){var r,i;return new k({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){Gr.destroyer(t,n),s(n)}}).wrap(t)}});var Vs=g((C4,rm)=>{"use strict";var lr=Nt(),{ArrayPrototypeSlice:Vy,Error:zL,FunctionPrototypeSymbolHasInstance:Yy,ObjectDefineProperty:Ky,ObjectDefineProperties:GL,ObjectSetPrototypeOf:Zy,StringPrototypeToLowerCase:$L,Symbol:HL,SymbolHasInstance:VL}=ie();rm.exports=se;se.WritableState=Qi;var{EventEmitter:YL}=L("events"),Ki=Cs().Stream,{Buffer:zs}=L("buffer"),Hs=sr(),{addAbortSignal:KL}=Gi(),{getHighWaterMark:ZL,getDefaultHighWaterMark:QL}=$i(),{ERR_INVALID_ARG_TYPE:XL,ERR_METHOD_NOT_IMPLEMENTED:JL,ERR_MULTIPLE_CALLBACK:Qy,ERR_STREAM_CANNOT_PIPE:eP,ERR_STREAM_DESTROYED:Zi,ERR_STREAM_ALREADY_FINISHED:tP,ERR_STREAM_NULL_VALUES:rP,ERR_STREAM_WRITE_AFTER_END:iP,ERR_UNKNOWN_ENCODING:Xy}=xe().codes,{errorOrDestroy:$r}=Hs;Zy(se.prototype,Ki.prototype);Zy(se,Ki);function du(){}var Hr=HL("kOnFinished");function Qi(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?ZL(this,t,"writableHighWaterMark",r):QL(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let i=!!(t&&t.decodeStrings===!1);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=sP.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,$s(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Hr]=[]}function $s(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Qi.prototype.getBuffer=function(){return Vy(this.buffered,this.bufferedIndex)};Ky(Qi.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function se(t){let e=this instanceof st();if(!e&&!Yy(se,this))return new se(t);this._writableState=new Qi(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&KL(t.signal,this)),Ki.call(this,t),Hs.construct(this,()=>{let r=this._writableState;r.writing||gu(this,r),_u(this,r)})}Ky(se,VL,{__proto__:null,value:function(t){return Yy(this,t)?!0:this!==se?!1:t&&t._writableState instanceof Qi}});se.prototype.pipe=function(){$r(this,new eP)};function Jy(t,e,r,i){let n=t._writableState;if(typeof r=="function")i=r,r=n.defaultEncoding;else{if(!r)r=n.defaultEncoding;else if(r!=="buffer"&&!zs.isEncoding(r))throw new Xy(r);typeof i!="function"&&(i=du)}if(e===null)throw new rP;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=zs.from(e,r),r="buffer");else if(e instanceof zs)r="buffer";else if(Ki._isUint8Array(e))e=Ki._uint8ArrayToBuffer(e),r="buffer";else throw new XL("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new iP:n.destroyed&&(s=new Zi("write")),s?(lr.nextTick(i,s),$r(t,s,!0),s):(n.pendingcb++,nP(t,n,e,r,i))}se.prototype.write=function(t,e,r){return Jy(this,t,e,r)===!0};se.prototype.cork=function(){this._writableState.corked++};se.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||gu(this,t))};se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=$L(e)),!zs.isEncoding(e))throw new Xy(e);return this._writableState.defaultEncoding=e,this};function nP(t,e,r,i,n){let s=e.objectMode?1:r.length;e.length+=s;let o=e.length<e.highWaterMark;return o||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:i,callback:n}),e.allBuffers&&i!=="buffer"&&(e.allBuffers=!1),e.allNoop&&n!==du&&(e.allNoop=!1)):(e.writelen=s,e.writecb=n,e.writing=!0,e.sync=!0,t._write(r,i,e.onwrite),e.sync=!1),o&&!e.errored&&!e.destroyed}function $y(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Zi("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function Hy(t,e,r,i){--e.pendingcb,i(r),pu(e),$r(t,r)}function sP(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){$r(t,new Qy);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?lr.nextTick(Hy,t,r,e,n):Hy(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&gu(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},lr.nextTick(oP,r.afterWriteTickInfo)):em(t,r,1,n))}function oP({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,em(t,e,r,i)}function em(t,e,r,i){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,i();e.destroyed&&pu(e),_u(t,e)}function pu(t){if(t.writing)return;for(let n=t.bufferedIndex;n<t.buffered.length;++n){var e;let{chunk:s,callback:o}=t.buffered[n],a=t.objectMode?1:s.length;t.length-=a,o((e=t.errored)!==null&&e!==void 0?e:new Zi("write"))}let r=t[Hr].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new Zi("end"))}$s(t)}function gu(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:r,bufferedIndex:i,objectMode:n}=e,s=r.length-i;if(!s)return;let o=i;if(e.bufferProcessing=!0,s>1&&t._writev){e.pendingcb-=s-1;let a=e.allNoop?du:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:Vy(r,o);l.allBuffers=e.allBuffers,$y(t,e,!0,e.length,l,"",a),$s(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;$y(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?$s(e):o>256?(r.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}se.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new JL("_write()")};se.prototype._writev=null;se.prototype.end=function(t,e,r){let i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n;if(t!=null){let s=Jy(this,t,e);s instanceof zL&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,_u(this,i,!0),i.ended=!0):i.finished?n=new tP("end"):i.destroyed&&(n=new Zi("end"))),typeof r=="function"&&(n||i.finished?lr.nextTick(r,n):i[Hr].push(r)),this};function Gs(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function aP(t,e){let r=!1;function i(n){if(r){$r(t,n??Qy());return}if(r=!0,e.pendingcb--,n){let s=e[Hr].splice(0);for(let o=0;o<s.length;o++)s[o](n);$r(t,n,e.sync)}else Gs(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,lr.nextTick(hu,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function lP(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,aP(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function _u(t,e,r){Gs(e)&&(lP(t,e),e.pendingcb===0&&(r?(e.pendingcb++,lr.nextTick((i,n)=>{Gs(n)?hu(i,n):n.pendingcb--},t,e)):Gs(e)&&(e.pendingcb++,hu(t,e))))}function hu(t,e){e.pendingcb--,e.finished=!0;let r=e[Hr].splice(0);for(let i=0;i<r.length;i++)r[i]();if(t.emit("finish"),e.autoDestroy){let i=t._readableState;(!i||i.autoDestroy&&(i.endEmitted||i.readable===!1))&&t.destroy()}}GL(se.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var uP=Hs.destroy;se.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[Hr].length)&&lr.nextTick(pu,r),uP.call(this,t,e),this};se.prototype._undestroy=Hs.undestroy;se.prototype._destroy=function(t,e){e(t)};se.prototype[YL.captureRejectionSymbol]=function(t){this.destroy(t)};var cu;function tm(){return cu===void 0&&(cu={}),cu}se.fromWeb=function(t,e){return tm().newStreamWritableFromWritableStream(t,e)};se.toWeb=function(t){return tm().newWritableStreamFromStreamWritable(t)}});var ym=g((k4,_m)=>{"use strict";var yu=Nt(),fP=L("buffer"),{isReadable:cP,isWritable:hP,isIterable:im,isNodeStream:dP,isReadableNodeStream:nm,isWritableNodeStream:sm,isDuplexNodeStream:pP,isReadableStream:om,isWritableStream:am}=rt(),lm=yt(),{AbortError:pm,codes:{ERR_INVALID_ARG_TYPE:gP,ERR_INVALID_RETURN_VALUE:um}}=xe(),{destroyer:Yr}=sr(),_P=st(),gm=Yi(),yP=Vs(),{createDeferredPromise:fm}=Oe(),cm=ru(),hm=globalThis.Blob||fP.Blob,mP=typeof hm<"u"?function(e){return e instanceof hm}:function(e){return!1},bP=globalThis.AbortController||qr().AbortController,{FunctionPrototypeCall:dm}=ie(),Mt=class extends _P{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};_m.exports=function t(e,r){if(pP(e))return e;if(nm(e))return Vr({readable:e});if(sm(e))return Vr({writable:e});if(dP(e))return Vr({writable:!1,readable:!1});if(om(e))return Vr({readable:gm.fromWeb(e)});if(am(e))return Vr({writable:yP.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=wP(e);if(im(n))return cm(Mt,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=dm(l,n,c=>{if(c!=null)throw new um("nully","body",c)},c=>{Yr(u,c)});return u=new Mt({objectMode:!0,readable:!1,write:s,final(c){o(async()=>{try{await f,yu.nextTick(c,null)}catch(h){yu.nextTick(c,h)}})},destroy:a})}throw new um("Iterable, AsyncIterable or AsyncFunction",r,n)}if(mP(e))return t(e.arrayBuffer());if(im(e))return cm(Mt,e,{objectMode:!0,writable:!1});if(om(e?.readable)&&am(e?.writable))return Mt.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?nm(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?sm(e?.writable)?e?.writable:t(e.writable):void 0;return Vr({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return dm(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{Yr(n,s)}),n=new Mt({objectMode:!0,writable:!1,read(){}})}throw new gP(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function wP(t){let{promise:e,resolve:r}=fm(),i=new bP,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(yu.nextTick(u),l)return;if(n.aborted)throw new pm(void 0,{cause:n.reason});({promise:e,resolve:r}=fm()),yield a}})(),{signal:n}),write(o,a,l){let u=r;r=null,u({chunk:o,done:!1,cb:l})},final(o){let a=r;r=null,a({done:!0,cb:o})},destroy(o,a){i.abort(),a(o)}}}function Vr(t){let e=t.readable&&typeof t.readable.read!="function"?gm.wrap(t.readable):t.readable,r=t.writable,i=!!cP(e),n=!!hP(r),s,o,a,l,u;function f(c){let h=l;l=null,h?h(c):c&&u.destroy(c)}return u=new Mt({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(lm(r,c=>{n=!1,c&&Yr(e,c),f(c)}),u._write=function(c,h,d){r.write(c,h)?d():s=d},u._final=function(c){r.end(),o=c},r.on("drain",function(){if(s){let c=s;s=null,c()}}),r.on("finish",function(){if(o){let c=o;o=null,c()}})),i&&(lm(e,c=>{i=!1,c&&Yr(e,c),f(c)}),e.on("readable",function(){if(a){let c=a;a=null,c()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let c=e.read();if(c===null){a=u._read;return}if(!u.push(c))return}}),u._destroy=function(c,h){!c&&l!==null&&(c=new pm),a=null,s=null,o=null,l===null?h(c):(l=h,Yr(r,c),Yr(e,c))},u}});var st=g((M4,wm)=>{"use strict";var{ObjectDefineProperties:SP,ObjectGetOwnPropertyDescriptor:mt,ObjectKeys:EP,ObjectSetPrototypeOf:mm}=ie();wm.exports=Ye;var wu=Yi(),Be=Vs();mm(Ye.prototype,wu.prototype);mm(Ye,wu);{let t=EP(Be.prototype);for(let e=0;e<t.length;e++){let r=t[e];Ye.prototype[r]||(Ye.prototype[r]=Be.prototype[r])}}function Ye(t){if(!(this instanceof Ye))return new Ye(t);wu.call(this,t),Be.call(this,t),t?(this.allowHalfOpen=t.allowHalfOpen!==!1,t.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}SP(Ye.prototype,{writable:{__proto__:null,...mt(Be.prototype,"writable")},writableHighWaterMark:{__proto__:null,...mt(Be.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...mt(Be.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...mt(Be.prototype,"writableBuffer")},writableLength:{__proto__:null,...mt(Be.prototype,"writableLength")},writableFinished:{__proto__:null,...mt(Be.prototype,"writableFinished")},writableCorked:{__proto__:null,...mt(Be.prototype,"writableCorked")},writableEnded:{__proto__:null,...mt(Be.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...mt(Be.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var mu;function bm(){return mu===void 0&&(mu={}),mu}Ye.fromWeb=function(t,e){return bm().newStreamDuplexFromReadableWritablePair(t,e)};Ye.toWeb=function(t){return bm().newReadableWritablePairFromDuplex(t)};var bu;Ye.from=function(t){return bu||(bu=ym()),bu(t,"body")}});var vu=g((F4,Em)=>{"use strict";var{ObjectSetPrototypeOf:Sm,Symbol:vP}=ie();Em.exports=bt;var{ERR_METHOD_NOT_IMPLEMENTED:xP}=xe().codes,Eu=st(),{getHighWaterMark:TP}=$i();Sm(bt.prototype,Eu.prototype);Sm(bt,Eu);var Xi=vP("kCallback");function bt(t){if(!(this instanceof bt))return new bt(t);let e=t?TP(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),Eu.call(this,t),this._readableState.sync=!1,this[Xi]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",RP)}function Su(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function RP(){this._final!==Su&&Su.call(this)}bt.prototype._final=Su;bt.prototype._transform=function(t,e,r){throw new xP("_transform()")};bt.prototype._write=function(t,e,r){let i=this._readableState,n=this._writableState,s=i.length;this._transform(t,e,(o,a)=>{if(o){r(o);return}a!=null&&this.push(a),n.ended||s===i.length||i.length<i.highWaterMark?r():this[Xi]=r})};bt.prototype._read=function(){if(this[Xi]){let t=this[Xi];this[Xi]=null,t()}}});var Tu=g((q4,xm)=>{"use strict";var{ObjectSetPrototypeOf:vm}=ie();xm.exports=Kr;var xu=vu();vm(Kr.prototype,xu.prototype);vm(Kr,xu);function Kr(t){if(!(this instanceof Kr))return new Kr(t);xu.call(this,t)}Kr.prototype._transform=function(t,e,r){r(null,t)}});var Qs=g((j4,Im)=>{"use strict";var Ji=Nt(),{ArrayIsArray:AP,Promise:OP,SymbolAsyncIterator:IP,SymbolDispose:DP}=ie(),Zs=yt(),{once:LP}=Oe(),PP=sr(),Tm=st(),{aggregateTwoErrors:NP,codes:{ERR_INVALID_ARG_TYPE:Cu,ERR_INVALID_RETURN_VALUE:Ru,ERR_MISSING_ARGS:CP,ERR_STREAM_DESTROYED:kP,ERR_STREAM_PREMATURE_CLOSE:MP},AbortError:FP}=xe(),{validateFunction:qP,validateAbortSignal:jP}=Br(),{isIterable:ur,isReadable:Au,isReadableNodeStream:Ks,isNodeStream:Rm,isTransformStream:Zr,isWebStream:BP,isReadableStream:Ou,isReadableFinished:UP}=rt(),WP=globalThis.AbortController||qr().AbortController,Iu,Du,Lu;function Am(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Zs(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,PP.destroyer(t,s||new kP("pipe")))},cleanup:n}}function zP(t){return qP(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Pu(t){if(ur(t))return t;if(Ks(t))return GP(t);throw new Cu("val",["Readable","Iterable","AsyncIterable"],t)}async function*GP(t){Du||(Du=Yi()),yield*Du.prototype[IP].call(t)}async function Ys(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new OP((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Zs(e,{readable:!1},o);try{e.writableNeedDrain&&await a();for await(let u of t)e.write(u)||await a();i&&(e.end(),await a()),r()}catch(u){r(n!==u?NP(n,u):u)}finally{l(),e.off("drain",o)}}async function Nu(t,e,r,{end:i}){Zr(e)&&(e=e.writable);let n=e.getWriter();try{for await(let s of t)await n.ready,n.write(s).catch(()=>{});await n.ready,i&&await n.close(),r()}catch(s){try{await n.abort(s),r(s)}catch(o){r(o)}}}function $P(...t){return Om(t,LP(zP(t)))}function Om(t,e,r){if(t.length===1&&AP(t[0])&&(t=t[0]),t.length<2)throw new CP("streams");let i=new WP,n=i.signal,s=r?.signal,o=[];jP(s,"options.signal");function a(){y(new FP)}Lu=Lu||Oe().addAbortListener;let l;s&&(l=Lu(s,a));let u,f,c=[],h=0;function d(v){y(v,--h===0)}function y(v,E){var T;if(v&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=v),!(!u&&!E)){for(;c.length;)c.shift()(u);(T=l)===null||T===void 0||T[DP](),i.abort(),E&&(u||o.forEach(D=>D()),Ji.nextTick(e,u,f))}}let p;for(let v=0;v<t.length;v++){let E=t[v],T=v<t.length-1,D=v>0,x=T||r?.end!==!1,O=v===t.length-1;if(Rm(E)){let w=function(R){R&&R.name!=="AbortError"&&R.code!=="ERR_STREAM_PREMATURE_CLOSE"&&d(R)};var b=w;if(x){let{destroy:R,cleanup:A}=Am(E,T,D);c.push(R),Au(E)&&O&&o.push(A)}E.on("error",w),Au(E)&&O&&o.push(()=>{E.removeListener("error",w)})}if(v===0)if(typeof E=="function"){if(p=E({signal:n}),!ur(p))throw new Ru("Iterable, AsyncIterable or Stream","source",p)}else ur(E)||Ks(E)||Zr(E)?p=E:p=Tm.from(E);else if(typeof E=="function"){if(Zr(p)){var S;p=Pu((S=p)===null||S===void 0?void 0:S.readable)}else p=Pu(p);if(p=E(p,{signal:n}),T){if(!ur(p,!0))throw new Ru("AsyncIterable",`transform[${v-1}]`,p)}else{var m;Iu||(Iu=Tu());let w=new Iu({objectMode:!0}),R=(m=p)===null||m===void 0?void 0:m.then;if(typeof R=="function")h++,R.call(p,z=>{f=z,z!=null&&w.write(z),x&&w.end(),Ji.nextTick(d)},z=>{w.destroy(z),Ji.nextTick(d,z)});else if(ur(p,!0))h++,Ys(p,w,d,{end:x});else if(Ou(p)||Zr(p)){let z=p.readable||p;h++,Ys(z,w,d,{end:x})}else throw new Ru("AsyncIterable or Promise","destination",p);p=w;let{destroy:A,cleanup:N}=Am(p,!1,!0);c.push(A),O&&o.push(N)}}else if(Rm(E)){if(Ks(p)){h+=2;let w=HP(p,E,d,{end:x});Au(E)&&O&&o.push(w)}else if(Zr(p)||Ou(p)){let w=p.readable||p;h++,Ys(w,E,d,{end:x})}else if(ur(p))h++,Ys(p,E,d,{end:x});else throw new Cu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=E}else if(BP(E)){if(Ks(p))h++,Nu(Pu(p),E,d,{end:x});else if(Ou(p)||ur(p))h++,Nu(p,E,d,{end:x});else if(Zr(p))h++,Nu(p.readable,E,d,{end:x});else throw new Cu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=E}else p=Tm.from(E)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&Ji.nextTick(a),p}function HP(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new MP)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;UP(t)?Ji.nextTick(o):t.once("end",o)}else r();return Zs(t,{readable:!0,writable:!1},o=>{let a=t._readableState;o&&o.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted?t.once("end",r).once("error",r):r(o)}),Zs(e,{readable:!1,writable:!0},r)}Im.exports={pipelineImpl:Om,pipeline:$P}});var Mu=g((B4,km)=>{"use strict";var{pipeline:VP}=Qs(),Xs=st(),{destroyer:YP}=sr(),{isNodeStream:Js,isReadable:Dm,isWritable:Lm,isWebStream:ku,isTransformStream:fr,isWritableStream:Pm,isReadableStream:Nm}=rt(),{AbortError:KP,codes:{ERR_INVALID_ARG_VALUE:Cm,ERR_MISSING_ARGS:ZP}}=xe(),QP=yt();km.exports=function(...e){if(e.length===0)throw new ZP("streams");if(e.length===1)return Xs.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=Xs.from(e[0])),typeof e[e.length-1]=="function"){let d=e.length-1;e[d]=Xs.from(e[d])}for(let d=0;d<e.length;++d)if(!(!Js(e[d])&&!ku(e[d]))){if(d<e.length-1&&!(Dm(e[d])||Nm(e[d])||fr(e[d])))throw new Cm(`streams[${d}]`,r[d],"must be readable");if(d>0&&!(Lm(e[d])||Pm(e[d])||fr(e[d])))throw new Cm(`streams[${d}]`,r[d],"must be writable")}let i,n,s,o,a;function l(d){let y=o;o=null,y?y(d):d?a.destroy(d):!h&&!c&&a.destroy()}let u=e[0],f=VP(e,l),c=!!(Lm(u)||Pm(u)||fr(u)),h=!!(Dm(f)||Nm(f)||fr(f));if(a=new Xs({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:c,readable:h}),c){if(Js(u))a._write=function(y,p,S){u.write(y,p)?S():i=S},a._final=function(y){u.end(),n=y},u.on("drain",function(){if(i){let y=i;i=null,y()}});else if(ku(u)){let p=(fr(u)?u.writable:u).getWriter();a._write=async function(S,m,b){try{await p.ready,p.write(S).catch(()=>{}),b()}catch(v){b(v)}},a._final=async function(S){try{await p.ready,p.close().catch(()=>{}),n=S}catch(m){S(m)}}}let d=fr(f)?f.readable:f;QP(d,()=>{if(n){let y=n;n=null,y()}})}if(h){if(Js(f))f.on("readable",function(){if(s){let d=s;s=null,d()}}),f.on("end",function(){a.push(null)}),a._read=function(){for(;;){let d=f.read();if(d===null){s=a._read;return}if(!a.push(d))return}};else if(ku(f)){let y=(fr(f)?f.readable:f).getReader();a._read=async function(){for(;;)try{let{value:p,done:S}=await y.read();if(!a.push(p))return;if(S){a.push(null);return}}catch{return}}}}return a._destroy=function(d,y){!d&&o!==null&&(d=new KP),s=null,i=null,n=null,o===null?y(d):(o=y,Js(f)&&YP(f,d))},a}});var $m=g((U4,ju)=>{"use strict";var XP=globalThis.AbortController||qr().AbortController,{codes:{ERR_INVALID_ARG_VALUE:JP,ERR_INVALID_ARG_TYPE:en,ERR_MISSING_ARGS:eN,ERR_OUT_OF_RANGE:tN},AbortError:ot}=xe(),{validateAbortSignal:cr,validateInteger:Mm,validateObject:hr}=Br(),rN=ie().Symbol("kWeak"),iN=ie().Symbol("kResistStopPropagation"),{finished:nN}=yt(),sN=Mu(),{addAbortSignalNoValidate:oN}=Gi(),{isWritable:aN,isNodeStream:lN}=rt(),{deprecate:uN}=Oe(),{ArrayPrototypePush:fN,Boolean:cN,MathFloor:Fm,Number:hN,NumberIsNaN:dN,Promise:qm,PromiseReject:jm,PromiseResolve:pN,PromisePrototypeThen:Bm,Symbol:Wm}=ie(),eo=Wm("kEmpty"),Um=Wm("kEof");function gN(t,e){if(e!=null&&hr(e,"options"),e?.signal!=null&&cr(e.signal,"options.signal"),lN(t)&&!aN(t))throw new JP("stream",t,"must be writable");let r=sN(this,t);return e!=null&&e.signal&&oN(e.signal,r),r}function to(t,e){if(typeof t!="function")throw new en("fn",["Function","AsyncFunction"],t);e!=null&&hr(e,"options"),e?.signal!=null&&cr(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=Fm(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=Fm(e.highWaterMark)),Mm(r,"options.concurrency",1),Mm(i,"options.highWaterMark",0),i+=r,async function*(){let s=Oe().AbortSignalAny([e?.signal].filter(cN)),o=this,a=[],l={signal:s},u,f,c=!1,h=0;function d(){c=!0,y()}function y(){h-=1,p()}function p(){f&&!c&&h<r&&a.length<i&&(f(),f=null)}async function S(){try{for await(let m of o){if(c)return;if(s.aborted)throw new ot;try{if(m=t(m,l),m===eo)continue;m=pN(m)}catch(b){m=jm(b)}h+=1,Bm(m,y,d),a.push(m),u&&(u(),u=null),!c&&(a.length>=i||h>=r)&&await new qm(b=>{f=b})}a.push(Um)}catch(m){let b=jm(m);Bm(b,y,d),a.push(b)}finally{c=!0,u&&(u(),u=null)}}S();try{for(;;){for(;a.length>0;){let m=await a[0];if(m===Um)return;if(s.aborted)throw new ot;m!==eo&&(yield m),a.shift(),p()}await new qm(m=>{u=m})}}finally{c=!0,f&&(f(),f=null)}}.call(this)}function _N(t=void 0){return t!=null&&hr(t,"options"),t?.signal!=null&&cr(t.signal,"options.signal"),async function*(){let r=0;for await(let n of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ot({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function zm(t,e=void 0){for await(let r of qu.call(this,t,e))return!0;return!1}async function yN(t,e=void 0){if(typeof t!="function")throw new en("fn",["Function","AsyncFunction"],t);return!await zm.call(this,async(...r)=>!await t(...r),e)}async function mN(t,e){for await(let r of qu.call(this,t,e))return r}async function bN(t,e){if(typeof t!="function")throw new en("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),eo}for await(let i of to.call(this,r,e));}function qu(t,e){if(typeof t!="function")throw new en("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:eo}return to.call(this,r,e)}var Fu=class extends eN{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function wN(t,e,r){var i;if(typeof t!="function")throw new en("reducer",["Function","AsyncFunction"],t);r!=null&&hr(r,"options"),r?.signal!=null&&cr(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let u=new ot(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await nN(this.destroy(u)),u}let s=new XP,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[rN]:this,[iN]:!0};r.signal.addEventListener("abort",()=>s.abort(),u)}let a=!1;try{for await(let u of this){var l;if(a=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ot;n?e=await t(e,u,{signal:o}):(e=u,n=!0)}if(!a&&!n)throw new Fu}finally{s.abort()}return e}async function SN(t){t!=null&&hr(t,"options"),t?.signal!=null&&cr(t.signal,"options.signal");let e=[];for await(let i of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new ot(void 0,{cause:t.signal.reason});fN(e,i)}return e}function EN(t,e){let r=to.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function Gm(t){if(t=hN(t),dN(t))return 0;if(t<0)throw new tN("number",">= 0",t);return t}function vN(t,e=void 0){return e!=null&&hr(e,"options"),e?.signal!=null&&cr(e.signal,"options.signal"),t=Gm(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;t--<=0&&(yield s)}}.call(this)}function xN(t,e=void 0){return e!=null&&hr(e,"options"),e?.signal!=null&&cr(e.signal,"options.signal"),t=Gm(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;if(t-- >0&&(yield s),t<=0)return}}.call(this)}ju.exports.streamReturningOperators={asIndexedPairs:uN(_N,"readable.asIndexedPairs will be removed in a future version."),drop:vN,filter:qu,flatMap:EN,map:to,take:xN,compose:gN};ju.exports.promiseReturningOperators={every:yN,forEach:bN,reduce:wN,toArray:SN,some:zm,find:mN}});var Bu=g((W4,Hm)=>{"use strict";var{ArrayPrototypePop:TN,Promise:RN}=ie(),{isIterable:AN,isNodeStream:ON,isWebStream:IN}=rt(),{pipelineImpl:DN}=Qs(),{finished:LN}=yt();Uu();function PN(...t){return new RN((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!ON(s)&&!AN(s)&&!IN(s)){let o=TN(t);i=o.signal,n=o.end}DN(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}Hm.exports={finished:LN,pipeline:PN}});var Uu=g((z4,tb)=>{"use strict";var{Buffer:NN}=L("buffer"),{ObjectDefineProperty:wt,ObjectKeys:Km,ReflectApply:Zm}=ie(),{promisify:{custom:Qm}}=Oe(),{streamReturningOperators:Vm,promiseReturningOperators:Ym}=$m(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Xm}}=xe(),CN=Mu(),{setDefaultHighWaterMark:kN,getDefaultHighWaterMark:MN}=$i(),{pipeline:Jm}=Qs(),{destroyer:FN}=sr(),eb=yt(),Wu=Bu(),tn=rt(),ee=tb.exports=Cs().Stream;ee.isDestroyed=tn.isDestroyed;ee.isDisturbed=tn.isDisturbed;ee.isErrored=tn.isErrored;ee.isReadable=tn.isReadable;ee.isWritable=tn.isWritable;ee.Readable=Yi();for(let t of Km(Vm)){let r=function(...i){if(new.target)throw Xm();return ee.Readable.from(Zm(e,this,i))},e=Vm[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of Km(Ym)){let r=function(...i){if(new.target)throw Xm();return Zm(e,this,i)},e=Ym[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}ee.Writable=Vs();ee.Duplex=st();ee.Transform=vu();ee.PassThrough=Tu();ee.pipeline=Jm;var{addAbortSignal:qN}=Gi();ee.addAbortSignal=qN;ee.finished=eb;ee.destroy=FN;ee.compose=CN;ee.setDefaultHighWaterMark=kN;ee.getDefaultHighWaterMark=MN;wt(ee,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return Wu}});wt(Jm,Qm,{__proto__:null,enumerable:!0,get(){return Wu.pipeline}});wt(eb,Qm,{__proto__:null,enumerable:!0,get(){return Wu.finished}});ee.Stream=ee;ee._isUint8Array=function(e){return e instanceof Uint8Array};ee._uint8ArrayToBuffer=function(e){return NN.from(e.buffer,e.byteOffset,e.byteLength)}});var dr=g((G4,j)=>{"use strict";var he=L("stream");if(he&&process.env.READABLE_STREAM==="disable"){let t=he.promises;j.exports._uint8ArrayToBuffer=he._uint8ArrayToBuffer,j.exports._isUint8Array=he._isUint8Array,j.exports.isDisturbed=he.isDisturbed,j.exports.isErrored=he.isErrored,j.exports.isReadable=he.isReadable,j.exports.Readable=he.Readable,j.exports.Writable=he.Writable,j.exports.Duplex=he.Duplex,j.exports.Transform=he.Transform,j.exports.PassThrough=he.PassThrough,j.exports.addAbortSignal=he.addAbortSignal,j.exports.finished=he.finished,j.exports.destroy=he.destroy,j.exports.pipeline=he.pipeline,j.exports.compose=he.compose,Object.defineProperty(he,"promises",{configurable:!0,enumerable:!0,get(){return t}}),j.exports.Stream=he.Stream}else{let t=Uu(),e=Bu(),r=t.Readable.destroy;j.exports=t.Readable,j.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,j.exports._isUint8Array=t._isUint8Array,j.exports.isDisturbed=t.isDisturbed,j.exports.isErrored=t.isErrored,j.exports.isReadable=t.isReadable,j.exports.Readable=t.Readable,j.exports.Writable=t.Writable,j.exports.Duplex=t.Duplex,j.exports.Transform=t.Transform,j.exports.PassThrough=t.PassThrough,j.exports.addAbortSignal=t.addAbortSignal,j.exports.finished=t.finished,j.exports.destroy=t.destroy,j.exports.destroy=r,j.exports.pipeline=t.pipeline,j.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),j.exports.Stream=t.Stream}j.exports.default=j.exports});var ib=g(($4,rb)=>{"use strict";function jN(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}rb.exports=jN});var ab=g((H4,ob)=>{"use strict";var nb=bs(),BN=xl(),UN=Tl(),sb=nb?nb.isConcatSpreadable:void 0;function WN(t){return UN(t)||BN(t)||!!(sb&&t&&t[sb])}ob.exports=WN});var ro=g((V4,ub)=>{"use strict";var zN=ib(),GN=ab();function lb(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=GN),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?lb(a,e-1,r,i,n):zN(n,a):i||(n[n.length]=a)}return n}ub.exports=lb});var cb=g((Y4,fb)=>{"use strict";var $N=ro();function HN(t){var e=t==null?0:t.length;return e?$N(t,1):[]}fb.exports=HN});var rn=g((K4,hb)=>{"use strict";var VN=ki(),YN=VN(Object,"create");hb.exports=YN});var gb=g((Z4,pb)=>{"use strict";var db=rn();function KN(){this.__data__=db?db(null):{},this.size=0}pb.exports=KN});var yb=g((Q4,_b)=>{"use strict";function ZN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}_b.exports=ZN});var bb=g((X4,mb)=>{"use strict";var QN=rn(),XN="__lodash_hash_undefined__",JN=Object.prototype,eC=JN.hasOwnProperty;function tC(t){var e=this.__data__;if(QN){var r=e[t];return r===XN?void 0:r}return eC.call(e,t)?e[t]:void 0}mb.exports=tC});var Sb=g((J4,wb)=>{"use strict";var rC=rn(),iC=Object.prototype,nC=iC.hasOwnProperty;function sC(t){var e=this.__data__;return rC?e[t]!==void 0:nC.call(e,t)}wb.exports=sC});var vb=g((e6,Eb)=>{"use strict";var oC=rn(),aC="__lodash_hash_undefined__";function lC(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=oC&&e===void 0?aC:e,this}Eb.exports=lC});var Tb=g((t6,xb)=>{"use strict";var uC=gb(),fC=yb(),cC=bb(),hC=Sb(),dC=vb();function Qr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Qr.prototype.clear=uC;Qr.prototype.delete=fC;Qr.prototype.get=cC;Qr.prototype.has=hC;Qr.prototype.set=dC;xb.exports=Qr});var Ab=g((r6,Rb)=>{"use strict";function pC(){this.__data__=[],this.size=0}Rb.exports=pC});var nn=g((i6,Ob)=>{"use strict";var gC=Ss();function _C(t,e){for(var r=t.length;r--;)if(gC(t[r][0],e))return r;return-1}Ob.exports=_C});var Db=g((n6,Ib)=>{"use strict";var yC=nn(),mC=Array.prototype,bC=mC.splice;function wC(t){var e=this.__data__,r=yC(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():bC.call(e,r,1),--this.size,!0}Ib.exports=wC});var Pb=g((s6,Lb)=>{"use strict";var SC=nn();function EC(t){var e=this.__data__,r=SC(e,t);return r<0?void 0:e[r][1]}Lb.exports=EC});var Cb=g((o6,Nb)=>{"use strict";var vC=nn();function xC(t){return vC(this.__data__,t)>-1}Nb.exports=xC});var Mb=g((a6,kb)=>{"use strict";var TC=nn();function RC(t,e){var r=this.__data__,i=TC(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}kb.exports=RC});var qb=g((l6,Fb)=>{"use strict";var AC=Ab(),OC=Db(),IC=Pb(),DC=Cb(),LC=Mb();function Xr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Xr.prototype.clear=AC;Xr.prototype.delete=OC;Xr.prototype.get=IC;Xr.prototype.has=DC;Xr.prototype.set=LC;Fb.exports=Xr});var Bb=g((u6,jb)=>{"use strict";var PC=ki(),NC=Nr(),CC=PC(NC,"Map");jb.exports=CC});var zb=g((f6,Wb)=>{"use strict";var Ub=Tb(),kC=qb(),MC=Bb();function FC(){this.size=0,this.__data__={hash:new Ub,map:new(MC||kC),string:new Ub}}Wb.exports=FC});var $b=g((c6,Gb)=>{"use strict";function qC(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}Gb.exports=qC});var sn=g((h6,Hb)=>{"use strict";var jC=$b();function BC(t,e){var r=t.__data__;return jC(e)?r[typeof e=="string"?"string":"hash"]:r.map}Hb.exports=BC});var Yb=g((d6,Vb)=>{"use strict";var UC=sn();function WC(t){var e=UC(this,t).delete(t);return this.size-=e?1:0,e}Vb.exports=WC});var Zb=g((p6,Kb)=>{"use strict";var zC=sn();function GC(t){return zC(this,t).get(t)}Kb.exports=GC});var Xb=g((g6,Qb)=>{"use strict";var $C=sn();function HC(t){return $C(this,t).has(t)}Qb.exports=HC});var ew=g((_6,Jb)=>{"use strict";var VC=sn();function YC(t,e){var r=VC(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}Jb.exports=YC});var rw=g((y6,tw)=>{"use strict";var KC=zb(),ZC=Yb(),QC=Zb(),XC=Xb(),JC=ew();function Jr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Jr.prototype.clear=KC;Jr.prototype.delete=ZC;Jr.prototype.get=QC;Jr.prototype.has=XC;Jr.prototype.set=JC;tw.exports=Jr});var nw=g((m6,iw)=>{"use strict";var ek="__lodash_hash_undefined__";function tk(t){return this.__data__.set(t,ek),this}iw.exports=tk});var ow=g((b6,sw)=>{"use strict";function rk(t){return this.__data__.has(t)}sw.exports=rk});var zu=g((w6,aw)=>{"use strict";var ik=rw(),nk=nw(),sk=ow();function io(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new ik;++e<r;)this.add(t[e])}io.prototype.add=io.prototype.push=nk;io.prototype.has=sk;aw.exports=io});var uw=g((S6,lw)=>{"use strict";function ok(t,e,r,i){for(var n=t.length,s=r+(i?1:-1);i?s--:++s<n;)if(e(t[s],s,t))return s;return-1}lw.exports=ok});var cw=g((E6,fw)=>{"use strict";function ak(t){return t!==t}fw.exports=ak});var dw=g((v6,hw)=>{"use strict";function lk(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}hw.exports=lk});var gw=g((x6,pw)=>{"use strict";var uk=uw(),fk=cw(),ck=dw();function hk(t,e,r){return e===e?ck(t,e,r):uk(t,fk,r)}pw.exports=hk});var Gu=g((T6,_w)=>{"use strict";var dk=gw();function pk(t,e){var r=t==null?0:t.length;return!!r&&dk(t,e,0)>-1}_w.exports=pk});var $u=g((R6,yw)=>{"use strict";function gk(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}yw.exports=gk});var bw=g((A6,mw)=>{"use strict";function _k(t,e){for(var r=-1,i=t==null?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}mw.exports=_k});var Hu=g((O6,ww)=>{"use strict";function yk(t,e){return t.has(e)}ww.exports=yk});var Ew=g((I6,Sw)=>{"use strict";var mk=zu(),bk=Gu(),wk=$u(),Sk=bw(),Ek=Rl(),vk=Hu(),xk=200;function Tk(t,e,r,i){var n=-1,s=bk,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=Sk(e,Ek(r))),i?(s=wk,o=!1):e.length>=xk&&(s=vk,o=!1,e=new mk(e));e:for(;++n<a;){var f=t[n],c=r==null?f:r(f);if(f=i||f!==0?f:0,o&&c===c){for(var h=u;h--;)if(e[h]===c)continue e;l.push(f)}else s(e,c,i)||l.push(f)}return l}Sw.exports=Tk});var Vu=g((D6,vw)=>{"use strict";var Rk=Es(),Ak=Cr();function Ok(t){return Ak(t)&&Rk(t)}vw.exports=Ok});var Rw=g((L6,Tw)=>{"use strict";var Ik=Ew(),Dk=ro(),Lk=ws(),xw=Vu(),Pk=Lk(function(t,e){return xw(t)?Ik(t,Dk(e,1,xw,!0)):[]});Tw.exports=Pk});var Ow=g((P6,Aw)=>{"use strict";var Nk=ki(),Ck=Nr(),kk=Nk(Ck,"Set");Aw.exports=kk});var Dw=g((N6,Iw)=>{"use strict";function Mk(){}Iw.exports=Mk});var Yu=g((C6,Lw)=>{"use strict";function Fk(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}Lw.exports=Fk});var Nw=g((k6,Pw)=>{"use strict";var Ku=Ow(),qk=Dw(),jk=Yu(),Bk=1/0,Uk=Ku&&1/jk(new Ku([,-0]))[1]==Bk?function(t){return new Ku(t)}:qk;Pw.exports=Uk});var kw=g((M6,Cw)=>{"use strict";var Wk=zu(),zk=Gu(),Gk=$u(),$k=Hu(),Hk=Nw(),Vk=Yu(),Yk=200;function Kk(t,e,r){var i=-1,n=zk,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=Gk;else if(s>=Yk){var u=e?null:Hk(t);if(u)return Vk(u);o=!1,n=$k,l=new Wk}else l=e?[]:a;e:for(;++i<s;){var f=t[i],c=e?e(f):f;if(f=r||f!==0?f:0,o&&c===c){for(var h=l.length;h--;)if(l[h]===c)continue e;e&&l.push(c),a.push(f)}else n(l,c,r)||(l!==a&&l.push(c),a.push(f))}return a}Cw.exports=Kk});var Fw=g((F6,Mw)=>{"use strict";var Zk=ro(),Qk=ws(),Xk=kw(),Jk=Vu(),eM=Qk(function(t){return Xk(Zk(t,1,Jk,!0))});Mw.exports=eM});var jw=g((q6,qw)=>{"use strict";function tM(t,e){return function(r){return t(e(r))}}qw.exports=tM});var Uw=g((j6,Bw)=>{"use strict";var rM=jw(),iM=rM(Object.getPrototypeOf,Object);Bw.exports=iM});var Gw=g((B6,zw)=>{"use strict";var nM=Ni(),sM=Uw(),oM=Cr(),aM="[object Object]",lM=Function.prototype,uM=Object.prototype,Ww=lM.toString,fM=uM.hasOwnProperty,cM=Ww.call(Object);function hM(t){if(!oM(t)||nM(t)!=aM)return!1;var e=sM(t);if(e===null)return!0;var r=fM.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Ww.call(r)==cM}zw.exports=hM});var $w=g(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.assertValidPattern=void 0;var dM=1024*64,pM=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>dM)throw new TypeError("pattern is too long")};no.assertValidPattern=pM});var Vw=g(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.parseClass=void 0;var gM={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},on=t=>t.replace(/[[\]\\-]/g,"\\$&"),_M=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Hw=t=>t.join(""),yM=(t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let i=[],n=[],s=r+1,o=!1,a=!1,l=!1,u=!1,f=r,c="";e:for(;s<t.length;){let p=t.charAt(s);if((p==="!"||p==="^")&&s===r+1){u=!0,s++;continue}if(p==="]"&&o&&!l){f=s+1;break}if(o=!0,p==="\\"&&!l){l=!0,s++;continue}if(p==="["&&!l){for(let[S,[m,b,v]]of Object.entries(gM))if(t.startsWith(S,s)){if(c)return["$.",!1,t.length-r,!0];s+=S.length,v?n.push(m):i.push(m),a=a||b;continue e}}if(l=!1,c){p>c?i.push(on(c)+"-"+on(p)):p===c&&i.push(on(p)),c="",s++;continue}if(t.startsWith("-]",s+1)){i.push(on(p+"-")),s+=2;continue}if(t.startsWith("-",s+1)){c=p,s+=2;continue}i.push(on(p)),s++}if(f<s)return["",!1,0,!1];if(!i.length&&!n.length)return["$.",!1,t.length-r,!0];if(n.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!u){let p=i[0].length===2?i[0].slice(-1):i[0];return[_M(p),!1,f-r,!1]}let h="["+(u?"^":"")+Hw(i)+"]",d="["+(u?"":"^")+Hw(n)+"]";return[i.length&&n.length?"("+h+"|"+d+")":i.length?h:d,a,f-r,!0]};so.parseClass=yM});var ao=g(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.unescape=void 0;var mM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");oo.unescape=mM});var Xu=g(co=>{"use strict";var Pe;Object.defineProperty(co,"__esModule",{value:!0});co.AST=void 0;var bM=Vw(),lo=ao(),wM=new Set(["!","?","+","*","@"]),Zu=t=>wM.has(t),Yw=t=>Zu(t.type),SM=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),EM=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),vM=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Kw=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),xM="(?!(?:^|/)\\.\\.?(?:$|/))",uo="(?!\\.)",TM=new Set(["[","."]),RM=new Set(["..","."]),AM=new Set("().*{}+?[]^$\\!"),OM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Qu="[^/]",Zw=Qu+"*?",Qw=Qu+"+?",fo=class{type;#e;#r;#n=!1;#t=[];#o;#S;#u;#c=!1;#l;#a;#s=!1;constructor(e,r,i={}){this.type=e,e&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#l=this.#e===this?i:this.#e.#l,this.#u=this.#e===this?[]:this.#e.#u,e==="!"&&!this.#e.#c&&this.#u.push(this),this.#S=this.#o?this.#o.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#a=this.#t.map(e=>String(e)).join("")}#y(){if(this!==this.#e)throw new Error("should only call on root");if(this.#c)return this;this.toString(),this.#c=!0;let e;for(;e=this.#u.pop();){if(e.type!=="!")continue;let r=e,i=r.#o;for(;i;){for(let n=r.#S+1;!i.type&&n<i.#t.length;n++)for(let s of e.#t){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(i.#t[n])}r=i,i=r.#o}}return this}push(...e){for(let r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof Pe&&r.#o===this))throw new Error("invalid part: "+r);this.#t.push(r)}}toJSON(){let e=this.type===null?this.#t.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#c&&this.#o?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#S===0)return!0;let e=this.#o;for(let r=0;r<this.#S;r++){let i=e.#t[r];if(!(i instanceof Pe&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let e=this.#o?this.#o.#t.length:0;return this.#S===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let r=new Pe(this.type,e);for(let i of this.#t)r.copyIn(i);return r}static#m(e,r,i,n,s){let o=n.maxExtglobRecursion??2,a=!1,l=!1,u=-1,f=!1;if(r.type===null){let p=i,S="";for(;p<e.length;){let m=e.charAt(p++);if(a||m==="\\"){a=!a,S+=m;continue}if(l){p===u+1?(m==="^"||m==="!")&&(f=!0):m==="]"&&!(p===u+2&&f)&&(l=!1),S+=m;continue}else if(m==="["){l=!0,u=p,f=!1,S+=m;continue}if(!n.noext&&Zu(m)&&e.charAt(p)==="("&&s<=o){r.push(S),S="";let v=new Pe(m,r);p=Pe.#m(e,v,p,n,s+1),r.push(v);continue}S+=m}return r.push(S),p}let c=i+1,h=new Pe(null,r),d=[],y="";for(;c<e.length;){let p=e.charAt(c++);if(a||p==="\\"){a=!a,y+=p;continue}if(l){c===u+1?(p==="^"||p==="!")&&(f=!0):p==="]"&&!(c===u+2&&f)&&(l=!1),y+=p;continue}else if(p==="["){l=!0,u=c,f=!1,y+=p;continue}if(Zu(p)&&e.charAt(c)==="("&&(s<=o||r&&r.#E(p))){let m=r&&r.#E(p)?0:1;h.push(y),y="";let b=new Pe(p,h);h.push(b),c=Pe.#m(e,b,c,n,s+m);continue}if(p==="|"){h.push(y),y="",d.push(h),h=new Pe(null,r);continue}if(p===")")return y===""&&r.#t.length===0&&(r.#s=!0),h.push(y),y="",r.push(...d,h),c;y+=p}return r.type=null,r.#r=void 0,r.#t=[e.substring(i-1)],c}#g(e){return this.#d(e,EM)}#d(e,r=SM){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;let i=e.#t[0];return!i||typeof i!="object"||i.type===null?!1:this.#E(i.type,r)}#E(e,r=vM){return!!r.get(this.type)?.includes(e)}#p(e,r){let i=e.#t[0],n=new Pe(null,i,this.options);n.#t.push(""),i.push(n),this.#x(e,r)}#x(e,r){let i=e.#t[0];this.#t.splice(r,1,...i.#t);for(let n of i.#t)typeof n=="object"&&(n.#o=this);this.#a=void 0}#T(e){return!!Kw.get(this.type)?.has(e)}#_(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let r=e.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#T(r.type)}#v(e){let r=Kw.get(this.type),i=e.#t[0],n=r?.get(i.type);if(!n)return!1;this.#t=i.#t;for(let s of this.#t)typeof s=="object"&&(s.#o=this);this.type=n,this.#a=void 0,this.#s=!1}#b(){if(Yw(this)){let e=0,r=!1;do{r=!0;for(let i=0;i<this.#t.length;i++){let n=this.#t[i];typeof n=="object"&&(n.#b(),this.#d(n)?(r=!1,this.#x(n,i)):this.#g(n)?(r=!1,this.#p(n,i)):this.#_(n)&&(r=!1,this.#v(n)))}}while(!r&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#b();this.#a=void 0}static fromGlob(e,r={}){let i=new Pe(null,void 0,r);return Pe.#m(e,i,0,r,0),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[r,i,n,s]=this.toRegExpSource();if(!(n||this.#r||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let a=(this.#l.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:e})}get options(){return this.#l}toRegExpSource(e){let r=e??!!this.#l.dot;if(this.#e===this&&(this.#b(),this.#y()),!Yw(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(d=>{let[y,p,S,m]=typeof d=="string"?Pe.#R(d,this.#r,l):d.toRegExpSource(e);return this.#r=this.#r||S,this.#n=this.#n||m,y}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&RM.has(this.#t[0]))){let y=TM,p=r&&y.has(u.charAt(0))||u.startsWith("\\.")&&y.has(u.charAt(2))||u.startsWith("\\.\\.")&&y.has(u.charAt(4)),S=!r&&!e&&y.has(u.charAt(0));f=p?xM:S?uo:""}let c="";return this.isEnd()&&this.#e.#c&&this.#o?.type==="!"&&(c="(?:$|\\/)"),[f+u+c,(0,lo.unescape)(u),this.#r=!!this.#r,this.#n]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#h(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,(0,lo.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!uo?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?uo:"")+Qw;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?uo:"")+Zw+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,lo.unescape)(s),this.#r=!!this.#r,this.#n]}#h(e){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[i,n,s,o]=r.toRegExpSource(e);return this.#n=this.#n||o,i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#R(e,r,i=!1){let n=!1,s="",o=!1,a=!1;for(let l=0;l<e.length;l++){let u=e.charAt(l);if(n){n=!1,s+=(AM.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,c,h,d]=(0,bM.parseClass)(e,l);if(h){s+=f,o=o||c,l+=h-1,r=r||d,a=!1;continue}}if(u==="*"){if(a)continue;a=!0,s+=i&&/^[*]+$/.test(e)?Qw:Zw,r=!0;continue}else a=!1;if(u==="?"){s+=Qu,r=!0;continue}s+=OM(u)}return[s,(0,lo.unescape)(e),!!r,o]}};co.AST=fo;Pe=fo});var Ju=g(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.escape=void 0;var IM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");ho.escape=IM});var Ft=g(I=>{"use strict";var DM=I&&I.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(I,"__esModule",{value:!0});I.unescape=I.escape=I.AST=I.Minimatch=I.match=I.makeRe=I.braceExpand=I.defaults=I.filter=I.GLOBSTAR=I.sep=I.minimatch=void 0;var LM=DM(oa()),po=$w(),e0=Xu(),PM=Ju(),NM=ao(),CM=(t,e,r={})=>((0,po.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new pr(e,r).match(t));I.minimatch=CM;var kM=/^\*+([^+@!?\*\[\(]*)$/,MM=t=>e=>!e.startsWith(".")&&e.endsWith(t),FM=t=>e=>e.endsWith(t),qM=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),jM=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),BM=/^\*+\.\*+$/,UM=t=>!t.startsWith(".")&&t.includes("."),WM=t=>t!=="."&&t!==".."&&t.includes("."),zM=/^\.\*+$/,GM=t=>t!=="."&&t!==".."&&t.startsWith("."),$M=/^\*+$/,HM=t=>t.length!==0&&!t.startsWith("."),VM=t=>t.length!==0&&t!=="."&&t!=="..",YM=/^\?+([^+@!?\*\[\(]*)?$/,KM=([t,e=""])=>{let r=t0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},ZM=([t,e=""])=>{let r=r0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},QM=([t,e=""])=>{let r=r0([t]);return e?i=>r(i)&&i.endsWith(e):r},XM=([t,e=""])=>{let r=t0([t]);return e?i=>r(i)&&i.endsWith(e):r},t0=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},r0=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},i0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Xw={win32:{sep:"\\"},posix:{sep:"/"}};I.sep=i0==="win32"?Xw.win32.sep:Xw.posix.sep;I.minimatch.sep=I.sep;I.GLOBSTAR=Symbol("globstar **");I.minimatch.GLOBSTAR=I.GLOBSTAR;var JM="[^/]",e2=JM+"*?",t2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",r2="(?:(?!(?:\\/|^)\\.).)*?",i2=(t,e={})=>r=>(0,I.minimatch)(r,t,e);I.filter=i2;I.minimatch.filter=I.filter;var Ue=(t,e={})=>Object.assign({},t,e),n2=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return I.minimatch;let e=I.minimatch;return Object.assign((i,n,s={})=>e(i,n,Ue(t,s)),{Minimatch:class extends e.Minimatch{constructor(n,s={}){super(n,Ue(t,s))}static defaults(n){return e.defaults(Ue(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,s,o={}){super(n,s,Ue(t,o))}static fromGlob(n,s={}){return e.AST.fromGlob(n,Ue(t,s))}},unescape:(i,n={})=>e.unescape(i,Ue(t,n)),escape:(i,n={})=>e.escape(i,Ue(t,n)),filter:(i,n={})=>e.filter(i,Ue(t,n)),defaults:i=>e.defaults(Ue(t,i)),makeRe:(i,n={})=>e.makeRe(i,Ue(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,Ue(t,n)),match:(i,n,s={})=>e.match(i,n,Ue(t,s)),sep:e.sep,GLOBSTAR:I.GLOBSTAR})};I.defaults=n2;I.minimatch.defaults=I.defaults;var s2=(t,e={})=>((0,po.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,LM.default)(t));I.braceExpand=s2;I.minimatch.braceExpand=I.braceExpand;var o2=(t,e={})=>new pr(t,e).makeRe();I.makeRe=o2;I.minimatch.makeRe=I.makeRe;var a2=(t,e,r={})=>{let i=new pr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};I.match=a2;I.minimatch.match=I.match;var Jw=/[?*]|[+@!]\(.*?\)|\[|\]/,l2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),pr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,po.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||i0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!Jw.test(s[2]))&&!Jw.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(u)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,n),this.set=n.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let n=0;n<e[i].length;n++)e[i][n]==="**"&&(e[i][n]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let n=i;for(;r[n+1]==="**";)n++;n!==i&&r.splice(i,n-i)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((i,n)=>{let s=i[i.length-1];return n==="**"&&s==="**"?i:n===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(n),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let s=e[n];n===1&&s===""&&e[0]===""||(s==="."||s==="")&&(r=!0,e.splice(n,1),n--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let n=e[i-1];n&&n!=="."&&n!==".."&&n!=="**"&&(r=!0,e.splice(i-1,2),i-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let i of e){let n=-1;for(;(n=i.indexOf("**",n+1))!==-1;){let o=n;for(;i[o+1]==="**";)o++;o>n&&i.splice(n+1,o-n);let a=i[n+1],l=i[n+2],u=i[n+3];if(a!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,i.splice(n,1);let f=i.slice(0);f[n]="**",e.push(f),n--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let a=i[o];o===1&&a===""&&i[0]===""||(a==="."||a==="")&&(r=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){let o=i[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let l=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...l),i.length===0&&i.push(""),s-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let i=r+1;i<e.length;i++){let n=this.partsMatch(e[r],e[i],!this.preserveMultipleSlashes);if(n){e[r]=[],e[i]=n;break}}return e.filter(r=>r.length)}partsMatch(e,r,i=!1){let n=0,s=0,o=[],a="";for(;n<e.length&&s<r.length;)if(e[n]===r[s])o.push(a==="b"?r[s]:e[n]),n++,s++;else if(i&&e[n]==="**"&&r[s]===e[n+1])o.push(e[n]),n++;else if(i&&r[s]==="**"&&e[n]===r[s+1])o.push(r[s]),s++;else if(e[n]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[n]),n++,s++}else if(r[s]==="*"&&e[n]&&(this.options.dot||!e[n].startsWith("."))&&e[n]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),n++,s++}else return!1;return e.length===r.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=e.slice(i)),this.negate=r}matchOne(e,r,i=!1){let n=0,s=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),f=!u&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),c=l?3:a?0:void 0,h=f?3:u?0:void 0;if(typeof c=="number"&&typeof h=="number"){let[d,y]=[e[c],r[h]];d.toLowerCase()===y.toLowerCase()&&(r[h]=d,s=h,n=c)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(I.GLOBSTAR)?this.#e(e,r,i,n,s):this.#n(e,r,i,n,s)}#e(e,r,i,n,s){let o=r.indexOf(I.GLOBSTAR,s),a=r.lastIndexOf(I.GLOBSTAR),[l,u,f]=i?[r.slice(s,o),r.slice(o+1),[]]:[r.slice(s,o),r.slice(o+1,a),r.slice(a+1)];if(l.length){let b=e.slice(n,n+l.length);if(!this.#n(b,l,i,0,0))return!1;n+=l.length}let c=0;if(f.length){if(f.length+n>e.length)return!1;let b=e.length-f.length;if(this.#n(e,f,i,b,0))c=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||(b--,!this.#n(e,f,i,b,0)))return!1;c=f.length+1}}if(!u.length){let b=!!c;for(let v=n;v<e.length-c;v++){let E=String(e[v]);if(b=!0,E==="."||E===".."||!this.options.dot&&E.startsWith("."))return!1}return i||b}let h=[[[],0]],d=h[0],y=0,p=[0];for(let b of u)b===I.GLOBSTAR?(p.push(y),d=[[],0],h.push(d)):(d[0].push(b),y++);let S=h.length-1,m=e.length-c;for(let b of h)b[1]=m-(p[S--]+b[0].length);return!!this.#r(e,h,n,0,i,0,!!c)}#r(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let c=i;c<e.length;c++){a=!0;let h=e[c];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return a}let[u,f]=l;for(;i<=f;){if(this.#n(e.slice(0,i+u.length),u,s,i,0)&&o<this.maxGlobstarRecursion){let d=this.#r(e,r,i+u.length,n+1,s,o+1,a);if(d!==!1)return d}let h=e[i];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;i++}return s||null}#n(e,r,i,n,s){let o,a,l,u;for(o=n,a=s,u=e.length,l=r.length;o<u&&a<l;o++,a++){this.debug("matchOne loop");let f=r[a],c=e[o];if(this.debug(r,f,c),f===!1||f===I.GLOBSTAR)return!1;let h;if(typeof f=="string"?(h=c===f,this.debug("string match",f,c,h)):(h=f.test(c),this.debug("pattern match",f,c,h)),!h)return!1}if(o===u&&a===l)return!0;if(o===u)return i;if(a===l)return o===u-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,I.braceExpand)(this.pattern,this.options)}parse(e){(0,po.assertValidPattern)(e);let r=this.options;if(e==="**")return I.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match($M))?n=r.dot?VM:HM:(i=e.match(kM))?n=(r.nocase?r.dot?jM:qM:r.dot?FM:MM)(i[1]):(i=e.match(YM))?n=(r.nocase?r.dot?ZM:KM:r.dot?QM:XM)(i):(i=e.match(BM))?n=r.dot?WM:UM:(i=e.match(zM))&&(n=GM);let s=e0.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?e2:r.dot?t2:r2,n=new Set(r.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let c of f.flags.split(""))n.add(c);return typeof f=="string"?l2(f):f===I.GLOBSTAR?I.GLOBSTAR:f._src});return u.forEach((f,c)=>{let h=u[c+1],d=u[c-1];f!==I.GLOBSTAR||d===I.GLOBSTAR||(d===void 0?h!==void 0&&h!==I.GLOBSTAR?u[c+1]="(?:\\/|"+i+"\\/)?"+h:u[c]=i:h===void 0?u[c-1]=d+"(?:\\/|"+i+")?":h!==I.GLOBSTAR&&(u[c-1]=d+"(?:\\/|\\/"+i+"\\/)"+h,u[c+1]=I.GLOBSTAR))}),u.filter(f=>f!==I.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let l=s[a],u=n;if(i.matchBase&&l.length===1&&(u=[o]),this.matchOne(u,l,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return I.minimatch.defaults(e).Minimatch}};I.Minimatch=pr;var u2=Xu();Object.defineProperty(I,"AST",{enumerable:!0,get:function(){return u2.AST}});var f2=Ju();Object.defineProperty(I,"escape",{enumerable:!0,get:function(){return f2.escape}});var c2=ao();Object.defineProperty(I,"unescape",{enumerable:!0,get:function(){return c2.unescape}});I.minimatch.AST=e0.AST;I.minimatch.Minimatch=pr;I.minimatch.escape=PM.escape;I.minimatch.unescape=NM.unescape});var l0=g(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.LRUCache=void 0;var ei=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,s0=new Set,ef=typeof process=="object"&&process?process:{},o0=(t,e,r,i)=>{typeof ef.emitWarning=="function"?ef.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},go=globalThis.AbortController,n0=globalThis.AbortSignal;if(typeof go>"u"){n0=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},go=class{constructor(){e()}signal=new n0;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=ef.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,o0("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var h2=t=>!s0.has(t),qt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),a0=t=>qt(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?ti:null:null,ti=class extends Array{constructor(e){super(e),this.fill(0)}},tf=class t{heap;length;static#e=!1;static create(e){let r=a0(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},rf=class t{#e;#r;#n;#t;#o;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#u;#c;#l;#a;#s;#y;#m;#g;#d;#E;#p;#x;#T;#_;#v;#b;#h;static unsafeExposeInternals(e){return{starts:e.#T,ttls:e.#_,sizes:e.#x,keyMap:e.#l,keyList:e.#a,valList:e.#s,next:e.#y,prev:e.#m,get head(){return e.#g},get tail(){return e.#d},free:e.#E,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,i,n,s)=>e.#q(r,i,n,s),moveToTail:r=>e.#B(r),indexes:r=>e.#O(r),rindexes:r=>e.#I(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#c}get size(){return this.#u}get fetchMethod(){return this.#o}get memoMethod(){return this.#S}get dispose(){return this.#n}get disposeAfter(){return this.#t}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:f,noDisposeOnSet:c,noUpdateTTL:h,maxSize:d=0,maxEntrySize:y=0,sizeCalculation:p,fetchMethod:S,memoMethod:m,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:T,ignoreFetchAbort:D}=e;if(r!==0&&!qt(r))throw new TypeError("max option must be a nonnegative integer");let x=r?a0(r):Array;if(!x)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=d,this.maxEntrySize=y||this.#r,this.sizeCalculation=p,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(m!==void 0&&typeof m!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=m,S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=S,this.#b=!!S,this.#l=new Map,this.#a=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#y=new x(r),this.#m=new x(r),this.#g=0,this.#d=0,this.#E=tf.create(r),this.#u=0,this.#c=0,typeof u=="function"&&(this.#n=u),typeof f=="function"?(this.#t=f,this.#p=[]):(this.#t=void 0,this.#p=void 0),this.#v=!!this.#n,this.#h=!!this.#t,this.noDisposeOnSet=!!c,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!E,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!D,this.maxEntrySize!==0){if(this.#r!==0&&!qt(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!qt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#D()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=qt(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!qt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let O="LRU_CACHE_UNBOUNDED";h2(O)&&(s0.add(O),o0("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",O,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#R(){let e=new ti(this.#e),r=new ti(this.#e);this.#_=e,this.#T=r,this.#P=(s,o,a=ei.now())=>{if(r[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(s)&&this.#L(this.#a[s],"expire")},o+1);l.unref&&l.unref()}},this.#A=s=>{r[s]=e[s]!==0?ei.now():0},this.#i=(s,o)=>{if(e[o]){let a=e[o],l=r[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=i||n();let u=s.now-l;s.remainingTTL=a-u}};let i=0,n=()=>{let s=ei.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#l.get(s);if(o===void 0)return 0;let a=e[o],l=r[o];if(!a||!l)return 1/0;let u=(i||n())-l;return a-u},this.#w=s=>{let o=r[s],a=e[s];return!!a&&!!o&&(i||n())-o>a}}#A=()=>{};#i=()=>{};#P=()=>{};#w=()=>!1;#D(){let e=new ti(this.#e);this.#c=0,this.#x=e,this.#N=r=>{this.#c-=e[r],e[r]=0},this.#k=(r,i,n,s)=>{if(this.#f(i))return 0;if(!qt(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!qt(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#C=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#c>s;)this.#F(!0)}this.#c+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#c)}}#N=e=>{};#C=(e,r,i)=>{};#k=(e,r,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#d;!(!this.#M(r)||((e||!this.#w(r))&&(yield r),r===this.#g));)r=this.#m[r]}*#I({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#g;!(!this.#M(r)||((e||!this.#w(r))&&(yield r),r===this.#d));)r=this.#y[r]}#M(e){return e!==void 0&&this.#l.get(this.#a[e])===e}*entries(){for(let e of this.#O())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*rentries(){for(let e of this.#I())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*keys(){for(let e of this.#O()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*rkeys(){for(let e of this.#I()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*values(){for(let e of this.#O())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}*rvalues(){for(let e of this.#I())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;if(s!==void 0&&e(s,this.#a[i],this))return this.get(this.#a[i],r)}}forEach(e,r=this){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}rforEach(e,r=this){for(let i of this.#I()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}purgeStale(){let e=!1;for(let r of this.#I({allowStale:!0}))this.#w(r)&&(this.#L(this.#a[r],"expire"),e=!0);return e}info(e){let r=this.#l.get(e);if(r===void 0)return;let i=this.#s[r],n=this.#f(i)?i.__staleWhileFetching:i;if(n===void 0)return;let s={value:n};if(this.#_&&this.#T){let o=this.#_[r],a=this.#T[r];if(o&&a){let l=o-(ei.now()-a);s.ttl=l,s.start=Date.now()}}return this.#x&&(s.size=this.#x[r]),s}dump(){let e=[];for(let r of this.#O({allowStale:!0})){let i=this.#a[r],n=this.#s[r],s=this.#f(n)?n.__staleWhileFetching:n;if(s===void 0||i===void 0)continue;let o={value:s};if(this.#_&&this.#T){o.ttl=this.#_[r];let a=ei.now()-this.#T[r];o.start=Math.floor(Date.now()-a)}this.#x&&(o.size=this.#x[r]),e.unshift([i,o])}return e}load(e){this.clear();for(let[r,i]of e){if(i.start){let n=Date.now()-i.start;i.start=ei.now()-n}this.set(r,i.value,i)}}set(e,r,i={}){if(r===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:u=this.noUpdateTTL}=i,f=this.#k(e,r,i.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#L(e,"set"),this;let c=this.#u===0?void 0:this.#l.get(e);if(c===void 0)c=this.#u===0?this.#d:this.#E.length!==0?this.#E.pop():this.#u===this.#e?this.#F(!1):this.#u,this.#a[c]=e,this.#s[c]=r,this.#l.set(e,c),this.#y[this.#d]=c,this.#m[c]=this.#d,this.#d=c,this.#u++,this.#C(c,f,l),l&&(l.set="add"),u=!1;else{this.#B(c);let h=this.#s[c];if(r!==h){if(this.#b&&this.#f(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=h;d!==void 0&&!o&&(this.#v&&this.#n?.(d,e,"set"),this.#h&&this.#p?.push([d,e,"set"]))}else o||(this.#v&&this.#n?.(h,e,"set"),this.#h&&this.#p?.push([h,e,"set"]));if(this.#N(c),this.#C(c,f,l),this.#s[c]=r,l){l.set="replace";let d=h&&this.#f(h)?h.__staleWhileFetching:h;d!==void 0&&(l.oldValue=d)}}else l&&(l.set="update")}if(n!==0&&!this.#_&&this.#R(),this.#_&&(u||this.#P(c,n,s),l&&this.#i(l,c)),!o&&this.#h&&this.#p){let h=this.#p,d;for(;d=h?.shift();)this.#t?.(...d)}return this}pop(){try{for(;this.#u;){let e=this.#s[this.#g];if(this.#F(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#p){let e=this.#p,r;for(;r=e?.shift();)this.#t?.(...r)}}}#F(e){let r=this.#g,i=this.#a[r],n=this.#s[r];return this.#b&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(n,i,"evict"),this.#h&&this.#p?.push([n,i,"evict"])),this.#N(r),e&&(this.#a[r]=void 0,this.#s[r]=void 0,this.#E.push(r)),this.#u===1?(this.#g=this.#d=0,this.#E.length=0):this.#g=this.#y[r],this.#l.delete(i),this.#u--,r}has(e,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=r,s=this.#l.get(e);if(s!==void 0){let o=this.#s[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#w(s))n&&(n.has="stale",this.#i(n,s));else return i&&this.#A(s),n&&(n.has="hit",this.#i(n,s)),!0}else n&&(n.has="miss");return!1}peek(e,r={}){let{allowStale:i=this.allowStale}=r,n=this.#l.get(e);if(n===void 0||!i&&this.#w(n))return;let s=this.#s[n];return this.#f(s)?s.__staleWhileFetching:s}#q(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new go,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},u=(p,S=!1)=>{let{aborted:m}=o.signal,b=i.ignoreFetchAbort&&p!==void 0;if(i.status&&(m&&!S?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,b&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),m&&!b&&!S)return c(o.signal.reason);let v=d;return this.#s[r]===d&&(p===void 0?v.__staleWhileFetching?this.#s[r]=v.__staleWhileFetching:this.#L(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,p,l.options))),p},f=p=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=p),c(p)),c=p=>{let{aborted:S}=o.signal,m=S&&i.allowStaleOnFetchAbort,b=m||i.allowStaleOnFetchRejection,v=b||i.noDeleteOnFetchRejection,E=d;if(this.#s[r]===d&&(!v||E.__staleWhileFetching===void 0?this.#L(e,"fetch"):m||(this.#s[r]=E.__staleWhileFetching)),b)return i.status&&E.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),E.__staleWhileFetching;if(E.__returned===E)throw p},h=(p,S)=>{let m=this.#o?.(e,s,l);m&&m instanceof Promise&&m.then(b=>p(b===void 0?void 0:b),S),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(p(void 0),i.allowStaleOnFetchAbort&&(p=b=>u(b,!0)))})};i.status&&(i.status.fetchDispatched=!0);let d=new Promise(h).then(u,f),y=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,y,{...l.options,status:void 0}),r=this.#l.get(e)):this.#s[r]=y,y}#f(e){if(!this.#b)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof go}async fetch(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:y=this.allowStaleOnFetchAbort,context:p,forceRefresh:S=!1,status:m,signal:b}=r;if(!this.#b)return m&&(m.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:m});let v={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:y,ignoreFetchAbort:d,status:m,signal:b},E=this.#l.get(e);if(E===void 0){m&&(m.fetch="miss");let T=this.#q(e,E,v,p);return T.__returned=T}else{let T=this.#s[E];if(this.#f(T)){let R=i&&T.__staleWhileFetching!==void 0;return m&&(m.fetch="inflight",R&&(m.returnedStale=!0)),R?T.__staleWhileFetching:T.__returned=T}let D=this.#w(E);if(!S&&!D)return m&&(m.fetch="hit"),this.#B(E),n&&this.#A(E),m&&this.#i(m,E),T;let x=this.#q(e,E,v,p),w=x.__staleWhileFetching!==void 0&&i;return m&&(m.fetch=D?"stale":"refresh",w&&D&&(m.returnedStale=!0)),w?x.__staleWhileFetching:x.__returned=x}}async forceFetch(e,r={}){let i=await this.fetch(e,r);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,r={}){let i=this.#S;if(!i)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:s,...o}=r,a=this.get(e,o);if(!s&&a!==void 0)return a;let l=i(e,a,{options:o,context:n});return this.set(e,l,o),l}get(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#l.get(e);if(a!==void 0){let l=this.#s[a],u=this.#f(l);return o&&this.#i(o,a),this.#w(a)?(o&&(o.get="stale"),u?(o&&i&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?l.__staleWhileFetching:void 0):(s||this.#L(e,"expire"),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(this.#B(a),n&&this.#A(a),l))}else o&&(o.get="miss")}#j(e,r){this.#m[r]=e,this.#y[e]=r}#B(e){e!==this.#d&&(e===this.#g?this.#g=this.#y[e]:this.#j(this.#m[e],this.#y[e]),this.#j(this.#d,e),this.#d=e)}delete(e){return this.#L(e,"delete")}#L(e,r){let i=!1;if(this.#u!==0){let n=this.#l.get(e);if(n!==void 0)if(i=!0,this.#u===1)this.#U(r);else{this.#N(n);let s=this.#s[n];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(s,e,r),this.#h&&this.#p?.push([s,e,r])),this.#l.delete(e),this.#a[n]=void 0,this.#s[n]=void 0,n===this.#d)this.#d=this.#m[n];else if(n===this.#g)this.#g=this.#y[n];else{let o=this.#m[n];this.#y[o]=this.#y[n];let a=this.#y[n];this.#m[a]=this.#m[n]}this.#u--,this.#E.push(n)}}if(this.#h&&this.#p?.length){let n=this.#p,s;for(;s=n?.shift();)this.#t?.(...s)}return i}clear(){return this.#U("delete")}#U(e){for(let r of this.#I({allowStale:!0})){let i=this.#s[r];if(this.#f(i))i.__abortController.abort(new Error("deleted"));else{let n=this.#a[r];this.#v&&this.#n?.(i,n,e),this.#h&&this.#p?.push([i,n,e])}}if(this.#l.clear(),this.#s.fill(void 0),this.#a.fill(void 0),this.#_&&this.#T&&(this.#_.fill(0),this.#T.fill(0)),this.#x&&this.#x.fill(0),this.#g=0,this.#d=0,this.#E.length=0,this.#c=0,this.#u=0,this.#h&&this.#p){let r=this.#p,i;for(;i=r?.shift();)this.#t?.(...i)}}};_o.LRUCache=rf});var cf=g(De=>{"use strict";var d2=De&&De.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(De,"__esModule",{value:!0});De.Minipass=De.isWritable=De.isReadable=De.isStream=void 0;var u0=typeof process=="object"&&process?process:{stdout:null,stderr:null},ff=L("events"),d0=d2(L("stream")),p2=L("string_decoder"),g2=t=>!!t&&typeof t=="object"&&(t instanceof vo||t instanceof d0.default||(0,De.isReadable)(t)||(0,De.isWritable)(t));De.isStream=g2;var _2=t=>!!t&&typeof t=="object"&&t instanceof ff.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==d0.default.Writable.prototype.pipe;De.isReadable=_2;var y2=t=>!!t&&typeof t=="object"&&t instanceof ff.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";De.isWritable=y2;var St=Symbol("EOF"),Et=Symbol("maybeEmitEnd"),jt=Symbol("emittedEnd"),yo=Symbol("emittingEnd"),an=Symbol("emittedError"),mo=Symbol("closed"),f0=Symbol("read"),bo=Symbol("flush"),c0=Symbol("flushChunk"),Ke=Symbol("encoding"),ri=Symbol("decoder"),de=Symbol("flowing"),ln=Symbol("paused"),ii=Symbol("resume"),pe=Symbol("buffer"),Ie=Symbol("pipes"),ge=Symbol("bufferLength"),nf=Symbol("bufferPush"),wo=Symbol("bufferShift"),Re=Symbol("objectMode"),le=Symbol("destroyed"),sf=Symbol("error"),of=Symbol("emitData"),h0=Symbol("emitEnd"),af=Symbol("emitEnd2"),at=Symbol("async"),lf=Symbol("abort"),So=Symbol("aborted"),un=Symbol("signal"),gr=Symbol("dataListeners"),Ce=Symbol("discarded"),fn=t=>Promise.resolve().then(t),m2=t=>t(),b2=t=>t==="end"||t==="finish"||t==="prefinish",w2=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,S2=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Eo=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ii](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},uf=class extends Eo{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>this.dest.emit("error",n),e.on("error",this.proxyErrors)}},E2=t=>!!t.objectMode,v2=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",vo=class extends ff.EventEmitter{[de]=!1;[ln]=!1;[Ie]=[];[pe]=[];[Re];[Ke];[at];[ri];[St]=!1;[jt]=!1;[yo]=!1;[mo]=!1;[an]=null;[ge]=0;[le]=!1;[un];[So]=!1;[gr]=0;[Ce]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");E2(r)?(this[Re]=!0,this[Ke]=null):v2(r)?(this[Ke]=r.encoding,this[Re]=!1):(this[Re]=!1,this[Ke]=null),this[at]=!!r.async,this[ri]=this[Ke]?new p2.StringDecoder(this[Ke]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[pe]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ie]});let{signal:i}=r;i&&(this[un]=i,i.aborted?this[lf]():i.addEventListener("abort",()=>this[lf]()))}get bufferLength(){return this[ge]}get encoding(){return this[Ke]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Re]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[at]}set async(e){this[at]=this[at]||!!e}[lf](){this[So]=!0,this.emit("abort",this[un]?.reason),this.destroy(this[un]?.reason)}get aborted(){return this[So]}set aborted(e){}write(e,r,i){if(this[So])return!1;if(this[St])throw new Error("write after end");if(this[le])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[at]?fn:m2;if(!this[Re]&&!Buffer.isBuffer(e)){if(S2(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(w2(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Re]?(this[de]&&this[ge]!==0&&this[bo](!0),this[de]?this.emit("data",e):this[nf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):e.length?(typeof e=="string"&&!(r===this[Ke]&&!this[ri]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ke]&&(e=this[ri].write(e)),this[de]&&this[ge]!==0&&this[bo](!0),this[de]?this.emit("data",e):this[nf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):(this[ge]!==0&&this.emit("readable"),i&&n(i),this[de])}read(e){if(this[le])return null;if(this[Ce]=!1,this[ge]===0||e===0||e&&e>this[ge])return this[Et](),null;this[Re]&&(e=null),this[pe].length>1&&!this[Re]&&(this[pe]=[this[Ke]?this[pe].join(""):Buffer.concat(this[pe],this[ge])]);let r=this[f0](e||null,this[pe][0]);return this[Et](),r}[f0](e,r){if(this[Re])this[wo]();else{let i=r;e===i.length||e===null?this[wo]():typeof i=="string"?(this[pe][0]=i.slice(e),r=i.slice(0,e),this[ge]-=e):(this[pe][0]=i.subarray(e),r=i.subarray(0,e),this[ge]-=e)}return this.emit("data",r),!this[pe].length&&!this[St]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=void 0),typeof r=="function"&&(i=r,r="utf8"),e!==void 0&&this.write(e,r),i&&this.once("end",i),this[St]=!0,this.writable=!1,(this[de]||!this[ln])&&this[Et](),this}[ii](){this[le]||(!this[gr]&&!this[Ie].length&&(this[Ce]=!0),this[ln]=!1,this[de]=!0,this.emit("resume"),this[pe].length?this[bo]():this[St]?this[Et]():this.emit("drain"))}resume(){return this[ii]()}pause(){this[de]=!1,this[ln]=!0,this[Ce]=!1}get destroyed(){return this[le]}get flowing(){return this[de]}get paused(){return this[ln]}[nf](e){this[Re]?this[ge]+=1:this[ge]+=e.length,this[pe].push(e)}[wo](){return this[Re]?this[ge]-=1:this[ge]-=this[pe][0].length,this[pe].shift()}[bo](e=!1){do;while(this[c0](this[wo]())&&this[pe].length);!e&&!this[pe].length&&!this[St]&&this.emit("drain")}[c0](e){return this.emit("data",e),this[de]}pipe(e,r){if(this[le])return e;this[Ce]=!1;let i=this[jt];return r=r||{},e===u0.stdout||e===u0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ie].push(r.proxyErrors?new uf(this,e,r):new Eo(this,e,r)),this[at]?fn(()=>this[ii]()):this[ii]()),e}unpipe(e){let r=this[Ie].find(i=>i.dest===e);r&&(this[Ie].length===1?(this[de]&&this[gr]===0&&(this[de]=!1),this[Ie]=[]):this[Ie].splice(this[Ie].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);if(e==="data")this[Ce]=!1,this[gr]++,!this[Ie].length&&!this[de]&&this[ii]();else if(e==="readable"&&this[ge]!==0)super.emit("readable");else if(b2(e)&&this[jt])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[an]){let n=r;this[at]?fn(()=>n.call(this,this[an])):n.call(this,this[an])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[gr]=this.listeners("data").length,this[gr]===0&&!this[Ce]&&!this[Ie].length&&(this[de]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[gr]=0,!this[Ce]&&!this[Ie].length&&(this[de]=!1)),r}get emittedEnd(){return this[jt]}[Et](){!this[yo]&&!this[jt]&&!this[le]&&this[pe].length===0&&this[St]&&(this[yo]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[mo]&&this.emit("close"),this[yo]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==le&&this[le])return!1;if(e==="data")return!this[Re]&&!i?!1:this[at]?(fn(()=>this[of](i)),!0):this[of](i);if(e==="end")return this[h0]();if(e==="close"){if(this[mo]=!0,!this[jt]&&!this[le])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[an]=i,super.emit(sf,i);let s=!this[un]||this.listeners("error").length?super.emit("error",i):!1;return this[Et](),s}else if(e==="resume"){let s=super.emit("resume");return this[Et](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,...r);return this[Et](),n}[of](e){for(let i of this[Ie])i.dest.write(e)===!1&&this.pause();let r=this[Ce]?!1:super.emit("data",e);return this[Et](),r}[h0](){return this[jt]?!1:(this[jt]=!0,this.readable=!1,this[at]?(fn(()=>this[af]()),!0):this[af]())}[af](){if(this[ri]){let r=this[ri].end();if(r){for(let i of this[Ie])i.dest.write(r);this[Ce]||super.emit("data",r)}}for(let r of this[Ie])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Re]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Re]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[Re])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Ke]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(le,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Ce]=!1;let e=!1,r=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return r();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[St])return r();let s,o,a=c=>{this.off("data",l),this.off("end",u),this.off(le,f),r(),o(c)},l=c=>{this.off("error",a),this.off("end",u),this.off(le,f),this.pause(),s({value:c,done:!!this[St]})},u=()=>{this.off("error",a),this.off("data",l),this.off(le,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((c,h)=>{o=h,s=c,this.once(le,f),this.once("error",a),this.once("end",u),this.once("data",l)})},throw:r,return:r,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[Ce]=!1;let e=!1,r=()=>(this.pause(),this.off(sf,r),this.off(le,r),this.off("end",r),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return r();let n=this.read();return n===null?r():{done:!1,value:n}};return this.once("end",r),this.once(sf,r),this.once(le,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[le])return e?this.emit("error",e):this.emit(le),this;this[le]=!0,this[Ce]=!0,this[pe].length=0,this[ge]=0;let r=this;return typeof r.close=="function"&&!this[mo]&&r.close(),e?this.emit("error",e):this.emit(le),this}static get isStream(){return De.isStream}};De.Minipass=vo});var O0=g(H=>{"use strict";var x2=H&&H.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),T2=H&&H.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),R2=H&&H.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&x2(e,t,r);return T2(e,t),e};Object.defineProperty(H,"__esModule",{value:!0});H.PathScurry=H.Path=H.PathScurryDarwin=H.PathScurryPosix=H.PathScurryWin32=H.PathScurryBase=H.PathPosix=H.PathWin32=H.PathBase=H.ChildrenCache=H.ResolveCache=void 0;var b0=l0(),Oo=L("path"),A2=L("url"),hn=L("fs"),O2=R2(L("fs")),I2=hn.realpathSync.native,xo=L("fs/promises"),p0=cf(),dn={lstatSync:hn.lstatSync,readdir:hn.readdir,readdirSync:hn.readdirSync,readlinkSync:hn.readlinkSync,realpathSync:I2,promises:{lstat:xo.lstat,readdir:xo.readdir,readlink:xo.readlink,realpath:xo.realpath}},w0=t=>!t||t===dn||t===O2?dn:{...dn,...t,promises:{...dn.promises,...t.promises||{}}},S0=/^\\\\\?\\([a-z]:)\\?$/i,D2=t=>t.replace(/\//g,"\\").replace(S0,"$1\\"),L2=/[\\\/]/,ze=0,E0=1,v0=2,lt=4,x0=6,T0=8,_r=10,R0=12,We=15,cn=~We,hf=16,g0=32,pn=64,Ze=128,To=256,Ao=512,_0=pn|Ze|Ao,P2=1023,df=t=>t.isFile()?T0:t.isDirectory()?lt:t.isSymbolicLink()?_r:t.isCharacterDevice()?v0:t.isBlockDevice()?x0:t.isSocket()?R0:t.isFIFO()?E0:ze,y0=new Map,gn=t=>{let e=y0.get(t);if(e)return e;let r=t.normalize("NFKD");return y0.set(t,r),r},m0=new Map,Ro=t=>{let e=m0.get(t);if(e)return e;let r=gn(t.toLowerCase());return m0.set(t,r),r},_n=class extends b0.LRUCache{constructor(){super({max:256})}};H.ResolveCache=_n;var Io=class extends b0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};H.ChildrenCache=Io;var A0=Symbol("PathScurry setAsCwd"),Se=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#n;get mode(){return this.#n}#t;get nlink(){return this.#t}#o;get uid(){return this.#o}#S;get gid(){return this.#S}#u;get rdev(){return this.#u}#c;get blksize(){return this.#c}#l;get ino(){return this.#l}#a;get size(){return this.#a}#s;get blocks(){return this.#s}#y;get atimeMs(){return this.#y}#m;get mtimeMs(){return this.#m}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#E;get atime(){return this.#E}#p;get mtime(){return this.#p}#x;get ctime(){return this.#x}#T;get birthtime(){return this.#T}#_;#v;#b;#h;#R;#A;#i;#P;#w;#D;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=ze,i,n,s,o,a){this.name=e,this.#_=s?Ro(e):gn(e),this.#i=r&P2,this.nocase=s,this.roots=n,this.root=i||this,this.#P=o,this.#b=a.fullpath,this.#R=a.relative,this.#A=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=w0(a.fs)}depth(){return this.#v!==void 0?this.#v:this.parent?this.#v=this.parent.depth()+1:this.#v=0}childrenCache(){return this.#P}resolve(e){if(!e)return this;let r=this.getRootString(e),n=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#N(n):this.#N(n)}#N(e){let r=this;for(let i of e)r=r.child(i);return r}children(){let e=this.#P.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#P.set(this,r),this.#i&=~hf,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),n=this.nocase?Ro(e):gn(e);for(let l of i)if(l.#_===n)return l;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+e:void 0,a=this.newChild(e,ze,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=Ze),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#R!==void 0)return this.#R;let e=this.name,r=this.parent;if(!r)return this.#R=this.name;let i=r.relative();return i+(!i||!r.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let e=this.name,r=this.parent;if(!r)return this.#A=this.fullpathPosix();let i=r.relativePosix();return i+(!i||!r.parent?"":"/")+e}fullpath(){if(this.#b!==void 0)return this.#b;let e=this.name,r=this.parent;if(!r)return this.#b=this.name;let n=r.fullpath()+(r.parent?this.sep:"")+e;return this.#b=n}fullpathPosix(){if(this.#h!==void 0)return this.#h;if(this.sep==="/")return this.#h=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#h=`//?/${n}`:this.#h=n}let e=this.parent,r=e.fullpathPosix(),i=r+(!r||!e.parent?"":"/")+this.name;return this.#h=i}isUnknown(){return(this.#i&We)===ze}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&We)===T0}isDirectory(){return(this.#i&We)===lt}isCharacterDevice(){return(this.#i&We)===v0}isBlockDevice(){return(this.#i&We)===x0}isFIFO(){return(this.#i&We)===E0}isSocket(){return(this.#i&We)===R0}isSymbolicLink(){return(this.#i&_r)===_r}lstatCached(){return this.#i&g0?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#D}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#w)return!0;if(!this.parent)return!1;let e=this.#i&We;return!(e!==ze&&e!==_r||this.#i&To||this.#i&Ze)}calledReaddir(){return!!(this.#i&hf)}isENOENT(){return!!(this.#i&Ze)}isNamed(e){return this.nocase?this.#_===Ro(e):this.#_===gn(e)}async readlink(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}readlinkSync(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}#C(e){this.#i|=hf;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#k()}}#k(){this.#i&Ze||(this.#i=(this.#i|Ze)&cn,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#k()}#I(){this.#i|=Ao,this.#M()}#M(){if(this.#i&pn)return;let e=this.#i;(e&We)===lt&&(e&=cn),this.#i=e|pn,this.#O()}#F(e=""){e==="ENOTDIR"||e==="EPERM"?this.#M():e==="ENOENT"?this.#k():this.children().provisional=0}#q(e=""){e==="ENOTDIR"?this.parent.#M():e==="ENOENT"&&this.#k()}#f(e=""){let r=this.#i;r|=To,e==="ENOENT"&&(r|=Ze),(e==="EINVAL"||e==="UNKNOWN")&&(r&=cn),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#M()}#j(e,r){return this.#L(e,r)||this.#B(e,r)}#B(e,r){let i=df(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&We;return s!==lt&&s!==_r&&s!==ze&&(n.#i|=pn),r.unshift(n),r.provisional++,n}#L(e,r){for(let i=r.provisional;i<r.length;i++){let n=r[i];if((this.nocase?Ro(e.name):gn(e.name))===n.#_)return this.#U(e,n,i,r)}}#U(e,r,i,n){let s=r.name;return r.#i=r.#i&cn|df(e),s!==e.name&&(r.name=e.name),i!==n.provisional&&(i===n.length-1?n.pop():n.splice(i,1),n.unshift(r)),n.provisional++,r}async lstat(){if((this.#i&Ze)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#q(e.code)}}lstatSync(){if((this.#i&Ze)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#q(e.code)}}#$(e){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:f,gid:c,ino:h,mode:d,mtime:y,mtimeMs:p,nlink:S,rdev:m,size:b,uid:v}=e;this.#E=r,this.#y=i,this.#T=n,this.#d=s,this.#c=o,this.#s=a,this.#x=l,this.#g=u,this.#r=f,this.#S=c,this.#l=h,this.#n=d,this.#p=y,this.#m=p,this.#t=S,this.#u=m,this.#a=b,this.#o=v;let E=df(e);this.#i=this.#i&cn|E|g0,E!==ze&&E!==lt&&E!==_r&&(this.#i|=pn)}#z=[];#G=!1;#H(e){this.#G=!1;let r=this.#z.slice();this.#z.length=0,r.forEach(i=>i(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);r?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#z.push(e),this.#G)return;this.#G=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(s,o)=>{if(s)this.#F(s.code),i.provisional=0;else{for(let a of o)this.#j(a,i);this.#C(i)}this.#H(i.slice(0,i.provisional))})}#W;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();if(this.#W)await this.#W;else{let i=()=>{};this.#W=new Promise(n=>i=n);try{for(let n of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#j(n,e);this.#C(e)}catch(n){this.#F(n.code),e.provisional=0}this.#W=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#j(i,e);this.#C(e)}catch(i){this.#F(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&_0)return!1;let e=We&this.#i;return e===ze||e===lt||e===_r}shouldWalk(e,r){return(this.#i<)===lt&&!(this.#i&_0)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#D)return this.#D;if(!((Ao|To|Ze)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}realpathSync(){if(this.#D)return this.#D;if(!((Ao|To|Ze)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}[A0](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let r=new Set([]),i=[],n=this;for(;n&&n.parent;)r.add(n),n.#R=i.join(this.sep),n.#A=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!r.has(n);)n.#R=void 0,n.#A=void 0,n=n.parent}};H.PathBase=Se;var yn=class t extends Se{sep="\\";splitSep=L2;constructor(e,r=ze,i,n,s,o,a){super(e,r,i,n,s,o,a)}newChild(e,r=ze,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return Oo.win32.parse(e).root}getRoot(e){if(e=D2(e.toUpperCase()),e===this.root.name)return this.root;for(let[r,i]of Object.entries(this.roots))if(this.sameRoot(e,r))return this.roots[e]=i;return this.roots[e]=new wn(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(S0,"$1\\"),e===r}};H.PathWin32=yn;var mn=class t extends Se{splitSep="/";sep="/";constructor(e,r=ze,i,n,s,o,a){super(e,r,i,n,s,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=ze,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};H.PathPosix=mn;var bn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=dn}={}){this.#t=w0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,A2.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new _n,this.#r=new _n,this.#n=new Io(s);let l=a.substring(this.rootPath.length).split(i);if(l.length===1&&!l[0]&&l.pop(),n===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let u=this.root,f=l.length-1,c=r.sep,h=this.rootPath,d=!1;for(let y of l){let p=f--;u=u.child(y,{relative:new Array(p).fill("..").join(c),relativePosix:new Array(p).fill("..").join("/"),fullpath:h+=(d?"":c)+y}),d=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#e.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpath();return this.#e.set(r,n),n}resolvePosix(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#r.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,n),n}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i}=r;if(e.canReaddir()){let n=await e.readdir();return i?n:n.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0}=r;return e.canReaddir()?i?e.readdirSync():e.readdirSync().map(n=>n.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=await e.readlink();return r?i:i?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=e.readlinkSync();return r?i:i?.fullpath()}async realpath(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=await e.realpath();return r?i:i?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=e.realpathSync();return r?i:i?.fullpath()}async walk(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set,u=(c,h)=>{l.add(c),c.readdirCB((d,y)=>{if(d)return h(d);let p=y.length;if(!p)return h();let S=()=>{--p===0&&h()};for(let m of y)(!s||s(m))&&a.push(i?m:m.fullpath()),n&&m.isSymbolicLink()?m.realpath().then(b=>b?.isUnknown()?b.lstat():b).then(b=>b?.shouldWalk(l,o)?u(b,S):S()):m.shouldWalk(l,o)?u(m,S):S()},!0)},f=e;return new Promise((c,h)=>{u(f,d=>{if(d)return h(d);c(a)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set([e]);for(let u of l){let f=u.readdirSync();for(let c of f){(!s||s(c))&&a.push(i?c:c.fullpath());let h=c;if(c.isSymbolicLink()){if(!(n&&(h=c.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,o)&&l.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r;(!s||s(e))&&(yield i?e:e.fullpath());let a=new Set([e]);for(let l of a){let u=l.readdirSync();for(let f of u){(!s||s(f))&&(yield i?f:f.fullpath());let c=f;if(f.isSymbolicLink()){if(!(n&&(c=f.realpathSync())))continue;c.isUnknown()&&c.lstatSync()}c.shouldWalk(a,o)&&a.add(c)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new p0.Minipass({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let l=new Set,u=[e],f=0,c=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let y=(S,m,b=!1)=>{if(S)return a.emit("error",S);if(n&&!b){let v=[];for(let E of m)E.isSymbolicLink()&&v.push(E.realpath().then(T=>T?.isUnknown()?T.lstat():T));if(v.length){Promise.all(v).then(()=>y(null,m,!0));return}}for(let v of m)v&&(!s||s(v))&&(a.write(i?v:v.fullpath())||(h=!0));f--;for(let v of m){let E=v.realpathCached()||v;E.shouldWalk(l,o)&&u.push(E)}h&&!a.flowing?a.once("drain",c):p||c()},p=!0;d.readdirCB(y,!0),p=!1}};return c(),a}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new p0.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],f=0,c=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let y=d.readdirSync();for(let p of y)(!s||s(p))&&(a.write(i?p:p.fullpath())||(h=!0));f--;for(let p of y){let S=p;if(p.isSymbolicLink()){if(!(n&&(S=p.realpathSync())))continue;S.isUnknown()&&S.lstatSync()}S.shouldWalk(l,o)&&u.push(S)}}h&&!a.flowing&&a.once("drain",c)};return c(),a}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[A0](r)}};H.PathScurryBase=bn;var wn=class extends bn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,Oo.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return Oo.win32.parse(e).root.toUpperCase()}newRoot(e){return new yn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};H.PathScurryWin32=wn;var Sn=class extends bn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,Oo.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new mn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};H.PathScurryPosix=Sn;var Do=class extends Sn{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};H.PathScurryDarwin=Do;H.Path=process.platform==="win32"?yn:mn;H.PathScurry=process.platform==="win32"?wn:process.platform==="darwin"?Do:Sn});var gf=g(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.Pattern=void 0;var N2=Ft(),C2=t=>t.length>=1,k2=t=>t.length>=1,pf=class t{#e;#r;#n;length;#t;#o;#S;#u;#c;#l;#a=!0;constructor(e,r,i,n){if(!C2(e))throw new TypeError("empty pattern list");if(!k2(r))throw new TypeError("empty glob list");if(r.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#r=r,this.#n=i,this.#t=n,this.#n===0){if(this.isUNC()){let[s,o,a,l,...u]=this.#e,[f,c,h,d,...y]=this.#r;u[0]===""&&(u.shift(),y.shift());let p=[s,o,a,l,""].join("/"),S=[f,c,h,d,""].join("/");this.#e=[p,...u],this.#r=[S,...y],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...l]=this.#r;o[0]===""&&(o.shift(),l.shift());let u=s+"/",f=a+"/";this.#e=[u,...o],this.#r=[f,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===N2.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#S=this.#S||(this.#n===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new t(this.#e,this.#r,this.#n+1,this.#t),this.#o.#l=this.#l,this.#o.#c=this.#c,this.#o.#u=this.#u,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#t==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#t==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#a)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#a?!1:(this.#a=!1,!0)}};Lo.Pattern=pf});var yf=g(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.Ignore=void 0;var I0=Ft(),M2=gf(),F2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",_f=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=F2}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:i,noext:n,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let r=new I0.Minimatch(e,this.mmopts);for(let i=0;i<r.set.length;i++){let n=r.set[i],s=r.globParts[i];if(!n||!s)throw new Error("invalid pattern object");for(;n[0]==="."&&s[0]===".";)n.shift(),s.shift();let o=new M2.Pattern(n,s,0,this.platform),a=new I0.Minimatch(o.globString(),this.mmopts),l=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),l&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let r=e.fullpath(),i=`${r}/`,n=e.relative()||".",s=`${n}/`;for(let o of this.relative)if(o.match(n)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(i))return!0;return!1}childrenIgnored(e){let r=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let n of this.relativeChildren)if(n.match(i))return!0;for(let n of this.absoluteChildren)if(n.match(r))return!0;return!1}};Po.Ignore=_f});var L0=g(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.Processor=ut.SubWalks=ut.MatchRecord=ut.HasWalkedCache=void 0;var D0=Ft(),No=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let i=e.fullpath(),n=this.store.get(i);n?n.add(r.globString()):this.store.set(i,new Set([r.globString()]))}};ut.HasWalkedCache=No;var Co=class{store=new Map;add(e,r,i){let n=(r?2:0)|(i?1:0),s=this.store.get(e);this.store.set(e,s===void 0?n:n&s)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};ut.MatchRecord=Co;var ko=class{store=new Map;add(e,r){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(n=>n.globString()===r.globString())||i.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};ut.SubWalks=ko;var mf=class t{hasWalkedCache;matches=new Co;subwalks=new ko;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new No}processPatterns(e,r){this.patterns=r;let i=r.map(n=>[e,n]);for(let[n,s]of i){this.hasWalkedCache.storeWalked(n,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){n=n.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let c=s.rest();if(c)s=c;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let l,u,f=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)n=n.resolve(l),s=u,f=!0;if(l=s.pattern(),u=s.rest(),f){if(this.hasWalkedCache.hasWalked(n,s))continue;this.hasWalkedCache.storeWalked(n,s)}if(typeof l=="string"){let c=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,c);continue}else if(l===D0.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let c=u?.pattern(),h=u?.rest();if(!u||(c===""||c===".")&&!h)this.matches.add(n,a,c===""||c===".");else if(c===".."){let d=n.parent||n;h?this.hasWalkedCache.hasWalked(d,h)||this.subwalks.add(d,h):this.matches.add(d,a,!0)}}else l instanceof RegExp&&this.subwalks.add(n,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let i=this.subwalks.get(e),n=this.child();for(let s of r)for(let o of i){let a=o.isAbsolute(),l=o.pattern(),u=o.rest();l===D0.GLOBSTAR?n.testGlobstar(s,o,u,a):l instanceof RegExp?n.testRegExp(s,l,u,a):n.testString(s,l,u,a)}return n}testGlobstar(e,r,i,n){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(i&&r.checkFollowGlobstar()?this.subwalks.add(e,i):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),i){let s=i.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,i.rest(),n);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,i)}else s instanceof RegExp&&this.testRegExp(e,s,i.rest(),n)}}testRegExp(e,r,i,n){r.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}testString(e,r,i,n){e.isNamed(r)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}};ut.Processor=mf});var C0=g(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.GlobStream=Bt.GlobWalker=Bt.GlobUtil=void 0;var q2=cf(),P0=yf(),N0=L0(),j2=(t,e)=>typeof t=="string"?new P0.Ignore([t],e):Array.isArray(t)?new P0.Ignore(t,e):t,En=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#n;signal;maxDepth;includeChildMatches;constructor(e,r,i){if(this.patterns=e,this.path=r,this.opts=i,this.#n=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#r=j2(i.ignore??[],i),!this.includeChildMatches&&typeof this.#r.add!="function")){let n="cannot ignore child matches, ignore lacks add() method.";throw new Error(n)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#r?.ignored?.(e)}#o(e){return!!this.#r?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(e,r){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!r||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(e,r){if(this.#t(e))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${e.relativePosix()}/**`;this.#r.add(s)}let i=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(e);let n=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+n)}else{let s=this.opts.posix?e.relativePosix():e.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(s?o+s+n:"."+n)}}async match(e,r,i){let n=await this.matchCheck(e,i);n&&this.matchFinish(n,r)}matchSync(e,r,i){let n=this.matchCheckSync(e,i);n&&this.matchFinish(n,r)}walkCB(e,r,i){this.signal?.aborted&&i(),this.walkCB2(e,r,new N0.Processor(this.opts),i)}walkCB2(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,i,o):a.readdirCB((u,f)=>this.walkCB3(a,f,i,o),!0)}o()}walkCB3(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let[a,l]of i.subwalks.entries())s++,this.walkCB2(a,l,i.child(),o);o()}walkCBSync(e,r,i){this.signal?.aborted&&i(),this.walkCB2Sync(e,r,new N0.Processor(this.opts),i)}walkCB2Sync(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2Sync(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirSync();this.walkCB3Sync(a,l,i,o)}o()}walkCB3Sync(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let[a,l]of i.subwalks.entries())s++,this.walkCB2Sync(a,l,i.child(),o);o()}};Bt.GlobUtil=En;var bf=class extends En{matches=new Set;constructor(e,r,i){super(e,r,i)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};Bt.GlobWalker=bf;var wf=class extends En{results;constructor(e,r,i){super(e,r,i),this.results=new q2.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};Bt.GlobStream=wf});var Ef=g(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.Glob=void 0;var B2=Ft(),U2=L("url"),Mo=O0(),W2=gf(),Fo=C0(),z2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Sf=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,U2.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=r.platform||z2,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=r.platform==="win32"?Mo.PathScurryWin32:r.platform==="darwin"?Mo.PathScurryDarwin:r.platform?Mo.PathScurryPosix:Mo.PathScurry;this.scurry=new l(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",n={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new B2.Minimatch(l,n)),[o,a]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=o.map((l,u)=>{let f=a[u];if(!f)throw new Error("invalid pattern object");return new W2.Pattern(l,f,0,this.platform)})}async walk(){return[...await new Fo.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Fo.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Fo.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Fo.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};qo.Glob=Sf});var vf=g(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.hasMagic=void 0;var G2=Ft(),$2=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new G2.Minimatch(r,e).hasMagic())return!0;return!1};jo.hasMagic=$2});var q0=g(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.glob=U.sync=U.iterate=U.iterateSync=U.stream=U.streamSync=U.Ignore=U.hasMagic=U.Glob=U.unescape=U.escape=void 0;U.globStreamSync=vn;U.globStream=xf;U.globSync=Tf;U.globIterateSync=xn;U.globIterate=Rf;var k0=Ft(),yr=Ef(),H2=vf(),F0=Ft();Object.defineProperty(U,"escape",{enumerable:!0,get:function(){return F0.escape}});Object.defineProperty(U,"unescape",{enumerable:!0,get:function(){return F0.unescape}});var V2=Ef();Object.defineProperty(U,"Glob",{enumerable:!0,get:function(){return V2.Glob}});var Y2=vf();Object.defineProperty(U,"hasMagic",{enumerable:!0,get:function(){return Y2.hasMagic}});var K2=yf();Object.defineProperty(U,"Ignore",{enumerable:!0,get:function(){return K2.Ignore}});function vn(t,e={}){return new yr.Glob(t,e).streamSync()}function xf(t,e={}){return new yr.Glob(t,e).stream()}function Tf(t,e={}){return new yr.Glob(t,e).walkSync()}async function M0(t,e={}){return new yr.Glob(t,e).walk()}function xn(t,e={}){return new yr.Glob(t,e).iterateSync()}function Rf(t,e={}){return new yr.Glob(t,e).iterate()}U.streamSync=vn;U.stream=Object.assign(xf,{sync:vn});U.iterateSync=xn;U.iterate=Object.assign(Rf,{sync:xn});U.sync=Object.assign(Tf,{stream:vn,iterate:xn});U.glob=Object.assign(M0,{glob:M0,globSync:Tf,sync:U.sync,globStream:xf,stream:U.stream,globStreamSync:vn,streamSync:U.streamSync,globIterate:Rf,iterate:U.iterate,globIterateSync:xn,iterateSync:U.iterateSync,Glob:yr.Glob,hasMagic:H2.hasMagic,escape:k0.escape,unescape:k0.unescape});U.glob.glob=U.glob});var W0=g((aU,U0)=>{"use strict";var B0=Va(),ni=L("path"),Af=cb(),Z2=Rw(),Q2=Fw(),X2=Gw(),J2=q0(),mr=U0.exports={},j0=/[\/\\]/g,eF=function(t,e){var r=[];return Af(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=Z2(r,s):r=Q2(r,s)}),r};mr.exists=function(){var t=ni.join.apply(ni,arguments);return B0.existsSync(t)};mr.expand=function(...t){var e=X2(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=eF(r,function(n){return J2.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=ni.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):B0.statSync(n)[e.filter]()}catch{return!1}})),i};mr.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return ni.join(s||"",o)}},r);var i=[],n={};return mr.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=ni.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=ni.join(r.cwd,s)),a=a.replace(j0,"/"),s=s.replace(j0,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};mr.normalizeFilesArray=function(t){var e=[];return t.forEach(function(r){var i;("src"in r||"dest"in r)&&e.push(r)}),e.length===0?[]:(e=_(e).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=Af(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return mr.expandMapping(r.src,r.dest,i).map(function(s){var o=Object.assign({},r);return o.orig=Object.assign({},r),o.src=s.src,o.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(a){delete o[a]}),o});var n=Object.assign({},r);return n.orig=Object.assign({},r),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function s(){var o;return"result"in s||(o=r.src,o=Array.isArray(o)?Af(o):[o],s.result=mr.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var si=g((uU,$0)=>{"use strict";var Of=Va(),z0=L("path"),tF=ns(),rF=pp(),G0=yl(),iF=Yg(),lU=L("stream").Stream,nF=dr().PassThrough,ke=$0.exports={};ke.file=W0();ke.collectStream=function(t,e){var r=[],i=0;t.on("error",e),t.on("data",function(n){r.push(n),i+=n.length}),t.on("end",function(){var n=Buffer.alloc(i),s=0;r.forEach(function(o){o.copy(n,s),s+=o.length}),e(null,n)})};ke.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};ke.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},iF(...i)};ke.isStream=function(t){return tF(t)};ke.lazyReadStream=function(t){return new rF.Readable(function(){return Of.createReadStream(t)})};ke.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):ke.isStream(t)?t.pipe(new nF):t};ke.sanitizePath=function(t){return G0(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};ke.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};ke.unixifyPath=function(t){return G0(t,!1).replace(/^\w+:/,"")};ke.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Of.readdir(t,function(n,s){var o=0,a,l;if(n)return r(n);(function u(){if(a=s[o++],!a)return r(null,i);l=z0.join(t,a),Of.stat(l,function(f,c){i.push({path:l,relative:z0.relative(e,l).replace(/\\/g,"/"),stats:c}),c&&c.isDirectory()?ke.walkdir(l,e,function(h,d){if(h)return r(h);d.forEach(function(y){i.push(y)}),u()}):u()})})()})}});var K0=g((V0,Y0)=>{"use strict";var sF=L("util"),oF={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function H0(t,e){Error.captureStackTrace(this,this.constructor),this.message=oF[t]||t,this.code=t,this.data=e}sF.inherits(H0,Error);V0=Y0.exports=H0});var eS=g((fU,J0)=>{"use strict";var Lf=L("fs"),Q0=ah(),Z0=(od(),ev(sd)),If=L("path"),ft=si(),aF=L("util").inherits,ae=K0(),X0=dr().Transform,Df=process.platform==="win32",G=function(t,e){if(!(this instanceof G))return new G(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=ft.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),X0.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=Z0.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=Z0.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};aF(G,X0);G.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};G.prototype._append=function(t,e){e=e||{};var r={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof Lf.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};G.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};G.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};G.prototype._moduleAppend=function(t,e,r){if(this._state.aborted){r();return}this._module.append(t,e,function(i){if(this._task=null,this._state.aborted){this._shutdown();return}if(i){this.emit("error",i),setImmediate(r);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}.bind(this))};G.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new ae("NOENDMETHOD"))};G.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};G.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};G.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};G.prototype._normalizeEntryData=function(t,e){t=ft.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var r=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=ft.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?Df?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(Df?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,Df&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=ft.dateify(t.date),t};G.prototype._onModuleError=function(t){this.emit("error",t)};G.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};G.prototype._onQueueTask=function(t,e){var r=()=>{t.data.callback&&t.data.callback(),e()};if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}this._task=t,this._moduleAppend(t.source,t.data,r)};G.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}Lf.lstat(t.filepath,function(r,i){if(this._state.aborted){setImmediate(e);return}if(r){this._entriesCount--,this.emit("warning",r),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,i),t&&(i.size&&(this._fsEntriesTotalBytes+=i.size),this._queue.push(t)),setImmediate(e)}.bind(this))};G.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};G.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};G.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=ft.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=ft.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=ft.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=Lf.readlinkSync(t.filepath),i=If.dirname(t.filepath);t.data.type="symlink",t.data.linkname=If.relative(i,If.resolve(i,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new ae("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new ae("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new ae("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};G.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};G.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new ae("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new ae("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=ft.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(ft.isStream(t))e.sourceType="stream";else return this.emit("error",new ae("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};G.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var i=!1;typeof r=="function"?(i=r,r={}):typeof r!="object"&&(r={});var n={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}function o(u){this.emit("error",u)}function a(u){l.pause();var f=!1,c=Object.assign({},r);c.name=u.relative,c.prefix=e,c.stats=u.stat,c.callback=l.resume.bind(l);try{if(i){if(c=i(c),c===!1)f=!0;else if(typeof c!="object")throw new ae("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(h){this.emit("error",h);return}if(f){l.resume();return}this._append(u.absolute,c)}var l=Q0(t,n);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};G.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new ae("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new ae("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};G.prototype.glob=function(t,e,r){this._pending++,e=ft.defaults(e,{stat:!0,pattern:t});function i(){this._pending--,this._maybeFinalize()}function n(a){this.emit("error",a)}function s(a){o.pause();var l=Object.assign({},r);l.callback=o.resume.bind(o),l.stats=a.stat,l.name=a.relative,this._append(a.absolute,l)}var o=Q0(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};G.prototype.finalize=function(){if(this._state.aborted){var t=new ae("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new ae("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(i,n){var s;r._module.on("end",function(){s||i()}),r._module.on("error",function(o){s=!0,n(o)})})};G.prototype.setFormat=function(t){return this._format?(this.emit("error",new ae("FORMATSET")),this):(this._format=t,this)};G.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new ae("ABORTED")),this):this._state.module?(this.emit("error",new ae("MODULESET")),this):(this._module=t,this._modulePipe(),this)};G.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new ae("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new ae("SYMLINKNOTSUPPORTED",{filepath:t})),this;var i={};return i.type="symlink",i.name=t.replace(/\\/g,"/"),i.linkname=e.replace(/\\/g,"/"),i.sourceType="buffer",typeof r=="number"&&(i.mode=r),this._entriesCount++,this._queue.push({data:i,source:Buffer.concat([])}),this};G.prototype.pointer=function(){return this._pointer};G.prototype.use=function(t){return this._streams.push(t),this};J0.exports=G});var Uo=g((cU,tS)=>{"use strict";var Bo=tS.exports=function(){};Bo.prototype.getName=function(){};Bo.prototype.getSize=function(){};Bo.prototype.getLastModifiedDate=function(){};Bo.prototype.isDirectory=function(){}});var Wo=g((hU,rS)=>{"use strict";var Ge=rS.exports={};Ge.dateToDos=function(t,e){e=e||!1;var r=e?t.getFullYear():t.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 2141175677;var i={year:r,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return i.year-1980<<25|i.month+1<<21|i.date<<16|i.hours<<11|i.minutes<<5|i.seconds/2};Ge.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};Ge.fromDosTime=function(t){return Ge.dosToDate(t.readUInt32LE(0))};Ge.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};Ge.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};Ge.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};Ge.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};Ge.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};Ge.toDosTime=function(t){return Ge.getLongBytes(Ge.dateToDos(t))}});var Pf=g((dU,lS)=>{"use strict";var iS=Wo(),nS=8,sS=1,lF=4,uF=2,oS=64,aS=2048,Ee=lS.exports=function(){return this instanceof Ee?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Ee};Ee.prototype.encode=function(){return iS.getShortBytes((this.descriptor?nS:0)|(this.utf8?aS:0)|(this.encryption?sS:0)|(this.strongEncryption?oS:0))};Ee.prototype.parse=function(t,e){var r=iS.getShortBytesValue(t,e),i=new Ee;return i.useDataDescriptor((r&nS)!==0),i.useUTF8ForNames((r&aS)!==0),i.useStrongEncryption((r&oS)!==0),i.useEncryption((r&sS)!==0),i.setSlidingDictionarySize((r&uF)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&lF)!==0?3:2),i};Ee.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Ee.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Ee.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Ee.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Ee.prototype.useDataDescriptor=function(t){this.descriptor=t};Ee.prototype.usesDataDescriptor=function(){return this.descriptor};Ee.prototype.useEncryption=function(t){this.encryption=t};Ee.prototype.usesEncryption=function(){return this.encryption};Ee.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Ee.prototype.usesStrongEncryption=function(){return this.strongEncryption};Ee.prototype.useUTF8ForNames=function(t){this.utf8=t};Ee.prototype.usesUTF8ForNames=function(){return this.utf8}});var fS=g((pU,uS)=>{"use strict";uS.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var Nf=g((gU,cS)=>{"use strict";cS.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var Cf=g((_U,_S)=>{"use strict";var fF=L("util").inherits,cF=yl(),dS=Uo(),pS=Pf(),hS=fS(),Le=Nf(),gS=Wo(),q=_S.exports=function(t){if(!(this instanceof q))return new q(t);dS.call(this),this.platform=Le.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new pS,this.crc=0,this.time=-1,this.minver=Le.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};fF(q,dS);q.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};q.prototype.getComment=function(){return this.comment!==null?this.comment:""};q.prototype.getCompressedSize=function(){return this.csize};q.prototype.getCrc=function(){return this.crc};q.prototype.getExternalAttributes=function(){return this.exattr};q.prototype.getExtra=function(){return this.extra!==null?this.extra:Le.EMPTY};q.prototype.getGeneralPurposeBit=function(){return this.gpb};q.prototype.getInternalAttributes=function(){return this.inattr};q.prototype.getLastModifiedDate=function(){return this.getTime()};q.prototype.getLocalFileDataExtra=function(){return this.getExtra()};q.prototype.getMethod=function(){return this.method};q.prototype.getName=function(){return this.name};q.prototype.getPlatform=function(){return this.platform};q.prototype.getSize=function(){return this.size};q.prototype.getTime=function(){return this.time!==-1?gS.dosToDate(this.time):-1};q.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};q.prototype.getUnixMode=function(){return this.platform!==Le.PLATFORM_UNIX?0:this.getExternalAttributes()>>Le.SHORT_SHIFT&Le.SHORT_MASK};q.prototype.getVersionNeededToExtract=function(){return this.minver};q.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};q.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};q.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};q.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};q.prototype.setExtra=function(t){this.extra=t};q.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof pS))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};q.prototype.setInternalAttributes=function(t){this.inattr=t};q.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};q.prototype.setName=function(t,e=!1){t=cF(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};q.prototype.setPlatform=function(t){this.platform=t};q.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};q.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=gS.dateToDos(t,e)};q.prototype.setUnixMode=function(t){t|=this.isDirectory()?Le.S_IFDIR:Le.S_IFREG;var e=0;e|=t<<Le.SHORT_SHIFT|(this.isDirectory()?Le.S_DOS_D:Le.S_DOS_A),this.setExternalAttributes(e),this.mode=t&Le.MODE_MASK,this.platform=Le.PLATFORM_UNIX};q.prototype.setVersionNeededToExtract=function(t){this.minver=t};q.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};q.prototype.isUnixSymlink=function(){return(this.getUnixMode()&hS.FILE_TYPE_FLAG)===hS.LINK_FLAG};q.prototype.isZip64=function(){return this.csize>Le.ZIP64_MAGIC||this.size>Le.ZIP64_MAGIC}});var kf=g((mU,yS)=>{"use strict";var yU=L("stream").Stream,hF=dr().PassThrough,dF=ns(),pF=yS.exports={};pF.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(dF(t)&&!t._readableState){var e=new hF;return t.pipe(e),e}return t}});var Ff=g((bU,mS)=>{"use strict";var gF=L("util").inherits,_F=ns(),Mf=dr().Transform,yF=Uo(),mF=kf(),Me=mS.exports=function(t){if(!(this instanceof Me))return new Me(t);Mf.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};gF(Me,Mf);Me.prototype._appendBuffer=function(t,e,r){};Me.prototype._appendStream=function(t,e,r){};Me.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};Me.prototype._finish=function(t){};Me.prototype._normalizeEntry=function(t){};Me.prototype._transform=function(t,e,r){r(null,t)};Me.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof yF)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=mF.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(_F(e))this._appendStream(t,e,r);else{this._archive.processing=!1,r(new Error("input source must be valid Stream or Buffer instance"));return}return this};Me.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};Me.prototype.getBytesWritten=function(){return this.offset};Me.prototype.write=function(t,e){return t&&(this.offset+=t.length),Mf.prototype.write.call(this,t,e)}});var zo=g(qf=>{"use strict";var bS;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof qf=="object"?t(qf):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(bS={}):t(bS={})})(function(t){t.version="1.2.2";function e(){for(var x=0,O=new Array(256),w=0;w!=256;++w)x=w,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,O[w]=x;return typeof Int32Array<"u"?new Int32Array(O):O}var r=e();function i(x){var O=0,w=0,R=0,A=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(R=0;R!=256;++R)A[R]=x[R];for(R=0;R!=256;++R)for(w=x[R],O=256+R;O<4096;O+=256)w=A[O]=w>>>8^x[w&255];var N=[];for(R=1;R!=16;++R)N[R-1]=typeof Int32Array<"u"?A.subarray(R*256,R*256+256):A.slice(R*256,R*256+256);return N}var n=i(r),s=n[0],o=n[1],a=n[2],l=n[3],u=n[4],f=n[5],c=n[6],h=n[7],d=n[8],y=n[9],p=n[10],S=n[11],m=n[12],b=n[13],v=n[14];function E(x,O){for(var w=O^-1,R=0,A=x.length;R<A;)w=w>>>8^r[(w^x.charCodeAt(R++))&255];return~w}function T(x,O){for(var w=O^-1,R=x.length-15,A=0;A<R;)w=v[x[A++]^w&255]^b[x[A++]^w>>8&255]^m[x[A++]^w>>16&255]^S[x[A++]^w>>>24]^p[x[A++]]^y[x[A++]]^d[x[A++]]^h[x[A++]]^c[x[A++]]^f[x[A++]]^u[x[A++]]^l[x[A++]]^a[x[A++]]^o[x[A++]]^s[x[A++]]^r[x[A++]];for(R+=15;A<R;)w=w>>>8^r[(w^x[A++])&255];return~w}function D(x,O){for(var w=O^-1,R=0,A=x.length,N=0,z=0;R<A;)N=x.charCodeAt(R++),N<128?w=w>>>8^r[(w^N)&255]:N<2048?(w=w>>>8^r[(w^(192|N>>6&31))&255],w=w>>>8^r[(w^(128|N&63))&255]):N>=55296&&N<57344?(N=(N&1023)+64,z=x.charCodeAt(R++)&1023,w=w>>>8^r[(w^(240|N>>8&7))&255],w=w>>>8^r[(w^(128|N>>2&63))&255],w=w>>>8^r[(w^(128|z>>6&15|(N&3)<<4))&255],w=w>>>8^r[(w^(128|z&63))&255]):(w=w>>>8^r[(w^(224|N>>12&15))&255],w=w>>>8^r[(w^(128|N>>6&63))&255],w=w>>>8^r[(w^(128|N&63))&255]);return~w}t.table=r,t.bstr=E,t.buf=T,t.str=D})});var SS=g((SU,wS)=>{"use strict";var{Transform:bF}=dr(),wF=zo(),jf=class extends bF{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=wF.buf(e,this.checksum)>>>0,this.rawSize+=e.length),i(null,e)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};wS.exports=jf});var vS=g((EU,ES)=>{"use strict";var{DeflateRaw:SF}=L("zlib"),EF=zo(),Bf=class extends SF{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,r){return e&&(this.compressedSize+=e.length),super.push(e,r)}_transform(e,r,i){e&&(this.checksum=EF.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,r,i)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};ES.exports=Bf});var Uf=g((vU,xS)=>{"use strict";xS.exports={CRC32Stream:SS(),DeflateCRC32Stream:vS()}});var AS=g((AU,RS)=>{"use strict";var vF=L("util").inherits,xF=zo(),{CRC32Stream:TF}=Uf(),{DeflateCRC32Stream:RF}=Uf(),TS=Ff(),xU=Cf(),TU=Pf(),C=Nf(),RU=kf(),P=Wo(),_e=RS.exports=function(t){if(!(this instanceof _e))return new _e(t);t=this.options=this._defaults(t),TS.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};vF(_e,TS);_e.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};_e.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(C.METHOD_STORED);var i=t.getMethod();if(i===C.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(xF.buf(e)>>>0)),this._writeLocalFileHeader(t),i===C.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(i===C.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+i+" not implemented"));return}};_e.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var i=this._smartStream(t,r);e.once("error",function(n){i.emit("error",n),i.end()}),e.pipe(i)};_e.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=C.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};_e.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};_e.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(C.METHOD_DEFLATED),t.getMethod()===C.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};_e.prototype._smartStream=function(t,e){var r=t.getMethod()===C.METHOD_DEFLATED,i=r?new RF(this.options.zlib):new TF,n=null;function s(){var o=i.digest().readUInt32BE(0);t.setCrc(o),t.setSize(i.size()),t.setCompressedSize(i.size(!0)),this._afterAppend(t),e(n,t)}return i.once("end",s.bind(this)),i.once("error",function(o){n=o}),i.pipe(this,{end:!1}),i};_e.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=C.ZIP64_MAGIC_SHORT,e=C.ZIP64_MAGIC,r=C.ZIP64_MAGIC),this.write(P.getLongBytes(C.SIG_EOCD)),this.write(C.SHORT_ZERO),this.write(C.SHORT_ZERO),this.write(P.getShortBytes(t)),this.write(P.getShortBytes(t)),this.write(P.getLongBytes(e)),this.write(P.getLongBytes(r));var i=this.getComment(),n=Buffer.byteLength(i);this.write(P.getShortBytes(n)),this.write(i)};_e.prototype._writeCentralDirectoryZip64=function(){this.write(P.getLongBytes(C.SIG_ZIP64_EOCD)),this.write(P.getEightBytes(44)),this.write(P.getShortBytes(C.MIN_VERSION_ZIP64)),this.write(P.getShortBytes(C.MIN_VERSION_ZIP64)),this.write(C.LONG_ZERO),this.write(C.LONG_ZERO),this.write(P.getEightBytes(this._entries.length)),this.write(P.getEightBytes(this._entries.length)),this.write(P.getEightBytes(this._archive.centralLength)),this.write(P.getEightBytes(this._archive.centralOffset)),this.write(P.getLongBytes(C.SIG_ZIP64_EOCD_LOC)),this.write(C.LONG_ZERO),this.write(P.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(P.getLongBytes(1))};_e.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t._offsets.file,n=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||i>C.ZIP64_MAGIC){n=C.ZIP64_MAGIC,s=C.ZIP64_MAGIC,i=C.ZIP64_MAGIC,t.setVersionNeededToExtract(C.MIN_VERSION_ZIP64);var o=Buffer.concat([P.getShortBytes(C.ZIP64_EXTRA_ID),P.getShortBytes(24),P.getEightBytes(t.getSize()),P.getEightBytes(t.getCompressedSize()),P.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write(P.getLongBytes(C.SIG_CFH)),this.write(P.getShortBytes(t.getPlatform()<<8|C.VERSION_MADEBY)),this.write(P.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(P.getShortBytes(r)),this.write(P.getLongBytes(t.getTimeDos())),this.write(P.getLongBytes(t.getCrc())),this.write(P.getLongBytes(s)),this.write(P.getLongBytes(n));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write(P.getShortBytes(a.length)),this.write(P.getShortBytes(u.length)),this.write(P.getShortBytes(l.length)),this.write(C.SHORT_ZERO),this.write(P.getShortBytes(t.getInternalAttributes())),this.write(P.getLongBytes(t.getExternalAttributes())),this.write(P.getLongBytes(i)),this.write(a),this.write(u),this.write(l)};_e.prototype._writeDataDescriptor=function(t){this.write(P.getLongBytes(C.SIG_DD)),this.write(P.getLongBytes(t.getCrc())),t.isZip64()?(this.write(P.getEightBytes(t.getCompressedSize())),this.write(P.getEightBytes(t.getSize()))):(this.write(P.getLongBytes(t.getCompressedSize())),this.write(P.getLongBytes(t.getSize())))};_e.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t.getName(),n=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(i=Buffer.from(i)),t._offsets.file=this.offset,this.write(P.getLongBytes(C.SIG_LFH)),this.write(P.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(P.getShortBytes(r)),this.write(P.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(C.LONG_ZERO),this.write(C.LONG_ZERO),this.write(C.LONG_ZERO)):(this.write(P.getLongBytes(t.getCrc())),this.write(P.getLongBytes(t.getCompressedSize())),this.write(P.getLongBytes(t.getSize()))),this.write(P.getShortBytes(i.length)),this.write(P.getShortBytes(n.length)),this.write(i),this.write(n),t._offsets.contents=this.offset};_e.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};_e.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>C.ZIP64_MAGIC_SHORT||this._archive.centralLength>C.ZIP64_MAGIC||this._archive.centralOffset>C.ZIP64_MAGIC};_e.prototype.setComment=function(t){this._archive.comment=t}});var Wf=g((OU,OS)=>{"use strict";OS.exports={ArchiveEntry:Uo(),ZipArchiveEntry:Cf(),ArchiveOutputStream:Ff(),ZipArchiveOutputStream:AS()}});var DS=g((IU,IS)=>{"use strict";var AF=L("util").inherits,Gf=Wf().ZipArchiveOutputStream,OF=Wf().ZipArchiveEntry,zf=si(),oi=IS.exports=function(t){if(!(this instanceof oi))return new oi(t);t=this.options=t||{},t.zlib=t.zlib||{},Gf.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};AF(oi,Gf);oi.prototype._normalizeFileData=function(t){t=zf.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var e=t.type==="directory",r=t.type==="symlink";return t.name&&(t.name=zf.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=zf.dateify(t.date),t};oi.prototype.entry=function(t,e,r){if(typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){r(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var i=new OF(e.name);return i.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&i.setName(e.name,!0),e.store&&i.setMethod(0),e.comment.length>0&&i.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),i.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),Gf.prototype.entry.call(this,i,t,r)};oi.prototype.finalize=function(){this.finish()}});var PS=g((DU,LS)=>{"use strict";var IF=DS(),DF=si(),Ut=function(t){if(!(this instanceof Ut))return new Ut(t);t=this.options=DF.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new IF(t)};Ut.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};Ut.prototype.finalize=function(){this.engine.finalize()};Ut.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Ut.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Ut.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};LS.exports=Ut});var CS=g((LU,NS)=>{"use strict";NS.exports=L("events")});var MS=g((NU,kS)=>{"use strict";kS.exports=class{constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var $f=g((kU,qS)=>{"use strict";var FS=MS();qS.exports=class{constructor(e){this.hwm=e||16,this.head=new FS(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let r=this.head;this.head=r.next=new FS(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let r=this.tail.next;return this.tail.next=null,this.tail=r,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var Hf=g((MU,jS)=>{"use strict";function LF(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function PF(t){return Buffer.isEncoding(t)}function NF(t,e,r){return Buffer.alloc(t,e,r)}function CF(t){return Buffer.allocUnsafe(t)}function kF(t){return Buffer.allocUnsafeSlow(t)}function MF(t,e){return Buffer.byteLength(t,e)}function FF(t,e){return Buffer.compare(t,e)}function qF(t,e){return Buffer.concat(t,e)}function jF(t,e,r,i,n){return Y(t).copy(e,r,i,n)}function BF(t,e){return Y(t).equals(e)}function UF(t,e,r,i,n){return Y(t).fill(e,r,i,n)}function WF(t,e,r){return Buffer.from(t,e,r)}function zF(t,e,r,i){return Y(t).includes(e,r,i)}function GF(t,e,r,i){return Y(t).indexOf(e,r,i)}function $F(t,e,r,i){return Y(t).lastIndexOf(e,r,i)}function HF(t){return Y(t).swap16()}function VF(t){return Y(t).swap32()}function YF(t){return Y(t).swap64()}function Y(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function KF(t,e,r,i){return Y(t).toString(e,r,i)}function ZF(t,e,r,i,n){return Y(t).write(e,r,i,n)}function QF(t,e){return Y(t).readDoubleBE(e)}function XF(t,e){return Y(t).readDoubleLE(e)}function JF(t,e){return Y(t).readFloatBE(e)}function eq(t,e){return Y(t).readFloatLE(e)}function tq(t,e){return Y(t).readInt32BE(e)}function rq(t,e){return Y(t).readInt32LE(e)}function iq(t,e){return Y(t).readUInt32BE(e)}function nq(t,e){return Y(t).readUInt32LE(e)}function sq(t,e,r){return Y(t).writeDoubleBE(e,r)}function oq(t,e,r){return Y(t).writeDoubleLE(e,r)}function aq(t,e,r){return Y(t).writeFloatBE(e,r)}function lq(t,e,r){return Y(t).writeFloatLE(e,r)}function uq(t,e,r){return Y(t).writeInt32BE(e,r)}function fq(t,e,r){return Y(t).writeInt32LE(e,r)}function cq(t,e,r){return Y(t).writeUInt32BE(e,r)}function hq(t,e,r){return Y(t).writeUInt32LE(e,r)}jS.exports={isBuffer:LF,isEncoding:PF,alloc:NF,allocUnsafe:CF,allocUnsafeSlow:kF,byteLength:MF,compare:FF,concat:qF,copy:jF,equals:BF,fill:UF,from:WF,includes:zF,indexOf:GF,lastIndexOf:$F,swap16:HF,swap32:VF,swap64:YF,toBuffer:Y,toString:KF,write:ZF,readDoubleBE:QF,readDoubleLE:XF,readFloatBE:JF,readFloatLE:eq,readInt32BE:tq,readInt32LE:rq,readUInt32BE:iq,readUInt32LE:nq,writeDoubleBE:sq,writeDoubleLE:oq,writeFloatBE:aq,writeFloatLE:lq,writeInt32BE:uq,writeInt32LE:fq,writeUInt32BE:cq,writeUInt32LE:hq}});var US=g((qU,BS)=>{"use strict";var dq=Hf();BS.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return dq.toString(e,this.encoding)}flush(){return""}}});var $S=g((BU,GS)=>{"use strict";var WS=Hf();GS.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&zS(e,0)===0)return this.bytesSeen=pq(e),WS.toString(e,"utf8");let r="",i=0;if(this.bytesNeeded>0){for(;i<e.byteLength;){let o=e[i];if(o<this.lowerBoundary||o>this.upperBoundary){r+="\uFFFD",this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|o&63,this.bytesSeen++,i++,this.bytesSeen===this.bytesNeeded){r+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return r}let n=zS(e,i),s=e.byteLength-n;s>i&&(r+=WS.toString(e,"utf8",i,s));for(let o=s;o<e.byteLength;o++){let a=e[o];if(this.bytesNeeded===0){a<=127?(this.bytesSeen=0,r+=String.fromCharCode(a)):a>=194&&a<=223?(this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=a&31):a>=224&&a<=239?(a===224?this.lowerBoundary=160:a===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=a&15):a>=240&&a<=244?(a===240?this.lowerBoundary=144:a===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=a&7):(this.bytesSeen=1,r+="\uFFFD");continue}if(a<this.lowerBoundary||a>this.upperBoundary){r+="\uFFFD",o--,this._reset();continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|a&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(r+=String.fromCodePoint(this.codePoint),this._reset())}return r}flush(){let e=this.bytesNeeded>0?"\uFFFD":"";return this._reset(),e}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}};function zS(t,e){let r=t.byteLength;if(r<=e)return 0;let i=Math.max(e,r-4),n=r-1;for(;n>i&&(t[n]&192)===128;)n--;if(n<e)return 0;let s=t[n],o;if(s<=127)return 0;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 0;let a=r-n;return a<o?a:0}function pq(t){let e=t.byteLength;if(e===0)return 0;let r=t[e-1];if(r<=127)return 0;if((r&192)!==128)return 1;let i=Math.max(0,e-4),n=e-2;for(;n>=i&&(t[n]&192)===128;)n--;if(n<0)return 1;let s=t[n],o;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 1;if(e-n!==o)return 1;if(o>=3){let a=t[n+1];if(s===224&&a<160||s===237&&a>159||s===240&&a<144||s===244&&a>143)return 1}return 0}});var VS=g((WU,HS)=>{"use strict";var gq=US(),_q=$S();HS.exports=class{constructor(e="utf8"){switch(this.encoding=yq(e),this.encoding){case"utf8":this.decoder=new _q;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new gq(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return typeof e=="string"?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let r="";return e&&(r=this.push(e)),r+=this.decoder.flush(),r}};function yq(t){switch(t=t.toLowerCase(),t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:throw new Error("Unknown encoding: "+t)}}});var lc=g((zU,_E)=>{"use strict";var{EventEmitter:mq}=CS(),Ko=new Error("Stream was destroyed"),Vf=new Error("Premature close"),JS=$f(),bq=VS(),Yf=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,oe=(1<<29)-1,ct=1,tc=2,vt=4,Tn=8,eE=oe^ct,wq=oe^tc,Dn=16,ai=32,fi=64,zt=128,Ln=256,rc=512,Gt=1024,Kf=2048,ic=4096,nc=8192,Qe=16384,Wt=32768,Zo=65536,br=131072,tE=Ln|rc,Sq=Dn|Zo,Eq=fi|Dn,vq=ic|zt,sc=Ln|br,xq=oe^Dn,Tq=oe^fi,Rq=oe^(fi|Zo),YS=oe^Zo,Aq=oe^Ln,Oq=oe^(zt|nc),Iq=oe^Gt,KS=oe^tE,rE=oe^Wt,Dq=oe^ai,iE=oe^br,Lq=oe^sc,xt=1<<18,ui=2<<18,Pn=4<<18,wr=8<<18,Nn=16<<18,Ht=32<<18,Zf=64<<18,li=128<<18,oc=256<<18,$t=512<<18,Qo=1024<<18,Pq=oe^(xt|oc),nE=oe^Pn,Nq=oe^(xt|$t),Cq=oe^Nn,kq=oe^wr,sE=oe^li,Mq=oe^ui,oE=oe^Qo,Rn=Dn|xt,aE=oe^Rn,ac=Qe|Ht,ht=vt|Tn|tc,Fe=ht|ct,lE=ht|ac,Fq=nE&Tq,Xo=li|Wt,qq=Xo&aE,uE=Fe|qq,jq=Fe|Gt|Qe,ZS=Fe|Qe|zt,Bq=Fe|Gt|zt,Uq=Fe|ic|zt|nc,Wq=Fe|Dn|Gt|Qe|Zo|br,zq=ht|Gt|Qe,Gq=ai|Fe|Wt|fi,$q=Wt|ct,Hq=Fe|$t|Ht,Vq=wr|Nn,fE=wr|xt,Yq=wr|Nn|Fe|xt,QS=Fe|xt|wr|Qo,Kq=Pn|xt,Zq=xt|oc,Qq=Fe|$t|fE|Ht,Xq=Nn|ht|$t|Ht,Jq=ui|Fe|li|Pn,ej=$t|Ht|ht,Go=Symbol.asyncIterator||Symbol("asyncIterator"),$o=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new JS,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||gE,this.map=n||i,this.afterWrite=ij.bind(this),this.afterUpdateNextTick=oj.bind(this)}get ending(){return(this.stream._duplexState&$t)!==0}get ended(){return(this.stream._duplexState&Ht)!==0}push(e){return(this.stream._duplexState&ej)!==0?!1:(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=wr,!0):(this.stream._duplexState|=Vq,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=kq),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|$t)&nE}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&QS)===fE;)i.push(n._writableState.shift());if((n._duplexState&Fe)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=ui;do{for(;(e._duplexState&QS)===wr;){let r=this.shift();e._duplexState|=Zq,e._write(r,this.afterWrite)}(e._duplexState&Kq)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=Mq}updateNonPrimary(){let e=this.stream;if((e._duplexState&Qq)===$t){e._duplexState=e._duplexState|xt,e._final(rj.bind(this));return}if((e._duplexState&ht)===vt){(e._duplexState&Xo)===0&&(e._duplexState|=Rn,e._destroy(cE.bind(this)));return}(e._duplexState&uE)===ct&&(e._duplexState=(e._duplexState|Rn)&eE,e._open(hE.bind(this)))}continueUpdate(){return(this.stream._duplexState&li)===0?!1:(this.stream._duplexState&=sE,!0)}updateCallback(){(this.stream._duplexState&Jq)===Pn?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&li)===0&&(this.stream._duplexState|=li,(this.stream._duplexState&ui)===0&&Yf(this.afterUpdateNextTick))}},Qf=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new JS,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||gE,this.map=n||i,this.pipeTo=null,this.afterRead=nj.bind(this),this.afterUpdateNextTick=sj.bind(this)}get ending(){return(this.stream._duplexState&Gt)!==0}get ended(){return(this.stream._duplexState&Qe)!==0}pipe(e,r){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=rc,this.pipeTo=e,this.pipeline=new Jf(this.stream,e,r),r&&this.stream.on("error",XS),In(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",XS),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let i=this.pipeline.done.bind(this.pipeline,e),n=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",i),e.on("close",n),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",tj.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|Gt)&Rq,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=YS,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|zt)&YS,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=Oq),e}unshift(e){let r=[this.map!==null?this.map(e):e];for(;this.buffered>0;)r.push(this.shift());for(let i=0;i<r.length-1;i++){let n=r[i];this.buffered+=this.byteLength(n),this.queue.push(n)}this.push(r[r.length-1])}read(){let e=this.stream;if((e._duplexState&ZS)===zt){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=KS),(e._duplexState&Kf)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=br,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&ZS)===zt&&(e._duplexState&tE)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=KS),(e._duplexState&Kf)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=ai;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&Wq)===br;)e._duplexState|=Sq,e._read(this.afterRead),this.drain();(e._duplexState&Uq)===vq&&(e._duplexState|=nc,e.emit("readable")),(e._duplexState&Eq)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=Dq}updateNonPrimary(){let e=this.stream;if((e._duplexState&Bq)===Gt&&(e._duplexState=(e._duplexState|Qe)&Iq,e.emit("end"),(e._duplexState&lE)===ac&&(e._duplexState|=vt),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&ht)===vt){(e._duplexState&Xo)===0&&(e._duplexState|=Rn,e._destroy(cE.bind(this)));return}(e._duplexState&uE)===ct&&(e._duplexState=(e._duplexState|Rn)&eE,e._open(hE.bind(this)))}continueUpdate(){return(this.stream._duplexState&Wt)===0?!1:(this.stream._duplexState&=rE,!0)}updateCallback(){(this.stream._duplexState&Gq)===fi?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&$q)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&ai)===0&&Yf(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&Wt)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&ai)===0&&Yf(this.afterUpdateNextTick))}},Xf=class{constructor(e){this.data=null,this.afterTransform=lj.bind(e),this.afterFinal=null}},Jf=class{constructor(e,r,i){this.from=e,this.to=r,this.afterPipe=i,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,r){if(r&&(this.error=r),e===this.to&&(this.to=null,this.from!==null)){((this.from._duplexState&Qe)===0||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&Qe)===0&&this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function tj(){this.stream._duplexState|=rc,this.updateCallback()}function rj(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ht)===0&&(e._duplexState|=Ht,e.emit("finish")),(e._duplexState&lE)===ac&&(e._duplexState|=vt),e._duplexState&=Nq,(e._duplexState&ui)===0?this.update():this.updateNextTick()}function cE(t){let e=this.stream;!t&&this.error!==Ko&&(t=this.error),t&&e.emit("error",t),e._duplexState|=Tn,e.emit("close");let r=e._readableState,i=e._writableState;if(r!==null&&r.pipeline!==null&&r.pipeline.done(e,t),i!==null){for(;i.drains!==null&&i.drains.length>0;)i.drains.shift().resolve(!1);i.pipeline!==null&&i.pipeline.done(e,t)}}function ij(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=Pq,this.drains!==null&&aj(this.drains),(e._duplexState&Yq)===Nn&&(e._duplexState&=Cq,(e._duplexState&Zf)===Zf&&e.emit("drain")),this.updateCallback()}function nj(t){t&&this.stream.destroy(t),this.stream._duplexState&=xq,this.readAhead===!1&&(this.stream._duplexState&Ln)===0&&(this.stream._duplexState&=iE),this.updateCallback()}function sj(){(this.stream._duplexState&ai)===0&&(this.stream._duplexState&=rE,this.update())}function oj(){(this.stream._duplexState&ui)===0&&(this.stream._duplexState&=sE,this.update())}function aj(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function hE(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&vt)===0&&((e._duplexState&jq)===0&&(e._duplexState|=fi),(e._duplexState&Hq)===0&&(e._duplexState|=Pn),e.emit("open")),e._duplexState&=aE,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function lj(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function uj(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=Kf|sc,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=ic,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=Zf,this._writableState.updateNextTick())}var An=class extends mq{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",Sj.bind(this))),this.on("newListener",uj)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&Tn)!==0}get destroying(){return(this._duplexState&ht)!==0}destroy(e){(this._duplexState&ht)===0&&(e||(e=Ko),this._duplexState=(this._duplexState|vt)&Fq,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=tc,this._predestroy(),this._duplexState&=wq,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},Ho=class t extends An{constructor(e){super(e),this._duplexState|=ct|Ht|br,this._readableState=new Qf(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=iE),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let r=new bq(e),i=this._readableState.map||hj;return this._readableState.map=n,this;function n(s){let o=r.push(s);return o===""&&(s.byteLength!==0||r.remaining>0)?null:i(o)}}_read(e){e(null)}pipe(e,r){return this._readableState.updateNextTick(),this._readableState.pipe(e,r),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=sc,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?Lq:Aq,this}static _fromAsyncIterator(e,r){let i,n=new t({...r,read(o){e.next().then(s).then(o.bind(null,null)).catch(o)},predestroy(){i=e.return()},destroy(o){if(!i)return o(null);i.then(o.bind(null,null)).catch(o)}});return n;function s(o){o.done?n.push(null):n.push(o.value)}}static from(e,r){if(mj(e))return e;if(e[Go])return this._fromAsyncIterator(e[Go](),r);Array.isArray(e)||(e=e===void 0?[]:[e]);let i=0;return new t({...r,read(n){this.push(i===e.length?null:e[i++]),n(null)}})}static isBackpressured(e){return(e._duplexState&zq)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&Ln)===0}[Go](){let e=this,r=null,i=null,n=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",o),{[Go](){return this},next(){return new Promise(function(u,f){i=u,n=f;let c=e.read();c!==null?a(c):(e._duplexState&Tn)!==0&&a(null)})},return(){return l(null)},throw(u){return l(u)}};function s(){i!==null&&a(e.read())}function o(){i!==null&&a(null)}function a(u){n!==null&&(r?n(r):u===null&&(e._duplexState&Qe)===0?n(Ko):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,c)=>{if(e._duplexState&Tn)return f({value:void 0,done:!0});e.once("close",function(){u?c(u):f({value:void 0,done:!0})})})}}},Vo=class extends An{constructor(e){super(e),this._duplexState|=ct|Qe,this._writableState=new $o(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=Qo}uncork(){this._duplexState&=oE,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&Xq)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(Ej(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&oc?1:0);return n===0?Promise.resolve(!0):(r.drains===null&&(r.drains=[]),new Promise(s=>{r.drains.push({writes:n,resolve:s})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},On=class extends Ho{constructor(e){super(e),this._duplexState=ct|this._duplexState&br,this._writableState=new $o(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=Qo}uncork(){this._duplexState&=oE,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Yo=class extends On{constructor(e){super(e),this._transformState=new Xf(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,r){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let r=this._transformState.data;this._transformState.data=null,e(null),this._transform(r,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,r){r(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(fj.bind(this))}},ec=class extends Yo{};function fj(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function cj(...t){return new Promise((e,r)=>dE(...t,i=>{if(i)return r(i);e()}))}function dE(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],i=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let n=r[0],s=null,o=null;for(let u=1;u<r.length;u++)s=r[u],In(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=In(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",c=>{o===null&&(o=c)}),s.on("finish",()=>{u=!0,f||i(o)}),f&&s.on("close",()=>i(o||(u?null:Vf)))}return s;function a(u,f,c,h){u.on("error",h),u.on("close",d);function d(){if(f&&u._readableState&&!u._readableState.ended||c&&u._writableState&&!u._writableState.ended)return h(Vf)}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function hj(t){return t}function pE(t){return!!t._readableState||!!t._writableState}function In(t){return typeof t._duplexState=="number"&&pE(t)}function dj(t){return!!t._readableState&&t._readableState.ending}function pj(t){return!!t._readableState&&t._readableState.ended}function gj(t){return!!t._writableState&&t._writableState.ending}function _j(t){return!!t._writableState&&t._writableState.ended}function yj(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&r===Ko?null:r}function mj(t){return In(t)&&t.readable}function bj(t){return(t._duplexState&ct)!==ct||(t._duplexState&vt)===vt||(t._duplexState&Xo)!==0}function wj(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function gE(t){return wj(t)?t.byteLength:1024}function XS(){}function Sj(){this.destroy(new Error("Stream aborted."))}function Ej(t){return t._writev!==Vo.prototype._writev&&t._writev!==On.prototype._writev}_E.exports={pipeline:dE,pipelinePromise:cj,isStream:pE,isStreamx:In,isEnding:dj,isEnded:pj,isFinishing:gj,isFinished:_j,isDisturbed:bj,getStreamError:yj,Stream:An,Writable:Vo,Readable:Ho,Duplex:On,Transform:Yo,PassThrough:ec}});var Jo=g((GU,yE)=>{"use strict";function vj(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function xj(t){return Buffer.isEncoding(t)}function Tj(t,e,r){return Buffer.alloc(t,e,r)}function Rj(t){return Buffer.allocUnsafe(t)}function Aj(t){return Buffer.allocUnsafeSlow(t)}function Oj(t,e){return Buffer.byteLength(t,e)}function Ij(t,e){return Buffer.compare(t,e)}function Dj(t,e){return Buffer.concat(t,e)}function Lj(t,e,r,i,n){return K(t).copy(e,r,i,n)}function Pj(t,e){return K(t).equals(e)}function Nj(t,e,r,i,n){return K(t).fill(e,r,i,n)}function Cj(t,e,r){return Buffer.from(t,e,r)}function kj(t,e,r,i){return K(t).includes(e,r,i)}function Mj(t,e,r,i){return K(t).indexOf(e,r,i)}function Fj(t,e,r,i){return K(t).lastIndexOf(e,r,i)}function qj(t){return K(t).swap16()}function jj(t){return K(t).swap32()}function Bj(t){return K(t).swap64()}function K(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Uj(t,e,r,i){return K(t).toString(e,r,i)}function Wj(t,e,r,i,n){return K(t).write(e,r,i,n)}function zj(t,e){return K(t).readDoubleBE(e)}function Gj(t,e){return K(t).readDoubleLE(e)}function $j(t,e){return K(t).readFloatBE(e)}function Hj(t,e){return K(t).readFloatLE(e)}function Vj(t,e){return K(t).readInt32BE(e)}function Yj(t,e){return K(t).readInt32LE(e)}function Kj(t,e){return K(t).readUInt32BE(e)}function Zj(t,e){return K(t).readUInt32LE(e)}function Qj(t,e,r){return K(t).writeDoubleBE(e,r)}function Xj(t,e,r){return K(t).writeDoubleLE(e,r)}function Jj(t,e,r){return K(t).writeFloatBE(e,r)}function eB(t,e,r){return K(t).writeFloatLE(e,r)}function tB(t,e,r){return K(t).writeInt32BE(e,r)}function rB(t,e,r){return K(t).writeInt32LE(e,r)}function iB(t,e,r){return K(t).writeUInt32BE(e,r)}function nB(t,e,r){return K(t).writeUInt32LE(e,r)}yE.exports={isBuffer:vj,isEncoding:xj,alloc:Tj,allocUnsafe:Rj,allocUnsafeSlow:Aj,byteLength:Oj,compare:Ij,concat:Dj,copy:Lj,equals:Pj,fill:Nj,from:Cj,includes:kj,indexOf:Mj,lastIndexOf:Fj,swap16:qj,swap32:jj,swap64:Bj,toBuffer:K,toString:Uj,write:Wj,readDoubleBE:zj,readDoubleLE:Gj,readFloatBE:$j,readFloatLE:Hj,readInt32BE:Vj,readInt32LE:Yj,readUInt32BE:Kj,readUInt32LE:Zj,writeDoubleBE:Qj,writeDoubleLE:Xj,writeFloatBE:Jj,writeFloatLE:eB,writeInt32BE:tB,writeInt32LE:rB,writeUInt32BE:iB,writeUInt32LE:nB}});var cc=g(hi=>{"use strict";var W=Jo(),sB="0000000000000000000",oB="7777777777777777777",ea=48,mE=W.from([117,115,116,97,114,0]),aB=W.from([ea,ea]),lB=W.from([117,115,116,97,114,32]),uB=W.from([32,0]),fB=4095,Cn=257,fc=263;hi.decodeLongPath=function(e,r){return ci(e,0,e.length,r)};hi.encodePax=function(e){let r="";e.name&&(r+=uc(" path="+e.name+`
|
|
9
9
|
`)),e.linkname&&(r+=uc(" linkpath="+e.linkname+`
|
|
10
10
|
`));let i=e.pax;if(i)for(let n in i)r+=uc(" "+n+"="+i[n]+`
|
|
11
|
-
`);return W.from(r)};hi.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(W.toString(e.subarray(0,i)),10);if(!n)return r;let s=W.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};hi.encode=function(e){let r=W.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),W.byteLength(i)!==i.length)return null;for(;W.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return W.byteLength(i)>100||W.byteLength(n)>155||e.linkname&&W.byteLength(e.linkname)>100?null:(W.write(r,i),W.write(r,Yt(e.mode&fB,6),100),W.write(r,Yt(e.uid,6),108),W.write(r,Yt(e.gid,6),116),yB(e.size,r,124),W.write(r,Yt(e.mtime.getTime()/1e3|0,11),136),r[156]=ea+gB(e.type),e.linkname&&W.write(r,e.linkname,157),W.copy(mE,r,Cn),W.copy(aB,r,fc),e.uname&&W.write(r,e.uname,265),e.gname&&W.write(r,e.gname,297),W.write(r,Yt(e.devmajor||0,6),329),W.write(r,Yt(e.devminor||0,6),337),n&&W.write(r,n,345),W.write(r,Yt(wE(r),6),148),r)};hi.decode=function(e,r,i){let n=e[156]===0?0:e[156]-ea,s=ci(e,0,100,r),o=Vt(e,100,8),a=Vt(e,108,8),l=Vt(e,116,8),u=Vt(e,124,12),f=Vt(e,136,12),c=pB(n),h=e[157]===0?null:ci(e,157,100,r),d=ci(e,265,32),m=ci(e,297,32),p=Vt(e,329,8),S=Vt(e,337,8),y=wE(e);if(y===256)return null;if(y!==Vt(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(cB(e))e[345]&&(s=ci(e,345,155,r)+"/"+s);else if(!hB(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:o,uid:a,gid:l,size:u,mtime:new Date(1e3*f),type:c,linkname:h,uname:d,gname:m,devmajor:p,devminor:S,pax:null}};function cB(t){return W.equals(mE,t.subarray(Cn,Cn+6))}function hB(t){return W.equals(lB,t.subarray(Cn,Cn+6))&&W.equals(uB,t.subarray(fc,fc+2))}function dB(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function pB(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function gB(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function bE(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function wE(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Yt(t,e){return t=t.toString(8),t.length>e?oB.slice(0,e)+" ":sB.slice(0,e-t.length)+t+" "}function _B(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function yB(t,e,r){t.toString(8).length>11?_B(t,e,r):W.write(e,Yt(t,11),r)}function mB(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function Vt(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return mB(t);{for(;e<t.length&&t[e]===32;)e++;let i=dB(bE(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(W.toString(t.subarray(e,i)),8)}}function ci(t,e,r,i){return W.toString(t.subarray(e,bE(t,0,e,e+r)),i)}function uc(t){let e=W.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var TE=g((HU,xE)=>{"use strict";var{Writable:bB,Readable:wB,getStreamError:SE}=lc(),SB=$f(),EE=Jo(),di=cc(),EB=EE.alloc(0),dc=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new SB,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return EB;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return EE.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},pc=class extends wB{constructor(e,r,i){super(),this.header=r,this.offset=i,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(SE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=vE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},gc=class extends bB{constructor(e){super(e),e||(e={}),this._buffer=new dc,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=hc,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=di.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=di.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=di.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=di.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?di.decodePax(e):Object.assign({},this._paxGlobal,di.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=vE(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(r){return this._continueWrite(r),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let r=this._stream.push(e);return this._missing===0?(this._stream.push(null),r&&this._stream._detach(),r&&this._locked===!1):r}_createStream(){return new pc(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let r=this._callback;this._callback=hc,r(e)}_write(e,r){this._callback=r,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(SE(this)),e(null)}[Symbol.asyncIterator](){let e=null,r=null,i=null,n=null,s=null,o=this;return this.on("entry",u),this.on("error",h=>{e=h}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return c(null)},throw(h){return c(h)}};function a(h){if(!s)return;let d=s;s=null,d(h)}function l(h,d){if(e)return d(e);if(n){h({value:n,done:!1}),n=null;return}r=h,i=d,a(null),o._finished&&r&&(r({value:void 0,done:!0}),r=i=null)}function u(h,d,m){s=m,d.on("error",hc),r?(r({value:d,done:!1}),r=i=null):n=d}function f(){a(e),r&&(e?i(e):r({value:void 0,done:!0}),r=i=null)}function c(h){return o.destroy(h),a(h),new Promise((d,m)=>{if(o.destroyed)return d({value:void 0,done:!0});o.once("close",function(){h?m(h):d({value:void 0,done:!0})})})}}};xE.exports=function(e){return new gc(e)};function hc(){}function vE(t){return t&=511,t&&512-t}});var AE=g((VU,_c)=>{"use strict";var RE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{_c.exports=P("fs").constants||RE}catch{_c.exports=RE}});var LE=g((YU,PE)=>{"use strict";var{Readable:vB,Writable:xB,getStreamError:OE}=lc(),Sr=Jo(),pi=AE(),ta=cc(),TB=493,RB=420,IE=Sr.alloc(1024),mc=class extends xB{constructor(e,r,i){super({mapWritable:OB,eagerOpen:!0}),this.written=0,this.header=r,this._callback=i,this._linkname=null,this._isLinkname=r.type==="symlink"&&!r.linkname,this._isVoid=r.type!=="file"&&r.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let r=this._callback;this._callback=null,r(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,r){if(this._isLinkname)return this._linkname=this._linkname?Sr.concat([this._linkname,e]):e,r(null);if(this._isVoid)return e.byteLength>0?r(new Error("No body allowed for this entry")):r();if(this.written+=e.byteLength,this._pack.push(e))return r();this._pack._drain=r}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?Sr.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),DE(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return OE(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},bc=class extends vB{constructor(e){super(e),this._drain=yc,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,r,i){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof r=="function"&&(i=r,r=null),i||(i=yc),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=AB(e.mode)),e.mode||(e.mode=e.type==="directory"?TB:RB),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=Sr.from(r));let n=new mc(this,e,i);return Sr.isBuffer(r)?(e.size=r.byteLength,n.write(r),n.end(),n):(n._isVoid,n)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(IE),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let r=ta.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=ta.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),i={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:r.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(ta.encode(i)),this.push(r),DE(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(ta.encode(i))}_doDrain(){let e=this._drain;this._drain=yc,e()}_predestroy(){let e=OE(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let r=this._pending.shift();r.destroy(e),r._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};PE.exports=function(e){return new bc(e)};function AB(t){switch(t&pi.S_IFMT){case pi.S_IFBLK:return"block-device";case pi.S_IFCHR:return"character-device";case pi.S_IFDIR:return"directory";case pi.S_IFIFO:return"fifo";case pi.S_IFLNK:return"symlink"}return"file"}function yc(){}function DE(t,e){e&=511,e&&t.push(IE.subarray(0,512-e))}function OB(t){return Sr.isBuffer(t)?t:Sr.from(t)}});var NE=g(wc=>{"use strict";wc.extract=TE();wc.pack=LE()});var ME=g((ZU,kE)=>{"use strict";var IB=P("zlib"),DB=NE(),CE=si(),Tt=function(t){if(!(this instanceof Tt))return new Tt(t);t=this.options=CE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=DB.pack(t),this.compressor=!1,t.gzip&&(this.compressor=IB.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Tt.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Tt.prototype.append=function(t,e,r){var i=this;e.mtime=e.date;function n(o,a){if(o){r(o);return}i.engine.entry(e,a,function(l){r(l,e)})}if(e.sourceType==="buffer")n(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=i.engine.entry(e,function(o){r(o,e)});t.pipe(s)}else e.sourceType==="stream"&&CE.collectStream(t,n)};Tt.prototype.finalize=function(){this.engine.finalize()};Tt.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tt.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};Tt.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};kE.exports=Tt});var jE=g((QU,qE)=>{"use strict";function PB(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var LB=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function FE(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function NB(t){let e=FE(4);return e.writeInt32BE(t,0),e}function Sc(t,e){t=FE(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=LB[(r^t[i])&255]^r>>>8;return r^-1}function Ec(){return NB(Sc.apply(null,arguments))}Ec.signed=function(){return Sc.apply(null,arguments)};Ec.unsigned=function(){return Sc.apply(null,arguments)>>>0};var CB=Ec,kB=PB(CB);qE.exports=kB});var zE=g((XU,WE)=>{"use strict";var MB=P("util").inherits,BE=dr().Transform,FB=jE(),UE=si(),Kt=function(t){if(!(this instanceof Kt))return new Kt(t);t=this.options=UE.defaults(t,{}),BE.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};MB(Kt,BE);Kt.prototype._transform=function(t,e,r){r(null,t)};Kt.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};Kt.prototype.append=function(t,e,r){var i=this;e.crc32=0;function n(s,o){if(s){r(s);return}e.size=o.length||0,e.crc32=FB.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&UE.collectStream(t,n)};Kt.prototype.finalize=function(){this._writeStringified(),this.end()};WE.exports=Kt});var $E=g((JU,GE)=>{"use strict";var qB=eS(),kn={},Zt=function(t,e){return Zt.create(t,e)};Zt.create=function(t,e){if(kn[t]){var r=new qB(t,e);return r.setFormat(t),r.setModule(new kn[t](e)),r}else throw new Error("create("+t+"): format not registered")};Zt.registerFormat=function(t,e){if(kn[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");kn[t]=e};Zt.isRegisteredFormat=function(t){return!!kn[t]};Zt.registerFormat("zip",LS());Zt.registerFormat("tar",ME());Zt.registerFormat("json",zE());GE.exports=Zt});import{readFileSync as $B,existsSync as KE,readdirSync as HB,mkdirSync as VB,writeFileSync as xc}from"fs";import{unlink as YB}from"fs/promises";import{join as Qt}from"path";import{randomUUID as gi}from"crypto";function Lc(t){return t?t.includes(`
|
|
11
|
+
`);return W.from(r)};hi.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(W.toString(e.subarray(0,i)),10);if(!n)return r;let s=W.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};hi.encode=function(e){let r=W.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),W.byteLength(i)!==i.length)return null;for(;W.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return W.byteLength(i)>100||W.byteLength(n)>155||e.linkname&&W.byteLength(e.linkname)>100?null:(W.write(r,i),W.write(r,Yt(e.mode&fB,6),100),W.write(r,Yt(e.uid,6),108),W.write(r,Yt(e.gid,6),116),yB(e.size,r,124),W.write(r,Yt(e.mtime.getTime()/1e3|0,11),136),r[156]=ea+gB(e.type),e.linkname&&W.write(r,e.linkname,157),W.copy(mE,r,Cn),W.copy(aB,r,fc),e.uname&&W.write(r,e.uname,265),e.gname&&W.write(r,e.gname,297),W.write(r,Yt(e.devmajor||0,6),329),W.write(r,Yt(e.devminor||0,6),337),n&&W.write(r,n,345),W.write(r,Yt(wE(r),6),148),r)};hi.decode=function(e,r,i){let n=e[156]===0?0:e[156]-ea,s=ci(e,0,100,r),o=Vt(e,100,8),a=Vt(e,108,8),l=Vt(e,116,8),u=Vt(e,124,12),f=Vt(e,136,12),c=pB(n),h=e[157]===0?null:ci(e,157,100,r),d=ci(e,265,32),y=ci(e,297,32),p=Vt(e,329,8),S=Vt(e,337,8),m=wE(e);if(m===256)return null;if(m!==Vt(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(cB(e))e[345]&&(s=ci(e,345,155,r)+"/"+s);else if(!hB(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:o,uid:a,gid:l,size:u,mtime:new Date(1e3*f),type:c,linkname:h,uname:d,gname:y,devmajor:p,devminor:S,pax:null}};function cB(t){return W.equals(mE,t.subarray(Cn,Cn+6))}function hB(t){return W.equals(lB,t.subarray(Cn,Cn+6))&&W.equals(uB,t.subarray(fc,fc+2))}function dB(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function pB(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function gB(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function bE(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function wE(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Yt(t,e){return t=t.toString(8),t.length>e?oB.slice(0,e)+" ":sB.slice(0,e-t.length)+t+" "}function _B(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function yB(t,e,r){t.toString(8).length>11?_B(t,e,r):W.write(e,Yt(t,11),r)}function mB(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function Vt(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return mB(t);{for(;e<t.length&&t[e]===32;)e++;let i=dB(bE(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(W.toString(t.subarray(e,i)),8)}}function ci(t,e,r,i){return W.toString(t.subarray(e,bE(t,0,e,e+r)),i)}function uc(t){let e=W.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var TE=g((HU,xE)=>{"use strict";var{Writable:bB,Readable:wB,getStreamError:SE}=lc(),SB=$f(),EE=Jo(),di=cc(),EB=EE.alloc(0),dc=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new SB,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return EB;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return EE.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},pc=class extends wB{constructor(e,r,i){super(),this.header=r,this.offset=i,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(SE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=vE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},gc=class extends bB{constructor(e){super(e),e||(e={}),this._buffer=new dc,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=hc,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=di.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=di.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=di.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=di.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?di.decodePax(e):Object.assign({},this._paxGlobal,di.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=vE(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(r){return this._continueWrite(r),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let r=this._stream.push(e);return this._missing===0?(this._stream.push(null),r&&this._stream._detach(),r&&this._locked===!1):r}_createStream(){return new pc(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let r=this._callback;this._callback=hc,r(e)}_write(e,r){this._callback=r,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(SE(this)),e(null)}[Symbol.asyncIterator](){let e=null,r=null,i=null,n=null,s=null,o=this;return this.on("entry",u),this.on("error",h=>{e=h}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return c(null)},throw(h){return c(h)}};function a(h){if(!s)return;let d=s;s=null,d(h)}function l(h,d){if(e)return d(e);if(n){h({value:n,done:!1}),n=null;return}r=h,i=d,a(null),o._finished&&r&&(r({value:void 0,done:!0}),r=i=null)}function u(h,d,y){s=y,d.on("error",hc),r?(r({value:d,done:!1}),r=i=null):n=d}function f(){a(e),r&&(e?i(e):r({value:void 0,done:!0}),r=i=null)}function c(h){return o.destroy(h),a(h),new Promise((d,y)=>{if(o.destroyed)return d({value:void 0,done:!0});o.once("close",function(){h?y(h):d({value:void 0,done:!0})})})}}};xE.exports=function(e){return new gc(e)};function hc(){}function vE(t){return t&=511,t&&512-t}});var AE=g((VU,_c)=>{"use strict";var RE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{_c.exports=L("fs").constants||RE}catch{_c.exports=RE}});var PE=g((YU,LE)=>{"use strict";var{Readable:vB,Writable:xB,getStreamError:OE}=lc(),Sr=Jo(),pi=AE(),ta=cc(),TB=493,RB=420,IE=Sr.alloc(1024),mc=class extends xB{constructor(e,r,i){super({mapWritable:OB,eagerOpen:!0}),this.written=0,this.header=r,this._callback=i,this._linkname=null,this._isLinkname=r.type==="symlink"&&!r.linkname,this._isVoid=r.type!=="file"&&r.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let r=this._callback;this._callback=null,r(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,r){if(this._isLinkname)return this._linkname=this._linkname?Sr.concat([this._linkname,e]):e,r(null);if(this._isVoid)return e.byteLength>0?r(new Error("No body allowed for this entry")):r();if(this.written+=e.byteLength,this._pack.push(e))return r();this._pack._drain=r}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?Sr.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),DE(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return OE(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},bc=class extends vB{constructor(e){super(e),this._drain=yc,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,r,i){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof r=="function"&&(i=r,r=null),i||(i=yc),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=AB(e.mode)),e.mode||(e.mode=e.type==="directory"?TB:RB),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=Sr.from(r));let n=new mc(this,e,i);return Sr.isBuffer(r)?(e.size=r.byteLength,n.write(r),n.end(),n):(n._isVoid,n)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(IE),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let r=ta.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=ta.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),i={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:r.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(ta.encode(i)),this.push(r),DE(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(ta.encode(i))}_doDrain(){let e=this._drain;this._drain=yc,e()}_predestroy(){let e=OE(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let r=this._pending.shift();r.destroy(e),r._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};LE.exports=function(e){return new bc(e)};function AB(t){switch(t&pi.S_IFMT){case pi.S_IFBLK:return"block-device";case pi.S_IFCHR:return"character-device";case pi.S_IFDIR:return"directory";case pi.S_IFIFO:return"fifo";case pi.S_IFLNK:return"symlink"}return"file"}function yc(){}function DE(t,e){e&=511,e&&t.push(IE.subarray(0,512-e))}function OB(t){return Sr.isBuffer(t)?t:Sr.from(t)}});var NE=g(wc=>{"use strict";wc.extract=TE();wc.pack=PE()});var ME=g((ZU,kE)=>{"use strict";var IB=L("zlib"),DB=NE(),CE=si(),Tt=function(t){if(!(this instanceof Tt))return new Tt(t);t=this.options=CE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=DB.pack(t),this.compressor=!1,t.gzip&&(this.compressor=IB.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Tt.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Tt.prototype.append=function(t,e,r){var i=this;e.mtime=e.date;function n(o,a){if(o){r(o);return}i.engine.entry(e,a,function(l){r(l,e)})}if(e.sourceType==="buffer")n(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=i.engine.entry(e,function(o){r(o,e)});t.pipe(s)}else e.sourceType==="stream"&&CE.collectStream(t,n)};Tt.prototype.finalize=function(){this.engine.finalize()};Tt.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tt.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};Tt.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};kE.exports=Tt});var jE=g((QU,qE)=>{"use strict";function LB(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var PB=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function FE(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function NB(t){let e=FE(4);return e.writeInt32BE(t,0),e}function Sc(t,e){t=FE(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=PB[(r^t[i])&255]^r>>>8;return r^-1}function Ec(){return NB(Sc.apply(null,arguments))}Ec.signed=function(){return Sc.apply(null,arguments)};Ec.unsigned=function(){return Sc.apply(null,arguments)>>>0};var CB=Ec,kB=LB(CB);qE.exports=kB});var zE=g((XU,WE)=>{"use strict";var MB=L("util").inherits,BE=dr().Transform,FB=jE(),UE=si(),Kt=function(t){if(!(this instanceof Kt))return new Kt(t);t=this.options=UE.defaults(t,{}),BE.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};MB(Kt,BE);Kt.prototype._transform=function(t,e,r){r(null,t)};Kt.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};Kt.prototype.append=function(t,e,r){var i=this;e.crc32=0;function n(s,o){if(s){r(s);return}e.size=o.length||0,e.crc32=FB.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&UE.collectStream(t,n)};Kt.prototype.finalize=function(){this._writeStringified(),this.end()};WE.exports=Kt});var $E=g((JU,GE)=>{"use strict";var qB=eS(),kn={},Zt=function(t,e){return Zt.create(t,e)};Zt.create=function(t,e){if(kn[t]){var r=new qB(t,e);return r.setFormat(t),r.setModule(new kn[t](e)),r}else throw new Error("create("+t+"): format not registered")};Zt.registerFormat=function(t,e){if(kn[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");kn[t]=e};Zt.isRegisteredFormat=function(t){return!!kn[t]};Zt.registerFormat("zip",PS());Zt.registerFormat("tar",ME());Zt.registerFormat("json",zE());GE.exports=Zt});import{readFileSync as $B,existsSync as KE,readdirSync as HB,mkdirSync as VB,writeFileSync as xc}from"fs";import{unlink as YB}from"fs/promises";import{join as Qt}from"path";import{randomUUID as gi}from"crypto";function Pc(t){return t?t.includes(`
|
|
12
12
|
`)?t.split(`
|
|
13
|
-
`).map(e=>e.trim()).filter(Boolean):t.split(". ").map(e=>e.trim()).filter(Boolean).map(e=>e.endsWith(".")?e:e+"."):[]}function Mn(t,e){return!t||!e?t:t.replace(/\{\{(.+?)\}\}/g,(r,i)=>{let n=e[i];return n?n.value:r}).replace(/\$\{(.+?)\}/g,(r,i)=>{let n=e[i];return n?n.value:r})}var tv={click:"CLICK",double_click:"CLICK",type:"TYPE",fill:"TYPE",select:"SELECT",hover:"HOVER",drag:"DRAG_DROP",upload_files:"UPLOAD",navigate:"OPEN",go_back:"NAVIGATE",go_forward:"NAVIGATE",refresh:"REFRESH",press_key:"SENDKEYS",scroll:"SCROLL_PIXELS",scroll_into_view:"SCROLL_UNTIL_ELEMENT",wait:"WAIT",wait_until:"WAIT_UNTIL",wait_for_load:"WAIT_FOR_LOAD",switch_tab:"SWITCH_TAB",new_tab:"NEW_TAB",close_tab:"CLOSE_TAB",evaluate_js:"EVALUATE_JS",vision_query:"VISION_QUERY",textual_query:"TEXTUAL_QUERY",get_url:"GET_URL",get_title:"GET_TITLE",assert:"ASSERTION",math:"MATHEMATICAL_OPERATION"},rv={literal:"SET_VARIABLE",visual:"VISION_QUERY",dom:"TEXTUAL_QUERY",url:"GET_URL",title:"GET_TITLE",devtool_network:"DEVTOOLS_NETWORK_QUERY",devtool_console:"DEVTOOLS_CONSOLE_QUERY",devtool_cookies:"DEVTOOLS_COOKIES_QUERY",devtool_storage:"DEVTOOLS_STORAGE_QUERY",devtool_performance:"DEVTOOLS_PERFORMANCE"},iv=new Set(["CLICK","TYPE","FILL","HOVER","SCROLL_UNTIL_ELEMENT","UPLOAD","VISION_QUERY","DRAG_DROP","SELECT"]);function Nc(t,e){if(t==="analyze"){let r=e?.action_params?.analyzer_type??"";return rv[r]??"VISION_QUERY"}return tv[t]??t.toUpperCase()}function Cc(t,e){if(!t||!e)return"";try{let r=new Date(t);return isNaN(r.getTime())?"":new Date(r.getTime()+e).toISOString()}catch{return""}}function nv(t,e,r){let i=t.action_params??{},n=iv.has(e)?"Vision Agent":"Operation Agent",s={operation_type:e};e==="OPEN"&&(s.url=i.url??""),e==="SET_VARIABLE"&&(s.variable_name=t.output_variable??i.key??"",s.variable_value=t.output_value??"");let o={},a={},l=t.action_instruction??"",u=i.text??"",f=i.url??"",c=[["intent",l],["value",u],["url",f]];for(let[m,p]of Object.entries(r)){let S=String(p);if(m.startsWith("secrets."))for(let[y,b]of c)b.includes(S)&&(a[y]=m);for(let[y,b]of c)b.includes(S)&&!(y in o)&&(o[y]=b)}let h=t.action_type,d={operation:t.action_instruction??"",agent:n,operation_dict:s,reasoning:h==="analyze"?i.query??"":t.intent??t.action_instruction??"",variable:o,secrets:a,params:{}};return h==="analyze"&&typeof i.code=="string"&&i.code&&(d.code=i.code),h==="analyze"&&typeof i.code_js=="string"&&i.code_js&&(d.code_js=i.code_js),d}function sv(t){let e=t.assertion_tree??{};if(typeof e.passed=="boolean")return e.passed;let r=e.sub_results??[];return r.length===0?e.status==="passed":(e.composite_operator??"and")==="or"?r.some(n=>n.passed===!0):r.every(n=>n.passed===!0)}function kc(t){return t.map(e=>({description:e.description??"",store_key:e.store_key??"",expected_value:e.expected??"",extracted_value:e.extracted_value??"",operator:e.operator??"equals",transforms:e.transforms??[]}))}function ov(t){let e=t.assertion_tree??{},r=e.sub_results??[],i=kc(r);return{operator:[],assertion_operands:[],left_operand:null,right_operand:null,operands:[],sub_results:r,sub_checks:i,composite_operator:e.composite_operator??"and",verification:e.verification??"",claim:e.description??""}}function av(t){let r=(t.action_params??{}).assertion_tree??{},i=r.sub_results??[],n=kc(i);return[{operation:t.action_instruction??"",agent:"Operation Agent",operation_dict:{operation_type:"ASSERTION",assertion_tree:{sub_results:i,sub_checks:n,composite_operator:r.composite_operator??"and",verification:"",claim:r.description??t.action_instruction??"",operator:[],assertion_operands:[],left_operand:null,right_operand:null,operands:[]}},variable:{},secrets:{},params:{}}]}function lv(t,e,r,i){let n=t.visual_data;if(!n||n.x==null||n.y==null)return null;let s=e?`${e}/test_screenshots`:"";return{x:n.x,y:n.y,confidence:0,bbox:n.bbox??null,bbox_source:n.bbox?"accessibility_tree":"fallback",viewport_width:n.viewport_width??1280,viewport_height:n.viewport_height??800,scale_factor:null,raw_image_url:s?`${s}/untagged_screenshot/${r}.${i?.get(r)??"png"}`:"",raw_image_sas_url:"",annotated_image_url:"",annotated_image_sas_url:""}}function Dc(t,e={},r="",i){let n=t.action_type,s=Nc(n,t),o=t.action_params??{},a=t.coordinates??null,l=t.selectors??null,u=!!(l&&l.length>0),f=t.timestamp??"",c=t.duration_ms??0,h=t.variables_used??{},d=t.action_id??gi(),m=gi(),p=Cc(f,c),S="",y="";n==="navigate"?(y=o.url??"",S=y):n==="type"||n==="fill"?S=o.text??"":n==="press_key"?S=o.key??"":n==="wait"?S=String(o.ms??o.timeout_ms??""):n==="evaluate_js"?S=o.script??"":n==="analyze"&&(o.analyzer_type??"")==="literal"&&(S=t.output_value??"");let b="";n==="go_back"?b="back":n==="go_forward"&&(b="forward");let v=Mn(S,e),E=Mn(y,e),T=Mn(t.action_instruction??"",e),D=nv(t,s,h);return{operation_id:d,instruction_id:m,instruction:T,intent:T,operation_start:f,operation_end:p,status:t.status??"",command:s,name:"",target:"",value:v,message:"",operation_dict:"",frame:t.frame_info?JSON.stringify(t.frame_info):"",error_message:t.error??"",code_snippet:"",sub_instruction_obj:JSON.stringify(D),test_id:"",test_version:"",action:"",string_to_float:!1,feedback_msg:"",time_taken:"",create_time_stamp:"",update_time_stamp:"",locator_variable:"",locator_variable_name:"",image_url:r?`${r}/test_screenshots/untagged_screenshot/${d}.${i?.get(d)??"png"}`:"",alternative_xpaths:[],attribute:"",value_description:"",url:E,navigation_direction:b,tagified_image_url:"",query_variable_name:t.output_variable??"",query_variable_value:t.output_value??"",query_variable_type:"",expected_value:"",queried_value:"",operator:"",assertion_status:s==="ASSERTION"?sv(o):"",query_info_dict:{},query_content_confidence:"none",debugging_logs:[],locator_index:0,query_html:"",user_variables:"[]",optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,tab_index:String(o.tab_index??""),tab_identifier:String(o.tab_identifier??""),scroll_value:o.amount??1,scroll_direction:o.direction??"",mi_scroll_payload:{},sleep_duration:0,app_id:"",manual_interaction_tag:"",string_to_float_list:[],js_snippet:n==="evaluate_js"?o.script??"":"",code_error:"",hide:!1,dismiss_dialog:!1,use_v2_mobile_tagging:!1,multiple_inputs:!1,dialog_action:"",dialog_type:"",is_coordinates_used_for_interaction:a!==null&&!u,element_coordinates_ratio:[],element_bounds_ratio:[],x_coord:u?null:a?.x??null,y_coord:u?null:a?.y??null,target_x_coord:o.target_x??null,target_y_coord:o.target_y??null,source_description:o.source_description??null,target_description:o.target_description??null,use_coordinates:a!==null&&!u,kaneaiMobileTaggingImageLimit:1,clicks_order_code:"se_js_ac",selector:u?l.map(x=>({type:x.isXPath?"xpath":"css",...x})):"",selector_target:"",math_result_variable_name:"",math_result_variable_value:"",expression_tree:s==="ASSERTION"?ov(o):o.expression_tree??{},assertion_tree:o.assertion_tree??{},assertion_tree_simplified:{},network_throttle:{},is_mobile_offline:!1,autoheal:!1,db_query:"",db_details:{},db_query_decoded:"",is_global_variable:!1,is_global_variable_persist:!1,global_variable_id:"",wait_for_element_timeout:0,failure_condition:s==="ASSERTION"?"Fail test immediately":"",screenshot_command:"",smartui_contents:{},smartui_results:{},result_type:"",result_hint:"",drag_offset:{},start_coordinates:o.source_coordinates?{x:o.source_coordinates[0],y:o.source_coordinates[1]}:{},end_coordinates:o.target_coordinates?{x:o.target_coordinates[0],y:o.target_coordinates[1]}:{},element_rect:null,is_canvas:!1,until_condition:"",until_max_retries:0,until_settle_ms:0,api_data:{},output_variables:t.output_variable?{[t.output_variable]:t.output_value??""}:{},visual_context:lv(t,r,d,i),reasoning:n==="analyze"?o.query??"":t.intent??t.action_instruction??""}}function Pc(t,e,r={}){let i=t.action_type,n=Nc(i,t),s=t.timestamp??"",o=t.duration_ms??0,a=Cc(s,o),l=n==="ASSERTION"||n==="MATHEMATICAL_OPERATION";return{instruction_id:e.instruction_id,instruction_class:l?"non_driver_action":"driver_action",module_id:"",instruction:Mn(t.action_instruction??"",r),command:n,error:null,parent_instruction_id:"",classification_layer_resp:n==="ASSERTION"?av(t):[],classification_error:{},operations:[e],status:t.status??"",start_timestamp:s,end_timestamp:a,type:"agent_generated",tags:[],html_paths:[],optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,content_type:i==="analyze"&&t.action_params?.analyzer_type?.startsWith("devtool_")?t.action_params.analyzer_type.replace("devtool_","devtools_"):"instruction",js_snippet:i==="evaluate_js"?t.action_params?.script??"":"",user_variables:"[]",api_data:{},params_used:!1,hard_assertion:n==="ASSERTION"?t.action_params?.failure_condition==="hard":!1,expected_outcome:"",module_execution_index:0,module_version:null,network_throttle:{},isEdited:!1,use_query_assertion_v2:!1,db_query:"",db_details:{},network_assertion_content:{},screenshot_command:"",smartui_contents:{},generative_id:"",plan_id:"",generative_objective:"",error_message:"",error_code:"",reason:"",title:"",used_variables:[],reasoning:i==="analyze"?t.action_params?.query??"":t.intent??t.action_instruction??""}}function uv(t,e=[]){let r=t.action_params??{},i=r.branches??[],n=r.winning_index??-1,s=r.sub_results??[],o={};for(let l of s){let u=l.sub_results;if(u)for(let f of u){let c=f.store_key;c&&(o[c]=f)}}let a=i.map((l,u)=>{let f=u===n,c=(l.sub_checks??[]).map(h=>{let d=o[h.store_key];return{description:h.description,store_key:h.store_key,expected_value:h.expected_value,stored_value:d?.extracted_value??h.stored_value,operator:h.operator??d?.operator??"equals",transforms:h.transforms??d?.transforms??[]}});if(c.length===0&&l.condition&&s.length>0){let d=s.find(m=>m.branch_index===u)?.sub_results??[];d.length>0&&(c=d.map(m=>({description:m.description??l.condition,store_key:m.store_key??"",expected_value:m.expected??"true",stored_value:m.extracted_value??void 0,operator:m.operator??"equals",transforms:m.transforms??[]})))}return{branch_index:u,condition:l.condition??null,branch_type:l.branch_type??"sub_objective",passed:f,sub_objective:null,custom_event:l.custom_event??null,children:f?e:[],sub_checks:l.condition?c:[],composite_operator:l.composite_operator??"and"}});return{content_type:"conditional_block",instruction_id:`if_else_${gi().slice(0,8)}`,instruction:t.action_instruction??"",instruction_class:"driver_action",command:"",status:t.status??"success",resolved_branch_index:n,branches:a,generative_id:"",generative_objective:"",variables_used:{},classification_layer_resp:[],classification_error:{},used_variables:[],user_variables:"[]",module_id:"",module_execution_index:0,module_version:"",plan_id:"",optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,error:null,error_message:"",error_code:"",reason:"",start_timestamp:t.timestamp??"",end_timestamp:"",type:"agent_generated",hook:null,hook_type:null,evaluation_context:{},query_variables:{}}}function Mc(t,e,r){for(let i of t)i.content_type==="instruction"&&"generative_id"in i&&(i.generative_id=e,i.generative_objective=r)}function ra(t,e={},r="",i){let n=[],s=0;for(;s<t.length;){let o=t[s],a=o.action_type;if(o.status==="error"&&a!=="assert"&&a!=="if_else"&&a!=="child_agent_start"&&a!=="child_agent_end"&&!(o.until_condition&&!o.error)){s+=1;continue}if(a==="child_agent_start"){let l=o.action_params?.child_id??"",u=o.action_params?.objective??"",f=[];s+=1;let c=1,h="error",d;for(;s<t.length&&c>0;){let T=t[s],D=T.action_type;if(D==="child_agent_start")c+=1;else if(D==="child_agent_end"&&(c-=1,c===0)){h=T.status??"success",d=T,s+=1;break}c>0&&f.push(T),s+=1}let m=ra(f,e,r,i);Mc(m,l,u);let p=d?.action_params?.result_code??null,S=d?.action_params?.reason_code??null,y=d?.action_params?.error_message??null,b=d?.action_params?.summary??null,v=d?.action_params?.one_liner??null,E=h==="error";n.push({content_type:"generative_block",instruction_id:`generative_block_${l}`,generative_id:l,objective:u,status:h,children:m,error_message:E?y??null:null,error_code:E?S??null:null,result_code:p??null,bifurcation_context:[],approach_reason:Lc(b),one_liner:v??null});continue}else if(a==="child_agent_end"){s+=1;continue}else if(a==="if_else"){s+=1;let l=[];for(;s<t.length&&t[s].action_type==="child_agent_start";){let u=t[s],f=u.action_params?.child_id??"",c=u.action_params?.objective??"",h=[];s+=1;let d=1,m="error";for(;s<t.length&&d>0;){let S=t[s];if(S.action_type==="child_agent_start")d+=1;else if(S.action_type==="child_agent_end"&&(d-=1,d===0)){m=S.status??"success",s+=1;break}d>0&&h.push(S),s+=1}let p=ra(h,e,r,i);l.push(...p)}n.push(uv(o,l));continue}else if(a==="query_tool"){s+=1;continue}else if(o.until_condition){let l=Dc(o,e,r,i),u=Pc(o,l,e),f=typeof o.until_condition_met=="boolean"?o.until_condition_met:o.status==="success";n.push({content_type:"until_block",instruction_id:`until_${gi().slice(0,8)}`,condition:o.until_condition,max_retries:o.until_max_retries??10,settle_ms:o.until_settle_ms??500,current_count:0,condition_met:f,children:[u],generative_id:"",generative_objective:"",variables_used:{},status:o.status??"success"})}else{let l=Dc(o,e,r,i),u=Pc(o,l,e);n.push(u)}s+=1}return n}function ia(t,e={},r="",i){let n=[];for(let s of t){let o=ra(s.records,e,r,i);if(o.length===0)continue;let a=gi().replace(/-/g,"");Mc(o,a,s.objective);let l=o.some(h=>"status"in h&&typeof h.status=="string"?h.status==="error"||h.status==="failed":!1),u=s.resultCode?parseInt(s.resultCode,10):null,f=u!==null&&!isNaN(u)&&u>=200,c=l||f?"error":"success";n.push({content_type:"generative_block",instruction_id:`generative_block_${a}`,generative_id:a,objective:s.objective,status:c,children:o,error_message:c==="error"?s.errorMessage??null:null,error_code:c==="error"?s.reasonCode??null:null,result_code:s.resultCode??null,bifurcation_context:[],approach_reason:Lc(s.summary),one_liner:s.oneLiner??null})}return{instructions:n}}var HE=JE($E(),1);import{createWriteStream as jB}from"fs";import{readFile as BB}from"fs/promises";import{join as UB,basename as WB}from"path";import{tmpdir as zB}from"os";var GB=["**/screenshots/**","**/annotated/**","**/tcg/**","**/bifurcation/**"];async function VE(t){let e=UB(zB(),`${WB(t)}_artifacts.zip`);return new Promise((r,i)=>{let n=jB(e),s=(0,HE.default)("zip",{zlib:{level:6}});n.on("close",()=>r(e)),s.on("error",i),s.pipe(n),s.glob("**/*",{cwd:t,ignore:GB}),s.finalize()})}async function YE(t){return BB(t)}async function vc(t,e,r){let i=await Xt(t,{method:"PUT",headers:{"Content-Type":r,"x-ms-blob-type":"BlockBlob"},body:new Uint8Array(e)});if(!i.ok)throw new Error(`Azure upload failed: ${i.status} ${await i.text()}`)}var ZE=class{config;controller;testId;constructor(e){this.config=e,this.controller=new Ac(e.controllerBaseUrl,e.auth),this.testId=e.testId}log(e,r,i,n){this.config.log?.(e,r,i,n)}async execute(){let{onProgress:e}=this.config;try{if(!this.testId)return this.log("error","PIPELINE_ABORT","No test_id available"),{success:!1,testId:null,error:"No test_id available"};if(this.config.shouldUploadArtifacts!==!1){e("convert","running");let s=this.collectNdjsonPerRun(),o=s.reduce((p,S)=>p+S.records.length,0);this.log("info","PIPELINE_CONVERT","Collected NDJSON records",{total_records:o,run_groups:s.length});let a=this.config.variables??{};this.log("info","PIPELINE_CONVERT_VARS","Variables for template resolution",{keys:Object.keys(a)});let{instructions:l}=s.length>0?ia(s,a,this.config.screenshotBaseUrl??"",this.config.screenshotExtMap):{instructions:[]};this.log("info","PIPELINE_CONVERT_INSTRUCTIONS","Auteur instructions produced",{count:l.length});let u=this.buildExecutionEnvelope(l),f=Buffer.from(JSON.stringify(u));this.log("info","PIPELINE_CONVERT_BLOB","Blob created",{size_kb:+(f.length/1024).toFixed(1)});let c=Qt(this.config.sessionDir,"execution.json");xc(c,JSON.stringify(u,null,2)),this.log("info","PIPELINE_CONVERT_LOCAL_SAVE","Execution blob saved locally",{path:c}),e("convert","done"),e("zip","running"),this.log("info","PIPELINE_ZIP_START","Zipping session",{session_dir:this.config.sessionDir});let h=null,d;try{h=await VE(this.config.sessionDir),d=await YE(h),this.log("info","PIPELINE_ZIP_DONE","Zip complete",{size_mb:+(d.length/1024/1024).toFixed(1),path:h}),e("zip","done",`${(d.length/1024/1024).toFixed(1)}MB`)}finally{h&&await YB(h).catch(()=>{})}e("presign","running"),this.log("info","PIPELINE_PRESIGN_START","Requesting presigned URLs",{url:`${this.config.controllerBaseUrl}/upload/presign`,test_id:this.testId,session_id:this.config.sessionId});let m=await this.controller.getPresignedUrls(this.testId,this.config.sessionId,[{key:"artifacts",content_type:"application/zip",filename:`${this.config.sessionId}_artifacts.zip`},{key:"blob",content_type:"application/json",filename:`${this.config.commitId}.json`}]);this.log("info","PIPELINE_PRESIGN_OK","Presigned URLs received",{artifacts_url:m.urls.artifacts?.blob_url,blob_url:m.urls.blob?.blob_url}),e("presign","done"),e("upload","running"),this.log("info","PIPELINE_UPLOAD_START","Uploading artifacts and blob",{artifact_size_mb:+(d.length/1024/1024).toFixed(1),blob_size_kb:+(f.length/1024).toFixed(1)}),await Promise.all([vc(m.urls.artifacts.upload_url,d,"application/zip"),vc(m.urls.blob.upload_url,f,"application/json")]),this.log("info","PIPELINE_UPLOAD_OK","Upload complete"),e("upload","done")}else{let s=this.collectNdjsonPerRun(),o=this.config.variables??{},{instructions:a}=s.length>0?ia(s,o,this.config.screenshotBaseUrl??"",this.config.screenshotExtMap):{instructions:[]},l=this.buildExecutionEnvelope(a),u=Qt(this.config.sessionDir,"execution.json");xc(u,JSON.stringify(l,null,2)),this.log("info","PIPELINE_LOCAL_SAVE","Execution blob saved locally (no upload)",{path:u}),e("convert","skipped"),e("zip","skipped"),e("presign","skipped"),e("upload","skipped"),this.log("info","PIPELINE_UPLOAD_SKIPPED","Upload steps skipped (gate disabled)")}if(this.config.shouldReplaceLocalOutput&&this.config.onAtomicReplace){e("atomic_replace","running");try{await this.config.onAtomicReplace(),this.log("info","PIPELINE_ATOMIC_REPLACE_OK","Local output replaced"),e("atomic_replace","done")}catch(s){let o=s instanceof Error?s.message:String(s);throw this.log("error","PIPELINE_ATOMIC_REPLACE_FAILED","Atomic-replace failed",{error:o}),e("atomic_replace","failed",o),s}}else e("atomic_replace","skipped");let r,i;if(this.config.shouldCommit&&!this.config.isFirstRun&&this.config.onCommitLock){e("commit_lock","running");let s=await this.config.onCommitLock();if(s.ok)r=s.testcaseId,this.log("info","PIPELINE_COMMIT_LOCK_OK","Commit lock acquired",{testcase_id:r??"none"}),e("commit_lock","done");else return this.log("error","PIPELINE_COMMIT_LOCK_FAILED","Commit lock failed",{reason:s.reason,message:s.message}),e("commit_lock","failed",`${s.reason??"unknown"}: ${s.message??""}`),{success:!1,testId:this.testId,error:`commit-lock failed: ${s.reason??"unknown"}`}}else e("commit_lock","skipped");if(this.config.isFirstRun&&!this.config.skipTmsFinalize){e("finalize","running"),this.log("info","PIPELINE_FINALIZE_START","Finalizing test (first-run)",{test_id:this.testId,commit_id:this.config.commitId});let s=new Rc(this.config.tmsBaseUrl,this.config.tmsUsername,this.config.tmsAccessKey),o=this.config.runObjectives&&this.config.runObjectives.length>0?this.config.runObjectives:[this.config.firstObjective];if(r=(await s.endTest(this.testId,{commit_id:this.config.commitId,time_taken:Math.round(this.config.totalDuration),steps_count:this.config.totalSteps,commit_message:this.config.firstObjective.slice(0,255),objectives:o})).testcase_id||void 0,this.log("info","PIPELINE_FINALIZE_OK","Test finalized",{testcase_id:r??"none"}),this.config.onFinalizeSuccess)try{await this.config.onFinalizeSuccess(r)}catch(l){this.log("warn","PIPELINE_FINALIZE_META_FAILED","Meta-rewrite after endTest failed",{error:String(l)})}e("finalize","done")}else e("finalize","skipped"),this.log("info","PIPELINE_FINALIZE_SKIPPED","Finalize skipped (evolve flow or first-run disabled)");if(r&&this.config.shareApiBaseUrl)try{i=await this.generateShareLink(r),this.log("info","PIPELINE_SHARE_OK","Share link generated",{share_id:i})}catch(s){this.log("warn","PIPELINE_SHARE_FAILED","Share link failed",{error:String(s)})}let n;if(this.config.codeExport?.enabled&&r){let s=!1;try{await this.triggerCodeExport(r),this.log("info","PIPELINE_CODE_EXPORT_START","Code export triggered"),s=!0}catch(o){let a=o instanceof Error?o.message:String(o);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export trigger failed; skipping poll",{error:a}),e("code_export","failed",`trigger failed: ${a}`)}if(s){e("code_export","running","Waiting for code generation\u2026");try{n=await this.pollAndDownloadCode(r,e),this.log("info","PIPELINE_CODE_EXPORT_OK","Code export complete",{dir:n}),e("code_export","done",n)}catch(o){let a=o instanceof Error?o.message:String(o);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:a}),e("code_export","failed",a)}}}else e("code_export","skipped");return this.log("info","PIPELINE_COMPLETE","Pipeline complete"),{success:!0,testId:this.testId,testcaseId:r,shareId:i,codeExportDir:n}}catch(r){return{success:!1,testId:this.testId,error:r instanceof Error?r.message:String(r)}}}async runCodeExport(e,r){let i=r??this.config.onProgress,n=!1;try{await this.triggerCodeExport(e),this.log("info","PIPELINE_CODE_EXPORT_TRIGGER","Code export triggered",{testcase_id:e}),n=!0}catch(s){let o=s instanceof Error?s.message:String(s);this.log("error","PIPELINE_CODE_EXPORT_TRIGGER_FAILED","Code export trigger failed; skipping poll",{error:o}),i("code_export","failed",`trigger failed: ${o}`)}if(n){i("code_export","running","Waiting for code generation\u2026");try{let s=await this.pollAndDownloadCode(e,i);return this.log("info","PIPELINE_CODE_EXPORT_OK","Code export complete",{dir:s}),i("code_export","done",s),s}catch(s){let o=s instanceof Error?s.message:String(s);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:o}),i("code_export","failed",o);return}}}collectNdjsonPerRun(){let e=[],r=this.config.runObjectives??[],i=this.config.runMetadata??[];for(let n=0;n<this.config.runDirs.length;n++){let s=this.config.runDirs[n],o=r[n]||this.config.firstObjective,a=i[n],l=this.readNdjsonFromDir(s);l.length>0&&e.push({objective:o,records:l,resultCode:a?.resultCode,reasonCode:a?.reasonCode,errorMessage:a?.errorMessage,summary:a?.summary,oneLiner:a?.oneLiner})}if(e.length===0){let n=Qt(this.config.sessionDir,"runs");if(KE(n))try{let o=HB(n,{withFileTypes:!0}).filter(a=>a.isDirectory()).map(a=>a.name).sort();for(let a of o){let l=Qt(n,a),u=this.readNdjsonFromDir(l);u.length>0&&e.push({objective:this.config.firstObjective,records:u})}}catch{}}return e}readNdjsonFromDir(e){let r=[],i=[Qt(e,"run-test","actions.ndjson"),Qt(e,"actions.ndjson")];for(let n of i){if(!KE(n))continue;this.log("debug","PIPELINE_COLLECT_READ","Reading NDJSON file",{path:n});let s=$B(n,"utf-8");for(let o of s.split(`
|
|
14
|
-
`)){let a=o.trim();if(a)try{r.push(JSON.parse(a))}catch{}}return r}return r}async generateShareLink(e){let r=`${this.config.shareApiBaseUrl}/lshs/api/v1.0/share-item/generate-sharable-link`;this.log("info","PIPELINE_SHARE_START","Requesting share link",{url:r,testcase_id:e});let i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({entityIds:[e],entityType:"Test Case Details",expiresAt:7})},n=!!this.config.authResolver;this.log("debug","PIPELINE_SHARE_AUTH","Share link auth config",{resolver:n,fallback_auth_type:typeof this.config.auth=="string"?"bearer":"basic",tms_user:this.config.tmsUsername});let s=n?await this.config.authResolver.fetch(r,i):await Xt(r,{...i,headers:{...i.headers,Authorization:this.buildAuthHeader()}});if(!s.ok)throw new Error(`Share link API failed: ${s.status} ${await s.text()}`);let o=await s.json();if(!o.shareId)throw new Error("Share link API returned no shareId");return o.shareId}async triggerCodeExport(e){if(!this.config.codeExport)throw new Error("triggerCodeExport called without resolved codeExport config");let{url:r,body:i}=Oc({tmsBaseUrl:this.config.tmsBaseUrl,testcaseId:e,codeExport:this.config.codeExport});this.log("info","PIPELINE_CODE_EXPORT_POST","Triggering code export",{url:r});let n={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)},s=this.config.authResolver?await this.config.authResolver.fetch(r,n):await Xt(r,{...n,headers:{...n.headers,Authorization:this.buildAuthHeader()}});if(!s.ok)throw new Error(`Code export failed: ${s.status} ${await s.text()}`)}async pollAndDownloadCode(e,r){let i=Ic({tmsBaseUrl:this.config.tmsBaseUrl,testcaseId:e}),n=this.config.exitTimeoutMs??3e5,s=5e3,o=Date.now()+n;this.log("info","PIPELINE_CODE_EXPORT_POLL","Polling for code export",{url:i,timeout_ms:n});let a=(l,u)=>this.config.authResolver?this.config.authResolver.fetch(l,u):Xt(l,{...u,headers:{...u?.headers,Authorization:this.buildAuthHeader()}});for(;Date.now()<o;){let l=await a(i,{method:"GET",headers:{Accept:"application/json"}});if(!l.ok){let d=await l.text().catch(()=>"");throw this.log("warn","PIPELINE_CODE_EXPORT_POLL_FAILED","Code export poll non-200; skipping",{status:l.status,body:d.slice(0,200)}),new Error(`code export poll skipped: HTTP ${l.status}`)}let f=(await l.json()).data?.find(d=>d.code_name==="kane-cli-trigger");if(!f){this.log("debug","PIPELINE_CODE_EXPORT_WAITING","No kane-cli-trigger entry yet"),r("code_export","running","Waiting for code generation\u2026"),await this.sleep(s);continue}let c=f.status.toLowerCase();if(c==="in progress"||c==="in_progress"||c==="pending"){this.log("debug","PIPELINE_CODE_EXPORT_IN_PROGRESS","Code export in progress",{status:f.status}),r("code_export","running","Generating code\u2026"),await this.sleep(s);continue}if(!f.url||f.url.length===0)throw new Error(`Code export status=${f.status} but no files returned`);let h=this.config.codeExportDir??Qt(this.config.sessionDir,"code-export");VB(h,{recursive:!0}),this.log("info","PIPELINE_CODE_EXPORT_DOWNLOAD","Downloading code files",{file_count:f.url.length,dir:h}),r("code_export","running",`Downloading ${f.url.length} files\u2026`);for(let d of f.url){let
|
|
13
|
+
`).map(e=>e.trim()).filter(Boolean):t.split(". ").map(e=>e.trim()).filter(Boolean).map(e=>e.endsWith(".")?e:e+"."):[]}function Mn(t,e){return!t||!e?t:t.replace(/\{\{(.+?)\}\}/g,(r,i)=>{let n=e[i];return n?n.value:r}).replace(/\$\{(.+?)\}/g,(r,i)=>{let n=e[i];return n?n.value:r})}var tv={click:"CLICK",double_click:"CLICK",type:"TYPE",fill:"TYPE",select:"SELECT",hover:"HOVER",drag:"DRAG_DROP",upload_files:"UPLOAD",navigate:"OPEN",go_back:"NAVIGATE",go_forward:"NAVIGATE",refresh:"REFRESH",press_key:"SENDKEYS",scroll:"SCROLL_PIXELS",scroll_into_view:"SCROLL_UNTIL_ELEMENT",wait:"WAIT",wait_until:"WAIT_UNTIL",wait_for_load:"WAIT_FOR_LOAD",switch_tab:"SWITCH_TAB",new_tab:"NEW_TAB",close_tab:"CLOSE_TAB",evaluate_js:"EVALUATE_JS",vision_query:"VISION_QUERY",textual_query:"TEXTUAL_QUERY",get_url:"GET_URL",get_title:"GET_TITLE",assert:"ASSERTION",math:"MATHEMATICAL_OPERATION",set_cookies:"SET_COOKIES",delete_cookies:"DELETE_COOKIES",clear_cookies:"CLEAR_COOKIES",set_local_storage:"SET_LOCAL_STORAGE",delete_local_storage:"DELETE_LOCAL_STORAGE",clear_local_storage:"CLEAR_LOCAL_STORAGE",set_clipboard:"SET_CLIPBOARD",paste_clipboard:"PASTE_CLIPBOARD",clear_clipboard:"CLEAR_CLIPBOARD"},rv={literal:"SET_VARIABLE",visual:"VISION_QUERY",dom:"TEXTUAL_QUERY",url:"GET_URL",title:"GET_TITLE",devtool_network:"DEVTOOLS_NETWORK_QUERY",devtool_console:"DEVTOOLS_CONSOLE_QUERY",devtool_cookies:"DEVTOOLS_COOKIES_QUERY",devtool_storage:"DEVTOOLS_STORAGE_QUERY",devtool_performance:"DEVTOOLS_PERFORMANCE"},iv=new Set(["CLICK","TYPE","FILL","HOVER","SCROLL_UNTIL_ELEMENT","UPLOAD","VISION_QUERY","DRAG_DROP","SELECT"]);function Nc(t,e){if(t==="analyze"){let r=e?.action_params?.analyzer_type??"";return rv[r]??"VISION_QUERY"}return tv[t]??t.toUpperCase()}function Cc(t,e){if(!t||!e)return"";try{let r=new Date(t);return isNaN(r.getTime())?"":new Date(r.getTime()+e).toISOString()}catch{return""}}function nv(t,e,r){let i=t.action_params??{},n=iv.has(e)?"Vision Agent":"Operation Agent",s={operation_type:e};e==="OPEN"&&(s.url=i.url??""),e==="SET_VARIABLE"&&(s.variable_name=t.output_variable??i.key??"",s.variable_value=t.output_value??"");let o={},a={},l=t.action_instruction??"",u=i.text??"",f=i.url??"",c=[["intent",l],["value",u],["url",f]];for(let[S,m]of Object.entries(r)){let b=String(m);if(S.startsWith("secrets."))for(let[v,E]of c)E.includes(b)&&(a[v]=S);for(let[v,E]of c)E.includes(b)&&!(v in o)&&(o[v]=E)}let h=t.action_type,d={operation:t.action_instruction??"",agent:n,operation_dict:s,reasoning:h==="analyze"?i.query??"":t.intent??t.action_instruction??"",variable:o,secrets:a,params:{}};h==="analyze"&&typeof i.code=="string"&&i.code&&(d.code=i.code),h==="analyze"&&typeof i.code_js=="string"&&i.code_js&&(d.code_js=i.code_js);let p={set_cookies:"cookies",set_clipboard:"text",delete_cookies:"names",set_local_storage:"items",delete_local_storage:"keys"}[h];return p&&i[p]!==void 0&&(d[p]=i[p]),h==="set_clipboard"&&typeof i.html=="string"&&i.html&&(d.html=i.html),d}function sv(t){let e=t.assertion_tree??{};if(typeof e.passed=="boolean")return e.passed;let r=e.sub_results??[];return r.length===0?e.status==="passed":(e.composite_operator??"and")==="or"?r.some(n=>n.passed===!0):r.every(n=>n.passed===!0)}function kc(t){return t.map(e=>({description:e.description??"",store_key:e.store_key??"",expected_value:e.expected??"",extracted_value:e.extracted_value??"",operator:e.operator??"equals",transforms:e.transforms??[]}))}function ov(t){let e=t.assertion_tree??{},r=e.sub_results??[],i=kc(r);return{operator:[],assertion_operands:[],left_operand:null,right_operand:null,operands:[],sub_results:r,sub_checks:i,composite_operator:e.composite_operator??"and",verification:e.verification??"",claim:e.description??""}}function av(t){let r=(t.action_params??{}).assertion_tree??{},i=r.sub_results??[],n=kc(i);return[{operation:t.action_instruction??"",agent:"Operation Agent",operation_dict:{operation_type:"ASSERTION",assertion_tree:{sub_results:i,sub_checks:n,composite_operator:r.composite_operator??"and",verification:"",claim:r.description??t.action_instruction??"",operator:[],assertion_operands:[],left_operand:null,right_operand:null,operands:[]}},variable:{},secrets:{},params:{}}]}function lv(t,e,r,i){let n=t.visual_data;if(!n||n.x==null||n.y==null)return null;let s=e?`${e}/test_screenshots`:"";return{x:n.x,y:n.y,confidence:0,bbox:n.bbox??null,bbox_source:n.bbox?"accessibility_tree":"fallback",viewport_width:n.viewport_width??1280,viewport_height:n.viewport_height??800,scale_factor:null,raw_image_url:s?`${s}/untagged_screenshot/${r}.${i?.get(r)??"png"}`:"",raw_image_sas_url:"",annotated_image_url:"",annotated_image_sas_url:""}}function Dc(t,e={},r="",i){let n=t.action_type,s=Nc(n,t),o=t.action_params??{},a=t.coordinates??null,l=t.selectors??null,u=!!(l&&l.length>0),f=t.timestamp??"",c=t.duration_ms??0,h=t.variables_used??{},d=t.action_id??gi(),y=gi(),p=Cc(f,c),S="",m="";n==="navigate"?(m=o.url??"",S=m):n==="type"||n==="fill"?S=o.text??"":n==="press_key"?S=o.key??"":n==="wait"?S=String(o.ms??o.timeout_ms??""):n==="evaluate_js"?S=o.script??"":n==="analyze"&&(o.analyzer_type??"")==="literal"&&(S=t.output_value??"");let b="";n==="go_back"?b="back":n==="go_forward"&&(b="forward");let v=Mn(S,e),E=Mn(m,e),T=Mn(t.action_instruction??"",e),D=nv(t,s,h);return{operation_id:d,instruction_id:y,instruction:T,intent:T,operation_start:f,operation_end:p,status:t.status??"",command:s,name:"",target:"",value:v,message:"",operation_dict:"",frame:t.frame_info?JSON.stringify(t.frame_info):"",error_message:t.error??"",code_snippet:"",sub_instruction_obj:JSON.stringify(D),test_id:"",test_version:"",action:"",string_to_float:!1,feedback_msg:"",time_taken:"",create_time_stamp:"",update_time_stamp:"",locator_variable:"",locator_variable_name:"",image_url:r?`${r}/test_screenshots/untagged_screenshot/${d}.${i?.get(d)??"png"}`:"",alternative_xpaths:[],attribute:"",value_description:"",url:E,navigation_direction:b,tagified_image_url:"",query_variable_name:t.output_variable??"",query_variable_value:t.output_value??"",query_variable_type:"",expected_value:"",queried_value:"",operator:"",assertion_status:s==="ASSERTION"?sv(o):"",query_info_dict:{},query_content_confidence:"none",debugging_logs:[],locator_index:0,query_html:"",user_variables:"[]",optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,tab_index:String(o.tab_index??""),tab_identifier:String(o.tab_identifier??""),scroll_value:o.amount??1,scroll_direction:o.direction??"",mi_scroll_payload:{},sleep_duration:0,app_id:"",manual_interaction_tag:"",string_to_float_list:[],js_snippet:n==="evaluate_js"?o.script??"":"",code_error:"",hide:!1,dismiss_dialog:!1,use_v2_mobile_tagging:!1,multiple_inputs:!1,dialog_action:"",dialog_type:"",is_coordinates_used_for_interaction:a!==null&&!u,element_coordinates_ratio:[],element_bounds_ratio:[],x_coord:u?null:a?.x??null,y_coord:u?null:a?.y??null,target_x_coord:o.target_x??null,target_y_coord:o.target_y??null,source_description:o.source_description??null,target_description:o.target_description??null,use_coordinates:a!==null&&!u,kaneaiMobileTaggingImageLimit:1,clicks_order_code:"se_js_ac",selector:u?l.map(x=>({type:x.isXPath?"xpath":"css",...x})):"",selector_target:"",math_result_variable_name:"",math_result_variable_value:"",expression_tree:s==="ASSERTION"?ov(o):o.expression_tree??{},assertion_tree:o.assertion_tree??{},assertion_tree_simplified:{},network_throttle:{},is_mobile_offline:!1,autoheal:!1,db_query:"",db_details:{},db_query_decoded:"",is_global_variable:!1,is_global_variable_persist:!1,global_variable_id:"",wait_for_element_timeout:0,failure_condition:s==="ASSERTION"?"Fail test immediately":"",screenshot_command:"",smartui_contents:{},smartui_results:{},result_type:"",result_hint:"",drag_offset:{},start_coordinates:o.source_coordinates?{x:o.source_coordinates[0],y:o.source_coordinates[1]}:{},end_coordinates:o.target_coordinates?{x:o.target_coordinates[0],y:o.target_coordinates[1]}:{},element_rect:null,is_canvas:!1,until_condition:"",until_max_retries:0,until_settle_ms:0,api_data:{},output_variables:t.output_variable?{[t.output_variable]:t.output_value??""}:{},visual_context:lv(t,r,d,i),reasoning:n==="analyze"?o.query??"":t.intent??t.action_instruction??""}}function Lc(t,e,r={}){let i=t.action_type,n=Nc(i,t),s=t.timestamp??"",o=t.duration_ms??0,a=Cc(s,o),l=n==="ASSERTION"||n==="MATHEMATICAL_OPERATION";return{instruction_id:e.instruction_id,instruction_class:l?"non_driver_action":"driver_action",module_id:"",instruction:Mn(t.action_instruction??"",r),command:n,error:null,parent_instruction_id:"",classification_layer_resp:n==="ASSERTION"?av(t):[],classification_error:{},operations:[e],status:t.status??"",start_timestamp:s,end_timestamp:a,type:"agent_generated",tags:[],html_paths:[],optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,content_type:i==="analyze"&&t.action_params?.analyzer_type?.startsWith("devtool_")?t.action_params.analyzer_type.replace("devtool_","devtools_"):"instruction",js_snippet:i==="evaluate_js"?t.action_params?.script??"":"",user_variables:"[]",api_data:{},params_used:!1,hard_assertion:n==="ASSERTION"?t.action_params?.failure_condition==="hard":!1,expected_outcome:"",module_execution_index:0,module_version:null,network_throttle:{},isEdited:!1,use_query_assertion_v2:!1,db_query:"",db_details:{},network_assertion_content:{},screenshot_command:"",smartui_contents:{},generative_id:"",plan_id:"",generative_objective:"",error_message:"",error_code:"",reason:"",title:"",used_variables:[],reasoning:i==="analyze"?t.action_params?.query??"":t.intent??t.action_instruction??""}}function uv(t,e=[]){let r=t.action_params??{},i=r.branches??[],n=r.winning_index??-1,s=r.sub_results??[],o={};for(let l of s){let u=l.sub_results;if(u)for(let f of u){let c=f.store_key;c&&(o[c]=f)}}let a=i.map((l,u)=>{let f=u===n,c=(l.sub_checks??[]).map(h=>{let d=o[h.store_key];return{description:h.description,store_key:h.store_key,expected_value:h.expected_value,stored_value:d?.extracted_value??h.stored_value,operator:h.operator??d?.operator??"equals",transforms:h.transforms??d?.transforms??[]}});if(c.length===0&&l.condition&&s.length>0){let d=s.find(y=>y.branch_index===u)?.sub_results??[];d.length>0&&(c=d.map(y=>({description:y.description??l.condition,store_key:y.store_key??"",expected_value:y.expected??"true",stored_value:y.extracted_value??void 0,operator:y.operator??"equals",transforms:y.transforms??[]})))}return{branch_index:u,condition:l.condition??null,branch_type:l.branch_type??"sub_objective",passed:f,sub_objective:null,custom_event:l.custom_event??null,children:f?e:[],sub_checks:l.condition?c:[],composite_operator:l.composite_operator??"and"}});return{content_type:"conditional_block",instruction_id:`if_else_${gi().slice(0,8)}`,instruction:t.action_instruction??"",instruction_class:"driver_action",command:"",status:t.status??"success",resolved_branch_index:n,branches:a,generative_id:"",generative_objective:"",variables_used:{},classification_layer_resp:[],classification_error:{},used_variables:[],user_variables:"[]",module_id:"",module_execution_index:0,module_version:"",plan_id:"",optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,error:null,error_message:"",error_code:"",reason:"",start_timestamp:t.timestamp??"",end_timestamp:"",type:"agent_generated",hook:null,hook_type:null,evaluation_context:{},query_variables:{}}}function Mc(t,e,r){for(let i of t)i.content_type==="instruction"&&"generative_id"in i&&(i.generative_id=e,i.generative_objective=r)}function ra(t,e={},r="",i){let n=[],s=0;for(;s<t.length;){let o=t[s],a=o.action_type;if(o.status==="error"&&a!=="assert"&&a!=="if_else"&&a!=="child_agent_start"&&a!=="child_agent_end"&&!(o.until_condition&&!o.error)){s+=1;continue}if(a==="child_agent_start"){let l=o.action_params?.child_id??"",u=o.action_params?.objective??"",f=[];s+=1;let c=1,h="error",d;for(;s<t.length&&c>0;){let T=t[s],D=T.action_type;if(D==="child_agent_start")c+=1;else if(D==="child_agent_end"&&(c-=1,c===0)){h=T.status??"success",d=T,s+=1;break}c>0&&f.push(T),s+=1}let y=ra(f,e,r,i);Mc(y,l,u);let p=d?.action_params?.result_code??null,S=d?.action_params?.reason_code??null,m=d?.action_params?.error_message??null,b=d?.action_params?.summary??null,v=d?.action_params?.one_liner??null,E=h==="error";n.push({content_type:"generative_block",instruction_id:`generative_block_${l}`,generative_id:l,objective:u,status:h,children:y,error_message:E?m??null:null,error_code:E?S??null:null,result_code:p??null,bifurcation_context:[],approach_reason:Pc(b),one_liner:v??null});continue}else if(a==="child_agent_end"){s+=1;continue}else if(a==="if_else"){s+=1;let l=[];for(;s<t.length&&t[s].action_type==="child_agent_start";){let u=t[s],f=u.action_params?.child_id??"",c=u.action_params?.objective??"",h=[];s+=1;let d=1,y="error";for(;s<t.length&&d>0;){let S=t[s];if(S.action_type==="child_agent_start")d+=1;else if(S.action_type==="child_agent_end"&&(d-=1,d===0)){y=S.status??"success",s+=1;break}d>0&&h.push(S),s+=1}let p=ra(h,e,r,i);l.push(...p)}n.push(uv(o,l));continue}else if(a==="query_tool"){s+=1;continue}else if(o.until_condition){let l=Dc(o,e,r,i),u=Lc(o,l,e),f=typeof o.until_condition_met=="boolean"?o.until_condition_met:o.status==="success";n.push({content_type:"until_block",instruction_id:`until_${gi().slice(0,8)}`,condition:o.until_condition,max_retries:o.until_max_retries??10,settle_ms:o.until_settle_ms??500,current_count:0,condition_met:f,children:[u],generative_id:"",generative_objective:"",variables_used:{},status:o.status??"success"})}else{let l=Dc(o,e,r,i),u=Lc(o,l,e);n.push(u)}s+=1}return n}function ia(t,e={},r="",i){let n=[];for(let s of t){let o=ra(s.records,e,r,i);if(o.length===0)continue;let a=gi().replace(/-/g,"");Mc(o,a,s.objective);let l=o.some(h=>"status"in h&&typeof h.status=="string"?h.status==="error"||h.status==="failed":!1),u=s.resultCode?parseInt(s.resultCode,10):null,f=u!==null&&!isNaN(u)&&u>=200,c=l||f?"error":"success";n.push({content_type:"generative_block",instruction_id:`generative_block_${a}`,generative_id:a,objective:s.objective,status:c,children:o,error_message:c==="error"?s.errorMessage??null:null,error_code:c==="error"?s.reasonCode??null:null,result_code:s.resultCode??null,bifurcation_context:[],approach_reason:Pc(s.summary),one_liner:s.oneLiner??null})}return{instructions:n}}var HE=JE($E(),1);import{createWriteStream as jB}from"fs";import{readFile as BB}from"fs/promises";import{join as UB,basename as WB}from"path";import{tmpdir as zB}from"os";var GB=["**/screenshots/**","**/annotated/**","**/tcg/**","**/bifurcation/**"];async function VE(t){let e=UB(zB(),`${WB(t)}_artifacts.zip`);return new Promise((r,i)=>{let n=jB(e),s=(0,HE.default)("zip",{zlib:{level:6}});n.on("close",()=>r(e)),s.on("error",i),s.pipe(n),s.glob("**/*",{cwd:t,ignore:GB}),s.finalize()})}async function YE(t){return BB(t)}async function vc(t,e,r){let i=await Xt(t,{method:"PUT",headers:{"Content-Type":r,"x-ms-blob-type":"BlockBlob"},body:new Uint8Array(e)});if(!i.ok)throw new Error(`Azure upload failed: ${i.status} ${await i.text()}`)}var ZE=class{config;controller;testId;constructor(e){this.config=e,this.controller=new Ac(e.controllerBaseUrl,e.auth),this.testId=e.testId}log(e,r,i,n){this.config.log?.(e,r,i,n)}async execute(){let{onProgress:e}=this.config;try{if(!this.testId)return this.log("error","PIPELINE_ABORT","No test_id available"),{success:!1,testId:null,error:"No test_id available"};if(this.config.shouldUploadArtifacts!==!1){e("convert","running");let s=this.collectNdjsonPerRun(),o=s.reduce((p,S)=>p+S.records.length,0);this.log("info","PIPELINE_CONVERT","Collected NDJSON records",{total_records:o,run_groups:s.length});let a=this.config.variables??{};this.log("info","PIPELINE_CONVERT_VARS","Variables for template resolution",{keys:Object.keys(a)});let{instructions:l}=s.length>0?ia(s,a,this.config.screenshotBaseUrl??"",this.config.screenshotExtMap):{instructions:[]};this.log("info","PIPELINE_CONVERT_INSTRUCTIONS","Auteur instructions produced",{count:l.length});let u=this.buildExecutionEnvelope(l),f=Buffer.from(JSON.stringify(u));this.log("info","PIPELINE_CONVERT_BLOB","Blob created",{size_kb:+(f.length/1024).toFixed(1)});let c=Qt(this.config.sessionDir,"execution.json");xc(c,JSON.stringify(u,null,2)),this.log("info","PIPELINE_CONVERT_LOCAL_SAVE","Execution blob saved locally",{path:c}),e("convert","done"),e("zip","running"),this.log("info","PIPELINE_ZIP_START","Zipping session",{session_dir:this.config.sessionDir});let h=null,d;try{h=await VE(this.config.sessionDir),d=await YE(h),this.log("info","PIPELINE_ZIP_DONE","Zip complete",{size_mb:+(d.length/1024/1024).toFixed(1),path:h}),e("zip","done",`${(d.length/1024/1024).toFixed(1)}MB`)}finally{h&&await YB(h).catch(()=>{})}e("presign","running"),this.log("info","PIPELINE_PRESIGN_START","Requesting presigned URLs",{url:`${this.config.controllerBaseUrl}/upload/presign`,test_id:this.testId,session_id:this.config.sessionId});let y=await this.controller.getPresignedUrls(this.testId,this.config.sessionId,[{key:"artifacts",content_type:"application/zip",filename:`${this.config.sessionId}_artifacts.zip`},{key:"blob",content_type:"application/json",filename:`${this.config.commitId}.json`}]);this.log("info","PIPELINE_PRESIGN_OK","Presigned URLs received",{artifacts_url:y.urls.artifacts?.blob_url,blob_url:y.urls.blob?.blob_url}),e("presign","done"),e("upload","running"),this.log("info","PIPELINE_UPLOAD_START","Uploading artifacts and blob",{artifact_size_mb:+(d.length/1024/1024).toFixed(1),blob_size_kb:+(f.length/1024).toFixed(1)}),await Promise.all([vc(y.urls.artifacts.upload_url,d,"application/zip"),vc(y.urls.blob.upload_url,f,"application/json")]),this.log("info","PIPELINE_UPLOAD_OK","Upload complete"),e("upload","done")}else{let s=this.collectNdjsonPerRun(),o=this.config.variables??{},{instructions:a}=s.length>0?ia(s,o,this.config.screenshotBaseUrl??"",this.config.screenshotExtMap):{instructions:[]},l=this.buildExecutionEnvelope(a),u=Qt(this.config.sessionDir,"execution.json");xc(u,JSON.stringify(l,null,2)),this.log("info","PIPELINE_LOCAL_SAVE","Execution blob saved locally (no upload)",{path:u}),e("convert","skipped"),e("zip","skipped"),e("presign","skipped"),e("upload","skipped"),this.log("info","PIPELINE_UPLOAD_SKIPPED","Upload steps skipped (gate disabled)")}if(this.config.shouldReplaceLocalOutput&&this.config.onAtomicReplace){e("atomic_replace","running");try{await this.config.onAtomicReplace(),this.log("info","PIPELINE_ATOMIC_REPLACE_OK","Local output replaced"),e("atomic_replace","done")}catch(s){let o=s instanceof Error?s.message:String(s);throw this.log("error","PIPELINE_ATOMIC_REPLACE_FAILED","Atomic-replace failed",{error:o}),e("atomic_replace","failed",o),s}}else e("atomic_replace","skipped");let r,i;if(this.config.shouldCommit&&!this.config.isFirstRun&&this.config.onCommitLock){e("commit_lock","running");let s=await this.config.onCommitLock();if(s.ok)r=s.testcaseId,this.log("info","PIPELINE_COMMIT_LOCK_OK","Commit lock acquired",{testcase_id:r??"none"}),e("commit_lock","done");else return this.log("error","PIPELINE_COMMIT_LOCK_FAILED","Commit lock failed",{reason:s.reason,message:s.message}),e("commit_lock","failed",`${s.reason??"unknown"}: ${s.message??""}`),{success:!1,testId:this.testId,error:`commit-lock failed: ${s.reason??"unknown"}`}}else e("commit_lock","skipped");if(this.config.isFirstRun&&!this.config.skipTmsFinalize){e("finalize","running"),this.log("info","PIPELINE_FINALIZE_START","Finalizing test (first-run)",{test_id:this.testId,commit_id:this.config.commitId});let s=new Rc(this.config.tmsBaseUrl,this.config.tmsUsername,this.config.tmsAccessKey),o=this.config.runObjectives&&this.config.runObjectives.length>0?this.config.runObjectives:[this.config.firstObjective];if(r=(await s.endTest(this.testId,{commit_id:this.config.commitId,time_taken:Math.round(this.config.totalDuration),steps_count:this.config.totalSteps,commit_message:this.config.firstObjective.slice(0,255),objectives:o})).testcase_id||void 0,this.log("info","PIPELINE_FINALIZE_OK","Test finalized",{testcase_id:r??"none"}),this.config.onFinalizeSuccess)try{await this.config.onFinalizeSuccess(r)}catch(l){this.log("warn","PIPELINE_FINALIZE_META_FAILED","Meta-rewrite after endTest failed",{error:String(l)})}e("finalize","done")}else e("finalize","skipped"),this.log("info","PIPELINE_FINALIZE_SKIPPED","Finalize skipped (evolve flow or first-run disabled)");if(r&&this.config.shareApiBaseUrl)try{i=await this.generateShareLink(r),this.log("info","PIPELINE_SHARE_OK","Share link generated",{share_id:i})}catch(s){this.log("warn","PIPELINE_SHARE_FAILED","Share link failed",{error:String(s)})}let n;if(this.config.codeExport?.enabled&&r){let s=!1;try{await this.triggerCodeExport(r),this.log("info","PIPELINE_CODE_EXPORT_START","Code export triggered"),s=!0}catch(o){let a=o instanceof Error?o.message:String(o);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export trigger failed; skipping poll",{error:a}),e("code_export","failed",`trigger failed: ${a}`)}if(s){e("code_export","running","Waiting for code generation\u2026");try{n=await this.pollAndDownloadCode(r,e),this.log("info","PIPELINE_CODE_EXPORT_OK","Code export complete",{dir:n}),e("code_export","done",n)}catch(o){let a=o instanceof Error?o.message:String(o);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:a}),e("code_export","failed",a)}}}else e("code_export","skipped");return this.log("info","PIPELINE_COMPLETE","Pipeline complete"),{success:!0,testId:this.testId,testcaseId:r,shareId:i,codeExportDir:n}}catch(r){return{success:!1,testId:this.testId,error:r instanceof Error?r.message:String(r)}}}async runCodeExport(e,r){let i=r??this.config.onProgress,n=!1;try{await this.triggerCodeExport(e),this.log("info","PIPELINE_CODE_EXPORT_TRIGGER","Code export triggered",{testcase_id:e}),n=!0}catch(s){let o=s instanceof Error?s.message:String(s);this.log("error","PIPELINE_CODE_EXPORT_TRIGGER_FAILED","Code export trigger failed; skipping poll",{error:o}),i("code_export","failed",`trigger failed: ${o}`)}if(n){i("code_export","running","Waiting for code generation\u2026");try{let s=await this.pollAndDownloadCode(e,i);return this.log("info","PIPELINE_CODE_EXPORT_OK","Code export complete",{dir:s}),i("code_export","done",s),s}catch(s){let o=s instanceof Error?s.message:String(s);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:o}),i("code_export","failed",o);return}}}collectNdjsonPerRun(){let e=[],r=this.config.runObjectives??[],i=this.config.runMetadata??[];for(let n=0;n<this.config.runDirs.length;n++){let s=this.config.runDirs[n],o=r[n]||this.config.firstObjective,a=i[n],l=this.readNdjsonFromDir(s);l.length>0&&e.push({objective:o,records:l,resultCode:a?.resultCode,reasonCode:a?.reasonCode,errorMessage:a?.errorMessage,summary:a?.summary,oneLiner:a?.oneLiner})}if(e.length===0){let n=Qt(this.config.sessionDir,"runs");if(KE(n))try{let o=HB(n,{withFileTypes:!0}).filter(a=>a.isDirectory()).map(a=>a.name).sort();for(let a of o){let l=Qt(n,a),u=this.readNdjsonFromDir(l);u.length>0&&e.push({objective:this.config.firstObjective,records:u})}}catch{}}return e}readNdjsonFromDir(e){let r=[],i=[Qt(e,"run-test","actions.ndjson"),Qt(e,"actions.ndjson")];for(let n of i){if(!KE(n))continue;this.log("debug","PIPELINE_COLLECT_READ","Reading NDJSON file",{path:n});let s=$B(n,"utf-8");for(let o of s.split(`
|
|
14
|
+
`)){let a=o.trim();if(a)try{r.push(JSON.parse(a))}catch{}}return r}return r}async generateShareLink(e){let r=`${this.config.shareApiBaseUrl}/lshs/api/v1.0/share-item/generate-sharable-link`;this.log("info","PIPELINE_SHARE_START","Requesting share link",{url:r,testcase_id:e});let i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({entityIds:[e],entityType:"Test Case Details",expiresAt:7})},n=!!this.config.authResolver;this.log("debug","PIPELINE_SHARE_AUTH","Share link auth config",{resolver:n,fallback_auth_type:typeof this.config.auth=="string"?"bearer":"basic",tms_user:this.config.tmsUsername});let s=n?await this.config.authResolver.fetch(r,i):await Xt(r,{...i,headers:{...i.headers,Authorization:this.buildAuthHeader()}});if(!s.ok)throw new Error(`Share link API failed: ${s.status} ${await s.text()}`);let o=await s.json();if(!o.shareId)throw new Error("Share link API returned no shareId");return o.shareId}async triggerCodeExport(e){if(!this.config.codeExport)throw new Error("triggerCodeExport called without resolved codeExport config");let{url:r,body:i}=Oc({tmsBaseUrl:this.config.tmsBaseUrl,testcaseId:e,codeExport:this.config.codeExport});this.log("info","PIPELINE_CODE_EXPORT_POST","Triggering code export",{url:r});let n={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)},s=this.config.authResolver?await this.config.authResolver.fetch(r,n):await Xt(r,{...n,headers:{...n.headers,Authorization:this.buildAuthHeader()}});if(!s.ok)throw new Error(`Code export failed: ${s.status} ${await s.text()}`)}async pollAndDownloadCode(e,r){let i=Ic({tmsBaseUrl:this.config.tmsBaseUrl,testcaseId:e}),n=this.config.exitTimeoutMs??3e5,s=5e3,o=Date.now()+n;this.log("info","PIPELINE_CODE_EXPORT_POLL","Polling for code export",{url:i,timeout_ms:n});let a=(l,u)=>this.config.authResolver?this.config.authResolver.fetch(l,u):Xt(l,{...u,headers:{...u?.headers,Authorization:this.buildAuthHeader()}});for(;Date.now()<o;){let l=await a(i,{method:"GET",headers:{Accept:"application/json"}});if(!l.ok){let d=await l.text().catch(()=>"");throw this.log("warn","PIPELINE_CODE_EXPORT_POLL_FAILED","Code export poll non-200; skipping",{status:l.status,body:d.slice(0,200)}),new Error(`code export poll skipped: HTTP ${l.status}`)}let f=(await l.json()).data?.find(d=>d.code_name==="kane-cli-trigger");if(!f){this.log("debug","PIPELINE_CODE_EXPORT_WAITING","No kane-cli-trigger entry yet"),r("code_export","running","Waiting for code generation\u2026"),await this.sleep(s);continue}let c=f.status.toLowerCase();if(c==="in progress"||c==="in_progress"||c==="pending"){this.log("debug","PIPELINE_CODE_EXPORT_IN_PROGRESS","Code export in progress",{status:f.status}),r("code_export","running","Generating code\u2026"),await this.sleep(s);continue}if(!f.url||f.url.length===0)throw new Error(`Code export status=${f.status} but no files returned`);let h=this.config.codeExportDir??Qt(this.config.sessionDir,"code-export");VB(h,{recursive:!0}),this.log("info","PIPELINE_CODE_EXPORT_DOWNLOAD","Downloading code files",{file_count:f.url.length,dir:h}),r("code_export","running",`Downloading ${f.url.length} files\u2026`);for(let d of f.url){let y=Qt(h,d.file_name),p=await Xt(d.file_url);if(!p.ok){this.log("warn","PIPELINE_CODE_EXPORT_FILE_FAILED","Failed to download file",{file_name:d.file_name,status:p.status});continue}let S=await p.text();xc(y,S,"utf-8"),this.log("info","PIPELINE_CODE_EXPORT_FILE_SAVED","File saved",{file_name:d.file_name,size_bytes:S.length})}return h}throw new Error("Code export timed out")}sleep(e){return new Promise(r=>setTimeout(r,e))}buildAuthHeader(){return typeof this.config.auth=="string"?`Bearer ${this.config.auth}`:Tc(this.config.auth.username,this.config.auth.accessKey)}buildExecutionEnvelope(e){let r=this.config.runStatuses.every(o=>o==="passed")?"success":"error",i=this.config.variableIds??{},n=[];if(this.config.variables)for(let[o,a]of Object.entries(this.config.variables)){if(a.secret)continue;let l=o.startsWith("global.")?o.slice(7):o;n.push({id:i[l]??0,name:l,value:a.value,session_value:a.value,is_persist:!1,environment_id:0,environment_name:"No Env"})}let s=[];for(let o of this.collectNdjsonPerRun())for(let a of o.records)a.output_variable&&a.output_value!=null&&s.push({name:a.output_variable,value:String(a.output_value),value_type:"test_level",variable_description:"ANALYZE result"});return{test_id:this.testId,version:"v4",session_id:this.config.sessionId,org_id:String(this.config.orgId),user_id:String(this.config.userId),url:this.config.firstUrl??"",start_timestamp:this.config.startedAt,end_timestamp:this.config.endedAt,status:r,commit_id:this.config.commitId,instructions:e,modules:[],uploaded_files:[],test_params:[],test_level_variables:JSON.stringify(s),test_global_variables:n,max_network_wait:0,wait_buffer:0,network_throttle:{},secrets:this.config.secrets??[],totp:[],environment_id:0,environment:"",mobile_browser:!1,native_popups:[],smartui:{},module_index:0}}};export{ZE as a};
|
|
15
15
|
/*! Bundled license information:
|
|
16
16
|
|
|
17
17
|
normalize-path/index.js:
|