valaxy 0.4.0 → 0.5.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 (145) hide show
  1. package/{src/client → client}/App.vue +0 -0
  2. package/{src/client → client}/components/AppLink.vue +0 -0
  3. package/{src/client → client}/components/PostCard.vue +37 -23
  4. package/{src/client → client}/components/PostList.vue +0 -0
  5. package/{src/client → client}/components/README.md +0 -0
  6. package/{src/client → client}/components/ValaxyBg.vue +1 -1
  7. package/{src/client → client}/components/ValaxyCopyright.vue +0 -0
  8. package/{src/client → client}/components/ValaxyFooter.vue +2 -2
  9. package/{src/client → client}/components/ValaxyHamburger.vue +0 -0
  10. package/{src/client → client}/components/ValaxyMd.vue +1 -5
  11. package/{src/client → client}/components/ValaxyOverlay.vue +0 -0
  12. package/{src/client → client}/components/ValaxyPagination.vue +0 -0
  13. package/{src/client → client}/components/ValaxyRightSidebar.vue +0 -0
  14. package/{src/client → client}/components/ValaxySidebar.vue +0 -0
  15. package/{src/client → client}/components/ValaxyToc.vue +0 -0
  16. package/{src/client → client}/composables/category.ts +0 -0
  17. package/{src/client → client}/composables/comments/index.ts +0 -0
  18. package/{src/client → client}/composables/comments/twikoo.ts +0 -0
  19. package/{src/client → client}/composables/comments/waline.ts +0 -0
  20. package/{src/client → client}/composables/common.ts +0 -0
  21. package/{src/client → client}/composables/dark.ts +0 -0
  22. package/{src/client/composables/search → client/composables/features}/index.ts +0 -0
  23. package/{src/client → client}/composables/helper.ts +0 -0
  24. package/{src/client → client}/composables/index.ts +1 -1
  25. package/{src/client → client}/composables/layout.ts +0 -0
  26. package/{src/client → client}/composables/post.ts +0 -0
  27. package/client/composables/search/index.ts +0 -0
  28. package/{src/client → client}/composables/sidebar.ts +0 -0
  29. package/{src/client → client}/composables/tag.ts +0 -0
  30. package/{src/client → client}/composables/widgets/aplayer.ts +0 -0
  31. package/{src/client → client}/composables/widgets/backToTop.ts +0 -0
  32. package/{src/client → client}/composables/widgets/codepen.ts +0 -0
  33. package/{src/client → client}/composables/widgets/index.ts +0 -0
  34. package/{src/client → client}/config.ts +2 -1
  35. package/{src/client → client}/index.html +0 -0
  36. package/{src/client → client}/index.ts +0 -0
  37. package/{src/client → client}/layouts/404.vue +0 -0
  38. package/{src/client → client}/layouts/README.md +0 -0
  39. package/{src/client → client}/locales/README.md +0 -0
  40. package/{src/client → client}/locales/en.yml +1 -0
  41. package/{src/client → client}/locales/zh-CN.yml +4 -3
  42. package/{src/client → client}/main.ts +0 -0
  43. package/{src/client → client}/modules/README.md +0 -0
  44. package/{src/client → client}/modules/nprogress.ts +0 -0
  45. package/{src/client → client}/modules/pinia.ts +0 -0
  46. package/{src/client → client}/modules/valaxy.ts +0 -0
  47. package/{src/client → client}/pages/README.md +0 -0
  48. package/{src/client → client}/pages/[...all].vue +0 -0
  49. package/{src/client → client}/pages/hi/[name].vue +0 -0
  50. package/{src/client → client}/pages/index.vue +0 -0
  51. package/{src/client → client}/pages/page/[page].vue +0 -0
  52. package/{src/client → client}/shims.d.ts +1 -0
  53. package/{src/client → client}/stores/app.ts +0 -0
  54. package/{src/client → client}/stores/user.ts +0 -0
  55. package/{src/client → client}/styles/common/button.scss +0 -0
  56. package/{src/client → client}/styles/common/code.scss +0 -0
  57. package/{src/client → client}/styles/common/custom-blocks.scss +0 -0
  58. package/{src/client → client}/styles/common/hamburger.scss +0 -0
  59. package/{src/client → client}/styles/common/markdown.scss +0 -0
  60. package/client/styles/common/scrollbar.scss +28 -0
  61. package/{src/client → client}/styles/common/sidebar.scss +0 -0
  62. package/{src/client → client}/styles/common/transition.scss +0 -0
  63. package/{src/client → client}/styles/css-vars.scss +0 -0
  64. package/{src/client → client}/styles/global/helper.scss +0 -0
  65. package/{src/client → client}/styles/global/i18n.scss +0 -0
  66. package/{src/client → client}/styles/global/index.scss +0 -0
  67. package/{src/client → client}/styles/global/nprogress.scss +0 -0
  68. package/{src/client → client}/styles/global/reset.scss +0 -0
  69. package/{src/client → client}/styles/index.scss +0 -0
  70. package/{src/client → client}/styles/mixins/config.scss +0 -0
  71. package/{src/client → client}/styles/mixins/index.scss +0 -0
  72. package/{src/client → client}/styles/mixins/size.scss +0 -0
  73. package/{src/client → client}/styles/mixins/variable.scss +0 -0
  74. package/{src/client → client}/styles/palette.scss +0 -0
  75. package/client/styles/third/katex.scss +3 -0
  76. package/{src/client → client}/styles/vars.scss +0 -0
  77. package/{src/client → client}/styles/widgets/banner.scss +0 -0
  78. package/{src/client → client}/types.ts +0 -0
  79. package/{src/client → client}/utils/helper.ts +0 -0
  80. package/{src/client → client}/utils/index.ts +0 -0
  81. package/{src/client → client}/utils/time.ts +0 -0
  82. package/dist/chunk-EAN2KU6W.mjs +1 -0
  83. package/dist/chunk-RSQONJW3.mjs +86 -0
  84. package/dist/chunk-U5OMNIOK.js +1 -0
  85. package/dist/chunk-XQIGHIAX.js +86 -0
  86. package/dist/client/index.d.ts +188 -0
  87. package/dist/client/index.js +1 -0
  88. package/dist/client/index.mjs +1 -0
  89. package/dist/{config-de04677b.d.ts → config-7bd43d41.d.ts} +24 -12
  90. package/dist/node/cli.js +10 -10
  91. package/dist/node/cli.mjs +10 -10
  92. package/dist/node/index.d.ts +2 -2
  93. package/dist/node/index.js +1 -1
  94. package/dist/node/index.mjs +1 -1
  95. package/dist/posts-32f55e33.d.ts +117 -0
  96. package/dist/types/index.d.ts +8 -0
  97. package/dist/types/index.js +1 -0
  98. package/dist/types/index.mjs +0 -0
  99. package/index.d.ts +3 -0
  100. package/{src/node → node}/build.ts +0 -0
  101. package/{src/node → node}/cli.ts +3 -2
  102. package/node/config.ts +170 -0
  103. package/{src/node → node}/index.ts +0 -0
  104. package/{src/node → node}/markdown/check.ts +0 -0
  105. package/{src/node → node}/markdown/highlight.ts +0 -0
  106. package/{src/node → node}/markdown/index.ts +0 -0
  107. package/{src/node → node}/markdown/markdown-it/container.ts +0 -0
  108. package/{src/node → node}/markdown/markdown-it/headings.ts +0 -0
  109. package/{src/node → node}/markdown/markdown-it/highlightLines.ts +0 -0
  110. package/{src/node → node}/markdown/markdown-it/katex.ts +0 -0
  111. package/{src/node → node}/markdown/markdown-it/parseHeader.ts +0 -0
  112. package/{src/node → node}/markdown/slugify.ts +0 -0
  113. package/{src/node → node}/options.ts +2 -2
  114. package/{src/node → node}/plugins/extendConfig.ts +2 -1
  115. package/{src/node → node}/plugins/index.ts +10 -3
  116. package/{src/node → node}/plugins/markdown.ts +3 -6
  117. package/{src/node → node}/plugins/preset.ts +0 -0
  118. package/{src/node → node}/plugins/unocss.ts +0 -0
  119. package/{src/node → node}/plugins/valaxy.ts +0 -0
  120. package/{src/node → node}/rss.ts +0 -0
  121. package/{src/node → node}/server.ts +0 -0
  122. package/{src/node → node}/shims.d.ts +0 -0
  123. package/{src/node → node}/utils/cli.ts +1 -1
  124. package/node/utils/index.ts +48 -0
  125. package/node/utils/net.ts +20 -0
  126. package/{src/node → node}/vite.ts +5 -1
  127. package/package.json +18 -10
  128. package/tsup.config.ts +4 -3
  129. package/{src/types → types}/config.ts +27 -107
  130. package/{src/types → types}/index.ts +0 -0
  131. package/{src/types → types}/posts.ts +5 -0
  132. package/dist/chunk-6LIOFBAA.mjs +0 -1
  133. package/dist/chunk-HRARZPSA.js +0 -83
  134. package/dist/chunk-N6HD5SHF.mjs +0 -83
  135. package/dist/chunk-V3BMKLEW.js +0 -1
  136. package/dist/index.d.ts +0 -407
  137. package/dist/index.js +0 -1
  138. package/dist/index.mjs +0 -1
  139. package/src/client/composables/features/index.ts +0 -1
  140. package/src/client/composables/features/katex.ts +0 -15
  141. package/src/client/composables/search/algolia.ts +0 -115
  142. package/src/client/styles/common/scrollbar.scss +0 -34
  143. package/src/index.ts +0 -2
  144. package/src/node/config.ts +0 -52
  145. package/src/node/utils/index.ts +0 -26
package/dist/node/cli.mjs CHANGED
@@ -1,16 +1,16 @@
1
- import{a as ml,b as gl,c as Gi,d as $r,e as Ui,f as Nr,g as Vi}from"../chunk-N6HD5SHF.mjs";import{a as N,b as J,c as P,d as g,e as gt}from"../chunk-6LIOFBAA.mjs";var Ki=g((Sg,Yi)=>{var ze=1e3,et=ze*60,tt=et*60,Ge=tt*24,Sl=Ge*7,vl=Ge*365.25;Yi.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return El(e);if(r==="number"&&isFinite(e))return t.long?Cl(e):wl(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function El(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*vl;case"weeks":case"week":case"w":return r*Sl;case"days":case"day":case"d":return r*Ge;case"hours":case"hour":case"hrs":case"hr":case"h":return r*tt;case"minutes":case"minute":case"mins":case"min":case"m":return r*et;case"seconds":case"second":case"secs":case"sec":case"s":return r*ze;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function wl(e){var t=Math.abs(e);return t>=Ge?Math.round(e/Ge)+"d":t>=tt?Math.round(e/tt)+"h":t>=et?Math.round(e/et)+"m":t>=ze?Math.round(e/ze)+"s":e+"ms"}function Cl(e){var t=Math.abs(e);return t>=Ge?Nt(e,t,Ge,"day"):t>=tt?Nt(e,t,tt,"hour"):t>=et?Nt(e,t,et,"minute"):t>=ze?Nt(e,t,ze,"second"):e+" ms"}function Nt(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var Ir=g((vg,Qi)=>{function Rl(e){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Ki(),r.destroy=m,Object.keys(e).forEach(a=>{r[a]=e[a]}),r.names=[],r.skips=[],r.formatters={};function t(a){let f=0;for(let l=0;l<a.length;l++)f=(f<<5)-f+a.charCodeAt(l),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=t;function r(a){let f,l=null,S,y;function _(...v){if(!_.enabled)return;let C=_,b=Number(new Date),F=b-(f||b);C.diff=F,C.prev=f,C.curr=b,f=b,v[0]=r.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let V=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(B,L)=>{if(B==="%%")return"%";V++;let x=r.formatters[L];if(typeof x=="function"){let w=v[V];B=x.call(C,w),v.splice(V,1),V--}return B}),r.formatArgs.call(C,v),(C.log||r.log).apply(C,v)}return _.namespace=a,_.useColors=r.useColors(),_.color=r.selectColor(a),_.extend=n,_.destroy=r.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>l!==null?l:(S!==r.namespaces&&(S=r.namespaces,y=r.enabled(a)),y),set:v=>{l=v}}),typeof r.init=="function"&&r.init(_),_}function n(a,f){let l=r(this.namespace+(typeof f>"u"?":":f)+a);return l.log=this.log,l}function i(a){r.save(a),r.namespaces=a,r.names=[],r.skips=[];let f,l=(typeof a=="string"?a:"").split(/[\s,]+/),S=l.length;for(f=0;f<S;f++)!l[f]||(a=l[f].replace(/\*/g,".*?"),a[0]==="-"?r.skips.push(new RegExp("^"+a.slice(1)+"$")):r.names.push(new RegExp("^"+a+"$")))}function s(){let a=[...r.names.map(u),...r.skips.map(u).map(f=>"-"+f)].join(",");return r.enable(""),a}function o(a){if(a[a.length-1]==="*")return!0;let f,l;for(f=0,l=r.skips.length;f<l;f++)if(r.skips[f].test(a))return!1;for(f=0,l=r.names.length;f<l;f++)if(r.names[f].test(a))return!0;return!1}function u(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}function c(a){return a instanceof Error?a.stack||a.message:a}function m(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Qi.exports=Rl});var Xi=g((he,It)=>{he.formatArgs=Al;he.save=bl;he.load=Ol;he.useColors=xl;he.storage=Pl();he.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();he.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function xl(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Al(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+It.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}he.log=console.debug||console.log||(()=>{});function bl(e){try{e?he.storage.setItem("debug",e):he.storage.removeItem("debug")}catch{}}function Ol(){let e;try{e=he.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Pl(){try{return localStorage}catch{}}It.exports=Ir()(he);var{formatters:kl}=It.exports;kl.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Zi=g((Eg,Ji)=>{"use strict";Ji.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var es=g((wg,zi)=>{"use strict";var Tl=P("os"),Se=Zi(),te=process.env,rt;Se("no-color")||Se("no-colors")||Se("color=false")?rt=!1:(Se("color")||Se("colors")||Se("color=true")||Se("color=always"))&&(rt=!0);"FORCE_COLOR"in te&&(rt=te.FORCE_COLOR.length===0||parseInt(te.FORCE_COLOR,10)!==0);function Fl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ll(e){if(rt===!1)return 0;if(Se("color=16m")||Se("color=full")||Se("color=truecolor"))return 3;if(Se("color=256"))return 2;if(e&&!e.isTTY&&rt!==!0)return 0;let t=rt?1:0;if(process.platform==="win32"){let r=Tl.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in te)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in te)||te.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in te)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(te.TEAMCITY_VERSION)?1:0;if(te.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in te){let r=parseInt((te.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(te.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(te.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(te.TERM)||"COLORTERM"in te?1:(te.TERM==="dumb",t)}function Mr(e){let t=Ll(e);return Fl(t)}zi.exports={supportsColor:Mr,stdout:Mr(process.stdout),stderr:Mr(process.stderr)}});var rs=g((z,Ht)=>{var Dl=P("tty"),Mt=P("util");z.init=Bl;z.log=Il;z.formatArgs=$l;z.save=Ml;z.load=Hl;z.useColors=ql;z.destroy=Mt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");z.colors=[6,2,3,4,5,1];try{let e=es();e&&(e.stderr||e).level>=2&&(z.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}z.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function ql(){return"colors"in z.inspectOpts?Boolean(z.inspectOpts.colors):Dl.isatty(process.stderr.fd)}function $l(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${t} \x1B[0m`;e[0]=s+e[0].split(`
1
+ import{a as _l,b as Sl,c as Vi,d as $r,e as Yi,f as Nr,g as Ki}from"../chunk-RSQONJW3.mjs";import{a as N,b as J,c as P,d as g,e as gt}from"../chunk-EAN2KU6W.mjs";var Xi=g((Rg,Qi)=>{var ze=1e3,et=ze*60,tt=et*60,Ge=tt*24,Cl=Ge*7,Rl=Ge*365.25;Qi.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return xl(e);if(r==="number"&&isFinite(e))return t.long?bl(e):Al(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function xl(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Rl;case"weeks":case"week":case"w":return r*Cl;case"days":case"day":case"d":return r*Ge;case"hours":case"hour":case"hrs":case"hr":case"h":return r*tt;case"minutes":case"minute":case"mins":case"min":case"m":return r*et;case"seconds":case"second":case"secs":case"sec":case"s":return r*ze;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Al(e){var t=Math.abs(e);return t>=Ge?Math.round(e/Ge)+"d":t>=tt?Math.round(e/tt)+"h":t>=et?Math.round(e/et)+"m":t>=ze?Math.round(e/ze)+"s":e+"ms"}function bl(e){var t=Math.abs(e);return t>=Ge?Nt(e,t,Ge,"day"):t>=tt?Nt(e,t,tt,"hour"):t>=et?Nt(e,t,et,"minute"):t>=ze?Nt(e,t,ze,"second"):e+" ms"}function Nt(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var Mr=g((xg,Ji)=>{function Ol(e){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Xi(),r.destroy=m,Object.keys(e).forEach(a=>{r[a]=e[a]}),r.names=[],r.skips=[],r.formatters={};function t(a){let f=0;for(let l=0;l<a.length;l++)f=(f<<5)-f+a.charCodeAt(l),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=t;function r(a){let f,l=null,S,y;function _(...v){if(!_.enabled)return;let C=_,b=Number(new Date),F=b-(f||b);C.diff=F,C.prev=f,C.curr=b,f=b,v[0]=r.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let V=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(B,L)=>{if(B==="%%")return"%";V++;let x=r.formatters[L];if(typeof x=="function"){let w=v[V];B=x.call(C,w),v.splice(V,1),V--}return B}),r.formatArgs.call(C,v),(C.log||r.log).apply(C,v)}return _.namespace=a,_.useColors=r.useColors(),_.color=r.selectColor(a),_.extend=n,_.destroy=r.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>l!==null?l:(S!==r.namespaces&&(S=r.namespaces,y=r.enabled(a)),y),set:v=>{l=v}}),typeof r.init=="function"&&r.init(_),_}function n(a,f){let l=r(this.namespace+(typeof f>"u"?":":f)+a);return l.log=this.log,l}function i(a){r.save(a),r.namespaces=a,r.names=[],r.skips=[];let f,l=(typeof a=="string"?a:"").split(/[\s,]+/),S=l.length;for(f=0;f<S;f++)!l[f]||(a=l[f].replace(/\*/g,".*?"),a[0]==="-"?r.skips.push(new RegExp("^"+a.slice(1)+"$")):r.names.push(new RegExp("^"+a+"$")))}function s(){let a=[...r.names.map(u),...r.skips.map(u).map(f=>"-"+f)].join(",");return r.enable(""),a}function o(a){if(a[a.length-1]==="*")return!0;let f,l;for(f=0,l=r.skips.length;f<l;f++)if(r.skips[f].test(a))return!1;for(f=0,l=r.names.length;f<l;f++)if(r.names[f].test(a))return!0;return!1}function u(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}function c(a){return a instanceof Error?a.stack||a.message:a}function m(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Ji.exports=Ol});var Zi=g((he,It)=>{he.formatArgs=kl;he.save=Tl;he.load=Fl;he.useColors=Pl;he.storage=Ll();he.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();he.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Pl(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function kl(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+It.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}he.log=console.debug||console.log||(()=>{});function Tl(e){try{e?he.storage.setItem("debug",e):he.storage.removeItem("debug")}catch{}}function Fl(){let e;try{e=he.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Ll(){try{return localStorage}catch{}}It.exports=Mr()(he);var{formatters:Dl}=It.exports;Dl.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var es=g((Ag,zi)=>{"use strict";zi.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var rs=g((bg,ts)=>{"use strict";var ql=P("os"),Se=es(),te=process.env,rt;Se("no-color")||Se("no-colors")||Se("color=false")?rt=!1:(Se("color")||Se("colors")||Se("color=true")||Se("color=always"))&&(rt=!0);"FORCE_COLOR"in te&&(rt=te.FORCE_COLOR.length===0||parseInt(te.FORCE_COLOR,10)!==0);function $l(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Nl(e){if(rt===!1)return 0;if(Se("color=16m")||Se("color=full")||Se("color=truecolor"))return 3;if(Se("color=256"))return 2;if(e&&!e.isTTY&&rt!==!0)return 0;let t=rt?1:0;if(process.platform==="win32"){let r=ql.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in te)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in te)||te.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in te)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(te.TEAMCITY_VERSION)?1:0;if(te.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in te){let r=parseInt((te.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(te.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(te.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(te.TERM)||"COLORTERM"in te?1:(te.TERM==="dumb",t)}function Hr(e){let t=Nl(e);return $l(t)}ts.exports={supportsColor:Hr,stdout:Hr(process.stdout),stderr:Hr(process.stderr)}});var is=g((z,Ht)=>{var Il=P("tty"),Mt=P("util");z.init=Ul;z.log=jl;z.formatArgs=Hl;z.save=Wl;z.load=Gl;z.useColors=Ml;z.destroy=Mt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");z.colors=[6,2,3,4,5,1];try{let e=rs();e&&(e.stderr||e).level>=2&&(z.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}z.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function Ml(){return"colors"in z.inspectOpts?Boolean(z.inspectOpts.colors):Il.isatty(process.stderr.fd)}function Hl(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${t} \x1B[0m`;e[0]=s+e[0].split(`
2
2
  `).join(`
3
- `+s),e.push(i+"m+"+Ht.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Nl()+t+" "+e[0]}function Nl(){return z.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Il(...e){return process.stderr.write(Mt.format(...e)+`
4
- `)}function Ml(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Hl(){return process.env.DEBUG}function Bl(e){e.inspectOpts={};let t=Object.keys(z.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=z.inspectOpts[t[r]]}Ht.exports=Ir()(z);var{formatters:ts}=Ht.exports;ts.o=function(e){return this.inspectOpts.colors=this.useColors,Mt.inspect(e,this.inspectOpts).split(`
5
- `).map(t=>t.trim()).join(" ")};ts.O=function(e){return this.inspectOpts.colors=this.useColors,Mt.inspect(e,this.inspectOpts)}});var ns=g((Cg,Hr)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Hr.exports=Xi():Hr.exports=rs()});var ps=g(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.splitWhen=nt.flatten=void 0;function zl(e){return e.reduce((t,r)=>[].concat(t,r),[])}nt.flatten=zl;function ef(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}nt.splitWhen=ef});var hs=g(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.isEnoentCodeError=void 0;function tf(e){return e.code==="ENOENT"}Ut.isEnoentCodeError=tf});var ds=g(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.createDirentFromStats=void 0;var Ur=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function rf(e,t){return new Ur(e,t)}Vt.createDirentFromStats=rf});var ys=g(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.removeLeadingDotSegment=we.escape=we.makeAbsolute=we.unixify=void 0;var nf=P("path"),sf=2,of=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function uf(e){return e.replace(/\\/g,"/")}we.unixify=uf;function af(e,t){return nf.resolve(e,t)}we.makeAbsolute=af;function cf(e){return e.replace(of,"\\$2")}we.escape=cf;function lf(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(sf)}return e}we.removeLeadingDotSegment=lf});var gs=g((Ug,ms)=>{ms.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var vs=g((Vg,Ss)=>{var ff=gs(),_s={"{":"}","(":")","[":"]"},pf=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var u=e[t+1];t+=2;var c=_s[u];if(c){var m=e.indexOf(c,t);m!==-1&&(t=m+1)}if(e[t]==="!")return!0}else t++}return!1},hf=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=_s[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};Ss.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(ff(t))return!0;var n=pf;return r&&r.strict===!1&&(n=hf),n(t)}});var ws=g((Yg,Es)=>{"use strict";var df=vs(),yf=P("path").posix.dirname,mf=P("os").platform()==="win32",Vr="/",gf=/\\/g,_f=/[\{\[].*[\}\]]$/,Sf=/(^|[^\\])([\{\[]|\([^\)]+$)/,vf=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Es.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&mf&&t.indexOf(Vr)<0&&(t=t.replace(gf,Vr)),_f.test(t)&&(t+=Vr),t+="a";do t=yf(t);while(df(t)||Sf.test(t));return t.replace(vf,"$1")}});var Yt=g(me=>{"use strict";me.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;me.find=(e,t)=>e.nodes.find(r=>r.type===t);me.exceedsLimit=(e,t,r=1,n)=>n===!1||!me.isInteger(e)||!me.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;me.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};me.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;me.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;me.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;me.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);me.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var Kt=g((Qg,Rs)=>{"use strict";var Cs=Yt();Rs.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&Cs.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,u="";if(n.value)return(s||o)&&Cs.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)u+=r(c);return u};return r(e)}});var As=g((Xg,xs)=>{"use strict";xs.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var qs=g((Jg,Ds)=>{"use strict";var bs=As(),Ue=(e,t,r)=>{if(bs(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(bs(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n=N({relaxZeros:!0},r);typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),u=String(n.wrap),c=e+":"+t+"="+i+s+o+u;if(Ue.cache.hasOwnProperty(c))return Ue.cache[c].result;let m=Math.min(e,t),a=Math.max(e,t);if(Math.abs(m-a)===1){let _=e+"|"+t;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let f=Ls(e)||Ls(t),l={min:e,max:t,a:m,b:a},S=[],y=[];if(f&&(l.isPadded=f,l.maxLen=String(l.max).length),m<0){let _=a<0?Math.abs(a):1;y=Os(_,Math.abs(m),l,n),m=l.a=0}return a>=0&&(S=Os(m,a,l,n)),l.negatives=y,l.positives=S,l.result=Ef(y,S,n),n.capture===!0?l.result=`(${l.result})`:n.wrap!==!1&&S.length+y.length>1&&(l.result=`(?:${l.result})`),Ue.cache[c]=l,l.result};function Ef(e,t,r){let n=Yr(e,t,"-",!1,r)||[],i=Yr(t,e,"",!1,r)||[],s=Yr(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function wf(e,t){let r=1,n=1,i=ks(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=ks(e,r);for(i=Ts(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Ts(t+1,n)-1;return s=[...s],s.sort(xf),s}function Cf(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=Rf(e,t),i=n.length,s="",o=0;for(let u=0;u<i;u++){let[c,m]=n[u];c===m?s+=c:c!=="0"||m!=="9"?s+=Af(c,m,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Os(e,t,r,n){let i=wf(e,t),s=[],o=e,u;for(let c=0;c<i.length;c++){let m=i[c],a=Cf(String(o),String(m),n),f="";if(!r.isPadded&&u&&u.pattern===a.pattern){u.count.length>1&&u.count.pop(),u.count.push(a.count[0]),u.string=u.pattern+Fs(u.count),o=m+1;continue}r.isPadded&&(f=bf(m,r,n)),a.string=f+a.pattern+Fs(a.count),s.push(a),o=m+1,u=a}return s}function Yr(e,t,r,n,i){let s=[];for(let o of e){let{string:u}=o;!n&&!Ps(t,"string",u)&&s.push(r+u),n&&Ps(t,"string",u)&&s.push(r+u)}return s}function Rf(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function xf(e,t){return e>t?1:t>e?-1:0}function Ps(e,t,r){return e.some(n=>n[t]===r)}function ks(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Ts(e,t){return e-e%Math.pow(10,t)}function Fs(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function Af(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Ls(e){return/^-?(0+)\d/.test(e)}function bf(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Ue.cache={};Ue.clearCache=()=>Ue.cache={};Ds.exports=Ue});var Xr=g((Zg,Ws)=>{"use strict";var Of=P("util"),Is=qs(),$s=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Pf=e=>t=>e===!0?Number(t):String(t),Kr=e=>typeof e=="number"||typeof e=="string"&&e!=="",_t=e=>Number.isInteger(+e),Qr=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},kf=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Tf=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Ns=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},Ff=(e,t)=>{e.negatives.sort((o,u)=>o<u?-1:o>u?1:0),e.positives.sort((o,u)=>o<u?-1:o>u?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},Ms=(e,t,r,n)=>{if(r)return Is(e,t,N({wrap:!1},n));let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Hs=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Is(e,t,r)},Bs=(...e)=>new RangeError("Invalid range arguments: "+Of.inspect(...e)),js=(e,t,r)=>{if(r.strictRanges===!0)throw Bs([e,t]);return[]},Lf=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Df=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Bs([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,u=String(e),c=String(t),m=String(r);r=Math.max(Math.abs(r),1);let a=Qr(u)||Qr(c)||Qr(m),f=a?Math.max(u.length,c.length,m.length):0,l=a===!1&&kf(e,t,n)===!1,S=n.transform||Pf(l);if(n.toRegex&&r===1)return Ms(Ns(e,f),Ns(t,f),!0,n);let y={negatives:[],positives:[]},_=b=>y[b<0?"negatives":"positives"].push(Math.abs(b)),v=[],C=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):v.push(Tf(S(i,C),f,l)),i=o?i-r:i+r,C++;return n.toRegex===!0?r>1?Ff(y,n):Hs(v,null,N({wrap:!1},n)):v},qf=(e,t,r=1,n={})=>{if(!_t(e)&&e.length>1||!_t(t)&&t.length>1)return js(e,t,n);let i=n.transform||(l=>String.fromCharCode(l)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),u=s>o,c=Math.min(s,o),m=Math.max(s,o);if(n.toRegex&&r===1)return Ms(c,m,!1,n);let a=[],f=0;for(;u?s>=o:s<=o;)a.push(i(s,f)),s=u?s-r:s+r,f++;return n.toRegex===!0?Hs(a,null,{wrap:!1,options:n}):a},Qt=(e,t,r,n={})=>{if(t==null&&Kr(e))return[e];if(!Kr(e)||!Kr(t))return js(e,t,n);if(typeof r=="function")return Qt(e,t,1,{transform:r});if($s(r))return Qt(e,t,0,r);let i=N({},n);return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,_t(r)?_t(e)&&_t(t)?Df(e,t,r,i):qf(e,t,Math.max(Math.abs(r),1),i):r!=null&&!$s(r)?Lf(r,i):Qt(e,t,1,r)};Ws.exports=Qt});var Vs=g((zg,Us)=>{"use strict";var $f=Xr(),Gs=Yt(),Nf=(e,t={})=>{let r=(n,i={})=>{let s=Gs.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,u=s===!0||o===!0,c=t.escapeInvalid===!0?"\\":"",m="";if(n.isOpen===!0||n.isClose===!0)return c+n.value;if(n.type==="open")return u?c+n.value:"(";if(n.type==="close")return u?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":u?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let a=Gs.reduce(n.nodes),f=$f(...a,J(N({},t),{wrap:!1,toRegex:!0}));if(f.length!==0)return a.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let a of n.nodes)m+=r(a,n);return m};return r(e)};Us.exports=Nf});var Qs=g((e_,Ks)=>{"use strict";var If=Xr(),Ys=Kt(),it=Yt(),Ve=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?it.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Ve(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Ve(i,s,r):i+s);return it.flatten(n)},Mf=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,u=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,u=o.queue;if(i.invalid||i.dollar){u.push(Ve(u.pop(),Ys(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){u.push(Ve(u.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=it.reduce(i.nodes);if(it.exceedsLimit(...f,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let l=If(...f,t);l.length===0&&(l=Ys(i,t)),u.push(Ve(u.pop(),l)),i.nodes=[];return}let c=it.encloseBrace(i),m=i.queue,a=i;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,m=a.queue;for(let f=0;f<i.nodes.length;f++){let l=i.nodes[f];if(l.type==="comma"&&i.type==="brace"){f===1&&m.push(""),m.push("");continue}if(l.type==="close"){u.push(Ve(u.pop(),m,c));continue}if(l.value&&l.type!=="open"){m.push(Ve(m.pop(),l.value));continue}l.nodes&&n(l,i)}return m};return it.flatten(n(e))};Ks.exports=Mf});var Js=g((t_,Xs)=>{"use strict";Xs.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
6
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var ro=g((r_,to)=>{"use strict";var Hf=Kt(),{MAX_LENGTH:Zs,CHAR_BACKSLASH:Jr,CHAR_BACKTICK:Bf,CHAR_COMMA:jf,CHAR_DOT:Wf,CHAR_LEFT_PARENTHESES:Gf,CHAR_RIGHT_PARENTHESES:Uf,CHAR_LEFT_CURLY_BRACE:Vf,CHAR_RIGHT_CURLY_BRACE:Yf,CHAR_LEFT_SQUARE_BRACKET:zs,CHAR_RIGHT_SQUARE_BRACKET:eo,CHAR_DOUBLE_QUOTE:Kf,CHAR_SINGLE_QUOTE:Qf,CHAR_NO_BREAK_SPACE:Xf,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Jf}=Js(),Zf=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Zs,r.maxLength):Zs;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,u=i,c=0,m=e.length,a=0,f=0,l,S={},y=()=>e[a++],_=v=>{if(v.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&v.type==="text"){u.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=u,u=v,v};for(_({type:"bos"});a<m;)if(o=s[s.length-1],l=y(),!(l===Jf||l===Xf)){if(l===Jr){_({type:"text",value:(t.keepEscaping?l:"")+y()});continue}if(l===eo){_({type:"text",value:"\\"+l});continue}if(l===zs){c++;let v=!0,C;for(;a<m&&(C=y());){if(l+=C,C===zs){c++;continue}if(C===Jr){l+=y();continue}if(C===eo&&(c--,c===0))break}_({type:"text",value:l});continue}if(l===Gf){o=_({type:"paren",nodes:[]}),s.push(o),_({type:"text",value:l});continue}if(l===Uf){if(o.type!=="paren"){_({type:"text",value:l});continue}o=s.pop(),_({type:"text",value:l}),o=s[s.length-1];continue}if(l===Kf||l===Qf||l===Bf){let v=l,C;for(t.keepQuotes!==!0&&(l="");a<m&&(C=y());){if(C===Jr){l+=C+y();continue}if(C===v){t.keepQuotes===!0&&(l+=C);break}l+=C}_({type:"text",value:l});continue}if(l===Vf){f++;let v=u.value&&u.value.slice(-1)==="$"||o.dollar===!0;o=_({type:"brace",open:!0,close:!1,dollar:v,depth:f,commas:0,ranges:0,nodes:[]}),s.push(o),_({type:"open",value:l});continue}if(l===Yf){if(o.type!=="brace"){_({type:"text",value:l});continue}let v="close";o=s.pop(),o.close=!0,_({type:v,value:l}),f--,o=s[s.length-1];continue}if(l===jf&&f>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:Hf(o)}]}_({type:"comma",value:l}),o.commas++;continue}if(l===Wf&&f>0&&o.commas===0){let v=o.nodes;if(f===0||v.length===0){_({type:"text",value:l});continue}if(u.type==="dot"){if(o.range=[],u.value+=l,u.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,u.type="text";continue}o.ranges++,o.args=[];continue}if(u.type==="range"){v.pop();let C=v[v.length-1];C.value+=u.value+l,u=C,o.ranges--;continue}_({type:"dot",value:l});continue}_({type:"text",value:l})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(b=>{b.nodes||(b.type==="open"&&(b.isOpen=!0),b.type==="close"&&(b.isClose=!0),b.nodes||(b.type="text"),b.invalid=!0)});let v=s[s.length-1],C=v.nodes.indexOf(o);v.nodes.splice(C,1,...o.nodes)}while(s.length>0);return _({type:"eos"}),i};to.exports=Zf});var so=g((n_,io)=>{"use strict";var no=Kt(),zf=Vs(),ep=Qs(),tp=ro(),de=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=de.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(de.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};de.parse=(e,t={})=>tp(e,t);de.stringify=(e,t={})=>no(typeof e=="string"?de.parse(e,t):e,t);de.compile=(e,t={})=>(typeof e=="string"&&(e=de.parse(e,t)),zf(e,t));de.expand=(e,t={})=>{typeof e=="string"&&(e=de.parse(e,t));let r=ep(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};de.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?de.compile(e,t):de.expand(e,t);io.exports=de});var St=g((i_,lo)=>{"use strict";var rp=P("path"),Ce="\\\\/",oo=`[^${Ce}]`,Oe="\\.",np="\\+",ip="\\?",Xt="\\/",sp="(?=.)",uo="[^/]",Zr=`(?:${Xt}|$)`,ao=`(?:^|${Xt})`,zr=`${Oe}{1,2}${Zr}`,op=`(?!${Oe})`,up=`(?!${ao}${zr})`,ap=`(?!${Oe}{0,1}${Zr})`,cp=`(?!${zr})`,lp=`[^.${Xt}]`,fp=`${uo}*?`,co={DOT_LITERAL:Oe,PLUS_LITERAL:np,QMARK_LITERAL:ip,SLASH_LITERAL:Xt,ONE_CHAR:sp,QMARK:uo,END_ANCHOR:Zr,DOTS_SLASH:zr,NO_DOT:op,NO_DOTS:up,NO_DOT_SLASH:ap,NO_DOTS_SLASH:cp,QMARK_NO_DOT:lp,STAR:fp,START_ANCHOR:ao},pp=J(N({},co),{SLASH_LITERAL:`[${Ce}]`,QMARK:oo,STAR:`${oo}*?`,DOTS_SLASH:`${Oe}{1,2}(?:[${Ce}]|$)`,NO_DOT:`(?!${Oe})`,NO_DOTS:`(?!(?:^|[${Ce}])${Oe}{1,2}(?:[${Ce}]|$))`,NO_DOT_SLASH:`(?!${Oe}{0,1}(?:[${Ce}]|$))`,NO_DOTS_SLASH:`(?!${Oe}{1,2}(?:[${Ce}]|$))`,QMARK_NO_DOT:`[^.${Ce}]`,START_ANCHOR:`(?:^|[${Ce}])`,END_ANCHOR:`(?:[${Ce}]|$)`}),hp={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};lo.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:hp,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:rp.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?pp:co}}});var vt=g(ae=>{"use strict";var dp=P("path"),yp=process.platform==="win32",{REGEX_BACKSLASH:mp,REGEX_REMOVE_BACKSLASH:gp,REGEX_SPECIAL_CHARS:_p,REGEX_SPECIAL_CHARS_GLOBAL:Sp}=St();ae.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ae.hasRegexChars=e=>_p.test(e);ae.isRegexChar=e=>e.length===1&&ae.hasRegexChars(e);ae.escapeRegex=e=>e.replace(Sp,"\\$1");ae.toPosixSlashes=e=>e.replace(mp,"/");ae.removeBackslashes=e=>e.replace(gp,t=>t==="\\"?"":t);ae.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ae.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:yp===!0||dp.sep==="\\";ae.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ae.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ae.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ae.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var So=g((o_,_o)=>{"use strict";var fo=vt(),{CHAR_ASTERISK:en,CHAR_AT:vp,CHAR_BACKWARD_SLASH:Et,CHAR_COMMA:Ep,CHAR_DOT:tn,CHAR_EXCLAMATION_MARK:rn,CHAR_FORWARD_SLASH:go,CHAR_LEFT_CURLY_BRACE:nn,CHAR_LEFT_PARENTHESES:sn,CHAR_LEFT_SQUARE_BRACKET:wp,CHAR_PLUS:Cp,CHAR_QUESTION_MARK:po,CHAR_RIGHT_CURLY_BRACE:Rp,CHAR_RIGHT_PARENTHESES:ho,CHAR_RIGHT_SQUARE_BRACKET:xp}=St(),yo=e=>e===go||e===Et,mo=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Ap=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],u=[],c=e,m=-1,a=0,f=0,l=!1,S=!1,y=!1,_=!1,v=!1,C=!1,b=!1,F=!1,V=!1,$=!1,B=0,L,x,w={value:"",depth:0,isGlob:!1},O=()=>m>=n,d=()=>c.charCodeAt(m+1),D=()=>(L=x,c.charCodeAt(++m));for(;m<n;){x=D();let q;if(x===Et){b=w.backslashes=!0,x=D(),x===nn&&(C=!0);continue}if(C===!0||x===nn){for(B++;O()!==!0&&(x=D());){if(x===Et){b=w.backslashes=!0,D();continue}if(x===nn){B++;continue}if(C!==!0&&x===tn&&(x=D())===tn){if(l=w.isBrace=!0,y=w.isGlob=!0,$=!0,i===!0)continue;break}if(C!==!0&&x===Ep){if(l=w.isBrace=!0,y=w.isGlob=!0,$=!0,i===!0)continue;break}if(x===Rp&&(B--,B===0)){C=!1,l=w.isBrace=!0,$=!0;break}}if(i===!0)continue;break}if(x===go){if(s.push(m),o.push(w),w={value:"",depth:0,isGlob:!1},$===!0)continue;if(L===tn&&m===a+1){a+=2;continue}f=m+1;continue}if(r.noext!==!0&&(x===Cp||x===vp||x===en||x===po||x===rn)===!0&&d()===sn){if(y=w.isGlob=!0,_=w.isExtglob=!0,$=!0,x===rn&&m===a&&(V=!0),i===!0){for(;O()!==!0&&(x=D());){if(x===Et){b=w.backslashes=!0,x=D();continue}if(x===ho){y=w.isGlob=!0,$=!0;break}}continue}break}if(x===en){if(L===en&&(v=w.isGlobstar=!0),y=w.isGlob=!0,$=!0,i===!0)continue;break}if(x===po){if(y=w.isGlob=!0,$=!0,i===!0)continue;break}if(x===wp){for(;O()!==!0&&(q=D());){if(q===Et){b=w.backslashes=!0,D();continue}if(q===xp){S=w.isBracket=!0,y=w.isGlob=!0,$=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&x===rn&&m===a){F=w.negated=!0,a++;continue}if(r.noparen!==!0&&x===sn){if(y=w.isGlob=!0,i===!0){for(;O()!==!0&&(x=D());){if(x===sn){b=w.backslashes=!0,x=D();continue}if(x===ho){$=!0;break}}continue}break}if(y===!0){if($=!0,i===!0)continue;break}}r.noext===!0&&(_=!1,y=!1);let T=c,j="",p="";a>0&&(j=c.slice(0,a),c=c.slice(a),f-=a),T&&y===!0&&f>0?(T=c.slice(0,f),p=c.slice(f)):y===!0?(T="",p=c):T=c,T&&T!==""&&T!=="/"&&T!==c&&yo(T.charCodeAt(T.length-1))&&(T=T.slice(0,-1)),r.unescape===!0&&(p&&(p=fo.removeBackslashes(p)),T&&b===!0&&(T=fo.removeBackslashes(T)));let h={prefix:j,input:e,start:a,base:T,glob:p,isBrace:l,isBracket:S,isGlob:y,isExtglob:_,isGlobstar:v,negated:F,negatedExtglob:V};if(r.tokens===!0&&(h.maxDepth=0,yo(x)||o.push(w),h.tokens=o),r.parts===!0||r.tokens===!0){let q;for(let A=0;A<s.length;A++){let H=q?q+1:a,_e=s[A],pe=e.slice(H,_e);r.tokens&&(A===0&&a!==0?(o[A].isPrefix=!0,o[A].value=j):o[A].value=pe,mo(o[A]),h.maxDepth+=o[A].depth),(A!==0||pe!=="")&&u.push(pe),q=_e}if(q&&q+1<e.length){let A=e.slice(q+1);u.push(A),r.tokens&&(o[o.length-1].value=A,mo(o[o.length-1]),h.maxDepth+=o[o.length-1].depth)}h.slashes=s,h.parts=u}return h};_o.exports=Ap});var wo=g((u_,Eo)=>{"use strict";var Jt=St(),ye=vt(),{MAX_LENGTH:Zt,POSIX_REGEX_SOURCE:bp,REGEX_NON_SPECIAL_CHARS:Op,REGEX_SPECIAL_CHARS_BACKREF:Pp,REPLACEMENTS:vo}=Jt,kp=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>ye.escapeRegex(i)).join("..")}return r},st=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,on=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=vo[e]||e;let r=N({},t),n=typeof r.maxLength=="number"?Math.min(Zt,r.maxLength):Zt,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],u=r.capture?"":"?:",c=ye.isWindows(t),m=Jt.globChars(c),a=Jt.extglobChars(m),{DOT_LITERAL:f,PLUS_LITERAL:l,SLASH_LITERAL:S,ONE_CHAR:y,DOTS_SLASH:_,NO_DOT:v,NO_DOT_SLASH:C,NO_DOTS_SLASH:b,QMARK:F,QMARK_NO_DOT:V,STAR:$,START_ANCHOR:B}=m,L=R=>`(${u}(?:(?!${B}${R.dot?_:f}).)*?)`,x=r.dot?"":v,w=r.dot?F:V,O=r.bash===!0?L(r):$;r.capture&&(O=`(${O})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let d={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=ye.removePrefix(e,d),i=e.length;let D=[],T=[],j=[],p=s,h,q=()=>d.index===i-1,A=d.peek=(R=1)=>e[d.index+R],H=d.advance=()=>e[++d.index]||"",_e=()=>e.slice(d.index+1),pe=(R="",G=0)=>{d.consumed+=R,d.index+=G},Ft=R=>{d.output+=R.output!=null?R.output:R.value,pe(R.value)},dl=()=>{let R=1;for(;A()==="!"&&(A(2)!=="("||A(3)==="?");)H(),d.start++,R++;return R%2===0?!1:(d.negated=!0,d.start++,!0)},Lt=R=>{d[R]++,j.push(R)},We=R=>{d[R]--,j.pop()},M=R=>{if(p.type==="globstar"){let G=d.braces>0&&(R.type==="comma"||R.type==="brace"),E=R.extglob===!0||D.length&&(R.type==="pipe"||R.type==="paren");R.type!=="slash"&&R.type!=="paren"&&!G&&!E&&(d.output=d.output.slice(0,-p.output.length),p.type="star",p.value="*",p.output=O,d.output+=p.output)}if(D.length&&R.type!=="paren"&&(D[D.length-1].inner+=R.value),(R.value||R.output)&&Ft(R),p&&p.type==="text"&&R.type==="text"){p.value+=R.value,p.output=(p.output||"")+R.value;return}R.prev=p,o.push(R),p=R},Dt=(R,G)=>{let E=J(N({},a[G]),{conditions:1,inner:""});E.prev=p,E.parens=d.parens,E.output=d.output;let I=(r.capture?"(":"")+E.open;Lt("parens"),M({type:R,value:G,output:d.output?"":y}),M({type:"paren",extglob:!0,value:H(),output:I}),D.push(E)},yl=R=>{let G=R.close+(r.capture?")":""),E;if(R.type==="negate"){let I=O;if(R.inner&&R.inner.length>1&&R.inner.includes("/")&&(I=L(r)),(I!==O||q()||/^\)+$/.test(_e()))&&(G=R.close=`)$))${I}`),R.inner.includes("*")&&(E=_e())&&/^\.[^\\/.]+$/.test(E)){let Y=on(E,J(N({},t),{fastpaths:!1})).output;G=R.close=`)${Y})${I})`}R.prev.type==="bos"&&(d.negatedExtglob=!0)}M({type:"paren",extglob:!0,value:h,output:G}),We("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let R=!1,G=e.replace(Pp,(E,I,Y,se,X,qr)=>se==="\\"?(R=!0,E):se==="?"?I?I+se+(X?F.repeat(X.length):""):qr===0?w+(X?F.repeat(X.length):""):F.repeat(Y.length):se==="."?f.repeat(Y.length):se==="*"?I?I+se+(X?O:""):O:I?E:`\\${E}`);return R===!0&&(r.unescape===!0?G=G.replace(/\\/g,""):G=G.replace(/\\+/g,E=>E.length%2===0?"\\\\":E?"\\":"")),G===e&&r.contains===!0?(d.output=e,d):(d.output=ye.wrapOutput(G,d,t),d)}for(;!q();){if(h=H(),h==="\0")continue;if(h==="\\"){let E=A();if(E==="/"&&r.bash!==!0||E==="."||E===";")continue;if(!E){h+="\\",M({type:"text",value:h});continue}let I=/^\\+/.exec(_e()),Y=0;if(I&&I[0].length>2&&(Y=I[0].length,d.index+=Y,Y%2!==0&&(h+="\\")),r.unescape===!0?h=H():h+=H(),d.brackets===0){M({type:"text",value:h});continue}}if(d.brackets>0&&(h!=="]"||p.value==="["||p.value==="[^")){if(r.posix!==!1&&h===":"){let E=p.value.slice(1);if(E.includes("[")&&(p.posix=!0,E.includes(":"))){let I=p.value.lastIndexOf("["),Y=p.value.slice(0,I),se=p.value.slice(I+2),X=bp[se];if(X){p.value=Y+X,d.backtrack=!0,H(),!s.output&&o.indexOf(p)===1&&(s.output=y);continue}}}(h==="["&&A()!==":"||h==="-"&&A()==="]")&&(h=`\\${h}`),h==="]"&&(p.value==="["||p.value==="[^")&&(h=`\\${h}`),r.posix===!0&&h==="!"&&p.value==="["&&(h="^"),p.value+=h,Ft({value:h});continue}if(d.quotes===1&&h!=='"'){h=ye.escapeRegex(h),p.value+=h,Ft({value:h});continue}if(h==='"'){d.quotes=d.quotes===1?0:1,r.keepQuotes===!0&&M({type:"text",value:h});continue}if(h==="("){Lt("parens"),M({type:"paren",value:h});continue}if(h===")"){if(d.parens===0&&r.strictBrackets===!0)throw new SyntaxError(st("opening","("));let E=D[D.length-1];if(E&&d.parens===E.parens+1){yl(D.pop());continue}M({type:"paren",value:h,output:d.parens?")":"\\)"}),We("parens");continue}if(h==="["){if(r.nobracket===!0||!_e().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(st("closing","]"));h=`\\${h}`}else Lt("brackets");M({type:"bracket",value:h});continue}if(h==="]"){if(r.nobracket===!0||p&&p.type==="bracket"&&p.value.length===1){M({type:"text",value:h,output:`\\${h}`});continue}if(d.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(st("opening","["));M({type:"text",value:h,output:`\\${h}`});continue}We("brackets");let E=p.value.slice(1);if(p.posix!==!0&&E[0]==="^"&&!E.includes("/")&&(h=`/${h}`),p.value+=h,Ft({value:h}),r.literalBrackets===!1||ye.hasRegexChars(E))continue;let I=ye.escapeRegex(p.value);if(d.output=d.output.slice(0,-p.value.length),r.literalBrackets===!0){d.output+=I,p.value=I;continue}p.value=`(${u}${I}|${p.value})`,d.output+=p.value;continue}if(h==="{"&&r.nobrace!==!0){Lt("braces");let E={type:"brace",value:h,output:"(",outputIndex:d.output.length,tokensIndex:d.tokens.length};T.push(E),M(E);continue}if(h==="}"){let E=T[T.length-1];if(r.nobrace===!0||!E){M({type:"text",value:h,output:h});continue}let I=")";if(E.dots===!0){let Y=o.slice(),se=[];for(let X=Y.length-1;X>=0&&(o.pop(),Y[X].type!=="brace");X--)Y[X].type!=="dots"&&se.unshift(Y[X].value);I=kp(se,r),d.backtrack=!0}if(E.comma!==!0&&E.dots!==!0){let Y=d.output.slice(0,E.outputIndex),se=d.tokens.slice(E.tokensIndex);E.value=E.output="\\{",h=I="\\}",d.output=Y;for(let X of se)d.output+=X.output||X.value}M({type:"brace",value:h,output:I}),We("braces"),T.pop();continue}if(h==="|"){D.length>0&&D[D.length-1].conditions++,M({type:"text",value:h});continue}if(h===","){let E=h,I=T[T.length-1];I&&j[j.length-1]==="braces"&&(I.comma=!0,E="|"),M({type:"comma",value:h,output:E});continue}if(h==="/"){if(p.type==="dot"&&d.index===d.start+1){d.start=d.index+1,d.consumed="",d.output="",o.pop(),p=s;continue}M({type:"slash",value:h,output:S});continue}if(h==="."){if(d.braces>0&&p.type==="dot"){p.value==="."&&(p.output=f);let E=T[T.length-1];p.type="dots",p.output+=h,p.value+=h,E.dots=!0;continue}if(d.braces+d.parens===0&&p.type!=="bos"&&p.type!=="slash"){M({type:"text",value:h,output:f});continue}M({type:"dot",value:h,output:f});continue}if(h==="?"){if(!(p&&p.value==="(")&&r.noextglob!==!0&&A()==="("&&A(2)!=="?"){Dt("qmark",h);continue}if(p&&p.type==="paren"){let I=A(),Y=h;if(I==="<"&&!ye.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(p.value==="("&&!/[!=<:]/.test(I)||I==="<"&&!/<([!=]|\w+>)/.test(_e()))&&(Y=`\\${h}`),M({type:"text",value:h,output:Y});continue}if(r.dot!==!0&&(p.type==="slash"||p.type==="bos")){M({type:"qmark",value:h,output:V});continue}M({type:"qmark",value:h,output:F});continue}if(h==="!"){if(r.noextglob!==!0&&A()==="("&&(A(2)!=="?"||!/[!=<:]/.test(A(3)))){Dt("negate",h);continue}if(r.nonegate!==!0&&d.index===0){dl();continue}}if(h==="+"){if(r.noextglob!==!0&&A()==="("&&A(2)!=="?"){Dt("plus",h);continue}if(p&&p.value==="("||r.regex===!1){M({type:"plus",value:h,output:l});continue}if(p&&(p.type==="bracket"||p.type==="paren"||p.type==="brace")||d.parens>0){M({type:"plus",value:h});continue}M({type:"plus",value:l});continue}if(h==="@"){if(r.noextglob!==!0&&A()==="("&&A(2)!=="?"){M({type:"at",extglob:!0,value:h,output:""});continue}M({type:"text",value:h});continue}if(h!=="*"){(h==="$"||h==="^")&&(h=`\\${h}`);let E=Op.exec(_e());E&&(h+=E[0],d.index+=E[0].length),M({type:"text",value:h});continue}if(p&&(p.type==="globstar"||p.star===!0)){p.type="star",p.star=!0,p.value+=h,p.output=O,d.backtrack=!0,d.globstar=!0,pe(h);continue}let R=_e();if(r.noextglob!==!0&&/^\([^?]/.test(R)){Dt("star",h);continue}if(p.type==="star"){if(r.noglobstar===!0){pe(h);continue}let E=p.prev,I=E.prev,Y=E.type==="slash"||E.type==="bos",se=I&&(I.type==="star"||I.type==="globstar");if(r.bash===!0&&(!Y||R[0]&&R[0]!=="/")){M({type:"star",value:h,output:""});continue}let X=d.braces>0&&(E.type==="comma"||E.type==="brace"),qr=D.length&&(E.type==="pipe"||E.type==="paren");if(!Y&&E.type!=="paren"&&!X&&!qr){M({type:"star",value:h,output:""});continue}for(;R.slice(0,3)==="/**";){let qt=e[d.index+4];if(qt&&qt!=="/")break;R=R.slice(3),pe("/**",3)}if(E.type==="bos"&&q()){p.type="globstar",p.value+=h,p.output=L(r),d.output=p.output,d.globstar=!0,pe(h);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&!se&&q()){d.output=d.output.slice(0,-(E.output+p.output).length),E.output=`(?:${E.output}`,p.type="globstar",p.output=L(r)+(r.strictSlashes?")":"|$)"),p.value+=h,d.globstar=!0,d.output+=E.output+p.output,pe(h);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&R[0]==="/"){let qt=R[1]!==void 0?"|$":"";d.output=d.output.slice(0,-(E.output+p.output).length),E.output=`(?:${E.output}`,p.type="globstar",p.output=`${L(r)}${S}|${S}${qt})`,p.value+=h,d.output+=E.output+p.output,d.globstar=!0,pe(h+H()),M({type:"slash",value:"/",output:""});continue}if(E.type==="bos"&&R[0]==="/"){p.type="globstar",p.value+=h,p.output=`(?:^|${S}|${L(r)}${S})`,d.output=p.output,d.globstar=!0,pe(h+H()),M({type:"slash",value:"/",output:""});continue}d.output=d.output.slice(0,-p.output.length),p.type="globstar",p.output=L(r),p.value+=h,d.output+=p.output,d.globstar=!0,pe(h);continue}let G={type:"star",value:h,output:O};if(r.bash===!0){G.output=".*?",(p.type==="bos"||p.type==="slash")&&(G.output=x+G.output),M(G);continue}if(p&&(p.type==="bracket"||p.type==="paren")&&r.regex===!0){G.output=h,M(G);continue}(d.index===d.start||p.type==="slash"||p.type==="dot")&&(p.type==="dot"?(d.output+=C,p.output+=C):r.dot===!0?(d.output+=b,p.output+=b):(d.output+=x,p.output+=x),A()!=="*"&&(d.output+=y,p.output+=y)),M(G)}for(;d.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(st("closing","]"));d.output=ye.escapeLast(d.output,"["),We("brackets")}for(;d.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(st("closing",")"));d.output=ye.escapeLast(d.output,"("),We("parens")}for(;d.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(st("closing","}"));d.output=ye.escapeLast(d.output,"{"),We("braces")}if(r.strictSlashes!==!0&&(p.type==="star"||p.type==="bracket")&&M({type:"maybe_slash",value:"",output:`${S}?`}),d.backtrack===!0){d.output="";for(let R of d.tokens)d.output+=R.output!=null?R.output:R.value,R.suffix&&(d.output+=R.suffix)}return d};on.fastpaths=(e,t)=>{let r=N({},t),n=typeof r.maxLength=="number"?Math.min(Zt,r.maxLength):Zt,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=vo[e]||e;let s=ye.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:c,DOTS_SLASH:m,NO_DOT:a,NO_DOTS:f,NO_DOTS_SLASH:l,STAR:S,START_ANCHOR:y}=Jt.globChars(s),_=r.dot?f:a,v=r.dot?l:a,C=r.capture?"":"?:",b={negated:!1,prefix:""},F=r.bash===!0?".*?":S;r.capture&&(F=`(${F})`);let V=x=>x.noglobstar===!0?F:`(${C}(?:(?!${y}${x.dot?m:o}).)*?)`,$=x=>{switch(x){case"*":return`${_}${c}${F}`;case".*":return`${o}${c}${F}`;case"*.*":return`${_}${F}${o}${c}${F}`;case"*/*":return`${_}${F}${u}${c}${v}${F}`;case"**":return _+V(r);case"**/*":return`(?:${_}${V(r)}${u})?${v}${c}${F}`;case"**/*.*":return`(?:${_}${V(r)}${u})?${v}${F}${o}${c}${F}`;case"**/.*":return`(?:${_}${V(r)}${u})?${o}${c}${F}`;default:{let w=/^(.*?)\.(\w+)$/.exec(x);if(!w)return;let O=$(w[1]);return O?O+o+w[2]:void 0}}},B=ye.removePrefix(e,b),L=$(B);return L&&r.strictSlashes!==!0&&(L+=`${u}?`),L};Eo.exports=on});var Ro=g((a_,Co)=>{"use strict";var Tp=P("path"),Fp=So(),un=wo(),an=vt(),Lp=St(),Dp=e=>e&&typeof e=="object"&&!Array.isArray(e),Q=(e,t,r=!1)=>{if(Array.isArray(e)){let a=e.map(l=>Q(l,t,r));return l=>{for(let S of a){let y=S(l);if(y)return y}return!1}}let n=Dp(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=an.isWindows(t),o=n?Q.compileRe(e,t):Q.makeRe(e,t,!1,!0),u=o.state;delete o.state;let c=()=>!1;if(i.ignore){let a=J(N({},t),{ignore:null,onMatch:null,onResult:null});c=Q(i.ignore,a,r)}let m=(a,f=!1)=>{let{isMatch:l,match:S,output:y}=Q.test(a,o,t,{glob:e,posix:s}),_={glob:e,state:u,regex:o,posix:s,input:a,output:y,match:S,isMatch:l};return typeof i.onResult=="function"&&i.onResult(_),l===!1?(_.isMatch=!1,f?_:!1):c(a)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,f?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),f?_:!0)};return r&&(m.state=u),m};Q.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?an.toPosixSlashes:null),u=e===n,c=u&&o?o(e):e;return u===!1&&(c=o?o(e):e,u=c===n),(u===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?u=Q.matchBase(e,t,r,i):u=t.exec(c)),{isMatch:Boolean(u),match:u,output:c}};Q.matchBase=(e,t,r,n=an.isWindows(r))=>(t instanceof RegExp?t:Q.makeRe(t,r)).test(Tp.basename(e));Q.isMatch=(e,t,r)=>Q(t,r)(e);Q.parse=(e,t)=>Array.isArray(e)?e.map(r=>Q.parse(r,t)):un(e,J(N({},t),{fastpaths:!1}));Q.scan=(e,t)=>Fp(e,t);Q.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",u=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(u=`^(?!${u}).*$`);let c=Q.toRegex(u,t);return n===!0&&(c.state=e),c};Q.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=un.fastpaths(e,t)),i.output||(i=un(e,t)),Q.compileRe(i,t,r,n)};Q.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Q.constants=Lp;Co.exports=Q});var Ao=g((c_,xo)=>{"use strict";xo.exports=Ro()});var To=g((l_,ko)=>{"use strict";var Oo=P("util"),Po=so(),Re=Ao(),cn=vt(),bo=e=>e===""||e==="./",U=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,u=a=>{s.add(a.output),r&&r.onResult&&r.onResult(a)};for(let a=0;a<t.length;a++){let f=Re(String(t[a]),J(N({},r),{onResult:u}),!0),l=f.state.negated||f.state.negatedExtglob;l&&o++;for(let S of e){let y=f(S,!0);!(l?!y.isMatch:y.isMatch)||(l?n.add(y.output):(n.delete(y.output),i.add(y.output)))}}let m=(o===t.length?[...s]:[...i]).filter(a=>!n.has(a));if(r&&m.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(a=>a.replace(/\\/g,"")):t}return m};U.match=U;U.matcher=(e,t)=>Re(e,t);U.isMatch=(e,t,r)=>Re(t,r)(e);U.any=U.isMatch;U.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=u=>{r.onResult&&r.onResult(u),i.push(u.output)},o=new Set(U(e,t,J(N({},r),{onResult:s})));for(let u of i)o.has(u)||n.add(u);return[...n]};U.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Oo.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>U.contains(e,n,r));if(typeof t=="string"){if(bo(e)||bo(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return U.isMatch(e,t,J(N({},r),{contains:!0}))};U.matchKeys=(e,t,r)=>{if(!cn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=U(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};U.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Re(String(i),r);if(n.some(o=>s(o)))return!0}return!1};U.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Re(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};U.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Oo.inspect(e)}"`);return[].concat(t).every(n=>Re(n,r)(e))};U.capture=(e,t,r)=>{let n=cn.isWindows(r),s=Re.makeRe(String(e),J(N({},r),{capture:!0})).exec(n?cn.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};U.makeRe=(...e)=>Re.makeRe(...e);U.scan=(...e)=>Re.scan(...e);U.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of Po(String(n),t))r.push(Re.parse(i,t));return r};U.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:Po(e,t)};U.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return U.braces(e,J(N({},t),{expand:!0}))};ko.exports=U});var Mo=g(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.matchAny=k.convertPatternsToRe=k.makeRe=k.getPatternParts=k.expandBraceExpansion=k.expandPatternsWithBraceExpansion=k.isAffectDepthOfReadingPattern=k.endsWithSlashGlobStar=k.hasGlobStar=k.getBaseDirectory=k.isPatternRelatedToParentDirectory=k.getPatternsOutsideCurrentDirectory=k.getPatternsInsideCurrentDirectory=k.getPositivePatterns=k.getNegativePatterns=k.isPositivePattern=k.isNegativePattern=k.convertToNegativePattern=k.convertToPositivePattern=k.isDynamicPattern=k.isStaticPattern=void 0;var qp=P("path"),$p=ws(),ln=To(),Fo="**",Np="\\",Ip=/[*?]|^!/,Mp=/\[[^[]*]/,Hp=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Bp=/[!*+?@]\([^(]*\)/,jp=/,|\.\./;function Lo(e,t={}){return!Do(e,t)}k.isStaticPattern=Lo;function Do(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Np)||Ip.test(e)||Mp.test(e)||Hp.test(e)||t.extglob!==!1&&Bp.test(e)||t.braceExpansion!==!1&&Wp(e))}k.isDynamicPattern=Do;function Wp(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return jp.test(n)}function Gp(e){return zt(e)?e.slice(1):e}k.convertToPositivePattern=Gp;function Up(e){return"!"+e}k.convertToNegativePattern=Up;function zt(e){return e.startsWith("!")&&e[1]!=="("}k.isNegativePattern=zt;function qo(e){return!zt(e)}k.isPositivePattern=qo;function Vp(e){return e.filter(zt)}k.getNegativePatterns=Vp;function Yp(e){return e.filter(qo)}k.getPositivePatterns=Yp;function Kp(e){return e.filter(t=>!fn(t))}k.getPatternsInsideCurrentDirectory=Kp;function Qp(e){return e.filter(fn)}k.getPatternsOutsideCurrentDirectory=Qp;function fn(e){return e.startsWith("..")||e.startsWith("./..")}k.isPatternRelatedToParentDirectory=fn;function Xp(e){return $p(e,{flipBackslashes:!1})}k.getBaseDirectory=Xp;function Jp(e){return e.includes(Fo)}k.hasGlobStar=Jp;function $o(e){return e.endsWith("/"+Fo)}k.endsWithSlashGlobStar=$o;function Zp(e){let t=qp.basename(e);return $o(e)||Lo(t)}k.isAffectDepthOfReadingPattern=Zp;function zp(e){return e.reduce((t,r)=>t.concat(No(r)),[])}k.expandPatternsWithBraceExpansion=zp;function No(e){return ln.braces(e,{expand:!0,nodupes:!0})}k.expandBraceExpansion=No;function eh(e,t){let{parts:r}=ln.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}k.getPatternParts=eh;function Io(e,t){return ln.makeRe(e,t)}k.makeRe=Io;function th(e,t){return e.map(r=>Io(r,t))}k.convertPatternsToRe=th;function rh(e,t){return t.some(r=>r.test(e))}k.matchAny=rh});var Wo=g((p_,jo)=>{"use strict";var nh=P("stream"),Ho=nh.PassThrough,ih=Array.prototype.slice;jo.exports=sh;function sh(){let e=[],t=ih.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=Ho(n);function u(){for(let a=0,f=arguments.length;a<f;a++)e.push(Bo(arguments[a],n));return c(),this}function c(){if(r)return;r=!0;let a=e.shift();if(!a){process.nextTick(m);return}Array.isArray(a)||(a=[a]);let f=a.length+1;function l(){--f>0||(r=!1,c())}function S(y){function _(){y.removeListener("merge2UnpipeEnd",_),y.removeListener("end",_),s&&y.removeListener("error",v),l()}function v(C){o.emit("error",C)}if(y._readableState.endEmitted)return l();y.on("merge2UnpipeEnd",_),y.on("end",_),s&&y.on("error",v),y.pipe(o,{end:!1}),y.resume()}for(let y=0;y<a.length;y++)S(a[y]);l()}function m(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=u,o.on("unpipe",function(a){a.emit("merge2UnpipeEnd")}),t.length&&u.apply(null,t),o}function Bo(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=Bo(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Ho(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Uo=g(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.merge=void 0;var oh=Wo();function uh(e){let t=oh(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Go(e)),t.once("end",()=>Go(e)),t}er.merge=uh;function Go(e){e.forEach(t=>t.emit("close"))}});var Vo=g(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.isEmpty=ot.isString=void 0;function ah(e){return typeof e=="string"}ot.isString=ah;function ch(e){return e===""}ot.isEmpty=ch});var Pe=g(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.string=re.stream=re.pattern=re.path=re.fs=re.errno=re.array=void 0;var lh=ps();re.array=lh;var fh=hs();re.errno=fh;var ph=ds();re.fs=ph;var hh=ys();re.path=hh;var dh=Mo();re.pattern=dh;var yh=Uo();re.stream=yh;var mh=Vo();re.string=mh});var Qo=g(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.convertPatternGroupToTask=ne.convertPatternGroupsToTasks=ne.groupPatternsByBaseDirectory=ne.getNegativePatternsAsPositive=ne.getPositivePatterns=ne.convertPatternsToTasks=ne.generate=void 0;var ke=Pe();function gh(e,t){let r=Yo(e),n=Ko(e,t.ignore),i=r.filter(c=>ke.pattern.isStaticPattern(c,t)),s=r.filter(c=>ke.pattern.isDynamicPattern(c,t)),o=pn(i,n,!1),u=pn(s,n,!0);return o.concat(u)}ne.generate=gh;function pn(e,t,r){let n=[],i=ke.pattern.getPatternsOutsideCurrentDirectory(e),s=ke.pattern.getPatternsInsideCurrentDirectory(e),o=hn(i),u=hn(s);return n.push(...dn(o,t,r)),"."in u?n.push(yn(".",s,t,r)):n.push(...dn(u,t,r)),n}ne.convertPatternsToTasks=pn;function Yo(e){return ke.pattern.getPositivePatterns(e)}ne.getPositivePatterns=Yo;function Ko(e,t){return ke.pattern.getNegativePatterns(e).concat(t).map(ke.pattern.convertToPositivePattern)}ne.getNegativePatternsAsPositive=Ko;function hn(e){let t={};return e.reduce((r,n)=>{let i=ke.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}ne.groupPatternsByBaseDirectory=hn;function dn(e,t,r){return Object.keys(e).map(n=>yn(n,e[n],t,r))}ne.convertPatternGroupsToTasks=dn;function yn(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(ke.pattern.convertToNegativePattern))}}ne.convertPatternGroupToTask=yn});var Jo=g(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.removeDuplicateSlashes=ut.transform=void 0;var _h=/(?!^)\/{2,}/g;function Sh(e){return e.map(t=>Xo(t))}ut.transform=Sh;function Xo(e){return e.replace(_h,"/")}ut.removeDuplicateSlashes=Xo});var zo=g(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.read=void 0;function vh(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){Zo(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){mn(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Zo(r,s);return}mn(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),mn(r,o)})})}tr.read=vh;function Zo(e,t){e(t)}function mn(e,t){e(null,t)}});var eu=g(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.read=void 0;function Eh(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}rr.read=Eh});var tu=g(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.createFileSystemAdapter=Te.FILE_SYSTEM_ADAPTER=void 0;var nr=P("fs");Te.FILE_SYSTEM_ADAPTER={lstat:nr.lstat,stat:nr.stat,lstatSync:nr.lstatSync,statSync:nr.statSync};function wh(e){return e===void 0?Te.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Te.FILE_SYSTEM_ADAPTER),e)}Te.createFileSystemAdapter=wh});var ru=g(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});var Ch=tu(),gn=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Ch.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};_n.default=gn});var Ye=g(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.statSync=Fe.stat=Fe.Settings=void 0;var nu=zo(),Rh=eu(),Sn=ru();Fe.Settings=Sn.default;function xh(e,t,r){if(typeof t=="function"){nu.read(e,vn(),t);return}nu.read(e,vn(t),r)}Fe.stat=xh;function Ah(e,t){let r=vn(t);return Rh.read(e,r)}Fe.statSync=Ah;function vn(e={}){return e instanceof Sn.default?e:new Sn.default(e)}});var ou=g((C_,su)=>{var iu;su.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(iu||(iu=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var au=g((R_,uu)=>{uu.exports=Oh;var bh=ou();function Oh(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(c){function m(){t&&t(c,r),t=null}s?bh(m):m()}function u(c,m,a){r[c]=a,(--n===0||m)&&o(m)}n?i?i.forEach(function(c){e[c](function(m,a){u(c,m,a)})}):e.forEach(function(c,m){c(function(a,f){u(m,a,f)})}):o(null),s=!1}});var En=g(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var ir=process.versions.node.split(".");if(ir[0]===void 0||ir[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var cu=Number.parseInt(ir[0],10),Ph=Number.parseInt(ir[1],10),lu=10,kh=10,Th=cu>lu,Fh=cu===lu&&Ph>=kh;sr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Th||Fh});var fu=g(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.createDirentFromStats=void 0;var wn=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Lh(e,t){return new wn(e,t)}or.createDirentFromStats=Lh});var Cn=g(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.fs=void 0;var Dh=fu();ur.fs=Dh});var Rn=g(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.joinPathSegments=void 0;function qh(e,t,r){return e.endsWith(r)?e+t:e+r+t}ar.joinPathSegments=qh});var gu=g(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.readdir=Le.readdirWithFileTypes=Le.read=void 0;var $h=Ye(),pu=au(),Nh=En(),hu=Cn(),du=Rn();function Ih(e,t,r){if(!t.stats&&Nh.IS_SUPPORT_READDIR_WITH_FILE_TYPES){yu(e,t,r);return}mu(e,t,r)}Le.read=Ih;function yu(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){cr(r,n);return}let s=i.map(u=>({dirent:u,name:u.name,path:du.joinPathSegments(e,u.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){xn(r,s);return}let o=s.map(u=>Mh(u,t));pu(o,(u,c)=>{if(u!==null){cr(r,u);return}xn(r,c)})})}Le.readdirWithFileTypes=yu;function Mh(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=hu.fs.createDirentFromStats(e.name,i),r(null,e)})}}function mu(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){cr(r,n);return}let s=i.map(o=>{let u=du.joinPathSegments(e,o,t.pathSegmentSeparator);return c=>{$h.stat(u,t.fsStatSettings,(m,a)=>{if(m!==null){c(m);return}let f={name:o,path:u,dirent:hu.fs.createDirentFromStats(o,a)};t.stats&&(f.stats=a),c(null,f)})}});pu(s,(o,u)=>{if(o!==null){cr(r,o);return}xn(r,u)})})}Le.readdir=mu;function cr(e,t){e(t)}function xn(e,t){e(null,t)}});var wu=g(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.readdir=De.readdirWithFileTypes=De.read=void 0;var Hh=Ye(),Bh=En(),_u=Cn(),Su=Rn();function jh(e,t){return!t.stats&&Bh.IS_SUPPORT_READDIR_WITH_FILE_TYPES?vu(e,t):Eu(e,t)}De.read=jh;function vu(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Su.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=_u.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}De.readdirWithFileTypes=vu;function Eu(e,t){return t.fs.readdirSync(e).map(n=>{let i=Su.joinPathSegments(e,n,t.pathSegmentSeparator),s=Hh.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:_u.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}De.readdir=Eu});var Cu=g(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.createFileSystemAdapter=qe.FILE_SYSTEM_ADAPTER=void 0;var at=P("fs");qe.FILE_SYSTEM_ADAPTER={lstat:at.lstat,stat:at.stat,lstatSync:at.lstatSync,statSync:at.statSync,readdir:at.readdir,readdirSync:at.readdirSync};function Wh(e){return e===void 0?qe.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},qe.FILE_SYSTEM_ADAPTER),e)}qe.createFileSystemAdapter=Wh});var Ru=g(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});var Gh=P("path"),Uh=Ye(),Vh=Cu(),An=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Vh.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Gh.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Uh.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};bn.default=An});var lr=g($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.Settings=$e.scandirSync=$e.scandir=void 0;var xu=gu(),Yh=wu(),On=Ru();$e.Settings=On.default;function Kh(e,t,r){if(typeof t=="function"){xu.read(e,Pn(),t);return}xu.read(e,Pn(t),r)}$e.scandir=Kh;function Qh(e,t){let r=Pn(t);return Yh.read(e,r)}$e.scandirSync=Qh;function Pn(e={}){return e instanceof On.default?e:new On.default(e)}});var bu=g((D_,Au)=>{"use strict";function Xh(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Au.exports=Xh});var Pu=g((q_,kn)=>{"use strict";var Jh=bu();function Ou(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=Jh(Zh),i=null,s=null,o=0,u=null,c={push:_,drain:ge,saturated:ge,pause:a,paused:!1,concurrency:r,running:m,resume:S,idle:y,length:f,getQueue:l,unshift:v,empty:ge,kill:b,killAndDrain:F,error:V};return c;function m(){return o}function a(){c.paused=!0}function f(){for(var $=i,B=0;$;)$=$.next,B++;return B}function l(){for(var $=i,B=[];$;)B.push($.value),$=$.next;return B}function S(){if(!!c.paused){c.paused=!1;for(var $=0;$<c.concurrency;$++)o++,C()}}function y(){return o===0&&c.length()===0}function _($,B){var L=n.get();L.context=e,L.release=C,L.value=$,L.callback=B||ge,L.errorHandler=u,o===c.concurrency||c.paused?s?(s.next=L,s=L):(i=L,s=L,c.saturated()):(o++,t.call(e,L.value,L.worked))}function v($,B){var L=n.get();L.context=e,L.release=C,L.value=$,L.callback=B||ge,o===c.concurrency||c.paused?i?(L.next=i,i=L):(i=L,s=L,c.saturated()):(o++,t.call(e,L.value,L.worked))}function C($){$&&n.release($);var B=i;B?c.paused?o--:(s===i&&(s=null),i=B.next,B.next=null,t.call(e,B.value,B.worked),s===null&&c.empty()):--o===0&&c.drain()}function b(){i=null,s=null,c.drain=ge}function F(){i=null,s=null,c.drain(),c.drain=ge}function V($){u=$}}function ge(){}function Zh(){this.value=null,this.callback=ge,this.next=null,this.release=ge,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=ge,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function zh(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(a,f){t.call(this,a).then(function(l){f(null,l)},f)}var i=Ou(e,n,r),s=i.push,o=i.unshift;return i.push=u,i.unshift=c,i.drained=m,i;function u(a){var f=new Promise(function(l,S){s(a,function(y,_){if(y){S(y);return}l(_)})});return f.catch(ge),f}function c(a){var f=new Promise(function(l,S){o(a,function(y,_){if(y){S(y);return}l(_)})});return f.catch(ge),f}function m(){var a=i.drain,f=new Promise(function(l){i.drain=function(){a(),l()}});return f}}kn.exports=Ou;kn.exports.promise=zh});var fr=g(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.joinPathSegments=xe.replacePathSegmentSeparator=xe.isAppliedFilter=xe.isFatalError=void 0;function ed(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}xe.isFatalError=ed;function td(e,t){return e===null||e(t)}xe.isAppliedFilter=td;function rd(e,t){return e.split(/[/\\]/).join(t)}xe.replacePathSegmentSeparator=rd;function nd(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}xe.joinPathSegments=nd});var Ln=g(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});var id=fr(),Tn=class{constructor(t,r){this._root=t,this._settings=r,this._root=id.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Fn.default=Tn});var $n=g(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});var sd=P("events"),od=lr(),ud=Pu(),pr=fr(),ad=Ln(),Dn=class extends ad.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=od.scandir,this._emitter=new sd.EventEmitter,this._queue=ud(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!pr.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=pr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),pr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&pr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};qn.default=Dn});var ku=g(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});var cd=$n(),Nn=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new cd.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{ld(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{fd(t,this._storage)}),this._reader.read()}};In.default=Nn;function ld(e,t){e(t)}function fd(e,t){e(null,t)}});var Tu=g(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});var pd=P("stream"),hd=$n(),Mn=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new hd.default(this._root,this._settings),this._stream=new pd.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Hn.default=Mn});var Fu=g(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});var dd=lr(),hr=fr(),yd=Ln(),Bn=class extends yd.default{constructor(){super(...arguments),this._scandir=dd.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(!!hr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=hr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),hr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&hr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};jn.default=Bn});var Lu=g(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});var md=Fu(),Wn=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new md.default(this._root,this._settings)}read(){return this._reader.read()}};Gn.default=Wn});var Du=g(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});var gd=P("path"),_d=lr(),Un=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,gd.sep),this.fsScandirSettings=new _d.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Vn.default=Un});var Kn=g(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Settings=Ae.walkStream=Ae.walkSync=Ae.walk=void 0;var qu=ku(),Sd=Tu(),vd=Lu(),Yn=Du();Ae.Settings=Yn.default;function Ed(e,t,r){if(typeof t=="function"){new qu.default(e,dr()).read(t);return}new qu.default(e,dr(t)).read(r)}Ae.walk=Ed;function wd(e,t){let r=dr(t);return new vd.default(e,r).read()}Ae.walkSync=wd;function Cd(e,t){let r=dr(t);return new Sd.default(e,r).read()}Ae.walkStream=Cd;function dr(e={}){return e instanceof Yn.default?e:new Yn.default(e)}});var Jn=g(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});var Rd=P("path"),xd=Ye(),$u=Pe(),Qn=class{constructor(t){this._settings=t,this._fsStatSettings=new xd.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return Rd.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:$u.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!$u.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Xn.default=Qn});var ei=g(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});var Ad=P("stream"),bd=Ye(),Od=Kn(),Pd=Jn(),Zn=class extends Pd.default{constructor(){super(...arguments),this._walkStream=Od.walkStream,this._stat=bd.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new Ad.PassThrough({objectMode:!0});i._write=(s,o,u)=>this._getEntry(n[s],t[s],r).then(c=>{c!==null&&r.entryFilter(c)&&i.push(c),s===n.length-1&&i.end(),u()}).catch(u);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};zn.default=Zn});var Nu=g(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});var ct=Pe(),ti=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=ct.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(t){return ct.pattern.getPatternParts(t,this._micromatchOptions).map(n=>ct.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:ct.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return ct.array.splitWhen(t,r=>r.dynamic&&ct.pattern.hasGlobStar(r.pattern))}};ri.default=ti});var Iu=g(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});var kd=Nu(),ni=class extends kd.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((c,m)=>{let a=s.segments[m];return!!(a.dynamic&&a.patternRe.test(c)||!a.dynamic&&a.pattern===c)}))return!0}return!1}};ii.default=ni});var Mu=g(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});var yr=Pe(),Td=Iu(),si=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new Td.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(yr.pattern.isAffectDepthOfReadingPattern);return yr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=yr.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!yr.pattern.matchAny(t,r)}};oi.default=si});var Hu=g(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});var Ke=Pe(),ui=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=Ke.pattern.convertPatternsToRe(t,this._micromatchOptions),i=Ke.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=this._isMatchToPatterns(i,r)&&!this._isMatchToPatterns(t.path,n);return this._settings.unique&&s&&this._createIndexRecord(t),s}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=Ke.path.makeAbsolute(this._settings.cwd,t);return Ke.pattern.matchAny(n,r)}_isMatchToPatterns(t,r){let n=Ke.path.removeLeadingDotSegment(t);return Ke.pattern.matchAny(n,r)||Ke.pattern.matchAny(n+"/",r)}};ai.default=ui});var Bu=g(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var Fd=Pe(),ci=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Fd.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};li.default=ci});var Wu=g(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});var ju=Pe(),fi=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=ju.path.makeAbsolute(this._settings.cwd,r),r=ju.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};pi.default=fi});var mr=g(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});var Ld=P("path"),Dd=Mu(),qd=Hu(),$d=Bu(),Nd=Wu(),hi=class{constructor(t){this._settings=t,this.errorFilter=new $d.default(this._settings),this.entryFilter=new qd.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Dd.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Nd.default(this._settings)}_getRootDirectory(t){return Ld.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};di.default=hi});var Gu=g(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});var Id=ei(),Md=mr(),yi=class extends Md.default{constructor(){super(...arguments),this._reader=new Id.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=[];return new Promise((s,o)=>{let u=this.api(r,t,n);u.once("error",o),u.on("data",c=>i.push(n.transform(c))),u.once("end",()=>s(i))})}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};mi.default=yi});var Uu=g(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});var Hd=P("stream"),Bd=ei(),jd=mr(),gi=class extends jd.default{constructor(){super(...arguments),this._reader=new Bd.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new Hd.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};_i.default=gi});var Vu=g(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});var Wd=Ye(),Gd=Kn(),Ud=Jn(),Si=class extends Ud.default{constructor(){super(...arguments),this._walkSync=Gd.walkSync,this._statSync=Wd.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};vi.default=Si});var Yu=g(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});var Vd=Vu(),Yd=mr(),Ei=class extends Yd.default{constructor(){super(...arguments),this._reader=new Vd.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};wi.default=Ei});var Ku=g(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var lt=P("fs"),Kd=P("os"),Qd=Math.max(Kd.cpus().length,1);ft.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:lt.lstat,lstatSync:lt.lstatSync,stat:lt.stat,statSync:lt.statSync,readdir:lt.readdir,readdirSync:lt.readdirSync};var Ci=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Qd),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},ft.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};ft.default=Ci});var Zu=g((sS,Ju)=>{"use strict";var Qu=Qo(),Xu=Jo(),Xd=Gu(),Jd=Uu(),Zd=Yu(),Ri=Ku(),Qe=Pe();async function xi(e,t){pt(e);let r=Ai(e,Xd.default,t),n=await Promise.all(r);return Qe.array.flatten(n)}(function(e){function t(o,u){pt(o);let c=Ai(o,Zd.default,u);return Qe.array.flatten(c)}e.sync=t;function r(o,u){pt(o);let c=Ai(o,Jd.default,u);return Qe.stream.merge(c)}e.stream=r;function n(o,u){pt(o);let c=Xu.transform([].concat(o)),m=new Ri.default(u);return Qu.generate(c,m)}e.generateTasks=n;function i(o,u){pt(o);let c=new Ri.default(u);return Qe.pattern.isDynamicPattern(o,c)}e.isDynamicPattern=i;function s(o){return pt(o),Qe.path.escape(o)}e.escapePath=s})(xi||(xi={}));function Ai(e,t,r){let n=Xu.transform([].concat(e)),i=new Ri.default(r),s=Qu.generate(n,i),o=new t(i);return s.map(o.read,o)}function pt(e){if(![].concat(e).every(n=>Qe.string.isString(n)&&!Qe.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Ju.exports=xi});var ce=g(bi=>{"use strict";bi.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,s)=>i!=null?n(i):r(s))})},"name",{value:e.name})};bi.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var ea=g((uS,zu)=>{var Ne=P("constants"),zd=process.cwd,gr=null,ey=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return gr||(gr=zd.call(process)),gr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Oi=process.chdir,process.chdir=function(e){gr=null,Oi.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Oi));var Oi;zu.exports=ty;function ty(e){Ne.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(a,f,l){l&&process.nextTick(l)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(a,f,l,S){S&&process.nextTick(S)},e.lchownSync=function(){}),ey==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(a){function f(l,S,y){var _=Date.now(),v=0;a(l,S,function C(b){if(b&&(b.code==="EACCES"||b.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){e.stat(S,function(F,V){F&&F.code==="ENOENT"?a(l,S,C):y(b)})},v),v<100&&(v+=10);return}y&&y(b)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,a),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(a){function f(l,S,y,_,v,C){var b;if(C&&typeof C=="function"){var F=0;b=function(V,$,B){if(V&&V.code==="EAGAIN"&&F<10)return F++,a.call(e,l,S,y,_,v,b);C.apply(this,arguments)}}return a.call(e,l,S,y,_,v,b)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,a),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(a){return function(f,l,S,y,_){for(var v=0;;)try{return a.call(e,f,l,S,y,_)}catch(C){if(C.code==="EAGAIN"&&v<10){v++;continue}throw C}}}(e.readSync);function t(a){a.lchmod=function(f,l,S){a.open(f,Ne.O_WRONLY|Ne.O_SYMLINK,l,function(y,_){if(y){S&&S(y);return}a.fchmod(_,l,function(v){a.close(_,function(C){S&&S(v||C)})})})},a.lchmodSync=function(f,l){var S=a.openSync(f,Ne.O_WRONLY|Ne.O_SYMLINK,l),y=!0,_;try{_=a.fchmodSync(S,l),y=!1}finally{if(y)try{a.closeSync(S)}catch{}else a.closeSync(S)}return _}}function r(a){Ne.hasOwnProperty("O_SYMLINK")&&a.futimes?(a.lutimes=function(f,l,S,y){a.open(f,Ne.O_SYMLINK,function(_,v){if(_){y&&y(_);return}a.futimes(v,l,S,function(C){a.close(v,function(b){y&&y(C||b)})})})},a.lutimesSync=function(f,l,S){var y=a.openSync(f,Ne.O_SYMLINK),_,v=!0;try{_=a.futimesSync(y,l,S),v=!1}finally{if(v)try{a.closeSync(y)}catch{}else a.closeSync(y)}return _}):a.futimes&&(a.lutimes=function(f,l,S,y){y&&process.nextTick(y)},a.lutimesSync=function(){})}function n(a){return a&&function(f,l,S){return a.call(e,f,l,function(y){m(y)&&(y=null),S&&S.apply(this,arguments)})}}function i(a){return a&&function(f,l){try{return a.call(e,f,l)}catch(S){if(!m(S))throw S}}}function s(a){return a&&function(f,l,S,y){return a.call(e,f,l,S,function(_){m(_)&&(_=null),y&&y.apply(this,arguments)})}}function o(a){return a&&function(f,l,S){try{return a.call(e,f,l,S)}catch(y){if(!m(y))throw y}}}function u(a){return a&&function(f,l,S){typeof l=="function"&&(S=l,l=null);function y(_,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),S&&S.apply(this,arguments)}return l?a.call(e,f,l,y):a.call(e,f,y)}}function c(a){return a&&function(f,l){var S=l?a.call(e,f,l):a.call(e,f);return S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),S}}function m(a){if(!a||a.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(a.code==="EINVAL"||a.code==="EPERM"))}}});var na=g((aS,ra)=>{var ta=P("stream").Stream;ra.exports=ry;function ry(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);ta.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),u=0,c=o.length;u<c;u++){var m=o[u];this[m]=i[m]}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}e.open(this.path,this.flags,this.mode,function(a,f){if(a){s.emit("error",a),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);ta.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,u=s.length;o<u;o++){var c=s[o];this[c]=i[c]}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=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var sa=g((cS,ia)=>{"use strict";ia.exports=iy;var ny=Object.getPrototypeOf||function(e){return e.__proto__};function iy(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:ny(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var oe=g((lS,Ti)=>{var K=P("fs"),sy=ea(),oy=na(),uy=sa(),_r=P("util"),ee,vr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ee=Symbol.for("graceful-fs.queue"),vr=Symbol.for("graceful-fs.previous")):(ee="___graceful-fs.queue",vr="___graceful-fs.previous");function ay(){}function aa(e,t){Object.defineProperty(e,ee,{get:function(){return t}})}var Xe=ay;_r.debuglog?Xe=_r.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Xe=function(){var e=_r.format.apply(_r,arguments);e="GFS4: "+e.split(/\n/).join(`
7
- GFS4: `),console.error(e)});K[ee]||(oa=global[ee]||[],aa(K,oa),K.close=function(e){function t(r,n){return e.call(K,r,function(i){i||ua(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,vr,{value:e}),t}(K.close),K.closeSync=function(e){function t(r){e.apply(K,arguments),ua()}return Object.defineProperty(t,vr,{value:e}),t}(K.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Xe(K[ee]),P("assert").equal(K[ee].length,0)}));var oa;global[ee]||aa(global,K[ee]);Ti.exports=Pi(uy(K));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!K.__patched&&(Ti.exports=Pi(K),K.__patched=!0);function Pi(e){sy(e),e.gracefulify=Pi,e.createReadStream=$,e.createWriteStream=B;var t=e.readFile;e.readFile=r;function r(w,O,d){return typeof O=="function"&&(d=O,O=null),D(w,O,d);function D(T,j,p,h){return t(T,j,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?ht([D,[T,j,p],q,h||Date.now(),Date.now()]):typeof p=="function"&&p.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(w,O,d,D){return typeof d=="function"&&(D=d,d=null),T(w,O,d,D);function T(j,p,h,q,A){return n(j,p,h,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?ht([T,[j,p,h,q],H,A||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(w,O,d,D){return typeof d=="function"&&(D=d,d=null),T(w,O,d,D);function T(j,p,h,q,A){return s(j,p,h,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?ht([T,[j,p,h,q],H,A||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var u=e.copyFile;u&&(e.copyFile=c);function c(w,O,d,D){return typeof d=="function"&&(D=d,d=0),T(w,O,d,D);function T(j,p,h,q,A){return u(j,p,h,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?ht([T,[j,p,h,q],H,A||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var m=e.readdir;e.readdir=f;var a=/^v[0-5]\./;function f(w,O,d){typeof O=="function"&&(d=O,O=null);var D=a.test(process.version)?function(p,h,q,A){return m(p,T(p,h,q,A))}:function(p,h,q,A){return m(p,h,T(p,h,q,A))};return D(w,O,d);function T(j,p,h,q){return function(A,H){A&&(A.code==="EMFILE"||A.code==="ENFILE")?ht([D,[j,p,h],A,q||Date.now(),Date.now()]):(H&&H.sort&&H.sort(),typeof h=="function"&&h.call(this,A,H))}}}if(process.version.substr(0,4)==="v0.8"){var l=oy(e);C=l.ReadStream,F=l.WriteStream}var S=e.ReadStream;S&&(C.prototype=Object.create(S.prototype),C.prototype.open=b);var y=e.WriteStream;y&&(F.prototype=Object.create(y.prototype),F.prototype.open=V),Object.defineProperty(e,"ReadStream",{get:function(){return C},set:function(w){C=w},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return F},set:function(w){F=w},enumerable:!0,configurable:!0});var _=C;Object.defineProperty(e,"FileReadStream",{get:function(){return _},set:function(w){_=w},enumerable:!0,configurable:!0});var v=F;Object.defineProperty(e,"FileWriteStream",{get:function(){return v},set:function(w){v=w},enumerable:!0,configurable:!0});function C(w,O){return this instanceof C?(S.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function b(){var w=this;x(w.path,w.flags,w.mode,function(O,d){O?(w.autoClose&&w.destroy(),w.emit("error",O)):(w.fd=d,w.emit("open",d),w.read())})}function F(w,O){return this instanceof F?(y.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function V(){var w=this;x(w.path,w.flags,w.mode,function(O,d){O?(w.destroy(),w.emit("error",O)):(w.fd=d,w.emit("open",d))})}function $(w,O){return new e.ReadStream(w,O)}function B(w,O){return new e.WriteStream(w,O)}var L=e.open;e.open=x;function x(w,O,d,D){return typeof d=="function"&&(D=d,d=null),T(w,O,d,D);function T(j,p,h,q,A){return L(j,p,h,function(H,_e){H&&(H.code==="EMFILE"||H.code==="ENFILE")?ht([T,[j,p,h,q],H,A||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}return e}function ht(e){Xe("ENQUEUE",e[0].name,e[1]),K[ee].push(e),ki()}var Sr;function ua(){for(var e=Date.now(),t=0;t<K[ee].length;++t)K[ee][t].length>2&&(K[ee][t][3]=e,K[ee][t][4]=e);ki()}function ki(){if(clearTimeout(Sr),Sr=void 0,K[ee].length!==0){var e=K[ee].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)Xe("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Xe("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var u=Date.now()-s,c=Math.max(s-i,1),m=Math.min(c*1.2,100);u>=m?(Xe("RETRY",t.name,r),t.apply(null,r.concat([i]))):K[ee].push(e)}Sr===void 0&&(Sr=setTimeout(ki,0))}}});var Je=g(Ie=>{"use strict";var ca=ce().fromCallback,le=oe(),cy=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof le[e]=="function");Object.assign(Ie,le);cy.forEach(e=>{Ie[e]=ca(le[e])});Ie.exists=function(e,t){return typeof t=="function"?le.exists(e,t):new Promise(r=>le.exists(e,r))};Ie.read=function(e,t,r,n,i,s){return typeof s=="function"?le.read(e,t,r,n,i,s):new Promise((o,u)=>{le.read(e,t,r,n,i,(c,m,a)=>{if(c)return u(c);o({bytesRead:m,buffer:a})})})};Ie.write=function(e,t,...r){return typeof r[r.length-1]=="function"?le.write(e,t,...r):new Promise((n,i)=>{le.write(e,t,...r,(s,o,u)=>{if(s)return i(s);n({bytesWritten:o,buffer:u})})})};typeof le.writev=="function"&&(Ie.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?le.writev(e,t,...r):new Promise((n,i)=>{le.writev(e,t,...r,(s,o,u)=>{if(s)return i(s);n({bytesWritten:o,buffers:u})})})});typeof le.realpath.native=="function"?Ie.realpath.native=ca(le.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var fa=g((pS,la)=>{"use strict";var ly=P("path");la.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(ly.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var ya=g((hS,Fi)=>{"use strict";var pa=Je(),{checkPath:ha}=fa(),da=e=>{let t={mode:511};return typeof e=="number"?e:N(N({},t),e).mode};Fi.exports.makeDir=async(e,t)=>(ha(e),pa.mkdir(e,{mode:da(t),recursive:!0}));Fi.exports.makeDirSync=(e,t)=>(ha(e),pa.mkdirSync(e,{mode:da(t),recursive:!0}))});var ve=g((dS,ma)=>{"use strict";var fy=ce().fromPromise,{makeDir:py,makeDirSync:Li}=ya(),Di=fy(py);ma.exports={mkdirs:Di,mkdirsSync:Li,mkdirp:Di,mkdirpSync:Li,ensureDir:Di,ensureDirSync:Li}});var Me=g((yS,_a)=>{"use strict";var hy=ce().fromPromise,ga=Je();function dy(e){return ga.access(e).then(()=>!0).catch(()=>!1)}_a.exports={pathExists:hy(dy),pathExistsSync:ga.existsSync}});var qi=g((mS,Sa)=>{"use strict";var dt=oe();function yy(e,t,r,n){dt.open(e,"r+",(i,s)=>{if(i)return n(i);dt.futimes(s,t,r,o=>{dt.close(s,u=>{n&&n(o||u)})})})}function my(e,t,r){let n=dt.openSync(e,"r+");return dt.futimesSync(n,t,r),dt.closeSync(n)}Sa.exports={utimesMillis:yy,utimesMillisSync:my}});var Ze=g((gS,wa)=>{"use strict";var yt=Je(),Z=P("path"),gy=P("util");function _y(e,t,r){let n=r.dereference?i=>yt.stat(i,{bigint:!0}):i=>yt.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,s])=>({srcStat:i,destStat:s}))}function Sy(e,t,r){let n,i=r.dereference?o=>yt.statSync(o,{bigint:!0}):o=>yt.lstatSync(o,{bigint:!0}),s=i(e);try{n=i(t)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:n}}function vy(e,t,r,n,i){gy.callbackify(_y)(e,t,n,(s,o)=>{if(s)return i(s);let{srcStat:u,destStat:c}=o;if(c){if(wt(u,c)){let m=Z.basename(e),a=Z.basename(t);return r==="move"&&m!==a&&m.toLowerCase()===a.toLowerCase()?i(null,{srcStat:u,destStat:c,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(u.isDirectory()&&!c.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!u.isDirectory()&&c.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return u.isDirectory()&&$i(e,t)?i(new Error(Er(e,t,r))):i(null,{srcStat:u,destStat:c})})}function Ey(e,t,r,n){let{srcStat:i,destStat:s}=Sy(e,t,n);if(s){if(wt(i,s)){let o=Z.basename(e),u=Z.basename(t);if(r==="move"&&o!==u&&o.toLowerCase()===u.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&$i(e,t))throw new Error(Er(e,t,r));return{srcStat:i,destStat:s}}function va(e,t,r,n,i){let s=Z.resolve(Z.dirname(e)),o=Z.resolve(Z.dirname(r));if(o===s||o===Z.parse(o).root)return i();yt.stat(o,{bigint:!0},(u,c)=>u?u.code==="ENOENT"?i():i(u):wt(t,c)?i(new Error(Er(e,r,n))):va(e,t,o,n,i))}function Ea(e,t,r,n){let i=Z.resolve(Z.dirname(e)),s=Z.resolve(Z.dirname(r));if(s===i||s===Z.parse(s).root)return;let o;try{o=yt.statSync(s,{bigint:!0})}catch(u){if(u.code==="ENOENT")return;throw u}if(wt(t,o))throw new Error(Er(e,r,n));return Ea(e,t,s,n)}function wt(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function $i(e,t){let r=Z.resolve(e).split(Z.sep).filter(i=>i),n=Z.resolve(t).split(Z.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Er(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}wa.exports={checkPaths:vy,checkPathsSync:Ey,checkParentPaths:va,checkParentPathsSync:Ea,isSrcSubdir:$i,areIdentical:wt}});var ka=g((_S,Pa)=>{"use strict";var fe=oe(),Ct=P("path"),wy=ve().mkdirs,Cy=Me().pathExists,Ry=qi().utimesMillis,Rt=Ze();function xy(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
3
+ `+s),e.push(i+"m+"+Ht.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Bl()+t+" "+e[0]}function Bl(){return z.inspectOpts.hideDate?"":new Date().toISOString()+" "}function jl(...e){return process.stderr.write(Mt.format(...e)+`
4
+ `)}function Wl(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Gl(){return process.env.DEBUG}function Ul(e){e.inspectOpts={};let t=Object.keys(z.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=z.inspectOpts[t[r]]}Ht.exports=Mr()(z);var{formatters:ns}=Ht.exports;ns.o=function(e){return this.inspectOpts.colors=this.useColors,Mt.inspect(e,this.inspectOpts).split(`
5
+ `).map(t=>t.trim()).join(" ")};ns.O=function(e){return this.inspectOpts.colors=this.useColors,Mt.inspect(e,this.inspectOpts)}});var ss=g((Og,Br)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Br.exports=Zi():Br.exports=is()});var ds=g(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.splitWhen=nt.flatten=void 0;function rf(e){return e.reduce((t,r)=>[].concat(t,r),[])}nt.flatten=rf;function nf(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}nt.splitWhen=nf});var ys=g(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.isEnoentCodeError=void 0;function sf(e){return e.code==="ENOENT"}Ut.isEnoentCodeError=sf});var ms=g(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.createDirentFromStats=void 0;var Yr=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function of(e,t){return new Yr(e,t)}Vt.createDirentFromStats=of});var gs=g(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.removeLeadingDotSegment=we.escape=we.makeAbsolute=we.unixify=void 0;var uf=P("path"),af=2,cf=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function lf(e){return e.replace(/\\/g,"/")}we.unixify=lf;function ff(e,t){return uf.resolve(e,t)}we.makeAbsolute=ff;function pf(e){return e.replace(cf,"\\$2")}we.escape=pf;function hf(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(af)}return e}we.removeLeadingDotSegment=hf});var Ss=g((Xg,_s)=>{_s.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var ws=g((Jg,Es)=>{var df=Ss(),vs={"{":"}","(":")","[":"]"},yf=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var u=e[t+1];t+=2;var c=vs[u];if(c){var m=e.indexOf(c,t);m!==-1&&(t=m+1)}if(e[t]==="!")return!0}else t++}return!1},mf=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=vs[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};Es.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(df(t))return!0;var n=yf;return r&&r.strict===!1&&(n=mf),n(t)}});var Rs=g((Zg,Cs)=>{"use strict";var gf=ws(),_f=P("path").posix.dirname,Sf=P("os").platform()==="win32",Kr="/",vf=/\\/g,Ef=/[\{\[].*[\}\]]$/,wf=/(^|[^\\])([\{\[]|\([^\)]+$)/,Cf=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Cs.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Sf&&t.indexOf(Kr)<0&&(t=t.replace(vf,Kr)),Ef.test(t)&&(t+=Kr),t+="a";do t=_f(t);while(gf(t)||wf.test(t));return t.replace(Cf,"$1")}});var Yt=g(me=>{"use strict";me.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;me.find=(e,t)=>e.nodes.find(r=>r.type===t);me.exceedsLimit=(e,t,r=1,n)=>n===!1||!me.isInteger(e)||!me.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;me.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};me.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;me.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;me.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;me.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);me.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var Kt=g((e_,As)=>{"use strict";var xs=Yt();As.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&xs.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,u="";if(n.value)return(s||o)&&xs.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)u+=r(c);return u};return r(e)}});var Os=g((t_,bs)=>{"use strict";bs.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Ns=g((r_,$s)=>{"use strict";var Ps=Os(),Ue=(e,t,r)=>{if(Ps(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Ps(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n=N({relaxZeros:!0},r);typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),u=String(n.wrap),c=e+":"+t+"="+i+s+o+u;if(Ue.cache.hasOwnProperty(c))return Ue.cache[c].result;let m=Math.min(e,t),a=Math.max(e,t);if(Math.abs(m-a)===1){let _=e+"|"+t;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let f=qs(e)||qs(t),l={min:e,max:t,a:m,b:a},S=[],y=[];if(f&&(l.isPadded=f,l.maxLen=String(l.max).length),m<0){let _=a<0?Math.abs(a):1;y=ks(_,Math.abs(m),l,n),m=l.a=0}return a>=0&&(S=ks(m,a,l,n)),l.negatives=y,l.positives=S,l.result=Rf(y,S,n),n.capture===!0?l.result=`(${l.result})`:n.wrap!==!1&&S.length+y.length>1&&(l.result=`(?:${l.result})`),Ue.cache[c]=l,l.result};function Rf(e,t,r){let n=Qr(e,t,"-",!1,r)||[],i=Qr(t,e,"",!1,r)||[],s=Qr(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function xf(e,t){let r=1,n=1,i=Fs(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Fs(e,r);for(i=Ls(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Ls(t+1,n)-1;return s=[...s],s.sort(Of),s}function Af(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=bf(e,t),i=n.length,s="",o=0;for(let u=0;u<i;u++){let[c,m]=n[u];c===m?s+=c:c!=="0"||m!=="9"?s+=Pf(c,m,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function ks(e,t,r,n){let i=xf(e,t),s=[],o=e,u;for(let c=0;c<i.length;c++){let m=i[c],a=Af(String(o),String(m),n),f="";if(!r.isPadded&&u&&u.pattern===a.pattern){u.count.length>1&&u.count.pop(),u.count.push(a.count[0]),u.string=u.pattern+Ds(u.count),o=m+1;continue}r.isPadded&&(f=kf(m,r,n)),a.string=f+a.pattern+Ds(a.count),s.push(a),o=m+1,u=a}return s}function Qr(e,t,r,n,i){let s=[];for(let o of e){let{string:u}=o;!n&&!Ts(t,"string",u)&&s.push(r+u),n&&Ts(t,"string",u)&&s.push(r+u)}return s}function bf(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function Of(e,t){return e>t?1:t>e?-1:0}function Ts(e,t,r){return e.some(n=>n[t]===r)}function Fs(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Ls(e,t){return e-e%Math.pow(10,t)}function Ds(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function Pf(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function qs(e){return/^-?(0+)\d/.test(e)}function kf(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Ue.cache={};Ue.clearCache=()=>Ue.cache={};$s.exports=Ue});var Zr=g((n_,Us)=>{"use strict";var Tf=P("util"),Hs=Ns(),Is=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Ff=e=>t=>e===!0?Number(t):String(t),Xr=e=>typeof e=="number"||typeof e=="string"&&e!=="",_t=e=>Number.isInteger(+e),Jr=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Lf=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Df=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Ms=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},qf=(e,t)=>{e.negatives.sort((o,u)=>o<u?-1:o>u?1:0),e.positives.sort((o,u)=>o<u?-1:o>u?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},Bs=(e,t,r,n)=>{if(r)return Hs(e,t,N({wrap:!1},n));let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},js=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Hs(e,t,r)},Ws=(...e)=>new RangeError("Invalid range arguments: "+Tf.inspect(...e)),Gs=(e,t,r)=>{if(r.strictRanges===!0)throw Ws([e,t]);return[]},$f=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Nf=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Ws([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,u=String(e),c=String(t),m=String(r);r=Math.max(Math.abs(r),1);let a=Jr(u)||Jr(c)||Jr(m),f=a?Math.max(u.length,c.length,m.length):0,l=a===!1&&Lf(e,t,n)===!1,S=n.transform||Ff(l);if(n.toRegex&&r===1)return Bs(Ms(e,f),Ms(t,f),!0,n);let y={negatives:[],positives:[]},_=b=>y[b<0?"negatives":"positives"].push(Math.abs(b)),v=[],C=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):v.push(Df(S(i,C),f,l)),i=o?i-r:i+r,C++;return n.toRegex===!0?r>1?qf(y,n):js(v,null,N({wrap:!1},n)):v},If=(e,t,r=1,n={})=>{if(!_t(e)&&e.length>1||!_t(t)&&t.length>1)return Gs(e,t,n);let i=n.transform||(l=>String.fromCharCode(l)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),u=s>o,c=Math.min(s,o),m=Math.max(s,o);if(n.toRegex&&r===1)return Bs(c,m,!1,n);let a=[],f=0;for(;u?s>=o:s<=o;)a.push(i(s,f)),s=u?s-r:s+r,f++;return n.toRegex===!0?js(a,null,{wrap:!1,options:n}):a},Qt=(e,t,r,n={})=>{if(t==null&&Xr(e))return[e];if(!Xr(e)||!Xr(t))return Gs(e,t,n);if(typeof r=="function")return Qt(e,t,1,{transform:r});if(Is(r))return Qt(e,t,0,r);let i=N({},n);return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,_t(r)?_t(e)&&_t(t)?Nf(e,t,r,i):If(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Is(r)?$f(r,i):Qt(e,t,1,r)};Us.exports=Qt});var Ks=g((i_,Ys)=>{"use strict";var Mf=Zr(),Vs=Yt(),Hf=(e,t={})=>{let r=(n,i={})=>{let s=Vs.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,u=s===!0||o===!0,c=t.escapeInvalid===!0?"\\":"",m="";if(n.isOpen===!0||n.isClose===!0)return c+n.value;if(n.type==="open")return u?c+n.value:"(";if(n.type==="close")return u?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":u?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let a=Vs.reduce(n.nodes),f=Mf(...a,J(N({},t),{wrap:!1,toRegex:!0}));if(f.length!==0)return a.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let a of n.nodes)m+=r(a,n);return m};return r(e)};Ys.exports=Hf});var Js=g((s_,Xs)=>{"use strict";var Bf=Zr(),Qs=Kt(),it=Yt(),Ve=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?it.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Ve(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Ve(i,s,r):i+s);return it.flatten(n)},jf=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,u=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,u=o.queue;if(i.invalid||i.dollar){u.push(Ve(u.pop(),Qs(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){u.push(Ve(u.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=it.reduce(i.nodes);if(it.exceedsLimit(...f,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let l=Bf(...f,t);l.length===0&&(l=Qs(i,t)),u.push(Ve(u.pop(),l)),i.nodes=[];return}let c=it.encloseBrace(i),m=i.queue,a=i;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,m=a.queue;for(let f=0;f<i.nodes.length;f++){let l=i.nodes[f];if(l.type==="comma"&&i.type==="brace"){f===1&&m.push(""),m.push("");continue}if(l.type==="close"){u.push(Ve(u.pop(),m,c));continue}if(l.value&&l.type!=="open"){m.push(Ve(m.pop(),l.value));continue}l.nodes&&n(l,i)}return m};return it.flatten(n(e))};Xs.exports=jf});var zs=g((o_,Zs)=>{"use strict";Zs.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
6
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var io=g((u_,no)=>{"use strict";var Wf=Kt(),{MAX_LENGTH:eo,CHAR_BACKSLASH:zr,CHAR_BACKTICK:Gf,CHAR_COMMA:Uf,CHAR_DOT:Vf,CHAR_LEFT_PARENTHESES:Yf,CHAR_RIGHT_PARENTHESES:Kf,CHAR_LEFT_CURLY_BRACE:Qf,CHAR_RIGHT_CURLY_BRACE:Xf,CHAR_LEFT_SQUARE_BRACKET:to,CHAR_RIGHT_SQUARE_BRACKET:ro,CHAR_DOUBLE_QUOTE:Jf,CHAR_SINGLE_QUOTE:Zf,CHAR_NO_BREAK_SPACE:zf,CHAR_ZERO_WIDTH_NOBREAK_SPACE:ep}=zs(),tp=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(eo,r.maxLength):eo;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,u=i,c=0,m=e.length,a=0,f=0,l,S={},y=()=>e[a++],_=v=>{if(v.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&v.type==="text"){u.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=u,u=v,v};for(_({type:"bos"});a<m;)if(o=s[s.length-1],l=y(),!(l===ep||l===zf)){if(l===zr){_({type:"text",value:(t.keepEscaping?l:"")+y()});continue}if(l===ro){_({type:"text",value:"\\"+l});continue}if(l===to){c++;let v=!0,C;for(;a<m&&(C=y());){if(l+=C,C===to){c++;continue}if(C===zr){l+=y();continue}if(C===ro&&(c--,c===0))break}_({type:"text",value:l});continue}if(l===Yf){o=_({type:"paren",nodes:[]}),s.push(o),_({type:"text",value:l});continue}if(l===Kf){if(o.type!=="paren"){_({type:"text",value:l});continue}o=s.pop(),_({type:"text",value:l}),o=s[s.length-1];continue}if(l===Jf||l===Zf||l===Gf){let v=l,C;for(t.keepQuotes!==!0&&(l="");a<m&&(C=y());){if(C===zr){l+=C+y();continue}if(C===v){t.keepQuotes===!0&&(l+=C);break}l+=C}_({type:"text",value:l});continue}if(l===Qf){f++;let v=u.value&&u.value.slice(-1)==="$"||o.dollar===!0;o=_({type:"brace",open:!0,close:!1,dollar:v,depth:f,commas:0,ranges:0,nodes:[]}),s.push(o),_({type:"open",value:l});continue}if(l===Xf){if(o.type!=="brace"){_({type:"text",value:l});continue}let v="close";o=s.pop(),o.close=!0,_({type:v,value:l}),f--,o=s[s.length-1];continue}if(l===Uf&&f>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:Wf(o)}]}_({type:"comma",value:l}),o.commas++;continue}if(l===Vf&&f>0&&o.commas===0){let v=o.nodes;if(f===0||v.length===0){_({type:"text",value:l});continue}if(u.type==="dot"){if(o.range=[],u.value+=l,u.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,u.type="text";continue}o.ranges++,o.args=[];continue}if(u.type==="range"){v.pop();let C=v[v.length-1];C.value+=u.value+l,u=C,o.ranges--;continue}_({type:"dot",value:l});continue}_({type:"text",value:l})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(b=>{b.nodes||(b.type==="open"&&(b.isOpen=!0),b.type==="close"&&(b.isClose=!0),b.nodes||(b.type="text"),b.invalid=!0)});let v=s[s.length-1],C=v.nodes.indexOf(o);v.nodes.splice(C,1,...o.nodes)}while(s.length>0);return _({type:"eos"}),i};no.exports=tp});var uo=g((a_,oo)=>{"use strict";var so=Kt(),rp=Ks(),np=Js(),ip=io(),de=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=de.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(de.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};de.parse=(e,t={})=>ip(e,t);de.stringify=(e,t={})=>so(typeof e=="string"?de.parse(e,t):e,t);de.compile=(e,t={})=>(typeof e=="string"&&(e=de.parse(e,t)),rp(e,t));de.expand=(e,t={})=>{typeof e=="string"&&(e=de.parse(e,t));let r=np(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};de.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?de.compile(e,t):de.expand(e,t);oo.exports=de});var St=g((c_,po)=>{"use strict";var sp=P("path"),Ce="\\\\/",ao=`[^${Ce}]`,Oe="\\.",op="\\+",up="\\?",Xt="\\/",ap="(?=.)",co="[^/]",en=`(?:${Xt}|$)`,lo=`(?:^|${Xt})`,tn=`${Oe}{1,2}${en}`,cp=`(?!${Oe})`,lp=`(?!${lo}${tn})`,fp=`(?!${Oe}{0,1}${en})`,pp=`(?!${tn})`,hp=`[^.${Xt}]`,dp=`${co}*?`,fo={DOT_LITERAL:Oe,PLUS_LITERAL:op,QMARK_LITERAL:up,SLASH_LITERAL:Xt,ONE_CHAR:ap,QMARK:co,END_ANCHOR:en,DOTS_SLASH:tn,NO_DOT:cp,NO_DOTS:lp,NO_DOT_SLASH:fp,NO_DOTS_SLASH:pp,QMARK_NO_DOT:hp,STAR:dp,START_ANCHOR:lo},yp=J(N({},fo),{SLASH_LITERAL:`[${Ce}]`,QMARK:ao,STAR:`${ao}*?`,DOTS_SLASH:`${Oe}{1,2}(?:[${Ce}]|$)`,NO_DOT:`(?!${Oe})`,NO_DOTS:`(?!(?:^|[${Ce}])${Oe}{1,2}(?:[${Ce}]|$))`,NO_DOT_SLASH:`(?!${Oe}{0,1}(?:[${Ce}]|$))`,NO_DOTS_SLASH:`(?!${Oe}{1,2}(?:[${Ce}]|$))`,QMARK_NO_DOT:`[^.${Ce}]`,START_ANCHOR:`(?:^|[${Ce}])`,END_ANCHOR:`(?:[${Ce}]|$)`}),mp={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};po.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:mp,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:sp.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?yp:fo}}});var vt=g(ae=>{"use strict";var gp=P("path"),_p=process.platform==="win32",{REGEX_BACKSLASH:Sp,REGEX_REMOVE_BACKSLASH:vp,REGEX_SPECIAL_CHARS:Ep,REGEX_SPECIAL_CHARS_GLOBAL:wp}=St();ae.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ae.hasRegexChars=e=>Ep.test(e);ae.isRegexChar=e=>e.length===1&&ae.hasRegexChars(e);ae.escapeRegex=e=>e.replace(wp,"\\$1");ae.toPosixSlashes=e=>e.replace(Sp,"/");ae.removeBackslashes=e=>e.replace(vp,t=>t==="\\"?"":t);ae.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ae.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:_p===!0||gp.sep==="\\";ae.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ae.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ae.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ae.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Eo=g((f_,vo)=>{"use strict";var ho=vt(),{CHAR_ASTERISK:rn,CHAR_AT:Cp,CHAR_BACKWARD_SLASH:Et,CHAR_COMMA:Rp,CHAR_DOT:nn,CHAR_EXCLAMATION_MARK:sn,CHAR_FORWARD_SLASH:So,CHAR_LEFT_CURLY_BRACE:on,CHAR_LEFT_PARENTHESES:un,CHAR_LEFT_SQUARE_BRACKET:xp,CHAR_PLUS:Ap,CHAR_QUESTION_MARK:yo,CHAR_RIGHT_CURLY_BRACE:bp,CHAR_RIGHT_PARENTHESES:mo,CHAR_RIGHT_SQUARE_BRACKET:Op}=St(),go=e=>e===So||e===Et,_o=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Pp=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],u=[],c=e,m=-1,a=0,f=0,l=!1,S=!1,y=!1,_=!1,v=!1,C=!1,b=!1,F=!1,V=!1,$=!1,B=0,L,x,w={value:"",depth:0,isGlob:!1},O=()=>m>=n,d=()=>c.charCodeAt(m+1),D=()=>(L=x,c.charCodeAt(++m));for(;m<n;){x=D();let q;if(x===Et){b=w.backslashes=!0,x=D(),x===on&&(C=!0);continue}if(C===!0||x===on){for(B++;O()!==!0&&(x=D());){if(x===Et){b=w.backslashes=!0,D();continue}if(x===on){B++;continue}if(C!==!0&&x===nn&&(x=D())===nn){if(l=w.isBrace=!0,y=w.isGlob=!0,$=!0,i===!0)continue;break}if(C!==!0&&x===Rp){if(l=w.isBrace=!0,y=w.isGlob=!0,$=!0,i===!0)continue;break}if(x===bp&&(B--,B===0)){C=!1,l=w.isBrace=!0,$=!0;break}}if(i===!0)continue;break}if(x===So){if(s.push(m),o.push(w),w={value:"",depth:0,isGlob:!1},$===!0)continue;if(L===nn&&m===a+1){a+=2;continue}f=m+1;continue}if(r.noext!==!0&&(x===Ap||x===Cp||x===rn||x===yo||x===sn)===!0&&d()===un){if(y=w.isGlob=!0,_=w.isExtglob=!0,$=!0,x===sn&&m===a&&(V=!0),i===!0){for(;O()!==!0&&(x=D());){if(x===Et){b=w.backslashes=!0,x=D();continue}if(x===mo){y=w.isGlob=!0,$=!0;break}}continue}break}if(x===rn){if(L===rn&&(v=w.isGlobstar=!0),y=w.isGlob=!0,$=!0,i===!0)continue;break}if(x===yo){if(y=w.isGlob=!0,$=!0,i===!0)continue;break}if(x===xp){for(;O()!==!0&&(q=D());){if(q===Et){b=w.backslashes=!0,D();continue}if(q===Op){S=w.isBracket=!0,y=w.isGlob=!0,$=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&x===sn&&m===a){F=w.negated=!0,a++;continue}if(r.noparen!==!0&&x===un){if(y=w.isGlob=!0,i===!0){for(;O()!==!0&&(x=D());){if(x===un){b=w.backslashes=!0,x=D();continue}if(x===mo){$=!0;break}}continue}break}if(y===!0){if($=!0,i===!0)continue;break}}r.noext===!0&&(_=!1,y=!1);let T=c,j="",p="";a>0&&(j=c.slice(0,a),c=c.slice(a),f-=a),T&&y===!0&&f>0?(T=c.slice(0,f),p=c.slice(f)):y===!0?(T="",p=c):T=c,T&&T!==""&&T!=="/"&&T!==c&&go(T.charCodeAt(T.length-1))&&(T=T.slice(0,-1)),r.unescape===!0&&(p&&(p=ho.removeBackslashes(p)),T&&b===!0&&(T=ho.removeBackslashes(T)));let h={prefix:j,input:e,start:a,base:T,glob:p,isBrace:l,isBracket:S,isGlob:y,isExtglob:_,isGlobstar:v,negated:F,negatedExtglob:V};if(r.tokens===!0&&(h.maxDepth=0,go(x)||o.push(w),h.tokens=o),r.parts===!0||r.tokens===!0){let q;for(let A=0;A<s.length;A++){let H=q?q+1:a,_e=s[A],pe=e.slice(H,_e);r.tokens&&(A===0&&a!==0?(o[A].isPrefix=!0,o[A].value=j):o[A].value=pe,_o(o[A]),h.maxDepth+=o[A].depth),(A!==0||pe!=="")&&u.push(pe),q=_e}if(q&&q+1<e.length){let A=e.slice(q+1);u.push(A),r.tokens&&(o[o.length-1].value=A,_o(o[o.length-1]),h.maxDepth+=o[o.length-1].depth)}h.slashes=s,h.parts=u}return h};vo.exports=Pp});var Ro=g((p_,Co)=>{"use strict";var Jt=St(),ye=vt(),{MAX_LENGTH:Zt,POSIX_REGEX_SOURCE:kp,REGEX_NON_SPECIAL_CHARS:Tp,REGEX_SPECIAL_CHARS_BACKREF:Fp,REPLACEMENTS:wo}=Jt,Lp=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>ye.escapeRegex(i)).join("..")}return r},st=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,an=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=wo[e]||e;let r=N({},t),n=typeof r.maxLength=="number"?Math.min(Zt,r.maxLength):Zt,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],u=r.capture?"":"?:",c=ye.isWindows(t),m=Jt.globChars(c),a=Jt.extglobChars(m),{DOT_LITERAL:f,PLUS_LITERAL:l,SLASH_LITERAL:S,ONE_CHAR:y,DOTS_SLASH:_,NO_DOT:v,NO_DOT_SLASH:C,NO_DOTS_SLASH:b,QMARK:F,QMARK_NO_DOT:V,STAR:$,START_ANCHOR:B}=m,L=R=>`(${u}(?:(?!${B}${R.dot?_:f}).)*?)`,x=r.dot?"":v,w=r.dot?F:V,O=r.bash===!0?L(r):$;r.capture&&(O=`(${O})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let d={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=ye.removePrefix(e,d),i=e.length;let D=[],T=[],j=[],p=s,h,q=()=>d.index===i-1,A=d.peek=(R=1)=>e[d.index+R],H=d.advance=()=>e[++d.index]||"",_e=()=>e.slice(d.index+1),pe=(R="",G=0)=>{d.consumed+=R,d.index+=G},Ft=R=>{d.output+=R.output!=null?R.output:R.value,pe(R.value)},ml=()=>{let R=1;for(;A()==="!"&&(A(2)!=="("||A(3)==="?");)H(),d.start++,R++;return R%2===0?!1:(d.negated=!0,d.start++,!0)},Lt=R=>{d[R]++,j.push(R)},We=R=>{d[R]--,j.pop()},M=R=>{if(p.type==="globstar"){let G=d.braces>0&&(R.type==="comma"||R.type==="brace"),E=R.extglob===!0||D.length&&(R.type==="pipe"||R.type==="paren");R.type!=="slash"&&R.type!=="paren"&&!G&&!E&&(d.output=d.output.slice(0,-p.output.length),p.type="star",p.value="*",p.output=O,d.output+=p.output)}if(D.length&&R.type!=="paren"&&(D[D.length-1].inner+=R.value),(R.value||R.output)&&Ft(R),p&&p.type==="text"&&R.type==="text"){p.value+=R.value,p.output=(p.output||"")+R.value;return}R.prev=p,o.push(R),p=R},Dt=(R,G)=>{let E=J(N({},a[G]),{conditions:1,inner:""});E.prev=p,E.parens=d.parens,E.output=d.output;let I=(r.capture?"(":"")+E.open;Lt("parens"),M({type:R,value:G,output:d.output?"":y}),M({type:"paren",extglob:!0,value:H(),output:I}),D.push(E)},gl=R=>{let G=R.close+(r.capture?")":""),E;if(R.type==="negate"){let I=O;if(R.inner&&R.inner.length>1&&R.inner.includes("/")&&(I=L(r)),(I!==O||q()||/^\)+$/.test(_e()))&&(G=R.close=`)$))${I}`),R.inner.includes("*")&&(E=_e())&&/^\.[^\\/.]+$/.test(E)){let Y=an(E,J(N({},t),{fastpaths:!1})).output;G=R.close=`)${Y})${I})`}R.prev.type==="bos"&&(d.negatedExtglob=!0)}M({type:"paren",extglob:!0,value:h,output:G}),We("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let R=!1,G=e.replace(Fp,(E,I,Y,se,X,qr)=>se==="\\"?(R=!0,E):se==="?"?I?I+se+(X?F.repeat(X.length):""):qr===0?w+(X?F.repeat(X.length):""):F.repeat(Y.length):se==="."?f.repeat(Y.length):se==="*"?I?I+se+(X?O:""):O:I?E:`\\${E}`);return R===!0&&(r.unescape===!0?G=G.replace(/\\/g,""):G=G.replace(/\\+/g,E=>E.length%2===0?"\\\\":E?"\\":"")),G===e&&r.contains===!0?(d.output=e,d):(d.output=ye.wrapOutput(G,d,t),d)}for(;!q();){if(h=H(),h==="\0")continue;if(h==="\\"){let E=A();if(E==="/"&&r.bash!==!0||E==="."||E===";")continue;if(!E){h+="\\",M({type:"text",value:h});continue}let I=/^\\+/.exec(_e()),Y=0;if(I&&I[0].length>2&&(Y=I[0].length,d.index+=Y,Y%2!==0&&(h+="\\")),r.unescape===!0?h=H():h+=H(),d.brackets===0){M({type:"text",value:h});continue}}if(d.brackets>0&&(h!=="]"||p.value==="["||p.value==="[^")){if(r.posix!==!1&&h===":"){let E=p.value.slice(1);if(E.includes("[")&&(p.posix=!0,E.includes(":"))){let I=p.value.lastIndexOf("["),Y=p.value.slice(0,I),se=p.value.slice(I+2),X=kp[se];if(X){p.value=Y+X,d.backtrack=!0,H(),!s.output&&o.indexOf(p)===1&&(s.output=y);continue}}}(h==="["&&A()!==":"||h==="-"&&A()==="]")&&(h=`\\${h}`),h==="]"&&(p.value==="["||p.value==="[^")&&(h=`\\${h}`),r.posix===!0&&h==="!"&&p.value==="["&&(h="^"),p.value+=h,Ft({value:h});continue}if(d.quotes===1&&h!=='"'){h=ye.escapeRegex(h),p.value+=h,Ft({value:h});continue}if(h==='"'){d.quotes=d.quotes===1?0:1,r.keepQuotes===!0&&M({type:"text",value:h});continue}if(h==="("){Lt("parens"),M({type:"paren",value:h});continue}if(h===")"){if(d.parens===0&&r.strictBrackets===!0)throw new SyntaxError(st("opening","("));let E=D[D.length-1];if(E&&d.parens===E.parens+1){gl(D.pop());continue}M({type:"paren",value:h,output:d.parens?")":"\\)"}),We("parens");continue}if(h==="["){if(r.nobracket===!0||!_e().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(st("closing","]"));h=`\\${h}`}else Lt("brackets");M({type:"bracket",value:h});continue}if(h==="]"){if(r.nobracket===!0||p&&p.type==="bracket"&&p.value.length===1){M({type:"text",value:h,output:`\\${h}`});continue}if(d.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(st("opening","["));M({type:"text",value:h,output:`\\${h}`});continue}We("brackets");let E=p.value.slice(1);if(p.posix!==!0&&E[0]==="^"&&!E.includes("/")&&(h=`/${h}`),p.value+=h,Ft({value:h}),r.literalBrackets===!1||ye.hasRegexChars(E))continue;let I=ye.escapeRegex(p.value);if(d.output=d.output.slice(0,-p.value.length),r.literalBrackets===!0){d.output+=I,p.value=I;continue}p.value=`(${u}${I}|${p.value})`,d.output+=p.value;continue}if(h==="{"&&r.nobrace!==!0){Lt("braces");let E={type:"brace",value:h,output:"(",outputIndex:d.output.length,tokensIndex:d.tokens.length};T.push(E),M(E);continue}if(h==="}"){let E=T[T.length-1];if(r.nobrace===!0||!E){M({type:"text",value:h,output:h});continue}let I=")";if(E.dots===!0){let Y=o.slice(),se=[];for(let X=Y.length-1;X>=0&&(o.pop(),Y[X].type!=="brace");X--)Y[X].type!=="dots"&&se.unshift(Y[X].value);I=Lp(se,r),d.backtrack=!0}if(E.comma!==!0&&E.dots!==!0){let Y=d.output.slice(0,E.outputIndex),se=d.tokens.slice(E.tokensIndex);E.value=E.output="\\{",h=I="\\}",d.output=Y;for(let X of se)d.output+=X.output||X.value}M({type:"brace",value:h,output:I}),We("braces"),T.pop();continue}if(h==="|"){D.length>0&&D[D.length-1].conditions++,M({type:"text",value:h});continue}if(h===","){let E=h,I=T[T.length-1];I&&j[j.length-1]==="braces"&&(I.comma=!0,E="|"),M({type:"comma",value:h,output:E});continue}if(h==="/"){if(p.type==="dot"&&d.index===d.start+1){d.start=d.index+1,d.consumed="",d.output="",o.pop(),p=s;continue}M({type:"slash",value:h,output:S});continue}if(h==="."){if(d.braces>0&&p.type==="dot"){p.value==="."&&(p.output=f);let E=T[T.length-1];p.type="dots",p.output+=h,p.value+=h,E.dots=!0;continue}if(d.braces+d.parens===0&&p.type!=="bos"&&p.type!=="slash"){M({type:"text",value:h,output:f});continue}M({type:"dot",value:h,output:f});continue}if(h==="?"){if(!(p&&p.value==="(")&&r.noextglob!==!0&&A()==="("&&A(2)!=="?"){Dt("qmark",h);continue}if(p&&p.type==="paren"){let I=A(),Y=h;if(I==="<"&&!ye.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(p.value==="("&&!/[!=<:]/.test(I)||I==="<"&&!/<([!=]|\w+>)/.test(_e()))&&(Y=`\\${h}`),M({type:"text",value:h,output:Y});continue}if(r.dot!==!0&&(p.type==="slash"||p.type==="bos")){M({type:"qmark",value:h,output:V});continue}M({type:"qmark",value:h,output:F});continue}if(h==="!"){if(r.noextglob!==!0&&A()==="("&&(A(2)!=="?"||!/[!=<:]/.test(A(3)))){Dt("negate",h);continue}if(r.nonegate!==!0&&d.index===0){ml();continue}}if(h==="+"){if(r.noextglob!==!0&&A()==="("&&A(2)!=="?"){Dt("plus",h);continue}if(p&&p.value==="("||r.regex===!1){M({type:"plus",value:h,output:l});continue}if(p&&(p.type==="bracket"||p.type==="paren"||p.type==="brace")||d.parens>0){M({type:"plus",value:h});continue}M({type:"plus",value:l});continue}if(h==="@"){if(r.noextglob!==!0&&A()==="("&&A(2)!=="?"){M({type:"at",extglob:!0,value:h,output:""});continue}M({type:"text",value:h});continue}if(h!=="*"){(h==="$"||h==="^")&&(h=`\\${h}`);let E=Tp.exec(_e());E&&(h+=E[0],d.index+=E[0].length),M({type:"text",value:h});continue}if(p&&(p.type==="globstar"||p.star===!0)){p.type="star",p.star=!0,p.value+=h,p.output=O,d.backtrack=!0,d.globstar=!0,pe(h);continue}let R=_e();if(r.noextglob!==!0&&/^\([^?]/.test(R)){Dt("star",h);continue}if(p.type==="star"){if(r.noglobstar===!0){pe(h);continue}let E=p.prev,I=E.prev,Y=E.type==="slash"||E.type==="bos",se=I&&(I.type==="star"||I.type==="globstar");if(r.bash===!0&&(!Y||R[0]&&R[0]!=="/")){M({type:"star",value:h,output:""});continue}let X=d.braces>0&&(E.type==="comma"||E.type==="brace"),qr=D.length&&(E.type==="pipe"||E.type==="paren");if(!Y&&E.type!=="paren"&&!X&&!qr){M({type:"star",value:h,output:""});continue}for(;R.slice(0,3)==="/**";){let qt=e[d.index+4];if(qt&&qt!=="/")break;R=R.slice(3),pe("/**",3)}if(E.type==="bos"&&q()){p.type="globstar",p.value+=h,p.output=L(r),d.output=p.output,d.globstar=!0,pe(h);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&!se&&q()){d.output=d.output.slice(0,-(E.output+p.output).length),E.output=`(?:${E.output}`,p.type="globstar",p.output=L(r)+(r.strictSlashes?")":"|$)"),p.value+=h,d.globstar=!0,d.output+=E.output+p.output,pe(h);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&R[0]==="/"){let qt=R[1]!==void 0?"|$":"";d.output=d.output.slice(0,-(E.output+p.output).length),E.output=`(?:${E.output}`,p.type="globstar",p.output=`${L(r)}${S}|${S}${qt})`,p.value+=h,d.output+=E.output+p.output,d.globstar=!0,pe(h+H()),M({type:"slash",value:"/",output:""});continue}if(E.type==="bos"&&R[0]==="/"){p.type="globstar",p.value+=h,p.output=`(?:^|${S}|${L(r)}${S})`,d.output=p.output,d.globstar=!0,pe(h+H()),M({type:"slash",value:"/",output:""});continue}d.output=d.output.slice(0,-p.output.length),p.type="globstar",p.output=L(r),p.value+=h,d.output+=p.output,d.globstar=!0,pe(h);continue}let G={type:"star",value:h,output:O};if(r.bash===!0){G.output=".*?",(p.type==="bos"||p.type==="slash")&&(G.output=x+G.output),M(G);continue}if(p&&(p.type==="bracket"||p.type==="paren")&&r.regex===!0){G.output=h,M(G);continue}(d.index===d.start||p.type==="slash"||p.type==="dot")&&(p.type==="dot"?(d.output+=C,p.output+=C):r.dot===!0?(d.output+=b,p.output+=b):(d.output+=x,p.output+=x),A()!=="*"&&(d.output+=y,p.output+=y)),M(G)}for(;d.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(st("closing","]"));d.output=ye.escapeLast(d.output,"["),We("brackets")}for(;d.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(st("closing",")"));d.output=ye.escapeLast(d.output,"("),We("parens")}for(;d.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(st("closing","}"));d.output=ye.escapeLast(d.output,"{"),We("braces")}if(r.strictSlashes!==!0&&(p.type==="star"||p.type==="bracket")&&M({type:"maybe_slash",value:"",output:`${S}?`}),d.backtrack===!0){d.output="";for(let R of d.tokens)d.output+=R.output!=null?R.output:R.value,R.suffix&&(d.output+=R.suffix)}return d};an.fastpaths=(e,t)=>{let r=N({},t),n=typeof r.maxLength=="number"?Math.min(Zt,r.maxLength):Zt,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=wo[e]||e;let s=ye.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:c,DOTS_SLASH:m,NO_DOT:a,NO_DOTS:f,NO_DOTS_SLASH:l,STAR:S,START_ANCHOR:y}=Jt.globChars(s),_=r.dot?f:a,v=r.dot?l:a,C=r.capture?"":"?:",b={negated:!1,prefix:""},F=r.bash===!0?".*?":S;r.capture&&(F=`(${F})`);let V=x=>x.noglobstar===!0?F:`(${C}(?:(?!${y}${x.dot?m:o}).)*?)`,$=x=>{switch(x){case"*":return`${_}${c}${F}`;case".*":return`${o}${c}${F}`;case"*.*":return`${_}${F}${o}${c}${F}`;case"*/*":return`${_}${F}${u}${c}${v}${F}`;case"**":return _+V(r);case"**/*":return`(?:${_}${V(r)}${u})?${v}${c}${F}`;case"**/*.*":return`(?:${_}${V(r)}${u})?${v}${F}${o}${c}${F}`;case"**/.*":return`(?:${_}${V(r)}${u})?${o}${c}${F}`;default:{let w=/^(.*?)\.(\w+)$/.exec(x);if(!w)return;let O=$(w[1]);return O?O+o+w[2]:void 0}}},B=ye.removePrefix(e,b),L=$(B);return L&&r.strictSlashes!==!0&&(L+=`${u}?`),L};Co.exports=an});var Ao=g((h_,xo)=>{"use strict";var Dp=P("path"),qp=Eo(),cn=Ro(),ln=vt(),$p=St(),Np=e=>e&&typeof e=="object"&&!Array.isArray(e),Q=(e,t,r=!1)=>{if(Array.isArray(e)){let a=e.map(l=>Q(l,t,r));return l=>{for(let S of a){let y=S(l);if(y)return y}return!1}}let n=Np(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=ln.isWindows(t),o=n?Q.compileRe(e,t):Q.makeRe(e,t,!1,!0),u=o.state;delete o.state;let c=()=>!1;if(i.ignore){let a=J(N({},t),{ignore:null,onMatch:null,onResult:null});c=Q(i.ignore,a,r)}let m=(a,f=!1)=>{let{isMatch:l,match:S,output:y}=Q.test(a,o,t,{glob:e,posix:s}),_={glob:e,state:u,regex:o,posix:s,input:a,output:y,match:S,isMatch:l};return typeof i.onResult=="function"&&i.onResult(_),l===!1?(_.isMatch=!1,f?_:!1):c(a)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,f?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),f?_:!0)};return r&&(m.state=u),m};Q.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?ln.toPosixSlashes:null),u=e===n,c=u&&o?o(e):e;return u===!1&&(c=o?o(e):e,u=c===n),(u===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?u=Q.matchBase(e,t,r,i):u=t.exec(c)),{isMatch:Boolean(u),match:u,output:c}};Q.matchBase=(e,t,r,n=ln.isWindows(r))=>(t instanceof RegExp?t:Q.makeRe(t,r)).test(Dp.basename(e));Q.isMatch=(e,t,r)=>Q(t,r)(e);Q.parse=(e,t)=>Array.isArray(e)?e.map(r=>Q.parse(r,t)):cn(e,J(N({},t),{fastpaths:!1}));Q.scan=(e,t)=>qp(e,t);Q.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",u=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(u=`^(?!${u}).*$`);let c=Q.toRegex(u,t);return n===!0&&(c.state=e),c};Q.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=cn.fastpaths(e,t)),i.output||(i=cn(e,t)),Q.compileRe(i,t,r,n)};Q.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Q.constants=$p;xo.exports=Q});var Oo=g((d_,bo)=>{"use strict";bo.exports=Ao()});var Lo=g((y_,Fo)=>{"use strict";var ko=P("util"),To=uo(),Re=Oo(),fn=vt(),Po=e=>e===""||e==="./",U=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,u=a=>{s.add(a.output),r&&r.onResult&&r.onResult(a)};for(let a=0;a<t.length;a++){let f=Re(String(t[a]),J(N({},r),{onResult:u}),!0),l=f.state.negated||f.state.negatedExtglob;l&&o++;for(let S of e){let y=f(S,!0);!(l?!y.isMatch:y.isMatch)||(l?n.add(y.output):(n.delete(y.output),i.add(y.output)))}}let m=(o===t.length?[...s]:[...i]).filter(a=>!n.has(a));if(r&&m.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(a=>a.replace(/\\/g,"")):t}return m};U.match=U;U.matcher=(e,t)=>Re(e,t);U.isMatch=(e,t,r)=>Re(t,r)(e);U.any=U.isMatch;U.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=u=>{r.onResult&&r.onResult(u),i.push(u.output)},o=new Set(U(e,t,J(N({},r),{onResult:s})));for(let u of i)o.has(u)||n.add(u);return[...n]};U.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ko.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>U.contains(e,n,r));if(typeof t=="string"){if(Po(e)||Po(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return U.isMatch(e,t,J(N({},r),{contains:!0}))};U.matchKeys=(e,t,r)=>{if(!fn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=U(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};U.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Re(String(i),r);if(n.some(o=>s(o)))return!0}return!1};U.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Re(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};U.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ko.inspect(e)}"`);return[].concat(t).every(n=>Re(n,r)(e))};U.capture=(e,t,r)=>{let n=fn.isWindows(r),s=Re.makeRe(String(e),J(N({},r),{capture:!0})).exec(n?fn.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};U.makeRe=(...e)=>Re.makeRe(...e);U.scan=(...e)=>Re.scan(...e);U.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of To(String(n),t))r.push(Re.parse(i,t));return r};U.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:To(e,t)};U.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return U.braces(e,J(N({},t),{expand:!0}))};Fo.exports=U});var Bo=g(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.matchAny=k.convertPatternsToRe=k.makeRe=k.getPatternParts=k.expandBraceExpansion=k.expandPatternsWithBraceExpansion=k.isAffectDepthOfReadingPattern=k.endsWithSlashGlobStar=k.hasGlobStar=k.getBaseDirectory=k.isPatternRelatedToParentDirectory=k.getPatternsOutsideCurrentDirectory=k.getPatternsInsideCurrentDirectory=k.getPositivePatterns=k.getNegativePatterns=k.isPositivePattern=k.isNegativePattern=k.convertToNegativePattern=k.convertToPositivePattern=k.isDynamicPattern=k.isStaticPattern=void 0;var Ip=P("path"),Mp=Rs(),pn=Lo(),Do="**",Hp="\\",Bp=/[*?]|^!/,jp=/\[[^[]*]/,Wp=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Gp=/[!*+?@]\([^(]*\)/,Up=/,|\.\./;function qo(e,t={}){return!$o(e,t)}k.isStaticPattern=qo;function $o(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Hp)||Bp.test(e)||jp.test(e)||Wp.test(e)||t.extglob!==!1&&Gp.test(e)||t.braceExpansion!==!1&&Vp(e))}k.isDynamicPattern=$o;function Vp(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return Up.test(n)}function Yp(e){return zt(e)?e.slice(1):e}k.convertToPositivePattern=Yp;function Kp(e){return"!"+e}k.convertToNegativePattern=Kp;function zt(e){return e.startsWith("!")&&e[1]!=="("}k.isNegativePattern=zt;function No(e){return!zt(e)}k.isPositivePattern=No;function Qp(e){return e.filter(zt)}k.getNegativePatterns=Qp;function Xp(e){return e.filter(No)}k.getPositivePatterns=Xp;function Jp(e){return e.filter(t=>!hn(t))}k.getPatternsInsideCurrentDirectory=Jp;function Zp(e){return e.filter(hn)}k.getPatternsOutsideCurrentDirectory=Zp;function hn(e){return e.startsWith("..")||e.startsWith("./..")}k.isPatternRelatedToParentDirectory=hn;function zp(e){return Mp(e,{flipBackslashes:!1})}k.getBaseDirectory=zp;function eh(e){return e.includes(Do)}k.hasGlobStar=eh;function Io(e){return e.endsWith("/"+Do)}k.endsWithSlashGlobStar=Io;function th(e){let t=Ip.basename(e);return Io(e)||qo(t)}k.isAffectDepthOfReadingPattern=th;function rh(e){return e.reduce((t,r)=>t.concat(Mo(r)),[])}k.expandPatternsWithBraceExpansion=rh;function Mo(e){return pn.braces(e,{expand:!0,nodupes:!0})}k.expandBraceExpansion=Mo;function nh(e,t){let{parts:r}=pn.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}k.getPatternParts=nh;function Ho(e,t){return pn.makeRe(e,t)}k.makeRe=Ho;function ih(e,t){return e.map(r=>Ho(r,t))}k.convertPatternsToRe=ih;function sh(e,t){return t.some(r=>r.test(e))}k.matchAny=sh});var Uo=g((g_,Go)=>{"use strict";var oh=P("stream"),jo=oh.PassThrough,uh=Array.prototype.slice;Go.exports=ah;function ah(){let e=[],t=uh.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=jo(n);function u(){for(let a=0,f=arguments.length;a<f;a++)e.push(Wo(arguments[a],n));return c(),this}function c(){if(r)return;r=!0;let a=e.shift();if(!a){process.nextTick(m);return}Array.isArray(a)||(a=[a]);let f=a.length+1;function l(){--f>0||(r=!1,c())}function S(y){function _(){y.removeListener("merge2UnpipeEnd",_),y.removeListener("end",_),s&&y.removeListener("error",v),l()}function v(C){o.emit("error",C)}if(y._readableState.endEmitted)return l();y.on("merge2UnpipeEnd",_),y.on("end",_),s&&y.on("error",v),y.pipe(o,{end:!1}),y.resume()}for(let y=0;y<a.length;y++)S(a[y]);l()}function m(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=u,o.on("unpipe",function(a){a.emit("merge2UnpipeEnd")}),t.length&&u.apply(null,t),o}function Wo(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=Wo(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(jo(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Yo=g(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.merge=void 0;var ch=Uo();function lh(e){let t=ch(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Vo(e)),t.once("end",()=>Vo(e)),t}er.merge=lh;function Vo(e){e.forEach(t=>t.emit("close"))}});var Ko=g(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.isEmpty=ot.isString=void 0;function fh(e){return typeof e=="string"}ot.isString=fh;function ph(e){return e===""}ot.isEmpty=ph});var Pe=g(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.string=re.stream=re.pattern=re.path=re.fs=re.errno=re.array=void 0;var hh=ds();re.array=hh;var dh=ys();re.errno=dh;var yh=ms();re.fs=yh;var mh=gs();re.path=mh;var gh=Bo();re.pattern=gh;var _h=Yo();re.stream=_h;var Sh=Ko();re.string=Sh});var Jo=g(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.convertPatternGroupToTask=ne.convertPatternGroupsToTasks=ne.groupPatternsByBaseDirectory=ne.getNegativePatternsAsPositive=ne.getPositivePatterns=ne.convertPatternsToTasks=ne.generate=void 0;var ke=Pe();function vh(e,t){let r=Qo(e),n=Xo(e,t.ignore),i=r.filter(c=>ke.pattern.isStaticPattern(c,t)),s=r.filter(c=>ke.pattern.isDynamicPattern(c,t)),o=dn(i,n,!1),u=dn(s,n,!0);return o.concat(u)}ne.generate=vh;function dn(e,t,r){let n=[],i=ke.pattern.getPatternsOutsideCurrentDirectory(e),s=ke.pattern.getPatternsInsideCurrentDirectory(e),o=yn(i),u=yn(s);return n.push(...mn(o,t,r)),"."in u?n.push(gn(".",s,t,r)):n.push(...mn(u,t,r)),n}ne.convertPatternsToTasks=dn;function Qo(e){return ke.pattern.getPositivePatterns(e)}ne.getPositivePatterns=Qo;function Xo(e,t){return ke.pattern.getNegativePatterns(e).concat(t).map(ke.pattern.convertToPositivePattern)}ne.getNegativePatternsAsPositive=Xo;function yn(e){let t={};return e.reduce((r,n)=>{let i=ke.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}ne.groupPatternsByBaseDirectory=yn;function mn(e,t,r){return Object.keys(e).map(n=>gn(n,e[n],t,r))}ne.convertPatternGroupsToTasks=mn;function gn(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(ke.pattern.convertToNegativePattern))}}ne.convertPatternGroupToTask=gn});var zo=g(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.removeDuplicateSlashes=ut.transform=void 0;var Eh=/(?!^)\/{2,}/g;function wh(e){return e.map(t=>Zo(t))}ut.transform=wh;function Zo(e){return e.replace(Eh,"/")}ut.removeDuplicateSlashes=Zo});var tu=g(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.read=void 0;function Ch(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){eu(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){_n(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){eu(r,s);return}_n(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),_n(r,o)})})}tr.read=Ch;function eu(e,t){e(t)}function _n(e,t){e(null,t)}});var ru=g(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.read=void 0;function Rh(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}rr.read=Rh});var nu=g(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.createFileSystemAdapter=Te.FILE_SYSTEM_ADAPTER=void 0;var nr=P("fs");Te.FILE_SYSTEM_ADAPTER={lstat:nr.lstat,stat:nr.stat,lstatSync:nr.lstatSync,statSync:nr.statSync};function xh(e){return e===void 0?Te.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Te.FILE_SYSTEM_ADAPTER),e)}Te.createFileSystemAdapter=xh});var iu=g(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});var Ah=nu(),Sn=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Ah.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};vn.default=Sn});var Ye=g(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.statSync=Fe.stat=Fe.Settings=void 0;var su=tu(),bh=ru(),En=iu();Fe.Settings=En.default;function Oh(e,t,r){if(typeof t=="function"){su.read(e,wn(),t);return}su.read(e,wn(t),r)}Fe.stat=Oh;function Ph(e,t){let r=wn(t);return bh.read(e,r)}Fe.statSync=Ph;function wn(e={}){return e instanceof En.default?e:new En.default(e)}});var au=g((O_,uu)=>{var ou;uu.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(ou||(ou=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var lu=g((P_,cu)=>{cu.exports=Th;var kh=au();function Th(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(c){function m(){t&&t(c,r),t=null}s?kh(m):m()}function u(c,m,a){r[c]=a,(--n===0||m)&&o(m)}n?i?i.forEach(function(c){e[c](function(m,a){u(c,m,a)})}):e.forEach(function(c,m){c(function(a,f){u(m,a,f)})}):o(null),s=!1}});var Cn=g(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var ir=process.versions.node.split(".");if(ir[0]===void 0||ir[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var fu=Number.parseInt(ir[0],10),Fh=Number.parseInt(ir[1],10),pu=10,Lh=10,Dh=fu>pu,qh=fu===pu&&Fh>=Lh;sr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Dh||qh});var hu=g(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.createDirentFromStats=void 0;var Rn=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function $h(e,t){return new Rn(e,t)}or.createDirentFromStats=$h});var xn=g(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.fs=void 0;var Nh=hu();ur.fs=Nh});var An=g(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.joinPathSegments=void 0;function Ih(e,t,r){return e.endsWith(r)?e+t:e+r+t}ar.joinPathSegments=Ih});var Su=g(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.readdir=Le.readdirWithFileTypes=Le.read=void 0;var Mh=Ye(),du=lu(),Hh=Cn(),yu=xn(),mu=An();function Bh(e,t,r){if(!t.stats&&Hh.IS_SUPPORT_READDIR_WITH_FILE_TYPES){gu(e,t,r);return}_u(e,t,r)}Le.read=Bh;function gu(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){cr(r,n);return}let s=i.map(u=>({dirent:u,name:u.name,path:mu.joinPathSegments(e,u.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){bn(r,s);return}let o=s.map(u=>jh(u,t));du(o,(u,c)=>{if(u!==null){cr(r,u);return}bn(r,c)})})}Le.readdirWithFileTypes=gu;function jh(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=yu.fs.createDirentFromStats(e.name,i),r(null,e)})}}function _u(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){cr(r,n);return}let s=i.map(o=>{let u=mu.joinPathSegments(e,o,t.pathSegmentSeparator);return c=>{Mh.stat(u,t.fsStatSettings,(m,a)=>{if(m!==null){c(m);return}let f={name:o,path:u,dirent:yu.fs.createDirentFromStats(o,a)};t.stats&&(f.stats=a),c(null,f)})}});du(s,(o,u)=>{if(o!==null){cr(r,o);return}bn(r,u)})})}Le.readdir=_u;function cr(e,t){e(t)}function bn(e,t){e(null,t)}});var Ru=g(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.readdir=De.readdirWithFileTypes=De.read=void 0;var Wh=Ye(),Gh=Cn(),vu=xn(),Eu=An();function Uh(e,t){return!t.stats&&Gh.IS_SUPPORT_READDIR_WITH_FILE_TYPES?wu(e,t):Cu(e,t)}De.read=Uh;function wu(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Eu.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=vu.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}De.readdirWithFileTypes=wu;function Cu(e,t){return t.fs.readdirSync(e).map(n=>{let i=Eu.joinPathSegments(e,n,t.pathSegmentSeparator),s=Wh.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:vu.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}De.readdir=Cu});var xu=g(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.createFileSystemAdapter=qe.FILE_SYSTEM_ADAPTER=void 0;var at=P("fs");qe.FILE_SYSTEM_ADAPTER={lstat:at.lstat,stat:at.stat,lstatSync:at.lstatSync,statSync:at.statSync,readdir:at.readdir,readdirSync:at.readdirSync};function Vh(e){return e===void 0?qe.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},qe.FILE_SYSTEM_ADAPTER),e)}qe.createFileSystemAdapter=Vh});var Au=g(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});var Yh=P("path"),Kh=Ye(),Qh=xu(),On=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Qh.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Yh.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Kh.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Pn.default=On});var lr=g($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.Settings=$e.scandirSync=$e.scandir=void 0;var bu=Su(),Xh=Ru(),kn=Au();$e.Settings=kn.default;function Jh(e,t,r){if(typeof t=="function"){bu.read(e,Tn(),t);return}bu.read(e,Tn(t),r)}$e.scandir=Jh;function Zh(e,t){let r=Tn(t);return Xh.read(e,r)}$e.scandirSync=Zh;function Tn(e={}){return e instanceof kn.default?e:new kn.default(e)}});var Pu=g((M_,Ou)=>{"use strict";function zh(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Ou.exports=zh});var Tu=g((H_,Fn)=>{"use strict";var ed=Pu();function ku(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=ed(td),i=null,s=null,o=0,u=null,c={push:_,drain:ge,saturated:ge,pause:a,paused:!1,concurrency:r,running:m,resume:S,idle:y,length:f,getQueue:l,unshift:v,empty:ge,kill:b,killAndDrain:F,error:V};return c;function m(){return o}function a(){c.paused=!0}function f(){for(var $=i,B=0;$;)$=$.next,B++;return B}function l(){for(var $=i,B=[];$;)B.push($.value),$=$.next;return B}function S(){if(!!c.paused){c.paused=!1;for(var $=0;$<c.concurrency;$++)o++,C()}}function y(){return o===0&&c.length()===0}function _($,B){var L=n.get();L.context=e,L.release=C,L.value=$,L.callback=B||ge,L.errorHandler=u,o===c.concurrency||c.paused?s?(s.next=L,s=L):(i=L,s=L,c.saturated()):(o++,t.call(e,L.value,L.worked))}function v($,B){var L=n.get();L.context=e,L.release=C,L.value=$,L.callback=B||ge,o===c.concurrency||c.paused?i?(L.next=i,i=L):(i=L,s=L,c.saturated()):(o++,t.call(e,L.value,L.worked))}function C($){$&&n.release($);var B=i;B?c.paused?o--:(s===i&&(s=null),i=B.next,B.next=null,t.call(e,B.value,B.worked),s===null&&c.empty()):--o===0&&c.drain()}function b(){i=null,s=null,c.drain=ge}function F(){i=null,s=null,c.drain(),c.drain=ge}function V($){u=$}}function ge(){}function td(){this.value=null,this.callback=ge,this.next=null,this.release=ge,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=ge,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function rd(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(a,f){t.call(this,a).then(function(l){f(null,l)},f)}var i=ku(e,n,r),s=i.push,o=i.unshift;return i.push=u,i.unshift=c,i.drained=m,i;function u(a){var f=new Promise(function(l,S){s(a,function(y,_){if(y){S(y);return}l(_)})});return f.catch(ge),f}function c(a){var f=new Promise(function(l,S){o(a,function(y,_){if(y){S(y);return}l(_)})});return f.catch(ge),f}function m(){var a=i.drain,f=new Promise(function(l){i.drain=function(){a(),l()}});return f}}Fn.exports=ku;Fn.exports.promise=rd});var fr=g(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.joinPathSegments=xe.replacePathSegmentSeparator=xe.isAppliedFilter=xe.isFatalError=void 0;function nd(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}xe.isFatalError=nd;function id(e,t){return e===null||e(t)}xe.isAppliedFilter=id;function sd(e,t){return e.split(/[/\\]/).join(t)}xe.replacePathSegmentSeparator=sd;function od(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}xe.joinPathSegments=od});var qn=g(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});var ud=fr(),Ln=class{constructor(t,r){this._root=t,this._settings=r,this._root=ud.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Dn.default=Ln});var In=g(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});var ad=P("events"),cd=lr(),ld=Tu(),pr=fr(),fd=qn(),$n=class extends fd.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=cd.scandir,this._emitter=new ad.EventEmitter,this._queue=ld(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!pr.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=pr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),pr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&pr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Nn.default=$n});var Fu=g(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});var pd=In(),Mn=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new pd.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{hd(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{dd(t,this._storage)}),this._reader.read()}};Hn.default=Mn;function hd(e,t){e(t)}function dd(e,t){e(null,t)}});var Lu=g(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});var yd=P("stream"),md=In(),Bn=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new md.default(this._root,this._settings),this._stream=new yd.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};jn.default=Bn});var Du=g(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});var gd=lr(),hr=fr(),_d=qn(),Wn=class extends _d.default{constructor(){super(...arguments),this._scandir=gd.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(!!hr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=hr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),hr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&hr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Gn.default=Wn});var qu=g(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});var Sd=Du(),Un=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Sd.default(this._root,this._settings)}read(){return this._reader.read()}};Vn.default=Un});var $u=g(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});var vd=P("path"),Ed=lr(),Yn=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,vd.sep),this.fsScandirSettings=new Ed.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Kn.default=Yn});var Xn=g(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Settings=Ae.walkStream=Ae.walkSync=Ae.walk=void 0;var Nu=Fu(),wd=Lu(),Cd=qu(),Qn=$u();Ae.Settings=Qn.default;function Rd(e,t,r){if(typeof t=="function"){new Nu.default(e,dr()).read(t);return}new Nu.default(e,dr(t)).read(r)}Ae.walk=Rd;function xd(e,t){let r=dr(t);return new Cd.default(e,r).read()}Ae.walkSync=xd;function Ad(e,t){let r=dr(t);return new wd.default(e,r).read()}Ae.walkStream=Ad;function dr(e={}){return e instanceof Qn.default?e:new Qn.default(e)}});var zn=g(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});var bd=P("path"),Od=Ye(),Iu=Pe(),Jn=class{constructor(t){this._settings=t,this._fsStatSettings=new Od.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return bd.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Iu.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Iu.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Zn.default=Jn});var ri=g(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});var Pd=P("stream"),kd=Ye(),Td=Xn(),Fd=zn(),ei=class extends Fd.default{constructor(){super(...arguments),this._walkStream=Td.walkStream,this._stat=kd.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new Pd.PassThrough({objectMode:!0});i._write=(s,o,u)=>this._getEntry(n[s],t[s],r).then(c=>{c!==null&&r.entryFilter(c)&&i.push(c),s===n.length-1&&i.end(),u()}).catch(u);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};ti.default=ei});var Mu=g(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});var ct=Pe(),ni=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=ct.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(t){return ct.pattern.getPatternParts(t,this._micromatchOptions).map(n=>ct.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:ct.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return ct.array.splitWhen(t,r=>r.dynamic&&ct.pattern.hasGlobStar(r.pattern))}};ii.default=ni});var Hu=g(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});var Ld=Mu(),si=class extends Ld.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((c,m)=>{let a=s.segments[m];return!!(a.dynamic&&a.patternRe.test(c)||!a.dynamic&&a.pattern===c)}))return!0}return!1}};oi.default=si});var Bu=g(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});var yr=Pe(),Dd=Hu(),ui=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new Dd.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(yr.pattern.isAffectDepthOfReadingPattern);return yr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=yr.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!yr.pattern.matchAny(t,r)}};ai.default=ui});var ju=g(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var Ke=Pe(),ci=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=Ke.pattern.convertPatternsToRe(t,this._micromatchOptions),i=Ke.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=this._isMatchToPatterns(i,r)&&!this._isMatchToPatterns(t.path,n);return this._settings.unique&&s&&this._createIndexRecord(t),s}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=Ke.path.makeAbsolute(this._settings.cwd,t);return Ke.pattern.matchAny(n,r)}_isMatchToPatterns(t,r){let n=Ke.path.removeLeadingDotSegment(t);return Ke.pattern.matchAny(n,r)||Ke.pattern.matchAny(n+"/",r)}};li.default=ci});var Wu=g(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});var qd=Pe(),fi=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return qd.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};pi.default=fi});var Uu=g(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});var Gu=Pe(),hi=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Gu.path.makeAbsolute(this._settings.cwd,r),r=Gu.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};di.default=hi});var mr=g(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});var $d=P("path"),Nd=Bu(),Id=ju(),Md=Wu(),Hd=Uu(),yi=class{constructor(t){this._settings=t,this.errorFilter=new Md.default(this._settings),this.entryFilter=new Id.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Nd.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Hd.default(this._settings)}_getRootDirectory(t){return $d.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};mi.default=yi});var Vu=g(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});var Bd=ri(),jd=mr(),gi=class extends jd.default{constructor(){super(...arguments),this._reader=new Bd.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=[];return new Promise((s,o)=>{let u=this.api(r,t,n);u.once("error",o),u.on("data",c=>i.push(n.transform(c))),u.once("end",()=>s(i))})}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};_i.default=gi});var Yu=g(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});var Wd=P("stream"),Gd=ri(),Ud=mr(),Si=class extends Ud.default{constructor(){super(...arguments),this._reader=new Gd.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new Wd.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};vi.default=Si});var Ku=g(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});var Vd=Ye(),Yd=Xn(),Kd=zn(),Ei=class extends Kd.default{constructor(){super(...arguments),this._walkSync=Yd.walkSync,this._statSync=Vd.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};wi.default=Ei});var Qu=g(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});var Qd=Ku(),Xd=mr(),Ci=class extends Xd.default{constructor(){super(...arguments),this._reader=new Qd.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Ri.default=Ci});var Xu=g(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var lt=P("fs"),Jd=P("os"),Zd=Math.max(Jd.cpus().length,1);ft.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:lt.lstat,lstatSync:lt.lstatSync,stat:lt.stat,statSync:lt.statSync,readdir:lt.readdir,readdirSync:lt.readdirSync};var xi=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Zd),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},ft.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};ft.default=xi});var ea=g((lS,zu)=>{"use strict";var Ju=Jo(),Zu=zo(),zd=Vu(),ey=Yu(),ty=Qu(),Ai=Xu(),Qe=Pe();async function bi(e,t){pt(e);let r=Oi(e,zd.default,t),n=await Promise.all(r);return Qe.array.flatten(n)}(function(e){function t(o,u){pt(o);let c=Oi(o,ty.default,u);return Qe.array.flatten(c)}e.sync=t;function r(o,u){pt(o);let c=Oi(o,ey.default,u);return Qe.stream.merge(c)}e.stream=r;function n(o,u){pt(o);let c=Zu.transform([].concat(o)),m=new Ai.default(u);return Ju.generate(c,m)}e.generateTasks=n;function i(o,u){pt(o);let c=new Ai.default(u);return Qe.pattern.isDynamicPattern(o,c)}e.isDynamicPattern=i;function s(o){return pt(o),Qe.path.escape(o)}e.escapePath=s})(bi||(bi={}));function Oi(e,t,r){let n=Zu.transform([].concat(e)),i=new Ai.default(r),s=Ju.generate(n,i),o=new t(i);return s.map(o.read,o)}function pt(e){if(![].concat(e).every(n=>Qe.string.isString(n)&&!Qe.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}zu.exports=bi});var ce=g(Pi=>{"use strict";Pi.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,s)=>i!=null?n(i):r(s))})},"name",{value:e.name})};Pi.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var ra=g((pS,ta)=>{var Ne=P("constants"),ry=process.cwd,gr=null,ny=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return gr||(gr=ry.call(process)),gr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(ki=process.chdir,process.chdir=function(e){gr=null,ki.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,ki));var ki;ta.exports=iy;function iy(e){Ne.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(a,f,l){l&&process.nextTick(l)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(a,f,l,S){S&&process.nextTick(S)},e.lchownSync=function(){}),ny==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(a){function f(l,S,y){var _=Date.now(),v=0;a(l,S,function C(b){if(b&&(b.code==="EACCES"||b.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){e.stat(S,function(F,V){F&&F.code==="ENOENT"?a(l,S,C):y(b)})},v),v<100&&(v+=10);return}y&&y(b)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,a),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(a){function f(l,S,y,_,v,C){var b;if(C&&typeof C=="function"){var F=0;b=function(V,$,B){if(V&&V.code==="EAGAIN"&&F<10)return F++,a.call(e,l,S,y,_,v,b);C.apply(this,arguments)}}return a.call(e,l,S,y,_,v,b)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,a),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(a){return function(f,l,S,y,_){for(var v=0;;)try{return a.call(e,f,l,S,y,_)}catch(C){if(C.code==="EAGAIN"&&v<10){v++;continue}throw C}}}(e.readSync);function t(a){a.lchmod=function(f,l,S){a.open(f,Ne.O_WRONLY|Ne.O_SYMLINK,l,function(y,_){if(y){S&&S(y);return}a.fchmod(_,l,function(v){a.close(_,function(C){S&&S(v||C)})})})},a.lchmodSync=function(f,l){var S=a.openSync(f,Ne.O_WRONLY|Ne.O_SYMLINK,l),y=!0,_;try{_=a.fchmodSync(S,l),y=!1}finally{if(y)try{a.closeSync(S)}catch{}else a.closeSync(S)}return _}}function r(a){Ne.hasOwnProperty("O_SYMLINK")&&a.futimes?(a.lutimes=function(f,l,S,y){a.open(f,Ne.O_SYMLINK,function(_,v){if(_){y&&y(_);return}a.futimes(v,l,S,function(C){a.close(v,function(b){y&&y(C||b)})})})},a.lutimesSync=function(f,l,S){var y=a.openSync(f,Ne.O_SYMLINK),_,v=!0;try{_=a.futimesSync(y,l,S),v=!1}finally{if(v)try{a.closeSync(y)}catch{}else a.closeSync(y)}return _}):a.futimes&&(a.lutimes=function(f,l,S,y){y&&process.nextTick(y)},a.lutimesSync=function(){})}function n(a){return a&&function(f,l,S){return a.call(e,f,l,function(y){m(y)&&(y=null),S&&S.apply(this,arguments)})}}function i(a){return a&&function(f,l){try{return a.call(e,f,l)}catch(S){if(!m(S))throw S}}}function s(a){return a&&function(f,l,S,y){return a.call(e,f,l,S,function(_){m(_)&&(_=null),y&&y.apply(this,arguments)})}}function o(a){return a&&function(f,l,S){try{return a.call(e,f,l,S)}catch(y){if(!m(y))throw y}}}function u(a){return a&&function(f,l,S){typeof l=="function"&&(S=l,l=null);function y(_,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),S&&S.apply(this,arguments)}return l?a.call(e,f,l,y):a.call(e,f,y)}}function c(a){return a&&function(f,l){var S=l?a.call(e,f,l):a.call(e,f);return S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),S}}function m(a){if(!a||a.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(a.code==="EINVAL"||a.code==="EPERM"))}}});var sa=g((hS,ia)=>{var na=P("stream").Stream;ia.exports=sy;function sy(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);na.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),u=0,c=o.length;u<c;u++){var m=o[u];this[m]=i[m]}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}e.open(this.path,this.flags,this.mode,function(a,f){if(a){s.emit("error",a),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);na.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,u=s.length;o<u;o++){var c=s[o];this[c]=i[c]}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=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var ua=g((dS,oa)=>{"use strict";oa.exports=uy;var oy=Object.getPrototypeOf||function(e){return e.__proto__};function uy(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:oy(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var oe=g((yS,Li)=>{var K=P("fs"),ay=ra(),cy=sa(),ly=ua(),_r=P("util"),ee,vr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ee=Symbol.for("graceful-fs.queue"),vr=Symbol.for("graceful-fs.previous")):(ee="___graceful-fs.queue",vr="___graceful-fs.previous");function fy(){}function la(e,t){Object.defineProperty(e,ee,{get:function(){return t}})}var Xe=fy;_r.debuglog?Xe=_r.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Xe=function(){var e=_r.format.apply(_r,arguments);e="GFS4: "+e.split(/\n/).join(`
7
+ GFS4: `),console.error(e)});K[ee]||(aa=global[ee]||[],la(K,aa),K.close=function(e){function t(r,n){return e.call(K,r,function(i){i||ca(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,vr,{value:e}),t}(K.close),K.closeSync=function(e){function t(r){e.apply(K,arguments),ca()}return Object.defineProperty(t,vr,{value:e}),t}(K.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Xe(K[ee]),P("assert").equal(K[ee].length,0)}));var aa;global[ee]||la(global,K[ee]);Li.exports=Ti(ly(K));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!K.__patched&&(Li.exports=Ti(K),K.__patched=!0);function Ti(e){ay(e),e.gracefulify=Ti,e.createReadStream=$,e.createWriteStream=B;var t=e.readFile;e.readFile=r;function r(w,O,d){return typeof O=="function"&&(d=O,O=null),D(w,O,d);function D(T,j,p,h){return t(T,j,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?ht([D,[T,j,p],q,h||Date.now(),Date.now()]):typeof p=="function"&&p.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(w,O,d,D){return typeof d=="function"&&(D=d,d=null),T(w,O,d,D);function T(j,p,h,q,A){return n(j,p,h,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?ht([T,[j,p,h,q],H,A||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(w,O,d,D){return typeof d=="function"&&(D=d,d=null),T(w,O,d,D);function T(j,p,h,q,A){return s(j,p,h,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?ht([T,[j,p,h,q],H,A||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var u=e.copyFile;u&&(e.copyFile=c);function c(w,O,d,D){return typeof d=="function"&&(D=d,d=0),T(w,O,d,D);function T(j,p,h,q,A){return u(j,p,h,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?ht([T,[j,p,h,q],H,A||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var m=e.readdir;e.readdir=f;var a=/^v[0-5]\./;function f(w,O,d){typeof O=="function"&&(d=O,O=null);var D=a.test(process.version)?function(p,h,q,A){return m(p,T(p,h,q,A))}:function(p,h,q,A){return m(p,h,T(p,h,q,A))};return D(w,O,d);function T(j,p,h,q){return function(A,H){A&&(A.code==="EMFILE"||A.code==="ENFILE")?ht([D,[j,p,h],A,q||Date.now(),Date.now()]):(H&&H.sort&&H.sort(),typeof h=="function"&&h.call(this,A,H))}}}if(process.version.substr(0,4)==="v0.8"){var l=cy(e);C=l.ReadStream,F=l.WriteStream}var S=e.ReadStream;S&&(C.prototype=Object.create(S.prototype),C.prototype.open=b);var y=e.WriteStream;y&&(F.prototype=Object.create(y.prototype),F.prototype.open=V),Object.defineProperty(e,"ReadStream",{get:function(){return C},set:function(w){C=w},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return F},set:function(w){F=w},enumerable:!0,configurable:!0});var _=C;Object.defineProperty(e,"FileReadStream",{get:function(){return _},set:function(w){_=w},enumerable:!0,configurable:!0});var v=F;Object.defineProperty(e,"FileWriteStream",{get:function(){return v},set:function(w){v=w},enumerable:!0,configurable:!0});function C(w,O){return this instanceof C?(S.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function b(){var w=this;x(w.path,w.flags,w.mode,function(O,d){O?(w.autoClose&&w.destroy(),w.emit("error",O)):(w.fd=d,w.emit("open",d),w.read())})}function F(w,O){return this instanceof F?(y.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function V(){var w=this;x(w.path,w.flags,w.mode,function(O,d){O?(w.destroy(),w.emit("error",O)):(w.fd=d,w.emit("open",d))})}function $(w,O){return new e.ReadStream(w,O)}function B(w,O){return new e.WriteStream(w,O)}var L=e.open;e.open=x;function x(w,O,d,D){return typeof d=="function"&&(D=d,d=null),T(w,O,d,D);function T(j,p,h,q,A){return L(j,p,h,function(H,_e){H&&(H.code==="EMFILE"||H.code==="ENFILE")?ht([T,[j,p,h,q],H,A||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}return e}function ht(e){Xe("ENQUEUE",e[0].name,e[1]),K[ee].push(e),Fi()}var Sr;function ca(){for(var e=Date.now(),t=0;t<K[ee].length;++t)K[ee][t].length>2&&(K[ee][t][3]=e,K[ee][t][4]=e);Fi()}function Fi(){if(clearTimeout(Sr),Sr=void 0,K[ee].length!==0){var e=K[ee].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)Xe("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Xe("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var u=Date.now()-s,c=Math.max(s-i,1),m=Math.min(c*1.2,100);u>=m?(Xe("RETRY",t.name,r),t.apply(null,r.concat([i]))):K[ee].push(e)}Sr===void 0&&(Sr=setTimeout(Fi,0))}}});var Je=g(Ie=>{"use strict";var fa=ce().fromCallback,le=oe(),py=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof le[e]=="function");Object.assign(Ie,le);py.forEach(e=>{Ie[e]=fa(le[e])});Ie.exists=function(e,t){return typeof t=="function"?le.exists(e,t):new Promise(r=>le.exists(e,r))};Ie.read=function(e,t,r,n,i,s){return typeof s=="function"?le.read(e,t,r,n,i,s):new Promise((o,u)=>{le.read(e,t,r,n,i,(c,m,a)=>{if(c)return u(c);o({bytesRead:m,buffer:a})})})};Ie.write=function(e,t,...r){return typeof r[r.length-1]=="function"?le.write(e,t,...r):new Promise((n,i)=>{le.write(e,t,...r,(s,o,u)=>{if(s)return i(s);n({bytesWritten:o,buffer:u})})})};typeof le.writev=="function"&&(Ie.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?le.writev(e,t,...r):new Promise((n,i)=>{le.writev(e,t,...r,(s,o,u)=>{if(s)return i(s);n({bytesWritten:o,buffers:u})})})});typeof le.realpath.native=="function"?Ie.realpath.native=fa(le.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var ha=g((gS,pa)=>{"use strict";var hy=P("path");pa.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(hy.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var ga=g((_S,Di)=>{"use strict";var da=Je(),{checkPath:ya}=ha(),ma=e=>{let t={mode:511};return typeof e=="number"?e:N(N({},t),e).mode};Di.exports.makeDir=async(e,t)=>(ya(e),da.mkdir(e,{mode:ma(t),recursive:!0}));Di.exports.makeDirSync=(e,t)=>(ya(e),da.mkdirSync(e,{mode:ma(t),recursive:!0}))});var ve=g((SS,_a)=>{"use strict";var dy=ce().fromPromise,{makeDir:yy,makeDirSync:qi}=ga(),$i=dy(yy);_a.exports={mkdirs:$i,mkdirsSync:qi,mkdirp:$i,mkdirpSync:qi,ensureDir:$i,ensureDirSync:qi}});var Me=g((vS,va)=>{"use strict";var my=ce().fromPromise,Sa=Je();function gy(e){return Sa.access(e).then(()=>!0).catch(()=>!1)}va.exports={pathExists:my(gy),pathExistsSync:Sa.existsSync}});var Ni=g((ES,Ea)=>{"use strict";var dt=oe();function _y(e,t,r,n){dt.open(e,"r+",(i,s)=>{if(i)return n(i);dt.futimes(s,t,r,o=>{dt.close(s,u=>{n&&n(o||u)})})})}function Sy(e,t,r){let n=dt.openSync(e,"r+");return dt.futimesSync(n,t,r),dt.closeSync(n)}Ea.exports={utimesMillis:_y,utimesMillisSync:Sy}});var Ze=g((wS,Ra)=>{"use strict";var yt=Je(),Z=P("path"),vy=P("util");function Ey(e,t,r){let n=r.dereference?i=>yt.stat(i,{bigint:!0}):i=>yt.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,s])=>({srcStat:i,destStat:s}))}function wy(e,t,r){let n,i=r.dereference?o=>yt.statSync(o,{bigint:!0}):o=>yt.lstatSync(o,{bigint:!0}),s=i(e);try{n=i(t)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:n}}function Cy(e,t,r,n,i){vy.callbackify(Ey)(e,t,n,(s,o)=>{if(s)return i(s);let{srcStat:u,destStat:c}=o;if(c){if(wt(u,c)){let m=Z.basename(e),a=Z.basename(t);return r==="move"&&m!==a&&m.toLowerCase()===a.toLowerCase()?i(null,{srcStat:u,destStat:c,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(u.isDirectory()&&!c.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!u.isDirectory()&&c.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return u.isDirectory()&&Ii(e,t)?i(new Error(Er(e,t,r))):i(null,{srcStat:u,destStat:c})})}function Ry(e,t,r,n){let{srcStat:i,destStat:s}=wy(e,t,n);if(s){if(wt(i,s)){let o=Z.basename(e),u=Z.basename(t);if(r==="move"&&o!==u&&o.toLowerCase()===u.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&Ii(e,t))throw new Error(Er(e,t,r));return{srcStat:i,destStat:s}}function wa(e,t,r,n,i){let s=Z.resolve(Z.dirname(e)),o=Z.resolve(Z.dirname(r));if(o===s||o===Z.parse(o).root)return i();yt.stat(o,{bigint:!0},(u,c)=>u?u.code==="ENOENT"?i():i(u):wt(t,c)?i(new Error(Er(e,r,n))):wa(e,t,o,n,i))}function Ca(e,t,r,n){let i=Z.resolve(Z.dirname(e)),s=Z.resolve(Z.dirname(r));if(s===i||s===Z.parse(s).root)return;let o;try{o=yt.statSync(s,{bigint:!0})}catch(u){if(u.code==="ENOENT")return;throw u}if(wt(t,o))throw new Error(Er(e,r,n));return Ca(e,t,s,n)}function wt(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Ii(e,t){let r=Z.resolve(e).split(Z.sep).filter(i=>i),n=Z.resolve(t).split(Z.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Er(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}Ra.exports={checkPaths:Cy,checkPathsSync:Ry,checkParentPaths:wa,checkParentPathsSync:Ca,isSrcSubdir:Ii,areIdentical:wt}});var Fa=g((CS,Ta)=>{"use strict";var fe=oe(),Ct=P("path"),xy=ve().mkdirs,Ay=Me().pathExists,by=Ni().utimesMillis,Rt=Ze();function Oy(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
8
8
 
9
- see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),Rt.checkPaths(e,t,"copy",r,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:u}=s;Rt.checkParentPaths(e,o,t,"copy",c=>c?n(c):r.filter?xa(Ca,u,e,t,r,n):Ca(u,e,t,r,n))})}function Ca(e,t,r,n,i){let s=Ct.dirname(r);Cy(s,(o,u)=>{if(o)return i(o);if(u)return wr(e,t,r,n,i);wy(s,c=>c?i(c):wr(e,t,r,n,i))})}function xa(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?e(t,r,n,i,s):s(),o=>s(o))}function Ay(e,t,r,n,i){return n.filter?xa(wr,e,t,r,n,i):wr(e,t,r,n,i)}function wr(e,t,r,n,i){(n.dereference?fe.stat:fe.lstat)(t,(o,u)=>o?i(o):u.isDirectory()?Ly(u,e,t,r,n,i):u.isFile()||u.isCharacterDevice()||u.isBlockDevice()?by(u,e,t,r,n,i):u.isSymbolicLink()?$y(e,t,r,n,i):u.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):u.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`)))}function by(e,t,r,n,i,s){return t?Oy(e,r,n,i,s):Aa(e,r,n,i,s)}function Oy(e,t,r,n,i){if(n.overwrite)fe.unlink(r,s=>s?i(s):Aa(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Aa(e,t,r,n,i){fe.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?Py(e.mode,t,r,i):Cr(r,e.mode,i))}function Py(e,t,r,n){return ky(e)?Ty(r,e,i=>i?n(i):Ra(e,t,r,n)):Ra(e,t,r,n)}function ky(e){return(e&128)===0}function Ty(e,t,r){return Cr(e,t|128,r)}function Ra(e,t,r,n){Fy(t,r,i=>i?n(i):Cr(r,e,n))}function Cr(e,t,r){return fe.chmod(e,t,r)}function Fy(e,t,r){fe.stat(e,(n,i)=>n?r(n):Ry(t,i.atime,i.mtime,r))}function Ly(e,t,r,n,i,s){return t?ba(r,n,i,s):Dy(e.mode,r,n,i,s)}function Dy(e,t,r,n,i){fe.mkdir(r,s=>{if(s)return i(s);ba(t,r,n,o=>o?i(o):Cr(r,e,i))})}function ba(e,t,r,n){fe.readdir(e,(i,s)=>i?n(i):Oa(s,e,t,r,n))}function Oa(e,t,r,n,i){let s=e.pop();return s?qy(e,s,t,r,n,i):i()}function qy(e,t,r,n,i,s){let o=Ct.join(r,t),u=Ct.join(n,t);Rt.checkPaths(o,u,"copy",i,(c,m)=>{if(c)return s(c);let{destStat:a}=m;Ay(a,o,u,i,f=>f?s(f):Oa(e,r,n,i,s))})}function $y(e,t,r,n,i){fe.readlink(t,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Ct.resolve(process.cwd(),o)),e)fe.readlink(r,(u,c)=>u?u.code==="EINVAL"||u.code==="UNKNOWN"?fe.symlink(o,r,i):i(u):(n.dereference&&(c=Ct.resolve(process.cwd(),c)),Rt.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&Rt.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):Ny(o,r,i)));else return fe.symlink(o,r,i)})}function Ny(e,t,r){fe.unlink(t,n=>n?r(n):fe.symlink(e,t,r))}Pa.exports=xy});var qa=g((SS,Da)=>{"use strict";var ie=oe(),xt=P("path"),Iy=ve().mkdirsSync,My=qi().utimesMillisSync,At=Ze();function Hy(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
9
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),Rt.checkPaths(e,t,"copy",r,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:u}=s;Rt.checkParentPaths(e,o,t,"copy",c=>c?n(c):r.filter?ba(xa,u,e,t,r,n):xa(u,e,t,r,n))})}function xa(e,t,r,n,i){let s=Ct.dirname(r);Ay(s,(o,u)=>{if(o)return i(o);if(u)return wr(e,t,r,n,i);xy(s,c=>c?i(c):wr(e,t,r,n,i))})}function ba(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?e(t,r,n,i,s):s(),o=>s(o))}function Py(e,t,r,n,i){return n.filter?ba(wr,e,t,r,n,i):wr(e,t,r,n,i)}function wr(e,t,r,n,i){(n.dereference?fe.stat:fe.lstat)(t,(o,u)=>o?i(o):u.isDirectory()?$y(u,e,t,r,n,i):u.isFile()||u.isCharacterDevice()||u.isBlockDevice()?ky(u,e,t,r,n,i):u.isSymbolicLink()?My(e,t,r,n,i):u.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):u.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`)))}function ky(e,t,r,n,i,s){return t?Ty(e,r,n,i,s):Oa(e,r,n,i,s)}function Ty(e,t,r,n,i){if(n.overwrite)fe.unlink(r,s=>s?i(s):Oa(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Oa(e,t,r,n,i){fe.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?Fy(e.mode,t,r,i):Cr(r,e.mode,i))}function Fy(e,t,r,n){return Ly(e)?Dy(r,e,i=>i?n(i):Aa(e,t,r,n)):Aa(e,t,r,n)}function Ly(e){return(e&128)===0}function Dy(e,t,r){return Cr(e,t|128,r)}function Aa(e,t,r,n){qy(t,r,i=>i?n(i):Cr(r,e,n))}function Cr(e,t,r){return fe.chmod(e,t,r)}function qy(e,t,r){fe.stat(e,(n,i)=>n?r(n):by(t,i.atime,i.mtime,r))}function $y(e,t,r,n,i,s){return t?Pa(r,n,i,s):Ny(e.mode,r,n,i,s)}function Ny(e,t,r,n,i){fe.mkdir(r,s=>{if(s)return i(s);Pa(t,r,n,o=>o?i(o):Cr(r,e,i))})}function Pa(e,t,r,n){fe.readdir(e,(i,s)=>i?n(i):ka(s,e,t,r,n))}function ka(e,t,r,n,i){let s=e.pop();return s?Iy(e,s,t,r,n,i):i()}function Iy(e,t,r,n,i,s){let o=Ct.join(r,t),u=Ct.join(n,t);Rt.checkPaths(o,u,"copy",i,(c,m)=>{if(c)return s(c);let{destStat:a}=m;Py(a,o,u,i,f=>f?s(f):ka(e,r,n,i,s))})}function My(e,t,r,n,i){fe.readlink(t,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Ct.resolve(process.cwd(),o)),e)fe.readlink(r,(u,c)=>u?u.code==="EINVAL"||u.code==="UNKNOWN"?fe.symlink(o,r,i):i(u):(n.dereference&&(c=Ct.resolve(process.cwd(),c)),Rt.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&Rt.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):Hy(o,r,i)));else return fe.symlink(o,r,i)})}function Hy(e,t,r){fe.unlink(t,n=>n?r(n):fe.symlink(e,t,r))}Ta.exports=Oy});var Na=g((RS,$a)=>{"use strict";var ie=oe(),xt=P("path"),By=ve().mkdirsSync,jy=Ni().utimesMillisSync,At=Ze();function Wy(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
10
10
 
11
- see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:i}=At.checkPathsSync(e,t,"copy",r);return At.checkParentPathsSync(e,n,t,"copy"),By(i,e,t,r)}function By(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=xt.dirname(r);return ie.existsSync(i)||Iy(i),Ta(e,t,r,n)}function jy(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return Ta(e,t,r,n)}function Ta(e,t,r,n){let s=(n.dereference?ie.statSync:ie.lstatSync)(t);if(s.isDirectory())return Qy(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Wy(s,e,t,r,n);if(s.isSymbolicLink())return Zy(e,t,r,n);throw s.isSocket()?new Error(`Cannot copy a socket file: ${t}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function Wy(e,t,r,n,i){return t?Gy(e,r,n,i):Fa(e,r,n,i)}function Gy(e,t,r,n){if(n.overwrite)return ie.unlinkSync(r),Fa(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Fa(e,t,r,n){return ie.copyFileSync(t,r),n.preserveTimestamps&&Uy(e.mode,t,r),Ni(r,e.mode)}function Uy(e,t,r){return Vy(e)&&Yy(r,e),Ky(t,r)}function Vy(e){return(e&128)===0}function Yy(e,t){return Ni(e,t|128)}function Ni(e,t){return ie.chmodSync(e,t)}function Ky(e,t){let r=ie.statSync(e);return My(t,r.atime,r.mtime)}function Qy(e,t,r,n,i){return t?La(r,n,i):Xy(e.mode,r,n,i)}function Xy(e,t,r,n){return ie.mkdirSync(r),La(t,r,n),Ni(r,e)}function La(e,t,r){ie.readdirSync(e).forEach(n=>Jy(n,e,t,r))}function Jy(e,t,r,n){let i=xt.join(t,e),s=xt.join(r,e),{destStat:o}=At.checkPathsSync(i,s,"copy",n);return jy(o,i,s,n)}function Zy(e,t,r,n){let i=ie.readlinkSync(t);if(n.dereference&&(i=xt.resolve(process.cwd(),i)),e){let s;try{s=ie.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return ie.symlinkSync(i,r);throw o}if(n.dereference&&(s=xt.resolve(process.cwd(),s)),At.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(ie.statSync(r).isDirectory()&&At.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return zy(i,r)}else return ie.symlinkSync(i,r)}function zy(e,t){return ie.unlinkSync(t),ie.symlinkSync(e,t)}Da.exports=Hy});var Rr=g((vS,$a)=>{"use strict";var em=ce().fromCallback;$a.exports={copy:em(ka()),copySync:qa()}});var Ua=g((ES,Ga)=>{"use strict";var Na=oe(),Ba=P("path"),W=P("assert"),bt=process.platform==="win32";function ja(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||Na[r],r=r+"Sync",e[r]=e[r]||Na[r]}),e.maxBusyTries=e.maxBusyTries||3}function Ii(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),W(e,"rimraf: missing path"),W.strictEqual(typeof e,"string","rimraf: path should be a string"),W.strictEqual(typeof r,"function","rimraf: callback function required"),W(t,"rimraf: invalid options argument provided"),W.strictEqual(typeof t,"object","rimraf: options should be object"),ja(t),Ia(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;let o=n*100;return setTimeout(()=>Ia(e,t,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function Ia(e,t,r){W(e),W(t),W(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&bt)return Ma(e,t,n,r);if(i&&i.isDirectory())return xr(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return bt?Ma(e,t,s,r):xr(e,t,s,r);if(s.code==="EISDIR")return xr(e,t,s,r)}return r(s)})})}function Ma(e,t,r,n){W(e),W(t),W(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?xr(e,t,r,n):t.unlink(e,n)})})}function Ha(e,t,r){let n;W(e),W(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Ar(e,t,r):t.unlinkSync(e)}function xr(e,t,r,n){W(e),W(t),W(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?tm(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function tm(e,t,r){W(e),W(t),W(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return t.rmdir(e,r);i.forEach(u=>{Ii(Ba.join(e,u),t,c=>{if(!o){if(c)return r(o=c);--s===0&&t.rmdir(e,r)}})})})}function Wa(e,t){let r;t=t||{},ja(t),W(e,"rimraf: missing path"),W.strictEqual(typeof e,"string","rimraf: path should be a string"),W(t,"rimraf: missing options"),W.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&bt&&Ha(e,t,n)}try{r&&r.isDirectory()?Ar(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return bt?Ha(e,t,n):Ar(e,t,n);if(n.code!=="EISDIR")throw n;Ar(e,t,n)}}function Ar(e,t,r){W(e),W(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")rm(e,t);else if(n.code!=="ENOENT")throw n}}function rm(e,t){if(W(e),W(t),t.readdirSync(e).forEach(r=>Wa(Ba.join(e,r),t)),bt){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}Ga.exports=Ii;Ii.sync=Wa});var Ot=g((wS,Ya)=>{"use strict";var br=oe(),nm=ce().fromCallback,Va=Ua();function im(e,t){if(br.rm)return br.rm(e,{recursive:!0,force:!0},t);Va(e,t)}function sm(e){if(br.rmSync)return br.rmSync(e,{recursive:!0,force:!0});Va.sync(e)}Ya.exports={remove:nm(im),removeSync:sm}});var tc=g((CS,ec)=>{"use strict";var om=ce().fromPromise,Xa=Je(),Ja=P("path"),Za=ve(),za=Ot(),Ka=om(async function(t){let r;try{r=await Xa.readdir(t)}catch{return Za.mkdirs(t)}return Promise.all(r.map(n=>za.remove(Ja.join(t,n))))});function Qa(e){let t;try{t=Xa.readdirSync(e)}catch{return Za.mkdirsSync(e)}t.forEach(r=>{r=Ja.join(e,r),za.removeSync(r)})}ec.exports={emptyDirSync:Qa,emptydirSync:Qa,emptyDir:Ka,emptydir:Ka}});var sc=g((RS,ic)=>{"use strict";var um=ce().fromCallback,rc=P("path"),He=oe(),nc=ve();function am(e,t){function r(){He.writeFile(e,"",n=>{if(n)return t(n);t()})}He.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let s=rc.dirname(e);He.stat(s,(o,u)=>{if(o)return o.code==="ENOENT"?nc.mkdirs(s,c=>{if(c)return t(c);r()}):t(o);u.isDirectory()?r():He.readdir(s,c=>{if(c)return t(c)})})})}function cm(e){let t;try{t=He.statSync(e)}catch{}if(t&&t.isFile())return;let r=rc.dirname(e);try{He.statSync(r).isDirectory()||He.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")nc.mkdirsSync(r);else throw n}He.writeFileSync(e,"")}ic.exports={createFile:um(am),createFileSync:cm}});var lc=g((xS,cc)=>{"use strict";var lm=ce().fromCallback,oc=P("path"),Be=oe(),uc=ve(),fm=Me().pathExists,{areIdentical:ac}=Ze();function pm(e,t,r){function n(i,s){Be.link(i,s,o=>{if(o)return r(o);r(null)})}Be.lstat(t,(i,s)=>{Be.lstat(e,(o,u)=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);if(s&&ac(u,s))return r(null);let c=oc.dirname(t);fm(c,(m,a)=>{if(m)return r(m);if(a)return n(e,t);uc.mkdirs(c,f=>{if(f)return r(f);n(e,t)})})})})}function hm(e,t){let r;try{r=Be.lstatSync(t)}catch{}try{let s=Be.lstatSync(e);if(r&&ac(s,r))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=oc.dirname(t);return Be.existsSync(n)||uc.mkdirsSync(n),Be.linkSync(e,t)}cc.exports={createLink:lm(pm),createLinkSync:hm}});var pc=g((AS,fc)=>{"use strict";var je=P("path"),Pt=oe(),dm=Me().pathExists;function ym(e,t,r){if(je.isAbsolute(e))return Pt.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=je.dirname(t),i=je.join(n,e);return dm(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:e}):Pt.lstat(e,u=>u?(u.message=u.message.replace("lstat","ensureSymlink"),r(u)):r(null,{toCwd:e,toDst:je.relative(n,e)})))}}function mm(e,t){let r;if(je.isAbsolute(e)){if(r=Pt.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=je.dirname(t),i=je.join(n,e);if(r=Pt.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Pt.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:je.relative(n,e)}}}fc.exports={symlinkPaths:ym,symlinkPathsSync:mm}});var yc=g((bS,dc)=>{"use strict";var hc=oe();function gm(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);hc.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function _m(e,t){let r;if(t)return t;try{r=hc.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}dc.exports={symlinkType:gm,symlinkTypeSync:_m}});var Cc=g((OS,wc)=>{"use strict";var Sm=ce().fromCallback,gc=P("path"),Ee=Je(),_c=ve(),vm=_c.mkdirs,Em=_c.mkdirsSync,Sc=pc(),wm=Sc.symlinkPaths,Cm=Sc.symlinkPathsSync,vc=yc(),Rm=vc.symlinkType,xm=vc.symlinkTypeSync,Am=Me().pathExists,{areIdentical:Ec}=Ze();function bm(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Ee.lstat(t,(i,s)=>{!i&&s.isSymbolicLink()?Promise.all([Ee.stat(e),Ee.stat(t)]).then(([o,u])=>{if(Ec(o,u))return n(null);mc(e,t,r,n)}):mc(e,t,r,n)})}function mc(e,t,r,n){wm(e,t,(i,s)=>{if(i)return n(i);e=s.toDst,Rm(s.toCwd,r,(o,u)=>{if(o)return n(o);let c=gc.dirname(t);Am(c,(m,a)=>{if(m)return n(m);if(a)return Ee.symlink(e,t,u,n);vm(c,f=>{if(f)return n(f);Ee.symlink(e,t,u,n)})})})})}function Om(e,t,r){let n;try{n=Ee.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){let u=Ee.statSync(e),c=Ee.statSync(t);if(Ec(u,c))return}let i=Cm(e,t);e=i.toDst,r=xm(i.toCwd,r);let s=gc.dirname(t);return Ee.existsSync(s)||Em(s),Ee.symlinkSync(e,t,r)}wc.exports={createSymlink:Sm(bm),createSymlinkSync:Om}});var Tc=g((PS,kc)=>{"use strict";var{createFile:Rc,createFileSync:xc}=sc(),{createLink:Ac,createLinkSync:bc}=lc(),{createSymlink:Oc,createSymlinkSync:Pc}=Cc();kc.exports={createFile:Rc,createFileSync:xc,ensureFile:Rc,ensureFileSync:xc,createLink:Ac,createLinkSync:bc,ensureLink:Ac,ensureLinkSync:bc,createSymlink:Oc,createSymlinkSync:Pc,ensureSymlink:Oc,ensureSymlinkSync:Pc}});var Or=g((kS,Fc)=>{function Pm(e,{EOL:t=`
12
- `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function km(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Fc.exports={stringify:Pm,stripBom:km}});var $c=g((TS,qc)=>{var mt;try{mt=oe()}catch{mt=P("fs")}var Pr=ce(),{stringify:Lc,stripBom:Dc}=Or();async function Tm(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||mt,n="throws"in t?t.throws:!0,i=await Pr.fromCallback(r.readFile)(e,t);i=Dc(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}return s}var Fm=Pr.fromPromise(Tm);function Lm(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||mt,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Dc(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function Dm(e,t,r={}){let n=r.fs||mt,i=Lc(t,r);await Pr.fromCallback(n.writeFile)(e,i,r)}var qm=Pr.fromPromise(Dm);function $m(e,t,r={}){let n=r.fs||mt,i=Lc(t,r);return n.writeFileSync(e,i,r)}var Nm={readFile:Fm,readFileSync:Lm,writeFile:qm,writeFileSync:$m};qc.exports=Nm});var Ic=g((FS,Nc)=>{"use strict";var kr=$c();Nc.exports={readJson:kr.readFile,readJsonSync:kr.readFileSync,writeJson:kr.writeFile,writeJsonSync:kr.writeFileSync}});var Tr=g((LS,Bc)=>{"use strict";var Im=ce().fromCallback,kt=oe(),Mc=P("path"),Hc=ve(),Mm=Me().pathExists;function Hm(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Mc.dirname(e);Mm(i,(s,o)=>{if(s)return n(s);if(o)return kt.writeFile(e,t,r,n);Hc.mkdirs(i,u=>{if(u)return n(u);kt.writeFile(e,t,r,n)})})}function Bm(e,...t){let r=Mc.dirname(e);if(kt.existsSync(r))return kt.writeFileSync(e,...t);Hc.mkdirsSync(r),kt.writeFileSync(e,...t)}Bc.exports={outputFile:Im(Hm),outputFileSync:Bm}});var Wc=g((DS,jc)=>{"use strict";var{stringify:jm}=Or(),{outputFile:Wm}=Tr();async function Gm(e,t,r={}){let n=jm(t,r);await Wm(e,n,r)}jc.exports=Gm});var Uc=g((qS,Gc)=>{"use strict";var{stringify:Um}=Or(),{outputFileSync:Vm}=Tr();function Ym(e,t,r){let n=Um(t,r);Vm(e,n,r)}Gc.exports=Ym});var Yc=g(($S,Vc)=>{"use strict";var Km=ce().fromPromise,ue=Ic();ue.outputJson=Km(Wc());ue.outputJsonSync=Uc();ue.outputJSON=ue.outputJson;ue.outputJSONSync=ue.outputJsonSync;ue.writeJSON=ue.writeJson;ue.writeJSONSync=ue.writeJsonSync;ue.readJSON=ue.readJson;ue.readJSONSync=ue.readJsonSync;Vc.exports=ue});var Zc=g((NS,Jc)=>{"use strict";var Qm=oe(),Hi=P("path"),Xm=Rr().copy,Xc=Ot().remove,Jm=ve().mkdirp,Zm=Me().pathExists,Kc=Ze();function zm(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};let i=r.overwrite||r.clobber||!1;Kc.checkPaths(e,t,"move",r,(s,o)=>{if(s)return n(s);let{srcStat:u,isChangingCase:c=!1}=o;Kc.checkParentPaths(e,u,t,"move",m=>{if(m)return n(m);if(eg(t))return Qc(e,t,i,c,n);Jm(Hi.dirname(t),a=>a?n(a):Qc(e,t,i,c,n))})})}function eg(e){let t=Hi.dirname(e);return Hi.parse(t).root===t}function Qc(e,t,r,n,i){if(n)return Mi(e,t,r,i);if(r)return Xc(t,s=>s?i(s):Mi(e,t,r,i));Zm(t,(s,o)=>s?i(s):o?i(new Error("dest already exists.")):Mi(e,t,r,i))}function Mi(e,t,r,n){Qm.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):tg(e,t,r,n):n())}function tg(e,t,r,n){Xm(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):Xc(e,n))}Jc.exports=zm});var nl=g((IS,rl)=>{"use strict";var el=oe(),ji=P("path"),rg=Rr().copySync,tl=Ot().removeSync,ng=ve().mkdirpSync,zc=Ze();function ig(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=zc.checkPathsSync(e,t,"move",r);return zc.checkParentPathsSync(e,i,t,"move"),sg(t)||ng(ji.dirname(t)),og(e,t,n,s)}function sg(e){let t=ji.dirname(e);return ji.parse(t).root===t}function og(e,t,r,n){if(n)return Bi(e,t,r);if(r)return tl(t),Bi(e,t,r);if(el.existsSync(t))throw new Error("dest already exists.");return Bi(e,t,r)}function Bi(e,t,r){try{el.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return ug(e,t,r)}}function ug(e,t,r){return rg(e,t,{overwrite:r,errorOnExist:!0}),tl(e)}rl.exports=ig});var sl=g((MS,il)=>{"use strict";var ag=ce().fromCallback;il.exports={move:ag(Zc()),moveSync:nl()}});var ul=g((HS,ol)=>{"use strict";ol.exports=N(N(N(N(N(N(N(N(N(N({},Je()),Rr()),tc()),Tc()),Yc()),ve()),sl()),Tr()),Me()),Ot())});import hg from"fs";import hl from"path";import{exec as dg}from"child_process";import yg from"yargs";import mg from"open";import Lr from"consola";import{yellow as gg}from"kolorist";var $t="0.4.0";var is=gt(ns());import{dirname as jl,resolve as Br}from"path";var Wl=(0,is.default)("valaxy:options");function Gl(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}function Ul(e,t){return e?Gl(e)?Br(jl(t),e):$r(`valaxy-theme-${e}/package.json`):""}async function Bt(e,t="dev"){let r=Br($r("valaxy/package.json"),"src/client"),n=Br(e.userRoot||process.cwd()),{config:i,configFile:s,theme:o}=await Ui(e),u=Ul(o,n),c={mode:t,clientRoot:r,userRoot:n,themeRoot:u,theme:o,config:i,configFile:s||""};return Wl(c),c}import*as os from"readline";import Vl from"path";import Yl from"os";import{blue as ss,bold as jr,cyan as Kl,dim as be,gray as Ql,green as us,underline as Wr}from"kolorist";import jt from"consola";var Wt;function Gr(e,t,r){console.log(),console.log(` ${jr("\u{1F30C} Valaxy")} ${ss(`v${$t}`)}`),console.log(),console.log(`${be(" \u{1FA90} theme ")} > ${e.theme?us(e.theme):Ql("none")}`),console.log(` ${be("\u{1F4C1}")} ${be(Vl.resolve(e.userRoot))}`),t&&(console.log(),console.log(`${be(" Preview ")} > ${Kl(`http://localhost:${jr(t)}/`)}`),r&&Object.values(Yl.networkInterfaces()).forEach(n=>(n||[]).filter(i=>i.family==="IPv4"&&!i.address.includes("127.0.0.1")).forEach(({address:i})=>{console.log(`${be(" Network ")} > ${ss(`http://${i}:${jr(t)}/`)}`)})),console.log(),console.log(`${be(" shortcuts ")} > ${Wr("r")}${be("estart | ")}${Wr("o")}${be("pen | ")}${Wr("e")}${be("dit")}`)),console.log()}async function Gt(e,t){Wt&&await Wt.close();try{let r=(await Gi(e.config)).concat(e.config.unocss.safelist||[]);Wt=await Vi(e,t,{onConfigReload(n,i){let s=!1;n.social.some((u,c)=>!r.includes(u.icon)&&u.icon!==i.social[c].icon)&&(jt.info("Find new icon, reload server..."),jt.info(`If you do not want to reload it, write icon name in ${us("config.unocss.safelist")}.`),jt.info('For example: ["i-ri-cloud-line"]'),console.log(),s=!0),s&&Gt(e,t)}}),await Wt.listen()}catch(r){jt.error(`failed to start server. error:
13
- `),console.error(r),process.exit(1)}}function as(e){process.stdin.resume(),process.stdin.setEncoding("utf8"),os.emitKeypressEvents(process.stdin),process.stdin.isTTY&&process.stdin.setRawMode(!0),process.stdin.on("keypress",(t,r)=>{if(r.ctrl&&r.name==="c")process.exit();else{let[n]=e.filter(i=>i.name===t);if(n)try{n.action()}catch(i){console.error(`Failed to execute shortcut ${n.fullName}`,i)}}})}import{mergeConfig as cs,build as Xl}from"vite";import{build as Jl}from"vite-ssg/node";import Zl from"vite-ssg-sitemap";async function ls(e,t={}){let r=cs(await Nr(e),t);await Xl(r)}async function fs(e,t={}){let r=cs(await Nr(e),t);r.ssgOptions={script:"async",formatting:"minify",onFinished(){Zl()}},await Jl({},r)}var cl=gt(Zu()),Fr=gt(ul()),ll=gt(gl()),fl=gt(ml());import{dirname as cg}from"path";import{cyan as lg,dim as al}from"kolorist";import{Feed as fg}from"feed";import Tt from"consola";var pg=(0,fl.default)({html:!0,breaks:!0,linkify:!0});async function pl(e){let{config:t}=e;if(!t.url){Tt.error('You must set "config.url" to generate rss.');return}let r=t.url.endsWith("/")?t.url:`${t.url}/`,n=t.url.endsWith("/")?t.url.slice(0,-1):t.url,i={name:e.config.author.name,email:e.config.author.email,link:e.config.author.link};Tt.info(`RSS Site Url: ${lg(r)}`);let s=t.license.type==="zero"?"1.0":"4.0",o={title:t.title,description:t.description,id:r||"valaxy",link:r,copyright:`CC ${t.license.type.toUpperCase()} ${s} ${new Date().getFullYear()} \xA9 ${t.author.name}`,feedLinks:{json:`${r}feed.json`,atom:`${r}feed.atom`,rss:`${r}feed.xml`}},u=await(0,cl.default)(`${e.userRoot}/pages/posts/**/*.md`),c=[];u.forEach(l=>{var b;let S=Fr.default.readFileSync(l,"utf-8"),{data:y,content:_,excerpt:v}=(0,ll.default)(S);if(!y.date)return Tt.warn(`Do you forget to write date for ${al(l)}`),!1;if(y.draft)return Tt.warn(`Ignore draft post: ${al(l)}`),!1;let C=pg.render(v||_).replace('src="/',`src="${n}/`);(b=y.image)!=null&&b.startsWith("/")&&(y.image=n+y.image),c.push(J(N({title:""},y),{id:(y.id||"").toString(),date:new Date(y.date),published:new Date(y.updated||y.date),content:C,author:[i],link:n+l.replace(`${e.userRoot}/pages`,"").replace(/\.md$/,"")}))}),c.sort((l,S)=>+new Date(S.published||S.date)-+new Date(l.published||l.date)),o.author=i,o.image=t.author.avatar.startsWith("http")?t.author.avatar:`${n}${t.author.avatar}`,o.favicon=`${n}/${t.feed.favicon||t.favicon}`;let m=new fg(o);c.forEach(l=>m.addItem(l)),await Fr.default.ensureDir(cg(`./dist/${t.feed.name}`));let a="./dist";["xml","atom","json"].forEach(l=>{let S="",y=`${a}/${t.feed.name||"feed"}.${l}`;l==="xml"?S=m.rss2():l==="atom"?(t.feed.name||(y=`${a}/atom.xml`),S=m.atom1()):l==="json"&&(S=m.json1()),Fr.default.writeFileSync(y,S,"utf-8"),Tt.info(`${l}: ${y}`)})}var Dr=yg.scriptName("valaxy").usage("$0 [args]").version($t).showHelpOnFail(!1).alias("h","help").alias("v","version");Dr.command("* [root]","Start a local server for Valaxy",e=>Wi(e).option("port",{alias:"p",type:"number",describe:"port"}).option("open",{alias:"o",default:!1,type:"boolean",describe:"open in browser"}).option("remote",{default:!0,type:"boolean",describe:"listen public host and enable remote control"}).option("log",{default:"warn",type:"string",choices:["error","warn","info","silent"],describe:"log level"}).strict().help(),async({root:e,port:t,open:r,remote:n,log:i})=>{hg.existsSync(hl.resolve(e,"pages"))||process.exit(0);let s=t||4859,o=await Bt({userRoot:e}),u={server:{watch:{ignored:[`!${o.themeRoot}/**`,`${o.userRoot}/**.md`]},port:s,strictPort:!0,open:r,host:n?"0.0.0.0":"localhost"},logLevel:i};await Gt(o,u),Gr(o,s,n),as([{name:"r",fullName:"restart",action(){Gt(o,u)}},{name:"o",fullName:"open",action(){mg(`http://localhost:${s}`)}},{name:"e",fullName:"edit",action(){dg(`code "${e}"`)}}])});Dr.command("build [root]","build your blog to static content",e=>Wi(e).option("ssg",{alias:"s",type:"boolean",default:!1,describe:"static site generate"}).option("output",{alias:"o",type:"string",default:"dist",describe:"output dir"}).option("base",{type:"string",default:"/",describe:"output base"}).strict().help(),async({ssg:e,root:t,base:r,output:n})=>{let i=await Bt({userRoot:t},"build");Gr(i);let s={base:r,build:{emptyOutDir:!0,outDir:hl.resolve(i.userRoot,n)}};if(e){Lr.info(`use ${gg("vite-ssg")} to do ssg build...`);try{await fs(i,s)}catch(o){Lr.error("[vite-ssg] An internal error occurred."),console.log(o)}}else Lr.info("use vite do spa build..."),await ls(i,s)});Dr.command("rss [root]","generate rss feed",e=>Wi(e).strict().help(),async({root:e})=>{Lr.info("Generate RSS ...");let t=await Bt({userRoot:e},"build");await pl(t)});function Wi(e){return e.positional("root",{default:".",type:"string",describe:"root folder of your source files"})}function iv(){Dr.help().parse()}export{iv as run};
11
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:i}=At.checkPathsSync(e,t,"copy",r);return At.checkParentPathsSync(e,n,t,"copy"),Gy(i,e,t,r)}function Gy(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=xt.dirname(r);return ie.existsSync(i)||By(i),La(e,t,r,n)}function Uy(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return La(e,t,r,n)}function La(e,t,r,n){let s=(n.dereference?ie.statSync:ie.lstatSync)(t);if(s.isDirectory())return Zy(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Vy(s,e,t,r,n);if(s.isSymbolicLink())return tm(e,t,r,n);throw s.isSocket()?new Error(`Cannot copy a socket file: ${t}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function Vy(e,t,r,n,i){return t?Yy(e,r,n,i):Da(e,r,n,i)}function Yy(e,t,r,n){if(n.overwrite)return ie.unlinkSync(r),Da(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Da(e,t,r,n){return ie.copyFileSync(t,r),n.preserveTimestamps&&Ky(e.mode,t,r),Mi(r,e.mode)}function Ky(e,t,r){return Qy(e)&&Xy(r,e),Jy(t,r)}function Qy(e){return(e&128)===0}function Xy(e,t){return Mi(e,t|128)}function Mi(e,t){return ie.chmodSync(e,t)}function Jy(e,t){let r=ie.statSync(e);return jy(t,r.atime,r.mtime)}function Zy(e,t,r,n,i){return t?qa(r,n,i):zy(e.mode,r,n,i)}function zy(e,t,r,n){return ie.mkdirSync(r),qa(t,r,n),Mi(r,e)}function qa(e,t,r){ie.readdirSync(e).forEach(n=>em(n,e,t,r))}function em(e,t,r,n){let i=xt.join(t,e),s=xt.join(r,e),{destStat:o}=At.checkPathsSync(i,s,"copy",n);return Uy(o,i,s,n)}function tm(e,t,r,n){let i=ie.readlinkSync(t);if(n.dereference&&(i=xt.resolve(process.cwd(),i)),e){let s;try{s=ie.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return ie.symlinkSync(i,r);throw o}if(n.dereference&&(s=xt.resolve(process.cwd(),s)),At.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(ie.statSync(r).isDirectory()&&At.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return rm(i,r)}else return ie.symlinkSync(i,r)}function rm(e,t){return ie.unlinkSync(t),ie.symlinkSync(e,t)}$a.exports=Wy});var Rr=g((xS,Ia)=>{"use strict";var nm=ce().fromCallback;Ia.exports={copy:nm(Fa()),copySync:Na()}});var Ya=g((AS,Va)=>{"use strict";var Ma=oe(),Wa=P("path"),W=P("assert"),bt=process.platform==="win32";function Ga(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||Ma[r],r=r+"Sync",e[r]=e[r]||Ma[r]}),e.maxBusyTries=e.maxBusyTries||3}function Hi(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),W(e,"rimraf: missing path"),W.strictEqual(typeof e,"string","rimraf: path should be a string"),W.strictEqual(typeof r,"function","rimraf: callback function required"),W(t,"rimraf: invalid options argument provided"),W.strictEqual(typeof t,"object","rimraf: options should be object"),Ga(t),Ha(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;let o=n*100;return setTimeout(()=>Ha(e,t,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function Ha(e,t,r){W(e),W(t),W(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&bt)return Ba(e,t,n,r);if(i&&i.isDirectory())return xr(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return bt?Ba(e,t,s,r):xr(e,t,s,r);if(s.code==="EISDIR")return xr(e,t,s,r)}return r(s)})})}function Ba(e,t,r,n){W(e),W(t),W(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?xr(e,t,r,n):t.unlink(e,n)})})}function ja(e,t,r){let n;W(e),W(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Ar(e,t,r):t.unlinkSync(e)}function xr(e,t,r,n){W(e),W(t),W(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?im(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function im(e,t,r){W(e),W(t),W(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return t.rmdir(e,r);i.forEach(u=>{Hi(Wa.join(e,u),t,c=>{if(!o){if(c)return r(o=c);--s===0&&t.rmdir(e,r)}})})})}function Ua(e,t){let r;t=t||{},Ga(t),W(e,"rimraf: missing path"),W.strictEqual(typeof e,"string","rimraf: path should be a string"),W(t,"rimraf: missing options"),W.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&bt&&ja(e,t,n)}try{r&&r.isDirectory()?Ar(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return bt?ja(e,t,n):Ar(e,t,n);if(n.code!=="EISDIR")throw n;Ar(e,t,n)}}function Ar(e,t,r){W(e),W(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")sm(e,t);else if(n.code!=="ENOENT")throw n}}function sm(e,t){if(W(e),W(t),t.readdirSync(e).forEach(r=>Ua(Wa.join(e,r),t)),bt){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}Va.exports=Hi;Hi.sync=Ua});var Ot=g((bS,Qa)=>{"use strict";var br=oe(),om=ce().fromCallback,Ka=Ya();function um(e,t){if(br.rm)return br.rm(e,{recursive:!0,force:!0},t);Ka(e,t)}function am(e){if(br.rmSync)return br.rmSync(e,{recursive:!0,force:!0});Ka.sync(e)}Qa.exports={remove:om(um),removeSync:am}});var nc=g((OS,rc)=>{"use strict";var cm=ce().fromPromise,Za=Je(),za=P("path"),ec=ve(),tc=Ot(),Xa=cm(async function(t){let r;try{r=await Za.readdir(t)}catch{return ec.mkdirs(t)}return Promise.all(r.map(n=>tc.remove(za.join(t,n))))});function Ja(e){let t;try{t=Za.readdirSync(e)}catch{return ec.mkdirsSync(e)}t.forEach(r=>{r=za.join(e,r),tc.removeSync(r)})}rc.exports={emptyDirSync:Ja,emptydirSync:Ja,emptyDir:Xa,emptydir:Xa}});var uc=g((PS,oc)=>{"use strict";var lm=ce().fromCallback,ic=P("path"),He=oe(),sc=ve();function fm(e,t){function r(){He.writeFile(e,"",n=>{if(n)return t(n);t()})}He.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let s=ic.dirname(e);He.stat(s,(o,u)=>{if(o)return o.code==="ENOENT"?sc.mkdirs(s,c=>{if(c)return t(c);r()}):t(o);u.isDirectory()?r():He.readdir(s,c=>{if(c)return t(c)})})})}function pm(e){let t;try{t=He.statSync(e)}catch{}if(t&&t.isFile())return;let r=ic.dirname(e);try{He.statSync(r).isDirectory()||He.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")sc.mkdirsSync(r);else throw n}He.writeFileSync(e,"")}oc.exports={createFile:lm(fm),createFileSync:pm}});var pc=g((kS,fc)=>{"use strict";var hm=ce().fromCallback,ac=P("path"),Be=oe(),cc=ve(),dm=Me().pathExists,{areIdentical:lc}=Ze();function ym(e,t,r){function n(i,s){Be.link(i,s,o=>{if(o)return r(o);r(null)})}Be.lstat(t,(i,s)=>{Be.lstat(e,(o,u)=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);if(s&&lc(u,s))return r(null);let c=ac.dirname(t);dm(c,(m,a)=>{if(m)return r(m);if(a)return n(e,t);cc.mkdirs(c,f=>{if(f)return r(f);n(e,t)})})})})}function mm(e,t){let r;try{r=Be.lstatSync(t)}catch{}try{let s=Be.lstatSync(e);if(r&&lc(s,r))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=ac.dirname(t);return Be.existsSync(n)||cc.mkdirsSync(n),Be.linkSync(e,t)}fc.exports={createLink:hm(ym),createLinkSync:mm}});var dc=g((TS,hc)=>{"use strict";var je=P("path"),Pt=oe(),gm=Me().pathExists;function _m(e,t,r){if(je.isAbsolute(e))return Pt.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=je.dirname(t),i=je.join(n,e);return gm(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:e}):Pt.lstat(e,u=>u?(u.message=u.message.replace("lstat","ensureSymlink"),r(u)):r(null,{toCwd:e,toDst:je.relative(n,e)})))}}function Sm(e,t){let r;if(je.isAbsolute(e)){if(r=Pt.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=je.dirname(t),i=je.join(n,e);if(r=Pt.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Pt.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:je.relative(n,e)}}}hc.exports={symlinkPaths:_m,symlinkPathsSync:Sm}});var gc=g((FS,mc)=>{"use strict";var yc=oe();function vm(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);yc.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function Em(e,t){let r;if(t)return t;try{r=yc.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}mc.exports={symlinkType:vm,symlinkTypeSync:Em}});var xc=g((LS,Rc)=>{"use strict";var wm=ce().fromCallback,Sc=P("path"),Ee=Je(),vc=ve(),Cm=vc.mkdirs,Rm=vc.mkdirsSync,Ec=dc(),xm=Ec.symlinkPaths,Am=Ec.symlinkPathsSync,wc=gc(),bm=wc.symlinkType,Om=wc.symlinkTypeSync,Pm=Me().pathExists,{areIdentical:Cc}=Ze();function km(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Ee.lstat(t,(i,s)=>{!i&&s.isSymbolicLink()?Promise.all([Ee.stat(e),Ee.stat(t)]).then(([o,u])=>{if(Cc(o,u))return n(null);_c(e,t,r,n)}):_c(e,t,r,n)})}function _c(e,t,r,n){xm(e,t,(i,s)=>{if(i)return n(i);e=s.toDst,bm(s.toCwd,r,(o,u)=>{if(o)return n(o);let c=Sc.dirname(t);Pm(c,(m,a)=>{if(m)return n(m);if(a)return Ee.symlink(e,t,u,n);Cm(c,f=>{if(f)return n(f);Ee.symlink(e,t,u,n)})})})})}function Tm(e,t,r){let n;try{n=Ee.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){let u=Ee.statSync(e),c=Ee.statSync(t);if(Cc(u,c))return}let i=Am(e,t);e=i.toDst,r=Om(i.toCwd,r);let s=Sc.dirname(t);return Ee.existsSync(s)||Rm(s),Ee.symlinkSync(e,t,r)}Rc.exports={createSymlink:wm(km),createSymlinkSync:Tm}});var Lc=g((DS,Fc)=>{"use strict";var{createFile:Ac,createFileSync:bc}=uc(),{createLink:Oc,createLinkSync:Pc}=pc(),{createSymlink:kc,createSymlinkSync:Tc}=xc();Fc.exports={createFile:Ac,createFileSync:bc,ensureFile:Ac,ensureFileSync:bc,createLink:Oc,createLinkSync:Pc,ensureLink:Oc,ensureLinkSync:Pc,createSymlink:kc,createSymlinkSync:Tc,ensureSymlink:kc,ensureSymlinkSync:Tc}});var Or=g((qS,Dc)=>{function Fm(e,{EOL:t=`
12
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function Lm(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Dc.exports={stringify:Fm,stripBom:Lm}});var Ic=g(($S,Nc)=>{var mt;try{mt=oe()}catch{mt=P("fs")}var Pr=ce(),{stringify:qc,stripBom:$c}=Or();async function Dm(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||mt,n="throws"in t?t.throws:!0,i=await Pr.fromCallback(r.readFile)(e,t);i=$c(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}return s}var qm=Pr.fromPromise(Dm);function $m(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||mt,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=$c(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function Nm(e,t,r={}){let n=r.fs||mt,i=qc(t,r);await Pr.fromCallback(n.writeFile)(e,i,r)}var Im=Pr.fromPromise(Nm);function Mm(e,t,r={}){let n=r.fs||mt,i=qc(t,r);return n.writeFileSync(e,i,r)}var Hm={readFile:qm,readFileSync:$m,writeFile:Im,writeFileSync:Mm};Nc.exports=Hm});var Hc=g((NS,Mc)=>{"use strict";var kr=Ic();Mc.exports={readJson:kr.readFile,readJsonSync:kr.readFileSync,writeJson:kr.writeFile,writeJsonSync:kr.writeFileSync}});var Tr=g((IS,Wc)=>{"use strict";var Bm=ce().fromCallback,kt=oe(),Bc=P("path"),jc=ve(),jm=Me().pathExists;function Wm(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Bc.dirname(e);jm(i,(s,o)=>{if(s)return n(s);if(o)return kt.writeFile(e,t,r,n);jc.mkdirs(i,u=>{if(u)return n(u);kt.writeFile(e,t,r,n)})})}function Gm(e,...t){let r=Bc.dirname(e);if(kt.existsSync(r))return kt.writeFileSync(e,...t);jc.mkdirsSync(r),kt.writeFileSync(e,...t)}Wc.exports={outputFile:Bm(Wm),outputFileSync:Gm}});var Uc=g((MS,Gc)=>{"use strict";var{stringify:Um}=Or(),{outputFile:Vm}=Tr();async function Ym(e,t,r={}){let n=Um(t,r);await Vm(e,n,r)}Gc.exports=Ym});var Yc=g((HS,Vc)=>{"use strict";var{stringify:Km}=Or(),{outputFileSync:Qm}=Tr();function Xm(e,t,r){let n=Km(t,r);Qm(e,n,r)}Vc.exports=Xm});var Qc=g((BS,Kc)=>{"use strict";var Jm=ce().fromPromise,ue=Hc();ue.outputJson=Jm(Uc());ue.outputJsonSync=Yc();ue.outputJSON=ue.outputJson;ue.outputJSONSync=ue.outputJsonSync;ue.writeJSON=ue.writeJson;ue.writeJSONSync=ue.writeJsonSync;ue.readJSON=ue.readJson;ue.readJSONSync=ue.readJsonSync;Kc.exports=ue});var el=g((jS,zc)=>{"use strict";var Zm=oe(),ji=P("path"),zm=Rr().copy,Zc=Ot().remove,eg=ve().mkdirp,tg=Me().pathExists,Xc=Ze();function rg(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};let i=r.overwrite||r.clobber||!1;Xc.checkPaths(e,t,"move",r,(s,o)=>{if(s)return n(s);let{srcStat:u,isChangingCase:c=!1}=o;Xc.checkParentPaths(e,u,t,"move",m=>{if(m)return n(m);if(ng(t))return Jc(e,t,i,c,n);eg(ji.dirname(t),a=>a?n(a):Jc(e,t,i,c,n))})})}function ng(e){let t=ji.dirname(e);return ji.parse(t).root===t}function Jc(e,t,r,n,i){if(n)return Bi(e,t,r,i);if(r)return Zc(t,s=>s?i(s):Bi(e,t,r,i));tg(t,(s,o)=>s?i(s):o?i(new Error("dest already exists.")):Bi(e,t,r,i))}function Bi(e,t,r,n){Zm.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):ig(e,t,r,n):n())}function ig(e,t,r,n){zm(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):Zc(e,n))}zc.exports=rg});var sl=g((WS,il)=>{"use strict";var rl=oe(),Gi=P("path"),sg=Rr().copySync,nl=Ot().removeSync,og=ve().mkdirpSync,tl=Ze();function ug(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=tl.checkPathsSync(e,t,"move",r);return tl.checkParentPathsSync(e,i,t,"move"),ag(t)||og(Gi.dirname(t)),cg(e,t,n,s)}function ag(e){let t=Gi.dirname(e);return Gi.parse(t).root===t}function cg(e,t,r,n){if(n)return Wi(e,t,r);if(r)return nl(t),Wi(e,t,r);if(rl.existsSync(t))throw new Error("dest already exists.");return Wi(e,t,r)}function Wi(e,t,r){try{rl.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return lg(e,t,r)}}function lg(e,t,r){return sg(e,t,{overwrite:r,errorOnExist:!0}),nl(e)}il.exports=ug});var ul=g((GS,ol)=>{"use strict";var fg=ce().fromCallback;ol.exports={move:fg(el()),moveSync:sl()}});var cl=g((US,al)=>{"use strict";al.exports=N(N(N(N(N(N(N(N(N(N({},Je()),Rr()),nc()),Lc()),Qc()),ve()),ul()),Tr()),Me()),Ot())});import mg from"fs";import yl from"path";import{exec as gg}from"child_process";import _g from"yargs";import Sg from"open";import Lr from"consola";import{yellow as vg}from"kolorist";var $t="0.5.0";import El from"net";async function Ir(e){return await wl(e)?e:await Ir(e+1)}function wl(e){return new Promise(t=>{let r=El.createServer().listen(e,()=>{r.close(),t(!0)}).on("error",()=>{t(!1)})})}var os=gt(ss());import{dirname as jr,resolve as Wr}from"path";var Vl=(0,os.default)("valaxy:options");function Yl(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}function Kl(e,t){return e?Yl(e)?Wr(jr(t),e):jr($r(`valaxy-theme-${e}/package.json`)||""):""}async function Bt(e,t="dev"){let r=Wr(jr($r("valaxy/package.json",!0)),"client"),n=Wr(e.userRoot||process.cwd()),{config:i,configFile:s,theme:o}=await Yi(e),u=Kl(o,n),c={mode:t,clientRoot:r,userRoot:n,themeRoot:u,theme:o,config:i,configFile:s||""};return Vl(c),c}import*as as from"readline";import Ql from"path";import Xl from"os";import{blue as us,bold as Gr,cyan as Jl,dim as be,gray as Zl,green as cs,underline as Ur}from"kolorist";import jt from"consola";var Wt;function Vr(e,t,r){console.log(),console.log(` ${Gr("\u{1F30C} Valaxy")} ${us(`v${$t}`)}`),console.log(),console.log(`${be(" \u{1FA90} theme ")} > ${e.theme?cs(e.theme):Zl("none")}`),console.log(` ${be("\u{1F4C1}")} ${be(Ql.resolve(e.userRoot))}`),t&&(console.log(),console.log(`${be(" Preview ")} > ${Jl(`http://localhost:${Gr(t)}/`)}`),r&&Object.values(Xl.networkInterfaces()).forEach(n=>(n||[]).filter(i=>i.family==="IPv4"&&!i.address.includes("127.0.0.1")).forEach(({address:i})=>{console.log(`${be(" Network ")} > ${us(`http://${i}:${Gr(t)}/`)}`)})),console.log(),console.log(`${be(" shortcuts ")} > ${Ur("r")}${be("estart | ")}${Ur("o")}${be("pen | ")}${Ur("e")}${be("dit")}`)),console.log()}async function Gt(e,t){Wt&&await Wt.close();try{let r=(await Vi(e.config)).concat(e.config.unocss.safelist||[]);Wt=await Ki(e,t,{onConfigReload(n,i){let s=!1;n.social.some((u,c)=>!r.includes(u.icon)&&u.icon!==i.social[c].icon)&&(jt.info("Find new icon, reload server..."),jt.info(`If you do not want to reload it, write icon name in ${cs("config.unocss.safelist")}.`),jt.info('For example: ["i-ri-cloud-line"]'),console.log(),s=!0),s&&Gt(e,t)}}),await Wt.listen()}catch(r){jt.error(`failed to start server. error:
13
+ `),console.error(r),process.exit(1)}}function ls(e){process.stdin.resume(),process.stdin.setEncoding("utf8"),as.emitKeypressEvents(process.stdin),process.stdin.isTTY&&process.stdin.setRawMode(!0),process.stdin.on("keypress",(t,r)=>{if(r.ctrl&&r.name==="c")process.exit();else{let[n]=e.filter(i=>i.name===t);if(n)try{n.action()}catch(i){console.error(`Failed to execute shortcut ${n.fullName}`,i)}}})}import{mergeConfig as fs,build as zl}from"vite";import{build as ef}from"vite-ssg/node";import tf from"vite-ssg-sitemap";async function ps(e,t={}){let r=fs(await Nr(e),t);await zl(r)}async function hs(e,t={}){let r=fs(await Nr(e),t);r.ssgOptions={script:"async",formatting:"minify",onFinished(){tf()}},await ef({},r)}var fl=gt(ea()),Fr=gt(cl()),pl=gt(Sl()),hl=gt(_l());import{dirname as pg}from"path";import{cyan as hg,dim as ll}from"kolorist";import{Feed as dg}from"feed";import Tt from"consola";var yg=(0,hl.default)({html:!0,breaks:!0,linkify:!0});async function dl(e){let{config:t}=e;if(!t.url){Tt.error('You must set "config.url" to generate rss.');return}let r=t.url.endsWith("/")?t.url:`${t.url}/`,n=t.url.endsWith("/")?t.url.slice(0,-1):t.url,i={name:e.config.author.name,email:e.config.author.email,link:e.config.author.link};Tt.info(`RSS Site Url: ${hg(r)}`);let s=t.license.type==="zero"?"1.0":"4.0",o={title:t.title,description:t.description,id:r||"valaxy",link:r,copyright:`CC ${t.license.type.toUpperCase()} ${s} ${new Date().getFullYear()} \xA9 ${t.author.name}`,feedLinks:{json:`${r}feed.json`,atom:`${r}feed.atom`,rss:`${r}feed.xml`}},u=await(0,fl.default)(`${e.userRoot}/pages/posts/**/*.md`),c=[];u.forEach(l=>{var b;let S=Fr.default.readFileSync(l,"utf-8"),{data:y,content:_,excerpt:v}=(0,pl.default)(S);if(!y.date)return Tt.warn(`Do you forget to write date for ${ll(l)}`),!1;if(y.draft)return Tt.warn(`Ignore draft post: ${ll(l)}`),!1;let C=yg.render(v||_).replace('src="/',`src="${n}/`);(b=y.image)!=null&&b.startsWith("/")&&(y.image=n+y.image),c.push(J(N({title:""},y),{id:(y.id||"").toString(),date:new Date(y.date),published:new Date(y.updated||y.date),content:C,author:[i],link:n+l.replace(`${e.userRoot}/pages`,"").replace(/\.md$/,"")}))}),c.sort((l,S)=>+new Date(S.published||S.date)-+new Date(l.published||l.date)),o.author=i,o.image=t.author.avatar.startsWith("http")?t.author.avatar:`${n}${t.author.avatar}`,o.favicon=`${n}/${t.feed.favicon||t.favicon}`;let m=new dg(o);c.forEach(l=>m.addItem(l)),await Fr.default.ensureDir(pg(`./dist/${t.feed.name}`));let a="./dist";["xml","atom","json"].forEach(l=>{let S="",y=`${a}/${t.feed.name||"feed"}.${l}`;l==="xml"?S=m.rss2():l==="atom"?(t.feed.name||(y=`${a}/atom.xml`),S=m.atom1()):l==="json"&&(S=m.json1()),Fr.default.writeFileSync(y,S,"utf-8"),Tt.info(`${l}: ${y}`)})}var Dr=_g.scriptName("valaxy").usage("$0 [args]").version($t).showHelpOnFail(!1).alias("h","help").alias("v","version");Dr.command("* [root]","Start a local server for Valaxy",e=>Ui(e).option("port",{alias:"p",type:"number",describe:"port"}).option("open",{alias:"o",default:!1,type:"boolean",describe:"open in browser"}).option("remote",{default:!0,type:"boolean",describe:"listen public host and enable remote control"}).option("log",{default:"warn",type:"string",choices:["error","warn","info","silent"],describe:"log level"}).strict().help(),async({root:e,port:t,open:r,remote:n,log:i})=>{mg.existsSync(yl.resolve(e,"pages"))||process.exit(0);let s=await Ir(t||4859),o=await Bt({userRoot:e}),u={server:{watch:{ignored:[`!${o.themeRoot}/**`,`${o.userRoot}/**.md`]},port:s,strictPort:!0,open:r,host:n?"0.0.0.0":"localhost"},logLevel:i};await Gt(o,u),Vr(o,s,n),ls([{name:"r",fullName:"restart",action(){Gt(o,u)}},{name:"o",fullName:"open",action(){Sg(`http://localhost:${s}`)}},{name:"e",fullName:"edit",action(){gg(`code "${e}"`)}}])});Dr.command("build [root]","build your blog to static content",e=>Ui(e).option("ssg",{alias:"s",type:"boolean",default:!1,describe:"static site generate"}).option("output",{alias:"o",type:"string",default:"dist",describe:"output dir"}).option("base",{type:"string",default:"/",describe:"output base"}).strict().help(),async({ssg:e,root:t,base:r,output:n})=>{let i=await Bt({userRoot:t},"build");Vr(i);let s={base:r,build:{emptyOutDir:!0,outDir:yl.resolve(i.userRoot,n)}};if(e){Lr.info(`use ${vg("vite-ssg")} to do ssg build...`);try{await hs(i,s)}catch(o){Lr.error("[vite-ssg] An internal error occurred."),console.log(o)}}else Lr.info("use vite do spa build..."),await ps(i,s)});Dr.command("rss [root]","generate rss feed",e=>Ui(e).strict().help(),async({root:e})=>{Lr.info("Generate RSS ...");let t=await Bt({userRoot:e},"build");await dl(t)});function Ui(e){return e.positional("root",{default:".",type:"string",describe:"root folder of your source files"})}function lv(){Dr.help().parse()}export{lv as run};
14
14
  /*!
15
15
  * fill-range <https://github.com/jonschlinkert/fill-range>
16
16
  *