@microsoft/cmr-cli 0.32.3 → 0.34.0

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 (173) hide show
  1. package/README.md +37 -14
  2. package/THIRD-PARTY-NOTICES.txt +287 -30
  3. package/dist/Add-4RULNL6A.js +11 -0
  4. package/dist/AddConfig-D2DCR3JH.js +12 -0
  5. package/dist/AddConnector-5ZR5AF6H.js +19 -0
  6. package/dist/AddDeployment-7U4I5IC4.js +11 -0
  7. package/dist/AddDeploymentBinding-BZVRRZ7H.js +18 -0
  8. package/dist/AddRayfin-45ASHNIX.js +87 -0
  9. package/dist/Alter-36TSNZ4M.js +11 -0
  10. package/dist/{AuthStatus-WCZYGI5G.js → AuthStatus-W5ZHOAVD.js} +2 -2
  11. package/dist/AuthSwitch-7HRPTGEG.js +13 -0
  12. package/dist/Bin.js +1 -1
  13. package/dist/BuildMaafApp-TLQXOVQC.js +11 -0
  14. package/dist/Clear-X55BZKYF.js +11 -0
  15. package/dist/Cli-EEO7V3MZ.js +47 -0
  16. package/dist/CloneMaafApp-4EHW3HE2.js +12 -0
  17. package/dist/CreateMaafApp-VNXWCAP4.js +23 -0
  18. package/dist/CreateMaafProject-WVBNZPVL.js +11 -0
  19. package/dist/DeleteMaafApp-UGUKARMO.js +11 -0
  20. package/dist/DeployMaafApp-GJO567TK.js +8 -0
  21. package/dist/DeployMaafProject-4TSW2SFJ.js +11 -0
  22. package/dist/DeploymentApprovals-SZKNJT76.js +11 -0
  23. package/dist/Dev-ZD3L6WYY.js +15 -0
  24. package/dist/{EnvironmentVariableAuthenticationProvider-EBRBQ5I2.js → EnvironmentVariableAuthenticationProvider-EURTERVX.js} +2 -2
  25. package/dist/FeatureSettings-GG7JGFIY.js +11 -0
  26. package/dist/{GenerateCode-UQCHTRGP.js → GenerateCode-PNYC45SK.js} +2 -2
  27. package/dist/GetMaafBuildStatus-UTPVWF5L.js +11 -0
  28. package/dist/GetMaafProjectDeployStatus-PLK52YC4.js +12 -0
  29. package/dist/{GetSettings-MVVEXMJC.js → GetSettings-RLRDJEC7.js} +2 -2
  30. package/dist/InfoMaafApp-CTB6IPRU.js +13 -0
  31. package/dist/InfoMaafProject-TULH566X.js +11 -0
  32. package/dist/Init-TYWP2E6U.js +11 -0
  33. package/dist/ListConnectorActions-UQS6D4UN.js +11 -0
  34. package/dist/ListConnectors-OCDO64AT.js +11 -0
  35. package/dist/ListDeployments-PDLJ3IEI.js +11 -0
  36. package/dist/ListMaafApps-UAWTTCGB.js +11 -0
  37. package/dist/ListMaafProjects-T3Q2GEDX.js +11 -0
  38. package/dist/{ListSchema-QKVHVPHB.js → ListSchema-G673LK5Q.js} +2 -2
  39. package/dist/{ListSettings-IIA5OGMP.js → ListSettings-EXCK5ZS6.js} +2 -2
  40. package/dist/{Login-BT6UTPCZ.js → Login-XZATPT4L.js} +2 -2
  41. package/dist/{Logout-FBJE35Q5.js → Logout-2XM4IMZF.js} +2 -2
  42. package/dist/{MockFetch-LQLQGTNT.js → MockFetch-LW3KYEGC.js} +2 -2
  43. package/dist/NodeMsalAuthenticationProvider-ALMFNUEV.js +17 -0
  44. package/dist/Pack-RH4D4C7W.js +8 -0
  45. package/dist/PackProject-5DUWSBFA.js +14 -0
  46. package/dist/PlayMaafApp-5BXGXE6O.js +8 -0
  47. package/dist/ProjectApprovals-K3JF6D72.js +13 -0
  48. package/dist/ProjectRoleAssignments-7IUDEVBN.js +11 -0
  49. package/dist/RefreshDataSource-CMHDF2GP.js +11 -0
  50. package/dist/RefreshGitAuth-4TRO5IOQ.js +11 -0
  51. package/dist/Remove-KZD3SDDC.js +11 -0
  52. package/dist/{RemoveDataSource-RRND46QZ.js → RemoveDataSource-C7UXOUNH.js} +3 -3
  53. package/dist/RemoveDeployment-ZQJWQPD6.js +11 -0
  54. package/dist/ServicePrincipalAuthenticationProvider-3NPJTLF5.js +11 -0
  55. package/dist/SetSetting-3XO6HPG7.js +11 -0
  56. package/dist/{SetSetting-Q7EQNOTI.js → SetSetting-ZW7F43GC.js} +2 -2
  57. package/dist/ShareLinkCreate-JXPW5H7A.js +11 -0
  58. package/dist/ShareLinkList-ICYPRIQV.js +11 -0
  59. package/dist/ShareLinkRevoke-JVMQZF7K.js +11 -0
  60. package/dist/ShareList-YGSTFMVE.js +11 -0
  61. package/dist/ShareMaafApp-ZCY72WHK.js +11 -0
  62. package/dist/{TelemetrySettings-XCT73DEI.js → TelemetrySettings-P6WYWGW4.js} +2 -2
  63. package/dist/UnshareMaafApp-N4UR6Q4A.js +11 -0
  64. package/dist/{chunk-QLK3ZVWP.js → chunk-2SRFM7D6.js} +2 -2
  65. package/dist/chunk-3YCPXSCO.js +11 -0
  66. package/dist/chunk-45EZLDPE.js +147 -0
  67. package/dist/{chunk-2LKCCYRF.js → chunk-4PI5THLA.js} +2 -2
  68. package/dist/{chunk-TMYOZDLM.js → chunk-6KOL66SF.js} +2 -2
  69. package/dist/{chunk-2VJIWD7V.js → chunk-74RNALDY.js} +2 -2
  70. package/dist/{chunk-SIEI2EB5.js → chunk-7AEULMP2.js} +2 -2
  71. package/dist/chunk-7LAMG4KK.js +12 -0
  72. package/dist/chunk-A5INC5TY.js +11 -0
  73. package/dist/chunk-AICYZHWK.js +11 -0
  74. package/dist/chunk-B4NTYKGH.js +12 -0
  75. package/dist/chunk-BAQPANON.js +11 -0
  76. package/dist/{chunk-DKSLWH4O.js → chunk-BMOTNINY.js} +6 -6
  77. package/dist/{chunk-OUKOEUZA.js → chunk-C7UWPNC3.js} +1 -1
  78. package/dist/{chunk-Q3ONTUZ7.js → chunk-CLY3OASM.js} +2 -2
  79. package/dist/chunk-DLUQVMUE.js +11 -0
  80. package/dist/{chunk-KT2SUHGM.js → chunk-ENDUKF4E.js} +2 -2
  81. package/dist/{chunk-UEZV46GZ.js → chunk-FESGOCAP.js} +7 -7
  82. package/dist/{chunk-BRRT2E75.js → chunk-GO22IDEN.js} +6 -6
  83. package/dist/{chunk-WTTK2GTG.js → chunk-HHW4SKVU.js} +2 -2
  84. package/dist/{chunk-PEZMQ2A3.js → chunk-HZGDQAKA.js} +2 -2
  85. package/dist/{chunk-HSNRWBA6.js → chunk-IMVZRBSQ.js} +2 -2
  86. package/dist/chunk-K77VBHFP.js +12 -0
  87. package/dist/{chunk-DGUO74I3.js → chunk-KD4NQIYX.js} +3 -3
  88. package/dist/{chunk-3E7QQ2BR.js → chunk-KN66FSQK.js} +2 -2
  89. package/dist/{chunk-UXKJNXTZ.js → chunk-KPKJZKWW.js} +2 -2
  90. package/dist/chunk-NMZFJESU.js +12 -0
  91. package/dist/{chunk-PZIEJEF5.js → chunk-NNYOT7IR.js} +2 -2
  92. package/dist/{chunk-EFY2BSWB.js → chunk-OH3TCDCC.js} +2 -2
  93. package/dist/{chunk-XIX2O22O.js → chunk-OHQNTYJG.js} +2 -2
  94. package/dist/{chunk-KKC5ZK4D.js → chunk-PYPCPMCR.js} +21 -21
  95. package/dist/{chunk-ZB6MB7GZ.js → chunk-R2IECDVU.js} +3 -3
  96. package/dist/{chunk-ADRQC63G.js → chunk-RA74M3YD.js} +2 -2
  97. package/dist/{chunk-4XKA5APP.js → chunk-RSHOMYG6.js} +228 -227
  98. package/dist/chunk-UHNOINTO.js +11 -0
  99. package/dist/{chunk-4U53RYJJ.js → chunk-WS6TGUH7.js} +2 -2
  100. package/dist/{chunk-6EF722GY.js → chunk-XC7Y6E2C.js} +11 -11
  101. package/dist/chunk-XJXWNOJR.js +11 -0
  102. package/dist/chunk-Y2D37EFX.js +13 -0
  103. package/dist/{chunk-RFLXPXBN.js → chunk-YEWRCEPT.js} +2 -2
  104. package/dist/chunk-Z4UX3JOS.js +12 -0
  105. package/dist/chunk-ZBQT5XZJ.js +32 -0
  106. package/dist/chunk-ZGBTKTTU.js +11 -0
  107. package/dist/{chunk-GE3UFHZ5.js → chunk-ZLK2CMMJ.js} +23 -23
  108. package/dist/chunk-ZWJ5T5VI.js +11 -0
  109. package/dist/node-PLZPXPD7.js +29 -0
  110. package/dist/typescript-6OTSQQEW.js +458 -0
  111. package/package.json +5 -4
  112. package/dist/Add-FU57YE5G.js +0 -11
  113. package/dist/AddConfig-CI7KNLIG.js +0 -12
  114. package/dist/AddConnector-WH4IU3ND.js +0 -16
  115. package/dist/AddDeployment-GWFCPAL5.js +0 -11
  116. package/dist/AddDeploymentBinding-RFLI6DKH.js +0 -18
  117. package/dist/AddRayfin-VRCFEOIL.js +0 -38
  118. package/dist/Alter-JFFT5JOA.js +0 -11
  119. package/dist/AuthSwitch-XJMG7IUR.js +0 -13
  120. package/dist/BuildMaafApp-7AUZHYOQ.js +0 -11
  121. package/dist/Clear-7B7CDIPV.js +0 -11
  122. package/dist/Cli-XZ4SJKBZ.js +0 -47
  123. package/dist/CloneMaafApp-7W246RZA.js +0 -12
  124. package/dist/CreateMaafApp-6MSPHUU4.js +0 -22
  125. package/dist/CreateMaafProject-JKMF5TH3.js +0 -11
  126. package/dist/DeleteMaafApp-TFGWGJO3.js +0 -11
  127. package/dist/DeployMaafApp-K2APWFOD.js +0 -8
  128. package/dist/DeployMaafProject-6WRKGIIW.js +0 -11
  129. package/dist/DeploymentApprovals-WTXBXCKE.js +0 -11
  130. package/dist/Dev-CIEWFRXR.js +0 -15
  131. package/dist/FeatureSettings-77LZQSKD.js +0 -11
  132. package/dist/GetMaafBuildStatus-6ZSLIZCH.js +0 -11
  133. package/dist/GetMaafProjectDeployStatus-NZEMVQGJ.js +0 -12
  134. package/dist/InfoMaafApp-7Z6OJCHD.js +0 -13
  135. package/dist/InfoMaafProject-SQYB736C.js +0 -11
  136. package/dist/Init-PBH2IXVK.js +0 -11
  137. package/dist/ListConnectorActions-UERYZ2C7.js +0 -11
  138. package/dist/ListConnectors-2FUTJMHY.js +0 -11
  139. package/dist/ListDeployments-4YWCHVKF.js +0 -11
  140. package/dist/ListMaafApps-ZATO77G3.js +0 -11
  141. package/dist/ListMaafProjects-GNUXZSYL.js +0 -11
  142. package/dist/NodeMsalAuthenticationProvider-5TJFMHR4.js +0 -17
  143. package/dist/Pack-TSFHSTB5.js +0 -8
  144. package/dist/PackProject-T575KJQ4.js +0 -14
  145. package/dist/PlayMaafApp-74TQEAO5.js +0 -8
  146. package/dist/ProjectApprovals-5KLYEM7V.js +0 -13
  147. package/dist/ProjectRoleAssignments-AI2FQ2VX.js +0 -11
  148. package/dist/RefreshDataSource-VARFN3IV.js +0 -11
  149. package/dist/RefreshGitAuth-DC5NAZBJ.js +0 -11
  150. package/dist/Remove-MCQZVI3K.js +0 -11
  151. package/dist/RemoveDeployment-STNFNNZF.js +0 -11
  152. package/dist/ServicePrincipalAuthenticationProvider-7RBHTYYY.js +0 -11
  153. package/dist/SetSetting-CEH44OT3.js +0 -11
  154. package/dist/ShareLinkCreate-ZUVHUQLH.js +0 -11
  155. package/dist/ShareLinkList-IEYU6NZW.js +0 -11
  156. package/dist/ShareLinkRevoke-22RFGOFJ.js +0 -11
  157. package/dist/ShareList-6UWIHPBM.js +0 -11
  158. package/dist/ShareMaafApp-SFNOOMOD.js +0 -11
  159. package/dist/UnshareMaafApp-TU7U3LQ3.js +0 -11
  160. package/dist/chunk-2LDU3F6O.js +0 -11
  161. package/dist/chunk-5MHBEEMZ.js +0 -11
  162. package/dist/chunk-A4PVXTJS.js +0 -13
  163. package/dist/chunk-BA52TY55.js +0 -12
  164. package/dist/chunk-FHE3OXIP.js +0 -11
  165. package/dist/chunk-HOIFXUTG.js +0 -11
  166. package/dist/chunk-NYPHWF7Q.js +0 -32
  167. package/dist/chunk-PLFDUGBA.js +0 -12
  168. package/dist/chunk-RDXQ3ZPT.js +0 -11
  169. package/dist/chunk-TXMTKOEJ.js +0 -12
  170. package/dist/chunk-WV7D7PTW.js +0 -12
  171. package/dist/chunk-WWVAS3DS.js +0 -11
  172. package/dist/chunk-YRPTITKD.js +0 -12
  173. package/dist/rayfin-pack-HOUOLOHQ.js +0 -164
@@ -4,22 +4,22 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __pathDirname(__filename);
7
- import{a as l1}from"./chunk-HBLO3WDD.js";import{C as Ha,w as $i}from"./chunk-4XKA5APP.js";import{f as Fh,h as qh,i as Va}from"./chunk-OUKOEUZA.js";import{e as N,l as zi,n as kh}from"./chunk-KKC5ZK4D.js";import{a as W,b,d as a1}from"./chunk-UT667QSU.js";var td=b(($3,ed)=>{var $1=typeof process=="object"&&process&&process.platform==="win32";ed.exports=$1?{sep:"\\"}:{sep:"/"}});var od=b((H3,sd)=>{"use strict";sd.exports=id;function id(t,e,r){t instanceof RegExp&&(t=rd(t,r)),e instanceof RegExp&&(e=rd(e,r));var i=nd(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 rd(t,e){var r=e.match(t);return r?r[0]:null}id.range=nd;function nd(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 al=b((V3,dd)=>{var ad=od();dd.exports=Z1;var ld="\0SLASH"+Math.random()+"\0",ud="\0OPEN"+Math.random()+"\0",ol="\0CLOSE"+Math.random()+"\0",fd="\0COMMA"+Math.random()+"\0",cd="\0PERIOD"+Math.random()+"\0",H1=1e5,V1=4e6;function nl(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function Y1(t){return t.split("\\\\").join(ld).split("\\{").join(ud).split("\\}").join(ol).split("\\,").join(fd).split("\\.").join(cd)}function K1(t){return t.split(ld).join("\\").split(ud).join("{").split(ol).join("}").split(fd).join(",").split(cd).join(".")}function hd(t){if(!t)return[""];var e=[],r=ad("{","}",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=hd(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Z1(t,e){if(!t)return[];e=e||{};var r=e.max==null?H1:e.max,i=e.maxLength==null?V1:e.maxLength;return t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),sl(Y1(t),r,i,!0).map(K1)}function Q1(t){return"{"+t+"}"}function X1(t){return/^-?0\d/.test(t)}function J1(t,e){return t<=e}function eT(t,e){return t>=e}function Vi(t,e,r,i,n,s){for(var o=[],a=0,l=0;l<t.length;l++)for(var u=0;u<r.length;u++){if(o.length>=i)return o;var f=t[l]+e+r[u];if(!(s&&!f)){if(a+f.length>n)return o;o.push(f),a+=f.length}}return o}function tT(t,e,r,i){var n=t.split(/\.\./),s=[];if(n[0]===void 0||n[1]===void 0)return s;var o=nl(n[0]),a=nl(n[1]),l=Math.max(n[0].length,n[1].length),u=n.length===3&&n[2]!==void 0?Math.max(Math.abs(nl(n[2])),1):1,f=J1,h=a<o;h&&(u*=-1,f=eT);for(var g=n.some(X1),y=0,E=o;f(E,a)&&s.length<r;E+=u){var m;if(e)m=String.fromCharCode(E),m==="\\"&&(m="");else if(m=String(E),g){var v=l-m.length;if(v>0){var S=new Array(v+1).join("0");E<0?m="-"+S+m.slice(1):m=S+m}}if(y+m.length>i)break;s.push(m),y+=m.length}return s}function sl(t,e,r,i){for(var n=[""],s=!1,o=!0;;){let D=ad("{","}",t);if(!D)return Vi(n,t,[""],e,r,s);let q=D.pre;if(/\$$/.test(q)){if(n=Vi(n,q+"{"+D.body+"}",[""],e,r,s&&!D.post.length),o=!1,!D.post.length)break;t=D.post;continue}var a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(D.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(D.body),u=a||l,f=D.body.indexOf(",")>=0;if(!u&&!f){if(D.post.match(/,(?!,).*\}/)){t=D.pre+"{"+D.body+ol+D.post,i=!0;continue}return Vi(n,q+"{"+D.body+"}"+D.post,[""],e,r,s)}o&&(s=i&&!u,o=!1);var h;if(u)h=tT(D.body,l,e,r);else{var g=hd(D.body);if(g.length===1&&g[0]!==void 0&&(g=sl(g[0],e,r,!1).map(Q1),g.length===1)){if(n=Vi(n,q+g[0],[""],e,r,s&&!D.post.length),!D.post.length)break;t=D.post;continue}for(var y=s&&!D.post.length&&!q,E=0;y&&E<n.length;E++)n[E]&&(y=!1);h=[];var m=0;e:for(var v=0;v<g.length;v++)for(var S=sl(g[v],e,r,!1),R=0;R<S.length;R++){var L=S[R];if(!(y&&!L)){if(h.length>=e||m+L.length>r)break e;h.push(L),m+=L.length}}}if(n=Vi(n,q,h,e,r,s&&!D.post.length),!D.post.length)break;t=D.post}return n}});var bd=b((K3,hl)=>{var Xe=hl.exports=(t,e,r={})=>(Cs(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Hr(e,r).match(t));hl.exports=Xe;var fl=td();Xe.sep=fl.sep;var $e=Symbol("globstar **");Xe.GLOBSTAR=$e;var rT=al(),pd={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},cl="[^/]",ll=cl+"*?",iT="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",nT="(?:(?!(?:\\/|^)\\.).)*?",md=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),gd=md("().*{}+?[]^$\\!"),sT=md("[.("),yd=/\/+/;Xe.filter=(t,e={})=>(r,i,n)=>Xe(r,t,e);var Yt=(t,e={})=>{let r={};return Object.keys(t).forEach(i=>r[i]=t[i]),Object.keys(e).forEach(i=>r[i]=e[i]),r};Xe.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Xe;let e=Xe,r=(i,n,s)=>e(i,n,Yt(t,s));return r.Minimatch=class extends e.Minimatch{constructor(n,s){super(n,Yt(t,s))}},r.Minimatch.defaults=i=>e.defaults(Yt(t,i)).Minimatch,r.filter=(i,n)=>e.filter(i,Yt(t,n)),r.defaults=i=>e.defaults(Yt(t,i)),r.makeRe=(i,n)=>e.makeRe(i,Yt(t,n)),r.braceExpand=(i,n)=>e.braceExpand(i,Yt(t,n)),r.match=(i,n,s)=>e.match(i,n,Yt(t,s)),r};Xe.braceExpand=(t,e)=>_d(t,e);var _d=(t,e={})=>(Cs(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:rT(t)),oT=1024*64,Cs=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>oT)throw new TypeError("pattern is too long")},ul=Symbol("subparse");Xe.makeRe=(t,e)=>new Hr(t,e||{}).makeRe();Xe.match=(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};var aT=t=>t.replace(/\\(.)/g,"$1"),lT=t=>t.replace(/\\([^-\]])/g,"$1"),uT=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),fT=t=>t.replace(/[[\]\\]/g,"\\$&"),Hr=class{constructor(e,r){Cs(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(yd)),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($e)!==-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 R=s;R<r.length;R++)if(r[R]===$e){o=R;break}let a=-1;for(let R=r.length-1;R>=0;R--)if(r[R]===$e){a=R;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 R=e.slice(n,n+l.length);if(!this._matchOne(R,l,i,0,0))return!1;n+=l.length}let h=0;if(f.length){if(f.length+n>e.length)return!1;let R=e.length-f.length;if(this._matchOne(e,f,i,R,0))h=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||!this._matchOne(e,f,i,R-1,0))return!1;h=f.length+1}}if(!u.length){let R=!!h;for(let L=n;L<e.length-h;L++){let D=String(e[L]);if(R=!0,D==="."||D===".."||!this.options.dot&&D.charAt(0)===".")return!1}return i||R}let g=[[[],0]],y=g[0],E=0,m=[0];for(let R of u)R===$e?(m.push(E),y=[[],0],g.push(y)):(y[0].push(R),E++);let v=g.length-1,S=e.length-h;for(let R of g)R[1]=S-(m[v--]+R[0].length);return!!this._matchGlobStarBodySections(e,g,n,0,i,0,!!h)}_matchGlobStarBodySections(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let h=i;h<e.length;h++){a=!0;let g=e[h];if(g==="."||g===".."||!this.options.dot&&g.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 y=this._matchGlobStarBodySections(e,r,i+u.length,n+1,s,o+1,a);if(y!==!1)return y}let g=e[i];if(g==="."||g===".."||!this.options.dot&&g.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],h=e[o];if(this.debug(r,f,h),f===!1||f===$e)return!1;let g;if(typeof f=="string"?(g=h===f,this.debug("string match",f,h,g)):(g=h.match(f),this.debug("pattern match",f,h,g)),!g)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 _d(this.pattern,this.options)}parse(e,r){Cs(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return $e;if(e==="")return"";let n="",s=!1,o=!1,a=[],l=[],u,f=!1,h=-1,g=-1,y,E,m,v=e.charAt(0)===".",S=i.dot||v,R=()=>v?"":S?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",L=P=>P.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",D=()=>{if(u){switch(u){case"*":n+=ll,s=!0;break;case"?":n+=cl,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let P=0,B;P<e.length&&(B=e.charAt(P));P++){if(this.debug("%s %s %s %j",e,P,n,B),o){if(B==="/")return!1;gd[B]&&(n+="\\"),n+=B,o=!1;continue}switch(B){case"/":return!1;case"\\":if(f&&e.charAt(P+1)==="-"){n+=B;continue}D(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,P,n,B),f){this.debug(" in class"),B==="!"&&P===g+1&&(B="^"),n+=B;continue}if(B==="*"&&u==="*")continue;this.debug("call clearStateChar %j",u),D(),u=B,i.noext&&D();continue;case"(":{if(f){n+="(";continue}if(!u){n+="\\(";continue}let x={type:u,start:P-1,reStart:n.length,open:pd[u].open,close:pd[u].close};this.debug(this.pattern," ",x),a.push(x),n+=x.open,x.start===0&&x.type!=="!"&&(v=!0,n+=L(e.slice(P+1))),this.debug("plType %j %j",u,n),u=!1;continue}case")":{let x=a[a.length-1];if(f||!x){n+="\\)";continue}a.pop(),D(),s=!0,E=x,n+=E.close,E.type==="!"&&l.push(Object.assign(E,{reEnd:n.length}));continue}case"|":{let x=a[a.length-1];if(f||!x){n+="\\|";continue}D(),n+="|",x.start===0&&x.type!=="!"&&(v=!0,n+=L(e.slice(P+1)));continue}case"[":if(D(),f){n+="\\"+B;continue}f=!0,g=P,h=n.length,n+=B;continue;case"]":if(P===g+1||!f){n+="\\"+B;continue}y=e.substring(g+1,P);try{RegExp("["+fT(lT(y))+"]"),n+=B}catch{n=n.substring(0,h)+"(?:$.)"}s=!0,f=!1;continue;default:D(),gd[B]&&!(B==="^"&&f)&&(n+="\\"),n+=B;break}}for(f&&(y=e.slice(g+1),m=this.parse(y,ul),n=n.substring(0,h)+"\\["+m[0],s=s||m[1]),E=a.pop();E;E=a.pop()){let P;P=n.slice(E.reStart+E.open.length),this.debug("setting tail",n,E),P=P.replace(/((?:\\{2}){0,64})(\\?)\|/g,(x,M,k)=>(k||(k="\\"),M+M+k+"|")),this.debug(`tail=%j
8
- %s`,P,P,E,n);let B=E.type==="*"?ll:E.type==="?"?cl:"\\"+E.type;s=!0,n=n.slice(0,E.reStart)+B+"\\("+P}D(),o&&(n+="\\\\");let q=sT[n.charAt(0)];for(let P=l.length-1;P>-1;P--){let B=l[P],x=n.slice(0,B.reStart),M=n.slice(B.reStart,B.reEnd-8),k=n.slice(B.reEnd),H=n.slice(B.reEnd-8,B.reEnd)+k,ee=x.split(")").length,se=x.split("(").length-ee,de=k;for(let fe=0;fe<se;fe++)de=de.replace(/\)[+*?]?/,"");k=de;let ue=k===""&&r!==ul?"(?:$|\\/)":"";n=x+M+k+ue+H}if(n!==""&&s&&(n="(?=.)"+n),q&&(n=R()+n),r===ul)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return aT(e);let Z=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",Z),{_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?ll:r.dot?iT:nT,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?uT(a):a===$e?$e:a._src).reduce((a,l)=>(a[a.length-1]===$e&&l===$e||a.push(l),a),[]),o.forEach((a,l)=>{a!==$e||o[l-1]===$e||(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]=$e))}),o.filter(a=>a!==$e).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;fl.sep!=="/"&&(e=e.split(fl.sep).join("/")),e=e.split(yd),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 Xe.defaults(e).Minimatch}};Xe.Minimatch=Hr});var Td=b((Z3,vd)=>{vd.exports=Ed;var pl=W("fs"),{EventEmitter:cT}=W("events"),{Minimatch:dl}=bd(),{resolve:hT}=W("path");function dT(t,e){return new Promise((r,i)=>{pl.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 wd(t,e){return new Promise((r,i)=>{(e?pl.stat:pl.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?wd(t,!1):null):r(null):r(o)})})}async function*Sd(t,e,r,i,n,s){let o=await dT(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),h=e+"/"+f,g=null;(i||r)&&(g=await wd(h,r)),!g&&a.name!==void 0&&(g=a),g===null&&(g={isDirectory:()=>!1}),g.isDirectory()?n(f)||(yield{relative:f,absolute:h,stats:g},yield*Sd(u,e,r,i,n,!1)):yield{relative:f,absolute:h,stats:g}}}async function*pT(t,e,r,i){yield*Sd("",t,e,r,i,!0)}function gT(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 Ns=class extends cT{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=gT(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 dl(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 dl(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 dl(s,{dot:!0}))}this.iterator=pT(hT(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 Ed(t,e,r){return new Ns(t,e,r)}Ed.ReaddirGlob=Ns});var xd=b((Ms,Ad)=>{(function(t,e){typeof Ms=="object"&&typeof Ad<"u"?e(Ms):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.async={}))})(Ms,(function(t){"use strict";function e(d,...c){return(...p)=>d(...c,...p)}function r(d){return function(...c){var p=c.pop();return d.call(this,c,p)}}var i=typeof queueMicrotask=="function"&&queueMicrotask,n=typeof setImmediate=="function"&&setImmediate,s=typeof process=="object"&&typeof process.nextTick=="function";function o(d){setTimeout(d,0)}function a(d){return(c,...p)=>d(()=>c(...p))}var l;i?l=queueMicrotask:n?l=setImmediate:s?l=process.nextTick:l=o;var u=a(l);function f(d){return y(d)?function(...c){let p=c.pop(),w=d.apply(this,c);return h(w,p)}:r(function(c,p){var w;try{w=d.apply(this,c)}catch(T){return p(T)}if(w&&typeof w.then=="function")return h(w,p);p(null,w)})}function h(d,c){return d.then(p=>{g(c,null,p)},p=>{g(c,p&&(p instanceof Error||p.message)?p:new Error(p))})}function g(d,c,p){try{d(c,p)}catch(w){u(T=>{throw T},w)}}function y(d){return d[Symbol.toStringTag]==="AsyncFunction"}function E(d){return d[Symbol.toStringTag]==="AsyncGenerator"}function m(d){return typeof d[Symbol.asyncIterator]=="function"}function v(d){if(typeof d!="function")throw new Error("expected a function");return y(d)?f(d):d}function S(d,c){if(c||(c=d.length),!c)throw new Error("arity is undefined");function p(...w){return typeof w[c-1]=="function"?d.apply(this,w):new Promise((T,A)=>{w[c-1]=(O,...I)=>{if(O)return A(O);T(I.length>1?I:I[0])},d.apply(this,w)})}return p}function R(d){return function(p,...w){return S(function(A){var O=this;return d(p,(I,C)=>{v(I).apply(O,w.concat(C))},A)})}}function L(d,c,p,w){c=c||[];var T=[],A=0,O=v(p);return d(c,(I,C,U)=>{var te=A++;O(I,(oe,re)=>{T[te]=re,U(oe)})},I=>{w(I,T)})}function D(d){return d&&typeof d.length=="number"&&d.length>=0&&d.length%1===0}let q={};function Z(d){function c(...p){if(d!==null){var w=d;d=null,w.apply(this,p)}}return Object.assign(c,d),c}function P(d){return d[Symbol.iterator]&&d[Symbol.iterator]()}function B(d){var c=-1,p=d.length;return function(){return++c<p?{value:d[c],key:c}:null}}function x(d){var c=-1;return function(){var w=d.next();return w.done?null:(c++,{value:w.value,key:c})}}function M(d){var c=d?Object.keys(d):[],p=-1,w=c.length;return function T(){var A=c[++p];return A==="__proto__"?T():p<w?{value:d[A],key:A}:null}}function k(d){if(D(d))return B(d);var c=P(d);return c?x(c):M(d)}function H(d){return function(...c){if(d===null)throw new Error("Callback was already called.");var p=d;d=null,p.apply(this,c)}}function ee(d,c,p,w){let T=!1,A=!1,O=!1,I=0,C=0;function U(){I>=c||O||T||(O=!0,d.next().then(({value:re,done:it})=>{if(!(A||T)){if(O=!1,it){T=!0,I<=0&&w(null);return}I++,p(re,C,te),C++,U()}}).catch(oe))}function te(re,it){if(I-=1,!A){if(re)return oe(re);if(re===!1){T=!0,A=!0;return}if(it===q||T&&I<=0)return T=!0,w(null);U()}}function oe(re){A||(O=!1,T=!0,w(re))}U()}var se=d=>(c,p,w)=>{if(w=Z(w),d<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!c)return w(null);if(E(c))return ee(c,d,p,w);if(m(c))return ee(c[Symbol.asyncIterator](),d,p,w);var T=k(c),A=!1,O=!1,I=0,C=!1;function U(oe,re){if(!O)if(I-=1,oe)A=!0,w(oe);else if(oe===!1)A=!0,O=!0;else{if(re===q||A&&I<=0)return A=!0,w(null);C||te()}}function te(){for(C=!0;I<d&&!A;){var oe=T();if(oe===null){A=!0,I<=0&&w(null);return}I+=1,p(oe.value,oe.key,H(U))}C=!1}te()};function de(d,c,p,w){return se(c)(d,v(p),w)}var ue=S(de,4);function fe(d,c,p){p=Z(p);var w=0,T=0,{length:A}=d,O=!1;A===0&&p(null);function I(C,U){C===!1&&(O=!0),O!==!0&&(C?p(C):(++T===A||U===q)&&p(null))}for(;w<A;w++)c(d[w],w,H(I))}function Oe(d,c,p){return ue(d,1/0,c,p)}function ge(d,c,p){var w=D(d)?fe:Oe;return w(d,v(c),p)}var Ze=S(ge,3);function hv(d,c,p){return L(Ze,d,c,p)}var as=S(hv,3),Yc=R(as);function dv(d,c,p){return ue(d,1,c,p)}var ht=S(dv,3);function pv(d,c,p){return L(ht,d,c,p)}var ka=S(pv,3),Kc=R(ka);let Ur=Symbol("promiseCallback");function Wr(){let d,c;function p(w,...T){if(w)return c(w);d(T.length>1?T:T[0])}return p[Ur]=new Promise((w,T)=>{d=w,c=T}),p}function Fa(d,c,p){typeof c!="number"&&(p=c,c=null),p=Z(p||Wr());var w=Object.keys(d).length;if(!w)return p(null);c||(c=w);var T={},A=0,O=!1,I=!1,C=Object.create(null),U=[],te=[],oe={};Object.keys(d).forEach(j=>{var z=d[j];if(!Array.isArray(z)){re(j,[z]),te.push(j);return}var ie=z.slice(0,z.length-1),we=ie.length;if(we===0){re(j,z),te.push(j);return}oe[j]=we,ie.forEach(Pe=>{if(!d[Pe])throw new Error("async.auto task `"+j+"` has a non-existent dependency `"+Pe+"` in "+ie.join(", "));zr(Pe,()=>{we--,we===0&&re(j,z)})})}),ae(),it();function re(j,z){U.push(()=>Wi(j,z))}function it(){if(!O){if(U.length===0&&A===0)return p(null,T);for(;U.length&&A<c;){var j=U.shift();j()}}}function zr(j,z){var ie=C[j];ie||(ie=C[j]=[]),ie.push(z)}function yr(j){var z=C[j]||[];z.forEach(ie=>ie()),it()}function Wi(j,z){if(!I){var ie=H((Pe,...nt)=>{if(A--,Pe===!1){O=!0;return}if(nt.length<2&&([nt]=nt),Pe){var $r={};if(Object.keys(T).forEach(mr=>{$r[mr]=T[mr]}),$r[j]=nt,I=!0,C=Object.create(null),O)return;p(Pe,$r)}else T[j]=nt,yr(j)});A++;var we=v(z[z.length-1]);z.length>1?we(T,ie):we(ie)}}function ae(){for(var j,z=0;te.length;)j=te.pop(),z++,G(j).forEach(ie=>{--oe[ie]===0&&te.push(ie)});if(z!==w)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function G(j){var z=[];return Object.keys(d).forEach(ie=>{let we=d[ie];Array.isArray(we)&&we.indexOf(j)>=0&&z.push(ie)}),z}return p[Ur]}var gv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,yv=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,mv=/,/,_v=/(=.+)?(\s*)$/;function bv(d){let c="",p=0,w=d.indexOf("*/");for(;p<d.length;)if(d[p]==="/"&&d[p+1]==="/"){let T=d.indexOf(`
9
- `,p);p=T===-1?d.length:T}else if(w!==-1&&d[p]==="/"&&d[p+1]==="*"){let T=d.indexOf("*/",p);T!==-1?(p=T+2,w=d.indexOf("*/",p)):(c+=d[p],p++)}else c+=d[p],p++;return c}function wv(d){let c=bv(d.toString()),p=c.match(gv);if(p||(p=c.match(yv)),!p)throw new Error(`could not parse args in autoInject
7
+ import{a as n1}from"./chunk-HBLO3WDD.js";import{a as Va}from"./chunk-ZWJ5T5VI.js";import{D as Ha,x as Hi}from"./chunk-RSHOMYG6.js";import{d as N,i as kh,l as $i,n as Fh}from"./chunk-PYPCPMCR.js";import{a as W,b,d as i1}from"./chunk-UT667QSU.js";var ed=b((G3,Jh)=>{var j1=typeof process=="object"&&process&&process.platform==="win32";Jh.exports=j1?{sep:"\\"}:{sep:"/"}});var sd=b((z3,nd)=>{"use strict";nd.exports=rd;function rd(t,e,r){t instanceof RegExp&&(t=td(t,r)),e instanceof RegExp&&(e=td(e,r));var i=id(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 td(t,e){var r=e.match(t);return r?r[0]:null}rd.range=id;function id(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 al=b(($3,hd)=>{var od=sd();hd.exports=$1;var ad="\0SLASH"+Math.random()+"\0",ld="\0OPEN"+Math.random()+"\0",ol="\0CLOSE"+Math.random()+"\0",ud="\0COMMA"+Math.random()+"\0",fd="\0PERIOD"+Math.random()+"\0",U1=1e5,W1=4e6;function nl(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function G1(t){return t.split("\\\\").join(ad).split("\\{").join(ld).split("\\}").join(ol).split("\\,").join(ud).split("\\.").join(fd)}function z1(t){return t.split(ad).join("\\").split(ld).join("{").split(ol).join("}").split(ud).join(",").split(fd).join(".")}function cd(t){if(!t)return[""];var e=[],r=od("{","}",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=cd(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function $1(t,e){if(!t)return[];e=e||{};var r=e.max==null?U1:e.max,i=e.maxLength==null?W1:e.maxLength;return t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),sl(G1(t),r,i,!0).map(z1)}function H1(t){return"{"+t+"}"}function V1(t){return/^-?0\d/.test(t)}function Y1(t,e){return t<=e}function K1(t,e){return t>=e}function Vi(t,e,r,i,n,s){for(var o=[],a=0,l=0;l<t.length;l++)for(var u=0;u<r.length;u++){if(o.length>=i)return o;var f=t[l]+e+r[u];if(!(s&&!f)){if(a+f.length>n)return o;o.push(f),a+=f.length}}return o}function Z1(t,e,r,i){var n=t.split(/\.\./),s=[];if(n[0]===void 0||n[1]===void 0)return s;var o=nl(n[0]),a=nl(n[1]),l=Math.max(n[0].length,n[1].length),u=n.length===3&&n[2]!==void 0?Math.max(Math.abs(nl(n[2])),1):1,f=Y1,h=a<o;h&&(u*=-1,f=K1);for(var g=n.some(V1),y=0,E=o;f(E,a)&&s.length<r;E+=u){var m;if(e)m=String.fromCharCode(E),m==="\\"&&(m="");else if(m=String(E),g){var v=l-m.length;if(v>0){var S=new Array(v+1).join("0");E<0?m="-"+S+m.slice(1):m=S+m}}if(y+m.length>i)break;s.push(m),y+=m.length}return s}function sl(t,e,r,i){for(var n=[""],s=!1,o=!0;;){let D=od("{","}",t);if(!D)return Vi(n,t,[""],e,r,s);let q=D.pre;if(/\$$/.test(q)){if(n=Vi(n,q+"{"+D.body+"}",[""],e,r,s&&!D.post.length),o=!1,!D.post.length)break;t=D.post;continue}var a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(D.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(D.body),u=a||l,f=D.body.indexOf(",")>=0;if(!u&&!f){if(D.post.match(/,(?!,).*\}/)){t=D.pre+"{"+D.body+ol+D.post,i=!0;continue}return Vi(n,q+"{"+D.body+"}"+D.post,[""],e,r,s)}o&&(s=i&&!u,o=!1);var h;if(u)h=Z1(D.body,l,e,r);else{var g=cd(D.body);if(g.length===1&&g[0]!==void 0&&(g=sl(g[0],e,r,!1).map(H1),g.length===1)){if(n=Vi(n,q+g[0],[""],e,r,s&&!D.post.length),!D.post.length)break;t=D.post;continue}for(var y=s&&!D.post.length&&!q,E=0;y&&E<n.length;E++)n[E]&&(y=!1);h=[];var m=0;e:for(var v=0;v<g.length;v++)for(var S=sl(g[v],e,r,!1),R=0;R<S.length;R++){var L=S[R];if(!(y&&!L)){if(h.length>=e||m+L.length>r)break e;h.push(L),m+=L.length}}}if(n=Vi(n,q,h,e,r,s&&!D.post.length),!D.post.length)break;t=D.post}return n}});var _d=b((V3,hl)=>{var Xe=hl.exports=(t,e,r={})=>(Cs(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Vr(e,r).match(t));hl.exports=Xe;var fl=ed();Xe.sep=fl.sep;var $e=Symbol("globstar **");Xe.GLOBSTAR=$e;var Q1=al(),dd={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},cl="[^/]",ll=cl+"*?",X1="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",J1="(?:(?!(?:\\/|^)\\.).)*?",yd=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),pd=yd("().*{}+?[]^$\\!"),eT=yd("[.("),gd=/\/+/;Xe.filter=(t,e={})=>(r,i,n)=>Xe(r,t,e);var Zt=(t,e={})=>{let r={};return Object.keys(t).forEach(i=>r[i]=t[i]),Object.keys(e).forEach(i=>r[i]=e[i]),r};Xe.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Xe;let e=Xe,r=(i,n,s)=>e(i,n,Zt(t,s));return r.Minimatch=class extends e.Minimatch{constructor(n,s){super(n,Zt(t,s))}},r.Minimatch.defaults=i=>e.defaults(Zt(t,i)).Minimatch,r.filter=(i,n)=>e.filter(i,Zt(t,n)),r.defaults=i=>e.defaults(Zt(t,i)),r.makeRe=(i,n)=>e.makeRe(i,Zt(t,n)),r.braceExpand=(i,n)=>e.braceExpand(i,Zt(t,n)),r.match=(i,n,s)=>e.match(i,n,Zt(t,s)),r};Xe.braceExpand=(t,e)=>md(t,e);var md=(t,e={})=>(Cs(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:Q1(t)),tT=1024*64,Cs=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>tT)throw new TypeError("pattern is too long")},ul=Symbol("subparse");Xe.makeRe=(t,e)=>new Vr(t,e||{}).makeRe();Xe.match=(t,e,r={})=>{let i=new Vr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};var rT=t=>t.replace(/\\(.)/g,"$1"),iT=t=>t.replace(/\\([^-\]])/g,"$1"),nT=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),sT=t=>t.replace(/[[\]\\]/g,"\\$&"),Vr=class{constructor(e,r){Cs(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(gd)),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($e)!==-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 R=s;R<r.length;R++)if(r[R]===$e){o=R;break}let a=-1;for(let R=r.length-1;R>=0;R--)if(r[R]===$e){a=R;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 R=e.slice(n,n+l.length);if(!this._matchOne(R,l,i,0,0))return!1;n+=l.length}let h=0;if(f.length){if(f.length+n>e.length)return!1;let R=e.length-f.length;if(this._matchOne(e,f,i,R,0))h=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||!this._matchOne(e,f,i,R-1,0))return!1;h=f.length+1}}if(!u.length){let R=!!h;for(let L=n;L<e.length-h;L++){let D=String(e[L]);if(R=!0,D==="."||D===".."||!this.options.dot&&D.charAt(0)===".")return!1}return i||R}let g=[[[],0]],y=g[0],E=0,m=[0];for(let R of u)R===$e?(m.push(E),y=[[],0],g.push(y)):(y[0].push(R),E++);let v=g.length-1,S=e.length-h;for(let R of g)R[1]=S-(m[v--]+R[0].length);return!!this._matchGlobStarBodySections(e,g,n,0,i,0,!!h)}_matchGlobStarBodySections(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let h=i;h<e.length;h++){a=!0;let g=e[h];if(g==="."||g===".."||!this.options.dot&&g.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 y=this._matchGlobStarBodySections(e,r,i+u.length,n+1,s,o+1,a);if(y!==!1)return y}let g=e[i];if(g==="."||g===".."||!this.options.dot&&g.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],h=e[o];if(this.debug(r,f,h),f===!1||f===$e)return!1;let g;if(typeof f=="string"?(g=h===f,this.debug("string match",f,h,g)):(g=h.match(f),this.debug("pattern match",f,h,g)),!g)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 md(this.pattern,this.options)}parse(e,r){Cs(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return $e;if(e==="")return"";let n="",s=!1,o=!1,a=[],l=[],u,f=!1,h=-1,g=-1,y,E,m,v=e.charAt(0)===".",S=i.dot||v,R=()=>v?"":S?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",L=P=>P.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",D=()=>{if(u){switch(u){case"*":n+=ll,s=!0;break;case"?":n+=cl,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let P=0,B;P<e.length&&(B=e.charAt(P));P++){if(this.debug("%s %s %s %j",e,P,n,B),o){if(B==="/")return!1;pd[B]&&(n+="\\"),n+=B,o=!1;continue}switch(B){case"/":return!1;case"\\":if(f&&e.charAt(P+1)==="-"){n+=B;continue}D(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,P,n,B),f){this.debug(" in class"),B==="!"&&P===g+1&&(B="^"),n+=B;continue}if(B==="*"&&u==="*")continue;this.debug("call clearStateChar %j",u),D(),u=B,i.noext&&D();continue;case"(":{if(f){n+="(";continue}if(!u){n+="\\(";continue}let A={type:u,start:P-1,reStart:n.length,open:dd[u].open,close:dd[u].close};this.debug(this.pattern," ",A),a.push(A),n+=A.open,A.start===0&&A.type!=="!"&&(v=!0,n+=L(e.slice(P+1))),this.debug("plType %j %j",u,n),u=!1;continue}case")":{let A=a[a.length-1];if(f||!A){n+="\\)";continue}a.pop(),D(),s=!0,E=A,n+=E.close,E.type==="!"&&l.push(Object.assign(E,{reEnd:n.length}));continue}case"|":{let A=a[a.length-1];if(f||!A){n+="\\|";continue}D(),n+="|",A.start===0&&A.type!=="!"&&(v=!0,n+=L(e.slice(P+1)));continue}case"[":if(D(),f){n+="\\"+B;continue}f=!0,g=P,h=n.length,n+=B;continue;case"]":if(P===g+1||!f){n+="\\"+B;continue}y=e.substring(g+1,P);try{RegExp("["+sT(iT(y))+"]"),n+=B}catch{n=n.substring(0,h)+"(?:$.)"}s=!0,f=!1;continue;default:D(),pd[B]&&!(B==="^"&&f)&&(n+="\\"),n+=B;break}}for(f&&(y=e.slice(g+1),m=this.parse(y,ul),n=n.substring(0,h)+"\\["+m[0],s=s||m[1]),E=a.pop();E;E=a.pop()){let P;P=n.slice(E.reStart+E.open.length),this.debug("setting tail",n,E),P=P.replace(/((?:\\{2}){0,64})(\\?)\|/g,(A,M,k)=>(k||(k="\\"),M+M+k+"|")),this.debug(`tail=%j
8
+ %s`,P,P,E,n);let B=E.type==="*"?ll:E.type==="?"?cl:"\\"+E.type;s=!0,n=n.slice(0,E.reStart)+B+"\\("+P}D(),o&&(n+="\\\\");let q=eT[n.charAt(0)];for(let P=l.length-1;P>-1;P--){let B=l[P],A=n.slice(0,B.reStart),M=n.slice(B.reStart,B.reEnd-8),k=n.slice(B.reEnd),H=n.slice(B.reEnd-8,B.reEnd)+k,ee=A.split(")").length,se=A.split("(").length-ee,de=k;for(let fe=0;fe<se;fe++)de=de.replace(/\)[+*?]?/,"");k=de;let ue=k===""&&r!==ul?"(?:$|\\/)":"";n=A+M+k+ue+H}if(n!==""&&s&&(n="(?=.)"+n),q&&(n=R()+n),r===ul)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return rT(e);let Z=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",Z),{_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?ll:r.dot?X1:J1,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?nT(a):a===$e?$e:a._src).reduce((a,l)=>(a[a.length-1]===$e&&l===$e||a.push(l),a),[]),o.forEach((a,l)=>{a!==$e||o[l-1]===$e||(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]=$e))}),o.filter(a=>a!==$e).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;fl.sep!=="/"&&(e=e.split(fl.sep).join("/")),e=e.split(gd),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 Xe.defaults(e).Minimatch}};Xe.Minimatch=Vr});var vd=b((Y3,Ed)=>{Ed.exports=Sd;var pl=W("fs"),{EventEmitter:oT}=W("events"),{Minimatch:dl}=_d(),{resolve:aT}=W("path");function lT(t,e){return new Promise((r,i)=>{pl.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 bd(t,e){return new Promise((r,i)=>{(e?pl.stat:pl.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?bd(t,!1):null):r(null):r(o)})})}async function*wd(t,e,r,i,n,s){let o=await lT(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),h=e+"/"+f,g=null;(i||r)&&(g=await bd(h,r)),!g&&a.name!==void 0&&(g=a),g===null&&(g={isDirectory:()=>!1}),g.isDirectory()?n(f)||(yield{relative:f,absolute:h,stats:g},yield*wd(u,e,r,i,n,!1)):yield{relative:f,absolute:h,stats:g}}}async function*uT(t,e,r,i){yield*wd("",t,e,r,i,!0)}function fT(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 Ns=class extends oT{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=fT(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 dl(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 dl(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 dl(s,{dot:!0}))}this.iterator=uT(aT(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 Sd(t,e,r){return new Ns(t,e,r)}Sd.ReaddirGlob=Ns});var xd=b((Ms,Td)=>{(function(t,e){typeof Ms=="object"&&typeof Td<"u"?e(Ms):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.async={}))})(Ms,(function(t){"use strict";function e(d,...c){return(...p)=>d(...c,...p)}function r(d){return function(...c){var p=c.pop();return d.call(this,c,p)}}var i=typeof queueMicrotask=="function"&&queueMicrotask,n=typeof setImmediate=="function"&&setImmediate,s=typeof process=="object"&&typeof process.nextTick=="function";function o(d){setTimeout(d,0)}function a(d){return(c,...p)=>d(()=>c(...p))}var l;i?l=queueMicrotask:n?l=setImmediate:s?l=process.nextTick:l=o;var u=a(l);function f(d){return y(d)?function(...c){let p=c.pop(),w=d.apply(this,c);return h(w,p)}:r(function(c,p){var w;try{w=d.apply(this,c)}catch(T){return p(T)}if(w&&typeof w.then=="function")return h(w,p);p(null,w)})}function h(d,c){return d.then(p=>{g(c,null,p)},p=>{g(c,p&&(p instanceof Error||p.message)?p:new Error(p))})}function g(d,c,p){try{d(c,p)}catch(w){u(T=>{throw T},w)}}function y(d){return d[Symbol.toStringTag]==="AsyncFunction"}function E(d){return d[Symbol.toStringTag]==="AsyncGenerator"}function m(d){return typeof d[Symbol.asyncIterator]=="function"}function v(d){if(typeof d!="function")throw new Error("expected a function");return y(d)?f(d):d}function S(d,c){if(c||(c=d.length),!c)throw new Error("arity is undefined");function p(...w){return typeof w[c-1]=="function"?d.apply(this,w):new Promise((T,x)=>{w[c-1]=(O,...I)=>{if(O)return x(O);T(I.length>1?I:I[0])},d.apply(this,w)})}return p}function R(d){return function(p,...w){return S(function(x){var O=this;return d(p,(I,C)=>{v(I).apply(O,w.concat(C))},x)})}}function L(d,c,p,w){c=c||[];var T=[],x=0,O=v(p);return d(c,(I,C,U)=>{var te=x++;O(I,(oe,re)=>{T[te]=re,U(oe)})},I=>{w(I,T)})}function D(d){return d&&typeof d.length=="number"&&d.length>=0&&d.length%1===0}let q={};function Z(d){function c(...p){if(d!==null){var w=d;d=null,w.apply(this,p)}}return Object.assign(c,d),c}function P(d){return d[Symbol.iterator]&&d[Symbol.iterator]()}function B(d){var c=-1,p=d.length;return function(){return++c<p?{value:d[c],key:c}:null}}function A(d){var c=-1;return function(){var w=d.next();return w.done?null:(c++,{value:w.value,key:c})}}function M(d){var c=d?Object.keys(d):[],p=-1,w=c.length;return function T(){var x=c[++p];return x==="__proto__"?T():p<w?{value:d[x],key:x}:null}}function k(d){if(D(d))return B(d);var c=P(d);return c?A(c):M(d)}function H(d){return function(...c){if(d===null)throw new Error("Callback was already called.");var p=d;d=null,p.apply(this,c)}}function ee(d,c,p,w){let T=!1,x=!1,O=!1,I=0,C=0;function U(){I>=c||O||T||(O=!0,d.next().then(({value:re,done:st})=>{if(!(x||T)){if(O=!1,st){T=!0,I<=0&&w(null);return}I++,p(re,C,te),C++,U()}}).catch(oe))}function te(re,st){if(I-=1,!x){if(re)return oe(re);if(re===!1){T=!0,x=!0;return}if(st===q||T&&I<=0)return T=!0,w(null);U()}}function oe(re){x||(O=!1,T=!0,w(re))}U()}var se=d=>(c,p,w)=>{if(w=Z(w),d<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!c)return w(null);if(E(c))return ee(c,d,p,w);if(m(c))return ee(c[Symbol.asyncIterator](),d,p,w);var T=k(c),x=!1,O=!1,I=0,C=!1;function U(oe,re){if(!O)if(I-=1,oe)x=!0,w(oe);else if(oe===!1)x=!0,O=!0;else{if(re===q||x&&I<=0)return x=!0,w(null);C||te()}}function te(){for(C=!0;I<d&&!x;){var oe=T();if(oe===null){x=!0,I<=0&&w(null);return}I+=1,p(oe.value,oe.key,H(U))}C=!1}te()};function de(d,c,p,w){return se(c)(d,v(p),w)}var ue=S(de,4);function fe(d,c,p){p=Z(p);var w=0,T=0,{length:x}=d,O=!1;x===0&&p(null);function I(C,U){C===!1&&(O=!0),O!==!0&&(C?p(C):(++T===x||U===q)&&p(null))}for(;w<x;w++)c(d[w],w,H(I))}function Oe(d,c,p){return ue(d,1/0,c,p)}function ge(d,c,p){var w=D(d)?fe:Oe;return w(d,v(c),p)}var Ze=S(ge,3);function lv(d,c,p){return L(Ze,d,c,p)}var as=S(lv,3),Yc=R(as);function uv(d,c,p){return ue(d,1,c,p)}var pt=S(uv,3);function fv(d,c,p){return L(pt,d,c,p)}var ka=S(fv,3),Kc=R(ka);let Wr=Symbol("promiseCallback");function Gr(){let d,c;function p(w,...T){if(w)return c(w);d(T.length>1?T:T[0])}return p[Wr]=new Promise((w,T)=>{d=w,c=T}),p}function Fa(d,c,p){typeof c!="number"&&(p=c,c=null),p=Z(p||Gr());var w=Object.keys(d).length;if(!w)return p(null);c||(c=w);var T={},x=0,O=!1,I=!1,C=Object.create(null),U=[],te=[],oe={};Object.keys(d).forEach(j=>{var z=d[j];if(!Array.isArray(z)){re(j,[z]),te.push(j);return}var ie=z.slice(0,z.length-1),we=ie.length;if(we===0){re(j,z),te.push(j);return}oe[j]=we,ie.forEach(Pe=>{if(!d[Pe])throw new Error("async.auto task `"+j+"` has a non-existent dependency `"+Pe+"` in "+ie.join(", "));$r(Pe,()=>{we--,we===0&&re(j,z)})})}),ae(),st();function re(j,z){U.push(()=>Gi(j,z))}function st(){if(!O){if(U.length===0&&x===0)return p(null,T);for(;U.length&&x<c;){var j=U.shift();j()}}}function $r(j,z){var ie=C[j];ie||(ie=C[j]=[]),ie.push(z)}function _r(j){var z=C[j]||[];z.forEach(ie=>ie()),st()}function Gi(j,z){if(!I){var ie=H((Pe,...ot)=>{if(x--,Pe===!1){O=!0;return}if(ot.length<2&&([ot]=ot),Pe){var Hr={};if(Object.keys(T).forEach(br=>{Hr[br]=T[br]}),Hr[j]=ot,I=!0,C=Object.create(null),O)return;p(Pe,Hr)}else T[j]=ot,_r(j)});x++;var we=v(z[z.length-1]);z.length>1?we(T,ie):we(ie)}}function ae(){for(var j,z=0;te.length;)j=te.pop(),z++,G(j).forEach(ie=>{--oe[ie]===0&&te.push(ie)});if(z!==w)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function G(j){var z=[];return Object.keys(d).forEach(ie=>{let we=d[ie];Array.isArray(we)&&we.indexOf(j)>=0&&z.push(ie)}),z}return p[Wr]}var cv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,hv=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,dv=/,/,pv=/(=.+)?(\s*)$/;function gv(d){let c="",p=0,w=d.indexOf("*/");for(;p<d.length;)if(d[p]==="/"&&d[p+1]==="/"){let T=d.indexOf(`
9
+ `,p);p=T===-1?d.length:T}else if(w!==-1&&d[p]==="/"&&d[p+1]==="*"){let T=d.indexOf("*/",p);T!==-1?(p=T+2,w=d.indexOf("*/",p)):(c+=d[p],p++)}else c+=d[p],p++;return c}function yv(d){let c=gv(d.toString()),p=c.match(cv);if(p||(p=c.match(hv)),!p)throw new Error(`could not parse args in autoInject
10
10
  Source:
11
- `+c);let[,w]=p;return w.replace(/\s/g,"").split(mv).map(T=>T.replace(_v,"").trim())}function Zc(d,c){var p={};return Object.keys(d).forEach(w=>{var T=d[w],A,O=y(T),I=!O&&T.length===1||O&&T.length===0;if(Array.isArray(T))A=[...T],T=A.pop(),p[w]=A.concat(A.length>0?C:T);else if(I)p[w]=T;else{if(A=wv(T),T.length===0&&!O&&A.length===0)throw new Error("autoInject task functions require explicit parameters.");O||A.pop(),p[w]=A.concat(C)}function C(U,te){var oe=A.map(re=>U[re]);oe.push(te),v(T)(...oe)}}),Fa(p,c)}class Sv{constructor(){this.head=this.tail=null,this.length=0}removeLink(c){return c.prev?c.prev.next=c.next:this.head=c.next,c.next?c.next.prev=c.prev:this.tail=c.prev,c.prev=c.next=null,this.length-=1,c}empty(){for(;this.head;)this.shift();return this}insertAfter(c,p){p.prev=c,p.next=c.next,c.next?c.next.prev=p:this.tail=p,c.next=p,this.length+=1}insertBefore(c,p){p.prev=c.prev,p.next=c,c.prev?c.prev.next=p:this.head=p,c.prev=p,this.length+=1}unshift(c){this.head?this.insertBefore(this.head,c):Qc(this,c)}push(c){this.tail?this.insertAfter(this.tail,c):Qc(this,c)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var c=this.head;c;)yield c.data,c=c.next}remove(c){for(var p=this.head;p;){var{next:w}=p;c(p)&&this.removeLink(p),p=w}return this}}function Qc(d,c){d.length=1,d.head=d.tail=c}function qa(d,c,p){if(c==null)c=1;else if(c===0)throw new RangeError("Concurrency must not be zero");var w=v(d),T=0,A=[];let O={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function I(G,j){O[G].push(j)}function C(G,j){let z=(...ie)=>{U(G,z),j(...ie)};O[G].push(z)}function U(G,j){if(!G)return Object.keys(O).forEach(z=>O[z]=[]);if(!j)return O[G]=[];O[G]=O[G].filter(z=>z!==j)}function te(G,...j){O[G].forEach(z=>z(...j))}var oe=!1;function re(G,j,z,ie){if(ie!=null&&typeof ie!="function")throw new Error("task callback must be a function");ae.started=!0;var we,Pe;function nt(mr,...Gi){if(mr)return z?Pe(mr):we();if(Gi.length<=1)return we(Gi[0]);we(Gi)}var $r=ae._createTaskItem(G,z?nt:ie||nt);if(j?ae._tasks.unshift($r):ae._tasks.push($r),oe||(oe=!0,u(()=>{oe=!1,ae.process()})),z||!ie)return new Promise((mr,Gi)=>{we=mr,Pe=Gi})}function it(G){return function(j,...z){T-=1;for(var ie=0,we=G.length;ie<we;ie++){var Pe=G[ie],nt=A.indexOf(Pe);nt===0?A.shift():nt>0&&A.splice(nt,1),Pe.callback(j,...z),j!=null&&te("error",j,Pe.data)}T<=ae.concurrency-ae.buffer&&te("unsaturated"),ae.idle()&&te("drain"),ae.process()}}function zr(G){return G.length===0&&ae.idle()?(u(()=>te("drain")),!0):!1}let yr=G=>j=>{if(!j)return new Promise((z,ie)=>{C(G,(we,Pe)=>{if(we)return ie(we);z(Pe)})});U(G),I(G,j)};var Wi=!1,ae={_tasks:new Sv,_createTaskItem(G,j){return{data:G,callback:j}},*[Symbol.iterator](){yield*ae._tasks[Symbol.iterator]()},concurrency:c,payload:p,buffer:c/4,started:!1,paused:!1,push(G,j){return Array.isArray(G)?zr(G)?void 0:G.map(z=>re(z,!1,!1,j)):re(G,!1,!1,j)},pushAsync(G,j){return Array.isArray(G)?zr(G)?void 0:G.map(z=>re(z,!1,!0,j)):re(G,!1,!0,j)},kill(){U(),ae._tasks.empty()},unshift(G,j){return Array.isArray(G)?zr(G)?void 0:G.map(z=>re(z,!0,!1,j)):re(G,!0,!1,j)},unshiftAsync(G,j){return Array.isArray(G)?zr(G)?void 0:G.map(z=>re(z,!0,!0,j)):re(G,!0,!0,j)},remove(G){ae._tasks.remove(G)},process(){if(!Wi){for(Wi=!0;!ae.paused&&T<ae.concurrency&&ae._tasks.length;){var G=[],j=[],z=ae._tasks.length;ae.payload&&(z=Math.min(z,ae.payload));for(var ie=0;ie<z;ie++){var we=ae._tasks.shift();G.push(we),A.push(we),j.push(we.data)}T+=1,ae._tasks.length===0&&te("empty"),T===ae.concurrency&&te("saturated");var Pe=H(it(G));w(j,Pe)}Wi=!1}},length(){return ae._tasks.length},running(){return T},workersList(){return A},idle(){return ae._tasks.length+T===0},pause(){ae.paused=!0},resume(){ae.paused!==!1&&(ae.paused=!1,u(ae.process))}};return Object.defineProperties(ae,{saturated:{writable:!1,value:yr("saturated")},unsaturated:{writable:!1,value:yr("unsaturated")},empty:{writable:!1,value:yr("empty")},drain:{writable:!1,value:yr("drain")},error:{writable:!1,value:yr("error")}}),ae}function Xc(d,c){return qa(d,1,c)}function Jc(d,c,p){return qa(d,c,p)}function Ev(d,c,p,w){w=Z(w);var T=v(p);return ht(d,(A,O,I)=>{T(c,A,(C,U)=>{c=U,I(C)})},A=>w(A,c))}var Vt=S(Ev,4);function Ba(...d){var c=d.map(v);return function(...p){var w=this,T=p[p.length-1];return typeof T=="function"?p.pop():T=Wr(),Vt(c,p,(A,O,I)=>{O.apply(w,A.concat((C,...U)=>{I(C,U)}))},(A,O)=>T(A,...O)),T[Ur]}}function eh(...d){return Ba(...d.reverse())}function vv(d,c,p,w){return L(se(c),d,p,w)}var Fi=S(vv,4);function Tv(d,c,p,w){var T=v(p);return Fi(d,c,(A,O)=>{T(A,(I,...C)=>I?O(I):O(I,C))},(A,O)=>{for(var I=[],C=0;C<O.length;C++)O[C]&&(I=I.concat(...O[C]));return w(A,I)})}var Gr=S(Tv,4);function Av(d,c,p){return Gr(d,1/0,c,p)}var ls=S(Av,3);function xv(d,c,p){return Gr(d,1,c,p)}var us=S(xv,3);function th(...d){return function(...c){var p=c.pop();return p(null,...d)}}function Nt(d,c){return(p,w,T,A)=>{var O=!1,I;let C=v(T);p(w,(U,te,oe)=>{C(U,(re,it)=>{if(re||re===!1)return oe(re);if(d(it)&&!I)return O=!0,I=c(!0,U),oe(null,q);oe()})},U=>{if(U)return A(U);A(null,O?I:c(!1))})}}function Rv(d,c,p){return Nt(w=>w,(w,T)=>T)(Ze,d,c,p)}var fs=S(Rv,3);function Ov(d,c,p,w){return Nt(T=>T,(T,A)=>A)(se(c),d,p,w)}var cs=S(Ov,4);function Dv(d,c,p){return Nt(w=>w,(w,T)=>T)(se(1),d,c,p)}var hs=S(Dv,3);function rh(d){return(c,...p)=>v(c)(...p,(w,...T)=>{typeof console=="object"&&(w?console.error&&console.error(w):console[d]&&T.forEach(A=>console[d](A)))})}var ih=rh("dir");function Iv(d,c,p){p=H(p);var w=v(d),T=v(c),A;function O(C,...U){if(C)return p(C);C!==!1&&(A=U,T(...U,I))}function I(C,U){if(C)return p(C);if(C!==!1){if(!U)return p(null,...A);w(O)}}return I(null,!0)}var qi=S(Iv,3);function nh(d,c,p){let w=v(c);return qi(d,(...T)=>{let A=T.pop();w(...T,(O,I)=>A(O,!I))},p)}function sh(d){return(c,p,w)=>d(c,w)}function Pv(d,c,p){return Ze(d,sh(v(c)),p)}var ds=S(Pv,3);function Lv(d,c,p,w){return se(c)(d,sh(v(p)),w)}var Bi=S(Lv,4);function Cv(d,c,p){return Bi(d,1,c,p)}var ji=S(Cv,3);function ja(d){return y(d)?d:function(...c){var p=c.pop(),w=!0;c.push((...T)=>{w?u(()=>p(...T)):p(...T)}),d.apply(this,c),w=!1}}function Nv(d,c,p){return Nt(w=>!w,w=>!w)(Ze,d,c,p)}var ps=S(Nv,3);function Mv(d,c,p,w){return Nt(T=>!T,T=>!T)(se(c),d,p,w)}var gs=S(Mv,4);function kv(d,c,p){return Nt(w=>!w,w=>!w)(ht,d,c,p)}var ys=S(kv,3);function Fv(d,c,p,w){var T=new Array(c.length);d(c,(A,O,I)=>{p(A,(C,U)=>{T[O]=!!U,I(C)})},A=>{if(A)return w(A);for(var O=[],I=0;I<c.length;I++)T[I]&&O.push(c[I]);w(null,O)})}function qv(d,c,p,w){var T=[];d(c,(A,O,I)=>{p(A,(C,U)=>{if(C)return I(C);U&&T.push({index:O,value:A}),I(C)})},A=>{if(A)return w(A);w(null,T.sort((O,I)=>O.index-I.index).map(O=>O.value))})}function ms(d,c,p,w){var T=D(c)?Fv:qv;return T(d,c,v(p),w)}function Bv(d,c,p){return ms(Ze,d,c,p)}var _s=S(Bv,3);function jv(d,c,p,w){return ms(se(c),d,p,w)}var bs=S(jv,4);function Uv(d,c,p){return ms(ht,d,c,p)}var ws=S(Uv,3);function Wv(d,c){var p=H(c),w=v(ja(d));function T(A){if(A)return p(A);A!==!1&&w(T)}return T()}var oh=S(Wv,2);function Gv(d,c,p,w){var T=v(p);return Fi(d,c,(A,O)=>{T(A,(I,C)=>I?O(I):O(I,{key:C,val:A}))},(A,O)=>{for(var I={},{hasOwnProperty:C}=Object.prototype,U=0;U<O.length;U++)if(O[U]){var{key:te}=O[U],{val:oe}=O[U];C.call(I,te)?I[te].push(oe):I[te]=[oe]}return w(A,I)})}var Ss=S(Gv,4);function ah(d,c,p){return Ss(d,1/0,c,p)}function lh(d,c,p){return Ss(d,1,c,p)}var uh=rh("log");function zv(d,c,p,w){w=Z(w);var T={},A=v(p);return se(c)(d,(O,I,C)=>{A(O,I,(U,te)=>{if(U)return C(U);T[I]=te,C(U)})},O=>w(O,T))}var Es=S(zv,4);function fh(d,c,p){return Es(d,1/0,c,p)}function ch(d,c,p){return Es(d,1,c,p)}function hh(d,c=p=>p){var p=Object.create(null),w=Object.create(null),T=v(d),A=r((O,I)=>{var C=c(...O);C in p?u(()=>I(null,...p[C])):C in w?w[C].push(I):(w[C]=[I],T(...O,(U,...te)=>{U||(p[C]=te);var oe=w[C];delete w[C];for(var re=0,it=oe.length;re<it;re++)oe[re](U,...te)}))});return A.memo=p,A.unmemoized=d,A}var vs;s?vs=process.nextTick:n?vs=setImmediate:vs=o;var dh=a(vs),Ua=S((d,c,p)=>{var w=D(c)?[]:{};d(c,(T,A,O)=>{v(T)((I,...C)=>{C.length<2&&([C]=C),w[A]=C,O(I)})},T=>p(T,w))},3);function ph(d,c){return Ua(Ze,d,c)}function gh(d,c,p){return Ua(se(c),d,p)}function Wa(d,c){var p=v(d);return qa((w,T)=>{p(w[0],T)},c,1)}class $v{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(c){let p;for(;c>0&&Ga(this.heap[c],this.heap[p=yh(c)]);){let w=this.heap[c];this.heap[c]=this.heap[p],this.heap[p]=w,c=p}}percDown(c){let p;for(;(p=Hv(c))<this.heap.length&&(p+1<this.heap.length&&Ga(this.heap[p+1],this.heap[p])&&(p=p+1),!Ga(this.heap[c],this.heap[p]));){let w=this.heap[c];this.heap[c]=this.heap[p],this.heap[p]=w,c=p}}push(c){c.pushCount=++this.pushCount,this.heap.push(c),this.percUp(this.heap.length-1)}unshift(c){return this.heap.push(c)}shift(){let[c]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),c}toArray(){return[...this]}*[Symbol.iterator](){for(let c=0;c<this.heap.length;c++)yield this.heap[c].data}remove(c){let p=0;for(let w=0;w<this.heap.length;w++)c(this.heap[w])||(this.heap[p]=this.heap[w],p++);this.heap.splice(p);for(let w=yh(this.heap.length-1);w>=0;w--)this.percDown(w);return this}}function Hv(d){return(d<<1)+1}function yh(d){return(d+1>>1)-1}function Ga(d,c){return d.priority!==c.priority?d.priority<c.priority:d.pushCount<c.pushCount}function mh(d,c){var p=Wa(d,c),{push:w,pushAsync:T}=p;p._tasks=new $v,p._createTaskItem=({data:O,priority:I},C)=>({data:O,priority:I,callback:C});function A(O,I){return Array.isArray(O)?O.map(C=>({data:C,priority:I})):{data:O,priority:I}}return p.push=function(O,I=0,C){return w(A(O,I),C)},p.pushAsync=function(O,I=0,C){return T(A(O,I),C)},delete p.unshift,delete p.unshiftAsync,p}function Vv(d,c){if(c=Z(c),!Array.isArray(d))return c(new TypeError("First argument to race must be an array of functions"));if(!d.length)return c();for(var p=0,w=d.length;p<w;p++)v(d[p])(c)}var _h=S(Vv,2);function Ts(d,c,p,w){var T=[...d].reverse();return Vt(T,c,p,w)}function As(d){var c=v(d);return r(function(w,T){return w.push((A,...O)=>{let I={};if(A&&(I.error=A),O.length>0){var C=O;O.length<=1&&([C]=O),I.value=C}T(null,I)}),c.apply(this,w)})}function bh(d){var c;return Array.isArray(d)?c=d.map(As):(c={},Object.keys(d).forEach(p=>{c[p]=As.call(this,d[p])})),c}function za(d,c,p,w){let T=v(p);return ms(d,c,(A,O)=>{T(A,(I,C)=>{O(I,!C)})},w)}function Yv(d,c,p){return za(Ze,d,c,p)}var wh=S(Yv,3);function Kv(d,c,p,w){return za(se(c),d,p,w)}var Sh=S(Kv,4);function Zv(d,c,p){return za(ht,d,c,p)}var Eh=S(Zv,3);function vh(d){return function(){return d}}let $a=5,Th=0;function xs(d,c,p){var w={times:$a,intervalFunc:vh(Th)};if(arguments.length<3&&typeof d=="function"?(p=c||Wr(),c=d):(Qv(w,d),p=p||Wr()),typeof c!="function")throw new Error("Invalid arguments for async.retry");var T=v(c),A=1;function O(){T((I,...C)=>{I!==!1&&(I&&A++<w.times&&(typeof w.errorFilter!="function"||w.errorFilter(I))?setTimeout(O,w.intervalFunc(A-1)):p(I,...C))})}return O(),p[Ur]}function Qv(d,c){if(typeof c=="object")d.times=+c.times||$a,d.intervalFunc=typeof c.interval=="function"?c.interval:vh(+c.interval||Th),d.errorFilter=c.errorFilter;else if(typeof c=="number"||typeof c=="string")d.times=+c||$a;else throw new Error("Invalid arguments for async.retry")}function Ah(d,c){c||(c=d,d=null);let p=d&&d.arity||c.length;y(c)&&(p+=1);var w=v(c);return r((T,A)=>{(T.length<p-1||A==null)&&(T.push(A),A=Wr());function O(I){w(...T,I)}return d?xs(d,O,A):xs(O,A),A[Ur]})}function xh(d,c){return Ua(ht,d,c)}function Xv(d,c,p){return Nt(Boolean,w=>w)(Ze,d,c,p)}var Rs=S(Xv,3);function Jv(d,c,p,w){return Nt(Boolean,T=>T)(se(c),d,p,w)}var Os=S(Jv,4);function e1(d,c,p){return Nt(Boolean,w=>w)(ht,d,c,p)}var Ds=S(e1,3);function t1(d,c,p){var w=v(c);return as(d,(A,O)=>{w(A,(I,C)=>{if(I)return O(I);O(I,{value:A,criteria:C})})},(A,O)=>{if(A)return p(A);p(null,O.sort(T).map(I=>I.value))});function T(A,O){var I=A.criteria,C=O.criteria;return I<C?-1:I>C?1:0}}var Rh=S(t1,3);function Oh(d,c,p){var w=v(d);return r((T,A)=>{var O=!1,I;function C(){var U=d.name||"anonymous",te=new Error('Callback function "'+U+'" timed out.');te.code="ETIMEDOUT",p&&(te.info=p),O=!0,A(te)}T.push((...U)=>{O||(A(...U),clearTimeout(I))}),I=setTimeout(C,c),w(...T)})}function r1(d){for(var c=Array(d);d--;)c[d]=d;return c}function Is(d,c,p,w){var T=v(p);return Fi(r1(d),c,T,w)}function Dh(d,c,p){return Is(d,1/0,c,p)}function Ih(d,c,p){return Is(d,1,c,p)}function Ph(d,c,p,w){arguments.length<=3&&typeof c=="function"&&(w=p,p=c,c=Array.isArray(d)?[]:{}),w=Z(w||Wr());var T=v(p);return Ze(d,(A,O,I)=>{T(c,A,O,I)},A=>w(A,c)),w[Ur]}function i1(d,c){var p=null,w;return ji(d,(T,A)=>{v(T)((O,...I)=>{if(O===!1)return A(O);I.length<2?[w]=I:w=I,p=O,A(O?null:{})})},()=>c(p,w))}var Lh=S(i1);function Ch(d){return(...c)=>(d.unmemoized||d)(...c)}function n1(d,c,p){p=H(p);var w=v(c),T=v(d),A=[];function O(C,...U){if(C)return p(C);A=U,C!==!1&&T(I)}function I(C,U){if(C)return p(C);if(C!==!1){if(!U)return p(null,...A);w(O)}}return T(I)}var Ui=S(n1,3);function Nh(d,c,p){let w=v(d);return Ui(T=>w((A,O)=>T(A,!O)),c,p)}function s1(d,c){if(c=Z(c),!Array.isArray(d))return c(new Error("First argument to waterfall must be an array of functions"));if(!d.length)return c();var p=0;function w(A){var O=v(d[p++]);O(...A,H(T))}function T(A,...O){if(A!==!1){if(A||p===d.length)return c(A,...O);w(O)}}w([])}var Mh=S(s1),o1={apply:e,applyEach:Yc,applyEachSeries:Kc,asyncify:f,auto:Fa,autoInject:Zc,cargo:Xc,cargoQueue:Jc,compose:eh,concat:ls,concatLimit:Gr,concatSeries:us,constant:th,detect:fs,detectLimit:cs,detectSeries:hs,dir:ih,doUntil:nh,doWhilst:qi,each:ds,eachLimit:Bi,eachOf:Ze,eachOfLimit:ue,eachOfSeries:ht,eachSeries:ji,ensureAsync:ja,every:ps,everyLimit:gs,everySeries:ys,filter:_s,filterLimit:bs,filterSeries:ws,forever:oh,groupBy:ah,groupByLimit:Ss,groupBySeries:lh,log:uh,map:as,mapLimit:Fi,mapSeries:ka,mapValues:fh,mapValuesLimit:Es,mapValuesSeries:ch,memoize:hh,nextTick:dh,parallel:ph,parallelLimit:gh,priorityQueue:mh,queue:Wa,race:_h,reduce:Vt,reduceRight:Ts,reflect:As,reflectAll:bh,reject:wh,rejectLimit:Sh,rejectSeries:Eh,retry:xs,retryable:Ah,seq:Ba,series:xh,setImmediate:u,some:Rs,someLimit:Os,someSeries:Ds,sortBy:Rh,timeout:Oh,times:Dh,timesLimit:Is,timesSeries:Ih,transform:Ph,tryEach:Lh,unmemoize:Ch,until:Nh,waterfall:Mh,whilst:Ui,all:ps,allLimit:gs,allSeries:ys,any:Rs,anyLimit:Os,anySeries:Ds,find:fs,findLimit:cs,findSeries:hs,flatMap:ls,flatMapLimit:Gr,flatMapSeries:us,forEach:ds,forEachSeries:ji,forEachLimit:Bi,forEachOf:Ze,forEachOfSeries:ht,forEachOfLimit:ue,inject:Vt,foldl:Vt,foldr:Ts,select:_s,selectLimit:bs,selectSeries:ws,wrapSync:f,during:Ui,doDuring:qi};t.all=ps,t.allLimit=gs,t.allSeries=ys,t.any=Rs,t.anyLimit=Os,t.anySeries=Ds,t.apply=e,t.applyEach=Yc,t.applyEachSeries=Kc,t.asyncify=f,t.auto=Fa,t.autoInject=Zc,t.cargo=Xc,t.cargoQueue=Jc,t.compose=eh,t.concat=ls,t.concatLimit=Gr,t.concatSeries=us,t.constant=th,t.default=o1,t.detect=fs,t.detectLimit=cs,t.detectSeries=hs,t.dir=ih,t.doDuring=qi,t.doUntil=nh,t.doWhilst=qi,t.during=Ui,t.each=ds,t.eachLimit=Bi,t.eachOf=Ze,t.eachOfLimit=ue,t.eachOfSeries=ht,t.eachSeries=ji,t.ensureAsync=ja,t.every=ps,t.everyLimit=gs,t.everySeries=ys,t.filter=_s,t.filterLimit=bs,t.filterSeries=ws,t.find=fs,t.findLimit=cs,t.findSeries=hs,t.flatMap=ls,t.flatMapLimit=Gr,t.flatMapSeries=us,t.foldl=Vt,t.foldr=Ts,t.forEach=ds,t.forEachLimit=Bi,t.forEachOf=Ze,t.forEachOfLimit=ue,t.forEachOfSeries=ht,t.forEachSeries=ji,t.forever=oh,t.groupBy=ah,t.groupByLimit=Ss,t.groupBySeries=lh,t.inject=Vt,t.log=uh,t.map=as,t.mapLimit=Fi,t.mapSeries=ka,t.mapValues=fh,t.mapValuesLimit=Es,t.mapValuesSeries=ch,t.memoize=hh,t.nextTick=dh,t.parallel=ph,t.parallelLimit=gh,t.priorityQueue=mh,t.queue=Wa,t.race=_h,t.reduce=Vt,t.reduceRight=Ts,t.reflect=As,t.reflectAll=bh,t.reject=wh,t.rejectLimit=Sh,t.rejectSeries=Eh,t.retry=xs,t.retryable=Ah,t.select=_s,t.selectLimit=bs,t.selectSeries=ws,t.seq=Ba,t.series=xh,t.setImmediate=u,t.some=Rs,t.someLimit=Os,t.someSeries=Ds,t.sortBy=Rh,t.timeout=Oh,t.times=Dh,t.timesLimit=Is,t.timesSeries=Ih,t.transform=Ph,t.tryEach=Lh,t.unmemoize=Ch,t.until=Nh,t.waterfall=Mh,t.whilst=Ui,t.wrapSync=f,Object.defineProperty(t,"__esModule",{value:!0})}))});var Od=b((Q3,Rd)=>{var Kt=W("constants"),yT=process.cwd,ks=null,mT=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return ks||(ks=yT.call(process)),ks};try{process.cwd()}catch{}typeof process.chdir=="function"&&(gl=process.chdir,process.chdir=function(t){ks=null,gl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,gl));var gl;Rd.exports=_T;function _T(t){Kt.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,h,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,h,g,y){y&&process.nextTick(y)},t.lchownSync=function(){}),mT==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(f){function h(g,y,E){var m=Date.now(),v=0;f(g,y,function S(R){if(R&&(R.code==="EACCES"||R.code==="EPERM"||R.code==="EBUSY")&&Date.now()-m<6e4){setTimeout(function(){t.stat(y,function(L,D){L&&L.code==="ENOENT"?f(g,y,S):E(R)})},v),v<100&&(v+=10);return}E&&E(R)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(f){function h(g,y,E,m,v,S){var R;if(S&&typeof S=="function"){var L=0;R=function(D,q,Z){if(D&&D.code==="EAGAIN"&&L<10)return L++,f.call(t,g,y,E,m,v,R);S.apply(this,arguments)}}return f.call(t,g,y,E,m,v,R)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(f){return function(h,g,y,E,m){for(var v=0;;)try{return f.call(t,h,g,y,E,m)}catch(S){if(S.code==="EAGAIN"&&v<10){v++;continue}throw S}}})(t.readSync);function e(f){f.lchmod=function(h,g,y){f.open(h,Kt.O_WRONLY|Kt.O_SYMLINK,g,function(E,m){if(E){y&&y(E);return}f.fchmod(m,g,function(v){f.close(m,function(S){y&&y(v||S)})})})},f.lchmodSync=function(h,g){var y=f.openSync(h,Kt.O_WRONLY|Kt.O_SYMLINK,g),E=!0,m;try{m=f.fchmodSync(y,g),E=!1}finally{if(E)try{f.closeSync(y)}catch{}else f.closeSync(y)}return m}}function r(f){Kt.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,g,y,E){f.open(h,Kt.O_SYMLINK,function(m,v){if(m){E&&E(m);return}f.futimes(v,g,y,function(S){f.close(v,function(R){E&&E(S||R)})})})},f.lutimesSync=function(h,g,y){var E=f.openSync(h,Kt.O_SYMLINK),m,v=!0;try{m=f.futimesSync(E,g,y),v=!1}finally{if(v)try{f.closeSync(E)}catch{}else f.closeSync(E)}return m}):f.futimes&&(f.lutimes=function(h,g,y,E){E&&process.nextTick(E)},f.lutimesSync=function(){})}function i(f){return f&&function(h,g,y){return f.call(t,h,g,function(E){u(E)&&(E=null),y&&y.apply(this,arguments)})}}function n(f){return f&&function(h,g){try{return f.call(t,h,g)}catch(y){if(!u(y))throw y}}}function s(f){return f&&function(h,g,y,E){return f.call(t,h,g,y,function(m){u(m)&&(m=null),E&&E.apply(this,arguments)})}}function o(f){return f&&function(h,g,y){try{return f.call(t,h,g,y)}catch(E){if(!u(E))throw E}}}function a(f){return f&&function(h,g,y){typeof g=="function"&&(y=g,g=null);function E(m,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),y&&y.apply(this,arguments)}return g?f.call(t,h,g,E):f.call(t,h,E)}}function l(f){return f&&function(h,g){var y=g?f.call(t,h,g):f.call(t,h);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function u(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var Pd=b((X3,Id)=>{var Dd=W("stream").Stream;Id.exports=bT;function bT(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);Dd.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,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);Dd.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 Cd=b((J3,Ld)=>{"use strict";Ld.exports=ST;var wT=Object.getPrototypeOf||function(t){return t.__proto__};function ST(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:wT(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var bl=b((e4,_l)=>{var Ee=W("fs"),ET=Od(),vT=Pd(),TT=Cd(),Fs=W("util"),ke,Bs;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ke=Symbol.for("graceful-fs.queue"),Bs=Symbol.for("graceful-fs.previous")):(ke="___graceful-fs.queue",Bs="___graceful-fs.previous");function AT(){}function kd(t,e){Object.defineProperty(t,ke,{get:function(){return e}})}var _r=AT;Fs.debuglog?_r=Fs.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(_r=function(){var t=Fs.format.apply(Fs,arguments);t="GFS4: "+t.split(/\n/).join(`
12
- GFS4: `),console.error(t)});Ee[ke]||(Nd=global[ke]||[],kd(Ee,Nd),Ee.close=(function(t){function e(r,i){return t.call(Ee,r,function(n){n||Md(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Bs,{value:t}),e})(Ee.close),Ee.closeSync=(function(t){function e(r){t.apply(Ee,arguments),Md()}return Object.defineProperty(e,Bs,{value:t}),e})(Ee.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){_r(Ee[ke]),W("assert").equal(Ee[ke].length,0)}));var Nd;global[ke]||kd(global,Ee[ke]);_l.exports=yl(TT(Ee));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ee.__patched&&(_l.exports=yl(Ee),Ee.__patched=!0);function yl(t){ET(t),t.gracefulify=yl,t.createReadStream=q,t.createWriteStream=Z;var e=t.readFile;t.readFile=r;function r(x,M,k){return typeof M=="function"&&(k=M,M=null),H(x,M,k);function H(ee,se,de,ue){return e(ee,se,function(fe){fe&&(fe.code==="EMFILE"||fe.code==="ENFILE")?Vr([H,[ee,se,de],fe,ue||Date.now(),Date.now()]):typeof de=="function"&&de.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(x,M,k,H){return typeof k=="function"&&(H=k,k=null),ee(x,M,k,H);function ee(se,de,ue,fe,Oe){return i(se,de,ue,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Vr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(x,M,k,H){return typeof k=="function"&&(H=k,k=null),ee(x,M,k,H);function ee(se,de,ue,fe,Oe){return s(se,de,ue,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Vr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(x,M,k,H){return typeof k=="function"&&(H=k,k=0),ee(x,M,k,H);function ee(se,de,ue,fe,Oe){return a(se,de,ue,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Vr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}var u=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(x,M,k){typeof M=="function"&&(k=M,M=null);var H=f.test(process.version)?function(de,ue,fe,Oe){return u(de,ee(de,ue,fe,Oe))}:function(de,ue,fe,Oe){return u(de,ue,ee(de,ue,fe,Oe))};return H(x,M,k);function ee(se,de,ue,fe){return function(Oe,ge){Oe&&(Oe.code==="EMFILE"||Oe.code==="ENFILE")?Vr([H,[se,de,ue],Oe,fe||Date.now(),Date.now()]):(ge&&ge.sort&&ge.sort(),typeof ue=="function"&&ue.call(this,Oe,ge))}}}if(process.version.substr(0,4)==="v0.8"){var g=vT(t);S=g.ReadStream,L=g.WriteStream}var y=t.ReadStream;y&&(S.prototype=Object.create(y.prototype),S.prototype.open=R);var E=t.WriteStream;E&&(L.prototype=Object.create(E.prototype),L.prototype.open=D),Object.defineProperty(t,"ReadStream",{get:function(){return S},set:function(x){S=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return L},set:function(x){L=x},enumerable:!0,configurable:!0});var m=S;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(x){m=x},enumerable:!0,configurable:!0});var v=L;Object.defineProperty(t,"FileWriteStream",{get:function(){return v},set:function(x){v=x},enumerable:!0,configurable:!0});function S(x,M){return this instanceof S?(y.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function R(){var x=this;B(x.path,x.flags,x.mode,function(M,k){M?(x.autoClose&&x.destroy(),x.emit("error",M)):(x.fd=k,x.emit("open",k),x.read())})}function L(x,M){return this instanceof L?(E.apply(this,arguments),this):L.apply(Object.create(L.prototype),arguments)}function D(){var x=this;B(x.path,x.flags,x.mode,function(M,k){M?(x.destroy(),x.emit("error",M)):(x.fd=k,x.emit("open",k))})}function q(x,M){return new t.ReadStream(x,M)}function Z(x,M){return new t.WriteStream(x,M)}var P=t.open;t.open=B;function B(x,M,k,H){return typeof k=="function"&&(H=k,k=null),ee(x,M,k,H);function ee(se,de,ue,fe,Oe){return P(se,de,ue,function(ge,Ze){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Vr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}return t}function Vr(t){_r("ENQUEUE",t[0].name,t[1]),Ee[ke].push(t),ml()}var qs;function Md(){for(var t=Date.now(),e=0;e<Ee[ke].length;++e)Ee[ke][e].length>2&&(Ee[ke][e][3]=t,Ee[ke][e][4]=t);ml()}function ml(){if(clearTimeout(qs),qs=void 0,Ee[ke].length!==0){var t=Ee[ke].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)_r("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){_r("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?(_r("RETRY",e.name,r),e.apply(null,r.concat([n]))):Ee[ke].push(t)}qs===void 0&&(qs=setTimeout(ml,0))}}});var js=b((t4,Fd)=>{"use strict";var bt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";bt.writable=t=>bt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";bt.readable=t=>bt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";bt.duplex=t=>bt.writable(t)&&bt.readable(t);bt.transform=t=>bt.duplex(t)&&typeof t._transform=="function";Fd.exports=bt});var Yi=b((r4,wl)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?wl.exports={nextTick:xT}:wl.exports=process;function xT(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,s,o;switch(n){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,r)});case 4:return process.nextTick(function(){t.call(null,e,r,i)});default:for(s=new Array(n-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){t.apply(null,s)})}}});var Bd=b((i4,qd)=>{var RT={}.toString;qd.exports=Array.isArray||function(t){return RT.call(t)=="[object Array]"}});var Sl=b((n4,jd)=>{jd.exports=W("stream")});var Ki=b((El,Wd)=>{var Us=W("buffer"),Mt=Us.Buffer;function Ud(t,e){for(var r in t)e[r]=t[r]}Mt.from&&Mt.alloc&&Mt.allocUnsafe&&Mt.allocUnsafeSlow?Wd.exports=Us:(Ud(Us,El),El.Buffer=Yr);function Yr(t,e,r){return Mt(t,e,r)}Ud(Mt,Yr);Yr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Mt(t,e,r)};Yr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Mt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Yr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Mt(t)};Yr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Us.SlowBuffer(t)}});var Kr=b(Ue=>{function OT(t){return Array.isArray?Array.isArray(t):Ws(t)==="[object Array]"}Ue.isArray=OT;function DT(t){return typeof t=="boolean"}Ue.isBoolean=DT;function IT(t){return t===null}Ue.isNull=IT;function PT(t){return t==null}Ue.isNullOrUndefined=PT;function LT(t){return typeof t=="number"}Ue.isNumber=LT;function CT(t){return typeof t=="string"}Ue.isString=CT;function NT(t){return typeof t=="symbol"}Ue.isSymbol=NT;function MT(t){return t===void 0}Ue.isUndefined=MT;function kT(t){return Ws(t)==="[object RegExp]"}Ue.isRegExp=kT;function FT(t){return typeof t=="object"&&t!==null}Ue.isObject=FT;function qT(t){return Ws(t)==="[object Date]"}Ue.isDate=qT;function BT(t){return Ws(t)==="[object Error]"||t instanceof Error}Ue.isError=BT;function jT(t){return typeof t=="function"}Ue.isFunction=jT;function UT(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Ue.isPrimitive=UT;Ue.isBuffer=W("buffer").Buffer.isBuffer;function Ws(t){return Object.prototype.toString.call(t)}});var Gd=b((o4,vl)=>{typeof Object.create=="function"?vl.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:vl.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 Zr=b((a4,Al)=>{try{if(Tl=W("util"),typeof Tl.inherits!="function")throw"";Al.exports=Tl.inherits}catch{Al.exports=Gd()}var Tl});var $d=b((l4,xl)=>{"use strict";function WT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var zd=Ki().Buffer,Zi=W("util");function GT(t,e,r){t.copy(e,r)}xl.exports=(function(){function t(){WT(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 zd.alloc(0);for(var i=zd.allocUnsafe(r>>>0),n=this.head,s=0;n;)GT(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();Zi&&Zi.inspect&&Zi.inspect.custom&&(xl.exports.prototype[Zi.inspect.custom]=function(){var t=Zi.inspect({length:this.length});return this.constructor.name+" "+t})});var Rl=b((u4,Hd)=>{"use strict";var Gs=Yi();function zT(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,Gs.nextTick(zs,this,t)):Gs.nextTick(zs,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,Gs.nextTick(zs,r,s)):Gs.nextTick(zs,r,s):e&&e(s)}),this)}function $T(){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 zs(t,e){t.emit("error",e)}Hd.exports={destroy:zT,undestroy:$T}});var Yd=b((f4,Vd)=>{Vd.exports=W("util").deprecate});var Dl=b((c4,rp)=>{"use strict";var br=Yi();rp.exports=Re;function Zd(t){var e=this;this.next=null,this.entry=null,this.finish=function(){uA(e,t)}}var HT=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:br.nextTick,Qr;Re.WritableState=Xi;var Qd=Object.create(Kr());Qd.inherits=Zr();var VT={deprecate:Yd()},Xd=Sl(),Hs=Ki().Buffer,YT=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function KT(t){return Hs.from(t)}function ZT(t){return Hs.isBuffer(t)||t instanceof YT}var Jd=Rl();Qd.inherits(Re,Xd);function QT(){}function Xi(t,e){Qr=Qr||wr(),t=t||{};var r=e instanceof Qr;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){nA(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 Zd(this)}Xi.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Xi.prototype,"buffer",{get:VT.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var $s;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?($s=Function.prototype[Symbol.hasInstance],Object.defineProperty(Re,Symbol.hasInstance,{value:function(t){return $s.call(this,t)?!0:this!==Re?!1:t&&t._writableState instanceof Xi}})):$s=function(t){return t instanceof this};function Re(t){if(Qr=Qr||wr(),!$s.call(Re,this)&&!(this instanceof Qr))return new Re(t);this._writableState=new Xi(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)),Xd.call(this)}Re.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function XT(t,e){var r=new Error("write after end");t.emit("error",r),br.nextTick(e,r)}function JT(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),br.nextTick(i,s),n=!1),n}Re.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&ZT(t);return s&&!Hs.isBuffer(t)&&(t=KT(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=QT),i.ended?XT(this,r):(s||JT(this,i,t,r))&&(i.pendingcb++,n=tA(this,i,s,t,e,r)),n};Re.prototype.cork=function(){var t=this._writableState;t.corked++};Re.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&ep(this,t))};Re.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 eA(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Hs.from(e,r)),e}Object.defineProperty(Re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function tA(t,e,r,i,n,s){if(!r){var o=eA(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 Ol(t,e,!1,a,i,n,s);return l}function Ol(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 rA(t,e,r,i,n){--e.pendingcb,r?(br.nextTick(n,i),br.nextTick(Qi,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Qi(t,e))}function iA(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function nA(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(iA(r),e)rA(t,r,i,e,n);else{var s=tp(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&ep(t,r),i?HT(Kd,t,r,s,n):Kd(t,r,s,n)}}function Kd(t,e,r,i){r||sA(t,e),e.pendingcb--,i(),Qi(t,e)}function sA(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function ep(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,Ol(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 Zd(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,h=e.objectMode?1:l.length;if(Ol(t,e,!1,h,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}Re.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};Re.prototype._writev=null;Re.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||lA(this,i,r)};function tp(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function oA(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Qi(t,e)})}function aA(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,br.nextTick(oA,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Qi(t,e){var r=tp(e);return r&&(aA(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function lA(t,e,r){e.ending=!0,Qi(t,e),r&&(e.finished?br.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function uA(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(Re.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Re.prototype.destroy=Jd.destroy;Re.prototype._undestroy=Jd.undestroy;Re.prototype._destroy=function(t,e){this.end(),e(t)}});var wr=b((h4,op)=>{"use strict";var ip=Yi(),fA=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};op.exports=kt;var np=Object.create(Kr());np.inherits=Zr();var sp=Ll(),Pl=Dl();np.inherits(kt,sp);for(Il=fA(Pl.prototype),Vs=0;Vs<Il.length;Vs++)Ys=Il[Vs],kt.prototype[Ys]||(kt.prototype[Ys]=Pl.prototype[Ys]);var Il,Ys,Vs;function kt(t){if(!(this instanceof kt))return new kt(t);sp.call(this,t),Pl.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",cA)}Object.defineProperty(kt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function cA(){this.allowHalfOpen||this._writableState.ended||ip.nextTick(hA,this)}function hA(t){t.end()}Object.defineProperty(kt.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)}});kt.prototype._destroy=function(t,e){this.push(null),this.end(),ip.nextTick(e,t)}});var Ml=b(lp=>{"use strict";var Nl=Ki().Buffer,ap=Nl.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 dA(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 pA(t){var e=dA(t);if(typeof e!="string"&&(Nl.isEncoding===ap||!ap(t)))throw new Error("Unknown encoding: "+t);return e||t}lp.StringDecoder=Ji;function Ji(t){this.encoding=pA(t);var e;switch(this.encoding){case"utf16le":this.text=wA,this.end=SA,e=4;break;case"utf8":this.fillLast=mA,e=4;break;case"base64":this.text=EA,this.end=vA,e=3;break;default:this.write=TA,this.end=AA;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Nl.allocUnsafe(e)}Ji.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||""};Ji.prototype.end=bA;Ji.prototype.text=_A;Ji.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 Cl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function gA(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Cl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Cl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Cl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function yA(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 mA(t){var e=this.lastTotal-this.lastNeed,r=yA(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 _A(t,e){var r=gA(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 bA(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function wA(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 SA(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 EA(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 vA(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function TA(t){return t.toString(this.encoding)}function AA(t){return t&&t.length?this.write(t):""}});var Ll=b((g4,wp)=>{"use strict";var Jr=Yi();wp.exports=ye;var xA=Bd(),en;ye.ReadableState=gp;var p4=W("events").EventEmitter,hp=function(t,e){return t.listeners(e).length},jl=Sl(),tn=Ki().Buffer,RA=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function OA(t){return tn.from(t)}function DA(t){return tn.isBuffer(t)||t instanceof RA}var dp=Object.create(Kr());dp.inherits=Zr();var kl=W("util"),ce=void 0;kl&&kl.debuglog?ce=kl.debuglog("stream"):ce=function(){};var IA=$d(),pp=Rl(),Xr;dp.inherits(ye,jl);var Fl=["error","close","destroy","pause","resume"];function PA(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):xA(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function gp(t,e){en=en||wr(),t=t||{};var r=e instanceof en;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 IA,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&&(Xr||(Xr=Ml().StringDecoder),this.decoder=new Xr(t.encoding),this.encoding=t.encoding)}function ye(t){if(en=en||wr(),!(this instanceof ye))return new ye(t);this._readableState=new gp(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),jl.call(this)}Object.defineProperty(ye.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});ye.prototype.destroy=pp.destroy;ye.prototype._undestroy=pp.undestroy;ye.prototype._destroy=function(t,e){this.push(null),e(t)};ye.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=tn.from(t,e),e=""),i=!0),yp(this,t,e,!1,i)};ye.prototype.unshift=function(t){return yp(this,t,null,!0,!1)};function yp(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,MA(t,s);else{var o;n||(o=LA(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==tn.prototype&&(e=OA(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):ql(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?ql(t,s,e,!1):mp(t,s)):ql(t,s,e,!1))):i||(s.reading=!1)}return CA(s)}function ql(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&&Ks(t)),mp(t,e)}function LA(t,e){var r;return!DA(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function CA(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}ye.prototype.isPaused=function(){return this._readableState.flowing===!1};ye.prototype.setEncoding=function(t){return Xr||(Xr=Ml().StringDecoder),this._readableState.decoder=new Xr(t),this._readableState.encoding=t,this};var up=8388608;function NA(t){return t>=up?t=up:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function fp(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=NA(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}ye.prototype.read=function(t){ce("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 ce("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Bl(this):Ks(this),null;if(t=fp(t,e),t===0&&e.ended)return e.length===0&&Bl(this),null;var i=e.needReadable;ce("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,ce("length less than watermark",i)),e.ended||e.reading?(i=!1,ce("reading or ended",i)):i&&(ce("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=fp(r,e)));var n;return t>0?n=_p(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&&Bl(this)),n!==null&&this.emit("data",n),n};function MA(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,Ks(t)}}function Ks(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(ce("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Jr.nextTick(cp,t):cp(t))}function cp(t){ce("emit readable"),t.emit("readable"),Ul(t)}function mp(t,e){e.readingMore||(e.readingMore=!0,Jr.nextTick(kA,t,e))}function kA(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(ce("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}ye.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};ye.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,ce("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:v;i.endEmitted?Jr.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(S,R){ce("onunpipe"),S===r&&R&&R.hasUnpiped===!1&&(R.hasUnpiped=!0,f())}function a(){ce("onend"),t.end()}var l=FA(r);t.on("drain",l);var u=!1;function f(){ce("cleanup"),t.removeListener("close",E),t.removeListener("finish",m),t.removeListener("drain",l),t.removeListener("error",y),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",v),r.removeListener("data",g),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var h=!1;r.on("data",g);function g(S){ce("ondata"),h=!1;var R=t.write(S);R===!1&&!h&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&bp(i.pipes,t)!==-1)&&!u&&(ce("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function y(S){ce("onerror",S),v(),t.removeListener("error",y),hp(t,"error")===0&&t.emit("error",S)}PA(t,"error",y);function E(){t.removeListener("finish",m),v()}t.once("close",E);function m(){ce("onfinish"),t.removeListener("close",E),v()}t.once("finish",m);function v(){ce("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(ce("pipe resume"),r.resume()),t};function FA(t){return function(){var e=t._readableState;ce("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&hp(t,"data")&&(e.flowing=!0,Ul(t))}}ye.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=bp(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)};ye.prototype.on=function(t,e){var r=jl.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&&Ks(this):Jr.nextTick(qA,this))}return r};ye.prototype.addListener=ye.prototype.on;function qA(t){ce("readable nexttick read 0"),t.read(0)}ye.prototype.resume=function(){var t=this._readableState;return t.flowing||(ce("resume"),t.flowing=!0,BA(this,t)),this};function BA(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Jr.nextTick(jA,t,e))}function jA(t,e){e.reading||(ce("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Ul(t),e.flowing&&!e.reading&&t.read(0)}ye.prototype.pause=function(){return ce("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ce("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ul(t){var e=t._readableState;for(ce("flow",e.flowing);e.flowing&&t.read()!==null;);}ye.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(ce("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(ce("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<Fl.length;s++)t.on(Fl[s],this.emit.bind(this,Fl[s]));return this._read=function(o){ce("wrapped _read",o),i&&(i=!1,t.resume())},this};Object.defineProperty(ye.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});ye._fromList=_p;function _p(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=UA(t,e.buffer,e.decoder),r}function UA(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?WA(t,e):GA(t,e),i}function WA(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 GA(t,e){var r=tn.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 Bl(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Jr.nextTick(zA,e,t))}function zA(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function bp(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Wl=b((y4,vp)=>{"use strict";vp.exports=Ft;var Zs=wr(),Ep=Object.create(Kr());Ep.inherits=Zr();Ep.inherits(Ft,Zs);function $A(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 Ft(t){if(!(this instanceof Ft))return new Ft(t);Zs.call(this,t),this._transformState={afterTransform:$A.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",HA)}function HA(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){Sp(t,e,r)}):Sp(this,null,null)}Ft.prototype.push=function(t,e){return this._transformState.needTransform=!1,Zs.prototype.push.call(this,t,e)};Ft.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};Ft.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)}};Ft.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};Ft.prototype._destroy=function(t,e){var r=this;Zs.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function Sp(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=b((m4,xp)=>{"use strict";xp.exports=rn;var Tp=Wl(),Ap=Object.create(Kr());Ap.inherits=Zr();Ap.inherits(rn,Tp);function rn(t){if(!(this instanceof rn))return new rn(t);Tp.call(this,t)}rn.prototype._transform=function(t,e,r){r(null,t)}});var Op=b((Fe,Qs)=>{var wt=W("stream");process.env.READABLE_STREAM==="disable"&&wt?(Qs.exports=wt,Fe=Qs.exports=wt.Readable,Fe.Readable=wt.Readable,Fe.Writable=wt.Writable,Fe.Duplex=wt.Duplex,Fe.Transform=wt.Transform,Fe.PassThrough=wt.PassThrough,Fe.Stream=wt):(Fe=Qs.exports=Ll(),Fe.Stream=wt||Fe,Fe.Readable=Fe,Fe.Writable=Dl(),Fe.Duplex=wr(),Fe.Transform=Wl(),Fe.PassThrough=Rp())});var Ip=b((_4,Dp)=>{Dp.exports=Op().PassThrough});var Np=b((b4,Cp)=>{var Pp=W("util"),eo=Ip();Cp.exports={Readable:Xs,Writable:Js};Pp.inherits(Xs,eo);Pp.inherits(Js,eo);function Lp(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function Xs(t,e){if(!(this instanceof Xs))return new Xs(t,e);eo.call(this,e),Lp(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 Js(t,e){if(!(this instanceof Js))return new Js(t,e);eo.call(this,e),Lp(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=b((w4,Mp)=>{Mp.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 zl=b((S4,kp)=>{function VA(t){return t}kp.exports=VA});var qp=b((E4,Fp)=>{function YA(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)}Fp.exports=YA});var Up=b((v4,jp)=>{var KA=qp(),Bp=Math.max;function ZA(t,e,r){return e=Bp(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=Bp(i.length-e,0),o=Array(s);++n<s;)o[n]=i[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=i[n];return a[e]=r(o),KA(t,this,a)}}jp.exports=ZA});var Gp=b((T4,Wp)=>{function QA(t){return function(){return t}}Wp.exports=QA});var $l=b((A4,zp)=>{var XA=typeof global=="object"&&global&&global.Object===Object&&global;zp.exports=XA});var ei=b((x4,$p)=>{var JA=$l(),ex=typeof self=="object"&&self&&self.Object===Object&&self,tx=JA||ex||Function("return this")();$p.exports=tx});var to=b((R4,Hp)=>{var rx=ei(),ix=rx.Symbol;Hp.exports=ix});var Zp=b((O4,Kp)=>{var Vp=to(),Yp=Object.prototype,nx=Yp.hasOwnProperty,sx=Yp.toString,nn=Vp?Vp.toStringTag:void 0;function ox(t){var e=nx.call(t,nn),r=t[nn];try{t[nn]=void 0;var i=!0}catch{}var n=sx.call(t);return i&&(e?t[nn]=r:delete t[nn]),n}Kp.exports=ox});var Xp=b((D4,Qp)=>{var ax=Object.prototype,lx=ax.toString;function ux(t){return lx.call(t)}Qp.exports=ux});var sn=b((I4,tg)=>{var Jp=to(),fx=Zp(),cx=Xp(),hx="[object Null]",dx="[object Undefined]",eg=Jp?Jp.toStringTag:void 0;function px(t){return t==null?t===void 0?dx:hx:eg&&eg in Object(t)?fx(t):cx(t)}tg.exports=px});var on=b((P4,rg)=>{function gx(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}rg.exports=gx});var Hl=b((L4,ig)=>{var yx=sn(),mx=on(),_x="[object AsyncFunction]",bx="[object Function]",wx="[object GeneratorFunction]",Sx="[object Proxy]";function Ex(t){if(!mx(t))return!1;var e=yx(t);return e==bx||e==wx||e==_x||e==Sx}ig.exports=Ex});var sg=b((C4,ng)=>{var vx=ei(),Tx=vx["__core-js_shared__"];ng.exports=Tx});var lg=b((N4,ag)=>{var Vl=sg(),og=(function(){var t=/[^.]+$/.exec(Vl&&Vl.keys&&Vl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Ax(t){return!!og&&og in t}ag.exports=Ax});var fg=b((M4,ug)=>{var xx=Function.prototype,Rx=xx.toString;function Ox(t){if(t!=null){try{return Rx.call(t)}catch{}try{return t+""}catch{}}return""}ug.exports=Ox});var hg=b((k4,cg)=>{var Dx=Hl(),Ix=lg(),Px=on(),Lx=fg(),Cx=/[\\^$.*+?()[\]{}|]/g,Nx=/^\[object .+?Constructor\]$/,Mx=Function.prototype,kx=Object.prototype,Fx=Mx.toString,qx=kx.hasOwnProperty,Bx=RegExp("^"+Fx.call(qx).replace(Cx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jx(t){if(!Px(t)||Ix(t))return!1;var e=Dx(t)?Bx:Nx;return e.test(Lx(t))}cg.exports=jx});var pg=b((F4,dg)=>{function Ux(t,e){return t?.[e]}dg.exports=Ux});var an=b((q4,gg)=>{var Wx=hg(),Gx=pg();function zx(t,e){var r=Gx(t,e);return Wx(r)?r:void 0}gg.exports=zx});var mg=b((B4,yg)=>{var $x=an(),Hx=(function(){try{var t=$x(Object,"defineProperty");return t({},"",{}),t}catch{}})();yg.exports=Hx});var wg=b((j4,bg)=>{var Vx=Gp(),_g=mg(),Yx=zl(),Kx=_g?function(t,e){return _g(t,"toString",{configurable:!0,enumerable:!1,value:Vx(e),writable:!0})}:Yx;bg.exports=Kx});var Eg=b((U4,Sg)=>{var Zx=800,Qx=16,Xx=Date.now;function Jx(t){var e=0,r=0;return function(){var i=Xx(),n=Qx-(i-r);if(r=i,n>0){if(++e>=Zx)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}Sg.exports=Jx});var Tg=b((W4,vg)=>{var eR=wg(),tR=Eg(),rR=tR(eR);vg.exports=rR});var ro=b((G4,Ag)=>{var iR=zl(),nR=Up(),sR=Tg();function oR(t,e){return sR(nR(t,e,iR),t+"")}Ag.exports=oR});var io=b((z4,xg)=>{function aR(t,e){return t===e||t!==t&&e!==e}xg.exports=aR});var Yl=b(($4,Rg)=>{var lR=9007199254740991;function uR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=lR}Rg.exports=uR});var no=b((H4,Og)=>{var fR=Hl(),cR=Yl();function hR(t){return t!=null&&cR(t.length)&&!fR(t)}Og.exports=hR});var Kl=b((V4,Dg)=>{var dR=9007199254740991,pR=/^(?:0|[1-9]\d*)$/;function gR(t,e){var r=typeof t;return e=e??dR,!!e&&(r=="number"||r!="symbol"&&pR.test(t))&&t>-1&&t%1==0&&t<e}Dg.exports=gR});var Pg=b((Y4,Ig)=>{var yR=io(),mR=no(),_R=Kl(),bR=on();function wR(t,e,r){if(!bR(r))return!1;var i=typeof e;return(i=="number"?mR(r)&&_R(e,r.length):i=="string"&&e in r)?yR(r[e],t):!1}Ig.exports=wR});var Cg=b((K4,Lg)=>{function SR(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}Lg.exports=SR});var ti=b((Z4,Ng)=>{function ER(t){return t!=null&&typeof t=="object"}Ng.exports=ER});var kg=b((Q4,Mg)=>{var vR=sn(),TR=ti(),AR="[object Arguments]";function xR(t){return TR(t)&&vR(t)==AR}Mg.exports=xR});var Zl=b((X4,Bg)=>{var Fg=kg(),RR=ti(),qg=Object.prototype,OR=qg.hasOwnProperty,DR=qg.propertyIsEnumerable,IR=Fg((function(){return arguments})())?Fg:function(t){return RR(t)&&OR.call(t,"callee")&&!DR.call(t,"callee")};Bg.exports=IR});var Ql=b((J4,jg)=>{var PR=Array.isArray;jg.exports=PR});var Wg=b((e6,Ug)=>{function LR(){return!1}Ug.exports=LR});var Hg=b((ln,ri)=>{var CR=ei(),NR=Wg(),$g=typeof ln=="object"&&ln&&!ln.nodeType&&ln,Gg=$g&&typeof ri=="object"&&ri&&!ri.nodeType&&ri,MR=Gg&&Gg.exports===$g,zg=MR?CR.Buffer:void 0,kR=zg?zg.isBuffer:void 0,FR=kR||NR;ri.exports=FR});var Yg=b((t6,Vg)=>{var qR=sn(),BR=Yl(),jR=ti(),UR="[object Arguments]",WR="[object Array]",GR="[object Boolean]",zR="[object Date]",$R="[object Error]",HR="[object Function]",VR="[object Map]",YR="[object Number]",KR="[object Object]",ZR="[object RegExp]",QR="[object Set]",XR="[object String]",JR="[object WeakMap]",eO="[object ArrayBuffer]",tO="[object DataView]",rO="[object Float32Array]",iO="[object Float64Array]",nO="[object Int8Array]",sO="[object Int16Array]",oO="[object Int32Array]",aO="[object Uint8Array]",lO="[object Uint8ClampedArray]",uO="[object Uint16Array]",fO="[object Uint32Array]",me={};me[rO]=me[iO]=me[nO]=me[sO]=me[oO]=me[aO]=me[lO]=me[uO]=me[fO]=!0;me[UR]=me[WR]=me[eO]=me[GR]=me[tO]=me[zR]=me[$R]=me[HR]=me[VR]=me[YR]=me[KR]=me[ZR]=me[QR]=me[XR]=me[JR]=!1;function cO(t){return jR(t)&&BR(t.length)&&!!me[qR(t)]}Vg.exports=cO});var Xl=b((r6,Kg)=>{function hO(t){return function(e){return t(e)}}Kg.exports=hO});var Qg=b((un,ii)=>{var dO=$l(),Zg=typeof un=="object"&&un&&!un.nodeType&&un,fn=Zg&&typeof ii=="object"&&ii&&!ii.nodeType&&ii,pO=fn&&fn.exports===Zg,Jl=pO&&dO.process,gO=(function(){try{var t=fn&&fn.require&&fn.require("util").types;return t||Jl&&Jl.binding&&Jl.binding("util")}catch{}})();ii.exports=gO});var ty=b((i6,ey)=>{var yO=Yg(),mO=Xl(),Xg=Qg(),Jg=Xg&&Xg.isTypedArray,_O=Jg?mO(Jg):yO;ey.exports=_O});var iy=b((n6,ry)=>{var bO=Cg(),wO=Zl(),SO=Ql(),EO=Hg(),vO=Kl(),TO=ty(),AO=Object.prototype,xO=AO.hasOwnProperty;function RO(t,e){var r=SO(t),i=!r&&wO(t),n=!r&&!i&&EO(t),s=!r&&!i&&!n&&TO(t),o=r||i||n||s,a=o?bO(t.length,String):[],l=a.length;for(var u in t)(e||xO.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||vO(u,l)))&&a.push(u);return a}ry.exports=RO});var sy=b((s6,ny)=>{var OO=Object.prototype;function DO(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||OO;return t===r}ny.exports=DO});var ay=b((o6,oy)=>{function IO(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}oy.exports=IO});var uy=b((a6,ly)=>{var PO=on(),LO=sy(),CO=ay(),NO=Object.prototype,MO=NO.hasOwnProperty;function kO(t){if(!PO(t))return CO(t);var e=LO(t),r=[];for(var i in t)i=="constructor"&&(e||!MO.call(t,i))||r.push(i);return r}ly.exports=kO});var cy=b((l6,fy)=>{var FO=iy(),qO=uy(),BO=no();function jO(t){return BO(t)?FO(t,!0):qO(t)}fy.exports=jO});var py=b((u6,dy)=>{var UO=ro(),WO=io(),GO=Pg(),zO=cy(),hy=Object.prototype,$O=hy.hasOwnProperty,HO=UO(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&GO(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=zO(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||WO(f,hy[u])&&!$O.call(t,u))&&(t[u]=s[u])}return t});dy.exports=HO});var Se=b((f6,gy)=>{"use strict";var eu=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}
13
- `;super(r),this.name="AggregateError",this.errors=e}};gy.exports={AggregateError:eu,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 tu=b((c6,yy)=>{"use strict";yy.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 We=b((h6,by)=>{"use strict";var{format:VO,inspect:so}=tu(),{AggregateError:YO}=Se(),KO=globalThis.AggregateError||YO,ZO=Symbol("kIsNodeError"),QO=["string","function","number","object","Function","Object","boolean","bigint","symbol"],XO=/^([A-Z][a-z0-9]*)+$/,JO="__node_internal_",oo={};function Sr(t,e){if(!t)throw new oo.ERR_INTERNAL_ASSERTION(e)}function my(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 eD(t,e,r){if(typeof e=="function")return Sr(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 Sr(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:VO(e,...r)}function qe(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(eD(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[ZO]=!0,oo[t]=i}function _y(t){let e=JO+t.name;return Object.defineProperty(t,"name",{value:e}),t}function tD(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new KO([e,t],e.message);return r.code=e.code,r}return t||e}var ru=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new oo.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};qe("ERR_ASSERTION","%s",Error);qe("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Sr(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)Sr(typeof l=="string","All expected entries have to be of type string"),QO.includes(l)?n.push(l.toLowerCase()):XO.test(l)?s.push(l):(Sr(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=so(r,{depth:-1});i+=`. Received ${l}`}}else{let l=so(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);qe("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=so(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);qe("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);qe("ERR_MISSING_ARGS",(...t)=>{Sr(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);qe("ERR_OUT_OF_RANGE",(t,e,r)=>{Sr(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=my(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=my(i)),i+="n"}else i=so(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);qe("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);qe("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);qe("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);qe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);qe("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);qe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);qe("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);qe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);qe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);qe("ERR_STREAM_WRITE_AFTER_END","write after end",Error);qe("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);by.exports={AbortError:ru,aggregateTwoErrors:_y(tD),hideStackFrames:_y,codes:oo}});var Dy=b((dn,hn)=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});var Ay=new WeakMap,iu=new WeakMap;function _e(t){let e=Ay.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function wy(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 ni(t,e){Ay.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,xy(n))}}ni.prototype={get type(){return _e(this).event.type},get target(){return _e(this).eventTarget},get currentTarget(){return _e(this).currentTarget},composedPath(){let t=_e(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 _e(this).eventPhase},stopPropagation(){let t=_e(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=_e(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!_e(this).event.bubbles},get cancelable(){return!!_e(this).event.cancelable},preventDefault(){wy(_e(this))},get defaultPrevented(){return _e(this).canceled},get composed(){return!!_e(this).event.composed},get timeStamp(){return _e(this).timeStamp},get srcElement(){return _e(this).eventTarget},get cancelBubble(){return _e(this).stopped},set cancelBubble(t){if(!t)return;let e=_e(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!_e(this).canceled},set returnValue(t){t||wy(_e(this))},initEvent(){}};Object.defineProperty(ni.prototype,"constructor",{value:ni,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(ni.prototype,window.Event.prototype),iu.set(window.Event.prototype,ni));function xy(t){return{get(){return _e(this).event[t]},set(e){_e(this).event[t]=e},configurable:!0,enumerable:!0}}function rD(t){return{value(){let e=_e(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function iD(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?rD(s):xy(s))}}return i}function Ry(t){if(t==null||t===Object.prototype)return ni;let e=iu.get(t);return e==null&&(e=iD(Ry(Object.getPrototypeOf(t)),t),iu.set(t,e)),e}function nD(t,e){let r=Ry(Object.getPrototypeOf(e));return new r(t,e)}function sD(t){return _e(t).immediateStopped}function oD(t,e){_e(t).eventPhase=e}function aD(t,e){_e(t).currentTarget=e}function Sy(t,e){_e(t).passiveListener=e}var Oy=new WeakMap,Ey=1,vy=2,ao=3;function lo(t){return t!==null&&typeof t=="object"}function cn(t){let e=Oy.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function lD(t){return{get(){let r=cn(this).get(t);for(;r!=null;){if(r.listenerType===ao)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!lo(e)&&(e=null);let r=cn(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===ao?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:ao,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function nu(t,e){Object.defineProperty(t,`on${e}`,lD(e))}function Ty(t){function e(){dt.call(this)}e.prototype=Object.create(dt.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)nu(e.prototype,t[r]);return e}function dt(){if(this instanceof dt){Oy.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return Ty(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 Ty(t)}throw new TypeError("Cannot call a class as a function")}dt.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!lo(e))throw new TypeError("'listener' should be a function or an object.");let i=cn(this),n=lo(r),o=(n?!!r.capture:!!r)?Ey:vy,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=cn(this),s=(lo(r)?!!r.capture:!!r)?Ey:vy,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=cn(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=nD(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,Sy(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!==ao&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(sD(n))break;i=i.next}return Sy(n,null),oD(n,0),aD(n,null),!n.defaultPrevented}};Object.defineProperty(dt.prototype,"constructor",{value:dt,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(dt.prototype,window.EventTarget.prototype);dn.defineEventAttribute=nu;dn.EventTarget=dt;dn.default=dt;hn.exports=dt;hn.exports.EventTarget=hn.exports.default=dt;hn.exports.defineEventAttribute=nu});var si=b((gn,pn)=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});var su=Dy(),Zt=class extends su.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=uo.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}};su.defineEventAttribute(Zt.prototype,"abort");function uD(){let t=Object.create(Zt.prototype);return su.EventTarget.call(t),uo.set(t,!1),t}function fD(t){uo.get(t)===!1&&(uo.set(t,!0),t.dispatchEvent({type:"abort"}))}var uo=new WeakMap;Object.defineProperties(Zt.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Zt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Qt=class{constructor(){Py.set(this,uD())}get signal(){return Iy(this)}abort(){fD(Iy(this))}},Py=new WeakMap;function Iy(t){let e=Py.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(Qt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Qt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});gn.AbortController=Qt;gn.AbortSignal=Zt;gn.default=Qt;pn.exports=Qt;pn.exports.AbortController=pn.exports.default=Qt;pn.exports.AbortSignal=Zt});var He=b((d6,au)=>{"use strict";var cD=W("buffer"),{format:hD,inspect:dD}=tu(),{codes:{ERR_INVALID_ARG_TYPE:ou}}=We(),{kResistStopPropagation:pD,AggregateError:gD,SymbolDispose:yD}=Se(),mD=globalThis.AbortSignal||si().AbortSignal,_D=globalThis.AbortController||si().AbortController,bD=Object.getPrototypeOf(async function(){}).constructor,Ly=globalThis.Blob||cD.Blob,wD=typeof Ly<"u"?function(e){return e instanceof Ly}:function(e){return!1},Cy=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new ou(e,"AbortSignal",t)},SD=(t,e)=>{if(typeof t!="function")throw new ou(e,"Function",t)};au.exports={AggregateError:gD,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:hD,inspect:dD,types:{isAsyncFunction(t){return t instanceof bD},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:wD,deprecate(t,e){return t},addAbortListener:W("events").addAbortListener||function(e,r){if(e===void 0)throw new ou("signal","AbortSignal",e);Cy(e,"signal"),SD(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[pD]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[yD](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:mD.any||function(e){if(e.length===1)return e[0];let r=new _D,i=()=>r.abort();return e.forEach(n=>{Cy(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};au.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var ai=b((p6,Gy)=>{"use strict";var{ArrayIsArray:uu,ArrayPrototypeIncludes:Fy,ArrayPrototypeJoin:qy,ArrayPrototypeMap:ED,NumberIsInteger:fu,NumberIsNaN:vD,NumberMAX_SAFE_INTEGER:TD,NumberMIN_SAFE_INTEGER:AD,NumberParseInt:xD,ObjectPrototypeHasOwnProperty:RD,RegExpPrototypeExec:By,String:OD,StringPrototypeToUpperCase:DD,StringPrototypeTrim:ID}=Se(),{hideStackFrames:st,codes:{ERR_SOCKET_BAD_PORT:PD,ERR_INVALID_ARG_TYPE:Ge,ERR_INVALID_ARG_VALUE:oi,ERR_OUT_OF_RANGE:Er,ERR_UNKNOWN_SIGNAL:Ny}}=We(),{normalizeEncoding:LD}=He(),{isAsyncFunction:CD,isArrayBufferView:ND}=He().types,My={};function MD(t){return t===(t|0)}function kD(t){return t===t>>>0}var FD=/^[0-7]+$/,qD="must be a 32-bit unsigned integer or an octal string";function BD(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(By(FD,t)===null)throw new oi(e,t,qD);t=xD(t,8)}return jy(t,e),t}var jD=st((t,e,r=AD,i=TD)=>{if(typeof t!="number")throw new Ge(e,"number",t);if(!fu(t))throw new Er(e,"an integer",t);if(t<r||t>i)throw new Er(e,`>= ${r} && <= ${i}`,t)}),UD=st((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Ge(e,"number",t);if(!fu(t))throw new Er(e,"an integer",t);if(t<r||t>i)throw new Er(e,`>= ${r} && <= ${i}`,t)}),jy=st((t,e,r=!1)=>{if(typeof t!="number")throw new Ge(e,"number",t);if(!fu(t))throw new Er(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new Er(e,`>= ${i} && <= ${n}`,t)});function cu(t,e){if(typeof t!="string")throw new Ge(e,"string",t)}function WD(t,e,r=void 0,i){if(typeof t!="number")throw new Ge(e,"number",t);if(r!=null&&t<r||i!=null&&t>i||(r!=null||i!=null)&&vD(t))throw new Er(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var GD=st((t,e,r)=>{if(!Fy(r,t)){let n="must be one of: "+qy(ED(r,s=>typeof s=="string"?`'${s}'`:OD(s)),", ");throw new oi(e,t,n)}});function Uy(t,e){if(typeof t!="boolean")throw new Ge(e,"boolean",t)}function lu(t,e,r){return t==null||!RD(t,e)?r:t[e]}var zD=st((t,e,r=null)=>{let i=lu(r,"allowArray",!1),n=lu(r,"allowFunction",!1);if(!lu(r,"nullable",!1)&&t===null||!i&&uu(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Ge(e,"Object",t)}),$D=st((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Ge(e,"a dictionary",t)}),fo=st((t,e,r=0)=>{if(!uu(t))throw new Ge(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new oi(e,t,i)}});function HD(t,e){fo(t,e);for(let r=0;r<t.length;r++)cu(t[r],`${e}[${r}]`)}function VD(t,e){fo(t,e);for(let r=0;r<t.length;r++)Uy(t[r],`${e}[${r}]`)}function YD(t,e){fo(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new Ge(n,"AbortSignal",i);Wy(i,n)}}function KD(t,e="signal"){if(cu(t,e),My[t]===void 0)throw My[DD(t)]!==void 0?new Ny(t+" (signals must use all capital letters)"):new Ny(t)}var ZD=st((t,e="buffer")=>{if(!ND(t))throw new Ge(e,["Buffer","TypedArray","DataView"],t)});function QD(t,e){let r=LD(e),i=t.length;if(r==="hex"&&i%2!==0)throw new oi("encoding",e,`is invalid for data of length ${i}`)}function XD(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&ID(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new PD(e,t,r);return t|0}var Wy=st((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Ge(e,"AbortSignal",t)}),JD=st((t,e)=>{if(typeof t!="function")throw new Ge(e,"Function",t)}),eI=st((t,e)=>{if(typeof t!="function"||CD(t))throw new Ge(e,"Function",t)}),tI=st((t,e)=>{if(t!==void 0)throw new Ge(e,"undefined",t)});function rI(t,e,r){if(!Fy(r,t))throw new Ge(e,`('${qy(r,"|")}')`,t)}var iI=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function ky(t,e){if(typeof t>"u"||!By(iI,t))throw new oi(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function nI(t){if(typeof t=="string")return ky(t,"hints"),t;if(uu(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];ky(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new oi("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}Gy.exports={isInt32:MD,isUint32:kD,parseFileMode:BD,validateArray:fo,validateStringArray:HD,validateBooleanArray:VD,validateAbortSignalArray:YD,validateBoolean:Uy,validateBuffer:ZD,validateDictionary:$D,validateEncoding:QD,validateFunction:JD,validateInt32:UD,validateInteger:jD,validateNumber:WD,validateObject:zD,validateOneOf:GD,validatePlainFunction:eI,validatePort:XD,validateSignalName:KD,validateString:cu,validateUint32:jy,validateUndefined:tI,validateUnion:rI,validateAbortSignal:Wy,validateLinkHeaderValue:nI}});var Xt=b((g6,zy)=>{zy.exports=global.process});var Et=b((y6,sm)=>{"use strict";var{SymbolAsyncIterator:$y,SymbolIterator:Hy,SymbolFor:vr}=Se(),Vy=vr("nodejs.stream.destroyed"),Yy=vr("nodejs.stream.errored"),hu=vr("nodejs.stream.readable"),du=vr("nodejs.stream.writable"),Ky=vr("nodejs.stream.disturbed"),sI=vr("nodejs.webstream.isClosedPromise"),oI=vr("nodejs.webstream.controllerErrorFunction");function co(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 ho(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 St(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function Zy(t){return!!(t&&!St(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function Qy(t){return!!(t&&!St(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function Xy(t){return!!(t&&!St(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function lI(t){return Zy(t)||Qy(t)||Xy(t)}function uI(t,e){return t==null?!1:e===!0?typeof t[$y]=="function":e===!1?typeof t[Hy]=="function":typeof t[$y]=="function"||typeof t[Hy]=="function"}function po(t){if(!St(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[Vy]||i!=null&&i.destroyed)}function Jy(t){if(!ho(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 fI(t,e){if(!ho(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 cI(t){if(!co(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 em(t,e){if(!co(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 tm(t){return t&&t[hu]!=null?t[hu]:typeof t?.readable!="boolean"?null:po(t)?!1:co(t)&&t.readable&&!em(t)}function rm(t){return t&&t[du]!=null?t[du]:typeof t?.writable!="boolean"?null:po(t)?!1:ho(t)&&t.writable&&!Jy(t)}function hI(t,e){return St(t)?po(t)?!0:!(e?.readable!==!1&&tm(t)||e?.writable!==!1&&rm(t)):null}function dI(t){var e,r;return St(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 pI(t){var e,r;return St(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 gI(t){if(!St(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"&&im(t)?t._closed:null}function im(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function nm(t){return typeof t._sent100=="boolean"&&im(t)}function yI(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 mI(t){if(!St(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&nm(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function _I(t){var e;return!!(t&&((e=t[Ky])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function bI(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[Yy])!==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))}sm.exports={isDestroyed:po,kIsDestroyed:Vy,isDisturbed:_I,kIsDisturbed:Ky,isErrored:bI,kIsErrored:Yy,isReadable:tm,kIsReadable:hu,kIsClosedPromise:sI,kControllerErrorFunction:oI,kIsWritable:du,isClosed:gI,isDuplexNodeStream:aI,isFinished:hI,isIterable:uI,isReadableNodeStream:co,isReadableStream:Zy,isReadableEnded:cI,isReadableFinished:em,isReadableErrored:pI,isNodeStream:St,isWebStream:lI,isWritable:rm,isWritableNodeStream:ho,isWritableStream:Qy,isWritableEnded:Jy,isWritableFinished:fI,isWritableErrored:dI,isServerRequest:yI,isServerResponse:nm,willEmitClose:mI,isTransformStream:Xy}});var qt=b((m6,_u)=>{"use strict";var Jt=Xt(),{AbortError:pm,codes:wI}=We(),{ERR_INVALID_ARG_TYPE:SI,ERR_STREAM_PREMATURE_CLOSE:om}=wI,{kEmptyObject:gu,once:yu}=He(),{validateAbortSignal:EI,validateFunction:vI,validateObject:TI,validateBoolean:AI}=ai(),{Promise:xI,PromisePrototypeThen:RI,SymbolDispose:gm}=Se(),{isClosed:OI,isReadable:am,isReadableNodeStream:pu,isReadableStream:DI,isReadableFinished:lm,isReadableErrored:um,isWritable:fm,isWritableNodeStream:cm,isWritableStream:II,isWritableFinished:hm,isWritableErrored:dm,isNodeStream:PI,willEmitClose:LI,kIsClosedPromise:CI}=Et(),li;function NI(t){return t.setHeader&&typeof t.abort=="function"}var mu=()=>{};function ym(t,e,r){var i,n;if(arguments.length===2?(r=e,e=gu):e==null?e=gu:TI(e,"options"),vI(r,"callback"),EI(e.signal,"options.signal"),r=yu(r),DI(t)||II(t))return MI(t,e,r);if(!PI(t))throw new SI("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:pu(t),o=(n=e.writable)!==null&&n!==void 0?n:cm(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||g()},f=LI(t)&&pu(t)===s&&cm(t)===o,h=hm(t,!1),g=()=>{h=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||y)&&r.call(t)},y=lm(t,!1),E=()=>{y=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||h)&&r.call(t)},m=q=>{r.call(t,q)},v=OI(t),S=()=>{v=!0;let q=dm(t)||um(t);if(q&&typeof q!="boolean")return r.call(t,q);if(s&&!y&&pu(t,!0)&&!lm(t,!1))return r.call(t,new om);if(o&&!h&&!hm(t,!1))return r.call(t,new om);r.call(t)},R=()=>{v=!0;let q=dm(t)||um(t);if(q&&typeof q!="boolean")return r.call(t,q);r.call(t)},L=()=>{t.req.on("finish",g)};NI(t)?(t.on("complete",g),f||t.on("abort",S),t.req?L():t.on("request",L)):o&&!a&&(t.on("end",u),t.on("close",u)),!f&&typeof t.aborted=="boolean"&&t.on("aborted",S),t.on("end",E),t.on("finish",g),e.error!==!1&&t.on("error",m),t.on("close",S),v?Jt.nextTick(S):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?f||Jt.nextTick(R):(!s&&(!f||am(t))&&(h||fm(t)===!1)||!o&&(!f||fm(t))&&(y||am(t)===!1)||l&&t.req&&t.aborted)&&Jt.nextTick(R);let D=()=>{r=mu,t.removeListener("aborted",S),t.removeListener("complete",g),t.removeListener("abort",S),t.removeListener("request",L),t.req&&t.req.removeListener("finish",g),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",g),t.removeListener("end",E),t.removeListener("error",m),t.removeListener("close",S)};if(e.signal&&!v){let q=()=>{let Z=r;D(),Z.call(t,new pm(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Jt.nextTick(q);else{li=li||He().addAbortListener;let Z=li(e.signal,q),P=r;r=yu((...B)=>{Z[gm](),P.apply(t,B)})}}return D}function MI(t,e,r){let i=!1,n=mu;if(e.signal)if(n=()=>{i=!0,r.call(t,new pm(void 0,{cause:e.signal.reason}))},e.signal.aborted)Jt.nextTick(n);else{li=li||He().addAbortListener;let o=li(e.signal,n),a=r;r=yu((...l)=>{o[gm](),a.apply(t,l)})}let s=(...o)=>{i||Jt.nextTick(()=>r.apply(t,o))};return RI(t[CI].promise,s,s),mu}function kI(t,e){var r;let i=!1;return e===null&&(e=gu),(r=e)!==null&&r!==void 0&&r.cleanup&&(AI(e.cleanup,"cleanup"),i=e.cleanup),new xI((n,s)=>{let o=ym(t,e,a=>{i&&o(),a?s(a):n()})})}_u.exports=ym;_u.exports.finished=kI});var Tr=b((_6,Tm)=>{"use strict";var vt=Xt(),{aggregateTwoErrors:FI,codes:{ERR_MULTIPLE_CALLBACK:qI},AbortError:BI}=We(),{Symbol:bm}=Se(),{kIsDestroyed:jI,isDestroyed:UI,isFinished:WI,isServerRequest:GI}=Et(),wm=bm("kDestroy"),bu=bm("kConstruct");function Sm(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function zI(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):(Sm(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?mm(this,t,e):this.once(wm,function(s){mm(this,FI(s,t),e)}),this)}function mm(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;Sm(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?vt.nextTick($I,t,s):vt.nextTick(Em,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function $I(t,e){wu(t,e),Em(t)}function Em(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 wu(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 HI(){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 Su(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?vt.nextTick(wu,t,e):wu(t,e))}function VI(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(bu,e),!(t.listenerCount(bu)>1)&&vt.nextTick(YI,t)}function YI(t){let e=!1;function r(i){if(e){Su(t,i??new qI);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(wm,i):i?Su(t,i,!0):vt.nextTick(KI,t)}try{t._construct(i=>{vt.nextTick(r,i)})}catch(i){vt.nextTick(r,i)}}function KI(t){t.emit(bu)}function _m(t){return t?.setHeader&&typeof t.abort=="function"}function vm(t){t.emit("close")}function ZI(t,e){t.emit("error",e),vt.nextTick(vm,t)}function QI(t,e){!t||UI(t)||(!e&&!WI(t)&&(e=new BI),GI(t)?(t.socket=null,t.destroy(e)):_m(t)?t.abort():_m(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?vt.nextTick(ZI,t,e):vt.nextTick(vm,t),t.destroyed||(t[jI]=!0))}Tm.exports={construct:VI,destroyer:QI,destroy:zI,undestroy:HI,errorOrDestroy:Su}});var mo=b((b6,xm)=>{"use strict";var{ArrayIsArray:XI,ObjectSetPrototypeOf:Am}=Se(),{EventEmitter:go}=W("events");function yo(t){go.call(this,t)}Am(yo.prototype,go.prototype);Am(yo,go);yo.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(),go.listenerCount(this,"error")===0&&this.emit("error",f)}Eu(r,"error",l),Eu(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 Eu(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):XI(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}xm.exports={Stream:yo,prependListener:Eu}});var yn=b((w6,_o)=>{"use strict";var{SymbolDispose:JI}=Se(),{AbortError:Rm,codes:eP}=We(),{isNodeStream:Om,isWebStream:tP,kControllerErrorFunction:rP}=Et(),iP=qt(),{ERR_INVALID_ARG_TYPE:Dm}=eP,vu,nP=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new Dm(e,"AbortSignal",t)};_o.exports.addAbortSignal=function(e,r){if(nP(e,"signal"),!Om(r)&&!tP(r))throw new Dm("stream",["ReadableStream","WritableStream","Stream"],r);return _o.exports.addAbortSignalNoValidate(e,r)};_o.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=Om(e)?()=>{e.destroy(new Rm(void 0,{cause:t.reason}))}:()=>{e[rP](new Rm(void 0,{cause:t.reason}))};if(t.aborted)r();else{vu=vu||He().addAbortListener;let i=vu(t,r);iP(e,i[JI])}return e}});var Lm=b((E6,Pm)=>{"use strict";var{StringPrototypeSlice:Im,SymbolIterator:sP,TypedArrayPrototypeSet:bo,Uint8Array:oP}=Se(),{Buffer:Tu}=W("buffer"),{inspect:aP}=He();Pm.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 Tu.alloc(0);let r=Tu.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)bo(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}*[sP](){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+=Im(s,0,e),this.head=i,i.data=Im(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Tu.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)bo(r,o,i-e),e-=o.length;else{e===o.length?(bo(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(bo(r,new oP(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 aP(this,{...r,depth:0,customInspect:!1})}}});var mn=b((v6,km)=>{"use strict";var{MathFloor:lP,NumberIsInteger:uP}=Se(),{validateInteger:fP}=ai(),{ERR_INVALID_ARG_VALUE:cP}=We().codes,Cm=16*1024,Nm=16;function hP(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Mm(t){return t?Nm:Cm}function dP(t,e){fP(e,"value",0),t?Nm=e:Cm=e}function pP(t,e,r,i){let n=hP(e,i,r);if(n!=null){if(!uP(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new cP(s,n)}return lP(n)}return Mm(t.objectMode)}km.exports={getHighWaterMark:pP,getDefaultHighWaterMark:Mm,setDefaultHighWaterMark:dP}});var Bm=b(qm=>{"use strict";var xu=l1().Buffer,Fm=xu.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 gP(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 yP(t){var e=gP(t);if(typeof e!="string"&&(xu.isEncoding===Fm||!Fm(t)))throw new Error("Unknown encoding: "+t);return e||t}qm.StringDecoder=_n;function _n(t){this.encoding=yP(t);var e;switch(this.encoding){case"utf16le":this.text=EP,this.end=vP,e=4;break;case"utf8":this.fillLast=bP,e=4;break;case"base64":this.text=TP,this.end=AP,e=3;break;default:this.write=xP,this.end=RP;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=xu.allocUnsafe(e)}_n.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||""};_n.prototype.end=SP;_n.prototype.text=wP;_n.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 Au(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function mP(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Au(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Au(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Au(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function _P(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 bP(t){var e=this.lastTotal-this.lastNeed,r=_P(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 wP(t,e){var r=mP(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 SP(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function EP(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 vP(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 TP(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 AP(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function xP(t){return t.toString(this.encoding)}function RP(t){return t&&t.length?this.write(t):""}});var Ru=b((A6,Gm)=>{"use strict";var jm=Xt(),{PromisePrototypeThen:OP,SymbolAsyncIterator:Um,SymbolIterator:Wm}=Se(),{Buffer:DP}=W("buffer"),{ERR_INVALID_ARG_TYPE:IP,ERR_STREAM_NULL_VALUES:PP}=We().codes;function LP(t,e,r){let i;if(typeof e=="string"||e instanceof DP)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[Um])n=!0,i=e[Um]();else if(e&&e[Wm])n=!1,i=e[Wm]();else throw new IP("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){OP(a(u),()=>jm.nextTick(f,u),h=>jm.nextTick(f,h||u))};async function a(u){let f=u!=null,h=typeof i.throw=="function";if(f&&h){let{value:g,done:y}=await i.throw(u);if(await g,y)return}if(typeof i.return=="function"){let{value:g}=await i.return();await g}}async function l(){for(;;){try{let{value:u,done:f}=n?await i.next():i.next();if(f)s.push(null);else{let h=u&&typeof u.then=="function"?await u:u;if(h===null)throw o=!1,new PP;if(s.push(h))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}Gm.exports=LP});var wn=b((x6,a_)=>{"use strict";var pt=Xt(),{ArrayPrototypeIndexOf:CP,NumberIsInteger:NP,NumberIsNaN:MP,NumberParseInt:kP,ObjectDefineProperties:Mu,ObjectKeys:FP,ObjectSetPrototypeOf:Hm,Promise:Vm,SafeSet:qP,SymbolAsyncDispose:BP,SymbolAsyncIterator:jP,Symbol:UP}=Se();a_.exports=Y;Y.ReadableState=vo;var{EventEmitter:WP}=W("events"),{Stream:er,prependListener:GP}=mo(),{Buffer:Ou}=W("buffer"),{addAbortSignal:zP}=yn(),Ym=qt(),X=He().debuglog("stream",t=>{X=t}),$P=Lm(),ci=Tr(),{getHighWaterMark:HP,getDefaultHighWaterMark:VP}=mn(),{aggregateTwoErrors:zm,codes:{ERR_INVALID_ARG_TYPE:YP,ERR_METHOD_NOT_IMPLEMENTED:KP,ERR_OUT_OF_RANGE:ZP,ERR_STREAM_PUSH_AFTER_EOF:QP,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:XP},AbortError:JP}=We(),{validateObject:eL}=ai(),Ar=UP("kPaused"),{StringDecoder:Km}=Bm(),tL=Ru();Hm(Y.prototype,er.prototype);Hm(Y,er);var Du=()=>{},{errorOrDestroy:ui}=ci,fi=1,rL=2,Zm=4,bn=8,Qm=16,wo=32,So=64,Xm=128,iL=256,nL=512,sL=1024,Cu=2048,Nu=4096,oL=8192,aL=16384,lL=32768,Jm=65536,uL=1<<17,fL=1<<18;function De(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}Mu(vo.prototype,{objectMode:De(fi),ended:De(rL),endEmitted:De(Zm),reading:De(bn),constructed:De(Qm),sync:De(wo),needReadable:De(So),emittedReadable:De(Xm),readableListening:De(iL),resumeScheduled:De(nL),errorEmitted:De(sL),emitClose:De(Cu),autoDestroy:De(Nu),destroyed:De(oL),closed:De(aL),closeEmitted:De(lL),multiAwaitDrain:De(Jm),readingMore:De(uL),dataEmitted:De(fL)});function vo(t,e,r){typeof r!="boolean"&&(r=e instanceof Tt()),this.state=Cu|Nu|Qm|wo,t&&t.objectMode&&(this.state|=fi),r&&t&&t.readableObjectMode&&(this.state|=fi),this.highWaterMark=t?HP(this,t,"readableHighWaterMark",r):VP(!1),this.buffer=new $P,this.length=0,this.pipes=[],this.flowing=null,this[Ar]=null,t&&t.emitClose===!1&&(this.state&=~Cu),t&&t.autoDestroy===!1&&(this.state&=~Nu),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Km(t.encoding),this.encoding=t.encoding)}function Y(t){if(!(this instanceof Y))return new Y(t);let e=this instanceof Tt();this._readableState=new vo(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&&zP(t.signal,this)),er.call(this,t),ci.construct(this,()=>{this._readableState.needReadable&&Eo(this,this._readableState)})}Y.prototype.destroy=ci.destroy;Y.prototype._undestroy=ci.undestroy;Y.prototype._destroy=function(t,e){e(t)};Y.prototype[WP.captureRejectionSymbol]=function(t){this.destroy(t)};Y.prototype[BP]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new JP,this.destroy(t)),new Vm((e,r)=>Ym(this,i=>i&&i!==t?r(i):e(null)))};Y.prototype.push=function(t,e){return e_(this,t,e,!1)};Y.prototype.unshift=function(t,e){return e_(this,t,e,!0)};function e_(t,e,r,i){X("readableAddChunk",e);let n=t._readableState,s;if((n.state&fi)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=Ou.from(e,r).toString(n.encoding):(e=Ou.from(e,r),r=""))):e instanceof Ou?r="":er._isUint8Array(e)?(e=er._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new YP("chunk",["string","Buffer","Uint8Array"],e))),s)ui(t,s);else if(e===null)n.state&=~bn,dL(t,n);else if((n.state&fi)!==0||e&&e.length>0)if(i)if((n.state&Zm)!==0)ui(t,new XP);else{if(n.destroyed||n.errored)return!1;Iu(t,n,e,!0)}else if(n.ended)ui(t,new QP);else{if(n.destroyed||n.errored)return!1;n.state&=~bn,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?Iu(t,n,e,!1):Eo(t,n)):Iu(t,n,e,!1)}else i||(n.state&=~bn,Eo(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&Jm)!==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&So)!==0&&To(t)),Eo(t,e)}Y.prototype.isPaused=function(){let t=this._readableState;return t[Ar]===!0||t.flowing===!1};Y.prototype.setEncoding=function(t){let e=new Km(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 cL=1073741824;function hL(t){if(t>cL)throw new ZP("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function $m(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&fi)!==0?1:MP(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}Y.prototype.read=function(t){X("read",t),t===void 0?t=NaN:NP(t)||(t=kP(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=hL(t)),t!==0&&(e.state&=~Xm),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return X("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Pu(this):To(this),null;if(t=$m(t,e),t===0&&e.ended)return e.length===0&&Pu(this),null;let i=(e.state&So)!==0;if(X("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,X("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,X("reading, ended or constructing",i);else if(i){X("do read"),e.state|=bn|wo,e.length===0&&(e.state|=So);try{this._read(e.highWaterMark)}catch(s){ui(this,s)}e.state&=~wo,e.reading||(t=$m(r,e))}let n;return t>0?n=s_(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&&Pu(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function dL(t,e){if(X("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?To(t):(e.needReadable=!1,e.emittedReadable=!0,t_(t))}}function To(t){let e=t._readableState;X("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(X("emitReadable",e.flowing),e.emittedReadable=!0,pt.nextTick(t_,t))}function t_(t){let e=t._readableState;X("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,i_(t)}function Eo(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,pt.nextTick(pL,t,e))}function pL(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(X("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}Y.prototype._read=function(t){throw new KP("_read()")};Y.prototype.pipe=function(t,e){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new qP(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),X("pipe count=%d opts=%j",i.pipes.length,e);let s=(!e||e.end!==!1)&&t!==pt.stdout&&t!==pt.stderr?a:v;i.endEmitted?pt.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(S,R){X("onunpipe"),S===r&&R&&R.hasUnpiped===!1&&(R.hasUnpiped=!0,f())}function a(){X("onend"),t.end()}let l,u=!1;function f(){X("cleanup"),t.removeListener("close",E),t.removeListener("finish",m),l&&t.removeListener("drain",l),t.removeListener("error",y),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",v),r.removeListener("data",g),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function h(){u||(i.pipes.length===1&&i.pipes[0]===t?(X("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(X("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=gL(r,t),t.on("drain",l))}r.on("data",g);function g(S){X("ondata");let R=t.write(S);X("dest.write",R),R===!1&&h()}function y(S){if(X("onerror",S),v(),t.removeListener("error",y),t.listenerCount("error")===0){let R=t._writableState||t._readableState;R&&!R.errorEmitted?ui(t,S):t.emit("error",S)}}GP(t,"error",y);function E(){t.removeListener("finish",m),v()}t.once("close",E);function m(){X("onfinish"),t.removeListener("close",E),v()}t.once("finish",m);function v(){X("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?h():i.flowing||(X("pipe resume"),r.resume()),t};function gL(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(X("pipeOnDrain",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(X("pipeOnDrain",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}Y.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=CP(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};Y.prototype.on=function(t,e){let r=er.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,X("on readable",i.length,i.reading),i.length?To(this):i.reading||pt.nextTick(yL,this)),r};Y.prototype.addListener=Y.prototype.on;Y.prototype.removeListener=function(t,e){let r=er.prototype.removeListener.call(this,t,e);return t==="readable"&&pt.nextTick(r_,this),r};Y.prototype.off=Y.prototype.removeListener;Y.prototype.removeAllListeners=function(t){let e=er.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&pt.nextTick(r_,this),e};function r_(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[Ar]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function yL(t){X("readable nexttick read 0"),t.read(0)}Y.prototype.resume=function(){let t=this._readableState;return t.flowing||(X("resume"),t.flowing=!t.readableListening,mL(this,t)),t[Ar]=!1,this};function mL(t,e){e.resumeScheduled||(e.resumeScheduled=!0,pt.nextTick(_L,t,e))}function _L(t,e){X("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),i_(t),e.flowing&&!e.reading&&t.read(0)}Y.prototype.pause=function(){return X("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(X("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Ar]=!0,this};function i_(t){let e=t._readableState;for(X("flow",e.flowing);e.flowing&&t.read()!==null;);}Y.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=>{ui(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=FP(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};Y.prototype[jP]=function(){return n_(this)};Y.prototype.iterator=function(t){return t!==void 0&&eL(t,"options"),n_(this,t)};function n_(t,e){typeof t.read!="function"&&(t=Y.wrap(t,{objectMode:!0}));let r=bL(t,e);return r.stream=t,r}async function*bL(t,e){let r=Du;function i(o){this===t?(r(),r=Du):r=o}t.on("readable",i);let n,s=Ym(t,{writable:!1},o=>{n=o?zm(n,o):null,r(),r=Du});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 Vm(i)}}}catch(o){throw n=zm(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?ci.destroyer(t,null):(t.off("readable",i),s())}}Mu(Y.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}}});Mu(vo.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Ar]!==!1},set(t){this[Ar]=!!t}}});Y._fromList=s_;function s_(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 Pu(t){let e=t._readableState;X("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,pt.nextTick(wL,e,t))}function wL(t,e){if(X("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)pt.nextTick(SL,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function SL(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}Y.from=function(t,e){return tL(Y,t,e)};var Lu;function o_(){return Lu===void 0&&(Lu={}),Lu}Y.fromWeb=function(t,e){return o_().newStreamReadableFromReadableStream(t,e)};Y.toWeb=function(t,e){return o_().newReadableStreamFromStreamReadable(t,e)};Y.wrap=function(t,e){var r,i;return new Y({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){ci.destroyer(t,n),s(n)}}).wrap(t)}});var Do=b((R6,b_)=>{"use strict";var xr=Xt(),{ArrayPrototypeSlice:f_,Error:EL,FunctionPrototypeSymbolHasInstance:c_,ObjectDefineProperty:h_,ObjectDefineProperties:vL,ObjectSetPrototypeOf:d_,StringPrototypeToLowerCase:TL,Symbol:AL,SymbolHasInstance:xL}=Se();b_.exports=ve;ve.WritableState=vn;var{EventEmitter:RL}=W("events"),Sn=mo().Stream,{Buffer:Ao}=W("buffer"),Oo=Tr(),{addAbortSignal:OL}=yn(),{getHighWaterMark:DL,getDefaultHighWaterMark:IL}=mn(),{ERR_INVALID_ARG_TYPE:PL,ERR_METHOD_NOT_IMPLEMENTED:LL,ERR_MULTIPLE_CALLBACK:p_,ERR_STREAM_CANNOT_PIPE:CL,ERR_STREAM_DESTROYED:En,ERR_STREAM_ALREADY_FINISHED:NL,ERR_STREAM_NULL_VALUES:ML,ERR_STREAM_WRITE_AFTER_END:kL,ERR_UNKNOWN_ENCODING:g_}=We().codes,{errorOrDestroy:hi}=Oo;d_(ve.prototype,Sn.prototype);d_(ve,Sn);function qu(){}var di=AL("kOnFinished");function vn(t,e,r){typeof r!="boolean"&&(r=e instanceof Tt()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?DL(this,t,"writableHighWaterMark",r):IL(!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=qL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Ro(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[di]=[]}function Ro(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}vn.prototype.getBuffer=function(){return f_(this.buffered,this.bufferedIndex)};h_(vn.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ve(t){let e=this instanceof Tt();if(!e&&!c_(ve,this))return new ve(t);this._writableState=new vn(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&&OL(t.signal,this)),Sn.call(this,t),Oo.construct(this,()=>{let r=this._writableState;r.writing||ju(this,r),Uu(this,r)})}h_(ve,xL,{__proto__:null,value:function(t){return c_(this,t)?!0:this!==ve?!1:t&&t._writableState instanceof vn}});ve.prototype.pipe=function(){hi(this,new CL)};function y_(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"&&!Ao.isEncoding(r))throw new g_(r);typeof i!="function"&&(i=qu)}if(e===null)throw new ML;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=Ao.from(e,r),r="buffer");else if(e instanceof Ao)r="buffer";else if(Sn._isUint8Array(e))e=Sn._uint8ArrayToBuffer(e),r="buffer";else throw new PL("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new kL:n.destroyed&&(s=new En("write")),s?(xr.nextTick(i,s),hi(t,s,!0),s):(n.pendingcb++,FL(t,n,e,r,i))}ve.prototype.write=function(t,e,r){return y_(this,t,e,r)===!0};ve.prototype.cork=function(){this._writableState.corked++};ve.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||ju(this,t))};ve.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=TL(e)),!Ao.isEncoding(e))throw new g_(e);return this._writableState.defaultEncoding=e,this};function FL(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!==qu&&(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 l_(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new En("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function u_(t,e,r,i){--e.pendingcb,i(r),Bu(e),hi(t,r)}function qL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){hi(t,new p_);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?xr.nextTick(u_,t,r,e,n):u_(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&ju(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},xr.nextTick(BL,r.afterWriteTickInfo)):m_(t,r,1,n))}function BL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,m_(t,e,r,i)}function m_(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&&Bu(e),Uu(t,e)}function Bu(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 En("write"))}let r=t[di].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new En("end"))}Ro(t)}function ju(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?qu:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:f_(r,o);l.allBuffers=e.allBuffers,l_(t,e,!0,e.length,l,"",a),Ro(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;l_(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?Ro(e):o>256?(r.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}ve.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new LL("_write()")};ve.prototype._writev=null;ve.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=y_(this,t,e);s instanceof EL&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,Uu(this,i,!0),i.ended=!0):i.finished?n=new NL("end"):i.destroyed&&(n=new En("end"))),typeof r=="function"&&(n||i.finished?xr.nextTick(r,n):i[di].push(r)),this};function xo(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 jL(t,e){let r=!1;function i(n){if(r){hi(t,n??p_());return}if(r=!0,e.pendingcb--,n){let s=e[di].splice(0);for(let o=0;o<s.length;o++)s[o](n);hi(t,n,e.sync)}else xo(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,xr.nextTick(Fu,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function UL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,jL(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Uu(t,e,r){xo(e)&&(UL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,xr.nextTick((i,n)=>{xo(n)?Fu(i,n):n.pendingcb--},t,e)):xo(e)&&(e.pendingcb++,Fu(t,e))))}function Fu(t,e){e.pendingcb--,e.finished=!0;let r=e[di].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()}}vL(ve.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 WL=Oo.destroy;ve.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[di].length)&&xr.nextTick(Bu,r),WL.call(this,t,e),this};ve.prototype._undestroy=Oo.undestroy;ve.prototype._destroy=function(t,e){e(t)};ve.prototype[RL.captureRejectionSymbol]=function(t){this.destroy(t)};var ku;function __(){return ku===void 0&&(ku={}),ku}ve.fromWeb=function(t,e){return __().newStreamWritableFromWritableStream(t,e)};ve.toWeb=function(t){return __().newWritableStreamFromStreamWritable(t)}});var N_=b((O6,C_)=>{var Wu=Xt(),GL=W("buffer"),{isReadable:zL,isWritable:$L,isIterable:w_,isNodeStream:HL,isReadableNodeStream:S_,isWritableNodeStream:E_,isDuplexNodeStream:VL,isReadableStream:v_,isWritableStream:T_}=Et(),A_=qt(),{AbortError:P_,codes:{ERR_INVALID_ARG_TYPE:YL,ERR_INVALID_RETURN_VALUE:x_}}=We(),{destroyer:gi}=Tr(),KL=Tt(),L_=wn(),ZL=Do(),{createDeferredPromise:R_}=He(),O_=Ru(),D_=globalThis.Blob||GL.Blob,QL=typeof D_<"u"?function(e){return e instanceof D_}:function(e){return!1},XL=globalThis.AbortController||si().AbortController,{FunctionPrototypeCall:I_}=Se(),tr=class extends KL{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)}};C_.exports=function t(e,r){if(VL(e))return e;if(S_(e))return pi({readable:e});if(E_(e))return pi({writable:e});if(HL(e))return pi({writable:!1,readable:!1});if(v_(e))return pi({readable:L_.fromWeb(e)});if(T_(e))return pi({writable:ZL.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=JL(e);if(w_(n))return O_(tr,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=I_(l,n,h=>{if(h!=null)throw new x_("nully","body",h)},h=>{gi(u,h)});return u=new tr({objectMode:!0,readable:!1,write:s,final(h){o(async()=>{try{await f,Wu.nextTick(h,null)}catch(g){Wu.nextTick(h,g)}})},destroy:a})}throw new x_("Iterable, AsyncIterable or AsyncFunction",r,n)}if(QL(e))return t(e.arrayBuffer());if(w_(e))return O_(tr,e,{objectMode:!0,writable:!1});if(v_(e?.readable)&&T_(e?.writable))return tr.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?S_(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?E_(e?.writable)?e?.writable:t(e.writable):void 0;return pi({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return I_(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{gi(n,s)}),n=new tr({objectMode:!0,writable:!1,read(){}})}throw new YL(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function JL(t){let{promise:e,resolve:r}=R_(),i=new XL,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(Wu.nextTick(u),l)return;if(n.aborted)throw new P_(void 0,{cause:n.reason});({promise:e,resolve:r}=R_()),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 pi(t){let e=t.readable&&typeof t.readable.read!="function"?L_.wrap(t.readable):t.readable,r=t.writable,i=!!zL(e),n=!!$L(r),s,o,a,l,u;function f(h){let g=l;l=null,g?g(h):h&&u.destroy(h)}return u=new tr({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(A_(r,h=>{n=!1,h&&gi(e,h),f(h)}),u._write=function(h,g,y){r.write(h,g)?y():s=y},u._final=function(h){r.end(),o=h},r.on("drain",function(){if(s){let h=s;s=null,h()}}),r.on("finish",function(){if(o){let h=o;o=null,h()}})),i&&(A_(e,h=>{i=!1,h&&gi(e,h),f(h)}),e.on("readable",function(){if(a){let h=a;a=null,h()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let h=e.read();if(h===null){a=u._read;return}if(!u.push(h))return}}),u._destroy=function(h,g){!h&&l!==null&&(h=new P_),a=null,s=null,o=null,l===null?g(h):(l=g,gi(r,h),gi(e,h))},u}});var Tt=b((D6,F_)=>{"use strict";var{ObjectDefineProperties:eC,ObjectGetOwnPropertyDescriptor:Bt,ObjectKeys:tC,ObjectSetPrototypeOf:M_}=Se();F_.exports=gt;var $u=wn(),ot=Do();M_(gt.prototype,$u.prototype);M_(gt,$u);{let t=tC(ot.prototype);for(let e=0;e<t.length;e++){let r=t[e];gt.prototype[r]||(gt.prototype[r]=ot.prototype[r])}}function gt(t){if(!(this instanceof gt))return new gt(t);$u.call(this,t),ot.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}eC(gt.prototype,{writable:{__proto__:null,...Bt(ot.prototype,"writable")},writableHighWaterMark:{__proto__:null,...Bt(ot.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...Bt(ot.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...Bt(ot.prototype,"writableBuffer")},writableLength:{__proto__:null,...Bt(ot.prototype,"writableLength")},writableFinished:{__proto__:null,...Bt(ot.prototype,"writableFinished")},writableCorked:{__proto__:null,...Bt(ot.prototype,"writableCorked")},writableEnded:{__proto__:null,...Bt(ot.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...Bt(ot.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 Gu;function k_(){return Gu===void 0&&(Gu={}),Gu}gt.fromWeb=function(t,e){return k_().newStreamDuplexFromReadableWritablePair(t,e)};gt.toWeb=function(t){return k_().newReadableWritablePairFromDuplex(t)};var zu;gt.from=function(t){return zu||(zu=N_()),zu(t,"body")}});var Yu=b((I6,B_)=>{"use strict";var{ObjectSetPrototypeOf:q_,Symbol:rC}=Se();B_.exports=jt;var{ERR_METHOD_NOT_IMPLEMENTED:iC}=We().codes,Vu=Tt(),{getHighWaterMark:nC}=mn();q_(jt.prototype,Vu.prototype);q_(jt,Vu);var Tn=rC("kCallback");function jt(t){if(!(this instanceof jt))return new jt(t);let e=t?nC(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),Vu.call(this,t),this._readableState.sync=!1,this[Tn]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",sC)}function Hu(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 sC(){this._final!==Hu&&Hu.call(this)}jt.prototype._final=Hu;jt.prototype._transform=function(t,e,r){throw new iC("_transform()")};jt.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[Tn]=r})};jt.prototype._read=function(){if(this[Tn]){let t=this[Tn];this[Tn]=null,t()}}});var Zu=b((P6,U_)=>{"use strict";var{ObjectSetPrototypeOf:j_}=Se();U_.exports=yi;var Ku=Yu();j_(yi.prototype,Ku.prototype);j_(yi,Ku);function yi(t){if(!(this instanceof yi))return new yi(t);Ku.call(this,t)}yi.prototype._transform=function(t,e,r){r(null,t)}});var Co=b((L6,H_)=>{var An=Xt(),{ArrayIsArray:oC,Promise:aC,SymbolAsyncIterator:lC,SymbolDispose:uC}=Se(),Lo=qt(),{once:fC}=He(),cC=Tr(),W_=Tt(),{aggregateTwoErrors:hC,codes:{ERR_INVALID_ARG_TYPE:of,ERR_INVALID_RETURN_VALUE:Qu,ERR_MISSING_ARGS:dC,ERR_STREAM_DESTROYED:pC,ERR_STREAM_PREMATURE_CLOSE:gC},AbortError:yC}=We(),{validateFunction:mC,validateAbortSignal:_C}=ai(),{isIterable:Rr,isReadable:Xu,isReadableNodeStream:Po,isNodeStream:G_,isTransformStream:mi,isWebStream:bC,isReadableStream:Ju,isReadableFinished:wC}=Et(),SC=globalThis.AbortController||si().AbortController,ef,tf,rf;function z_(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Lo(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,cC.destroyer(t,s||new pC("pipe")))},cleanup:n}}function EC(t){return mC(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function nf(t){if(Rr(t))return t;if(Po(t))return vC(t);throw new of("val",["Readable","Iterable","AsyncIterable"],t)}async function*vC(t){tf||(tf=wn()),yield*tf.prototype[lC].call(t)}async function Io(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new aC((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Lo(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?hC(n,u):u)}finally{l(),e.off("drain",o)}}async function sf(t,e,r,{end:i}){mi(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 TC(...t){return $_(t,fC(EC(t)))}function $_(t,e,r){if(t.length===1&&oC(t[0])&&(t=t[0]),t.length<2)throw new dC("streams");let i=new SC,n=i.signal,s=r?.signal,o=[];_C(s,"options.signal");function a(){E(new yC)}rf=rf||He().addAbortListener;let l;s&&(l=rf(s,a));let u,f,h=[],g=0;function y(L){E(L,--g===0)}function E(L,D){var q;if(L&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=L),!(!u&&!D)){for(;h.length;)h.shift()(u);(q=l)===null||q===void 0||q[uC](),i.abort(),D&&(u||o.forEach(Z=>Z()),An.nextTick(e,u,f))}}let m;for(let L=0;L<t.length;L++){let D=t[L],q=L<t.length-1,Z=L>0,P=q||r?.end!==!1,B=L===t.length-1;if(G_(D)){let x=function(M){M&&M.name!=="AbortError"&&M.code!=="ERR_STREAM_PREMATURE_CLOSE"&&y(M)};var R=x;if(P){let{destroy:M,cleanup:k}=z_(D,q,Z);h.push(M),Xu(D)&&B&&o.push(k)}D.on("error",x),Xu(D)&&B&&o.push(()=>{D.removeListener("error",x)})}if(L===0)if(typeof D=="function"){if(m=D({signal:n}),!Rr(m))throw new Qu("Iterable, AsyncIterable or Stream","source",m)}else Rr(D)||Po(D)||mi(D)?m=D:m=W_.from(D);else if(typeof D=="function"){if(mi(m)){var v;m=nf((v=m)===null||v===void 0?void 0:v.readable)}else m=nf(m);if(m=D(m,{signal:n}),q){if(!Rr(m,!0))throw new Qu("AsyncIterable",`transform[${L-1}]`,m)}else{var S;ef||(ef=Zu());let x=new ef({objectMode:!0}),M=(S=m)===null||S===void 0?void 0:S.then;if(typeof M=="function")g++,M.call(m,ee=>{f=ee,ee!=null&&x.write(ee),P&&x.end(),An.nextTick(y)},ee=>{x.destroy(ee),An.nextTick(y,ee)});else if(Rr(m,!0))g++,Io(m,x,y,{end:P});else if(Ju(m)||mi(m)){let ee=m.readable||m;g++,Io(ee,x,y,{end:P})}else throw new Qu("AsyncIterable or Promise","destination",m);m=x;let{destroy:k,cleanup:H}=z_(m,!1,!0);h.push(k),B&&o.push(H)}}else if(G_(D)){if(Po(m)){g+=2;let x=AC(m,D,y,{end:P});Xu(D)&&B&&o.push(x)}else if(mi(m)||Ju(m)){let x=m.readable||m;g++,Io(x,D,y,{end:P})}else if(Rr(m))g++,Io(m,D,y,{end:P});else throw new of("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=D}else if(bC(D)){if(Po(m))g++,sf(nf(m),D,y,{end:P});else if(Ju(m)||Rr(m))g++,sf(m,D,y,{end:P});else if(mi(m))g++,sf(m.readable,D,y,{end:P});else throw new of("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=D}else m=W_.from(D)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&An.nextTick(a),m}function AC(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new gC)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;wC(t)?An.nextTick(o):t.once("end",o)}else r();return Lo(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)}),Lo(e,{readable:!1,writable:!0},r)}H_.exports={pipelineImpl:$_,pipeline:TC}});var lf=b((C6,X_)=>{"use strict";var{pipeline:xC}=Co(),No=Tt(),{destroyer:RC}=Tr(),{isNodeStream:Mo,isReadable:V_,isWritable:Y_,isWebStream:af,isTransformStream:Or,isWritableStream:K_,isReadableStream:Z_}=Et(),{AbortError:OC,codes:{ERR_INVALID_ARG_VALUE:Q_,ERR_MISSING_ARGS:DC}}=We(),IC=qt();X_.exports=function(...e){if(e.length===0)throw new DC("streams");if(e.length===1)return No.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=No.from(e[0])),typeof e[e.length-1]=="function"){let y=e.length-1;e[y]=No.from(e[y])}for(let y=0;y<e.length;++y)if(!(!Mo(e[y])&&!af(e[y]))){if(y<e.length-1&&!(V_(e[y])||Z_(e[y])||Or(e[y])))throw new Q_(`streams[${y}]`,r[y],"must be readable");if(y>0&&!(Y_(e[y])||K_(e[y])||Or(e[y])))throw new Q_(`streams[${y}]`,r[y],"must be writable")}let i,n,s,o,a;function l(y){let E=o;o=null,E?E(y):y?a.destroy(y):!g&&!h&&a.destroy()}let u=e[0],f=xC(e,l),h=!!(Y_(u)||K_(u)||Or(u)),g=!!(V_(f)||Z_(f)||Or(f));if(a=new No({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:h,readable:g}),h){if(Mo(u))a._write=function(E,m,v){u.write(E,m)?v():i=v},a._final=function(E){u.end(),n=E},u.on("drain",function(){if(i){let E=i;i=null,E()}});else if(af(u)){let m=(Or(u)?u.writable:u).getWriter();a._write=async function(v,S,R){try{await m.ready,m.write(v).catch(()=>{}),R()}catch(L){R(L)}},a._final=async function(v){try{await m.ready,m.close().catch(()=>{}),n=v}catch(S){v(S)}}}let y=Or(f)?f.readable:f;IC(y,()=>{if(n){let E=n;n=null,E()}})}if(g){if(Mo(f))f.on("readable",function(){if(s){let y=s;s=null,y()}}),f.on("end",function(){a.push(null)}),a._read=function(){for(;;){let y=f.read();if(y===null){s=a._read;return}if(!a.push(y))return}};else if(af(f)){let E=(Or(f)?f.readable:f).getReader();a._read=async function(){for(;;)try{let{value:m,done:v}=await E.read();if(!a.push(m))return;if(v){a.push(null);return}}catch{return}}}}return a._destroy=function(y,E){!y&&o!==null&&(y=new OC),s=null,i=null,n=null,o===null?E(y):(o=E,Mo(f)&&RC(f,y))},a}});var lb=b((N6,cf)=>{"use strict";var PC=globalThis.AbortController||si().AbortController,{codes:{ERR_INVALID_ARG_VALUE:LC,ERR_INVALID_ARG_TYPE:xn,ERR_MISSING_ARGS:CC,ERR_OUT_OF_RANGE:NC},AbortError:At}=We(),{validateAbortSignal:Dr,validateInteger:J_,validateObject:Ir}=ai(),MC=Se().Symbol("kWeak"),kC=Se().Symbol("kResistStopPropagation"),{finished:FC}=qt(),qC=lf(),{addAbortSignalNoValidate:BC}=yn(),{isWritable:jC,isNodeStream:UC}=Et(),{deprecate:WC}=He(),{ArrayPrototypePush:GC,Boolean:zC,MathFloor:eb,Number:$C,NumberIsNaN:HC,Promise:tb,PromiseReject:rb,PromiseResolve:VC,PromisePrototypeThen:ib,Symbol:sb}=Se(),ko=sb("kEmpty"),nb=sb("kEof");function YC(t,e){if(e!=null&&Ir(e,"options"),e?.signal!=null&&Dr(e.signal,"options.signal"),UC(t)&&!jC(t))throw new LC("stream",t,"must be writable");let r=qC(this,t);return e!=null&&e.signal&&BC(e.signal,r),r}function Fo(t,e){if(typeof t!="function")throw new xn("fn",["Function","AsyncFunction"],t);e!=null&&Ir(e,"options"),e?.signal!=null&&Dr(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=eb(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=eb(e.highWaterMark)),J_(r,"options.concurrency",1),J_(i,"options.highWaterMark",0),i+=r,async function*(){let s=He().AbortSignalAny([e?.signal].filter(zC)),o=this,a=[],l={signal:s},u,f,h=!1,g=0;function y(){h=!0,E()}function E(){g-=1,m()}function m(){f&&!h&&g<r&&a.length<i&&(f(),f=null)}async function v(){try{for await(let S of o){if(h)return;if(s.aborted)throw new At;try{if(S=t(S,l),S===ko)continue;S=VC(S)}catch(R){S=rb(R)}g+=1,ib(S,E,y),a.push(S),u&&(u(),u=null),!h&&(a.length>=i||g>=r)&&await new tb(R=>{f=R})}a.push(nb)}catch(S){let R=rb(S);ib(R,E,y),a.push(R)}finally{h=!0,u&&(u(),u=null)}}v();try{for(;;){for(;a.length>0;){let S=await a[0];if(S===nb)return;if(s.aborted)throw new At;S!==ko&&(yield S),a.shift(),m()}await new tb(S=>{u=S})}}finally{h=!0,f&&(f(),f=null)}}.call(this)}function KC(t=void 0){return t!=null&&Ir(t,"options"),t?.signal!=null&&Dr(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 At({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function ob(t,e=void 0){for await(let r of ff.call(this,t,e))return!0;return!1}async function ZC(t,e=void 0){if(typeof t!="function")throw new xn("fn",["Function","AsyncFunction"],t);return!await ob.call(this,async(...r)=>!await t(...r),e)}async function QC(t,e){for await(let r of ff.call(this,t,e))return r}async function XC(t,e){if(typeof t!="function")throw new xn("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),ko}for await(let i of Fo.call(this,r,e));}function ff(t,e){if(typeof t!="function")throw new xn("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:ko}return Fo.call(this,r,e)}var uf=class extends CC{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function JC(t,e,r){var i;if(typeof t!="function")throw new xn("reducer",["Function","AsyncFunction"],t);r!=null&&Ir(r,"options"),r?.signal!=null&&Dr(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let u=new At(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await FC(this.destroy(u)),u}let s=new PC,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[MC]:this,[kC]:!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 At;n?e=await t(e,u,{signal:o}):(e=u,n=!0)}if(!a&&!n)throw new uf}finally{s.abort()}return e}async function eN(t){t!=null&&Ir(t,"options"),t?.signal!=null&&Dr(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 At(void 0,{cause:t.signal.reason});GC(e,i)}return e}function tN(t,e){let r=Fo.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function ab(t){if(t=$C(t),HC(t))return 0;if(t<0)throw new NC("number",">= 0",t);return t}function rN(t,e=void 0){return e!=null&&Ir(e,"options"),e?.signal!=null&&Dr(e.signal,"options.signal"),t=ab(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new At;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new At;t--<=0&&(yield s)}}.call(this)}function iN(t,e=void 0){return e!=null&&Ir(e,"options"),e?.signal!=null&&Dr(e.signal,"options.signal"),t=ab(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new At;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new At;if(t-- >0&&(yield s),t<=0)return}}.call(this)}cf.exports.streamReturningOperators={asIndexedPairs:WC(KC,"readable.asIndexedPairs will be removed in a future version."),drop:rN,filter:ff,flatMap:tN,map:Fo,take:iN,compose:YC};cf.exports.promiseReturningOperators={every:ZC,forEach:XC,reduce:JC,toArray:eN,some:ob,find:QC}});var hf=b((M6,ub)=>{"use strict";var{ArrayPrototypePop:nN,Promise:sN}=Se(),{isIterable:oN,isNodeStream:aN,isWebStream:lN}=Et(),{pipelineImpl:uN}=Co(),{finished:fN}=qt();df();function cN(...t){return new sN((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!aN(s)&&!oN(s)&&!lN(s)){let o=nN(t);i=o.signal,n=o.end}uN(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}ub.exports={finished:fN,pipeline:cN}});var df=b((k6,_b)=>{"use strict";var{Buffer:hN}=W("buffer"),{ObjectDefineProperty:Ut,ObjectKeys:hb,ReflectApply:db}=Se(),{promisify:{custom:pb}}=He(),{streamReturningOperators:fb,promiseReturningOperators:cb}=lb(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:gb}}=We(),dN=lf(),{setDefaultHighWaterMark:pN,getDefaultHighWaterMark:gN}=mn(),{pipeline:yb}=Co(),{destroyer:yN}=Tr(),mb=qt(),pf=hf(),Rn=Et(),be=_b.exports=mo().Stream;be.isDestroyed=Rn.isDestroyed;be.isDisturbed=Rn.isDisturbed;be.isErrored=Rn.isErrored;be.isReadable=Rn.isReadable;be.isWritable=Rn.isWritable;be.Readable=wn();for(let t of hb(fb)){let r=function(...i){if(new.target)throw gb();return be.Readable.from(db(e,this,i))},e=fb[t];Ut(r,"name",{__proto__:null,value:e.name}),Ut(r,"length",{__proto__:null,value:e.length}),Ut(be.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of hb(cb)){let r=function(...i){if(new.target)throw gb();return db(e,this,i)},e=cb[t];Ut(r,"name",{__proto__:null,value:e.name}),Ut(r,"length",{__proto__:null,value:e.length}),Ut(be.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}be.Writable=Do();be.Duplex=Tt();be.Transform=Yu();be.PassThrough=Zu();be.pipeline=yb;var{addAbortSignal:mN}=yn();be.addAbortSignal=mN;be.finished=mb;be.destroy=yN;be.compose=dN;be.setDefaultHighWaterMark=pN;be.getDefaultHighWaterMark=gN;Ut(be,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return pf}});Ut(yb,pb,{__proto__:null,enumerable:!0,get(){return pf.pipeline}});Ut(mb,pb,{__proto__:null,enumerable:!0,get(){return pf.finished}});be.Stream=be;be._isUint8Array=function(e){return e instanceof Uint8Array};be._uint8ArrayToBuffer=function(e){return hN.from(e.buffer,e.byteOffset,e.byteLength)}});var Pr=b((F6,Q)=>{"use strict";var Ie=W("stream");if(Ie&&process.env.READABLE_STREAM==="disable"){let t=Ie.promises;Q.exports._uint8ArrayToBuffer=Ie._uint8ArrayToBuffer,Q.exports._isUint8Array=Ie._isUint8Array,Q.exports.isDisturbed=Ie.isDisturbed,Q.exports.isErrored=Ie.isErrored,Q.exports.isReadable=Ie.isReadable,Q.exports.Readable=Ie.Readable,Q.exports.Writable=Ie.Writable,Q.exports.Duplex=Ie.Duplex,Q.exports.Transform=Ie.Transform,Q.exports.PassThrough=Ie.PassThrough,Q.exports.addAbortSignal=Ie.addAbortSignal,Q.exports.finished=Ie.finished,Q.exports.destroy=Ie.destroy,Q.exports.pipeline=Ie.pipeline,Q.exports.compose=Ie.compose,Object.defineProperty(Ie,"promises",{configurable:!0,enumerable:!0,get(){return t}}),Q.exports.Stream=Ie.Stream}else{let t=df(),e=hf(),r=t.Readable.destroy;Q.exports=t.Readable,Q.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,Q.exports._isUint8Array=t._isUint8Array,Q.exports.isDisturbed=t.isDisturbed,Q.exports.isErrored=t.isErrored,Q.exports.isReadable=t.isReadable,Q.exports.Readable=t.Readable,Q.exports.Writable=t.Writable,Q.exports.Duplex=t.Duplex,Q.exports.Transform=t.Transform,Q.exports.PassThrough=t.PassThrough,Q.exports.addAbortSignal=t.addAbortSignal,Q.exports.finished=t.finished,Q.exports.destroy=t.destroy,Q.exports.destroy=r,Q.exports.pipeline=t.pipeline,Q.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),Q.exports.Stream=t.Stream}Q.exports.default=Q.exports});var wb=b((q6,bb)=>{function _N(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}bb.exports=_N});var Tb=b((B6,vb)=>{var Sb=to(),bN=Zl(),wN=Ql(),Eb=Sb?Sb.isConcatSpreadable:void 0;function SN(t){return wN(t)||bN(t)||!!(Eb&&t&&t[Eb])}vb.exports=SN});var qo=b((j6,xb)=>{var EN=wb(),vN=Tb();function Ab(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=vN),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?Ab(a,e-1,r,i,n):EN(n,a):i||(n[n.length]=a)}return n}xb.exports=Ab});var Ob=b((U6,Rb)=>{var TN=qo();function AN(t){var e=t==null?0:t.length;return e?TN(t,1):[]}Rb.exports=AN});var On=b((W6,Db)=>{var xN=an(),RN=xN(Object,"create");Db.exports=RN});var Lb=b((G6,Pb)=>{var Ib=On();function ON(){this.__data__=Ib?Ib(null):{},this.size=0}Pb.exports=ON});var Nb=b((z6,Cb)=>{function DN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}Cb.exports=DN});var kb=b(($6,Mb)=>{var IN=On(),PN="__lodash_hash_undefined__",LN=Object.prototype,CN=LN.hasOwnProperty;function NN(t){var e=this.__data__;if(IN){var r=e[t];return r===PN?void 0:r}return CN.call(e,t)?e[t]:void 0}Mb.exports=NN});var qb=b((H6,Fb)=>{var MN=On(),kN=Object.prototype,FN=kN.hasOwnProperty;function qN(t){var e=this.__data__;return MN?e[t]!==void 0:FN.call(e,t)}Fb.exports=qN});var jb=b((V6,Bb)=>{var BN=On(),jN="__lodash_hash_undefined__";function UN(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=BN&&e===void 0?jN:e,this}Bb.exports=UN});var Wb=b((Y6,Ub)=>{var WN=Lb(),GN=Nb(),zN=kb(),$N=qb(),HN=jb();function _i(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])}}_i.prototype.clear=WN;_i.prototype.delete=GN;_i.prototype.get=zN;_i.prototype.has=$N;_i.prototype.set=HN;Ub.exports=_i});var zb=b((K6,Gb)=>{function VN(){this.__data__=[],this.size=0}Gb.exports=VN});var Dn=b((Z6,$b)=>{var YN=io();function KN(t,e){for(var r=t.length;r--;)if(YN(t[r][0],e))return r;return-1}$b.exports=KN});var Vb=b((Q6,Hb)=>{var ZN=Dn(),QN=Array.prototype,XN=QN.splice;function JN(t){var e=this.__data__,r=ZN(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():XN.call(e,r,1),--this.size,!0}Hb.exports=JN});var Kb=b((X6,Yb)=>{var eM=Dn();function tM(t){var e=this.__data__,r=eM(e,t);return r<0?void 0:e[r][1]}Yb.exports=tM});var Qb=b((J6,Zb)=>{var rM=Dn();function iM(t){return rM(this.__data__,t)>-1}Zb.exports=iM});var Jb=b((eU,Xb)=>{var nM=Dn();function sM(t,e){var r=this.__data__,i=nM(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}Xb.exports=sM});var tw=b((tU,ew)=>{var oM=zb(),aM=Vb(),lM=Kb(),uM=Qb(),fM=Jb();function bi(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])}}bi.prototype.clear=oM;bi.prototype.delete=aM;bi.prototype.get=lM;bi.prototype.has=uM;bi.prototype.set=fM;ew.exports=bi});var iw=b((rU,rw)=>{var cM=an(),hM=ei(),dM=cM(hM,"Map");rw.exports=dM});var ow=b((iU,sw)=>{var nw=Wb(),pM=tw(),gM=iw();function yM(){this.size=0,this.__data__={hash:new nw,map:new(gM||pM),string:new nw}}sw.exports=yM});var lw=b((nU,aw)=>{function mM(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}aw.exports=mM});var In=b((sU,uw)=>{var _M=lw();function bM(t,e){var r=t.__data__;return _M(e)?r[typeof e=="string"?"string":"hash"]:r.map}uw.exports=bM});var cw=b((oU,fw)=>{var wM=In();function SM(t){var e=wM(this,t).delete(t);return this.size-=e?1:0,e}fw.exports=SM});var dw=b((aU,hw)=>{var EM=In();function vM(t){return EM(this,t).get(t)}hw.exports=vM});var gw=b((lU,pw)=>{var TM=In();function AM(t){return TM(this,t).has(t)}pw.exports=AM});var mw=b((uU,yw)=>{var xM=In();function RM(t,e){var r=xM(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}yw.exports=RM});var bw=b((fU,_w)=>{var OM=ow(),DM=cw(),IM=dw(),PM=gw(),LM=mw();function wi(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])}}wi.prototype.clear=OM;wi.prototype.delete=DM;wi.prototype.get=IM;wi.prototype.has=PM;wi.prototype.set=LM;_w.exports=wi});var Sw=b((cU,ww)=>{var CM="__lodash_hash_undefined__";function NM(t){return this.__data__.set(t,CM),this}ww.exports=NM});var vw=b((hU,Ew)=>{function MM(t){return this.__data__.has(t)}Ew.exports=MM});var gf=b((dU,Tw)=>{var kM=bw(),FM=Sw(),qM=vw();function Bo(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new kM;++e<r;)this.add(t[e])}Bo.prototype.add=Bo.prototype.push=FM;Bo.prototype.has=qM;Tw.exports=Bo});var xw=b((pU,Aw)=>{function BM(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}Aw.exports=BM});var Ow=b((gU,Rw)=>{function jM(t){return t!==t}Rw.exports=jM});var Iw=b((yU,Dw)=>{function UM(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}Dw.exports=UM});var Lw=b((mU,Pw)=>{var WM=xw(),GM=Ow(),zM=Iw();function $M(t,e,r){return e===e?zM(t,e,r):WM(t,GM,r)}Pw.exports=$M});var yf=b((_U,Cw)=>{var HM=Lw();function VM(t,e){var r=t==null?0:t.length;return!!r&&HM(t,e,0)>-1}Cw.exports=VM});var mf=b((bU,Nw)=>{function YM(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}Nw.exports=YM});var kw=b((wU,Mw)=>{function KM(t,e){for(var r=-1,i=t==null?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}Mw.exports=KM});var _f=b((SU,Fw)=>{function ZM(t,e){return t.has(e)}Fw.exports=ZM});var Bw=b((EU,qw)=>{var QM=gf(),XM=yf(),JM=mf(),ek=kw(),tk=Xl(),rk=_f(),ik=200;function nk(t,e,r,i){var n=-1,s=XM,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=ek(e,tk(r))),i?(s=JM,o=!1):e.length>=ik&&(s=rk,o=!1,e=new QM(e));e:for(;++n<a;){var f=t[n],h=r==null?f:r(f);if(f=i||f!==0?f:0,o&&h===h){for(var g=u;g--;)if(e[g]===h)continue e;l.push(f)}else s(e,h,i)||l.push(f)}return l}qw.exports=nk});var bf=b((vU,jw)=>{var sk=no(),ok=ti();function ak(t){return ok(t)&&sk(t)}jw.exports=ak});var Gw=b((TU,Ww)=>{var lk=Bw(),uk=qo(),fk=ro(),Uw=bf(),ck=fk(function(t,e){return Uw(t)?lk(t,uk(e,1,Uw,!0)):[]});Ww.exports=ck});var $w=b((AU,zw)=>{var hk=an(),dk=ei(),pk=hk(dk,"Set");zw.exports=pk});var Vw=b((xU,Hw)=>{function gk(){}Hw.exports=gk});var wf=b((RU,Yw)=>{function yk(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}Yw.exports=yk});var Zw=b((OU,Kw)=>{var Sf=$w(),mk=Vw(),_k=wf(),bk=1/0,wk=Sf&&1/_k(new Sf([,-0]))[1]==bk?function(t){return new Sf(t)}:mk;Kw.exports=wk});var Xw=b((DU,Qw)=>{var Sk=gf(),Ek=yf(),vk=mf(),Tk=_f(),Ak=Zw(),xk=wf(),Rk=200;function Ok(t,e,r){var i=-1,n=Ek,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=vk;else if(s>=Rk){var u=e?null:Ak(t);if(u)return xk(u);o=!1,n=Tk,l=new Sk}else l=e?[]:a;e:for(;++i<s;){var f=t[i],h=e?e(f):f;if(f=r||f!==0?f:0,o&&h===h){for(var g=l.length;g--;)if(l[g]===h)continue e;e&&l.push(h),a.push(f)}else n(l,h,r)||(l!==a&&l.push(h),a.push(f))}return a}Qw.exports=Ok});var e0=b((IU,Jw)=>{var Dk=qo(),Ik=ro(),Pk=Xw(),Lk=bf(),Ck=Ik(function(t){return Pk(Dk(t,1,Lk,!0))});Jw.exports=Ck});var r0=b((PU,t0)=>{function Nk(t,e){return function(r){return t(e(r))}}t0.exports=Nk});var n0=b((LU,i0)=>{var Mk=r0(),kk=Mk(Object.getPrototypeOf,Object);i0.exports=kk});var a0=b((CU,o0)=>{var Fk=sn(),qk=n0(),Bk=ti(),jk="[object Object]",Uk=Function.prototype,Wk=Object.prototype,s0=Uk.toString,Gk=Wk.hasOwnProperty,zk=s0.call(Object);function $k(t){if(!Bk(t)||Fk(t)!=jk)return!1;var e=qk(t);if(e===null)return!0;var r=Gk.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&s0.call(r)==zk}o0.exports=$k});var l0=b(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.assertValidPattern=void 0;var Hk=1024*64,Vk=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Hk)throw new TypeError("pattern is too long")};jo.assertValidPattern=Vk});var f0=b(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.parseClass=void 0;var Yk={"[: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]},Pn=t=>t.replace(/[[\]\\-]/g,"\\$&"),Kk=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),u0=t=>t.join(""),Zk=(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,h="";e:for(;s<t.length;){let m=t.charAt(s);if((m==="!"||m==="^")&&s===r+1){u=!0,s++;continue}if(m==="]"&&o&&!l){f=s+1;break}if(o=!0,m==="\\"&&!l){l=!0,s++;continue}if(m==="["&&!l){for(let[v,[S,R,L]]of Object.entries(Yk))if(t.startsWith(v,s)){if(h)return["$.",!1,t.length-r,!0];s+=v.length,L?n.push(S):i.push(S),a=a||R;continue e}}if(l=!1,h){m>h?i.push(Pn(h)+"-"+Pn(m)):m===h&&i.push(Pn(m)),h="",s++;continue}if(t.startsWith("-]",s+1)){i.push(Pn(m+"-")),s+=2;continue}if(t.startsWith("-",s+1)){h=m,s+=2;continue}i.push(Pn(m)),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 m=i[0].length===2?i[0].slice(-1):i[0];return[Kk(m),!1,f-r,!1]}let g="["+(u?"^":"")+u0(i)+"]",y="["+(u?"":"^")+u0(n)+"]";return[i.length&&n.length?"("+g+"|"+y+")":i.length?g:y,a,f-r,!0]};Uo.parseClass=Zk});var Go=b(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.unescape=void 0;var Qk=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");Wo.unescape=Qk});var Tf=b(Vo=>{"use strict";var Qe;Object.defineProperty(Vo,"__esModule",{value:!0});Vo.AST=void 0;var Xk=f0(),zo=Go(),Jk=new Set(["!","?","+","*","@"]),Ef=t=>Jk.has(t),c0=t=>Ef(t.type),e2=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),t2=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),r2=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),h0=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),i2="(?!(?:^|/)\\.\\.?(?:$|/))",$o="(?!\\.)",n2=new Set(["[","."]),s2=new Set(["..","."]),o2=new Set("().*{}+?[]^$\\!"),a2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),vf="[^/]",d0=vf+"*?",p0=vf+"+?",Ho=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("")}#m(){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 Qe&&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 Qe&&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 Qe(this.type,e);for(let i of this.#t)r.copyIn(i);return r}static#_(e,r,i,n,s){let o=n.maxExtglobRecursion??2,a=!1,l=!1,u=-1,f=!1;if(r.type===null){let m=i,v="";for(;m<e.length;){let S=e.charAt(m++);if(a||S==="\\"){a=!a,v+=S;continue}if(l){m===u+1?(S==="^"||S==="!")&&(f=!0):S==="]"&&!(m===u+2&&f)&&(l=!1),v+=S;continue}else if(S==="["){l=!0,u=m,f=!1,v+=S;continue}if(!n.noext&&Ef(S)&&e.charAt(m)==="("&&s<=o){r.push(v),v="";let L=new Qe(S,r);m=Qe.#_(e,L,m,n,s+1),r.push(L);continue}v+=S}return r.push(v),m}let h=i+1,g=new Qe(null,r),y=[],E="";for(;h<e.length;){let m=e.charAt(h++);if(a||m==="\\"){a=!a,E+=m;continue}if(l){h===u+1?(m==="^"||m==="!")&&(f=!0):m==="]"&&!(h===u+2&&f)&&(l=!1),E+=m;continue}else if(m==="["){l=!0,u=h,f=!1,E+=m;continue}if(Ef(m)&&e.charAt(h)==="("&&(s<=o||r&&r.#E(m))){let S=r&&r.#E(m)?0:1;g.push(E),E="";let R=new Qe(m,g);g.push(R),h=Qe.#_(e,R,h,n,s+S);continue}if(m==="|"){g.push(E),E="",y.push(g),g=new Qe(null,r);continue}if(m===")")return E===""&&r.#t.length===0&&(r.#s=!0),g.push(E),E="",r.push(...y,g),h;E+=m}return r.type=null,r.#r=void 0,r.#t=[e.substring(i-1)],h}#g(e){return this.#d(e,t2)}#d(e,r=e2){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=r2){return!!r.get(this.type)?.includes(e)}#p(e,r){let i=e.#t[0],n=new Qe(null,i,this.options);n.#t.push(""),i.push(n),this.#T(e,r)}#T(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}#A(e){return!!h0.get(this.type)?.has(e)}#y(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.#A(r.type)}#v(e){let r=h0.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(c0(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.#T(n,i)):this.#g(n)?(r=!1,this.#p(n,i)):this.#y(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 Qe(null,void 0,r);return Qe.#_(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.#m()),!c0(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(y=>{let[E,m,v,S]=typeof y=="string"?Qe.#x(y,this.#r,l):y.toRegExpSource(e);return this.#r=this.#r||v,this.#n=this.#n||S,E}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&s2.has(this.#t[0]))){let E=n2,m=r&&E.has(u.charAt(0))||u.startsWith("\\.")&&E.has(u.charAt(2))||u.startsWith("\\.\\.")&&E.has(u.charAt(4)),v=!r&&!e&&E.has(u.charAt(0));f=m?i2:v?$o:""}let h="";return this.isEnd()&&this.#e.#c&&this.#o?.type==="!"&&(h="(?:$|\\/)"),[f+u+h,(0,zo.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,zo.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!$o?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?$o:"")+p0;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?$o:"")+d0+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,zo.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#x(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+=(o2.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,h,g,y]=(0,Xk.parseClass)(e,l);if(g){s+=f,o=o||h,l+=g-1,r=r||y,a=!1;continue}}if(u==="*"){if(a)continue;a=!0,s+=i&&/^[*]+$/.test(e)?p0:d0,r=!0;continue}else a=!1;if(u==="?"){s+=vf,r=!0;continue}s+=a2(u)}return[s,(0,zo.unescape)(e),!!r,o]}};Vo.AST=Ho;Qe=Ho});var Af=b(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.escape=void 0;var l2=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");Yo.escape=l2});var rr=b(F=>{"use strict";var u2=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(F,"__esModule",{value:!0});F.unescape=F.escape=F.AST=F.Minimatch=F.match=F.makeRe=F.braceExpand=F.defaults=F.filter=F.GLOBSTAR=F.sep=F.minimatch=void 0;var f2=u2(al()),Ko=l0(),m0=Tf(),c2=Af(),h2=Go(),d2=(t,e,r={})=>((0,Ko.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Lr(e,r).match(t));F.minimatch=d2;var p2=/^\*+([^+@!?\*\[\(]*)$/,g2=t=>e=>!e.startsWith(".")&&e.endsWith(t),y2=t=>e=>e.endsWith(t),m2=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),_2=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),b2=/^\*+\.\*+$/,w2=t=>!t.startsWith(".")&&t.includes("."),S2=t=>t!=="."&&t!==".."&&t.includes("."),E2=/^\.\*+$/,v2=t=>t!=="."&&t!==".."&&t.startsWith("."),T2=/^\*+$/,A2=t=>t.length!==0&&!t.startsWith("."),x2=t=>t.length!==0&&t!=="."&&t!=="..",R2=/^\?+([^+@!?\*\[\(]*)?$/,O2=([t,e=""])=>{let r=_0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},D2=([t,e=""])=>{let r=b0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},I2=([t,e=""])=>{let r=b0([t]);return e?i=>r(i)&&i.endsWith(e):r},P2=([t,e=""])=>{let r=_0([t]);return e?i=>r(i)&&i.endsWith(e):r},_0=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},b0=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},w0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",g0={win32:{sep:"\\"},posix:{sep:"/"}};F.sep=w0==="win32"?g0.win32.sep:g0.posix.sep;F.minimatch.sep=F.sep;F.GLOBSTAR=Symbol("globstar **");F.minimatch.GLOBSTAR=F.GLOBSTAR;var L2="[^/]",C2=L2+"*?",N2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",M2="(?:(?!(?:\\/|^)\\.).)*?",k2=(t,e={})=>r=>(0,F.minimatch)(r,t,e);F.filter=k2;F.minimatch.filter=F.filter;var at=(t,e={})=>Object.assign({},t,e),F2=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return F.minimatch;let e=F.minimatch;return Object.assign((i,n,s={})=>e(i,n,at(t,s)),{Minimatch:class extends e.Minimatch{constructor(n,s={}){super(n,at(t,s))}static defaults(n){return e.defaults(at(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,s,o={}){super(n,s,at(t,o))}static fromGlob(n,s={}){return e.AST.fromGlob(n,at(t,s))}},unescape:(i,n={})=>e.unescape(i,at(t,n)),escape:(i,n={})=>e.escape(i,at(t,n)),filter:(i,n={})=>e.filter(i,at(t,n)),defaults:i=>e.defaults(at(t,i)),makeRe:(i,n={})=>e.makeRe(i,at(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,at(t,n)),match:(i,n,s={})=>e.match(i,n,at(t,s)),sep:e.sep,GLOBSTAR:F.GLOBSTAR})};F.defaults=F2;F.minimatch.defaults=F.defaults;var q2=(t,e={})=>((0,Ko.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,f2.default)(t));F.braceExpand=q2;F.minimatch.braceExpand=F.braceExpand;var B2=(t,e={})=>new Lr(t,e).makeRe();F.makeRe=B2;F.minimatch.makeRe=F.makeRe;var j2=(t,e,r={})=>{let i=new Lr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};F.match=j2;F.minimatch.match=F.match;var y0=/[?*]|[+@!]\(.*?\)|\[|\]/,U2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Lr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,Ko.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||w0,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]==="?"||!y0.test(s[2]))&&!y0.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]),h=l?3:a?0:void 0,g=f?3:u?0:void 0;if(typeof h=="number"&&typeof g=="number"){let[y,E]=[e[h],r[g]];y.toLowerCase()===E.toLowerCase()&&(r[g]=y,s=g,n=h)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(F.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(F.GLOBSTAR,s),a=r.lastIndexOf(F.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 R=e.slice(n,n+l.length);if(!this.#n(R,l,i,0,0))return!1;n+=l.length}let h=0;if(f.length){if(f.length+n>e.length)return!1;let R=e.length-f.length;if(this.#n(e,f,i,R,0))h=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||(R--,!this.#n(e,f,i,R,0)))return!1;h=f.length+1}}if(!u.length){let R=!!h;for(let L=n;L<e.length-h;L++){let D=String(e[L]);if(R=!0,D==="."||D===".."||!this.options.dot&&D.startsWith("."))return!1}return i||R}let g=[[[],0]],y=g[0],E=0,m=[0];for(let R of u)R===F.GLOBSTAR?(m.push(E),y=[[],0],g.push(y)):(y[0].push(R),E++);let v=g.length-1,S=e.length-h;for(let R of g)R[1]=S-(m[v--]+R[0].length);return!!this.#r(e,g,n,0,i,0,!!h)}#r(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let h=i;h<e.length;h++){a=!0;let g=e[h];if(g==="."||g===".."||!this.options.dot&&g.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 y=this.#r(e,r,i+u.length,n+1,s,o+1,a);if(y!==!1)return y}let g=e[i];if(g==="."||g===".."||!this.options.dot&&g.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],h=e[o];if(this.debug(r,f,h),f===!1||f===F.GLOBSTAR)return!1;let g;if(typeof f=="string"?(g=h===f,this.debug("string match",f,h,g)):(g=f.test(h),this.debug("pattern match",f,h,g)),!g)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,F.braceExpand)(this.pattern,this.options)}parse(e){(0,Ko.assertValidPattern)(e);let r=this.options;if(e==="**")return F.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(T2))?n=r.dot?x2:A2:(i=e.match(p2))?n=(r.nocase?r.dot?_2:m2:r.dot?y2:g2)(i[1]):(i=e.match(R2))?n=(r.nocase?r.dot?D2:O2:r.dot?I2:P2)(i):(i=e.match(b2))?n=r.dot?S2:w2:(i=e.match(E2))&&(n=v2);let s=m0.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?C2:r.dot?N2:M2,n=new Set(r.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))n.add(h);return typeof f=="string"?U2(f):f===F.GLOBSTAR?F.GLOBSTAR:f._src});return u.forEach((f,h)=>{let g=u[h+1],y=u[h-1];f!==F.GLOBSTAR||y===F.GLOBSTAR||(y===void 0?g!==void 0&&g!==F.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+g:u[h]=i:g===void 0?u[h-1]=y+"(?:\\/|"+i+")?":g!==F.GLOBSTAR&&(u[h-1]=y+"(?:\\/|\\/"+i+"\\/)"+g,u[h+1]=F.GLOBSTAR))}),u.filter(f=>f!==F.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 F.minimatch.defaults(e).Minimatch}};F.Minimatch=Lr;var W2=Tf();Object.defineProperty(F,"AST",{enumerable:!0,get:function(){return W2.AST}});var G2=Af();Object.defineProperty(F,"escape",{enumerable:!0,get:function(){return G2.escape}});var z2=Go();Object.defineProperty(F,"unescape",{enumerable:!0,get:function(){return z2.unescape}});F.minimatch.AST=m0.AST;F.minimatch.Minimatch=Lr;F.minimatch.escape=c2.escape;F.minimatch.unescape=h2.unescape});var A0=b(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.LRUCache=void 0;var Si=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,E0=new Set,xf=typeof process=="object"&&process?process:{},v0=(t,e,r,i)=>{typeof xf.emitWarning=="function"?xf.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},Zo=globalThis.AbortController,S0=globalThis.AbortSignal;if(typeof Zo>"u"){S0=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},Zo=class{constructor(){e()}signal=new S0;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=xf.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,v0("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 $2=t=>!E0.has(t),ir=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),T0=t=>ir(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Ei:null:null,Ei=class extends Array{constructor(e){super(e),this.fill(0)}},Rf=class t{heap;length;static#e=!1;static create(e){let r=T0(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]}},Of=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;#m;#_;#g;#d;#E;#p;#T;#A;#y;#v;#b;#h;static unsafeExposeInternals(e){return{starts:e.#A,ttls:e.#y,sizes:e.#T,keyMap:e.#l,keyList:e.#a,valList:e.#s,next:e.#m,prev:e.#_,get head(){return e.#g},get tail(){return e.#d},free:e.#E,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,i,n,s)=>e.#q(r,i,n,s),moveToTail:r=>e.#j(r),indexes:r=>e.#O(r),rindexes:r=>e.#D(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:h,noUpdateTTL:g,maxSize:y=0,maxEntrySize:E=0,sizeCalculation:m,fetchMethod:v,memoMethod:S,noDeleteOnFetchRejection:R,noDeleteOnStaleGet:L,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:q,ignoreFetchAbort:Z}=e;if(r!==0&&!ir(r))throw new TypeError("max option must be a nonnegative integer");let P=r?T0(r):Array;if(!P)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=y,this.maxEntrySize=E||this.#r,this.sizeCalculation=m,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(S!==void 0&&typeof S!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=S,v!==void 0&&typeof v!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=v,this.#b=!!v,this.#l=new Map,this.#a=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#m=new P(r),this.#_=new P(r),this.#g=0,this.#d=0,this.#E=Rf.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=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!R,this.allowStaleOnFetchRejection=!!D,this.allowStaleOnFetchAbort=!!q,this.ignoreFetchAbort=!!Z,this.maxEntrySize!==0){if(this.#r!==0&&!ir(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!ir(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#I()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!L,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ir(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!ir(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#x()}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 B="LRU_CACHE_UNBOUNDED";$2(B)&&(E0.add(B),v0("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",B,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#x(){let e=new Ei(this.#e),r=new Ei(this.#e);this.#y=e,this.#A=r,this.#L=(s,o,a=Si.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.#R=s=>{r[s]=e[s]!==0?Si.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=Si.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;#I(){let e=new Ei(this.#e);this.#c=0,this.#T=e,this.#C=r=>{this.#c-=e[r],e[r]=0},this.#M=(r,i,n,s)=>{if(this.#f(i))return 0;if(!ir(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!ir(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.#N=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#c>s;)this.#F(!0)}this.#c+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#c)}}#C=e=>{};#N=(e,r,i)=>{};#M=(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.#k(r)||((e||!this.#w(r))&&(yield r),r===this.#g));)r=this.#_[r]}*#D({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#g;!(!this.#k(r)||((e||!this.#w(r))&&(yield r),r===this.#d));)r=this.#m[r]}#k(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.#D())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.#D()){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.#D())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.#D()){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.#D({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.#y&&this.#A){let o=this.#y[r],a=this.#A[r];if(o&&a){let l=o-(Si.now()-a);s.ttl=l,s.start=Date.now()}}return this.#T&&(s.size=this.#T[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.#y&&this.#A){o.ttl=this.#y[r];let a=Si.now()-this.#A[r];o.start=Math.floor(Date.now()-a)}this.#T&&(o.size=this.#T[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=Si.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.#M(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 h=this.#u===0?void 0:this.#l.get(e);if(h===void 0)h=this.#u===0?this.#d:this.#E.length!==0?this.#E.pop():this.#u===this.#e?this.#F(!1):this.#u,this.#a[h]=e,this.#s[h]=r,this.#l.set(e,h),this.#m[this.#d]=h,this.#_[h]=this.#d,this.#d=h,this.#u++,this.#N(h,f,l),l&&(l.set="add"),u=!1;else{this.#j(h);let g=this.#s[h];if(r!==g){if(this.#b&&this.#f(g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:y}=g;y!==void 0&&!o&&(this.#v&&this.#n?.(y,e,"set"),this.#h&&this.#p?.push([y,e,"set"]))}else o||(this.#v&&this.#n?.(g,e,"set"),this.#h&&this.#p?.push([g,e,"set"]));if(this.#C(h),this.#N(h,f,l),this.#s[h]=r,l){l.set="replace";let y=g&&this.#f(g)?g.__staleWhileFetching:g;y!==void 0&&(l.oldValue=y)}}else l&&(l.set="update")}if(n!==0&&!this.#y&&this.#x(),this.#y&&(u||this.#L(h,n,s),l&&this.#i(l,h)),!o&&this.#h&&this.#p){let g=this.#p,y;for(;y=g?.shift();)this.#t?.(...y)}return this}pop(){try{for(;this.#u;){let e=this.#s[this.#g];if(this.#F(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#p){let e=this.#p,r;for(;r=e?.shift();)this.#t?.(...r)}}}#F(e){let r=this.#g,i=this.#a[r],n=this.#s[r];return this.#b&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(n,i,"evict"),this.#h&&this.#p?.push([n,i,"evict"])),this.#C(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.#m[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}#q(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new Zo,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},u=(m,v=!1)=>{let{aborted:S}=o.signal,R=i.ignoreFetchAbort&&m!==void 0;if(i.status&&(S&&!v?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,R&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),S&&!R&&!v)return h(o.signal.reason);let L=y;return this.#s[r]===y&&(m===void 0?L.__staleWhileFetching?this.#s[r]=L.__staleWhileFetching:this.#P(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,m,l.options))),m},f=m=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=m),h(m)),h=m=>{let{aborted:v}=o.signal,S=v&&i.allowStaleOnFetchAbort,R=S||i.allowStaleOnFetchRejection,L=R||i.noDeleteOnFetchRejection,D=y;if(this.#s[r]===y&&(!L||D.__staleWhileFetching===void 0?this.#P(e,"fetch"):S||(this.#s[r]=D.__staleWhileFetching)),R)return i.status&&D.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),D.__staleWhileFetching;if(D.__returned===D)throw m},g=(m,v)=>{let S=this.#o?.(e,s,l);S&&S instanceof Promise&&S.then(R=>m(R===void 0?void 0:R),v),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(m(void 0),i.allowStaleOnFetchAbort&&(m=R=>u(R,!0)))})};i.status&&(i.status.fetchDispatched=!0);let y=new Promise(g).then(u,f),E=Object.assign(y,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,E,{...l.options,status:void 0}),r=this.#l.get(e)):this.#s[r]=E,E}#f(e){if(!this.#b)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Zo}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:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:E=this.allowStaleOnFetchAbort,context:m,forceRefresh:v=!1,status:S,signal:R}=r;if(!this.#b)return S&&(S.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:S});let L={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:E,ignoreFetchAbort:y,status:S,signal:R},D=this.#l.get(e);if(D===void 0){S&&(S.fetch="miss");let q=this.#q(e,D,L,m);return q.__returned=q}else{let q=this.#s[D];if(this.#f(q)){let M=i&&q.__staleWhileFetching!==void 0;return S&&(S.fetch="inflight",M&&(S.returnedStale=!0)),M?q.__staleWhileFetching:q.__returned=q}let Z=this.#w(D);if(!v&&!Z)return S&&(S.fetch="hit"),this.#j(D),n&&this.#R(D),S&&this.#i(S,D),q;let P=this.#q(e,D,L,m),x=P.__staleWhileFetching!==void 0&&i;return S&&(S.fetch=Z?"stale":"refresh",x&&Z&&(S.returnedStale=!0)),x?P.__staleWhileFetching:P.__returned=P}}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.#j(a),n&&this.#R(a),l))}else o&&(o.get="miss")}#B(e,r){this.#_[r]=e,this.#m[e]=r}#j(e){e!==this.#d&&(e===this.#g?this.#g=this.#m[e]:this.#B(this.#_[e],this.#m[e]),this.#B(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.#C(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.#_[n];else if(n===this.#g)this.#g=this.#m[n];else{let o=this.#_[n];this.#m[o]=this.#m[n];let a=this.#m[n];this.#_[a]=this.#_[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.#D({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.#y&&this.#A&&(this.#y.fill(0),this.#A.fill(0)),this.#T&&this.#T.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)}}};Qo.LRUCache=Of});var kf=b(Ye=>{"use strict";var H2=Ye&&Ye.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.Minipass=Ye.isWritable=Ye.isReadable=Ye.isStream=void 0;var x0=typeof process=="object"&&process?process:{stdout:null,stderr:null},Mf=W("node:events"),I0=H2(W("node:stream")),V2=W("node:string_decoder"),Y2=t=>!!t&&typeof t=="object"&&(t instanceof na||t instanceof I0.default||(0,Ye.isReadable)(t)||(0,Ye.isWritable)(t));Ye.isStream=Y2;var K2=t=>!!t&&typeof t=="object"&&t instanceof Mf.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==I0.default.Writable.prototype.pipe;Ye.isReadable=K2;var Z2=t=>!!t&&typeof t=="object"&&t instanceof Mf.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Ye.isWritable=Z2;var Wt=Symbol("EOF"),Gt=Symbol("maybeEmitEnd"),nr=Symbol("emittedEnd"),Xo=Symbol("emittingEnd"),Ln=Symbol("emittedError"),Jo=Symbol("closed"),R0=Symbol("read"),ea=Symbol("flush"),O0=Symbol("flushChunk"),yt=Symbol("encoding"),vi=Symbol("decoder"),Le=Symbol("flowing"),Cn=Symbol("paused"),Ti=Symbol("resume"),Ce=Symbol("buffer"),Ve=Symbol("pipes"),Ne=Symbol("bufferLength"),Df=Symbol("bufferPush"),ta=Symbol("bufferShift"),ze=Symbol("objectMode"),xe=Symbol("destroyed"),If=Symbol("error"),Pf=Symbol("emitData"),D0=Symbol("emitEnd"),Lf=Symbol("emitEnd2"),xt=Symbol("async"),Cf=Symbol("abort"),ra=Symbol("aborted"),Nn=Symbol("signal"),Cr=Symbol("dataListeners"),Je=Symbol("discarded"),Mn=t=>Promise.resolve().then(t),Q2=t=>t(),X2=t=>t==="end"||t==="finish"||t==="prefinish",J2=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,eF=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ia=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()}},Nf=class extends ia{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)}},tF=t=>!!t.objectMode,rF=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",na=class extends Mf.EventEmitter{[Le]=!1;[Cn]=!1;[Ve]=[];[Ce]=[];[ze];[yt];[xt];[vi];[Wt]=!1;[nr]=!1;[Xo]=!1;[Jo]=!1;[Ln]=null;[Ne]=0;[xe]=!1;[Nn];[ra]=!1;[Cr]=0;[Je]=!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");tF(r)?(this[ze]=!0,this[yt]=null):rF(r)?(this[yt]=r.encoding,this[ze]=!1):(this[ze]=!1,this[yt]=null),this[xt]=!!r.async,this[vi]=this[yt]?new V2.StringDecoder(this[yt]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Ce]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ve]});let{signal:i}=r;i&&(this[Nn]=i,i.aborted?this[Cf]():i.addEventListener("abort",()=>this[Cf]()))}get bufferLength(){return this[Ne]}get encoding(){return this[yt]}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[ze]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[xt]}set async(e){this[xt]=this[xt]||!!e}[Cf](){this[ra]=!0,this.emit("abort",this[Nn]?.reason),this.destroy(this[Nn]?.reason)}get aborted(){return this[ra]}set aborted(e){}write(e,r,i){if(this[ra])return!1;if(this[Wt])throw new Error("write after end");if(this[xe])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[xt]?Mn:Q2;if(!this[ze]&&!Buffer.isBuffer(e)){if(eF(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(J2(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[ze]?(this[Le]&&this[Ne]!==0&&this[ea](!0),this[Le]?this.emit("data",e):this[Df](e),this[Ne]!==0&&this.emit("readable"),i&&n(i),this[Le]):e.length?(typeof e=="string"&&!(r===this[yt]&&!this[vi]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[yt]&&(e=this[vi].write(e)),this[Le]&&this[Ne]!==0&&this[ea](!0),this[Le]?this.emit("data",e):this[Df](e),this[Ne]!==0&&this.emit("readable"),i&&n(i),this[Le]):(this[Ne]!==0&&this.emit("readable"),i&&n(i),this[Le])}read(e){if(this[xe])return null;if(this[Je]=!1,this[Ne]===0||e===0||e&&e>this[Ne])return this[Gt](),null;this[ze]&&(e=null),this[Ce].length>1&&!this[ze]&&(this[Ce]=[this[yt]?this[Ce].join(""):Buffer.concat(this[Ce],this[Ne])]);let r=this[R0](e||null,this[Ce][0]);return this[Gt](),r}[R0](e,r){if(this[ze])this[ta]();else{let i=r;e===i.length||e===null?this[ta]():typeof i=="string"?(this[Ce][0]=i.slice(e),r=i.slice(0,e),this[Ne]-=e):(this[Ce][0]=i.subarray(e),r=i.subarray(0,e),this[Ne]-=e)}return this.emit("data",r),!this[Ce].length&&!this[Wt]&&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[Wt]=!0,this.writable=!1,(this[Le]||!this[Cn])&&this[Gt](),this}[Ti](){this[xe]||(!this[Cr]&&!this[Ve].length&&(this[Je]=!0),this[Cn]=!1,this[Le]=!0,this.emit("resume"),this[Ce].length?this[ea]():this[Wt]?this[Gt]():this.emit("drain"))}resume(){return this[Ti]()}pause(){this[Le]=!1,this[Cn]=!0,this[Je]=!1}get destroyed(){return this[xe]}get flowing(){return this[Le]}get paused(){return this[Cn]}[Df](e){this[ze]?this[Ne]+=1:this[Ne]+=e.length,this[Ce].push(e)}[ta](){return this[ze]?this[Ne]-=1:this[Ne]-=this[Ce][0].length,this[Ce].shift()}[ea](e=!1){do;while(this[O0](this[ta]())&&this[Ce].length);!e&&!this[Ce].length&&!this[Wt]&&this.emit("drain")}[O0](e){return this.emit("data",e),this[Le]}pipe(e,r){if(this[xe])return e;this[Je]=!1;let i=this[nr];return r=r||{},e===x0.stdout||e===x0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ve].push(r.proxyErrors?new Nf(this,e,r):new ia(this,e,r)),this[xt]?Mn(()=>this[Ti]()):this[Ti]()),e}unpipe(e){let r=this[Ve].find(i=>i.dest===e);r&&(this[Ve].length===1?(this[Le]&&this[Cr]===0&&(this[Le]=!1),this[Ve]=[]):this[Ve].splice(this[Ve].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[Je]=!1,this[Cr]++,!this[Ve].length&&!this[Le]&&this[Ti]();else if(e==="readable"&&this[Ne]!==0)super.emit("readable");else if(X2(e)&&this[nr])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[Ln]){let n=r;this[xt]?Mn(()=>n.call(this,this[Ln])):n.call(this,this[Ln])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[Cr]=this.listeners("data").length,this[Cr]===0&&!this[Je]&&!this[Ve].length&&(this[Le]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[Cr]=0,!this[Je]&&!this[Ve].length&&(this[Le]=!1)),r}get emittedEnd(){return this[nr]}[Gt](){!this[Xo]&&!this[nr]&&!this[xe]&&this[Ce].length===0&&this[Wt]&&(this[Xo]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Jo]&&this.emit("close"),this[Xo]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==xe&&this[xe])return!1;if(e==="data")return!this[ze]&&!i?!1:this[xt]?(Mn(()=>this[Pf](i)),!0):this[Pf](i);if(e==="end")return this[D0]();if(e==="close"){if(this[Jo]=!0,!this[nr]&&!this[xe])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Ln]=i,super.emit(If,i);let s=!this[Nn]||this.listeners("error").length?super.emit("error",i):!1;return this[Gt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Gt](),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[Gt](),n}[Pf](e){for(let i of this[Ve])i.dest.write(e)===!1&&this.pause();let r=this[Je]?!1:super.emit("data",e);return this[Gt](),r}[D0](){return this[nr]?!1:(this[nr]=!0,this.readable=!1,this[xt]?(Mn(()=>this[Lf]()),!0):this[Lf]())}[Lf](){if(this[vi]){let r=this[vi].end();if(r){for(let i of this[Ve])i.dest.write(r);this[Je]||super.emit("data",r)}}for(let r of this[Ve])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[ze]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ze]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[ze])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[yt]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(xe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Je]=!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[Wt])return r();let s,o,a=h=>{this.off("data",l),this.off("end",u),this.off(xe,f),r(),o(h)},l=h=>{this.off("error",a),this.off("end",u),this.off(xe,f),this.pause(),s({value:h,done:!!this[Wt]})},u=()=>{this.off("error",a),this.off("data",l),this.off(xe,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((h,g)=>{o=g,s=h,this.once(xe,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[Je]=!1;let e=!1,r=()=>(this.pause(),this.off(If,r),this.off(xe,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(If,r),this.once(xe,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[xe])return e?this.emit("error",e):this.emit(xe),this;this[xe]=!0,this[Je]=!0,this[Ce].length=0,this[Ne]=0;let r=this;return typeof r.close=="function"&&!this[Jo]&&r.close(),e?this.emit("error",e):this.emit(xe),this}static get isStream(){return Ye.isStream}};Ye.Minipass=na});var $0=b(he=>{"use strict";var iF=he&&he.__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]})),nF=he&&he.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sF=he&&he.__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)&&iF(e,t,r);return nF(e,t),e};Object.defineProperty(he,"__esModule",{value:!0});he.PathScurry=he.Path=he.PathScurryDarwin=he.PathScurryPosix=he.PathScurryWin32=he.PathScurryBase=he.PathPosix=he.PathWin32=he.PathBase=he.ChildrenCache=he.ResolveCache=void 0;var k0=A0(),ua=W("node:path"),oF=W("node:url"),Fn=W("fs"),aF=sF(W("node:fs")),lF=Fn.realpathSync.native,sa=W("node:fs/promises"),P0=kf(),qn={lstatSync:Fn.lstatSync,readdir:Fn.readdir,readdirSync:Fn.readdirSync,readlinkSync:Fn.readlinkSync,realpathSync:lF,promises:{lstat:sa.lstat,readdir:sa.readdir,readlink:sa.readlink,realpath:sa.realpath}},F0=t=>!t||t===qn||t===aF?qn:{...qn,...t,promises:{...qn.promises,...t.promises||{}}},q0=/^\\\\\?\\([a-z]:)\\?$/i,uF=t=>t.replace(/\//g,"\\").replace(q0,"$1\\"),fF=/[\\\/]/,ut=0,B0=1,j0=2,Rt=4,U0=6,W0=8,Nr=10,G0=12,lt=15,kn=~lt,Ff=16,L0=32,Bn=64,mt=128,oa=256,la=512,C0=Bn|mt|la,cF=1023,qf=t=>t.isFile()?W0:t.isDirectory()?Rt:t.isSymbolicLink()?Nr:t.isCharacterDevice()?j0:t.isBlockDevice()?U0:t.isSocket()?G0:t.isFIFO()?B0:ut,N0=new Map,jn=t=>{let e=N0.get(t);if(e)return e;let r=t.normalize("NFKD");return N0.set(t,r),r},M0=new Map,aa=t=>{let e=M0.get(t);if(e)return e;let r=jn(t.toLowerCase());return M0.set(t,r),r},Un=class extends k0.LRUCache{constructor(){super({max:256})}};he.ResolveCache=Un;var fa=class extends k0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};he.ChildrenCache=fa;var z0=Symbol("PathScurry setAsCwd"),Be=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}#m;get atimeMs(){return this.#m}#_;get mtimeMs(){return this.#_}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#E;get atime(){return this.#E}#p;get mtime(){return this.#p}#T;get ctime(){return this.#T}#A;get birthtime(){return this.#A}#y;#v;#b;#h;#x;#R;#i;#L;#w;#I;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=ut,i,n,s,o,a){this.name=e,this.#y=s?aa(e):jn(e),this.#i=r&cF,this.nocase=s,this.roots=n,this.root=i||this,this.#L=o,this.#b=a.fullpath,this.#x=a.relative,this.#R=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=F0(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).#C(n):this.#C(n)}#C(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?aa(e):jn(e);for(let l of i)if(l.#y===n)return l;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+e:void 0,a=this.newChild(e,ut,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=mt),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#x!==void 0)return this.#x;let e=this.name,r=this.parent;if(!r)return this.#x=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&lt)===ut}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&lt)===W0}isDirectory(){return(this.#i&lt)===Rt}isCharacterDevice(){return(this.#i&lt)===j0}isBlockDevice(){return(this.#i&lt)===U0}isFIFO(){return(this.#i&lt)===B0}isSocket(){return(this.#i&lt)===G0}isSymbolicLink(){return(this.#i&Nr)===Nr}lstatCached(){return this.#i&L0?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#I}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&lt;return!(e!==ut&&e!==Nr||this.#i&oa||this.#i&mt)}calledReaddir(){return!!(this.#i&Ff)}isENOENT(){return!!(this.#i&mt)}isNamed(e){return this.nocase?this.#y===aa(e):this.#y===jn(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}}#N(e){this.#i|=Ff;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#M()}}#M(){this.#i&mt||(this.#i=(this.#i|mt)&kn,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#M()}#D(){this.#i|=la,this.#k()}#k(){if(this.#i&Bn)return;let e=this.#i;(e&lt)===Rt&&(e&=kn),this.#i=e|Bn,this.#O()}#F(e=""){e==="ENOTDIR"||e==="EPERM"?this.#k():e==="ENOENT"?this.#M():this.children().provisional=0}#q(e=""){e==="ENOTDIR"?this.parent.#k():e==="ENOENT"&&this.#M()}#f(e=""){let r=this.#i;r|=oa,e==="ENOENT"&&(r|=mt),(e==="EINVAL"||e==="UNKNOWN")&&(r&=kn),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#k()}#B(e,r){return this.#P(e,r)||this.#j(e,r)}#j(e,r){let i=qf(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&lt;return s!==Rt&&s!==Nr&&s!==ut&&(n.#i|=Bn),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?aa(e.name):jn(e.name))===n.#y)return this.#U(e,n,i,r)}}#U(e,r,i,n){let s=r.name;return r.#i=r.#i&kn|qf(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&mt)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#q(e.code)}}lstatSync(){if((this.#i&mt)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#q(e.code)}}#$(e){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:f,gid:h,ino:g,mode:y,mtime:E,mtimeMs:m,nlink:v,rdev:S,size:R,uid:L}=e;this.#E=r,this.#m=i,this.#A=n,this.#d=s,this.#c=o,this.#s=a,this.#T=l,this.#g=u,this.#r=f,this.#S=h,this.#l=g,this.#n=y,this.#p=E,this.#_=m,this.#t=v,this.#u=S,this.#a=R,this.#o=L;let D=qf(e);this.#i=this.#i&kn|D|L0,D!==ut&&D!==Rt&&D!==Nr&&(this.#i|=Bn)}#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.#F(s.code),i.provisional=0;else{for(let a of o)this.#B(a,i);this.#N(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.#B(n,e);this.#N(e)}catch(n){this.#F(n.code),e.provisional=0}this.#W=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#B(i,e);this.#N(e)}catch(i){this.#F(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&C0)return!1;let e=lt&this.#i;return e===ut||e===Rt||e===Nr}shouldWalk(e,r){return(this.#i&Rt)===Rt&&!(this.#i&C0)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#I)return this.#I;if(!((la|oa|mt)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#I=this.resolve(e)}catch{this.#D()}}realpathSync(){if(this.#I)return this.#I;if(!((la|oa|mt)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#I=this.resolve(e)}catch{this.#D()}}[z0](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.#x=i.join(this.sep),n.#R=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!r.has(n);)n.#x=void 0,n.#R=void 0,n=n.parent}};he.PathBase=Be;var Wn=class t extends Be{sep="\\";splitSep=fF;constructor(e,r=ut,i,n,s,o,a){super(e,r,i,n,s,o,a)}newChild(e,r=ut,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return ua.win32.parse(e).root}getRoot(e){if(e=uF(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 $n(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(q0,"$1\\"),e===r}};he.PathWin32=Wn;var Gn=class t extends Be{splitSep="/";sep="/";constructor(e,r=ut,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=ut,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};he.PathPosix=Gn;var zn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=qn}={}){this.#t=F0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,oF.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new Un,this.#r=new Un,this.#n=new fa(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,h=r.sep,g=this.rootPath,y=!1;for(let E of l){let m=f--;u=u.child(E,{relative:new Array(m).fill("..").join(h),relativePosix:new Array(m).fill("..").join("/"),fullpath:g+=(y?"":h)+E}),y=!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 Be||(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 Be||(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 Be||(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 Be||(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 Be||(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 Be||(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 Be||(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=(h,g)=>{l.add(h),h.readdirCB((y,E)=>{if(y)return g(y);let m=E.length;if(!m)return g();let v=()=>{--m===0&&g()};for(let S of E)(!s||s(S))&&a.push(i?S:S.fullpath()),n&&S.isSymbolicLink()?S.realpath().then(R=>R?.isUnknown()?R.lstat():R).then(R=>R?.shouldWalk(l,o)?u(R,v):v()):S.shouldWalk(l,o)?u(S,v):v()},!0)},f=e;return new Promise((h,g)=>{u(f,y=>{if(y)return g(y);h(a)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(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 h of f){(!s||s(h))&&a.push(i?h:h.fullpath());let g=h;if(h.isSymbolicLink()){if(!(n&&(g=h.realpathSync())))continue;g.isUnknown()&&g.lstatSync()}g.shouldWalk(l,o)&&l.add(g)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(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 Be||(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 h=f;if(f.isSymbolicLink()){if(!(n&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(a,o)&&a.add(h)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new P0.Minipass({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let l=new Set,u=[e],f=0,h=()=>{let g=!1;for(;!g;){let y=u.shift();if(!y){f===0&&a.end();return}f++,l.add(y);let E=(v,S,R=!1)=>{if(v)return a.emit("error",v);if(n&&!R){let L=[];for(let D of S)D.isSymbolicLink()&&L.push(D.realpath().then(q=>q?.isUnknown()?q.lstat():q));if(L.length){Promise.all(L).then(()=>E(null,S,!0));return}}for(let L of S)L&&(!s||s(L))&&(a.write(i?L:L.fullpath())||(g=!0));f--;for(let L of S){let D=L.realpathCached()||L;D.shouldWalk(l,o)&&u.push(D)}g&&!a.flowing?a.once("drain",h):m||h()},m=!0;y.readdirCB(E,!0),m=!1}};return h(),a}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new P0.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],f=0,h=()=>{let g=!1;for(;!g;){let y=u.shift();if(!y){f===0&&a.end();return}f++,l.add(y);let E=y.readdirSync();for(let m of E)(!s||s(m))&&(a.write(i?m:m.fullpath())||(g=!0));f--;for(let m of E){let v=m;if(m.isSymbolicLink()){if(!(n&&(v=m.realpathSync())))continue;v.isUnknown()&&v.lstatSync()}v.shouldWalk(l,o)&&u.push(v)}}g&&!a.flowing&&a.once("drain",h)};return h(),a}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[z0](r)}};he.PathScurryBase=zn;var $n=class extends zn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,ua.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return ua.win32.parse(e).root.toUpperCase()}newRoot(e){return new Wn(this.rootPath,Rt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};he.PathScurryWin32=$n;var Hn=class extends zn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,ua.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new Gn(this.rootPath,Rt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};he.PathScurryPosix=Hn;var ca=class extends Hn{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};he.PathScurryDarwin=ca;he.Path=process.platform==="win32"?Wn:Gn;he.PathScurry=process.platform==="win32"?$n:process.platform==="darwin"?ca:Hn});var jf=b(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.Pattern=void 0;var hF=rr(),dF=t=>t.length>=1,pF=t=>t.length>=1,Bf=class t{#e;#r;#n;length;#t;#o;#S;#u;#c;#l;#a=!0;constructor(e,r,i,n){if(!dF(e))throw new TypeError("empty pattern list");if(!pF(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,h,g,y,...E]=this.#r;u[0]===""&&(u.shift(),E.shift());let m=[s,o,a,l,""].join("/"),v=[f,h,g,y,""].join("/");this.#e=[m,...u],this.#r=[v,...E],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]===hF.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)}};ha.Pattern=Bf});var Wf=b(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.Ignore=void 0;var H0=rr(),gF=jf(),yF=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Uf=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=yF}){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 H0.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 gF.Pattern(n,s,0,this.platform),a=new H0.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}};da.Ignore=Uf});var Y0=b(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.Processor=Ot.SubWalks=Ot.MatchRecord=Ot.HasWalkedCache=void 0;var V0=rr(),pa=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()]))}};Ot.HasWalkedCache=pa;var ga=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)])}};Ot.MatchRecord=ga;var ya=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())}};Ot.SubWalks=ya;var Gf=class t{hasWalkedCache;matches=new ga;subwalks=new ya;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new pa}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 h=s.rest();if(h)s=h;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 h=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,h);continue}else if(l===V0.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let h=u?.pattern(),g=u?.rest();if(!u||(h===""||h===".")&&!g)this.matches.add(n,a,h===""||h===".");else if(h===".."){let y=n.parent||n;g?this.hasWalkedCache.hasWalked(y,g)||this.subwalks.add(y,g):this.matches.add(y,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===V0.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))}};Ot.Processor=Gf});var Q0=b(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.GlobStream=sr.GlobWalker=sr.GlobUtil=void 0;var mF=kf(),K0=Wf(),Z0=Y0(),_F=(t,e)=>typeof t=="string"?new K0.Ignore([t],e):Array.isArray(t)?new K0.Ignore(t,e):t,Vn=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=_F(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 Z0.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 Z0.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()}};sr.GlobUtil=Vn;var zf=class extends Vn{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}};sr.GlobWalker=zf;var $f=class extends Vn{results;constructor(e,r,i){super(e,r,i),this.results=new mF.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}};sr.GlobStream=$f});var Vf=b(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.Glob=void 0;var bF=rr(),wF=W("node:url"),ma=$0(),SF=jf(),_a=Q0(),EF=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Hf=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,wF.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||EF,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"?ma.PathScurryWin32:r.platform==="darwin"?ma.PathScurryDarwin:r.platform?ma.PathScurryPosix:ma.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 bF.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 SF.Pattern(l,f,0,this.platform)})}async walk(){return[...await new _a.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 _a.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 _a.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 _a.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()}};ba.Glob=Hf});var Yf=b(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.hasMagic=void 0;var vF=rr(),TF=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new vF.Minimatch(r,e).hasMagic())return!0;return!1};wa.hasMagic=TF});var tS=b(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.glob=J.sync=J.iterate=J.iterateSync=J.stream=J.streamSync=J.Ignore=J.hasMagic=J.Glob=J.unescape=J.escape=void 0;J.globStreamSync=Yn;J.globStream=Kf;J.globSync=Zf;J.globIterateSync=Kn;J.globIterate=Qf;var X0=rr(),Mr=Vf(),AF=Yf(),eS=rr();Object.defineProperty(J,"escape",{enumerable:!0,get:function(){return eS.escape}});Object.defineProperty(J,"unescape",{enumerable:!0,get:function(){return eS.unescape}});var xF=Vf();Object.defineProperty(J,"Glob",{enumerable:!0,get:function(){return xF.Glob}});var RF=Yf();Object.defineProperty(J,"hasMagic",{enumerable:!0,get:function(){return RF.hasMagic}});var OF=Wf();Object.defineProperty(J,"Ignore",{enumerable:!0,get:function(){return OF.Ignore}});function Yn(t,e={}){return new Mr.Glob(t,e).streamSync()}function Kf(t,e={}){return new Mr.Glob(t,e).stream()}function Zf(t,e={}){return new Mr.Glob(t,e).walkSync()}async function J0(t,e={}){return new Mr.Glob(t,e).walk()}function Kn(t,e={}){return new Mr.Glob(t,e).iterateSync()}function Qf(t,e={}){return new Mr.Glob(t,e).iterate()}J.streamSync=Yn;J.stream=Object.assign(Kf,{sync:Yn});J.iterateSync=Kn;J.iterate=Object.assign(Qf,{sync:Kn});J.sync=Object.assign(Zf,{stream:Yn,iterate:Kn});J.glob=Object.assign(J0,{glob:J0,globSync:Zf,sync:J.sync,globStream:Kf,stream:J.stream,globStreamSync:Yn,streamSync:J.streamSync,globIterate:Qf,iterate:J.iterate,globIterateSync:Kn,iterateSync:J.iterateSync,Glob:Mr.Glob,hasMagic:AF.hasMagic,escape:X0.escape,unescape:X0.unescape});J.glob.glob=J.glob});var sS=b((e8,nS)=>{var iS=bl(),Ai=W("path"),Xf=Ob(),DF=Gw(),IF=e0(),PF=a0(),LF=tS(),kr=nS.exports={},rS=/[\/\\]/g,CF=function(t,e){var r=[];return Xf(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=DF(r,s):r=IF(r,s)}),r};kr.exists=function(){var t=Ai.join.apply(Ai,arguments);return iS.existsSync(t)};kr.expand=function(...t){var e=PF(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=CF(r,function(n){return LF.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=Ai.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):iS.statSync(n)[e.filter]()}catch{return!1}})),i};kr.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return Ai.join(s||"",o)}},r);var i=[],n={};return kr.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=Ai.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=Ai.join(r.cwd,s)),a=a.replace(rS,"/"),s=s.replace(rS,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};kr.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=Xf(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return kr.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)?Xf(o):[o],s.result=kr.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var xi=b((r8,lS)=>{var Jf=bl(),oS=W("path"),NF=js(),MF=Np(),aS=Gl(),kF=py(),t8=W("stream").Stream,FF=Pr().PassThrough,et=lS.exports={};et.file=sS();et.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)})};et.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};et.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},kF(...i)};et.isStream=function(t){return NF(t)};et.lazyReadStream=function(t){return new MF.Readable(function(){return Jf.createReadStream(t)})};et.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):et.isStream(t)?t.pipe(new FF):t};et.sanitizePath=function(t){return aS(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};et.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};et.unixifyPath=function(t){return aS(t,!1).replace(/^\w+:/,"")};et.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Jf.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=oS.join(t,a),Jf.stat(l,function(f,h){i.push({path:l,relative:oS.relative(e,l).replace(/\\/g,"/"),stats:h}),h&&h.isDirectory()?et.walkdir(l,e,function(g,y){if(g)return r(g);y.forEach(function(E){i.push(E)}),u()}):u()})})()})}});var hS=b((fS,cS)=>{var qF=W("util"),BF={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 uS(t,e){Error.captureStackTrace(this,this.constructor),this.message=BF[t]||t,this.code=t,this.data=e}qF.inherits(uS,Error);fS=cS.exports=uS});var mS=b((i8,yS)=>{var rc=W("fs"),pS=Td(),dS=xd(),ec=W("path"),Dt=xi(),jF=W("util").inherits,Ae=hS(),gS=Pr().Transform,tc=process.platform==="win32",le=function(t,e){if(!(this instanceof le))return new le(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=Dt.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),gS.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=dS.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=dS.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=[]};jF(le,gS);le.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};le.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 rc.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};le.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)};le.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};le.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))};le.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"))};le.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};le.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};le.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};le.prototype._normalizeEntryData=function(t,e){t=Dt.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=Dt.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?tc?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(tc?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,tc&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=Dt.dateify(t.date),t};le.prototype._onModuleError=function(t){this.emit("error",t)};le.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()};le.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)};le.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}rc.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))};le.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};le.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};le.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=Dt.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=Dt.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=Dt.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=rc.readlinkSync(t.filepath),i=ec.dirname(t.filepath);t.data.type="symlink",t.data.linkname=ec.relative(i,ec.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};le.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};le.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=Dt.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(Dt.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};le.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,h=Object.assign({},r);h.name=u.relative,h.prefix=e,h.stats=u.stat,h.callback=l.resume.bind(l);try{if(i){if(h=i(h),h===!1)f=!0;else if(typeof h!="object")throw new Ae("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(g){this.emit("error",g);return}if(f){l.resume();return}this._append(u.absolute,h)}var l=pS(t,n);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};le.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)};le.prototype.glob=function(t,e,r){this._pending++,e=Dt.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=pS(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};le.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)})})};le.prototype.setFormat=function(t){return this._format?(this.emit("error",new Ae("FORMATSET")),this):(this._format=t,this)};le.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)};le.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};le.prototype.pointer=function(){return this._pointer};le.prototype.use=function(t){return this._streams.push(t),this};yS.exports=le});var Ea=b((n8,_S)=>{var Sa=_S.exports=function(){};Sa.prototype.getName=function(){};Sa.prototype.getSize=function(){};Sa.prototype.getLastModifiedDate=function(){};Sa.prototype.isDirectory=function(){}});var va=b((s8,bS)=>{var ft=bS.exports={};ft.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};ft.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)};ft.fromDosTime=function(t){return ft.dosToDate(t.readUInt32LE(0))};ft.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};ft.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};ft.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};ft.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};ft.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};ft.toDosTime=function(t){return ft.getLongBytes(ft.dateToDos(t))}});var ic=b((o8,AS)=>{var wS=va(),SS=8,ES=1,UF=4,WF=2,vS=64,TS=2048,je=AS.exports=function(){return this instanceof je?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new je};je.prototype.encode=function(){return wS.getShortBytes((this.descriptor?SS:0)|(this.utf8?TS:0)|(this.encryption?ES:0)|(this.strongEncryption?vS:0))};je.prototype.parse=function(t,e){var r=wS.getShortBytesValue(t,e),i=new je;return i.useDataDescriptor((r&SS)!==0),i.useUTF8ForNames((r&TS)!==0),i.useStrongEncryption((r&vS)!==0),i.useEncryption((r&ES)!==0),i.setSlidingDictionarySize((r&WF)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&UF)!==0?3:2),i};je.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};je.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};je.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};je.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};je.prototype.useDataDescriptor=function(t){this.descriptor=t};je.prototype.usesDataDescriptor=function(){return this.descriptor};je.prototype.useEncryption=function(t){this.encryption=t};je.prototype.usesEncryption=function(){return this.encryption};je.prototype.useStrongEncryption=function(t){this.strongEncryption=t};je.prototype.usesStrongEncryption=function(){return this.strongEncryption};je.prototype.useUTF8ForNames=function(t){this.utf8=t};je.prototype.usesUTF8ForNames=function(){return this.utf8}});var RS=b((a8,xS)=>{xS.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 nc=b((l8,OS)=>{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 sc=b((u8,CS)=>{var GF=W("util").inherits,zF=Gl(),IS=Ea(),PS=ic(),DS=RS(),Ke=nc(),LS=va(),K=CS.exports=function(t){if(!(this instanceof K))return new K(t);IS.call(this),this.platform=Ke.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new PS,this.crc=0,this.time=-1,this.minver=Ke.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};GF(K,IS);K.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};K.prototype.getComment=function(){return this.comment!==null?this.comment:""};K.prototype.getCompressedSize=function(){return this.csize};K.prototype.getCrc=function(){return this.crc};K.prototype.getExternalAttributes=function(){return this.exattr};K.prototype.getExtra=function(){return this.extra!==null?this.extra:Ke.EMPTY};K.prototype.getGeneralPurposeBit=function(){return this.gpb};K.prototype.getInternalAttributes=function(){return this.inattr};K.prototype.getLastModifiedDate=function(){return this.getTime()};K.prototype.getLocalFileDataExtra=function(){return this.getExtra()};K.prototype.getMethod=function(){return this.method};K.prototype.getName=function(){return this.name};K.prototype.getPlatform=function(){return this.platform};K.prototype.getSize=function(){return this.size};K.prototype.getTime=function(){return this.time!==-1?LS.dosToDate(this.time):-1};K.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};K.prototype.getUnixMode=function(){return this.platform!==Ke.PLATFORM_UNIX?0:this.getExternalAttributes()>>Ke.SHORT_SHIFT&Ke.SHORT_MASK};K.prototype.getVersionNeededToExtract=function(){return this.minver};K.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};K.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};K.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};K.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};K.prototype.setExtra=function(t){this.extra=t};K.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof PS))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};K.prototype.setInternalAttributes=function(t){this.inattr=t};K.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};K.prototype.setName=function(t,e=!1){t=zF(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};K.prototype.setPlatform=function(t){this.platform=t};K.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};K.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=LS.dateToDos(t,e)};K.prototype.setUnixMode=function(t){t|=this.isDirectory()?Ke.S_IFDIR:Ke.S_IFREG;var e=0;e|=t<<Ke.SHORT_SHIFT|(this.isDirectory()?Ke.S_DOS_D:Ke.S_DOS_A),this.setExternalAttributes(e),this.mode=t&Ke.MODE_MASK,this.platform=Ke.PLATFORM_UNIX};K.prototype.setVersionNeededToExtract=function(t){this.minver=t};K.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};K.prototype.isUnixSymlink=function(){return(this.getUnixMode()&DS.FILE_TYPE_FLAG)===DS.LINK_FLAG};K.prototype.isZip64=function(){return this.csize>Ke.ZIP64_MAGIC||this.size>Ke.ZIP64_MAGIC}});var oc=b((c8,NS)=>{var f8=W("stream").Stream,$F=Pr().PassThrough,HF=js(),VF=NS.exports={};VF.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(HF(t)&&!t._readableState){var e=new $F;return t.pipe(e),e}return t}});var lc=b((h8,MS)=>{var YF=W("util").inherits,KF=js(),ac=Pr().Transform,ZF=Ea(),QF=oc(),tt=MS.exports=function(t){if(!(this instanceof tt))return new tt(t);ac.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};YF(tt,ac);tt.prototype._appendBuffer=function(t,e,r){};tt.prototype._appendStream=function(t,e,r){};tt.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};tt.prototype._finish=function(t){};tt.prototype._normalizeEntry=function(t){};tt.prototype._transform=function(t,e,r){r(null,t)};tt.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof ZF)){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=QF.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(KF(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};tt.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};tt.prototype.getBytesWritten=function(){return this.offset};tt.prototype.write=function(t,e){return t&&(this.offset+=t.length),ac.prototype.write.call(this,t,e)}});var Ta=b(uc=>{var kS;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof uc=="object"?t(uc):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(kS={}):t(kS={})})(function(t){t.version="1.2.2";function e(){for(var P=0,B=new Array(256),x=0;x!=256;++x)P=x,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,B[x]=P;return typeof Int32Array<"u"?new Int32Array(B):B}var r=e();function i(P){var B=0,x=0,M=0,k=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(M=0;M!=256;++M)k[M]=P[M];for(M=0;M!=256;++M)for(x=P[M],B=256+M;B<4096;B+=256)x=k[B]=x>>>8^P[x&255];var H=[];for(M=1;M!=16;++M)H[M-1]=typeof Int32Array<"u"?k.subarray(M*256,M*256+256):k.slice(M*256,M*256+256);return H}var n=i(r),s=n[0],o=n[1],a=n[2],l=n[3],u=n[4],f=n[5],h=n[6],g=n[7],y=n[8],E=n[9],m=n[10],v=n[11],S=n[12],R=n[13],L=n[14];function D(P,B){for(var x=B^-1,M=0,k=P.length;M<k;)x=x>>>8^r[(x^P.charCodeAt(M++))&255];return~x}function q(P,B){for(var x=B^-1,M=P.length-15,k=0;k<M;)x=L[P[k++]^x&255]^R[P[k++]^x>>8&255]^S[P[k++]^x>>16&255]^v[P[k++]^x>>>24]^m[P[k++]]^E[P[k++]]^y[P[k++]]^g[P[k++]]^h[P[k++]]^f[P[k++]]^u[P[k++]]^l[P[k++]]^a[P[k++]]^o[P[k++]]^s[P[k++]]^r[P[k++]];for(M+=15;k<M;)x=x>>>8^r[(x^P[k++])&255];return~x}function Z(P,B){for(var x=B^-1,M=0,k=P.length,H=0,ee=0;M<k;)H=P.charCodeAt(M++),H<128?x=x>>>8^r[(x^H)&255]:H<2048?(x=x>>>8^r[(x^(192|H>>6&31))&255],x=x>>>8^r[(x^(128|H&63))&255]):H>=55296&&H<57344?(H=(H&1023)+64,ee=P.charCodeAt(M++)&1023,x=x>>>8^r[(x^(240|H>>8&7))&255],x=x>>>8^r[(x^(128|H>>2&63))&255],x=x>>>8^r[(x^(128|ee>>6&15|(H&3)<<4))&255],x=x>>>8^r[(x^(128|ee&63))&255]):(x=x>>>8^r[(x^(224|H>>12&15))&255],x=x>>>8^r[(x^(128|H>>6&63))&255],x=x>>>8^r[(x^(128|H&63))&255]);return~x}t.table=r,t.bstr=D,t.buf=q,t.str=Z})});var qS=b((p8,FS)=>{"use strict";var{Transform:XF}=Pr(),JF=Ta(),fc=class extends XF{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=JF.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}};FS.exports=fc});var jS=b((g8,BS)=>{"use strict";var{DeflateRaw:eq}=W("zlib"),tq=Ta(),cc=class extends eq{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=tq.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=cc});var hc=b((y8,US)=>{"use strict";US.exports={CRC32Stream:qS(),DeflateCRC32Stream:jS()}});var zS=b((w8,GS)=>{var rq=W("util").inherits,iq=Ta(),{CRC32Stream:nq}=hc(),{DeflateCRC32Stream:sq}=hc(),WS=lc(),m8=sc(),_8=ic(),V=nc(),b8=oc(),$=va(),Me=GS.exports=function(t){if(!(this instanceof Me))return new Me(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}};rq(Me,WS);Me.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()};Me.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(V.METHOD_STORED);var i=t.getMethod();if(i===V.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(iq.buf(e)>>>0)),this._writeLocalFileHeader(t),i===V.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(i===V.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+i+" not implemented"));return}};Me.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(V.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)};Me.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=V.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};Me.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()};Me.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(V.METHOD_DEFLATED),t.getMethod()===V.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(V.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};Me.prototype._smartStream=function(t,e){var r=t.getMethod()===V.METHOD_DEFLATED,i=r?new sq(this.options.zlib):new nq,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};Me.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=V.ZIP64_MAGIC_SHORT,e=V.ZIP64_MAGIC,r=V.ZIP64_MAGIC),this.write($.getLongBytes(V.SIG_EOCD)),this.write(V.SHORT_ZERO),this.write(V.SHORT_ZERO),this.write($.getShortBytes(t)),this.write($.getShortBytes(t)),this.write($.getLongBytes(e)),this.write($.getLongBytes(r));var i=this.getComment(),n=Buffer.byteLength(i);this.write($.getShortBytes(n)),this.write(i)};Me.prototype._writeCentralDirectoryZip64=function(){this.write($.getLongBytes(V.SIG_ZIP64_EOCD)),this.write($.getEightBytes(44)),this.write($.getShortBytes(V.MIN_VERSION_ZIP64)),this.write($.getShortBytes(V.MIN_VERSION_ZIP64)),this.write(V.LONG_ZERO),this.write(V.LONG_ZERO),this.write($.getEightBytes(this._entries.length)),this.write($.getEightBytes(this._entries.length)),this.write($.getEightBytes(this._archive.centralLength)),this.write($.getEightBytes(this._archive.centralOffset)),this.write($.getLongBytes(V.SIG_ZIP64_EOCD_LOC)),this.write(V.LONG_ZERO),this.write($.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write($.getLongBytes(1))};Me.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>V.ZIP64_MAGIC){n=V.ZIP64_MAGIC,s=V.ZIP64_MAGIC,i=V.ZIP64_MAGIC,t.setVersionNeededToExtract(V.MIN_VERSION_ZIP64);var o=Buffer.concat([$.getShortBytes(V.ZIP64_EXTRA_ID),$.getShortBytes(24),$.getEightBytes(t.getSize()),$.getEightBytes(t.getCompressedSize()),$.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write($.getLongBytes(V.SIG_CFH)),this.write($.getShortBytes(t.getPlatform()<<8|V.VERSION_MADEBY)),this.write($.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write($.getShortBytes(r)),this.write($.getLongBytes(t.getTimeDos())),this.write($.getLongBytes(t.getCrc())),this.write($.getLongBytes(s)),this.write($.getLongBytes(n));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write($.getShortBytes(a.length)),this.write($.getShortBytes(u.length)),this.write($.getShortBytes(l.length)),this.write(V.SHORT_ZERO),this.write($.getShortBytes(t.getInternalAttributes())),this.write($.getLongBytes(t.getExternalAttributes())),this.write($.getLongBytes(i)),this.write(a),this.write(u),this.write(l)};Me.prototype._writeDataDescriptor=function(t){this.write($.getLongBytes(V.SIG_DD)),this.write($.getLongBytes(t.getCrc())),t.isZip64()?(this.write($.getEightBytes(t.getCompressedSize())),this.write($.getEightBytes(t.getSize()))):(this.write($.getLongBytes(t.getCompressedSize())),this.write($.getLongBytes(t.getSize())))};Me.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t.getName(),n=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(V.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(i=Buffer.from(i)),t._offsets.file=this.offset,this.write($.getLongBytes(V.SIG_LFH)),this.write($.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write($.getShortBytes(r)),this.write($.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(V.LONG_ZERO),this.write(V.LONG_ZERO),this.write(V.LONG_ZERO)):(this.write($.getLongBytes(t.getCrc())),this.write($.getLongBytes(t.getCompressedSize())),this.write($.getLongBytes(t.getSize()))),this.write($.getShortBytes(i.length)),this.write($.getShortBytes(n.length)),this.write(i),this.write(n),t._offsets.contents=this.offset};Me.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};Me.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>V.ZIP64_MAGIC_SHORT||this._archive.centralLength>V.ZIP64_MAGIC||this._archive.centralOffset>V.ZIP64_MAGIC};Me.prototype.setComment=function(t){this._archive.comment=t}});var dc=b((S8,$S)=>{$S.exports={ArchiveEntry:Ea(),ZipArchiveEntry:sc(),ArchiveOutputStream:lc(),ZipArchiveOutputStream:zS()}});var VS=b((E8,HS)=>{var oq=W("util").inherits,gc=dc().ZipArchiveOutputStream,aq=dc().ZipArchiveEntry,pc=xi(),Ri=HS.exports=function(t){if(!(this instanceof Ri))return new Ri(t);t=this.options=t||{},t.zlib=t.zlib||{},gc.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)};oq(Ri,gc);Ri.prototype._normalizeFileData=function(t){t=pc.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=pc.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=pc.dateify(t.date),t};Ri.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)),gc.prototype.entry.call(this,i,t,r)};Ri.prototype.finalize=function(){this.finish()}});var KS=b((v8,YS)=>{var lq=VS(),uq=xi(),or=function(t){if(!(this instanceof or))return new or(t);t=this.options=uq.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new lq(t)};or.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};or.prototype.finalize=function(){this.engine.finalize()};or.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};or.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};or.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};YS.exports=or});var QS=b((T8,ZS)=>{ZS.exports=W("events")});var JS=b((x8,XS)=>{XS.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 yc=b((O8,tE)=>{var eE=JS();tE.exports=class{constructor(e){this.hwm=e||16,this.head=new eE(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 eE(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 Oi=b((D8,rE)=>{function fq(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function cq(t){return Buffer.isEncoding(t)}function hq(t,e,r){return Buffer.alloc(t,e,r)}function dq(t){return Buffer.allocUnsafe(t)}function pq(t){return Buffer.allocUnsafeSlow(t)}function gq(t,e){return Buffer.byteLength(t,e)}function yq(t,e){return Buffer.compare(t,e)}function mq(t,e){return Buffer.concat(t,e)}function _q(t,e,r,i,n){return pe(t).copy(e,r,i,n)}function bq(t,e){return pe(t).equals(e)}function wq(t,e,r,i,n){return pe(t).fill(e,r,i,n)}function Sq(t,e,r){return Buffer.from(t,e,r)}function Eq(t,e,r,i){return pe(t).includes(e,r,i)}function vq(t,e,r,i){return pe(t).indexOf(e,r,i)}function Tq(t,e,r,i){return pe(t).lastIndexOf(e,r,i)}function Aq(t){return pe(t).swap16()}function xq(t){return pe(t).swap32()}function Rq(t){return pe(t).swap64()}function pe(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Oq(t,e,r,i){return pe(t).toString(e,r,i)}function Dq(t,e,r,i,n){return pe(t).write(e,r,i,n)}function Iq(t,e){return pe(t).readDoubleBE(e)}function Pq(t,e){return pe(t).readDoubleLE(e)}function Lq(t,e){return pe(t).readFloatBE(e)}function Cq(t,e){return pe(t).readFloatLE(e)}function Nq(t,e){return pe(t).readInt32BE(e)}function Mq(t,e){return pe(t).readInt32LE(e)}function kq(t,e){return pe(t).readUInt32BE(e)}function Fq(t,e){return pe(t).readUInt32LE(e)}function qq(t,e,r){return pe(t).writeDoubleBE(e,r)}function Bq(t,e,r){return pe(t).writeDoubleLE(e,r)}function jq(t,e,r){return pe(t).writeFloatBE(e,r)}function Uq(t,e,r){return pe(t).writeFloatLE(e,r)}function Wq(t,e,r){return pe(t).writeInt32BE(e,r)}function Gq(t,e,r){return pe(t).writeInt32LE(e,r)}function zq(t,e,r){return pe(t).writeUInt32BE(e,r)}function $q(t,e,r){return pe(t).writeUInt32LE(e,r)}rE.exports={isBuffer:fq,isEncoding:cq,alloc:hq,allocUnsafe:dq,allocUnsafeSlow:pq,byteLength:gq,compare:yq,concat:mq,copy:_q,equals:bq,fill:wq,from:Sq,includes:Eq,indexOf:vq,lastIndexOf:Tq,swap16:Aq,swap32:xq,swap64:Rq,toBuffer:pe,toString:Oq,write:Dq,readDoubleBE:Iq,readDoubleLE:Pq,readFloatBE:Lq,readFloatLE:Cq,readInt32BE:Nq,readInt32LE:Mq,readUInt32BE:kq,readUInt32LE:Fq,writeDoubleBE:qq,writeDoubleLE:Bq,writeFloatBE:jq,writeFloatLE:Uq,writeInt32BE:Wq,writeInt32LE:Gq,writeUInt32BE:zq,writeUInt32LE:$q}});var nE=b((P8,iE)=>{var Hq=Oi();iE.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return Hq.toString(e,this.encoding)}flush(){return""}}});var lE=b((C8,aE)=>{var sE=Oi();aE.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&oE(e,0)===0)return this.bytesSeen=Vq(e),sE.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=oE(e,i),s=e.byteLength-n;s>i&&(r+=sE.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 oE(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 Vq(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 fE=b((M8,uE)=>{var Yq=nE(),Kq=lE();uE.exports=class{constructor(e="utf8"){switch(this.encoding=Zq(e),this.encoding){case"utf8":this.decoder=new Kq;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new Yq(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 Zq(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 hE=b((k8,cE)=>{cE.exports=class It extends Error{constructor(e,r,i=It){super(e),this.code=r,Error.captureStackTrace&&Error.captureStackTrace(this,i)}static isStreamDestroyed(e){return e&&e.code==="STREAM_DESTROYED"}static isPrematureClose(e){return e&&e.code==="PREMATURE_CLOSE"}static isAborted(e){return e&&e.code==="ABORTED"}static isBadArgument(e){return e&&e.code==="BAD_ARGUMENT"}get name(){return"StreamError"}static STREAM_DESTROYED(){return new It("Stream was destroyed","STREAM_DESTROYED",It.STREAM_DESTROYED)}static PREMATURE_CLOSE(e="Premature close"){return new It(e,"PREMATURE_CLOSE",It.PREMATURE_CLOSE)}static ABORTED(){return new It("Stream aborted","ABORTED",It.ABORTED)}static BAD_ARGUMENT(e="Bad argument"){return new It(e,"BAD_ARGUMENT",It.BAD_ARGUMENT)}}});var Lc=b((F8,CE)=>{var{EventEmitter:Qq}=QS(),mE=yc(),Xq=fE(),ct=hE(),mc=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,Te=(1<<29)-1,Pt=1,Tc=2,zt=4,Zn=8,_E=Te^Pt,Jq=Te^Tc,ts=16,Di=32,Li=64,lr=128,rs=256,Ac=512,ur=1024,_c=2048,xc=4096,Rc=8192,_t=16384,ar=32768,Pa=65536,Fr=131072,bE=rs|Ac,eB=ts|Pa,tB=Li|ts,rB=xc|lr,Oc=rs|Fr,iB=Te^ts,nB=Te^Li,sB=Te^(Li|Pa),dE=Te^Pa,oB=Te^rs,aB=Te^(lr|Rc),lB=Te^ur,pE=Te^bE,wE=Te^ar,uB=Te^Di,SE=Te^Fr,fB=Te^Oc,$t=1<<18,Pi=2<<18,is=4<<18,qr=8<<18,ns=16<<18,cr=32<<18,bc=64<<18,Ii=128<<18,Dc=256<<18,fr=512<<18,La=1024<<18,cB=Te^($t|Dc),EE=Te^is,hB=Te^($t|fr),dB=Te^ns,pB=Te^qr,vE=Te^Ii,gB=Te^Pi,TE=Te^La,Qn=ts|$t,AE=Te^Qn,Ic=_t|cr,Lt=zt|Zn|Tc,rt=Lt|Pt,xE=Lt|Ic,yB=EE&nB,Ca=Ii|ar,mB=Ca&AE,RE=rt|mB,_B=rt|ur|_t,gE=rt|_t|lr,bB=rt|ur|lr,wB=rt|xc|lr|Rc,SB=rt|ts|ur|_t|Pa|Fr,EB=Lt|ur|_t,vB=Di|rt|ar|Li,TB=ar|Pt,AB=rt|fr|cr,xB=qr|ns,OE=qr|$t,RB=qr|ns|rt|$t,yE=rt|$t|qr|La,OB=is|$t,DB=$t|Dc,IB=rt|fr|OE|cr,PB=ns|Lt|fr|cr,LB=Pi|rt|Ii|is,CB=fr|cr|Lt,Aa=Symbol.asyncIterator||Symbol("asyncIterator"),xa=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new mE,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||LE,this.map=n||i,this.afterWrite=kB.bind(this),this.afterUpdateNextTick=BB.bind(this)}get ending(){return(this.stream._duplexState&fr)!==0}get ended(){return(this.stream._duplexState&cr)!==0}push(e){return(this.stream._duplexState&CB)!==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|=qr,!0):(this.stream._duplexState|=xB,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=pB),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|fr)&EE}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&yE)===OE;)i.push(n._writableState.shift());if((n._duplexState&rt)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=Pi;do{for(;(e._duplexState&yE)===qr;){let r=this.shift();e._duplexState|=DB,e._write(r,this.afterWrite)}(e._duplexState&OB)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=gB}updateNonPrimary(){let e=this.stream;if((e._duplexState&IB)===fr){e._duplexState=e._duplexState|$t,e._final(MB.bind(this));return}if((e._duplexState&Lt)===zt){(e._duplexState&Ca)===0&&(e._duplexState|=Qn,e._destroy(DE.bind(this)));return}(e._duplexState&RE)===Pt&&(e._duplexState=(e._duplexState|Qn)&_E,e._open(IE.bind(this)))}continueUpdate(){return(this.stream._duplexState&Ii)===0?!1:(this.stream._duplexState&=vE,!0)}updateCallback(){(this.stream._duplexState&LB)===is?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&Ii)===0&&(this.stream._duplexState|=Ii,(this.stream._duplexState&Pi)===0&&mc(this.afterUpdateNextTick))}},wc=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new mE,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||LE,this.map=n||i,this.pipeTo=null,this.afterRead=FB.bind(this),this.afterUpdateNextTick=qB.bind(this)}get ending(){return(this.stream._duplexState&ur)!==0}get ended(){return(this.stream._duplexState&_t)!==0}pipe(e,r){if(this.pipeTo!==null)throw ct.BAD_ARGUMENT("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=Ac,this.pipeTo=e,this.pipeline=new Ec(this.stream,e,r),r&&this.stream.on("error",vc),es(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",vc),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",NB.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|ur)&sB,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=dE,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|lr)&dE,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=aB),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&gE)===lr){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=pE),(e._duplexState&_c)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=Fr,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&gE)===lr&&(e._duplexState&bE)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=pE),(e._duplexState&_c)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=Di;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&SB)===Fr;)e._duplexState|=eB,e._read(this.afterRead),this.drain();(e._duplexState&wB)===rB&&(e._duplexState|=Rc,e.emit("readable")),(e._duplexState&tB)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=uB}updateNonPrimary(){let e=this.stream;if((e._duplexState&bB)===ur&&(e._duplexState=(e._duplexState|_t)&lB,e.emit("end"),(e._duplexState&xE)===Ic&&(e._duplexState|=zt),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&Lt)===zt){(e._duplexState&Ca)===0&&(e._duplexState|=Qn,e._destroy(DE.bind(this)));return}(e._duplexState&RE)===Pt&&(e._duplexState=(e._duplexState|Qn)&_E,e._open(IE.bind(this)))}continueUpdate(){return(this.stream._duplexState&ar)===0?!1:(this.stream._duplexState&=wE,!0)}updateCallback(){(this.stream._duplexState&vB)===Li?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&TB)===0&&(this.stream._duplexState|=ar,(this.stream._duplexState&Di)===0&&mc(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&ar)===0&&(this.stream._duplexState|=ar,(this.stream._duplexState&Di)===0&&mc(this.afterUpdateNextTick))}},Sc=class{constructor(e){this.data=null,this.afterTransform=UB.bind(e),this.afterFinal=null}},Ec=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&_t)===0||!this.pipeToFinished)&&this.from.destroy(this.error||ct.PREMATURE_CLOSE("Writable stream closed"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&_t)===0&&this.to.destroy(this.error||ct.PREMATURE_CLOSE("Readable stream closed"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function NB(){this.stream._duplexState|=Ac,this.updateCallback()}function MB(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&Lt)===0&&(e._duplexState|=cr,e.emit("finish")),(e._duplexState&xE)===Ic&&(e._duplexState|=zt),e._duplexState&=hB,(e._duplexState&Pi)===0?this.update():this.updateNextTick()}function DE(t){let e=this.stream;!t&&!ct.isStreamDestroyed(this.error)&&(t=this.error),t&&e.emit("error",t),e._duplexState|=Zn,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 kB(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=cB,this.drains!==null&&jB(this.drains),(e._duplexState&RB)===ns&&(e._duplexState&=dB,(e._duplexState&bc)===bc&&e.emit("drain")),this.updateCallback()}function FB(t){t&&this.stream.destroy(t),this.stream._duplexState&=iB,this.readAhead===!1&&(this.stream._duplexState&rs)===0&&(this.stream._duplexState&=SE),this.updateCallback()}function qB(){(this.stream._duplexState&Di)===0&&(this.stream._duplexState&=wE,this.update())}function BB(){(this.stream._duplexState&Pi)===0&&(this.stream._duplexState&=vE,this.update())}function jB(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function IE(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&zt)===0&&((e._duplexState&_B)===0&&(e._duplexState|=Li),(e._duplexState&AB)===0&&(e._duplexState|=is),e.emit("open")),e._duplexState&=AE,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function UB(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function WB(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=_c|Oc,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=xc,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=bc,this._writableState.updateNextTick())}var Xn=class extends Qq{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",ej.bind(this))),this.on("newListener",WB)}_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&Zn)!==0}get destroying(){return(this._duplexState&Lt)!==0}destroy(e){(this._duplexState&Lt)===0&&(e||(e=ct.STREAM_DESTROYED()),this._duplexState=(this._duplexState|zt)&yB,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=Tc,this._predestroy(),this._duplexState&=Jq,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},Ra=class t extends Xn{constructor(e){super(e),this._duplexState|=Pt|cr|Fr,this._readableState=new wc(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=SE),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}static deferred(e,r){let i=new Ia(r);return e().then(n=>{if(n===null)return i.end();i.destroying||Pc(n,i,vc)}).catch(n=>i.destroy(n)),i}setEncoding(e){let r=new Xq(e),i=this._readableState.map||$B;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|=Oc,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?fB:oB,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(QB(e))return e;if(e[Aa])return this._fromAsyncIterator(e[Aa](),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&EB)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&rs)===0}[Aa](){let e=this,r=null,i=null,n=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",o),{[Aa](){return this},next(){return new Promise(function(u,f){i=u,n=f;let h=e.read();h!==null?a(h):(e._duplexState&Zn)!==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&_t)===0?n(ct.STREAM_DESTROYED()):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,h)=>{if(e._duplexState&Zn)return f({value:void 0,done:!0});e.once("close",function(){u?h(u):f({value:void 0,done:!0})})})}}},Oa=class extends Xn{constructor(e){super(e),this._duplexState|=Pt|_t,this._writableState=new xa(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|=La}uncork(){this._duplexState&=TE,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&PB)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(tj(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&Dc?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}},Jn=class extends Ra{constructor(e){super(e),this._duplexState=Pt|this._duplexState&Fr,this._writableState=new xa(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=La}uncork(){this._duplexState&=TE,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}},Da=class extends Jn{constructor(e){super(e),this._transformState=new Sc(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(GB.bind(this))}},Ia=class extends Da{};function GB(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function zB(...t){return new Promise((e,r)=>Pc(...t,i=>{if(i)return r(i);e()}))}function Pc(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 ct.BAD_ARGUMENT("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],es(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=es(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",h=>{o===null&&(o=h)}),s.on("finish",()=>{u=!0,f||i(o)}),f&&s.on("close",()=>i(o||(u?null:ct.PREMATURE_CLOSE())))}return s;function a(u,f,h,g){u.on("error",g),u.on("close",y);function y(){if(f&&u._readableState&&!u._readableState.ended||h&&u._writableState&&!u._writableState.ended)return g(ct.PREMATURE_CLOSE())}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function $B(t){return t}function PE(t){return!!t._readableState||!!t._writableState}function es(t){return typeof t._duplexState=="number"&&PE(t)}function HB(t){return!!t._readableState&&t._readableState.ending}function VB(t){return!!t._readableState&&t._readableState.ended}function YB(t){return!!t._writableState&&t._writableState.ending}function KB(t){return!!t._writableState&&t._writableState.ended}function ZB(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&ct.isStreamDestroyed(r)?null:r}function QB(t){return es(t)&&t.readable}function XB(t){return(t._duplexState&Pt)!==Pt||(t._duplexState&zt)===zt||(t._duplexState&Ca)!==0}function JB(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function LE(t){return JB(t)?t.byteLength:1024}function vc(){}function ej(){this.destroy(ct.ABORTED())}function tj(t){return t._writev!==Oa.prototype._writev&&t._writev!==Jn.prototype._writev}CE.exports={pipeline:Pc,pipelinePromise:zB,isStream:PE,isStreamx:es,isEnding:HB,isEnded:VB,isFinishing:YB,isFinished:KB,isDisturbed:XB,getStreamError:ZB,Stream:Xn,Writable:Oa,Readable:Ra,Duplex:Jn,Transform:Da,PassThrough:Ia}});var Mc=b(Ni=>{var ne=Oi(),rj="0000000000000000000",ij="7777777777777777777",Na=48,NE=ne.from([117,115,116,97,114,0]),nj=ne.from([Na,Na]),sj=ne.from([117,115,116,97,114,32]),oj=ne.from([32,0]),aj=4095,ss=257,Nc=263;Ni.decodeLongPath=function(e,r){return Ci(e,0,e.length,r)};Ni.encodePax=function(e){let r="";e.name&&(r+=Cc(" path="+e.name+`
11
+ `+c);let[,w]=p;return w.replace(/\s/g,"").split(dv).map(T=>T.replace(pv,"").trim())}function Zc(d,c){var p={};return Object.keys(d).forEach(w=>{var T=d[w],x,O=y(T),I=!O&&T.length===1||O&&T.length===0;if(Array.isArray(T))x=[...T],T=x.pop(),p[w]=x.concat(x.length>0?C:T);else if(I)p[w]=T;else{if(x=yv(T),T.length===0&&!O&&x.length===0)throw new Error("autoInject task functions require explicit parameters.");O||x.pop(),p[w]=x.concat(C)}function C(U,te){var oe=x.map(re=>U[re]);oe.push(te),v(T)(...oe)}}),Fa(p,c)}class mv{constructor(){this.head=this.tail=null,this.length=0}removeLink(c){return c.prev?c.prev.next=c.next:this.head=c.next,c.next?c.next.prev=c.prev:this.tail=c.prev,c.prev=c.next=null,this.length-=1,c}empty(){for(;this.head;)this.shift();return this}insertAfter(c,p){p.prev=c,p.next=c.next,c.next?c.next.prev=p:this.tail=p,c.next=p,this.length+=1}insertBefore(c,p){p.prev=c.prev,p.next=c,c.prev?c.prev.next=p:this.head=p,c.prev=p,this.length+=1}unshift(c){this.head?this.insertBefore(this.head,c):Qc(this,c)}push(c){this.tail?this.insertAfter(this.tail,c):Qc(this,c)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var c=this.head;c;)yield c.data,c=c.next}remove(c){for(var p=this.head;p;){var{next:w}=p;c(p)&&this.removeLink(p),p=w}return this}}function Qc(d,c){d.length=1,d.head=d.tail=c}function qa(d,c,p){if(c==null)c=1;else if(c===0)throw new RangeError("Concurrency must not be zero");var w=v(d),T=0,x=[];let O={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function I(G,j){O[G].push(j)}function C(G,j){let z=(...ie)=>{U(G,z),j(...ie)};O[G].push(z)}function U(G,j){if(!G)return Object.keys(O).forEach(z=>O[z]=[]);if(!j)return O[G]=[];O[G]=O[G].filter(z=>z!==j)}function te(G,...j){O[G].forEach(z=>z(...j))}var oe=!1;function re(G,j,z,ie){if(ie!=null&&typeof ie!="function")throw new Error("task callback must be a function");ae.started=!0;var we,Pe;function ot(br,...zi){if(br)return z?Pe(br):we();if(zi.length<=1)return we(zi[0]);we(zi)}var Hr=ae._createTaskItem(G,z?ot:ie||ot);if(j?ae._tasks.unshift(Hr):ae._tasks.push(Hr),oe||(oe=!0,u(()=>{oe=!1,ae.process()})),z||!ie)return new Promise((br,zi)=>{we=br,Pe=zi})}function st(G){return function(j,...z){T-=1;for(var ie=0,we=G.length;ie<we;ie++){var Pe=G[ie],ot=x.indexOf(Pe);ot===0?x.shift():ot>0&&x.splice(ot,1),Pe.callback(j,...z),j!=null&&te("error",j,Pe.data)}T<=ae.concurrency-ae.buffer&&te("unsaturated"),ae.idle()&&te("drain"),ae.process()}}function $r(G){return G.length===0&&ae.idle()?(u(()=>te("drain")),!0):!1}let _r=G=>j=>{if(!j)return new Promise((z,ie)=>{C(G,(we,Pe)=>{if(we)return ie(we);z(Pe)})});U(G),I(G,j)};var Gi=!1,ae={_tasks:new mv,_createTaskItem(G,j){return{data:G,callback:j}},*[Symbol.iterator](){yield*ae._tasks[Symbol.iterator]()},concurrency:c,payload:p,buffer:c/4,started:!1,paused:!1,push(G,j){return Array.isArray(G)?$r(G)?void 0:G.map(z=>re(z,!1,!1,j)):re(G,!1,!1,j)},pushAsync(G,j){return Array.isArray(G)?$r(G)?void 0:G.map(z=>re(z,!1,!0,j)):re(G,!1,!0,j)},kill(){U(),ae._tasks.empty()},unshift(G,j){return Array.isArray(G)?$r(G)?void 0:G.map(z=>re(z,!0,!1,j)):re(G,!0,!1,j)},unshiftAsync(G,j){return Array.isArray(G)?$r(G)?void 0:G.map(z=>re(z,!0,!0,j)):re(G,!0,!0,j)},remove(G){ae._tasks.remove(G)},process(){if(!Gi){for(Gi=!0;!ae.paused&&T<ae.concurrency&&ae._tasks.length;){var G=[],j=[],z=ae._tasks.length;ae.payload&&(z=Math.min(z,ae.payload));for(var ie=0;ie<z;ie++){var we=ae._tasks.shift();G.push(we),x.push(we),j.push(we.data)}T+=1,ae._tasks.length===0&&te("empty"),T===ae.concurrency&&te("saturated");var Pe=H(st(G));w(j,Pe)}Gi=!1}},length(){return ae._tasks.length},running(){return T},workersList(){return x},idle(){return ae._tasks.length+T===0},pause(){ae.paused=!0},resume(){ae.paused!==!1&&(ae.paused=!1,u(ae.process))}};return Object.defineProperties(ae,{saturated:{writable:!1,value:_r("saturated")},unsaturated:{writable:!1,value:_r("unsaturated")},empty:{writable:!1,value:_r("empty")},drain:{writable:!1,value:_r("drain")},error:{writable:!1,value:_r("error")}}),ae}function Xc(d,c){return qa(d,1,c)}function Jc(d,c,p){return qa(d,c,p)}function _v(d,c,p,w){w=Z(w);var T=v(p);return pt(d,(x,O,I)=>{T(c,x,(C,U)=>{c=U,I(C)})},x=>w(x,c))}var Yt=S(_v,4);function Ba(...d){var c=d.map(v);return function(...p){var w=this,T=p[p.length-1];return typeof T=="function"?p.pop():T=Gr(),Yt(c,p,(x,O,I)=>{O.apply(w,x.concat((C,...U)=>{I(C,U)}))},(x,O)=>T(x,...O)),T[Wr]}}function eh(...d){return Ba(...d.reverse())}function bv(d,c,p,w){return L(se(c),d,p,w)}var qi=S(bv,4);function wv(d,c,p,w){var T=v(p);return qi(d,c,(x,O)=>{T(x,(I,...C)=>I?O(I):O(I,C))},(x,O)=>{for(var I=[],C=0;C<O.length;C++)O[C]&&(I=I.concat(...O[C]));return w(x,I)})}var zr=S(wv,4);function Sv(d,c,p){return zr(d,1/0,c,p)}var ls=S(Sv,3);function Ev(d,c,p){return zr(d,1,c,p)}var us=S(Ev,3);function th(...d){return function(...c){var p=c.pop();return p(null,...d)}}function Mt(d,c){return(p,w,T,x)=>{var O=!1,I;let C=v(T);p(w,(U,te,oe)=>{C(U,(re,st)=>{if(re||re===!1)return oe(re);if(d(st)&&!I)return O=!0,I=c(!0,U),oe(null,q);oe()})},U=>{if(U)return x(U);x(null,O?I:c(!1))})}}function vv(d,c,p){return Mt(w=>w,(w,T)=>T)(Ze,d,c,p)}var fs=S(vv,3);function Tv(d,c,p,w){return Mt(T=>T,(T,x)=>x)(se(c),d,p,w)}var cs=S(Tv,4);function xv(d,c,p){return Mt(w=>w,(w,T)=>T)(se(1),d,c,p)}var hs=S(xv,3);function rh(d){return(c,...p)=>v(c)(...p,(w,...T)=>{typeof console=="object"&&(w?console.error&&console.error(w):console[d]&&T.forEach(x=>console[d](x)))})}var ih=rh("dir");function Av(d,c,p){p=H(p);var w=v(d),T=v(c),x;function O(C,...U){if(C)return p(C);C!==!1&&(x=U,T(...U,I))}function I(C,U){if(C)return p(C);if(C!==!1){if(!U)return p(null,...x);w(O)}}return I(null,!0)}var Bi=S(Av,3);function nh(d,c,p){let w=v(c);return Bi(d,(...T)=>{let x=T.pop();w(...T,(O,I)=>x(O,!I))},p)}function sh(d){return(c,p,w)=>d(c,w)}function Rv(d,c,p){return Ze(d,sh(v(c)),p)}var ds=S(Rv,3);function Ov(d,c,p,w){return se(c)(d,sh(v(p)),w)}var ji=S(Ov,4);function Dv(d,c,p){return ji(d,1,c,p)}var Ui=S(Dv,3);function ja(d){return y(d)?d:function(...c){var p=c.pop(),w=!0;c.push((...T)=>{w?u(()=>p(...T)):p(...T)}),d.apply(this,c),w=!1}}function Iv(d,c,p){return Mt(w=>!w,w=>!w)(Ze,d,c,p)}var ps=S(Iv,3);function Pv(d,c,p,w){return Mt(T=>!T,T=>!T)(se(c),d,p,w)}var gs=S(Pv,4);function Lv(d,c,p){return Mt(w=>!w,w=>!w)(pt,d,c,p)}var ys=S(Lv,3);function Cv(d,c,p,w){var T=new Array(c.length);d(c,(x,O,I)=>{p(x,(C,U)=>{T[O]=!!U,I(C)})},x=>{if(x)return w(x);for(var O=[],I=0;I<c.length;I++)T[I]&&O.push(c[I]);w(null,O)})}function Nv(d,c,p,w){var T=[];d(c,(x,O,I)=>{p(x,(C,U)=>{if(C)return I(C);U&&T.push({index:O,value:x}),I(C)})},x=>{if(x)return w(x);w(null,T.sort((O,I)=>O.index-I.index).map(O=>O.value))})}function ms(d,c,p,w){var T=D(c)?Cv:Nv;return T(d,c,v(p),w)}function Mv(d,c,p){return ms(Ze,d,c,p)}var _s=S(Mv,3);function kv(d,c,p,w){return ms(se(c),d,p,w)}var bs=S(kv,4);function Fv(d,c,p){return ms(pt,d,c,p)}var ws=S(Fv,3);function qv(d,c){var p=H(c),w=v(ja(d));function T(x){if(x)return p(x);x!==!1&&w(T)}return T()}var oh=S(qv,2);function Bv(d,c,p,w){var T=v(p);return qi(d,c,(x,O)=>{T(x,(I,C)=>I?O(I):O(I,{key:C,val:x}))},(x,O)=>{for(var I={},{hasOwnProperty:C}=Object.prototype,U=0;U<O.length;U++)if(O[U]){var{key:te}=O[U],{val:oe}=O[U];C.call(I,te)?I[te].push(oe):I[te]=[oe]}return w(x,I)})}var Ss=S(Bv,4);function ah(d,c,p){return Ss(d,1/0,c,p)}function lh(d,c,p){return Ss(d,1,c,p)}var uh=rh("log");function jv(d,c,p,w){w=Z(w);var T={},x=v(p);return se(c)(d,(O,I,C)=>{x(O,I,(U,te)=>{if(U)return C(U);T[I]=te,C(U)})},O=>w(O,T))}var Es=S(jv,4);function fh(d,c,p){return Es(d,1/0,c,p)}function ch(d,c,p){return Es(d,1,c,p)}function hh(d,c=p=>p){var p=Object.create(null),w=Object.create(null),T=v(d),x=r((O,I)=>{var C=c(...O);C in p?u(()=>I(null,...p[C])):C in w?w[C].push(I):(w[C]=[I],T(...O,(U,...te)=>{U||(p[C]=te);var oe=w[C];delete w[C];for(var re=0,st=oe.length;re<st;re++)oe[re](U,...te)}))});return x.memo=p,x.unmemoized=d,x}var vs;s?vs=process.nextTick:n?vs=setImmediate:vs=o;var dh=a(vs),Ua=S((d,c,p)=>{var w=D(c)?[]:{};d(c,(T,x,O)=>{v(T)((I,...C)=>{C.length<2&&([C]=C),w[x]=C,O(I)})},T=>p(T,w))},3);function ph(d,c){return Ua(Ze,d,c)}function gh(d,c,p){return Ua(se(c),d,p)}function Wa(d,c){var p=v(d);return qa((w,T)=>{p(w[0],T)},c,1)}class Uv{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(c){let p;for(;c>0&&Ga(this.heap[c],this.heap[p=yh(c)]);){let w=this.heap[c];this.heap[c]=this.heap[p],this.heap[p]=w,c=p}}percDown(c){let p;for(;(p=Wv(c))<this.heap.length&&(p+1<this.heap.length&&Ga(this.heap[p+1],this.heap[p])&&(p=p+1),!Ga(this.heap[c],this.heap[p]));){let w=this.heap[c];this.heap[c]=this.heap[p],this.heap[p]=w,c=p}}push(c){c.pushCount=++this.pushCount,this.heap.push(c),this.percUp(this.heap.length-1)}unshift(c){return this.heap.push(c)}shift(){let[c]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),c}toArray(){return[...this]}*[Symbol.iterator](){for(let c=0;c<this.heap.length;c++)yield this.heap[c].data}remove(c){let p=0;for(let w=0;w<this.heap.length;w++)c(this.heap[w])||(this.heap[p]=this.heap[w],p++);this.heap.splice(p);for(let w=yh(this.heap.length-1);w>=0;w--)this.percDown(w);return this}}function Wv(d){return(d<<1)+1}function yh(d){return(d+1>>1)-1}function Ga(d,c){return d.priority!==c.priority?d.priority<c.priority:d.pushCount<c.pushCount}function mh(d,c){var p=Wa(d,c),{push:w,pushAsync:T}=p;p._tasks=new Uv,p._createTaskItem=({data:O,priority:I},C)=>({data:O,priority:I,callback:C});function x(O,I){return Array.isArray(O)?O.map(C=>({data:C,priority:I})):{data:O,priority:I}}return p.push=function(O,I=0,C){return w(x(O,I),C)},p.pushAsync=function(O,I=0,C){return T(x(O,I),C)},delete p.unshift,delete p.unshiftAsync,p}function Gv(d,c){if(c=Z(c),!Array.isArray(d))return c(new TypeError("First argument to race must be an array of functions"));if(!d.length)return c();for(var p=0,w=d.length;p<w;p++)v(d[p])(c)}var _h=S(Gv,2);function Ts(d,c,p,w){var T=[...d].reverse();return Yt(T,c,p,w)}function xs(d){var c=v(d);return r(function(w,T){return w.push((x,...O)=>{let I={};if(x&&(I.error=x),O.length>0){var C=O;O.length<=1&&([C]=O),I.value=C}T(null,I)}),c.apply(this,w)})}function bh(d){var c;return Array.isArray(d)?c=d.map(xs):(c={},Object.keys(d).forEach(p=>{c[p]=xs.call(this,d[p])})),c}function za(d,c,p,w){let T=v(p);return ms(d,c,(x,O)=>{T(x,(I,C)=>{O(I,!C)})},w)}function zv(d,c,p){return za(Ze,d,c,p)}var wh=S(zv,3);function $v(d,c,p,w){return za(se(c),d,p,w)}var Sh=S($v,4);function Hv(d,c,p){return za(pt,d,c,p)}var Eh=S(Hv,3);function vh(d){return function(){return d}}let $a=5,Th=0;function As(d,c,p){var w={times:$a,intervalFunc:vh(Th)};if(arguments.length<3&&typeof d=="function"?(p=c||Gr(),c=d):(Vv(w,d),p=p||Gr()),typeof c!="function")throw new Error("Invalid arguments for async.retry");var T=v(c),x=1;function O(){T((I,...C)=>{I!==!1&&(I&&x++<w.times&&(typeof w.errorFilter!="function"||w.errorFilter(I))?setTimeout(O,w.intervalFunc(x-1)):p(I,...C))})}return O(),p[Wr]}function Vv(d,c){if(typeof c=="object")d.times=+c.times||$a,d.intervalFunc=typeof c.interval=="function"?c.interval:vh(+c.interval||Th),d.errorFilter=c.errorFilter;else if(typeof c=="number"||typeof c=="string")d.times=+c||$a;else throw new Error("Invalid arguments for async.retry")}function xh(d,c){c||(c=d,d=null);let p=d&&d.arity||c.length;y(c)&&(p+=1);var w=v(c);return r((T,x)=>{(T.length<p-1||x==null)&&(T.push(x),x=Gr());function O(I){w(...T,I)}return d?As(d,O,x):As(O,x),x[Wr]})}function Ah(d,c){return Ua(pt,d,c)}function Yv(d,c,p){return Mt(Boolean,w=>w)(Ze,d,c,p)}var Rs=S(Yv,3);function Kv(d,c,p,w){return Mt(Boolean,T=>T)(se(c),d,p,w)}var Os=S(Kv,4);function Zv(d,c,p){return Mt(Boolean,w=>w)(pt,d,c,p)}var Ds=S(Zv,3);function Qv(d,c,p){var w=v(c);return as(d,(x,O)=>{w(x,(I,C)=>{if(I)return O(I);O(I,{value:x,criteria:C})})},(x,O)=>{if(x)return p(x);p(null,O.sort(T).map(I=>I.value))});function T(x,O){var I=x.criteria,C=O.criteria;return I<C?-1:I>C?1:0}}var Rh=S(Qv,3);function Oh(d,c,p){var w=v(d);return r((T,x)=>{var O=!1,I;function C(){var U=d.name||"anonymous",te=new Error('Callback function "'+U+'" timed out.');te.code="ETIMEDOUT",p&&(te.info=p),O=!0,x(te)}T.push((...U)=>{O||(x(...U),clearTimeout(I))}),I=setTimeout(C,c),w(...T)})}function Xv(d){for(var c=Array(d);d--;)c[d]=d;return c}function Is(d,c,p,w){var T=v(p);return qi(Xv(d),c,T,w)}function Dh(d,c,p){return Is(d,1/0,c,p)}function Ih(d,c,p){return Is(d,1,c,p)}function Ph(d,c,p,w){arguments.length<=3&&typeof c=="function"&&(w=p,p=c,c=Array.isArray(d)?[]:{}),w=Z(w||Gr());var T=v(p);return Ze(d,(x,O,I)=>{T(c,x,O,I)},x=>w(x,c)),w[Wr]}function Jv(d,c){var p=null,w;return Ui(d,(T,x)=>{v(T)((O,...I)=>{if(O===!1)return x(O);I.length<2?[w]=I:w=I,p=O,x(O?null:{})})},()=>c(p,w))}var Lh=S(Jv);function Ch(d){return(...c)=>(d.unmemoized||d)(...c)}function e1(d,c,p){p=H(p);var w=v(c),T=v(d),x=[];function O(C,...U){if(C)return p(C);x=U,C!==!1&&T(I)}function I(C,U){if(C)return p(C);if(C!==!1){if(!U)return p(null,...x);w(O)}}return T(I)}var Wi=S(e1,3);function Nh(d,c,p){let w=v(d);return Wi(T=>w((x,O)=>T(x,!O)),c,p)}function t1(d,c){if(c=Z(c),!Array.isArray(d))return c(new Error("First argument to waterfall must be an array of functions"));if(!d.length)return c();var p=0;function w(x){var O=v(d[p++]);O(...x,H(T))}function T(x,...O){if(x!==!1){if(x||p===d.length)return c(x,...O);w(O)}}w([])}var Mh=S(t1),r1={apply:e,applyEach:Yc,applyEachSeries:Kc,asyncify:f,auto:Fa,autoInject:Zc,cargo:Xc,cargoQueue:Jc,compose:eh,concat:ls,concatLimit:zr,concatSeries:us,constant:th,detect:fs,detectLimit:cs,detectSeries:hs,dir:ih,doUntil:nh,doWhilst:Bi,each:ds,eachLimit:ji,eachOf:Ze,eachOfLimit:ue,eachOfSeries:pt,eachSeries:Ui,ensureAsync:ja,every:ps,everyLimit:gs,everySeries:ys,filter:_s,filterLimit:bs,filterSeries:ws,forever:oh,groupBy:ah,groupByLimit:Ss,groupBySeries:lh,log:uh,map:as,mapLimit:qi,mapSeries:ka,mapValues:fh,mapValuesLimit:Es,mapValuesSeries:ch,memoize:hh,nextTick:dh,parallel:ph,parallelLimit:gh,priorityQueue:mh,queue:Wa,race:_h,reduce:Yt,reduceRight:Ts,reflect:xs,reflectAll:bh,reject:wh,rejectLimit:Sh,rejectSeries:Eh,retry:As,retryable:xh,seq:Ba,series:Ah,setImmediate:u,some:Rs,someLimit:Os,someSeries:Ds,sortBy:Rh,timeout:Oh,times:Dh,timesLimit:Is,timesSeries:Ih,transform:Ph,tryEach:Lh,unmemoize:Ch,until:Nh,waterfall:Mh,whilst:Wi,all:ps,allLimit:gs,allSeries:ys,any:Rs,anyLimit:Os,anySeries:Ds,find:fs,findLimit:cs,findSeries:hs,flatMap:ls,flatMapLimit:zr,flatMapSeries:us,forEach:ds,forEachSeries:Ui,forEachLimit:ji,forEachOf:Ze,forEachOfSeries:pt,forEachOfLimit:ue,inject:Yt,foldl:Yt,foldr:Ts,select:_s,selectLimit:bs,selectSeries:ws,wrapSync:f,during:Wi,doDuring:Bi};t.all=ps,t.allLimit=gs,t.allSeries=ys,t.any=Rs,t.anyLimit=Os,t.anySeries=Ds,t.apply=e,t.applyEach=Yc,t.applyEachSeries=Kc,t.asyncify=f,t.auto=Fa,t.autoInject=Zc,t.cargo=Xc,t.cargoQueue=Jc,t.compose=eh,t.concat=ls,t.concatLimit=zr,t.concatSeries=us,t.constant=th,t.default=r1,t.detect=fs,t.detectLimit=cs,t.detectSeries=hs,t.dir=ih,t.doDuring=Bi,t.doUntil=nh,t.doWhilst=Bi,t.during=Wi,t.each=ds,t.eachLimit=ji,t.eachOf=Ze,t.eachOfLimit=ue,t.eachOfSeries=pt,t.eachSeries=Ui,t.ensureAsync=ja,t.every=ps,t.everyLimit=gs,t.everySeries=ys,t.filter=_s,t.filterLimit=bs,t.filterSeries=ws,t.find=fs,t.findLimit=cs,t.findSeries=hs,t.flatMap=ls,t.flatMapLimit=zr,t.flatMapSeries=us,t.foldl=Yt,t.foldr=Ts,t.forEach=ds,t.forEachLimit=ji,t.forEachOf=Ze,t.forEachOfLimit=ue,t.forEachOfSeries=pt,t.forEachSeries=Ui,t.forever=oh,t.groupBy=ah,t.groupByLimit=Ss,t.groupBySeries=lh,t.inject=Yt,t.log=uh,t.map=as,t.mapLimit=qi,t.mapSeries=ka,t.mapValues=fh,t.mapValuesLimit=Es,t.mapValuesSeries=ch,t.memoize=hh,t.nextTick=dh,t.parallel=ph,t.parallelLimit=gh,t.priorityQueue=mh,t.queue=Wa,t.race=_h,t.reduce=Yt,t.reduceRight=Ts,t.reflect=xs,t.reflectAll=bh,t.reject=wh,t.rejectLimit=Sh,t.rejectSeries=Eh,t.retry=As,t.retryable=xh,t.select=_s,t.selectLimit=bs,t.selectSeries=ws,t.seq=Ba,t.series=Ah,t.setImmediate=u,t.some=Rs,t.someLimit=Os,t.someSeries=Ds,t.sortBy=Rh,t.timeout=Oh,t.times=Dh,t.timesLimit=Is,t.timesSeries=Ih,t.transform=Ph,t.tryEach=Lh,t.unmemoize=Ch,t.until=Nh,t.waterfall=Mh,t.whilst=Wi,t.wrapSync=f,Object.defineProperty(t,"__esModule",{value:!0})}))});var Rd=b((K3,Ad)=>{var Qt=W("constants"),cT=process.cwd,ks=null,hT=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return ks||(ks=cT.call(process)),ks};try{process.cwd()}catch{}typeof process.chdir=="function"&&(gl=process.chdir,process.chdir=function(t){ks=null,gl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,gl));var gl;Ad.exports=dT;function dT(t){Qt.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,h,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,h,g,y){y&&process.nextTick(y)},t.lchownSync=function(){}),hT==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(f){function h(g,y,E){var m=Date.now(),v=0;f(g,y,function S(R){if(R&&(R.code==="EACCES"||R.code==="EPERM"||R.code==="EBUSY")&&Date.now()-m<6e4){setTimeout(function(){t.stat(y,function(L,D){L&&L.code==="ENOENT"?f(g,y,S):E(R)})},v),v<100&&(v+=10);return}E&&E(R)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(f){function h(g,y,E,m,v,S){var R;if(S&&typeof S=="function"){var L=0;R=function(D,q,Z){if(D&&D.code==="EAGAIN"&&L<10)return L++,f.call(t,g,y,E,m,v,R);S.apply(this,arguments)}}return f.call(t,g,y,E,m,v,R)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(f){return function(h,g,y,E,m){for(var v=0;;)try{return f.call(t,h,g,y,E,m)}catch(S){if(S.code==="EAGAIN"&&v<10){v++;continue}throw S}}})(t.readSync);function e(f){f.lchmod=function(h,g,y){f.open(h,Qt.O_WRONLY|Qt.O_SYMLINK,g,function(E,m){if(E){y&&y(E);return}f.fchmod(m,g,function(v){f.close(m,function(S){y&&y(v||S)})})})},f.lchmodSync=function(h,g){var y=f.openSync(h,Qt.O_WRONLY|Qt.O_SYMLINK,g),E=!0,m;try{m=f.fchmodSync(y,g),E=!1}finally{if(E)try{f.closeSync(y)}catch{}else f.closeSync(y)}return m}}function r(f){Qt.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,g,y,E){f.open(h,Qt.O_SYMLINK,function(m,v){if(m){E&&E(m);return}f.futimes(v,g,y,function(S){f.close(v,function(R){E&&E(S||R)})})})},f.lutimesSync=function(h,g,y){var E=f.openSync(h,Qt.O_SYMLINK),m,v=!0;try{m=f.futimesSync(E,g,y),v=!1}finally{if(v)try{f.closeSync(E)}catch{}else f.closeSync(E)}return m}):f.futimes&&(f.lutimes=function(h,g,y,E){E&&process.nextTick(E)},f.lutimesSync=function(){})}function i(f){return f&&function(h,g,y){return f.call(t,h,g,function(E){u(E)&&(E=null),y&&y.apply(this,arguments)})}}function n(f){return f&&function(h,g){try{return f.call(t,h,g)}catch(y){if(!u(y))throw y}}}function s(f){return f&&function(h,g,y,E){return f.call(t,h,g,y,function(m){u(m)&&(m=null),E&&E.apply(this,arguments)})}}function o(f){return f&&function(h,g,y){try{return f.call(t,h,g,y)}catch(E){if(!u(E))throw E}}}function a(f){return f&&function(h,g,y){typeof g=="function"&&(y=g,g=null);function E(m,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),y&&y.apply(this,arguments)}return g?f.call(t,h,g,E):f.call(t,h,E)}}function l(f){return f&&function(h,g){var y=g?f.call(t,h,g):f.call(t,h);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function u(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var Id=b((Z3,Dd)=>{var Od=W("stream").Stream;Dd.exports=pT;function pT(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,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),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 Ld=b((Q3,Pd)=>{"use strict";Pd.exports=yT;var gT=Object.getPrototypeOf||function(t){return t.__proto__};function yT(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:gT(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var bl=b((X3,_l)=>{var Ee=W("fs"),mT=Rd(),_T=Id(),bT=Ld(),Fs=W("util"),ke,Bs;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ke=Symbol.for("graceful-fs.queue"),Bs=Symbol.for("graceful-fs.previous")):(ke="___graceful-fs.queue",Bs="___graceful-fs.previous");function wT(){}function Md(t,e){Object.defineProperty(t,ke,{get:function(){return e}})}var wr=wT;Fs.debuglog?wr=Fs.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(wr=function(){var t=Fs.format.apply(Fs,arguments);t="GFS4: "+t.split(/\n/).join(`
12
+ GFS4: `),console.error(t)});Ee[ke]||(Cd=global[ke]||[],Md(Ee,Cd),Ee.close=(function(t){function e(r,i){return t.call(Ee,r,function(n){n||Nd(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Bs,{value:t}),e})(Ee.close),Ee.closeSync=(function(t){function e(r){t.apply(Ee,arguments),Nd()}return Object.defineProperty(e,Bs,{value:t}),e})(Ee.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){wr(Ee[ke]),W("assert").equal(Ee[ke].length,0)}));var Cd;global[ke]||Md(global,Ee[ke]);_l.exports=yl(bT(Ee));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ee.__patched&&(_l.exports=yl(Ee),Ee.__patched=!0);function yl(t){mT(t),t.gracefulify=yl,t.createReadStream=q,t.createWriteStream=Z;var e=t.readFile;t.readFile=r;function r(A,M,k){return typeof M=="function"&&(k=M,M=null),H(A,M,k);function H(ee,se,de,ue){return e(ee,se,function(fe){fe&&(fe.code==="EMFILE"||fe.code==="ENFILE")?Yr([H,[ee,se,de],fe,ue||Date.now(),Date.now()]):typeof de=="function"&&de.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(A,M,k,H){return typeof k=="function"&&(H=k,k=null),ee(A,M,k,H);function ee(se,de,ue,fe,Oe){return i(se,de,ue,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Yr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(A,M,k,H){return typeof k=="function"&&(H=k,k=null),ee(A,M,k,H);function ee(se,de,ue,fe,Oe){return s(se,de,ue,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Yr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(A,M,k,H){return typeof k=="function"&&(H=k,k=0),ee(A,M,k,H);function ee(se,de,ue,fe,Oe){return a(se,de,ue,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Yr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}var u=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(A,M,k){typeof M=="function"&&(k=M,M=null);var H=f.test(process.version)?function(de,ue,fe,Oe){return u(de,ee(de,ue,fe,Oe))}:function(de,ue,fe,Oe){return u(de,ue,ee(de,ue,fe,Oe))};return H(A,M,k);function ee(se,de,ue,fe){return function(Oe,ge){Oe&&(Oe.code==="EMFILE"||Oe.code==="ENFILE")?Yr([H,[se,de,ue],Oe,fe||Date.now(),Date.now()]):(ge&&ge.sort&&ge.sort(),typeof ue=="function"&&ue.call(this,Oe,ge))}}}if(process.version.substr(0,4)==="v0.8"){var g=_T(t);S=g.ReadStream,L=g.WriteStream}var y=t.ReadStream;y&&(S.prototype=Object.create(y.prototype),S.prototype.open=R);var E=t.WriteStream;E&&(L.prototype=Object.create(E.prototype),L.prototype.open=D),Object.defineProperty(t,"ReadStream",{get:function(){return S},set:function(A){S=A},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return L},set:function(A){L=A},enumerable:!0,configurable:!0});var m=S;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(A){m=A},enumerable:!0,configurable:!0});var v=L;Object.defineProperty(t,"FileWriteStream",{get:function(){return v},set:function(A){v=A},enumerable:!0,configurable:!0});function S(A,M){return this instanceof S?(y.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function R(){var A=this;B(A.path,A.flags,A.mode,function(M,k){M?(A.autoClose&&A.destroy(),A.emit("error",M)):(A.fd=k,A.emit("open",k),A.read())})}function L(A,M){return this instanceof L?(E.apply(this,arguments),this):L.apply(Object.create(L.prototype),arguments)}function D(){var A=this;B(A.path,A.flags,A.mode,function(M,k){M?(A.destroy(),A.emit("error",M)):(A.fd=k,A.emit("open",k))})}function q(A,M){return new t.ReadStream(A,M)}function Z(A,M){return new t.WriteStream(A,M)}var P=t.open;t.open=B;function B(A,M,k,H){return typeof k=="function"&&(H=k,k=null),ee(A,M,k,H);function ee(se,de,ue,fe,Oe){return P(se,de,ue,function(ge,Ze){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Yr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}return t}function Yr(t){wr("ENQUEUE",t[0].name,t[1]),Ee[ke].push(t),ml()}var qs;function Nd(){for(var t=Date.now(),e=0;e<Ee[ke].length;++e)Ee[ke][e].length>2&&(Ee[ke][e][3]=t,Ee[ke][e][4]=t);ml()}function ml(){if(clearTimeout(qs),qs=void 0,Ee[ke].length!==0){var t=Ee[ke].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)wr("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){wr("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?(wr("RETRY",e.name,r),e.apply(null,r.concat([n]))):Ee[ke].push(t)}qs===void 0&&(qs=setTimeout(ml,0))}}});var js=b((J3,kd)=>{"use strict";var St=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";St.writable=t=>St(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";St.readable=t=>St(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";St.duplex=t=>St.writable(t)&&St.readable(t);St.transform=t=>St.duplex(t)&&typeof t._transform=="function";kd.exports=St});var Yi=b((e4,wl)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?wl.exports={nextTick:ST}:wl.exports=process;function ST(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 qd=b((t4,Fd)=>{var ET={}.toString;Fd.exports=Array.isArray||function(t){return ET.call(t)=="[object Array]"}});var Sl=b((r4,Bd)=>{Bd.exports=W("stream")});var Ki=b((El,Ud)=>{var Us=W("buffer"),kt=Us.Buffer;function jd(t,e){for(var r in t)e[r]=t[r]}kt.from&&kt.alloc&&kt.allocUnsafe&&kt.allocUnsafeSlow?Ud.exports=Us:(jd(Us,El),El.Buffer=Kr);function Kr(t,e,r){return kt(t,e,r)}jd(kt,Kr);Kr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return kt(t,e,r)};Kr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=kt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Kr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return kt(t)};Kr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Us.SlowBuffer(t)}});var Zr=b(Ue=>{function vT(t){return Array.isArray?Array.isArray(t):Ws(t)==="[object Array]"}Ue.isArray=vT;function TT(t){return typeof t=="boolean"}Ue.isBoolean=TT;function xT(t){return t===null}Ue.isNull=xT;function AT(t){return t==null}Ue.isNullOrUndefined=AT;function RT(t){return typeof t=="number"}Ue.isNumber=RT;function OT(t){return typeof t=="string"}Ue.isString=OT;function DT(t){return typeof t=="symbol"}Ue.isSymbol=DT;function IT(t){return t===void 0}Ue.isUndefined=IT;function PT(t){return Ws(t)==="[object RegExp]"}Ue.isRegExp=PT;function LT(t){return typeof t=="object"&&t!==null}Ue.isObject=LT;function CT(t){return Ws(t)==="[object Date]"}Ue.isDate=CT;function NT(t){return Ws(t)==="[object Error]"||t instanceof Error}Ue.isError=NT;function MT(t){return typeof t=="function"}Ue.isFunction=MT;function kT(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Ue.isPrimitive=kT;Ue.isBuffer=W("buffer").Buffer.isBuffer;function Ws(t){return Object.prototype.toString.call(t)}});var Wd=b((n4,vl)=>{typeof Object.create=="function"?vl.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:vl.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 Qr=b((s4,xl)=>{try{if(Tl=W("util"),typeof Tl.inherits!="function")throw"";xl.exports=Tl.inherits}catch{xl.exports=Wd()}var Tl});var zd=b((o4,Al)=>{"use strict";function FT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Gd=Ki().Buffer,Zi=W("util");function qT(t,e,r){t.copy(e,r)}Al.exports=(function(){function t(){FT(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 Gd.alloc(0);for(var i=Gd.allocUnsafe(r>>>0),n=this.head,s=0;n;)qT(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();Zi&&Zi.inspect&&Zi.inspect.custom&&(Al.exports.prototype[Zi.inspect.custom]=function(){var t=Zi.inspect({length:this.length});return this.constructor.name+" "+t})});var Rl=b((a4,$d)=>{"use strict";var Gs=Yi();function BT(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,Gs.nextTick(zs,this,t)):Gs.nextTick(zs,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,Gs.nextTick(zs,r,s)):Gs.nextTick(zs,r,s):e&&e(s)}),this)}function jT(){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 zs(t,e){t.emit("error",e)}$d.exports={destroy:BT,undestroy:jT}});var Vd=b((l4,Hd)=>{Hd.exports=W("util").deprecate});var Dl=b((u4,tp)=>{"use strict";var Sr=Yi();tp.exports=Re;function Kd(t){var e=this;this.next=null,this.entry=null,this.finish=function(){nx(e,t)}}var UT=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Sr.nextTick,Xr;Re.WritableState=Xi;var Zd=Object.create(Zr());Zd.inherits=Qr();var WT={deprecate:Vd()},Qd=Sl(),Hs=Ki().Buffer,GT=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function zT(t){return Hs.from(t)}function $T(t){return Hs.isBuffer(t)||t instanceof GT}var Xd=Rl();Zd.inherits(Re,Qd);function HT(){}function Xi(t,e){Xr=Xr||Er(),t=t||{};var r=e instanceof Xr;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){JT(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 Kd(this)}Xi.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Xi.prototype,"buffer",{get:WT.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var $s;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?($s=Function.prototype[Symbol.hasInstance],Object.defineProperty(Re,Symbol.hasInstance,{value:function(t){return $s.call(this,t)?!0:this!==Re?!1:t&&t._writableState instanceof Xi}})):$s=function(t){return t instanceof this};function Re(t){if(Xr=Xr||Er(),!$s.call(Re,this)&&!(this instanceof Xr))return new Re(t);this._writableState=new Xi(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)),Qd.call(this)}Re.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function VT(t,e){var r=new Error("write after end");t.emit("error",r),Sr.nextTick(e,r)}function YT(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),Sr.nextTick(i,s),n=!1),n}Re.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&$T(t);return s&&!Hs.isBuffer(t)&&(t=zT(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=HT),i.ended?VT(this,r):(s||YT(this,i,t,r))&&(i.pendingcb++,n=ZT(this,i,s,t,e,r)),n};Re.prototype.cork=function(){var t=this._writableState;t.corked++};Re.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Jd(this,t))};Re.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 KT(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Hs.from(e,r)),e}Object.defineProperty(Re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ZT(t,e,r,i,n,s){if(!r){var o=KT(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 Ol(t,e,!1,a,i,n,s);return l}function Ol(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 QT(t,e,r,i,n){--e.pendingcb,r?(Sr.nextTick(n,i),Sr.nextTick(Qi,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Qi(t,e))}function XT(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function JT(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(XT(r),e)QT(t,r,i,e,n);else{var s=ep(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Jd(t,r),i?UT(Yd,t,r,s,n):Yd(t,r,s,n)}}function Yd(t,e,r,i){r||ex(t,e),e.pendingcb--,i(),Qi(t,e)}function ex(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Jd(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,Ol(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 Kd(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,h=e.objectMode?1:l.length;if(Ol(t,e,!1,h,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}Re.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};Re.prototype._writev=null;Re.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||ix(this,i,r)};function ep(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function tx(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Qi(t,e)})}function rx(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Sr.nextTick(tx,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Qi(t,e){var r=ep(e);return r&&(rx(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function ix(t,e,r){e.ending=!0,Qi(t,e),r&&(e.finished?Sr.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function nx(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(Re.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Re.prototype.destroy=Xd.destroy;Re.prototype._undestroy=Xd.undestroy;Re.prototype._destroy=function(t,e){this.end(),e(t)}});var Er=b((f4,sp)=>{"use strict";var rp=Yi(),sx=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};sp.exports=Ft;var ip=Object.create(Zr());ip.inherits=Qr();var np=Ll(),Pl=Dl();ip.inherits(Ft,np);for(Il=sx(Pl.prototype),Vs=0;Vs<Il.length;Vs++)Ys=Il[Vs],Ft.prototype[Ys]||(Ft.prototype[Ys]=Pl.prototype[Ys]);var Il,Ys,Vs;function Ft(t){if(!(this instanceof Ft))return new Ft(t);np.call(this,t),Pl.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",ox)}Object.defineProperty(Ft.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ox(){this.allowHalfOpen||this._writableState.ended||rp.nextTick(ax,this)}function ax(t){t.end()}Object.defineProperty(Ft.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)}});Ft.prototype._destroy=function(t,e){this.push(null),this.end(),rp.nextTick(e,t)}});var Ml=b(ap=>{"use strict";var Nl=Ki().Buffer,op=Nl.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 lx(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 ux(t){var e=lx(t);if(typeof e!="string"&&(Nl.isEncoding===op||!op(t)))throw new Error("Unknown encoding: "+t);return e||t}ap.StringDecoder=Ji;function Ji(t){this.encoding=ux(t);var e;switch(this.encoding){case"utf16le":this.text=gx,this.end=yx,e=4;break;case"utf8":this.fillLast=hx,e=4;break;case"base64":this.text=mx,this.end=_x,e=3;break;default:this.write=bx,this.end=wx;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Nl.allocUnsafe(e)}Ji.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||""};Ji.prototype.end=px;Ji.prototype.text=dx;Ji.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 Cl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function fx(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Cl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Cl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Cl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function cx(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 hx(t){var e=this.lastTotal-this.lastNeed,r=cx(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 dx(t,e){var r=fx(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 px(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function gx(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 yx(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 mx(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 _x(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function bx(t){return t.toString(this.encoding)}function wx(t){return t&&t.length?this.write(t):""}});var Ll=b((d4,bp)=>{"use strict";var ei=Yi();bp.exports=ye;var Sx=qd(),en;ye.ReadableState=pp;var h4=W("events").EventEmitter,cp=function(t,e){return t.listeners(e).length},jl=Sl(),tn=Ki().Buffer,Ex=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function vx(t){return tn.from(t)}function Tx(t){return tn.isBuffer(t)||t instanceof Ex}var hp=Object.create(Zr());hp.inherits=Qr();var kl=W("util"),ce=void 0;kl&&kl.debuglog?ce=kl.debuglog("stream"):ce=function(){};var xx=zd(),dp=Rl(),Jr;hp.inherits(ye,jl);var Fl=["error","close","destroy","pause","resume"];function Ax(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Sx(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function pp(t,e){en=en||Er(),t=t||{};var r=e instanceof en;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 xx,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&&(Jr||(Jr=Ml().StringDecoder),this.decoder=new Jr(t.encoding),this.encoding=t.encoding)}function ye(t){if(en=en||Er(),!(this instanceof ye))return new ye(t);this._readableState=new pp(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),jl.call(this)}Object.defineProperty(ye.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});ye.prototype.destroy=dp.destroy;ye.prototype._undestroy=dp.undestroy;ye.prototype._destroy=function(t,e){this.push(null),e(t)};ye.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=tn.from(t,e),e=""),i=!0),gp(this,t,e,!1,i)};ye.prototype.unshift=function(t){return gp(this,t,null,!0,!1)};function gp(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,Ix(t,s);else{var o;n||(o=Rx(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==tn.prototype&&(e=vx(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):ql(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?ql(t,s,e,!1):yp(t,s)):ql(t,s,e,!1))):i||(s.reading=!1)}return Ox(s)}function ql(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&&Ks(t)),yp(t,e)}function Rx(t,e){var r;return!Tx(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function Ox(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}ye.prototype.isPaused=function(){return this._readableState.flowing===!1};ye.prototype.setEncoding=function(t){return Jr||(Jr=Ml().StringDecoder),this._readableState.decoder=new Jr(t),this._readableState.encoding=t,this};var lp=8388608;function Dx(t){return t>=lp?t=lp:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function up(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=Dx(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}ye.prototype.read=function(t){ce("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 ce("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Bl(this):Ks(this),null;if(t=up(t,e),t===0&&e.ended)return e.length===0&&Bl(this),null;var i=e.needReadable;ce("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,ce("length less than watermark",i)),e.ended||e.reading?(i=!1,ce("reading or ended",i)):i&&(ce("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=up(r,e)));var n;return t>0?n=mp(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&&Bl(this)),n!==null&&this.emit("data",n),n};function Ix(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,Ks(t)}}function Ks(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(ce("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?ei.nextTick(fp,t):fp(t))}function fp(t){ce("emit readable"),t.emit("readable"),Ul(t)}function yp(t,e){e.readingMore||(e.readingMore=!0,ei.nextTick(Px,t,e))}function Px(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(ce("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}ye.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};ye.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,ce("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:v;i.endEmitted?ei.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(S,R){ce("onunpipe"),S===r&&R&&R.hasUnpiped===!1&&(R.hasUnpiped=!0,f())}function a(){ce("onend"),t.end()}var l=Lx(r);t.on("drain",l);var u=!1;function f(){ce("cleanup"),t.removeListener("close",E),t.removeListener("finish",m),t.removeListener("drain",l),t.removeListener("error",y),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",v),r.removeListener("data",g),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var h=!1;r.on("data",g);function g(S){ce("ondata"),h=!1;var R=t.write(S);R===!1&&!h&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&_p(i.pipes,t)!==-1)&&!u&&(ce("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function y(S){ce("onerror",S),v(),t.removeListener("error",y),cp(t,"error")===0&&t.emit("error",S)}Ax(t,"error",y);function E(){t.removeListener("finish",m),v()}t.once("close",E);function m(){ce("onfinish"),t.removeListener("close",E),v()}t.once("finish",m);function v(){ce("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(ce("pipe resume"),r.resume()),t};function Lx(t){return function(){var e=t._readableState;ce("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&cp(t,"data")&&(e.flowing=!0,Ul(t))}}ye.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=_p(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)};ye.prototype.on=function(t,e){var r=jl.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&&Ks(this):ei.nextTick(Cx,this))}return r};ye.prototype.addListener=ye.prototype.on;function Cx(t){ce("readable nexttick read 0"),t.read(0)}ye.prototype.resume=function(){var t=this._readableState;return t.flowing||(ce("resume"),t.flowing=!0,Nx(this,t)),this};function Nx(t,e){e.resumeScheduled||(e.resumeScheduled=!0,ei.nextTick(Mx,t,e))}function Mx(t,e){e.reading||(ce("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Ul(t),e.flowing&&!e.reading&&t.read(0)}ye.prototype.pause=function(){return ce("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ce("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ul(t){var e=t._readableState;for(ce("flow",e.flowing);e.flowing&&t.read()!==null;);}ye.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(ce("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(ce("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<Fl.length;s++)t.on(Fl[s],this.emit.bind(this,Fl[s]));return this._read=function(o){ce("wrapped _read",o),i&&(i=!1,t.resume())},this};Object.defineProperty(ye.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});ye._fromList=mp;function mp(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=kx(t,e.buffer,e.decoder),r}function kx(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?Fx(t,e):qx(t,e),i}function Fx(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 qx(t,e){var r=tn.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 Bl(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,ei.nextTick(Bx,e,t))}function Bx(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function _p(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Wl=b((p4,Ep)=>{"use strict";Ep.exports=qt;var Zs=Er(),Sp=Object.create(Zr());Sp.inherits=Qr();Sp.inherits(qt,Zs);function jx(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 qt(t){if(!(this instanceof qt))return new qt(t);Zs.call(this,t),this._transformState={afterTransform:jx.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",Ux)}function Ux(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){wp(t,e,r)}):wp(this,null,null)}qt.prototype.push=function(t,e){return this._transformState.needTransform=!1,Zs.prototype.push.call(this,t,e)};qt.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};qt.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)}};qt.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};qt.prototype._destroy=function(t,e){var r=this;Zs.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function wp(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var Ap=b((g4,xp)=>{"use strict";xp.exports=rn;var vp=Wl(),Tp=Object.create(Zr());Tp.inherits=Qr();Tp.inherits(rn,vp);function rn(t){if(!(this instanceof rn))return new rn(t);vp.call(this,t)}rn.prototype._transform=function(t,e,r){r(null,t)}});var Rp=b((Fe,Qs)=>{var Et=W("stream");process.env.READABLE_STREAM==="disable"&&Et?(Qs.exports=Et,Fe=Qs.exports=Et.Readable,Fe.Readable=Et.Readable,Fe.Writable=Et.Writable,Fe.Duplex=Et.Duplex,Fe.Transform=Et.Transform,Fe.PassThrough=Et.PassThrough,Fe.Stream=Et):(Fe=Qs.exports=Ll(),Fe.Stream=Et||Fe,Fe.Readable=Fe,Fe.Writable=Dl(),Fe.Duplex=Er(),Fe.Transform=Wl(),Fe.PassThrough=Ap())});var Dp=b((y4,Op)=>{Op.exports=Rp().PassThrough});var Cp=b((m4,Lp)=>{var Ip=W("util"),eo=Dp();Lp.exports={Readable:Xs,Writable:Js};Ip.inherits(Xs,eo);Ip.inherits(Js,eo);function Pp(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function Xs(t,e){if(!(this instanceof Xs))return new Xs(t,e);eo.call(this,e),Pp(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 Js(t,e){if(!(this instanceof Js))return new Js(t,e);eo.call(this,e),Pp(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=b((_4,Np)=>{Np.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 zl=b((b4,Mp)=>{function Wx(t){return t}Mp.exports=Wx});var Fp=b((w4,kp)=>{function Gx(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)}kp.exports=Gx});var jp=b((S4,Bp)=>{var zx=Fp(),qp=Math.max;function $x(t,e,r){return e=qp(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=qp(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),zx(t,this,a)}}Bp.exports=$x});var Wp=b((E4,Up)=>{function Hx(t){return function(){return t}}Up.exports=Hx});var $l=b((v4,Gp)=>{var Vx=typeof global=="object"&&global&&global.Object===Object&&global;Gp.exports=Vx});var ti=b((T4,zp)=>{var Yx=$l(),Kx=typeof self=="object"&&self&&self.Object===Object&&self,Zx=Yx||Kx||Function("return this")();zp.exports=Zx});var to=b((x4,$p)=>{var Qx=ti(),Xx=Qx.Symbol;$p.exports=Xx});var Kp=b((A4,Yp)=>{var Hp=to(),Vp=Object.prototype,Jx=Vp.hasOwnProperty,eA=Vp.toString,nn=Hp?Hp.toStringTag:void 0;function tA(t){var e=Jx.call(t,nn),r=t[nn];try{t[nn]=void 0;var i=!0}catch{}var n=eA.call(t);return i&&(e?t[nn]=r:delete t[nn]),n}Yp.exports=tA});var Qp=b((R4,Zp)=>{var rA=Object.prototype,iA=rA.toString;function nA(t){return iA.call(t)}Zp.exports=nA});var sn=b((O4,eg)=>{var Xp=to(),sA=Kp(),oA=Qp(),aA="[object Null]",lA="[object Undefined]",Jp=Xp?Xp.toStringTag:void 0;function uA(t){return t==null?t===void 0?lA:aA:Jp&&Jp in Object(t)?sA(t):oA(t)}eg.exports=uA});var on=b((D4,tg)=>{function fA(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}tg.exports=fA});var Hl=b((I4,rg)=>{var cA=sn(),hA=on(),dA="[object AsyncFunction]",pA="[object Function]",gA="[object GeneratorFunction]",yA="[object Proxy]";function mA(t){if(!hA(t))return!1;var e=cA(t);return e==pA||e==gA||e==dA||e==yA}rg.exports=mA});var ng=b((P4,ig)=>{var _A=ti(),bA=_A["__core-js_shared__"];ig.exports=bA});var ag=b((L4,og)=>{var Vl=ng(),sg=(function(){var t=/[^.]+$/.exec(Vl&&Vl.keys&&Vl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function wA(t){return!!sg&&sg in t}og.exports=wA});var ug=b((C4,lg)=>{var SA=Function.prototype,EA=SA.toString;function vA(t){if(t!=null){try{return EA.call(t)}catch{}try{return t+""}catch{}}return""}lg.exports=vA});var cg=b((N4,fg)=>{var TA=Hl(),xA=ag(),AA=on(),RA=ug(),OA=/[\\^$.*+?()[\]{}|]/g,DA=/^\[object .+?Constructor\]$/,IA=Function.prototype,PA=Object.prototype,LA=IA.toString,CA=PA.hasOwnProperty,NA=RegExp("^"+LA.call(CA).replace(OA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function MA(t){if(!AA(t)||xA(t))return!1;var e=TA(t)?NA:DA;return e.test(RA(t))}fg.exports=MA});var dg=b((M4,hg)=>{function kA(t,e){return t?.[e]}hg.exports=kA});var an=b((k4,pg)=>{var FA=cg(),qA=dg();function BA(t,e){var r=qA(t,e);return FA(r)?r:void 0}pg.exports=BA});var yg=b((F4,gg)=>{var jA=an(),UA=(function(){try{var t=jA(Object,"defineProperty");return t({},"",{}),t}catch{}})();gg.exports=UA});var bg=b((q4,_g)=>{var WA=Wp(),mg=yg(),GA=zl(),zA=mg?function(t,e){return mg(t,"toString",{configurable:!0,enumerable:!1,value:WA(e),writable:!0})}:GA;_g.exports=zA});var Sg=b((B4,wg)=>{var $A=800,HA=16,VA=Date.now;function YA(t){var e=0,r=0;return function(){var i=VA(),n=HA-(i-r);if(r=i,n>0){if(++e>=$A)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}wg.exports=YA});var vg=b((j4,Eg)=>{var KA=bg(),ZA=Sg(),QA=ZA(KA);Eg.exports=QA});var ro=b((U4,Tg)=>{var XA=zl(),JA=jp(),eR=vg();function tR(t,e){return eR(JA(t,e,XA),t+"")}Tg.exports=tR});var io=b((W4,xg)=>{function rR(t,e){return t===e||t!==t&&e!==e}xg.exports=rR});var Yl=b((G4,Ag)=>{var iR=9007199254740991;function nR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=iR}Ag.exports=nR});var no=b((z4,Rg)=>{var sR=Hl(),oR=Yl();function aR(t){return t!=null&&oR(t.length)&&!sR(t)}Rg.exports=aR});var Kl=b(($4,Og)=>{var lR=9007199254740991,uR=/^(?:0|[1-9]\d*)$/;function fR(t,e){var r=typeof t;return e=e??lR,!!e&&(r=="number"||r!="symbol"&&uR.test(t))&&t>-1&&t%1==0&&t<e}Og.exports=fR});var Ig=b((H4,Dg)=>{var cR=io(),hR=no(),dR=Kl(),pR=on();function gR(t,e,r){if(!pR(r))return!1;var i=typeof e;return(i=="number"?hR(r)&&dR(e,r.length):i=="string"&&e in r)?cR(r[e],t):!1}Dg.exports=gR});var Lg=b((V4,Pg)=>{function yR(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}Pg.exports=yR});var ri=b((Y4,Cg)=>{function mR(t){return t!=null&&typeof t=="object"}Cg.exports=mR});var Mg=b((K4,Ng)=>{var _R=sn(),bR=ri(),wR="[object Arguments]";function SR(t){return bR(t)&&_R(t)==wR}Ng.exports=SR});var Zl=b((Z4,qg)=>{var kg=Mg(),ER=ri(),Fg=Object.prototype,vR=Fg.hasOwnProperty,TR=Fg.propertyIsEnumerable,xR=kg((function(){return arguments})())?kg:function(t){return ER(t)&&vR.call(t,"callee")&&!TR.call(t,"callee")};qg.exports=xR});var Ql=b((Q4,Bg)=>{var AR=Array.isArray;Bg.exports=AR});var Ug=b((X4,jg)=>{function RR(){return!1}jg.exports=RR});var $g=b((ln,ii)=>{var OR=ti(),DR=Ug(),zg=typeof ln=="object"&&ln&&!ln.nodeType&&ln,Wg=zg&&typeof ii=="object"&&ii&&!ii.nodeType&&ii,IR=Wg&&Wg.exports===zg,Gg=IR?OR.Buffer:void 0,PR=Gg?Gg.isBuffer:void 0,LR=PR||DR;ii.exports=LR});var Vg=b((J4,Hg)=>{var CR=sn(),NR=Yl(),MR=ri(),kR="[object Arguments]",FR="[object Array]",qR="[object Boolean]",BR="[object Date]",jR="[object Error]",UR="[object Function]",WR="[object Map]",GR="[object Number]",zR="[object Object]",$R="[object RegExp]",HR="[object Set]",VR="[object String]",YR="[object WeakMap]",KR="[object ArrayBuffer]",ZR="[object DataView]",QR="[object Float32Array]",XR="[object Float64Array]",JR="[object Int8Array]",eO="[object Int16Array]",tO="[object Int32Array]",rO="[object Uint8Array]",iO="[object Uint8ClampedArray]",nO="[object Uint16Array]",sO="[object Uint32Array]",me={};me[QR]=me[XR]=me[JR]=me[eO]=me[tO]=me[rO]=me[iO]=me[nO]=me[sO]=!0;me[kR]=me[FR]=me[KR]=me[qR]=me[ZR]=me[BR]=me[jR]=me[UR]=me[WR]=me[GR]=me[zR]=me[$R]=me[HR]=me[VR]=me[YR]=!1;function oO(t){return MR(t)&&NR(t.length)&&!!me[CR(t)]}Hg.exports=oO});var Xl=b((e6,Yg)=>{function aO(t){return function(e){return t(e)}}Yg.exports=aO});var Zg=b((un,ni)=>{var lO=$l(),Kg=typeof un=="object"&&un&&!un.nodeType&&un,fn=Kg&&typeof ni=="object"&&ni&&!ni.nodeType&&ni,uO=fn&&fn.exports===Kg,Jl=uO&&lO.process,fO=(function(){try{var t=fn&&fn.require&&fn.require("util").types;return t||Jl&&Jl.binding&&Jl.binding("util")}catch{}})();ni.exports=fO});var ey=b((t6,Jg)=>{var cO=Vg(),hO=Xl(),Qg=Zg(),Xg=Qg&&Qg.isTypedArray,dO=Xg?hO(Xg):cO;Jg.exports=dO});var ry=b((r6,ty)=>{var pO=Lg(),gO=Zl(),yO=Ql(),mO=$g(),_O=Kl(),bO=ey(),wO=Object.prototype,SO=wO.hasOwnProperty;function EO(t,e){var r=yO(t),i=!r&&gO(t),n=!r&&!i&&mO(t),s=!r&&!i&&!n&&bO(t),o=r||i||n||s,a=o?pO(t.length,String):[],l=a.length;for(var u in t)(e||SO.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||_O(u,l)))&&a.push(u);return a}ty.exports=EO});var ny=b((i6,iy)=>{var vO=Object.prototype;function TO(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||vO;return t===r}iy.exports=TO});var oy=b((n6,sy)=>{function xO(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}sy.exports=xO});var ly=b((s6,ay)=>{var AO=on(),RO=ny(),OO=oy(),DO=Object.prototype,IO=DO.hasOwnProperty;function PO(t){if(!AO(t))return OO(t);var e=RO(t),r=[];for(var i in t)i=="constructor"&&(e||!IO.call(t,i))||r.push(i);return r}ay.exports=PO});var fy=b((o6,uy)=>{var LO=ry(),CO=ly(),NO=no();function MO(t){return NO(t)?LO(t,!0):CO(t)}uy.exports=MO});var dy=b((a6,hy)=>{var kO=ro(),FO=io(),qO=Ig(),BO=fy(),cy=Object.prototype,jO=cy.hasOwnProperty,UO=kO(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&qO(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=BO(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||FO(f,cy[u])&&!jO.call(t,u))&&(t[u]=s[u])}return t});hy.exports=UO});var Se=b((l6,py)=>{"use strict";var eu=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}
13
+ `;super(r),this.name="AggregateError",this.errors=e}};py.exports={AggregateError:eu,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 tu=b((u6,gy)=>{"use strict";gy.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 We=b((f6,_y)=>{"use strict";var{format:WO,inspect:so}=tu(),{AggregateError:GO}=Se(),zO=globalThis.AggregateError||GO,$O=Symbol("kIsNodeError"),HO=["string","function","number","object","Function","Object","boolean","bigint","symbol"],VO=/^([A-Z][a-z0-9]*)+$/,YO="__node_internal_",oo={};function vr(t,e){if(!t)throw new oo.ERR_INTERNAL_ASSERTION(e)}function yy(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 KO(t,e,r){if(typeof e=="function")return vr(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 vr(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:WO(e,...r)}function qe(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(KO(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,oo[t]=i}function my(t){let e=YO+t.name;return Object.defineProperty(t,"name",{value:e}),t}function ZO(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new zO([e,t],e.message);return r.code=e.code,r}return t||e}var ru=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new oo.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};qe("ERR_ASSERTION","%s",Error);qe("ERR_INVALID_ARG_TYPE",(t,e,r)=>{vr(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)vr(typeof l=="string","All expected entries have to be of type string"),HO.includes(l)?n.push(l.toLowerCase()):VO.test(l)?s.push(l):(vr(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=so(r,{depth:-1});i+=`. Received ${l}`}}else{let l=so(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);qe("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=so(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);qe("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);qe("ERR_MISSING_ARGS",(...t)=>{vr(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);qe("ERR_OUT_OF_RANGE",(t,e,r)=>{vr(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=yy(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=yy(i)),i+="n"}else i=so(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);qe("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);qe("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);qe("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);qe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);qe("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);qe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);qe("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);qe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);qe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);qe("ERR_STREAM_WRITE_AFTER_END","write after end",Error);qe("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);_y.exports={AbortError:ru,aggregateTwoErrors:my(ZO),hideStackFrames:my,codes:oo}});var Oy=b((dn,hn)=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});var Ty=new WeakMap,iu=new WeakMap;function _e(t){let e=Ty.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function by(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 si(t,e){Ty.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,xy(n))}}si.prototype={get type(){return _e(this).event.type},get target(){return _e(this).eventTarget},get currentTarget(){return _e(this).currentTarget},composedPath(){let t=_e(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 _e(this).eventPhase},stopPropagation(){let t=_e(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=_e(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!_e(this).event.bubbles},get cancelable(){return!!_e(this).event.cancelable},preventDefault(){by(_e(this))},get defaultPrevented(){return _e(this).canceled},get composed(){return!!_e(this).event.composed},get timeStamp(){return _e(this).timeStamp},get srcElement(){return _e(this).eventTarget},get cancelBubble(){return _e(this).stopped},set cancelBubble(t){if(!t)return;let e=_e(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!_e(this).canceled},set returnValue(t){t||by(_e(this))},initEvent(){}};Object.defineProperty(si.prototype,"constructor",{value:si,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(si.prototype,window.Event.prototype),iu.set(window.Event.prototype,si));function xy(t){return{get(){return _e(this).event[t]},set(e){_e(this).event[t]=e},configurable:!0,enumerable:!0}}function QO(t){return{value(){let e=_e(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function XO(t,e){let r=Object.keys(e);if(r.length===0)return t;function i(n,s){t.call(this,n,s)}i.prototype=Object.create(t.prototype,{constructor:{value:i,configurable:!0,writable:!0}});for(let n=0;n<r.length;++n){let s=r[n];if(!(s in t.prototype)){let a=typeof Object.getOwnPropertyDescriptor(e,s).value=="function";Object.defineProperty(i.prototype,s,a?QO(s):xy(s))}}return i}function Ay(t){if(t==null||t===Object.prototype)return si;let e=iu.get(t);return e==null&&(e=XO(Ay(Object.getPrototypeOf(t)),t),iu.set(t,e)),e}function JO(t,e){let r=Ay(Object.getPrototypeOf(e));return new r(t,e)}function eD(t){return _e(t).immediateStopped}function tD(t,e){_e(t).eventPhase=e}function rD(t,e){_e(t).currentTarget=e}function wy(t,e){_e(t).passiveListener=e}var Ry=new WeakMap,Sy=1,Ey=2,ao=3;function lo(t){return t!==null&&typeof t=="object"}function cn(t){let e=Ry.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function iD(t){return{get(){let r=cn(this).get(t);for(;r!=null;){if(r.listenerType===ao)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!lo(e)&&(e=null);let r=cn(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===ao?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:ao,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function nu(t,e){Object.defineProperty(t,`on${e}`,iD(e))}function vy(t){function e(){gt.call(this)}e.prototype=Object.create(gt.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)nu(e.prototype,t[r]);return e}function gt(){if(this instanceof gt){Ry.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return vy(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 vy(t)}throw new TypeError("Cannot call a class as a function")}gt.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!lo(e))throw new TypeError("'listener' should be a function or an object.");let i=cn(this),n=lo(r),o=(n?!!r.capture:!!r)?Sy:Ey,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=cn(this),s=(lo(r)?!!r.capture:!!r)?Sy:Ey,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=cn(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=JO(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,wy(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!==ao&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(eD(n))break;i=i.next}return wy(n,null),tD(n,0),rD(n,null),!n.defaultPrevented}};Object.defineProperty(gt.prototype,"constructor",{value:gt,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(gt.prototype,window.EventTarget.prototype);dn.defineEventAttribute=nu;dn.EventTarget=gt;dn.default=gt;hn.exports=gt;hn.exports.EventTarget=hn.exports.default=gt;hn.exports.defineEventAttribute=nu});var oi=b((gn,pn)=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});var su=Oy(),Xt=class extends su.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=uo.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}};su.defineEventAttribute(Xt.prototype,"abort");function nD(){let t=Object.create(Xt.prototype);return su.EventTarget.call(t),uo.set(t,!1),t}function sD(t){uo.get(t)===!1&&(uo.set(t,!0),t.dispatchEvent({type:"abort"}))}var uo=new WeakMap;Object.defineProperties(Xt.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Xt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Jt=class{constructor(){Iy.set(this,nD())}get signal(){return Dy(this)}abort(){sD(Dy(this))}},Iy=new WeakMap;function Dy(t){let e=Iy.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(Jt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Jt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});gn.AbortController=Jt;gn.AbortSignal=Xt;gn.default=Jt;pn.exports=Jt;pn.exports.AbortController=pn.exports.default=Jt;pn.exports.AbortSignal=Xt});var He=b((c6,au)=>{"use strict";var oD=W("buffer"),{format:aD,inspect:lD}=tu(),{codes:{ERR_INVALID_ARG_TYPE:ou}}=We(),{kResistStopPropagation:uD,AggregateError:fD,SymbolDispose:cD}=Se(),hD=globalThis.AbortSignal||oi().AbortSignal,dD=globalThis.AbortController||oi().AbortController,pD=Object.getPrototypeOf(async function(){}).constructor,Py=globalThis.Blob||oD.Blob,gD=typeof Py<"u"?function(e){return e instanceof Py}:function(e){return!1},Ly=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new ou(e,"AbortSignal",t)},yD=(t,e)=>{if(typeof t!="function")throw new ou(e,"Function",t)};au.exports={AggregateError:fD,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:aD,inspect:lD,types:{isAsyncFunction(t){return t instanceof pD},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:gD,deprecate(t,e){return t},addAbortListener:W("events").addAbortListener||function(e,r){if(e===void 0)throw new ou("signal","AbortSignal",e);Ly(e,"signal"),yD(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[uD]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[cD](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:hD.any||function(e){if(e.length===1)return e[0];let r=new dD,i=()=>r.abort();return e.forEach(n=>{Ly(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};au.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var li=b((h6,Wy)=>{"use strict";var{ArrayIsArray:uu,ArrayPrototypeIncludes:ky,ArrayPrototypeJoin:Fy,ArrayPrototypeMap:mD,NumberIsInteger:fu,NumberIsNaN:_D,NumberMAX_SAFE_INTEGER:bD,NumberMIN_SAFE_INTEGER:wD,NumberParseInt:SD,ObjectPrototypeHasOwnProperty:ED,RegExpPrototypeExec:qy,String:vD,StringPrototypeToUpperCase:TD,StringPrototypeTrim:xD}=Se(),{hideStackFrames:at,codes:{ERR_SOCKET_BAD_PORT:AD,ERR_INVALID_ARG_TYPE:Ge,ERR_INVALID_ARG_VALUE:ai,ERR_OUT_OF_RANGE:Tr,ERR_UNKNOWN_SIGNAL:Cy}}=We(),{normalizeEncoding:RD}=He(),{isAsyncFunction:OD,isArrayBufferView:DD}=He().types,Ny={};function ID(t){return t===(t|0)}function PD(t){return t===t>>>0}var LD=/^[0-7]+$/,CD="must be a 32-bit unsigned integer or an octal string";function ND(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(qy(LD,t)===null)throw new ai(e,t,CD);t=SD(t,8)}return By(t,e),t}var MD=at((t,e,r=wD,i=bD)=>{if(typeof t!="number")throw new Ge(e,"number",t);if(!fu(t))throw new Tr(e,"an integer",t);if(t<r||t>i)throw new Tr(e,`>= ${r} && <= ${i}`,t)}),kD=at((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Ge(e,"number",t);if(!fu(t))throw new Tr(e,"an integer",t);if(t<r||t>i)throw new Tr(e,`>= ${r} && <= ${i}`,t)}),By=at((t,e,r=!1)=>{if(typeof t!="number")throw new Ge(e,"number",t);if(!fu(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 cu(t,e){if(typeof t!="string")throw new Ge(e,"string",t)}function FD(t,e,r=void 0,i){if(typeof t!="number")throw new Ge(e,"number",t);if(r!=null&&t<r||i!=null&&t>i||(r!=null||i!=null)&&_D(t))throw new Tr(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var qD=at((t,e,r)=>{if(!ky(r,t)){let n="must be one of: "+Fy(mD(r,s=>typeof s=="string"?`'${s}'`:vD(s)),", ");throw new ai(e,t,n)}});function jy(t,e){if(typeof t!="boolean")throw new Ge(e,"boolean",t)}function lu(t,e,r){return t==null||!ED(t,e)?r:t[e]}var BD=at((t,e,r=null)=>{let i=lu(r,"allowArray",!1),n=lu(r,"allowFunction",!1);if(!lu(r,"nullable",!1)&&t===null||!i&&uu(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Ge(e,"Object",t)}),jD=at((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Ge(e,"a dictionary",t)}),fo=at((t,e,r=0)=>{if(!uu(t))throw new Ge(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new ai(e,t,i)}});function UD(t,e){fo(t,e);for(let r=0;r<t.length;r++)cu(t[r],`${e}[${r}]`)}function WD(t,e){fo(t,e);for(let r=0;r<t.length;r++)jy(t[r],`${e}[${r}]`)}function GD(t,e){fo(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new Ge(n,"AbortSignal",i);Uy(i,n)}}function zD(t,e="signal"){if(cu(t,e),Ny[t]===void 0)throw Ny[TD(t)]!==void 0?new Cy(t+" (signals must use all capital letters)"):new Cy(t)}var $D=at((t,e="buffer")=>{if(!DD(t))throw new Ge(e,["Buffer","TypedArray","DataView"],t)});function HD(t,e){let r=RD(e),i=t.length;if(r==="hex"&&i%2!==0)throw new ai("encoding",e,`is invalid for data of length ${i}`)}function VD(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&xD(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new AD(e,t,r);return t|0}var Uy=at((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Ge(e,"AbortSignal",t)}),YD=at((t,e)=>{if(typeof t!="function")throw new Ge(e,"Function",t)}),KD=at((t,e)=>{if(typeof t!="function"||OD(t))throw new Ge(e,"Function",t)}),ZD=at((t,e)=>{if(t!==void 0)throw new Ge(e,"undefined",t)});function QD(t,e,r){if(!ky(r,t))throw new Ge(e,`('${Fy(r,"|")}')`,t)}var XD=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function My(t,e){if(typeof t>"u"||!qy(XD,t))throw new ai(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function JD(t){if(typeof t=="string")return My(t,"hints"),t;if(uu(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];My(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new ai("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}Wy.exports={isInt32:ID,isUint32:PD,parseFileMode:ND,validateArray:fo,validateStringArray:UD,validateBooleanArray:WD,validateAbortSignalArray:GD,validateBoolean:jy,validateBuffer:$D,validateDictionary:jD,validateEncoding:HD,validateFunction:YD,validateInt32:kD,validateInteger:MD,validateNumber:FD,validateObject:BD,validateOneOf:qD,validatePlainFunction:KD,validatePort:VD,validateSignalName:zD,validateString:cu,validateUint32:By,validateUndefined:ZD,validateUnion:QD,validateAbortSignal:Uy,validateLinkHeaderValue:JD}});var er=b((d6,Gy)=>{Gy.exports=global.process});var Tt=b((p6,nm)=>{"use strict";var{SymbolAsyncIterator:zy,SymbolIterator:$y,SymbolFor:xr}=Se(),Hy=xr("nodejs.stream.destroyed"),Vy=xr("nodejs.stream.errored"),hu=xr("nodejs.stream.readable"),du=xr("nodejs.stream.writable"),Yy=xr("nodejs.stream.disturbed"),eI=xr("nodejs.webstream.isClosedPromise"),tI=xr("nodejs.webstream.controllerErrorFunction");function co(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 ho(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 rI(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function vt(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function Ky(t){return!!(t&&!vt(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function Zy(t){return!!(t&&!vt(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function Qy(t){return!!(t&&!vt(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function iI(t){return Ky(t)||Zy(t)||Qy(t)}function nI(t,e){return t==null?!1:e===!0?typeof t[zy]=="function":e===!1?typeof t[$y]=="function":typeof t[zy]=="function"||typeof t[$y]=="function"}function po(t){if(!vt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[Hy]||i!=null&&i.destroyed)}function Xy(t){if(!ho(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 sI(t,e){if(!ho(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 oI(t){if(!co(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 Jy(t,e){if(!co(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 em(t){return t&&t[hu]!=null?t[hu]:typeof t?.readable!="boolean"?null:po(t)?!1:co(t)&&t.readable&&!Jy(t)}function tm(t){return t&&t[du]!=null?t[du]:typeof t?.writable!="boolean"?null:po(t)?!1:ho(t)&&t.writable&&!Xy(t)}function aI(t,e){return vt(t)?po(t)?!0:!(e?.readable!==!1&&em(t)||e?.writable!==!1&&tm(t)):null}function lI(t){var e,r;return vt(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 uI(t){var e,r;return vt(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 fI(t){if(!vt(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"&&rm(t)?t._closed:null}function rm(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function im(t){return typeof t._sent100=="boolean"&&rm(t)}function cI(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 hI(t){if(!vt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&im(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function dI(t){var e;return!!(t&&((e=t[Yy])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function pI(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[Vy])!==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))}nm.exports={isDestroyed:po,kIsDestroyed:Hy,isDisturbed:dI,kIsDisturbed:Yy,isErrored:pI,kIsErrored:Vy,isReadable:em,kIsReadable:hu,kIsClosedPromise:eI,kControllerErrorFunction:tI,kIsWritable:du,isClosed:fI,isDuplexNodeStream:rI,isFinished:aI,isIterable:nI,isReadableNodeStream:co,isReadableStream:Ky,isReadableEnded:oI,isReadableFinished:Jy,isReadableErrored:uI,isNodeStream:vt,isWebStream:iI,isWritable:tm,isWritableNodeStream:ho,isWritableStream:Zy,isWritableEnded:Xy,isWritableFinished:sI,isWritableErrored:lI,isServerRequest:cI,isServerResponse:im,willEmitClose:hI,isTransformStream:Qy}});var Bt=b((g6,_u)=>{"use strict";var tr=er(),{AbortError:dm,codes:gI}=We(),{ERR_INVALID_ARG_TYPE:yI,ERR_STREAM_PREMATURE_CLOSE:sm}=gI,{kEmptyObject:gu,once:yu}=He(),{validateAbortSignal:mI,validateFunction:_I,validateObject:bI,validateBoolean:wI}=li(),{Promise:SI,PromisePrototypeThen:EI,SymbolDispose:pm}=Se(),{isClosed:vI,isReadable:om,isReadableNodeStream:pu,isReadableStream:TI,isReadableFinished:am,isReadableErrored:lm,isWritable:um,isWritableNodeStream:fm,isWritableStream:xI,isWritableFinished:cm,isWritableErrored:hm,isNodeStream:AI,willEmitClose:RI,kIsClosedPromise:OI}=Tt(),ui;function DI(t){return t.setHeader&&typeof t.abort=="function"}var mu=()=>{};function gm(t,e,r){var i,n;if(arguments.length===2?(r=e,e=gu):e==null?e=gu:bI(e,"options"),_I(r,"callback"),mI(e.signal,"options.signal"),r=yu(r),TI(t)||xI(t))return II(t,e,r);if(!AI(t))throw new yI("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:pu(t),o=(n=e.writable)!==null&&n!==void 0?n:fm(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||g()},f=RI(t)&&pu(t)===s&&fm(t)===o,h=cm(t,!1),g=()=>{h=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||y)&&r.call(t)},y=am(t,!1),E=()=>{y=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||h)&&r.call(t)},m=q=>{r.call(t,q)},v=vI(t),S=()=>{v=!0;let q=hm(t)||lm(t);if(q&&typeof q!="boolean")return r.call(t,q);if(s&&!y&&pu(t,!0)&&!am(t,!1))return r.call(t,new sm);if(o&&!h&&!cm(t,!1))return r.call(t,new sm);r.call(t)},R=()=>{v=!0;let q=hm(t)||lm(t);if(q&&typeof q!="boolean")return r.call(t,q);r.call(t)},L=()=>{t.req.on("finish",g)};DI(t)?(t.on("complete",g),f||t.on("abort",S),t.req?L():t.on("request",L)):o&&!a&&(t.on("end",u),t.on("close",u)),!f&&typeof t.aborted=="boolean"&&t.on("aborted",S),t.on("end",E),t.on("finish",g),e.error!==!1&&t.on("error",m),t.on("close",S),v?tr.nextTick(S):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?f||tr.nextTick(R):(!s&&(!f||om(t))&&(h||um(t)===!1)||!o&&(!f||um(t))&&(y||om(t)===!1)||l&&t.req&&t.aborted)&&tr.nextTick(R);let D=()=>{r=mu,t.removeListener("aborted",S),t.removeListener("complete",g),t.removeListener("abort",S),t.removeListener("request",L),t.req&&t.req.removeListener("finish",g),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",g),t.removeListener("end",E),t.removeListener("error",m),t.removeListener("close",S)};if(e.signal&&!v){let q=()=>{let Z=r;D(),Z.call(t,new dm(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)tr.nextTick(q);else{ui=ui||He().addAbortListener;let Z=ui(e.signal,q),P=r;r=yu((...B)=>{Z[pm](),P.apply(t,B)})}}return D}function II(t,e,r){let i=!1,n=mu;if(e.signal)if(n=()=>{i=!0,r.call(t,new dm(void 0,{cause:e.signal.reason}))},e.signal.aborted)tr.nextTick(n);else{ui=ui||He().addAbortListener;let o=ui(e.signal,n),a=r;r=yu((...l)=>{o[pm](),a.apply(t,l)})}let s=(...o)=>{i||tr.nextTick(()=>r.apply(t,o))};return EI(t[OI].promise,s,s),mu}function PI(t,e){var r;let i=!1;return e===null&&(e=gu),(r=e)!==null&&r!==void 0&&r.cleanup&&(wI(e.cleanup,"cleanup"),i=e.cleanup),new SI((n,s)=>{let o=gm(t,e,a=>{i&&o(),a?s(a):n()})})}_u.exports=gm;_u.exports.finished=PI});var Ar=b((y6,vm)=>{"use strict";var xt=er(),{aggregateTwoErrors:LI,codes:{ERR_MULTIPLE_CALLBACK:CI},AbortError:NI}=We(),{Symbol:_m}=Se(),{kIsDestroyed:MI,isDestroyed:kI,isFinished:FI,isServerRequest:qI}=Tt(),bm=_m("kDestroy"),bu=_m("kConstruct");function wm(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function BI(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):(wm(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?ym(this,t,e):this.once(bm,function(s){ym(this,LI(s,t),e)}),this)}function ym(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;wm(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?xt.nextTick(jI,t,s):xt.nextTick(Sm,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function jI(t,e){wu(t,e),Sm(t)}function Sm(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 wu(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 UI(){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 Su(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?xt.nextTick(wu,t,e):wu(t,e))}function WI(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(bu,e),!(t.listenerCount(bu)>1)&&xt.nextTick(GI,t)}function GI(t){let e=!1;function r(i){if(e){Su(t,i??new CI);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(bm,i):i?Su(t,i,!0):xt.nextTick(zI,t)}try{t._construct(i=>{xt.nextTick(r,i)})}catch(i){xt.nextTick(r,i)}}function zI(t){t.emit(bu)}function mm(t){return t?.setHeader&&typeof t.abort=="function"}function Em(t){t.emit("close")}function $I(t,e){t.emit("error",e),xt.nextTick(Em,t)}function HI(t,e){!t||kI(t)||(!e&&!FI(t)&&(e=new NI),qI(t)?(t.socket=null,t.destroy(e)):mm(t)?t.abort():mm(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?xt.nextTick($I,t,e):xt.nextTick(Em,t),t.destroyed||(t[MI]=!0))}vm.exports={construct:WI,destroyer:HI,destroy:BI,undestroy:UI,errorOrDestroy:Su}});var mo=b((m6,xm)=>{"use strict";var{ArrayIsArray:VI,ObjectSetPrototypeOf:Tm}=Se(),{EventEmitter:go}=W("events");function yo(t){go.call(this,t)}Tm(yo.prototype,go.prototype);Tm(yo,go);yo.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(),go.listenerCount(this,"error")===0&&this.emit("error",f)}Eu(r,"error",l),Eu(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 Eu(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):VI(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}xm.exports={Stream:yo,prependListener:Eu}});var yn=b((_6,_o)=>{"use strict";var{SymbolDispose:YI}=Se(),{AbortError:Am,codes:KI}=We(),{isNodeStream:Rm,isWebStream:ZI,kControllerErrorFunction:QI}=Tt(),XI=Bt(),{ERR_INVALID_ARG_TYPE:Om}=KI,vu,JI=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new Om(e,"AbortSignal",t)};_o.exports.addAbortSignal=function(e,r){if(JI(e,"signal"),!Rm(r)&&!ZI(r))throw new Om("stream",["ReadableStream","WritableStream","Stream"],r);return _o.exports.addAbortSignalNoValidate(e,r)};_o.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=Rm(e)?()=>{e.destroy(new Am(void 0,{cause:t.reason}))}:()=>{e[QI](new Am(void 0,{cause:t.reason}))};if(t.aborted)r();else{vu=vu||He().addAbortListener;let i=vu(t,r);XI(e,i[YI])}return e}});var Pm=b((w6,Im)=>{"use strict";var{StringPrototypeSlice:Dm,SymbolIterator:eP,TypedArrayPrototypeSet:bo,Uint8Array:tP}=Se(),{Buffer:Tu}=W("buffer"),{inspect:rP}=He();Im.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 Tu.alloc(0);let r=Tu.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)bo(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}*[eP](){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+=Dm(s,0,e),this.head=i,i.data=Dm(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Tu.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)bo(r,o,i-e),e-=o.length;else{e===o.length?(bo(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(bo(r,new tP(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 rP(this,{...r,depth:0,customInspect:!1})}}});var mn=b((S6,Mm)=>{"use strict";var{MathFloor:iP,NumberIsInteger:nP}=Se(),{validateInteger:sP}=li(),{ERR_INVALID_ARG_VALUE:oP}=We().codes,Lm=16*1024,Cm=16;function aP(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Nm(t){return t?Cm:Lm}function lP(t,e){sP(e,"value",0),t?Cm=e:Lm=e}function uP(t,e,r,i){let n=aP(e,i,r);if(n!=null){if(!nP(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new oP(s,n)}return iP(n)}return Nm(t.objectMode)}Mm.exports={getHighWaterMark:uP,getDefaultHighWaterMark:Nm,setDefaultHighWaterMark:lP}});var qm=b(Fm=>{"use strict";var Au=n1().Buffer,km=Au.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 fP(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 cP(t){var e=fP(t);if(typeof e!="string"&&(Au.isEncoding===km||!km(t)))throw new Error("Unknown encoding: "+t);return e||t}Fm.StringDecoder=_n;function _n(t){this.encoding=cP(t);var e;switch(this.encoding){case"utf16le":this.text=mP,this.end=_P,e=4;break;case"utf8":this.fillLast=pP,e=4;break;case"base64":this.text=bP,this.end=wP,e=3;break;default:this.write=SP,this.end=EP;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Au.allocUnsafe(e)}_n.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||""};_n.prototype.end=yP;_n.prototype.text=gP;_n.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 xu(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function hP(t,e,r){var i=e.length-1;if(i<r)return 0;var n=xu(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=xu(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=xu(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function dP(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 pP(t){var e=this.lastTotal-this.lastNeed,r=dP(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 gP(t,e){var r=hP(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 yP(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function mP(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 _P(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 bP(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 wP(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function SP(t){return t.toString(this.encoding)}function EP(t){return t&&t.length?this.write(t):""}});var Ru=b((v6,Wm)=>{"use strict";var Bm=er(),{PromisePrototypeThen:vP,SymbolAsyncIterator:jm,SymbolIterator:Um}=Se(),{Buffer:TP}=W("buffer"),{ERR_INVALID_ARG_TYPE:xP,ERR_STREAM_NULL_VALUES:AP}=We().codes;function RP(t,e,r){let i;if(typeof e=="string"||e instanceof TP)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[jm])n=!0,i=e[jm]();else if(e&&e[Um])n=!1,i=e[Um]();else throw new xP("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){vP(a(u),()=>Bm.nextTick(f,u),h=>Bm.nextTick(f,h||u))};async function a(u){let f=u!=null,h=typeof i.throw=="function";if(f&&h){let{value:g,done:y}=await i.throw(u);if(await g,y)return}if(typeof i.return=="function"){let{value:g}=await i.return();await g}}async function l(){for(;;){try{let{value:u,done:f}=n?await i.next():i.next();if(f)s.push(null);else{let h=u&&typeof u.then=="function"?await u:u;if(h===null)throw o=!1,new AP;if(s.push(h))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}Wm.exports=RP});var wn=b((T6,o_)=>{"use strict";var yt=er(),{ArrayPrototypeIndexOf:OP,NumberIsInteger:DP,NumberIsNaN:IP,NumberParseInt:PP,ObjectDefineProperties:Mu,ObjectKeys:LP,ObjectSetPrototypeOf:$m,Promise:Hm,SafeSet:CP,SymbolAsyncDispose:NP,SymbolAsyncIterator:MP,Symbol:kP}=Se();o_.exports=Y;Y.ReadableState=vo;var{EventEmitter:FP}=W("events"),{Stream:rr,prependListener:qP}=mo(),{Buffer:Ou}=W("buffer"),{addAbortSignal:BP}=yn(),Vm=Bt(),X=He().debuglog("stream",t=>{X=t}),jP=Pm(),hi=Ar(),{getHighWaterMark:UP,getDefaultHighWaterMark:WP}=mn(),{aggregateTwoErrors:Gm,codes:{ERR_INVALID_ARG_TYPE:GP,ERR_METHOD_NOT_IMPLEMENTED:zP,ERR_OUT_OF_RANGE:$P,ERR_STREAM_PUSH_AFTER_EOF:HP,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:VP},AbortError:YP}=We(),{validateObject:KP}=li(),Rr=kP("kPaused"),{StringDecoder:Ym}=qm(),ZP=Ru();$m(Y.prototype,rr.prototype);$m(Y,rr);var Du=()=>{},{errorOrDestroy:fi}=hi,ci=1,QP=2,Km=4,bn=8,Zm=16,wo=32,So=64,Qm=128,XP=256,JP=512,eL=1024,Cu=2048,Nu=4096,tL=8192,rL=16384,iL=32768,Xm=65536,nL=1<<17,sL=1<<18;function De(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}Mu(vo.prototype,{objectMode:De(ci),ended:De(QP),endEmitted:De(Km),reading:De(bn),constructed:De(Zm),sync:De(wo),needReadable:De(So),emittedReadable:De(Qm),readableListening:De(XP),resumeScheduled:De(JP),errorEmitted:De(eL),emitClose:De(Cu),autoDestroy:De(Nu),destroyed:De(tL),closed:De(rL),closeEmitted:De(iL),multiAwaitDrain:De(Xm),readingMore:De(nL),dataEmitted:De(sL)});function vo(t,e,r){typeof r!="boolean"&&(r=e instanceof At()),this.state=Cu|Nu|Zm|wo,t&&t.objectMode&&(this.state|=ci),r&&t&&t.readableObjectMode&&(this.state|=ci),this.highWaterMark=t?UP(this,t,"readableHighWaterMark",r):WP(!1),this.buffer=new jP,this.length=0,this.pipes=[],this.flowing=null,this[Rr]=null,t&&t.emitClose===!1&&(this.state&=~Cu),t&&t.autoDestroy===!1&&(this.state&=~Nu),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Ym(t.encoding),this.encoding=t.encoding)}function Y(t){if(!(this instanceof Y))return new Y(t);let e=this instanceof At();this._readableState=new vo(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&&BP(t.signal,this)),rr.call(this,t),hi.construct(this,()=>{this._readableState.needReadable&&Eo(this,this._readableState)})}Y.prototype.destroy=hi.destroy;Y.prototype._undestroy=hi.undestroy;Y.prototype._destroy=function(t,e){e(t)};Y.prototype[FP.captureRejectionSymbol]=function(t){this.destroy(t)};Y.prototype[NP]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new YP,this.destroy(t)),new Hm((e,r)=>Vm(this,i=>i&&i!==t?r(i):e(null)))};Y.prototype.push=function(t,e){return Jm(this,t,e,!1)};Y.prototype.unshift=function(t,e){return Jm(this,t,e,!0)};function Jm(t,e,r,i){X("readableAddChunk",e);let n=t._readableState,s;if((n.state&ci)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=Ou.from(e,r).toString(n.encoding):(e=Ou.from(e,r),r=""))):e instanceof Ou?r="":rr._isUint8Array(e)?(e=rr._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new GP("chunk",["string","Buffer","Uint8Array"],e))),s)fi(t,s);else if(e===null)n.state&=~bn,lL(t,n);else if((n.state&ci)!==0||e&&e.length>0)if(i)if((n.state&Km)!==0)fi(t,new VP);else{if(n.destroyed||n.errored)return!1;Iu(t,n,e,!0)}else if(n.ended)fi(t,new HP);else{if(n.destroyed||n.errored)return!1;n.state&=~bn,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?Iu(t,n,e,!1):Eo(t,n)):Iu(t,n,e,!1)}else i||(n.state&=~bn,Eo(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&Xm)!==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&So)!==0&&To(t)),Eo(t,e)}Y.prototype.isPaused=function(){let t=this._readableState;return t[Rr]===!0||t.flowing===!1};Y.prototype.setEncoding=function(t){let e=new Ym(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 oL=1073741824;function aL(t){if(t>oL)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 zm(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&ci)!==0?1:IP(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}Y.prototype.read=function(t){X("read",t),t===void 0?t=NaN:DP(t)||(t=PP(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=aL(t)),t!==0&&(e.state&=~Qm),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return X("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Pu(this):To(this),null;if(t=zm(t,e),t===0&&e.ended)return e.length===0&&Pu(this),null;let i=(e.state&So)!==0;if(X("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,X("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,X("reading, ended or constructing",i);else if(i){X("do read"),e.state|=bn|wo,e.length===0&&(e.state|=So);try{this._read(e.highWaterMark)}catch(s){fi(this,s)}e.state&=~wo,e.reading||(t=zm(r,e))}let n;return t>0?n=n_(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&&Pu(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function lL(t,e){if(X("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?To(t):(e.needReadable=!1,e.emittedReadable=!0,e_(t))}}function To(t){let e=t._readableState;X("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(X("emitReadable",e.flowing),e.emittedReadable=!0,yt.nextTick(e_,t))}function e_(t){let e=t._readableState;X("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,r_(t)}function Eo(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,yt.nextTick(uL,t,e))}function uL(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(X("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}Y.prototype._read=function(t){throw new zP("_read()")};Y.prototype.pipe=function(t,e){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new CP(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),X("pipe count=%d opts=%j",i.pipes.length,e);let s=(!e||e.end!==!1)&&t!==yt.stdout&&t!==yt.stderr?a:v;i.endEmitted?yt.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(S,R){X("onunpipe"),S===r&&R&&R.hasUnpiped===!1&&(R.hasUnpiped=!0,f())}function a(){X("onend"),t.end()}let l,u=!1;function f(){X("cleanup"),t.removeListener("close",E),t.removeListener("finish",m),l&&t.removeListener("drain",l),t.removeListener("error",y),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",v),r.removeListener("data",g),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function h(){u||(i.pipes.length===1&&i.pipes[0]===t?(X("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(X("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=fL(r,t),t.on("drain",l))}r.on("data",g);function g(S){X("ondata");let R=t.write(S);X("dest.write",R),R===!1&&h()}function y(S){if(X("onerror",S),v(),t.removeListener("error",y),t.listenerCount("error")===0){let R=t._writableState||t._readableState;R&&!R.errorEmitted?fi(t,S):t.emit("error",S)}}qP(t,"error",y);function E(){t.removeListener("finish",m),v()}t.once("close",E);function m(){X("onfinish"),t.removeListener("close",E),v()}t.once("finish",m);function v(){X("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?h():i.flowing||(X("pipe resume"),r.resume()),t};function fL(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(X("pipeOnDrain",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(X("pipeOnDrain",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}Y.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=OP(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};Y.prototype.on=function(t,e){let r=rr.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,X("on readable",i.length,i.reading),i.length?To(this):i.reading||yt.nextTick(cL,this)),r};Y.prototype.addListener=Y.prototype.on;Y.prototype.removeListener=function(t,e){let r=rr.prototype.removeListener.call(this,t,e);return t==="readable"&&yt.nextTick(t_,this),r};Y.prototype.off=Y.prototype.removeListener;Y.prototype.removeAllListeners=function(t){let e=rr.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&yt.nextTick(t_,this),e};function t_(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[Rr]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function cL(t){X("readable nexttick read 0"),t.read(0)}Y.prototype.resume=function(){let t=this._readableState;return t.flowing||(X("resume"),t.flowing=!t.readableListening,hL(this,t)),t[Rr]=!1,this};function hL(t,e){e.resumeScheduled||(e.resumeScheduled=!0,yt.nextTick(dL,t,e))}function dL(t,e){X("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),r_(t),e.flowing&&!e.reading&&t.read(0)}Y.prototype.pause=function(){return X("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(X("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Rr]=!0,this};function r_(t){let e=t._readableState;for(X("flow",e.flowing);e.flowing&&t.read()!==null;);}Y.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=>{fi(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=LP(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};Y.prototype[MP]=function(){return i_(this)};Y.prototype.iterator=function(t){return t!==void 0&&KP(t,"options"),i_(this,t)};function i_(t,e){typeof t.read!="function"&&(t=Y.wrap(t,{objectMode:!0}));let r=pL(t,e);return r.stream=t,r}async function*pL(t,e){let r=Du;function i(o){this===t?(r(),r=Du):r=o}t.on("readable",i);let n,s=Vm(t,{writable:!1},o=>{n=o?Gm(n,o):null,r(),r=Du});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 Hm(i)}}}catch(o){throw n=Gm(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?hi.destroyer(t,null):(t.off("readable",i),s())}}Mu(Y.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}}});Mu(vo.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Rr]!==!1},set(t){this[Rr]=!!t}}});Y._fromList=n_;function n_(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 Pu(t){let e=t._readableState;X("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,yt.nextTick(gL,e,t))}function gL(t,e){if(X("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)yt.nextTick(yL,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function yL(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}Y.from=function(t,e){return ZP(Y,t,e)};var Lu;function s_(){return Lu===void 0&&(Lu={}),Lu}Y.fromWeb=function(t,e){return s_().newStreamReadableFromReadableStream(t,e)};Y.toWeb=function(t,e){return s_().newReadableStreamFromStreamReadable(t,e)};Y.wrap=function(t,e){var r,i;return new Y({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){hi.destroyer(t,n),s(n)}}).wrap(t)}});var Do=b((x6,__)=>{"use strict";var Or=er(),{ArrayPrototypeSlice:u_,Error:mL,FunctionPrototypeSymbolHasInstance:f_,ObjectDefineProperty:c_,ObjectDefineProperties:_L,ObjectSetPrototypeOf:h_,StringPrototypeToLowerCase:bL,Symbol:wL,SymbolHasInstance:SL}=Se();__.exports=ve;ve.WritableState=vn;var{EventEmitter:EL}=W("events"),Sn=mo().Stream,{Buffer:xo}=W("buffer"),Oo=Ar(),{addAbortSignal:vL}=yn(),{getHighWaterMark:TL,getDefaultHighWaterMark:xL}=mn(),{ERR_INVALID_ARG_TYPE:AL,ERR_METHOD_NOT_IMPLEMENTED:RL,ERR_MULTIPLE_CALLBACK:d_,ERR_STREAM_CANNOT_PIPE:OL,ERR_STREAM_DESTROYED:En,ERR_STREAM_ALREADY_FINISHED:DL,ERR_STREAM_NULL_VALUES:IL,ERR_STREAM_WRITE_AFTER_END:PL,ERR_UNKNOWN_ENCODING:p_}=We().codes,{errorOrDestroy:di}=Oo;h_(ve.prototype,Sn.prototype);h_(ve,Sn);function qu(){}var pi=wL("kOnFinished");function vn(t,e,r){typeof r!="boolean"&&(r=e instanceof At()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?TL(this,t,"writableHighWaterMark",r):xL(!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=CL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Ro(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[pi]=[]}function Ro(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}vn.prototype.getBuffer=function(){return u_(this.buffered,this.bufferedIndex)};c_(vn.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ve(t){let e=this instanceof At();if(!e&&!f_(ve,this))return new ve(t);this._writableState=new vn(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&&vL(t.signal,this)),Sn.call(this,t),Oo.construct(this,()=>{let r=this._writableState;r.writing||ju(this,r),Uu(this,r)})}c_(ve,SL,{__proto__:null,value:function(t){return f_(this,t)?!0:this!==ve?!1:t&&t._writableState instanceof vn}});ve.prototype.pipe=function(){di(this,new OL)};function g_(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"&&!xo.isEncoding(r))throw new p_(r);typeof i!="function"&&(i=qu)}if(e===null)throw new IL;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=xo.from(e,r),r="buffer");else if(e instanceof xo)r="buffer";else if(Sn._isUint8Array(e))e=Sn._uint8ArrayToBuffer(e),r="buffer";else throw new AL("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new PL:n.destroyed&&(s=new En("write")),s?(Or.nextTick(i,s),di(t,s,!0),s):(n.pendingcb++,LL(t,n,e,r,i))}ve.prototype.write=function(t,e,r){return g_(this,t,e,r)===!0};ve.prototype.cork=function(){this._writableState.corked++};ve.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||ju(this,t))};ve.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=bL(e)),!xo.isEncoding(e))throw new p_(e);return this._writableState.defaultEncoding=e,this};function LL(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!==qu&&(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 a_(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new En("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function l_(t,e,r,i){--e.pendingcb,i(r),Bu(e),di(t,r)}function CL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){di(t,new d_);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(l_,t,r,e,n):l_(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&ju(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(NL,r.afterWriteTickInfo)):y_(t,r,1,n))}function NL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,y_(t,e,r,i)}function y_(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&&Bu(e),Uu(t,e)}function Bu(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 En("write"))}let r=t[pi].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new En("end"))}Ro(t)}function ju(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?qu:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:u_(r,o);l.allBuffers=e.allBuffers,a_(t,e,!0,e.length,l,"",a),Ro(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;a_(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?Ro(e):o>256?(r.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}ve.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new RL("_write()")};ve.prototype._writev=null;ve.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=g_(this,t,e);s instanceof mL&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,Uu(this,i,!0),i.ended=!0):i.finished?n=new DL("end"):i.destroyed&&(n=new En("end"))),typeof r=="function"&&(n||i.finished?Or.nextTick(r,n):i[pi].push(r)),this};function Ao(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 ML(t,e){let r=!1;function i(n){if(r){di(t,n??d_());return}if(r=!0,e.pendingcb--,n){let s=e[pi].splice(0);for(let o=0;o<s.length;o++)s[o](n);di(t,n,e.sync)}else Ao(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 kL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,ML(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Uu(t,e,r){Ao(e)&&(kL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,Or.nextTick((i,n)=>{Ao(n)?Fu(i,n):n.pendingcb--},t,e)):Ao(e)&&(e.pendingcb++,Fu(t,e))))}function Fu(t,e){e.pendingcb--,e.finished=!0;let r=e[pi].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()}}_L(ve.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 FL=Oo.destroy;ve.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[pi].length)&&Or.nextTick(Bu,r),FL.call(this,t,e),this};ve.prototype._undestroy=Oo.undestroy;ve.prototype._destroy=function(t,e){e(t)};ve.prototype[EL.captureRejectionSymbol]=function(t){this.destroy(t)};var ku;function m_(){return ku===void 0&&(ku={}),ku}ve.fromWeb=function(t,e){return m_().newStreamWritableFromWritableStream(t,e)};ve.toWeb=function(t){return m_().newWritableStreamFromStreamWritable(t)}});var C_=b((A6,L_)=>{var Wu=er(),qL=W("buffer"),{isReadable:BL,isWritable:jL,isIterable:b_,isNodeStream:UL,isReadableNodeStream:w_,isWritableNodeStream:S_,isDuplexNodeStream:WL,isReadableStream:E_,isWritableStream:v_}=Tt(),T_=Bt(),{AbortError:I_,codes:{ERR_INVALID_ARG_TYPE:GL,ERR_INVALID_RETURN_VALUE:x_}}=We(),{destroyer:yi}=Ar(),zL=At(),P_=wn(),$L=Do(),{createDeferredPromise:A_}=He(),R_=Ru(),O_=globalThis.Blob||qL.Blob,HL=typeof O_<"u"?function(e){return e instanceof O_}:function(e){return!1},VL=globalThis.AbortController||oi().AbortController,{FunctionPrototypeCall:D_}=Se(),ir=class extends zL{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)}};L_.exports=function t(e,r){if(WL(e))return e;if(w_(e))return gi({readable:e});if(S_(e))return gi({writable:e});if(UL(e))return gi({writable:!1,readable:!1});if(E_(e))return gi({readable:P_.fromWeb(e)});if(v_(e))return gi({writable:$L.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=YL(e);if(b_(n))return R_(ir,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=D_(l,n,h=>{if(h!=null)throw new x_("nully","body",h)},h=>{yi(u,h)});return u=new ir({objectMode:!0,readable:!1,write:s,final(h){o(async()=>{try{await f,Wu.nextTick(h,null)}catch(g){Wu.nextTick(h,g)}})},destroy:a})}throw new x_("Iterable, AsyncIterable or AsyncFunction",r,n)}if(HL(e))return t(e.arrayBuffer());if(b_(e))return R_(ir,e,{objectMode:!0,writable:!1});if(E_(e?.readable)&&v_(e?.writable))return ir.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?w_(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?S_(e?.writable)?e?.writable:t(e.writable):void 0;return gi({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return D_(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{yi(n,s)}),n=new ir({objectMode:!0,writable:!1,read(){}})}throw new GL(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function YL(t){let{promise:e,resolve:r}=A_(),i=new VL,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(Wu.nextTick(u),l)return;if(n.aborted)throw new I_(void 0,{cause:n.reason});({promise:e,resolve:r}=A_()),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 gi(t){let e=t.readable&&typeof t.readable.read!="function"?P_.wrap(t.readable):t.readable,r=t.writable,i=!!BL(e),n=!!jL(r),s,o,a,l,u;function f(h){let g=l;l=null,g?g(h):h&&u.destroy(h)}return u=new ir({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(T_(r,h=>{n=!1,h&&yi(e,h),f(h)}),u._write=function(h,g,y){r.write(h,g)?y():s=y},u._final=function(h){r.end(),o=h},r.on("drain",function(){if(s){let h=s;s=null,h()}}),r.on("finish",function(){if(o){let h=o;o=null,h()}})),i&&(T_(e,h=>{i=!1,h&&yi(e,h),f(h)}),e.on("readable",function(){if(a){let h=a;a=null,h()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let h=e.read();if(h===null){a=u._read;return}if(!u.push(h))return}}),u._destroy=function(h,g){!h&&l!==null&&(h=new I_),a=null,s=null,o=null,l===null?g(h):(l=g,yi(r,h),yi(e,h))},u}});var At=b((R6,k_)=>{"use strict";var{ObjectDefineProperties:KL,ObjectGetOwnPropertyDescriptor:jt,ObjectKeys:ZL,ObjectSetPrototypeOf:N_}=Se();k_.exports=mt;var $u=wn(),lt=Do();N_(mt.prototype,$u.prototype);N_(mt,$u);{let t=ZL(lt.prototype);for(let e=0;e<t.length;e++){let r=t[e];mt.prototype[r]||(mt.prototype[r]=lt.prototype[r])}}function mt(t){if(!(this instanceof mt))return new mt(t);$u.call(this,t),lt.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}KL(mt.prototype,{writable:{__proto__:null,...jt(lt.prototype,"writable")},writableHighWaterMark:{__proto__:null,...jt(lt.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...jt(lt.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...jt(lt.prototype,"writableBuffer")},writableLength:{__proto__:null,...jt(lt.prototype,"writableLength")},writableFinished:{__proto__:null,...jt(lt.prototype,"writableFinished")},writableCorked:{__proto__:null,...jt(lt.prototype,"writableCorked")},writableEnded:{__proto__:null,...jt(lt.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...jt(lt.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 Gu;function M_(){return Gu===void 0&&(Gu={}),Gu}mt.fromWeb=function(t,e){return M_().newStreamDuplexFromReadableWritablePair(t,e)};mt.toWeb=function(t){return M_().newReadableWritablePairFromDuplex(t)};var zu;mt.from=function(t){return zu||(zu=C_()),zu(t,"body")}});var Yu=b((O6,q_)=>{"use strict";var{ObjectSetPrototypeOf:F_,Symbol:QL}=Se();q_.exports=Ut;var{ERR_METHOD_NOT_IMPLEMENTED:XL}=We().codes,Vu=At(),{getHighWaterMark:JL}=mn();F_(Ut.prototype,Vu.prototype);F_(Ut,Vu);var Tn=QL("kCallback");function Ut(t){if(!(this instanceof Ut))return new Ut(t);let e=t?JL(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),Vu.call(this,t),this._readableState.sync=!1,this[Tn]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",eC)}function Hu(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 eC(){this._final!==Hu&&Hu.call(this)}Ut.prototype._final=Hu;Ut.prototype._transform=function(t,e,r){throw new XL("_transform()")};Ut.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[Tn]=r})};Ut.prototype._read=function(){if(this[Tn]){let t=this[Tn];this[Tn]=null,t()}}});var Zu=b((D6,j_)=>{"use strict";var{ObjectSetPrototypeOf:B_}=Se();j_.exports=mi;var Ku=Yu();B_(mi.prototype,Ku.prototype);B_(mi,Ku);function mi(t){if(!(this instanceof mi))return new mi(t);Ku.call(this,t)}mi.prototype._transform=function(t,e,r){r(null,t)}});var Co=b((I6,$_)=>{var xn=er(),{ArrayIsArray:tC,Promise:rC,SymbolAsyncIterator:iC,SymbolDispose:nC}=Se(),Lo=Bt(),{once:sC}=He(),oC=Ar(),U_=At(),{aggregateTwoErrors:aC,codes:{ERR_INVALID_ARG_TYPE:of,ERR_INVALID_RETURN_VALUE:Qu,ERR_MISSING_ARGS:lC,ERR_STREAM_DESTROYED:uC,ERR_STREAM_PREMATURE_CLOSE:fC},AbortError:cC}=We(),{validateFunction:hC,validateAbortSignal:dC}=li(),{isIterable:Dr,isReadable:Xu,isReadableNodeStream:Po,isNodeStream:W_,isTransformStream:_i,isWebStream:pC,isReadableStream:Ju,isReadableFinished:gC}=Tt(),yC=globalThis.AbortController||oi().AbortController,ef,tf,rf;function G_(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Lo(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,oC.destroyer(t,s||new uC("pipe")))},cleanup:n}}function mC(t){return hC(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function nf(t){if(Dr(t))return t;if(Po(t))return _C(t);throw new of("val",["Readable","Iterable","AsyncIterable"],t)}async function*_C(t){tf||(tf=wn()),yield*tf.prototype[iC].call(t)}async function Io(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new rC((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Lo(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?aC(n,u):u)}finally{l(),e.off("drain",o)}}async function sf(t,e,r,{end:i}){_i(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 bC(...t){return z_(t,sC(mC(t)))}function z_(t,e,r){if(t.length===1&&tC(t[0])&&(t=t[0]),t.length<2)throw new lC("streams");let i=new yC,n=i.signal,s=r?.signal,o=[];dC(s,"options.signal");function a(){E(new cC)}rf=rf||He().addAbortListener;let l;s&&(l=rf(s,a));let u,f,h=[],g=0;function y(L){E(L,--g===0)}function E(L,D){var q;if(L&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=L),!(!u&&!D)){for(;h.length;)h.shift()(u);(q=l)===null||q===void 0||q[nC](),i.abort(),D&&(u||o.forEach(Z=>Z()),xn.nextTick(e,u,f))}}let m;for(let L=0;L<t.length;L++){let D=t[L],q=L<t.length-1,Z=L>0,P=q||r?.end!==!1,B=L===t.length-1;if(W_(D)){let A=function(M){M&&M.name!=="AbortError"&&M.code!=="ERR_STREAM_PREMATURE_CLOSE"&&y(M)};var R=A;if(P){let{destroy:M,cleanup:k}=G_(D,q,Z);h.push(M),Xu(D)&&B&&o.push(k)}D.on("error",A),Xu(D)&&B&&o.push(()=>{D.removeListener("error",A)})}if(L===0)if(typeof D=="function"){if(m=D({signal:n}),!Dr(m))throw new Qu("Iterable, AsyncIterable or Stream","source",m)}else Dr(D)||Po(D)||_i(D)?m=D:m=U_.from(D);else if(typeof D=="function"){if(_i(m)){var v;m=nf((v=m)===null||v===void 0?void 0:v.readable)}else m=nf(m);if(m=D(m,{signal:n}),q){if(!Dr(m,!0))throw new Qu("AsyncIterable",`transform[${L-1}]`,m)}else{var S;ef||(ef=Zu());let A=new ef({objectMode:!0}),M=(S=m)===null||S===void 0?void 0:S.then;if(typeof M=="function")g++,M.call(m,ee=>{f=ee,ee!=null&&A.write(ee),P&&A.end(),xn.nextTick(y)},ee=>{A.destroy(ee),xn.nextTick(y,ee)});else if(Dr(m,!0))g++,Io(m,A,y,{end:P});else if(Ju(m)||_i(m)){let ee=m.readable||m;g++,Io(ee,A,y,{end:P})}else throw new Qu("AsyncIterable or Promise","destination",m);m=A;let{destroy:k,cleanup:H}=G_(m,!1,!0);h.push(k),B&&o.push(H)}}else if(W_(D)){if(Po(m)){g+=2;let A=wC(m,D,y,{end:P});Xu(D)&&B&&o.push(A)}else if(_i(m)||Ju(m)){let A=m.readable||m;g++,Io(A,D,y,{end:P})}else if(Dr(m))g++,Io(m,D,y,{end:P});else throw new of("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=D}else if(pC(D)){if(Po(m))g++,sf(nf(m),D,y,{end:P});else if(Ju(m)||Dr(m))g++,sf(m,D,y,{end:P});else if(_i(m))g++,sf(m.readable,D,y,{end:P});else throw new of("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=D}else m=U_.from(D)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&xn.nextTick(a),m}function wC(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new fC)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;gC(t)?xn.nextTick(o):t.once("end",o)}else r();return Lo(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)}),Lo(e,{readable:!1,writable:!0},r)}$_.exports={pipelineImpl:z_,pipeline:bC}});var lf=b((P6,Q_)=>{"use strict";var{pipeline:SC}=Co(),No=At(),{destroyer:EC}=Ar(),{isNodeStream:Mo,isReadable:H_,isWritable:V_,isWebStream:af,isTransformStream:Ir,isWritableStream:Y_,isReadableStream:K_}=Tt(),{AbortError:vC,codes:{ERR_INVALID_ARG_VALUE:Z_,ERR_MISSING_ARGS:TC}}=We(),xC=Bt();Q_.exports=function(...e){if(e.length===0)throw new TC("streams");if(e.length===1)return No.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=No.from(e[0])),typeof e[e.length-1]=="function"){let y=e.length-1;e[y]=No.from(e[y])}for(let y=0;y<e.length;++y)if(!(!Mo(e[y])&&!af(e[y]))){if(y<e.length-1&&!(H_(e[y])||K_(e[y])||Ir(e[y])))throw new Z_(`streams[${y}]`,r[y],"must be readable");if(y>0&&!(V_(e[y])||Y_(e[y])||Ir(e[y])))throw new Z_(`streams[${y}]`,r[y],"must be writable")}let i,n,s,o,a;function l(y){let E=o;o=null,E?E(y):y?a.destroy(y):!g&&!h&&a.destroy()}let u=e[0],f=SC(e,l),h=!!(V_(u)||Y_(u)||Ir(u)),g=!!(H_(f)||K_(f)||Ir(f));if(a=new No({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:h,readable:g}),h){if(Mo(u))a._write=function(E,m,v){u.write(E,m)?v():i=v},a._final=function(E){u.end(),n=E},u.on("drain",function(){if(i){let E=i;i=null,E()}});else if(af(u)){let m=(Ir(u)?u.writable:u).getWriter();a._write=async function(v,S,R){try{await m.ready,m.write(v).catch(()=>{}),R()}catch(L){R(L)}},a._final=async function(v){try{await m.ready,m.close().catch(()=>{}),n=v}catch(S){v(S)}}}let y=Ir(f)?f.readable:f;xC(y,()=>{if(n){let E=n;n=null,E()}})}if(g){if(Mo(f))f.on("readable",function(){if(s){let y=s;s=null,y()}}),f.on("end",function(){a.push(null)}),a._read=function(){for(;;){let y=f.read();if(y===null){s=a._read;return}if(!a.push(y))return}};else if(af(f)){let E=(Ir(f)?f.readable:f).getReader();a._read=async function(){for(;;)try{let{value:m,done:v}=await E.read();if(!a.push(m))return;if(v){a.push(null);return}}catch{return}}}}return a._destroy=function(y,E){!y&&o!==null&&(y=new vC),s=null,i=null,n=null,o===null?E(y):(o=E,Mo(f)&&EC(f,y))},a}});var ab=b((L6,cf)=>{"use strict";var AC=globalThis.AbortController||oi().AbortController,{codes:{ERR_INVALID_ARG_VALUE:RC,ERR_INVALID_ARG_TYPE:An,ERR_MISSING_ARGS:OC,ERR_OUT_OF_RANGE:DC},AbortError:Rt}=We(),{validateAbortSignal:Pr,validateInteger:X_,validateObject:Lr}=li(),IC=Se().Symbol("kWeak"),PC=Se().Symbol("kResistStopPropagation"),{finished:LC}=Bt(),CC=lf(),{addAbortSignalNoValidate:NC}=yn(),{isWritable:MC,isNodeStream:kC}=Tt(),{deprecate:FC}=He(),{ArrayPrototypePush:qC,Boolean:BC,MathFloor:J_,Number:jC,NumberIsNaN:UC,Promise:eb,PromiseReject:tb,PromiseResolve:WC,PromisePrototypeThen:rb,Symbol:nb}=Se(),ko=nb("kEmpty"),ib=nb("kEof");function GC(t,e){if(e!=null&&Lr(e,"options"),e?.signal!=null&&Pr(e.signal,"options.signal"),kC(t)&&!MC(t))throw new RC("stream",t,"must be writable");let r=CC(this,t);return e!=null&&e.signal&&NC(e.signal,r),r}function Fo(t,e){if(typeof t!="function")throw new An("fn",["Function","AsyncFunction"],t);e!=null&&Lr(e,"options"),e?.signal!=null&&Pr(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=J_(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=J_(e.highWaterMark)),X_(r,"options.concurrency",1),X_(i,"options.highWaterMark",0),i+=r,async function*(){let s=He().AbortSignalAny([e?.signal].filter(BC)),o=this,a=[],l={signal:s},u,f,h=!1,g=0;function y(){h=!0,E()}function E(){g-=1,m()}function m(){f&&!h&&g<r&&a.length<i&&(f(),f=null)}async function v(){try{for await(let S of o){if(h)return;if(s.aborted)throw new Rt;try{if(S=t(S,l),S===ko)continue;S=WC(S)}catch(R){S=tb(R)}g+=1,rb(S,E,y),a.push(S),u&&(u(),u=null),!h&&(a.length>=i||g>=r)&&await new eb(R=>{f=R})}a.push(ib)}catch(S){let R=tb(S);rb(R,E,y),a.push(R)}finally{h=!0,u&&(u(),u=null)}}v();try{for(;;){for(;a.length>0;){let S=await a[0];if(S===ib)return;if(s.aborted)throw new Rt;S!==ko&&(yield S),a.shift(),m()}await new eb(S=>{u=S})}}finally{h=!0,f&&(f(),f=null)}}.call(this)}function zC(t=void 0){return t!=null&&Lr(t,"options"),t?.signal!=null&&Pr(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 Rt({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function sb(t,e=void 0){for await(let r of ff.call(this,t,e))return!0;return!1}async function $C(t,e=void 0){if(typeof t!="function")throw new An("fn",["Function","AsyncFunction"],t);return!await sb.call(this,async(...r)=>!await t(...r),e)}async function HC(t,e){for await(let r of ff.call(this,t,e))return r}async function VC(t,e){if(typeof t!="function")throw new An("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),ko}for await(let i of Fo.call(this,r,e));}function ff(t,e){if(typeof t!="function")throw new An("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:ko}return Fo.call(this,r,e)}var uf=class extends OC{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function YC(t,e,r){var i;if(typeof t!="function")throw new An("reducer",["Function","AsyncFunction"],t);r!=null&&Lr(r,"options"),r?.signal!=null&&Pr(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let u=new Rt(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await LC(this.destroy(u)),u}let s=new AC,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[IC]:this,[PC]:!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 Rt;n?e=await t(e,u,{signal:o}):(e=u,n=!0)}if(!a&&!n)throw new uf}finally{s.abort()}return e}async function KC(t){t!=null&&Lr(t,"options"),t?.signal!=null&&Pr(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 Rt(void 0,{cause:t.signal.reason});qC(e,i)}return e}function ZC(t,e){let r=Fo.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function ob(t){if(t=jC(t),UC(t))return 0;if(t<0)throw new DC("number",">= 0",t);return t}function QC(t,e=void 0){return e!=null&&Lr(e,"options"),e?.signal!=null&&Pr(e.signal,"options.signal"),t=ob(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new Rt;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new Rt;t--<=0&&(yield s)}}.call(this)}function XC(t,e=void 0){return e!=null&&Lr(e,"options"),e?.signal!=null&&Pr(e.signal,"options.signal"),t=ob(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new Rt;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new Rt;if(t-- >0&&(yield s),t<=0)return}}.call(this)}cf.exports.streamReturningOperators={asIndexedPairs:FC(zC,"readable.asIndexedPairs will be removed in a future version."),drop:QC,filter:ff,flatMap:ZC,map:Fo,take:XC,compose:GC};cf.exports.promiseReturningOperators={every:$C,forEach:VC,reduce:YC,toArray:KC,some:sb,find:HC}});var hf=b((C6,lb)=>{"use strict";var{ArrayPrototypePop:JC,Promise:eN}=Se(),{isIterable:tN,isNodeStream:rN,isWebStream:iN}=Tt(),{pipelineImpl:nN}=Co(),{finished:sN}=Bt();df();function oN(...t){return new eN((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!rN(s)&&!tN(s)&&!iN(s)){let o=JC(t);i=o.signal,n=o.end}nN(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}lb.exports={finished:sN,pipeline:oN}});var df=b((N6,mb)=>{"use strict";var{Buffer:aN}=W("buffer"),{ObjectDefineProperty:Wt,ObjectKeys:cb,ReflectApply:hb}=Se(),{promisify:{custom:db}}=He(),{streamReturningOperators:ub,promiseReturningOperators:fb}=ab(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:pb}}=We(),lN=lf(),{setDefaultHighWaterMark:uN,getDefaultHighWaterMark:fN}=mn(),{pipeline:gb}=Co(),{destroyer:cN}=Ar(),yb=Bt(),pf=hf(),Rn=Tt(),be=mb.exports=mo().Stream;be.isDestroyed=Rn.isDestroyed;be.isDisturbed=Rn.isDisturbed;be.isErrored=Rn.isErrored;be.isReadable=Rn.isReadable;be.isWritable=Rn.isWritable;be.Readable=wn();for(let t of cb(ub)){let r=function(...i){if(new.target)throw pb();return be.Readable.from(hb(e,this,i))},e=ub[t];Wt(r,"name",{__proto__:null,value:e.name}),Wt(r,"length",{__proto__:null,value:e.length}),Wt(be.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of cb(fb)){let r=function(...i){if(new.target)throw pb();return hb(e,this,i)},e=fb[t];Wt(r,"name",{__proto__:null,value:e.name}),Wt(r,"length",{__proto__:null,value:e.length}),Wt(be.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}be.Writable=Do();be.Duplex=At();be.Transform=Yu();be.PassThrough=Zu();be.pipeline=gb;var{addAbortSignal:hN}=yn();be.addAbortSignal=hN;be.finished=yb;be.destroy=cN;be.compose=lN;be.setDefaultHighWaterMark=uN;be.getDefaultHighWaterMark=fN;Wt(be,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return pf}});Wt(gb,db,{__proto__:null,enumerable:!0,get(){return pf.pipeline}});Wt(yb,db,{__proto__:null,enumerable:!0,get(){return pf.finished}});be.Stream=be;be._isUint8Array=function(e){return e instanceof Uint8Array};be._uint8ArrayToBuffer=function(e){return aN.from(e.buffer,e.byteOffset,e.byteLength)}});var Cr=b((M6,Q)=>{"use strict";var Ie=W("stream");if(Ie&&process.env.READABLE_STREAM==="disable"){let t=Ie.promises;Q.exports._uint8ArrayToBuffer=Ie._uint8ArrayToBuffer,Q.exports._isUint8Array=Ie._isUint8Array,Q.exports.isDisturbed=Ie.isDisturbed,Q.exports.isErrored=Ie.isErrored,Q.exports.isReadable=Ie.isReadable,Q.exports.Readable=Ie.Readable,Q.exports.Writable=Ie.Writable,Q.exports.Duplex=Ie.Duplex,Q.exports.Transform=Ie.Transform,Q.exports.PassThrough=Ie.PassThrough,Q.exports.addAbortSignal=Ie.addAbortSignal,Q.exports.finished=Ie.finished,Q.exports.destroy=Ie.destroy,Q.exports.pipeline=Ie.pipeline,Q.exports.compose=Ie.compose,Object.defineProperty(Ie,"promises",{configurable:!0,enumerable:!0,get(){return t}}),Q.exports.Stream=Ie.Stream}else{let t=df(),e=hf(),r=t.Readable.destroy;Q.exports=t.Readable,Q.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,Q.exports._isUint8Array=t._isUint8Array,Q.exports.isDisturbed=t.isDisturbed,Q.exports.isErrored=t.isErrored,Q.exports.isReadable=t.isReadable,Q.exports.Readable=t.Readable,Q.exports.Writable=t.Writable,Q.exports.Duplex=t.Duplex,Q.exports.Transform=t.Transform,Q.exports.PassThrough=t.PassThrough,Q.exports.addAbortSignal=t.addAbortSignal,Q.exports.finished=t.finished,Q.exports.destroy=t.destroy,Q.exports.destroy=r,Q.exports.pipeline=t.pipeline,Q.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),Q.exports.Stream=t.Stream}Q.exports.default=Q.exports});var bb=b((k6,_b)=>{function dN(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}_b.exports=dN});var vb=b((F6,Eb)=>{var wb=to(),pN=Zl(),gN=Ql(),Sb=wb?wb.isConcatSpreadable:void 0;function yN(t){return gN(t)||pN(t)||!!(Sb&&t&&t[Sb])}Eb.exports=yN});var qo=b((q6,xb)=>{var mN=bb(),_N=vb();function Tb(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=_N),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?Tb(a,e-1,r,i,n):mN(n,a):i||(n[n.length]=a)}return n}xb.exports=Tb});var Rb=b((B6,Ab)=>{var bN=qo();function wN(t){var e=t==null?0:t.length;return e?bN(t,1):[]}Ab.exports=wN});var On=b((j6,Ob)=>{var SN=an(),EN=SN(Object,"create");Ob.exports=EN});var Pb=b((U6,Ib)=>{var Db=On();function vN(){this.__data__=Db?Db(null):{},this.size=0}Ib.exports=vN});var Cb=b((W6,Lb)=>{function TN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}Lb.exports=TN});var Mb=b((G6,Nb)=>{var xN=On(),AN="__lodash_hash_undefined__",RN=Object.prototype,ON=RN.hasOwnProperty;function DN(t){var e=this.__data__;if(xN){var r=e[t];return r===AN?void 0:r}return ON.call(e,t)?e[t]:void 0}Nb.exports=DN});var Fb=b((z6,kb)=>{var IN=On(),PN=Object.prototype,LN=PN.hasOwnProperty;function CN(t){var e=this.__data__;return IN?e[t]!==void 0:LN.call(e,t)}kb.exports=CN});var Bb=b(($6,qb)=>{var NN=On(),MN="__lodash_hash_undefined__";function kN(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=NN&&e===void 0?MN:e,this}qb.exports=kN});var Ub=b((H6,jb)=>{var FN=Pb(),qN=Cb(),BN=Mb(),jN=Fb(),UN=Bb();function bi(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])}}bi.prototype.clear=FN;bi.prototype.delete=qN;bi.prototype.get=BN;bi.prototype.has=jN;bi.prototype.set=UN;jb.exports=bi});var Gb=b((V6,Wb)=>{function WN(){this.__data__=[],this.size=0}Wb.exports=WN});var Dn=b((Y6,zb)=>{var GN=io();function zN(t,e){for(var r=t.length;r--;)if(GN(t[r][0],e))return r;return-1}zb.exports=zN});var Hb=b((K6,$b)=>{var $N=Dn(),HN=Array.prototype,VN=HN.splice;function YN(t){var e=this.__data__,r=$N(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():VN.call(e,r,1),--this.size,!0}$b.exports=YN});var Yb=b((Z6,Vb)=>{var KN=Dn();function ZN(t){var e=this.__data__,r=KN(e,t);return r<0?void 0:e[r][1]}Vb.exports=ZN});var Zb=b((Q6,Kb)=>{var QN=Dn();function XN(t){return QN(this.__data__,t)>-1}Kb.exports=XN});var Xb=b((X6,Qb)=>{var JN=Dn();function eM(t,e){var r=this.__data__,i=JN(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}Qb.exports=eM});var ew=b((J6,Jb)=>{var tM=Gb(),rM=Hb(),iM=Yb(),nM=Zb(),sM=Xb();function wi(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])}}wi.prototype.clear=tM;wi.prototype.delete=rM;wi.prototype.get=iM;wi.prototype.has=nM;wi.prototype.set=sM;Jb.exports=wi});var rw=b((eU,tw)=>{var oM=an(),aM=ti(),lM=oM(aM,"Map");tw.exports=lM});var sw=b((tU,nw)=>{var iw=Ub(),uM=ew(),fM=rw();function cM(){this.size=0,this.__data__={hash:new iw,map:new(fM||uM),string:new iw}}nw.exports=cM});var aw=b((rU,ow)=>{function hM(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}ow.exports=hM});var In=b((iU,lw)=>{var dM=aw();function pM(t,e){var r=t.__data__;return dM(e)?r[typeof e=="string"?"string":"hash"]:r.map}lw.exports=pM});var fw=b((nU,uw)=>{var gM=In();function yM(t){var e=gM(this,t).delete(t);return this.size-=e?1:0,e}uw.exports=yM});var hw=b((sU,cw)=>{var mM=In();function _M(t){return mM(this,t).get(t)}cw.exports=_M});var pw=b((oU,dw)=>{var bM=In();function wM(t){return bM(this,t).has(t)}dw.exports=wM});var yw=b((aU,gw)=>{var SM=In();function EM(t,e){var r=SM(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}gw.exports=EM});var _w=b((lU,mw)=>{var vM=sw(),TM=fw(),xM=hw(),AM=pw(),RM=yw();function Si(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])}}Si.prototype.clear=vM;Si.prototype.delete=TM;Si.prototype.get=xM;Si.prototype.has=AM;Si.prototype.set=RM;mw.exports=Si});var ww=b((uU,bw)=>{var OM="__lodash_hash_undefined__";function DM(t){return this.__data__.set(t,OM),this}bw.exports=DM});var Ew=b((fU,Sw)=>{function IM(t){return this.__data__.has(t)}Sw.exports=IM});var gf=b((cU,vw)=>{var PM=_w(),LM=ww(),CM=Ew();function Bo(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new PM;++e<r;)this.add(t[e])}Bo.prototype.add=Bo.prototype.push=LM;Bo.prototype.has=CM;vw.exports=Bo});var xw=b((hU,Tw)=>{function NM(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}Tw.exports=NM});var Rw=b((dU,Aw)=>{function MM(t){return t!==t}Aw.exports=MM});var Dw=b((pU,Ow)=>{function kM(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}Ow.exports=kM});var Pw=b((gU,Iw)=>{var FM=xw(),qM=Rw(),BM=Dw();function jM(t,e,r){return e===e?BM(t,e,r):FM(t,qM,r)}Iw.exports=jM});var yf=b((yU,Lw)=>{var UM=Pw();function WM(t,e){var r=t==null?0:t.length;return!!r&&UM(t,e,0)>-1}Lw.exports=WM});var mf=b((mU,Cw)=>{function GM(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}Cw.exports=GM});var Mw=b((_U,Nw)=>{function zM(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}Nw.exports=zM});var _f=b((bU,kw)=>{function $M(t,e){return t.has(e)}kw.exports=$M});var qw=b((wU,Fw)=>{var HM=gf(),VM=yf(),YM=mf(),KM=Mw(),ZM=Xl(),QM=_f(),XM=200;function JM(t,e,r,i){var n=-1,s=VM,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=KM(e,ZM(r))),i?(s=YM,o=!1):e.length>=XM&&(s=QM,o=!1,e=new HM(e));e:for(;++n<a;){var f=t[n],h=r==null?f:r(f);if(f=i||f!==0?f:0,o&&h===h){for(var g=u;g--;)if(e[g]===h)continue e;l.push(f)}else s(e,h,i)||l.push(f)}return l}Fw.exports=JM});var bf=b((SU,Bw)=>{var ek=no(),tk=ri();function rk(t){return tk(t)&&ek(t)}Bw.exports=rk});var Ww=b((EU,Uw)=>{var ik=qw(),nk=qo(),sk=ro(),jw=bf(),ok=sk(function(t,e){return jw(t)?ik(t,nk(e,1,jw,!0)):[]});Uw.exports=ok});var zw=b((vU,Gw)=>{var ak=an(),lk=ti(),uk=ak(lk,"Set");Gw.exports=uk});var Hw=b((TU,$w)=>{function fk(){}$w.exports=fk});var wf=b((xU,Vw)=>{function ck(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}Vw.exports=ck});var Kw=b((AU,Yw)=>{var Sf=zw(),hk=Hw(),dk=wf(),pk=1/0,gk=Sf&&1/dk(new Sf([,-0]))[1]==pk?function(t){return new Sf(t)}:hk;Yw.exports=gk});var Qw=b((RU,Zw)=>{var yk=gf(),mk=yf(),_k=mf(),bk=_f(),wk=Kw(),Sk=wf(),Ek=200;function vk(t,e,r){var i=-1,n=mk,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=_k;else if(s>=Ek){var u=e?null:wk(t);if(u)return Sk(u);o=!1,n=bk,l=new yk}else l=e?[]:a;e:for(;++i<s;){var f=t[i],h=e?e(f):f;if(f=r||f!==0?f:0,o&&h===h){for(var g=l.length;g--;)if(l[g]===h)continue e;e&&l.push(h),a.push(f)}else n(l,h,r)||(l!==a&&l.push(h),a.push(f))}return a}Zw.exports=vk});var Jw=b((OU,Xw)=>{var Tk=qo(),xk=ro(),Ak=Qw(),Rk=bf(),Ok=xk(function(t){return Ak(Tk(t,1,Rk,!0))});Xw.exports=Ok});var t0=b((DU,e0)=>{function Dk(t,e){return function(r){return t(e(r))}}e0.exports=Dk});var i0=b((IU,r0)=>{var Ik=t0(),Pk=Ik(Object.getPrototypeOf,Object);r0.exports=Pk});var o0=b((PU,s0)=>{var Lk=sn(),Ck=i0(),Nk=ri(),Mk="[object Object]",kk=Function.prototype,Fk=Object.prototype,n0=kk.toString,qk=Fk.hasOwnProperty,Bk=n0.call(Object);function jk(t){if(!Nk(t)||Lk(t)!=Mk)return!1;var e=Ck(t);if(e===null)return!0;var r=qk.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&n0.call(r)==Bk}s0.exports=jk});var a0=b(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.assertValidPattern=void 0;var Uk=1024*64,Wk=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Uk)throw new TypeError("pattern is too long")};jo.assertValidPattern=Wk});var u0=b(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.parseClass=void 0;var Gk={"[: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]},Pn=t=>t.replace(/[[\]\\-]/g,"\\$&"),zk=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),l0=t=>t.join(""),$k=(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,h="";e:for(;s<t.length;){let m=t.charAt(s);if((m==="!"||m==="^")&&s===r+1){u=!0,s++;continue}if(m==="]"&&o&&!l){f=s+1;break}if(o=!0,m==="\\"&&!l){l=!0,s++;continue}if(m==="["&&!l){for(let[v,[S,R,L]]of Object.entries(Gk))if(t.startsWith(v,s)){if(h)return["$.",!1,t.length-r,!0];s+=v.length,L?n.push(S):i.push(S),a=a||R;continue e}}if(l=!1,h){m>h?i.push(Pn(h)+"-"+Pn(m)):m===h&&i.push(Pn(m)),h="",s++;continue}if(t.startsWith("-]",s+1)){i.push(Pn(m+"-")),s+=2;continue}if(t.startsWith("-",s+1)){h=m,s+=2;continue}i.push(Pn(m)),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 m=i[0].length===2?i[0].slice(-1):i[0];return[zk(m),!1,f-r,!1]}let g="["+(u?"^":"")+l0(i)+"]",y="["+(u?"":"^")+l0(n)+"]";return[i.length&&n.length?"("+g+"|"+y+")":i.length?g:y,a,f-r,!0]};Uo.parseClass=$k});var Go=b(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.unescape=void 0;var Hk=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");Wo.unescape=Hk});var Tf=b(Vo=>{"use strict";var Qe;Object.defineProperty(Vo,"__esModule",{value:!0});Vo.AST=void 0;var Vk=u0(),zo=Go(),Yk=new Set(["!","?","+","*","@"]),Ef=t=>Yk.has(t),f0=t=>Ef(t.type),Kk=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Zk=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Qk=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),c0=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Xk="(?!(?:^|/)\\.\\.?(?:$|/))",$o="(?!\\.)",Jk=new Set(["[","."]),e2=new Set(["..","."]),t2=new Set("().*{}+?[]^$\\!"),r2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),vf="[^/]",h0=vf+"*?",d0=vf+"+?",Ho=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("")}#m(){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 Qe&&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 Qe&&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 Qe(this.type,e);for(let i of this.#t)r.copyIn(i);return r}static#_(e,r,i,n,s){let o=n.maxExtglobRecursion??2,a=!1,l=!1,u=-1,f=!1;if(r.type===null){let m=i,v="";for(;m<e.length;){let S=e.charAt(m++);if(a||S==="\\"){a=!a,v+=S;continue}if(l){m===u+1?(S==="^"||S==="!")&&(f=!0):S==="]"&&!(m===u+2&&f)&&(l=!1),v+=S;continue}else if(S==="["){l=!0,u=m,f=!1,v+=S;continue}if(!n.noext&&Ef(S)&&e.charAt(m)==="("&&s<=o){r.push(v),v="";let L=new Qe(S,r);m=Qe.#_(e,L,m,n,s+1),r.push(L);continue}v+=S}return r.push(v),m}let h=i+1,g=new Qe(null,r),y=[],E="";for(;h<e.length;){let m=e.charAt(h++);if(a||m==="\\"){a=!a,E+=m;continue}if(l){h===u+1?(m==="^"||m==="!")&&(f=!0):m==="]"&&!(h===u+2&&f)&&(l=!1),E+=m;continue}else if(m==="["){l=!0,u=h,f=!1,E+=m;continue}if(Ef(m)&&e.charAt(h)==="("&&(s<=o||r&&r.#E(m))){let S=r&&r.#E(m)?0:1;g.push(E),E="";let R=new Qe(m,g);g.push(R),h=Qe.#_(e,R,h,n,s+S);continue}if(m==="|"){g.push(E),E="",y.push(g),g=new Qe(null,r);continue}if(m===")")return E===""&&r.#t.length===0&&(r.#s=!0),g.push(E),E="",r.push(...y,g),h;E+=m}return r.type=null,r.#r=void 0,r.#t=[e.substring(i-1)],h}#g(e){return this.#d(e,Zk)}#d(e,r=Kk){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=Qk){return!!r.get(this.type)?.includes(e)}#p(e,r){let i=e.#t[0],n=new Qe(null,i,this.options);n.#t.push(""),i.push(n),this.#T(e,r)}#T(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}#x(e){return!!c0.get(this.type)?.has(e)}#y(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.#x(r.type)}#v(e){let r=c0.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(f0(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.#T(n,i)):this.#g(n)?(r=!1,this.#p(n,i)):this.#y(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 Qe(null,void 0,r);return Qe.#_(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.#m()),!f0(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(y=>{let[E,m,v,S]=typeof y=="string"?Qe.#A(y,this.#r,l):y.toRegExpSource(e);return this.#r=this.#r||v,this.#n=this.#n||S,E}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&e2.has(this.#t[0]))){let E=Jk,m=r&&E.has(u.charAt(0))||u.startsWith("\\.")&&E.has(u.charAt(2))||u.startsWith("\\.\\.")&&E.has(u.charAt(4)),v=!r&&!e&&E.has(u.charAt(0));f=m?Xk:v?$o:""}let h="";return this.isEnd()&&this.#e.#c&&this.#o?.type==="!"&&(h="(?:$|\\/)"),[f+u+h,(0,zo.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,zo.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!$o?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?$o:"")+d0;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?$o:"")+h0+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,zo.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+=(t2.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,h,g,y]=(0,Vk.parseClass)(e,l);if(g){s+=f,o=o||h,l+=g-1,r=r||y,a=!1;continue}}if(u==="*"){if(a)continue;a=!0,s+=i&&/^[*]+$/.test(e)?d0:h0,r=!0;continue}else a=!1;if(u==="?"){s+=vf,r=!0;continue}s+=r2(u)}return[s,(0,zo.unescape)(e),!!r,o]}};Vo.AST=Ho;Qe=Ho});var xf=b(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.escape=void 0;var i2=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");Yo.escape=i2});var nr=b(F=>{"use strict";var n2=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(F,"__esModule",{value:!0});F.unescape=F.escape=F.AST=F.Minimatch=F.match=F.makeRe=F.braceExpand=F.defaults=F.filter=F.GLOBSTAR=F.sep=F.minimatch=void 0;var s2=n2(al()),Ko=a0(),y0=Tf(),o2=xf(),a2=Go(),l2=(t,e,r={})=>((0,Ko.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Nr(e,r).match(t));F.minimatch=l2;var u2=/^\*+([^+@!?\*\[\(]*)$/,f2=t=>e=>!e.startsWith(".")&&e.endsWith(t),c2=t=>e=>e.endsWith(t),h2=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),d2=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),p2=/^\*+\.\*+$/,g2=t=>!t.startsWith(".")&&t.includes("."),y2=t=>t!=="."&&t!==".."&&t.includes("."),m2=/^\.\*+$/,_2=t=>t!=="."&&t!==".."&&t.startsWith("."),b2=/^\*+$/,w2=t=>t.length!==0&&!t.startsWith("."),S2=t=>t.length!==0&&t!=="."&&t!=="..",E2=/^\?+([^+@!?\*\[\(]*)?$/,v2=([t,e=""])=>{let r=m0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},T2=([t,e=""])=>{let r=_0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},x2=([t,e=""])=>{let r=_0([t]);return e?i=>r(i)&&i.endsWith(e):r},A2=([t,e=""])=>{let r=m0([t]);return e?i=>r(i)&&i.endsWith(e):r},m0=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},_0=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},b0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",p0={win32:{sep:"\\"},posix:{sep:"/"}};F.sep=b0==="win32"?p0.win32.sep:p0.posix.sep;F.minimatch.sep=F.sep;F.GLOBSTAR=Symbol("globstar **");F.minimatch.GLOBSTAR=F.GLOBSTAR;var R2="[^/]",O2=R2+"*?",D2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",I2="(?:(?!(?:\\/|^)\\.).)*?",P2=(t,e={})=>r=>(0,F.minimatch)(r,t,e);F.filter=P2;F.minimatch.filter=F.filter;var ut=(t,e={})=>Object.assign({},t,e),L2=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return F.minimatch;let e=F.minimatch;return Object.assign((i,n,s={})=>e(i,n,ut(t,s)),{Minimatch:class extends e.Minimatch{constructor(n,s={}){super(n,ut(t,s))}static defaults(n){return e.defaults(ut(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,s,o={}){super(n,s,ut(t,o))}static fromGlob(n,s={}){return e.AST.fromGlob(n,ut(t,s))}},unescape:(i,n={})=>e.unescape(i,ut(t,n)),escape:(i,n={})=>e.escape(i,ut(t,n)),filter:(i,n={})=>e.filter(i,ut(t,n)),defaults:i=>e.defaults(ut(t,i)),makeRe:(i,n={})=>e.makeRe(i,ut(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,ut(t,n)),match:(i,n,s={})=>e.match(i,n,ut(t,s)),sep:e.sep,GLOBSTAR:F.GLOBSTAR})};F.defaults=L2;F.minimatch.defaults=F.defaults;var C2=(t,e={})=>((0,Ko.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,s2.default)(t));F.braceExpand=C2;F.minimatch.braceExpand=F.braceExpand;var N2=(t,e={})=>new Nr(t,e).makeRe();F.makeRe=N2;F.minimatch.makeRe=F.makeRe;var M2=(t,e,r={})=>{let i=new Nr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};F.match=M2;F.minimatch.match=F.match;var g0=/[?*]|[+@!]\(.*?\)|\[|\]/,k2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Nr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,Ko.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||b0,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]==="?"||!g0.test(s[2]))&&!g0.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]),h=l?3:a?0:void 0,g=f?3:u?0:void 0;if(typeof h=="number"&&typeof g=="number"){let[y,E]=[e[h],r[g]];y.toLowerCase()===E.toLowerCase()&&(r[g]=y,s=g,n=h)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(F.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(F.GLOBSTAR,s),a=r.lastIndexOf(F.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 R=e.slice(n,n+l.length);if(!this.#n(R,l,i,0,0))return!1;n+=l.length}let h=0;if(f.length){if(f.length+n>e.length)return!1;let R=e.length-f.length;if(this.#n(e,f,i,R,0))h=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||(R--,!this.#n(e,f,i,R,0)))return!1;h=f.length+1}}if(!u.length){let R=!!h;for(let L=n;L<e.length-h;L++){let D=String(e[L]);if(R=!0,D==="."||D===".."||!this.options.dot&&D.startsWith("."))return!1}return i||R}let g=[[[],0]],y=g[0],E=0,m=[0];for(let R of u)R===F.GLOBSTAR?(m.push(E),y=[[],0],g.push(y)):(y[0].push(R),E++);let v=g.length-1,S=e.length-h;for(let R of g)R[1]=S-(m[v--]+R[0].length);return!!this.#r(e,g,n,0,i,0,!!h)}#r(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let h=i;h<e.length;h++){a=!0;let g=e[h];if(g==="."||g===".."||!this.options.dot&&g.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 y=this.#r(e,r,i+u.length,n+1,s,o+1,a);if(y!==!1)return y}let g=e[i];if(g==="."||g===".."||!this.options.dot&&g.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],h=e[o];if(this.debug(r,f,h),f===!1||f===F.GLOBSTAR)return!1;let g;if(typeof f=="string"?(g=h===f,this.debug("string match",f,h,g)):(g=f.test(h),this.debug("pattern match",f,h,g)),!g)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,F.braceExpand)(this.pattern,this.options)}parse(e){(0,Ko.assertValidPattern)(e);let r=this.options;if(e==="**")return F.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(b2))?n=r.dot?S2:w2:(i=e.match(u2))?n=(r.nocase?r.dot?d2:h2:r.dot?c2:f2)(i[1]):(i=e.match(E2))?n=(r.nocase?r.dot?T2:v2:r.dot?x2:A2)(i):(i=e.match(p2))?n=r.dot?y2:g2:(i=e.match(m2))&&(n=_2);let s=y0.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?O2:r.dot?D2:I2,n=new Set(r.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))n.add(h);return typeof f=="string"?k2(f):f===F.GLOBSTAR?F.GLOBSTAR:f._src});return u.forEach((f,h)=>{let g=u[h+1],y=u[h-1];f!==F.GLOBSTAR||y===F.GLOBSTAR||(y===void 0?g!==void 0&&g!==F.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+g:u[h]=i:g===void 0?u[h-1]=y+"(?:\\/|"+i+")?":g!==F.GLOBSTAR&&(u[h-1]=y+"(?:\\/|\\/"+i+"\\/)"+g,u[h+1]=F.GLOBSTAR))}),u.filter(f=>f!==F.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 F.minimatch.defaults(e).Minimatch}};F.Minimatch=Nr;var F2=Tf();Object.defineProperty(F,"AST",{enumerable:!0,get:function(){return F2.AST}});var q2=xf();Object.defineProperty(F,"escape",{enumerable:!0,get:function(){return q2.escape}});var B2=Go();Object.defineProperty(F,"unescape",{enumerable:!0,get:function(){return B2.unescape}});F.minimatch.AST=y0.AST;F.minimatch.Minimatch=Nr;F.minimatch.escape=o2.escape;F.minimatch.unescape=a2.unescape});var T0=b(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.LRUCache=void 0;var Ei=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,S0=new Set,Af=typeof process=="object"&&process?process:{},E0=(t,e,r,i)=>{typeof Af.emitWarning=="function"?Af.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},Zo=globalThis.AbortController,w0=globalThis.AbortSignal;if(typeof Zo>"u"){w0=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},Zo=class{constructor(){e()}signal=new w0;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=Af.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,E0("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 j2=t=>!S0.has(t),sr=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),v0=t=>sr(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?vi:null:null,vi=class extends Array{constructor(e){super(e),this.fill(0)}},Rf=class t{heap;length;static#e=!1;static create(e){let r=v0(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]}},Of=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;#m;#_;#g;#d;#E;#p;#T;#x;#y;#v;#b;#h;static unsafeExposeInternals(e){return{starts:e.#x,ttls:e.#y,sizes:e.#T,keyMap:e.#l,keyList:e.#a,valList:e.#s,next:e.#m,prev:e.#_,get head(){return e.#g},get tail(){return e.#d},free:e.#E,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,i,n,s)=>e.#q(r,i,n,s),moveToTail:r=>e.#j(r),indexes:r=>e.#O(r),rindexes:r=>e.#D(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:h,noUpdateTTL:g,maxSize:y=0,maxEntrySize:E=0,sizeCalculation:m,fetchMethod:v,memoMethod:S,noDeleteOnFetchRejection:R,noDeleteOnStaleGet:L,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:q,ignoreFetchAbort:Z}=e;if(r!==0&&!sr(r))throw new TypeError("max option must be a nonnegative integer");let P=r?v0(r):Array;if(!P)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=y,this.maxEntrySize=E||this.#r,this.sizeCalculation=m,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(S!==void 0&&typeof S!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=S,v!==void 0&&typeof v!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=v,this.#b=!!v,this.#l=new Map,this.#a=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#m=new P(r),this.#_=new P(r),this.#g=0,this.#d=0,this.#E=Rf.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=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!R,this.allowStaleOnFetchRejection=!!D,this.allowStaleOnFetchAbort=!!q,this.ignoreFetchAbort=!!Z,this.maxEntrySize!==0){if(this.#r!==0&&!sr(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!sr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#I()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!L,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=sr(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!sr(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 B="LRU_CACHE_UNBOUNDED";j2(B)&&(S0.add(B),E0("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",B,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#A(){let e=new vi(this.#e),r=new vi(this.#e);this.#y=e,this.#x=r,this.#L=(s,o,a=Ei.now())=>{if(r[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(s)&&this.#P(this.#a[s],"expire")},o+1);l.unref&&l.unref()}},this.#R=s=>{r[s]=e[s]!==0?Ei.now():0},this.#i=(s,o)=>{if(e[o]){let a=e[o],l=r[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=i||n();let u=s.now-l;s.remainingTTL=a-u}};let i=0,n=()=>{let s=Ei.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#l.get(s);if(o===void 0)return 0;let a=e[o],l=r[o];if(!a||!l)return 1/0;let u=(i||n())-l;return a-u},this.#w=s=>{let o=r[s],a=e[s];return!!a&&!!o&&(i||n())-o>a}}#R=()=>{};#i=()=>{};#L=()=>{};#w=()=>!1;#I(){let e=new vi(this.#e);this.#c=0,this.#T=e,this.#C=r=>{this.#c-=e[r],e[r]=0},this.#M=(r,i,n,s)=>{if(this.#f(i))return 0;if(!sr(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!sr(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.#N=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#c>s;)this.#F(!0)}this.#c+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#c)}}#C=e=>{};#N=(e,r,i)=>{};#M=(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.#k(r)||((e||!this.#w(r))&&(yield r),r===this.#g));)r=this.#_[r]}*#D({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#g;!(!this.#k(r)||((e||!this.#w(r))&&(yield r),r===this.#d));)r=this.#m[r]}#k(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.#D())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.#D()){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.#D())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.#D()){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.#D({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.#y&&this.#x){let o=this.#y[r],a=this.#x[r];if(o&&a){let l=o-(Ei.now()-a);s.ttl=l,s.start=Date.now()}}return this.#T&&(s.size=this.#T[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.#y&&this.#x){o.ttl=this.#y[r];let a=Ei.now()-this.#x[r];o.start=Math.floor(Date.now()-a)}this.#T&&(o.size=this.#T[r]),e.unshift([i,o])}return e}load(e){this.clear();for(let[r,i]of e){if(i.start){let n=Date.now()-i.start;i.start=Ei.now()-n}this.set(r,i.value,i)}}set(e,r,i={}){if(r===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:u=this.noUpdateTTL}=i,f=this.#M(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 h=this.#u===0?void 0:this.#l.get(e);if(h===void 0)h=this.#u===0?this.#d:this.#E.length!==0?this.#E.pop():this.#u===this.#e?this.#F(!1):this.#u,this.#a[h]=e,this.#s[h]=r,this.#l.set(e,h),this.#m[this.#d]=h,this.#_[h]=this.#d,this.#d=h,this.#u++,this.#N(h,f,l),l&&(l.set="add"),u=!1;else{this.#j(h);let g=this.#s[h];if(r!==g){if(this.#b&&this.#f(g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:y}=g;y!==void 0&&!o&&(this.#v&&this.#n?.(y,e,"set"),this.#h&&this.#p?.push([y,e,"set"]))}else o||(this.#v&&this.#n?.(g,e,"set"),this.#h&&this.#p?.push([g,e,"set"]));if(this.#C(h),this.#N(h,f,l),this.#s[h]=r,l){l.set="replace";let y=g&&this.#f(g)?g.__staleWhileFetching:g;y!==void 0&&(l.oldValue=y)}}else l&&(l.set="update")}if(n!==0&&!this.#y&&this.#A(),this.#y&&(u||this.#L(h,n,s),l&&this.#i(l,h)),!o&&this.#h&&this.#p){let g=this.#p,y;for(;y=g?.shift();)this.#t?.(...y)}return this}pop(){try{for(;this.#u;){let e=this.#s[this.#g];if(this.#F(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#p){let e=this.#p,r;for(;r=e?.shift();)this.#t?.(...r)}}}#F(e){let r=this.#g,i=this.#a[r],n=this.#s[r];return this.#b&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(n,i,"evict"),this.#h&&this.#p?.push([n,i,"evict"])),this.#C(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.#m[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}#q(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new Zo,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},u=(m,v=!1)=>{let{aborted:S}=o.signal,R=i.ignoreFetchAbort&&m!==void 0;if(i.status&&(S&&!v?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,R&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),S&&!R&&!v)return h(o.signal.reason);let L=y;return this.#s[r]===y&&(m===void 0?L.__staleWhileFetching?this.#s[r]=L.__staleWhileFetching:this.#P(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,m,l.options))),m},f=m=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=m),h(m)),h=m=>{let{aborted:v}=o.signal,S=v&&i.allowStaleOnFetchAbort,R=S||i.allowStaleOnFetchRejection,L=R||i.noDeleteOnFetchRejection,D=y;if(this.#s[r]===y&&(!L||D.__staleWhileFetching===void 0?this.#P(e,"fetch"):S||(this.#s[r]=D.__staleWhileFetching)),R)return i.status&&D.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),D.__staleWhileFetching;if(D.__returned===D)throw m},g=(m,v)=>{let S=this.#o?.(e,s,l);S&&S instanceof Promise&&S.then(R=>m(R===void 0?void 0:R),v),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(m(void 0),i.allowStaleOnFetchAbort&&(m=R=>u(R,!0)))})};i.status&&(i.status.fetchDispatched=!0);let y=new Promise(g).then(u,f),E=Object.assign(y,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,E,{...l.options,status:void 0}),r=this.#l.get(e)):this.#s[r]=E,E}#f(e){if(!this.#b)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Zo}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:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:E=this.allowStaleOnFetchAbort,context:m,forceRefresh:v=!1,status:S,signal:R}=r;if(!this.#b)return S&&(S.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:S});let L={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:E,ignoreFetchAbort:y,status:S,signal:R},D=this.#l.get(e);if(D===void 0){S&&(S.fetch="miss");let q=this.#q(e,D,L,m);return q.__returned=q}else{let q=this.#s[D];if(this.#f(q)){let M=i&&q.__staleWhileFetching!==void 0;return S&&(S.fetch="inflight",M&&(S.returnedStale=!0)),M?q.__staleWhileFetching:q.__returned=q}let Z=this.#w(D);if(!v&&!Z)return S&&(S.fetch="hit"),this.#j(D),n&&this.#R(D),S&&this.#i(S,D),q;let P=this.#q(e,D,L,m),A=P.__staleWhileFetching!==void 0&&i;return S&&(S.fetch=Z?"stale":"refresh",A&&Z&&(S.returnedStale=!0)),A?P.__staleWhileFetching:P.__returned=P}}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.#j(a),n&&this.#R(a),l))}else o&&(o.get="miss")}#B(e,r){this.#_[r]=e,this.#m[e]=r}#j(e){e!==this.#d&&(e===this.#g?this.#g=this.#m[e]:this.#B(this.#_[e],this.#m[e]),this.#B(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.#C(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.#_[n];else if(n===this.#g)this.#g=this.#m[n];else{let o=this.#_[n];this.#m[o]=this.#m[n];let a=this.#m[n];this.#_[a]=this.#_[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.#D({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.#y&&this.#x&&(this.#y.fill(0),this.#x.fill(0)),this.#T&&this.#T.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)}}};Qo.LRUCache=Of});var kf=b(Ye=>{"use strict";var U2=Ye&&Ye.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.Minipass=Ye.isWritable=Ye.isReadable=Ye.isStream=void 0;var x0=typeof process=="object"&&process?process:{stdout:null,stderr:null},Mf=W("node:events"),D0=U2(W("node:stream")),W2=W("node:string_decoder"),G2=t=>!!t&&typeof t=="object"&&(t instanceof na||t instanceof D0.default||(0,Ye.isReadable)(t)||(0,Ye.isWritable)(t));Ye.isStream=G2;var z2=t=>!!t&&typeof t=="object"&&t instanceof Mf.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==D0.default.Writable.prototype.pipe;Ye.isReadable=z2;var $2=t=>!!t&&typeof t=="object"&&t instanceof Mf.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Ye.isWritable=$2;var Gt=Symbol("EOF"),zt=Symbol("maybeEmitEnd"),or=Symbol("emittedEnd"),Xo=Symbol("emittingEnd"),Ln=Symbol("emittedError"),Jo=Symbol("closed"),A0=Symbol("read"),ea=Symbol("flush"),R0=Symbol("flushChunk"),_t=Symbol("encoding"),Ti=Symbol("decoder"),Le=Symbol("flowing"),Cn=Symbol("paused"),xi=Symbol("resume"),Ce=Symbol("buffer"),Ve=Symbol("pipes"),Ne=Symbol("bufferLength"),Df=Symbol("bufferPush"),ta=Symbol("bufferShift"),ze=Symbol("objectMode"),Ae=Symbol("destroyed"),If=Symbol("error"),Pf=Symbol("emitData"),O0=Symbol("emitEnd"),Lf=Symbol("emitEnd2"),Ot=Symbol("async"),Cf=Symbol("abort"),ra=Symbol("aborted"),Nn=Symbol("signal"),Mr=Symbol("dataListeners"),Je=Symbol("discarded"),Mn=t=>Promise.resolve().then(t),H2=t=>t(),V2=t=>t==="end"||t==="finish"||t==="prefinish",Y2=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,K2=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ia=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[xi](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Nf=class extends ia{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)}},Z2=t=>!!t.objectMode,Q2=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",na=class extends Mf.EventEmitter{[Le]=!1;[Cn]=!1;[Ve]=[];[Ce]=[];[ze];[_t];[Ot];[Ti];[Gt]=!1;[or]=!1;[Xo]=!1;[Jo]=!1;[Ln]=null;[Ne]=0;[Ae]=!1;[Nn];[ra]=!1;[Mr]=0;[Je]=!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");Z2(r)?(this[ze]=!0,this[_t]=null):Q2(r)?(this[_t]=r.encoding,this[ze]=!1):(this[ze]=!1,this[_t]=null),this[Ot]=!!r.async,this[Ti]=this[_t]?new W2.StringDecoder(this[_t]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Ce]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ve]});let{signal:i}=r;i&&(this[Nn]=i,i.aborted?this[Cf]():i.addEventListener("abort",()=>this[Cf]()))}get bufferLength(){return this[Ne]}get encoding(){return this[_t]}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[ze]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Ot]}set async(e){this[Ot]=this[Ot]||!!e}[Cf](){this[ra]=!0,this.emit("abort",this[Nn]?.reason),this.destroy(this[Nn]?.reason)}get aborted(){return this[ra]}set aborted(e){}write(e,r,i){if(this[ra])return!1;if(this[Gt])throw new Error("write after end");if(this[Ae])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[Ot]?Mn:H2;if(!this[ze]&&!Buffer.isBuffer(e)){if(K2(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(Y2(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[ze]?(this[Le]&&this[Ne]!==0&&this[ea](!0),this[Le]?this.emit("data",e):this[Df](e),this[Ne]!==0&&this.emit("readable"),i&&n(i),this[Le]):e.length?(typeof e=="string"&&!(r===this[_t]&&!this[Ti]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[_t]&&(e=this[Ti].write(e)),this[Le]&&this[Ne]!==0&&this[ea](!0),this[Le]?this.emit("data",e):this[Df](e),this[Ne]!==0&&this.emit("readable"),i&&n(i),this[Le]):(this[Ne]!==0&&this.emit("readable"),i&&n(i),this[Le])}read(e){if(this[Ae])return null;if(this[Je]=!1,this[Ne]===0||e===0||e&&e>this[Ne])return this[zt](),null;this[ze]&&(e=null),this[Ce].length>1&&!this[ze]&&(this[Ce]=[this[_t]?this[Ce].join(""):Buffer.concat(this[Ce],this[Ne])]);let r=this[A0](e||null,this[Ce][0]);return this[zt](),r}[A0](e,r){if(this[ze])this[ta]();else{let i=r;e===i.length||e===null?this[ta]():typeof i=="string"?(this[Ce][0]=i.slice(e),r=i.slice(0,e),this[Ne]-=e):(this[Ce][0]=i.subarray(e),r=i.subarray(0,e),this[Ne]-=e)}return this.emit("data",r),!this[Ce].length&&!this[Gt]&&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[Gt]=!0,this.writable=!1,(this[Le]||!this[Cn])&&this[zt](),this}[xi](){this[Ae]||(!this[Mr]&&!this[Ve].length&&(this[Je]=!0),this[Cn]=!1,this[Le]=!0,this.emit("resume"),this[Ce].length?this[ea]():this[Gt]?this[zt]():this.emit("drain"))}resume(){return this[xi]()}pause(){this[Le]=!1,this[Cn]=!0,this[Je]=!1}get destroyed(){return this[Ae]}get flowing(){return this[Le]}get paused(){return this[Cn]}[Df](e){this[ze]?this[Ne]+=1:this[Ne]+=e.length,this[Ce].push(e)}[ta](){return this[ze]?this[Ne]-=1:this[Ne]-=this[Ce][0].length,this[Ce].shift()}[ea](e=!1){do;while(this[R0](this[ta]())&&this[Ce].length);!e&&!this[Ce].length&&!this[Gt]&&this.emit("drain")}[R0](e){return this.emit("data",e),this[Le]}pipe(e,r){if(this[Ae])return e;this[Je]=!1;let i=this[or];return r=r||{},e===x0.stdout||e===x0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ve].push(r.proxyErrors?new Nf(this,e,r):new ia(this,e,r)),this[Ot]?Mn(()=>this[xi]()):this[xi]()),e}unpipe(e){let r=this[Ve].find(i=>i.dest===e);r&&(this[Ve].length===1?(this[Le]&&this[Mr]===0&&(this[Le]=!1),this[Ve]=[]):this[Ve].splice(this[Ve].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[Je]=!1,this[Mr]++,!this[Ve].length&&!this[Le]&&this[xi]();else if(e==="readable"&&this[Ne]!==0)super.emit("readable");else if(V2(e)&&this[or])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[Ln]){let n=r;this[Ot]?Mn(()=>n.call(this,this[Ln])):n.call(this,this[Ln])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[Mr]=this.listeners("data").length,this[Mr]===0&&!this[Je]&&!this[Ve].length&&(this[Le]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[Mr]=0,!this[Je]&&!this[Ve].length&&(this[Le]=!1)),r}get emittedEnd(){return this[or]}[zt](){!this[Xo]&&!this[or]&&!this[Ae]&&this[Ce].length===0&&this[Gt]&&(this[Xo]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Jo]&&this.emit("close"),this[Xo]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==Ae&&this[Ae])return!1;if(e==="data")return!this[ze]&&!i?!1:this[Ot]?(Mn(()=>this[Pf](i)),!0):this[Pf](i);if(e==="end")return this[O0]();if(e==="close"){if(this[Jo]=!0,!this[or]&&!this[Ae])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Ln]=i,super.emit(If,i);let s=!this[Nn]||this.listeners("error").length?super.emit("error",i):!1;return this[zt](),s}else if(e==="resume"){let s=super.emit("resume");return this[zt](),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[zt](),n}[Pf](e){for(let i of this[Ve])i.dest.write(e)===!1&&this.pause();let r=this[Je]?!1:super.emit("data",e);return this[zt](),r}[O0](){return this[or]?!1:(this[or]=!0,this.readable=!1,this[Ot]?(Mn(()=>this[Lf]()),!0):this[Lf]())}[Lf](){if(this[Ti]){let r=this[Ti].end();if(r){for(let i of this[Ve])i.dest.write(r);this[Je]||super.emit("data",r)}}for(let r of this[Ve])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[ze]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ze]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[ze])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[_t]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(Ae,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Je]=!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[Gt])return r();let s,o,a=h=>{this.off("data",l),this.off("end",u),this.off(Ae,f),r(),o(h)},l=h=>{this.off("error",a),this.off("end",u),this.off(Ae,f),this.pause(),s({value:h,done:!!this[Gt]})},u=()=>{this.off("error",a),this.off("data",l),this.off(Ae,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((h,g)=>{o=g,s=h,this.once(Ae,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[Je]=!1;let e=!1,r=()=>(this.pause(),this.off(If,r),this.off(Ae,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(If,r),this.once(Ae,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[Ae])return e?this.emit("error",e):this.emit(Ae),this;this[Ae]=!0,this[Je]=!0,this[Ce].length=0,this[Ne]=0;let r=this;return typeof r.close=="function"&&!this[Jo]&&r.close(),e?this.emit("error",e):this.emit(Ae),this}static get isStream(){return Ye.isStream}};Ye.Minipass=na});var z0=b(he=>{"use strict";var X2=he&&he.__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]})),J2=he&&he.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),eF=he&&he.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&X2(e,t,r);return J2(e,t),e};Object.defineProperty(he,"__esModule",{value:!0});he.PathScurry=he.Path=he.PathScurryDarwin=he.PathScurryPosix=he.PathScurryWin32=he.PathScurryBase=he.PathPosix=he.PathWin32=he.PathBase=he.ChildrenCache=he.ResolveCache=void 0;var M0=T0(),ua=W("node:path"),tF=W("node:url"),Fn=W("fs"),rF=eF(W("node:fs")),iF=Fn.realpathSync.native,sa=W("node:fs/promises"),I0=kf(),qn={lstatSync:Fn.lstatSync,readdir:Fn.readdir,readdirSync:Fn.readdirSync,readlinkSync:Fn.readlinkSync,realpathSync:iF,promises:{lstat:sa.lstat,readdir:sa.readdir,readlink:sa.readlink,realpath:sa.realpath}},k0=t=>!t||t===qn||t===rF?qn:{...qn,...t,promises:{...qn.promises,...t.promises||{}}},F0=/^\\\\\?\\([a-z]:)\\?$/i,nF=t=>t.replace(/\//g,"\\").replace(F0,"$1\\"),sF=/[\\\/]/,ct=0,q0=1,B0=2,Dt=4,j0=6,U0=8,kr=10,W0=12,ft=15,kn=~ft,Ff=16,P0=32,Bn=64,bt=128,oa=256,la=512,L0=Bn|bt|la,oF=1023,qf=t=>t.isFile()?U0:t.isDirectory()?Dt:t.isSymbolicLink()?kr:t.isCharacterDevice()?B0:t.isBlockDevice()?j0:t.isSocket()?W0:t.isFIFO()?q0:ct,C0=new Map,jn=t=>{let e=C0.get(t);if(e)return e;let r=t.normalize("NFKD");return C0.set(t,r),r},N0=new Map,aa=t=>{let e=N0.get(t);if(e)return e;let r=jn(t.toLowerCase());return N0.set(t,r),r},Un=class extends M0.LRUCache{constructor(){super({max:256})}};he.ResolveCache=Un;var fa=class extends M0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};he.ChildrenCache=fa;var G0=Symbol("PathScurry setAsCwd"),Be=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}#m;get atimeMs(){return this.#m}#_;get mtimeMs(){return this.#_}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#E;get atime(){return this.#E}#p;get mtime(){return this.#p}#T;get ctime(){return this.#T}#x;get birthtime(){return this.#x}#y;#v;#b;#h;#A;#R;#i;#L;#w;#I;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=ct,i,n,s,o,a){this.name=e,this.#y=s?aa(e):jn(e),this.#i=r&oF,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=k0(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).#C(n):this.#C(n)}#C(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?aa(e):jn(e);for(let l of i)if(l.#y===n)return l;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+e:void 0,a=this.newChild(e,ct,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=bt),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&ft)===ct}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&ft)===U0}isDirectory(){return(this.#i&ft)===Dt}isCharacterDevice(){return(this.#i&ft)===B0}isBlockDevice(){return(this.#i&ft)===j0}isFIFO(){return(this.#i&ft)===q0}isSocket(){return(this.#i&ft)===W0}isSymbolicLink(){return(this.#i&kr)===kr}lstatCached(){return this.#i&P0?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#I}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&ft;return!(e!==ct&&e!==kr||this.#i&oa||this.#i&bt)}calledReaddir(){return!!(this.#i&Ff)}isENOENT(){return!!(this.#i&bt)}isNamed(e){return this.nocase?this.#y===aa(e):this.#y===jn(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}}#N(e){this.#i|=Ff;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#M()}}#M(){this.#i&bt||(this.#i=(this.#i|bt)&kn,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#M()}#D(){this.#i|=la,this.#k()}#k(){if(this.#i&Bn)return;let e=this.#i;(e&ft)===Dt&&(e&=kn),this.#i=e|Bn,this.#O()}#F(e=""){e==="ENOTDIR"||e==="EPERM"?this.#k():e==="ENOENT"?this.#M():this.children().provisional=0}#q(e=""){e==="ENOTDIR"?this.parent.#k():e==="ENOENT"&&this.#M()}#f(e=""){let r=this.#i;r|=oa,e==="ENOENT"&&(r|=bt),(e==="EINVAL"||e==="UNKNOWN")&&(r&=kn),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#k()}#B(e,r){return this.#P(e,r)||this.#j(e,r)}#j(e,r){let i=qf(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&ft;return s!==Dt&&s!==kr&&s!==ct&&(n.#i|=Bn),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?aa(e.name):jn(e.name))===n.#y)return this.#U(e,n,i,r)}}#U(e,r,i,n){let s=r.name;return r.#i=r.#i&kn|qf(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&bt)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#q(e.code)}}lstatSync(){if((this.#i&bt)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#q(e.code)}}#$(e){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:f,gid:h,ino:g,mode:y,mtime:E,mtimeMs:m,nlink:v,rdev:S,size:R,uid:L}=e;this.#E=r,this.#m=i,this.#x=n,this.#d=s,this.#c=o,this.#s=a,this.#T=l,this.#g=u,this.#r=f,this.#S=h,this.#l=g,this.#n=y,this.#p=E,this.#_=m,this.#t=v,this.#u=S,this.#a=R,this.#o=L;let D=qf(e);this.#i=this.#i&kn|D|P0,D!==ct&&D!==Dt&&D!==kr&&(this.#i|=Bn)}#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.#F(s.code),i.provisional=0;else{for(let a of o)this.#B(a,i);this.#N(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.#B(n,e);this.#N(e)}catch(n){this.#F(n.code),e.provisional=0}this.#W=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#B(i,e);this.#N(e)}catch(i){this.#F(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&L0)return!1;let e=ft&this.#i;return e===ct||e===Dt||e===kr}shouldWalk(e,r){return(this.#i&Dt)===Dt&&!(this.#i&L0)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#I)return this.#I;if(!((la|oa|bt)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#I=this.resolve(e)}catch{this.#D()}}realpathSync(){if(this.#I)return this.#I;if(!((la|oa|bt)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#I=this.resolve(e)}catch{this.#D()}}[G0](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}};he.PathBase=Be;var Wn=class t extends Be{sep="\\";splitSep=sF;constructor(e,r=ct,i,n,s,o,a){super(e,r,i,n,s,o,a)}newChild(e,r=ct,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return ua.win32.parse(e).root}getRoot(e){if(e=nF(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 $n(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(F0,"$1\\"),e===r}};he.PathWin32=Wn;var Gn=class t extends Be{splitSep="/";sep="/";constructor(e,r=ct,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=ct,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};he.PathPosix=Gn;var zn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=qn}={}){this.#t=k0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,tF.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new Un,this.#r=new Un,this.#n=new fa(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,h=r.sep,g=this.rootPath,y=!1;for(let E of l){let m=f--;u=u.child(E,{relative:new Array(m).fill("..").join(h),relativePosix:new Array(m).fill("..").join("/"),fullpath:g+=(y?"":h)+E}),y=!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 Be||(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 Be||(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 Be||(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 Be||(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 Be||(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 Be||(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 Be||(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=(h,g)=>{l.add(h),h.readdirCB((y,E)=>{if(y)return g(y);let m=E.length;if(!m)return g();let v=()=>{--m===0&&g()};for(let S of E)(!s||s(S))&&a.push(i?S:S.fullpath()),n&&S.isSymbolicLink()?S.realpath().then(R=>R?.isUnknown()?R.lstat():R).then(R=>R?.shouldWalk(l,o)?u(R,v):v()):S.shouldWalk(l,o)?u(S,v):v()},!0)},f=e;return new Promise((h,g)=>{u(f,y=>{if(y)return g(y);h(a)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(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 h of f){(!s||s(h))&&a.push(i?h:h.fullpath());let g=h;if(h.isSymbolicLink()){if(!(n&&(g=h.realpathSync())))continue;g.isUnknown()&&g.lstatSync()}g.shouldWalk(l,o)&&l.add(g)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(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 Be||(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 h=f;if(f.isSymbolicLink()){if(!(n&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(a,o)&&a.add(h)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new I0.Minipass({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let l=new Set,u=[e],f=0,h=()=>{let g=!1;for(;!g;){let y=u.shift();if(!y){f===0&&a.end();return}f++,l.add(y);let E=(v,S,R=!1)=>{if(v)return a.emit("error",v);if(n&&!R){let L=[];for(let D of S)D.isSymbolicLink()&&L.push(D.realpath().then(q=>q?.isUnknown()?q.lstat():q));if(L.length){Promise.all(L).then(()=>E(null,S,!0));return}}for(let L of S)L&&(!s||s(L))&&(a.write(i?L:L.fullpath())||(g=!0));f--;for(let L of S){let D=L.realpathCached()||L;D.shouldWalk(l,o)&&u.push(D)}g&&!a.flowing?a.once("drain",h):m||h()},m=!0;y.readdirCB(E,!0),m=!1}};return h(),a}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new I0.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],f=0,h=()=>{let g=!1;for(;!g;){let y=u.shift();if(!y){f===0&&a.end();return}f++,l.add(y);let E=y.readdirSync();for(let m of E)(!s||s(m))&&(a.write(i?m:m.fullpath())||(g=!0));f--;for(let m of E){let v=m;if(m.isSymbolicLink()){if(!(n&&(v=m.realpathSync())))continue;v.isUnknown()&&v.lstatSync()}v.shouldWalk(l,o)&&u.push(v)}}g&&!a.flowing&&a.once("drain",h)};return h(),a}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[G0](r)}};he.PathScurryBase=zn;var $n=class extends zn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,ua.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return ua.win32.parse(e).root.toUpperCase()}newRoot(e){return new Wn(this.rootPath,Dt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};he.PathScurryWin32=$n;var Hn=class extends zn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,ua.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new Gn(this.rootPath,Dt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};he.PathScurryPosix=Hn;var ca=class extends Hn{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};he.PathScurryDarwin=ca;he.Path=process.platform==="win32"?Wn:Gn;he.PathScurry=process.platform==="win32"?$n:process.platform==="darwin"?ca:Hn});var jf=b(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.Pattern=void 0;var aF=nr(),lF=t=>t.length>=1,uF=t=>t.length>=1,Bf=class t{#e;#r;#n;length;#t;#o;#S;#u;#c;#l;#a=!0;constructor(e,r,i,n){if(!lF(e))throw new TypeError("empty pattern list");if(!uF(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,h,g,y,...E]=this.#r;u[0]===""&&(u.shift(),E.shift());let m=[s,o,a,l,""].join("/"),v=[f,h,g,y,""].join("/");this.#e=[m,...u],this.#r=[v,...E],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]===aF.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)}};ha.Pattern=Bf});var Wf=b(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.Ignore=void 0;var $0=nr(),fF=jf(),cF=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Uf=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=cF}){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 $0.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 fF.Pattern(n,s,0,this.platform),a=new $0.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}};da.Ignore=Uf});var V0=b(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.Processor=It.SubWalks=It.MatchRecord=It.HasWalkedCache=void 0;var H0=nr(),pa=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()]))}};It.HasWalkedCache=pa;var ga=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)])}};It.MatchRecord=ga;var ya=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())}};It.SubWalks=ya;var Gf=class t{hasWalkedCache;matches=new ga;subwalks=new ya;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new pa}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 h=s.rest();if(h)s=h;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 h=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,h);continue}else if(l===H0.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let h=u?.pattern(),g=u?.rest();if(!u||(h===""||h===".")&&!g)this.matches.add(n,a,h===""||h===".");else if(h===".."){let y=n.parent||n;g?this.hasWalkedCache.hasWalked(y,g)||this.subwalks.add(y,g):this.matches.add(y,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===H0.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))}};It.Processor=Gf});var Z0=b(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.GlobStream=ar.GlobWalker=ar.GlobUtil=void 0;var hF=kf(),Y0=Wf(),K0=V0(),dF=(t,e)=>typeof t=="string"?new Y0.Ignore([t],e):Array.isArray(t)?new Y0.Ignore(t,e):t,Vn=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=dF(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 K0.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 K0.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()}};ar.GlobUtil=Vn;var zf=class extends Vn{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}};ar.GlobWalker=zf;var $f=class extends Vn{results;constructor(e,r,i){super(e,r,i),this.results=new hF.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}};ar.GlobStream=$f});var Vf=b(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.Glob=void 0;var pF=nr(),gF=W("node:url"),ma=z0(),yF=jf(),_a=Z0(),mF=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Hf=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,gF.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||mF,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"?ma.PathScurryWin32:r.platform==="darwin"?ma.PathScurryDarwin:r.platform?ma.PathScurryPosix:ma.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 pF.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 yF.Pattern(l,f,0,this.platform)})}async walk(){return[...await new _a.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 _a.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 _a.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 _a.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()}};ba.Glob=Hf});var Yf=b(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.hasMagic=void 0;var _F=nr(),bF=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new _F.Minimatch(r,e).hasMagic())return!0;return!1};wa.hasMagic=bF});var eS=b(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.glob=J.sync=J.iterate=J.iterateSync=J.stream=J.streamSync=J.Ignore=J.hasMagic=J.Glob=J.unescape=J.escape=void 0;J.globStreamSync=Yn;J.globStream=Kf;J.globSync=Zf;J.globIterateSync=Kn;J.globIterate=Qf;var Q0=nr(),Fr=Vf(),wF=Yf(),J0=nr();Object.defineProperty(J,"escape",{enumerable:!0,get:function(){return J0.escape}});Object.defineProperty(J,"unescape",{enumerable:!0,get:function(){return J0.unescape}});var SF=Vf();Object.defineProperty(J,"Glob",{enumerable:!0,get:function(){return SF.Glob}});var EF=Yf();Object.defineProperty(J,"hasMagic",{enumerable:!0,get:function(){return EF.hasMagic}});var vF=Wf();Object.defineProperty(J,"Ignore",{enumerable:!0,get:function(){return vF.Ignore}});function Yn(t,e={}){return new Fr.Glob(t,e).streamSync()}function Kf(t,e={}){return new Fr.Glob(t,e).stream()}function Zf(t,e={}){return new Fr.Glob(t,e).walkSync()}async function X0(t,e={}){return new Fr.Glob(t,e).walk()}function Kn(t,e={}){return new Fr.Glob(t,e).iterateSync()}function Qf(t,e={}){return new Fr.Glob(t,e).iterate()}J.streamSync=Yn;J.stream=Object.assign(Kf,{sync:Yn});J.iterateSync=Kn;J.iterate=Object.assign(Qf,{sync:Kn});J.sync=Object.assign(Zf,{stream:Yn,iterate:Kn});J.glob=Object.assign(X0,{glob:X0,globSync:Zf,sync:J.sync,globStream:Kf,stream:J.stream,globStreamSync:Yn,streamSync:J.streamSync,globIterate:Qf,iterate:J.iterate,globIterateSync:Kn,iterateSync:J.iterateSync,Glob:Fr.Glob,hasMagic:wF.hasMagic,escape:Q0.escape,unescape:Q0.unescape});J.glob.glob=J.glob});var nS=b((XU,iS)=>{var rS=bl(),Ai=W("path"),Xf=Rb(),TF=Ww(),xF=Jw(),AF=o0(),RF=eS(),qr=iS.exports={},tS=/[\/\\]/g,OF=function(t,e){var r=[];return Xf(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=TF(r,s):r=xF(r,s)}),r};qr.exists=function(){var t=Ai.join.apply(Ai,arguments);return rS.existsSync(t)};qr.expand=function(...t){var e=AF(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=OF(r,function(n){return RF.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=Ai.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):rS.statSync(n)[e.filter]()}catch{return!1}})),i};qr.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return Ai.join(s||"",o)}},r);var i=[],n={};return qr.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=Ai.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=Ai.join(r.cwd,s)),a=a.replace(tS,"/"),s=s.replace(tS,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};qr.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=Xf(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return qr.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)?Xf(o):[o],s.result=qr.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var Ri=b((e8,aS)=>{var Jf=bl(),sS=W("path"),DF=js(),IF=Cp(),oS=Gl(),PF=dy(),JU=W("stream").Stream,LF=Cr().PassThrough,et=aS.exports={};et.file=nS();et.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)})};et.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};et.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},PF(...i)};et.isStream=function(t){return DF(t)};et.lazyReadStream=function(t){return new IF.Readable(function(){return Jf.createReadStream(t)})};et.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):et.isStream(t)?t.pipe(new LF):t};et.sanitizePath=function(t){return oS(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};et.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};et.unixifyPath=function(t){return oS(t,!1).replace(/^\w+:/,"")};et.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Jf.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=sS.join(t,a),Jf.stat(l,function(f,h){i.push({path:l,relative:sS.relative(e,l).replace(/\\/g,"/"),stats:h}),h&&h.isDirectory()?et.walkdir(l,e,function(g,y){if(g)return r(g);y.forEach(function(E){i.push(E)}),u()}):u()})})()})}});var cS=b((uS,fS)=>{var CF=W("util"),NF={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 lS(t,e){Error.captureStackTrace(this,this.constructor),this.message=NF[t]||t,this.code=t,this.data=e}CF.inherits(lS,Error);uS=fS.exports=lS});var yS=b((t8,gS)=>{var rc=W("fs"),dS=vd(),hS=xd(),ec=W("path"),Pt=Ri(),MF=W("util").inherits,xe=cS(),pS=Cr().Transform,tc=process.platform==="win32",le=function(t,e){if(!(this instanceof le))return new le(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=Pt.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),pS.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=hS.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=hS.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=[]};MF(le,pS);le.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};le.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 rc.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};le.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)};le.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};le.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))};le.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new xe("NOENDMETHOD"))};le.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};le.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};le.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};le.prototype._normalizeEntryData=function(t,e){t=Pt.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=Pt.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?tc?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(tc?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,tc&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=Pt.dateify(t.date),t};le.prototype._onModuleError=function(t){this.emit("error",t)};le.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()};le.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)};le.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}rc.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))};le.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};le.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};le.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=Pt.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=Pt.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=Pt.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=rc.readlinkSync(t.filepath),i=ec.dirname(t.filepath);t.data.type="symlink",t.data.linkname=ec.relative(i,ec.resolve(i,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new xe("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new xe("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new xe("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};le.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};le.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new xe("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new xe("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new xe("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=Pt.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(Pt.isStream(t))e.sourceType="stream";else return this.emit("error",new xe("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};le.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new xe("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new xe("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,h=Object.assign({},r);h.name=u.relative,h.prefix=e,h.stats=u.stat,h.callback=l.resume.bind(l);try{if(i){if(h=i(h),h===!1)f=!0;else if(typeof h!="object")throw new xe("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(g){this.emit("error",g);return}if(f){l.resume();return}this._append(u.absolute,h)}var l=dS(t,n);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};le.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new xe("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new xe("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};le.prototype.glob=function(t,e,r){this._pending++,e=Pt.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=dS(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};le.prototype.finalize=function(){if(this._state.aborted){var t=new xe("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new xe("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)})})};le.prototype.setFormat=function(t){return this._format?(this.emit("error",new xe("FORMATSET")),this):(this._format=t,this)};le.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new xe("ABORTED")),this):this._state.module?(this.emit("error",new xe("MODULESET")),this):(this._module=t,this._modulePipe(),this)};le.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new xe("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new xe("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new xe("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new xe("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};le.prototype.pointer=function(){return this._pointer};le.prototype.use=function(t){return this._streams.push(t),this};gS.exports=le});var Ea=b((r8,mS)=>{var Sa=mS.exports=function(){};Sa.prototype.getName=function(){};Sa.prototype.getSize=function(){};Sa.prototype.getLastModifiedDate=function(){};Sa.prototype.isDirectory=function(){}});var va=b((i8,_S)=>{var ht=_S.exports={};ht.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};ht.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)};ht.fromDosTime=function(t){return ht.dosToDate(t.readUInt32LE(0))};ht.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};ht.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};ht.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};ht.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};ht.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};ht.toDosTime=function(t){return ht.getLongBytes(ht.dateToDos(t))}});var ic=b((n8,TS)=>{var bS=va(),wS=8,SS=1,kF=4,FF=2,ES=64,vS=2048,je=TS.exports=function(){return this instanceof je?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new je};je.prototype.encode=function(){return bS.getShortBytes((this.descriptor?wS:0)|(this.utf8?vS:0)|(this.encryption?SS:0)|(this.strongEncryption?ES:0))};je.prototype.parse=function(t,e){var r=bS.getShortBytesValue(t,e),i=new je;return i.useDataDescriptor((r&wS)!==0),i.useUTF8ForNames((r&vS)!==0),i.useStrongEncryption((r&ES)!==0),i.useEncryption((r&SS)!==0),i.setSlidingDictionarySize((r&FF)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&kF)!==0?3:2),i};je.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};je.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};je.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};je.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};je.prototype.useDataDescriptor=function(t){this.descriptor=t};je.prototype.usesDataDescriptor=function(){return this.descriptor};je.prototype.useEncryption=function(t){this.encryption=t};je.prototype.usesEncryption=function(){return this.encryption};je.prototype.useStrongEncryption=function(t){this.strongEncryption=t};je.prototype.usesStrongEncryption=function(){return this.strongEncryption};je.prototype.useUTF8ForNames=function(t){this.utf8=t};je.prototype.usesUTF8ForNames=function(){return this.utf8}});var AS=b((s8,xS)=>{xS.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 nc=b((o8,RS)=>{RS.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 sc=b((a8,LS)=>{var qF=W("util").inherits,BF=Gl(),DS=Ea(),IS=ic(),OS=AS(),Ke=nc(),PS=va(),K=LS.exports=function(t){if(!(this instanceof K))return new K(t);DS.call(this),this.platform=Ke.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new IS,this.crc=0,this.time=-1,this.minver=Ke.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};qF(K,DS);K.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};K.prototype.getComment=function(){return this.comment!==null?this.comment:""};K.prototype.getCompressedSize=function(){return this.csize};K.prototype.getCrc=function(){return this.crc};K.prototype.getExternalAttributes=function(){return this.exattr};K.prototype.getExtra=function(){return this.extra!==null?this.extra:Ke.EMPTY};K.prototype.getGeneralPurposeBit=function(){return this.gpb};K.prototype.getInternalAttributes=function(){return this.inattr};K.prototype.getLastModifiedDate=function(){return this.getTime()};K.prototype.getLocalFileDataExtra=function(){return this.getExtra()};K.prototype.getMethod=function(){return this.method};K.prototype.getName=function(){return this.name};K.prototype.getPlatform=function(){return this.platform};K.prototype.getSize=function(){return this.size};K.prototype.getTime=function(){return this.time!==-1?PS.dosToDate(this.time):-1};K.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};K.prototype.getUnixMode=function(){return this.platform!==Ke.PLATFORM_UNIX?0:this.getExternalAttributes()>>Ke.SHORT_SHIFT&Ke.SHORT_MASK};K.prototype.getVersionNeededToExtract=function(){return this.minver};K.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};K.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};K.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};K.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};K.prototype.setExtra=function(t){this.extra=t};K.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof IS))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};K.prototype.setInternalAttributes=function(t){this.inattr=t};K.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};K.prototype.setName=function(t,e=!1){t=BF(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};K.prototype.setPlatform=function(t){this.platform=t};K.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};K.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=PS.dateToDos(t,e)};K.prototype.setUnixMode=function(t){t|=this.isDirectory()?Ke.S_IFDIR:Ke.S_IFREG;var e=0;e|=t<<Ke.SHORT_SHIFT|(this.isDirectory()?Ke.S_DOS_D:Ke.S_DOS_A),this.setExternalAttributes(e),this.mode=t&Ke.MODE_MASK,this.platform=Ke.PLATFORM_UNIX};K.prototype.setVersionNeededToExtract=function(t){this.minver=t};K.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};K.prototype.isUnixSymlink=function(){return(this.getUnixMode()&OS.FILE_TYPE_FLAG)===OS.LINK_FLAG};K.prototype.isZip64=function(){return this.csize>Ke.ZIP64_MAGIC||this.size>Ke.ZIP64_MAGIC}});var oc=b((u8,CS)=>{var l8=W("stream").Stream,jF=Cr().PassThrough,UF=js(),WF=CS.exports={};WF.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(UF(t)&&!t._readableState){var e=new jF;return t.pipe(e),e}return t}});var lc=b((f8,NS)=>{var GF=W("util").inherits,zF=js(),ac=Cr().Transform,$F=Ea(),HF=oc(),tt=NS.exports=function(t){if(!(this instanceof tt))return new tt(t);ac.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};GF(tt,ac);tt.prototype._appendBuffer=function(t,e,r){};tt.prototype._appendStream=function(t,e,r){};tt.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};tt.prototype._finish=function(t){};tt.prototype._normalizeEntry=function(t){};tt.prototype._transform=function(t,e,r){r(null,t)};tt.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof $F)){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=HF.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(zF(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};tt.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};tt.prototype.getBytesWritten=function(){return this.offset};tt.prototype.write=function(t,e){return t&&(this.offset+=t.length),ac.prototype.write.call(this,t,e)}});var Ta=b(uc=>{var MS;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof uc=="object"?t(uc):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(MS={}):t(MS={})})(function(t){t.version="1.2.2";function e(){for(var P=0,B=new Array(256),A=0;A!=256;++A)P=A,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,B[A]=P;return typeof Int32Array<"u"?new Int32Array(B):B}var r=e();function i(P){var B=0,A=0,M=0,k=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(M=0;M!=256;++M)k[M]=P[M];for(M=0;M!=256;++M)for(A=P[M],B=256+M;B<4096;B+=256)A=k[B]=A>>>8^P[A&255];var H=[];for(M=1;M!=16;++M)H[M-1]=typeof Int32Array<"u"?k.subarray(M*256,M*256+256):k.slice(M*256,M*256+256);return H}var n=i(r),s=n[0],o=n[1],a=n[2],l=n[3],u=n[4],f=n[5],h=n[6],g=n[7],y=n[8],E=n[9],m=n[10],v=n[11],S=n[12],R=n[13],L=n[14];function D(P,B){for(var A=B^-1,M=0,k=P.length;M<k;)A=A>>>8^r[(A^P.charCodeAt(M++))&255];return~A}function q(P,B){for(var A=B^-1,M=P.length-15,k=0;k<M;)A=L[P[k++]^A&255]^R[P[k++]^A>>8&255]^S[P[k++]^A>>16&255]^v[P[k++]^A>>>24]^m[P[k++]]^E[P[k++]]^y[P[k++]]^g[P[k++]]^h[P[k++]]^f[P[k++]]^u[P[k++]]^l[P[k++]]^a[P[k++]]^o[P[k++]]^s[P[k++]]^r[P[k++]];for(M+=15;k<M;)A=A>>>8^r[(A^P[k++])&255];return~A}function Z(P,B){for(var A=B^-1,M=0,k=P.length,H=0,ee=0;M<k;)H=P.charCodeAt(M++),H<128?A=A>>>8^r[(A^H)&255]:H<2048?(A=A>>>8^r[(A^(192|H>>6&31))&255],A=A>>>8^r[(A^(128|H&63))&255]):H>=55296&&H<57344?(H=(H&1023)+64,ee=P.charCodeAt(M++)&1023,A=A>>>8^r[(A^(240|H>>8&7))&255],A=A>>>8^r[(A^(128|H>>2&63))&255],A=A>>>8^r[(A^(128|ee>>6&15|(H&3)<<4))&255],A=A>>>8^r[(A^(128|ee&63))&255]):(A=A>>>8^r[(A^(224|H>>12&15))&255],A=A>>>8^r[(A^(128|H>>6&63))&255],A=A>>>8^r[(A^(128|H&63))&255]);return~A}t.table=r,t.bstr=D,t.buf=q,t.str=Z})});var FS=b((h8,kS)=>{"use strict";var{Transform:VF}=Cr(),YF=Ta(),fc=class extends VF{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=YF.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}};kS.exports=fc});var BS=b((d8,qS)=>{"use strict";var{DeflateRaw:KF}=W("zlib"),ZF=Ta(),cc=class extends KF{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=ZF.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}};qS.exports=cc});var hc=b((p8,jS)=>{"use strict";jS.exports={CRC32Stream:FS(),DeflateCRC32Stream:BS()}});var GS=b((_8,WS)=>{var QF=W("util").inherits,XF=Ta(),{CRC32Stream:JF}=hc(),{DeflateCRC32Stream:eq}=hc(),US=lc(),g8=sc(),y8=ic(),V=nc(),m8=oc(),$=va(),Me=WS.exports=function(t){if(!(this instanceof Me))return new Me(t);t=this.options=this._defaults(t),US.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}};QF(Me,US);Me.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()};Me.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(V.METHOD_STORED);var i=t.getMethod();if(i===V.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(XF.buf(e)>>>0)),this._writeLocalFileHeader(t),i===V.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(i===V.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+i+" not implemented"));return}};Me.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(V.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)};Me.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=V.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};Me.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()};Me.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(V.METHOD_DEFLATED),t.getMethod()===V.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(V.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};Me.prototype._smartStream=function(t,e){var r=t.getMethod()===V.METHOD_DEFLATED,i=r?new eq(this.options.zlib):new JF,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};Me.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=V.ZIP64_MAGIC_SHORT,e=V.ZIP64_MAGIC,r=V.ZIP64_MAGIC),this.write($.getLongBytes(V.SIG_EOCD)),this.write(V.SHORT_ZERO),this.write(V.SHORT_ZERO),this.write($.getShortBytes(t)),this.write($.getShortBytes(t)),this.write($.getLongBytes(e)),this.write($.getLongBytes(r));var i=this.getComment(),n=Buffer.byteLength(i);this.write($.getShortBytes(n)),this.write(i)};Me.prototype._writeCentralDirectoryZip64=function(){this.write($.getLongBytes(V.SIG_ZIP64_EOCD)),this.write($.getEightBytes(44)),this.write($.getShortBytes(V.MIN_VERSION_ZIP64)),this.write($.getShortBytes(V.MIN_VERSION_ZIP64)),this.write(V.LONG_ZERO),this.write(V.LONG_ZERO),this.write($.getEightBytes(this._entries.length)),this.write($.getEightBytes(this._entries.length)),this.write($.getEightBytes(this._archive.centralLength)),this.write($.getEightBytes(this._archive.centralOffset)),this.write($.getLongBytes(V.SIG_ZIP64_EOCD_LOC)),this.write(V.LONG_ZERO),this.write($.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write($.getLongBytes(1))};Me.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>V.ZIP64_MAGIC){n=V.ZIP64_MAGIC,s=V.ZIP64_MAGIC,i=V.ZIP64_MAGIC,t.setVersionNeededToExtract(V.MIN_VERSION_ZIP64);var o=Buffer.concat([$.getShortBytes(V.ZIP64_EXTRA_ID),$.getShortBytes(24),$.getEightBytes(t.getSize()),$.getEightBytes(t.getCompressedSize()),$.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write($.getLongBytes(V.SIG_CFH)),this.write($.getShortBytes(t.getPlatform()<<8|V.VERSION_MADEBY)),this.write($.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write($.getShortBytes(r)),this.write($.getLongBytes(t.getTimeDos())),this.write($.getLongBytes(t.getCrc())),this.write($.getLongBytes(s)),this.write($.getLongBytes(n));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write($.getShortBytes(a.length)),this.write($.getShortBytes(u.length)),this.write($.getShortBytes(l.length)),this.write(V.SHORT_ZERO),this.write($.getShortBytes(t.getInternalAttributes())),this.write($.getLongBytes(t.getExternalAttributes())),this.write($.getLongBytes(i)),this.write(a),this.write(u),this.write(l)};Me.prototype._writeDataDescriptor=function(t){this.write($.getLongBytes(V.SIG_DD)),this.write($.getLongBytes(t.getCrc())),t.isZip64()?(this.write($.getEightBytes(t.getCompressedSize())),this.write($.getEightBytes(t.getSize()))):(this.write($.getLongBytes(t.getCompressedSize())),this.write($.getLongBytes(t.getSize())))};Me.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t.getName(),n=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(V.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(i=Buffer.from(i)),t._offsets.file=this.offset,this.write($.getLongBytes(V.SIG_LFH)),this.write($.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write($.getShortBytes(r)),this.write($.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(V.LONG_ZERO),this.write(V.LONG_ZERO),this.write(V.LONG_ZERO)):(this.write($.getLongBytes(t.getCrc())),this.write($.getLongBytes(t.getCompressedSize())),this.write($.getLongBytes(t.getSize()))),this.write($.getShortBytes(i.length)),this.write($.getShortBytes(n.length)),this.write(i),this.write(n),t._offsets.contents=this.offset};Me.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};Me.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>V.ZIP64_MAGIC_SHORT||this._archive.centralLength>V.ZIP64_MAGIC||this._archive.centralOffset>V.ZIP64_MAGIC};Me.prototype.setComment=function(t){this._archive.comment=t}});var dc=b((b8,zS)=>{zS.exports={ArchiveEntry:Ea(),ZipArchiveEntry:sc(),ArchiveOutputStream:lc(),ZipArchiveOutputStream:GS()}});var HS=b((w8,$S)=>{var tq=W("util").inherits,gc=dc().ZipArchiveOutputStream,rq=dc().ZipArchiveEntry,pc=Ri(),Oi=$S.exports=function(t){if(!(this instanceof Oi))return new Oi(t);t=this.options=t||{},t.zlib=t.zlib||{},gc.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)};tq(Oi,gc);Oi.prototype._normalizeFileData=function(t){t=pc.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=pc.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=pc.dateify(t.date),t};Oi.prototype.entry=function(t,e,r){if(typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){r(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var i=new rq(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)),gc.prototype.entry.call(this,i,t,r)};Oi.prototype.finalize=function(){this.finish()}});var YS=b((S8,VS)=>{var iq=HS(),nq=Ri(),lr=function(t){if(!(this instanceof lr))return new lr(t);t=this.options=nq.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new iq(t)};lr.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};lr.prototype.finalize=function(){this.engine.finalize()};lr.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};lr.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};lr.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};VS.exports=lr});var ZS=b((E8,KS)=>{KS.exports=W("events")});var XS=b((T8,QS)=>{QS.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 yc=b((A8,eE)=>{var JS=XS();eE.exports=class{constructor(e){this.hwm=e||16,this.head=new JS(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 JS(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 Di=b((R8,tE)=>{function sq(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function oq(t){return Buffer.isEncoding(t)}function aq(t,e,r){return Buffer.alloc(t,e,r)}function lq(t){return Buffer.allocUnsafe(t)}function uq(t){return Buffer.allocUnsafeSlow(t)}function fq(t,e){return Buffer.byteLength(t,e)}function cq(t,e){return Buffer.compare(t,e)}function hq(t,e){return Buffer.concat(t,e)}function dq(t,e,r,i,n){return pe(t).copy(e,r,i,n)}function pq(t,e){return pe(t).equals(e)}function gq(t,e,r,i,n){return pe(t).fill(e,r,i,n)}function yq(t,e,r){return Buffer.from(t,e,r)}function mq(t,e,r,i){return pe(t).includes(e,r,i)}function _q(t,e,r,i){return pe(t).indexOf(e,r,i)}function bq(t,e,r,i){return pe(t).lastIndexOf(e,r,i)}function wq(t){return pe(t).swap16()}function Sq(t){return pe(t).swap32()}function Eq(t){return pe(t).swap64()}function pe(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function vq(t,e,r,i){return pe(t).toString(e,r,i)}function Tq(t,e,r,i,n){return pe(t).write(e,r,i,n)}function xq(t,e){return pe(t).readDoubleBE(e)}function Aq(t,e){return pe(t).readDoubleLE(e)}function Rq(t,e){return pe(t).readFloatBE(e)}function Oq(t,e){return pe(t).readFloatLE(e)}function Dq(t,e){return pe(t).readInt32BE(e)}function Iq(t,e){return pe(t).readInt32LE(e)}function Pq(t,e){return pe(t).readUInt32BE(e)}function Lq(t,e){return pe(t).readUInt32LE(e)}function Cq(t,e,r){return pe(t).writeDoubleBE(e,r)}function Nq(t,e,r){return pe(t).writeDoubleLE(e,r)}function Mq(t,e,r){return pe(t).writeFloatBE(e,r)}function kq(t,e,r){return pe(t).writeFloatLE(e,r)}function Fq(t,e,r){return pe(t).writeInt32BE(e,r)}function qq(t,e,r){return pe(t).writeInt32LE(e,r)}function Bq(t,e,r){return pe(t).writeUInt32BE(e,r)}function jq(t,e,r){return pe(t).writeUInt32LE(e,r)}tE.exports={isBuffer:sq,isEncoding:oq,alloc:aq,allocUnsafe:lq,allocUnsafeSlow:uq,byteLength:fq,compare:cq,concat:hq,copy:dq,equals:pq,fill:gq,from:yq,includes:mq,indexOf:_q,lastIndexOf:bq,swap16:wq,swap32:Sq,swap64:Eq,toBuffer:pe,toString:vq,write:Tq,readDoubleBE:xq,readDoubleLE:Aq,readFloatBE:Rq,readFloatLE:Oq,readInt32BE:Dq,readInt32LE:Iq,readUInt32BE:Pq,readUInt32LE:Lq,writeDoubleBE:Cq,writeDoubleLE:Nq,writeFloatBE:Mq,writeFloatLE:kq,writeInt32BE:Fq,writeInt32LE:qq,writeUInt32BE:Bq,writeUInt32LE:jq}});var iE=b((D8,rE)=>{var Uq=Di();rE.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return Uq.toString(e,this.encoding)}flush(){return""}}});var aE=b((P8,oE)=>{var nE=Di();oE.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&sE(e,0)===0)return this.bytesSeen=Wq(e),nE.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=sE(e,i),s=e.byteLength-n;s>i&&(r+=nE.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 sE(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 Wq(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 uE=b((C8,lE)=>{var Gq=iE(),zq=aE();lE.exports=class{constructor(e="utf8"){switch(this.encoding=$q(e),this.encoding){case"utf8":this.decoder=new zq;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new Gq(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return typeof e=="string"?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let r="";return e&&(r=this.push(e)),r+=this.decoder.flush(),r}};function $q(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 cE=b((N8,fE)=>{fE.exports=class Lt extends Error{constructor(e,r,i=Lt){super(e),this.code=r,Error.captureStackTrace&&Error.captureStackTrace(this,i)}static isStreamDestroyed(e){return e&&e.code==="STREAM_DESTROYED"}static isPrematureClose(e){return e&&e.code==="PREMATURE_CLOSE"}static isAborted(e){return e&&e.code==="ABORTED"}static isBadArgument(e){return e&&e.code==="BAD_ARGUMENT"}get name(){return"StreamError"}static STREAM_DESTROYED(){return new Lt("Stream was destroyed","STREAM_DESTROYED",Lt.STREAM_DESTROYED)}static PREMATURE_CLOSE(e="Premature close"){return new Lt(e,"PREMATURE_CLOSE",Lt.PREMATURE_CLOSE)}static ABORTED(){return new Lt("Stream aborted","ABORTED",Lt.ABORTED)}static BAD_ARGUMENT(e="Bad argument"){return new Lt(e,"BAD_ARGUMENT",Lt.BAD_ARGUMENT)}}});var Lc=b((M8,LE)=>{var{EventEmitter:Hq}=ZS(),yE=yc(),Vq=uE(),dt=cE(),mc=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,Te=(1<<29)-1,Ct=1,Tc=2,$t=4,Zn=8,mE=Te^Ct,Yq=Te^Tc,ts=16,Ii=32,Ci=64,fr=128,rs=256,xc=512,cr=1024,_c=2048,Ac=4096,Rc=8192,wt=16384,ur=32768,Pa=65536,Br=131072,_E=rs|xc,Kq=ts|Pa,Zq=Ci|ts,Qq=Ac|fr,Oc=rs|Br,Xq=Te^ts,Jq=Te^Ci,eB=Te^(Ci|Pa),hE=Te^Pa,tB=Te^rs,rB=Te^(fr|Rc),iB=Te^cr,dE=Te^_E,bE=Te^ur,nB=Te^Ii,wE=Te^Br,sB=Te^Oc,Ht=1<<18,Li=2<<18,is=4<<18,jr=8<<18,ns=16<<18,dr=32<<18,bc=64<<18,Pi=128<<18,Dc=256<<18,hr=512<<18,La=1024<<18,oB=Te^(Ht|Dc),SE=Te^is,aB=Te^(Ht|hr),lB=Te^ns,uB=Te^jr,EE=Te^Pi,fB=Te^Li,vE=Te^La,Qn=ts|Ht,TE=Te^Qn,Ic=wt|dr,Nt=$t|Zn|Tc,rt=Nt|Ct,xE=Nt|Ic,cB=SE&Jq,Ca=Pi|ur,hB=Ca&TE,AE=rt|hB,dB=rt|cr|wt,pE=rt|wt|fr,pB=rt|cr|fr,gB=rt|Ac|fr|Rc,yB=rt|ts|cr|wt|Pa|Br,mB=Nt|cr|wt,_B=Ii|rt|ur|Ci,bB=ur|Ct,wB=rt|hr|dr,SB=jr|ns,RE=jr|Ht,EB=jr|ns|rt|Ht,gE=rt|Ht|jr|La,vB=is|Ht,TB=Ht|Dc,xB=rt|hr|RE|dr,AB=ns|Nt|hr|dr,RB=Li|rt|Pi|is,OB=hr|dr|Nt,xa=Symbol.asyncIterator||Symbol("asyncIterator"),Aa=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new yE,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||PE,this.map=n||i,this.afterWrite=PB.bind(this),this.afterUpdateNextTick=NB.bind(this)}get ending(){return(this.stream._duplexState&hr)!==0}get ended(){return(this.stream._duplexState&dr)!==0}push(e){return(this.stream._duplexState&OB)!==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|=jr,!0):(this.stream._duplexState|=SB,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=uB),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|hr)&SE}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&gE)===RE;)i.push(n._writableState.shift());if((n._duplexState&rt)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=Li;do{for(;(e._duplexState&gE)===jr;){let r=this.shift();e._duplexState|=TB,e._write(r,this.afterWrite)}(e._duplexState&vB)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=fB}updateNonPrimary(){let e=this.stream;if((e._duplexState&xB)===hr){e._duplexState=e._duplexState|Ht,e._final(IB.bind(this));return}if((e._duplexState&Nt)===$t){(e._duplexState&Ca)===0&&(e._duplexState|=Qn,e._destroy(OE.bind(this)));return}(e._duplexState&AE)===Ct&&(e._duplexState=(e._duplexState|Qn)&mE,e._open(DE.bind(this)))}continueUpdate(){return(this.stream._duplexState&Pi)===0?!1:(this.stream._duplexState&=EE,!0)}updateCallback(){(this.stream._duplexState&RB)===is?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&Pi)===0&&(this.stream._duplexState|=Pi,(this.stream._duplexState&Li)===0&&mc(this.afterUpdateNextTick))}},wc=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new yE,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||PE,this.map=n||i,this.pipeTo=null,this.afterRead=LB.bind(this),this.afterUpdateNextTick=CB.bind(this)}get ending(){return(this.stream._duplexState&cr)!==0}get ended(){return(this.stream._duplexState&wt)!==0}pipe(e,r){if(this.pipeTo!==null)throw dt.BAD_ARGUMENT("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=xc,this.pipeTo=e,this.pipeline=new Ec(this.stream,e,r),r&&this.stream.on("error",vc),es(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",vc),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",DB.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|cr)&eB,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=hE,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|fr)&hE,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=rB),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&pE)===fr){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=dE),(e._duplexState&_c)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=Br,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&pE)===fr&&(e._duplexState&_E)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=dE),(e._duplexState&_c)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=Ii;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&yB)===Br;)e._duplexState|=Kq,e._read(this.afterRead),this.drain();(e._duplexState&gB)===Qq&&(e._duplexState|=Rc,e.emit("readable")),(e._duplexState&Zq)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=nB}updateNonPrimary(){let e=this.stream;if((e._duplexState&pB)===cr&&(e._duplexState=(e._duplexState|wt)&iB,e.emit("end"),(e._duplexState&xE)===Ic&&(e._duplexState|=$t),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&Nt)===$t){(e._duplexState&Ca)===0&&(e._duplexState|=Qn,e._destroy(OE.bind(this)));return}(e._duplexState&AE)===Ct&&(e._duplexState=(e._duplexState|Qn)&mE,e._open(DE.bind(this)))}continueUpdate(){return(this.stream._duplexState&ur)===0?!1:(this.stream._duplexState&=bE,!0)}updateCallback(){(this.stream._duplexState&_B)===Ci?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&bB)===0&&(this.stream._duplexState|=ur,(this.stream._duplexState&Ii)===0&&mc(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&ur)===0&&(this.stream._duplexState|=ur,(this.stream._duplexState&Ii)===0&&mc(this.afterUpdateNextTick))}},Sc=class{constructor(e){this.data=null,this.afterTransform=kB.bind(e),this.afterFinal=null}},Ec=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&wt)===0||!this.pipeToFinished)&&this.from.destroy(this.error||dt.PREMATURE_CLOSE("Writable stream closed"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&wt)===0&&this.to.destroy(this.error||dt.PREMATURE_CLOSE("Readable stream closed"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function DB(){this.stream._duplexState|=xc,this.updateCallback()}function IB(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&Nt)===0&&(e._duplexState|=dr,e.emit("finish")),(e._duplexState&xE)===Ic&&(e._duplexState|=$t),e._duplexState&=aB,(e._duplexState&Li)===0?this.update():this.updateNextTick()}function OE(t){let e=this.stream;!t&&!dt.isStreamDestroyed(this.error)&&(t=this.error),t&&e.emit("error",t),e._duplexState|=Zn,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 PB(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=oB,this.drains!==null&&MB(this.drains),(e._duplexState&EB)===ns&&(e._duplexState&=lB,(e._duplexState&bc)===bc&&e.emit("drain")),this.updateCallback()}function LB(t){t&&this.stream.destroy(t),this.stream._duplexState&=Xq,this.readAhead===!1&&(this.stream._duplexState&rs)===0&&(this.stream._duplexState&=wE),this.updateCallback()}function CB(){(this.stream._duplexState&Ii)===0&&(this.stream._duplexState&=bE,this.update())}function NB(){(this.stream._duplexState&Li)===0&&(this.stream._duplexState&=EE,this.update())}function MB(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function DE(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&$t)===0&&((e._duplexState&dB)===0&&(e._duplexState|=Ci),(e._duplexState&wB)===0&&(e._duplexState|=is),e.emit("open")),e._duplexState&=TE,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function kB(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function FB(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=_c|Oc,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=Ac,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=bc,this._writableState.updateNextTick())}var Xn=class extends Hq{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",KB.bind(this))),this.on("newListener",FB)}_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&Zn)!==0}get destroying(){return(this._duplexState&Nt)!==0}destroy(e){(this._duplexState&Nt)===0&&(e||(e=dt.STREAM_DESTROYED()),this._duplexState=(this._duplexState|$t)&cB,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=Tc,this._predestroy(),this._duplexState&=Yq,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},Ra=class t extends Xn{constructor(e){super(e),this._duplexState|=Ct|dr|Br,this._readableState=new wc(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=wE),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}static deferred(e,r){let i=new Ia(r);return e().then(n=>{if(n===null)return i.end();i.destroying||Pc(n,i,vc)}).catch(n=>i.destroy(n)),i}setEncoding(e){let r=new Vq(e),i=this._readableState.map||jB;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|=Oc,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?sB:tB,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(HB(e))return e;if(e[xa])return this._fromAsyncIterator(e[xa](),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&mB)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&rs)===0}[xa](){let e=this,r=null,i=null,n=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",o),{[xa](){return this},next(){return new Promise(function(u,f){i=u,n=f;let h=e.read();h!==null?a(h):(e._duplexState&Zn)!==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&wt)===0?n(dt.STREAM_DESTROYED()):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,h)=>{if(e._duplexState&Zn)return f({value:void 0,done:!0});e.once("close",function(){u?h(u):f({value:void 0,done:!0})})})}}},Oa=class extends Xn{constructor(e){super(e),this._duplexState|=Ct|wt,this._writableState=new Aa(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|=La}uncork(){this._duplexState&=vE,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&AB)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(ZB(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&Dc?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}},Jn=class extends Ra{constructor(e){super(e),this._duplexState=Ct|this._duplexState&Br,this._writableState=new Aa(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=La}uncork(){this._duplexState&=vE,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}},Da=class extends Jn{constructor(e){super(e),this._transformState=new Sc(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(qB.bind(this))}},Ia=class extends Da{};function qB(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function BB(...t){return new Promise((e,r)=>Pc(...t,i=>{if(i)return r(i);e()}))}function Pc(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 dt.BAD_ARGUMENT("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],es(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=es(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",h=>{o===null&&(o=h)}),s.on("finish",()=>{u=!0,f||i(o)}),f&&s.on("close",()=>i(o||(u?null:dt.PREMATURE_CLOSE())))}return s;function a(u,f,h,g){u.on("error",g),u.on("close",y);function y(){if(f&&u._readableState&&!u._readableState.ended||h&&u._writableState&&!u._writableState.ended)return g(dt.PREMATURE_CLOSE())}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function jB(t){return t}function IE(t){return!!t._readableState||!!t._writableState}function es(t){return typeof t._duplexState=="number"&&IE(t)}function UB(t){return!!t._readableState&&t._readableState.ending}function WB(t){return!!t._readableState&&t._readableState.ended}function GB(t){return!!t._writableState&&t._writableState.ending}function zB(t){return!!t._writableState&&t._writableState.ended}function $B(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&dt.isStreamDestroyed(r)?null:r}function HB(t){return es(t)&&t.readable}function VB(t){return(t._duplexState&Ct)!==Ct||(t._duplexState&$t)===$t||(t._duplexState&Ca)!==0}function YB(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function PE(t){return YB(t)?t.byteLength:1024}function vc(){}function KB(){this.destroy(dt.ABORTED())}function ZB(t){return t._writev!==Oa.prototype._writev&&t._writev!==Jn.prototype._writev}LE.exports={pipeline:Pc,pipelinePromise:BB,isStream:IE,isStreamx:es,isEnding:UB,isEnded:WB,isFinishing:GB,isFinished:zB,isDisturbed:VB,getStreamError:$B,Stream:Xn,Writable:Oa,Readable:Ra,Duplex:Jn,Transform:Da,PassThrough:Ia}});var Mc=b(Mi=>{var ne=Di(),QB="0000000000000000000",XB="7777777777777777777",Na=48,CE=ne.from([117,115,116,97,114,0]),JB=ne.from([Na,Na]),ej=ne.from([117,115,116,97,114,32]),tj=ne.from([32,0]),rj=4095,ss=257,Nc=263;Mi.decodeLongPath=function(e,r){return Ni(e,0,e.length,r)};Mi.encodePax=function(e){let r="";e.name&&(r+=Cc(" path="+e.name+`
14
14
  `)),e.linkname&&(r+=Cc(" linkpath="+e.linkname+`
15
15
  `));let i=e.pax;if(i)for(let n in i)r+=Cc(" "+n+"="+i[n]+`
16
- `);return ne.from(r)};Ni.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(ne.toString(e.subarray(0,i)),10);if(!n)return r;let s=ne.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};Ni.encode=function(e){let r=ne.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),ne.byteLength(i)!==i.length)return null;for(;ne.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 ne.byteLength(i)>100||ne.byteLength(n)>155||e.linkname&&ne.byteLength(e.linkname)>100?null:(ne.write(r,i),ne.write(r,dr(e.mode&aj,6),100),ne.write(r,dr(e.uid,6),108),ne.write(r,dr(e.gid,6),116),pj(e.size,r,124),ne.write(r,dr(e.mtime.getTime()/1e3|0,11),136),r[156]=Na+hj(e.type),e.linkname&&ne.write(r,e.linkname,157),ne.copy(NE,r,ss),ne.copy(nj,r,Nc),e.uname&&ne.write(r,e.uname,265),e.gname&&ne.write(r,e.gname,297),ne.write(r,dr(e.devmajor||0,6),329),ne.write(r,dr(e.devminor||0,6),337),n&&ne.write(r,n,345),ne.write(r,dr(kE(r),6),148),r)};Ni.decode=function(e,r,i){let n=e[156]===0?0:e[156]-Na,s=Ci(e,0,100,r),o=hr(e,100,8),a=hr(e,108,8),l=hr(e,116,8),u=hr(e,124,12),f=hr(e,136,12),h=cj(n),g=e[157]===0?null:Ci(e,157,100,r),y=Ci(e,265,32),E=Ci(e,297,32),m=hr(e,329,8),v=hr(e,337,8),S=kE(e);if(S===256)return null;if(S!==hr(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(lj(e))e[345]&&(s=Ci(e,345,155,r)+"/"+s);else if(!uj(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,byteOffset:0,mtime:new Date(1e3*f),type:h,linkname:g,uname:y,gname:E,devmajor:m,devminor:v,pax:null}};function lj(t){return ne.equals(NE,t.subarray(ss,ss+6))}function uj(t){return ne.equals(sj,t.subarray(ss,ss+6))&&ne.equals(oj,t.subarray(Nc,Nc+2))}function fj(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function cj(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 hj(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 ME(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function kE(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 dr(t,e){return t=t.toString(8),t.length>e?ij.slice(0,e)+" ":rj.slice(0,e-t.length)+t+" "}function dj(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function pj(t,e,r){t.toString(8).length>11?dj(t,e,r):ne.write(e,dr(t,11),r)}function gj(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 hr(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return gj(t);{for(;e<t.length&&t[e]===32;)e++;let i=fj(ME(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(ne.toString(t.subarray(e,i)),8)}}function Ci(t,e,r,i){return ne.toString(t.subarray(e,ME(t,0,e,e+r)),i)}function Cc(t){let e=ne.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var UE=b((B8,jE)=>{var{Writable:yj,Readable:mj,getStreamError:FE}=Lc(),_j=yc(),qE=Oi(),Mi=Mc(),bj=qE.alloc(0),wj=4*1024*1024,Fc=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new _j,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 bj;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 qE.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)}},qc=class extends mj{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(FE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=BE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},Bc=class extends yj{constructor(e){super(e),e||(e={}),this._buffer=new Fc,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=kc,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=Mi.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.byteOffset=this._buffer.shifted,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,this._missing>wj?(this._continueWrite(new Error("Header exceeds max size")),!1):!0}return this._locked=!0,this._applyLongHeaders(),this._header.size>=0?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):(this._continueWrite(new Error("Invalid header")),!1)}_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=Mi.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=Mi.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=Mi.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?Mi.decodePax(e):Object.assign({},this._paxGlobal,Mi.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=BE(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 qc(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=kc,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(FE(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",g=>{e=g}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return h(null)},throw(g){return h(g)}};function a(g){if(!s)return;let y=s;s=null,y(g)}function l(g,y){if(e)return y(e);if(n){g({value:n,done:!1}),n=null;return}r=g,i=y,a(null),o._finished&&r&&(r({value:void 0,done:!0}),r=i=null)}function u(g,y,E){s=E,y.on("error",kc),r?(r({value:y,done:!1}),r=i=null):n=y}function f(){a(e),r&&(e?i(e):r({value:void 0,done:!0}),r=i=null)}function h(g){return o.destroy(g),a(g),new Promise((y,E)=>{if(o.destroyed)return y({value:void 0,done:!0});o.once("close",function(){g?E(g):y({value:void 0,done:!0})})})}}};jE.exports=function(e){return new Bc(e)};function kc(){}function BE(t){return t&=511,t&&512-t}});var GE=b((j8,jc)=>{var WE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{jc.exports=W("fs").constants||WE}catch{jc.exports=WE}});var YE=b((U8,VE)=>{var{Readable:Sj,Writable:Ej,getStreamError:zE}=Lc(),Br=Oi(),ki=GE(),Ma=Mc(),vj=493,Tj=420,$E=Br.alloc(1024),Wc=class extends Ej{constructor(e,r,i){super({mapWritable:xj,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)),HE(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 zE(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()}},Gc=class extends Sj{constructor(e){super(e),this._drain=Uc,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=Uc),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=Aj(e.mode)),e.mode||(e.mode=e.type==="directory"?vj:Tj),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 Wc(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($E),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=Ma.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=Ma.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(Ma.encode(i)),this.push(r),HE(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(Ma.encode(i))}_doDrain(){let e=this._drain;this._drain=Uc,e()}_predestroy(){let e=zE(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()}};VE.exports=function(e){return new Gc(e)};function Aj(t){switch(t&ki.S_IFMT){case ki.S_IFBLK:return"block-device";case ki.S_IFCHR:return"character-device";case ki.S_IFDIR:return"directory";case ki.S_IFIFO:return"fifo";case ki.S_IFLNK:return"symlink"}return"file"}function Uc(){}function HE(t,e){e&=511,e&&t.push($E.subarray(0,512-e))}function xj(t){return Br.isBuffer(t)?t:Br.from(t)}});var KE=b(zc=>{zc.extract=UE();zc.pack=YE()});var XE=b((G8,QE)=>{var Rj=W("zlib"),Oj=KE(),ZE=xi(),Ht=function(t){if(!(this instanceof Ht))return new Ht(t);t=this.options=ZE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=Oj.pack(t),this.compressor=!1,t.gzip&&(this.compressor=Rj.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Ht.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Ht.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"&&ZE.collectStream(t,n)};Ht.prototype.finalize=function(){this.engine.finalize()};Ht.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Ht.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)};Ht.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};QE.exports=Ht});var tv=b((z8,ev)=>{"use strict";function Dj(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ij=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 JE(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 Pj(t){let e=JE(4);return e.writeInt32BE(t,0),e}function $c(t,e){t=JE(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=Ij[(r^t[i])&255]^r>>>8;return r^-1}function Hc(){return Pj($c.apply(null,arguments))}Hc.signed=function(){return $c.apply(null,arguments)};Hc.unsigned=function(){return $c.apply(null,arguments)>>>0};var Lj=Hc,Cj=Dj(Lj);ev.exports=Cj});var sv=b(($8,nv)=>{var Nj=W("util").inherits,rv=Pr().Transform,Mj=tv(),iv=xi(),pr=function(t){if(!(this instanceof pr))return new pr(t);t=this.options=iv.defaults(t,{}),rv.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};Nj(pr,rv);pr.prototype._transform=function(t,e,r){r(null,t)};pr.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};pr.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=Mj.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&iv.collectStream(t,n)};pr.prototype.finalize=function(){this._writeStringified(),this.end()};nv.exports=pr});var av=b((H8,ov)=>{var kj=mS(),os={},gr=function(t,e){return gr.create(t,e)};gr.create=function(t,e){if(os[t]){var r=new kj(t,e);return r.setFormat(t),r.setModule(new os[t](e)),r}else throw new Error("create("+t+"): format not registered")};gr.registerFormat=function(t,e){if(os[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");os[t]=e};gr.isRegisteredFormat=function(t){return!!os[t]};gr.registerFormat("zip",KS());gr.registerFormat("tar",XE());gr.registerFormat("json",sv());ov.exports=gr});import*as Bh from"node:fs/promises";import{join as f1}from"node:path";var Hi="rayfin",Ya=".devpack",Ka="package.json",Za="package.zip",u1=N.strictObject({apiVersion:N.number().int().positive()});var c1="rayfin.yml";function Qa(t){return f1(t,Hi,c1)}async function $j(t){try{return(await Bh.stat(Qa(t))).isFile()}catch(e){return h1(e)}}function h1(t){let e=t?.code;if(e==="ENOENT"||e==="ENOTDIR")return!1;throw t}var d1="0.0",p1=N.object({type:N.literal("client"),path:N.string()}),g1=N.object({type:N.literal("function"),path:N.string()}),y1=N.discriminatedUnion("type",[p1,g1]),m1=N.object({path:N.string(),archive:N.literal("zip"),compression:N.literal("deflate")}),_1=N.object({path:N.string(),kind:N.string(),sizeBytes:N.number().int().nonnegative().optional(),sha256:N.string().optional()}),b1=N.object({path:N.string(),apiVersion:N.number().int().positive(),profile:N.string(),parts:N.array(_1),skippedServices:N.array(N.string())}),w1=N.object({kind:N.literal("rayfin")}),Xa=N.object({default:w1}),Yj=N.object({cliVersion:N.string(),manifestVersion:N.literal(d1),clientDirectory:N.string(),hasCustomMiddleTier:N.boolean(),functionsPackage:m1.optional(),iconPath:N.string().optional(),dataSchemaPath:N.string().optional(),dataEnabled:N.boolean().optional(),rayfinPackage:b1.optional(),backends:Xa.optional(),routes:N.record(N.string(),y1)}).refine(({rayfinPackage:t,backends:e})=>t!==void 0==(e!==void 0),{message:"`rayfinPackage` and `backends` must both be present or both be absent.",path:["backends"]});import{spawn as S1}from"node:child_process";import{createWriteStream as E1}from"node:fs";import v1 from"node:os";import{finished as T1}from"node:stream/promises";import{setTimeout as A1}from"node:timers/promises";import{pathToFileURL as jh}from"node:url";var x1=8*1024,R1=8*1024*1024,Uh=1e3;function Wh(){return{chunks:[],bytes:0,dropped:0}}function Gh(t,e,r){for(t.chunks.push(e),t.bytes+=e.length;t.bytes>r;){let i=t.bytes-r,n=t.chunks[0];n.length<=i?(t.chunks.shift(),t.bytes-=n.length,t.dropped+=n.length):(t.chunks[0]=n.subarray(i),t.bytes-=i,t.dropped+=i)}}function zh(t){let e=Buffer.concat(t.chunks).toString("utf8").trimEnd();return t.dropped===0?e:`[truncated earlier ${t.dropped} bytes; showing last ${t.bytes} bytes]
17
- ${e}`}function O1(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ja(t,e){let r=t.replace(/(\b[a-z][a-z0-9+.-]*:\/\/)[^/\s@]+@/gi,"$1[REDACTED]@").replace(/\b(?:authorization:\s*bearer|bearer)\s+[a-z0-9._~+/=-]+/gi,"Bearer [REDACTED]").replace(/([?&](?:sig|token|access_token|code)=)[^&\s]+/gi,"$1[REDACTED]").replace(/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,"[REDACTED_EMAIL]");for(let[i,n]of[[e,"<project>"],[v1.homedir(),"<home>"]])if(i){let s=new Set([i,i.replace(/\\/g,"/"),i.replace(/\//g,"\\"),jh(i).href,decodeURIComponent(jh(i).href)]);for(let o of[...s].sort((a,l)=>l.length-a.length))r=r.replace(new RegExp(O1(o),"gi"),n)}return r}function D1(t){return t?["ignore","pipe","pipe"]:"inherit"}async function I1(t){try{await T1(t);return}catch(e){return e}}async function P1(t){try{return await A1(Uh,void 0,{signal:t,ref:!1}),new Error(`Command log flush exceeded ${Uh}ms.`)}catch(e){return e.name==="AbortError"?void 0:e}}function i3(t,e,r={}){return new Promise((i,n)=>{let{quiet:s=!1,captureTailCapBytes:o=x1,logFilePath:a,onLogError:l,logBufferBytes:u=R1,logFileMaxBytes:f=Number.POSITIVE_INFINITY}=r,h=S1(t,{cwd:e,stdio:D1(s),shell:!0}),g=a?E1(a,{flags:"a",encoding:"utf8",highWaterMark:u}):void 0,y=!1,E=L=>{y||(y=!0,l?.(L),g?.destroy())},m=0,v=L=>{if(!g||y)return;let D=Buffer.isBuffer(L)?L:Buffer.from(L),q=f-m;if(q<=0)return;let Z=D.length<=q?D:D.subarray(0,q);m+=Z.length,g.write(Z)};g&&(g.on("error",L=>{E(L)}),v(`
16
+ `);return ne.from(r)};Mi.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(ne.toString(e.subarray(0,i)),10);if(!n)return r;let s=ne.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};Mi.encode=function(e){let r=ne.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),ne.byteLength(i)!==i.length)return null;for(;ne.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 ne.byteLength(i)>100||ne.byteLength(n)>155||e.linkname&&ne.byteLength(e.linkname)>100?null:(ne.write(r,i),ne.write(r,gr(e.mode&rj,6),100),ne.write(r,gr(e.uid,6),108),ne.write(r,gr(e.gid,6),116),uj(e.size,r,124),ne.write(r,gr(e.mtime.getTime()/1e3|0,11),136),r[156]=Na+aj(e.type),e.linkname&&ne.write(r,e.linkname,157),ne.copy(CE,r,ss),ne.copy(JB,r,Nc),e.uname&&ne.write(r,e.uname,265),e.gname&&ne.write(r,e.gname,297),ne.write(r,gr(e.devmajor||0,6),329),ne.write(r,gr(e.devminor||0,6),337),n&&ne.write(r,n,345),ne.write(r,gr(ME(r),6),148),r)};Mi.decode=function(e,r,i){let n=e[156]===0?0:e[156]-Na,s=Ni(e,0,100,r),o=pr(e,100,8),a=pr(e,108,8),l=pr(e,116,8),u=pr(e,124,12),f=pr(e,136,12),h=oj(n),g=e[157]===0?null:Ni(e,157,100,r),y=Ni(e,265,32),E=Ni(e,297,32),m=pr(e,329,8),v=pr(e,337,8),S=ME(e);if(S===256)return null;if(S!==pr(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(ij(e))e[345]&&(s=Ni(e,345,155,r)+"/"+s);else if(!nj(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,byteOffset:0,mtime:new Date(1e3*f),type:h,linkname:g,uname:y,gname:E,devmajor:m,devminor:v,pax:null}};function ij(t){return ne.equals(CE,t.subarray(ss,ss+6))}function nj(t){return ne.equals(ej,t.subarray(ss,ss+6))&&ne.equals(tj,t.subarray(Nc,Nc+2))}function sj(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function oj(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 aj(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 NE(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function ME(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 gr(t,e){return t=t.toString(8),t.length>e?XB.slice(0,e)+" ":QB.slice(0,e-t.length)+t+" "}function lj(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function uj(t,e,r){t.toString(8).length>11?lj(t,e,r):ne.write(e,gr(t,11),r)}function fj(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 pr(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return fj(t);{for(;e<t.length&&t[e]===32;)e++;let i=sj(NE(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(ne.toString(t.subarray(e,i)),8)}}function Ni(t,e,r,i){return ne.toString(t.subarray(e,NE(t,0,e,e+r)),i)}function Cc(t){let e=ne.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var jE=b((F8,BE)=>{var{Writable:cj,Readable:hj,getStreamError:kE}=Lc(),dj=yc(),FE=Di(),ki=Mc(),pj=FE.alloc(0),gj=4*1024*1024,Fc=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new dj,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 pj;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 FE.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)}},qc=class extends hj{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(kE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=qE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},Bc=class extends cj{constructor(e){super(e),e||(e={}),this._buffer=new Fc,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=kc,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=ki.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.byteOffset=this._buffer.shifted,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,this._missing>gj?(this._continueWrite(new Error("Header exceeds max size")),!1):!0}return this._locked=!0,this._applyLongHeaders(),this._header.size>=0?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):(this._continueWrite(new Error("Invalid header")),!1)}_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=ki.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=ki.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=ki.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?ki.decodePax(e):Object.assign({},this._paxGlobal,ki.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=qE(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 qc(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=kc,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(kE(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",g=>{e=g}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return h(null)},throw(g){return h(g)}};function a(g){if(!s)return;let y=s;s=null,y(g)}function l(g,y){if(e)return y(e);if(n){g({value:n,done:!1}),n=null;return}r=g,i=y,a(null),o._finished&&r&&(r({value:void 0,done:!0}),r=i=null)}function u(g,y,E){s=E,y.on("error",kc),r?(r({value:y,done:!1}),r=i=null):n=y}function f(){a(e),r&&(e?i(e):r({value:void 0,done:!0}),r=i=null)}function h(g){return o.destroy(g),a(g),new Promise((y,E)=>{if(o.destroyed)return y({value:void 0,done:!0});o.once("close",function(){g?E(g):y({value:void 0,done:!0})})})}}};BE.exports=function(e){return new Bc(e)};function kc(){}function qE(t){return t&=511,t&&512-t}});var WE=b((q8,jc)=>{var UE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{jc.exports=W("fs").constants||UE}catch{jc.exports=UE}});var VE=b((B8,HE)=>{var{Readable:yj,Writable:mj,getStreamError:GE}=Lc(),Ur=Di(),Fi=WE(),Ma=Mc(),_j=493,bj=420,zE=Ur.alloc(1024),Wc=class extends mj{constructor(e,r,i){super({mapWritable:Sj,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?Ur.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?Ur.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),$E(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 GE(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()}},Gc=class extends yj{constructor(e){super(e),this._drain=Uc,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=Uc),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=wj(e.mode)),e.mode||(e.mode=e.type==="directory"?_j:bj),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=Ur.from(r));let n=new Wc(this,e,i);return Ur.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(zE),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=Ma.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=Ma.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(Ma.encode(i)),this.push(r),$E(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(Ma.encode(i))}_doDrain(){let e=this._drain;this._drain=Uc,e()}_predestroy(){let e=GE(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()}};HE.exports=function(e){return new Gc(e)};function wj(t){switch(t&Fi.S_IFMT){case Fi.S_IFBLK:return"block-device";case Fi.S_IFCHR:return"character-device";case Fi.S_IFDIR:return"directory";case Fi.S_IFIFO:return"fifo";case Fi.S_IFLNK:return"symlink"}return"file"}function Uc(){}function $E(t,e){e&=511,e&&t.push(zE.subarray(0,512-e))}function Sj(t){return Ur.isBuffer(t)?t:Ur.from(t)}});var YE=b(zc=>{zc.extract=jE();zc.pack=VE()});var QE=b((U8,ZE)=>{var Ej=W("zlib"),vj=YE(),KE=Ri(),Vt=function(t){if(!(this instanceof Vt))return new Vt(t);t=this.options=KE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=vj.pack(t),this.compressor=!1,t.gzip&&(this.compressor=Ej.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Vt.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Vt.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"&&KE.collectStream(t,n)};Vt.prototype.finalize=function(){this.engine.finalize()};Vt.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Vt.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)};Vt.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};ZE.exports=Vt});var ev=b((W8,JE)=>{"use strict";function Tj(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xj=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 XE(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 Aj(t){let e=XE(4);return e.writeInt32BE(t,0),e}function $c(t,e){t=XE(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=xj[(r^t[i])&255]^r>>>8;return r^-1}function Hc(){return Aj($c.apply(null,arguments))}Hc.signed=function(){return $c.apply(null,arguments)};Hc.unsigned=function(){return $c.apply(null,arguments)>>>0};var Rj=Hc,Oj=Tj(Rj);JE.exports=Oj});var nv=b((G8,iv)=>{var Dj=W("util").inherits,tv=Cr().Transform,Ij=ev(),rv=Ri(),yr=function(t){if(!(this instanceof yr))return new yr(t);t=this.options=rv.defaults(t,{}),tv.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};Dj(yr,tv);yr.prototype._transform=function(t,e,r){r(null,t)};yr.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};yr.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=Ij.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&rv.collectStream(t,n)};yr.prototype.finalize=function(){this._writeStringified(),this.end()};iv.exports=yr});var ov=b((z8,sv)=>{var Pj=yS(),os={},mr=function(t,e){return mr.create(t,e)};mr.create=function(t,e){if(os[t]){var r=new Pj(t,e);return r.setFormat(t),r.setModule(new os[t](e)),r}else throw new Error("create("+t+"): format not registered")};mr.registerFormat=function(t,e){if(os[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");os[t]=e};mr.isRegisteredFormat=function(t){return!!os[t]};mr.registerFormat("zip",YS());mr.registerFormat("tar",QE());mr.registerFormat("json",nv());sv.exports=mr});import*as qh from"node:fs/promises";import{join as o1}from"node:path";var Kt="rayfin",Ya=".devpack",Ka="package.json",Za="package.zip",s1=N.strictObject({apiVersion:N.number().int().positive()});var a1="rayfin.yml";function Qa(t){return o1(t,Kt,a1)}async function Gj(t){try{return(await qh.stat(Qa(t))).isFile()}catch(e){return l1(e)}}function l1(t){let e=t?.code;if(e==="ENOENT"||e==="ENOTDIR")return!1;throw t}var u1="0.0",f1=N.object({type:N.literal("client"),path:N.string()}),c1=N.object({type:N.literal("function"),path:N.string()}),h1=N.discriminatedUnion("type",[f1,c1]),d1=N.object({path:N.string(),archive:N.literal("zip"),compression:N.literal("deflate")}),p1=N.object({path:N.string(),kind:N.string(),sizeBytes:N.number().int().nonnegative().optional(),sha256:N.string().optional()}),g1=N.object({path:N.string(),apiVersion:N.number().int().positive(),profile:N.string(),parts:N.array(p1),skippedServices:N.array(N.string())}),y1=N.object({kind:N.literal("rayfin")}),Xa=N.object({default:y1}),Hj=N.object({cliVersion:N.string(),manifestVersion:N.literal(u1),clientDirectory:N.string(),hasCustomMiddleTier:N.boolean(),functionsPackage:d1.optional(),iconPath:N.string().optional(),dataSchemaPath:N.string().optional(),dataEnabled:N.boolean().optional(),rayfinPackage:g1.optional(),backends:Xa.optional(),routes:N.record(N.string(),h1)}).refine(({rayfinPackage:t,backends:e})=>t!==void 0==(e!==void 0),{message:"`rayfinPackage` and `backends` must both be present or both be absent.",path:["backends"]});import{spawn as m1}from"node:child_process";import{createWriteStream as _1}from"node:fs";import b1 from"node:os";import{finished as w1}from"node:stream/promises";import{setTimeout as S1}from"node:timers/promises";import{pathToFileURL as Bh}from"node:url";var E1=8*1024,v1=8*1024*1024,jh=1e3;function Uh(){return{chunks:[],bytes:0,dropped:0}}function Wh(t,e,r){for(t.chunks.push(e),t.bytes+=e.length;t.bytes>r;){let i=t.bytes-r,n=t.chunks[0];n.length<=i?(t.chunks.shift(),t.bytes-=n.length,t.dropped+=n.length):(t.chunks[0]=n.subarray(i),t.bytes-=i,t.dropped+=i)}}function Gh(t){let e=Buffer.concat(t.chunks).toString("utf8").trimEnd();return t.dropped===0?e:`[truncated earlier ${t.dropped} bytes; showing last ${t.bytes} bytes]
17
+ ${e}`}function T1(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ja(t,e){let r=t.replace(/(\b[a-z][a-z0-9+.-]*:\/\/)[^/\s@]+@/gi,"$1[REDACTED]@").replace(/\b(?:authorization:\s*bearer|bearer)\s+[a-z0-9._~+/=-]+/gi,"Bearer [REDACTED]").replace(/([?&](?:sig|token|access_token|code)=)[^&\s]+/gi,"$1[REDACTED]").replace(/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,"[REDACTED_EMAIL]");for(let[i,n]of[[e,"<project>"],[b1.homedir(),"<home>"]])if(i){let s=new Set([i,i.replace(/\\/g,"/"),i.replace(/\//g,"\\"),Bh(i).href,decodeURIComponent(Bh(i).href)]);for(let o of[...s].sort((a,l)=>l.length-a.length))r=r.replace(new RegExp(T1(o),"gi"),n)}return r}function x1(t){return t?["ignore","pipe","pipe"]:"inherit"}async function A1(t){try{await w1(t);return}catch(e){return e}}async function R1(t){try{return await S1(jh,void 0,{signal:t,ref:!1}),new Error(`Command log flush exceeded ${jh}ms.`)}catch(e){return e.name==="AbortError"?void 0:e}}function t3(t,e,r={}){return new Promise((i,n)=>{let{quiet:s=!1,captureTailCapBytes:o=E1,logFilePath:a,onLogError:l,logBufferBytes:u=v1,logFileMaxBytes:f=Number.POSITIVE_INFINITY}=r,h=m1(t,{cwd:e,stdio:x1(s),shell:!0}),g=a?_1(a,{flags:"a",encoding:"utf8",highWaterMark:u}):void 0,y=!1,E=L=>{y||(y=!0,l?.(L),g?.destroy())},m=0,v=L=>{if(!g||y)return;let D=Buffer.isBuffer(L)?L:Buffer.from(L),q=f-m;if(q<=0)return;let Z=D.length<=q?D:D.subarray(0,q);m+=Z.length,g.write(Z)};g&&(g.on("error",L=>{E(L)}),v(`
18
18
  > ${t}
19
19
  cwd: ${e}
20
20
 
21
- `));let S=Wh(),R=Wh();h.stdout?.on("data",L=>{s&&Gh(S,L,o),v(L)}),h.stderr?.on("data",L=>{s&&Gh(R,L,o),v(L)}),h.on("close",async L=>{if(g&&!y){g.end();let M=new AbortController;try{let k=await Promise.race([I1(g),P1(M.signal)]);k&&E(k)}finally{M.abort()}}if(L===0){i();return}let D=`Command exited with code ${L}.`,q=s?Ja(zh(R),e):"",Z=s?Ja(zh(S),e):"",P={commandExitCode:L,diagnosticCapture:s?"captured":"unavailable_interactive",...q&&{stderrTail:q},...Z&&{stdoutTail:Z}},B={commandExitCode:L,diagnosticCapture:s?"captured":"unavailable_interactive"},x=s?{...q&&{stderrTail:q},...Z&&{stdoutTail:Z}}:void 0;n(new Ha(D,L??1,P,{errorCode:"BuildCommandFailed",telemetryDetails:B,outputDetails:x}))}),h.on("error",L=>{g?.end();let D={underlyingError:Ja(L.message,e)};n(new Ha("Could not start the build command.",1,D,{errorCode:"BuildCommandStartFailed",telemetryDetails:{diagnosticCapture:"unavailable_start_failure"}}))})})}import*as Ct from"node:fs/promises";import*as jr from"node:path";function Ps(t,e){try{let r=[{value:t,depth:0}],i=new WeakSet,n=0;for(;r.length>0;){let o=r.pop();if(o.exit){i.delete(o.value);continue}if(o.depth>e.maxDepth)return!1;if(o.value===null||typeof o.value=="boolean"||typeof o.value=="number"){if(typeof o.value=="number"&&!Number.isFinite(o.value)||(n+=o.value===null?4:String(o.value).length,n>e.maxBytes))return!1;continue}if(typeof o.value=="string"){if(o.value.length>e.maxBytes||(n+=new TextEncoder().encode(o.value).byteLength+2,n>e.maxBytes))return!1;continue}if(typeof o.value!="object"||i.has(o.value))return!1;i.add(o.value),r.push({value:o.value,depth:o.depth,exit:!0});let a=Object.getPrototypeOf(o.value);if(a!==Object.prototype&&a!==Array.prototype&&a!==null)return!1;let l=Object.getOwnPropertyDescriptors(o.value);if(n+=2,Array.isArray(o.value)){if(o.value.length>e.maxBytes)return!1;n+=Math.max(0,o.value.length-1);let u=0;for(let[f,h]of Object.entries(l))if(!(f==="length"||!/^(0|[1-9]\d*)$/.test(f))){if(!("value"in h))return!1;u++,r.push({value:h.value,depth:o.depth+1})}if(n+=(o.value.length-u)*4,n>e.maxBytes)return!1;continue}for(let[u,f]of Object.entries(l))if(f.enumerable){if(!("value"in f)||u.length>e.maxBytes||(n+=new TextEncoder().encode(u).byteLength+3,n>e.maxBytes))return!1;r.push({value:f.value,depth:o.depth+1})}}let s=JSON.stringify(t);return s!==void 0&&new TextEncoder().encode(s).byteLength<=e.maxBytes}catch{return!1}}var el=10*1024*1024,L1=6*1024*1024,tl=64,$h="0.0",Hh=N.string().refine(t=>zi(t)&&t!=="00000000-0000-0000-0000-000000000000","An existing app GUID is required"),Vh=N.string().refine(zi,"A GUID is required"),Yh=N.url().pipe(N.string().refine(t=>{let e=new URL(t);return(e.protocol==="https:"||e.protocol==="http:")&&/^https?:\/\/[^/?#\\\s]+\/?$/.test(t)&&!e.username&&!e.password&&e.pathname==="/"},"Expected an origin-only HTTP(S) URL")),Ls=Yh.refine(t=>new URL(t).protocol==="https:","Expected an origin-only HTTPS URL"),C1=N.object({runtimeGatewayHost:Ls}),Kh=N.strictObject({apiVersion:N.number().int().positive(),archive:N.literal("zip"),compression:N.literal("deflate"),data:N.string().min(1)}),Zh=N.strictObject({manifestVersion:N.literal($h),dataEnabled:N.boolean().optional(),data:N.record(N.string(),N.json()).optional(),backends:Xa.optional(),rayfinPackage:Kh.optional()}),N1=N.strictObject({app:N.strictObject({id:Hh,manifest:Zh})}),Qh=N.custom(t=>Ps(t,{maxBytes:el,maxDepth:tl}),`InitDevSession body must be acyclic JSON within the ${el/(1024*1024)} MiB and nesting limits`).pipe(N1),rl=N.strictObject({version:N.literal(1),revision:N.string().regex(/\S/,"A snapshot revision is required"),environmentId:N.string().regex(/\S/,"An environment identity is required"),body:Qh}),il=N.object({sessionId:Vh,expiresAt:N.iso.datetime(),rayfin:N.strictObject({status:N.enum(["pending","ready","failed"])}).optional()});var M1=N.discriminatedUnion("status",[N.strictObject({status:N.literal("ready"),statusCode:N.literal(201),session:il}),N.strictObject({status:N.literal("failed"),statusCode:N.number().int().min(400).max(599),code:N.string().min(1),retryAfter:N.string().min(1).optional()})]);var k1=12*1024*1024,F1=N.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),q1=N.strictObject({version:N.literal(1),revision:F1,hostConfig:kh,oob:rl}).superRefine((t,e)=>{(t.hostConfig.appId?.toLowerCase()!==t.oob.body.app.id.toLowerCase()||t.hostConfig.environmentId!==t.oob.environmentId)&&e.addIssue({code:"custom",message:"Host config and OOB identity must agree"}),(t.hostConfig.state?.schemaPath??t.hostConfig.data?.schemaPath??t.hostConfig.db?.schemaPath)!==void 0!==(t.oob.body.app.manifest.data!==void 0)&&e.addIssue({code:"custom",message:"Configured schema must agree with inline OOB data"}),(t.hostConfig.state?.enabled??t.hostConfig.data?.enabled??t.hostConfig.db?.enabled)!==t.oob.body.app.manifest.dataEnabled&&e.addIssue({code:"custom",message:"Configured data enablement must agree with the OOB manifest"})}),B1=N.custom(t=>Ps(t,{maxBytes:k1,maxDepth:tl}),"Development snapshot must be acyclic JSON within the size and nesting limits").pipe(q1);var j1=/^.*\.gateway\..*\.island\.powerplatformusercontent\.com$/,Xh=Ls.refine(t=>{let e=new URL(t);return!t.includes("@")&&!e.port&&j1.test(e.hostname)},"Expected a Copilot Managed Runtime gateway origin");var G1="00000000-0000-0000-0000-000000000000";function Jh(t){return zi(t)&&t!==G1}var z1=N.string().refine(Jh,"A non-empty GUID runtime session id is required");var cv=a1(av(),1);var Vc="rayfin",lv="managed";async function Q8(t){return Ct.readFile(Qa(t),"utf8")}var uv=["LOG_STREAM","LOG_TOKENS"];async function fv(t){let e=new Map(uv.map(r=>[r,Fh(r)]));for(let r of uv)Va(r);try{return await t()}finally{for(let[r,i]of e)i===void 0?Va(r):qh(r,i)}}async function Fj(t){let{projectRoot:e,packAppOutputDir:r,cliVersion:i,env:n,onDetail:s}=t,o=await(t.loadLibrary??qj)(),a=jr.join(r,Vc),l=await fv(()=>Promise.resolve(o.buildPackRequest({projectRoot:e,outDir:a,profile:lv,env:n})));if(l.status!=="ok")throw l.status==="cancelled"?new $i("Rayfin pack was cancelled."):new $i(`Rayfin pack failed to prepare the pack request (${l.error.code}).`,void 0,{rayfinErrorMessage:l.error.message});let u=await fv(()=>o.runPackWorkflow(l.data,{generators:o.createNodePackGenerators({clientVersion:`ms/${i}`,env:n,...s?{diagnostics:{debug:f=>s(`[rayfin] ${f.message}`)},onBuildOutput:f=>{let h=f.trimEnd();h&&s(`[rayfin] ${h}`)}}:{}})}));if(u.status==="cancelled")throw new $i("Rayfin pack was cancelled.");if(u.status==="failed"){let f=o.isPackValidationFailure(u.error.cause)?u.error.cause.blockers.map(h=>h.code):[];throw new $i(`Rayfin pack failed (${u.error.code}).`+(f.length>0?` Blockers: ${[...new Set(f)].join(", ")}.`:""),void 0,{rayfinErrorMessage:u.error.message})}if(!u.data.hasDeployableContent){s?.("[rayfin] No deployable Rayfin content; skipping the Rayfin package."),await Ct.rm(a,{recursive:!0,force:!0});return}return{path:Vc,apiVersion:o.PACK_API_VERSION,profile:lv,parts:u.data.parts.map(({path:f,kind:h,sizeBytes:g,sha256:y})=>({path:f,kind:h,...g!==void 0?{sizeBytes:g}:{},...y!==void 0?{sha256:y}:{}})),skippedServices:u.data.skippedServices}}async function qj(){return import("./rayfin-pack-HOUOLOHQ.js")}function Bj(t){return jr.join(t,Hi,Ya)}async function X8(t){let{projectRoot:e,cliVersion:r,env:i,onDetail:n}=t,s=Bj(e),o=jr.join(s,Vc),a=await Fj({projectRoot:e,packAppOutputDir:s,cliVersion:r,env:i,onDetail:n});if(!a)return await Ct.rm(s,{recursive:!0,force:!0}),!1;let l=await jj(o);await Ct.rm(o,{recursive:!0,force:!0}),await Ct.writeFile(jr.join(s,Za),l);let u={apiVersion:a.apiVersion};return await Ct.writeFile(jr.join(s,Ka),JSON.stringify(u)),await Ct.writeFile(jr.join(s,".gitignore"),`*
22
- `),!0}async function jj(t){return new Promise((e,r)=>{let i=[],n=(0,cv.default)("zip",{zlib:{level:9}});n.on("data",s=>i.push(s)),n.on("warning",r),n.on("error",r),n.on("end",()=>e(Buffer.concat(i))),n.directory(t,!1),n.finalize()})}export{av as a,$j as b,d1 as c,x1 as d,Wh as e,Gh as f,zh as g,Ja as h,i3 as i,Q8 as j,Fj as k,X8 as l};
21
+ `));let S=Uh(),R=Uh();h.stdout?.on("data",L=>{s&&Wh(S,L,o),v(L)}),h.stderr?.on("data",L=>{s&&Wh(R,L,o),v(L)}),h.on("close",async L=>{if(g&&!y){g.end();let M=new AbortController;try{let k=await Promise.race([A1(g),R1(M.signal)]);k&&E(k)}finally{M.abort()}}if(L===0){i();return}let D=`Command exited with code ${L}.`,q=s?Ja(Gh(R),e):"",Z=s?Ja(Gh(S),e):"",P={commandExitCode:L,diagnosticCapture:s?"captured":"unavailable_interactive",...q&&{stderrTail:q},...Z&&{stdoutTail:Z}},B={commandExitCode:L,diagnosticCapture:s?"captured":"unavailable_interactive"},A=s?{...q&&{stderrTail:q},...Z&&{stdoutTail:Z}}:void 0;n(new Ha(D,L??1,P,{errorCode:"BuildCommandFailed",telemetryDetails:B,outputDetails:A}))}),h.on("error",L=>{g?.end();let D={underlyingError:Ja(L.message,e)};n(new Ha("Could not start the build command.",1,D,{errorCode:"BuildCommandStartFailed",telemetryDetails:{diagnosticCapture:"unavailable_start_failure"}}))})})}import*as nt from"node:fs/promises";import*as it from"node:path";function Ps(t,e){try{let r=[{value:t,depth:0}],i=new WeakSet,n=0;for(;r.length>0;){let o=r.pop();if(o.exit){i.delete(o.value);continue}if(o.depth>e.maxDepth)return!1;if(o.value===null||typeof o.value=="boolean"||typeof o.value=="number"){if(typeof o.value=="number"&&!Number.isFinite(o.value)||(n+=o.value===null?4:String(o.value).length,n>e.maxBytes))return!1;continue}if(typeof o.value=="string"){if(o.value.length>e.maxBytes||(n+=new TextEncoder().encode(o.value).byteLength+2,n>e.maxBytes))return!1;continue}if(typeof o.value!="object"||i.has(o.value))return!1;i.add(o.value),r.push({value:o.value,depth:o.depth,exit:!0});let a=Object.getPrototypeOf(o.value);if(a!==Object.prototype&&a!==Array.prototype&&a!==null)return!1;let l=Object.getOwnPropertyDescriptors(o.value);if(n+=2,Array.isArray(o.value)){if(o.value.length>e.maxBytes)return!1;n+=Math.max(0,o.value.length-1);let u=0;for(let[f,h]of Object.entries(l))if(!(f==="length"||!/^(0|[1-9]\d*)$/.test(f))){if(!("value"in h))return!1;u++,r.push({value:h.value,depth:o.depth+1})}if(n+=(o.value.length-u)*4,n>e.maxBytes)return!1;continue}for(let[u,f]of Object.entries(l))if(f.enumerable){if(!("value"in f)||u.length>e.maxBytes||(n+=new TextEncoder().encode(u).byteLength+3,n>e.maxBytes))return!1;r.push({value:f.value,depth:o.depth+1})}}let s=JSON.stringify(t);return s!==void 0&&new TextEncoder().encode(s).byteLength<=e.maxBytes}catch{return!1}}var el=10*1024*1024,O1=6*1024*1024,tl=64,zh="0.0",$h=N.string().refine(t=>$i(t)&&t!=="00000000-0000-0000-0000-000000000000","An existing app GUID is required"),Hh=N.string().refine($i,"A GUID is required"),Vh=N.url().pipe(N.string().refine(t=>{let e=new URL(t);return(e.protocol==="https:"||e.protocol==="http:")&&/^https?:\/\/[^/?#\\\s]+\/?$/.test(t)&&!e.username&&!e.password&&e.pathname==="/"},"Expected an origin-only HTTP(S) URL")),Ls=Vh.refine(t=>new URL(t).protocol==="https:","Expected an origin-only HTTPS URL"),D1=N.object({runtimeGatewayHost:Ls}),Yh=N.strictObject({apiVersion:N.number().int().positive(),archive:N.literal("zip"),compression:N.literal("deflate"),data:N.string().min(1)}),Kh=N.strictObject({manifestVersion:N.literal(zh),dataEnabled:N.boolean().optional(),data:N.record(N.string(),N.json()).optional(),backends:Xa.optional(),rayfinPackage:Yh.optional()}),I1=N.strictObject({app:N.strictObject({id:$h,manifest:Kh})}),Zh=N.custom(t=>Ps(t,{maxBytes:el,maxDepth:tl}),`InitDevSession body must be acyclic JSON within the ${el/(1024*1024)} MiB and nesting limits`).pipe(I1),rl=N.strictObject({version:N.literal(1),revision:N.string().regex(/\S/,"A snapshot revision is required"),environmentId:N.string().regex(/\S/,"An environment identity is required"),body:Zh}),il=N.object({sessionId:Hh,expiresAt:N.iso.datetime(),rayfin:N.strictObject({status:N.enum(["pending","ready","failed"])}).optional()});var P1=N.discriminatedUnion("status",[N.strictObject({status:N.literal("ready"),statusCode:N.literal(201),session:il}),N.strictObject({status:N.literal("failed"),statusCode:N.number().int().min(400).max(599),code:N.string().min(1),retryAfter:N.string().min(1).optional()})]);var L1=12*1024*1024,C1=N.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),N1=N.strictObject({version:N.literal(1),revision:C1,hostConfig:Fh,oob:rl}).superRefine((t,e)=>{(t.hostConfig.appId?.toLowerCase()!==t.oob.body.app.id.toLowerCase()||t.hostConfig.environmentId!==t.oob.environmentId)&&e.addIssue({code:"custom",message:"Host config and OOB identity must agree"}),(t.hostConfig.state?.schemaPath??t.hostConfig.data?.schemaPath??t.hostConfig.db?.schemaPath)!==void 0!==(t.oob.body.app.manifest.data!==void 0)&&e.addIssue({code:"custom",message:"Configured schema must agree with inline OOB data"}),(t.hostConfig.state?.enabled??t.hostConfig.data?.enabled??t.hostConfig.db?.enabled)!==t.oob.body.app.manifest.dataEnabled&&e.addIssue({code:"custom",message:"Configured data enablement must agree with the OOB manifest"})}),M1=N.custom(t=>Ps(t,{maxBytes:L1,maxDepth:tl}),"Development snapshot must be acyclic JSON within the size and nesting limits").pipe(N1);var k1=/^.*\.gateway\..*\.island\.powerplatformusercontent\.com$/,Qh=Ls.refine(t=>{let e=new URL(t);return!t.includes("@")&&!e.port&&k1.test(e.hostname)},"Expected a Copilot Managed Runtime gateway origin");function Xh(t){return $i(t)&&t!==kh}var B1=N.string().refine(Xh,"A non-empty GUID runtime session id is required");var av=i1(ov(),1);var Vc="rayfin",Lj="managed-app",Cj="managed";async function K8(t){return nt.readFile(Qa(t),"utf8")}async function Nj(t){let e=it.join(t,Kt);try{await nt.access(it.join(e,"tsconfig.json"))}catch{return}let r;for(let s=e;;s=it.dirname(s)){let o;try{o=await nt.readFile(it.join(s,"package.json"),"utf8")}catch(a){if(a.code!=="ENOENT")return;if(it.dirname(s)===s)break;continue}try{if(JSON.parse(o)?.type==="module")return}catch{return}r=s;break}let i=`${Kt}/package.json`,n=r===e?`Set "type": "module" in ${i}`:`Add ${i} containing {"type": "module"}`;return`${Kt}/ compiles as CommonJS because its nearest package.json doesn't declare "type": "module", but @microsoft/rayfin-core is ESM-only. ${n}, then retry.`}async function Mj(t){let{projectRoot:e,packAppOutputDir:r,cliVersion:i,env:n,onDetail:s}=t,o=await(t.loadLibrary??kj)(),a=it.join(r,Vc),l=await Va(()=>Promise.resolve(o.buildPackRequest({projectRoot:e,outDir:a,profile:Lj,env:n})));if(l.status!=="ok")throw l.status==="cancelled"?new Hi("Rayfin pack was cancelled."):new Hi(`Rayfin pack failed to prepare the pack request (${l.error.code}).`,void 0,{rayfinErrorMessage:l.error.message});let u=await Va(()=>o.runPackWorkflow(l.data,{generators:o.createNodePackGenerators({clientVersion:`ms/${i}`,env:n,...s?{diagnostics:{debug:f=>s(`[rayfin] ${f.message}`)},onBuildOutput:f=>{let h=f.trimEnd();h&&s(`[rayfin] ${h}`)}}:{}})}));if(u.status==="cancelled")throw new Hi("Rayfin pack was cancelled.");if(u.status==="failed"){let f=o.isPackValidationFailure(u.error.cause)?u.error.cause.blockers.map(g=>g.code):[],h=u.error.code==="pack-failed"?await Nj(e):void 0;throw new Hi(`Rayfin pack failed (${u.error.code}).`+(f.length>0?` Blockers: ${[...new Set(f)].join(", ")}.`:"")+(h?` ${h}`:""),void 0,{rayfinErrorMessage:u.error.message})}if(!u.data.hasDeployableContent){s?.("[rayfin] No deployable Rayfin content; skipping the Rayfin package."),await nt.rm(a,{recursive:!0,force:!0});return}return{path:Vc,apiVersion:o.PACK_API_VERSION,profile:Cj,parts:u.data.parts.map(({path:f,kind:h,sizeBytes:g,sha256:y})=>({path:f,kind:h,...g!==void 0?{sizeBytes:g}:{},...y!==void 0?{sha256:y}:{}})),skippedServices:u.data.skippedServices}}async function kj(){return import("./node-PLZPXPD7.js")}function Fj(t){return it.join(t,Kt,Ya)}async function Z8(t){let{projectRoot:e,cliVersion:r,env:i,onDetail:n}=t,s=Fj(e),o=it.join(s,Vc),a=await Mj({projectRoot:e,packAppOutputDir:s,cliVersion:r,env:i,onDetail:n});if(!a)return await nt.rm(s,{recursive:!0,force:!0}),!1;let l=await qj(o);await nt.rm(o,{recursive:!0,force:!0}),await nt.writeFile(it.join(s,Za),l);let u={apiVersion:a.apiVersion};return await nt.writeFile(it.join(s,Ka),JSON.stringify(u)),await nt.writeFile(it.join(s,".gitignore"),`*
22
+ `),!0}async function qj(t){return new Promise((e,r)=>{let i=[],n=(0,av.default)("zip",{zlib:{level:9}});n.on("data",s=>i.push(s)),n.on("warning",r),n.on("error",r),n.on("end",()=>e(Buffer.concat(i))),n.directory(t,!1),n.finalize()})}export{ov as a,Gj as b,u1 as c,E1 as d,Uh as e,Wh as f,Gh as g,Ja as h,t3 as i,K8 as j,Mj as k,Z8 as l};
23
23
  /*!
24
24
  * Copyright (C) Microsoft Corporation. All rights reserved.
25
25
  */
@@ -91,4 +91,4 @@ archiver/index.js:
91
91
  * @copyright (c) 2012-2014 Chris Talkington, contributors.
92
92
  *)
93
93
  */
94
- //# sourceMappingURL=chunk-6EF722GY.js.map
94
+ //# sourceMappingURL=chunk-XC7Y6E2C.js.map