valaxy 0.3.10 → 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 (147) hide show
  1. package/README.md +4 -0
  2. package/{src/client → client}/App.vue +0 -0
  3. package/{src/client → client}/components/AppLink.vue +0 -0
  4. package/{src/client → client}/components/PostCard.vue +37 -23
  5. package/{src/client → client}/components/PostList.vue +0 -0
  6. package/{src/client → client}/components/README.md +0 -0
  7. package/{src/client → client}/components/ValaxyBg.vue +1 -1
  8. package/{src/client → client}/components/ValaxyCopyright.vue +0 -0
  9. package/{src/client → client}/components/ValaxyFooter.vue +2 -2
  10. package/{src/client → client}/components/ValaxyHamburger.vue +0 -0
  11. package/{src/client → client}/components/ValaxyMd.vue +1 -5
  12. package/{src/client → client}/components/ValaxyOverlay.vue +0 -0
  13. package/{src/client → client}/components/ValaxyPagination.vue +0 -0
  14. package/{src/client → client}/components/ValaxyRightSidebar.vue +0 -0
  15. package/{src/client → client}/components/ValaxySidebar.vue +0 -0
  16. package/{src/client → client}/components/ValaxyToc.vue +0 -0
  17. package/{src/client → client}/composables/category.ts +0 -0
  18. package/{src/client → client}/composables/comments/index.ts +0 -0
  19. package/{src/client → client}/composables/comments/twikoo.ts +0 -0
  20. package/{src/client → client}/composables/comments/waline.ts +0 -0
  21. package/{src/client → client}/composables/common.ts +0 -0
  22. package/{src/client → client}/composables/dark.ts +0 -0
  23. package/{src/client/composables/search → client/composables/features}/index.ts +0 -0
  24. package/{src/client → client}/composables/helper.ts +0 -0
  25. package/{src/client → client}/composables/index.ts +1 -1
  26. package/{src/client → client}/composables/layout.ts +0 -0
  27. package/{src/client → client}/composables/post.ts +0 -0
  28. package/client/composables/search/index.ts +0 -0
  29. package/{src/client → client}/composables/sidebar.ts +10 -8
  30. package/{src/client → client}/composables/tag.ts +0 -0
  31. package/{src/client → client}/composables/widgets/aplayer.ts +0 -0
  32. package/{src/client → client}/composables/widgets/backToTop.ts +0 -0
  33. package/{src/client → client}/composables/widgets/codepen.ts +0 -0
  34. package/{src/client → client}/composables/widgets/index.ts +0 -0
  35. package/{src/client → client}/config.ts +2 -1
  36. package/{src/client → client}/index.html +0 -0
  37. package/{src/client → client}/index.ts +0 -0
  38. package/{src/client → client}/layouts/404.vue +0 -0
  39. package/{src/client → client}/layouts/README.md +0 -0
  40. package/{src/client → client}/locales/README.md +0 -0
  41. package/{src/client → client}/locales/en.yml +1 -0
  42. package/{src/client → client}/locales/zh-CN.yml +4 -3
  43. package/{src/client → client}/main.ts +5 -1
  44. package/{src/client → client}/modules/README.md +0 -0
  45. package/{src/client → client}/modules/nprogress.ts +0 -0
  46. package/{src/client → client}/modules/pinia.ts +0 -0
  47. package/{src/client → client}/modules/valaxy.ts +1 -1
  48. package/{src/client → client}/pages/README.md +0 -0
  49. package/{src/client → client}/pages/[...all].vue +0 -0
  50. package/{src/client → client}/pages/hi/[name].vue +0 -0
  51. package/{src/client → client}/pages/index.vue +0 -0
  52. package/{src/client → client}/pages/page/[page].vue +0 -0
  53. package/{src/client → client}/shims.d.ts +1 -0
  54. package/{src/client → client}/stores/app.ts +0 -0
  55. package/{src/client → client}/stores/user.ts +0 -0
  56. package/{src/client → client}/styles/common/button.scss +0 -0
  57. package/{src/client → client}/styles/common/code.scss +0 -0
  58. package/{src/client → client}/styles/common/custom-blocks.scss +0 -0
  59. package/{src/client → client}/styles/common/hamburger.scss +0 -0
  60. package/{src/client → client}/styles/common/markdown.scss +5 -1
  61. package/client/styles/common/scrollbar.scss +28 -0
  62. package/{src/client → client}/styles/common/sidebar.scss +0 -0
  63. package/{src/client → client}/styles/common/transition.scss +0 -0
  64. package/{src/client → client}/styles/css-vars.scss +0 -0
  65. package/{src/client → client}/styles/global/helper.scss +0 -0
  66. package/{src/client → client}/styles/global/i18n.scss +0 -0
  67. package/{src/client → client}/styles/global/index.scss +0 -0
  68. package/{src/client → client}/styles/global/nprogress.scss +0 -0
  69. package/{src/client → client}/styles/global/reset.scss +0 -0
  70. package/{src/client → client}/styles/index.scss +0 -0
  71. package/{src/client → client}/styles/mixins/config.scss +0 -0
  72. package/{src/client → client}/styles/mixins/index.scss +0 -0
  73. package/{src/client → client}/styles/mixins/size.scss +0 -0
  74. package/{src/client → client}/styles/mixins/variable.scss +0 -0
  75. package/{src/client → client}/styles/palette.scss +0 -0
  76. package/client/styles/third/katex.scss +3 -0
  77. package/{src/client → client}/styles/vars.scss +0 -0
  78. package/{src/client → client}/styles/widgets/banner.scss +0 -0
  79. package/{src/client → client}/types.ts +0 -0
  80. package/{src/client → client}/utils/helper.ts +0 -0
  81. package/{src/client → client}/utils/index.ts +0 -0
  82. package/{src/client → client}/utils/time.ts +0 -0
  83. package/dist/chunk-EAN2KU6W.mjs +1 -0
  84. package/dist/chunk-RSQONJW3.mjs +86 -0
  85. package/dist/chunk-U5OMNIOK.js +1 -0
  86. package/dist/chunk-XQIGHIAX.js +86 -0
  87. package/dist/client/index.d.ts +188 -0
  88. package/dist/client/index.js +1 -0
  89. package/dist/client/index.mjs +1 -0
  90. package/dist/{config-de04677b.d.ts → config-7bd43d41.d.ts} +24 -12
  91. package/dist/node/cli.js +10 -10
  92. package/dist/node/cli.mjs +10 -10
  93. package/dist/node/index.d.ts +2 -2
  94. package/dist/node/index.js +1 -1
  95. package/dist/node/index.mjs +1 -1
  96. package/dist/posts-32f55e33.d.ts +117 -0
  97. package/dist/types/index.d.ts +8 -0
  98. package/dist/types/index.js +1 -0
  99. package/dist/types/index.mjs +0 -0
  100. package/index.d.ts +3 -0
  101. package/{src/node → node}/build.ts +0 -0
  102. package/{src/node → node}/cli.ts +3 -2
  103. package/node/config.ts +170 -0
  104. package/{src/node → node}/index.ts +0 -0
  105. package/{src/node → node}/markdown/check.ts +0 -0
  106. package/{src/node → node}/markdown/highlight.ts +0 -0
  107. package/{src/node → node}/markdown/index.ts +0 -0
  108. package/{src/node → node}/markdown/markdown-it/container.ts +0 -0
  109. package/{src/node → node}/markdown/markdown-it/headings.ts +0 -0
  110. package/{src/node → node}/markdown/markdown-it/highlightLines.ts +0 -0
  111. package/{src/node → node}/markdown/markdown-it/katex.ts +0 -0
  112. package/{src/node → node}/markdown/markdown-it/parseHeader.ts +0 -0
  113. package/{src/node → node}/markdown/slugify.ts +0 -0
  114. package/{src/node → node}/options.ts +2 -2
  115. package/{src/node → node}/plugins/extendConfig.ts +3 -1
  116. package/{src/node → node}/plugins/index.ts +10 -3
  117. package/{src/node → node}/plugins/markdown.ts +3 -6
  118. package/{src/node → node}/plugins/preset.ts +0 -30
  119. package/{src/node → node}/plugins/unocss.ts +0 -0
  120. package/{src/node → node}/plugins/valaxy.ts +0 -0
  121. package/{src/node → node}/rss.ts +0 -0
  122. package/{src/node → node}/server.ts +6 -4
  123. package/{src/node → node}/shims.d.ts +0 -0
  124. package/{src/node → node}/utils/cli.ts +1 -1
  125. package/node/utils/index.ts +48 -0
  126. package/node/utils/net.ts +20 -0
  127. package/{src/node → node}/vite.ts +5 -1
  128. package/package.json +21 -16
  129. package/tsup.config.ts +4 -3
  130. package/{src/types → types}/config.ts +27 -107
  131. package/{src/types → types}/index.ts +0 -0
  132. package/{src/types → types}/posts.ts +5 -0
  133. package/dist/chunk-6QPICP7C.mjs +0 -1
  134. package/dist/chunk-PICIUZML.js +0 -83
  135. package/dist/chunk-S2VGPR56.mjs +0 -83
  136. package/dist/chunk-ZP4HS4GX.js +0 -1
  137. package/dist/index.d.ts +0 -407
  138. package/dist/index.js +0 -1
  139. package/dist/index.mjs +0 -1
  140. package/src/client/composables/features/index.ts +0 -1
  141. package/src/client/composables/features/katex.ts +0 -15
  142. package/src/client/composables/search/algolia.ts +0 -115
  143. package/src/client/modules/pwa.ts +0 -12
  144. package/src/client/styles/common/scrollbar.scss +0 -34
  145. package/src/index.ts +0 -2
  146. package/src/node/config.ts +0 -52
  147. package/src/node/utils/index.ts +0 -26
package/dist/node/cli.mjs CHANGED
@@ -1,16 +1,16 @@
1
- import{a as Sl,b as vl,c as Ui,d as $r,e as Vi,f as Nr,g as Yi}from"../chunk-S2VGPR56.mjs";import{a as $,b as Z,c as P,d as ml,e as g,f as gl,g as mt,h as _l}from"../chunk-6QPICP7C.mjs";var Qi=g((Ag,Ki)=>{var ze=1e3,et=ze*60,tt=et*60,We=tt*24,wl=We*7,Cl=We*365.25;Ki.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Rl(e);if(r==="number"&&isFinite(e))return t.long?xl(e):Al(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Rl(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*Cl;case"weeks":case"week":case"w":return r*wl;case"days":case"day":case"d":return r*We;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>=We?Math.round(e/We)+"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 xl(e){var t=Math.abs(e);return t>=We?$t(e,t,We,"day"):t>=tt?$t(e,t,tt,"hour"):t>=et?$t(e,t,et,"minute"):t>=ze?$t(e,t,ze,"second"):e+" ms"}function $t(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var Ir=g((xg,Xi)=>{function bl(e){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Qi(),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 A=r.formatters[L];if(typeof A=="function"){let w=v[V];B=A.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}Xi.exports=bl});var Ji=g((he,Nt)=>{he.formatArgs=Pl;he.save=kl;he.load=Tl;he.useColors=Ol;he.storage=Fl();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 Ol(){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 Pl(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Nt.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 kl(e){try{e?he.storage.setItem("debug",e):he.storage.removeItem("debug")}catch{}}function Tl(){let e;try{e=he.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Fl(){try{return localStorage}catch{}}Nt.exports=Ir()(he);var{formatters:Ll}=Nt.exports;Ll.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var zi={};gl(zi,{createSupportsColor:()=>Mr,default:()=>Ml});import Hr from"process";import Dl from"os";import Zi from"tty";function me(e,t=Hr.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}function ql(){if("FORCE_COLOR"in X)return X.FORCE_COLOR==="true"?1:X.FORCE_COLOR==="false"?0:X.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(X.FORCE_COLOR,10),3)}function $l(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Nl(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=ql();n!==void 0&&(It=n);let i=r?It:n;if(i===0)return 0;if(r){if(me("color=16m")||me("color=full")||me("color=truecolor"))return 3;if(me("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(X.TERM==="dumb")return s;if(Hr.platform==="win32"){let o=Dl.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in X)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in X)||X.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in X)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(X.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in X&&"AGENT_NAME"in X)return 1;if(X.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in X){let o=Number.parseInt((X.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(X.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(X.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(X.TERM)||"COLORTERM"in X?1:s}function Mr(e,t={}){let r=Nl(e,$({streamIsTTY:e&&e.isTTY},t));return $l(r)}var X,It,Il,Ml,es=ml(()=>{({env:X}=Hr);me("no-color")||me("no-colors")||me("color=false")||me("color=never")?It=0:(me("color")||me("colors")||me("color=true")||me("color=always"))&&(It=1);Il={stdout:Mr({isTTY:Zi.isatty(1)}),stderr:Mr({isTTY:Zi.isatty(2)})},Ml=Il});var rs=g((ee,Ht)=>{var Hl=P("tty"),Mt=P("util");ee.init=Yl;ee.log=Wl;ee.formatArgs=jl;ee.save=Ul;ee.load=Vl;ee.useColors=Bl;ee.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`.");ee.colors=[6,2,3,4,5,1];try{let e=(es(),_l(zi));e&&(e.stderr||e).level>=2&&(ee.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{}ee.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 Bl(){return"colors"in ee.inspectOpts?Boolean(ee.inspectOpts.colors):Hl.isatty(process.stderr.fd)}function jl(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]=Gl()+t+" "+e[0]}function Gl(){return ee.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Wl(...e){return process.stderr.write(Mt.format(...e)+`
4
- `)}function Ul(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Vl(){return process.env.DEBUG}function Yl(e){e.inspectOpts={};let t=Object.keys(ee.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=ee.inspectOpts[t[r]]}Ht.exports=Ir()(ee);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((kg,Br)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Br.exports=Ji():Br.exports=rs()});var ps=g(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.splitWhen=rt.flatten=void 0;function of(e){return e.reduce((t,r)=>[].concat(t,r),[])}rt.flatten=of;function uf(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}rt.splitWhen=uf});var hs=g(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.isEnoentCodeError=void 0;function af(e){return e.code==="ENOENT"}Ut.isEnoentCodeError=af});var ds=g(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.createDirentFromStats=void 0;var Vr=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 cf(e,t){return new Vr(e,t)}Vt.createDirentFromStats=cf});var ys=g(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.removeLeadingDotSegment=we.escape=we.makeAbsolute=we.unixify=void 0;var lf=P("path"),ff=2,pf=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function hf(e){return e.replace(/\\/g,"/")}we.unixify=hf;function df(e,t){return lf.resolve(e,t)}we.makeAbsolute=df;function yf(e){return e.replace(pf,"\\$2")}we.escape=yf;function mf(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(ff)}return e}we.removeLeadingDotSegment=mf});var gs=g((Zg,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((zg,Ss)=>{var gf=gs(),_s={"{":"}","(":")","[":"]"},_f=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},Sf=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(gf(t))return!0;var n=_f;return r&&r.strict===!1&&(n=Sf),n(t)}});var ws=g((e_,Es)=>{"use strict";var vf=vs(),Ef=P("path").posix.dirname,wf=P("os").platform()==="win32",Yr="/",Cf=/\\/g,Rf=/[\{\[].*[\}\]]$/,Af=/(^|[^\\])([\{\[]|\([^\)]+$)/,xf=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Es.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&wf&&t.indexOf(Yr)<0&&(t=t.replace(Cf,Yr)),Rf.test(t)&&(t+=Yr),t+="a";do t=Ef(t);while(vf(t)||Af.test(t));return t.replace(xf,"$1")}});var Yt=g(ge=>{"use strict";ge.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;ge.find=(e,t)=>e.nodes.find(r=>r.type===t);ge.exceedsLimit=(e,t,r=1,n)=>n===!1||!ge.isInteger(e)||!ge.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;ge.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)};ge.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;ge.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;ge.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;ge.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);ge.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((r_,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 xs=g((n_,As)=>{"use strict";As.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((i_,Ds)=>{"use strict";var bs=xs(),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=$({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=bf(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 bf(e,t,r){let n=Kr(e,t,"-",!1,r)||[],i=Kr(t,e,"",!1,r)||[],s=Kr(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function Of(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(Tf),s}function Pf(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=kf(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+=Ff(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=Of(e,t),s=[],o=e,u;for(let c=0;c<i.length;c++){let m=i[c],a=Pf(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=Lf(m,r,n)),a.string=f+a.pattern+Fs(a.count),s.push(a),o=m+1,u=a}return s}function Kr(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 kf(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function Tf(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 Ff(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Ls(e){return/^-?(0+)\d/.test(e)}function Lf(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 Jr=g((s_,Gs)=>{"use strict";var Df=P("util"),Is=qs(),$s=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),qf=e=>t=>e===!0?Number(t):String(t),Qr=e=>typeof e=="number"||typeof e=="string"&&e!=="",gt=e=>Number.isInteger(+e),Xr=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},$f=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Nf=(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},If=(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,$({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: "+Df.inspect(...e)),js=(e,t,r)=>{if(r.strictRanges===!0)throw Bs([e,t]);return[]},Mf=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Hf=(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=Xr(u)||Xr(c)||Xr(m),f=a?Math.max(u.length,c.length,m.length):0,l=a===!1&&$f(e,t,n)===!1,S=n.transform||qf(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(Nf(S(i,C),f,l)),i=o?i-r:i+r,C++;return n.toRegex===!0?r>1?If(y,n):Hs(v,null,$({wrap:!1},n)):v},Bf=(e,t,r=1,n={})=>{if(!gt(e)&&e.length>1||!gt(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&&Qr(e))return[e];if(!Qr(e)||!Qr(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);return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,gt(r)?gt(e)&&gt(t)?Hf(e,t,r,i):Bf(e,t,Math.max(Math.abs(r),1),i):r!=null&&!$s(r)?Mf(r,i):Qt(e,t,1,r)};Gs.exports=Qt});var Vs=g((o_,Us)=>{"use strict";var jf=Jr(),Ws=Yt(),Gf=(e,t={})=>{let r=(n,i={})=>{let s=Ws.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=Ws.reduce(n.nodes),f=jf(...a,Z($({},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=Gf});var Qs=g((u_,Ks)=>{"use strict";var Wf=Jr(),Ys=Kt(),nt=Yt(),Ve=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?nt.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 nt.flatten(n)},Uf=(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=nt.reduce(i.nodes);if(nt.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=Wf(...f,t);l.length===0&&(l=Ys(i,t)),u.push(Ve(u.pop(),l)),i.nodes=[];return}let c=nt.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 nt.flatten(n(e))};Ks.exports=Uf});var Js=g((a_,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((c_,to)=>{"use strict";var Vf=Kt(),{MAX_LENGTH:Zs,CHAR_BACKSLASH:Zr,CHAR_BACKTICK:Yf,CHAR_COMMA:Kf,CHAR_DOT:Qf,CHAR_LEFT_PARENTHESES:Xf,CHAR_RIGHT_PARENTHESES:Jf,CHAR_LEFT_CURLY_BRACE:Zf,CHAR_RIGHT_CURLY_BRACE:zf,CHAR_LEFT_SQUARE_BRACKET:zs,CHAR_RIGHT_SQUARE_BRACKET:eo,CHAR_DOUBLE_QUOTE:ep,CHAR_SINGLE_QUOTE:tp,CHAR_NO_BREAK_SPACE:rp,CHAR_ZERO_WIDTH_NOBREAK_SPACE:np}=Js(),ip=(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===np||l===rp)){if(l===Zr){_({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===Zr){l+=y();continue}if(C===eo&&(c--,c===0))break}_({type:"text",value:l});continue}if(l===Xf){o=_({type:"paren",nodes:[]}),s.push(o),_({type:"text",value:l});continue}if(l===Jf){if(o.type!=="paren"){_({type:"text",value:l});continue}o=s.pop(),_({type:"text",value:l}),o=s[s.length-1];continue}if(l===ep||l===tp||l===Yf){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===Zf){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===zf){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===Kf&&f>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:Vf(o)}]}_({type:"comma",value:l}),o.commas++;continue}if(l===Qf&&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=ip});var so=g((l_,io)=>{"use strict";var no=Kt(),sp=Vs(),op=Qs(),up=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={})=>up(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)),sp(e,t));de.expand=(e,t={})=>{typeof e=="string"&&(e=de.parse(e,t));let r=op(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 _t=g((f_,lo)=>{"use strict";var ap=P("path"),Ce="\\\\/",oo=`[^${Ce}]`,Oe="\\.",cp="\\+",lp="\\?",Xt="\\/",fp="(?=.)",uo="[^/]",zr=`(?:${Xt}|$)`,ao=`(?:^|${Xt})`,en=`${Oe}{1,2}${zr}`,pp=`(?!${Oe})`,hp=`(?!${ao}${en})`,dp=`(?!${Oe}{0,1}${zr})`,yp=`(?!${en})`,mp=`[^.${Xt}]`,gp=`${uo}*?`,co={DOT_LITERAL:Oe,PLUS_LITERAL:cp,QMARK_LITERAL:lp,SLASH_LITERAL:Xt,ONE_CHAR:fp,QMARK:uo,END_ANCHOR:zr,DOTS_SLASH:en,NO_DOT:pp,NO_DOTS:hp,NO_DOT_SLASH:dp,NO_DOTS_SLASH:yp,QMARK_NO_DOT:mp,STAR:gp,START_ANCHOR:ao},_p=Z($({},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}]|$)`}),Sp={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:Sp,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:ap.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?_p:co}}});var St=g(ae=>{"use strict";var vp=P("path"),Ep=process.platform==="win32",{REGEX_BACKSLASH:wp,REGEX_REMOVE_BACKSLASH:Cp,REGEX_SPECIAL_CHARS:Rp,REGEX_SPECIAL_CHARS_GLOBAL:Ap}=_t();ae.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ae.hasRegexChars=e=>Rp.test(e);ae.isRegexChar=e=>e.length===1&&ae.hasRegexChars(e);ae.escapeRegex=e=>e.replace(Ap,"\\$1");ae.toPosixSlashes=e=>e.replace(wp,"/");ae.removeBackslashes=e=>e.replace(Cp,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:Ep===!0||vp.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((h_,_o)=>{"use strict";var fo=St(),{CHAR_ASTERISK:tn,CHAR_AT:xp,CHAR_BACKWARD_SLASH:vt,CHAR_COMMA:bp,CHAR_DOT:rn,CHAR_EXCLAMATION_MARK:nn,CHAR_FORWARD_SLASH:go,CHAR_LEFT_CURLY_BRACE:sn,CHAR_LEFT_PARENTHESES:on,CHAR_LEFT_SQUARE_BRACKET:Op,CHAR_PLUS:Pp,CHAR_QUESTION_MARK:po,CHAR_RIGHT_CURLY_BRACE:kp,CHAR_RIGHT_PARENTHESES:ho,CHAR_RIGHT_SQUARE_BRACKET:Tp}=_t(),yo=e=>e===go||e===vt,mo=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Fp=(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,N=!1,B=0,L,A,w={value:"",depth:0,isGlob:!1},O=()=>m>=n,d=()=>c.charCodeAt(m+1),D=()=>(L=A,c.charCodeAt(++m));for(;m<n;){A=D();let q;if(A===vt){b=w.backslashes=!0,A=D(),A===sn&&(C=!0);continue}if(C===!0||A===sn){for(B++;O()!==!0&&(A=D());){if(A===vt){b=w.backslashes=!0,D();continue}if(A===sn){B++;continue}if(C!==!0&&A===rn&&(A=D())===rn){if(l=w.isBrace=!0,y=w.isGlob=!0,N=!0,i===!0)continue;break}if(C!==!0&&A===bp){if(l=w.isBrace=!0,y=w.isGlob=!0,N=!0,i===!0)continue;break}if(A===kp&&(B--,B===0)){C=!1,l=w.isBrace=!0,N=!0;break}}if(i===!0)continue;break}if(A===go){if(s.push(m),o.push(w),w={value:"",depth:0,isGlob:!1},N===!0)continue;if(L===rn&&m===a+1){a+=2;continue}f=m+1;continue}if(r.noext!==!0&&(A===Pp||A===xp||A===tn||A===po||A===nn)===!0&&d()===on){if(y=w.isGlob=!0,_=w.isExtglob=!0,N=!0,A===nn&&m===a&&(V=!0),i===!0){for(;O()!==!0&&(A=D());){if(A===vt){b=w.backslashes=!0,A=D();continue}if(A===ho){y=w.isGlob=!0,N=!0;break}}continue}break}if(A===tn){if(L===tn&&(v=w.isGlobstar=!0),y=w.isGlob=!0,N=!0,i===!0)continue;break}if(A===po){if(y=w.isGlob=!0,N=!0,i===!0)continue;break}if(A===Op){for(;O()!==!0&&(q=D());){if(q===vt){b=w.backslashes=!0,D();continue}if(q===Tp){S=w.isBracket=!0,y=w.isGlob=!0,N=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&A===nn&&m===a){F=w.negated=!0,a++;continue}if(r.noparen!==!0&&A===on){if(y=w.isGlob=!0,i===!0){for(;O()!==!0&&(A=D());){if(A===on){b=w.backslashes=!0,A=D();continue}if(A===ho){N=!0;break}}continue}break}if(y===!0){if(N=!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(A)||o.push(w),h.tokens=o),r.parts===!0||r.tokens===!0){let q;for(let x=0;x<s.length;x++){let H=q?q+1:a,Se=s[x],pe=e.slice(H,Se);r.tokens&&(x===0&&a!==0?(o[x].isPrefix=!0,o[x].value=j):o[x].value=pe,mo(o[x]),h.maxDepth+=o[x].depth),(x!==0||pe!=="")&&u.push(pe),q=Se}if(q&&q+1<e.length){let x=e.slice(q+1);u.push(x),r.tokens&&(o[o.length-1].value=x,mo(o[o.length-1]),h.maxDepth+=o[o.length-1].depth)}h.slashes=s,h.parts=u}return h};_o.exports=Fp});var wo=g((d_,Eo)=>{"use strict";var Jt=_t(),ye=St(),{MAX_LENGTH:Zt,POSIX_REGEX_SOURCE:Lp,REGEX_NON_SPECIAL_CHARS:Dp,REGEX_SPECIAL_CHARS_BACKREF:qp,REPLACEMENTS:vo}=Jt,$p=(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},it=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,un=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=vo[e]||e;let r=$({},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:N,START_ANCHOR:B}=m,L=R=>`(${u}(?:(?!${B}${R.dot?_:f}).)*?)`,A=r.dot?"":v,w=r.dot?F:V,O=r.bash===!0?L(r):N;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,x=d.peek=(R=1)=>e[d.index+R],H=d.advance=()=>e[++d.index]||"",Se=()=>e.slice(d.index+1),pe=(R="",W=0)=>{d.consumed+=R,d.index+=W},Tt=R=>{d.output+=R.output!=null?R.output:R.value,pe(R.value)},dl=()=>{let R=1;for(;x()==="!"&&(x(2)!=="("||x(3)==="?");)H(),d.start++,R++;return R%2===0?!1:(d.negated=!0,d.start++,!0)},Ft=R=>{d[R]++,j.push(R)},Ge=R=>{d[R]--,j.pop()},M=R=>{if(p.type==="globstar"){let W=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"&&!W&&!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)&&Tt(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},Lt=(R,W)=>{let E=Z($({},a[W]),{conditions:1,inner:""});E.prev=p,E.parens=d.parens,E.output=d.output;let I=(r.capture?"(":"")+E.open;Ft("parens"),M({type:R,value:W,output:d.output?"":y}),M({type:"paren",extglob:!0,value:H(),output:I}),D.push(E)},yl=R=>{let W=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(Se()))&&(W=R.close=`)$))${I}`),R.inner.includes("*")&&(E=Se())&&/^\.[^\\/.]+$/.test(E)){let Y=un(E,Z($({},t),{fastpaths:!1})).output;W=R.close=`)${Y})${I})`}R.prev.type==="bos"&&(d.negatedExtglob=!0)}M({type:"paren",extglob:!0,value:h,output:W}),Ge("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let R=!1,W=e.replace(qp,(E,I,Y,se,J,qr)=>se==="\\"?(R=!0,E):se==="?"?I?I+se+(J?F.repeat(J.length):""):qr===0?w+(J?F.repeat(J.length):""):F.repeat(Y.length):se==="."?f.repeat(Y.length):se==="*"?I?I+se+(J?O:""):O:I?E:`\\${E}`);return R===!0&&(r.unescape===!0?W=W.replace(/\\/g,""):W=W.replace(/\\+/g,E=>E.length%2===0?"\\\\":E?"\\":"")),W===e&&r.contains===!0?(d.output=e,d):(d.output=ye.wrapOutput(W,d,t),d)}for(;!q();){if(h=H(),h==="\0")continue;if(h==="\\"){let E=x();if(E==="/"&&r.bash!==!0||E==="."||E===";")continue;if(!E){h+="\\",M({type:"text",value:h});continue}let I=/^\\+/.exec(Se()),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),J=Lp[se];if(J){p.value=Y+J,d.backtrack=!0,H(),!s.output&&o.indexOf(p)===1&&(s.output=y);continue}}}(h==="["&&x()!==":"||h==="-"&&x()==="]")&&(h=`\\${h}`),h==="]"&&(p.value==="["||p.value==="[^")&&(h=`\\${h}`),r.posix===!0&&h==="!"&&p.value==="["&&(h="^"),p.value+=h,Tt({value:h});continue}if(d.quotes===1&&h!=='"'){h=ye.escapeRegex(h),p.value+=h,Tt({value:h});continue}if(h==='"'){d.quotes=d.quotes===1?0:1,r.keepQuotes===!0&&M({type:"text",value:h});continue}if(h==="("){Ft("parens"),M({type:"paren",value:h});continue}if(h===")"){if(d.parens===0&&r.strictBrackets===!0)throw new SyntaxError(it("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?")":"\\)"}),Ge("parens");continue}if(h==="["){if(r.nobracket===!0||!Se().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(it("closing","]"));h=`\\${h}`}else Ft("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(it("opening","["));M({type:"text",value:h,output:`\\${h}`});continue}Ge("brackets");let E=p.value.slice(1);if(p.posix!==!0&&E[0]==="^"&&!E.includes("/")&&(h=`/${h}`),p.value+=h,Tt({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){Ft("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 J=Y.length-1;J>=0&&(o.pop(),Y[J].type!=="brace");J--)Y[J].type!=="dots"&&se.unshift(Y[J].value);I=$p(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 J of se)d.output+=J.output||J.value}M({type:"brace",value:h,output:I}),Ge("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&&x()==="("&&x(2)!=="?"){Lt("qmark",h);continue}if(p&&p.type==="paren"){let I=x(),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(Se()))&&(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&&x()==="("&&(x(2)!=="?"||!/[!=<:]/.test(x(3)))){Lt("negate",h);continue}if(r.nonegate!==!0&&d.index===0){dl();continue}}if(h==="+"){if(r.noextglob!==!0&&x()==="("&&x(2)!=="?"){Lt("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&&x()==="("&&x(2)!=="?"){M({type:"at",extglob:!0,value:h,output:""});continue}M({type:"text",value:h});continue}if(h!=="*"){(h==="$"||h==="^")&&(h=`\\${h}`);let E=Dp.exec(Se());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=Se();if(r.noextglob!==!0&&/^\([^?]/.test(R)){Lt("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 J=d.braces>0&&(E.type==="comma"||E.type==="brace"),qr=D.length&&(E.type==="pipe"||E.type==="paren");if(!Y&&E.type!=="paren"&&!J&&!qr){M({type:"star",value:h,output:""});continue}for(;R.slice(0,3)==="/**";){let Dt=e[d.index+4];if(Dt&&Dt!=="/")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 Dt=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}${Dt})`,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 W={type:"star",value:h,output:O};if(r.bash===!0){W.output=".*?",(p.type==="bos"||p.type==="slash")&&(W.output=A+W.output),M(W);continue}if(p&&(p.type==="bracket"||p.type==="paren")&&r.regex===!0){W.output=h,M(W);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+=A,p.output+=A),x()!=="*"&&(d.output+=y,p.output+=y)),M(W)}for(;d.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(it("closing","]"));d.output=ye.escapeLast(d.output,"["),Ge("brackets")}for(;d.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(it("closing",")"));d.output=ye.escapeLast(d.output,"("),Ge("parens")}for(;d.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(it("closing","}"));d.output=ye.escapeLast(d.output,"{"),Ge("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};un.fastpaths=(e,t)=>{let r=$({},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=A=>A.noglobstar===!0?F:`(${C}(?:(?!${y}${A.dot?m:o}).)*?)`,N=A=>{switch(A){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(A);if(!w)return;let O=N(w[1]);return O?O+o+w[2]:void 0}}},B=ye.removePrefix(e,b),L=N(B);return L&&r.strictSlashes!==!0&&(L+=`${u}?`),L};Eo.exports=un});var Ro=g((y_,Co)=>{"use strict";var Np=P("path"),Ip=So(),an=wo(),cn=St(),Mp=_t(),Hp=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=Hp(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=cn.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=Z($({},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?cn.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=cn.isWindows(r))=>(t instanceof RegExp?t:Q.makeRe(t,r)).test(Np.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)):an(e,Z($({},t),{fastpaths:!1}));Q.scan=(e,t)=>Ip(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=an.fastpaths(e,t)),i.output||(i=an(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=Mp;Co.exports=Q});var xo=g((m_,Ao)=>{"use strict";Ao.exports=Ro()});var To=g((g_,ko)=>{"use strict";var Oo=P("util"),Po=so(),Re=xo(),ln=St(),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]),Z($({},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,Z($({},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,Z($({},r),{contains:!0}))};U.matchKeys=(e,t,r)=>{if(!ln.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=ln.isWindows(r),s=Re.makeRe(String(e),Z($({},r),{capture:!0})).exec(n?ln.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,Z($({},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 Bp=P("path"),jp=ws(),fn=To(),Fo="**",Gp="\\",Wp=/[*?]|^!/,Up=/\[[^[]*]/,Vp=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Yp=/[!*+?@]\([^(]*\)/,Kp=/,|\.\./;function Lo(e,t={}){return!Do(e,t)}k.isStaticPattern=Lo;function Do(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Gp)||Wp.test(e)||Up.test(e)||Vp.test(e)||t.extglob!==!1&&Yp.test(e)||t.braceExpansion!==!1&&Qp(e))}k.isDynamicPattern=Do;function Qp(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 Kp.test(n)}function Xp(e){return zt(e)?e.slice(1):e}k.convertToPositivePattern=Xp;function Jp(e){return"!"+e}k.convertToNegativePattern=Jp;function zt(e){return e.startsWith("!")&&e[1]!=="("}k.isNegativePattern=zt;function qo(e){return!zt(e)}k.isPositivePattern=qo;function Zp(e){return e.filter(zt)}k.getNegativePatterns=Zp;function zp(e){return e.filter(qo)}k.getPositivePatterns=zp;function eh(e){return e.filter(t=>!pn(t))}k.getPatternsInsideCurrentDirectory=eh;function th(e){return e.filter(pn)}k.getPatternsOutsideCurrentDirectory=th;function pn(e){return e.startsWith("..")||e.startsWith("./..")}k.isPatternRelatedToParentDirectory=pn;function rh(e){return jp(e,{flipBackslashes:!1})}k.getBaseDirectory=rh;function nh(e){return e.includes(Fo)}k.hasGlobStar=nh;function $o(e){return e.endsWith("/"+Fo)}k.endsWithSlashGlobStar=$o;function ih(e){let t=Bp.basename(e);return $o(e)||Lo(t)}k.isAffectDepthOfReadingPattern=ih;function sh(e){return e.reduce((t,r)=>t.concat(No(r)),[])}k.expandPatternsWithBraceExpansion=sh;function No(e){return fn.braces(e,{expand:!0,nodupes:!0})}k.expandBraceExpansion=No;function oh(e,t){let{parts:r}=fn.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=oh;function Io(e,t){return fn.makeRe(e,t)}k.makeRe=Io;function uh(e,t){return e.map(r=>Io(r,t))}k.convertPatternsToRe=uh;function ah(e,t){return t.some(r=>r.test(e))}k.matchAny=ah});var Go=g((S_,jo)=>{"use strict";var ch=P("stream"),Ho=ch.PassThrough,lh=Array.prototype.slice;jo.exports=fh;function fh(){let e=[],t=lh.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 ph=Go();function hh(e){let t=ph(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Wo(e)),t.once("end",()=>Wo(e)),t}er.merge=hh;function Wo(e){e.forEach(t=>t.emit("close"))}});var Vo=g(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.isEmpty=st.isString=void 0;function dh(e){return typeof e=="string"}st.isString=dh;function yh(e){return e===""}st.isEmpty=yh});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 mh=ps();re.array=mh;var gh=hs();re.errno=gh;var _h=ds();re.fs=_h;var Sh=ys();re.path=Sh;var vh=Mo();re.pattern=vh;var Eh=Uo();re.stream=Eh;var wh=Vo();re.string=wh});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 Ch(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=hn(i,n,!1),u=hn(s,n,!0);return o.concat(u)}ne.generate=Ch;function hn(e,t,r){let n=[],i=ke.pattern.getPatternsOutsideCurrentDirectory(e),s=ke.pattern.getPatternsInsideCurrentDirectory(e),o=dn(i),u=dn(s);return n.push(...yn(o,t,r)),"."in u?n.push(mn(".",s,t,r)):n.push(...yn(u,t,r)),n}ne.convertPatternsToTasks=hn;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 dn(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=dn;function yn(e,t,r){return Object.keys(e).map(n=>mn(n,e[n],t,r))}ne.convertPatternGroupsToTasks=yn;function mn(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(ke.pattern.convertToNegativePattern))}}ne.convertPatternGroupToTask=mn});var Jo=g(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.removeDuplicateSlashes=ot.transform=void 0;var Rh=/(?!^)\/{2,}/g;function Ah(e){return e.map(t=>Xo(t))}ot.transform=Ah;function Xo(e){return e.replace(Rh,"/")}ot.removeDuplicateSlashes=Xo});var zo=g(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.read=void 0;function xh(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){Zo(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){gn(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Zo(r,s);return}gn(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),gn(r,o)})})}tr.read=xh;function Zo(e,t){e(t)}function gn(e,t){e(null,t)}});var eu=g(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.read=void 0;function bh(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=bh});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 Oh(e){return e===void 0?Te.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Te.FILE_SYSTEM_ADAPTER),e)}Te.createFileSystemAdapter=Oh});var ru=g(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});var Ph=tu(),_n=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Ph.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}};Sn.default=_n});var Ye=g(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.statSync=Fe.stat=Fe.Settings=void 0;var nu=zo(),kh=eu(),vn=ru();Fe.Settings=vn.default;function Th(e,t,r){if(typeof t=="function"){nu.read(e,En(),t);return}nu.read(e,En(t),r)}Fe.stat=Th;function Fh(e,t){let r=En(t);return kh.read(e,r)}Fe.statSync=Fh;function En(e={}){return e instanceof vn.default?e:new vn.default(e)}});var ou=g((k_,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((T_,uu)=>{uu.exports=Dh;var Lh=ou();function Dh(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?Lh(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 wn=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),qh=Number.parseInt(ir[1],10),lu=10,$h=10,Nh=cu>lu,Ih=cu===lu&&qh>=$h;sr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Nh||Ih});var fu=g(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.createDirentFromStats=void 0;var Cn=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 Mh(e,t){return new Cn(e,t)}or.createDirentFromStats=Mh});var Rn=g(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.fs=void 0;var Hh=fu();ur.fs=Hh});var An=g(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.joinPathSegments=void 0;function Bh(e,t,r){return e.endsWith(r)?e+t:e+r+t}ar.joinPathSegments=Bh});var gu=g(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.readdir=Le.readdirWithFileTypes=Le.read=void 0;var jh=Ye(),pu=au(),Gh=wn(),hu=Rn(),du=An();function Wh(e,t,r){if(!t.stats&&Gh.IS_SUPPORT_READDIR_WITH_FILE_TYPES){yu(e,t,r);return}mu(e,t,r)}Le.read=Wh;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=>Uh(u,t));pu(o,(u,c)=>{if(u!==null){cr(r,u);return}xn(r,c)})})}Le.readdirWithFileTypes=yu;function Uh(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=>{jh.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 Vh=Ye(),Yh=wn(),_u=Rn(),Su=An();function Kh(e,t){return!t.stats&&Yh.IS_SUPPORT_READDIR_WITH_FILE_TYPES?vu(e,t):Eu(e,t)}De.read=Kh;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=Vh.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 ut=P("fs");qe.FILE_SYSTEM_ADAPTER={lstat:ut.lstat,stat:ut.stat,lstatSync:ut.lstatSync,statSync:ut.statSync,readdir:ut.readdir,readdirSync:ut.readdirSync};function Qh(e){return e===void 0?qe.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},qe.FILE_SYSTEM_ADAPTER),e)}qe.createFileSystemAdapter=Qh});var Ru=g(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});var Xh=P("path"),Jh=Ye(),Zh=Cu(),bn=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Zh.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Xh.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Jh.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};On.default=bn});var lr=g($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.Settings=$e.scandirSync=$e.scandir=void 0;var Au=gu(),zh=wu(),Pn=Ru();$e.Settings=Pn.default;function ed(e,t,r){if(typeof t=="function"){Au.read(e,kn(),t);return}Au.read(e,kn(t),r)}$e.scandir=ed;function td(e,t){let r=kn(t);return zh.read(e,r)}$e.scandirSync=td;function kn(e={}){return e instanceof Pn.default?e:new Pn.default(e)}});var bu=g((B_,xu)=>{"use strict";function rd(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}}xu.exports=rd});var Pu=g((j_,Tn)=>{"use strict";var nd=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=nd(id),i=null,s=null,o=0,u=null,c={push:_,drain:_e,saturated:_e,pause:a,paused:!1,concurrency:r,running:m,resume:S,idle:y,length:f,getQueue:l,unshift:v,empty:_e,kill:b,killAndDrain:F,error:V};return c;function m(){return o}function a(){c.paused=!0}function f(){for(var N=i,B=0;N;)N=N.next,B++;return B}function l(){for(var N=i,B=[];N;)B.push(N.value),N=N.next;return B}function S(){if(!!c.paused){c.paused=!1;for(var N=0;N<c.concurrency;N++)o++,C()}}function y(){return o===0&&c.length()===0}function _(N,B){var L=n.get();L.context=e,L.release=C,L.value=N,L.callback=B||_e,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(N,B){var L=n.get();L.context=e,L.release=C,L.value=N,L.callback=B||_e,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){N&&n.release(N);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=_e}function F(){i=null,s=null,c.drain(),c.drain=_e}function V(N){u=N}}function _e(){}function id(){this.value=null,this.callback=_e,this.next=null,this.release=_e,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=_e,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function sd(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(_e),f}function c(a){var f=new Promise(function(l,S){o(a,function(y,_){if(y){S(y);return}l(_)})});return f.catch(_e),f}function m(){var a=i.drain,f=new Promise(function(l){i.drain=function(){a(),l()}});return f}}Tn.exports=Ou;Tn.exports.promise=sd});var fr=g(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.joinPathSegments=Ae.replacePathSegmentSeparator=Ae.isAppliedFilter=Ae.isFatalError=void 0;function od(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Ae.isFatalError=od;function ud(e,t){return e===null||e(t)}Ae.isAppliedFilter=ud;function ad(e,t){return e.split(/[/\\]/).join(t)}Ae.replacePathSegmentSeparator=ad;function cd(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Ae.joinPathSegments=cd});var Dn=g(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});var ld=fr(),Fn=class{constructor(t,r){this._root=t,this._settings=r,this._root=ld.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Ln.default=Fn});var Nn=g($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});var fd=P("events"),pd=lr(),hd=Pu(),pr=fr(),dd=Dn(),qn=class extends dd.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=pd.scandir,this._emitter=new fd.EventEmitter,this._queue=hd(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)}};$n.default=qn});var ku=g(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});var yd=Nn(),In=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new yd.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{md(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{gd(t,this._storage)}),this._reader.read()}};Mn.default=In;function md(e,t){e(t)}function gd(e,t){e(null,t)}});var Tu=g(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});var _d=P("stream"),Sd=Nn(),Hn=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Sd.default(this._root,this._settings),this._stream=new _d.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}};Bn.default=Hn});var Fu=g(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});var vd=lr(),hr=fr(),Ed=Dn(),jn=class extends Ed.default{constructor(){super(...arguments),this._scandir=vd.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=jn});var Lu=g(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});var wd=Fu(),Wn=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new wd.default(this._root,this._settings)}read(){return this._reader.read()}};Un.default=Wn});var Du=g(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});var Cd=P("path"),Rd=lr(),Vn=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,Cd.sep),this.fsScandirSettings=new Rd.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}};Yn.default=Vn});var Qn=g(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.Settings=xe.walkStream=xe.walkSync=xe.walk=void 0;var qu=ku(),Ad=Tu(),xd=Lu(),Kn=Du();xe.Settings=Kn.default;function bd(e,t,r){if(typeof t=="function"){new qu.default(e,dr()).read(t);return}new qu.default(e,dr(t)).read(r)}xe.walk=bd;function Od(e,t){let r=dr(t);return new xd.default(e,r).read()}xe.walkSync=Od;function Pd(e,t){let r=dr(t);return new Ad.default(e,r).read()}xe.walkStream=Pd;function dr(e={}){return e instanceof Kn.default?e:new Kn.default(e)}});var Zn=g(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});var kd=P("path"),Td=Ye(),$u=Pe(),Xn=class{constructor(t){this._settings=t,this._fsStatSettings=new Td.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return kd.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}};Jn.default=Xn});var ti=g(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});var Fd=P("stream"),Ld=Ye(),Dd=Qn(),qd=Zn(),zn=class extends qd.default{constructor(){super(...arguments),this._walkStream=Dd.walkStream,this._stat=Ld.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new Fd.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))})}};ei.default=zn});var Nu=g(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});var at=Pe(),ri=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=at.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 at.pattern.getPatternParts(t,this._micromatchOptions).map(n=>at.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:at.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return at.array.splitWhen(t,r=>r.dynamic&&at.pattern.hasGlobStar(r.pattern))}};ni.default=ri});var Iu=g(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});var $d=Nu(),ii=class extends $d.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}};si.default=ii});var Mu=g(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});var yr=Pe(),Nd=Iu(),oi=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 Nd.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)}};ui.default=oi});var Hu=g(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});var Ke=Pe(),ai=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)}};ci.default=ai});var Bu=g(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});var Id=Pe(),li=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Id.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};fi.default=li});var Gu=g(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});var ju=Pe(),pi=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}};hi.default=pi});var mr=g(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});var Md=P("path"),Hd=Mu(),Bd=Hu(),jd=Bu(),Gd=Gu(),di=class{constructor(t){this._settings=t,this.errorFilter=new jd.default(this._settings),this.entryFilter=new Bd.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Hd.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Gd.default(this._settings)}_getRootDirectory(t){return Md.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}}};yi.default=di});var Wu=g(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});var Wd=ti(),Ud=mr(),mi=class extends Ud.default{constructor(){super(...arguments),this._reader=new Wd.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)}};gi.default=mi});var Uu=g(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});var Vd=P("stream"),Yd=ti(),Kd=mr(),_i=class extends Kd.default{constructor(){super(...arguments),this._reader=new Yd.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new Vd.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)}};Si.default=_i});var Vu=g(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});var Qd=Ye(),Xd=Qn(),Jd=Zn(),vi=class extends Jd.default{constructor(){super(...arguments),this._walkSync=Xd.walkSync,this._statSync=Qd.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)}};Ei.default=vi});var Yu=g(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});var Zd=Vu(),zd=mr(),wi=class extends zd.default{constructor(){super(...arguments),this._reader=new Zd.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)}};Ci.default=wi});var Ku=g(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var ct=P("fs"),ey=P("os"),ty=Math.max(ey.cpus().length,1);lt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:ct.lstat,lstatSync:ct.lstatSync,stat:ct.stat,statSync:ct.statSync,readdir:ct.readdir,readdirSync:ct.readdirSync};var Ri=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,ty),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({},lt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};lt.default=Ri});var Zu=g((pS,Ju)=>{"use strict";var Qu=Qo(),Xu=Jo(),ry=Wu(),ny=Uu(),iy=Yu(),Ai=Ku(),Qe=Pe();async function xi(e,t){ft(e);let r=bi(e,ry.default,t),n=await Promise.all(r);return Qe.array.flatten(n)}(function(e){function t(o,u){ft(o);let c=bi(o,iy.default,u);return Qe.array.flatten(c)}e.sync=t;function r(o,u){ft(o);let c=bi(o,ny.default,u);return Qe.stream.merge(c)}e.stream=r;function n(o,u){ft(o);let c=Xu.transform([].concat(o)),m=new Ai.default(u);return Qu.generate(c,m)}e.generateTasks=n;function i(o,u){ft(o);let c=new Ai.default(u);return Qe.pattern.isDynamicPattern(o,c)}e.isDynamicPattern=i;function s(o){return ft(o),Qe.path.escape(o)}e.escapePath=s})(xi||(xi={}));function bi(e,t,r){let n=Xu.transform([].concat(e)),i=new Ai.default(r),s=Qu.generate(n,i),o=new t(i);return s.map(o.read,o)}function ft(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(Oi=>{"use strict";Oi.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})};Oi.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((dS,zu)=>{var Ne=P("constants"),sy=process.cwd,gr=null,oy=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return gr||(gr=sy.call(process)),gr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Pi=process.chdir,process.chdir=function(e){gr=null,Pi.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Pi));var Pi;zu.exports=uy;function uy(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(){}),oy==="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,N,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((yS,ra)=>{var ta=P("stream").Stream;ra.exports=ay;function ay(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((mS,ia)=>{"use strict";ia.exports=ly;var cy=Object.getPrototypeOf||function(e){return e.__proto__};function ly(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:cy(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((gS,Fi)=>{var K=P("fs"),fy=ea(),py=na(),hy=sa(),_r=P("util"),te,vr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(te=Symbol.for("graceful-fs.queue"),vr=Symbol.for("graceful-fs.previous")):(te="___graceful-fs.queue",vr="___graceful-fs.previous");function dy(){}function aa(e,t){Object.defineProperty(e,te,{get:function(){return t}})}var Xe=dy;_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[te]||(oa=global[te]||[],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[te]),P("assert").equal(K[te].length,0)}));var oa;global[te]||aa(global,K[te]);Fi.exports=ki(hy(K));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!K.__patched&&(Fi.exports=ki(K),K.__patched=!0);function ki(e){fy(e),e.gracefulify=ki,e.createReadStream=N,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")?pt([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,x){return n(j,p,h,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?pt([T,[j,p,h,q],H,x||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,x){return s(j,p,h,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?pt([T,[j,p,h,q],H,x||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,x){return u(j,p,h,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?pt([T,[j,p,h,q],H,x||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,x){return m(p,T(p,h,q,x))}:function(p,h,q,x){return m(p,h,T(p,h,q,x))};return D(w,O,d);function T(j,p,h,q){return function(x,H){x&&(x.code==="EMFILE"||x.code==="ENFILE")?pt([D,[j,p,h],x,q||Date.now(),Date.now()]):(H&&H.sort&&H.sort(),typeof h=="function"&&h.call(this,x,H))}}}if(process.version.substr(0,4)==="v0.8"){var l=py(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;A(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;A(w.path,w.flags,w.mode,function(O,d){O?(w.destroy(),w.emit("error",O)):(w.fd=d,w.emit("open",d))})}function N(w,O){return new e.ReadStream(w,O)}function B(w,O){return new e.WriteStream(w,O)}var L=e.open;e.open=A;function A(w,O,d,D){return typeof d=="function"&&(D=d,d=null),T(w,O,d,D);function T(j,p,h,q,x){return L(j,p,h,function(H,Se){H&&(H.code==="EMFILE"||H.code==="ENFILE")?pt([T,[j,p,h,q],H,x||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}return e}function pt(e){Xe("ENQUEUE",e[0].name,e[1]),K[te].push(e),Ti()}var Sr;function ua(){for(var e=Date.now(),t=0;t<K[te].length;++t)K[te][t].length>2&&(K[te][t][3]=e,K[te][t][4]=e);Ti()}function Ti(){if(clearTimeout(Sr),Sr=void 0,K[te].length!==0){var e=K[te].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[te].push(e)}Sr===void 0&&(Sr=setTimeout(Ti,0))}}});var Je=g(Ie=>{"use strict";var ca=ce().fromCallback,le=oe(),yy=["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);yy.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((SS,la)=>{"use strict";var my=P("path");la.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(my.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var ya=g((vS,Li)=>{"use strict";var pa=Je(),{checkPath:ha}=fa(),da=e=>{let t={mode:511};return typeof e=="number"?e:$($({},t),e).mode};Li.exports.makeDir=async(e,t)=>(ha(e),pa.mkdir(e,{mode:da(t),recursive:!0}));Li.exports.makeDirSync=(e,t)=>(ha(e),pa.mkdirSync(e,{mode:da(t),recursive:!0}))});var ve=g((ES,ma)=>{"use strict";var gy=ce().fromPromise,{makeDir:_y,makeDirSync:Di}=ya(),qi=gy(_y);ma.exports={mkdirs:qi,mkdirsSync:Di,mkdirp:qi,mkdirpSync:Di,ensureDir:qi,ensureDirSync:Di}});var Me=g((wS,_a)=>{"use strict";var Sy=ce().fromPromise,ga=Je();function vy(e){return ga.access(e).then(()=>!0).catch(()=>!1)}_a.exports={pathExists:Sy(vy),pathExistsSync:ga.existsSync}});var $i=g((CS,Sa)=>{"use strict";var ht=oe();function Ey(e,t,r,n){ht.open(e,"r+",(i,s)=>{if(i)return n(i);ht.futimes(s,t,r,o=>{ht.close(s,u=>{n&&n(o||u)})})})}function wy(e,t,r){let n=ht.openSync(e,"r+");return ht.futimesSync(n,t,r),ht.closeSync(n)}Sa.exports={utimesMillis:Ey,utimesMillisSync:wy}});var Ze=g((RS,wa)=>{"use strict";var dt=Je(),z=P("path"),Cy=P("util");function Ry(e,t,r){let n=r.dereference?i=>dt.stat(i,{bigint:!0}):i=>dt.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 Ay(e,t,r){let n,i=r.dereference?o=>dt.statSync(o,{bigint:!0}):o=>dt.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 xy(e,t,r,n,i){Cy.callbackify(Ry)(e,t,n,(s,o)=>{if(s)return i(s);let{srcStat:u,destStat:c}=o;if(c){if(Et(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()&&Ni(e,t)?i(new Error(Er(e,t,r))):i(null,{srcStat:u,destStat:c})})}function by(e,t,r,n){let{srcStat:i,destStat:s}=Ay(e,t,n);if(s){if(Et(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()&&Ni(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();dt.stat(o,{bigint:!0},(u,c)=>u?u.code==="ENOENT"?i():i(u):Et(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=dt.statSync(s,{bigint:!0})}catch(u){if(u.code==="ENOENT")return;throw u}if(Et(t,o))throw new Error(Er(e,r,n));return Ea(e,t,s,n)}function Et(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Ni(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:xy,checkPathsSync:by,checkParentPaths:va,checkParentPathsSync:Ea,isSrcSubdir:Ni,areIdentical:Et}});var ka=g((AS,Pa)=>{"use strict";var fe=oe(),wt=P("path"),Oy=ve().mkdirs,Py=Me().pathExists,ky=$i().utimesMillis,Ct=Ze();function Ty(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"),Ct.checkPaths(e,t,"copy",r,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:u}=s;Ct.checkParentPaths(e,o,t,"copy",c=>c?n(c):r.filter?Aa(Ca,u,e,t,r,n):Ca(u,e,t,r,n))})}function Ca(e,t,r,n,i){let s=wt.dirname(r);Py(s,(o,u)=>{if(o)return i(o);if(u)return wr(e,t,r,n,i);Oy(s,c=>c?i(c):wr(e,t,r,n,i))})}function Aa(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 Fy(e,t,r,n,i){return n.filter?Aa(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()?My(u,e,t,r,n,i):u.isFile()||u.isCharacterDevice()||u.isBlockDevice()?Ly(u,e,t,r,n,i):u.isSymbolicLink()?jy(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 Ly(e,t,r,n,i,s){return t?Dy(e,r,n,i,s):xa(e,r,n,i,s)}function Dy(e,t,r,n,i){if(n.overwrite)fe.unlink(r,s=>s?i(s):xa(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function xa(e,t,r,n,i){fe.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?qy(e.mode,t,r,i):Cr(r,e.mode,i))}function qy(e,t,r,n){return $y(e)?Ny(r,e,i=>i?n(i):Ra(e,t,r,n)):Ra(e,t,r,n)}function $y(e){return(e&128)===0}function Ny(e,t,r){return Cr(e,t|128,r)}function Ra(e,t,r,n){Iy(t,r,i=>i?n(i):Cr(r,e,n))}function Cr(e,t,r){return fe.chmod(e,t,r)}function Iy(e,t,r){fe.stat(e,(n,i)=>n?r(n):ky(t,i.atime,i.mtime,r))}function My(e,t,r,n,i,s){return t?ba(r,n,i,s):Hy(e.mode,r,n,i,s)}function Hy(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?By(e,s,t,r,n,i):i()}function By(e,t,r,n,i,s){let o=wt.join(r,t),u=wt.join(n,t);Ct.checkPaths(o,u,"copy",i,(c,m)=>{if(c)return s(c);let{destStat:a}=m;Fy(a,o,u,i,f=>f?s(f):Oa(e,r,n,i,s))})}function jy(e,t,r,n,i){fe.readlink(t,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=wt.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=wt.resolve(process.cwd(),c)),Ct.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&Ct.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):Gy(o,r,i)));else return fe.symlink(o,r,i)})}function Gy(e,t,r){fe.unlink(t,n=>n?r(n):fe.symlink(e,t,r))}Pa.exports=Ty});var qa=g((xS,Da)=>{"use strict";var ie=oe(),Rt=P("path"),Wy=ve().mkdirsSync,Uy=$i().utimesMillisSync,At=Ze();function Vy(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"),Yy(i,e,t,r)}function Yy(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=Rt.dirname(r);return ie.existsSync(i)||Wy(i),Ta(e,t,r,n)}function Ky(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 tm(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Qy(s,e,t,r,n);if(s.isSymbolicLink())return im(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 Qy(e,t,r,n,i){return t?Xy(e,r,n,i):Fa(e,r,n,i)}function Xy(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&&Jy(e.mode,t,r),Ii(r,e.mode)}function Jy(e,t,r){return Zy(e)&&zy(r,e),em(t,r)}function Zy(e){return(e&128)===0}function zy(e,t){return Ii(e,t|128)}function Ii(e,t){return ie.chmodSync(e,t)}function em(e,t){let r=ie.statSync(e);return Uy(t,r.atime,r.mtime)}function tm(e,t,r,n,i){return t?La(r,n,i):rm(e.mode,r,n,i)}function rm(e,t,r,n){return ie.mkdirSync(r),La(t,r,n),Ii(r,e)}function La(e,t,r){ie.readdirSync(e).forEach(n=>nm(n,e,t,r))}function nm(e,t,r,n){let i=Rt.join(t,e),s=Rt.join(r,e),{destStat:o}=At.checkPathsSync(i,s,"copy",n);return Ky(o,i,s,n)}function im(e,t,r,n){let i=ie.readlinkSync(t);if(n.dereference&&(i=Rt.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=Rt.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 sm(i,r)}else return ie.symlinkSync(i,r)}function sm(e,t){return ie.unlinkSync(t),ie.symlinkSync(e,t)}Da.exports=Vy});var Rr=g((bS,$a)=>{"use strict";var om=ce().fromCallback;$a.exports={copy:om(ka()),copySync:qa()}});var Ua=g((OS,Wa)=>{"use strict";var Na=oe(),Ba=P("path"),G=P("assert"),xt=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 Mi(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),G(e,"rimraf: missing path"),G.strictEqual(typeof e,"string","rimraf: path should be a string"),G.strictEqual(typeof r,"function","rimraf: callback function required"),G(t,"rimraf: invalid options argument provided"),G.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){G(e),G(t),G(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&xt)return Ma(e,t,n,r);if(i&&i.isDirectory())return Ar(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return xt?Ma(e,t,s,r):Ar(e,t,s,r);if(s.code==="EISDIR")return Ar(e,t,s,r)}return r(s)})})}function Ma(e,t,r,n){G(e),G(t),G(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()?Ar(e,t,r,n):t.unlink(e,n)})})}function Ha(e,t,r){let n;G(e),G(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()?xr(e,t,r):t.unlinkSync(e)}function Ar(e,t,r,n){G(e),G(t),G(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?um(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function um(e,t,r){G(e),G(t),G(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=>{Mi(Ba.join(e,u),t,c=>{if(!o){if(c)return r(o=c);--s===0&&t.rmdir(e,r)}})})})}function Ga(e,t){let r;t=t||{},ja(t),G(e,"rimraf: missing path"),G.strictEqual(typeof e,"string","rimraf: path should be a string"),G(t,"rimraf: missing options"),G.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&xt&&Ha(e,t,n)}try{r&&r.isDirectory()?xr(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return xt?Ha(e,t,n):xr(e,t,n);if(n.code!=="EISDIR")throw n;xr(e,t,n)}}function xr(e,t,r){G(e),G(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")am(e,t);else if(n.code!=="ENOENT")throw n}}function am(e,t){if(G(e),G(t),t.readdirSync(e).forEach(r=>Ga(Ba.join(e,r),t)),xt){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}Wa.exports=Mi;Mi.sync=Ga});var bt=g((PS,Ya)=>{"use strict";var br=oe(),cm=ce().fromCallback,Va=Ua();function lm(e,t){if(br.rm)return br.rm(e,{recursive:!0,force:!0},t);Va(e,t)}function fm(e){if(br.rmSync)return br.rmSync(e,{recursive:!0,force:!0});Va.sync(e)}Ya.exports={remove:cm(lm),removeSync:fm}});var tc=g((kS,ec)=>{"use strict";var pm=ce().fromPromise,Xa=Je(),Ja=P("path"),Za=ve(),za=bt(),Ka=pm(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((TS,ic)=>{"use strict";var hm=ce().fromCallback,rc=P("path"),He=oe(),nc=ve();function dm(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 ym(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:hm(dm),createFileSync:ym}});var lc=g((FS,cc)=>{"use strict";var mm=ce().fromCallback,oc=P("path"),Be=oe(),uc=ve(),gm=Me().pathExists,{areIdentical:ac}=Ze();function _m(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);gm(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 Sm(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:mm(_m),createLinkSync:Sm}});var pc=g((LS,fc)=>{"use strict";var je=P("path"),Ot=oe(),vm=Me().pathExists;function Em(e,t,r){if(je.isAbsolute(e))return Ot.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 vm(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:e}):Ot.lstat(e,u=>u?(u.message=u.message.replace("lstat","ensureSymlink"),r(u)):r(null,{toCwd:e,toDst:je.relative(n,e)})))}}function wm(e,t){let r;if(je.isAbsolute(e)){if(r=Ot.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=Ot.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Ot.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:je.relative(n,e)}}}fc.exports={symlinkPaths:Em,symlinkPathsSync:wm}});var yc=g((DS,dc)=>{"use strict";var hc=oe();function Cm(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 Rm(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:Cm,symlinkTypeSync:Rm}});var Cc=g((qS,wc)=>{"use strict";var Am=ce().fromCallback,gc=P("path"),Ee=Je(),_c=ve(),xm=_c.mkdirs,bm=_c.mkdirsSync,Sc=pc(),Om=Sc.symlinkPaths,Pm=Sc.symlinkPathsSync,vc=yc(),km=vc.symlinkType,Tm=vc.symlinkTypeSync,Fm=Me().pathExists,{areIdentical:Ec}=Ze();function Lm(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){Om(e,t,(i,s)=>{if(i)return n(i);e=s.toDst,km(s.toCwd,r,(o,u)=>{if(o)return n(o);let c=gc.dirname(t);Fm(c,(m,a)=>{if(m)return n(m);if(a)return Ee.symlink(e,t,u,n);xm(c,f=>{if(f)return n(f);Ee.symlink(e,t,u,n)})})})})}function Dm(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=Pm(e,t);e=i.toDst,r=Tm(i.toCwd,r);let s=gc.dirname(t);return Ee.existsSync(s)||bm(s),Ee.symlinkSync(e,t,r)}wc.exports={createSymlink:Am(Lm),createSymlinkSync:Dm}});var Tc=g(($S,kc)=>{"use strict";var{createFile:Rc,createFileSync:Ac}=sc(),{createLink:xc,createLinkSync:bc}=lc(),{createSymlink:Oc,createSymlinkSync:Pc}=Cc();kc.exports={createFile:Rc,createFileSync:Ac,ensureFile:Rc,ensureFileSync:Ac,createLink:xc,createLinkSync:bc,ensureLink:xc,ensureLinkSync:bc,createSymlink:Oc,createSymlinkSync:Pc,ensureSymlink:Oc,ensureSymlinkSync:Pc}});var Or=g((NS,Fc)=>{function qm(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 $m(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Fc.exports={stringify:qm,stripBom:$m}});var $c=g((IS,qc)=>{var yt;try{yt=oe()}catch{yt=P("fs")}var Pr=ce(),{stringify:Lc,stripBom:Dc}=Or();async function Nm(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||yt,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 Im=Pr.fromPromise(Nm);function Mm(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||yt,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 Hm(e,t,r={}){let n=r.fs||yt,i=Lc(t,r);await Pr.fromCallback(n.writeFile)(e,i,r)}var Bm=Pr.fromPromise(Hm);function jm(e,t,r={}){let n=r.fs||yt,i=Lc(t,r);return n.writeFileSync(e,i,r)}var Gm={readFile:Im,readFileSync:Mm,writeFile:Bm,writeFileSync:jm};qc.exports=Gm});var Ic=g((MS,Nc)=>{"use strict";var kr=$c();Nc.exports={readJson:kr.readFile,readJsonSync:kr.readFileSync,writeJson:kr.writeFile,writeJsonSync:kr.writeFileSync}});var Tr=g((HS,Bc)=>{"use strict";var Wm=ce().fromCallback,Pt=oe(),Mc=P("path"),Hc=ve(),Um=Me().pathExists;function Vm(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Mc.dirname(e);Um(i,(s,o)=>{if(s)return n(s);if(o)return Pt.writeFile(e,t,r,n);Hc.mkdirs(i,u=>{if(u)return n(u);Pt.writeFile(e,t,r,n)})})}function Ym(e,...t){let r=Mc.dirname(e);if(Pt.existsSync(r))return Pt.writeFileSync(e,...t);Hc.mkdirsSync(r),Pt.writeFileSync(e,...t)}Bc.exports={outputFile:Wm(Vm),outputFileSync:Ym}});var Gc=g((BS,jc)=>{"use strict";var{stringify:Km}=Or(),{outputFile:Qm}=Tr();async function Xm(e,t,r={}){let n=Km(t,r);await Qm(e,n,r)}jc.exports=Xm});var Uc=g((jS,Wc)=>{"use strict";var{stringify:Jm}=Or(),{outputFileSync:Zm}=Tr();function zm(e,t,r){let n=Jm(t,r);Zm(e,n,r)}Wc.exports=zm});var Yc=g((GS,Vc)=>{"use strict";var eg=ce().fromPromise,ue=Ic();ue.outputJson=eg(Gc());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((WS,Jc)=>{"use strict";var tg=oe(),Bi=P("path"),rg=Rr().copy,Xc=bt().remove,ng=ve().mkdirp,ig=Me().pathExists,Kc=Ze();function sg(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(og(t))return Qc(e,t,i,c,n);ng(Bi.dirname(t),a=>a?n(a):Qc(e,t,i,c,n))})})}function og(e){let t=Bi.dirname(e);return Bi.parse(t).root===t}function Qc(e,t,r,n,i){if(n)return Hi(e,t,r,i);if(r)return Xc(t,s=>s?i(s):Hi(e,t,r,i));ig(t,(s,o)=>s?i(s):o?i(new Error("dest already exists.")):Hi(e,t,r,i))}function Hi(e,t,r,n){tg.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):ug(e,t,r,n):n())}function ug(e,t,r,n){rg(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):Xc(e,n))}Jc.exports=sg});var nl=g((US,rl)=>{"use strict";var el=oe(),Gi=P("path"),ag=Rr().copySync,tl=bt().removeSync,cg=ve().mkdirpSync,zc=Ze();function lg(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"),fg(t)||cg(Gi.dirname(t)),pg(e,t,n,s)}function fg(e){let t=Gi.dirname(e);return Gi.parse(t).root===t}function pg(e,t,r,n){if(n)return ji(e,t,r);if(r)return tl(t),ji(e,t,r);if(el.existsSync(t))throw new Error("dest already exists.");return ji(e,t,r)}function ji(e,t,r){try{el.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return hg(e,t,r)}}function hg(e,t,r){return ag(e,t,{overwrite:r,errorOnExist:!0}),tl(e)}rl.exports=lg});var sl=g((VS,il)=>{"use strict";var dg=ce().fromCallback;il.exports={move:dg(Zc()),moveSync:nl()}});var ul=g((YS,ol)=>{"use strict";ol.exports=$($($($($($($($($($({},Je()),Rr()),tc()),Tc()),Yc()),ve()),sl()),Tr()),Me()),bt())});import Sg from"fs";import hl from"path";import{exec as vg}from"child_process";import Eg from"yargs";import wg from"open";import Lr from"consola";import{yellow as Cg}from"kolorist";var qt="0.3.10";var is=mt(ns());import{dirname as Kl,resolve as jr}from"path";var Ql=(0,is.default)("valaxy:options");function Xl(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}function Jl(e,t){return e?Xl(e)?jr(Kl(t),e):$r(`valaxy-theme-${e}/package.json`):""}async function Bt(e,t="dev"){let r=jr($r("valaxy/package.json"),"src/client"),n=jr(e.userRoot||process.cwd()),{config:i,configFile:s,theme:o}=await Vi(e),u=Jl(o,n),c={mode:t,clientRoot:r,userRoot:n,themeRoot:u,theme:o,config:i,configFile:s||""};return Ql(c),c}import*as os from"readline";import Zl from"path";import zl from"os";import{blue as ss,bold as Gr,cyan as ef,dim as be,gray as tf,green as us,underline as Wr}from"kolorist";import jt from"consola";var Gt;function Ur(e,t,r){console.log(),console.log(` ${Gr("\u{1F30C} Valaxy")} ${ss(`v${qt}`)}`),console.log(),console.log(`${be(" \u{1FA90} theme ")} > ${e.theme?us(e.theme):tf("none")}`),console.log(` ${be("\u{1F4C1}")} ${be(Zl.resolve(e.userRoot))}`),t&&(console.log(),console.log(`${be(" Preview ")} > ${ef(`http://localhost:${Gr(t)}/`)}`),r&&Object.values(zl.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}:${Gr(t)}/`)}`)})),console.log(),console.log(`${be(" shortcuts ")} > ${Wr("r")}${be("estart | ")}${Wr("o")}${be("pen | ")}${Wr("e")}${be("dit")}`)),console.log()}async function Wt(e,t){Gt&&await Gt.close();try{let r=(await Ui(e.config)).concat(e.config.unocss.safelist||[]);Gt=await Yi(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&&Wt(e,t)}}),await Gt.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 rf}from"vite";import{build as nf}from"vite-ssg/node";import sf from"vite-ssg-sitemap";async function ls(e,t={}){let r=cs(await Nr(e),t);await rf(r)}async function fs(e,t={}){let r=cs(await Nr(e),t);r.ssgOptions={script:"async",formatting:"minify",onFinished(){sf()}},await nf({},r)}var cl=mt(Zu()),Fr=mt(ul()),ll=mt(vl()),fl=mt(Sl());import{dirname as yg}from"path";import{cyan as mg,dim as al}from"kolorist";import{Feed as gg}from"feed";import kt from"consola";var _g=(0,fl.default)({html:!0,breaks:!0,linkify:!0});async function pl(e){let{config:t}=e;if(!t.url){kt.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};kt.info(`RSS Site Url: ${mg(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 kt.warn(`Do you forget to write date for ${al(l)}`),!1;if(y.draft)return kt.warn(`Ignore draft post: ${al(l)}`),!1;let C=_g.render(v||_).replace('src="/',`src="${n}/`);(b=y.image)!=null&&b.startsWith("/")&&(y.image=n+y.image),c.push(Z($({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 gg(o);c.forEach(l=>m.addItem(l)),await Fr.default.ensureDir(yg(`./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"),kt.info(`${l}: ${y}`)})}var Dr=Eg.scriptName("valaxy").usage("$0 [args]").version(qt).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})=>{Sg.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 Wt(o,u),Ur(o,s,n),as([{name:"r",fullName:"restart",action(){Wt(o,u)}},{name:"o",fullName:"open",action(){wg(`http://localhost:${s}`)}},{name:"e",fullName:"edit",action(){vg(`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");Ur(i);let s={base:r,build:{emptyOutDir:!0,outDir:hl.resolve(i.userRoot,n)}};if(e){Lr.info(`use ${Cg("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 fv(){Dr.help().parse()}export{fv 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
  *