@testmuai/kane-cli 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/{ChromeProfilePicker-J34PIRKT.js → ChromeProfilePicker-TSTGICKC.js} +1 -1
  2. package/dist/{CliFeedbackPrompt-6BF5FIGV.js → CliFeedbackPrompt-D2GV3CIR.js} +1 -1
  3. package/dist/{CliUploadProgress-OLN4CLU7.js → CliUploadProgress-3LN7ZAQQ.js} +1 -1
  4. package/dist/ConfigView-HFR7OLBN.js +2 -0
  5. package/dist/FolderPicker-JMDO2YEV.js +2 -0
  6. package/dist/HelpView-GAECHNPW.js +2 -0
  7. package/dist/{LinksBox-P7HGFKVG.js → LinksBox-VNX4GTYY.js} +1 -1
  8. package/dist/{LoginWizard-LQKZ3AYY.js → LoginWizard-POE64KP6.js} +1 -1
  9. package/dist/{ProfilesView-RXVSD4YZ.js → ProfilesView-AJFBUG46.js} +1 -1
  10. package/dist/ProjectPicker-FTUZCSBL.js +2 -0
  11. package/dist/{WhoamiView-GVVXM665.js → WhoamiView-FSFBRPAS.js} +1 -1
  12. package/dist/{changelog-WS4VVR5W.js → changelog-WJATJ25O.js} +1 -1
  13. package/dist/chunk-22Q72KEE.js +2 -0
  14. package/dist/chunk-32JVIWDK.js +2 -0
  15. package/dist/chunk-5TNGPFD4.js +2 -0
  16. package/dist/chunk-665WKKCX.js +2 -0
  17. package/dist/{chunk-5DRGVR7L.js → chunk-DCUGTUXD.js} +1 -1
  18. package/dist/chunk-DXKKUGFG.js +2 -0
  19. package/dist/{chunk-V77DQ5LB.js → chunk-FGRL7YK2.js} +1 -1
  20. package/dist/chunk-HFQ7T5KT.js +2 -0
  21. package/dist/{chunk-UJP3DMYF.js → chunk-HPYGNTYE.js} +1 -1
  22. package/dist/chunk-IEPLQSZE.js +106 -0
  23. package/dist/chunk-IFWLAQ3L.js +2 -0
  24. package/dist/{chunk-6JF2T7BO.js → chunk-JWPOUEON.js} +10 -8
  25. package/dist/chunk-KBTVURNO.js +2 -0
  26. package/dist/chunk-L5Y2GUO6.js +2 -0
  27. package/dist/chunk-LAVCECRF.js +2 -0
  28. package/dist/chunk-N5O3NTGW.js +2 -0
  29. package/dist/{chunk-37E6GGJP.js → chunk-ND4JFVHY.js} +1 -1
  30. package/dist/chunk-PWGEMRBD.js +2 -0
  31. package/dist/chunk-QDWB44VO.js +2 -0
  32. package/dist/chunk-QXBLFS66.js +2 -0
  33. package/dist/chunk-RZYQ7T3Y.js +2 -0
  34. package/dist/controller-client-7BIK5FYL.js +2 -0
  35. package/dist/index.js +57 -47
  36. package/dist/logging-X4C7SASV.js +2 -0
  37. package/dist/login-flow-47Y4Y2UB.js +2 -0
  38. package/dist/machine-id-DZN4MYOO.js +2 -0
  39. package/dist/pipeline-W3MWTZHK.js +2 -0
  40. package/dist/resolver-QLDOAIXU.js +2 -0
  41. package/dist/tms-client-VH42IFUF.js +2 -0
  42. package/dist/{updater-KDWM6PUM.js → updater-L2ORCIIP.js} +1 -1
  43. package/dist/{version-check-YRWT2JIC.js → version-check-IF4G6QYT.js} +1 -1
  44. package/package.json +5 -4
  45. package/dist/ConfigView-P4W6OHZK.js +0 -2
  46. package/dist/FolderPicker-CJAJHSMM.js +0 -2
  47. package/dist/HelpView-AZGTX7MR.js +0 -2
  48. package/dist/ProjectPicker-GFSQKLDY.js +0 -2
  49. package/dist/chunk-4XWNQQSQ.js +0 -2
  50. package/dist/chunk-722N7IS6.js +0 -2
  51. package/dist/chunk-C5U522LO.js +0 -2
  52. package/dist/chunk-CVDB2PVG.js +0 -2
  53. package/dist/chunk-F5NOXQWP.js +0 -2
  54. package/dist/chunk-F6J3XGBQ.js +0 -2
  55. package/dist/chunk-FH54KGU4.js +0 -2
  56. package/dist/chunk-GPQFSC4B.js +0 -2
  57. package/dist/chunk-I7KNK4LR.js +0 -2
  58. package/dist/chunk-I7YWZ3D2.js +0 -2
  59. package/dist/chunk-W22K4TDJ.js +0 -2
  60. package/dist/chunk-YNF4MUQP.js +0 -2
  61. package/dist/controller-client-VI55T5AT.js +0 -2
  62. package/dist/exitCleanup-J3GVD6U2.js +0 -2
  63. package/dist/pipeline-ZLHWF3V7.js +0 -2
  64. package/dist/resolver-XLRER3KZ.js +0 -2
  65. package/dist/tms-client-QWVBCUUT.js +0 -2
@@ -1,15 +1,17 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a as Ec}from"./chunk-GPQFSC4B.js";import{a as xc}from"./chunk-I7YWZ3D2.js";import{a as D,b as Hv,c as g,d as Vv,e as Yv,f as Kv}from"./chunk-UR6MHSHU.js";var Pc=g((YB,Lc)=>{"use strict";var sE=typeof process=="object"&&process&&process.platform==="win32";Lc.exports=sE?{sep:"\\"}:{sep:"/"}});var Fc=g((KB,qc)=>{"use strict";qc.exports=Cc;function Cc(t,e,r){t instanceof RegExp&&(t=kc(t,r)),e instanceof RegExp&&(e=kc(e,r));var i=Mc(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 kc(t,e){var r=e.match(t);return r?r[0]:null}Cc.range=Mc;function Mc(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 na=g((ZB,$c)=>{"use strict";var jc=Fc();$c.exports=lE;var Bc="\0SLASH"+Math.random()+"\0",Uc="\0OPEN"+Math.random()+"\0",ia="\0CLOSE"+Math.random()+"\0",Wc="\0COMMA"+Math.random()+"\0",zc="\0PERIOD"+Math.random()+"\0";function ra(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function oE(t){return t.split("\\\\").join(Bc).split("\\{").join(Uc).split("\\}").join(ia).split("\\,").join(Wc).split("\\.").join(zc)}function aE(t){return t.split(Bc).join("\\").split(Uc).join("{").split(ia).join("}").split(Wc).join(",").split(zc).join(".")}function Gc(t){if(!t)return[""];var e=[],r=jc("{","}",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=Gc(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function lE(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),gi(oE(t),!0).map(aE)):[]}function uE(t){return"{"+t+"}"}function fE(t){return/^-?0\d/.test(t)}function cE(t,e){return t<=e}function hE(t,e){return t>=e}function gi(t,e){var r=[],i=jc("{","}",t);if(!i)return[t];var n=i.pre,s=i.post.length?gi(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+ia+i.post,gi(t)):[t];var h;if(f)h=i.body.split(/\.\./);else if(h=Gc(i.body),h.length===1&&(h=gi(h[0],!1).map(uE),h.length===1))return s.map(function(T){return i.pre+h[0]+T});var d;if(f){var y=ra(h[0]),p=ra(h[1]),S=Math.max(h[0].length,h[1].length),m=h.length==3?Math.max(Math.abs(ra(h[2])),1):1,b=cE,v=p<y;v&&(m*=-1,b=hE);var E=h.some(fE);d=[];for(var A=y;b(A,p);A+=m){var N;if(u)N=String.fromCharCode(A),N==="\\"&&(N="");else if(N=String(A),E){var x=S-N.length;if(x>0){var O=new Array(x+1).join("0");A<0?N="-"+O+N.slice(1):N=O+N}}d.push(N)}}else{d=[];for(var w=0;w<h.length;w++)d.push.apply(d,gi(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 Qc=g((XB,ua)=>{"use strict";var Pe=ua.exports=(t,e,r={})=>(Mn(e),!r.nocomment&&e.charAt(0)==="#"?!1:new wr(e,r).match(t));ua.exports=Pe;var aa=Pc();Pe.sep=aa.sep;var Re=Symbol("globstar **");Pe.GLOBSTAR=Re;var dE=na(),Hc={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},la="[^/]",sa=la+"*?",pE="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",gE="(?:(?!(?:\\/|^)\\.).)*?",Kc=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),Vc=Kc("().*{}+?[]^$\\!"),_E=Kc("[.("),Yc=/\/+/;Pe.filter=(t,e={})=>(r,i,n)=>Pe(r,t,e);var At=(t,e={})=>{let r={};return Object.keys(t).forEach(i=>r[i]=t[i]),Object.keys(e).forEach(i=>r[i]=e[i]),r};Pe.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Pe;let e=Pe,r=(i,n,s)=>e(i,n,At(t,s));return r.Minimatch=class extends e.Minimatch{constructor(n,s){super(n,At(t,s))}},r.Minimatch.defaults=i=>e.defaults(At(t,i)).Minimatch,r.filter=(i,n)=>e.filter(i,At(t,n)),r.defaults=i=>e.defaults(At(t,i)),r.makeRe=(i,n)=>e.makeRe(i,At(t,n)),r.braceExpand=(i,n)=>e.braceExpand(i,At(t,n)),r.match=(i,n,s)=>e.match(i,n,At(t,s)),r};Pe.braceExpand=(t,e)=>Zc(t,e);var Zc=(t,e={})=>(Mn(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:dE(t)),yE=1024*64,Mn=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>yE)throw new TypeError("pattern is too long")},oa=Symbol("subparse");Pe.makeRe=(t,e)=>new wr(t,e||{}).makeRe();Pe.match=(t,e,r={})=>{let i=new wr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};var mE=t=>t.replace(/\\(.)/g,"$1"),bE=t=>t.replace(/\\([^-\]])/g,"$1"),wE=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),SE=t=>t.replace(/[[\]\\]/g,"\\$&"),wr=class{constructor(e,r){Mn(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(Yc)),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(Re)!==-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]===Re){o=b;break}let a=-1;for(let b=r.length-1;b>=0;b--)if(r[b]===Re){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===Re?(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===Re)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 Zc(this.pattern,this.options)}parse(e,r){Mn(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return Re;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+=sa,s=!0;break;case"?":n+=la,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;Vc[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:Hc[u].open,close:Hc[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("["+SE(bE(d))+"]"),n+=O}catch{n=n.substring(0,c)+"(?:$.)"}s=!0,f=!1;continue;default:E(),Vc[O]&&!(O==="^"&&f)&&(n+="\\"),n+=O;break}}for(f&&(d=e.slice(h+1),p=this.parse(d,oa),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,T,R)=>(R||(R="\\"),T+T+R+"|")),this.debug(`tail=%j
3
- %s`,x,x,y,n);let O=y.type==="*"?sa:y.type==="?"?la:"\\"+y.type;s=!0,n=n.slice(0,y.reStart)+O+"\\("+x}E(),o&&(n+="\\\\");let A=_E[n.charAt(0)];for(let x=l.length-1;x>-1;x--){let O=l[x],w=n.slice(0,O.reStart),T=n.slice(O.reStart,O.reEnd-8),R=n.slice(O.reEnd),P=n.slice(O.reEnd-8,O.reEnd)+R,z=w.split(")").length,ue=w.split("(").length-z,Z=R;for(let V=0;V<ue;V++)Z=Z.replace(/\)[+*?]?/,"");R=Z;let te=R===""&&r!==oa?"(?:$|\\/)":"";n=w+T+R+te+P}if(n!==""&&s&&(n="(?=.)"+n),A&&(n=b()+n),r===oa)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return mE(e);let N=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",N),{_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?sa:r.dot?pE:gE,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?wE(a):a===Re?Re:a._src).reduce((a,l)=>(a[a.length-1]===Re&&l===Re||a.push(l),a),[]),o.forEach((a,l)=>{a!==Re||o[l-1]===Re||(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]=Re))}),o.filter(a=>a!==Re).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;aa.sep!=="/"&&(e=e.split(aa.sep).join("/")),e=e.split(Yc),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 Pe.defaults(e).Minimatch}};Pe.Minimatch=wr});var rh=g((JB,th)=>{"use strict";th.exports=eh;var ca=D("fs"),{EventEmitter:vE}=D("events"),{Minimatch:fa}=Qc(),{resolve:EE}=D("path");function xE(t,e){return new Promise((r,i)=>{ca.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 Xc(t,e){return new Promise((r,i)=>{(e?ca.stat:ca.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?Xc(t,!1):null):r(null):r(o)})})}async function*Jc(t,e,r,i,n,s){let o=await xE(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 Xc(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*Jc(u,e,r,i,n,!1)):yield{relative:f,absolute:c,stats:h}}}async function*TE(t,e,r,i){yield*Jc("",t,e,r,i,!0)}function AE(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 vE{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=AE(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 fa(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 fa(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 fa(s,{dot:!0}))}this.iterator=TE(EE(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 eh(t,e,r){return new qn(t,e,r)}eh.ReaddirGlob=qn});var ed={};Vv(ed,{all:()=>wa,allLimit:()=>Sa,allSeries:()=>va,any:()=>Ia,anyLimit:()=>Da,anySeries:()=>Na,apply:()=>lh,applyEach:()=>ph,applyEachSeries:()=>gh,asyncify:()=>jn,auto:()=>ka,autoInject:()=>_h,cargo:()=>yh,cargoQueue:()=>mh,compose:()=>bh,concat:()=>pa,concatLimit:()=>mi,concatSeries:()=>ga,constant:()=>wh,default:()=>Nx,detect:()=>_a,detectLimit:()=>ya,detectSeries:()=>ma,dir:()=>vh,doDuring:()=>Bn,doUntil:()=>Eh,doWhilst:()=>Bn,during:()=>$n,each:()=>ba,eachLimit:()=>Un,eachOf:()=>Fe,eachOfLimit:()=>yi,eachOfSeries:()=>Xe,eachSeries:()=>Wn,ensureAsync:()=>qa,every:()=>wa,everyLimit:()=>Sa,everySeries:()=>va,filter:()=>Ea,filterLimit:()=>xa,filterSeries:()=>Ta,find:()=>_a,findLimit:()=>ya,findSeries:()=>ma,flatMap:()=>pa,flatMapLimit:()=>mi,flatMapSeries:()=>ga,foldl:()=>Sr,foldr:()=>Ra,forEach:()=>ba,forEachLimit:()=>Un,forEachOf:()=>Fe,forEachOfLimit:()=>yi,forEachOfSeries:()=>Xe,forEachSeries:()=>Wn,forever:()=>Th,groupBy:()=>Ah,groupByLimit:()=>Zn,groupBySeries:()=>Rh,inject:()=>Sr,log:()=>Oh,map:()=>Yn,mapLimit:()=>Si,mapSeries:()=>Pa,mapValues:()=>Ih,mapValuesLimit:()=>Qn,mapValuesSeries:()=>Dh,memoize:()=>Nh,nextTick:()=>Lh,parallel:()=>Ph,parallelLimit:()=>kh,priorityQueue:()=>Ch,queue:()=>ja,race:()=>Mh,reduce:()=>Sr,reduceRight:()=>Ra,reflect:()=>zn,reflectAll:()=>qh,reject:()=>Fh,rejectLimit:()=>jh,rejectSeries:()=>Bh,retry:()=>Gn,retryable:()=>zh,select:()=>Ea,selectLimit:()=>xa,selectSeries:()=>Ta,seq:()=>Ma,series:()=>Gh,setImmediate:()=>Rt,some:()=>Ia,someLimit:()=>Da,someSeries:()=>Na,sortBy:()=>$h,timeout:()=>Hh,times:()=>Vh,timesLimit:()=>Xn,timesSeries:()=>Yh,transform:()=>Kh,tryEach:()=>Zh,unmemoize:()=>Qh,until:()=>Xh,waterfall:()=>Jh,whilst:()=>$n,wrapSync:()=>jn});function lh(t,...e){return(...r)=>t(...e,...r)}function bi(t){return function(...e){var r=e.pop();return t.call(this,e,r)}}function ch(t){setTimeout(t,0)}function hh(t){return(e,...r)=>t(()=>e(...r))}function jn(t){return wi(t)?function(...e){let r=e.pop(),i=t.apply(this,e);return ih(i,r)}:bi(function(e,r){var i;try{i=t.apply(this,e)}catch(n){return r(n)}if(i&&typeof i.then=="function")return ih(i,r);r(null,i)})}function ih(t,e){return t.then(r=>{nh(e,null,r)},r=>{nh(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function nh(t,e,r){try{t(e,r)}catch(i){Rt(n=>{throw n},i)}}function wi(t){return t[Symbol.toStringTag]==="AsyncFunction"}function OE(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function IE(t){return typeof t[Symbol.asyncIterator]=="function"}function q(t){if(typeof t!="function")throw new Error("expected a function");return wi(t)?jn(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 dh(t){return function(r,...i){return M(function(s){var o=this;return t(r,(a,l)=>{q(a).apply(o,i.concat(l))},s)})}}function La(t,e,r,i){e=e||[];var n=[],s=0,o=q(r);return t(e,(a,l,u)=>{var f=s++;o(a,(c,h)=>{n[f]=h,u(c)})},a=>{i(a,n)})}function Hn(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 DE(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function NE(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function LE(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function PE(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 kE(t){if(Hn(t))return NE(t);var e=DE(t);return e?LE(e):PE(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 sh(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===Vn||n&&a<=0)return n=!0,i(null);u()}}function c(h){s||(o=!1,n=!0,i(h))}u()}function CE(t,e,r,i){return $e(e)(t,q(r),i)}function ME(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===Vn)&&r(null))}for(;i<s;i++)e(t[i],i,It(a))}function qE(t,e,r){return yi(t,1/0,e,r)}function FE(t,e,r){var i=Hn(t)?ME:qE;return i(t,q(e),r)}function jE(t,e,r){return La(Fe,t,e,r)}function BE(t,e,r){return yi(t,1,e,r)}function UE(t,e,r){return La(Xe,t,e,r)}function vr(){let t,e;function r(i,...n){if(i)return e(i);t(n.length>1?n:n[0])}return r[Er]=new Promise((i,n)=>{t=i,e=n}),r}function ka(t,e,r){typeof e!="number"&&(r=e,e=null),r=Ot(r||vr());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 A=E.slice(0,E.length-1),N=A.length;if(N===0){h(v,E),f.push(v);return}c[v]=N,A.forEach(x=>{if(!t[x])throw new Error("async.auto task `"+v+"` has a non-existent dependency `"+x+"` in "+A.join(", "));y(x,()=>{N--,N===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 A=l[v];A||(A=l[v]=[]),A.push(E)}function p(v){var E=l[v]||[];E.forEach(A=>A()),d()}function S(v,E){if(!a){var A=It((x,...O)=>{if(s--,x===!1){o=!0;return}if(O.length<2&&([O]=O),x){var w={};if(Object.keys(n).forEach(T=>{w[T]=n[T]}),w[v]=O,a=!0,l=Object.create(null),o)return;r(x,w)}else n[v]=O,p(v)});s++;var N=q(E[E.length-1]);E.length>1?N(n,A):N(A)}}function m(){for(var v,E=0;f.length;)v=f.pop(),E++,b(v).forEach(A=>{--c[A]===0&&f.push(A)});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(A=>{let N=t[A];Array.isArray(N)&&N.indexOf(v)>=0&&E.push(A)}),E}return r[Er]}function HE(t){let e="",r=0,i=t.indexOf("*/");for(;r<t.length;)if(t[r]==="/"&&t[r+1]==="/"){let n=t.indexOf(`
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 VE(t){let e=HE(t.toString()),r=e.match(WE);if(r||(r=e.match(zE)),!r)throw new Error(`could not parse args in autoInject
2
+ import{a as Tc}from"./chunk-L5Y2GUO6.js";import{a as xc}from"./chunk-HFQ7T5KT.js";import{a as vc}from"./chunk-DXKKUGFG.js";import{a as D,b as ZE,c as g,d as QE,e as XE,f as JE}from"./chunk-UR6MHSHU.js";var kc=g((XB,Cc)=>{"use strict";var uv=typeof process=="object"&&process&&process.platform==="win32";Cc.exports=uv?{sep:"\\"}:{sep:"/"}});var Bc=g((JB,jc)=>{"use strict";jc.exports=qc;function qc(t,e,r){t instanceof RegExp&&(t=Mc(t,r)),e instanceof RegExp&&(e=Mc(e,r));var i=Fc(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 Mc(t,e){var r=e.match(t);return r?r[0]:null}qc.range=Fc;function Fc(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 na=g((e3,Vc)=>{"use strict";var Uc=Bc();Vc.exports=hv;var Wc="\0SLASH"+Math.random()+"\0",Gc="\0OPEN"+Math.random()+"\0",ia="\0CLOSE"+Math.random()+"\0",zc="\0COMMA"+Math.random()+"\0",$c="\0PERIOD"+Math.random()+"\0";function ra(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function fv(t){return t.split("\\\\").join(Wc).split("\\{").join(Gc).split("\\}").join(ia).split("\\,").join(zc).split("\\.").join($c)}function cv(t){return t.split(Wc).join("\\").split(Gc).join("{").split(ia).join("}").split(zc).join(",").split($c).join(".")}function Hc(t){if(!t)return[""];var e=[],r=Uc("{","}",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=Hc(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function hv(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),gi(fv(t),!0).map(cv)):[]}function dv(t){return"{"+t+"}"}function pv(t){return/^-?0\d/.test(t)}function gv(t,e){return t<=e}function _v(t,e){return t>=e}function gi(t,e){var r=[],i=Uc("{","}",t);if(!i)return[t];var n=i.pre,s=i.post.length?gi(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+ia+i.post,gi(t)):[t];var h;if(f)h=i.body.split(/\.\./);else if(h=Hc(i.body),h.length===1&&(h=gi(h[0],!1).map(dv),h.length===1))return s.map(function(R){return i.pre+h[0]+R});var d;if(f){var y=ra(h[0]),p=ra(h[1]),S=Math.max(h[0].length,h[1].length),m=h.length==3?Math.max(Math.abs(ra(h[2])),1):1,b=gv,v=p<y;v&&(m*=-1,b=_v);var E=h.some(pv);d=[];for(var T=y;b(T,p);T+=m){var P;if(u)P=String.fromCharCode(T),P==="\\"&&(P="");else if(P=String(T),E){var x=S-P.length;if(x>0){var O=new Array(x+1).join("0");T<0?P="-"+O+P.slice(1):P=O+P}}d.push(P)}}else{d=[];for(var w=0;w<h.length;w++)d.push.apply(d,gi(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 Jc=g((r3,ua)=>{"use strict";var Ne=ua.exports=(t,e,r={})=>(Mn(e),!r.nocomment&&e.charAt(0)==="#"?!1:new wr(e,r).match(t));ua.exports=Ne;var aa=kc();Ne.sep=aa.sep;var Ae=Symbol("globstar **");Ne.GLOBSTAR=Ae;var yv=na(),Yc={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},la="[^/]",sa=la+"*?",mv="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",bv="(?:(?!(?:\\/|^)\\.).)*?",Qc=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),Kc=Qc("().*{}+?[]^$\\!"),wv=Qc("[.("),Zc=/\/+/;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)=>Xc(t,e);var Xc=(t,e={})=>(Mn(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:yv(t)),Sv=1024*64,Mn=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Sv)throw new TypeError("pattern is too long")},oa=Symbol("subparse");Ne.makeRe=(t,e)=>new wr(t,e||{}).makeRe();Ne.match=(t,e,r={})=>{let i=new wr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};var Ev=t=>t.replace(/\\(.)/g,"$1"),vv=t=>t.replace(/\\([^-\]])/g,"$1"),xv=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Tv=t=>t.replace(/[[\]\\]/g,"\\$&"),wr=class{constructor(e,r){Mn(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(Zc)),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 Xc(this.pattern,this.options)}parse(e,r){Mn(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+=sa,s=!0;break;case"?":n+=la,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;Kc[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:Yc[u].open,close:Yc[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("["+Tv(vv(d))+"]"),n+=O}catch{n=n.substring(0,c)+"(?:$.)"}s=!0,f=!1;continue;default:E(),Kc[O]&&!(O==="^"&&f)&&(n+="\\"),n+=O;break}}for(f&&(d=e.slice(h+1),p=this.parse(d,oa),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==="*"?sa:y.type==="?"?la:"\\"+y.type;s=!0,n=n.slice(0,y.reStart)+O+"\\("+x}E(),o&&(n+="\\\\");let T=wv[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,G=w.split(")").length,ue=w.split("(").length-G,Z=A;for(let V=0;V<ue;V++)Z=Z.replace(/\)[+*?]?/,"");A=Z;let te=A===""&&r!==oa?"(?:$|\\/)":"";n=w+R+A+te+N}if(n!==""&&s&&(n="(?=.)"+n),T&&(n=b()+n),r===oa)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return Ev(e);let P=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",P),{_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?sa:r.dot?mv:bv,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?xv(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;aa.sep!=="/"&&(e=e.split(aa.sep).join("/")),e=e.split(Zc),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=wr});var nh=g((i3,ih)=>{"use strict";ih.exports=rh;var ca=D("fs"),{EventEmitter:Rv}=D("events"),{Minimatch:fa}=Jc(),{resolve:Av}=D("path");function Ov(t,e){return new Promise((r,i)=>{ca.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 eh(t,e){return new Promise((r,i)=>{(e?ca.stat:ca.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?eh(t,!1):null):r(null):r(o)})})}async function*th(t,e,r,i,n,s){let o=await Ov(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 eh(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*th(u,e,r,i,n,!1)):yield{relative:f,absolute:c,stats:h}}}async function*Iv(t,e,r,i){yield*th("",t,e,r,i,!0)}function Dv(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 Rv{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=Dv(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 fa(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 fa(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 fa(s,{dot:!0}))}this.iterator=Iv(Av(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 rh(t,e,r){return new qn(t,e,r)}rh.ReaddirGlob=qn});var rd={};QE(rd,{all:()=>wa,allLimit:()=>Sa,allSeries:()=>Ea,any:()=>Ia,anyLimit:()=>Da,anySeries:()=>Pa,apply:()=>fh,applyEach:()=>_h,applyEachSeries:()=>yh,asyncify:()=>jn,auto:()=>Ca,autoInject:()=>mh,cargo:()=>bh,cargoQueue:()=>wh,compose:()=>Sh,concat:()=>pa,concatLimit:()=>mi,concatSeries:()=>ga,constant:()=>Eh,default:()=>kx,detect:()=>_a,detectLimit:()=>ya,detectSeries:()=>ma,dir:()=>xh,doDuring:()=>Bn,doUntil:()=>Th,doWhilst:()=>Bn,during:()=>$n,each:()=>ba,eachLimit:()=>Un,eachOf:()=>Fe,eachOfLimit:()=>yi,eachOfSeries:()=>Xe,eachSeries:()=>Wn,ensureAsync:()=>qa,every:()=>wa,everyLimit:()=>Sa,everySeries:()=>Ea,filter:()=>va,filterLimit:()=>xa,filterSeries:()=>Ta,find:()=>_a,findLimit:()=>ya,findSeries:()=>ma,flatMap:()=>pa,flatMapLimit:()=>mi,flatMapSeries:()=>ga,foldl:()=>Sr,foldr:()=>Aa,forEach:()=>ba,forEachLimit:()=>Un,forEachOf:()=>Fe,forEachOfLimit:()=>yi,forEachOfSeries:()=>Xe,forEachSeries:()=>Wn,forever:()=>Ah,groupBy:()=>Oh,groupByLimit:()=>Zn,groupBySeries:()=>Ih,inject:()=>Sr,log:()=>Dh,map:()=>Yn,mapLimit:()=>Si,mapSeries:()=>Na,mapValues:()=>Ph,mapValuesLimit:()=>Qn,mapValuesSeries:()=>Lh,memoize:()=>Nh,nextTick:()=>Ch,parallel:()=>kh,parallelLimit:()=>Mh,priorityQueue:()=>qh,queue:()=>ja,race:()=>Fh,reduce:()=>Sr,reduceRight:()=>Aa,reflect:()=>Gn,reflectAll:()=>jh,reject:()=>Bh,rejectLimit:()=>Uh,rejectSeries:()=>Wh,retry:()=>zn,retryable:()=>$h,select:()=>va,selectLimit:()=>xa,selectSeries:()=>Ta,seq:()=>Ma,series:()=>Hh,setImmediate:()=>At,some:()=>Ia,someLimit:()=>Da,someSeries:()=>Pa,sortBy:()=>Vh,timeout:()=>Yh,times:()=>Kh,timesLimit:()=>Xn,timesSeries:()=>Zh,transform:()=>Qh,tryEach:()=>Xh,unmemoize:()=>Jh,until:()=>ed,waterfall:()=>td,whilst:()=>$n,wrapSync:()=>jn});function fh(t,...e){return(...r)=>t(...e,...r)}function bi(t){return function(...e){var r=e.pop();return t.call(this,e,r)}}function dh(t){setTimeout(t,0)}function ph(t){return(e,...r)=>t(()=>e(...r))}function jn(t){return wi(t)?function(...e){let r=e.pop(),i=t.apply(this,e);return sh(i,r)}:bi(function(e,r){var i;try{i=t.apply(this,e)}catch(n){return r(n)}if(i&&typeof i.then=="function")return sh(i,r);r(null,i)})}function sh(t,e){return t.then(r=>{oh(e,null,r)},r=>{oh(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function oh(t,e,r){try{t(e,r)}catch(i){At(n=>{throw n},i)}}function wi(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Lv(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Nv(t){return typeof t[Symbol.asyncIterator]=="function"}function q(t){if(typeof t!="function")throw new Error("expected a function");return wi(t)?jn(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 gh(t){return function(r,...i){return M(function(s){var o=this;return t(r,(a,l)=>{q(a).apply(o,i.concat(l))},s)})}}function La(t,e,r,i){e=e||[];var n=[],s=0,o=q(r);return t(e,(a,l,u)=>{var f=s++;o(a,(c,h)=>{n[f]=h,u(c)})},a=>{i(a,n)})}function Hn(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 Cv(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function kv(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Mv(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 Fv(t){if(Hn(t))return kv(t);var e=Cv(t);return e?Mv(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 ah(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===Vn||n&&a<=0)return n=!0,i(null);u()}}function c(h){s||(o=!1,n=!0,i(h))}u()}function jv(t,e,r,i){return $e(e)(t,q(r),i)}function Bv(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===Vn)&&r(null))}for(;i<s;i++)e(t[i],i,It(a))}function Uv(t,e,r){return yi(t,1/0,e,r)}function Wv(t,e,r){var i=Hn(t)?Bv:Uv;return i(t,q(e),r)}function Gv(t,e,r){return La(Fe,t,e,r)}function zv(t,e,r){return yi(t,1,e,r)}function $v(t,e,r){return La(Xe,t,e,r)}function Er(){let t,e;function r(i,...n){if(i)return e(i);t(n.length>1?n:n[0])}return r[vr]=new Promise((i,n)=>{t=i,e=n}),r}function Ca(t,e,r){typeof e!="number"&&(r=e,e=null),r=Ot(r||Er());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),P=T.length;if(P===0){h(v,E),f.push(v);return}c[v]=P,T.forEach(x=>{if(!t[x])throw new Error("async.auto task `"+v+"` has a non-existent dependency `"+x+"` in "+T.join(", "));y(x,()=>{P--,P===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 P=q(E[E.length-1]);E.length>1?P(n,T):P(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 P=t[T];Array.isArray(P)&&P.indexOf(v)>=0&&E.push(T)}),E}return r[vr]}function Zv(t){let e="",r=0,i=t.indexOf("*/");for(;r<t.length;)if(t[r]==="/"&&t[r+1]==="/"){let n=t.indexOf(`
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 Qv(t){let e=Zv(t.toString()),r=e.match(Hv);if(r||(r=e.match(Vv)),!r)throw new Error(`could not parse args in autoInject
5
5
  Source:
6
- `+e);let[,i]=r;return i.replace(/\s/g,"").split(GE).map(n=>n.replace($E,"").trim())}function _h(t,e){var r={};return Object.keys(t).forEach(i=>{var n=t[i],s,o=wi(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=VE(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),q(n)(...c)}}),ka(r,e)}function oh(t,e){t.length=1,t.head=t.tail=e}function Ca(t,e,r){if(e==null)e=1;else if(e===0)throw new RangeError("Concurrency must not be zero");var i=q(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=(...A)=>{u(b,E),v(...A)};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,A){if(A!=null&&typeof A!="function")throw new Error("task callback must be a function");m.started=!0;var N,x;function O(T,...R){if(T)return E?x(T):N();if(R.length<=1)return N(R[0]);N(R)}var w=m._createTaskItem(b,E?O:A||O);if(v?m._tasks.unshift(w):m._tasks.push(w),c||(c=!0,Rt(()=>{c=!1,m.process()})),E||!A)return new Promise((T,R)=>{N=T,x=R})}function d(b){return function(v,...E){n-=1;for(var A=0,N=b.length;A<N;A++){var x=b[A],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()?(Rt(()=>f("drain")),!0):!1}let p=b=>v=>{if(!v)return new Promise((E,A)=>{l(b,(N,x)=>{if(N)return A(N);E(x)})});u(b),a(b,v)};var S=!1,m={_tasks:new da,_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 A=0;A<E;A++){var N=m._tasks.shift();b.push(N),s.push(N),v.push(N.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,Rt(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 yh(t,e){return Ca(t,1,e)}function mh(t,e,r){return Ca(t,e,r)}function YE(t,e,r,i){i=Ot(i);var n=q(r);return Xe(t,(s,o,a)=>{n(e,s,(l,u)=>{e=u,a(l)})},s=>i(s,e))}function Ma(...t){var e=t.map(q);return function(...r){var i=this,n=r[r.length-1];return typeof n=="function"?r.pop():n=vr(),Sr(e,r,(s,o,a)=>{o.apply(i,s.concat((l,...u)=>{a(l,u)}))},(s,o)=>n(s,...o)),n[Er]}}function bh(...t){return Ma(...t.reverse())}function KE(t,e,r,i){return La($e(e),t,r,i)}function ZE(t,e,r,i){var n=q(r);return Si(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 QE(t,e,r){return mi(t,1/0,e,r)}function XE(t,e,r){return mi(t,1,e,r)}function wh(...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=q(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,Vn);c()})},u=>{if(u)return s(u);s(null,o?a:e(!1))})}}function JE(t,e,r){return dt(i=>i,(i,n)=>n)(Fe,t,e,r)}function ex(t,e,r,i){return dt(n=>n,(n,s)=>s)($e(e),t,r,i)}function tx(t,e,r){return dt(i=>i,(i,n)=>n)($e(1),t,e,r)}function Sh(t){return(e,...r)=>q(e)(...r,(i,...n)=>{typeof console=="object"&&(i?console.error&&console.error(i):console[t]&&n.forEach(s=>console[t](s)))})}function rx(t,e,r){r=It(r);var i=q(t),n=q(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 Eh(t,e,r){let i=q(e);return Bn(t,(...n)=>{let s=n.pop();i(...n,(o,a)=>s(o,!a))},r)}function xh(t){return(e,r,i)=>t(e,i)}function ix(t,e,r){return Fe(t,xh(q(e)),r)}function nx(t,e,r,i){return $e(e)(t,xh(q(r)),i)}function sx(t,e,r){return Un(t,1,e,r)}function qa(t){return wi(t)?t:function(...e){var r=e.pop(),i=!0;e.push((...n)=>{i?Rt(()=>r(...n)):r(...n)}),t.apply(this,e),i=!1}}function ox(t,e,r){return dt(i=>!i,i=>!i)(Fe,t,e,r)}function ax(t,e,r,i){return dt(n=>!n,n=>!n)($e(e),t,r,i)}function lx(t,e,r){return dt(i=>!i,i=>!i)(Xe,t,e,r)}function ux(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 fx(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 Kn(t,e,r,i){var n=Hn(e)?ux:fx;return n(t,e,q(r),i)}function cx(t,e,r){return Kn(Fe,t,e,r)}function hx(t,e,r,i){return Kn($e(e),t,r,i)}function dx(t,e,r){return Kn(Xe,t,e,r)}function px(t,e){var r=It(e),i=q(qa(t));function n(s){if(s)return r(s);s!==!1&&i(n)}return n()}function gx(t,e,r,i){var n=q(r);return Si(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 Ah(t,e,r){return Zn(t,1/0,e,r)}function Rh(t,e,r){return Zn(t,1,e,r)}function _x(t,e,r,i){i=Ot(i);var n={},s=q(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 Ih(t,e,r){return Qn(t,1/0,e,r)}function Dh(t,e,r){return Qn(t,1,e,r)}function Nh(t,e=r=>r){var r=Object.create(null),i=Object.create(null),n=q(t),s=bi((o,a)=>{var l=e(...o);l in r?Rt(()=>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 Ph(t,e){return Fa(Fe,t,e)}function kh(t,e,r){return Fa($e(e),t,r)}function ja(t,e){var r=q(t);return Ca((i,n)=>{r(i[0],n)},e,1)}function yx(t){return(t<<1)+1}function ah(t){return(t+1>>1)-1}function ha(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function Ch(t,e){var r=ja(t,e),{push:i,pushAsync:n}=r;r._tasks=new Aa,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 mx(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++)q(t[r])(e)}function Ra(t,e,r,i){var n=[...t].reverse();return Sr(n,e,r,i)}function zn(t){var e=q(t);return bi(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 qh(t){var e;return Array.isArray(t)?e=t.map(zn):(e={},Object.keys(t).forEach(r=>{e[r]=zn.call(this,t[r])})),e}function Ba(t,e,r,i){let n=q(r);return Kn(t,e,(s,o)=>{n(s,(a,l)=>{o(a,!l)})},i)}function bx(t,e,r){return Ba(Fe,t,e,r)}function wx(t,e,r,i){return Ba($e(e),t,r,i)}function Sx(t,e,r){return Ba(Xe,t,e,r)}function Uh(t){return function(){return t}}function Gn(t,e,r){var i={times:Oa,intervalFunc:Uh(Wh)};if(arguments.length<3&&typeof t=="function"?(r=e||vr(),e=t):(vx(i,t),r=r||vr()),typeof e!="function")throw new Error("Invalid arguments for async.retry");var n=q(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[Er]}function vx(t,e){if(typeof e=="object")t.times=+e.times||Oa,t.intervalFunc=typeof e.interval=="function"?e.interval:Uh(+e.interval||Wh),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||Oa;else throw new Error("Invalid arguments for async.retry")}function zh(t,e){e||(e=t,t=null);let r=t&&t.arity||e.length;wi(e)&&(r+=1);var i=q(e);return bi((n,s)=>{(n.length<r-1||s==null)&&(n.push(s),s=vr());function o(a){i(...n,a)}return t?Gn(t,o,s):Gn(o,s),s[Er]})}function Gh(t,e){return Fa(Xe,t,e)}function Ex(t,e,r){return dt(Boolean,i=>i)(Fe,t,e,r)}function xx(t,e,r,i){return dt(Boolean,n=>n)($e(e),t,r,i)}function Tx(t,e,r){return dt(Boolean,i=>i)(Xe,t,e,r)}function Ax(t,e,r){var i=q(e);return Yn(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 Hh(t,e,r){var i=q(t);return bi((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 Rx(t){for(var e=Array(t);t--;)e[t]=t;return e}function Xn(t,e,r,i){var n=q(r);return Si(Rx(t),e,n,i)}function Vh(t,e,r){return Xn(t,1/0,e,r)}function Yh(t,e,r){return Xn(t,1,e,r)}function Kh(t,e,r,i){arguments.length<=3&&typeof e=="function"&&(i=r,r=e,e=Array.isArray(t)?[]:{}),i=Ot(i||vr());var n=q(r);return Fe(t,(s,o,a)=>{n(e,s,o,a)},s=>i(s,e)),i[Er]}function Ox(t,e){var r=null,i;return Wn(t,(n,s)=>{q(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 Qh(t){return(...e)=>(t.unmemoized||t)(...e)}function Ix(t,e,r){r=It(r);var i=q(e),n=q(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 Xh(t,e,r){let i=q(t);return $n(n=>i((s,o)=>n(s,!o)),e,r)}function Dx(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=q(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 RE,uh,fh,_i,Rt,Vn,$e,yi,Fe,Yn,ph,Xe,Pa,gh,Er,WE,zE,GE,$E,da,Sr,Si,mi,pa,ga,_a,ya,ma,vh,Bn,ba,Un,Wn,wa,Sa,va,Ea,xa,Ta,Th,Zn,Oh,Qn,Fn,Lh,Fa,Aa,Mh,Fh,jh,Bh,Oa,Wh,Ia,Da,Na,$h,Zh,$n,Jh,Nx,td=Hv(()=>{"use strict";RE=typeof queueMicrotask=="function"&&queueMicrotask,uh=typeof setImmediate=="function"&&setImmediate,fh=typeof process=="object"&&typeof process.nextTick=="function";RE?_i=queueMicrotask:uh?_i=setImmediate:fh?_i=process.nextTick:_i=ch;Rt=hh(_i);Vn={};$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(OE(e))return sh(e,t,r,i);if(IE(e))return sh(e[Symbol.asyncIterator](),t,r,i);var n=kE(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===Vn||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()};yi=M(CE,4);Fe=M(FE,3);Yn=M(jE,3),ph=dh(Yn);Xe=M(BE,3);Pa=M(UE,3),gh=dh(Pa),Er=Symbol("promiseCallback");WE=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,zE=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,GE=/,/,$E=/(=.+)?(\s*)$/;da=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):oh(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):oh(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}};Sr=M(YE,4);Si=M(KE,4);mi=M(ZE,4);pa=M(QE,3);ga=M(XE,3);_a=M(JE,3);ya=M(ex,4);ma=M(tx,3);vh=Sh("dir");Bn=M(rx,3);ba=M(ix,3);Un=M(nx,4);Wn=M(sx,3);wa=M(ox,3);Sa=M(ax,4);va=M(lx,3);Ea=M(cx,3);xa=M(hx,4);Ta=M(dx,3);Th=M(px,2);Zn=M(gx,4);Oh=Sh("log");Qn=M(_x,4);fh?Fn=process.nextTick:uh?Fn=setImmediate:Fn=ch;Lh=hh(Fn),Fa=M((t,e,r)=>{var i=Hn(e)?[]:{};t(e,(n,s,o)=>{q(n)((a,...l)=>{l.length<2&&([l]=l),i[s]=l,o(a)})},n=>r(n,i))},3);Aa=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&&ha(this.heap[e],this.heap[r=ah(e)]);){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}percDown(e){let r;for(;(r=yx(e))<this.heap.length&&(r+1<this.heap.length&&ha(this.heap[r+1],this.heap[r])&&(r=r+1),!ha(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=ah(this.heap.length-1);i>=0;i--)this.percDown(i);return this}};Mh=M(mx,2);Fh=M(bx,3);jh=M(wx,4);Bh=M(Sx,3);Oa=5,Wh=0;Ia=M(Ex,3);Da=M(xx,4);Na=M(Tx,3);$h=M(Ax,3);Zh=M(Ox);$n=M(Ix,3);Jh=M(Dx),Nx={apply:lh,applyEach:ph,applyEachSeries:gh,asyncify:jn,auto:ka,autoInject:_h,cargo:yh,cargoQueue:mh,compose:bh,concat:pa,concatLimit:mi,concatSeries:ga,constant:wh,detect:_a,detectLimit:ya,detectSeries:ma,dir:vh,doUntil:Eh,doWhilst:Bn,each:ba,eachLimit:Un,eachOf:Fe,eachOfLimit:yi,eachOfSeries:Xe,eachSeries:Wn,ensureAsync:qa,every:wa,everyLimit:Sa,everySeries:va,filter:Ea,filterLimit:xa,filterSeries:Ta,forever:Th,groupBy:Ah,groupByLimit:Zn,groupBySeries:Rh,log:Oh,map:Yn,mapLimit:Si,mapSeries:Pa,mapValues:Ih,mapValuesLimit:Qn,mapValuesSeries:Dh,memoize:Nh,nextTick:Lh,parallel:Ph,parallelLimit:kh,priorityQueue:Ch,queue:ja,race:Mh,reduce:Sr,reduceRight:Ra,reflect:zn,reflectAll:qh,reject:Fh,rejectLimit:jh,rejectSeries:Bh,retry:Gn,retryable:zh,seq:Ma,series:Gh,setImmediate:Rt,some:Ia,someLimit:Da,someSeries:Na,sortBy:$h,timeout:Hh,times:Vh,timesLimit:Xn,timesSeries:Yh,transform:Kh,tryEach:Zh,unmemoize:Qh,until:Xh,waterfall:Jh,whilst:$n,all:wa,allLimit:Sa,allSeries:va,any:Ia,anyLimit:Da,anySeries:Na,find:_a,findLimit:ya,findSeries:ma,flatMap:pa,flatMapLimit:mi,flatMapSeries:ga,forEach:ba,forEachSeries:Wn,forEachLimit:Un,forEachOf:Fe,forEachOfSeries:Xe,forEachOfLimit:yi,inject:Sr,foldl:Sr,foldr:Ra,select:Ea,selectLimit:xa,selectSeries:Ta,wrapSync:jn,during:$n,doDuring:Bn}});var id=g((e3,rd)=>{"use strict";var Dt=D("constants"),Lx=process.cwd,Jn=null,Px=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Jn||(Jn=Lx.call(process)),Jn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ua=process.chdir,process.chdir=function(t){Jn=null,Ua.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ua));var Ua;rd.exports=kx;function kx(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(){}),Px==="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,A,N){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 od=g((t3,sd)=>{"use strict";var nd=D("stream").Stream;sd.exports=Cx;function Cx(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);nd.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);nd.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 ld=g((r3,ad)=>{"use strict";ad.exports=qx;var Mx=Object.getPrototypeOf||function(t){return t.__proto__};function qx(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Mx(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var $a=g((i3,Ga)=>{"use strict";var ne=D("fs"),Fx=id(),jx=od(),Bx=ld(),es=D("util"),me,rs;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),rs=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",rs="___graceful-fs.previous");function Ux(){}function cd(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var Qt=Ux;es.debuglog?Qt=es.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Qt=function(){var t=es.format.apply(es,arguments);t="GFS4: "+t.split(/\n/).join(`
7
- GFS4: `),console.error(t)});ne[me]||(ud=global[me]||[],cd(ne,ud),ne.close=(function(t){function e(r,i){return t.call(ne,r,function(n){n||fd(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,rs,{value:t}),e})(ne.close),ne.closeSync=(function(t){function e(r){t.apply(ne,arguments),fd()}return Object.defineProperty(e,rs,{value:t}),e})(ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Qt(ne[me]),D("assert").equal(ne[me].length,0)}));var ud;global[me]||cd(global,ne[me]);Ga.exports=Wa(Bx(ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ne.__patched&&(Ga.exports=Wa(ne),ne.__patched=!0);function Wa(t){Fx(t),t.gracefulify=Wa,t.createReadStream=A,t.createWriteStream=N;var e=t.readFile;t.readFile=r;function r(w,T,R){return typeof T=="function"&&(R=T,T=null),P(w,T,R);function P(z,ue,Z,te){return e(z,ue,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xr([P,[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,T,R,P){return typeof R=="function"&&(P=R,R=null),z(w,T,R,P);function z(ue,Z,te,V,ye){return i(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([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,T,R,P){return typeof R=="function"&&(P=R,R=null),z(w,T,R,P);function z(ue,Z,te,V,ye){return s(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([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,T,R,P){return typeof R=="function"&&(P=R,R=0),z(w,T,R,P);function z(ue,Z,te,V,ye){return a(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([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,T,R){typeof T=="function"&&(R=T,T=null);var P=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 P(w,T,R);function z(ue,Z,te,V){return function(ye,re){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?xr([P,[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=jx(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,T){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(T,R){T?(w.autoClose&&w.destroy(),w.emit("error",T)):(w.fd=R,w.emit("open",R),w.read())})}function v(w,T){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(T,R){T?(w.destroy(),w.emit("error",T)):(w.fd=R,w.emit("open",R))})}function A(w,T){return new t.ReadStream(w,T)}function N(w,T){return new t.WriteStream(w,T)}var x=t.open;t.open=O;function O(w,T,R,P){return typeof R=="function"&&(P=R,R=null),z(w,T,R,P);function z(ue,Z,te,V,ye){return x(ue,Z,te,function(re,$B){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([z,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return t}function xr(t){Qt("ENQUEUE",t[0].name,t[1]),ne[me].push(t),za()}var ts;function fd(){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);za()}function za(){if(clearTimeout(ts),ts=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)Qt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Qt("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?(Qt("RETRY",e.name,r),e.apply(null,r.concat([n]))):ne[me].push(t)}ts===void 0&&(ts=setTimeout(za,0))}}});var is=g((n3,hd)=>{"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";hd.exports=Je});var vi=g((s3,Ha)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ha.exports={nextTick:Wx}:Ha.exports=process;function Wx(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 pd=g((o3,dd)=>{"use strict";var zx={}.toString;dd.exports=Array.isArray||function(t){return zx.call(t)=="[object Array]"}});var Va=g((a3,gd)=>{"use strict";gd.exports=D("stream")});var Ei=g((Ya,yd)=>{"use strict";var ns=D("buffer"),pt=ns.Buffer;function _d(t,e){for(var r in t)e[r]=t[r]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?yd.exports=ns:(_d(ns,Ya),Ya.Buffer=Tr);function Tr(t,e,r){return pt(t,e,r)}_d(pt,Tr);Tr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return pt(t,e,r)};Tr.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};Tr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return pt(t)};Tr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ns.SlowBuffer(t)}});var Ar=g(Ee=>{"use strict";function Gx(t){return Array.isArray?Array.isArray(t):ss(t)==="[object Array]"}Ee.isArray=Gx;function $x(t){return typeof t=="boolean"}Ee.isBoolean=$x;function Hx(t){return t===null}Ee.isNull=Hx;function Vx(t){return t==null}Ee.isNullOrUndefined=Vx;function Yx(t){return typeof t=="number"}Ee.isNumber=Yx;function Kx(t){return typeof t=="string"}Ee.isString=Kx;function Zx(t){return typeof t=="symbol"}Ee.isSymbol=Zx;function Qx(t){return t===void 0}Ee.isUndefined=Qx;function Xx(t){return ss(t)==="[object RegExp]"}Ee.isRegExp=Xx;function Jx(t){return typeof t=="object"&&t!==null}Ee.isObject=Jx;function e1(t){return ss(t)==="[object Date]"}Ee.isDate=e1;function t1(t){return ss(t)==="[object Error]"||t instanceof Error}Ee.isError=t1;function r1(t){return typeof t=="function"}Ee.isFunction=r1;function i1(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Ee.isPrimitive=i1;Ee.isBuffer=D("buffer").Buffer.isBuffer;function ss(t){return Object.prototype.toString.call(t)}});var md=g((u3,Ka)=>{"use strict";typeof Object.create=="function"?Ka.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ka.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 Rr=g((f3,Qa)=>{"use strict";try{if(Za=D("util"),typeof Za.inherits!="function")throw"";Qa.exports=Za.inherits}catch{Qa.exports=md()}var Za});var wd=g((c3,Xa)=>{"use strict";function n1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var bd=Ei().Buffer,xi=D("util");function s1(t,e,r){t.copy(e,r)}Xa.exports=(function(){function t(){n1(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 bd.alloc(0);for(var i=bd.allocUnsafe(r>>>0),n=this.head,s=0;n;)s1(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();xi&&xi.inspect&&xi.inspect.custom&&(Xa.exports.prototype[xi.inspect.custom]=function(){var t=xi.inspect({length:this.length});return this.constructor.name+" "+t})});var Ja=g((h3,Sd)=>{"use strict";var os=vi();function o1(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,os.nextTick(as,this,t)):os.nextTick(as,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,os.nextTick(as,r,s)):os.nextTick(as,r,s):e&&e(s)}),this)}function a1(){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 as(t,e){t.emit("error",e)}Sd.exports={destroy:o1,undestroy:a1}});var Ed=g((d3,vd)=>{"use strict";vd.exports=D("util").deprecate});var tl=g((p3,Nd)=>{"use strict";var Xt=vi();Nd.exports=fe;function Td(t){var e=this;this.next=null,this.entry=null,this.finish=function(){T1(e,t)}}var l1=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Xt.nextTick,Or;fe.WritableState=Ai;var Ad=Object.create(Ar());Ad.inherits=Rr();var u1={deprecate:Ed()},Rd=Va(),us=Ei().Buffer,f1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function c1(t){return us.from(t)}function h1(t){return us.isBuffer(t)||t instanceof f1}var Od=Ja();Ad.inherits(fe,Rd);function d1(){}function Ai(t,e){Or=Or||Jt(),t=t||{};var r=e instanceof Or;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){w1(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 Td(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:u1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ls;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ls=Function.prototype[Symbol.hasInstance],Object.defineProperty(fe,Symbol.hasInstance,{value:function(t){return ls.call(this,t)?!0:this!==fe?!1:t&&t._writableState instanceof Ai}})):ls=function(t){return t instanceof this};function fe(t){if(Or=Or||Jt(),!ls.call(fe,this)&&!(this instanceof Or))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)),Rd.call(this)}fe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function p1(t,e){var r=new Error("write after end");t.emit("error",r),Xt.nextTick(e,r)}function g1(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),Xt.nextTick(i,s),n=!1),n}fe.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&h1(t);return s&&!us.isBuffer(t)&&(t=c1(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=d1),i.ended?p1(this,r):(s||g1(this,i,t,r))&&(i.pendingcb++,n=y1(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&&Id(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 _1(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=us.from(e,r)),e}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function y1(t,e,r,i,n,s){if(!r){var o=_1(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 el(t,e,!1,a,i,n,s);return l}function el(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 m1(t,e,r,i,n){--e.pendingcb,r?(Xt.nextTick(n,i),Xt.nextTick(Ti,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Ti(t,e))}function b1(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function w1(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(b1(r),e)m1(t,r,i,e,n);else{var s=Dd(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Id(t,r),i?l1(xd,t,r,s,n):xd(t,r,s,n)}}function xd(t,e,r,i){r||S1(t,e),e.pendingcb--,i(),Ti(t,e)}function S1(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Id(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,el(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 Td(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,c=e.objectMode?1:l.length;if(el(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||x1(this,i,r)};function Dd(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function v1(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Ti(t,e)})}function E1(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Xt.nextTick(v1,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Ti(t,e){var r=Dd(e);return r&&(E1(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function x1(t,e,r){e.ending=!0,Ti(t,e),r&&(e.finished?Xt.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function T1(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=Od.destroy;fe.prototype._undestroy=Od.undestroy;fe.prototype._destroy=function(t,e){this.end(),e(t)}});var Jt=g((g3,Cd)=>{"use strict";var Ld=vi(),A1=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Cd.exports=gt;var Pd=Object.create(Ar());Pd.inherits=Rr();var kd=nl(),il=tl();Pd.inherits(gt,kd);for(rl=A1(il.prototype),fs=0;fs<rl.length;fs++)cs=rl[fs],gt.prototype[cs]||(gt.prototype[cs]=il.prototype[cs]);var rl,cs,fs;function gt(t){if(!(this instanceof gt))return new gt(t);kd.call(this,t),il.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",R1)}Object.defineProperty(gt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function R1(){this.allowHalfOpen||this._writableState.ended||Ld.nextTick(O1,this)}function O1(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(),Ld.nextTick(e,t)}});var al=g(qd=>{"use strict";var ol=Ei().Buffer,Md=ol.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 I1(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 D1(t){var e=I1(t);if(typeof e!="string"&&(ol.isEncoding===Md||!Md(t)))throw new Error("Unknown encoding: "+t);return e||t}qd.StringDecoder=Ri;function Ri(t){this.encoding=D1(t);var e;switch(this.encoding){case"utf16le":this.text=M1,this.end=q1,e=4;break;case"utf8":this.fillLast=P1,e=4;break;case"base64":this.text=F1,this.end=j1,e=3;break;default:this.write=B1,this.end=U1;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ol.allocUnsafe(e)}Ri.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||""};Ri.prototype.end=C1;Ri.prototype.text=k1;Ri.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 sl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function N1(t,e,r){var i=e.length-1;if(i<r)return 0;var n=sl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=sl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=sl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function L1(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 P1(t){var e=this.lastTotal-this.lastNeed,r=L1(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 k1(t,e){var r=N1(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 C1(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function M1(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 q1(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 F1(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 j1(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function B1(t){return t.toString(this.encoding)}function U1(t){return t&&t.length?this.write(t):""}});var nl=g((m3,Kd)=>{"use strict";var Dr=vi();Kd.exports=Q;var W1=pd(),Oi;Q.ReadableState=Gd;var y3=D("events").EventEmitter,Ud=function(t,e){return t.listeners(e).length},hl=Va(),Ii=Ei().Buffer,z1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function G1(t){return Ii.from(t)}function $1(t){return Ii.isBuffer(t)||t instanceof z1}var Wd=Object.create(Ar());Wd.inherits=Rr();var ll=D("util"),$=void 0;ll&&ll.debuglog?$=ll.debuglog("stream"):$=function(){};var H1=wd(),zd=Ja(),Ir;Wd.inherits(Q,hl);var ul=["error","close","destroy","pause","resume"];function V1(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):W1(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Gd(t,e){Oi=Oi||Jt(),t=t||{};var r=e instanceof Oi;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 H1,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&&(Ir||(Ir=al().StringDecoder),this.decoder=new Ir(t.encoding),this.encoding=t.encoding)}function Q(t){if(Oi=Oi||Jt(),!(this instanceof Q))return new Q(t);this._readableState=new Gd(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),hl.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=zd.destroy;Q.prototype._undestroy=zd.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=Ii.from(t,e),e=""),i=!0),$d(this,t,e,!1,i)};Q.prototype.unshift=function(t){return $d(this,t,null,!0,!1)};function $d(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,Q1(t,s);else{var o;n||(o=Y1(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Ii.prototype&&(e=G1(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):fl(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?fl(t,s,e,!1):Hd(t,s)):fl(t,s,e,!1))):i||(s.reading=!1)}return K1(s)}function fl(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&&hs(t)),Hd(t,e)}function Y1(t,e){var r;return!$1(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function K1(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 Ir||(Ir=al().StringDecoder),this._readableState.decoder=new Ir(t),this._readableState.encoding=t,this};var Fd=8388608;function Z1(t){return t>=Fd?t=Fd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function jd(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=Z1(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?cl(this):hs(this),null;if(t=jd(t,e),t===0&&e.ended)return e.length===0&&cl(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=jd(r,e)));var n;return t>0?n=Vd(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&&cl(this)),n!==null&&this.emit("data",n),n};function Q1(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,hs(t)}}function hs(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Dr.nextTick(Bd,t):Bd(t))}function Bd(t){$("emit readable"),t.emit("readable"),dl(t)}function Hd(t,e){e.readingMore||(e.readingMore=!0,Dr.nextTick(X1,t,e))}function X1(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?Dr.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=J1(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&&Yd(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),Ud(t,"error")===0&&t.emit("error",m)}V1(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 J1(t){return function(){var e=t._readableState;$("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Ud(t,"data")&&(e.flowing=!0,dl(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=Yd(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=hl.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&&hs(this):Dr.nextTick(eT,this))}return r};Q.prototype.addListener=Q.prototype.on;function eT(t){$("readable nexttick read 0"),t.read(0)}Q.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!0,tT(this,t)),this};function tT(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Dr.nextTick(rT,t,e))}function rT(t,e){e.reading||($("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),dl(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 dl(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<ul.length;s++)t.on(ul[s],this.emit.bind(this,ul[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=Vd;function Vd(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=iT(t,e.buffer,e.decoder),r}function iT(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?nT(t,e):sT(t,e),i}function nT(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 sT(t,e){var r=Ii.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 cl(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Dr.nextTick(oT,e,t))}function oT(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Yd(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var pl=g((b3,Xd)=>{"use strict";Xd.exports=_t;var ds=Jt(),Qd=Object.create(Ar());Qd.inherits=Rr();Qd.inherits(_t,ds);function aT(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);ds.call(this,t),this._transformState={afterTransform:aT.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",lT)}function lT(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){Zd(t,e,r)}):Zd(this,null,null)}_t.prototype.push=function(t,e){return this._transformState.needTransform=!1,ds.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;ds.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function Zd(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 rp=g((w3,tp)=>{"use strict";tp.exports=Di;var Jd=pl(),ep=Object.create(Ar());ep.inherits=Rr();ep.inherits(Di,Jd);function Di(t){if(!(this instanceof Di))return new Di(t);Jd.call(this,t)}Di.prototype._transform=function(t,e,r){r(null,t)}});var ip=g((be,ps)=>{"use strict";var et=D("stream");process.env.READABLE_STREAM==="disable"&&et?(ps.exports=et,be=ps.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=ps.exports=nl(),be.Stream=et||be,be.Readable=be,be.Writable=tl(),be.Duplex=Jt(),be.Transform=pl(),be.PassThrough=rp())});var sp=g((S3,np)=>{"use strict";np.exports=ip().PassThrough});var up=g((v3,lp)=>{"use strict";var op=D("util"),ys=sp();lp.exports={Readable:gs,Writable:_s};op.inherits(gs,ys);op.inherits(_s,ys);function ap(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function gs(t,e){if(!(this instanceof gs))return new gs(t,e);ys.call(this,e),ap(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 _s(t,e){if(!(this instanceof _s))return new _s(t,e);ys.call(this,e),ap(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 gl=g((E3,fp)=>{"use strict";fp.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 _l=g((x3,cp)=>{"use strict";function uT(t){return t}cp.exports=uT});var dp=g((T3,hp)=>{"use strict";function fT(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)}hp.exports=fT});var _p=g((A3,gp)=>{"use strict";var cT=dp(),pp=Math.max;function hT(t,e,r){return e=pp(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=pp(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),cT(t,this,a)}}gp.exports=hT});var mp=g((R3,yp)=>{"use strict";function dT(t){return function(){return t}}yp.exports=dT});var yl=g((O3,bp)=>{"use strict";var pT=typeof global=="object"&&global&&global.Object===Object&&global;bp.exports=pT});var Nr=g((I3,wp)=>{"use strict";var gT=yl(),_T=typeof self=="object"&&self&&self.Object===Object&&self,yT=gT||_T||Function("return this")();wp.exports=yT});var ms=g((D3,Sp)=>{"use strict";var mT=Nr(),bT=mT.Symbol;Sp.exports=bT});var Tp=g((N3,xp)=>{"use strict";var vp=ms(),Ep=Object.prototype,wT=Ep.hasOwnProperty,ST=Ep.toString,Ni=vp?vp.toStringTag:void 0;function vT(t){var e=wT.call(t,Ni),r=t[Ni];try{t[Ni]=void 0;var i=!0}catch{}var n=ST.call(t);return i&&(e?t[Ni]=r:delete t[Ni]),n}xp.exports=vT});var Rp=g((L3,Ap)=>{"use strict";var ET=Object.prototype,xT=ET.toString;function TT(t){return xT.call(t)}Ap.exports=TT});var Li=g((P3,Dp)=>{"use strict";var Op=ms(),AT=Tp(),RT=Rp(),OT="[object Null]",IT="[object Undefined]",Ip=Op?Op.toStringTag:void 0;function DT(t){return t==null?t===void 0?IT:OT:Ip&&Ip in Object(t)?AT(t):RT(t)}Dp.exports=DT});var Pi=g((k3,Np)=>{"use strict";function NT(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}Np.exports=NT});var ml=g((C3,Lp)=>{"use strict";var LT=Li(),PT=Pi(),kT="[object AsyncFunction]",CT="[object Function]",MT="[object GeneratorFunction]",qT="[object Proxy]";function FT(t){if(!PT(t))return!1;var e=LT(t);return e==CT||e==MT||e==kT||e==qT}Lp.exports=FT});var kp=g((M3,Pp)=>{"use strict";var jT=Nr(),BT=jT["__core-js_shared__"];Pp.exports=BT});var qp=g((q3,Mp)=>{"use strict";var bl=kp(),Cp=(function(){var t=/[^.]+$/.exec(bl&&bl.keys&&bl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function UT(t){return!!Cp&&Cp in t}Mp.exports=UT});var jp=g((F3,Fp)=>{"use strict";var WT=Function.prototype,zT=WT.toString;function GT(t){if(t!=null){try{return zT.call(t)}catch{}try{return t+""}catch{}}return""}Fp.exports=GT});var Up=g((j3,Bp)=>{"use strict";var $T=ml(),HT=qp(),VT=Pi(),YT=jp(),KT=/[\\^$.*+?()[\]{}|]/g,ZT=/^\[object .+?Constructor\]$/,QT=Function.prototype,XT=Object.prototype,JT=QT.toString,eA=XT.hasOwnProperty,tA=RegExp("^"+JT.call(eA).replace(KT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rA(t){if(!VT(t)||HT(t))return!1;var e=$T(t)?tA:ZT;return e.test(YT(t))}Bp.exports=rA});var zp=g((B3,Wp)=>{"use strict";function iA(t,e){return t?.[e]}Wp.exports=iA});var ki=g((U3,Gp)=>{"use strict";var nA=Up(),sA=zp();function oA(t,e){var r=sA(t,e);return nA(r)?r:void 0}Gp.exports=oA});var Hp=g((W3,$p)=>{"use strict";var aA=ki(),lA=(function(){try{var t=aA(Object,"defineProperty");return t({},"",{}),t}catch{}})();$p.exports=lA});var Kp=g((z3,Yp)=>{"use strict";var uA=mp(),Vp=Hp(),fA=_l(),cA=Vp?function(t,e){return Vp(t,"toString",{configurable:!0,enumerable:!1,value:uA(e),writable:!0})}:fA;Yp.exports=cA});var Qp=g((G3,Zp)=>{"use strict";var hA=800,dA=16,pA=Date.now;function gA(t){var e=0,r=0;return function(){var i=pA(),n=dA-(i-r);if(r=i,n>0){if(++e>=hA)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}Zp.exports=gA});var Jp=g(($3,Xp)=>{"use strict";var _A=Kp(),yA=Qp(),mA=yA(_A);Xp.exports=mA});var bs=g((H3,eg)=>{"use strict";var bA=_l(),wA=_p(),SA=Jp();function vA(t,e){return SA(wA(t,e,bA),t+"")}eg.exports=vA});var ws=g((V3,tg)=>{"use strict";function EA(t,e){return t===e||t!==t&&e!==e}tg.exports=EA});var wl=g((Y3,rg)=>{"use strict";var xA=9007199254740991;function TA(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=xA}rg.exports=TA});var Ss=g((K3,ig)=>{"use strict";var AA=ml(),RA=wl();function OA(t){return t!=null&&RA(t.length)&&!AA(t)}ig.exports=OA});var Sl=g((Z3,ng)=>{"use strict";var IA=9007199254740991,DA=/^(?:0|[1-9]\d*)$/;function NA(t,e){var r=typeof t;return e=e??IA,!!e&&(r=="number"||r!="symbol"&&DA.test(t))&&t>-1&&t%1==0&&t<e}ng.exports=NA});var og=g((Q3,sg)=>{"use strict";var LA=ws(),PA=Ss(),kA=Sl(),CA=Pi();function MA(t,e,r){if(!CA(r))return!1;var i=typeof e;return(i=="number"?PA(r)&&kA(e,r.length):i=="string"&&e in r)?LA(r[e],t):!1}sg.exports=MA});var lg=g((X3,ag)=>{"use strict";function qA(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}ag.exports=qA});var Lr=g((J3,ug)=>{"use strict";function FA(t){return t!=null&&typeof t=="object"}ug.exports=FA});var cg=g((e4,fg)=>{"use strict";var jA=Li(),BA=Lr(),UA="[object Arguments]";function WA(t){return BA(t)&&jA(t)==UA}fg.exports=WA});var vl=g((t4,pg)=>{"use strict";var hg=cg(),zA=Lr(),dg=Object.prototype,GA=dg.hasOwnProperty,$A=dg.propertyIsEnumerable,HA=hg((function(){return arguments})())?hg:function(t){return zA(t)&&GA.call(t,"callee")&&!$A.call(t,"callee")};pg.exports=HA});var El=g((r4,gg)=>{"use strict";var VA=Array.isArray;gg.exports=VA});var yg=g((i4,_g)=>{"use strict";function YA(){return!1}_g.exports=YA});var Sg=g((Ci,Pr)=>{"use strict";var KA=Nr(),ZA=yg(),wg=typeof Ci=="object"&&Ci&&!Ci.nodeType&&Ci,mg=wg&&typeof Pr=="object"&&Pr&&!Pr.nodeType&&Pr,QA=mg&&mg.exports===wg,bg=QA?KA.Buffer:void 0,XA=bg?bg.isBuffer:void 0,JA=XA||ZA;Pr.exports=JA});var Eg=g((n4,vg)=>{"use strict";var eR=Li(),tR=wl(),rR=Lr(),iR="[object Arguments]",nR="[object Array]",sR="[object Boolean]",oR="[object Date]",aR="[object Error]",lR="[object Function]",uR="[object Map]",fR="[object Number]",cR="[object Object]",hR="[object RegExp]",dR="[object Set]",pR="[object String]",gR="[object WeakMap]",_R="[object ArrayBuffer]",yR="[object DataView]",mR="[object Float32Array]",bR="[object Float64Array]",wR="[object Int8Array]",SR="[object Int16Array]",vR="[object Int32Array]",ER="[object Uint8Array]",xR="[object Uint8ClampedArray]",TR="[object Uint16Array]",AR="[object Uint32Array]",X={};X[mR]=X[bR]=X[wR]=X[SR]=X[vR]=X[ER]=X[xR]=X[TR]=X[AR]=!0;X[iR]=X[nR]=X[_R]=X[sR]=X[yR]=X[oR]=X[aR]=X[lR]=X[uR]=X[fR]=X[cR]=X[hR]=X[dR]=X[pR]=X[gR]=!1;function RR(t){return rR(t)&&tR(t.length)&&!!X[eR(t)]}vg.exports=RR});var xl=g((s4,xg)=>{"use strict";function OR(t){return function(e){return t(e)}}xg.exports=OR});var Ag=g((Mi,kr)=>{"use strict";var IR=yl(),Tg=typeof Mi=="object"&&Mi&&!Mi.nodeType&&Mi,qi=Tg&&typeof kr=="object"&&kr&&!kr.nodeType&&kr,DR=qi&&qi.exports===Tg,Tl=DR&&IR.process,NR=(function(){try{var t=qi&&qi.require&&qi.require("util").types;return t||Tl&&Tl.binding&&Tl.binding("util")}catch{}})();kr.exports=NR});var Dg=g((o4,Ig)=>{"use strict";var LR=Eg(),PR=xl(),Rg=Ag(),Og=Rg&&Rg.isTypedArray,kR=Og?PR(Og):LR;Ig.exports=kR});var Lg=g((a4,Ng)=>{"use strict";var CR=lg(),MR=vl(),qR=El(),FR=Sg(),jR=Sl(),BR=Dg(),UR=Object.prototype,WR=UR.hasOwnProperty;function zR(t,e){var r=qR(t),i=!r&&MR(t),n=!r&&!i&&FR(t),s=!r&&!i&&!n&&BR(t),o=r||i||n||s,a=o?CR(t.length,String):[],l=a.length;for(var u in t)(e||WR.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||jR(u,l)))&&a.push(u);return a}Ng.exports=zR});var kg=g((l4,Pg)=>{"use strict";var GR=Object.prototype;function $R(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||GR;return t===r}Pg.exports=$R});var Mg=g((u4,Cg)=>{"use strict";function HR(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}Cg.exports=HR});var Fg=g((f4,qg)=>{"use strict";var VR=Pi(),YR=kg(),KR=Mg(),ZR=Object.prototype,QR=ZR.hasOwnProperty;function XR(t){if(!VR(t))return KR(t);var e=YR(t),r=[];for(var i in t)i=="constructor"&&(e||!QR.call(t,i))||r.push(i);return r}qg.exports=XR});var Bg=g((c4,jg)=>{"use strict";var JR=Lg(),eO=Fg(),tO=Ss();function rO(t){return tO(t)?JR(t,!0):eO(t)}jg.exports=rO});var zg=g((h4,Wg)=>{"use strict";var iO=bs(),nO=ws(),sO=og(),oO=Bg(),Ug=Object.prototype,aO=Ug.hasOwnProperty,lO=iO(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&sO(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=oO(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||nO(f,Ug[u])&&!aO.call(t,u))&&(t[u]=s[u])}return t});Wg.exports=lO});var ie=g((d4,Gg)=>{"use strict";var Al=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}};Gg.exports={AggregateError:Al,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 Rl=g((p4,$g)=>{"use strict";$g.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((g4,Yg)=>{"use strict";var{format:uO,inspect:vs}=Rl(),{AggregateError:fO}=ie(),cO=globalThis.AggregateError||fO,hO=Symbol("kIsNodeError"),dO=["string","function","number","object","Function","Object","boolean","bigint","symbol"],pO=/^([A-Z][a-z0-9]*)+$/,gO="__node_internal_",Es={};function er(t,e){if(!t)throw new Es.ERR_INTERNAL_ASSERTION(e)}function Hg(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 _O(t,e,r){if(typeof e=="function")return er(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 er(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:uO(e,...r)}function we(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(_O(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[hO]=!0,Es[t]=i}function Vg(t){let e=gO+t.name;return Object.defineProperty(t,"name",{value:e}),t}function yO(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new cO([e,t],e.message);return r.code=e.code,r}return t||e}var Ol=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Es.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)=>{er(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)er(typeof l=="string","All expected entries have to be of type string"),dO.includes(l)?n.push(l.toLowerCase()):pO.test(l)?s.push(l):(er(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)=>{er(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)=>{er(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=Hg(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=Hg(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);Yg.exports={AbortError:Ol,aggregateTwoErrors:Vg(yO),hideStackFrames:Vg,codes:Es}});var n_=g((Bi,ji)=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var e_=new WeakMap,Il=new WeakMap;function J(t){let e=e_.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function Kg(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 Cr(t,e){e_.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,t_(n))}}Cr.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(){Kg(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||Kg(J(this))},initEvent(){}};Object.defineProperty(Cr.prototype,"constructor",{value:Cr,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(Cr.prototype,window.Event.prototype),Il.set(window.Event.prototype,Cr));function t_(t){return{get(){return J(this).event[t]},set(e){J(this).event[t]=e},configurable:!0,enumerable:!0}}function mO(t){return{value(){let e=J(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function bO(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?mO(s):t_(s))}}return i}function r_(t){if(t==null||t===Object.prototype)return Cr;let e=Il.get(t);return e==null&&(e=bO(r_(Object.getPrototypeOf(t)),t),Il.set(t,e)),e}function wO(t,e){let r=r_(Object.getPrototypeOf(e));return new r(t,e)}function SO(t){return J(t).immediateStopped}function vO(t,e){J(t).eventPhase=e}function EO(t,e){J(t).currentTarget=e}function Zg(t,e){J(t).passiveListener=e}var i_=new WeakMap,Qg=1,Xg=2,xs=3;function Ts(t){return t!==null&&typeof t=="object"}function Fi(t){let e=i_.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function xO(t){return{get(){let r=Fi(this).get(t);for(;r!=null;){if(r.listenerType===xs)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!Ts(e)&&(e=null);let r=Fi(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===xs?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:xs,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function Dl(t,e){Object.defineProperty(t,`on${e}`,xO(e))}function Jg(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)Dl(e.prototype,t[r]);return e}function He(){if(this instanceof He){i_.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return Jg(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 Jg(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"&&!Ts(e))throw new TypeError("'listener' should be a function or an object.");let i=Fi(this),n=Ts(r),o=(n?!!r.capture:!!r)?Qg:Xg,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=Fi(this),s=(Ts(r)?!!r.capture:!!r)?Qg:Xg,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=Fi(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=wO(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,Zg(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!==xs&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(SO(n))break;i=i.next}return Zg(n,null),vO(n,0),EO(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);Bi.defineEventAttribute=Dl;Bi.EventTarget=He;Bi.default=He;ji.exports=He;ji.exports.EventTarget=ji.exports.default=He;ji.exports.defineEventAttribute=Dl});var Mr=g((Wi,Ui)=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});var Nl=n_(),Nt=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(Nt.prototype,"abort");function TO(){let t=Object.create(Nt.prototype);return Nl.EventTarget.call(t),As.set(t,!1),t}function AO(t){As.get(t)===!1&&(As.set(t,!0),t.dispatchEvent({type:"abort"}))}var As=new WeakMap;Object.defineProperties(Nt.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Nt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Lt=class{constructor(){o_.set(this,TO())}get signal(){return s_(this)}abort(){AO(s_(this))}},o_=new WeakMap;function s_(t){let e=o_.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"});Wi.AbortController=Lt;Wi.AbortSignal=Nt;Wi.default=Lt;Ui.exports=Lt;Ui.exports.AbortController=Ui.exports.default=Lt;Ui.exports.AbortSignal=Nt});var Oe=g((_4,Pl)=>{"use strict";var RO=D("buffer"),{format:OO,inspect:IO}=Rl(),{codes:{ERR_INVALID_ARG_TYPE:Ll}}=xe(),{kResistStopPropagation:DO,AggregateError:NO,SymbolDispose:LO}=ie(),PO=globalThis.AbortSignal||Mr().AbortSignal,kO=globalThis.AbortController||Mr().AbortController,CO=Object.getPrototypeOf(async function(){}).constructor,a_=globalThis.Blob||RO.Blob,MO=typeof a_<"u"?function(e){return e instanceof a_}:function(e){return!1},l_=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Ll(e,"AbortSignal",t)},qO=(t,e)=>{if(typeof t!="function")throw new Ll(e,"Function",t)};Pl.exports={AggregateError:NO,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:OO,inspect:IO,types:{isAsyncFunction(t){return t instanceof CO},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:MO,deprecate(t,e){return t},addAbortListener:D("events").addAbortListener||function(e,r){if(e===void 0)throw new Ll("signal","AbortSignal",e);l_(e,"signal"),qO(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[DO]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[LO](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:PO.any||function(e){if(e.length===1)return e[0];let r=new kO,i=()=>r.abort();return e.forEach(n=>{l_(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};Pl.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Fr=g((y4,m_)=>{"use strict";var{ArrayIsArray:Cl,ArrayPrototypeIncludes:h_,ArrayPrototypeJoin:d_,ArrayPrototypeMap:FO,NumberIsInteger:Ml,NumberIsNaN:jO,NumberMAX_SAFE_INTEGER:BO,NumberMIN_SAFE_INTEGER:UO,NumberParseInt:WO,ObjectPrototypeHasOwnProperty:zO,RegExpPrototypeExec:p_,String:GO,StringPrototypeToUpperCase:$O,StringPrototypeTrim:HO}=ie(),{hideStackFrames:je,codes:{ERR_SOCKET_BAD_PORT:VO,ERR_INVALID_ARG_TYPE:Te,ERR_INVALID_ARG_VALUE:qr,ERR_OUT_OF_RANGE:tr,ERR_UNKNOWN_SIGNAL:u_}}=xe(),{normalizeEncoding:YO}=Oe(),{isAsyncFunction:KO,isArrayBufferView:ZO}=Oe().types,f_={};function QO(t){return t===(t|0)}function XO(t){return t===t>>>0}var JO=/^[0-7]+$/,eI="must be a 32-bit unsigned integer or an octal string";function tI(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(p_(JO,t)===null)throw new qr(e,t,eI);t=WO(t,8)}return g_(t,e),t}var rI=je((t,e,r=UO,i=BO)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),iI=je((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),g_=je((t,e,r=!1)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new tr(e,`>= ${i} && <= ${n}`,t)});function ql(t,e){if(typeof t!="string")throw new Te(e,"string",t)}function nI(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)&&jO(t))throw new tr(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var sI=je((t,e,r)=>{if(!h_(r,t)){let n="must be one of: "+d_(FO(r,s=>typeof s=="string"?`'${s}'`:GO(s)),", ");throw new qr(e,t,n)}});function __(t,e){if(typeof t!="boolean")throw new Te(e,"boolean",t)}function kl(t,e,r){return t==null||!zO(t,e)?r:t[e]}var oI=je((t,e,r=null)=>{let i=kl(r,"allowArray",!1),n=kl(r,"allowFunction",!1);if(!kl(r,"nullable",!1)&&t===null||!i&&Cl(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Te(e,"Object",t)}),aI=je((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Te(e,"a dictionary",t)}),Rs=je((t,e,r=0)=>{if(!Cl(t))throw new Te(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new qr(e,t,i)}});function lI(t,e){Rs(t,e);for(let r=0;r<t.length;r++)ql(t[r],`${e}[${r}]`)}function uI(t,e){Rs(t,e);for(let r=0;r<t.length;r++)__(t[r],`${e}[${r}]`)}function fI(t,e){Rs(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);y_(i,n)}}function cI(t,e="signal"){if(ql(t,e),f_[t]===void 0)throw f_[$O(t)]!==void 0?new u_(t+" (signals must use all capital letters)"):new u_(t)}var hI=je((t,e="buffer")=>{if(!ZO(t))throw new Te(e,["Buffer","TypedArray","DataView"],t)});function dI(t,e){let r=YO(e),i=t.length;if(r==="hex"&&i%2!==0)throw new qr("encoding",e,`is invalid for data of length ${i}`)}function pI(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&HO(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new VO(e,t,r);return t|0}var y_=je((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Te(e,"AbortSignal",t)}),gI=je((t,e)=>{if(typeof t!="function")throw new Te(e,"Function",t)}),_I=je((t,e)=>{if(typeof t!="function"||KO(t))throw new Te(e,"Function",t)}),yI=je((t,e)=>{if(t!==void 0)throw new Te(e,"undefined",t)});function mI(t,e,r){if(!h_(r,t))throw new Te(e,`('${d_(r,"|")}')`,t)}var bI=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function c_(t,e){if(typeof t>"u"||!p_(bI,t))throw new qr(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function wI(t){if(typeof t=="string")return c_(t,"hints"),t;if(Cl(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];c_(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new qr("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}m_.exports={isInt32:QO,isUint32:XO,parseFileMode:tI,validateArray:Rs,validateStringArray:lI,validateBooleanArray:uI,validateAbortSignalArray:fI,validateBoolean:__,validateBuffer:hI,validateDictionary:aI,validateEncoding:dI,validateFunction:gI,validateInt32:iI,validateInteger:rI,validateNumber:nI,validateObject:oI,validateOneOf:sI,validatePlainFunction:_I,validatePort:pI,validateSignalName:cI,validateString:ql,validateUint32:g_,validateUndefined:yI,validateUnion:mI,validateAbortSignal:y_,validateLinkHeaderValue:wI}});var Pt=g((m4,b_)=>{"use strict";b_.exports=global.process});var rt=g((b4,k_)=>{"use strict";var{SymbolAsyncIterator:w_,SymbolIterator:S_,SymbolFor:rr}=ie(),v_=rr("nodejs.stream.destroyed"),E_=rr("nodejs.stream.errored"),Fl=rr("nodejs.stream.readable"),jl=rr("nodejs.stream.writable"),x_=rr("nodejs.stream.disturbed"),SI=rr("nodejs.webstream.isClosedPromise"),vI=rr("nodejs.webstream.controllerErrorFunction");function Os(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 Is(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 EI(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 T_(t){return!!(t&&!tt(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function A_(t){return!!(t&&!tt(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function R_(t){return!!(t&&!tt(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function xI(t){return T_(t)||A_(t)||R_(t)}function TI(t,e){return t==null?!1:e===!0?typeof t[w_]=="function":e===!1?typeof t[S_]=="function":typeof t[w_]=="function"||typeof t[S_]=="function"}function Ds(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[v_]||i!=null&&i.destroyed)}function O_(t){if(!Is(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 AI(t,e){if(!Is(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 RI(t){if(!Os(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 I_(t,e){if(!Os(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 D_(t){return t&&t[Fl]!=null?t[Fl]:typeof t?.readable!="boolean"?null:Ds(t)?!1:Os(t)&&t.readable&&!I_(t)}function N_(t){return t&&t[jl]!=null?t[jl]:typeof t?.writable!="boolean"?null:Ds(t)?!1:Is(t)&&t.writable&&!O_(t)}function OI(t,e){return tt(t)?Ds(t)?!0:!(e?.readable!==!1&&D_(t)||e?.writable!==!1&&N_(t)):null}function II(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 DI(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 NI(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"&&L_(t)?t._closed:null}function L_(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function P_(t){return typeof t._sent100=="boolean"&&L_(t)}function LI(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 PI(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&P_(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function kI(t){var e;return!!(t&&((e=t[x_])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function CI(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[E_])!==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))}k_.exports={isDestroyed:Ds,kIsDestroyed:v_,isDisturbed:kI,kIsDisturbed:x_,isErrored:CI,kIsErrored:E_,isReadable:D_,kIsReadable:Fl,kIsClosedPromise:SI,kControllerErrorFunction:vI,kIsWritable:jl,isClosed:NI,isDuplexNodeStream:EI,isFinished:OI,isIterable:TI,isReadableNodeStream:Os,isReadableStream:T_,isReadableEnded:RI,isReadableFinished:I_,isReadableErrored:DI,isNodeStream:tt,isWebStream:xI,isWritable:N_,isWritableNodeStream:Is,isWritableStream:A_,isWritableEnded:O_,isWritableFinished:AI,isWritableErrored:II,isServerRequest:LI,isServerResponse:P_,willEmitClose:PI,isTransformStream:R_}});var yt=g((w4,Gl)=>{"use strict";var kt=Pt(),{AbortError:z_,codes:MI}=xe(),{ERR_INVALID_ARG_TYPE:qI,ERR_STREAM_PREMATURE_CLOSE:C_}=MI,{kEmptyObject:Ul,once:Wl}=Oe(),{validateAbortSignal:FI,validateFunction:jI,validateObject:BI,validateBoolean:UI}=Fr(),{Promise:WI,PromisePrototypeThen:zI,SymbolDispose:G_}=ie(),{isClosed:GI,isReadable:M_,isReadableNodeStream:Bl,isReadableStream:$I,isReadableFinished:q_,isReadableErrored:F_,isWritable:j_,isWritableNodeStream:B_,isWritableStream:HI,isWritableFinished:U_,isWritableErrored:W_,isNodeStream:VI,willEmitClose:YI,kIsClosedPromise:KI}=rt(),jr;function ZI(t){return t.setHeader&&typeof t.abort=="function"}var zl=()=>{};function $_(t,e,r){var i,n;if(arguments.length===2?(r=e,e=Ul):e==null?e=Ul:BI(e,"options"),jI(r,"callback"),FI(e.signal,"options.signal"),r=Wl(r),$I(t)||HI(t))return QI(t,e,r);if(!VI(t))throw new qI("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:Bl(t),o=(n=e.writable)!==null&&n!==void 0?n:B_(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||h()},f=YI(t)&&Bl(t)===s&&B_(t)===o,c=U_(t,!1),h=()=>{c=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||d)&&r.call(t)},d=q_(t,!1),y=()=>{d=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||c)&&r.call(t)},p=A=>{r.call(t,A)},S=GI(t),m=()=>{S=!0;let A=W_(t)||F_(t);if(A&&typeof A!="boolean")return r.call(t,A);if(s&&!d&&Bl(t,!0)&&!q_(t,!1))return r.call(t,new C_);if(o&&!c&&!U_(t,!1))return r.call(t,new C_);r.call(t)},b=()=>{S=!0;let A=W_(t)||F_(t);if(A&&typeof A!="boolean")return r.call(t,A);r.call(t)},v=()=>{t.req.on("finish",h)};ZI(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?kt.nextTick(m):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?f||kt.nextTick(b):(!s&&(!f||M_(t))&&(c||j_(t)===!1)||!o&&(!f||j_(t))&&(d||M_(t)===!1)||l&&t.req&&t.aborted)&&kt.nextTick(b);let E=()=>{r=zl,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 A=()=>{let N=r;E(),N.call(t,new z_(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)kt.nextTick(A);else{jr=jr||Oe().addAbortListener;let N=jr(e.signal,A),x=r;r=Wl((...O)=>{N[G_](),x.apply(t,O)})}}return E}function QI(t,e,r){let i=!1,n=zl;if(e.signal)if(n=()=>{i=!0,r.call(t,new z_(void 0,{cause:e.signal.reason}))},e.signal.aborted)kt.nextTick(n);else{jr=jr||Oe().addAbortListener;let o=jr(e.signal,n),a=r;r=Wl((...l)=>{o[G_](),a.apply(t,l)})}let s=(...o)=>{i||kt.nextTick(()=>r.apply(t,o))};return zI(t[KI].promise,s,s),zl}function XI(t,e){var r;let i=!1;return e===null&&(e=Ul),(r=e)!==null&&r!==void 0&&r.cleanup&&(UI(e.cleanup,"cleanup"),i=e.cleanup),new WI((n,s)=>{let o=$_(t,e,a=>{i&&o(),a?s(a):n()})})}Gl.exports=$_;Gl.exports.finished=XI});var ir=g((S4,J_)=>{"use strict";var it=Pt(),{aggregateTwoErrors:JI,codes:{ERR_MULTIPLE_CALLBACK:eD},AbortError:tD}=xe(),{Symbol:Y_}=ie(),{kIsDestroyed:rD,isDestroyed:iD,isFinished:nD,isServerRequest:sD}=rt(),K_=Y_("kDestroy"),$l=Y_("kConstruct");function Z_(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function oD(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):(Z_(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?H_(this,t,e):this.once(K_,function(s){H_(this,JI(s,t),e)}),this)}function H_(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;Z_(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?it.nextTick(aD,t,s):it.nextTick(Q_,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function aD(t,e){Hl(t,e),Q_(t)}function Q_(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 Hl(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 lD(){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 Vl(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(Hl,t,e):Hl(t,e))}function uD(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($l,e),!(t.listenerCount($l)>1)&&it.nextTick(fD,t)}function fD(t){let e=!1;function r(i){if(e){Vl(t,i??new eD);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(K_,i):i?Vl(t,i,!0):it.nextTick(cD,t)}try{t._construct(i=>{it.nextTick(r,i)})}catch(i){it.nextTick(r,i)}}function cD(t){t.emit($l)}function V_(t){return t?.setHeader&&typeof t.abort=="function"}function X_(t){t.emit("close")}function hD(t,e){t.emit("error",e),it.nextTick(X_,t)}function dD(t,e){!t||iD(t)||(!e&&!nD(t)&&(e=new tD),sD(t)?(t.socket=null,t.destroy(e)):V_(t)?t.abort():V_(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?it.nextTick(hD,t,e):it.nextTick(X_,t),t.destroyed||(t[rD]=!0))}J_.exports={construct:uD,destroyer:dD,destroy:oD,undestroy:lD,errorOrDestroy:Vl}});var Ps=g((v4,ty)=>{"use strict";var{ArrayIsArray:pD,ObjectSetPrototypeOf:ey}=ie(),{EventEmitter:Ns}=D("events");function Ls(t){Ns.call(this,t)}ey(Ls.prototype,Ns.prototype);ey(Ls,Ns);Ls.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(),Ns.listenerCount(this,"error")===0&&this.emit("error",f)}Yl(r,"error",l),Yl(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 Yl(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):pD(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}ty.exports={Stream:Ls,prependListener:Yl}});var zi=g((E4,ks)=>{"use strict";var{SymbolDispose:gD}=ie(),{AbortError:ry,codes:_D}=xe(),{isNodeStream:iy,isWebStream:yD,kControllerErrorFunction:mD}=rt(),bD=yt(),{ERR_INVALID_ARG_TYPE:ny}=_D,Kl,wD=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new ny(e,"AbortSignal",t)};ks.exports.addAbortSignal=function(e,r){if(wD(e,"signal"),!iy(r)&&!yD(r))throw new ny("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=iy(e)?()=>{e.destroy(new ry(void 0,{cause:t.reason}))}:()=>{e[mD](new ry(void 0,{cause:t.reason}))};if(t.aborted)r();else{Kl=Kl||Oe().addAbortListener;let i=Kl(t,r);bD(e,i[gD])}return e}});var ay=g((T4,oy)=>{"use strict";var{StringPrototypeSlice:sy,SymbolIterator:SD,TypedArrayPrototypeSet:Cs,Uint8Array:vD}=ie(),{Buffer:Zl}=D("buffer"),{inspect:ED}=Oe();oy.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 Zl.alloc(0);let r=Zl.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)Cs(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}*[SD](){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+=sy(s,0,e),this.head=i,i.data=sy(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Zl.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)Cs(r,o,i-e),e-=o.length;else{e===o.length?(Cs(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(Cs(r,new vD(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 ED(this,{...r,depth:0,customInspect:!1})}}});var Gi=g((A4,cy)=>{"use strict";var{MathFloor:xD,NumberIsInteger:TD}=ie(),{validateInteger:AD}=Fr(),{ERR_INVALID_ARG_VALUE:RD}=xe().codes,ly=16*1024,uy=16;function OD(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function fy(t){return t?uy:ly}function ID(t,e){AD(e,"value",0),t?uy=e:ly=e}function DD(t,e,r,i){let n=OD(e,i,r);if(n!=null){if(!TD(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new RD(s,n)}return xD(n)}return fy(t.objectMode)}cy.exports={getHighWaterMark:DD,getDefaultHighWaterMark:fy,setDefaultHighWaterMark:ID}});var py=g((Ql,dy)=>{"use strict";var Ms=D("buffer"),nt=Ms.Buffer;function hy(t,e){for(var r in t)e[r]=t[r]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?dy.exports=Ms:(hy(Ms,Ql),Ql.Buffer=nr);function nr(t,e,r){return nt(t,e,r)}nr.prototype=Object.create(nt.prototype);hy(nt,nr);nr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return nt(t,e,r)};nr.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};nr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nt(t)};nr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ms.SlowBuffer(t)}});var yy=g(_y=>{"use strict";var Jl=py().Buffer,gy=Jl.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 ND(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 LD(t){var e=ND(t);if(typeof e!="string"&&(Jl.isEncoding===gy||!gy(t)))throw new Error("Unknown encoding: "+t);return e||t}_y.StringDecoder=$i;function $i(t){this.encoding=LD(t);var e;switch(this.encoding){case"utf16le":this.text=FD,this.end=jD,e=4;break;case"utf8":this.fillLast=CD,e=4;break;case"base64":this.text=BD,this.end=UD,e=3;break;default:this.write=WD,this.end=zD;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Jl.allocUnsafe(e)}$i.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||""};$i.prototype.end=qD;$i.prototype.text=MD;$i.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 Xl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function PD(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Xl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Xl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Xl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function kD(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 CD(t){var e=this.lastTotal-this.lastNeed,r=kD(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 MD(t,e){var r=PD(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 qD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function FD(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 jD(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 BD(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 UD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function WD(t){return t.toString(this.encoding)}function zD(t){return t&&t.length?this.write(t):""}});var eu=g((O4,Sy)=>{"use strict";var my=Pt(),{PromisePrototypeThen:GD,SymbolAsyncIterator:by,SymbolIterator:wy}=ie(),{Buffer:$D}=D("buffer"),{ERR_INVALID_ARG_TYPE:HD,ERR_STREAM_NULL_VALUES:VD}=xe().codes;function YD(t,e,r){let i;if(typeof e=="string"||e instanceof $D)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[by])n=!0,i=e[by]();else if(e&&e[wy])n=!1,i=e[wy]();else throw new HD("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){GD(a(u),()=>my.nextTick(f,u),c=>my.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 VD;if(s.push(c))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}Sy.exports=YD});var Vi=g((I4,jy)=>{"use strict";var Ve=Pt(),{ArrayPrototypeIndexOf:KD,NumberIsInteger:ZD,NumberIsNaN:QD,NumberParseInt:XD,ObjectDefineProperties:lu,ObjectKeys:JD,ObjectSetPrototypeOf:xy,Promise:Ty,SafeSet:eN,SymbolAsyncDispose:tN,SymbolAsyncIterator:rN,Symbol:iN}=ie();jy.exports=C;C.ReadableState=Bs;var{EventEmitter:nN}=D("events"),{Stream:Ct,prependListener:sN}=Ps(),{Buffer:tu}=D("buffer"),{addAbortSignal:oN}=zi(),Ay=yt(),B=Oe().debuglog("stream",t=>{B=t}),aN=ay(),Wr=ir(),{getHighWaterMark:lN,getDefaultHighWaterMark:uN}=Gi(),{aggregateTwoErrors:vy,codes:{ERR_INVALID_ARG_TYPE:fN,ERR_METHOD_NOT_IMPLEMENTED:cN,ERR_OUT_OF_RANGE:hN,ERR_STREAM_PUSH_AFTER_EOF:dN,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:pN},AbortError:gN}=xe(),{validateObject:_N}=Fr(),sr=iN("kPaused"),{StringDecoder:Ry}=yy(),yN=eu();xy(C.prototype,Ct.prototype);xy(C,Ct);var ru=()=>{},{errorOrDestroy:Br}=Wr,Ur=1,mN=2,Oy=4,Hi=8,Iy=16,qs=32,Fs=64,Dy=128,bN=256,wN=512,SN=1024,ou=2048,au=4096,vN=8192,EN=16384,xN=32768,Ny=65536,TN=1<<17,AN=1<<18;function ce(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}lu(Bs.prototype,{objectMode:ce(Ur),ended:ce(mN),endEmitted:ce(Oy),reading:ce(Hi),constructed:ce(Iy),sync:ce(qs),needReadable:ce(Fs),emittedReadable:ce(Dy),readableListening:ce(bN),resumeScheduled:ce(wN),errorEmitted:ce(SN),emitClose:ce(ou),autoDestroy:ce(au),destroyed:ce(vN),closed:ce(EN),closeEmitted:ce(xN),multiAwaitDrain:ce(Ny),readingMore:ce(TN),dataEmitted:ce(AN)});function Bs(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.state=ou|au|Iy|qs,t&&t.objectMode&&(this.state|=Ur),r&&t&&t.readableObjectMode&&(this.state|=Ur),this.highWaterMark=t?lN(this,t,"readableHighWaterMark",r):uN(!1),this.buffer=new aN,this.length=0,this.pipes=[],this.flowing=null,this[sr]=null,t&&t.emitClose===!1&&(this.state&=~ou),t&&t.autoDestroy===!1&&(this.state&=~au),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Ry(t.encoding),this.encoding=t.encoding)}function C(t){if(!(this instanceof C))return new C(t);let e=this instanceof st();this._readableState=new Bs(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&&oN(t.signal,this)),Ct.call(this,t),Wr.construct(this,()=>{this._readableState.needReadable&&js(this,this._readableState)})}C.prototype.destroy=Wr.destroy;C.prototype._undestroy=Wr.undestroy;C.prototype._destroy=function(t,e){e(t)};C.prototype[nN.captureRejectionSymbol]=function(t){this.destroy(t)};C.prototype[tN]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new gN,this.destroy(t)),new Ty((e,r)=>Ay(this,i=>i&&i!==t?r(i):e(null)))};C.prototype.push=function(t,e){return Ly(this,t,e,!1)};C.prototype.unshift=function(t,e){return Ly(this,t,e,!0)};function Ly(t,e,r,i){B("readableAddChunk",e);let n=t._readableState,s;if((n.state&Ur)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=tu.from(e,r).toString(n.encoding):(e=tu.from(e,r),r=""))):e instanceof tu?r="":Ct._isUint8Array(e)?(e=Ct._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new fN("chunk",["string","Buffer","Uint8Array"],e))),s)Br(t,s);else if(e===null)n.state&=~Hi,IN(t,n);else if((n.state&Ur)!==0||e&&e.length>0)if(i)if((n.state&Oy)!==0)Br(t,new pN);else{if(n.destroyed||n.errored)return!1;iu(t,n,e,!0)}else if(n.ended)Br(t,new dN);else{if(n.destroyed||n.errored)return!1;n.state&=~Hi,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?iu(t,n,e,!1):js(t,n)):iu(t,n,e,!1)}else i||(n.state&=~Hi,js(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function iu(t,e,r,i){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&Ny)!==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&Fs)!==0&&Us(t)),js(t,e)}C.prototype.isPaused=function(){let t=this._readableState;return t[sr]===!0||t.flowing===!1};C.prototype.setEncoding=function(t){let e=new Ry(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 RN=1073741824;function ON(t){if(t>RN)throw new hN("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function Ey(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&Ur)!==0?1:QD(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}C.prototype.read=function(t){B("read",t),t===void 0?t=NaN:ZD(t)||(t=XD(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=ON(t)),t!==0&&(e.state&=~Dy),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?nu(this):Us(this),null;if(t=Ey(t,e),t===0&&e.ended)return e.length===0&&nu(this),null;let i=(e.state&Fs)!==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|=Hi|qs,e.length===0&&(e.state|=Fs);try{this._read(e.highWaterMark)}catch(s){Br(this,s)}e.state&=~qs,e.reading||(t=Ey(r,e))}let n;return t>0?n=qy(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&&nu(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function IN(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?Us(t):(e.needReadable=!1,e.emittedReadable=!0,Py(t))}}function Us(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(Py,t))}function Py(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,Cy(t)}function js(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Ve.nextTick(DN,t,e))}function DN(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}C.prototype._read=function(t){throw new cN("_read()")};C.prototype.pipe=function(t,e){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new eN(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=NN(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?Br(t,m):t.emit("error",m)}}sN(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 NN(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()}}C.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=KD(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};C.prototype.on=function(t,e){let r=Ct.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?Us(this):i.reading||Ve.nextTick(LN,this)),r};C.prototype.addListener=C.prototype.on;C.prototype.removeListener=function(t,e){let r=Ct.prototype.removeListener.call(this,t,e);return t==="readable"&&Ve.nextTick(ky,this),r};C.prototype.off=C.prototype.removeListener;C.prototype.removeAllListeners=function(t){let e=Ct.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Ve.nextTick(ky,this),e};function ky(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[sr]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function LN(t){B("readable nexttick read 0"),t.read(0)}C.prototype.resume=function(){let t=this._readableState;return t.flowing||(B("resume"),t.flowing=!t.readableListening,PN(this,t)),t[sr]=!1,this};function PN(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ve.nextTick(kN,t,e))}function kN(t,e){B("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Cy(t),e.flowing&&!e.reading&&t.read(0)}C.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[sr]=!0,this};function Cy(t){let e=t._readableState;for(B("flow",e.flowing);e.flowing&&t.read()!==null;);}C.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=>{Br(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=JD(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};C.prototype[rN]=function(){return My(this)};C.prototype.iterator=function(t){return t!==void 0&&_N(t,"options"),My(this,t)};function My(t,e){typeof t.read!="function"&&(t=C.wrap(t,{objectMode:!0}));let r=CN(t,e);return r.stream=t,r}async function*CN(t,e){let r=ru;function i(o){this===t?(r(),r=ru):r=o}t.on("readable",i);let n,s=Ay(t,{writable:!1},o=>{n=o?vy(n,o):null,r(),r=ru});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 Ty(i)}}}catch(o){throw n=vy(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Wr.destroyer(t,null):(t.off("readable",i),s())}}lu(C.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}}});lu(Bs.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[sr]!==!1},set(t){this[sr]=!!t}}});C._fromList=qy;function qy(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 nu(t){let e=t._readableState;B("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Ve.nextTick(MN,e,t))}function MN(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(qN,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function qN(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}C.from=function(t,e){return yN(C,t,e)};var su;function Fy(){return su===void 0&&(su={}),su}C.fromWeb=function(t,e){return Fy().newStreamReadableFromReadableStream(t,e)};C.toWeb=function(t,e){return Fy().newReadableStreamFromStreamReadable(t,e)};C.wrap=function(t,e){var r,i;return new C({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){Wr.destroyer(t,n),s(n)}}).wrap(t)}});var Hs=g((D4,Qy)=>{"use strict";var or=Pt(),{ArrayPrototypeSlice:Wy,Error:FN,FunctionPrototypeSymbolHasInstance:zy,ObjectDefineProperty:Gy,ObjectDefineProperties:jN,ObjectSetPrototypeOf:$y,StringPrototypeToLowerCase:BN,Symbol:UN,SymbolHasInstance:WN}=ie();Qy.exports=se;se.WritableState=Zi;var{EventEmitter:zN}=D("events"),Yi=Ps().Stream,{Buffer:Ws}=D("buffer"),$s=ir(),{addAbortSignal:GN}=zi(),{getHighWaterMark:$N,getDefaultHighWaterMark:HN}=Gi(),{ERR_INVALID_ARG_TYPE:VN,ERR_METHOD_NOT_IMPLEMENTED:YN,ERR_MULTIPLE_CALLBACK:Hy,ERR_STREAM_CANNOT_PIPE:KN,ERR_STREAM_DESTROYED:Ki,ERR_STREAM_ALREADY_FINISHED:ZN,ERR_STREAM_NULL_VALUES:QN,ERR_STREAM_WRITE_AFTER_END:XN,ERR_UNKNOWN_ENCODING:Vy}=xe().codes,{errorOrDestroy:zr}=$s;$y(se.prototype,Yi.prototype);$y(se,Yi);function cu(){}var Gr=UN("kOnFinished");function Zi(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?$N(this,t,"writableHighWaterMark",r):HN(!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=eL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Gs(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[Gr]=[]}function Gs(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Zi.prototype.getBuffer=function(){return Wy(this.buffered,this.bufferedIndex)};Gy(Zi.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function se(t){let e=this instanceof st();if(!e&&!zy(se,this))return new se(t);this._writableState=new Zi(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&&GN(t.signal,this)),Yi.call(this,t),$s.construct(this,()=>{let r=this._writableState;r.writing||du(this,r),pu(this,r)})}Gy(se,WN,{__proto__:null,value:function(t){return zy(this,t)?!0:this!==se?!1:t&&t._writableState instanceof Zi}});se.prototype.pipe=function(){zr(this,new KN)};function Yy(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"&&!Ws.isEncoding(r))throw new Vy(r);typeof i!="function"&&(i=cu)}if(e===null)throw new QN;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=Ws.from(e,r),r="buffer");else if(e instanceof Ws)r="buffer";else if(Yi._isUint8Array(e))e=Yi._uint8ArrayToBuffer(e),r="buffer";else throw new VN("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new XN:n.destroyed&&(s=new Ki("write")),s?(or.nextTick(i,s),zr(t,s,!0),s):(n.pendingcb++,JN(t,n,e,r,i))}se.prototype.write=function(t,e,r){return Yy(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||du(this,t))};se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=BN(e)),!Ws.isEncoding(e))throw new Vy(e);return this._writableState.defaultEncoding=e,this};function JN(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!==cu&&(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 By(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Ki("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function Uy(t,e,r,i){--e.pendingcb,i(r),hu(e),zr(t,r)}function eL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){zr(t,new Hy);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?or.nextTick(Uy,t,r,e,n):Uy(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&du(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},or.nextTick(tL,r.afterWriteTickInfo)):Ky(t,r,1,n))}function tL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,Ky(t,e,r,i)}function Ky(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&&hu(e),pu(t,e)}function hu(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 Ki("write"))}let r=t[Gr].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new Ki("end"))}Gs(t)}function du(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?cu:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:Wy(r,o);l.allBuffers=e.allBuffers,By(t,e,!0,e.length,l,"",a),Gs(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;By(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?Gs(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 YN("_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=Yy(this,t,e);s instanceof FN&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,pu(this,i,!0),i.ended=!0):i.finished?n=new ZN("end"):i.destroyed&&(n=new Ki("end"))),typeof r=="function"&&(n||i.finished?or.nextTick(r,n):i[Gr].push(r)),this};function zs(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 rL(t,e){let r=!1;function i(n){if(r){zr(t,n??Hy());return}if(r=!0,e.pendingcb--,n){let s=e[Gr].splice(0);for(let o=0;o<s.length;o++)s[o](n);zr(t,n,e.sync)}else zs(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,or.nextTick(fu,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function iL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,rL(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function pu(t,e,r){zs(e)&&(iL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,or.nextTick((i,n)=>{zs(n)?fu(i,n):n.pendingcb--},t,e)):zs(e)&&(e.pendingcb++,fu(t,e))))}function fu(t,e){e.pendingcb--,e.finished=!0;let r=e[Gr].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()}}jN(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 nL=$s.destroy;se.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[Gr].length)&&or.nextTick(hu,r),nL.call(this,t,e),this};se.prototype._undestroy=$s.undestroy;se.prototype._destroy=function(t,e){e(t)};se.prototype[zN.captureRejectionSymbol]=function(t){this.destroy(t)};var uu;function Zy(){return uu===void 0&&(uu={}),uu}se.fromWeb=function(t,e){return Zy().newStreamWritableFromWritableStream(t,e)};se.toWeb=function(t){return Zy().newWritableStreamFromStreamWritable(t)}});var hm=g((N4,cm)=>{"use strict";var gu=Pt(),sL=D("buffer"),{isReadable:oL,isWritable:aL,isIterable:Xy,isNodeStream:lL,isReadableNodeStream:Jy,isWritableNodeStream:em,isDuplexNodeStream:uL,isReadableStream:tm,isWritableStream:rm}=rt(),im=yt(),{AbortError:um,codes:{ERR_INVALID_ARG_TYPE:fL,ERR_INVALID_RETURN_VALUE:nm}}=xe(),{destroyer:Hr}=ir(),cL=st(),fm=Vi(),hL=Hs(),{createDeferredPromise:sm}=Oe(),om=eu(),am=globalThis.Blob||sL.Blob,dL=typeof am<"u"?function(e){return e instanceof am}:function(e){return!1},pL=globalThis.AbortController||Mr().AbortController,{FunctionPrototypeCall:lm}=ie(),Mt=class extends cL{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)}};cm.exports=function t(e,r){if(uL(e))return e;if(Jy(e))return $r({readable:e});if(em(e))return $r({writable:e});if(lL(e))return $r({writable:!1,readable:!1});if(tm(e))return $r({readable:fm.fromWeb(e)});if(rm(e))return $r({writable:hL.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=gL(e);if(Xy(n))return om(Mt,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=lm(l,n,c=>{if(c!=null)throw new nm("nully","body",c)},c=>{Hr(u,c)});return u=new Mt({objectMode:!0,readable:!1,write:s,final(c){o(async()=>{try{await f,gu.nextTick(c,null)}catch(h){gu.nextTick(c,h)}})},destroy:a})}throw new nm("Iterable, AsyncIterable or AsyncFunction",r,n)}if(dL(e))return t(e.arrayBuffer());if(Xy(e))return om(Mt,e,{objectMode:!0,writable:!1});if(tm(e?.readable)&&rm(e?.writable))return Mt.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?Jy(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?em(e?.writable)?e?.writable:t(e.writable):void 0;return $r({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return lm(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{Hr(n,s)}),n=new Mt({objectMode:!0,writable:!1,read(){}})}throw new fL(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function gL(t){let{promise:e,resolve:r}=sm(),i=new pL,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(gu.nextTick(u),l)return;if(n.aborted)throw new um(void 0,{cause:n.reason});({promise:e,resolve:r}=sm()),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 $r(t){let e=t.readable&&typeof t.readable.read!="function"?fm.wrap(t.readable):t.readable,r=t.writable,i=!!oL(e),n=!!aL(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&&(im(r,c=>{n=!1,c&&Hr(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&&(im(e,c=>{i=!1,c&&Hr(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 um),a=null,s=null,o=null,l===null?h(c):(l=h,Hr(r,c),Hr(e,c))},u}});var st=g((L4,gm)=>{"use strict";var{ObjectDefineProperties:_L,ObjectGetOwnPropertyDescriptor:mt,ObjectKeys:yL,ObjectSetPrototypeOf:dm}=ie();gm.exports=Ye;var mu=Vi(),Be=Hs();dm(Ye.prototype,mu.prototype);dm(Ye,mu);{let t=yL(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);mu.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}_L(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 _u;function pm(){return _u===void 0&&(_u={}),_u}Ye.fromWeb=function(t,e){return pm().newStreamDuplexFromReadableWritablePair(t,e)};Ye.toWeb=function(t){return pm().newReadableWritablePairFromDuplex(t)};var yu;Ye.from=function(t){return yu||(yu=hm()),yu(t,"body")}});var Su=g((P4,ym)=>{"use strict";var{ObjectSetPrototypeOf:_m,Symbol:mL}=ie();ym.exports=bt;var{ERR_METHOD_NOT_IMPLEMENTED:bL}=xe().codes,wu=st(),{getHighWaterMark:wL}=Gi();_m(bt.prototype,wu.prototype);_m(bt,wu);var Qi=mL("kCallback");function bt(t){if(!(this instanceof bt))return new bt(t);let e=t?wL(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),wu.call(this,t),this._readableState.sync=!1,this[Qi]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",SL)}function bu(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 SL(){this._final!==bu&&bu.call(this)}bt.prototype._final=bu;bt.prototype._transform=function(t,e,r){throw new bL("_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[Qi]=r})};bt.prototype._read=function(){if(this[Qi]){let t=this[Qi];this[Qi]=null,t()}}});var Eu=g((k4,bm)=>{"use strict";var{ObjectSetPrototypeOf:mm}=ie();bm.exports=Vr;var vu=Su();mm(Vr.prototype,vu.prototype);mm(Vr,vu);function Vr(t){if(!(this instanceof Vr))return new Vr(t);vu.call(this,t)}Vr.prototype._transform=function(t,e,r){r(null,t)}});var Zs=g((C4,xm)=>{"use strict";var Xi=Pt(),{ArrayIsArray:vL,Promise:EL,SymbolAsyncIterator:xL,SymbolDispose:TL}=ie(),Ks=yt(),{once:AL}=Oe(),RL=ir(),wm=st(),{aggregateTwoErrors:OL,codes:{ERR_INVALID_ARG_TYPE:Lu,ERR_INVALID_RETURN_VALUE:xu,ERR_MISSING_ARGS:IL,ERR_STREAM_DESTROYED:DL,ERR_STREAM_PREMATURE_CLOSE:NL},AbortError:LL}=xe(),{validateFunction:PL,validateAbortSignal:kL}=Fr(),{isIterable:ar,isReadable:Tu,isReadableNodeStream:Ys,isNodeStream:Sm,isTransformStream:Yr,isWebStream:CL,isReadableStream:Au,isReadableFinished:ML}=rt(),qL=globalThis.AbortController||Mr().AbortController,Ru,Ou,Iu;function vm(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Ks(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,RL.destroyer(t,s||new DL("pipe")))},cleanup:n}}function FL(t){return PL(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Du(t){if(ar(t))return t;if(Ys(t))return jL(t);throw new Lu("val",["Readable","Iterable","AsyncIterable"],t)}async function*jL(t){Ou||(Ou=Vi()),yield*Ou.prototype[xL].call(t)}async function Vs(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new EL((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Ks(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?OL(n,u):u)}finally{l(),e.off("drain",o)}}async function Nu(t,e,r,{end:i}){Yr(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 BL(...t){return Em(t,AL(FL(t)))}function Em(t,e,r){if(t.length===1&&vL(t[0])&&(t=t[0]),t.length<2)throw new IL("streams");let i=new qL,n=i.signal,s=r?.signal,o=[];kL(s,"options.signal");function a(){y(new LL)}Iu=Iu||Oe().addAbortListener;let l;s&&(l=Iu(s,a));let u,f,c=[],h=0;function d(v){y(v,--h===0)}function y(v,E){var A;if(v&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=v),!(!u&&!E)){for(;c.length;)c.shift()(u);(A=l)===null||A===void 0||A[TL](),i.abort(),E&&(u||o.forEach(N=>N()),Xi.nextTick(e,u,f))}}let p;for(let v=0;v<t.length;v++){let E=t[v],A=v<t.length-1,N=v>0,x=A||r?.end!==!1,O=v===t.length-1;if(Sm(E)){let w=function(T){T&&T.name!=="AbortError"&&T.code!=="ERR_STREAM_PREMATURE_CLOSE"&&d(T)};var b=w;if(x){let{destroy:T,cleanup:R}=vm(E,A,N);c.push(T),Tu(E)&&O&&o.push(R)}E.on("error",w),Tu(E)&&O&&o.push(()=>{E.removeListener("error",w)})}if(v===0)if(typeof E=="function"){if(p=E({signal:n}),!ar(p))throw new xu("Iterable, AsyncIterable or Stream","source",p)}else ar(E)||Ys(E)||Yr(E)?p=E:p=wm.from(E);else if(typeof E=="function"){if(Yr(p)){var S;p=Du((S=p)===null||S===void 0?void 0:S.readable)}else p=Du(p);if(p=E(p,{signal:n}),A){if(!ar(p,!0))throw new xu("AsyncIterable",`transform[${v-1}]`,p)}else{var m;Ru||(Ru=Eu());let w=new Ru({objectMode:!0}),T=(m=p)===null||m===void 0?void 0:m.then;if(typeof T=="function")h++,T.call(p,z=>{f=z,z!=null&&w.write(z),x&&w.end(),Xi.nextTick(d)},z=>{w.destroy(z),Xi.nextTick(d,z)});else if(ar(p,!0))h++,Vs(p,w,d,{end:x});else if(Au(p)||Yr(p)){let z=p.readable||p;h++,Vs(z,w,d,{end:x})}else throw new xu("AsyncIterable or Promise","destination",p);p=w;let{destroy:R,cleanup:P}=vm(p,!1,!0);c.push(R),O&&o.push(P)}}else if(Sm(E)){if(Ys(p)){h+=2;let w=UL(p,E,d,{end:x});Tu(E)&&O&&o.push(w)}else if(Yr(p)||Au(p)){let w=p.readable||p;h++,Vs(w,E,d,{end:x})}else if(ar(p))h++,Vs(p,E,d,{end:x});else throw new Lu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=E}else if(CL(E)){if(Ys(p))h++,Nu(Du(p),E,d,{end:x});else if(Au(p)||ar(p))h++,Nu(p,E,d,{end:x});else if(Yr(p))h++,Nu(p.readable,E,d,{end:x});else throw new Lu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=E}else p=wm.from(E)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&Xi.nextTick(a),p}function UL(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new NL)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;ML(t)?Xi.nextTick(o):t.once("end",o)}else r();return Ks(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)}),Ks(e,{readable:!1,writable:!0},r)}xm.exports={pipelineImpl:Em,pipeline:BL}});var ku=g((M4,Dm)=>{"use strict";var{pipeline:WL}=Zs(),Qs=st(),{destroyer:zL}=ir(),{isNodeStream:Xs,isReadable:Tm,isWritable:Am,isWebStream:Pu,isTransformStream:lr,isWritableStream:Rm,isReadableStream:Om}=rt(),{AbortError:GL,codes:{ERR_INVALID_ARG_VALUE:Im,ERR_MISSING_ARGS:$L}}=xe(),HL=yt();Dm.exports=function(...e){if(e.length===0)throw new $L("streams");if(e.length===1)return Qs.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=Qs.from(e[0])),typeof e[e.length-1]=="function"){let d=e.length-1;e[d]=Qs.from(e[d])}for(let d=0;d<e.length;++d)if(!(!Xs(e[d])&&!Pu(e[d]))){if(d<e.length-1&&!(Tm(e[d])||Om(e[d])||lr(e[d])))throw new Im(`streams[${d}]`,r[d],"must be readable");if(d>0&&!(Am(e[d])||Rm(e[d])||lr(e[d])))throw new Im(`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=WL(e,l),c=!!(Am(u)||Rm(u)||lr(u)),h=!!(Tm(f)||Om(f)||lr(f));if(a=new Qs({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:c,readable:h}),c){if(Xs(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(Pu(u)){let p=(lr(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=lr(f)?f.readable:f;HL(d,()=>{if(n){let y=n;n=null,y()}})}if(h){if(Xs(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(Pu(f)){let y=(lr(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 GL),s=null,i=null,n=null,o===null?y(d):(o=y,Xs(f)&&zL(f,d))},a}});var Bm=g((q4,qu)=>{"use strict";var VL=globalThis.AbortController||Mr().AbortController,{codes:{ERR_INVALID_ARG_VALUE:YL,ERR_INVALID_ARG_TYPE:Ji,ERR_MISSING_ARGS:KL,ERR_OUT_OF_RANGE:ZL},AbortError:ot}=xe(),{validateAbortSignal:ur,validateInteger:Nm,validateObject:fr}=Fr(),QL=ie().Symbol("kWeak"),XL=ie().Symbol("kResistStopPropagation"),{finished:JL}=yt(),eP=ku(),{addAbortSignalNoValidate:tP}=zi(),{isWritable:rP,isNodeStream:iP}=rt(),{deprecate:nP}=Oe(),{ArrayPrototypePush:sP,Boolean:oP,MathFloor:Lm,Number:aP,NumberIsNaN:lP,Promise:Pm,PromiseReject:km,PromiseResolve:uP,PromisePrototypeThen:Cm,Symbol:qm}=ie(),Js=qm("kEmpty"),Mm=qm("kEof");function fP(t,e){if(e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),iP(t)&&!rP(t))throw new YL("stream",t,"must be writable");let r=eP(this,t);return e!=null&&e.signal&&tP(e.signal,r),r}function eo(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=Lm(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=Lm(e.highWaterMark)),Nm(r,"options.concurrency",1),Nm(i,"options.highWaterMark",0),i+=r,async function*(){let s=Oe().AbortSignalAny([e?.signal].filter(oP)),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===Js)continue;m=uP(m)}catch(b){m=km(b)}h+=1,Cm(m,y,d),a.push(m),u&&(u(),u=null),!c&&(a.length>=i||h>=r)&&await new Pm(b=>{f=b})}a.push(Mm)}catch(m){let b=km(m);Cm(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===Mm)return;if(s.aborted)throw new ot;m!==Js&&(yield m),a.shift(),p()}await new Pm(m=>{u=m})}}finally{c=!0,f&&(f(),f=null)}}.call(this)}function cP(t=void 0){return t!=null&&fr(t,"options"),t?.signal!=null&&ur(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 Fm(t,e=void 0){for await(let r of Mu.call(this,t,e))return!0;return!1}async function hP(t,e=void 0){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);return!await Fm.call(this,async(...r)=>!await t(...r),e)}async function dP(t,e){for await(let r of Mu.call(this,t,e))return r}async function pP(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),Js}for await(let i of eo.call(this,r,e));}function Mu(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:Js}return eo.call(this,r,e)}var Cu=class extends KL{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function gP(t,e,r){var i;if(typeof t!="function")throw new Ji("reducer",["Function","AsyncFunction"],t);r!=null&&fr(r,"options"),r?.signal!=null&&ur(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 JL(this.destroy(u)),u}let s=new VL,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[QL]:this,[XL]:!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 Cu}finally{s.abort()}return e}async function _P(t){t!=null&&fr(t,"options"),t?.signal!=null&&ur(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});sP(e,i)}return e}function yP(t,e){let r=eo.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function jm(t){if(t=aP(t),lP(t))return 0;if(t<0)throw new ZL("number",">= 0",t);return t}function mP(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=jm(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 bP(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=jm(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)}qu.exports.streamReturningOperators={asIndexedPairs:nP(cP,"readable.asIndexedPairs will be removed in a future version."),drop:mP,filter:Mu,flatMap:yP,map:eo,take:bP,compose:fP};qu.exports.promiseReturningOperators={every:hP,forEach:pP,reduce:gP,toArray:_P,some:Fm,find:dP}});var Fu=g((F4,Um)=>{"use strict";var{ArrayPrototypePop:wP,Promise:SP}=ie(),{isIterable:vP,isNodeStream:EP,isWebStream:xP}=rt(),{pipelineImpl:TP}=Zs(),{finished:AP}=yt();ju();function RP(...t){return new SP((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!EP(s)&&!vP(s)&&!xP(s)){let o=wP(t);i=o.signal,n=o.end}TP(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}Um.exports={finished:AP,pipeline:RP}});var ju=g((j4,Zm)=>{"use strict";var{Buffer:OP}=D("buffer"),{ObjectDefineProperty:wt,ObjectKeys:Gm,ReflectApply:$m}=ie(),{promisify:{custom:Hm}}=Oe(),{streamReturningOperators:Wm,promiseReturningOperators:zm}=Bm(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Vm}}=xe(),IP=ku(),{setDefaultHighWaterMark:DP,getDefaultHighWaterMark:NP}=Gi(),{pipeline:Ym}=Zs(),{destroyer:LP}=ir(),Km=yt(),Bu=Fu(),en=rt(),ee=Zm.exports=Ps().Stream;ee.isDestroyed=en.isDestroyed;ee.isDisturbed=en.isDisturbed;ee.isErrored=en.isErrored;ee.isReadable=en.isReadable;ee.isWritable=en.isWritable;ee.Readable=Vi();for(let t of Gm(Wm)){let r=function(...i){if(new.target)throw Vm();return ee.Readable.from($m(e,this,i))},e=Wm[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 Gm(zm)){let r=function(...i){if(new.target)throw Vm();return $m(e,this,i)},e=zm[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=Hs();ee.Duplex=st();ee.Transform=Su();ee.PassThrough=Eu();ee.pipeline=Ym;var{addAbortSignal:PP}=zi();ee.addAbortSignal=PP;ee.finished=Km;ee.destroy=LP;ee.compose=IP;ee.setDefaultHighWaterMark=DP;ee.getDefaultHighWaterMark=NP;wt(ee,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return Bu}});wt(Ym,Hm,{__proto__:null,enumerable:!0,get(){return Bu.pipeline}});wt(Km,Hm,{__proto__:null,enumerable:!0,get(){return Bu.finished}});ee.Stream=ee;ee._isUint8Array=function(e){return e instanceof Uint8Array};ee._uint8ArrayToBuffer=function(e){return OP.from(e.buffer,e.byteOffset,e.byteLength)}});var cr=g((B4,j)=>{"use strict";var he=D("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=ju(),e=Fu(),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 Xm=g((U4,Qm)=>{"use strict";function kP(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}Qm.exports=kP});var rb=g((W4,tb)=>{"use strict";var Jm=ms(),CP=vl(),MP=El(),eb=Jm?Jm.isConcatSpreadable:void 0;function qP(t){return MP(t)||CP(t)||!!(eb&&t&&t[eb])}tb.exports=qP});var to=g((z4,nb)=>{"use strict";var FP=Xm(),jP=rb();function ib(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=jP),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?ib(a,e-1,r,i,n):FP(n,a):i||(n[n.length]=a)}return n}nb.exports=ib});var ob=g((G4,sb)=>{"use strict";var BP=to();function UP(t){var e=t==null?0:t.length;return e?BP(t,1):[]}sb.exports=UP});var tn=g(($4,ab)=>{"use strict";var WP=ki(),zP=WP(Object,"create");ab.exports=zP});var fb=g((H4,ub)=>{"use strict";var lb=tn();function GP(){this.__data__=lb?lb(null):{},this.size=0}ub.exports=GP});var hb=g((V4,cb)=>{"use strict";function $P(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}cb.exports=$P});var pb=g((Y4,db)=>{"use strict";var HP=tn(),VP="__lodash_hash_undefined__",YP=Object.prototype,KP=YP.hasOwnProperty;function ZP(t){var e=this.__data__;if(HP){var r=e[t];return r===VP?void 0:r}return KP.call(e,t)?e[t]:void 0}db.exports=ZP});var _b=g((K4,gb)=>{"use strict";var QP=tn(),XP=Object.prototype,JP=XP.hasOwnProperty;function ek(t){var e=this.__data__;return QP?e[t]!==void 0:JP.call(e,t)}gb.exports=ek});var mb=g((Z4,yb)=>{"use strict";var tk=tn(),rk="__lodash_hash_undefined__";function ik(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=tk&&e===void 0?rk:e,this}yb.exports=ik});var wb=g((Q4,bb)=>{"use strict";var nk=fb(),sk=hb(),ok=pb(),ak=_b(),lk=mb();function Kr(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])}}Kr.prototype.clear=nk;Kr.prototype.delete=sk;Kr.prototype.get=ok;Kr.prototype.has=ak;Kr.prototype.set=lk;bb.exports=Kr});var vb=g((X4,Sb)=>{"use strict";function uk(){this.__data__=[],this.size=0}Sb.exports=uk});var rn=g((J4,Eb)=>{"use strict";var fk=ws();function ck(t,e){for(var r=t.length;r--;)if(fk(t[r][0],e))return r;return-1}Eb.exports=ck});var Tb=g((e6,xb)=>{"use strict";var hk=rn(),dk=Array.prototype,pk=dk.splice;function gk(t){var e=this.__data__,r=hk(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():pk.call(e,r,1),--this.size,!0}xb.exports=gk});var Rb=g((t6,Ab)=>{"use strict";var _k=rn();function yk(t){var e=this.__data__,r=_k(e,t);return r<0?void 0:e[r][1]}Ab.exports=yk});var Ib=g((r6,Ob)=>{"use strict";var mk=rn();function bk(t){return mk(this.__data__,t)>-1}Ob.exports=bk});var Nb=g((i6,Db)=>{"use strict";var wk=rn();function Sk(t,e){var r=this.__data__,i=wk(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}Db.exports=Sk});var Pb=g((n6,Lb)=>{"use strict";var vk=vb(),Ek=Tb(),xk=Rb(),Tk=Ib(),Ak=Nb();function Zr(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])}}Zr.prototype.clear=vk;Zr.prototype.delete=Ek;Zr.prototype.get=xk;Zr.prototype.has=Tk;Zr.prototype.set=Ak;Lb.exports=Zr});var Cb=g((s6,kb)=>{"use strict";var Rk=ki(),Ok=Nr(),Ik=Rk(Ok,"Map");kb.exports=Ik});var Fb=g((o6,qb)=>{"use strict";var Mb=wb(),Dk=Pb(),Nk=Cb();function Lk(){this.size=0,this.__data__={hash:new Mb,map:new(Nk||Dk),string:new Mb}}qb.exports=Lk});var Bb=g((a6,jb)=>{"use strict";function Pk(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}jb.exports=Pk});var nn=g((l6,Ub)=>{"use strict";var kk=Bb();function Ck(t,e){var r=t.__data__;return kk(e)?r[typeof e=="string"?"string":"hash"]:r.map}Ub.exports=Ck});var zb=g((u6,Wb)=>{"use strict";var Mk=nn();function qk(t){var e=Mk(this,t).delete(t);return this.size-=e?1:0,e}Wb.exports=qk});var $b=g((f6,Gb)=>{"use strict";var Fk=nn();function jk(t){return Fk(this,t).get(t)}Gb.exports=jk});var Vb=g((c6,Hb)=>{"use strict";var Bk=nn();function Uk(t){return Bk(this,t).has(t)}Hb.exports=Uk});var Kb=g((h6,Yb)=>{"use strict";var Wk=nn();function zk(t,e){var r=Wk(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}Yb.exports=zk});var Qb=g((d6,Zb)=>{"use strict";var Gk=Fb(),$k=zb(),Hk=$b(),Vk=Vb(),Yk=Kb();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=Gk;Qr.prototype.delete=$k;Qr.prototype.get=Hk;Qr.prototype.has=Vk;Qr.prototype.set=Yk;Zb.exports=Qr});var Jb=g((p6,Xb)=>{"use strict";var Kk="__lodash_hash_undefined__";function Zk(t){return this.__data__.set(t,Kk),this}Xb.exports=Zk});var tw=g((g6,ew)=>{"use strict";function Qk(t){return this.__data__.has(t)}ew.exports=Qk});var Uu=g((_6,rw)=>{"use strict";var Xk=Qb(),Jk=Jb(),eC=tw();function ro(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Xk;++e<r;)this.add(t[e])}ro.prototype.add=ro.prototype.push=Jk;ro.prototype.has=eC;rw.exports=ro});var nw=g((y6,iw)=>{"use strict";function tC(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}iw.exports=tC});var ow=g((m6,sw)=>{"use strict";function rC(t){return t!==t}sw.exports=rC});var lw=g((b6,aw)=>{"use strict";function iC(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}aw.exports=iC});var fw=g((w6,uw)=>{"use strict";var nC=nw(),sC=ow(),oC=lw();function aC(t,e,r){return e===e?oC(t,e,r):nC(t,sC,r)}uw.exports=aC});var Wu=g((S6,cw)=>{"use strict";var lC=fw();function uC(t,e){var r=t==null?0:t.length;return!!r&&lC(t,e,0)>-1}cw.exports=uC});var zu=g((v6,hw)=>{"use strict";function fC(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}hw.exports=fC});var pw=g((E6,dw)=>{"use strict";function cC(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}dw.exports=cC});var Gu=g((x6,gw)=>{"use strict";function hC(t,e){return t.has(e)}gw.exports=hC});var yw=g((T6,_w)=>{"use strict";var dC=Uu(),pC=Wu(),gC=zu(),_C=pw(),yC=xl(),mC=Gu(),bC=200;function wC(t,e,r,i){var n=-1,s=pC,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=_C(e,yC(r))),i?(s=gC,o=!1):e.length>=bC&&(s=mC,o=!1,e=new dC(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}_w.exports=wC});var $u=g((A6,mw)=>{"use strict";var SC=Ss(),vC=Lr();function EC(t){return vC(t)&&SC(t)}mw.exports=EC});var Sw=g((R6,ww)=>{"use strict";var xC=yw(),TC=to(),AC=bs(),bw=$u(),RC=AC(function(t,e){return bw(t)?xC(t,TC(e,1,bw,!0)):[]});ww.exports=RC});var Ew=g((O6,vw)=>{"use strict";var OC=ki(),IC=Nr(),DC=OC(IC,"Set");vw.exports=DC});var Tw=g((I6,xw)=>{"use strict";function NC(){}xw.exports=NC});var Hu=g((D6,Aw)=>{"use strict";function LC(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}Aw.exports=LC});var Ow=g((N6,Rw)=>{"use strict";var Vu=Ew(),PC=Tw(),kC=Hu(),CC=1/0,MC=Vu&&1/kC(new Vu([,-0]))[1]==CC?function(t){return new Vu(t)}:PC;Rw.exports=MC});var Dw=g((L6,Iw)=>{"use strict";var qC=Uu(),FC=Wu(),jC=zu(),BC=Gu(),UC=Ow(),WC=Hu(),zC=200;function GC(t,e,r){var i=-1,n=FC,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=jC;else if(s>=zC){var u=e?null:UC(t);if(u)return WC(u);o=!1,n=BC,l=new qC}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}Iw.exports=GC});var Lw=g((P6,Nw)=>{"use strict";var $C=to(),HC=bs(),VC=Dw(),YC=$u(),KC=HC(function(t){return VC($C(t,1,YC,!0))});Nw.exports=KC});var kw=g((k6,Pw)=>{"use strict";function ZC(t,e){return function(r){return t(e(r))}}Pw.exports=ZC});var Mw=g((C6,Cw)=>{"use strict";var QC=kw(),XC=QC(Object.getPrototypeOf,Object);Cw.exports=XC});var jw=g((M6,Fw)=>{"use strict";var JC=Li(),eM=Mw(),tM=Lr(),rM="[object Object]",iM=Function.prototype,nM=Object.prototype,qw=iM.toString,sM=nM.hasOwnProperty,oM=qw.call(Object);function aM(t){if(!tM(t)||JC(t)!=rM)return!1;var e=eM(t);if(e===null)return!0;var r=sM.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&qw.call(r)==oM}Fw.exports=aM});var Bw=g(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.assertValidPattern=void 0;var lM=1024*64,uM=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>lM)throw new TypeError("pattern is too long")};io.assertValidPattern=uM});var Ww=g(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.parseClass=void 0;var fM={"[: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]},sn=t=>t.replace(/[[\]\\-]/g,"\\$&"),cM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Uw=t=>t.join(""),hM=(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(fM))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(sn(c)+"-"+sn(p)):p===c&&i.push(sn(p)),c="",s++;continue}if(t.startsWith("-]",s+1)){i.push(sn(p+"-")),s+=2;continue}if(t.startsWith("-",s+1)){c=p,s+=2;continue}i.push(sn(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[cM(p),!1,f-r,!1]}let h="["+(u?"^":"")+Uw(i)+"]",d="["+(u?"":"^")+Uw(n)+"]";return[i.length&&n.length?"("+h+"|"+d+")":i.length?h:d,a,f-r,!0]};no.parseClass=hM});var oo=g(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.unescape=void 0;var dM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");so.unescape=dM});var Zu=g(fo=>{"use strict";var Le;Object.defineProperty(fo,"__esModule",{value:!0});fo.AST=void 0;var pM=Ww(),ao=oo(),gM=new Set(["!","?","+","*","@"]),Yu=t=>gM.has(t),zw=t=>Yu(t.type),_M=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),yM=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),mM=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Gw=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),bM="(?!(?:^|/)\\.\\.?(?:$|/))",lo="(?!\\.)",wM=new Set(["[","."]),SM=new Set(["..","."]),vM=new Set("().*{}+?[]^$\\!"),EM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ku="[^/]",$w=Ku+"*?",Hw=Ku+"+?",uo=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 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&&Yu(m)&&e.charAt(p)==="("&&s<=o){r.push(S),S="";let v=new Le(m,r);p=Le.#m(e,v,p,n,s+1),r.push(v);continue}S+=m}return r.push(S),p}let c=i+1,h=new Le(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(Yu(p)&&e.charAt(c)==="("&&(s<=o||r&&r.#v(p))){let m=r&&r.#v(p)?0:1;h.push(y),y="";let b=new Le(p,h);h.push(b),c=Le.#m(e,b,c,n,s+m);continue}if(p==="|"){h.push(y),y="",d.push(h),h=new Le(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,yM)}#d(e,r=_M){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.#v(i.type,r)}#v(e,r=mM){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!!Gw.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)}#E(e){let r=Gw.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(zw(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.#E(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()),!zw(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(d=>{let[y,p,S,m]=typeof d=="string"?Le.#A(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&&SM.has(this.#t[0]))){let y=wM,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?bM:S?lo:""}let c="";return this.isEnd()&&this.#e.#c&&this.#o?.type==="!"&&(c="(?:$|\\/)"),[f+u+c,(0,ao.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,ao.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!lo?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?lo:"")+Hw;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?lo:"")+$w+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,ao.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#A(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+=(vM.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,c,h,d]=(0,pM.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)?Hw:$w,r=!0;continue}else a=!1;if(u==="?"){s+=Ku,r=!0;continue}s+=EM(u)}return[s,(0,ao.unescape)(e),!!r,o]}};fo.AST=uo;Le=uo});var Qu=g(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.escape=void 0;var xM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");co.escape=xM});var qt=g(I=>{"use strict";var TM=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 AM=TM(na()),ho=Bw(),Kw=Zu(),RM=Qu(),OM=oo(),IM=(t,e,r={})=>((0,ho.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new hr(e,r).match(t));I.minimatch=IM;var DM=/^\*+([^+@!?\*\[\(]*)$/,NM=t=>e=>!e.startsWith(".")&&e.endsWith(t),LM=t=>e=>e.endsWith(t),PM=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),kM=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),CM=/^\*+\.\*+$/,MM=t=>!t.startsWith(".")&&t.includes("."),qM=t=>t!=="."&&t!==".."&&t.includes("."),FM=/^\.\*+$/,jM=t=>t!=="."&&t!==".."&&t.startsWith("."),BM=/^\*+$/,UM=t=>t.length!==0&&!t.startsWith("."),WM=t=>t.length!==0&&t!=="."&&t!=="..",zM=/^\?+([^+@!?\*\[\(]*)?$/,GM=([t,e=""])=>{let r=Zw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},$M=([t,e=""])=>{let r=Qw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},HM=([t,e=""])=>{let r=Qw([t]);return e?i=>r(i)&&i.endsWith(e):r},VM=([t,e=""])=>{let r=Zw([t]);return e?i=>r(i)&&i.endsWith(e):r},Zw=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},Qw=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},Xw=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Vw={win32:{sep:"\\"},posix:{sep:"/"}};I.sep=Xw==="win32"?Vw.win32.sep:Vw.posix.sep;I.minimatch.sep=I.sep;I.GLOBSTAR=Symbol("globstar **");I.minimatch.GLOBSTAR=I.GLOBSTAR;var YM="[^/]",KM=YM+"*?",ZM="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",QM="(?:(?!(?:\\/|^)\\.).)*?",XM=(t,e={})=>r=>(0,I.minimatch)(r,t,e);I.filter=XM;I.minimatch.filter=I.filter;var Ue=(t,e={})=>Object.assign({},t,e),JM=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=JM;I.minimatch.defaults=I.defaults;var e2=(t,e={})=>((0,ho.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,AM.default)(t));I.braceExpand=e2;I.minimatch.braceExpand=I.braceExpand;var t2=(t,e={})=>new hr(t,e).makeRe();I.makeRe=t2;I.minimatch.makeRe=I.makeRe;var r2=(t,e,r={})=>{let i=new hr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};I.match=r2;I.minimatch.match=I.match;var Yw=/[?*]|[+@!]\(.*?\)|\[|\]/,i2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,ho.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||Xw,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]==="?"||!Yw.test(s[2]))&&!Yw.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,ho.assertValidPattern)(e);let r=this.options;if(e==="**")return I.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(BM))?n=r.dot?WM:UM:(i=e.match(DM))?n=(r.nocase?r.dot?kM:PM:r.dot?LM:NM)(i[1]):(i=e.match(zM))?n=(r.nocase?r.dot?$M:GM:r.dot?HM:VM)(i):(i=e.match(CM))?n=r.dot?qM:MM:(i=e.match(FM))&&(n=jM);let s=Kw.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?KM:r.dot?ZM:QM,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"?i2(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=hr;var n2=Zu();Object.defineProperty(I,"AST",{enumerable:!0,get:function(){return n2.AST}});var s2=Qu();Object.defineProperty(I,"escape",{enumerable:!0,get:function(){return s2.escape}});var o2=oo();Object.defineProperty(I,"unescape",{enumerable:!0,get:function(){return o2.unescape}});I.minimatch.AST=Kw.AST;I.minimatch.Minimatch=hr;I.minimatch.escape=RM.escape;I.minimatch.unescape=OM.unescape});var i0=g(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.LRUCache=void 0;var Xr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e0=new Set,Xu=typeof process=="object"&&process?process:{},t0=(t,e,r,i)=>{typeof Xu.emitWarning=="function"?Xu.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},po=globalThis.AbortController,Jw=globalThis.AbortSignal;if(typeof po>"u"){Jw=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},po=class{constructor(){e()}signal=new Jw;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=Xu.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,t0("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 a2=t=>!e0.has(t),Ft=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),r0=t=>Ft(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Jr:null:null,Jr=class extends Array{constructor(e){super(e),this.fill(0)}},Ju=class t{heap;length;static#e=!1;static create(e){let r=r0(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]}},ef=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;#v;#p;#x;#T;#_;#E;#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.#v,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,i,n,s)=>e.#F(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:A,ignoreFetchAbort:N}=e;if(r!==0&&!Ft(r))throw new TypeError("max option must be a nonnegative integer");let x=r?r0(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.#v=Ju.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.#E=!!this.#n,this.#h=!!this.#t,this.noDisposeOnSet=!!c,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!E,this.allowStaleOnFetchAbort=!!A,this.ignoreFetchAbort=!!N,this.maxEntrySize!==0){if(this.#r!==0&&!Ft(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Ft(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=Ft(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!Ft(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#A()}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";a2(O)&&(e0.add(O),t0("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}#A(){let e=new Jr(this.#e),r=new Jr(this.#e);this.#_=e,this.#T=r,this.#L=(s,o,a=Xr.now())=>{if(r[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(s)&&this.#N(this.#a[s],"expire")},o+1);l.unref&&l.unref()}},this.#R=s=>{r[s]=e[s]!==0?Xr.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=Xr.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}}#R=()=>{};#i=()=>{};#L=()=>{};#w=()=>!1;#D(){let e=new Jr(this.#e);this.#c=0,this.#x=e,this.#P=r=>{this.#c-=e[r],e[r]=0},this.#C=(r,i,n,s)=>{if(this.#f(i))return 0;if(!Ft(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!Ft(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.#k=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#c>s;)this.#q(!0)}this.#c+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#c)}}#P=e=>{};#k=(e,r,i)=>{};#C=(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.#N(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-(Xr.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=Xr.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=Xr.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.#C(e,r,i.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#N(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.#v.length!==0?this.#v.pop():this.#u===this.#e?this.#q(!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.#k(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.#E&&this.#n?.(d,e,"set"),this.#h&&this.#p?.push([d,e,"set"]))}else o||(this.#E&&this.#n?.(h,e,"set"),this.#h&&this.#p?.push([h,e,"set"]));if(this.#P(c),this.#k(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.#A(),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.#q(!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)}}}#q(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.#E||this.#h)&&(this.#E&&this.#n?.(n,i,"evict"),this.#h&&this.#p?.push([n,i,"evict"])),this.#P(r),e&&(this.#a[r]=void 0,this.#s[r]=void 0,this.#v.push(r)),this.#u===1?(this.#g=this.#d=0,this.#v.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.#R(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}#F(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new po,{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.#N(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.#N(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 po}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 A=this.#F(e,E,v,p);return A.__returned=A}else{let A=this.#s[E];if(this.#f(A)){let T=i&&A.__staleWhileFetching!==void 0;return m&&(m.fetch="inflight",T&&(m.returnedStale=!0)),T?A.__staleWhileFetching:A.__returned=A}let N=this.#w(E);if(!S&&!N)return m&&(m.fetch="hit"),this.#B(E),n&&this.#R(E),m&&this.#i(m,E),A;let x=this.#F(e,E,v,p),w=x.__staleWhileFetching!==void 0&&i;return m&&(m.fetch=N?"stale":"refresh",w&&N&&(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.#N(e,"expire"),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(this.#B(a),n&&this.#R(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.#N(e,"delete")}#N(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.#P(n);let s=this.#s[n];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#E||this.#h)&&(this.#E&&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.#v.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.#E&&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.#v.length=0,this.#c=0,this.#u=0,this.#h&&this.#p){let r=this.#p,i;for(;i=r?.shift();)this.#t?.(...i)}}};go.LRUCache=ef});var uf=g(De=>{"use strict";var l2=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 n0=typeof process=="object"&&process?process:{stdout:null,stderr:null},lf=D("events"),l0=l2(D("stream")),u2=D("string_decoder"),f2=t=>!!t&&typeof t=="object"&&(t instanceof vo||t instanceof l0.default||(0,De.isReadable)(t)||(0,De.isWritable)(t));De.isStream=f2;var c2=t=>!!t&&typeof t=="object"&&t instanceof lf.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==l0.default.Writable.prototype.pipe;De.isReadable=c2;var h2=t=>!!t&&typeof t=="object"&&t instanceof lf.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";De.isWritable=h2;var St=Symbol("EOF"),vt=Symbol("maybeEmitEnd"),jt=Symbol("emittedEnd"),_o=Symbol("emittingEnd"),on=Symbol("emittedError"),yo=Symbol("closed"),s0=Symbol("read"),mo=Symbol("flush"),o0=Symbol("flushChunk"),Ke=Symbol("encoding"),ei=Symbol("decoder"),de=Symbol("flowing"),an=Symbol("paused"),ti=Symbol("resume"),pe=Symbol("buffer"),Ie=Symbol("pipes"),ge=Symbol("bufferLength"),tf=Symbol("bufferPush"),bo=Symbol("bufferShift"),Ae=Symbol("objectMode"),le=Symbol("destroyed"),rf=Symbol("error"),nf=Symbol("emitData"),a0=Symbol("emitEnd"),sf=Symbol("emitEnd2"),at=Symbol("async"),of=Symbol("abort"),wo=Symbol("aborted"),ln=Symbol("signal"),dr=Symbol("dataListeners"),ke=Symbol("discarded"),un=t=>Promise.resolve().then(t),d2=t=>t(),p2=t=>t==="end"||t==="finish"||t==="prefinish",g2=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,_2=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),So=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ti](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},af=class extends So{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)}},y2=t=>!!t.objectMode,m2=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",vo=class extends lf.EventEmitter{[de]=!1;[an]=!1;[Ie]=[];[pe]=[];[Ae];[Ke];[at];[ei];[St]=!1;[jt]=!1;[_o]=!1;[yo]=!1;[on]=null;[ge]=0;[le]=!1;[ln];[wo]=!1;[dr]=0;[ke]=!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");y2(r)?(this[Ae]=!0,this[Ke]=null):m2(r)?(this[Ke]=r.encoding,this[Ae]=!1):(this[Ae]=!1,this[Ke]=null),this[at]=!!r.async,this[ei]=this[Ke]?new u2.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[ln]=i,i.aborted?this[of]():i.addEventListener("abort",()=>this[of]()))}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[Ae]}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}[of](){this[wo]=!0,this.emit("abort",this[ln]?.reason),this.destroy(this[ln]?.reason)}get aborted(){return this[wo]}set aborted(e){}write(e,r,i){if(this[wo])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]?un:d2;if(!this[Ae]&&!Buffer.isBuffer(e)){if(_2(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(g2(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Ae]?(this[de]&&this[ge]!==0&&this[mo](!0),this[de]?this.emit("data",e):this[tf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):e.length?(typeof e=="string"&&!(r===this[Ke]&&!this[ei]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ke]&&(e=this[ei].write(e)),this[de]&&this[ge]!==0&&this[mo](!0),this[de]?this.emit("data",e):this[tf](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[ke]=!1,this[ge]===0||e===0||e&&e>this[ge])return this[vt](),null;this[Ae]&&(e=null),this[pe].length>1&&!this[Ae]&&(this[pe]=[this[Ke]?this[pe].join(""):Buffer.concat(this[pe],this[ge])]);let r=this[s0](e||null,this[pe][0]);return this[vt](),r}[s0](e,r){if(this[Ae])this[bo]();else{let i=r;e===i.length||e===null?this[bo]():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[an])&&this[vt](),this}[ti](){this[le]||(!this[dr]&&!this[Ie].length&&(this[ke]=!0),this[an]=!1,this[de]=!0,this.emit("resume"),this[pe].length?this[mo]():this[St]?this[vt]():this.emit("drain"))}resume(){return this[ti]()}pause(){this[de]=!1,this[an]=!0,this[ke]=!1}get destroyed(){return this[le]}get flowing(){return this[de]}get paused(){return this[an]}[tf](e){this[Ae]?this[ge]+=1:this[ge]+=e.length,this[pe].push(e)}[bo](){return this[Ae]?this[ge]-=1:this[ge]-=this[pe][0].length,this[pe].shift()}[mo](e=!1){do;while(this[o0](this[bo]())&&this[pe].length);!e&&!this[pe].length&&!this[St]&&this.emit("drain")}[o0](e){return this.emit("data",e),this[de]}pipe(e,r){if(this[le])return e;this[ke]=!1;let i=this[jt];return r=r||{},e===n0.stdout||e===n0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ie].push(r.proxyErrors?new af(this,e,r):new So(this,e,r)),this[at]?un(()=>this[ti]()):this[ti]()),e}unpipe(e){let r=this[Ie].find(i=>i.dest===e);r&&(this[Ie].length===1?(this[de]&&this[dr]===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[ke]=!1,this[dr]++,!this[Ie].length&&!this[de]&&this[ti]();else if(e==="readable"&&this[ge]!==0)super.emit("readable");else if(p2(e)&&this[jt])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[on]){let n=r;this[at]?un(()=>n.call(this,this[on])):n.call(this,this[on])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[dr]=this.listeners("data").length,this[dr]===0&&!this[ke]&&!this[Ie].length&&(this[de]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[dr]=0,!this[ke]&&!this[Ie].length&&(this[de]=!1)),r}get emittedEnd(){return this[jt]}[vt](){!this[_o]&&!this[jt]&&!this[le]&&this[pe].length===0&&this[St]&&(this[_o]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[yo]&&this.emit("close"),this[_o]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==le&&this[le])return!1;if(e==="data")return!this[Ae]&&!i?!1:this[at]?(un(()=>this[nf](i)),!0):this[nf](i);if(e==="end")return this[a0]();if(e==="close"){if(this[yo]=!0,!this[jt]&&!this[le])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[on]=i,super.emit(rf,i);let s=!this[ln]||this.listeners("error").length?super.emit("error",i):!1;return this[vt](),s}else if(e==="resume"){let s=super.emit("resume");return this[vt](),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[vt](),n}[nf](e){for(let i of this[Ie])i.dest.write(e)===!1&&this.pause();let r=this[ke]?!1:super.emit("data",e);return this[vt](),r}[a0](){return this[jt]?!1:(this[jt]=!0,this.readable=!1,this[at]?(un(()=>this[sf]()),!0):this[sf]())}[sf](){if(this[ei]){let r=this[ei].end();if(r){for(let i of this[Ie])i.dest.write(r);this[ke]||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[Ae]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ae]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[Ae])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[ke]=!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[ke]=!1;let e=!1,r=()=>(this.pause(),this.off(rf,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(rf,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[ke]=!0,this[pe].length=0,this[ge]=0;let r=this;return typeof r.close=="function"&&!this[yo]&&r.close(),e?this.emit("error",e):this.emit(le),this}static get isStream(){return De.isStream}};De.Minipass=vo});var E0=g(H=>{"use strict";var b2=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]})),w2=H&&H.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),S2=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)&&b2(e,t,r);return w2(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 p0=i0(),Ro=D("path"),v2=D("url"),cn=D("fs"),E2=S2(D("fs")),x2=cn.realpathSync.native,Eo=D("fs/promises"),u0=uf(),hn={lstatSync:cn.lstatSync,readdir:cn.readdir,readdirSync:cn.readdirSync,readlinkSync:cn.readlinkSync,realpathSync:x2,promises:{lstat:Eo.lstat,readdir:Eo.readdir,readlink:Eo.readlink,realpath:Eo.realpath}},g0=t=>!t||t===hn||t===E2?hn:{...hn,...t,promises:{...hn.promises,...t.promises||{}}},_0=/^\\\\\?\\([a-z]:)\\?$/i,T2=t=>t.replace(/\//g,"\\").replace(_0,"$1\\"),A2=/[\\\/]/,ze=0,y0=1,m0=2,lt=4,b0=6,w0=8,pr=10,S0=12,We=15,fn=~We,ff=16,f0=32,dn=64,Ze=128,xo=256,Ao=512,c0=dn|Ze|Ao,R2=1023,cf=t=>t.isFile()?w0:t.isDirectory()?lt:t.isSymbolicLink()?pr:t.isCharacterDevice()?m0:t.isBlockDevice()?b0:t.isSocket()?S0:t.isFIFO()?y0:ze,h0=new Map,pn=t=>{let e=h0.get(t);if(e)return e;let r=t.normalize("NFKD");return h0.set(t,r),r},d0=new Map,To=t=>{let e=d0.get(t);if(e)return e;let r=pn(t.toLowerCase());return d0.set(t,r),r},gn=class extends p0.LRUCache{constructor(){super({max:256})}};H.ResolveCache=gn;var Oo=class extends p0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};H.ChildrenCache=Oo;var v0=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}#v;get atime(){return this.#v}#p;get mtime(){return this.#p}#x;get ctime(){return this.#x}#T;get birthtime(){return this.#T}#_;#E;#b;#h;#A;#R;#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?To(e):pn(e),this.#i=r&R2,this.nocase=s,this.roots=n,this.root=i||this,this.#L=o,this.#b=a.fullpath,this.#A=a.relative,this.#R=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=g0(a.fs)}depth(){return this.#E!==void 0?this.#E:this.parent?this.#E=this.parent.depth()+1:this.#E=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).#P(n):this.#P(n)}#P(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&=~ff,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),n=this.nocase?To(e):pn(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.#A!==void 0)return this.#A;let e=this.name,r=this.parent;if(!r)return this.#A=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.#R!==void 0)return this.#R;let e=this.name,r=this.parent;if(!r)return this.#R=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)===w0}isDirectory(){return(this.#i&We)===lt}isCharacterDevice(){return(this.#i&We)===m0}isBlockDevice(){return(this.#i&We)===b0}isFIFO(){return(this.#i&We)===y0}isSocket(){return(this.#i&We)===S0}isSymbolicLink(){return(this.#i&pr)===pr}lstatCached(){return this.#i&f0?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!==pr||this.#i&xo||this.#i&Ze)}calledReaddir(){return!!(this.#i&ff)}isENOENT(){return!!(this.#i&Ze)}isNamed(e){return this.nocase?this.#_===To(e):this.#_===pn(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}}#k(e){this.#i|=ff;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#C()}}#C(){this.#i&Ze||(this.#i=(this.#i|Ze)&fn,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#C()}#I(){this.#i|=Ao,this.#M()}#M(){if(this.#i&dn)return;let e=this.#i;(e&We)===lt&&(e&=fn),this.#i=e|dn,this.#O()}#q(e=""){e==="ENOTDIR"||e==="EPERM"?this.#M():e==="ENOENT"?this.#C():this.children().provisional=0}#F(e=""){e==="ENOTDIR"?this.parent.#M():e==="ENOENT"&&this.#C()}#f(e=""){let r=this.#i;r|=xo,e==="ENOENT"&&(r|=Ze),(e==="EINVAL"||e==="UNKNOWN")&&(r&=fn),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#M()}#j(e,r){return this.#N(e,r)||this.#B(e,r)}#B(e,r){let i=cf(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&We;return s!==lt&&s!==pr&&s!==ze&&(n.#i|=dn),r.unshift(n),r.provisional++,n}#N(e,r){for(let i=r.provisional;i<r.length;i++){let n=r[i];if((this.nocase?To(e.name):pn(e.name))===n.#_)return this.#U(e,n,i,r)}}#U(e,r,i,n){let s=r.name;return r.#i=r.#i&fn|cf(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.#F(e.code)}}lstatSync(){if((this.#i&Ze)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#F(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.#v=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=cf(e);this.#i=this.#i&fn|E|f0,E!==ze&&E!==lt&&E!==pr&&(this.#i|=dn)}#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.#q(s.code),i.provisional=0;else{for(let a of o)this.#j(a,i);this.#k(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.#k(e)}catch(n){this.#q(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.#k(e)}catch(i){this.#q(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&c0)return!1;let e=We&this.#i;return e===ze||e===lt||e===pr}shouldWalk(e,r){return(this.#i&lt)===lt&&!(this.#i&c0)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#D)return this.#D;if(!((Ao|xo|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|xo|Ze)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}[v0](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.#A=i.join(this.sep),n.#R=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!r.has(n);)n.#A=void 0,n.#R=void 0,n=n.parent}};H.PathBase=Se;var _n=class t extends Se{sep="\\";splitSep=A2;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 Ro.win32.parse(e).root}getRoot(e){if(e=T2(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 bn(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(_0,"$1\\"),e===r}};H.PathWin32=_n;var yn=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=yn;var mn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=hn}={}){this.#t=g0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,v2.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new gn,this.#r=new gn,this.#n=new Oo(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 u0.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(A=>A?.isUnknown()?A.lstat():A));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 u0.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[v0](r)}};H.PathScurryBase=mn;var bn=class extends mn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,Ro.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return Ro.win32.parse(e).root.toUpperCase()}newRoot(e){return new _n(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=bn;var wn=class extends mn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,Ro.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new yn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};H.PathScurryPosix=wn;var Io=class extends wn{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};H.PathScurryDarwin=Io;H.Path=process.platform==="win32"?_n:yn;H.PathScurry=process.platform==="win32"?bn:process.platform==="darwin"?Io:wn});var df=g(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.Pattern=void 0;var O2=qt(),I2=t=>t.length>=1,D2=t=>t.length>=1,hf=class t{#e;#r;#n;length;#t;#o;#S;#u;#c;#l;#a=!0;constructor(e,r,i,n){if(!I2(e))throw new TypeError("empty pattern list");if(!D2(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]===O2.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)}};Do.Pattern=hf});var gf=g(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.Ignore=void 0;var x0=qt(),N2=df(),L2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",pf=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=L2}){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 x0.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 N2.Pattern(n,s,0,this.platform),a=new x0.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}};No.Ignore=pf});var A0=g(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.Processor=ut.SubWalks=ut.MatchRecord=ut.HasWalkedCache=void 0;var T0=qt(),Lo=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=Lo;var Po=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=Po;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 _f=class t{hasWalkedCache;matches=new Po;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 Lo}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===T0.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===T0.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=_f});var I0=g(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.GlobStream=Bt.GlobWalker=Bt.GlobUtil=void 0;var P2=uf(),R0=gf(),O0=A0(),k2=(t,e)=>typeof t=="string"?new R0.Ignore([t],e):Array.isArray(t)?new R0.Ignore(t,e):t,Sn=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=k2(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 O0.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 O0.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=Sn;var yf=class extends Sn{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=yf;var mf=class extends Sn{results;constructor(e,r,i){super(e,r,i),this.results=new P2.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=mf});var wf=g(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.Glob=void 0;var C2=qt(),M2=D("url"),Co=E0(),q2=df(),Mo=I0(),F2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",bf=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,M2.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||F2,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"?Co.PathScurryWin32:r.platform==="darwin"?Co.PathScurryDarwin:r.platform?Co.PathScurryPosix:Co.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 C2.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 q2.Pattern(l,f,0,this.platform)})}async walk(){return[...await new Mo.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 Mo.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 Mo.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 Mo.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=bf});var Sf=g(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.hasMagic=void 0;var j2=qt(),B2=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new j2.Minimatch(r,e).hasMagic())return!0;return!1};Fo.hasMagic=B2});var P0=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=vf;U.globSync=Ef;U.globIterateSync=En;U.globIterate=xf;var D0=qt(),gr=wf(),U2=Sf(),L0=qt();Object.defineProperty(U,"escape",{enumerable:!0,get:function(){return L0.escape}});Object.defineProperty(U,"unescape",{enumerable:!0,get:function(){return L0.unescape}});var W2=wf();Object.defineProperty(U,"Glob",{enumerable:!0,get:function(){return W2.Glob}});var z2=Sf();Object.defineProperty(U,"hasMagic",{enumerable:!0,get:function(){return z2.hasMagic}});var G2=gf();Object.defineProperty(U,"Ignore",{enumerable:!0,get:function(){return G2.Ignore}});function vn(t,e={}){return new gr.Glob(t,e).streamSync()}function vf(t,e={}){return new gr.Glob(t,e).stream()}function Ef(t,e={}){return new gr.Glob(t,e).walkSync()}async function N0(t,e={}){return new gr.Glob(t,e).walk()}function En(t,e={}){return new gr.Glob(t,e).iterateSync()}function xf(t,e={}){return new gr.Glob(t,e).iterate()}U.streamSync=vn;U.stream=Object.assign(vf,{sync:vn});U.iterateSync=En;U.iterate=Object.assign(xf,{sync:En});U.sync=Object.assign(Ef,{stream:vn,iterate:En});U.glob=Object.assign(N0,{glob:N0,globSync:Ef,sync:U.sync,globStream:vf,stream:U.stream,globStreamSync:vn,streamSync:U.streamSync,globIterate:xf,iterate:U.iterate,globIterateSync:En,iterateSync:U.iterateSync,Glob:gr.Glob,hasMagic:U2.hasMagic,escape:D0.escape,unescape:D0.unescape});U.glob.glob=U.glob});var q0=g((iU,M0)=>{"use strict";var C0=$a(),ri=D("path"),Tf=ob(),$2=Sw(),H2=Lw(),V2=jw(),Y2=P0(),_r=M0.exports={},k0=/[\/\\]/g,K2=function(t,e){var r=[];return Tf(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=$2(r,s):r=H2(r,s)}),r};_r.exists=function(){var t=ri.join.apply(ri,arguments);return C0.existsSync(t)};_r.expand=function(...t){var e=V2(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=K2(r,function(n){return Y2.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=ri.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):C0.statSync(n)[e.filter]()}catch{return!1}})),i};_r.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return ri.join(s||"",o)}},r);var i=[],n={};return _r.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=ri.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=ri.join(r.cwd,s)),a=a.replace(k0,"/"),s=s.replace(k0,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};_r.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=Tf(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return _r.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)?Tf(o):[o],s.result=_r.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var ii=g((sU,B0)=>{"use strict";var Af=$a(),F0=D("path"),Z2=is(),Q2=up(),j0=gl(),X2=zg(),nU=D("stream").Stream,J2=cr().PassThrough,Ce=B0.exports={};Ce.file=q0();Ce.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)})};Ce.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};Ce.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},X2(...i)};Ce.isStream=function(t){return Z2(t)};Ce.lazyReadStream=function(t){return new Q2.Readable(function(){return Af.createReadStream(t)})};Ce.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):Ce.isStream(t)?t.pipe(new J2):t};Ce.sanitizePath=function(t){return j0(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};Ce.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};Ce.unixifyPath=function(t){return j0(t,!1).replace(/^\w+:/,"")};Ce.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Af.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=F0.join(t,a),Af.stat(l,function(f,c){i.push({path:l,relative:F0.relative(e,l).replace(/\\/g,"/"),stats:c}),c&&c.isDirectory()?Ce.walkdir(l,e,function(h,d){if(h)return r(h);d.forEach(function(y){i.push(y)}),u()}):u()})})()})}});var G0=g((W0,z0)=>{"use strict";var eq=D("util"),tq={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 U0(t,e){Error.captureStackTrace(this,this.constructor),this.message=tq[t]||t,this.code=t,this.data=e}eq.inherits(U0,Error);W0=z0.exports=U0});var K0=g((oU,Y0)=>{"use strict";var If=D("fs"),H0=rh(),$0=(td(),Kv(ed)),Rf=D("path"),ft=ii(),rq=D("util").inherits,ae=G0(),V0=cr().Transform,Of=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}),V0.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=$0.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=$0.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=[]};rq(G,V0);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 If.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"?Of?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(Of?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,Of&&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}If.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=If.readlinkSync(t.filepath),i=Rf.dirname(t.filepath);t.data.type="symlink",t.data.linkname=Rf.relative(i,Rf.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=H0(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=H0(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};Y0.exports=G});var Bo=g((aU,Z0)=>{"use strict";var jo=Z0.exports=function(){};jo.prototype.getName=function(){};jo.prototype.getSize=function(){};jo.prototype.getLastModifiedDate=function(){};jo.prototype.isDirectory=function(){}});var Uo=g((lU,Q0)=>{"use strict";var Ge=Q0.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 Df=g((uU,iS)=>{"use strict";var X0=Uo(),J0=8,eS=1,iq=4,nq=2,tS=64,rS=2048,ve=iS.exports=function(){return this instanceof ve?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new ve};ve.prototype.encode=function(){return X0.getShortBytes((this.descriptor?J0:0)|(this.utf8?rS:0)|(this.encryption?eS:0)|(this.strongEncryption?tS:0))};ve.prototype.parse=function(t,e){var r=X0.getShortBytesValue(t,e),i=new ve;return i.useDataDescriptor((r&J0)!==0),i.useUTF8ForNames((r&rS)!==0),i.useStrongEncryption((r&tS)!==0),i.useEncryption((r&eS)!==0),i.setSlidingDictionarySize((r&nq)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&iq)!==0?3:2),i};ve.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};ve.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};ve.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};ve.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};ve.prototype.useDataDescriptor=function(t){this.descriptor=t};ve.prototype.usesDataDescriptor=function(){return this.descriptor};ve.prototype.useEncryption=function(t){this.encryption=t};ve.prototype.usesEncryption=function(){return this.encryption};ve.prototype.useStrongEncryption=function(t){this.strongEncryption=t};ve.prototype.usesStrongEncryption=function(){return this.strongEncryption};ve.prototype.useUTF8ForNames=function(t){this.utf8=t};ve.prototype.usesUTF8ForNames=function(){return this.utf8}});var sS=g((fU,nS)=>{"use strict";nS.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((cU,oS)=>{"use strict";oS.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 Lf=g((hU,cS)=>{"use strict";var sq=D("util").inherits,oq=gl(),lS=Bo(),uS=Df(),aS=sS(),Ne=Nf(),fS=Uo(),F=cS.exports=function(t){if(!(this instanceof F))return new F(t);lS.call(this),this.platform=Ne.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new uS,this.crc=0,this.time=-1,this.minver=Ne.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};sq(F,lS);F.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};F.prototype.getComment=function(){return this.comment!==null?this.comment:""};F.prototype.getCompressedSize=function(){return this.csize};F.prototype.getCrc=function(){return this.crc};F.prototype.getExternalAttributes=function(){return this.exattr};F.prototype.getExtra=function(){return this.extra!==null?this.extra:Ne.EMPTY};F.prototype.getGeneralPurposeBit=function(){return this.gpb};F.prototype.getInternalAttributes=function(){return this.inattr};F.prototype.getLastModifiedDate=function(){return this.getTime()};F.prototype.getLocalFileDataExtra=function(){return this.getExtra()};F.prototype.getMethod=function(){return this.method};F.prototype.getName=function(){return this.name};F.prototype.getPlatform=function(){return this.platform};F.prototype.getSize=function(){return this.size};F.prototype.getTime=function(){return this.time!==-1?fS.dosToDate(this.time):-1};F.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};F.prototype.getUnixMode=function(){return this.platform!==Ne.PLATFORM_UNIX?0:this.getExternalAttributes()>>Ne.SHORT_SHIFT&Ne.SHORT_MASK};F.prototype.getVersionNeededToExtract=function(){return this.minver};F.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};F.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};F.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};F.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};F.prototype.setExtra=function(t){this.extra=t};F.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof uS))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};F.prototype.setInternalAttributes=function(t){this.inattr=t};F.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};F.prototype.setName=function(t,e=!1){t=oq(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};F.prototype.setPlatform=function(t){this.platform=t};F.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};F.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=fS.dateToDos(t,e)};F.prototype.setUnixMode=function(t){t|=this.isDirectory()?Ne.S_IFDIR:Ne.S_IFREG;var e=0;e|=t<<Ne.SHORT_SHIFT|(this.isDirectory()?Ne.S_DOS_D:Ne.S_DOS_A),this.setExternalAttributes(e),this.mode=t&Ne.MODE_MASK,this.platform=Ne.PLATFORM_UNIX};F.prototype.setVersionNeededToExtract=function(t){this.minver=t};F.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};F.prototype.isUnixSymlink=function(){return(this.getUnixMode()&aS.FILE_TYPE_FLAG)===aS.LINK_FLAG};F.prototype.isZip64=function(){return this.csize>Ne.ZIP64_MAGIC||this.size>Ne.ZIP64_MAGIC}});var Pf=g((pU,hS)=>{"use strict";var dU=D("stream").Stream,aq=cr().PassThrough,lq=is(),uq=hS.exports={};uq.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(lq(t)&&!t._readableState){var e=new aq;return t.pipe(e),e}return t}});var Cf=g((gU,dS)=>{"use strict";var fq=D("util").inherits,cq=is(),kf=cr().Transform,hq=Bo(),dq=Pf(),Me=dS.exports=function(t){if(!(this instanceof Me))return new Me(t);kf.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};fq(Me,kf);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 hq)){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=dq.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(cq(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),kf.prototype.write.call(this,t,e)}});var Wo=g(Mf=>{"use strict";var pS;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof Mf=="object"?t(Mf):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(pS={}):t(pS={})})(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,T=0,R=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(T=0;T!=256;++T)R[T]=x[T];for(T=0;T!=256;++T)for(w=x[T],O=256+T;O<4096;O+=256)w=R[O]=w>>>8^x[w&255];var P=[];for(T=1;T!=16;++T)P[T-1]=typeof Int32Array<"u"?R.subarray(T*256,T*256+256):R.slice(T*256,T*256+256);return P}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,T=0,R=x.length;T<R;)w=w>>>8^r[(w^x.charCodeAt(T++))&255];return~w}function A(x,O){for(var w=O^-1,T=x.length-15,R=0;R<T;)w=v[x[R++]^w&255]^b[x[R++]^w>>8&255]^m[x[R++]^w>>16&255]^S[x[R++]^w>>>24]^p[x[R++]]^y[x[R++]]^d[x[R++]]^h[x[R++]]^c[x[R++]]^f[x[R++]]^u[x[R++]]^l[x[R++]]^a[x[R++]]^o[x[R++]]^s[x[R++]]^r[x[R++]];for(T+=15;R<T;)w=w>>>8^r[(w^x[R++])&255];return~w}function N(x,O){for(var w=O^-1,T=0,R=x.length,P=0,z=0;T<R;)P=x.charCodeAt(T++),P<128?w=w>>>8^r[(w^P)&255]:P<2048?(w=w>>>8^r[(w^(192|P>>6&31))&255],w=w>>>8^r[(w^(128|P&63))&255]):P>=55296&&P<57344?(P=(P&1023)+64,z=x.charCodeAt(T++)&1023,w=w>>>8^r[(w^(240|P>>8&7))&255],w=w>>>8^r[(w^(128|P>>2&63))&255],w=w>>>8^r[(w^(128|z>>6&15|(P&3)<<4))&255],w=w>>>8^r[(w^(128|z&63))&255]):(w=w>>>8^r[(w^(224|P>>12&15))&255],w=w>>>8^r[(w^(128|P>>6&63))&255],w=w>>>8^r[(w^(128|P&63))&255]);return~w}t.table=r,t.bstr=E,t.buf=A,t.str=N})});var _S=g((yU,gS)=>{"use strict";var{Transform:pq}=cr(),gq=Wo(),qf=class extends pq{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=gq.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}};gS.exports=qf});var mS=g((mU,yS)=>{"use strict";var{DeflateRaw:_q}=D("zlib"),yq=Wo(),Ff=class extends _q{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=yq.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}};yS.exports=Ff});var jf=g((bU,bS)=>{"use strict";bS.exports={CRC32Stream:_S(),DeflateCRC32Stream:mS()}});var vS=g((EU,SS)=>{"use strict";var mq=D("util").inherits,bq=Wo(),{CRC32Stream:wq}=jf(),{DeflateCRC32Stream:Sq}=jf(),wS=Cf(),wU=Lf(),SU=Df(),k=Nf(),vU=Pf(),L=Uo(),_e=SS.exports=function(t){if(!(this instanceof _e))return new _e(t);t=this.options=this._defaults(t),wS.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}};mq(_e,wS);_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(k.METHOD_STORED);var i=t.getMethod();if(i===k.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(bq.buf(e)>>>0)),this._writeLocalFileHeader(t),i===k.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(i===k.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(k.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=k.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(k.METHOD_DEFLATED),t.getMethod()===k.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(k.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()===k.METHOD_DEFLATED,i=r?new Sq(this.options.zlib):new wq,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=k.ZIP64_MAGIC_SHORT,e=k.ZIP64_MAGIC,r=k.ZIP64_MAGIC),this.write(L.getLongBytes(k.SIG_EOCD)),this.write(k.SHORT_ZERO),this.write(k.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(k.SIG_ZIP64_EOCD)),this.write(L.getEightBytes(44)),this.write(L.getShortBytes(k.MIN_VERSION_ZIP64)),this.write(L.getShortBytes(k.MIN_VERSION_ZIP64)),this.write(k.LONG_ZERO),this.write(k.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(k.SIG_ZIP64_EOCD_LOC)),this.write(k.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>k.ZIP64_MAGIC){n=k.ZIP64_MAGIC,s=k.ZIP64_MAGIC,i=k.ZIP64_MAGIC,t.setVersionNeededToExtract(k.MIN_VERSION_ZIP64);var o=Buffer.concat([L.getShortBytes(k.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(k.SIG_CFH)),this.write(L.getShortBytes(t.getPlatform()<<8|k.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(k.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(k.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(k.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(i=Buffer.from(i)),t._offsets.file=this.offset,this.write(L.getLongBytes(k.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(k.LONG_ZERO),this.write(k.LONG_ZERO),this.write(k.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>k.ZIP64_MAGIC_SHORT||this._archive.centralLength>k.ZIP64_MAGIC||this._archive.centralOffset>k.ZIP64_MAGIC};_e.prototype.setComment=function(t){this._archive.comment=t}});var Bf=g((xU,ES)=>{"use strict";ES.exports={ArchiveEntry:Bo(),ZipArchiveEntry:Lf(),ArchiveOutputStream:Cf(),ZipArchiveOutputStream:vS()}});var TS=g((TU,xS)=>{"use strict";var vq=D("util").inherits,Wf=Bf().ZipArchiveOutputStream,Eq=Bf().ZipArchiveEntry,Uf=ii(),ni=xS.exports=function(t){if(!(this instanceof ni))return new ni(t);t=this.options=t||{},t.zlib=t.zlib||{},Wf.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)};vq(ni,Wf);ni.prototype._normalizeFileData=function(t){t=Uf.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=Uf.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=Uf.dateify(t.date),t};ni.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 Eq(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)),Wf.prototype.entry.call(this,i,t,r)};ni.prototype.finalize=function(){this.finish()}});var RS=g((AU,AS)=>{"use strict";var xq=TS(),Tq=ii(),Ut=function(t){if(!(this instanceof Ut))return new Ut(t);t=this.options=Tq.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new xq(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)};AS.exports=Ut});var IS=g((RU,OS)=>{"use strict";OS.exports=D("events")});var NS=g((IU,DS)=>{"use strict";DS.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 zf=g((NU,PS)=>{"use strict";var LS=NS();PS.exports=class{constructor(e){this.hwm=e||16,this.head=new LS(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 LS(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 Gf=g((LU,kS)=>{"use strict";function Aq(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function Rq(t){return Buffer.isEncoding(t)}function Oq(t,e,r){return Buffer.alloc(t,e,r)}function Iq(t){return Buffer.allocUnsafe(t)}function Dq(t){return Buffer.allocUnsafeSlow(t)}function Nq(t,e){return Buffer.byteLength(t,e)}function Lq(t,e){return Buffer.compare(t,e)}function Pq(t,e){return Buffer.concat(t,e)}function kq(t,e,r,i,n){return Y(t).copy(e,r,i,n)}function Cq(t,e){return Y(t).equals(e)}function Mq(t,e,r,i,n){return Y(t).fill(e,r,i,n)}function qq(t,e,r){return Buffer.from(t,e,r)}function Fq(t,e,r,i){return Y(t).includes(e,r,i)}function jq(t,e,r,i){return Y(t).indexOf(e,r,i)}function Bq(t,e,r,i){return Y(t).lastIndexOf(e,r,i)}function Uq(t){return Y(t).swap16()}function Wq(t){return Y(t).swap32()}function zq(t){return Y(t).swap64()}function Y(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Gq(t,e,r,i){return Y(t).toString(e,r,i)}function $q(t,e,r,i,n){return Y(t).write(e,r,i,n)}function Hq(t,e){return Y(t).readDoubleBE(e)}function Vq(t,e){return Y(t).readDoubleLE(e)}function Yq(t,e){return Y(t).readFloatBE(e)}function Kq(t,e){return Y(t).readFloatLE(e)}function Zq(t,e){return Y(t).readInt32BE(e)}function Qq(t,e){return Y(t).readInt32LE(e)}function Xq(t,e){return Y(t).readUInt32BE(e)}function Jq(t,e){return Y(t).readUInt32LE(e)}function eF(t,e,r){return Y(t).writeDoubleBE(e,r)}function tF(t,e,r){return Y(t).writeDoubleLE(e,r)}function rF(t,e,r){return Y(t).writeFloatBE(e,r)}function iF(t,e,r){return Y(t).writeFloatLE(e,r)}function nF(t,e,r){return Y(t).writeInt32BE(e,r)}function sF(t,e,r){return Y(t).writeInt32LE(e,r)}function oF(t,e,r){return Y(t).writeUInt32BE(e,r)}function aF(t,e,r){return Y(t).writeUInt32LE(e,r)}kS.exports={isBuffer:Aq,isEncoding:Rq,alloc:Oq,allocUnsafe:Iq,allocUnsafeSlow:Dq,byteLength:Nq,compare:Lq,concat:Pq,copy:kq,equals:Cq,fill:Mq,from:qq,includes:Fq,indexOf:jq,lastIndexOf:Bq,swap16:Uq,swap32:Wq,swap64:zq,toBuffer:Y,toString:Gq,write:$q,readDoubleBE:Hq,readDoubleLE:Vq,readFloatBE:Yq,readFloatLE:Kq,readInt32BE:Zq,readInt32LE:Qq,readUInt32BE:Xq,readUInt32LE:Jq,writeDoubleBE:eF,writeDoubleLE:tF,writeFloatBE:rF,writeFloatLE:iF,writeInt32BE:nF,writeInt32LE:sF,writeUInt32BE:oF,writeUInt32LE:aF}});var MS=g((kU,CS)=>{"use strict";var lF=Gf();CS.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return lF.toString(e,this.encoding)}flush(){return""}}});var BS=g((MU,jS)=>{"use strict";var qS=Gf();jS.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&FS(e,0)===0)return this.bytesSeen=uF(e),qS.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=FS(e,i),s=e.byteLength-n;s>i&&(r+=qS.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 FS(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 uF(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 WS=g((FU,US)=>{"use strict";var fF=MS(),cF=BS();US.exports=class{constructor(e="utf8"){switch(this.encoding=hF(e),this.encoding){case"utf8":this.decoder=new cF;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new fF(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 hF(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 oc=g((jU,cv)=>{"use strict";var{EventEmitter:dF}=IS(),Yo=new Error("Stream was destroyed"),$f=new Error("Premature close"),YS=zf(),pF=WS(),Hf=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,oe=(1<<29)-1,ct=1,Jf=2,Et=4,xn=8,KS=oe^ct,gF=oe^Jf,In=16,si=32,li=64,zt=128,Dn=256,ec=512,Gt=1024,Vf=2048,tc=4096,rc=8192,Qe=16384,Wt=32768,Ko=65536,yr=131072,ZS=Dn|ec,_F=In|Ko,yF=li|In,mF=tc|zt,ic=Dn|yr,bF=oe^In,wF=oe^li,SF=oe^(li|Ko),zS=oe^Ko,vF=oe^Dn,EF=oe^(zt|rc),xF=oe^Gt,GS=oe^ZS,QS=oe^Wt,TF=oe^si,XS=oe^yr,AF=oe^ic,xt=1<<18,ai=2<<18,Nn=4<<18,mr=8<<18,Ln=16<<18,Ht=32<<18,Yf=64<<18,oi=128<<18,nc=256<<18,$t=512<<18,Zo=1024<<18,RF=oe^(xt|nc),JS=oe^Nn,OF=oe^(xt|$t),IF=oe^Ln,DF=oe^mr,ev=oe^oi,NF=oe^ai,tv=oe^Zo,Tn=In|xt,rv=oe^Tn,sc=Qe|Ht,ht=Et|xn|Jf,qe=ht|ct,iv=ht|sc,LF=JS&wF,Qo=oi|Wt,PF=Qo&rv,nv=qe|PF,kF=qe|Gt|Qe,$S=qe|Qe|zt,CF=qe|Gt|zt,MF=qe|tc|zt|rc,qF=qe|In|Gt|Qe|Ko|yr,FF=ht|Gt|Qe,jF=si|qe|Wt|li,BF=Wt|ct,UF=qe|$t|Ht,WF=mr|Ln,sv=mr|xt,zF=mr|Ln|qe|xt,HS=qe|xt|mr|Zo,GF=Nn|xt,$F=xt|nc,HF=qe|$t|sv|Ht,VF=Ln|ht|$t|Ht,YF=ai|qe|oi|Nn,KF=$t|Ht|ht,zo=Symbol.asyncIterator||Symbol("asyncIterator"),Go=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new YS,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||fv,this.map=n||i,this.afterWrite=XF.bind(this),this.afterUpdateNextTick=tj.bind(this)}get ending(){return(this.stream._duplexState&$t)!==0}get ended(){return(this.stream._duplexState&Ht)!==0}push(e){return(this.stream._duplexState&KF)!==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|=mr,!0):(this.stream._duplexState|=WF,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=DF),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|$t)&JS}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&HS)===sv;)i.push(n._writableState.shift());if((n._duplexState&qe)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=ai;do{for(;(e._duplexState&HS)===mr;){let r=this.shift();e._duplexState|=$F,e._write(r,this.afterWrite)}(e._duplexState&GF)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=NF}updateNonPrimary(){let e=this.stream;if((e._duplexState&HF)===$t){e._duplexState=e._duplexState|xt,e._final(QF.bind(this));return}if((e._duplexState&ht)===Et){(e._duplexState&Qo)===0&&(e._duplexState|=Tn,e._destroy(ov.bind(this)));return}(e._duplexState&nv)===ct&&(e._duplexState=(e._duplexState|Tn)&KS,e._open(av.bind(this)))}continueUpdate(){return(this.stream._duplexState&oi)===0?!1:(this.stream._duplexState&=ev,!0)}updateCallback(){(this.stream._duplexState&YF)===Nn?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&oi)===0&&(this.stream._duplexState|=oi,(this.stream._duplexState&ai)===0&&Hf(this.afterUpdateNextTick))}},Kf=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new YS,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||fv,this.map=n||i,this.pipeTo=null,this.afterRead=JF.bind(this),this.afterUpdateNextTick=ej.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|=ec,this.pipeTo=e,this.pipeline=new Qf(this.stream,e,r),r&&this.stream.on("error",VS),On(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",VS),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",ZF.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)&SF,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=zS,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|zt)&zS,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=EF),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&$S)===zt){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=GS),(e._duplexState&Vf)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=yr,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&$S)===zt&&(e._duplexState&ZS)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=GS),(e._duplexState&Vf)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=si;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&qF)===yr;)e._duplexState|=_F,e._read(this.afterRead),this.drain();(e._duplexState&MF)===mF&&(e._duplexState|=rc,e.emit("readable")),(e._duplexState&yF)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=TF}updateNonPrimary(){let e=this.stream;if((e._duplexState&CF)===Gt&&(e._duplexState=(e._duplexState|Qe)&xF,e.emit("end"),(e._duplexState&iv)===sc&&(e._duplexState|=Et),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&ht)===Et){(e._duplexState&Qo)===0&&(e._duplexState|=Tn,e._destroy(ov.bind(this)));return}(e._duplexState&nv)===ct&&(e._duplexState=(e._duplexState|Tn)&KS,e._open(av.bind(this)))}continueUpdate(){return(this.stream._duplexState&Wt)===0?!1:(this.stream._duplexState&=QS,!0)}updateCallback(){(this.stream._duplexState&jF)===li?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&BF)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&si)===0&&Hf(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&Wt)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&si)===0&&Hf(this.afterUpdateNextTick))}},Zf=class{constructor(e){this.data=null,this.afterTransform=ij.bind(e),this.afterFinal=null}},Qf=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 ZF(){this.stream._duplexState|=ec,this.updateCallback()}function QF(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ht)===0&&(e._duplexState|=Ht,e.emit("finish")),(e._duplexState&iv)===sc&&(e._duplexState|=Et),e._duplexState&=OF,(e._duplexState&ai)===0?this.update():this.updateNextTick()}function ov(t){let e=this.stream;!t&&this.error!==Yo&&(t=this.error),t&&e.emit("error",t),e._duplexState|=xn,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 XF(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=RF,this.drains!==null&&rj(this.drains),(e._duplexState&zF)===Ln&&(e._duplexState&=IF,(e._duplexState&Yf)===Yf&&e.emit("drain")),this.updateCallback()}function JF(t){t&&this.stream.destroy(t),this.stream._duplexState&=bF,this.readAhead===!1&&(this.stream._duplexState&Dn)===0&&(this.stream._duplexState&=XS),this.updateCallback()}function ej(){(this.stream._duplexState&si)===0&&(this.stream._duplexState&=QS,this.update())}function tj(){(this.stream._duplexState&ai)===0&&(this.stream._duplexState&=ev,this.update())}function rj(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function av(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&Et)===0&&((e._duplexState&kF)===0&&(e._duplexState|=li),(e._duplexState&UF)===0&&(e._duplexState|=Nn),e.emit("open")),e._duplexState&=rv,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function ij(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function nj(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=Vf|ic,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=tc,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=Yf,this._writableState.updateNextTick())}var An=class extends dF{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",_j.bind(this))),this.on("newListener",nj)}_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&xn)!==0}get destroying(){return(this._duplexState&ht)!==0}destroy(e){(this._duplexState&ht)===0&&(e||(e=Yo),this._duplexState=(this._duplexState|Et)&LF,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=Jf,this._predestroy(),this._duplexState&=gF,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},$o=class t extends An{constructor(e){super(e),this._duplexState|=ct|Ht|yr,this._readableState=new Kf(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=XS),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let r=new pF(e),i=this._readableState.map||aj;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|=ic,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?AF:vF,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(dj(e))return e;if(e[zo])return this._fromAsyncIterator(e[zo](),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&FF)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&Dn)===0}[zo](){let e=this,r=null,i=null,n=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",o),{[zo](){return this},next(){return new Promise(function(u,f){i=u,n=f;let c=e.read();c!==null?a(c):(e._duplexState&xn)!==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(Yo):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,c)=>{if(e._duplexState&xn)return f({value:void 0,done:!0});e.once("close",function(){u?c(u):f({value:void 0,done:!0})})})}}},Ho=class extends An{constructor(e){super(e),this._duplexState|=ct|Qe,this._writableState=new Go(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|=Zo}uncork(){this._duplexState&=tv,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&VF)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(yj(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&nc?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}},Rn=class extends $o{constructor(e){super(e),this._duplexState=ct|this._duplexState&yr,this._writableState=new Go(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=Zo}uncork(){this._duplexState&=tv,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}},Vo=class extends Rn{constructor(e){super(e),this._transformState=new Zf(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(sj.bind(this))}},Xf=class extends Vo{};function sj(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function oj(...t){return new Promise((e,r)=>lv(...t,i=>{if(i)return r(i);e()}))}function lv(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],On(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=On(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:$f)))}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($f)}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function aj(t){return t}function uv(t){return!!t._readableState||!!t._writableState}function On(t){return typeof t._duplexState=="number"&&uv(t)}function lj(t){return!!t._readableState&&t._readableState.ending}function uj(t){return!!t._readableState&&t._readableState.ended}function fj(t){return!!t._writableState&&t._writableState.ending}function cj(t){return!!t._writableState&&t._writableState.ended}function hj(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&r===Yo?null:r}function dj(t){return On(t)&&t.readable}function pj(t){return(t._duplexState&ct)!==ct||(t._duplexState&Et)===Et||(t._duplexState&Qo)!==0}function gj(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function fv(t){return gj(t)?t.byteLength:1024}function VS(){}function _j(){this.destroy(new Error("Stream aborted."))}function yj(t){return t._writev!==Ho.prototype._writev&&t._writev!==Rn.prototype._writev}cv.exports={pipeline:lv,pipelinePromise:oj,isStream:uv,isStreamx:On,isEnding:lj,isEnded:uj,isFinishing:fj,isFinished:cj,isDisturbed:pj,getStreamError:hj,Stream:An,Writable:Ho,Readable:$o,Duplex:Rn,Transform:Vo,PassThrough:Xf}});var Xo=g((BU,hv)=>{"use strict";function mj(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function bj(t){return Buffer.isEncoding(t)}function wj(t,e,r){return Buffer.alloc(t,e,r)}function Sj(t){return Buffer.allocUnsafe(t)}function vj(t){return Buffer.allocUnsafeSlow(t)}function Ej(t,e){return Buffer.byteLength(t,e)}function xj(t,e){return Buffer.compare(t,e)}function Tj(t,e){return Buffer.concat(t,e)}function Aj(t,e,r,i,n){return K(t).copy(e,r,i,n)}function Rj(t,e){return K(t).equals(e)}function Oj(t,e,r,i,n){return K(t).fill(e,r,i,n)}function Ij(t,e,r){return Buffer.from(t,e,r)}function Dj(t,e,r,i){return K(t).includes(e,r,i)}function Nj(t,e,r,i){return K(t).indexOf(e,r,i)}function Lj(t,e,r,i){return K(t).lastIndexOf(e,r,i)}function Pj(t){return K(t).swap16()}function kj(t){return K(t).swap32()}function Cj(t){return K(t).swap64()}function K(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Mj(t,e,r,i){return K(t).toString(e,r,i)}function qj(t,e,r,i,n){return K(t).write(e,r,i,n)}function Fj(t,e){return K(t).readDoubleBE(e)}function jj(t,e){return K(t).readDoubleLE(e)}function Bj(t,e){return K(t).readFloatBE(e)}function Uj(t,e){return K(t).readFloatLE(e)}function Wj(t,e){return K(t).readInt32BE(e)}function zj(t,e){return K(t).readInt32LE(e)}function Gj(t,e){return K(t).readUInt32BE(e)}function $j(t,e){return K(t).readUInt32LE(e)}function Hj(t,e,r){return K(t).writeDoubleBE(e,r)}function Vj(t,e,r){return K(t).writeDoubleLE(e,r)}function Yj(t,e,r){return K(t).writeFloatBE(e,r)}function Kj(t,e,r){return K(t).writeFloatLE(e,r)}function Zj(t,e,r){return K(t).writeInt32BE(e,r)}function Qj(t,e,r){return K(t).writeInt32LE(e,r)}function Xj(t,e,r){return K(t).writeUInt32BE(e,r)}function Jj(t,e,r){return K(t).writeUInt32LE(e,r)}hv.exports={isBuffer:mj,isEncoding:bj,alloc:wj,allocUnsafe:Sj,allocUnsafeSlow:vj,byteLength:Ej,compare:xj,concat:Tj,copy:Aj,equals:Rj,fill:Oj,from:Ij,includes:Dj,indexOf:Nj,lastIndexOf:Lj,swap16:Pj,swap32:kj,swap64:Cj,toBuffer:K,toString:Mj,write:qj,readDoubleBE:Fj,readDoubleLE:jj,readFloatBE:Bj,readFloatLE:Uj,readInt32BE:Wj,readInt32LE:zj,readUInt32BE:Gj,readUInt32LE:$j,writeDoubleBE:Hj,writeDoubleLE:Vj,writeFloatBE:Yj,writeFloatLE:Kj,writeInt32BE:Zj,writeInt32LE:Qj,writeUInt32BE:Xj,writeUInt32LE:Jj}});var uc=g(fi=>{"use strict";var W=Xo(),eB="0000000000000000000",tB="7777777777777777777",Jo=48,dv=W.from([117,115,116,97,114,0]),rB=W.from([Jo,Jo]),iB=W.from([117,115,116,97,114,32]),nB=W.from([32,0]),sB=4095,Pn=257,lc=263;fi.decodeLongPath=function(e,r){return ui(e,0,e.length,r)};fi.encodePax=function(e){let r="";e.name&&(r+=ac(" path="+e.name+`
6
+ `+e);let[,i]=r;return i.replace(/\s/g,"").split(Yv).map(n=>n.replace(Kv,"").trim())}function mh(t,e){var r={};return Object.keys(t).forEach(i=>{var n=t[i],s,o=wi(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=Qv(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),q(n)(...c)}}),Ca(r,e)}function lh(t,e){t.length=1,t.head=t.tail=e}function ka(t,e,r){if(e==null)e=1;else if(e===0)throw new RangeError("Concurrency must not be zero");var i=q(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 P,x;function O(R,...A){if(R)return E?x(R):P();if(A.length<=1)return P(A[0]);P(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)=>{P=R,x=A})}function d(b){return function(v,...E){n-=1;for(var T=0,P=b.length;T<P;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,(P,x)=>{if(P)return T(P);E(x)})});u(b),a(b,v)};var S=!1,m={_tasks:new da,_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 P=m._tasks.shift();b.push(P),s.push(P),v.push(P.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 bh(t,e){return ka(t,1,e)}function wh(t,e,r){return ka(t,e,r)}function Xv(t,e,r,i){i=Ot(i);var n=q(r);return Xe(t,(s,o,a)=>{n(e,s,(l,u)=>{e=u,a(l)})},s=>i(s,e))}function Ma(...t){var e=t.map(q);return function(...r){var i=this,n=r[r.length-1];return typeof n=="function"?r.pop():n=Er(),Sr(e,r,(s,o,a)=>{o.apply(i,s.concat((l,...u)=>{a(l,u)}))},(s,o)=>n(s,...o)),n[vr]}}function Sh(...t){return Ma(...t.reverse())}function Jv(t,e,r,i){return La($e(e),t,r,i)}function ex(t,e,r,i){var n=q(r);return Si(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 tx(t,e,r){return mi(t,1/0,e,r)}function rx(t,e,r){return mi(t,1,e,r)}function Eh(...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=q(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,Vn);c()})},u=>{if(u)return s(u);s(null,o?a:e(!1))})}}function ix(t,e,r){return dt(i=>i,(i,n)=>n)(Fe,t,e,r)}function nx(t,e,r,i){return dt(n=>n,(n,s)=>s)($e(e),t,r,i)}function sx(t,e,r){return dt(i=>i,(i,n)=>n)($e(1),t,e,r)}function vh(t){return(e,...r)=>q(e)(...r,(i,...n)=>{typeof console=="object"&&(i?console.error&&console.error(i):console[t]&&n.forEach(s=>console[t](s)))})}function ox(t,e,r){r=It(r);var i=q(t),n=q(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 Th(t,e,r){let i=q(e);return Bn(t,(...n)=>{let s=n.pop();i(...n,(o,a)=>s(o,!a))},r)}function Rh(t){return(e,r,i)=>t(e,i)}function ax(t,e,r){return Fe(t,Rh(q(e)),r)}function lx(t,e,r,i){return $e(e)(t,Rh(q(r)),i)}function ux(t,e,r){return Un(t,1,e,r)}function qa(t){return wi(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 fx(t,e,r){return dt(i=>!i,i=>!i)(Fe,t,e,r)}function cx(t,e,r,i){return dt(n=>!n,n=>!n)($e(e),t,r,i)}function hx(t,e,r){return dt(i=>!i,i=>!i)(Xe,t,e,r)}function dx(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 px(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 Kn(t,e,r,i){var n=Hn(e)?dx:px;return n(t,e,q(r),i)}function gx(t,e,r){return Kn(Fe,t,e,r)}function _x(t,e,r,i){return Kn($e(e),t,r,i)}function yx(t,e,r){return Kn(Xe,t,e,r)}function mx(t,e){var r=It(e),i=q(qa(t));function n(s){if(s)return r(s);s!==!1&&i(n)}return n()}function bx(t,e,r,i){var n=q(r);return Si(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 Oh(t,e,r){return Zn(t,1/0,e,r)}function Ih(t,e,r){return Zn(t,1,e,r)}function wx(t,e,r,i){i=Ot(i);var n={},s=q(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 Ph(t,e,r){return Qn(t,1/0,e,r)}function Lh(t,e,r){return Qn(t,1,e,r)}function Nh(t,e=r=>r){var r=Object.create(null),i=Object.create(null),n=q(t),s=bi((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 kh(t,e){return Fa(Fe,t,e)}function Mh(t,e,r){return Fa($e(e),t,r)}function ja(t,e){var r=q(t);return ka((i,n)=>{r(i[0],n)},e,1)}function Sx(t){return(t<<1)+1}function uh(t){return(t+1>>1)-1}function ha(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function qh(t,e){var r=ja(t,e),{push:i,pushAsync:n}=r;r._tasks=new Ra,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 Ex(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++)q(t[r])(e)}function Aa(t,e,r,i){var n=[...t].reverse();return Sr(n,e,r,i)}function Gn(t){var e=q(t);return bi(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 jh(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 Ba(t,e,r,i){let n=q(r);return Kn(t,e,(s,o)=>{n(s,(a,l)=>{o(a,!l)})},i)}function vx(t,e,r){return Ba(Fe,t,e,r)}function xx(t,e,r,i){return Ba($e(e),t,r,i)}function Tx(t,e,r){return Ba(Xe,t,e,r)}function Gh(t){return function(){return t}}function zn(t,e,r){var i={times:Oa,intervalFunc:Gh(zh)};if(arguments.length<3&&typeof t=="function"?(r=e||Er(),e=t):(Rx(i,t),r=r||Er()),typeof e!="function")throw new Error("Invalid arguments for async.retry");var n=q(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[vr]}function Rx(t,e){if(typeof e=="object")t.times=+e.times||Oa,t.intervalFunc=typeof e.interval=="function"?e.interval:Gh(+e.interval||zh),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||Oa;else throw new Error("Invalid arguments for async.retry")}function $h(t,e){e||(e=t,t=null);let r=t&&t.arity||e.length;wi(e)&&(r+=1);var i=q(e);return bi((n,s)=>{(n.length<r-1||s==null)&&(n.push(s),s=Er());function o(a){i(...n,a)}return t?zn(t,o,s):zn(o,s),s[vr]})}function Hh(t,e){return Fa(Xe,t,e)}function Ax(t,e,r){return dt(Boolean,i=>i)(Fe,t,e,r)}function Ox(t,e,r,i){return dt(Boolean,n=>n)($e(e),t,r,i)}function Ix(t,e,r){return dt(Boolean,i=>i)(Xe,t,e,r)}function Dx(t,e,r){var i=q(e);return Yn(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 Yh(t,e,r){var i=q(t);return bi((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 Xn(t,e,r,i){var n=q(r);return Si(Px(t),e,n,i)}function Kh(t,e,r){return Xn(t,1/0,e,r)}function Zh(t,e,r){return Xn(t,1,e,r)}function Qh(t,e,r,i){arguments.length<=3&&typeof e=="function"&&(i=r,r=e,e=Array.isArray(t)?[]:{}),i=Ot(i||Er());var n=q(r);return Fe(t,(s,o,a)=>{n(e,s,o,a)},s=>i(s,e)),i[vr]}function Lx(t,e){var r=null,i;return Wn(t,(n,s)=>{q(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 Jh(t){return(...e)=>(t.unmemoized||t)(...e)}function Nx(t,e,r){r=It(r);var i=q(e),n=q(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 ed(t,e,r){let i=q(t);return $n(n=>i((s,o)=>n(s,!o)),e,r)}function Cx(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=q(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,ch,hh,_i,At,Vn,$e,yi,Fe,Yn,_h,Xe,Na,yh,vr,Hv,Vv,Yv,Kv,da,Sr,Si,mi,pa,ga,_a,ya,ma,xh,Bn,ba,Un,Wn,wa,Sa,Ea,va,xa,Ta,Ah,Zn,Dh,Qn,Fn,Ch,Fa,Ra,Fh,Bh,Uh,Wh,Oa,zh,Ia,Da,Pa,Vh,Xh,$n,td,kx,id=ZE(()=>{"use strict";Pv=typeof queueMicrotask=="function"&&queueMicrotask,ch=typeof setImmediate=="function"&&setImmediate,hh=typeof process=="object"&&typeof process.nextTick=="function";Pv?_i=queueMicrotask:ch?_i=setImmediate:hh?_i=process.nextTick:_i=dh;At=ph(_i);Vn={};$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(Lv(e))return ah(e,t,r,i);if(Nv(e))return ah(e[Symbol.asyncIterator](),t,r,i);var n=Fv(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===Vn||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()};yi=M(jv,4);Fe=M(Wv,3);Yn=M(Gv,3),_h=gh(Yn);Xe=M(zv,3);Na=M($v,3),yh=gh(Na),vr=Symbol("promiseCallback");Hv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,Vv=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,Yv=/,/,Kv=/(=.+)?(\s*)$/;da=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):lh(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):lh(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}};Sr=M(Xv,4);Si=M(Jv,4);mi=M(ex,4);pa=M(tx,3);ga=M(rx,3);_a=M(ix,3);ya=M(nx,4);ma=M(sx,3);xh=vh("dir");Bn=M(ox,3);ba=M(ax,3);Un=M(lx,4);Wn=M(ux,3);wa=M(fx,3);Sa=M(cx,4);Ea=M(hx,3);va=M(gx,3);xa=M(_x,4);Ta=M(yx,3);Ah=M(mx,2);Zn=M(bx,4);Dh=vh("log");Qn=M(wx,4);hh?Fn=process.nextTick:ch?Fn=setImmediate:Fn=dh;Ch=ph(Fn),Fa=M((t,e,r)=>{var i=Hn(e)?[]:{};t(e,(n,s,o)=>{q(n)((a,...l)=>{l.length<2&&([l]=l),i[s]=l,o(a)})},n=>r(n,i))},3);Ra=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&&ha(this.heap[e],this.heap[r=uh(e)]);){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}percDown(e){let r;for(;(r=Sx(e))<this.heap.length&&(r+1<this.heap.length&&ha(this.heap[r+1],this.heap[r])&&(r=r+1),!ha(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=uh(this.heap.length-1);i>=0;i--)this.percDown(i);return this}};Fh=M(Ex,2);Bh=M(vx,3);Uh=M(xx,4);Wh=M(Tx,3);Oa=5,zh=0;Ia=M(Ax,3);Da=M(Ox,4);Pa=M(Ix,3);Vh=M(Dx,3);Xh=M(Lx);$n=M(Nx,3);td=M(Cx),kx={apply:fh,applyEach:_h,applyEachSeries:yh,asyncify:jn,auto:Ca,autoInject:mh,cargo:bh,cargoQueue:wh,compose:Sh,concat:pa,concatLimit:mi,concatSeries:ga,constant:Eh,detect:_a,detectLimit:ya,detectSeries:ma,dir:xh,doUntil:Th,doWhilst:Bn,each:ba,eachLimit:Un,eachOf:Fe,eachOfLimit:yi,eachOfSeries:Xe,eachSeries:Wn,ensureAsync:qa,every:wa,everyLimit:Sa,everySeries:Ea,filter:va,filterLimit:xa,filterSeries:Ta,forever:Ah,groupBy:Oh,groupByLimit:Zn,groupBySeries:Ih,log:Dh,map:Yn,mapLimit:Si,mapSeries:Na,mapValues:Ph,mapValuesLimit:Qn,mapValuesSeries:Lh,memoize:Nh,nextTick:Ch,parallel:kh,parallelLimit:Mh,priorityQueue:qh,queue:ja,race:Fh,reduce:Sr,reduceRight:Aa,reflect:Gn,reflectAll:jh,reject:Bh,rejectLimit:Uh,rejectSeries:Wh,retry:zn,retryable:$h,seq:Ma,series:Hh,setImmediate:At,some:Ia,someLimit:Da,someSeries:Pa,sortBy:Vh,timeout:Yh,times:Kh,timesLimit:Xn,timesSeries:Zh,transform:Qh,tryEach:Xh,unmemoize:Jh,until:ed,waterfall:td,whilst:$n,all:wa,allLimit:Sa,allSeries:Ea,any:Ia,anyLimit:Da,anySeries:Pa,find:_a,findLimit:ya,findSeries:ma,flatMap:pa,flatMapLimit:mi,flatMapSeries:ga,forEach:ba,forEachSeries:Wn,forEachLimit:Un,forEachOf:Fe,forEachOfSeries:Xe,forEachOfLimit:yi,inject:Sr,foldl:Sr,foldr:Aa,select:va,selectLimit:xa,selectSeries:Ta,wrapSync:jn,during:$n,doDuring:Bn}});var sd=g((n3,nd)=>{"use strict";var Dt=D("constants"),Mx=process.cwd,Jn=null,qx=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Jn||(Jn=Mx.call(process)),Jn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ua=process.chdir,process.chdir=function(t){Jn=null,Ua.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ua));var Ua;nd.exports=Fx;function Fx(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,P){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 ld=g((s3,ad)=>{"use strict";var od=D("stream").Stream;ad.exports=jx;function jx(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);od.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);od.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 fd=g((o3,ud)=>{"use strict";ud.exports=Ux;var Bx=Object.getPrototypeOf||function(t){return t.__proto__};function Ux(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Bx(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var $a=g((a3,za)=>{"use strict";var ne=D("fs"),Wx=sd(),Gx=ld(),zx=fd(),es=D("util"),me,rs;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),rs=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",rs="___graceful-fs.previous");function $x(){}function dd(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var Qt=$x;es.debuglog?Qt=es.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Qt=function(){var t=es.format.apply(es,arguments);t="GFS4: "+t.split(/\n/).join(`
7
+ GFS4: `),console.error(t)});ne[me]||(cd=global[me]||[],dd(ne,cd),ne.close=(function(t){function e(r,i){return t.call(ne,r,function(n){n||hd(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,rs,{value:t}),e})(ne.close),ne.closeSync=(function(t){function e(r){t.apply(ne,arguments),hd()}return Object.defineProperty(e,rs,{value:t}),e})(ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Qt(ne[me]),D("assert").equal(ne[me].length,0)}));var cd;global[me]||dd(global,ne[me]);za.exports=Wa(zx(ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ne.__patched&&(za.exports=Wa(ne),ne.__patched=!0);function Wa(t){Wx(t),t.gracefulify=Wa,t.createReadStream=T,t.createWriteStream=P;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(G,ue,Z,te){return e(G,ue,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xr([N,[G,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),G(w,R,A,N);function G(ue,Z,te,V,ye){return i(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[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),G(w,R,A,N);function G(ue,Z,te,V,ye){return s(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[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),G(w,R,A,N);function G(ue,Z,te,V,ye){return a(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[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,G(Z,te,V,ye))}:function(Z,te,V,ye){return u(Z,te,G(Z,te,V,ye))};return N(w,R,A);function G(ue,Z,te,V){return function(ye,re){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?xr([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 P(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),G(w,R,A,N);function G(ue,Z,te,V,ye){return x(ue,Z,te,function(re,KB){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return t}function xr(t){Qt("ENQUEUE",t[0].name,t[1]),ne[me].push(t),Ga()}var ts;function hd(){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);Ga()}function Ga(){if(clearTimeout(ts),ts=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)Qt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Qt("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?(Qt("RETRY",e.name,r),e.apply(null,r.concat([n]))):ne[me].push(t)}ts===void 0&&(ts=setTimeout(Ga,0))}}});var is=g((l3,pd)=>{"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";pd.exports=Je});var Ei=g((u3,Ha)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ha.exports={nextTick:Hx}:Ha.exports=process;function Hx(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 _d=g((f3,gd)=>{"use strict";var Vx={}.toString;gd.exports=Array.isArray||function(t){return Vx.call(t)=="[object Array]"}});var Va=g((c3,yd)=>{"use strict";yd.exports=D("stream")});var vi=g((Ya,bd)=>{"use strict";var ns=D("buffer"),pt=ns.Buffer;function md(t,e){for(var r in t)e[r]=t[r]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?bd.exports=ns:(md(ns,Ya),Ya.Buffer=Tr);function Tr(t,e,r){return pt(t,e,r)}md(pt,Tr);Tr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return pt(t,e,r)};Tr.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};Tr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return pt(t)};Tr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ns.SlowBuffer(t)}});var Rr=g(ve=>{"use strict";function Yx(t){return Array.isArray?Array.isArray(t):ss(t)==="[object Array]"}ve.isArray=Yx;function Kx(t){return typeof t=="boolean"}ve.isBoolean=Kx;function Zx(t){return t===null}ve.isNull=Zx;function Qx(t){return t==null}ve.isNullOrUndefined=Qx;function Xx(t){return typeof t=="number"}ve.isNumber=Xx;function Jx(t){return typeof t=="string"}ve.isString=Jx;function e1(t){return typeof t=="symbol"}ve.isSymbol=e1;function t1(t){return t===void 0}ve.isUndefined=t1;function r1(t){return ss(t)==="[object RegExp]"}ve.isRegExp=r1;function i1(t){return typeof t=="object"&&t!==null}ve.isObject=i1;function n1(t){return ss(t)==="[object Date]"}ve.isDate=n1;function s1(t){return ss(t)==="[object Error]"||t instanceof Error}ve.isError=s1;function o1(t){return typeof t=="function"}ve.isFunction=o1;function a1(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}ve.isPrimitive=a1;ve.isBuffer=D("buffer").Buffer.isBuffer;function ss(t){return Object.prototype.toString.call(t)}});var wd=g((d3,Ka)=>{"use strict";typeof Object.create=="function"?Ka.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ka.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 Ar=g((p3,Qa)=>{"use strict";try{if(Za=D("util"),typeof Za.inherits!="function")throw"";Qa.exports=Za.inherits}catch{Qa.exports=wd()}var Za});var Ed=g((g3,Xa)=>{"use strict";function l1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Sd=vi().Buffer,xi=D("util");function u1(t,e,r){t.copy(e,r)}Xa.exports=(function(){function t(){l1(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 Sd.alloc(0);for(var i=Sd.allocUnsafe(r>>>0),n=this.head,s=0;n;)u1(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();xi&&xi.inspect&&xi.inspect.custom&&(Xa.exports.prototype[xi.inspect.custom]=function(){var t=xi.inspect({length:this.length});return this.constructor.name+" "+t})});var Ja=g((_3,vd)=>{"use strict";var os=Ei();function f1(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,os.nextTick(as,this,t)):os.nextTick(as,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,os.nextTick(as,r,s)):os.nextTick(as,r,s):e&&e(s)}),this)}function c1(){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 as(t,e){t.emit("error",e)}vd.exports={destroy:f1,undestroy:c1}});var Td=g((y3,xd)=>{"use strict";xd.exports=D("util").deprecate});var tl=g((m3,Nd)=>{"use strict";var Xt=Ei();Nd.exports=fe;function Ad(t){var e=this;this.next=null,this.entry=null,this.finish=function(){I1(e,t)}}var h1=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Xt.nextTick,Or;fe.WritableState=Ri;var Od=Object.create(Rr());Od.inherits=Ar();var d1={deprecate:Td()},Id=Va(),us=vi().Buffer,p1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function g1(t){return us.from(t)}function _1(t){return us.isBuffer(t)||t instanceof p1}var Dd=Ja();Od.inherits(fe,Id);function y1(){}function Ri(t,e){Or=Or||Jt(),t=t||{};var r=e instanceof Or;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){x1(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 Ad(this)}Ri.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Ri.prototype,"buffer",{get:d1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ls;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ls=Function.prototype[Symbol.hasInstance],Object.defineProperty(fe,Symbol.hasInstance,{value:function(t){return ls.call(this,t)?!0:this!==fe?!1:t&&t._writableState instanceof Ri}})):ls=function(t){return t instanceof this};function fe(t){if(Or=Or||Jt(),!ls.call(fe,this)&&!(this instanceof Or))return new fe(t);this._writableState=new Ri(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)),Id.call(this)}fe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function m1(t,e){var r=new Error("write after end");t.emit("error",r),Xt.nextTick(e,r)}function b1(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),Xt.nextTick(i,s),n=!1),n}fe.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&_1(t);return s&&!us.isBuffer(t)&&(t=g1(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=y1),i.ended?m1(this,r):(s||b1(this,i,t,r))&&(i.pendingcb++,n=S1(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&&Pd(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 w1(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=us.from(e,r)),e}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S1(t,e,r,i,n,s){if(!r){var o=w1(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 el(t,e,!1,a,i,n,s);return l}function el(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 E1(t,e,r,i,n){--e.pendingcb,r?(Xt.nextTick(n,i),Xt.nextTick(Ti,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Ti(t,e))}function v1(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function x1(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(v1(r),e)E1(t,r,i,e,n);else{var s=Ld(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Pd(t,r),i?h1(Rd,t,r,s,n):Rd(t,r,s,n)}}function Rd(t,e,r,i){r||T1(t,e),e.pendingcb--,i(),Ti(t,e)}function T1(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Pd(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,el(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 Ad(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,c=e.objectMode?1:l.length;if(el(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||O1(this,i,r)};function Ld(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function R1(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Ti(t,e)})}function A1(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Xt.nextTick(R1,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Ti(t,e){var r=Ld(e);return r&&(A1(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function O1(t,e,r){e.ending=!0,Ti(t,e),r&&(e.finished?Xt.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function I1(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=Dd.destroy;fe.prototype._undestroy=Dd.undestroy;fe.prototype._destroy=function(t,e){this.end(),e(t)}});var Jt=g((b3,qd)=>{"use strict";var Cd=Ei(),D1=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};qd.exports=gt;var kd=Object.create(Rr());kd.inherits=Ar();var Md=nl(),il=tl();kd.inherits(gt,Md);for(rl=D1(il.prototype),fs=0;fs<rl.length;fs++)cs=rl[fs],gt.prototype[cs]||(gt.prototype[cs]=il.prototype[cs]);var rl,cs,fs;function gt(t){if(!(this instanceof gt))return new gt(t);Md.call(this,t),il.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",P1)}Object.defineProperty(gt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function P1(){this.allowHalfOpen||this._writableState.ended||Cd.nextTick(L1,this)}function L1(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(),Cd.nextTick(e,t)}});var al=g(jd=>{"use strict";var ol=vi().Buffer,Fd=ol.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 N1(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 C1(t){var e=N1(t);if(typeof e!="string"&&(ol.isEncoding===Fd||!Fd(t)))throw new Error("Unknown encoding: "+t);return e||t}jd.StringDecoder=Ai;function Ai(t){this.encoding=C1(t);var e;switch(this.encoding){case"utf16le":this.text=B1,this.end=U1,e=4;break;case"utf8":this.fillLast=q1,e=4;break;case"base64":this.text=W1,this.end=G1,e=3;break;default:this.write=z1,this.end=$1;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ol.allocUnsafe(e)}Ai.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||""};Ai.prototype.end=j1;Ai.prototype.text=F1;Ai.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 sl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function k1(t,e,r){var i=e.length-1;if(i<r)return 0;var n=sl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=sl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=sl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function M1(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 q1(t){var e=this.lastTotal-this.lastNeed,r=M1(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 F1(t,e){var r=k1(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 j1(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function B1(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 U1(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 W1(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 G1(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function z1(t){return t.toString(this.encoding)}function $1(t){return t&&t.length?this.write(t):""}});var nl=g((E3,Qd)=>{"use strict";var Dr=Ei();Qd.exports=Q;var H1=_d(),Oi;Q.ReadableState=Hd;var S3=D("events").EventEmitter,Gd=function(t,e){return t.listeners(e).length},hl=Va(),Ii=vi().Buffer,V1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Y1(t){return Ii.from(t)}function K1(t){return Ii.isBuffer(t)||t instanceof V1}var zd=Object.create(Rr());zd.inherits=Ar();var ll=D("util"),$=void 0;ll&&ll.debuglog?$=ll.debuglog("stream"):$=function(){};var Z1=Ed(),$d=Ja(),Ir;zd.inherits(Q,hl);var ul=["error","close","destroy","pause","resume"];function Q1(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):H1(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Hd(t,e){Oi=Oi||Jt(),t=t||{};var r=e instanceof Oi;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 Z1,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&&(Ir||(Ir=al().StringDecoder),this.decoder=new Ir(t.encoding),this.encoding=t.encoding)}function Q(t){if(Oi=Oi||Jt(),!(this instanceof Q))return new Q(t);this._readableState=new Hd(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),hl.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=$d.destroy;Q.prototype._undestroy=$d.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=Ii.from(t,e),e=""),i=!0),Vd(this,t,e,!1,i)};Q.prototype.unshift=function(t){return Vd(this,t,null,!0,!1)};function Vd(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,tT(t,s);else{var o;n||(o=X1(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Ii.prototype&&(e=Y1(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):fl(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?fl(t,s,e,!1):Yd(t,s)):fl(t,s,e,!1))):i||(s.reading=!1)}return J1(s)}function fl(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&&hs(t)),Yd(t,e)}function X1(t,e){var r;return!K1(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function J1(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 Ir||(Ir=al().StringDecoder),this._readableState.decoder=new Ir(t),this._readableState.encoding=t,this};var Bd=8388608;function eT(t){return t>=Bd?t=Bd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Ud(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=eT(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?cl(this):hs(this),null;if(t=Ud(t,e),t===0&&e.ended)return e.length===0&&cl(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=Ud(r,e)));var n;return t>0?n=Kd(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&&cl(this)),n!==null&&this.emit("data",n),n};function tT(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,hs(t)}}function hs(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Dr.nextTick(Wd,t):Wd(t))}function Wd(t){$("emit readable"),t.emit("readable"),dl(t)}function Yd(t,e){e.readingMore||(e.readingMore=!0,Dr.nextTick(rT,t,e))}function rT(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?Dr.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=iT(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&&Zd(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),Gd(t,"error")===0&&t.emit("error",m)}Q1(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 iT(t){return function(){var e=t._readableState;$("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Gd(t,"data")&&(e.flowing=!0,dl(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=Zd(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=hl.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&&hs(this):Dr.nextTick(nT,this))}return r};Q.prototype.addListener=Q.prototype.on;function nT(t){$("readable nexttick read 0"),t.read(0)}Q.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!0,sT(this,t)),this};function sT(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Dr.nextTick(oT,t,e))}function oT(t,e){e.reading||($("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),dl(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 dl(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<ul.length;s++)t.on(ul[s],this.emit.bind(this,ul[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=Kd;function Kd(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=aT(t,e.buffer,e.decoder),r}function aT(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?lT(t,e):uT(t,e),i}function lT(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 uT(t,e){var r=Ii.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 cl(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Dr.nextTick(fT,e,t))}function fT(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Zd(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var pl=g((v3,ep)=>{"use strict";ep.exports=_t;var ds=Jt(),Jd=Object.create(Rr());Jd.inherits=Ar();Jd.inherits(_t,ds);function cT(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);ds.call(this,t),this._transformState={afterTransform:cT.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",hT)}function hT(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){Xd(t,e,r)}):Xd(this,null,null)}_t.prototype.push=function(t,e){return this._transformState.needTransform=!1,ds.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;ds.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function Xd(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 np=g((x3,ip)=>{"use strict";ip.exports=Di;var tp=pl(),rp=Object.create(Rr());rp.inherits=Ar();rp.inherits(Di,tp);function Di(t){if(!(this instanceof Di))return new Di(t);tp.call(this,t)}Di.prototype._transform=function(t,e,r){r(null,t)}});var sp=g((be,ps)=>{"use strict";var et=D("stream");process.env.READABLE_STREAM==="disable"&&et?(ps.exports=et,be=ps.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=ps.exports=nl(),be.Stream=et||be,be.Readable=be,be.Writable=tl(),be.Duplex=Jt(),be.Transform=pl(),be.PassThrough=np())});var ap=g((T3,op)=>{"use strict";op.exports=sp().PassThrough});var cp=g((R3,fp)=>{"use strict";var lp=D("util"),ys=ap();fp.exports={Readable:gs,Writable:_s};lp.inherits(gs,ys);lp.inherits(_s,ys);function up(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function gs(t,e){if(!(this instanceof gs))return new gs(t,e);ys.call(this,e),up(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 _s(t,e){if(!(this instanceof _s))return new _s(t,e);ys.call(this,e),up(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 gl=g((A3,hp)=>{"use strict";hp.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 _l=g((O3,dp)=>{"use strict";function dT(t){return t}dp.exports=dT});var gp=g((I3,pp)=>{"use strict";function pT(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)}pp.exports=pT});var mp=g((D3,yp)=>{"use strict";var gT=gp(),_p=Math.max;function _T(t,e,r){return e=_p(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=_p(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),gT(t,this,a)}}yp.exports=_T});var wp=g((P3,bp)=>{"use strict";function yT(t){return function(){return t}}bp.exports=yT});var yl=g((L3,Sp)=>{"use strict";var mT=typeof global=="object"&&global&&global.Object===Object&&global;Sp.exports=mT});var Pr=g((N3,Ep)=>{"use strict";var bT=yl(),wT=typeof self=="object"&&self&&self.Object===Object&&self,ST=bT||wT||Function("return this")();Ep.exports=ST});var ms=g((C3,vp)=>{"use strict";var ET=Pr(),vT=ET.Symbol;vp.exports=vT});var Ap=g((k3,Rp)=>{"use strict";var xp=ms(),Tp=Object.prototype,xT=Tp.hasOwnProperty,TT=Tp.toString,Pi=xp?xp.toStringTag:void 0;function RT(t){var e=xT.call(t,Pi),r=t[Pi];try{t[Pi]=void 0;var i=!0}catch{}var n=TT.call(t);return i&&(e?t[Pi]=r:delete t[Pi]),n}Rp.exports=RT});var Ip=g((M3,Op)=>{"use strict";var AT=Object.prototype,OT=AT.toString;function IT(t){return OT.call(t)}Op.exports=IT});var Li=g((q3,Lp)=>{"use strict";var Dp=ms(),DT=Ap(),PT=Ip(),LT="[object Null]",NT="[object Undefined]",Pp=Dp?Dp.toStringTag:void 0;function CT(t){return t==null?t===void 0?NT:LT:Pp&&Pp in Object(t)?DT(t):PT(t)}Lp.exports=CT});var Ni=g((F3,Np)=>{"use strict";function kT(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}Np.exports=kT});var ml=g((j3,Cp)=>{"use strict";var MT=Li(),qT=Ni(),FT="[object AsyncFunction]",jT="[object Function]",BT="[object GeneratorFunction]",UT="[object Proxy]";function WT(t){if(!qT(t))return!1;var e=MT(t);return e==jT||e==BT||e==FT||e==UT}Cp.exports=WT});var Mp=g((B3,kp)=>{"use strict";var GT=Pr(),zT=GT["__core-js_shared__"];kp.exports=zT});var jp=g((U3,Fp)=>{"use strict";var bl=Mp(),qp=(function(){var t=/[^.]+$/.exec(bl&&bl.keys&&bl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function $T(t){return!!qp&&qp in t}Fp.exports=$T});var Up=g((W3,Bp)=>{"use strict";var HT=Function.prototype,VT=HT.toString;function YT(t){if(t!=null){try{return VT.call(t)}catch{}try{return t+""}catch{}}return""}Bp.exports=YT});var Gp=g((G3,Wp)=>{"use strict";var KT=ml(),ZT=jp(),QT=Ni(),XT=Up(),JT=/[\\^$.*+?()[\]{}|]/g,eR=/^\[object .+?Constructor\]$/,tR=Function.prototype,rR=Object.prototype,iR=tR.toString,nR=rR.hasOwnProperty,sR=RegExp("^"+iR.call(nR).replace(JT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oR(t){if(!QT(t)||ZT(t))return!1;var e=KT(t)?sR:eR;return e.test(XT(t))}Wp.exports=oR});var $p=g((z3,zp)=>{"use strict";function aR(t,e){return t?.[e]}zp.exports=aR});var Ci=g(($3,Hp)=>{"use strict";var lR=Gp(),uR=$p();function fR(t,e){var r=uR(t,e);return lR(r)?r:void 0}Hp.exports=fR});var Yp=g((H3,Vp)=>{"use strict";var cR=Ci(),hR=(function(){try{var t=cR(Object,"defineProperty");return t({},"",{}),t}catch{}})();Vp.exports=hR});var Qp=g((V3,Zp)=>{"use strict";var dR=wp(),Kp=Yp(),pR=_l(),gR=Kp?function(t,e){return Kp(t,"toString",{configurable:!0,enumerable:!1,value:dR(e),writable:!0})}:pR;Zp.exports=gR});var Jp=g((Y3,Xp)=>{"use strict";var _R=800,yR=16,mR=Date.now;function bR(t){var e=0,r=0;return function(){var i=mR(),n=yR-(i-r);if(r=i,n>0){if(++e>=_R)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}Xp.exports=bR});var tg=g((K3,eg)=>{"use strict";var wR=Qp(),SR=Jp(),ER=SR(wR);eg.exports=ER});var bs=g((Z3,rg)=>{"use strict";var vR=_l(),xR=mp(),TR=tg();function RR(t,e){return TR(xR(t,e,vR),t+"")}rg.exports=RR});var ws=g((Q3,ig)=>{"use strict";function AR(t,e){return t===e||t!==t&&e!==e}ig.exports=AR});var wl=g((X3,ng)=>{"use strict";var OR=9007199254740991;function IR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=OR}ng.exports=IR});var Ss=g((J3,sg)=>{"use strict";var DR=ml(),PR=wl();function LR(t){return t!=null&&PR(t.length)&&!DR(t)}sg.exports=LR});var Sl=g((e4,og)=>{"use strict";var NR=9007199254740991,CR=/^(?:0|[1-9]\d*)$/;function kR(t,e){var r=typeof t;return e=e??NR,!!e&&(r=="number"||r!="symbol"&&CR.test(t))&&t>-1&&t%1==0&&t<e}og.exports=kR});var lg=g((t4,ag)=>{"use strict";var MR=ws(),qR=Ss(),FR=Sl(),jR=Ni();function BR(t,e,r){if(!jR(r))return!1;var i=typeof e;return(i=="number"?qR(r)&&FR(e,r.length):i=="string"&&e in r)?MR(r[e],t):!1}ag.exports=BR});var fg=g((r4,ug)=>{"use strict";function UR(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}ug.exports=UR});var Lr=g((i4,cg)=>{"use strict";function WR(t){return t!=null&&typeof t=="object"}cg.exports=WR});var dg=g((n4,hg)=>{"use strict";var GR=Li(),zR=Lr(),$R="[object Arguments]";function HR(t){return zR(t)&&GR(t)==$R}hg.exports=HR});var El=g((s4,_g)=>{"use strict";var pg=dg(),VR=Lr(),gg=Object.prototype,YR=gg.hasOwnProperty,KR=gg.propertyIsEnumerable,ZR=pg((function(){return arguments})())?pg:function(t){return VR(t)&&YR.call(t,"callee")&&!KR.call(t,"callee")};_g.exports=ZR});var vl=g((o4,yg)=>{"use strict";var QR=Array.isArray;yg.exports=QR});var bg=g((a4,mg)=>{"use strict";function XR(){return!1}mg.exports=XR});var vg=g((ki,Nr)=>{"use strict";var JR=Pr(),eA=bg(),Eg=typeof ki=="object"&&ki&&!ki.nodeType&&ki,wg=Eg&&typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,tA=wg&&wg.exports===Eg,Sg=tA?JR.Buffer:void 0,rA=Sg?Sg.isBuffer:void 0,iA=rA||eA;Nr.exports=iA});var Tg=g((l4,xg)=>{"use strict";var nA=Li(),sA=wl(),oA=Lr(),aA="[object Arguments]",lA="[object Array]",uA="[object Boolean]",fA="[object Date]",cA="[object Error]",hA="[object Function]",dA="[object Map]",pA="[object Number]",gA="[object Object]",_A="[object RegExp]",yA="[object Set]",mA="[object String]",bA="[object WeakMap]",wA="[object ArrayBuffer]",SA="[object DataView]",EA="[object Float32Array]",vA="[object Float64Array]",xA="[object Int8Array]",TA="[object Int16Array]",RA="[object Int32Array]",AA="[object Uint8Array]",OA="[object Uint8ClampedArray]",IA="[object Uint16Array]",DA="[object Uint32Array]",X={};X[EA]=X[vA]=X[xA]=X[TA]=X[RA]=X[AA]=X[OA]=X[IA]=X[DA]=!0;X[aA]=X[lA]=X[wA]=X[uA]=X[SA]=X[fA]=X[cA]=X[hA]=X[dA]=X[pA]=X[gA]=X[_A]=X[yA]=X[mA]=X[bA]=!1;function PA(t){return oA(t)&&sA(t.length)&&!!X[nA(t)]}xg.exports=PA});var xl=g((u4,Rg)=>{"use strict";function LA(t){return function(e){return t(e)}}Rg.exports=LA});var Og=g((Mi,Cr)=>{"use strict";var NA=yl(),Ag=typeof Mi=="object"&&Mi&&!Mi.nodeType&&Mi,qi=Ag&&typeof Cr=="object"&&Cr&&!Cr.nodeType&&Cr,CA=qi&&qi.exports===Ag,Tl=CA&&NA.process,kA=(function(){try{var t=qi&&qi.require&&qi.require("util").types;return t||Tl&&Tl.binding&&Tl.binding("util")}catch{}})();Cr.exports=kA});var Lg=g((f4,Pg)=>{"use strict";var MA=Tg(),qA=xl(),Ig=Og(),Dg=Ig&&Ig.isTypedArray,FA=Dg?qA(Dg):MA;Pg.exports=FA});var Cg=g((c4,Ng)=>{"use strict";var jA=fg(),BA=El(),UA=vl(),WA=vg(),GA=Sl(),zA=Lg(),$A=Object.prototype,HA=$A.hasOwnProperty;function VA(t,e){var r=UA(t),i=!r&&BA(t),n=!r&&!i&&WA(t),s=!r&&!i&&!n&&zA(t),o=r||i||n||s,a=o?jA(t.length,String):[],l=a.length;for(var u in t)(e||HA.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}Ng.exports=VA});var Mg=g((h4,kg)=>{"use strict";var YA=Object.prototype;function KA(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||YA;return t===r}kg.exports=KA});var Fg=g((d4,qg)=>{"use strict";function ZA(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}qg.exports=ZA});var Bg=g((p4,jg)=>{"use strict";var QA=Ni(),XA=Mg(),JA=Fg(),eO=Object.prototype,tO=eO.hasOwnProperty;function rO(t){if(!QA(t))return JA(t);var e=XA(t),r=[];for(var i in t)i=="constructor"&&(e||!tO.call(t,i))||r.push(i);return r}jg.exports=rO});var Wg=g((g4,Ug)=>{"use strict";var iO=Cg(),nO=Bg(),sO=Ss();function oO(t){return sO(t)?iO(t,!0):nO(t)}Ug.exports=oO});var $g=g((_4,zg)=>{"use strict";var aO=bs(),lO=ws(),uO=lg(),fO=Wg(),Gg=Object.prototype,cO=Gg.hasOwnProperty,hO=aO(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&uO(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=fO(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||lO(f,Gg[u])&&!cO.call(t,u))&&(t[u]=s[u])}return t});zg.exports=hO});var ie=g((y4,Hg)=>{"use strict";var Rl=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}};Hg.exports={AggregateError:Rl,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 Al=g((m4,Vg)=>{"use strict";Vg.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,Zg)=>{"use strict";var{format:dO,inspect:Es}=Al(),{AggregateError:pO}=ie(),gO=globalThis.AggregateError||pO,_O=Symbol("kIsNodeError"),yO=["string","function","number","object","Function","Object","boolean","bigint","symbol"],mO=/^([A-Z][a-z0-9]*)+$/,bO="__node_internal_",vs={};function er(t,e){if(!t)throw new vs.ERR_INTERNAL_ASSERTION(e)}function Yg(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 wO(t,e,r){if(typeof e=="function")return er(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 er(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:dO(e,...r)}function we(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(wO(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[_O]=!0,vs[t]=i}function Kg(t){let e=bO+t.name;return Object.defineProperty(t,"name",{value:e}),t}function SO(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new gO([e,t],e.message);return r.code=e.code,r}return t||e}var Ol=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new vs.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)=>{er(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)er(typeof l=="string","All expected entries have to be of type string"),yO.includes(l)?n.push(l.toLowerCase()):mO.test(l)?s.push(l):(er(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=Es(r,{depth:-1});i+=`. Received ${l}`}}else{let l=Es(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=Es(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)=>{er(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)=>{er(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=Yg(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=Yg(i)),i+="n"}else i=Es(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);Zg.exports={AbortError:Ol,aggregateTwoErrors:Kg(SO),hideStackFrames:Kg,codes:vs}});var o_=g((Bi,ji)=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var r_=new WeakMap,Il=new WeakMap;function J(t){let e=r_.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function Qg(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 kr(t,e){r_.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,i_(n))}}kr.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(){Qg(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||Qg(J(this))},initEvent(){}};Object.defineProperty(kr.prototype,"constructor",{value:kr,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(kr.prototype,window.Event.prototype),Il.set(window.Event.prototype,kr));function i_(t){return{get(){return J(this).event[t]},set(e){J(this).event[t]=e},configurable:!0,enumerable:!0}}function EO(t){return{value(){let e=J(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function vO(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?EO(s):i_(s))}}return i}function n_(t){if(t==null||t===Object.prototype)return kr;let e=Il.get(t);return e==null&&(e=vO(n_(Object.getPrototypeOf(t)),t),Il.set(t,e)),e}function xO(t,e){let r=n_(Object.getPrototypeOf(e));return new r(t,e)}function TO(t){return J(t).immediateStopped}function RO(t,e){J(t).eventPhase=e}function AO(t,e){J(t).currentTarget=e}function Xg(t,e){J(t).passiveListener=e}var s_=new WeakMap,Jg=1,e_=2,xs=3;function Ts(t){return t!==null&&typeof t=="object"}function Fi(t){let e=s_.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function OO(t){return{get(){let r=Fi(this).get(t);for(;r!=null;){if(r.listenerType===xs)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!Ts(e)&&(e=null);let r=Fi(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===xs?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:xs,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function Dl(t,e){Object.defineProperty(t,`on${e}`,OO(e))}function t_(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)Dl(e.prototype,t[r]);return e}function He(){if(this instanceof He){s_.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return t_(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 t_(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"&&!Ts(e))throw new TypeError("'listener' should be a function or an object.");let i=Fi(this),n=Ts(r),o=(n?!!r.capture:!!r)?Jg:e_,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=Fi(this),s=(Ts(r)?!!r.capture:!!r)?Jg:e_,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=Fi(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=xO(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,Xg(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!==xs&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(TO(n))break;i=i.next}return Xg(n,null),RO(n,0),AO(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);Bi.defineEventAttribute=Dl;Bi.EventTarget=He;Bi.default=He;ji.exports=He;ji.exports.EventTarget=ji.exports.default=He;ji.exports.defineEventAttribute=Dl});var Mr=g((Wi,Ui)=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});var Pl=o_(),Pt=class extends Pl.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=Rs.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}};Pl.defineEventAttribute(Pt.prototype,"abort");function IO(){let t=Object.create(Pt.prototype);return Pl.EventTarget.call(t),Rs.set(t,!1),t}function DO(t){Rs.get(t)===!1&&(Rs.set(t,!0),t.dispatchEvent({type:"abort"}))}var Rs=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(){l_.set(this,IO())}get signal(){return a_(this)}abort(){DO(a_(this))}},l_=new WeakMap;function a_(t){let e=l_.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"});Wi.AbortController=Lt;Wi.AbortSignal=Pt;Wi.default=Lt;Ui.exports=Lt;Ui.exports.AbortController=Ui.exports.default=Lt;Ui.exports.AbortSignal=Pt});var Oe=g((w4,Nl)=>{"use strict";var PO=D("buffer"),{format:LO,inspect:NO}=Al(),{codes:{ERR_INVALID_ARG_TYPE:Ll}}=xe(),{kResistStopPropagation:CO,AggregateError:kO,SymbolDispose:MO}=ie(),qO=globalThis.AbortSignal||Mr().AbortSignal,FO=globalThis.AbortController||Mr().AbortController,jO=Object.getPrototypeOf(async function(){}).constructor,u_=globalThis.Blob||PO.Blob,BO=typeof u_<"u"?function(e){return e instanceof u_}:function(e){return!1},f_=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Ll(e,"AbortSignal",t)},UO=(t,e)=>{if(typeof t!="function")throw new Ll(e,"Function",t)};Nl.exports={AggregateError:kO,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:LO,inspect:NO,types:{isAsyncFunction(t){return t instanceof jO},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:BO,deprecate(t,e){return t},addAbortListener:D("events").addAbortListener||function(e,r){if(e===void 0)throw new Ll("signal","AbortSignal",e);f_(e,"signal"),UO(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[CO]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[MO](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:qO.any||function(e){if(e.length===1)return e[0];let r=new FO,i=()=>r.abort();return e.forEach(n=>{f_(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};Nl.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Fr=g((S4,w_)=>{"use strict";var{ArrayIsArray:kl,ArrayPrototypeIncludes:p_,ArrayPrototypeJoin:g_,ArrayPrototypeMap:WO,NumberIsInteger:Ml,NumberIsNaN:GO,NumberMAX_SAFE_INTEGER:zO,NumberMIN_SAFE_INTEGER:$O,NumberParseInt:HO,ObjectPrototypeHasOwnProperty:VO,RegExpPrototypeExec:__,String:YO,StringPrototypeToUpperCase:KO,StringPrototypeTrim:ZO}=ie(),{hideStackFrames:je,codes:{ERR_SOCKET_BAD_PORT:QO,ERR_INVALID_ARG_TYPE:Te,ERR_INVALID_ARG_VALUE:qr,ERR_OUT_OF_RANGE:tr,ERR_UNKNOWN_SIGNAL:c_}}=xe(),{normalizeEncoding:XO}=Oe(),{isAsyncFunction:JO,isArrayBufferView:eI}=Oe().types,h_={};function tI(t){return t===(t|0)}function rI(t){return t===t>>>0}var iI=/^[0-7]+$/,nI="must be a 32-bit unsigned integer or an octal string";function sI(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(__(iI,t)===null)throw new qr(e,t,nI);t=HO(t,8)}return y_(t,e),t}var oI=je((t,e,r=$O,i=zO)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),aI=je((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),y_=je((t,e,r=!1)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new tr(e,`>= ${i} && <= ${n}`,t)});function ql(t,e){if(typeof t!="string")throw new Te(e,"string",t)}function lI(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 tr(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var uI=je((t,e,r)=>{if(!p_(r,t)){let n="must be one of: "+g_(WO(r,s=>typeof s=="string"?`'${s}'`:YO(s)),", ");throw new qr(e,t,n)}});function m_(t,e){if(typeof t!="boolean")throw new Te(e,"boolean",t)}function Cl(t,e,r){return t==null||!VO(t,e)?r:t[e]}var fI=je((t,e,r=null)=>{let i=Cl(r,"allowArray",!1),n=Cl(r,"allowFunction",!1);if(!Cl(r,"nullable",!1)&&t===null||!i&&kl(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Te(e,"Object",t)}),cI=je((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Te(e,"a dictionary",t)}),As=je((t,e,r=0)=>{if(!kl(t))throw new Te(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new qr(e,t,i)}});function hI(t,e){As(t,e);for(let r=0;r<t.length;r++)ql(t[r],`${e}[${r}]`)}function dI(t,e){As(t,e);for(let r=0;r<t.length;r++)m_(t[r],`${e}[${r}]`)}function pI(t,e){As(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);b_(i,n)}}function gI(t,e="signal"){if(ql(t,e),h_[t]===void 0)throw h_[KO(t)]!==void 0?new c_(t+" (signals must use all capital letters)"):new c_(t)}var _I=je((t,e="buffer")=>{if(!eI(t))throw new Te(e,["Buffer","TypedArray","DataView"],t)});function yI(t,e){let r=XO(e),i=t.length;if(r==="hex"&&i%2!==0)throw new qr("encoding",e,`is invalid for data of length ${i}`)}function mI(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&ZO(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new QO(e,t,r);return t|0}var b_=je((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Te(e,"AbortSignal",t)}),bI=je((t,e)=>{if(typeof t!="function")throw new Te(e,"Function",t)}),wI=je((t,e)=>{if(typeof t!="function"||JO(t))throw new Te(e,"Function",t)}),SI=je((t,e)=>{if(t!==void 0)throw new Te(e,"undefined",t)});function EI(t,e,r){if(!p_(r,t))throw new Te(e,`('${g_(r,"|")}')`,t)}var vI=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function d_(t,e){if(typeof t>"u"||!__(vI,t))throw new qr(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function xI(t){if(typeof t=="string")return d_(t,"hints"),t;if(kl(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];d_(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new qr("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}w_.exports={isInt32:tI,isUint32:rI,parseFileMode:sI,validateArray:As,validateStringArray:hI,validateBooleanArray:dI,validateAbortSignalArray:pI,validateBoolean:m_,validateBuffer:_I,validateDictionary:cI,validateEncoding:yI,validateFunction:bI,validateInt32:aI,validateInteger:oI,validateNumber:lI,validateObject:fI,validateOneOf:uI,validatePlainFunction:wI,validatePort:mI,validateSignalName:gI,validateString:ql,validateUint32:y_,validateUndefined:SI,validateUnion:EI,validateAbortSignal:b_,validateLinkHeaderValue:xI}});var Nt=g((E4,S_)=>{"use strict";S_.exports=global.process});var rt=g((v4,M_)=>{"use strict";var{SymbolAsyncIterator:E_,SymbolIterator:v_,SymbolFor:rr}=ie(),x_=rr("nodejs.stream.destroyed"),T_=rr("nodejs.stream.errored"),Fl=rr("nodejs.stream.readable"),jl=rr("nodejs.stream.writable"),R_=rr("nodejs.stream.disturbed"),TI=rr("nodejs.webstream.isClosedPromise"),RI=rr("nodejs.webstream.controllerErrorFunction");function Os(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 Is(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 AI(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 A_(t){return!!(t&&!tt(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function O_(t){return!!(t&&!tt(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function I_(t){return!!(t&&!tt(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function OI(t){return A_(t)||O_(t)||I_(t)}function II(t,e){return t==null?!1:e===!0?typeof t[E_]=="function":e===!1?typeof t[v_]=="function":typeof t[E_]=="function"||typeof t[v_]=="function"}function Ds(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[x_]||i!=null&&i.destroyed)}function D_(t){if(!Is(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 DI(t,e){if(!Is(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(!Os(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 P_(t,e){if(!Os(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 L_(t){return t&&t[Fl]!=null?t[Fl]:typeof t?.readable!="boolean"?null:Ds(t)?!1:Os(t)&&t.readable&&!P_(t)}function N_(t){return t&&t[jl]!=null?t[jl]:typeof t?.writable!="boolean"?null:Ds(t)?!1:Is(t)&&t.writable&&!D_(t)}function LI(t,e){return tt(t)?Ds(t)?!0:!(e?.readable!==!1&&L_(t)||e?.writable!==!1&&N_(t)):null}function NI(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 CI(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 kI(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"&&C_(t)?t._closed:null}function C_(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function k_(t){return typeof t._sent100=="boolean"&&C_(t)}function MI(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&&k_(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function FI(t){var e;return!!(t&&((e=t[R_])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function jI(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[T_])!==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))}M_.exports={isDestroyed:Ds,kIsDestroyed:x_,isDisturbed:FI,kIsDisturbed:R_,isErrored:jI,kIsErrored:T_,isReadable:L_,kIsReadable:Fl,kIsClosedPromise:TI,kControllerErrorFunction:RI,kIsWritable:jl,isClosed:kI,isDuplexNodeStream:AI,isFinished:LI,isIterable:II,isReadableNodeStream:Os,isReadableStream:A_,isReadableEnded:PI,isReadableFinished:P_,isReadableErrored:CI,isNodeStream:tt,isWebStream:OI,isWritable:N_,isWritableNodeStream:Is,isWritableStream:O_,isWritableEnded:D_,isWritableFinished:DI,isWritableErrored:NI,isServerRequest:MI,isServerResponse:k_,willEmitClose:qI,isTransformStream:I_}});var yt=g((x4,zl)=>{"use strict";var Ct=Nt(),{AbortError:$_,codes:BI}=xe(),{ERR_INVALID_ARG_TYPE:UI,ERR_STREAM_PREMATURE_CLOSE:q_}=BI,{kEmptyObject:Ul,once:Wl}=Oe(),{validateAbortSignal:WI,validateFunction:GI,validateObject:zI,validateBoolean:$I}=Fr(),{Promise:HI,PromisePrototypeThen:VI,SymbolDispose:H_}=ie(),{isClosed:YI,isReadable:F_,isReadableNodeStream:Bl,isReadableStream:KI,isReadableFinished:j_,isReadableErrored:B_,isWritable:U_,isWritableNodeStream:W_,isWritableStream:ZI,isWritableFinished:G_,isWritableErrored:z_,isNodeStream:QI,willEmitClose:XI,kIsClosedPromise:JI}=rt(),jr;function eD(t){return t.setHeader&&typeof t.abort=="function"}var Gl=()=>{};function V_(t,e,r){var i,n;if(arguments.length===2?(r=e,e=Ul):e==null?e=Ul:zI(e,"options"),GI(r,"callback"),WI(e.signal,"options.signal"),r=Wl(r),KI(t)||ZI(t))return tD(t,e,r);if(!QI(t))throw new UI("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:Bl(t),o=(n=e.writable)!==null&&n!==void 0?n:W_(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||h()},f=XI(t)&&Bl(t)===s&&W_(t)===o,c=G_(t,!1),h=()=>{c=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||d)&&r.call(t)},d=j_(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=YI(t),m=()=>{S=!0;let T=z_(t)||B_(t);if(T&&typeof T!="boolean")return r.call(t,T);if(s&&!d&&Bl(t,!0)&&!j_(t,!1))return r.call(t,new q_);if(o&&!c&&!G_(t,!1))return r.call(t,new q_);r.call(t)},b=()=>{S=!0;let T=z_(t)||B_(t);if(T&&typeof T!="boolean")return r.call(t,T);r.call(t)},v=()=>{t.req.on("finish",h)};eD(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||F_(t))&&(c||U_(t)===!1)||!o&&(!f||U_(t))&&(d||F_(t)===!1)||l&&t.req&&t.aborted)&&Ct.nextTick(b);let E=()=>{r=Gl,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 P=r;E(),P.call(t,new $_(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Ct.nextTick(T);else{jr=jr||Oe().addAbortListener;let P=jr(e.signal,T),x=r;r=Wl((...O)=>{P[H_](),x.apply(t,O)})}}return E}function tD(t,e,r){let i=!1,n=Gl;if(e.signal)if(n=()=>{i=!0,r.call(t,new $_(void 0,{cause:e.signal.reason}))},e.signal.aborted)Ct.nextTick(n);else{jr=jr||Oe().addAbortListener;let o=jr(e.signal,n),a=r;r=Wl((...l)=>{o[H_](),a.apply(t,l)})}let s=(...o)=>{i||Ct.nextTick(()=>r.apply(t,o))};return VI(t[JI].promise,s,s),Gl}function rD(t,e){var r;let i=!1;return e===null&&(e=Ul),(r=e)!==null&&r!==void 0&&r.cleanup&&($I(e.cleanup,"cleanup"),i=e.cleanup),new HI((n,s)=>{let o=V_(t,e,a=>{i&&o(),a?s(a):n()})})}zl.exports=V_;zl.exports.finished=rD});var ir=g((T4,ty)=>{"use strict";var it=Nt(),{aggregateTwoErrors:iD,codes:{ERR_MULTIPLE_CALLBACK:nD},AbortError:sD}=xe(),{Symbol:Z_}=ie(),{kIsDestroyed:oD,isDestroyed:aD,isFinished:lD,isServerRequest:uD}=rt(),Q_=Z_("kDestroy"),$l=Z_("kConstruct");function X_(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function fD(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):(X_(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Y_(this,t,e):this.once(Q_,function(s){Y_(this,iD(s,t),e)}),this)}function Y_(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;X_(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?it.nextTick(cD,t,s):it.nextTick(J_,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function cD(t,e){Hl(t,e),J_(t)}function J_(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 Hl(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 hD(){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 Vl(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(Hl,t,e):Hl(t,e))}function dD(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($l,e),!(t.listenerCount($l)>1)&&it.nextTick(pD,t)}function pD(t){let e=!1;function r(i){if(e){Vl(t,i??new nD);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(Q_,i):i?Vl(t,i,!0):it.nextTick(gD,t)}try{t._construct(i=>{it.nextTick(r,i)})}catch(i){it.nextTick(r,i)}}function gD(t){t.emit($l)}function K_(t){return t?.setHeader&&typeof t.abort=="function"}function ey(t){t.emit("close")}function _D(t,e){t.emit("error",e),it.nextTick(ey,t)}function yD(t,e){!t||aD(t)||(!e&&!lD(t)&&(e=new sD),uD(t)?(t.socket=null,t.destroy(e)):K_(t)?t.abort():K_(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?it.nextTick(_D,t,e):it.nextTick(ey,t),t.destroyed||(t[oD]=!0))}ty.exports={construct:dD,destroyer:yD,destroy:fD,undestroy:hD,errorOrDestroy:Vl}});var Ns=g((R4,iy)=>{"use strict";var{ArrayIsArray:mD,ObjectSetPrototypeOf:ry}=ie(),{EventEmitter:Ps}=D("events");function Ls(t){Ps.call(this,t)}ry(Ls.prototype,Ps.prototype);ry(Ls,Ps);Ls.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)}Yl(r,"error",l),Yl(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 Yl(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):mD(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}iy.exports={Stream:Ls,prependListener:Yl}});var Gi=g((A4,Cs)=>{"use strict";var{SymbolDispose:bD}=ie(),{AbortError:ny,codes:wD}=xe(),{isNodeStream:sy,isWebStream:SD,kControllerErrorFunction:ED}=rt(),vD=yt(),{ERR_INVALID_ARG_TYPE:oy}=wD,Kl,xD=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new oy(e,"AbortSignal",t)};Cs.exports.addAbortSignal=function(e,r){if(xD(e,"signal"),!sy(r)&&!SD(r))throw new oy("stream",["ReadableStream","WritableStream","Stream"],r);return Cs.exports.addAbortSignalNoValidate(e,r)};Cs.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=sy(e)?()=>{e.destroy(new ny(void 0,{cause:t.reason}))}:()=>{e[ED](new ny(void 0,{cause:t.reason}))};if(t.aborted)r();else{Kl=Kl||Oe().addAbortListener;let i=Kl(t,r);vD(e,i[bD])}return e}});var uy=g((I4,ly)=>{"use strict";var{StringPrototypeSlice:ay,SymbolIterator:TD,TypedArrayPrototypeSet:ks,Uint8Array:RD}=ie(),{Buffer:Zl}=D("buffer"),{inspect:AD}=Oe();ly.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 Zl.alloc(0);let r=Zl.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)ks(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}*[TD](){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+=ay(s,0,e),this.head=i,i.data=ay(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Zl.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)ks(r,o,i-e),e-=o.length;else{e===o.length?(ks(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(ks(r,new RD(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 AD(this,{...r,depth:0,customInspect:!1})}}});var zi=g((D4,dy)=>{"use strict";var{MathFloor:OD,NumberIsInteger:ID}=ie(),{validateInteger:DD}=Fr(),{ERR_INVALID_ARG_VALUE:PD}=xe().codes,fy=16*1024,cy=16;function LD(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function hy(t){return t?cy:fy}function ND(t,e){DD(e,"value",0),t?cy=e:fy=e}function CD(t,e,r,i){let n=LD(e,i,r);if(n!=null){if(!ID(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new PD(s,n)}return OD(n)}return hy(t.objectMode)}dy.exports={getHighWaterMark:CD,getDefaultHighWaterMark:hy,setDefaultHighWaterMark:ND}});var _y=g((Ql,gy)=>{"use strict";var Ms=D("buffer"),nt=Ms.Buffer;function py(t,e){for(var r in t)e[r]=t[r]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?gy.exports=Ms:(py(Ms,Ql),Ql.Buffer=nr);function nr(t,e,r){return nt(t,e,r)}nr.prototype=Object.create(nt.prototype);py(nt,nr);nr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return nt(t,e,r)};nr.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};nr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nt(t)};nr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ms.SlowBuffer(t)}});var by=g(my=>{"use strict";var Jl=_y().Buffer,yy=Jl.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 kD(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 MD(t){var e=kD(t);if(typeof e!="string"&&(Jl.isEncoding===yy||!yy(t)))throw new Error("Unknown encoding: "+t);return e||t}my.StringDecoder=$i;function $i(t){this.encoding=MD(t);var e;switch(this.encoding){case"utf16le":this.text=WD,this.end=GD,e=4;break;case"utf8":this.fillLast=jD,e=4;break;case"base64":this.text=zD,this.end=$D,e=3;break;default:this.write=HD,this.end=VD;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Jl.allocUnsafe(e)}$i.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||""};$i.prototype.end=UD;$i.prototype.text=BD;$i.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 Xl(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=Xl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Xl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Xl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function FD(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 jD(t){var e=this.lastTotal-this.lastNeed,r=FD(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 BD(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 UD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function WD(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 zD(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 $D(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function HD(t){return t.toString(this.encoding)}function VD(t){return t&&t.length?this.write(t):""}});var eu=g((L4,vy)=>{"use strict";var wy=Nt(),{PromisePrototypeThen:YD,SymbolAsyncIterator:Sy,SymbolIterator:Ey}=ie(),{Buffer:KD}=D("buffer"),{ERR_INVALID_ARG_TYPE:ZD,ERR_STREAM_NULL_VALUES:QD}=xe().codes;function XD(t,e,r){let i;if(typeof e=="string"||e instanceof KD)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[Sy])n=!0,i=e[Sy]();else if(e&&e[Ey])n=!1,i=e[Ey]();else throw new ZD("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){YD(a(u),()=>wy.nextTick(f,u),c=>wy.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 QD;if(s.push(c))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}vy.exports=XD});var Vi=g((N4,Uy)=>{"use strict";var Ve=Nt(),{ArrayPrototypeIndexOf:JD,NumberIsInteger:eP,NumberIsNaN:tP,NumberParseInt:rP,ObjectDefineProperties:lu,ObjectKeys:iP,ObjectSetPrototypeOf:Ry,Promise:Ay,SafeSet:nP,SymbolAsyncDispose:sP,SymbolAsyncIterator:oP,Symbol:aP}=ie();Uy.exports=k;k.ReadableState=Bs;var{EventEmitter:lP}=D("events"),{Stream:kt,prependListener:uP}=Ns(),{Buffer:tu}=D("buffer"),{addAbortSignal:fP}=Gi(),Oy=yt(),B=Oe().debuglog("stream",t=>{B=t}),cP=uy(),Wr=ir(),{getHighWaterMark:hP,getDefaultHighWaterMark:dP}=zi(),{aggregateTwoErrors:xy,codes:{ERR_INVALID_ARG_TYPE:pP,ERR_METHOD_NOT_IMPLEMENTED:gP,ERR_OUT_OF_RANGE:_P,ERR_STREAM_PUSH_AFTER_EOF:yP,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:mP},AbortError:bP}=xe(),{validateObject:wP}=Fr(),sr=aP("kPaused"),{StringDecoder:Iy}=by(),SP=eu();Ry(k.prototype,kt.prototype);Ry(k,kt);var ru=()=>{},{errorOrDestroy:Br}=Wr,Ur=1,EP=2,Dy=4,Hi=8,Py=16,qs=32,Fs=64,Ly=128,vP=256,xP=512,TP=1024,ou=2048,au=4096,RP=8192,AP=16384,OP=32768,Ny=65536,IP=1<<17,DP=1<<18;function ce(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}lu(Bs.prototype,{objectMode:ce(Ur),ended:ce(EP),endEmitted:ce(Dy),reading:ce(Hi),constructed:ce(Py),sync:ce(qs),needReadable:ce(Fs),emittedReadable:ce(Ly),readableListening:ce(vP),resumeScheduled:ce(xP),errorEmitted:ce(TP),emitClose:ce(ou),autoDestroy:ce(au),destroyed:ce(RP),closed:ce(AP),closeEmitted:ce(OP),multiAwaitDrain:ce(Ny),readingMore:ce(IP),dataEmitted:ce(DP)});function Bs(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.state=ou|au|Py|qs,t&&t.objectMode&&(this.state|=Ur),r&&t&&t.readableObjectMode&&(this.state|=Ur),this.highWaterMark=t?hP(this,t,"readableHighWaterMark",r):dP(!1),this.buffer=new cP,this.length=0,this.pipes=[],this.flowing=null,this[sr]=null,t&&t.emitClose===!1&&(this.state&=~ou),t&&t.autoDestroy===!1&&(this.state&=~au),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Iy(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 Bs(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&&fP(t.signal,this)),kt.call(this,t),Wr.construct(this,()=>{this._readableState.needReadable&&js(this,this._readableState)})}k.prototype.destroy=Wr.destroy;k.prototype._undestroy=Wr.undestroy;k.prototype._destroy=function(t,e){e(t)};k.prototype[lP.captureRejectionSymbol]=function(t){this.destroy(t)};k.prototype[sP]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new bP,this.destroy(t)),new Ay((e,r)=>Oy(this,i=>i&&i!==t?r(i):e(null)))};k.prototype.push=function(t,e){return Cy(this,t,e,!1)};k.prototype.unshift=function(t,e){return Cy(this,t,e,!0)};function Cy(t,e,r,i){B("readableAddChunk",e);let n=t._readableState,s;if((n.state&Ur)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=tu.from(e,r).toString(n.encoding):(e=tu.from(e,r),r=""))):e instanceof tu?r="":kt._isUint8Array(e)?(e=kt._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new pP("chunk",["string","Buffer","Uint8Array"],e))),s)Br(t,s);else if(e===null)n.state&=~Hi,NP(t,n);else if((n.state&Ur)!==0||e&&e.length>0)if(i)if((n.state&Dy)!==0)Br(t,new mP);else{if(n.destroyed||n.errored)return!1;iu(t,n,e,!0)}else if(n.ended)Br(t,new yP);else{if(n.destroyed||n.errored)return!1;n.state&=~Hi,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?iu(t,n,e,!1):js(t,n)):iu(t,n,e,!1)}else i||(n.state&=~Hi,js(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function iu(t,e,r,i){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&Ny)!==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&Fs)!==0&&Us(t)),js(t,e)}k.prototype.isPaused=function(){let t=this._readableState;return t[sr]===!0||t.flowing===!1};k.prototype.setEncoding=function(t){let e=new Iy(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 PP=1073741824;function LP(t){if(t>PP)throw new _P("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function Ty(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&Ur)!==0?1:tP(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:eP(t)||(t=rP(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=LP(t)),t!==0&&(e.state&=~Ly),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?nu(this):Us(this),null;if(t=Ty(t,e),t===0&&e.ended)return e.length===0&&nu(this),null;let i=(e.state&Fs)!==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|=Hi|qs,e.length===0&&(e.state|=Fs);try{this._read(e.highWaterMark)}catch(s){Br(this,s)}e.state&=~qs,e.reading||(t=Ty(r,e))}let n;return t>0?n=jy(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&&nu(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function NP(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?Us(t):(e.needReadable=!1,e.emittedReadable=!0,ky(t))}}function Us(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(ky,t))}function ky(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,qy(t)}function js(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Ve.nextTick(CP,t,e))}function CP(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 gP("_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 nP(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=kP(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?Br(t,m):t.emit("error",m)}}uP(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 kP(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=JD(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?Us(this):i.reading||Ve.nextTick(MP,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(My,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(My,this),e};function My(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[sr]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function MP(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[sr]=!1,this};function qP(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ve.nextTick(FP,t,e))}function FP(t,e){B("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),qy(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[sr]=!0,this};function qy(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=>{Br(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=iP(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[oP]=function(){return Fy(this)};k.prototype.iterator=function(t){return t!==void 0&&wP(t,"options"),Fy(this,t)};function Fy(t,e){typeof t.read!="function"&&(t=k.wrap(t,{objectMode:!0}));let r=jP(t,e);return r.stream=t,r}async function*jP(t,e){let r=ru;function i(o){this===t?(r(),r=ru):r=o}t.on("readable",i);let n,s=Oy(t,{writable:!1},o=>{n=o?xy(n,o):null,r(),r=ru});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 Ay(i)}}}catch(o){throw n=xy(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Wr.destroyer(t,null):(t.off("readable",i),s())}}lu(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}}});lu(Bs.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[sr]!==!1},set(t){this[sr]=!!t}}});k._fromList=jy;function jy(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 nu(t){let e=t._readableState;B("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Ve.nextTick(BP,e,t))}function BP(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(UP,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function UP(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}k.from=function(t,e){return SP(k,t,e)};var su;function By(){return su===void 0&&(su={}),su}k.fromWeb=function(t,e){return By().newStreamReadableFromReadableStream(t,e)};k.toWeb=function(t,e){return By().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){Wr.destroyer(t,n),s(n)}}).wrap(t)}});var Hs=g((C4,Jy)=>{"use strict";var or=Nt(),{ArrayPrototypeSlice:zy,Error:WP,FunctionPrototypeSymbolHasInstance:$y,ObjectDefineProperty:Hy,ObjectDefineProperties:GP,ObjectSetPrototypeOf:Vy,StringPrototypeToLowerCase:zP,Symbol:$P,SymbolHasInstance:HP}=ie();Jy.exports=se;se.WritableState=Zi;var{EventEmitter:VP}=D("events"),Yi=Ns().Stream,{Buffer:Ws}=D("buffer"),$s=ir(),{addAbortSignal:YP}=Gi(),{getHighWaterMark:KP,getDefaultHighWaterMark:ZP}=zi(),{ERR_INVALID_ARG_TYPE:QP,ERR_METHOD_NOT_IMPLEMENTED:XP,ERR_MULTIPLE_CALLBACK:Yy,ERR_STREAM_CANNOT_PIPE:JP,ERR_STREAM_DESTROYED:Ki,ERR_STREAM_ALREADY_FINISHED:eL,ERR_STREAM_NULL_VALUES:tL,ERR_STREAM_WRITE_AFTER_END:rL,ERR_UNKNOWN_ENCODING:Ky}=xe().codes,{errorOrDestroy:Gr}=$s;Vy(se.prototype,Yi.prototype);Vy(se,Yi);function cu(){}var zr=$P("kOnFinished");function Zi(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?KP(this,t,"writableHighWaterMark",r):ZP(!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=nL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,zs(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[zr]=[]}function zs(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Zi.prototype.getBuffer=function(){return zy(this.buffered,this.bufferedIndex)};Hy(Zi.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function se(t){let e=this instanceof st();if(!e&&!$y(se,this))return new se(t);this._writableState=new Zi(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&&YP(t.signal,this)),Yi.call(this,t),$s.construct(this,()=>{let r=this._writableState;r.writing||du(this,r),pu(this,r)})}Hy(se,HP,{__proto__:null,value:function(t){return $y(this,t)?!0:this!==se?!1:t&&t._writableState instanceof Zi}});se.prototype.pipe=function(){Gr(this,new JP)};function Zy(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"&&!Ws.isEncoding(r))throw new Ky(r);typeof i!="function"&&(i=cu)}if(e===null)throw new tL;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=Ws.from(e,r),r="buffer");else if(e instanceof Ws)r="buffer";else if(Yi._isUint8Array(e))e=Yi._uint8ArrayToBuffer(e),r="buffer";else throw new QP("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new rL:n.destroyed&&(s=new Ki("write")),s?(or.nextTick(i,s),Gr(t,s,!0),s):(n.pendingcb++,iL(t,n,e,r,i))}se.prototype.write=function(t,e,r){return Zy(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||du(this,t))};se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=zP(e)),!Ws.isEncoding(e))throw new Ky(e);return this._writableState.defaultEncoding=e,this};function iL(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!==cu&&(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 Wy(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Ki("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function Gy(t,e,r,i){--e.pendingcb,i(r),hu(e),Gr(t,r)}function nL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){Gr(t,new Yy);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?or.nextTick(Gy,t,r,e,n):Gy(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&du(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},or.nextTick(sL,r.afterWriteTickInfo)):Qy(t,r,1,n))}function sL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,Qy(t,e,r,i)}function Qy(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&&hu(e),pu(t,e)}function hu(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 Ki("write"))}let r=t[zr].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new Ki("end"))}zs(t)}function du(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?cu:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:zy(r,o);l.allBuffers=e.allBuffers,Wy(t,e,!0,e.length,l,"",a),zs(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;Wy(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?zs(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 XP("_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=Zy(this,t,e);s instanceof WP&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,pu(this,i,!0),i.ended=!0):i.finished?n=new eL("end"):i.destroyed&&(n=new Ki("end"))),typeof r=="function"&&(n||i.finished?or.nextTick(r,n):i[zr].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 oL(t,e){let r=!1;function i(n){if(r){Gr(t,n??Yy());return}if(r=!0,e.pendingcb--,n){let s=e[zr].splice(0);for(let o=0;o<s.length;o++)s[o](n);Gr(t,n,e.sync)}else Gs(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,or.nextTick(fu,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function aL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,oL(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function pu(t,e,r){Gs(e)&&(aL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,or.nextTick((i,n)=>{Gs(n)?fu(i,n):n.pendingcb--},t,e)):Gs(e)&&(e.pendingcb++,fu(t,e))))}function fu(t,e){e.pendingcb--,e.finished=!0;let r=e[zr].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 lL=$s.destroy;se.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[zr].length)&&or.nextTick(hu,r),lL.call(this,t,e),this};se.prototype._undestroy=$s.undestroy;se.prototype._destroy=function(t,e){e(t)};se.prototype[VP.captureRejectionSymbol]=function(t){this.destroy(t)};var uu;function Xy(){return uu===void 0&&(uu={}),uu}se.fromWeb=function(t,e){return Xy().newStreamWritableFromWritableStream(t,e)};se.toWeb=function(t){return Xy().newWritableStreamFromStreamWritable(t)}});var pm=g((k4,dm)=>{"use strict";var gu=Nt(),uL=D("buffer"),{isReadable:fL,isWritable:cL,isIterable:em,isNodeStream:hL,isReadableNodeStream:tm,isWritableNodeStream:rm,isDuplexNodeStream:dL,isReadableStream:im,isWritableStream:nm}=rt(),sm=yt(),{AbortError:cm,codes:{ERR_INVALID_ARG_TYPE:pL,ERR_INVALID_RETURN_VALUE:om}}=xe(),{destroyer:Hr}=ir(),gL=st(),hm=Vi(),_L=Hs(),{createDeferredPromise:am}=Oe(),lm=eu(),um=globalThis.Blob||uL.Blob,yL=typeof um<"u"?function(e){return e instanceof um}:function(e){return!1},mL=globalThis.AbortController||Mr().AbortController,{FunctionPrototypeCall:fm}=ie(),Mt=class extends gL{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)}};dm.exports=function t(e,r){if(dL(e))return e;if(tm(e))return $r({readable:e});if(rm(e))return $r({writable:e});if(hL(e))return $r({writable:!1,readable:!1});if(im(e))return $r({readable:hm.fromWeb(e)});if(nm(e))return $r({writable:_L.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=bL(e);if(em(n))return lm(Mt,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=fm(l,n,c=>{if(c!=null)throw new om("nully","body",c)},c=>{Hr(u,c)});return u=new Mt({objectMode:!0,readable:!1,write:s,final(c){o(async()=>{try{await f,gu.nextTick(c,null)}catch(h){gu.nextTick(c,h)}})},destroy:a})}throw new om("Iterable, AsyncIterable or AsyncFunction",r,n)}if(yL(e))return t(e.arrayBuffer());if(em(e))return lm(Mt,e,{objectMode:!0,writable:!1});if(im(e?.readable)&&nm(e?.writable))return Mt.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?tm(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?rm(e?.writable)?e?.writable:t(e.writable):void 0;return $r({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return fm(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{Hr(n,s)}),n=new Mt({objectMode:!0,writable:!1,read(){}})}throw new pL(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function bL(t){let{promise:e,resolve:r}=am(),i=new mL,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(gu.nextTick(u),l)return;if(n.aborted)throw new cm(void 0,{cause:n.reason});({promise:e,resolve:r}=am()),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 $r(t){let e=t.readable&&typeof t.readable.read!="function"?hm.wrap(t.readable):t.readable,r=t.writable,i=!!fL(e),n=!!cL(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&&(sm(r,c=>{n=!1,c&&Hr(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&&(sm(e,c=>{i=!1,c&&Hr(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 cm),a=null,s=null,o=null,l===null?h(c):(l=h,Hr(r,c),Hr(e,c))},u}});var st=g((M4,ym)=>{"use strict";var{ObjectDefineProperties:wL,ObjectGetOwnPropertyDescriptor:mt,ObjectKeys:SL,ObjectSetPrototypeOf:gm}=ie();ym.exports=Ye;var mu=Vi(),Be=Hs();gm(Ye.prototype,mu.prototype);gm(Ye,mu);{let t=SL(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);mu.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}wL(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 _u;function _m(){return _u===void 0&&(_u={}),_u}Ye.fromWeb=function(t,e){return _m().newStreamDuplexFromReadableWritablePair(t,e)};Ye.toWeb=function(t){return _m().newReadableWritablePairFromDuplex(t)};var yu;Ye.from=function(t){return yu||(yu=pm()),yu(t,"body")}});var Su=g((q4,bm)=>{"use strict";var{ObjectSetPrototypeOf:mm,Symbol:EL}=ie();bm.exports=bt;var{ERR_METHOD_NOT_IMPLEMENTED:vL}=xe().codes,wu=st(),{getHighWaterMark:xL}=zi();mm(bt.prototype,wu.prototype);mm(bt,wu);var Qi=EL("kCallback");function bt(t){if(!(this instanceof bt))return new bt(t);let e=t?xL(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),wu.call(this,t),this._readableState.sync=!1,this[Qi]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",TL)}function bu(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 TL(){this._final!==bu&&bu.call(this)}bt.prototype._final=bu;bt.prototype._transform=function(t,e,r){throw new vL("_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[Qi]=r})};bt.prototype._read=function(){if(this[Qi]){let t=this[Qi];this[Qi]=null,t()}}});var vu=g((F4,Sm)=>{"use strict";var{ObjectSetPrototypeOf:wm}=ie();Sm.exports=Vr;var Eu=Su();wm(Vr.prototype,Eu.prototype);wm(Vr,Eu);function Vr(t){if(!(this instanceof Vr))return new Vr(t);Eu.call(this,t)}Vr.prototype._transform=function(t,e,r){r(null,t)}});var Zs=g((j4,Rm)=>{"use strict";var Xi=Nt(),{ArrayIsArray:RL,Promise:AL,SymbolAsyncIterator:OL,SymbolDispose:IL}=ie(),Ks=yt(),{once:DL}=Oe(),PL=ir(),Em=st(),{aggregateTwoErrors:LL,codes:{ERR_INVALID_ARG_TYPE:Lu,ERR_INVALID_RETURN_VALUE:xu,ERR_MISSING_ARGS:NL,ERR_STREAM_DESTROYED:CL,ERR_STREAM_PREMATURE_CLOSE:kL},AbortError:ML}=xe(),{validateFunction:qL,validateAbortSignal:FL}=Fr(),{isIterable:ar,isReadable:Tu,isReadableNodeStream:Ys,isNodeStream:vm,isTransformStream:Yr,isWebStream:jL,isReadableStream:Ru,isReadableFinished:BL}=rt(),UL=globalThis.AbortController||Mr().AbortController,Au,Ou,Iu;function xm(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Ks(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,PL.destroyer(t,s||new CL("pipe")))},cleanup:n}}function WL(t){return qL(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Du(t){if(ar(t))return t;if(Ys(t))return GL(t);throw new Lu("val",["Readable","Iterable","AsyncIterable"],t)}async function*GL(t){Ou||(Ou=Vi()),yield*Ou.prototype[OL].call(t)}async function Vs(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new AL((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Ks(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?LL(n,u):u)}finally{l(),e.off("drain",o)}}async function Pu(t,e,r,{end:i}){Yr(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 zL(...t){return Tm(t,DL(WL(t)))}function Tm(t,e,r){if(t.length===1&&RL(t[0])&&(t=t[0]),t.length<2)throw new NL("streams");let i=new UL,n=i.signal,s=r?.signal,o=[];FL(s,"options.signal");function a(){y(new ML)}Iu=Iu||Oe().addAbortListener;let l;s&&(l=Iu(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[IL](),i.abort(),E&&(u||o.forEach(P=>P()),Xi.nextTick(e,u,f))}}let p;for(let v=0;v<t.length;v++){let E=t[v],T=v<t.length-1,P=v>0,x=T||r?.end!==!1,O=v===t.length-1;if(vm(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}=xm(E,T,P);c.push(R),Tu(E)&&O&&o.push(A)}E.on("error",w),Tu(E)&&O&&o.push(()=>{E.removeListener("error",w)})}if(v===0)if(typeof E=="function"){if(p=E({signal:n}),!ar(p))throw new xu("Iterable, AsyncIterable or Stream","source",p)}else ar(E)||Ys(E)||Yr(E)?p=E:p=Em.from(E);else if(typeof E=="function"){if(Yr(p)){var S;p=Du((S=p)===null||S===void 0?void 0:S.readable)}else p=Du(p);if(p=E(p,{signal:n}),T){if(!ar(p,!0))throw new xu("AsyncIterable",`transform[${v-1}]`,p)}else{var m;Au||(Au=vu());let w=new Au({objectMode:!0}),R=(m=p)===null||m===void 0?void 0:m.then;if(typeof R=="function")h++,R.call(p,G=>{f=G,G!=null&&w.write(G),x&&w.end(),Xi.nextTick(d)},G=>{w.destroy(G),Xi.nextTick(d,G)});else if(ar(p,!0))h++,Vs(p,w,d,{end:x});else if(Ru(p)||Yr(p)){let G=p.readable||p;h++,Vs(G,w,d,{end:x})}else throw new xu("AsyncIterable or Promise","destination",p);p=w;let{destroy:A,cleanup:N}=xm(p,!1,!0);c.push(A),O&&o.push(N)}}else if(vm(E)){if(Ys(p)){h+=2;let w=$L(p,E,d,{end:x});Tu(E)&&O&&o.push(w)}else if(Yr(p)||Ru(p)){let w=p.readable||p;h++,Vs(w,E,d,{end:x})}else if(ar(p))h++,Vs(p,E,d,{end:x});else throw new Lu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=E}else if(jL(E)){if(Ys(p))h++,Pu(Du(p),E,d,{end:x});else if(Ru(p)||ar(p))h++,Pu(p,E,d,{end:x});else if(Yr(p))h++,Pu(p.readable,E,d,{end:x});else throw new Lu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=E}else p=Em.from(E)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&Xi.nextTick(a),p}function $L(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new kL)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;BL(t)?Xi.nextTick(o):t.once("end",o)}else r();return Ks(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)}),Ks(e,{readable:!1,writable:!0},r)}Rm.exports={pipelineImpl:Tm,pipeline:zL}});var Cu=g((B4,Lm)=>{"use strict";var{pipeline:HL}=Zs(),Qs=st(),{destroyer:VL}=ir(),{isNodeStream:Xs,isReadable:Am,isWritable:Om,isWebStream:Nu,isTransformStream:lr,isWritableStream:Im,isReadableStream:Dm}=rt(),{AbortError:YL,codes:{ERR_INVALID_ARG_VALUE:Pm,ERR_MISSING_ARGS:KL}}=xe(),ZL=yt();Lm.exports=function(...e){if(e.length===0)throw new KL("streams");if(e.length===1)return Qs.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=Qs.from(e[0])),typeof e[e.length-1]=="function"){let d=e.length-1;e[d]=Qs.from(e[d])}for(let d=0;d<e.length;++d)if(!(!Xs(e[d])&&!Nu(e[d]))){if(d<e.length-1&&!(Am(e[d])||Dm(e[d])||lr(e[d])))throw new Pm(`streams[${d}]`,r[d],"must be readable");if(d>0&&!(Om(e[d])||Im(e[d])||lr(e[d])))throw new Pm(`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=HL(e,l),c=!!(Om(u)||Im(u)||lr(u)),h=!!(Am(f)||Dm(f)||lr(f));if(a=new Qs({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:c,readable:h}),c){if(Xs(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(Nu(u)){let p=(lr(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=lr(f)?f.readable:f;ZL(d,()=>{if(n){let y=n;n=null,y()}})}if(h){if(Xs(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(Nu(f)){let y=(lr(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 YL),s=null,i=null,n=null,o===null?y(d):(o=y,Xs(f)&&VL(f,d))},a}});var Wm=g((U4,qu)=>{"use strict";var QL=globalThis.AbortController||Mr().AbortController,{codes:{ERR_INVALID_ARG_VALUE:XL,ERR_INVALID_ARG_TYPE:Ji,ERR_MISSING_ARGS:JL,ERR_OUT_OF_RANGE:eN},AbortError:ot}=xe(),{validateAbortSignal:ur,validateInteger:Nm,validateObject:fr}=Fr(),tN=ie().Symbol("kWeak"),rN=ie().Symbol("kResistStopPropagation"),{finished:iN}=yt(),nN=Cu(),{addAbortSignalNoValidate:sN}=Gi(),{isWritable:oN,isNodeStream:aN}=rt(),{deprecate:lN}=Oe(),{ArrayPrototypePush:uN,Boolean:fN,MathFloor:Cm,Number:cN,NumberIsNaN:hN,Promise:km,PromiseReject:Mm,PromiseResolve:dN,PromisePrototypeThen:qm,Symbol:jm}=ie(),Js=jm("kEmpty"),Fm=jm("kEof");function pN(t,e){if(e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),aN(t)&&!oN(t))throw new XL("stream",t,"must be writable");let r=nN(this,t);return e!=null&&e.signal&&sN(e.signal,r),r}function eo(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=Cm(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=Cm(e.highWaterMark)),Nm(r,"options.concurrency",1),Nm(i,"options.highWaterMark",0),i+=r,async function*(){let s=Oe().AbortSignalAny([e?.signal].filter(fN)),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===Js)continue;m=dN(m)}catch(b){m=Mm(b)}h+=1,qm(m,y,d),a.push(m),u&&(u(),u=null),!c&&(a.length>=i||h>=r)&&await new km(b=>{f=b})}a.push(Fm)}catch(m){let b=Mm(m);qm(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===Fm)return;if(s.aborted)throw new ot;m!==Js&&(yield m),a.shift(),p()}await new km(m=>{u=m})}}finally{c=!0,f&&(f(),f=null)}}.call(this)}function gN(t=void 0){return t!=null&&fr(t,"options"),t?.signal!=null&&ur(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 Bm(t,e=void 0){for await(let r of Mu.call(this,t,e))return!0;return!1}async function _N(t,e=void 0){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);return!await Bm.call(this,async(...r)=>!await t(...r),e)}async function yN(t,e){for await(let r of Mu.call(this,t,e))return r}async function mN(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),Js}for await(let i of eo.call(this,r,e));}function Mu(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:Js}return eo.call(this,r,e)}var ku=class extends JL{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function bN(t,e,r){var i;if(typeof t!="function")throw new Ji("reducer",["Function","AsyncFunction"],t);r!=null&&fr(r,"options"),r?.signal!=null&&ur(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 iN(this.destroy(u)),u}let s=new QL,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[tN]:this,[rN]:!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 ku}finally{s.abort()}return e}async function wN(t){t!=null&&fr(t,"options"),t?.signal!=null&&ur(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});uN(e,i)}return e}function SN(t,e){let r=eo.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function Um(t){if(t=cN(t),hN(t))return 0;if(t<0)throw new eN("number",">= 0",t);return t}function EN(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=Um(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 vN(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=Um(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)}qu.exports.streamReturningOperators={asIndexedPairs:lN(gN,"readable.asIndexedPairs will be removed in a future version."),drop:EN,filter:Mu,flatMap:SN,map:eo,take:vN,compose:pN};qu.exports.promiseReturningOperators={every:_N,forEach:mN,reduce:bN,toArray:wN,some:Bm,find:yN}});var Fu=g((W4,Gm)=>{"use strict";var{ArrayPrototypePop:xN,Promise:TN}=ie(),{isIterable:RN,isNodeStream:AN,isWebStream:ON}=rt(),{pipelineImpl:IN}=Zs(),{finished:DN}=yt();ju();function PN(...t){return new TN((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!AN(s)&&!RN(s)&&!ON(s)){let o=xN(t);i=o.signal,n=o.end}IN(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}Gm.exports={finished:DN,pipeline:PN}});var ju=g((G4,Xm)=>{"use strict";var{Buffer:LN}=D("buffer"),{ObjectDefineProperty:wt,ObjectKeys:Hm,ReflectApply:Vm}=ie(),{promisify:{custom:Ym}}=Oe(),{streamReturningOperators:zm,promiseReturningOperators:$m}=Wm(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Km}}=xe(),NN=Cu(),{setDefaultHighWaterMark:CN,getDefaultHighWaterMark:kN}=zi(),{pipeline:Zm}=Zs(),{destroyer:MN}=ir(),Qm=yt(),Bu=Fu(),en=rt(),ee=Xm.exports=Ns().Stream;ee.isDestroyed=en.isDestroyed;ee.isDisturbed=en.isDisturbed;ee.isErrored=en.isErrored;ee.isReadable=en.isReadable;ee.isWritable=en.isWritable;ee.Readable=Vi();for(let t of Hm(zm)){let r=function(...i){if(new.target)throw Km();return ee.Readable.from(Vm(e,this,i))},e=zm[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 Hm($m)){let r=function(...i){if(new.target)throw Km();return Vm(e,this,i)},e=$m[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=Hs();ee.Duplex=st();ee.Transform=Su();ee.PassThrough=vu();ee.pipeline=Zm;var{addAbortSignal:qN}=Gi();ee.addAbortSignal=qN;ee.finished=Qm;ee.destroy=MN;ee.compose=NN;ee.setDefaultHighWaterMark=CN;ee.getDefaultHighWaterMark=kN;wt(ee,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return Bu}});wt(Zm,Ym,{__proto__:null,enumerable:!0,get(){return Bu.pipeline}});wt(Qm,Ym,{__proto__:null,enumerable:!0,get(){return Bu.finished}});ee.Stream=ee;ee._isUint8Array=function(e){return e instanceof Uint8Array};ee._uint8ArrayToBuffer=function(e){return LN.from(e.buffer,e.byteOffset,e.byteLength)}});var cr=g((z4,j)=>{"use strict";var he=D("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=ju(),e=Fu(),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 eb=g(($4,Jm)=>{"use strict";function FN(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}Jm.exports=FN});var nb=g((H4,ib)=>{"use strict";var tb=ms(),jN=El(),BN=vl(),rb=tb?tb.isConcatSpreadable:void 0;function UN(t){return BN(t)||jN(t)||!!(rb&&t&&t[rb])}ib.exports=UN});var to=g((V4,ob)=>{"use strict";var WN=eb(),GN=nb();function sb(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?sb(a,e-1,r,i,n):WN(n,a):i||(n[n.length]=a)}return n}ob.exports=sb});var lb=g((Y4,ab)=>{"use strict";var zN=to();function $N(t){var e=t==null?0:t.length;return e?zN(t,1):[]}ab.exports=$N});var tn=g((K4,ub)=>{"use strict";var HN=Ci(),VN=HN(Object,"create");ub.exports=VN});var hb=g((Z4,cb)=>{"use strict";var fb=tn();function YN(){this.__data__=fb?fb(null):{},this.size=0}cb.exports=YN});var pb=g((Q4,db)=>{"use strict";function KN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}db.exports=KN});var _b=g((X4,gb)=>{"use strict";var ZN=tn(),QN="__lodash_hash_undefined__",XN=Object.prototype,JN=XN.hasOwnProperty;function eC(t){var e=this.__data__;if(ZN){var r=e[t];return r===QN?void 0:r}return JN.call(e,t)?e[t]:void 0}gb.exports=eC});var mb=g((J4,yb)=>{"use strict";var tC=tn(),rC=Object.prototype,iC=rC.hasOwnProperty;function nC(t){var e=this.__data__;return tC?e[t]!==void 0:iC.call(e,t)}yb.exports=nC});var wb=g((e6,bb)=>{"use strict";var sC=tn(),oC="__lodash_hash_undefined__";function aC(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=sC&&e===void 0?oC:e,this}bb.exports=aC});var Eb=g((t6,Sb)=>{"use strict";var lC=hb(),uC=pb(),fC=_b(),cC=mb(),hC=wb();function Kr(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])}}Kr.prototype.clear=lC;Kr.prototype.delete=uC;Kr.prototype.get=fC;Kr.prototype.has=cC;Kr.prototype.set=hC;Sb.exports=Kr});var xb=g((r6,vb)=>{"use strict";function dC(){this.__data__=[],this.size=0}vb.exports=dC});var rn=g((i6,Tb)=>{"use strict";var pC=ws();function gC(t,e){for(var r=t.length;r--;)if(pC(t[r][0],e))return r;return-1}Tb.exports=gC});var Ab=g((n6,Rb)=>{"use strict";var _C=rn(),yC=Array.prototype,mC=yC.splice;function bC(t){var e=this.__data__,r=_C(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():mC.call(e,r,1),--this.size,!0}Rb.exports=bC});var Ib=g((s6,Ob)=>{"use strict";var wC=rn();function SC(t){var e=this.__data__,r=wC(e,t);return r<0?void 0:e[r][1]}Ob.exports=SC});var Pb=g((o6,Db)=>{"use strict";var EC=rn();function vC(t){return EC(this.__data__,t)>-1}Db.exports=vC});var Nb=g((a6,Lb)=>{"use strict";var xC=rn();function TC(t,e){var r=this.__data__,i=xC(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}Lb.exports=TC});var kb=g((l6,Cb)=>{"use strict";var RC=xb(),AC=Ab(),OC=Ib(),IC=Pb(),DC=Nb();function Zr(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])}}Zr.prototype.clear=RC;Zr.prototype.delete=AC;Zr.prototype.get=OC;Zr.prototype.has=IC;Zr.prototype.set=DC;Cb.exports=Zr});var qb=g((u6,Mb)=>{"use strict";var PC=Ci(),LC=Pr(),NC=PC(LC,"Map");Mb.exports=NC});var Bb=g((f6,jb)=>{"use strict";var Fb=Eb(),CC=kb(),kC=qb();function MC(){this.size=0,this.__data__={hash:new Fb,map:new(kC||CC),string:new Fb}}jb.exports=MC});var Wb=g((c6,Ub)=>{"use strict";function qC(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}Ub.exports=qC});var nn=g((h6,Gb)=>{"use strict";var FC=Wb();function jC(t,e){var r=t.__data__;return FC(e)?r[typeof e=="string"?"string":"hash"]:r.map}Gb.exports=jC});var $b=g((d6,zb)=>{"use strict";var BC=nn();function UC(t){var e=BC(this,t).delete(t);return this.size-=e?1:0,e}zb.exports=UC});var Vb=g((p6,Hb)=>{"use strict";var WC=nn();function GC(t){return WC(this,t).get(t)}Hb.exports=GC});var Kb=g((g6,Yb)=>{"use strict";var zC=nn();function $C(t){return zC(this,t).has(t)}Yb.exports=$C});var Qb=g((_6,Zb)=>{"use strict";var HC=nn();function VC(t,e){var r=HC(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}Zb.exports=VC});var Jb=g((y6,Xb)=>{"use strict";var YC=Bb(),KC=$b(),ZC=Vb(),QC=Kb(),XC=Qb();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=YC;Qr.prototype.delete=KC;Qr.prototype.get=ZC;Qr.prototype.has=QC;Qr.prototype.set=XC;Xb.exports=Qr});var tw=g((m6,ew)=>{"use strict";var JC="__lodash_hash_undefined__";function ek(t){return this.__data__.set(t,JC),this}ew.exports=ek});var iw=g((b6,rw)=>{"use strict";function tk(t){return this.__data__.has(t)}rw.exports=tk});var Uu=g((w6,nw)=>{"use strict";var rk=Jb(),ik=tw(),nk=iw();function ro(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new rk;++e<r;)this.add(t[e])}ro.prototype.add=ro.prototype.push=ik;ro.prototype.has=nk;nw.exports=ro});var ow=g((S6,sw)=>{"use strict";function sk(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}sw.exports=sk});var lw=g((E6,aw)=>{"use strict";function ok(t){return t!==t}aw.exports=ok});var fw=g((v6,uw)=>{"use strict";function ak(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}uw.exports=ak});var hw=g((x6,cw)=>{"use strict";var lk=ow(),uk=lw(),fk=fw();function ck(t,e,r){return e===e?fk(t,e,r):lk(t,uk,r)}cw.exports=ck});var Wu=g((T6,dw)=>{"use strict";var hk=hw();function dk(t,e){var r=t==null?0:t.length;return!!r&&hk(t,e,0)>-1}dw.exports=dk});var Gu=g((R6,pw)=>{"use strict";function pk(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}pw.exports=pk});var _w=g((A6,gw)=>{"use strict";function gk(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}gw.exports=gk});var zu=g((O6,yw)=>{"use strict";function _k(t,e){return t.has(e)}yw.exports=_k});var bw=g((I6,mw)=>{"use strict";var yk=Uu(),mk=Wu(),bk=Gu(),wk=_w(),Sk=xl(),Ek=zu(),vk=200;function xk(t,e,r,i){var n=-1,s=mk,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=wk(e,Sk(r))),i?(s=bk,o=!1):e.length>=vk&&(s=Ek,o=!1,e=new yk(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}mw.exports=xk});var $u=g((D6,ww)=>{"use strict";var Tk=Ss(),Rk=Lr();function Ak(t){return Rk(t)&&Tk(t)}ww.exports=Ak});var vw=g((P6,Ew)=>{"use strict";var Ok=bw(),Ik=to(),Dk=bs(),Sw=$u(),Pk=Dk(function(t,e){return Sw(t)?Ok(t,Ik(e,1,Sw,!0)):[]});Ew.exports=Pk});var Tw=g((L6,xw)=>{"use strict";var Lk=Ci(),Nk=Pr(),Ck=Lk(Nk,"Set");xw.exports=Ck});var Aw=g((N6,Rw)=>{"use strict";function kk(){}Rw.exports=kk});var Hu=g((C6,Ow)=>{"use strict";function Mk(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}Ow.exports=Mk});var Dw=g((k6,Iw)=>{"use strict";var Vu=Tw(),qk=Aw(),Fk=Hu(),jk=1/0,Bk=Vu&&1/Fk(new Vu([,-0]))[1]==jk?function(t){return new Vu(t)}:qk;Iw.exports=Bk});var Lw=g((M6,Pw)=>{"use strict";var Uk=Uu(),Wk=Wu(),Gk=Gu(),zk=zu(),$k=Dw(),Hk=Hu(),Vk=200;function Yk(t,e,r){var i=-1,n=Wk,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=Gk;else if(s>=Vk){var u=e?null:$k(t);if(u)return Hk(u);o=!1,n=zk,l=new Uk}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}Pw.exports=Yk});var Cw=g((q6,Nw)=>{"use strict";var Kk=to(),Zk=bs(),Qk=Lw(),Xk=$u(),Jk=Zk(function(t){return Qk(Kk(t,1,Xk,!0))});Nw.exports=Jk});var Mw=g((F6,kw)=>{"use strict";function eM(t,e){return function(r){return t(e(r))}}kw.exports=eM});var Fw=g((j6,qw)=>{"use strict";var tM=Mw(),rM=tM(Object.getPrototypeOf,Object);qw.exports=rM});var Uw=g((B6,Bw)=>{"use strict";var iM=Li(),nM=Fw(),sM=Lr(),oM="[object Object]",aM=Function.prototype,lM=Object.prototype,jw=aM.toString,uM=lM.hasOwnProperty,fM=jw.call(Object);function cM(t){if(!sM(t)||iM(t)!=oM)return!1;var e=nM(t);if(e===null)return!0;var r=uM.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&jw.call(r)==fM}Bw.exports=cM});var Ww=g(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.assertValidPattern=void 0;var hM=1024*64,dM=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>hM)throw new TypeError("pattern is too long")};io.assertValidPattern=dM});var zw=g(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.parseClass=void 0;var pM={"[: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]},sn=t=>t.replace(/[[\]\\-]/g,"\\$&"),gM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Gw=t=>t.join(""),_M=(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(pM))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(sn(c)+"-"+sn(p)):p===c&&i.push(sn(p)),c="",s++;continue}if(t.startsWith("-]",s+1)){i.push(sn(p+"-")),s+=2;continue}if(t.startsWith("-",s+1)){c=p,s+=2;continue}i.push(sn(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[gM(p),!1,f-r,!1]}let h="["+(u?"^":"")+Gw(i)+"]",d="["+(u?"":"^")+Gw(n)+"]";return[i.length&&n.length?"("+h+"|"+d+")":i.length?h:d,a,f-r,!0]};no.parseClass=_M});var oo=g(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.unescape=void 0;var yM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");so.unescape=yM});var Zu=g(fo=>{"use strict";var Le;Object.defineProperty(fo,"__esModule",{value:!0});fo.AST=void 0;var mM=zw(),ao=oo(),bM=new Set(["!","?","+","*","@"]),Yu=t=>bM.has(t),$w=t=>Yu(t.type),wM=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),SM=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),EM=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Hw=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),vM="(?!(?:^|/)\\.\\.?(?:$|/))",lo="(?!\\.)",xM=new Set(["[","."]),TM=new Set(["..","."]),RM=new Set("().*{}+?[]^$\\!"),AM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ku="[^/]",Vw=Ku+"*?",Yw=Ku+"+?",uo=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 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&&Yu(m)&&e.charAt(p)==="("&&s<=o){r.push(S),S="";let v=new Le(m,r);p=Le.#m(e,v,p,n,s+1),r.push(v);continue}S+=m}return r.push(S),p}let c=i+1,h=new Le(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(Yu(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 Le(p,h);h.push(b),c=Le.#m(e,b,c,n,s+m);continue}if(p==="|"){h.push(y),y="",d.push(h),h=new Le(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,SM)}#d(e,r=wM){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=EM){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!!Hw.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=Hw.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($w(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()),!$w(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(d=>{let[y,p,S,m]=typeof d=="string"?Le.#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&&TM.has(this.#t[0]))){let y=xM,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?vM:S?lo:""}let c="";return this.isEnd()&&this.#e.#c&&this.#o?.type==="!"&&(c="(?:$|\\/)"),[f+u+c,(0,ao.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,ao.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!lo?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?lo:"")+Yw;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?lo:"")+Vw+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,ao.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+=(RM.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,c,h,d]=(0,mM.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)?Yw:Vw,r=!0;continue}else a=!1;if(u==="?"){s+=Ku,r=!0;continue}s+=AM(u)}return[s,(0,ao.unescape)(e),!!r,o]}};fo.AST=uo;Le=uo});var Qu=g(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.escape=void 0;var OM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");co.escape=OM});var qt=g(I=>{"use strict";var IM=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 DM=IM(na()),ho=Ww(),Qw=Zu(),PM=Qu(),LM=oo(),NM=(t,e,r={})=>((0,ho.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new hr(e,r).match(t));I.minimatch=NM;var CM=/^\*+([^+@!?\*\[\(]*)$/,kM=t=>e=>!e.startsWith(".")&&e.endsWith(t),MM=t=>e=>e.endsWith(t),qM=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),FM=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),jM=/^\*+\.\*+$/,BM=t=>!t.startsWith(".")&&t.includes("."),UM=t=>t!=="."&&t!==".."&&t.includes("."),WM=/^\.\*+$/,GM=t=>t!=="."&&t!==".."&&t.startsWith("."),zM=/^\*+$/,$M=t=>t.length!==0&&!t.startsWith("."),HM=t=>t.length!==0&&t!=="."&&t!=="..",VM=/^\?+([^+@!?\*\[\(]*)?$/,YM=([t,e=""])=>{let r=Xw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},KM=([t,e=""])=>{let r=Jw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},ZM=([t,e=""])=>{let r=Jw([t]);return e?i=>r(i)&&i.endsWith(e):r},QM=([t,e=""])=>{let r=Xw([t]);return e?i=>r(i)&&i.endsWith(e):r},Xw=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},Jw=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},e0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Kw={win32:{sep:"\\"},posix:{sep:"/"}};I.sep=e0==="win32"?Kw.win32.sep:Kw.posix.sep;I.minimatch.sep=I.sep;I.GLOBSTAR=Symbol("globstar **");I.minimatch.GLOBSTAR=I.GLOBSTAR;var XM="[^/]",JM=XM+"*?",e2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",t2="(?:(?!(?:\\/|^)\\.).)*?",r2=(t,e={})=>r=>(0,I.minimatch)(r,t,e);I.filter=r2;I.minimatch.filter=I.filter;var Ue=(t,e={})=>Object.assign({},t,e),i2=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=i2;I.minimatch.defaults=I.defaults;var n2=(t,e={})=>((0,ho.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,DM.default)(t));I.braceExpand=n2;I.minimatch.braceExpand=I.braceExpand;var s2=(t,e={})=>new hr(t,e).makeRe();I.makeRe=s2;I.minimatch.makeRe=I.makeRe;var o2=(t,e,r={})=>{let i=new hr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};I.match=o2;I.minimatch.match=I.match;var Zw=/[?*]|[+@!]\(.*?\)|\[|\]/,a2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,ho.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||e0,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]==="?"||!Zw.test(s[2]))&&!Zw.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,ho.assertValidPattern)(e);let r=this.options;if(e==="**")return I.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(zM))?n=r.dot?HM:$M:(i=e.match(CM))?n=(r.nocase?r.dot?FM:qM:r.dot?MM:kM)(i[1]):(i=e.match(VM))?n=(r.nocase?r.dot?KM:YM:r.dot?ZM:QM)(i):(i=e.match(jM))?n=r.dot?UM:BM:(i=e.match(WM))&&(n=GM);let s=Qw.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?JM:r.dot?e2:t2,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"?a2(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=hr;var l2=Zu();Object.defineProperty(I,"AST",{enumerable:!0,get:function(){return l2.AST}});var u2=Qu();Object.defineProperty(I,"escape",{enumerable:!0,get:function(){return u2.escape}});var f2=oo();Object.defineProperty(I,"unescape",{enumerable:!0,get:function(){return f2.unescape}});I.minimatch.AST=Qw.AST;I.minimatch.Minimatch=hr;I.minimatch.escape=PM.escape;I.minimatch.unescape=LM.unescape});var s0=g(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.LRUCache=void 0;var Xr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r0=new Set,Xu=typeof process=="object"&&process?process:{},i0=(t,e,r,i)=>{typeof Xu.emitWarning=="function"?Xu.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},po=globalThis.AbortController,t0=globalThis.AbortSignal;if(typeof po>"u"){t0=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},po=class{constructor(){e()}signal=new t0;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=Xu.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,i0("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 c2=t=>!r0.has(t),Ft=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),n0=t=>Ft(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Jr:null:null,Jr=class extends Array{constructor(e){super(e),this.fill(0)}},Ju=class t{heap;length;static#e=!1;static create(e){let r=n0(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]}},ef=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.#F(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:P}=e;if(r!==0&&!Ft(r))throw new TypeError("max option must be a nonnegative integer");let x=r?n0(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=Ju.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=!!P,this.maxEntrySize!==0){if(this.#r!==0&&!Ft(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Ft(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=Ft(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!Ft(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";c2(O)&&(r0.add(O),i0("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 Jr(this.#e),r=new Jr(this.#e);this.#_=e,this.#T=r,this.#L=(s,o,a=Xr.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?Xr.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=Xr.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 Jr(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(!Ft(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!Ft(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.#q(!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-(Xr.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=Xr.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=Xr.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.#q(!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.#q(!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)}}}#q(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}#F(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new po,{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.#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,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.#P(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 po}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.#F(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 P=this.#w(E);if(!S&&!P)return m&&(m.fetch="hit"),this.#B(E),n&&this.#A(E),m&&this.#i(m,E),T;let x=this.#F(e,E,v,p),w=x.__staleWhileFetching!==void 0&&i;return m&&(m.fetch=P?"stale":"refresh",w&&P&&(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.#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)}}};go.LRUCache=ef});var uf=g(De=>{"use strict";var h2=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 o0=typeof process=="object"&&process?process:{stdout:null,stderr:null},lf=D("events"),f0=h2(D("stream")),d2=D("string_decoder"),p2=t=>!!t&&typeof t=="object"&&(t instanceof Eo||t instanceof f0.default||(0,De.isReadable)(t)||(0,De.isWritable)(t));De.isStream=p2;var g2=t=>!!t&&typeof t=="object"&&t instanceof lf.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==f0.default.Writable.prototype.pipe;De.isReadable=g2;var _2=t=>!!t&&typeof t=="object"&&t instanceof lf.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";De.isWritable=_2;var St=Symbol("EOF"),Et=Symbol("maybeEmitEnd"),jt=Symbol("emittedEnd"),_o=Symbol("emittingEnd"),on=Symbol("emittedError"),yo=Symbol("closed"),a0=Symbol("read"),mo=Symbol("flush"),l0=Symbol("flushChunk"),Ke=Symbol("encoding"),ei=Symbol("decoder"),de=Symbol("flowing"),an=Symbol("paused"),ti=Symbol("resume"),pe=Symbol("buffer"),Ie=Symbol("pipes"),ge=Symbol("bufferLength"),tf=Symbol("bufferPush"),bo=Symbol("bufferShift"),Re=Symbol("objectMode"),le=Symbol("destroyed"),rf=Symbol("error"),nf=Symbol("emitData"),u0=Symbol("emitEnd"),sf=Symbol("emitEnd2"),at=Symbol("async"),of=Symbol("abort"),wo=Symbol("aborted"),ln=Symbol("signal"),dr=Symbol("dataListeners"),Ce=Symbol("discarded"),un=t=>Promise.resolve().then(t),y2=t=>t(),m2=t=>t==="end"||t==="finish"||t==="prefinish",b2=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,w2=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),So=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ti](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},af=class extends So{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)}},S2=t=>!!t.objectMode,E2=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",Eo=class extends lf.EventEmitter{[de]=!1;[an]=!1;[Ie]=[];[pe]=[];[Re];[Ke];[at];[ei];[St]=!1;[jt]=!1;[_o]=!1;[yo]=!1;[on]=null;[ge]=0;[le]=!1;[ln];[wo]=!1;[dr]=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");S2(r)?(this[Re]=!0,this[Ke]=null):E2(r)?(this[Ke]=r.encoding,this[Re]=!1):(this[Re]=!1,this[Ke]=null),this[at]=!!r.async,this[ei]=this[Ke]?new d2.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[ln]=i,i.aborted?this[of]():i.addEventListener("abort",()=>this[of]()))}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}[of](){this[wo]=!0,this.emit("abort",this[ln]?.reason),this.destroy(this[ln]?.reason)}get aborted(){return this[wo]}set aborted(e){}write(e,r,i){if(this[wo])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]?un:y2;if(!this[Re]&&!Buffer.isBuffer(e)){if(w2(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(b2(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[mo](!0),this[de]?this.emit("data",e):this[tf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):e.length?(typeof e=="string"&&!(r===this[Ke]&&!this[ei]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ke]&&(e=this[ei].write(e)),this[de]&&this[ge]!==0&&this[mo](!0),this[de]?this.emit("data",e):this[tf](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[a0](e||null,this[pe][0]);return this[Et](),r}[a0](e,r){if(this[Re])this[bo]();else{let i=r;e===i.length||e===null?this[bo]():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[an])&&this[Et](),this}[ti](){this[le]||(!this[dr]&&!this[Ie].length&&(this[Ce]=!0),this[an]=!1,this[de]=!0,this.emit("resume"),this[pe].length?this[mo]():this[St]?this[Et]():this.emit("drain"))}resume(){return this[ti]()}pause(){this[de]=!1,this[an]=!0,this[Ce]=!1}get destroyed(){return this[le]}get flowing(){return this[de]}get paused(){return this[an]}[tf](e){this[Re]?this[ge]+=1:this[ge]+=e.length,this[pe].push(e)}[bo](){return this[Re]?this[ge]-=1:this[ge]-=this[pe][0].length,this[pe].shift()}[mo](e=!1){do;while(this[l0](this[bo]())&&this[pe].length);!e&&!this[pe].length&&!this[St]&&this.emit("drain")}[l0](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===o0.stdout||e===o0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ie].push(r.proxyErrors?new af(this,e,r):new So(this,e,r)),this[at]?un(()=>this[ti]()):this[ti]()),e}unpipe(e){let r=this[Ie].find(i=>i.dest===e);r&&(this[Ie].length===1?(this[de]&&this[dr]===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[dr]++,!this[Ie].length&&!this[de]&&this[ti]();else if(e==="readable"&&this[ge]!==0)super.emit("readable");else if(m2(e)&&this[jt])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[on]){let n=r;this[at]?un(()=>n.call(this,this[on])):n.call(this,this[on])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[dr]=this.listeners("data").length,this[dr]===0&&!this[Ce]&&!this[Ie].length&&(this[de]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[dr]=0,!this[Ce]&&!this[Ie].length&&(this[de]=!1)),r}get emittedEnd(){return this[jt]}[Et](){!this[_o]&&!this[jt]&&!this[le]&&this[pe].length===0&&this[St]&&(this[_o]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[yo]&&this.emit("close"),this[_o]=!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]?(un(()=>this[nf](i)),!0):this[nf](i);if(e==="end")return this[u0]();if(e==="close"){if(this[yo]=!0,!this[jt]&&!this[le])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[on]=i,super.emit(rf,i);let s=!this[ln]||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}[nf](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}[u0](){return this[jt]?!1:(this[jt]=!0,this.readable=!1,this[at]?(un(()=>this[sf]()),!0):this[sf]())}[sf](){if(this[ei]){let r=this[ei].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(rf,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(rf,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[yo]&&r.close(),e?this.emit("error",e):this.emit(le),this}static get isStream(){return De.isStream}};De.Minipass=Eo});var T0=g(H=>{"use strict";var v2=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]})),x2=H&&H.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),T2=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)&&v2(e,t,r);return x2(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 _0=s0(),Ao=D("path"),R2=D("url"),cn=D("fs"),A2=T2(D("fs")),O2=cn.realpathSync.native,vo=D("fs/promises"),c0=uf(),hn={lstatSync:cn.lstatSync,readdir:cn.readdir,readdirSync:cn.readdirSync,readlinkSync:cn.readlinkSync,realpathSync:O2,promises:{lstat:vo.lstat,readdir:vo.readdir,readlink:vo.readlink,realpath:vo.realpath}},y0=t=>!t||t===hn||t===A2?hn:{...hn,...t,promises:{...hn.promises,...t.promises||{}}},m0=/^\\\\\?\\([a-z]:)\\?$/i,I2=t=>t.replace(/\//g,"\\").replace(m0,"$1\\"),D2=/[\\\/]/,Ge=0,b0=1,w0=2,lt=4,S0=6,E0=8,pr=10,v0=12,We=15,fn=~We,ff=16,h0=32,dn=64,Ze=128,xo=256,Ro=512,d0=dn|Ze|Ro,P2=1023,cf=t=>t.isFile()?E0:t.isDirectory()?lt:t.isSymbolicLink()?pr:t.isCharacterDevice()?w0:t.isBlockDevice()?S0:t.isSocket()?v0:t.isFIFO()?b0:Ge,p0=new Map,pn=t=>{let e=p0.get(t);if(e)return e;let r=t.normalize("NFKD");return p0.set(t,r),r},g0=new Map,To=t=>{let e=g0.get(t);if(e)return e;let r=pn(t.toLowerCase());return g0.set(t,r),r},gn=class extends _0.LRUCache{constructor(){super({max:256})}};H.ResolveCache=gn;var Oo=class extends _0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};H.ChildrenCache=Oo;var x0=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=Ge,i,n,s,o,a){this.name=e,this.#_=s?To(e):pn(e),this.#i=r&P2,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=y0(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&=~ff,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),n=this.nocase?To(e):pn(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,Ge,{...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)===Ge}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)===E0}isDirectory(){return(this.#i&We)===lt}isCharacterDevice(){return(this.#i&We)===w0}isBlockDevice(){return(this.#i&We)===S0}isFIFO(){return(this.#i&We)===b0}isSocket(){return(this.#i&We)===v0}isSymbolicLink(){return(this.#i&pr)===pr}lstatCached(){return this.#i&h0?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!==Ge&&e!==pr||this.#i&xo||this.#i&Ze)}calledReaddir(){return!!(this.#i&ff)}isENOENT(){return!!(this.#i&Ze)}isNamed(e){return this.nocase?this.#_===To(e):this.#_===pn(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|=ff;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)&fn,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#k()}#I(){this.#i|=Ro,this.#M()}#M(){if(this.#i&dn)return;let e=this.#i;(e&We)===lt&&(e&=fn),this.#i=e|dn,this.#O()}#q(e=""){e==="ENOTDIR"||e==="EPERM"?this.#M():e==="ENOENT"?this.#k():this.children().provisional=0}#F(e=""){e==="ENOTDIR"?this.parent.#M():e==="ENOENT"&&this.#k()}#f(e=""){let r=this.#i;r|=xo,e==="ENOENT"&&(r|=Ze),(e==="EINVAL"||e==="UNKNOWN")&&(r&=fn),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=cf(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&We;return s!==lt&&s!==pr&&s!==Ge&&(n.#i|=dn),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?To(e.name):pn(e.name))===n.#_)return this.#U(e,n,i,r)}}#U(e,r,i,n){let s=r.name;return r.#i=r.#i&fn|cf(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.#F(e.code)}}lstatSync(){if((this.#i&Ze)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#F(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=cf(e);this.#i=this.#i&fn|E|h0,E!==Ge&&E!==lt&&E!==pr&&(this.#i|=dn)}#G=[];#z=!1;#H(e){this.#z=!1;let r=this.#G.slice();this.#G.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.#G.push(e),this.#z)return;this.#z=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(s,o)=>{if(s)this.#q(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.#q(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.#q(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&d0)return!1;let e=We&this.#i;return e===Ge||e===lt||e===pr}shouldWalk(e,r){return(this.#i&lt)===lt&&!(this.#i&d0)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#D)return this.#D;if(!((Ro|xo|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(!((Ro|xo|Ze)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}[x0](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 _n=class t extends Se{sep="\\";splitSep=D2;constructor(e,r=Ge,i,n,s,o,a){super(e,r,i,n,s,o,a)}newChild(e,r=Ge,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return Ao.win32.parse(e).root}getRoot(e){if(e=I2(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 bn(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(m0,"$1\\"),e===r}};H.PathWin32=_n;var yn=class t extends Se{splitSep="/";sep="/";constructor(e,r=Ge,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=Ge,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};H.PathPosix=yn;var mn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=hn}={}){this.#t=y0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,R2.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new gn,this.#r=new gn,this.#n=new Oo(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 c0.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 c0.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[x0](r)}};H.PathScurryBase=mn;var bn=class extends mn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,Ao.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return Ao.win32.parse(e).root.toUpperCase()}newRoot(e){return new _n(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=bn;var wn=class extends mn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,Ao.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new yn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};H.PathScurryPosix=wn;var Io=class extends wn{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};H.PathScurryDarwin=Io;H.Path=process.platform==="win32"?_n:yn;H.PathScurry=process.platform==="win32"?bn:process.platform==="darwin"?Io:wn});var df=g(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.Pattern=void 0;var L2=qt(),N2=t=>t.length>=1,C2=t=>t.length>=1,hf=class t{#e;#r;#n;length;#t;#o;#S;#u;#c;#l;#a=!0;constructor(e,r,i,n){if(!N2(e))throw new TypeError("empty pattern list");if(!C2(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]===L2.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)}};Do.Pattern=hf});var gf=g(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.Ignore=void 0;var R0=qt(),k2=df(),M2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",pf=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=M2}){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 R0.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 k2.Pattern(n,s,0,this.platform),a=new R0.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=pf});var O0=g(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.Processor=ut.SubWalks=ut.MatchRecord=ut.HasWalkedCache=void 0;var A0=qt(),Lo=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=Lo;var No=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=No;var Co=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=Co;var _f=class t{hasWalkedCache;matches=new No;subwalks=new Co;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new Lo}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===A0.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===A0.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=_f});var P0=g(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.GlobStream=Bt.GlobWalker=Bt.GlobUtil=void 0;var q2=uf(),I0=gf(),D0=O0(),F2=(t,e)=>typeof t=="string"?new I0.Ignore([t],e):Array.isArray(t)?new I0.Ignore(t,e):t,Sn=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=F2(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 D0.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 D0.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=Sn;var yf=class extends Sn{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=yf;var mf=class extends Sn{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=mf});var wf=g(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.Glob=void 0;var j2=qt(),B2=D("url"),ko=T0(),U2=df(),Mo=P0(),W2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",bf=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,B2.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||W2,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"?ko.PathScurryWin32:r.platform==="darwin"?ko.PathScurryDarwin:r.platform?ko.PathScurryPosix:ko.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 j2.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 U2.Pattern(l,f,0,this.platform)})}async walk(){return[...await new Mo.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 Mo.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 Mo.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 Mo.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=bf});var Sf=g(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.hasMagic=void 0;var G2=qt(),z2=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new G2.Minimatch(r,e).hasMagic())return!0;return!1};Fo.hasMagic=z2});var k0=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=En;U.globStream=Ef;U.globSync=vf;U.globIterateSync=vn;U.globIterate=xf;var L0=qt(),gr=wf(),$2=Sf(),C0=qt();Object.defineProperty(U,"escape",{enumerable:!0,get:function(){return C0.escape}});Object.defineProperty(U,"unescape",{enumerable:!0,get:function(){return C0.unescape}});var H2=wf();Object.defineProperty(U,"Glob",{enumerable:!0,get:function(){return H2.Glob}});var V2=Sf();Object.defineProperty(U,"hasMagic",{enumerable:!0,get:function(){return V2.hasMagic}});var Y2=gf();Object.defineProperty(U,"Ignore",{enumerable:!0,get:function(){return Y2.Ignore}});function En(t,e={}){return new gr.Glob(t,e).streamSync()}function Ef(t,e={}){return new gr.Glob(t,e).stream()}function vf(t,e={}){return new gr.Glob(t,e).walkSync()}async function N0(t,e={}){return new gr.Glob(t,e).walk()}function vn(t,e={}){return new gr.Glob(t,e).iterateSync()}function xf(t,e={}){return new gr.Glob(t,e).iterate()}U.streamSync=En;U.stream=Object.assign(Ef,{sync:En});U.iterateSync=vn;U.iterate=Object.assign(xf,{sync:vn});U.sync=Object.assign(vf,{stream:En,iterate:vn});U.glob=Object.assign(N0,{glob:N0,globSync:vf,sync:U.sync,globStream:Ef,stream:U.stream,globStreamSync:En,streamSync:U.streamSync,globIterate:xf,iterate:U.iterate,globIterateSync:vn,iterateSync:U.iterateSync,Glob:gr.Glob,hasMagic:$2.hasMagic,escape:L0.escape,unescape:L0.unescape});U.glob.glob=U.glob});var j0=g((aU,F0)=>{"use strict";var q0=$a(),ri=D("path"),Tf=lb(),K2=vw(),Z2=Cw(),Q2=Uw(),X2=k0(),_r=F0.exports={},M0=/[\/\\]/g,J2=function(t,e){var r=[];return Tf(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=K2(r,s):r=Z2(r,s)}),r};_r.exists=function(){var t=ri.join.apply(ri,arguments);return q0.existsSync(t)};_r.expand=function(...t){var e=Q2(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=J2(r,function(n){return X2.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=ri.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):q0.statSync(n)[e.filter]()}catch{return!1}})),i};_r.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return ri.join(s||"",o)}},r);var i=[],n={};return _r.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=ri.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=ri.join(r.cwd,s)),a=a.replace(M0,"/"),s=s.replace(M0,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};_r.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=Tf(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return _r.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)?Tf(o):[o],s.result=_r.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var ii=g((uU,W0)=>{"use strict";var Rf=$a(),B0=D("path"),eq=is(),tq=cp(),U0=gl(),rq=$g(),lU=D("stream").Stream,iq=cr().PassThrough,ke=W0.exports={};ke.file=j0();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]||{},rq(...i)};ke.isStream=function(t){return eq(t)};ke.lazyReadStream=function(t){return new tq.Readable(function(){return Rf.createReadStream(t)})};ke.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):ke.isStream(t)?t.pipe(new iq):t};ke.sanitizePath=function(t){return U0(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};ke.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};ke.unixifyPath=function(t){return U0(t,!1).replace(/^\w+:/,"")};ke.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Rf.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=B0.join(t,a),Rf.stat(l,function(f,c){i.push({path:l,relative:B0.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 H0=g((z0,$0)=>{"use strict";var nq=D("util"),sq={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 G0(t,e){Error.captureStackTrace(this,this.constructor),this.message=sq[t]||t,this.code=t,this.data=e}nq.inherits(G0,Error);z0=$0.exports=G0});var Q0=g((fU,Z0)=>{"use strict";var If=D("fs"),Y0=nh(),V0=(id(),JE(rd)),Af=D("path"),ft=ii(),oq=D("util").inherits,ae=H0(),K0=cr().Transform,Of=process.platform==="win32",z=function(t,e){if(!(this instanceof z))return new z(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=ft.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),K0.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=V0.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=V0.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=[]};oq(z,K0);z.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};z.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 If.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};z.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)};z.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};z.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))};z.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"))};z.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};z.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};z.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};z.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"?Of?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(Of?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,Of&&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};z.prototype._onModuleError=function(t){this.emit("error",t)};z.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()};z.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)};z.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}If.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))};z.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};z.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};z.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=If.readlinkSync(t.filepath),i=Af.dirname(t.filepath);t.data.type="symlink",t.data.linkname=Af.relative(i,Af.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};z.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};z.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};z.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=Y0(t,n);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};z.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)};z.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=Y0(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};z.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)})})};z.prototype.setFormat=function(t){return this._format?(this.emit("error",new ae("FORMATSET")),this):(this._format=t,this)};z.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)};z.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};z.prototype.pointer=function(){return this._pointer};z.prototype.use=function(t){return this._streams.push(t),this};Z0.exports=z});var Bo=g((cU,X0)=>{"use strict";var jo=X0.exports=function(){};jo.prototype.getName=function(){};jo.prototype.getSize=function(){};jo.prototype.getLastModifiedDate=function(){};jo.prototype.isDirectory=function(){}});var Uo=g((hU,J0)=>{"use strict";var ze=J0.exports={};ze.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};ze.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)};ze.fromDosTime=function(t){return ze.dosToDate(t.readUInt32LE(0))};ze.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};ze.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};ze.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};ze.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};ze.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};ze.toDosTime=function(t){return ze.getLongBytes(ze.dateToDos(t))}});var Df=g((dU,sS)=>{"use strict";var eS=Uo(),tS=8,rS=1,aq=4,lq=2,iS=64,nS=2048,Ee=sS.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 eS.getShortBytes((this.descriptor?tS:0)|(this.utf8?nS:0)|(this.encryption?rS:0)|(this.strongEncryption?iS:0))};Ee.prototype.parse=function(t,e){var r=eS.getShortBytesValue(t,e),i=new Ee;return i.useDataDescriptor((r&tS)!==0),i.useUTF8ForNames((r&nS)!==0),i.useStrongEncryption((r&iS)!==0),i.useEncryption((r&rS)!==0),i.setSlidingDictionarySize((r&lq)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&aq)!==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 aS=g((pU,oS)=>{"use strict";oS.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 Pf=g((gU,lS)=>{"use strict";lS.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 Lf=g((_U,dS)=>{"use strict";var uq=D("util").inherits,fq=gl(),fS=Bo(),cS=Df(),uS=aS(),Pe=Pf(),hS=Uo(),F=dS.exports=function(t){if(!(this instanceof F))return new F(t);fS.call(this),this.platform=Pe.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new cS,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)};uq(F,fS);F.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};F.prototype.getComment=function(){return this.comment!==null?this.comment:""};F.prototype.getCompressedSize=function(){return this.csize};F.prototype.getCrc=function(){return this.crc};F.prototype.getExternalAttributes=function(){return this.exattr};F.prototype.getExtra=function(){return this.extra!==null?this.extra:Pe.EMPTY};F.prototype.getGeneralPurposeBit=function(){return this.gpb};F.prototype.getInternalAttributes=function(){return this.inattr};F.prototype.getLastModifiedDate=function(){return this.getTime()};F.prototype.getLocalFileDataExtra=function(){return this.getExtra()};F.prototype.getMethod=function(){return this.method};F.prototype.getName=function(){return this.name};F.prototype.getPlatform=function(){return this.platform};F.prototype.getSize=function(){return this.size};F.prototype.getTime=function(){return this.time!==-1?hS.dosToDate(this.time):-1};F.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};F.prototype.getUnixMode=function(){return this.platform!==Pe.PLATFORM_UNIX?0:this.getExternalAttributes()>>Pe.SHORT_SHIFT&Pe.SHORT_MASK};F.prototype.getVersionNeededToExtract=function(){return this.minver};F.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};F.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};F.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};F.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};F.prototype.setExtra=function(t){this.extra=t};F.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof cS))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};F.prototype.setInternalAttributes=function(t){this.inattr=t};F.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};F.prototype.setName=function(t,e=!1){t=fq(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};F.prototype.setPlatform=function(t){this.platform=t};F.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};F.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=hS.dateToDos(t,e)};F.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};F.prototype.setVersionNeededToExtract=function(t){this.minver=t};F.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};F.prototype.isUnixSymlink=function(){return(this.getUnixMode()&uS.FILE_TYPE_FLAG)===uS.LINK_FLAG};F.prototype.isZip64=function(){return this.csize>Pe.ZIP64_MAGIC||this.size>Pe.ZIP64_MAGIC}});var Nf=g((mU,pS)=>{"use strict";var yU=D("stream").Stream,cq=cr().PassThrough,hq=is(),dq=pS.exports={};dq.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(hq(t)&&!t._readableState){var e=new cq;return t.pipe(e),e}return t}});var kf=g((bU,gS)=>{"use strict";var pq=D("util").inherits,gq=is(),Cf=cr().Transform,_q=Bo(),yq=Nf(),Me=gS.exports=function(t){if(!(this instanceof Me))return new Me(t);Cf.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};pq(Me,Cf);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 _q)){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=yq.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(gq(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),Cf.prototype.write.call(this,t,e)}});var Wo=g(Mf=>{"use strict";var _S;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof Mf=="object"?t(Mf):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(_S={}):t(_S={})})(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 P(x,O){for(var w=O^-1,R=0,A=x.length,N=0,G=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,G=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|G>>6&15|(N&3)<<4))&255],w=w>>>8^r[(w^(128|G&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=P})});var mS=g((SU,yS)=>{"use strict";var{Transform:mq}=cr(),bq=Wo(),qf=class extends mq{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=bq.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}};yS.exports=qf});var wS=g((EU,bS)=>{"use strict";var{DeflateRaw:wq}=D("zlib"),Sq=Wo(),Ff=class extends wq{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=Sq.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}};bS.exports=Ff});var jf=g((vU,SS)=>{"use strict";SS.exports={CRC32Stream:mS(),DeflateCRC32Stream:wS()}});var xS=g((AU,vS)=>{"use strict";var Eq=D("util").inherits,vq=Wo(),{CRC32Stream:xq}=jf(),{DeflateCRC32Stream:Tq}=jf(),ES=kf(),xU=Lf(),TU=Df(),C=Pf(),RU=Nf(),L=Uo(),_e=vS.exports=function(t){if(!(this instanceof _e))return new _e(t);t=this.options=this._defaults(t),ES.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}};Eq(_e,ES);_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(vq.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 Tq(this.options.zlib):new xq,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 Bf=g((OU,TS)=>{"use strict";TS.exports={ArchiveEntry:Bo(),ZipArchiveEntry:Lf(),ArchiveOutputStream:kf(),ZipArchiveOutputStream:xS()}});var AS=g((IU,RS)=>{"use strict";var Rq=D("util").inherits,Wf=Bf().ZipArchiveOutputStream,Aq=Bf().ZipArchiveEntry,Uf=ii(),ni=RS.exports=function(t){if(!(this instanceof ni))return new ni(t);t=this.options=t||{},t.zlib=t.zlib||{},Wf.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)};Rq(ni,Wf);ni.prototype._normalizeFileData=function(t){t=Uf.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=Uf.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=Uf.dateify(t.date),t};ni.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 Aq(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)),Wf.prototype.entry.call(this,i,t,r)};ni.prototype.finalize=function(){this.finish()}});var IS=g((DU,OS)=>{"use strict";var Oq=AS(),Iq=ii(),Ut=function(t){if(!(this instanceof Ut))return new Ut(t);t=this.options=Iq.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new Oq(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)};OS.exports=Ut});var PS=g((PU,DS)=>{"use strict";DS.exports=D("events")});var NS=g((NU,LS)=>{"use strict";LS.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 Gf=g((kU,kS)=>{"use strict";var CS=NS();kS.exports=class{constructor(e){this.hwm=e||16,this.head=new CS(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 CS(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 zf=g((MU,MS)=>{"use strict";function Dq(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function Pq(t){return Buffer.isEncoding(t)}function Lq(t,e,r){return Buffer.alloc(t,e,r)}function Nq(t){return Buffer.allocUnsafe(t)}function Cq(t){return Buffer.allocUnsafeSlow(t)}function kq(t,e){return Buffer.byteLength(t,e)}function Mq(t,e){return Buffer.compare(t,e)}function qq(t,e){return Buffer.concat(t,e)}function Fq(t,e,r,i,n){return Y(t).copy(e,r,i,n)}function jq(t,e){return Y(t).equals(e)}function Bq(t,e,r,i,n){return Y(t).fill(e,r,i,n)}function Uq(t,e,r){return Buffer.from(t,e,r)}function Wq(t,e,r,i){return Y(t).includes(e,r,i)}function Gq(t,e,r,i){return Y(t).indexOf(e,r,i)}function zq(t,e,r,i){return Y(t).lastIndexOf(e,r,i)}function $q(t){return Y(t).swap16()}function Hq(t){return Y(t).swap32()}function Vq(t){return Y(t).swap64()}function Y(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Yq(t,e,r,i){return Y(t).toString(e,r,i)}function Kq(t,e,r,i,n){return Y(t).write(e,r,i,n)}function Zq(t,e){return Y(t).readDoubleBE(e)}function Qq(t,e){return Y(t).readDoubleLE(e)}function Xq(t,e){return Y(t).readFloatBE(e)}function Jq(t,e){return Y(t).readFloatLE(e)}function eF(t,e){return Y(t).readInt32BE(e)}function tF(t,e){return Y(t).readInt32LE(e)}function rF(t,e){return Y(t).readUInt32BE(e)}function iF(t,e){return Y(t).readUInt32LE(e)}function nF(t,e,r){return Y(t).writeDoubleBE(e,r)}function sF(t,e,r){return Y(t).writeDoubleLE(e,r)}function oF(t,e,r){return Y(t).writeFloatBE(e,r)}function aF(t,e,r){return Y(t).writeFloatLE(e,r)}function lF(t,e,r){return Y(t).writeInt32BE(e,r)}function uF(t,e,r){return Y(t).writeInt32LE(e,r)}function fF(t,e,r){return Y(t).writeUInt32BE(e,r)}function cF(t,e,r){return Y(t).writeUInt32LE(e,r)}MS.exports={isBuffer:Dq,isEncoding:Pq,alloc:Lq,allocUnsafe:Nq,allocUnsafeSlow:Cq,byteLength:kq,compare:Mq,concat:qq,copy:Fq,equals:jq,fill:Bq,from:Uq,includes:Wq,indexOf:Gq,lastIndexOf:zq,swap16:$q,swap32:Hq,swap64:Vq,toBuffer:Y,toString:Yq,write:Kq,readDoubleBE:Zq,readDoubleLE:Qq,readFloatBE:Xq,readFloatLE:Jq,readInt32BE:eF,readInt32LE:tF,readUInt32BE:rF,readUInt32LE:iF,writeDoubleBE:nF,writeDoubleLE:sF,writeFloatBE:oF,writeFloatLE:aF,writeInt32BE:lF,writeInt32LE:uF,writeUInt32BE:fF,writeUInt32LE:cF}});var FS=g((FU,qS)=>{"use strict";var hF=zf();qS.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return hF.toString(e,this.encoding)}flush(){return""}}});var WS=g((BU,US)=>{"use strict";var jS=zf();US.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&BS(e,0)===0)return this.bytesSeen=dF(e),jS.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=BS(e,i),s=e.byteLength-n;s>i&&(r+=jS.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 BS(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 dF(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 zS=g((WU,GS)=>{"use strict";var pF=FS(),gF=WS();GS.exports=class{constructor(e="utf8"){switch(this.encoding=_F(e),this.encoding){case"utf8":this.decoder=new gF;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new pF(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 _F(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 oc=g((GU,dE)=>{"use strict";var{EventEmitter:yF}=PS(),Yo=new Error("Stream was destroyed"),$f=new Error("Premature close"),ZS=Gf(),mF=zS(),Hf=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,oe=(1<<29)-1,ct=1,Jf=2,vt=4,xn=8,QS=oe^ct,bF=oe^Jf,In=16,si=32,li=64,Gt=128,Dn=256,ec=512,zt=1024,Vf=2048,tc=4096,rc=8192,Qe=16384,Wt=32768,Ko=65536,yr=131072,XS=Dn|ec,wF=In|Ko,SF=li|In,EF=tc|Gt,ic=Dn|yr,vF=oe^In,xF=oe^li,TF=oe^(li|Ko),$S=oe^Ko,RF=oe^Dn,AF=oe^(Gt|rc),OF=oe^zt,HS=oe^XS,JS=oe^Wt,IF=oe^si,eE=oe^yr,DF=oe^ic,xt=1<<18,ai=2<<18,Pn=4<<18,mr=8<<18,Ln=16<<18,Ht=32<<18,Yf=64<<18,oi=128<<18,nc=256<<18,$t=512<<18,Zo=1024<<18,PF=oe^(xt|nc),tE=oe^Pn,LF=oe^(xt|$t),NF=oe^Ln,CF=oe^mr,rE=oe^oi,kF=oe^ai,iE=oe^Zo,Tn=In|xt,nE=oe^Tn,sc=Qe|Ht,ht=vt|xn|Jf,qe=ht|ct,sE=ht|sc,MF=tE&xF,Qo=oi|Wt,qF=Qo&nE,oE=qe|qF,FF=qe|zt|Qe,VS=qe|Qe|Gt,jF=qe|zt|Gt,BF=qe|tc|Gt|rc,UF=qe|In|zt|Qe|Ko|yr,WF=ht|zt|Qe,GF=si|qe|Wt|li,zF=Wt|ct,$F=qe|$t|Ht,HF=mr|Ln,aE=mr|xt,VF=mr|Ln|qe|xt,YS=qe|xt|mr|Zo,YF=Pn|xt,KF=xt|nc,ZF=qe|$t|aE|Ht,QF=Ln|ht|$t|Ht,XF=ai|qe|oi|Pn,JF=$t|Ht|ht,Go=Symbol.asyncIterator||Symbol("asyncIterator"),zo=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new ZS,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||hE,this.map=n||i,this.afterWrite=rj.bind(this),this.afterUpdateNextTick=sj.bind(this)}get ending(){return(this.stream._duplexState&$t)!==0}get ended(){return(this.stream._duplexState&Ht)!==0}push(e){return(this.stream._duplexState&JF)!==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|=mr,!0):(this.stream._duplexState|=HF,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=CF),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|$t)&tE}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&YS)===aE;)i.push(n._writableState.shift());if((n._duplexState&qe)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=ai;do{for(;(e._duplexState&YS)===mr;){let r=this.shift();e._duplexState|=KF,e._write(r,this.afterWrite)}(e._duplexState&YF)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=kF}updateNonPrimary(){let e=this.stream;if((e._duplexState&ZF)===$t){e._duplexState=e._duplexState|xt,e._final(tj.bind(this));return}if((e._duplexState&ht)===vt){(e._duplexState&Qo)===0&&(e._duplexState|=Tn,e._destroy(lE.bind(this)));return}(e._duplexState&oE)===ct&&(e._duplexState=(e._duplexState|Tn)&QS,e._open(uE.bind(this)))}continueUpdate(){return(this.stream._duplexState&oi)===0?!1:(this.stream._duplexState&=rE,!0)}updateCallback(){(this.stream._duplexState&XF)===Pn?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&oi)===0&&(this.stream._duplexState|=oi,(this.stream._duplexState&ai)===0&&Hf(this.afterUpdateNextTick))}},Kf=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new ZS,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||hE,this.map=n||i,this.pipeTo=null,this.afterRead=ij.bind(this),this.afterUpdateNextTick=nj.bind(this)}get ending(){return(this.stream._duplexState&zt)!==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|=ec,this.pipeTo=e,this.pipeline=new Qf(this.stream,e,r),r&&this.stream.on("error",KS),On(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",KS),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",ej.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|zt)&TF,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=$S,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|Gt)&$S,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=AF),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&VS)===Gt){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=HS),(e._duplexState&Vf)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=yr,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&VS)===Gt&&(e._duplexState&XS)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=HS),(e._duplexState&Vf)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=si;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&UF)===yr;)e._duplexState|=wF,e._read(this.afterRead),this.drain();(e._duplexState&BF)===EF&&(e._duplexState|=rc,e.emit("readable")),(e._duplexState&SF)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=IF}updateNonPrimary(){let e=this.stream;if((e._duplexState&jF)===zt&&(e._duplexState=(e._duplexState|Qe)&OF,e.emit("end"),(e._duplexState&sE)===sc&&(e._duplexState|=vt),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&ht)===vt){(e._duplexState&Qo)===0&&(e._duplexState|=Tn,e._destroy(lE.bind(this)));return}(e._duplexState&oE)===ct&&(e._duplexState=(e._duplexState|Tn)&QS,e._open(uE.bind(this)))}continueUpdate(){return(this.stream._duplexState&Wt)===0?!1:(this.stream._duplexState&=JS,!0)}updateCallback(){(this.stream._duplexState&GF)===li?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&zF)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&si)===0&&Hf(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&Wt)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&si)===0&&Hf(this.afterUpdateNextTick))}},Zf=class{constructor(e){this.data=null,this.afterTransform=aj.bind(e),this.afterFinal=null}},Qf=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 ej(){this.stream._duplexState|=ec,this.updateCallback()}function tj(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ht)===0&&(e._duplexState|=Ht,e.emit("finish")),(e._duplexState&sE)===sc&&(e._duplexState|=vt),e._duplexState&=LF,(e._duplexState&ai)===0?this.update():this.updateNextTick()}function lE(t){let e=this.stream;!t&&this.error!==Yo&&(t=this.error),t&&e.emit("error",t),e._duplexState|=xn,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 rj(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=PF,this.drains!==null&&oj(this.drains),(e._duplexState&VF)===Ln&&(e._duplexState&=NF,(e._duplexState&Yf)===Yf&&e.emit("drain")),this.updateCallback()}function ij(t){t&&this.stream.destroy(t),this.stream._duplexState&=vF,this.readAhead===!1&&(this.stream._duplexState&Dn)===0&&(this.stream._duplexState&=eE),this.updateCallback()}function nj(){(this.stream._duplexState&si)===0&&(this.stream._duplexState&=JS,this.update())}function sj(){(this.stream._duplexState&ai)===0&&(this.stream._duplexState&=rE,this.update())}function oj(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function uE(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&vt)===0&&((e._duplexState&FF)===0&&(e._duplexState|=li),(e._duplexState&$F)===0&&(e._duplexState|=Pn),e.emit("open")),e._duplexState&=nE,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function aj(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function lj(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=Vf|ic,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=tc,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=Yf,this._writableState.updateNextTick())}var Rn=class extends yF{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",wj.bind(this))),this.on("newListener",lj)}_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&xn)!==0}get destroying(){return(this._duplexState&ht)!==0}destroy(e){(this._duplexState&ht)===0&&(e||(e=Yo),this._duplexState=(this._duplexState|vt)&MF,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=Jf,this._predestroy(),this._duplexState&=bF,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},$o=class t extends Rn{constructor(e){super(e),this._duplexState|=ct|Ht|yr,this._readableState=new Kf(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=eE),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let r=new mF(e),i=this._readableState.map||cj;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|=ic,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?DF:RF,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(yj(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&WF)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&Dn)===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&xn)!==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(Yo):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,c)=>{if(e._duplexState&xn)return f({value:void 0,done:!0});e.once("close",function(){u?c(u):f({value:void 0,done:!0})})})}}},Ho=class extends Rn{constructor(e){super(e),this._duplexState|=ct|Qe,this._writableState=new zo(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|=Zo}uncork(){this._duplexState&=iE,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&QF)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(Sj(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&nc?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}},An=class extends $o{constructor(e){super(e),this._duplexState=ct|this._duplexState&yr,this._writableState=new zo(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=Zo}uncork(){this._duplexState&=iE,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}},Vo=class extends An{constructor(e){super(e),this._transformState=new Zf(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(uj.bind(this))}},Xf=class extends Vo{};function uj(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function fj(...t){return new Promise((e,r)=>fE(...t,i=>{if(i)return r(i);e()}))}function fE(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],On(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=On(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:$f)))}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($f)}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function cj(t){return t}function cE(t){return!!t._readableState||!!t._writableState}function On(t){return typeof t._duplexState=="number"&&cE(t)}function hj(t){return!!t._readableState&&t._readableState.ending}function dj(t){return!!t._readableState&&t._readableState.ended}function pj(t){return!!t._writableState&&t._writableState.ending}function gj(t){return!!t._writableState&&t._writableState.ended}function _j(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&r===Yo?null:r}function yj(t){return On(t)&&t.readable}function mj(t){return(t._duplexState&ct)!==ct||(t._duplexState&vt)===vt||(t._duplexState&Qo)!==0}function bj(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function hE(t){return bj(t)?t.byteLength:1024}function KS(){}function wj(){this.destroy(new Error("Stream aborted."))}function Sj(t){return t._writev!==Ho.prototype._writev&&t._writev!==An.prototype._writev}dE.exports={pipeline:fE,pipelinePromise:fj,isStream:cE,isStreamx:On,isEnding:hj,isEnded:dj,isFinishing:pj,isFinished:gj,isDisturbed:mj,getStreamError:_j,Stream:Rn,Writable:Ho,Readable:$o,Duplex:An,Transform:Vo,PassThrough:Xf}});var Xo=g((zU,pE)=>{"use strict";function Ej(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function vj(t){return Buffer.isEncoding(t)}function xj(t,e,r){return Buffer.alloc(t,e,r)}function Tj(t){return Buffer.allocUnsafe(t)}function Rj(t){return Buffer.allocUnsafeSlow(t)}function Aj(t,e){return Buffer.byteLength(t,e)}function Oj(t,e){return Buffer.compare(t,e)}function Ij(t,e){return Buffer.concat(t,e)}function Dj(t,e,r,i,n){return K(t).copy(e,r,i,n)}function Pj(t,e){return K(t).equals(e)}function Lj(t,e,r,i,n){return K(t).fill(e,r,i,n)}function Nj(t,e,r){return Buffer.from(t,e,r)}function Cj(t,e,r,i){return K(t).includes(e,r,i)}function kj(t,e,r,i){return K(t).indexOf(e,r,i)}function Mj(t,e,r,i){return K(t).lastIndexOf(e,r,i)}function qj(t){return K(t).swap16()}function Fj(t){return K(t).swap32()}function jj(t){return K(t).swap64()}function K(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Bj(t,e,r,i){return K(t).toString(e,r,i)}function Uj(t,e,r,i,n){return K(t).write(e,r,i,n)}function Wj(t,e){return K(t).readDoubleBE(e)}function Gj(t,e){return K(t).readDoubleLE(e)}function zj(t,e){return K(t).readFloatBE(e)}function $j(t,e){return K(t).readFloatLE(e)}function Hj(t,e){return K(t).readInt32BE(e)}function Vj(t,e){return K(t).readInt32LE(e)}function Yj(t,e){return K(t).readUInt32BE(e)}function Kj(t,e){return K(t).readUInt32LE(e)}function Zj(t,e,r){return K(t).writeDoubleBE(e,r)}function Qj(t,e,r){return K(t).writeDoubleLE(e,r)}function Xj(t,e,r){return K(t).writeFloatBE(e,r)}function Jj(t,e,r){return K(t).writeFloatLE(e,r)}function eB(t,e,r){return K(t).writeInt32BE(e,r)}function tB(t,e,r){return K(t).writeInt32LE(e,r)}function rB(t,e,r){return K(t).writeUInt32BE(e,r)}function iB(t,e,r){return K(t).writeUInt32LE(e,r)}pE.exports={isBuffer:Ej,isEncoding:vj,alloc:xj,allocUnsafe:Tj,allocUnsafeSlow:Rj,byteLength:Aj,compare:Oj,concat:Ij,copy:Dj,equals:Pj,fill:Lj,from:Nj,includes:Cj,indexOf:kj,lastIndexOf:Mj,swap16:qj,swap32:Fj,swap64:jj,toBuffer:K,toString:Bj,write:Uj,readDoubleBE:Wj,readDoubleLE:Gj,readFloatBE:zj,readFloatLE:$j,readInt32BE:Hj,readInt32LE:Vj,readUInt32BE:Yj,readUInt32LE:Kj,writeDoubleBE:Zj,writeDoubleLE:Qj,writeFloatBE:Xj,writeFloatLE:Jj,writeInt32BE:eB,writeInt32LE:tB,writeUInt32BE:rB,writeUInt32LE:iB}});var uc=g(fi=>{"use strict";var W=Xo(),nB="0000000000000000000",sB="7777777777777777777",Jo=48,gE=W.from([117,115,116,97,114,0]),oB=W.from([Jo,Jo]),aB=W.from([117,115,116,97,114,32]),lB=W.from([32,0]),uB=4095,Nn=257,lc=263;fi.decodeLongPath=function(e,r){return ui(e,0,e.length,r)};fi.encodePax=function(e){let r="";e.name&&(r+=ac(" path="+e.name+`
9
9
  `)),e.linkname&&(r+=ac(" linkpath="+e.linkname+`
10
10
  `));let i=e.pax;if(i)for(let n in i)r+=ac(" "+n+"="+i[n]+`
11
- `);return W.from(r)};fi.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};fi.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&sB,6),100),W.write(r,Yt(e.uid,6),108),W.write(r,Yt(e.gid,6),116),hB(e.size,r,124),W.write(r,Yt(e.mtime.getTime()/1e3|0,11),136),r[156]=Jo+fB(e.type),e.linkname&&W.write(r,e.linkname,157),W.copy(dv,r,Pn),W.copy(rB,r,lc),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(gv(r),6),148),r)};fi.decode=function(e,r,i){let n=e[156]===0?0:e[156]-Jo,s=ui(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=uB(n),h=e[157]===0?null:ui(e,157,100,r),d=ui(e,265,32),y=ui(e,297,32),p=Vt(e,329,8),S=Vt(e,337,8),m=gv(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(oB(e))e[345]&&(s=ui(e,345,155,r)+"/"+s);else if(!aB(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 oB(t){return W.equals(dv,t.subarray(Pn,Pn+6))}function aB(t){return W.equals(iB,t.subarray(Pn,Pn+6))&&W.equals(nB,t.subarray(lc,lc+2))}function lB(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function uB(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 fB(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 pv(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function gv(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?tB.slice(0,e)+" ":eB.slice(0,e-t.length)+t+" "}function cB(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function hB(t,e,r){t.toString(8).length>11?cB(t,e,r):W.write(e,Yt(t,11),r)}function dB(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 dB(t);{for(;e<t.length&&t[e]===32;)e++;let i=lB(pv(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 ui(t,e,r,i){return W.toString(t.subarray(e,pv(t,0,e,e+r)),i)}function ac(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 wv=g((WU,bv)=>{"use strict";var{Writable:pB,Readable:gB,getStreamError:_v}=oc(),_B=zf(),yv=Xo(),ci=uc(),yB=yv.alloc(0),cc=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new _B,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 yB;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 yv.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)}},hc=class extends gB{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(_v(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=mv(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},dc=class extends pB{constructor(e){super(e),e||(e={}),this._buffer=new cc,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=fc,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=ci.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=ci.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=ci.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=ci.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?ci.decodePax(e):Object.assign({},this._paxGlobal,ci.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=mv(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 hc(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=fc,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(_v(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",fc),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})})})}}};bv.exports=function(e){return new dc(e)};function fc(){}function mv(t){return t&=511,t&&512-t}});var vv=g((zU,pc)=>{"use strict";var Sv={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{pc.exports=D("fs").constants||Sv}catch{pc.exports=Sv}});var Rv=g((GU,Av)=>{"use strict";var{Readable:mB,Writable:bB,getStreamError:Ev}=oc(),br=Xo(),hi=vv(),ea=uc(),wB=493,SB=420,xv=br.alloc(1024),_c=class extends bB{constructor(e,r,i){super({mapWritable:EB,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?br.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?br.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),Tv(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 Ev(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()}},yc=class extends mB{constructor(e){super(e),this._drain=gc,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=gc),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=vB(e.mode)),e.mode||(e.mode=e.type==="directory"?wB:SB),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=br.from(r));let n=new _c(this,e,i);return br.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(xv),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=ea.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=ea.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(ea.encode(i)),this.push(r),Tv(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(ea.encode(i))}_doDrain(){let e=this._drain;this._drain=gc,e()}_predestroy(){let e=Ev(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()}};Av.exports=function(e){return new yc(e)};function vB(t){switch(t&hi.S_IFMT){case hi.S_IFBLK:return"block-device";case hi.S_IFCHR:return"character-device";case hi.S_IFDIR:return"directory";case hi.S_IFIFO:return"fifo";case hi.S_IFLNK:return"symlink"}return"file"}function gc(){}function Tv(t,e){e&=511,e&&t.push(xv.subarray(0,512-e))}function EB(t){return br.isBuffer(t)?t:br.from(t)}});var Ov=g(mc=>{"use strict";mc.extract=wv();mc.pack=Rv()});var Nv=g((HU,Dv)=>{"use strict";var xB=D("zlib"),TB=Ov(),Iv=ii(),Tt=function(t){if(!(this instanceof Tt))return new Tt(t);t=this.options=Iv.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=TB.pack(t),this.compressor=!1,t.gzip&&(this.compressor=xB.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"&&Iv.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)};Dv.exports=Tt});var kv=g((VU,Pv)=>{"use strict";function AB(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var RB=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 Lv(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 OB(t){let e=Lv(4);return e.writeInt32BE(t,0),e}function bc(t,e){t=Lv(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=RB[(r^t[i])&255]^r>>>8;return r^-1}function wc(){return OB(bc.apply(null,arguments))}wc.signed=function(){return bc.apply(null,arguments)};wc.unsigned=function(){return bc.apply(null,arguments)>>>0};var IB=wc,DB=AB(IB);Pv.exports=DB});var Fv=g((YU,qv)=>{"use strict";var NB=D("util").inherits,Cv=cr().Transform,LB=kv(),Mv=ii(),Kt=function(t){if(!(this instanceof Kt))return new Kt(t);t=this.options=Mv.defaults(t,{}),Cv.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};NB(Kt,Cv);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=LB.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&Mv.collectStream(t,n)};Kt.prototype.finalize=function(){this._writeStringified(),this.end()};qv.exports=Kt});var Bv=g((KU,jv)=>{"use strict";var PB=K0(),kn={},Zt=function(t,e){return Zt.create(t,e)};Zt.create=function(t,e){if(kn[t]){var r=new PB(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",RS());Zt.registerFormat("tar",Nv());Zt.registerFormat("json",Fv());jv.exports=Zt});import{readFileSync as BB,existsSync as Gv,readdirSync as UB,mkdirSync as WB,writeFileSync as zB}from"fs";import{unlink as GB}from"fs/promises";import{join as di}from"path";import{randomUUID as pi}from"crypto";function Cn(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 Zv={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"},Qv={literal:"SET_VARIABLE",visual:"VISION_QUERY",dom:"TEXTUAL_QUERY",url:"GET_URL",title:"GET_TITLE"},Xv=new Set(["CLICK","TYPE","FILL","HOVER","SCROLL_UNTIL_ELEMENT","UPLOAD","VISION_QUERY","DRAG_DROP","SELECT"]);function Rc(t,e){if(t==="analyze"){let r=e?.action_params?.analyzer_type??"";return Qv[r]??"VISION_QUERY"}return Zv[t]??t.toUpperCase()}function Oc(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 Jv(t,e,r){let i=t.action_params??{},n=Xv.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[h,d]of Object.entries(r)){let y=String(d);if(h.startsWith("secrets."))for(let[p,S]of c)S.includes(y)&&(a[p]=h);for(let[p,S]of c)S.includes(y)&&!(p in o)&&(o[p]=S)}return{operation:t.action_instruction??"",agent:n,operation_dict:s,variable:o,secrets:a,params:{}}}function eE(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 Ic(t){return t.map(e=>({description:e.description??"",store_key:e.store_key??"",expected_value:e.expected??"",stored_value:e.extracted_value??"",operator:e.operator??"equals",transforms:e.transforms??[]}))}function tE(t){let e=t.assertion_tree??{},r=e.sub_results??[],i=Ic(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 rE(t){let r=(t.action_params??{}).assertion_tree??{},i=r.sub_results??[],n=Ic(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 iE(t,e,r){let i=t.visual_data;if(!i||i.x==null||i.y==null)return null;let n=e?`${e}/test_screenshots`:"";return{x:i.x,y:i.y,confidence:0,bbox:i.bbox??null,bbox_source:i.bbox?"accessibility_tree":"fallback",viewport_width:i.viewport_width??1280,viewport_height:i.viewport_height??800,scale_factor:null,raw_image_url:n?`${n}/untagged_screenshot/${r}.webp`:"",raw_image_sas_url:"",annotated_image_url:"",annotated_image_sas_url:""}}function Tc(t,e={},r=""){let i=t.action_type,n=Rc(i,t),s=t.action_params??{},o=t.coordinates??null,a=t.selectors??null,l=t.timestamp??"",u=t.duration_ms??0,f=t.variables_used??{},c=t.action_id??pi(),h=pi(),d=Oc(l,u),y="",p="";i==="navigate"?(p=s.url??"",y=p):i==="type"||i==="fill"?y=s.text??"":i==="press_key"?y=s.key??"":i==="wait"?y=String(s.ms??s.timeout_ms??""):i==="evaluate_js"?y=s.script??"":i==="analyze"&&(s.analyzer_type??"")==="literal"&&(y=t.output_value??"");let S="";i==="go_back"?S="back":i==="go_forward"&&(S="forward");let m=Cn(y,e),b=Cn(p,e),v=Cn(t.action_instruction??"",e),E=Jv(t,n,f);return{operation_id:c,instruction_id:h,instruction:v,intent:v,operation_start:l,operation_end:d,status:t.status??"",command:n,name:"",target:"",value:m,message:"",operation_dict:"",frame:t.frame_info?JSON.stringify(t.frame_info):"",error_message:t.error??"",code_snippet:"",sub_instruction_obj:JSON.stringify(E),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/${c}.webp`:"",alternative_xpaths:[],attribute:"",value_description:"",url:b,navigation_direction:S,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:n==="ASSERTION"?eE(s):"",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(s.tab_index??""),tab_identifier:String(s.tab_identifier??""),scroll_value:s.amount??1,scroll_direction:s.direction??"",mi_scroll_payload:{},sleep_duration:0,app_id:"",manual_interaction_tag:"",string_to_float_list:[],js_snippet:i==="evaluate_js"?s.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:o!==null,element_coordinates_ratio:[],element_bounds_ratio:[],x_coord:o?.x??null,y_coord:o?.y??null,target_x_coord:s.target_x??null,target_y_coord:s.target_y??null,source_description:s.source_description??null,target_description:s.target_description??null,use_coordinates:o!==null,kaneaiMobileTaggingImageLimit:1,clicks_order_code:"se_js_ac",selector:a??"",selector_target:"",math_result_variable_name:"",math_result_variable_value:"",expression_tree:n==="ASSERTION"?tE(s):s.expression_tree??{},assertion_tree:s.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:n==="ASSERTION"?"Fail test immediately":"",screenshot_command:"",smartui_contents:{},smartui_results:{},result_type:"",result_hint:"",drag_offset:{},start_coordinates:s.source_coordinates?{x:s.source_coordinates[0],y:s.source_coordinates[1]}:{},end_coordinates:s.target_coordinates?{x:s.target_coordinates[0],y:s.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:iE(t,r,c)}}function Ac(t,e,r={}){let i=t.action_type,n=Rc(i,t),s=t.timestamp??"",o=t.duration_ms??0,a=Oc(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:Cn(t.action_instruction??"",r),command:n,error:null,parent_instruction_id:"",classification_layer_resp:n==="ASSERTION"?rE(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:"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:[]}}function nE(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_${pi().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 Dc(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 ta(t,e={},r=""){let i=[],n=0;for(;n<t.length;){let s=t[n],o=s.action_type;if(s.status==="error"&&o!=="assert"&&o!=="if_else"&&o!=="child_agent_start"&&o!=="child_agent_end"&&!s.until_condition){n+=1;continue}if(o==="child_agent_start"){let a=s.action_params?.child_id??"",l=s.action_params?.objective??"",u=[];n+=1;let f=1,c="error";for(;n<t.length&&f>0;){let d=t[n],y=d.action_type;if(y==="child_agent_start")f+=1;else if(y==="child_agent_end"&&(f-=1,f===0)){c=d.status??"success",n+=1;break}f>0&&u.push(d),n+=1}let h=ta(u,e,r);Dc(h,a,l),i.push({content_type:"generative_block",instruction_id:`generative_block_${a}`,generative_id:a,objective:l,status:c,children:h,error_message:null,error_code:null,bifurcation_context:[]});continue}else if(o==="child_agent_end"){n+=1;continue}else if(o==="if_else"){n+=1;let a=[];for(;n<t.length&&t[n].action_type==="child_agent_start";){let l=t[n],u=l.action_params?.child_id??"",f=l.action_params?.objective??"",c=[];n+=1;let h=1,d="error";for(;n<t.length&&h>0;){let p=t[n];if(p.action_type==="child_agent_start")h+=1;else if(p.action_type==="child_agent_end"&&(h-=1,h===0)){d=p.status??"success",n+=1;break}h>0&&c.push(p),n+=1}let y=ta(c,e,r);a.push(...y)}i.push(nE(s,a));continue}else if(o==="query_tool"){n+=1;continue}else if(s.until_condition){let a=Tc(s,e,r),l=Ac(s,a,e);i.push({content_type:"until_block",instruction_id:`until_${pi().slice(0,8)}`,condition:s.until_condition,max_retries:s.until_max_retries??10,settle_ms:s.until_settle_ms??500,current_count:0,condition_met:s.status==="success",children:[l],generative_id:"",generative_objective:"",variables_used:{},status:s.status??"success"})}else{let a=Tc(s,e,r),l=Ac(s,a,e);i.push(l)}n+=1}return i}function Nc(t,e={},r=""){let i=[];for(let n of t){let s=ta(n.records,e,r);if(s.length===0)continue;let o=pi().replace(/-/g,"");Dc(s,o,n.objective);let a=s.some(l=>"status"in l&&typeof l.status=="string"?l.status==="error"||l.status==="failed":!1);i.push({content_type:"generative_block",instruction_id:`generative_block_${o}`,generative_id:o,objective:n.objective,status:a?"error":"success",children:s,error_message:null,error_code:null,bifurcation_context:[]})}return{instructions:i}}var Uv=Yv(Bv(),1);import{createWriteStream as kB,readdirSync as CB,statSync as MB}from"fs";import{readFile as qB}from"fs/promises";import{join as Sc,basename as FB}from"path";import{tmpdir as jB}from"os";async function Wv(t){let e=Sc(t,"runs"),r=Sc(jB(),`${FB(t)}_artifacts.zip`);return new Promise((i,n)=>{let s=kB(r),o=(0,Uv.default)("zip",{zlib:{level:6}});s.on("close",()=>i(r)),o.on("error",n),o.pipe(s);try{let a=CB(e);for(let l of a){let u=Sc(e,l);MB(u).isDirectory()&&o.glob("**/*",{cwd:u,ignore:["**/screenshots/**","**/annotated/**"]},{prefix:l})}}catch{}o.finalize()})}async function zv(t){return qB(t)}async function vc(t,e,r){let i=await fetch(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 $v=class{config;controller;testId;constructor(e){this.config=e,this.controller=new Ec(e.controllerBaseUrl,e.auth),this.testId=e.testId}log(e){this.config.log?.(`PIPELINE ${e}`)}async execute(){let{onProgress:e}=this.config;try{if(!this.testId)return this.log("aborting: no test_id available"),{success:!1,testId:null,error:"No test_id available"};e("convert","running");let r=this.collectNdjsonPerRun(),i=r.reduce((m,b)=>m+b.records.length,0);this.log(`step=convert collected ${i} NDJSON records across ${r.length} run groups`);let n=this.config.variables??{};this.log(`step=convert variables for template resolution: ${JSON.stringify(Object.keys(n))}`);let{instructions:s}=r.length>0?Nc(r,n,this.config.screenshotBaseUrl??""):{instructions:[]};this.log(`step=convert produced ${s.length} auteur instructions (generative blocks)`);let o=this.buildExecutionEnvelope(s),a=Buffer.from(JSON.stringify(o));this.log(`step=convert blob size=${(a.length/1024).toFixed(1)}KB`),e("convert","done"),e("zip","running"),this.log(`step=zip zipping sessionDir=${this.config.sessionDir}`);let l=null,u;try{l=await Wv(this.config.sessionDir),u=await zv(l),this.log(`step=zip done size=${(u.length/1024/1024).toFixed(1)}MB path=${l}`),e("zip","done",`${(u.length/1024/1024).toFixed(1)}MB`)}finally{l&&await GB(l).catch(()=>{})}e("presign","running"),this.log(`step=presign POST ${this.config.controllerBaseUrl}/upload/presign testId=${this.testId} sessionId=${this.config.sessionId}`);let f=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(`step=presign success artifacts_url=${f.urls.artifacts?.blob_url} blob_url=${f.urls.blob?.blob_url}`),e("presign","done"),e("upload","running"),this.log(`step=upload PUT artifacts (${(u.length/1024/1024).toFixed(1)}MB) + blob (${(a.length/1024).toFixed(1)}KB) in parallel`),await Promise.all([vc(f.urls.artifacts.upload_url,u,"application/zip"),vc(f.urls.blob.upload_url,a,"application/json")]),this.log("step=upload success"),e("upload","done"),e("finalize","running"),this.log(`step=finalize DELETE /atm/v1/test/${this.testId} commit_id=${this.config.commitId}`);let c=new xc(this.config.tmsBaseUrl,this.config.tmsUsername,this.config.tmsAccessKey),h=this.config.runObjectives&&this.config.runObjectives.length>0?this.config.runObjectives:[this.config.firstObjective],y=(await c.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:h})).testcase_id||void 0;this.log(`step=finalize success testcase_id=${y??"none"}`);let p;if(y&&this.config.shareApiBaseUrl)try{p=await this.generateShareLink(y),this.log(`step=finalize shareId=${p}`)}catch(m){this.log(`step=finalize share link generation failed: ${m}`)}e("finalize","done");let S;if(this.config.codeExport&&y){try{await this.triggerCodeExport(y),this.log("step=finalize code export triggered")}catch(m){this.log(`step=finalize code export failed: ${m}`)}e("code_export","running","Waiting for code generation\u2026");try{S=await this.pollAndDownloadCode(y,e),this.log(`step=code_export done dir=${S}`),e("code_export","done",S)}catch(m){let b=m instanceof Error?m.message:String(m);this.log(`step=code_export failed: ${b}`),e("code_export","failed",b)}}else e("code_export","skipped");return this.log("pipeline complete"),{success:!0,testId:this.testId,testcaseId:y,shareId:p,codeExportDir:S}}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;try{await this.triggerCodeExport(e),this.log(`runCodeExport triggered for testcaseId=${e}`)}catch(n){this.log(`runCodeExport trigger failed: ${n}`)}i("code_export","running","Waiting for code generation\u2026");try{let n=await this.pollAndDownloadCode(e,i);return this.log(`runCodeExport done dir=${n}`),i("code_export","done",n),n}catch(n){let s=n instanceof Error?n.message:String(n);this.log(`runCodeExport failed: ${s}`),i("code_export","failed",s);return}}collectNdjsonPerRun(){let e=[],r=this.config.runObjectives??[];for(let i=0;i<this.config.runDirs.length;i++){let n=this.config.runDirs[i],s=r[i]||this.config.firstObjective,o=this.readNdjsonFromDir(n);o.length>0&&e.push({objective:s,records:o})}if(e.length===0){let i=di(this.config.sessionDir,"runs");if(Gv(i))try{let s=UB(i,{withFileTypes:!0}).filter(o=>o.isDirectory()).map(o=>o.name).sort();for(let o of s){let a=di(i,o),l=this.readNdjsonFromDir(a);l.length>0&&e.push({objective:this.config.firstObjective,records:l})}}catch{}}return e}readNdjsonFromDir(e){let r=[],i=[di(e,"run-test","actions.ndjson"),di(e,"actions.ndjson")];for(let n of i){if(!Gv(n))continue;this.log(`step=collect reading ${n}`);let s=BB(n,"utf-8");for(let o of s.split(`
12
- `)){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(`step=finalize POST ${r} entityIds=[${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(`step=finalize share link auth: 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 fetch(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){let r=`${this.config.tmsBaseUrl}/v2/test-case/${e}/code`;this.log(`step=finalize POST ${r} (code export)`);let i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({code_name:"kane-cli-trigger",language:"python",framework:"playwright",folder_name:"",accessibility:"false"})},n=this.config.authResolver?await this.config.authResolver.fetch(r,i):await fetch(r,{...i,headers:{...i.headers,Authorization:this.buildAuthHeader()}});if(!n.ok)throw new Error(`Code export failed: ${n.status} ${await n.text()}`)}async pollAndDownloadCode(e,r){let i=`${this.config.tmsBaseUrl}/v2/test-case/${e}/codes?page=1&per_page=10`,n=this.config.exitTimeoutMs??3e5,s=5e3,o=Date.now()+n;this.log(`step=code_export polling ${i} timeout=${n}ms`);let a=(l,u)=>this.config.authResolver?this.config.authResolver.fetch(l,u):fetch(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){this.log(`step=code_export poll failed: ${l.status}`),await this.sleep(s);continue}let f=(await l.json()).data?.find(d=>d.code_name==="kane-cli-trigger");if(!f){this.log("step=code_export 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(`step=code_export status=${f.status}, waiting\u2026`),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??di(this.config.sessionDir,"code-export");WB(h,{recursive:!0}),this.log(`step=code_export downloading ${f.url.length} files to ${h}`),r("code_export","running",`Downloading ${f.url.length} files\u2026`);for(let d of f.url){let y=di(h,d.file_name),p=await fetch(d.file_url);if(!p.ok){this.log(`step=code_export failed to download ${d.file_name}: ${p.status}`);continue}let S=await p.text();zB(y,S,"utf-8"),this.log(`step=code_export saved ${d.file_name} (${S.length} bytes)`)}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}`:`Basic ${Buffer.from(`${this.config.auth.username}:${this.config.auth.accessKey}`).toString("base64")}`}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{$v as a};
11
+ `);return W.from(r)};fi.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};fi.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&uB,6),100),W.write(r,Yt(e.uid,6),108),W.write(r,Yt(e.gid,6),116),_B(e.size,r,124),W.write(r,Yt(e.mtime.getTime()/1e3|0,11),136),r[156]=Jo+pB(e.type),e.linkname&&W.write(r,e.linkname,157),W.copy(gE,r,Nn),W.copy(oB,r,lc),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(yE(r),6),148),r)};fi.decode=function(e,r,i){let n=e[156]===0?0:e[156]-Jo,s=ui(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=dB(n),h=e[157]===0?null:ui(e,157,100,r),d=ui(e,265,32),y=ui(e,297,32),p=Vt(e,329,8),S=Vt(e,337,8),m=yE(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(fB(e))e[345]&&(s=ui(e,345,155,r)+"/"+s);else if(!cB(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 fB(t){return W.equals(gE,t.subarray(Nn,Nn+6))}function cB(t){return W.equals(aB,t.subarray(Nn,Nn+6))&&W.equals(lB,t.subarray(lc,lc+2))}function hB(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function dB(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 pB(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 _E(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function yE(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?sB.slice(0,e)+" ":nB.slice(0,e-t.length)+t+" "}function gB(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function _B(t,e,r){t.toString(8).length>11?gB(t,e,r):W.write(e,Yt(t,11),r)}function yB(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 yB(t);{for(;e<t.length&&t[e]===32;)e++;let i=hB(_E(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 ui(t,e,r,i){return W.toString(t.subarray(e,_E(t,0,e,e+r)),i)}function ac(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 EE=g((HU,SE)=>{"use strict";var{Writable:mB,Readable:bB,getStreamError:mE}=oc(),wB=Gf(),bE=Xo(),ci=uc(),SB=bE.alloc(0),cc=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new wB,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 SB;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 bE.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)}},hc=class extends bB{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(mE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=wE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},dc=class extends mB{constructor(e){super(e),e||(e={}),this._buffer=new cc,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=fc,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=ci.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=ci.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=ci.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=ci.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?ci.decodePax(e):Object.assign({},this._paxGlobal,ci.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=wE(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 hc(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=fc,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(mE(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",fc),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})})})}}};SE.exports=function(e){return new dc(e)};function fc(){}function wE(t){return t&=511,t&&512-t}});var xE=g((VU,pc)=>{"use strict";var vE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{pc.exports=D("fs").constants||vE}catch{pc.exports=vE}});var IE=g((YU,OE)=>{"use strict";var{Readable:EB,Writable:vB,getStreamError:TE}=oc(),br=Xo(),hi=xE(),ea=uc(),xB=493,TB=420,RE=br.alloc(1024),_c=class extends vB{constructor(e,r,i){super({mapWritable:AB,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?br.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?br.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),AE(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 TE(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()}},yc=class extends EB{constructor(e){super(e),this._drain=gc,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=gc),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=RB(e.mode)),e.mode||(e.mode=e.type==="directory"?xB:TB),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=br.from(r));let n=new _c(this,e,i);return br.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(RE),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=ea.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=ea.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(ea.encode(i)),this.push(r),AE(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(ea.encode(i))}_doDrain(){let e=this._drain;this._drain=gc,e()}_predestroy(){let e=TE(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()}};OE.exports=function(e){return new yc(e)};function RB(t){switch(t&hi.S_IFMT){case hi.S_IFBLK:return"block-device";case hi.S_IFCHR:return"character-device";case hi.S_IFDIR:return"directory";case hi.S_IFIFO:return"fifo";case hi.S_IFLNK:return"symlink"}return"file"}function gc(){}function AE(t,e){e&=511,e&&t.push(RE.subarray(0,512-e))}function AB(t){return br.isBuffer(t)?t:br.from(t)}});var DE=g(mc=>{"use strict";mc.extract=EE();mc.pack=IE()});var NE=g((ZU,LE)=>{"use strict";var OB=D("zlib"),IB=DE(),PE=ii(),Tt=function(t){if(!(this instanceof Tt))return new Tt(t);t=this.options=PE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=IB.pack(t),this.compressor=!1,t.gzip&&(this.compressor=OB.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"&&PE.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)};LE.exports=Tt});var ME=g((QU,kE)=>{"use strict";function DB(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 CE(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 LB(t){let e=CE(4);return e.writeInt32BE(t,0),e}function bc(t,e){t=CE(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 wc(){return LB(bc.apply(null,arguments))}wc.signed=function(){return bc.apply(null,arguments)};wc.unsigned=function(){return bc.apply(null,arguments)>>>0};var NB=wc,CB=DB(NB);kE.exports=CB});var BE=g((XU,jE)=>{"use strict";var kB=D("util").inherits,qE=cr().Transform,MB=ME(),FE=ii(),Kt=function(t){if(!(this instanceof Kt))return new Kt(t);t=this.options=FE.defaults(t,{}),qE.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};kB(Kt,qE);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=MB.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&FE.collectStream(t,n)};Kt.prototype.finalize=function(){this._writeStringified(),this.end()};jE.exports=Kt});var WE=g((JU,UE)=>{"use strict";var qB=Q0(),Cn={},Zt=function(t,e){return Zt.create(t,e)};Zt.create=function(t,e){if(Cn[t]){var r=new qB(t,e);return r.setFormat(t),r.setModule(new Cn[t](e)),r}else throw new Error("create("+t+"): format not registered")};Zt.registerFormat=function(t,e){if(Cn[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");Cn[t]=e};Zt.isRegisteredFormat=function(t){return!!Cn[t]};Zt.registerFormat("zip",IS());Zt.registerFormat("tar",NE());Zt.registerFormat("json",BE());UE.exports=Zt});import{readFileSync as zB,existsSync as YE,readdirSync as $B,mkdirSync as HB,writeFileSync as VB}from"fs";import{unlink as YB}from"fs/promises";import{join as di}from"path";import{randomUUID as pi}from"crypto";function Oc(t){return t?t.includes(`
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 kn(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 ev={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"},tv={literal:"SET_VARIABLE",visual:"VISION_QUERY",dom:"TEXTUAL_QUERY",url:"GET_URL",title:"GET_TITLE"},rv=new Set(["CLICK","TYPE","FILL","HOVER","SCROLL_UNTIL_ELEMENT","UPLOAD","VISION_QUERY","DRAG_DROP","SELECT"]);function Ic(t,e){if(t==="analyze"){let r=e?.action_params?.analyzer_type??"";return tv[r]??"VISION_QUERY"}return ev[t]??t.toUpperCase()}function Dc(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 iv(t,e,r){let i=t.action_params??{},n=rv.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[h,d]of Object.entries(r)){let y=String(d);if(h.startsWith("secrets."))for(let[p,S]of c)S.includes(y)&&(a[p]=h);for(let[p,S]of c)S.includes(y)&&!(p in o)&&(o[p]=S)}return{operation:t.action_instruction??"",agent:n,operation_dict:s,variable:o,secrets:a,params:{}}}function nv(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 Pc(t){return t.map(e=>({description:e.description??"",store_key:e.store_key??"",expected_value:e.expected??"",stored_value:e.extracted_value??"",operator:e.operator??"equals",transforms:e.transforms??[]}))}function sv(t){let e=t.assertion_tree??{},r=e.sub_results??[],i=Pc(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 ov(t){let r=(t.action_params??{}).assertion_tree??{},i=r.sub_results??[],n=Pc(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 av(t,e,r){let i=t.visual_data;if(!i||i.x==null||i.y==null)return null;let n=e?`${e}/test_screenshots`:"";return{x:i.x,y:i.y,confidence:0,bbox:i.bbox??null,bbox_source:i.bbox?"accessibility_tree":"fallback",viewport_width:i.viewport_width??1280,viewport_height:i.viewport_height??800,scale_factor:null,raw_image_url:n?`${n}/untagged_screenshot/${r}.webp`:"",raw_image_sas_url:"",annotated_image_url:"",annotated_image_sas_url:""}}function Rc(t,e={},r=""){let i=t.action_type,n=Ic(i,t),s=t.action_params??{},o=t.coordinates??null,a=t.selectors??null,l=t.timestamp??"",u=t.duration_ms??0,f=t.variables_used??{},c=t.action_id??pi(),h=pi(),d=Dc(l,u),y="",p="";i==="navigate"?(p=s.url??"",y=p):i==="type"||i==="fill"?y=s.text??"":i==="press_key"?y=s.key??"":i==="wait"?y=String(s.ms??s.timeout_ms??""):i==="evaluate_js"?y=s.script??"":i==="analyze"&&(s.analyzer_type??"")==="literal"&&(y=t.output_value??"");let S="";i==="go_back"?S="back":i==="go_forward"&&(S="forward");let m=kn(y,e),b=kn(p,e),v=kn(t.action_instruction??"",e),E=iv(t,n,f);return{operation_id:c,instruction_id:h,instruction:v,intent:v,operation_start:l,operation_end:d,status:t.status??"",command:n,name:"",target:"",value:m,message:"",operation_dict:"",frame:t.frame_info?JSON.stringify(t.frame_info):"",error_message:t.error??"",code_snippet:"",sub_instruction_obj:JSON.stringify(E),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/${c}.webp`:"",alternative_xpaths:[],attribute:"",value_description:"",url:b,navigation_direction:S,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:n==="ASSERTION"?nv(s):"",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(s.tab_index??""),tab_identifier:String(s.tab_identifier??""),scroll_value:s.amount??1,scroll_direction:s.direction??"",mi_scroll_payload:{},sleep_duration:0,app_id:"",manual_interaction_tag:"",string_to_float_list:[],js_snippet:i==="evaluate_js"?s.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:o!==null,element_coordinates_ratio:[],element_bounds_ratio:[],x_coord:o?.x??null,y_coord:o?.y??null,target_x_coord:s.target_x??null,target_y_coord:s.target_y??null,source_description:s.source_description??null,target_description:s.target_description??null,use_coordinates:o!==null,kaneaiMobileTaggingImageLimit:1,clicks_order_code:"se_js_ac",selector:a??"",selector_target:"",math_result_variable_name:"",math_result_variable_value:"",expression_tree:n==="ASSERTION"?sv(s):s.expression_tree??{},assertion_tree:s.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:n==="ASSERTION"?"Fail test immediately":"",screenshot_command:"",smartui_contents:{},smartui_results:{},result_type:"",result_hint:"",drag_offset:{},start_coordinates:s.source_coordinates?{x:s.source_coordinates[0],y:s.source_coordinates[1]}:{},end_coordinates:s.target_coordinates?{x:s.target_coordinates[0],y:s.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:av(t,r,c),reasoning:i==="analyze"?s.query??"":""}}function Ac(t,e,r={}){let i=t.action_type,n=Ic(i,t),s=t.timestamp??"",o=t.duration_ms??0,a=Dc(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:kn(t.action_instruction??"",r),command:n,error:null,parent_instruction_id:"",classification_layer_resp:n==="ASSERTION"?ov(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:"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:[]}}function lv(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_${pi().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 Lc(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 ta(t,e={},r=""){let i=[],n=0;for(;n<t.length;){let s=t[n],o=s.action_type;if(s.status==="error"&&o!=="assert"&&o!=="if_else"&&o!=="child_agent_start"&&o!=="child_agent_end"&&!(s.until_condition&&!s.error)){n+=1;continue}if(o==="child_agent_start"){let a=s.action_params?.child_id??"",l=s.action_params?.objective??"",u=[];n+=1;let f=1,c="error",h;for(;n<t.length&&f>0;){let E=t[n],T=E.action_type;if(T==="child_agent_start")f+=1;else if(T==="child_agent_end"&&(f-=1,f===0)){c=E.status??"success",h=E,n+=1;break}f>0&&u.push(E),n+=1}let d=ta(u,e,r);Lc(d,a,l);let y=h?.action_params?.result_code??null,p=h?.action_params?.reason_code??null,S=h?.action_params?.error_message??null,m=h?.action_params?.summary??null,b=h?.action_params?.one_liner??null,v=c==="error";i.push({content_type:"generative_block",instruction_id:`generative_block_${a}`,generative_id:a,objective:l,status:c,children:d,error_message:v?S??null:null,error_code:v?p??null:null,result_code:y??null,bifurcation_context:[],approach_reason:Oc(m),one_liner:b??null});continue}else if(o==="child_agent_end"){n+=1;continue}else if(o==="if_else"){n+=1;let a=[];for(;n<t.length&&t[n].action_type==="child_agent_start";){let l=t[n],u=l.action_params?.child_id??"",f=l.action_params?.objective??"",c=[];n+=1;let h=1,d="error";for(;n<t.length&&h>0;){let p=t[n];if(p.action_type==="child_agent_start")h+=1;else if(p.action_type==="child_agent_end"&&(h-=1,h===0)){d=p.status??"success",n+=1;break}h>0&&c.push(p),n+=1}let y=ta(c,e,r);a.push(...y)}i.push(lv(s,a));continue}else if(o==="query_tool"){n+=1;continue}else if(s.until_condition){let a=Rc(s,e,r),l=Ac(s,a,e);i.push({content_type:"until_block",instruction_id:`until_${pi().slice(0,8)}`,condition:s.until_condition,max_retries:s.until_max_retries??10,settle_ms:s.until_settle_ms??500,current_count:0,condition_met:s.status==="success",children:[l],generative_id:"",generative_objective:"",variables_used:{},status:s.status??"success"})}else{let a=Rc(s,e,r),l=Ac(s,a,e);i.push(l)}n+=1}return i}function Nc(t,e={},r=""){let i=[];for(let n of t){let s=ta(n.records,e,r);if(s.length===0)continue;let o=pi().replace(/-/g,"");Lc(s,o,n.objective);let a=s.some(c=>"status"in c&&typeof c.status=="string"?c.status==="error"||c.status==="failed":!1),l=n.resultCode?parseInt(n.resultCode,10):null,u=l!==null&&!isNaN(l)&&l>=200,f=a||u?"error":"success";i.push({content_type:"generative_block",instruction_id:`generative_block_${o}`,generative_id:o,objective:n.objective,status:f,children:s,error_message:f==="error"?n.errorMessage??null:null,error_code:f==="error"?n.reasonCode??null:null,result_code:n.resultCode??null,bifurcation_context:[],approach_reason:Oc(n.summary),one_liner:n.oneLiner??null})}return{instructions:i}}var GE=XE(WE(),1);import{createWriteStream as FB,readdirSync as jB,statSync as BB}from"fs";import{readFile as UB}from"fs/promises";import{join as Sc,basename as WB}from"path";import{tmpdir as GB}from"os";async function zE(t){let e=Sc(t,"runs"),r=Sc(GB(),`${WB(t)}_artifacts.zip`);return new Promise((i,n)=>{let s=FB(r),o=(0,GE.default)("zip",{zlib:{level:6}});s.on("close",()=>i(r)),o.on("error",n),o.pipe(s);try{let a=jB(e);for(let l of a){let u=Sc(e,l);BB(u).isDirectory()&&o.glob("**/*",{cwd:u,ignore:["**/screenshots/**","**/annotated/**"]},{prefix:l})}}catch{}o.finalize()})}async function $E(t){return UB(t)}async function Ec(t,e,r){let i=await fetch(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()}`)}function HE(t){return{url:`${t.tmsBaseUrl}/kane-cli/v1/test-case/${t.testcaseId}/code`,body:{code_name:"kane-cli-trigger",language:t.codeExport.language,framework:"playwright",folder_name:"",accessibility:"false",skipCodeValidation:t.codeExport.skipValidation}}}function VE(t){return`${t.tmsBaseUrl}/kane-cli/v1/test-case/${t.testcaseId}/codes?page=1&per_page=10`}var KE=class{config;controller;testId;constructor(e){this.config=e,this.controller=new Tc(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"};e("convert","running");let r=this.collectNdjsonPerRun(),i=r.reduce((m,b)=>m+b.records.length,0);this.log("info","PIPELINE_CONVERT","Collected NDJSON records",{total_records:i,run_groups:r.length});let n=this.config.variables??{};this.log("info","PIPELINE_CONVERT_VARS","Variables for template resolution",{keys:Object.keys(n)});let{instructions:s}=r.length>0?Nc(r,n,this.config.screenshotBaseUrl??""):{instructions:[]};this.log("info","PIPELINE_CONVERT_INSTRUCTIONS","Auteur instructions produced",{count:s.length});let o=this.buildExecutionEnvelope(s),a=Buffer.from(JSON.stringify(o));this.log("info","PIPELINE_CONVERT_BLOB","Blob created",{size_kb:+(a.length/1024).toFixed(1)}),e("convert","done"),e("zip","running"),this.log("info","PIPELINE_ZIP_START","Zipping session",{session_dir:this.config.sessionDir});let l=null,u;try{l=await zE(this.config.sessionDir),u=await $E(l),this.log("info","PIPELINE_ZIP_DONE","Zip complete",{size_mb:+(u.length/1024/1024).toFixed(1),path:l}),e("zip","done",`${(u.length/1024/1024).toFixed(1)}MB`)}finally{l&&await YB(l).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 f=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:f.urls.artifacts?.blob_url,blob_url:f.urls.blob?.blob_url}),e("presign","done"),e("upload","running"),this.log("info","PIPELINE_UPLOAD_START","Uploading artifacts and blob",{artifact_size_mb:+(u.length/1024/1024).toFixed(1),blob_size_kb:+(a.length/1024).toFixed(1)}),await Promise.all([Ec(f.urls.artifacts.upload_url,u,"application/zip"),Ec(f.urls.blob.upload_url,a,"application/json")]),this.log("info","PIPELINE_UPLOAD_OK","Upload complete"),e("upload","done"),e("finalize","running"),this.log("info","PIPELINE_FINALIZE_START","Finalizing test",{test_id:this.testId,commit_id:this.config.commitId});let c=new xc(this.config.tmsBaseUrl,this.config.tmsUsername,this.config.tmsAccessKey),h=this.config.runObjectives&&this.config.runObjectives.length>0?this.config.runObjectives:[this.config.firstObjective],y=(await c.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:h})).testcase_id||void 0;this.log("info","PIPELINE_FINALIZE_OK","Test finalized",{testcase_id:y??"none"});let p;if(y&&this.config.shareApiBaseUrl)try{p=await this.generateShareLink(y),this.log("info","PIPELINE_SHARE_OK","Share link generated",{share_id:p})}catch(m){this.log("warn","PIPELINE_SHARE_FAILED","Share link failed",{error:String(m)})}e("finalize","done");let S;if(this.config.codeExport?.enabled&&y){try{await this.triggerCodeExport(y),this.log("info","PIPELINE_CODE_EXPORT_START","Code export triggered")}catch(m){this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:String(m)})}e("code_export","running","Waiting for code generation\u2026");try{S=await this.pollAndDownloadCode(y,e),this.log("info","PIPELINE_CODE_EXPORT_OK","Code export complete",{dir:S}),e("code_export","done",S)}catch(m){let b=m instanceof Error?m.message:String(m);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:b}),e("code_export","failed",b)}}else e("code_export","skipped");return this.log("info","PIPELINE_COMPLETE","Pipeline complete"),{success:!0,testId:this.testId,testcaseId:y,shareId:p,codeExportDir:S}}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;try{await this.triggerCodeExport(e),this.log("info","PIPELINE_CODE_EXPORT_TRIGGER","Code export triggered",{testcase_id:e})}catch(n){this.log("error","PIPELINE_CODE_EXPORT_TRIGGER_FAILED","Code export trigger failed",{error:String(n)})}i("code_export","running","Waiting for code generation\u2026");try{let n=await this.pollAndDownloadCode(e,i);return this.log("info","PIPELINE_CODE_EXPORT_OK","Code export complete",{dir:n}),i("code_export","done",n),n}catch(n){let s=n instanceof Error?n.message:String(n);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:s}),i("code_export","failed",s);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=di(this.config.sessionDir,"runs");if(YE(n))try{let o=$B(n,{withFileTypes:!0}).filter(a=>a.isDirectory()).map(a=>a.name).sort();for(let a of o){let l=di(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=[di(e,"run-test","actions.ndjson"),di(e,"actions.ndjson")];for(let n of i){if(!YE(n))continue;this.log("debug","PIPELINE_COLLECT_READ","Reading NDJSON file",{path:n});let s=zB(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 fetch(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}=HE({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 fetch(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=VE({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):fetch(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){this.log("warn","PIPELINE_CODE_EXPORT_POLL_FAILED","Code export poll failed",{status:l.status}),await this.sleep(s);continue}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??di(this.config.sessionDir,"code-export");HB(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=di(h,d.file_name),p=await fetch(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();VB(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}`:vc(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{KE as a};
13
15
  /*! Bundled license information:
14
16
 
15
17
  normalize-path/index.js: