@shopify/create-hydrogen 5.0.13 → 5.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/hydrogen/starter/CHANGELOG.md +93 -0
- package/dist/assets/hydrogen/starter/app/root.tsx +12 -2
- package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +1 -0
- package/dist/assets/hydrogen/starter/package.json +10 -10
- package/dist/assets/hydrogen/starter/tsconfig.json +1 -1
- package/dist/assets/hydrogen/starter/vite.config.ts +1 -0
- package/dist/assets/hydrogen/tailwind/package.json +1 -1
- package/dist/assets/hydrogen/tailwind/tailwind.css +1 -1
- package/dist/assets/hydrogen/vite/package.json +1 -1
- package/dist/assets/hydrogen/vite/vite.config.js +1 -0
- package/dist/chunk-2RCBZ7OV.js +10 -0
- package/dist/{chunk-C2DNSDMB.js → chunk-3657J2ZN.js} +1 -1
- package/dist/{chunk-SLVYPPXU.js → chunk-QOJXU774.js} +462 -1041
- package/dist/create-app.js +1116 -542
- package/dist/{del-EAAITCBR.js → del-KPQQ4LCD.js} +1 -1
- package/dist/{error-handler-IG42X6FN.js → error-handler-GXLCBIP5.js} +1 -1
- package/dist/{morph-ZB67FQMB.js → morph-WDWHW3T4.js} +1 -1
- package/dist/{out-6ZX43IS6.js → out-E5GFW6SH.js} +1 -1
- package/package.json +6 -1
- package/dist/chunk-7NPI5OH3.js +0 -10
|
@@ -1,5 +1,98 @@
|
|
|
1
1
|
# skeleton
|
|
2
2
|
|
|
3
|
+
## 2025.1.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Bump vite, Remix versions and tailwind v4 alpha to beta ([#2696](https://github.com/Shopify/hydrogen/pull/2696)) by [@wizardlyhel](https://github.com/wizardlyhel)
|
|
8
|
+
|
|
9
|
+
- Workaround for "Error: failed to execute 'insertBefore' on 'Node'" that sometimes happen during development. ([#2701](https://github.com/Shopify/hydrogen/pull/2701)) by [@wizardlyhel](https://github.com/wizardlyhel)
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
// root.tsx
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The main and reset stylesheets are added in the Layout component
|
|
16
|
+
* to prevent a bug in development HMR updates.
|
|
17
|
+
*
|
|
18
|
+
* This avoids the "failed to execute 'insertBefore' on 'Node'" error
|
|
19
|
+
* that occurs after editing and navigating to another page.
|
|
20
|
+
*
|
|
21
|
+
* It's a temporary fix until the issue is resolved.
|
|
22
|
+
* https://github.com/remix-run/remix/issues/9242
|
|
23
|
+
*/
|
|
24
|
+
export function links() {
|
|
25
|
+
return [
|
|
26
|
+
- {rel: 'stylesheet', href: resetStyles},
|
|
27
|
+
- {rel: 'stylesheet', href: appStyles},
|
|
28
|
+
{
|
|
29
|
+
rel: 'preconnect',
|
|
30
|
+
href: 'https://cdn.shopify.com',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
rel: 'preconnect',
|
|
34
|
+
href: 'https://shop.app',
|
|
35
|
+
},
|
|
36
|
+
{rel: 'icon', type: 'image/svg+xml', href: favicon},
|
|
37
|
+
];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
...
|
|
41
|
+
|
|
42
|
+
export function Layout({children}: {children?: React.ReactNode}) {
|
|
43
|
+
const nonce = useNonce();
|
|
44
|
+
const data = useRouteLoaderData<RootLoader>('root');
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<html lang="en">
|
|
48
|
+
<head>
|
|
49
|
+
<meta charSet="utf-8" />
|
|
50
|
+
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
51
|
+
+ <link rel="stylesheet" href={resetStyles}></link>
|
|
52
|
+
+ <link rel="stylesheet" href={appStyles}></link>
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
- Turn on future flag `v3_lazyRouteDiscovery` ([#2702](https://github.com/Shopify/hydrogen/pull/2702)) by [@wizardlyhel](https://github.com/wizardlyhel)
|
|
57
|
+
|
|
58
|
+
In your vite.config.ts, add the following line:
|
|
59
|
+
|
|
60
|
+
```diff
|
|
61
|
+
export default defineConfig({
|
|
62
|
+
plugins: [
|
|
63
|
+
hydrogen(),
|
|
64
|
+
oxygen(),
|
|
65
|
+
remix({
|
|
66
|
+
presets: [hydrogen.preset()],
|
|
67
|
+
future: {
|
|
68
|
+
v3_fetcherPersist: true,
|
|
69
|
+
v3_relativeSplatPath: true,
|
|
70
|
+
v3_throwAbortReason: true,
|
|
71
|
+
+ v3_lazyRouteDiscovery: true,
|
|
72
|
+
},
|
|
73
|
+
}),
|
|
74
|
+
tsconfigPaths(),
|
|
75
|
+
],
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Test your app by running `npm run dev` and nothing should break
|
|
79
|
+
|
|
80
|
+
- Fix image size warnings on collections page ([#2703](https://github.com/Shopify/hydrogen/pull/2703)) by [@wizardlyhel](https://github.com/wizardlyhel)
|
|
81
|
+
|
|
82
|
+
- Bump cli version ([#2732](https://github.com/Shopify/hydrogen/pull/2732)) by [@wizardlyhel](https://github.com/wizardlyhel)
|
|
83
|
+
|
|
84
|
+
- Bump SFAPI to 2025-01 ([#2715](https://github.com/Shopify/hydrogen/pull/2715)) by [@rbshop](https://github.com/rbshop)
|
|
85
|
+
|
|
86
|
+
- Updated dependencies [[`fdab06f5`](https://github.com/Shopify/hydrogen/commit/fdab06f5d34076b526d406698bdf6fca6787660b), [`ae6d71f0`](https://github.com/Shopify/hydrogen/commit/ae6d71f0976f520ca177c69ff677f852af63859e), [`650d57b3`](https://github.com/Shopify/hydrogen/commit/650d57b3e07125661e23900e73c0bb3027ddbcde), [`064de138`](https://github.com/Shopify/hydrogen/commit/064de13890c68cabb1c3fdbe7f77409a0cf1c384)]:
|
|
87
|
+
- @shopify/remix-oxygen@2.0.10
|
|
88
|
+
- @shopify/hydrogen@2025.1.0
|
|
89
|
+
|
|
90
|
+
## 2024.10.4
|
|
91
|
+
|
|
92
|
+
### Patch Changes
|
|
93
|
+
|
|
94
|
+
- Bump cli version ([#2694](https://github.com/Shopify/hydrogen/pull/2694)) by [@wizardlyhel](https://github.com/wizardlyhel)
|
|
95
|
+
|
|
3
96
|
## 2024.10.3
|
|
4
97
|
|
|
5
98
|
### Patch Changes
|
|
@@ -37,10 +37,18 @@ export const shouldRevalidate: ShouldRevalidateFunction = ({
|
|
|
37
37
|
return defaultShouldRevalidate;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* The main and reset stylesheets are added in the Layout component
|
|
42
|
+
* to prevent a bug in development HMR updates.
|
|
43
|
+
*
|
|
44
|
+
* This avoids the "failed to execute 'insertBefore' on 'Node'" error
|
|
45
|
+
* that occurs after editing and navigating to another page.
|
|
46
|
+
*
|
|
47
|
+
* It's a temporary fix until the issue is resolved.
|
|
48
|
+
* https://github.com/remix-run/remix/issues/9242
|
|
49
|
+
*/
|
|
40
50
|
export function links() {
|
|
41
51
|
return [
|
|
42
|
-
{rel: 'stylesheet', href: resetStyles},
|
|
43
|
-
{rel: 'stylesheet', href: appStyles},
|
|
44
52
|
{
|
|
45
53
|
rel: 'preconnect',
|
|
46
54
|
href: 'https://cdn.shopify.com',
|
|
@@ -138,6 +146,8 @@ export function Layout({children}: {children?: React.ReactNode}) {
|
|
|
138
146
|
<head>
|
|
139
147
|
<meta charSet="utf-8" />
|
|
140
148
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
149
|
+
<link rel="stylesheet" href={resetStyles}></link>
|
|
150
|
+
<link rel="stylesheet" href={appStyles}></link>
|
|
141
151
|
<Meta />
|
|
142
152
|
<Links />
|
|
143
153
|
</head>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "skeleton",
|
|
3
3
|
"private": true,
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "2025.1.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "shopify hydrogen build --codegen",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
},
|
|
15
15
|
"prettier": "@shopify/prettier-config",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@remix-run/react": "^2.
|
|
18
|
-
"@remix-run/server-runtime": "^2.
|
|
19
|
-
"@shopify/hydrogen": "
|
|
20
|
-
"@shopify/remix-oxygen": "^2.0.
|
|
17
|
+
"@remix-run/react": "^2.15.2",
|
|
18
|
+
"@remix-run/server-runtime": "^2.15.2",
|
|
19
|
+
"@shopify/hydrogen": "2025.1.0",
|
|
20
|
+
"@shopify/remix-oxygen": "^2.0.10",
|
|
21
21
|
"graphql": "^16.6.0",
|
|
22
22
|
"graphql-tag": "^2.12.6",
|
|
23
23
|
"isbot": "^3.8.0",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@graphql-codegen/cli": "5.0.2",
|
|
29
|
-
"@remix-run/dev": "^2.
|
|
30
|
-
"@remix-run/eslint-config": "^2.
|
|
31
|
-
"@shopify/cli": "~3.
|
|
29
|
+
"@remix-run/dev": "^2.15.2",
|
|
30
|
+
"@remix-run/eslint-config": "^2.15.2",
|
|
31
|
+
"@shopify/cli": "~3.74.1",
|
|
32
32
|
"@shopify/hydrogen-codegen": "^0.3.2",
|
|
33
|
-
"@shopify/mini-oxygen": "^3.1.
|
|
33
|
+
"@shopify/mini-oxygen": "^3.1.1",
|
|
34
34
|
"@shopify/oxygen-workers-types": "^4.1.2",
|
|
35
35
|
"@shopify/prettier-config": "^1.1.2",
|
|
36
36
|
"@total-typescript/ts-reset": "^0.4.2",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"eslint-plugin-hydrogen": "0.12.2",
|
|
42
42
|
"prettier": "^2.8.4",
|
|
43
43
|
"typescript": "^5.2.2",
|
|
44
|
-
"vite": "^5.1.
|
|
44
|
+
"vite": "^5.1.8",
|
|
45
45
|
"vite-tsconfig-paths": "^4.3.1"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
2
|
+
import{b as wn,c as Tn,d as kn,e as On}from"./chunk-RH6HNOXT.js";import{a as v,c,i as o}from"./chunk-MNT4XW23.js";var Wt=c(Y=>{"use strict";o();Object.defineProperty(Y,"__esModule",{value:!0});Y.splitWhen=Y.flatten=void 0;function Dn(t){return t.reduce((e,r)=>[].concat(e,r),[])}Y.flatten=Dn;function Mn(t,e){let r=[[]],n=0;for(let s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}Y.splitWhen=Mn});var Vt=c(K=>{"use strict";o();Object.defineProperty(K,"__esModule",{value:!0});K.isEnoentCodeError=void 0;function qn(t){return t.code==="ENOENT"}K.isEnoentCodeError=qn});var Ct=c(z=>{"use strict";o();Object.defineProperty(z,"__esModule",{value:!0});z.createDirentFromStats=void 0;var Se=class{constructor(e,r){this.name=e,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 An(t,e){return new Se(t,e)}z.createDirentFromStats=An});var Gt=c(P=>{"use strict";o();Object.defineProperty(P,"__esModule",{value:!0});P.convertPosixPathToPattern=P.convertWindowsPathToPattern=P.convertPathToPattern=P.escapePosixPath=P.escapeWindowsPath=P.escape=P.removeLeadingDotSegment=P.makeAbsolute=P.unixify=void 0;var Fn=v("os"),Rn=v("path"),Yt=Fn.platform()==="win32",Ln=2,xn=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,jn=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,In=/^\\\\([.?])/,Bn=/\\(?![!()+@[\]{}])/g;function Nn(t){return t.replace(/\\/g,"/")}P.unixify=Nn;function Wn(t,e){return Rn.resolve(t,e)}P.makeAbsolute=Wn;function Vn(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Ln)}return t}P.removeLeadingDotSegment=Vn;P.escape=Yt?Pe:ve;function Pe(t){return t.replace(jn,"\\$2")}P.escapeWindowsPath=Pe;function ve(t){return t.replace(xn,"\\$2")}P.escapePosixPath=ve;P.convertPathToPattern=Yt?Ut:Ht;function Ut(t){return Pe(t).replace(In,"//$1").replace(Bn,"/")}P.convertWindowsPathToPattern=Ut;function Ht(t){return ve(t)}P.convertPosixPathToPattern=Ht});var zt=c((So,Kt)=>{"use strict";o();var $t=v("util"),Xt=Tn(),q=On(),Ee=kn(),Qt=t=>t===""||t==="./",Jt=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},m=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,s=new Set,i=new Set,a=0,d=u=>{i.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let _=q(String(e[u]),{...r,onResult:d},!0),p=_.state.negated||_.state.negatedExtglob;p&&a++;for(let R of t){let g=_(R,!0);(p?!g.isMatch:g.isMatch)&&(p?n.add(g.output):(n.delete(g.output),s.add(g.output)))}}let f=(a===e.length?[...i]:[...s]).filter(u=>!n.has(u));if(r&&f.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return f};m.match=m;m.matcher=(t,e)=>q(t,e);m.isMatch=(t,e,r)=>q(e,r)(t);m.any=m.isMatch;m.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,s=[],i=d=>{r.onResult&&r.onResult(d),s.push(d.output)},a=new Set(m(t,e,{...r,onResult:i}));for(let d of s)a.has(d)||n.add(d);return[...n]};m.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${$t.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>m.contains(t,n,r));if(typeof e=="string"){if(Qt(t)||Qt(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return m.isMatch(t,e,{...r,contains:!0})};m.matchKeys=(t,e,r)=>{if(!Ee.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=m(Object.keys(t),e,r),s={};for(let i of n)s[i]=t[i];return s};m.some=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(n.some(a=>i(a)))return!0}return!1};m.every=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(!n.every(a=>i(a)))return!1}return!0};m.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${$t.inspect(t)}"`);return[].concat(e).every(n=>q(n,r)(t))};m.capture=(t,e,r)=>{let n=Ee.isWindows(r),i=q.makeRe(String(t),{...r,capture:!0}).exec(n?Ee.toPosixSlashes(e):e);if(i)return i.slice(1).map(a=>a===void 0?"":a)};m.makeRe=(...t)=>q.makeRe(...t);m.scan=(...t)=>q.scan(...t);m.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let s of Xt(String(n),e))r.push(q.parse(s,e));return r};m.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!Jt(t)?[t]:Xt(t,e)};m.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return m.braces(t,{...e,expand:!0})};m.hasBraces=Jt;Kt.exports=m});var ur=c(l=>{"use strict";o();Object.defineProperty(l,"__esModule",{value:!0});l.isAbsolute=l.partitionAbsoluteAndRelative=l.removeDuplicateSlashes=l.matchAny=l.convertPatternsToRe=l.makeRe=l.getPatternParts=l.expandBraceExpansion=l.expandPatternsWithBraceExpansion=l.isAffectDepthOfReadingPattern=l.endsWithSlashGlobStar=l.hasGlobStar=l.getBaseDirectory=l.isPatternRelatedToParentDirectory=l.getPatternsOutsideCurrentDirectory=l.getPatternsInsideCurrentDirectory=l.getPositivePatterns=l.getNegativePatterns=l.isPositivePattern=l.isNegativePattern=l.convertToNegativePattern=l.convertToPositivePattern=l.isDynamicPattern=l.isStaticPattern=void 0;var Zt=v("path"),Cn=wn(),be=zt(),er="**",Yn="\\",Un=/[*?]|^!/,Hn=/\[[^[]*]/,Gn=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Qn=/[!*+?@]\([^(]*\)/,$n=/,|\.\./,Xn=/(?!^)\/{2,}/g;function tr(t,e={}){return!rr(t,e)}l.isStaticPattern=tr;function rr(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(Yn)||Un.test(t)||Hn.test(t)||Gn.test(t)||e.extglob!==!1&&Qn.test(t)||e.braceExpansion!==!1&&Jn(t))}l.isDynamicPattern=rr;function Jn(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return $n.test(n)}function Kn(t){return Z(t)?t.slice(1):t}l.convertToPositivePattern=Kn;function zn(t){return"!"+t}l.convertToNegativePattern=zn;function Z(t){return t.startsWith("!")&&t[1]!=="("}l.isNegativePattern=Z;function nr(t){return!Z(t)}l.isPositivePattern=nr;function Zn(t){return t.filter(Z)}l.getNegativePatterns=Zn;function es(t){return t.filter(nr)}l.getPositivePatterns=es;function ts(t){return t.filter(e=>!we(e))}l.getPatternsInsideCurrentDirectory=ts;function rs(t){return t.filter(we)}l.getPatternsOutsideCurrentDirectory=rs;function we(t){return t.startsWith("..")||t.startsWith("./..")}l.isPatternRelatedToParentDirectory=we;function ns(t){return Cn(t,{flipBackslashes:!1})}l.getBaseDirectory=ns;function ss(t){return t.includes(er)}l.hasGlobStar=ss;function sr(t){return t.endsWith("/"+er)}l.endsWithSlashGlobStar=sr;function is(t){let e=Zt.basename(t);return sr(t)||tr(e)}l.isAffectDepthOfReadingPattern=is;function os(t){return t.reduce((e,r)=>e.concat(ir(r)),[])}l.expandPatternsWithBraceExpansion=os;function ir(t){let e=be.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((r,n)=>r.length-n.length),e.filter(r=>r!=="")}l.expandBraceExpansion=ir;function as(t,e){let{parts:r}=be.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}l.getPatternParts=as;function or(t,e){return be.makeRe(t,e)}l.makeRe=or;function us(t,e){return t.map(r=>or(r,e))}l.convertPatternsToRe=us;function cs(t,e){return e.some(r=>r.test(t))}l.matchAny=cs;function ls(t){return t.replace(Xn,"/")}l.removeDuplicateSlashes=ls;function hs(t){let e=[],r=[];for(let n of t)ar(n)?e.push(n):r.push(n);return[e,r]}l.partitionAbsoluteAndRelative=hs;function ar(t){return Zt.isAbsolute(t)}l.isAbsolute=ar});var fr=c((bo,hr)=>{"use strict";o();var fs=v("stream"),cr=fs.PassThrough,ds=Array.prototype.slice;hr.exports=_s;function _s(){let t=[],e=ds.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let s=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=cr(n);function d(){for(let u=0,_=arguments.length;u<_;u++)t.push(lr(arguments[u],n));return h(),this}function h(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(f);return}Array.isArray(u)||(u=[u]);let _=u.length+1;function p(){--_>0||(r=!1,h())}function R(g){function O(){g.removeListener("merge2UnpipeEnd",O),g.removeListener("end",O),i&&g.removeListener("error",J),p()}function J($){a.emit("error",$)}if(g._readableState.endEmitted)return p();g.on("merge2UnpipeEnd",O),g.on("end",O),i&&g.on("error",J),g.pipe(a,{end:!1}),g.resume()}for(let g=0;g<u.length;g++)R(u[g]);p()}function f(){r=!1,a.emit("queueDrain"),s&&a.end()}return a.setMaxListeners(0),a.add=d,a.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&d.apply(null,e),a}function lr(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=lr(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(cr(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var _r=c(ee=>{"use strict";o();Object.defineProperty(ee,"__esModule",{value:!0});ee.merge=void 0;var ps=fr();function gs(t){let e=ps(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>dr(t)),e.once("end",()=>dr(t)),e}ee.merge=gs;function dr(t){t.forEach(e=>e.emit("close"))}});var pr=c(U=>{"use strict";o();Object.defineProperty(U,"__esModule",{value:!0});U.isEmpty=U.isString=void 0;function ms(t){return typeof t=="string"}U.isString=ms;function ys(t){return t===""}U.isEmpty=ys});var L=c(E=>{"use strict";o();Object.defineProperty(E,"__esModule",{value:!0});E.string=E.stream=E.pattern=E.path=E.fs=E.errno=E.array=void 0;var Ss=Wt();E.array=Ss;var Ps=Vt();E.errno=Ps;var vs=Ct();E.fs=vs;var Es=Gt();E.path=Es;var bs=ur();E.pattern=bs;var ws=_r();E.stream=ws;var Ts=pr();E.string=Ts});var Sr=c(b=>{"use strict";o();Object.defineProperty(b,"__esModule",{value:!0});b.convertPatternGroupToTask=b.convertPatternGroupsToTasks=b.groupPatternsByBaseDirectory=b.getNegativePatternsAsPositive=b.getPositivePatterns=b.convertPatternsToTasks=b.generate=void 0;var D=L();function ks(t,e){let r=gr(t,e),n=gr(e.ignore,e),s=mr(r),i=yr(r,n),a=s.filter(u=>D.pattern.isStaticPattern(u,e)),d=s.filter(u=>D.pattern.isDynamicPattern(u,e)),h=Te(a,i,!1),f=Te(d,i,!0);return h.concat(f)}b.generate=ks;function gr(t,e){let r=t;return e.braceExpansion&&(r=D.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>D.pattern.removeDuplicateSlashes(n))}function Te(t,e,r){let n=[],s=D.pattern.getPatternsOutsideCurrentDirectory(t),i=D.pattern.getPatternsInsideCurrentDirectory(t),a=ke(s),d=ke(i);return n.push(...Oe(a,e,r)),"."in d?n.push(De(".",i,e,r)):n.push(...Oe(d,e,r)),n}b.convertPatternsToTasks=Te;function mr(t){return D.pattern.getPositivePatterns(t)}b.getPositivePatterns=mr;function yr(t,e){return D.pattern.getNegativePatterns(t).concat(e).map(D.pattern.convertToPositivePattern)}b.getNegativePatternsAsPositive=yr;function ke(t){let e={};return t.reduce((r,n)=>{let s=D.pattern.getBaseDirectory(n);return s in r?r[s].push(n):r[s]=[n],r},e)}b.groupPatternsByBaseDirectory=ke;function Oe(t,e,r){return Object.keys(t).map(n=>De(n,t[n],e,r))}b.convertPatternGroupsToTasks=Oe;function De(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(D.pattern.convertToNegativePattern))}}b.convertPatternGroupToTask=De});var vr=c(te=>{"use strict";o();Object.defineProperty(te,"__esModule",{value:!0});te.read=void 0;function Os(t,e,r){e.fs.lstat(t,(n,s)=>{if(n!==null){Pr(r,n);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){Me(r,s);return}e.fs.stat(t,(i,a)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){Pr(r,i);return}Me(r,s);return}e.markSymbolicLink&&(a.isSymbolicLink=()=>!0),Me(r,a)})})}te.read=Os;function Pr(t,e){t(e)}function Me(t,e){t(null,e)}});var Er=c(re=>{"use strict";o();Object.defineProperty(re,"__esModule",{value:!0});re.read=void 0;function Ds(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}re.read=Ds});var br=c(x=>{"use strict";o();Object.defineProperty(x,"__esModule",{value:!0});x.createFileSystemAdapter=x.FILE_SYSTEM_ADAPTER=void 0;var ne=v("fs");x.FILE_SYSTEM_ADAPTER={lstat:ne.lstat,stat:ne.stat,lstatSync:ne.lstatSync,statSync:ne.statSync};function Ms(t){return t===void 0?x.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},x.FILE_SYSTEM_ADAPTER),t)}x.createFileSystemAdapter=Ms});var wr=c(Ae=>{"use strict";o();Object.defineProperty(Ae,"__esModule",{value:!0});var qs=br(),qe=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=qs.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};Ae.default=qe});var C=c(j=>{"use strict";o();Object.defineProperty(j,"__esModule",{value:!0});j.statSync=j.stat=j.Settings=void 0;var Tr=vr(),As=Er(),Fe=wr();j.Settings=Fe.default;function Fs(t,e,r){if(typeof e=="function"){Tr.read(t,Re(),e);return}Tr.read(t,Re(e),r)}j.stat=Fs;function Rs(t,e){let r=Re(e);return As.read(t,r)}j.statSync=Rs;function Re(t={}){return t instanceof Fe.default?t:new Fe.default(t)}});var Dr=c((Yo,Or)=>{"use strict";o();var kr;Or.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(kr||(kr=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var qr=c((Ho,Mr)=>{"use strict";o();Mr.exports=xs;var Ls=Dr();function xs(t,e){let r,n,s,i=!0;Array.isArray(t)?(r=[],n=t.length):(s=Object.keys(t),r={},n=s.length);function a(h){function f(){e&&e(h,r),e=null}i?Ls(f):f()}function d(h,f,u){r[h]=u,(--n===0||f)&&a(f)}n?s?s.forEach(function(h){t[h](function(f,u){d(h,f,u)})}):t.forEach(function(h,f){h(function(u,_){d(f,u,_)})}):a(null),i=!1}});var Le=c(ie=>{"use strict";o();Object.defineProperty(ie,"__esModule",{value:!0});ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var se=process.versions.node.split(".");if(se[0]===void 0||se[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Ar=Number.parseInt(se[0],10),js=Number.parseInt(se[1],10),Fr=10,Is=10,Bs=Ar>Fr,Ns=Ar===Fr&&js>=Is;ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Bs||Ns});var Rr=c(oe=>{"use strict";o();Object.defineProperty(oe,"__esModule",{value:!0});oe.createDirentFromStats=void 0;var xe=class{constructor(e,r){this.name=e,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 Ws(t,e){return new xe(t,e)}oe.createDirentFromStats=Ws});var je=c(ae=>{"use strict";o();Object.defineProperty(ae,"__esModule",{value:!0});ae.fs=void 0;var Vs=Rr();ae.fs=Vs});var Ie=c(ue=>{"use strict";o();Object.defineProperty(ue,"__esModule",{value:!0});ue.joinPathSegments=void 0;function Cs(t,e,r){return t.endsWith(r)?t+e:t+r+e}ue.joinPathSegments=Cs});var Nr=c(I=>{"use strict";o();Object.defineProperty(I,"__esModule",{value:!0});I.readdir=I.readdirWithFileTypes=I.read=void 0;var Ys=C(),Lr=qr(),Us=Le(),xr=je(),jr=Ie();function Hs(t,e,r){if(!e.stats&&Us.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ir(t,e,r);return}Br(t,e,r)}I.read=Hs;function Ir(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(d=>({dirent:d,name:d.name,path:jr.joinPathSegments(t,d.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Be(r,i);return}let a=i.map(d=>Gs(d,e));Lr(a,(d,h)=>{if(d!==null){ce(r,d);return}Be(r,h)})})}I.readdirWithFileTypes=Ir;function Gs(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,s)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=xr.fs.createDirentFromStats(t.name,s),r(null,t)})}}function Br(t,e,r){e.fs.readdir(t,(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(a=>{let d=jr.joinPathSegments(t,a,e.pathSegmentSeparator);return h=>{Ys.stat(d,e.fsStatSettings,(f,u)=>{if(f!==null){h(f);return}let _={name:a,path:d,dirent:xr.fs.createDirentFromStats(a,u)};e.stats&&(_.stats=u),h(null,_)})}});Lr(i,(a,d)=>{if(a!==null){ce(r,a);return}Be(r,d)})})}I.readdir=Br;function ce(t,e){t(e)}function Be(t,e){t(null,e)}});var Ur=c(B=>{"use strict";o();Object.defineProperty(B,"__esModule",{value:!0});B.readdir=B.readdirWithFileTypes=B.read=void 0;var Qs=C(),$s=Le(),Wr=je(),Vr=Ie();function Xs(t,e){return!e.stats&&$s.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Cr(t,e):Yr(t,e)}B.read=Xs;function Cr(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let s={dirent:n,name:n.name,path:Vr.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let i=e.fs.statSync(s.path);s.dirent=Wr.fs.createDirentFromStats(s.name,i)}catch(i){if(e.throwErrorOnBrokenSymbolicLink)throw i}return s})}B.readdirWithFileTypes=Cr;function Yr(t,e){return e.fs.readdirSync(t).map(n=>{let s=Vr.joinPathSegments(t,n,e.pathSegmentSeparator),i=Qs.statSync(s,e.fsStatSettings),a={name:n,path:s,dirent:Wr.fs.createDirentFromStats(n,i)};return e.stats&&(a.stats=i),a})}B.readdir=Yr});var Hr=c(N=>{"use strict";o();Object.defineProperty(N,"__esModule",{value:!0});N.createFileSystemAdapter=N.FILE_SYSTEM_ADAPTER=void 0;var H=v("fs");N.FILE_SYSTEM_ADAPTER={lstat:H.lstat,stat:H.stat,lstatSync:H.lstatSync,statSync:H.statSync,readdir:H.readdir,readdirSync:H.readdirSync};function Js(t){return t===void 0?N.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},N.FILE_SYSTEM_ADAPTER),t)}N.createFileSystemAdapter=Js});var Gr=c(We=>{"use strict";o();Object.defineProperty(We,"__esModule",{value:!0});var Ks=v("path"),zs=C(),Zs=Hr(),Ne=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Zs.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Ks.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new zs.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};We.default=Ne});var le=c(W=>{"use strict";o();Object.defineProperty(W,"__esModule",{value:!0});W.Settings=W.scandirSync=W.scandir=void 0;var Qr=Nr(),ei=Ur(),Ve=Gr();W.Settings=Ve.default;function ti(t,e,r){if(typeof e=="function"){Qr.read(t,Ce(),e);return}Qr.read(t,Ce(e),r)}W.scandir=ti;function ri(t,e){let r=Ce(e);return ei.read(t,r)}W.scandirSync=ri;function Ce(t={}){return t instanceof Ve.default?t:new Ve.default(t)}});var Xr=c((ha,$r)=>{"use strict";o();function ni(t){var e=new t,r=e;function n(){var i=e;return i.next?e=i.next:(e=new t,r=e),i.next=null,i}function s(i){r.next=i,r=i}return{get:n,release:s}}$r.exports=ni});var Kr=c((da,Ye)=>{"use strict";o();var si=Xr();function Jr(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=si(ii),s=null,i=null,a=0,d=null,h={push:O,drain:T,saturated:T,pause:u,paused:!1,concurrency:r,running:f,resume:R,idle:g,length:_,getQueue:p,unshift:J,empty:T,kill:vn,killAndDrain:En,error:bn};return h;function f(){return a}function u(){h.paused=!0}function _(){for(var S=s,w=0;S;)S=S.next,w++;return w}function p(){for(var S=s,w=[];S;)w.push(S.value),S=S.next;return w}function R(){if(h.paused){h.paused=!1;for(var S=0;S<h.concurrency;S++)a++,$()}}function g(){return a===0&&h.length()===0}function O(S,w){var y=n.get();y.context=t,y.release=$,y.value=S,y.callback=w||T,y.errorHandler=d,a===h.concurrency||h.paused?i?(i.next=y,i=y):(s=y,i=y,h.saturated()):(a++,e.call(t,y.value,y.worked))}function J(S,w){var y=n.get();y.context=t,y.release=$,y.value=S,y.callback=w||T,a===h.concurrency||h.paused?s?(y.next=s,s=y):(s=y,i=y,h.saturated()):(a++,e.call(t,y.value,y.worked))}function $(S){S&&n.release(S);var w=s;w?h.paused?a--:(i===s&&(i=null),s=w.next,w.next=null,e.call(t,w.value,w.worked),i===null&&h.empty()):--a===0&&h.drain()}function vn(){s=null,i=null,h.drain=T}function En(){s=null,i=null,h.drain(),h.drain=T}function bn(S){d=S}}function T(){}function ii(){this.value=null,this.callback=T,this.next=null,this.release=T,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var s=t.callback,i=t.errorHandler,a=t.value;t.value=null,t.callback=T,t.errorHandler&&i(r,a),s.call(t.context,r,n),t.release(t)}}function oi(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(u,_){e.call(this,u).then(function(p){_(null,p)},_)}var s=Jr(t,n,r),i=s.push,a=s.unshift;return s.push=d,s.unshift=h,s.drained=f,s;function d(u){var _=new Promise(function(p,R){i(u,function(g,O){if(g){R(g);return}p(O)})});return _.catch(T),_}function h(u){var _=new Promise(function(p,R){a(u,function(g,O){if(g){R(g);return}p(O)})});return _.catch(T),_}function f(){var u=s.drain,_=new Promise(function(p){s.drain=function(){u(),p()}});return _}}Ye.exports=Jr;Ye.exports.promise=oi});var he=c(A=>{"use strict";o();Object.defineProperty(A,"__esModule",{value:!0});A.joinPathSegments=A.replacePathSegmentSeparator=A.isAppliedFilter=A.isFatalError=void 0;function ai(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}A.isFatalError=ai;function ui(t,e){return t===null||t(e)}A.isAppliedFilter=ui;function ci(t,e){return t.split(/[/\\]/).join(e)}A.replacePathSegmentSeparator=ci;function li(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}A.joinPathSegments=li});var Ge=c(He=>{"use strict";o();Object.defineProperty(He,"__esModule",{value:!0});var hi=he(),Ue=class{constructor(e,r){this._root=e,this._settings=r,this._root=hi.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};He.default=Ue});var Xe=c($e=>{"use strict";o();Object.defineProperty($e,"__esModule",{value:!0});var fi=v("events"),di=le(),_i=Kr(),fe=he(),pi=Ge(),Qe=class extends pi.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=di.scandir,this._emitter=new fi.EventEmitter,this._queue=_i(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(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,s=>{s!==null&&this._handleError(s)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,s)=>{if(n!==null){r(n,void 0);return}for(let i of s)this._handleEntry(i,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!fe.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=fe.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),fe.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&fe.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};$e.default=Qe});var zr=c(Ke=>{"use strict";o();Object.defineProperty(Ke,"__esModule",{value:!0});var gi=Xe(),Je=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new gi.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{mi(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{yi(e,this._storage)}),this._reader.read()}};Ke.default=Je;function mi(t,e){t(e)}function yi(t,e){t(null,e)}});var Zr=c(Ze=>{"use strict";o();Object.defineProperty(Ze,"__esModule",{value:!0});var Si=v("stream"),Pi=Xe(),ze=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Pi.default(this._root,this._settings),this._stream=new Si.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ze.default=ze});var en=c(tt=>{"use strict";o();Object.defineProperty(tt,"__esModule",{value:!0});var vi=le(),de=he(),Ei=Ge(),et=class extends Ei.default{constructor(){super(...arguments),this._scandir=vi.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let s of n)this._handleEntry(s,r)}catch(n){this._handleError(n)}}_handleError(e){if(de.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=de.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),de.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&de.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};tt.default=et});var tn=c(nt=>{"use strict";o();Object.defineProperty(nt,"__esModule",{value:!0});var bi=en(),rt=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new bi.default(this._root,this._settings)}read(){return this._reader.read()}};nt.default=rt});var rn=c(it=>{"use strict";o();Object.defineProperty(it,"__esModule",{value:!0});var wi=v("path"),Ti=le(),st=class{constructor(e={}){this._options=e,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,wi.sep),this.fsScandirSettings=new Ti.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};it.default=st});var pe=c(F=>{"use strict";o();Object.defineProperty(F,"__esModule",{value:!0});F.Settings=F.walkStream=F.walkSync=F.walk=void 0;var nn=zr(),ki=Zr(),Oi=tn(),ot=rn();F.Settings=ot.default;function Di(t,e,r){if(typeof e=="function"){new nn.default(t,_e()).read(e);return}new nn.default(t,_e(e)).read(r)}F.walk=Di;function Mi(t,e){let r=_e(e);return new Oi.default(t,r).read()}F.walkSync=Mi;function qi(t,e){let r=_e(e);return new ki.default(t,r).read()}F.walkStream=qi;function _e(t={}){return t instanceof ot.default?t:new ot.default(t)}});var ge=c(ut=>{"use strict";o();Object.defineProperty(ut,"__esModule",{value:!0});var Ai=v("path"),Fi=C(),sn=L(),at=class{constructor(e){this._settings=e,this._fsStatSettings=new Fi.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Ai.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:sn.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!sn.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ut.default=at});var ht=c(lt=>{"use strict";o();Object.defineProperty(lt,"__esModule",{value:!0});var Ri=v("stream"),Li=C(),xi=pe(),ji=ge(),ct=class extends ji.default{constructor(){super(...arguments),this._walkStream=xi.walkStream,this._stat=Li.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),s=new Ri.PassThrough({objectMode:!0});s._write=(i,a,d)=>this._getEntry(n[i],e[i],r).then(h=>{h!==null&&r.entryFilter(h)&&s.push(h),i===n.length-1&&s.end(),d()}).catch(d);for(let i=0;i<n.length;i++)s.write(i);return s}_getEntry(e,r,n){return this._getStat(e).then(s=>this._makeEntry(s,r)).catch(s=>{if(n.errorFilter(s))return null;throw s})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(s,i)=>s===null?r(i):n(s))})}};lt.default=ct});var on=c(dt=>{"use strict";o();Object.defineProperty(dt,"__esModule",{value:!0});var Ii=pe(),Bi=ge(),Ni=ht(),ft=class extends Bi.default{constructor(){super(...arguments),this._walkAsync=Ii.walk,this._readerStream=new Ni.default(this._settings)}dynamic(e,r){return new Promise((n,s)=>{this._walkAsync(e,r,(i,a)=>{i===null?n(a):s(i)})})}async static(e,r){let n=[],s=this._readerStream.static(e,r);return new Promise((i,a)=>{s.once("error",a),s.on("data",d=>n.push(d)),s.once("end",()=>i(n))})}};dt.default=ft});var an=c(pt=>{"use strict";o();Object.defineProperty(pt,"__esModule",{value:!0});var X=L(),_t=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:e,segments:r,sections:n})}}_getPatternSegments(e){return X.pattern.getPatternParts(e,this._micromatchOptions).map(n=>X.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:X.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return X.array.splitWhen(e,r=>r.dynamic&&X.pattern.hasGlobStar(r.pattern))}};pt.default=_t});var un=c(mt=>{"use strict";o();Object.defineProperty(mt,"__esModule",{value:!0});var Wi=an(),gt=class extends Wi.default{match(e){let r=e.split("/"),n=r.length,s=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of s){let a=i.sections[0];if(!i.complete&&n>a.length||r.every((h,f)=>{let u=i.segments[f];return!!(u.dynamic&&u.patternRe.test(h)||!u.dynamic&&u.pattern===h)}))return!0}return!1}};mt.default=gt});var cn=c(St=>{"use strict";o();Object.defineProperty(St,"__esModule",{value:!0});var me=L(),Vi=un(),yt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let s=this._getMatcher(r),i=this._getNegativePatternsRe(n);return a=>this._filter(e,a,s,i)}_getMatcher(e){return new Vi.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(me.pattern.isAffectDepthOfReadingPattern);return me.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,s){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=me.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let s=e.split("/").length;return n-s}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!me.pattern.matchAny(e,r)}};St.default=yt});var ln=c(vt=>{"use strict";o();Object.defineProperty(vt,"__esModule",{value:!0});var V=L(),Pt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let[n,s]=V.pattern.partitionAbsoluteAndRelative(r),i={positive:{all:V.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:V.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:V.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return a=>this._filter(a,i)}_filter(e,r){let n=V.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let s=this._isMatchToPatternsSet(n,r,e.dirent.isDirectory());return this._settings.unique&&s&&this._createIndexRecord(n),s}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,r,n){return!(!this._isMatchToPatterns(e,r.positive.all,n)||this._isMatchToPatterns(e,r.negative.relative,n)||this._isMatchToAbsoluteNegative(e,r.negative.absolute,n))}_isMatchToAbsoluteNegative(e,r,n){if(r.length===0)return!1;let s=V.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(s,r,n)}_isMatchToPatterns(e,r,n){if(r.length===0)return!1;let s=V.pattern.matchAny(e,r);return!s&&n?V.pattern.matchAny(e+"/",r):s}};vt.default=Pt});var hn=c(bt=>{"use strict";o();Object.defineProperty(bt,"__esModule",{value:!0});var Ci=L(),Et=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Ci.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};bt.default=Et});var dn=c(Tt=>{"use strict";o();Object.defineProperty(Tt,"__esModule",{value:!0});var fn=L(),wt=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=fn.path.makeAbsolute(this._settings.cwd,r),r=fn.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Tt.default=wt});var ye=c(Ot=>{"use strict";o();Object.defineProperty(Ot,"__esModule",{value:!0});var Yi=v("path"),Ui=cn(),Hi=ln(),Gi=hn(),Qi=dn(),kt=class{constructor(e){this._settings=e,this.errorFilter=new Gi.default(this._settings),this.entryFilter=new Hi.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Ui.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Qi.default(this._settings)}_getRootDirectory(e){return Yi.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.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}}};Ot.default=kt});var _n=c(Mt=>{"use strict";o();Object.defineProperty(Mt,"__esModule",{value:!0});var $i=on(),Xi=ye(),Dt=class extends Xi.default{constructor(){super(...arguments),this._reader=new $i.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(i=>n.transform(i))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Mt.default=Dt});var pn=c(At=>{"use strict";o();Object.defineProperty(At,"__esModule",{value:!0});var Ji=v("stream"),Ki=ht(),zi=ye(),qt=class extends zi.default{constructor(){super(...arguments),this._reader=new Ki.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),s=this.api(r,e,n),i=new Ji.Readable({objectMode:!0,read:()=>{}});return s.once("error",a=>i.emit("error",a)).on("data",a=>i.emit("data",n.transform(a))).once("end",()=>i.emit("end")),i.once("close",()=>s.destroy()),i}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};At.default=qt});var gn=c(Rt=>{"use strict";o();Object.defineProperty(Rt,"__esModule",{value:!0});var Zi=C(),eo=pe(),to=ge(),Ft=class extends to.default{constructor(){super(...arguments),this._walkSync=eo.walkSync,this._statSync=Zi.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let s of e){let i=this._getFullEntryPath(s),a=this._getEntry(i,s,r);a===null||!r.entryFilter(a)||n.push(a)}return n}_getEntry(e,r,n){try{let s=this._getStat(e);return this._makeEntry(s,r)}catch(s){if(n.errorFilter(s))return null;throw s}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Rt.default=Ft});var mn=c(xt=>{"use strict";o();Object.defineProperty(xt,"__esModule",{value:!0});var ro=gn(),no=ye(),Lt=class extends no.default{constructor(){super(...arguments),this._reader=new ro.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};xt.default=Lt});var yn=c(Q=>{"use strict";o();Object.defineProperty(Q,"__esModule",{value:!0});Q.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var G=v("fs"),so=v("os"),io=Math.max(so.cpus().length,1);Q.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:G.lstat,lstatSync:G.lstatSync,stat:G.stat,statSync:G.statSync,readdir:G.readdir,readdirSync:G.readdirSync};var jt=class{constructor(e={}){this._options=e,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,io),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),this.ignore=[].concat(this.ignore)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Q.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Q.default=jt});var co=c((cu,Pn)=>{o();var Sn=Sr(),oo=_n(),ao=pn(),uo=mn(),It=yn(),k=L();async function Bt(t,e){M(t);let r=Nt(t,oo.default,e),n=await Promise.all(r);return k.array.flatten(n)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(f,u){M(f);let _=Nt(f,uo.default,u);return k.array.flatten(_)}t.sync=e;function r(f,u){M(f);let _=Nt(f,ao.default,u);return k.stream.merge(_)}t.stream=r;function n(f,u){M(f);let _=[].concat(f),p=new It.default(u);return Sn.generate(_,p)}t.generateTasks=n;function s(f,u){M(f);let _=new It.default(u);return k.pattern.isDynamicPattern(f,_)}t.isDynamicPattern=s;function i(f){return M(f),k.path.escape(f)}t.escapePath=i;function a(f){return M(f),k.path.convertPathToPattern(f)}t.convertPathToPattern=a;let d;(function(f){function u(p){return M(p),k.path.escapePosixPath(p)}f.escapePath=u;function _(p){return M(p),k.path.convertPosixPathToPattern(p)}f.convertPathToPattern=_})(d=t.posix||(t.posix={}));let h;(function(f){function u(p){return M(p),k.path.escapeWindowsPath(p)}f.escapePath=u;function _(p){return M(p),k.path.convertWindowsPathToPattern(p)}f.convertPathToPattern=_})(h=t.win32||(t.win32={}))})(Bt||(Bt={}));function Nt(t,e,r){let n=[].concat(t),s=new It.default(r),i=Sn.generate(n,s),a=new e(s);return i.map(a.read,a)}function M(t){if(![].concat(t).every(n=>k.string.isString(n)&&!k.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Pn.exports=Bt});export{fr as a,co as b};
|
|
3
|
+
/*! Bundled license information:
|
|
4
|
+
|
|
5
|
+
queue-microtask/index.js:
|
|
6
|
+
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
7
|
+
|
|
8
|
+
run-parallel/index.js:
|
|
9
|
+
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
10
|
+
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
2
|
-
import{a as bt,b as Oe}from"./chunk-7NPI5OH3.js";import{a as I,c as N,i as h}from"./chunk-MNT4XW23.js";var Te=N((Sr,Fe)=>{"use strict";h();Fe.exports=e=>{let t=/^\\\\\?\\/.test(e),r=/[^\u0000-\u0080]+/.test(e);return t||r?e:e.replace(/\\/g,"/")}});var Re=N((_r,Pe)=>{"use strict";h();Pe.exports=(...e)=>[...new Set([].concat(...e))]});var Ae=N(q=>{"use strict";h();var{promisify:xt}=I("util"),$e=I("fs");async function ie(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await xt($e[e])(r))[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}function oe(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return $e[e](r)[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}q.isFile=ie.bind(null,"stat","isFile");q.isDirectory=ie.bind(null,"stat","isDirectory");q.isSymlink=ie.bind(null,"lstat","isSymbolicLink");q.isFileSync=oe.bind(null,"statSync","isFile");q.isDirectorySync=oe.bind(null,"statSync","isDirectory");q.isSymlinkSync=oe.bind(null,"lstatSync","isSymbolicLink")});var je=N((Fr,ce)=>{"use strict";h();var M=I("path"),Le=Ae(),Ne=e=>e.length>1?`{${e.join(",")}}`:e[0],De=(e,t)=>{let r=e[0]==="!"?e.slice(1):e;return M.isAbsolute(r)?r:M.join(t,r)},Ot=(e,t)=>M.extname(e)?`**/${e}`:`**/${e}.${Ne(t)}`,Ie=(e,t)=>{if(t.files&&!Array.isArray(t.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``);if(t.extensions&&!Array.isArray(t.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``);return t.files&&t.extensions?t.files.map(r=>M.posix.join(e,Ot(r,t.extensions))):t.files?t.files.map(r=>M.posix.join(e,`**/${r}`)):t.extensions?[M.posix.join(e,`**/*.${Ne(t.extensions)}`)]:[M.posix.join(e,"**")]};ce.exports=async(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=await Promise.all([].concat(e).map(async n=>await Le.isDirectory(De(n,t.cwd))?Ie(n,t):n));return[].concat.apply([],r)};ce.exports.sync=(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=[].concat(e).map(n=>Le.isDirectorySync(De(n,t.cwd))?Ie(n,t):n);return[].concat.apply([],r)}});var Ue=N((Pr,Ke)=>{"use strict";h();function Ge(e){return Array.isArray(e)?e:[e]}var We="",Ce=" ",se="\\",Ft=/^\s+$/,Tt=/(?:[^\\]|^)\\$/,Pt=/^\\!/,Rt=/^\\#/,$t=/\r?\n/g,At=/^\.*\/|^\.+$/,ae="/",ke="node-ignore";typeof Symbol<"u"&&(ke=Symbol.for("node-ignore"));var qe=ke,Lt=(e,t,r)=>Object.defineProperty(e,t,{value:r}),Nt=/([0-z])-([0-z])/g,Ye=()=>!1,Dt=e=>e.replace(Nt,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:We),It=e=>{let{length:t}=e;return e.slice(0,t-t%2)},jt=[[/\\?\s+$/,e=>e.indexOf("\\")===0?Ce:We],[/\\\s/g,()=>Ce],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>se],[/\\\\/g,()=>se],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,o)=>t===se?`\\[${r}${It(n)}${o}`:o==="]"&&n.length%2===0?`[${Dt(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Me=Object.create(null),Gt=(e,t)=>{let r=Me[e];return r||(r=jt.reduce((n,o)=>n.replace(o[0],o[1].bind(e)),e),Me[e]=r),t?new RegExp(r,"i"):new RegExp(r)},fe=e=>typeof e=="string",Ct=e=>e&&fe(e)&&!Ft.test(e)&&!Tt.test(e)&&e.indexOf("#")!==0,qt=e=>e.split($t),ue=class{constructor(t,r,n,o){this.origin=t,this.pattern=r,this.negative=n,this.regex=o}},Mt=(e,t)=>{let r=e,n=!1;e.indexOf("!")===0&&(n=!0,e=e.substr(1)),e=e.replace(Pt,"!").replace(Rt,"#");let o=Gt(e,t);return new ue(r,e,n,o)},Wt=(e,t)=>{throw new t(e)},j=(e,t,r)=>fe(e)?e?j.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),Xe=e=>At.test(e);j.isNotRelative=Xe;j.convert=e=>e;var le=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:n=!1}={}){Lt(this,qe,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[qe]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(Ct(t)){let r=Mt(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,Ge(fe(t)?qt(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,r){let n=!1,o=!1;return this._rules.forEach(s=>{let{negative:d}=s;if(o===d&&n!==o||d&&!n&&!o&&!r)return;s.regex.test(t)&&(n=!d,o=d)}),{ignored:n,unignored:o}}_test(t,r,n,o){let s=t&&j.convert(t);return j(s,t,this._allowRelativePaths?Ye:Wt),this._t(s,r,n,o)}_t(t,r,n,o){if(t in r)return r[t];if(o||(o=t.split(ae)),o.pop(),!o.length)return r[t]=this._testOne(t,n);let s=this._t(o.join(ae)+ae,r,n,o);return r[t]=s.ignored?s:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return Ge(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},U=e=>new le(e),kt=e=>j(e&&j.convert(e),e,Ye);U.isPathValid=kt;U.default=U;Ke.exports=U;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");j.convert=e;let t=/^[a-z]:\//i;j.isNotRelative=r=>t.test(r)||Xe(r)}});var Ze=N(($r,de)=>{"use strict";h();var{promisify:Yt}=I("util"),Be=I("fs"),G=I("path"),ze=Oe(),Xt=Ue(),K=Te(),He=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],Kt=Yt(Be.readFile),Ut=e=>t=>t.startsWith("!")?"!"+G.posix.join(e,t.slice(1)):G.posix.join(e,t),Bt=(e,t)=>{let r=K(G.relative(t.cwd,G.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter(n=>!n.startsWith("#")).map(Ut(r))},Ve=e=>{let t=Xt();for(let r of e)t.add(Bt(r.content,{cwd:r.cwd,fileName:r.filePath}));return t},zt=(e,t)=>{if(e=K(e),G.isAbsolute(t)){if(K(t).startsWith(e))return t;throw new Error(`Path ${t} is not in cwd ${e}`)}return G.join(e,t)},Qe=(e,t)=>r=>e.ignores(K(G.relative(t,zt(t,r.path||r)))),Ht=async(e,t)=>{let r=G.join(t,e),n=await Kt(r,"utf8");return{cwd:t,filePath:r,content:n}},Vt=(e,t)=>{let r=G.join(t,e),n=Be.readFileSync(r,"utf8");return{cwd:t,filePath:r,content:n}},Je=({ignore:e=[],cwd:t=K(process.cwd())}={})=>({ignore:e,cwd:t});de.exports=async e=>{e=Je(e);let t=await ze("**/.gitignore",{ignore:He.concat(e.ignore),cwd:e.cwd}),r=await Promise.all(t.map(o=>Ht(o,e.cwd))),n=Ve(r);return Qe(n,e.cwd)};de.exports.sync=e=>{e=Je(e);let r=ze.sync("**/.gitignore",{ignore:He.concat(e.ignore),cwd:e.cwd}).map(o=>Vt(o,e.cwd)),n=Ve(r);return Qe(n,e.cwd)}});var tt=N((Lr,et)=>{"use strict";h();var{Transform:Qt}=I("stream"),B=class extends Qt{constructor(){super({objectMode:!0})}},pe=class extends B{constructor(t){super(),this._filter=t}_transform(t,r,n){this._filter(t)&&this.push(t),n()}},ye=class extends B{constructor(){super(),this._pushed=new Set}_transform(t,r,n){this._pushed.has(t)||(this.push(t),this._pushed.add(t)),n()}};et.exports={FilterStream:pe,UniqueStream:ye}});var or=N((Dr,W)=>{"use strict";h();var nt=I("fs"),z=Re(),Jt=bt(),H=Oe(),V=je(),he=Ze(),{FilterStream:Zt,UniqueStream:er}=tt(),it=()=>!1,rt=e=>e[0]==="!",tr=e=>{if(!e.every(t=>typeof t=="string"))throw new TypeError("Patterns must be a string or an array of strings")},rr=(e={})=>{if(!e.cwd)return;let t;try{t=nt.statSync(e.cwd)}catch{return}if(!t.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},nr=e=>e.stats instanceof nt.Stats?e.path:e,Q=(e,t)=>{e=z([].concat(e)),tr(e),rr(t);let r=[];t={ignore:[],expandDirectories:!0,...t};for(let[n,o]of e.entries()){if(rt(o))continue;let s=e.slice(n).filter(p=>rt(p)).map(p=>p.slice(1)),d={...t,ignore:t.ignore.concat(s)};r.push({pattern:o,options:d})}return r},ir=(e,t)=>{let r={};return e.options.cwd&&(r.cwd=e.options.cwd),Array.isArray(e.options.expandDirectories)?r={...r,files:e.options.expandDirectories}:typeof e.options.expandDirectories=="object"&&(r={...r,...e.options.expandDirectories}),t(e.pattern,r)},ge=(e,t)=>e.options.expandDirectories?ir(e,t):[e.pattern],ot=e=>e&&e.gitignore?he.sync({cwd:e.cwd,ignore:e.ignore}):it,me=e=>t=>{let{options:r}=e;return r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories&&(r.ignore=V.sync(r.ignore)),{pattern:t,options:r}};W.exports=async(e,t)=>{let r=Q(e,t),n=async()=>t&&t.gitignore?he({cwd:t.cwd,ignore:t.ignore}):it,o=async()=>{let O=await Promise.all(r.map(async A=>{let i=await ge(A,V);return Promise.all(i.map(me(A)))}));return z(...O)},[s,d]=await Promise.all([n(),o()]),p=await Promise.all(d.map(O=>H(O.pattern,O.options)));return z(...p).filter(O=>!s(nr(O)))};W.exports.sync=(e,t)=>{let r=Q(e,t),n=[];for(let d of r){let p=ge(d,V.sync).map(me(d));n.push(...p)}let o=ot(t),s=[];for(let d of n)s=z(s,H.sync(d.pattern,d.options));return s.filter(d=>!o(d))};W.exports.stream=(e,t)=>{let r=Q(e,t),n=[];for(let p of r){let O=ge(p,V.sync).map(me(p));n.push(...O)}let o=ot(t),s=new Zt(p=>!o(p)),d=new er;return Jt(n.map(p=>H.stream(p.pattern,p.options))).pipe(s).pipe(d)};W.exports.generateGlobTasks=Q;W.exports.hasMagic=(e,t)=>[].concat(e).some(r=>H.isDynamicPattern(r,t));W.exports.gitignore=he});var st=N((jr,ct)=>{"use strict";h();var C=I("constants"),cr=process.cwd,J=null,sr=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return J||(J=cr.call(process)),J};try{process.cwd()}catch{}typeof process.chdir=="function"&&(we=process.chdir,process.chdir=function(e){J=null,we.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,we));var we;ct.exports=ar;function ar(e){C.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=d(e.chownSync),e.fchownSync=d(e.fchownSync),e.lchownSync=d(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=p(e.stat),e.fstat=p(e.fstat),e.lstat=p(e.lstat),e.statSync=O(e.statSync),e.fstatSync=O(e.fstatSync),e.lstatSync=O(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(i,f,u){u&&process.nextTick(u)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(i,f,u,c){c&&process.nextTick(c)},e.lchownSync=function(){}),sr==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(i){function f(u,c,l){var E=Date.now(),m=0;i(u,c,function v(D){if(D&&(D.code==="EACCES"||D.code==="EPERM")&&Date.now()-E<6e4){setTimeout(function(){e.stat(c,function(L,X){L&&L.code==="ENOENT"?i(u,c,v):l(D)})},m),m<100&&(m+=10);return}l&&l(D)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,i),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(i){function f(u,c,l,E,m,v){var D;if(v&&typeof v=="function"){var L=0;D=function(X,be,xe){if(X&&X.code==="EAGAIN"&&L<10)return L++,i.call(e,u,c,l,E,m,D);v.apply(this,arguments)}}return i.call(e,u,c,l,E,m,D)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,i),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(i){return function(f,u,c,l,E){for(var m=0;;)try{return i.call(e,f,u,c,l,E)}catch(v){if(v.code==="EAGAIN"&&m<10){m++;continue}throw v}}}(e.readSync);function t(i){i.lchmod=function(f,u,c){i.open(f,C.O_WRONLY|C.O_SYMLINK,u,function(l,E){if(l){c&&c(l);return}i.fchmod(E,u,function(m){i.close(E,function(v){c&&c(m||v)})})})},i.lchmodSync=function(f,u){var c=i.openSync(f,C.O_WRONLY|C.O_SYMLINK,u),l=!0,E;try{E=i.fchmodSync(c,u),l=!1}finally{if(l)try{i.closeSync(c)}catch{}else i.closeSync(c)}return E}}function r(i){C.hasOwnProperty("O_SYMLINK")&&i.futimes?(i.lutimes=function(f,u,c,l){i.open(f,C.O_SYMLINK,function(E,m){if(E){l&&l(E);return}i.futimes(m,u,c,function(v){i.close(m,function(D){l&&l(v||D)})})})},i.lutimesSync=function(f,u,c){var l=i.openSync(f,C.O_SYMLINK),E,m=!0;try{E=i.futimesSync(l,u,c),m=!1}finally{if(m)try{i.closeSync(l)}catch{}else i.closeSync(l)}return E}):i.futimes&&(i.lutimes=function(f,u,c,l){l&&process.nextTick(l)},i.lutimesSync=function(){})}function n(i){return i&&function(f,u,c){return i.call(e,f,u,function(l){A(l)&&(l=null),c&&c.apply(this,arguments)})}}function o(i){return i&&function(f,u){try{return i.call(e,f,u)}catch(c){if(!A(c))throw c}}}function s(i){return i&&function(f,u,c,l){return i.call(e,f,u,c,function(E){A(E)&&(E=null),l&&l.apply(this,arguments)})}}function d(i){return i&&function(f,u,c){try{return i.call(e,f,u,c)}catch(l){if(!A(l))throw l}}}function p(i){return i&&function(f,u,c){typeof u=="function"&&(c=u,u=null);function l(E,m){m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),c&&c.apply(this,arguments)}return u?i.call(e,f,u,l):i.call(e,f,l)}}function O(i){return i&&function(f,u){var c=u?i.call(e,f,u):i.call(e,f);return c&&(c.uid<0&&(c.uid+=4294967296),c.gid<0&&(c.gid+=4294967296)),c}}function A(i){if(!i||i.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(i.code==="EINVAL"||i.code==="EPERM"))}}});var lt=N((Cr,ut)=>{"use strict";h();var at=I("stream").Stream;ut.exports=ur;function ur(e){return{ReadStream:t,WriteStream:r};function t(n,o){if(!(this instanceof t))return new t(n,o);at.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,o=o||{};for(var d=Object.keys(o),p=0,O=d.length;p<O;p++){var A=d[p];this[A]=o[A]}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(i,f){if(i){s.emit("error",i),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(n,o){if(!(this instanceof r))return new r(n,o);at.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var s=Object.keys(o),d=0,p=s.length;d<p;d++){var O=s[d];this[O]=o[O]}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 dt=N((Mr,ft)=>{"use strict";h();ft.exports=fr;var lr=Object.getPrototypeOf||function(e){return e.__proto__};function fr(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:lr(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var gr=N((kr,ve)=>{"use strict";h();var b=I("fs"),dr=st(),pr=lt(),yr=dt(),Z=I("util"),$,te;typeof Symbol=="function"&&typeof Symbol.for=="function"?($=Symbol.for("graceful-fs.queue"),te=Symbol.for("graceful-fs.previous")):($="___graceful-fs.queue",te="___graceful-fs.previous");function hr(){}function ht(e,t){Object.defineProperty(e,$,{get:function(){return t}})}var k=hr;Z.debuglog?k=Z.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(k=function(){var e=Z.format.apply(Z,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
2
|
+
import{a as bt,b as Oe}from"./chunk-2RCBZ7OV.js";import{a as I,c as N,i as h}from"./chunk-MNT4XW23.js";var Te=N((Sr,Fe)=>{"use strict";h();Fe.exports=e=>{let t=/^\\\\\?\\/.test(e),r=/[^\u0000-\u0080]+/.test(e);return t||r?e:e.replace(/\\/g,"/")}});var Re=N((_r,Pe)=>{"use strict";h();Pe.exports=(...e)=>[...new Set([].concat(...e))]});var Ae=N(q=>{"use strict";h();var{promisify:xt}=I("util"),$e=I("fs");async function ie(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await xt($e[e])(r))[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}function oe(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return $e[e](r)[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}q.isFile=ie.bind(null,"stat","isFile");q.isDirectory=ie.bind(null,"stat","isDirectory");q.isSymlink=ie.bind(null,"lstat","isSymbolicLink");q.isFileSync=oe.bind(null,"statSync","isFile");q.isDirectorySync=oe.bind(null,"statSync","isDirectory");q.isSymlinkSync=oe.bind(null,"lstatSync","isSymbolicLink")});var je=N((Fr,ce)=>{"use strict";h();var M=I("path"),Le=Ae(),Ne=e=>e.length>1?`{${e.join(",")}}`:e[0],De=(e,t)=>{let r=e[0]==="!"?e.slice(1):e;return M.isAbsolute(r)?r:M.join(t,r)},Ot=(e,t)=>M.extname(e)?`**/${e}`:`**/${e}.${Ne(t)}`,Ie=(e,t)=>{if(t.files&&!Array.isArray(t.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``);if(t.extensions&&!Array.isArray(t.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``);return t.files&&t.extensions?t.files.map(r=>M.posix.join(e,Ot(r,t.extensions))):t.files?t.files.map(r=>M.posix.join(e,`**/${r}`)):t.extensions?[M.posix.join(e,`**/*.${Ne(t.extensions)}`)]:[M.posix.join(e,"**")]};ce.exports=async(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=await Promise.all([].concat(e).map(async n=>await Le.isDirectory(De(n,t.cwd))?Ie(n,t):n));return[].concat.apply([],r)};ce.exports.sync=(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=[].concat(e).map(n=>Le.isDirectorySync(De(n,t.cwd))?Ie(n,t):n);return[].concat.apply([],r)}});var Ue=N((Pr,Ke)=>{"use strict";h();function Ge(e){return Array.isArray(e)?e:[e]}var We="",Ce=" ",se="\\",Ft=/^\s+$/,Tt=/(?:[^\\]|^)\\$/,Pt=/^\\!/,Rt=/^\\#/,$t=/\r?\n/g,At=/^\.*\/|^\.+$/,ae="/",ke="node-ignore";typeof Symbol<"u"&&(ke=Symbol.for("node-ignore"));var qe=ke,Lt=(e,t,r)=>Object.defineProperty(e,t,{value:r}),Nt=/([0-z])-([0-z])/g,Ye=()=>!1,Dt=e=>e.replace(Nt,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:We),It=e=>{let{length:t}=e;return e.slice(0,t-t%2)},jt=[[/\\?\s+$/,e=>e.indexOf("\\")===0?Ce:We],[/\\\s/g,()=>Ce],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>se],[/\\\\/g,()=>se],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,o)=>t===se?`\\[${r}${It(n)}${o}`:o==="]"&&n.length%2===0?`[${Dt(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Me=Object.create(null),Gt=(e,t)=>{let r=Me[e];return r||(r=jt.reduce((n,o)=>n.replace(o[0],o[1].bind(e)),e),Me[e]=r),t?new RegExp(r,"i"):new RegExp(r)},fe=e=>typeof e=="string",Ct=e=>e&&fe(e)&&!Ft.test(e)&&!Tt.test(e)&&e.indexOf("#")!==0,qt=e=>e.split($t),ue=class{constructor(t,r,n,o){this.origin=t,this.pattern=r,this.negative=n,this.regex=o}},Mt=(e,t)=>{let r=e,n=!1;e.indexOf("!")===0&&(n=!0,e=e.substr(1)),e=e.replace(Pt,"!").replace(Rt,"#");let o=Gt(e,t);return new ue(r,e,n,o)},Wt=(e,t)=>{throw new t(e)},j=(e,t,r)=>fe(e)?e?j.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),Xe=e=>At.test(e);j.isNotRelative=Xe;j.convert=e=>e;var le=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:n=!1}={}){Lt(this,qe,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[qe]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(Ct(t)){let r=Mt(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,Ge(fe(t)?qt(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,r){let n=!1,o=!1;return this._rules.forEach(s=>{let{negative:d}=s;if(o===d&&n!==o||d&&!n&&!o&&!r)return;s.regex.test(t)&&(n=!d,o=d)}),{ignored:n,unignored:o}}_test(t,r,n,o){let s=t&&j.convert(t);return j(s,t,this._allowRelativePaths?Ye:Wt),this._t(s,r,n,o)}_t(t,r,n,o){if(t in r)return r[t];if(o||(o=t.split(ae)),o.pop(),!o.length)return r[t]=this._testOne(t,n);let s=this._t(o.join(ae)+ae,r,n,o);return r[t]=s.ignored?s:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return Ge(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},U=e=>new le(e),kt=e=>j(e&&j.convert(e),e,Ye);U.isPathValid=kt;U.default=U;Ke.exports=U;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");j.convert=e;let t=/^[a-z]:\//i;j.isNotRelative=r=>t.test(r)||Xe(r)}});var Ze=N(($r,de)=>{"use strict";h();var{promisify:Yt}=I("util"),Be=I("fs"),G=I("path"),ze=Oe(),Xt=Ue(),K=Te(),He=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],Kt=Yt(Be.readFile),Ut=e=>t=>t.startsWith("!")?"!"+G.posix.join(e,t.slice(1)):G.posix.join(e,t),Bt=(e,t)=>{let r=K(G.relative(t.cwd,G.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter(n=>!n.startsWith("#")).map(Ut(r))},Ve=e=>{let t=Xt();for(let r of e)t.add(Bt(r.content,{cwd:r.cwd,fileName:r.filePath}));return t},zt=(e,t)=>{if(e=K(e),G.isAbsolute(t)){if(K(t).startsWith(e))return t;throw new Error(`Path ${t} is not in cwd ${e}`)}return G.join(e,t)},Qe=(e,t)=>r=>e.ignores(K(G.relative(t,zt(t,r.path||r)))),Ht=async(e,t)=>{let r=G.join(t,e),n=await Kt(r,"utf8");return{cwd:t,filePath:r,content:n}},Vt=(e,t)=>{let r=G.join(t,e),n=Be.readFileSync(r,"utf8");return{cwd:t,filePath:r,content:n}},Je=({ignore:e=[],cwd:t=K(process.cwd())}={})=>({ignore:e,cwd:t});de.exports=async e=>{e=Je(e);let t=await ze("**/.gitignore",{ignore:He.concat(e.ignore),cwd:e.cwd}),r=await Promise.all(t.map(o=>Ht(o,e.cwd))),n=Ve(r);return Qe(n,e.cwd)};de.exports.sync=e=>{e=Je(e);let r=ze.sync("**/.gitignore",{ignore:He.concat(e.ignore),cwd:e.cwd}).map(o=>Vt(o,e.cwd)),n=Ve(r);return Qe(n,e.cwd)}});var tt=N((Lr,et)=>{"use strict";h();var{Transform:Qt}=I("stream"),B=class extends Qt{constructor(){super({objectMode:!0})}},pe=class extends B{constructor(t){super(),this._filter=t}_transform(t,r,n){this._filter(t)&&this.push(t),n()}},ye=class extends B{constructor(){super(),this._pushed=new Set}_transform(t,r,n){this._pushed.has(t)||(this.push(t),this._pushed.add(t)),n()}};et.exports={FilterStream:pe,UniqueStream:ye}});var or=N((Dr,W)=>{"use strict";h();var nt=I("fs"),z=Re(),Jt=bt(),H=Oe(),V=je(),he=Ze(),{FilterStream:Zt,UniqueStream:er}=tt(),it=()=>!1,rt=e=>e[0]==="!",tr=e=>{if(!e.every(t=>typeof t=="string"))throw new TypeError("Patterns must be a string or an array of strings")},rr=(e={})=>{if(!e.cwd)return;let t;try{t=nt.statSync(e.cwd)}catch{return}if(!t.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},nr=e=>e.stats instanceof nt.Stats?e.path:e,Q=(e,t)=>{e=z([].concat(e)),tr(e),rr(t);let r=[];t={ignore:[],expandDirectories:!0,...t};for(let[n,o]of e.entries()){if(rt(o))continue;let s=e.slice(n).filter(p=>rt(p)).map(p=>p.slice(1)),d={...t,ignore:t.ignore.concat(s)};r.push({pattern:o,options:d})}return r},ir=(e,t)=>{let r={};return e.options.cwd&&(r.cwd=e.options.cwd),Array.isArray(e.options.expandDirectories)?r={...r,files:e.options.expandDirectories}:typeof e.options.expandDirectories=="object"&&(r={...r,...e.options.expandDirectories}),t(e.pattern,r)},ge=(e,t)=>e.options.expandDirectories?ir(e,t):[e.pattern],ot=e=>e&&e.gitignore?he.sync({cwd:e.cwd,ignore:e.ignore}):it,me=e=>t=>{let{options:r}=e;return r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories&&(r.ignore=V.sync(r.ignore)),{pattern:t,options:r}};W.exports=async(e,t)=>{let r=Q(e,t),n=async()=>t&&t.gitignore?he({cwd:t.cwd,ignore:t.ignore}):it,o=async()=>{let O=await Promise.all(r.map(async A=>{let i=await ge(A,V);return Promise.all(i.map(me(A)))}));return z(...O)},[s,d]=await Promise.all([n(),o()]),p=await Promise.all(d.map(O=>H(O.pattern,O.options)));return z(...p).filter(O=>!s(nr(O)))};W.exports.sync=(e,t)=>{let r=Q(e,t),n=[];for(let d of r){let p=ge(d,V.sync).map(me(d));n.push(...p)}let o=ot(t),s=[];for(let d of n)s=z(s,H.sync(d.pattern,d.options));return s.filter(d=>!o(d))};W.exports.stream=(e,t)=>{let r=Q(e,t),n=[];for(let p of r){let O=ge(p,V.sync).map(me(p));n.push(...O)}let o=ot(t),s=new Zt(p=>!o(p)),d=new er;return Jt(n.map(p=>H.stream(p.pattern,p.options))).pipe(s).pipe(d)};W.exports.generateGlobTasks=Q;W.exports.hasMagic=(e,t)=>[].concat(e).some(r=>H.isDynamicPattern(r,t));W.exports.gitignore=he});var st=N((jr,ct)=>{"use strict";h();var C=I("constants"),cr=process.cwd,J=null,sr=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return J||(J=cr.call(process)),J};try{process.cwd()}catch{}typeof process.chdir=="function"&&(we=process.chdir,process.chdir=function(e){J=null,we.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,we));var we;ct.exports=ar;function ar(e){C.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=d(e.chownSync),e.fchownSync=d(e.fchownSync),e.lchownSync=d(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=p(e.stat),e.fstat=p(e.fstat),e.lstat=p(e.lstat),e.statSync=O(e.statSync),e.fstatSync=O(e.fstatSync),e.lstatSync=O(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(i,f,u){u&&process.nextTick(u)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(i,f,u,c){c&&process.nextTick(c)},e.lchownSync=function(){}),sr==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(i){function f(u,c,l){var E=Date.now(),m=0;i(u,c,function v(D){if(D&&(D.code==="EACCES"||D.code==="EPERM")&&Date.now()-E<6e4){setTimeout(function(){e.stat(c,function(L,X){L&&L.code==="ENOENT"?i(u,c,v):l(D)})},m),m<100&&(m+=10);return}l&&l(D)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,i),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(i){function f(u,c,l,E,m,v){var D;if(v&&typeof v=="function"){var L=0;D=function(X,be,xe){if(X&&X.code==="EAGAIN"&&L<10)return L++,i.call(e,u,c,l,E,m,D);v.apply(this,arguments)}}return i.call(e,u,c,l,E,m,D)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,i),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(i){return function(f,u,c,l,E){for(var m=0;;)try{return i.call(e,f,u,c,l,E)}catch(v){if(v.code==="EAGAIN"&&m<10){m++;continue}throw v}}}(e.readSync);function t(i){i.lchmod=function(f,u,c){i.open(f,C.O_WRONLY|C.O_SYMLINK,u,function(l,E){if(l){c&&c(l);return}i.fchmod(E,u,function(m){i.close(E,function(v){c&&c(m||v)})})})},i.lchmodSync=function(f,u){var c=i.openSync(f,C.O_WRONLY|C.O_SYMLINK,u),l=!0,E;try{E=i.fchmodSync(c,u),l=!1}finally{if(l)try{i.closeSync(c)}catch{}else i.closeSync(c)}return E}}function r(i){C.hasOwnProperty("O_SYMLINK")&&i.futimes?(i.lutimes=function(f,u,c,l){i.open(f,C.O_SYMLINK,function(E,m){if(E){l&&l(E);return}i.futimes(m,u,c,function(v){i.close(m,function(D){l&&l(v||D)})})})},i.lutimesSync=function(f,u,c){var l=i.openSync(f,C.O_SYMLINK),E,m=!0;try{E=i.futimesSync(l,u,c),m=!1}finally{if(m)try{i.closeSync(l)}catch{}else i.closeSync(l)}return E}):i.futimes&&(i.lutimes=function(f,u,c,l){l&&process.nextTick(l)},i.lutimesSync=function(){})}function n(i){return i&&function(f,u,c){return i.call(e,f,u,function(l){A(l)&&(l=null),c&&c.apply(this,arguments)})}}function o(i){return i&&function(f,u){try{return i.call(e,f,u)}catch(c){if(!A(c))throw c}}}function s(i){return i&&function(f,u,c,l){return i.call(e,f,u,c,function(E){A(E)&&(E=null),l&&l.apply(this,arguments)})}}function d(i){return i&&function(f,u,c){try{return i.call(e,f,u,c)}catch(l){if(!A(l))throw l}}}function p(i){return i&&function(f,u,c){typeof u=="function"&&(c=u,u=null);function l(E,m){m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),c&&c.apply(this,arguments)}return u?i.call(e,f,u,l):i.call(e,f,l)}}function O(i){return i&&function(f,u){var c=u?i.call(e,f,u):i.call(e,f);return c&&(c.uid<0&&(c.uid+=4294967296),c.gid<0&&(c.gid+=4294967296)),c}}function A(i){if(!i||i.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(i.code==="EINVAL"||i.code==="EPERM"))}}});var lt=N((Cr,ut)=>{"use strict";h();var at=I("stream").Stream;ut.exports=ur;function ur(e){return{ReadStream:t,WriteStream:r};function t(n,o){if(!(this instanceof t))return new t(n,o);at.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,o=o||{};for(var d=Object.keys(o),p=0,O=d.length;p<O;p++){var A=d[p];this[A]=o[A]}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(i,f){if(i){s.emit("error",i),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(n,o){if(!(this instanceof r))return new r(n,o);at.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var s=Object.keys(o),d=0,p=s.length;d<p;d++){var O=s[d];this[O]=o[O]}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 dt=N((Mr,ft)=>{"use strict";h();ft.exports=fr;var lr=Object.getPrototypeOf||function(e){return e.__proto__};function fr(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:lr(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var gr=N((kr,ve)=>{"use strict";h();var b=I("fs"),dr=st(),pr=lt(),yr=dt(),Z=I("util"),$,te;typeof Symbol=="function"&&typeof Symbol.for=="function"?($=Symbol.for("graceful-fs.queue"),te=Symbol.for("graceful-fs.previous")):($="___graceful-fs.queue",te="___graceful-fs.previous");function hr(){}function ht(e,t){Object.defineProperty(e,$,{get:function(){return t}})}var k=hr;Z.debuglog?k=Z.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(k=function(){var e=Z.format.apply(Z,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
3
3
|
GFS4: `),console.error(e)});b[$]||(pt=global[$]||[],ht(b,pt),b.close=function(e){function t(r,n){return e.call(b,r,function(o){o||yt(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,te,{value:e}),t}(b.close),b.closeSync=function(e){function t(r){e.apply(b,arguments),yt()}return Object.defineProperty(t,te,{value:e}),t}(b.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){k(b[$]),I("assert").equal(b[$].length,0)}));var pt;global[$]||ht(global,b[$]);ve.exports=Ee(yr(b));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!b.__patched&&(ve.exports=Ee(b),b.__patched=!0);function Ee(e){dr(e),e.gracefulify=Ee,e.createReadStream=be,e.createWriteStream=xe;var t=e.readFile;e.readFile=r;function r(a,g,y){return typeof g=="function"&&(y=g,g=null),T(a,g,y);function T(P,F,_,x){return t(P,F,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?Y([T,[P,F,_],w,x||Date.now(),Date.now()]):typeof _=="function"&&_.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=o;function o(a,g,y,T){return typeof y=="function"&&(T=y,y=null),P(a,g,y,T);function P(F,_,x,w,R){return n(F,_,x,function(S){S&&(S.code==="EMFILE"||S.code==="ENFILE")?Y([P,[F,_,x,w],S,R||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=d);function d(a,g,y,T){return typeof y=="function"&&(T=y,y=null),P(a,g,y,T);function P(F,_,x,w,R){return s(F,_,x,function(S){S&&(S.code==="EMFILE"||S.code==="ENFILE")?Y([P,[F,_,x,w],S,R||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}var p=e.copyFile;p&&(e.copyFile=O);function O(a,g,y,T){return typeof y=="function"&&(T=y,y=0),P(a,g,y,T);function P(F,_,x,w,R){return p(F,_,x,function(S){S&&(S.code==="EMFILE"||S.code==="ENFILE")?Y([P,[F,_,x,w],S,R||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}var A=e.readdir;e.readdir=f;var i=/^v[0-5]\./;function f(a,g,y){typeof g=="function"&&(y=g,g=null);var T=i.test(process.version)?function(_,x,w,R){return A(_,P(_,x,w,R))}:function(_,x,w,R){return A(_,x,P(_,x,w,R))};return T(a,g,y);function P(F,_,x,w){return function(R,S){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Y([T,[F,_,x],R,w||Date.now(),Date.now()]):(S&&S.sort&&S.sort(),typeof x=="function"&&x.call(this,R,S))}}}if(process.version.substr(0,4)==="v0.8"){var u=pr(e);v=u.ReadStream,L=u.WriteStream}var c=e.ReadStream;c&&(v.prototype=Object.create(c.prototype),v.prototype.open=D);var l=e.WriteStream;l&&(L.prototype=Object.create(l.prototype),L.prototype.open=X),Object.defineProperty(e,"ReadStream",{get:function(){return v},set:function(a){v=a},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return L},set:function(a){L=a},enumerable:!0,configurable:!0});var E=v;Object.defineProperty(e,"FileReadStream",{get:function(){return E},set:function(a){E=a},enumerable:!0,configurable:!0});var m=L;Object.defineProperty(e,"FileWriteStream",{get:function(){return m},set:function(a){m=a},enumerable:!0,configurable:!0});function v(a,g){return this instanceof v?(c.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function D(){var a=this;ne(a.path,a.flags,a.mode,function(g,y){g?(a.autoClose&&a.destroy(),a.emit("error",g)):(a.fd=y,a.emit("open",y),a.read())})}function L(a,g){return this instanceof L?(l.apply(this,arguments),this):L.apply(Object.create(L.prototype),arguments)}function X(){var a=this;ne(a.path,a.flags,a.mode,function(g,y){g?(a.destroy(),a.emit("error",g)):(a.fd=y,a.emit("open",y))})}function be(a,g){return new e.ReadStream(a,g)}function xe(a,g){return new e.WriteStream(a,g)}var _t=e.open;e.open=ne;function ne(a,g,y,T){return typeof y=="function"&&(T=y,y=null),P(a,g,y,T);function P(F,_,x,w,R){return _t(F,_,x,function(S,Er){S&&(S.code==="EMFILE"||S.code==="ENFILE")?Y([P,[F,_,x,w],S,R||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}return e}function Y(e){k("ENQUEUE",e[0].name,e[1]),b[$].push(e),Se()}var ee;function yt(){for(var e=Date.now(),t=0;t<b[$].length;++t)b[$][t].length>2&&(b[$][t][3]=e,b[$][t][4]=e);Se()}function Se(){if(clearTimeout(ee),ee=void 0,b[$].length!==0){var e=b[$].shift(),t=e[0],r=e[1],n=e[2],o=e[3],s=e[4];if(o===void 0)k("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-o>=6e4){k("TIMEOUT",t.name,r);var d=r.pop();typeof d=="function"&&d.call(null,n)}else{var p=Date.now()-s,O=Math.max(s-o,1),A=Math.min(O*1.2,100);p>=A?(k("RETRY",t.name,r),t.apply(null,r.concat([o]))):b[$].push(e)}ee===void 0&&(ee=setTimeout(Se,0))}}});var mr=N((Xr,gt)=>{"use strict";h();gt.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var Et=N((Ur,wt)=>{"use strict";h();wt.exports=mt;function mt(e,t){if(e&&t)return mt(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];var s=e.apply(this,n),d=n[n.length-1];return typeof s=="function"&&s!==d&&Object.keys(d).forEach(function(p){s[p]=d[p]}),s}}});var wr=N((zr,_e)=>{"use strict";h();var St=Et();_e.exports=St(re);_e.exports.strict=St(vt);re.proto=re(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return re(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return vt(this)},configurable:!0})});function re(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function vt(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});export{mr as a,Te as b,or as c,gr as d,Et as e,wr as f};
|