turbo-ignore 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +24 -14
  2. package/index.js +22 -9
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -29,6 +29,24 @@ Flags:
29
29
  disable [default: HEAD^]
30
30
  --help, -h Show this help message
31
31
  --version, -v Show the version of this script
32
+
33
+ ---
34
+
35
+ turbo-ignore will also check for special commit messages to indicate if a build should be skipped or not.
36
+
37
+ Skip turbo-ignore check and automatically ignore:
38
+ - [skip ci]
39
+ - [ci skip]
40
+ - [no ci]
41
+ - [skip vercel]
42
+ - [vercel skip]
43
+ - [vercel skip <workspace>]
44
+
45
+ Skip turbo-ignore check and automatically deploy:
46
+ - [vercel deploy]
47
+ - [vercel build]
48
+ - [vercel deploy <workspace>]
49
+ - [vercel build <workspace>]
32
50
  ```
33
51
 
34
52
  ### Examples
@@ -37,7 +55,7 @@ Flags:
37
55
  npx turbo-ignore
38
56
  ```
39
57
 
40
- > Only build if there are changes to the workspace in the current working directory, or any of it's dependencies. On Vercel, compare against the last successful deployment for the current branch. If this does not exist (first deploy of the branch), compare against the previous commit. When not on Vercel, always compare against the previous commit.
58
+ > Only build if there are changes to the workspace in the current working directory, or any of it's dependencies. On Vercel, compare against the last successful deployment for the current branch. When not on Vercel, compare against the parent commit (`HEAD^`).
41
59
 
42
60
  ---
43
61
 
@@ -45,15 +63,7 @@ npx turbo-ignore
45
63
  npx turbo-ignore docs
46
64
  ```
47
65
 
48
- > Only build if there are changes to the `docs` workspace, or any of it's dependencies. On Vercel, compare against the last successful deployment for the current branch. If this does not exist (first deploy of the branch), compare against the previous commit. When not on Vercel, always compare against the previous commit.
49
-
50
- ---
51
-
52
- ```sh
53
- npx turbo-ignore --fallback=false
54
- ```
55
-
56
- > Only build if there are changes to the workspace in the current working directory, or any of it's dependencies. On Vercel, compare against the last successful deployment for the current branch. If this does not exist, (first deploy of the branch), the build will proceed. When not on Vercel, always compare against the previous commit.
66
+ > Only build if there are changes to the `docs` workspace, or any of its dependencies. On Vercel, compare against the last successful deployment for the current branch. When not on Vercel compare against the parent commit (`HEAD^`).
57
67
 
58
68
  ---
59
69
 
@@ -61,15 +71,15 @@ npx turbo-ignore --fallback=false
61
71
  npx turbo-ignore --fallback=HEAD~10
62
72
  ```
63
73
 
64
- > Only build if there are changes to the workspace in the current working directory, or any of it's dependencies. On Vercel, compare against the last successful deployment for the current branch. If this does not exist (first deploy of the branch), compare against the previous 10 commits. When not on Vercel, always compare against the previous commit.
74
+ > Only build if there are changes to the workspace in the current working directory, or any of it's dependencies. On Vercel, compare against the last successful deployment for the current branch. If this does not exist (first deploy of the branch), compare against the previous 10 commits. When not on Vercel, always compare against the parent commit (`HEAD^`).
65
75
 
66
76
  ---
67
77
 
68
78
  ```sh
69
- npx turbo-ignore app --fallback=develop
79
+ npx turbo-ignore --fallback=HEAD^
70
80
  ```
71
81
 
72
- > Only build if there are changes to the `app` workspace, or any of it's dependencies. On Vercel, compare against the last successful deployment for the current branch. If this does not exist (first deploy of the branch), compare against the `develop` branch. When not on Vercel, always compare against the previous commit.
82
+ > Only build if there are changes to the workspace in the current working directory, or any of it's dependencies. On Vercel, compare against the last successful deployment for the current branch. If this does not exist (first deploy of the branch), compare against the parent commit (`HEAD^`). When not on Vercel, always compare against the parent commit (`HEAD^`).
73
83
 
74
84
  ## How it Works
75
85
 
@@ -83,7 +93,7 @@ Next, it uses `turbo run build --dry` to determine if the given workspace, _or a
83
93
 
84
94
  When deploying on [Vercel](https://vercel.com), `turbo-ignore` can make a more accurate decision by comparing between the current commit, and the last successfully deployed commit for the current branch.
85
95
 
86
- **NOTE:** By default on Vercel, if the branch has not been deployed, `turbo-ignore` will fall back to comparing against the previous commit. To always deploy the first commit of a new branch, this fallback behavior can be disabled with `--fallback=false`, or customized by providing the `ref` to compare against (defaults to `HEAD^1`).
96
+ **NOTE:** By default on Vercel, `turbo-ignore` will always deploy the first commit of a new branch. This behavior can be changed by providing the `ref` to compare against to the `--fallback` flag. See the [Examples](#Examples) section for more details.
87
97
 
88
98
  ## Releasing
89
99
 
package/index.js CHANGED
@@ -1,12 +1,14 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var He=Object.create;var be=Object.defineProperty;var Ke=Object.getOwnPropertyDescriptor;var Qe=Object.getOwnPropertyNames;var Xe=Object.getPrototypeOf,ze=Object.prototype.hasOwnProperty;var Ze=(c,r)=>()=>(c&&(r=c(c=0)),r);var er=(c,r)=>()=>(r||c((r={exports:{}}).exports,r),r.exports);var rr=(c,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Qe(r))!ze.call(c,n)&&n!==e&&be(c,n,{get:()=>r[n],enumerable:!(i=Ke(r,n))||i.enumerable});return c};var pe=(c,r,e)=>(e=c!=null?He(Xe(c)):{},rr(r||!c||!c.__esModule?be(e,"default",{value:c,enumerable:!0}):e,c));var re=Ze(()=>{});var Ce=er((pt,Me)=>{"use strict";re();var tr=Object.create,he=Object.defineProperty,nr=Object.getOwnPropertyDescriptor,xe=Object.getOwnPropertyNames,ir=Object.getPrototypeOf,or=Object.prototype.hasOwnProperty,ur=(c,r)=>function(){return c&&(r=(0,c[xe(c)[0]])(c=0)),r},D=(c,r)=>function(){return r||(0,c[xe(c)[0]])((r={exports:{}}).exports,r),r.exports},sr=(c,r)=>{for(var e in r)he(c,e,{get:r[e],enumerable:!0})},Fe=(c,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of xe(r))!or.call(c,n)&&n!==e&&he(c,n,{get:()=>r[n],enumerable:!(i=nr(r,n))||i.enumerable});return c},le=(c,r,e)=>(e=c!=null?tr(ir(c)):{},Fe(r||!c||!c.__esModule?he(e,"default",{value:c,enumerable:!0}):e,c)),ar=c=>Fe(he({},"__esModule",{value:!0}),c),q=ur({"../../node_modules/.pnpm/tsup@5.12.9_typescript@4.7.4/node_modules/tsup/assets/cjs_shims.js"(){}}),cr=D({"../../node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/typeof.js"(c,r){q();function e(i){return r.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},r.exports.__esModule=!0,r.exports.default=r.exports,e(i)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports}}),fr=D({"../../node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/regeneratorRuntime.js"(c,r){q();var e=cr().default;function i(){"use strict";r.exports=i=function(){return n},r.exports.__esModule=!0,r.exports.default=r.exports;var n={},b=Object.prototype,_=b.hasOwnProperty,a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",y=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(P,w,N){return Object.defineProperty(P,w,{value:N,enumerable:!0,configurable:!0,writable:!0}),P[w]}try{u({},"")}catch{u=function(N,L,C){return N[L]=C}}function f(P,w,N,L){var C=w&&w.prototype instanceof F?w:F,R=Object.create(C.prototype),G=new j(L||[]);return R._invoke=function(Y,ne,W){var K="suspendedStart";return function(ie,ce){if(K==="executing")throw new Error("Generator is already running");if(K==="completed"){if(ie==="throw")throw ce;return I()}for(W.method=ie,W.arg=ce;;){var M=W.delegate;if(M){var $=O(M,W);if($){if($===S)continue;return $}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(K==="suspendedStart")throw K="completed",W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);K="executing";var A=d(Y,ne,W);if(A.type==="normal"){if(K=W.done?"completed":"suspendedYield",A.arg===S)continue;return{value:A.arg,done:W.done}}A.type==="throw"&&(K="completed",W.method="throw",W.arg=A.arg)}}}(P,N,G),R}function d(P,w,N){try{return{type:"normal",arg:P.call(w,N)}}catch(L){return{type:"throw",arg:L}}}n.wrap=f;var S={};function F(){}function g(){}function h(){}var t={};u(t,o,function(){return this});var p=Object.getPrototypeOf,x=p&&p(p(T([])));x&&x!==b&&_.call(x,o)&&(t=x);var s=h.prototype=F.prototype=Object.create(t);function m(P){["next","throw","return"].forEach(function(w){u(P,w,function(N){return this._invoke(w,N)})})}function v(P,w){function N(C,R,G,Y){var ne=d(P[C],P,R);if(ne.type!=="throw"){var W=ne.arg,K=W.value;return K&&e(K)=="object"&&_.call(K,"__await")?w.resolve(K.__await).then(function(ie){N("next",ie,G,Y)},function(ie){N("throw",ie,G,Y)}):w.resolve(K).then(function(ie){W.value=ie,G(W)},function(ie){return N("throw",ie,G,Y)})}Y(ne.arg)}var L;this._invoke=function(C,R){function G(){return new w(function(Y,ne){N(C,R,Y,ne)})}return L=L?L.then(G,G):G()}}function O(P,w){var N=P.iterator[w.method];if(N===void 0){if(w.delegate=null,w.method==="throw"){if(P.iterator.return&&(w.method="return",w.arg=void 0,O(P,w),w.method==="throw"))return S;w.method="throw",w.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var L=d(N,P.iterator,w.arg);if(L.type==="throw")return w.method="throw",w.arg=L.arg,w.delegate=null,S;var C=L.arg;return C?C.done?(w[P.resultName]=C.value,w.next=P.nextLoc,w.method!=="return"&&(w.method="next",w.arg=void 0),w.delegate=null,S):C:(w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,S)}function E(P){var w={tryLoc:P[0]};1 in P&&(w.catchLoc=P[1]),2 in P&&(w.finallyLoc=P[2],w.afterLoc=P[3]),this.tryEntries.push(w)}function k(P){var w=P.completion||{};w.type="normal",delete w.arg,P.completion=w}function j(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(E,this),this.reset(!0)}function T(P){if(P){var w=P[o];if(w)return w.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var N=-1,L=function C(){for(;++N<P.length;)if(_.call(P,N))return C.value=P[N],C.done=!1,C;return C.value=void 0,C.done=!0,C};return L.next=L}}return{next:I}}function I(){return{value:void 0,done:!0}}return g.prototype=h,u(s,"constructor",h),u(h,"constructor",g),g.displayName=u(h,l,"GeneratorFunction"),n.isGeneratorFunction=function(P){var w=typeof P=="function"&&P.constructor;return!!w&&(w===g||(w.displayName||w.name)==="GeneratorFunction")},n.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,h):(P.__proto__=h,u(P,l,"GeneratorFunction")),P.prototype=Object.create(s),P},n.awrap=function(P){return{__await:P}},m(v.prototype),u(v.prototype,y,function(){return this}),n.AsyncIterator=v,n.async=function(P,w,N,L,C){C===void 0&&(C=Promise);var R=new v(f(P,w,N,L),C);return n.isGeneratorFunction(w)?R:R.next().then(function(G){return G.done?G.value:R.next()})},m(s),u(s,l,"Generator"),u(s,o,function(){return this}),u(s,"toString",function(){return"[object Generator]"}),n.keys=function(P){var w=[];for(var N in P)w.push(N);return w.reverse(),function L(){for(;w.length;){var C=w.pop();if(C in P)return L.value=C,L.done=!1,L}return L.done=!0,L}},n.values=T,j.prototype={constructor:j,reset:function(w){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!w)for(var N in this)N.charAt(0)==="t"&&_.call(this,N)&&!isNaN(+N.slice(1))&&(this[N]=void 0)},stop:function(){this.done=!0;var w=this.tryEntries[0].completion;if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(w){if(this.done)throw w;var N=this;function L(W,K){return G.type="throw",G.arg=w,N.next=W,K&&(N.method="next",N.arg=void 0),!!K}for(var C=this.tryEntries.length-1;C>=0;--C){var R=this.tryEntries[C],G=R.completion;if(R.tryLoc==="root")return L("end");if(R.tryLoc<=this.prev){var Y=_.call(R,"catchLoc"),ne=_.call(R,"finallyLoc");if(Y&&ne){if(this.prev<R.catchLoc)return L(R.catchLoc,!0);if(this.prev<R.finallyLoc)return L(R.finallyLoc)}else if(Y){if(this.prev<R.catchLoc)return L(R.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<R.finallyLoc)return L(R.finallyLoc)}}}},abrupt:function(w,N){for(var L=this.tryEntries.length-1;L>=0;--L){var C=this.tryEntries[L];if(C.tryLoc<=this.prev&&_.call(C,"finallyLoc")&&this.prev<C.finallyLoc){var R=C;break}}R&&(w==="break"||w==="continue")&&R.tryLoc<=N&&N<=R.finallyLoc&&(R=null);var G=R?R.completion:{};return G.type=w,G.arg=N,R?(this.method="next",this.next=R.finallyLoc,S):this.complete(G)},complete:function(w,N){if(w.type==="throw")throw w.arg;return w.type==="break"||w.type==="continue"?this.next=w.arg:w.type==="return"?(this.rval=this.arg=w.arg,this.method="return",this.next="end"):w.type==="normal"&&N&&(this.next=N),S},finish:function(w){for(var N=this.tryEntries.length-1;N>=0;--N){var L=this.tryEntries[N];if(L.finallyLoc===w)return this.complete(L.completion,L.afterLoc),k(L),S}},catch:function(w){for(var N=this.tryEntries.length-1;N>=0;--N){var L=this.tryEntries[N];if(L.tryLoc===w){var C=L.completion;if(C.type==="throw"){var R=C.arg;k(L)}return R}}throw new Error("illegal catch attempt")},delegateYield:function(w,N,L){return this.delegate={iterator:T(w),resultName:N,nextLoc:L},this.method==="next"&&(this.arg=void 0),S}},n}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports}}),lr=D({"../../node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/regenerator/index.js"(c,r){q();var e=fr()();r.exports=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}}),dr=D({"../../node_modules/.pnpm/p-try@2.2.0/node_modules/p-try/index.js"(c,r){"use strict";q();var e=(i,...n)=>new Promise(b=>{b(i(...n))});r.exports=e,r.exports.default=e}}),pr=D({"../../node_modules/.pnpm/p-limit@2.3.0/node_modules/p-limit/index.js"(c,r){"use strict";q();var e=dr(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let b=[],_=0,a=()=>{_--,b.length>0&&b.shift()()},o=(u,f,...d)=>{_++;let S=e(u,...d);f(S),S.then(a,a)},y=(u,f,...d)=>{_<n?o(u,f,...d):b.push(o.bind(null,u,f,...d))},l=(u,...f)=>new Promise(d=>y(u,d,...f));return Object.defineProperties(l,{activeCount:{get:()=>_},pendingCount:{get:()=>b.length},clearQueue:{value:()=>{b.length=0}}}),l};r.exports=i,r.exports.default=i}}),mr=D({"../../node_modules/.pnpm/p-locate@4.1.0/node_modules/p-locate/index.js"(c,r){"use strict";q();var e=pr(),i=class extends Error{constructor(a){super(),this.value=a}},n=async(a,o)=>o(await a),b=async a=>{let o=await Promise.all(a);if(o[1]===!0)throw new i(o[0]);return!1},_=async(a,o,y)=>{y={concurrency:1/0,preserveOrder:!0,...y};let l=e(y.concurrency),u=[...a].map(d=>[d,l(n,d,o)]),f=e(y.preserveOrder?1:1/0);try{await Promise.all(u.map(d=>f(b,d)))}catch(d){if(d instanceof i)return d.value;throw d}};r.exports=_,r.exports.default=_}}),yr=D({"../../node_modules/.pnpm/locate-path@5.0.0/node_modules/locate-path/index.js"(c,r){"use strict";q();var e=require("path"),i=require("fs"),{promisify:n}=require("util"),b=mr(),_=n(i.stat),a=n(i.lstat),o={directory:"isDirectory",file:"isFile"};function y({type:u}){if(!(u in o))throw new Error(`Invalid type specified: ${u}`)}var l=(u,f)=>u===void 0||f[o[u]]();r.exports=async(u,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},y(f);let d=f.allowSymlinks?_:a;return b(u,async S=>{try{let F=await d(e.resolve(f.cwd,S));return l(f.type,F)}catch{return!1}},f)},r.exports.sync=(u,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},y(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let S of u)try{let F=d(e.resolve(f.cwd,S));if(l(f.type,F))return S}catch{}}}}),hr=D({"../../node_modules/.pnpm/path-exists@4.0.0/node_modules/path-exists/index.js"(c,r){"use strict";q();var e=require("fs"),{promisify:i}=require("util"),n=i(e.access);r.exports=async b=>{try{return await n(b),!0}catch{return!1}},r.exports.sync=b=>{try{return e.accessSync(b),!0}catch{return!1}}}}),vr=D({"../../node_modules/.pnpm/find-up@4.1.0/node_modules/find-up/index.js"(c,r){"use strict";q();var e=require("path"),i=yr(),n=hr(),b=Symbol("findUp.stop");r.exports=async(_,a={})=>{let o=e.resolve(a.cwd||""),{root:y}=e.parse(o),l=[].concat(_),u=async f=>{if(typeof _!="function")return i(l,f);let d=await _(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await u({...a,cwd:o});if(f===b)return;if(f)return e.resolve(o,f);if(o===y)return;o=e.dirname(o)}},r.exports.sync=(_,a={})=>{let o=e.resolve(a.cwd||""),{root:y}=e.parse(o),l=[].concat(_),u=f=>{if(typeof _!="function")return i.sync(l,f);let d=_(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=u({...a,cwd:o});if(f===b)return;if(f)return e.resolve(o,f);if(o===y)return;o=e.dirname(o)}},r.exports.exists=n,r.exports.sync.exists=n.sync,r.exports.stop=b}}),te=D({"../../node_modules/.pnpm/universalify@0.1.2/node_modules/universalify/index.js"(c){"use strict";q(),c.fromCallback=function(r){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")r.apply(this,arguments);else return new Promise((e,i)=>{arguments[arguments.length]=(n,b)=>{if(n)return i(n);e(b)},arguments.length++,r.apply(this,arguments)})},"name",{value:r.name})},c.fromPromise=function(r){return Object.defineProperty(function(){let e=arguments[arguments.length-1];if(typeof e!="function")return r.apply(this,arguments);r.apply(this,arguments).then(i=>e(null,i),e)},"name",{value:r.name})}}}),_r=D({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(c,r){q();var e=require("constants"),i=process.cwd,n=null,b=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=i.call(process)),n};try{process.cwd()}catch{}typeof process.chdir=="function"&&(_=process.chdir,process.chdir=function(o){n=null,_.call(process,o)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,_));var _;r.exports=a;function a(o){e.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&y(o),o.lutimes||l(o),o.chown=d(o.chown),o.fchown=d(o.fchown),o.lchown=d(o.lchown),o.chmod=u(o.chmod),o.fchmod=u(o.fchmod),o.lchmod=u(o.lchmod),o.chownSync=S(o.chownSync),o.fchownSync=S(o.fchownSync),o.lchownSync=S(o.lchownSync),o.chmodSync=f(o.chmodSync),o.fchmodSync=f(o.fchmodSync),o.lchmodSync=f(o.lchmodSync),o.stat=F(o.stat),o.fstat=F(o.fstat),o.lstat=F(o.lstat),o.statSync=g(o.statSync),o.fstatSync=g(o.fstatSync),o.lstatSync=g(o.lstatSync),o.chmod&&!o.lchmod&&(o.lchmod=function(t,p,x){x&&process.nextTick(x)},o.lchmodSync=function(){}),o.chown&&!o.lchown&&(o.lchown=function(t,p,x,s){s&&process.nextTick(s)},o.lchownSync=function(){}),b==="win32"&&(o.rename=typeof o.rename!="function"?o.rename:function(t){function p(x,s,m){var v=Date.now(),O=0;t(x,s,function E(k){if(k&&(k.code==="EACCES"||k.code==="EPERM")&&Date.now()-v<6e4){setTimeout(function(){o.stat(s,function(j,T){j&&j.code==="ENOENT"?t(x,s,E):m(k)})},O),O<100&&(O+=10);return}m&&m(k)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,t),p}(o.rename)),o.read=typeof o.read!="function"?o.read:function(t){function p(x,s,m,v,O,E){var k;if(E&&typeof E=="function"){var j=0;k=function(T,I,P){if(T&&T.code==="EAGAIN"&&j<10)return j++,t.call(o,x,s,m,v,O,k);E.apply(this,arguments)}}return t.call(o,x,s,m,v,O,k)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,t),p}(o.read),o.readSync=typeof o.readSync!="function"?o.readSync:function(t){return function(p,x,s,m,v){for(var O=0;;)try{return t.call(o,p,x,s,m,v)}catch(E){if(E.code==="EAGAIN"&&O<10){O++;continue}throw E}}}(o.readSync);function y(t){t.lchmod=function(p,x,s){t.open(p,e.O_WRONLY|e.O_SYMLINK,x,function(m,v){if(m){s&&s(m);return}t.fchmod(v,x,function(O){t.close(v,function(E){s&&s(O||E)})})})},t.lchmodSync=function(p,x){var s=t.openSync(p,e.O_WRONLY|e.O_SYMLINK,x),m=!0,v;try{v=t.fchmodSync(s,x),m=!1}finally{if(m)try{t.closeSync(s)}catch{}else t.closeSync(s)}return v}}function l(t){e.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(p,x,s,m){t.open(p,e.O_SYMLINK,function(v,O){if(v){m&&m(v);return}t.futimes(O,x,s,function(E){t.close(O,function(k){m&&m(E||k)})})})},t.lutimesSync=function(p,x,s){var m=t.openSync(p,e.O_SYMLINK),v,O=!0;try{v=t.futimesSync(m,x,s),O=!1}finally{if(O)try{t.closeSync(m)}catch{}else t.closeSync(m)}return v}):t.futimes&&(t.lutimes=function(p,x,s,m){m&&process.nextTick(m)},t.lutimesSync=function(){})}function u(t){return t&&function(p,x,s){return t.call(o,p,x,function(m){h(m)&&(m=null),s&&s.apply(this,arguments)})}}function f(t){return t&&function(p,x){try{return t.call(o,p,x)}catch(s){if(!h(s))throw s}}}function d(t){return t&&function(p,x,s,m){return t.call(o,p,x,s,function(v){h(v)&&(v=null),m&&m.apply(this,arguments)})}}function S(t){return t&&function(p,x,s){try{return t.call(o,p,x,s)}catch(m){if(!h(m))throw m}}}function F(t){return t&&function(p,x,s){typeof x=="function"&&(s=x,x=null);function m(v,O){O&&(O.uid<0&&(O.uid+=4294967296),O.gid<0&&(O.gid+=4294967296)),s&&s.apply(this,arguments)}return x?t.call(o,p,x,m):t.call(o,p,m)}}function g(t){return t&&function(p,x){var s=x?t.call(o,p,x):t.call(o,p);return s&&(s.uid<0&&(s.uid+=4294967296),s.gid<0&&(s.gid+=4294967296)),s}}function h(t){if(!t||t.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(t.code==="EINVAL"||t.code==="EPERM"))}}}}),wr=D({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(c,r){q();var e=require("stream").Stream;r.exports=i;function i(n){return{ReadStream:b,WriteStream:_};function b(a,o){if(!(this instanceof b))return new b(a,o);e.call(this);var y=this;this.path=a,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var l=Object.keys(o),u=0,f=l.length;u<f;u++){var d=l[u];this[d]=o[d]}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(){y._read()});return}n.open(this.path,this.flags,this.mode,function(S,F){if(S){y.emit("error",S),y.readable=!1;return}y.fd=F,y.emit("open",F),y._read()})}function _(a,o){if(!(this instanceof _))return new _(a,o);e.call(this),this.path=a,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var y=Object.keys(o),l=0,u=y.length;l<u;l++){var f=y[l];this[f]=o[f]}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=n.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}}),Sr=D({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(c,r){"use strict";q(),r.exports=i;var e=Object.getPrototypeOf||function(n){return n.__proto__};function i(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var b={__proto__:e(n)};else var b=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(_){Object.defineProperty(b,_,Object.getOwnPropertyDescriptor(n,_))}),b}}}),H=D({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(c,r){q();var e=require("fs"),i=_r(),n=wr(),b=Sr(),_=require("util"),a,o;typeof Symbol=="function"&&typeof Symbol.for=="function"?(a=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(a="___graceful-fs.queue",o="___graceful-fs.previous");function y(){}function l(t,p){Object.defineProperty(t,a,{get:function(){return p}})}var u=y;_.debuglog?u=_.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(u=function(){var t=_.format.apply(_,arguments);t="GFS4: "+t.split(/\n/).join(`
3
- GFS4: `),console.error(t)}),e[a]||(f=global[a]||[],l(e,f),e.close=function(t){function p(x,s){return t.call(e,x,function(m){m||g(),typeof s=="function"&&s.apply(this,arguments)})}return Object.defineProperty(p,o,{value:t}),p}(e.close),e.closeSync=function(t){function p(x){t.apply(e,arguments),g()}return Object.defineProperty(p,o,{value:t}),p}(e.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){u(e[a]),require("assert").equal(e[a].length,0)}));var f;global[a]||l(global,e[a]),r.exports=d(b(e)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!e.__patched&&(r.exports=d(e),e.__patched=!0);function d(t){i(t),t.gracefulify=d,t.createReadStream=W,t.createWriteStream=K;var p=t.readFile;t.readFile=x;function x(M,$,A){return typeof $=="function"&&(A=$,$=null),X(M,$,A);function X(z,Q,B,V){return p(z,Q,function(J){J&&(J.code==="EMFILE"||J.code==="ENFILE")?S([X,[z,Q,B],J,V||Date.now(),Date.now()]):typeof B=="function"&&B.apply(this,arguments)})}}var s=t.writeFile;t.writeFile=m;function m(M,$,A,X){return typeof A=="function"&&(X=A,A=null),z(M,$,A,X);function z(Q,B,V,J,Z){return s(Q,B,V,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?S([z,[Q,B,V,J],U,Z||Date.now(),Date.now()]):typeof J=="function"&&J.apply(this,arguments)})}}var v=t.appendFile;v&&(t.appendFile=O);function O(M,$,A,X){return typeof A=="function"&&(X=A,A=null),z(M,$,A,X);function z(Q,B,V,J,Z){return v(Q,B,V,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?S([z,[Q,B,V,J],U,Z||Date.now(),Date.now()]):typeof J=="function"&&J.apply(this,arguments)})}}var E=t.copyFile;E&&(t.copyFile=k);function k(M,$,A,X){return typeof A=="function"&&(X=A,A=0),z(M,$,A,X);function z(Q,B,V,J,Z){return E(Q,B,V,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?S([z,[Q,B,V,J],U,Z||Date.now(),Date.now()]):typeof J=="function"&&J.apply(this,arguments)})}}var j=t.readdir;t.readdir=I;var T=/^v[0-5]\./;function I(M,$,A){typeof $=="function"&&(A=$,$=null);var X=T.test(process.version)?function(B,V,J,Z){return j(B,z(B,V,J,Z))}:function(B,V,J,Z){return j(B,V,z(B,V,J,Z))};return X(M,$,A);function z(Q,B,V,J){return function(Z,U){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?S([X,[Q,B,V],Z,J||Date.now(),Date.now()]):(U&&U.sort&&U.sort(),typeof V=="function"&&V.call(this,Z,U))}}}if(process.version.substr(0,4)==="v0.8"){var P=n(t);R=P.ReadStream,Y=P.WriteStream}var w=t.ReadStream;w&&(R.prototype=Object.create(w.prototype),R.prototype.open=G);var N=t.WriteStream;N&&(Y.prototype=Object.create(N.prototype),Y.prototype.open=ne),Object.defineProperty(t,"ReadStream",{get:function(){return R},set:function(M){R=M},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return Y},set:function(M){Y=M},enumerable:!0,configurable:!0});var L=R;Object.defineProperty(t,"FileReadStream",{get:function(){return L},set:function(M){L=M},enumerable:!0,configurable:!0});var C=Y;Object.defineProperty(t,"FileWriteStream",{get:function(){return C},set:function(M){C=M},enumerable:!0,configurable:!0});function R(M,$){return this instanceof R?(w.apply(this,arguments),this):R.apply(Object.create(R.prototype),arguments)}function G(){var M=this;ce(M.path,M.flags,M.mode,function($,A){$?(M.autoClose&&M.destroy(),M.emit("error",$)):(M.fd=A,M.emit("open",A),M.read())})}function Y(M,$){return this instanceof Y?(N.apply(this,arguments),this):Y.apply(Object.create(Y.prototype),arguments)}function ne(){var M=this;ce(M.path,M.flags,M.mode,function($,A){$?(M.destroy(),M.emit("error",$)):(M.fd=A,M.emit("open",A))})}function W(M,$){return new t.ReadStream(M,$)}function K(M,$){return new t.WriteStream(M,$)}var ie=t.open;t.open=ce;function ce(M,$,A,X){return typeof A=="function"&&(X=A,A=null),z(M,$,A,X);function z(Q,B,V,J,Z){return ie(Q,B,V,function(U,ct){U&&(U.code==="EMFILE"||U.code==="ENFILE")?S([z,[Q,B,V,J],U,Z||Date.now(),Date.now()]):typeof J=="function"&&J.apply(this,arguments)})}}return t}function S(t){u("ENQUEUE",t[0].name,t[1]),e[a].push(t),h()}var F;function g(){for(var t=Date.now(),p=0;p<e[a].length;++p)e[a][p].length>2&&(e[a][p][3]=t,e[a][p][4]=t);h()}function h(){if(clearTimeout(F),F=void 0,e[a].length!==0){var t=e[a].shift(),p=t[0],x=t[1],s=t[2],m=t[3],v=t[4];if(m===void 0)u("RETRY",p.name,x),p.apply(null,x);else if(Date.now()-m>=6e4){u("TIMEOUT",p.name,x);var O=x.pop();typeof O=="function"&&O.call(null,s)}else{var E=Date.now()-v,k=Math.max(v-m,1),j=Math.min(k*1.2,100);E>=j?(u("RETRY",p.name,x),p.apply(null,x.concat([m]))):e[a].push(t)}F===void 0&&(F=setTimeout(h,0))}}}}),Te=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/fs/index.js"(c){"use strict";q();var r=te().fromCallback,e=H(),i=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof e[n]=="function");Object.keys(e).forEach(n=>{n!=="promises"&&(c[n]=e[n])}),i.forEach(n=>{c[n]=r(e[n])}),c.exists=function(n,b){return typeof b=="function"?e.exists(n,b):new Promise(_=>e.exists(n,_))},c.read=function(n,b,_,a,o,y){return typeof y=="function"?e.read(n,b,_,a,o,y):new Promise((l,u)=>{e.read(n,b,_,a,o,(f,d,S)=>{if(f)return u(f);l({bytesRead:d,buffer:S})})})},c.write=function(n,b,..._){return typeof _[_.length-1]=="function"?e.write(n,b,..._):new Promise((a,o)=>{e.write(n,b,..._,(y,l,u)=>{if(y)return o(y);a({bytesWritten:l,buffer:u})})})},typeof e.realpath.native=="function"&&(c.realpath.native=r(e.realpath.native))}}),Ne=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/mkdirs/win32.js"(c,r){"use strict";q();var e=require("path");function i(_){return _=e.normalize(e.resolve(_)).split(e.sep),_.length>0?_[0]:null}var n=/[<>:"|?*]/;function b(_){let a=i(_);return _=_.replace(a,""),n.test(_)}r.exports={getRootPath:i,invalidWin32Path:b}}}),gr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/mkdirs/mkdirs.js"(c,r){"use strict";q();var e=H(),i=require("path"),n=Ne().invalidWin32Path,b=parseInt("0777",8);function _(a,o,y,l){if(typeof o=="function"?(y=o,o={}):(!o||typeof o!="object")&&(o={mode:o}),process.platform==="win32"&&n(a)){let d=new Error(a+" contains invalid WIN32 path characters.");return d.code="EINVAL",y(d)}let u=o.mode,f=o.fs||e;u===void 0&&(u=b&~process.umask()),l||(l=null),y=y||function(){},a=i.resolve(a),f.mkdir(a,u,d=>{if(!d)return l=l||a,y(null,l);switch(d.code){case"ENOENT":if(i.dirname(a)===a)return y(d);_(i.dirname(a),o,(S,F)=>{S?y(S,F):_(a,o,y,F)});break;default:f.stat(a,(S,F)=>{S||!F.isDirectory()?y(d,l):y(null,l)});break}})}r.exports=_}}),xr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js"(c,r){"use strict";q();var e=H(),i=require("path"),n=Ne().invalidWin32Path,b=parseInt("0777",8);function _(a,o,y){(!o||typeof o!="object")&&(o={mode:o});let l=o.mode,u=o.fs||e;if(process.platform==="win32"&&n(a)){let f=new Error(a+" contains invalid WIN32 path characters.");throw f.code="EINVAL",f}l===void 0&&(l=b&~process.umask()),y||(y=null),a=i.resolve(a);try{u.mkdirSync(a,l),y=y||a}catch(f){if(f.code==="ENOENT"){if(i.dirname(a)===a)throw f;y=_(i.dirname(a),o,y),_(a,o,y)}else{let d;try{d=u.statSync(a)}catch{throw f}if(!d.isDirectory())throw f}}return y}r.exports=_}}),oe=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/mkdirs/index.js"(c,r){"use strict";q();var e=te().fromCallback,i=e(gr()),n=xr();r.exports={mkdirs:i,mkdirsSync:n,mkdirp:i,mkdirpSync:n,ensureDir:i,ensureDirSync:n}}}),Ie=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/util/utimes.js"(c,r){"use strict";q();var e=H(),i=require("os"),n=require("path");function b(){let l=n.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));l=n.join(i.tmpdir(),l);let u=new Date(1435410243862);e.writeFileSync(l,"https://github.com/jprichardson/node-fs-extra/pull/141");let f=e.openSync(l,"r+");return e.futimesSync(f,u,u),e.closeSync(f),e.statSync(l).mtime>1435410243e3}function _(l){let u=n.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));u=n.join(i.tmpdir(),u);let f=new Date(1435410243862);e.writeFile(u,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return l(d);e.open(u,"r+",(S,F)=>{if(S)return l(S);e.futimes(F,f,f,g=>{if(g)return l(g);e.close(F,h=>{if(h)return l(h);e.stat(u,(t,p)=>{if(t)return l(t);l(null,p.mtime>1435410243e3)})})})})})}function a(l){if(typeof l=="number")return Math.floor(l/1e3)*1e3;if(l instanceof Date)return new Date(Math.floor(l.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function o(l,u,f,d){e.open(l,"r+",(S,F)=>{if(S)return d(S);e.futimes(F,u,f,g=>{e.close(F,h=>{d&&d(g||h)})})})}function y(l,u,f){let d=e.openSync(l,"r+");return e.futimesSync(d,u,f),e.closeSync(d)}r.exports={hasMillisRes:_,hasMillisResSync:b,timeRemoveMillis:a,utimesMillis:o,utimesMillisSync:y}}}),ve=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/util/stat.js"(c,r){"use strict";q();var e=H(),i=require("path"),n=10,b=5,_=0,a=process.versions.node.split("."),o=Number.parseInt(a[0],10),y=Number.parseInt(a[1],10),l=Number.parseInt(a[2],10);function u(){if(o>n)return!0;if(o===n){if(y>b)return!0;if(y===b&&l>=_)return!0}return!1}function f(x,s,m){u()?e.stat(x,{bigint:!0},(v,O)=>{if(v)return m(v);e.stat(s,{bigint:!0},(E,k)=>E?E.code==="ENOENT"?m(null,{srcStat:O,destStat:null}):m(E):m(null,{srcStat:O,destStat:k}))}):e.stat(x,(v,O)=>{if(v)return m(v);e.stat(s,(E,k)=>E?E.code==="ENOENT"?m(null,{srcStat:O,destStat:null}):m(E):m(null,{srcStat:O,destStat:k}))})}function d(x,s){let m,v;u()?m=e.statSync(x,{bigint:!0}):m=e.statSync(x);try{u()?v=e.statSync(s,{bigint:!0}):v=e.statSync(s)}catch(O){if(O.code==="ENOENT")return{srcStat:m,destStat:null};throw O}return{srcStat:m,destStat:v}}function S(x,s,m,v){f(x,s,(O,E)=>{if(O)return v(O);let{srcStat:k,destStat:j}=E;return j&&j.ino&&j.dev&&j.ino===k.ino&&j.dev===k.dev?v(new Error("Source and destination must not be the same.")):k.isDirectory()&&t(x,s)?v(new Error(p(x,s,m))):v(null,{srcStat:k,destStat:j})})}function F(x,s,m){let{srcStat:v,destStat:O}=d(x,s);if(O&&O.ino&&O.dev&&O.ino===v.ino&&O.dev===v.dev)throw new Error("Source and destination must not be the same.");if(v.isDirectory()&&t(x,s))throw new Error(p(x,s,m));return{srcStat:v,destStat:O}}function g(x,s,m,v,O){let E=i.resolve(i.dirname(x)),k=i.resolve(i.dirname(m));if(k===E||k===i.parse(k).root)return O();u()?e.stat(k,{bigint:!0},(j,T)=>j?j.code==="ENOENT"?O():O(j):T.ino&&T.dev&&T.ino===s.ino&&T.dev===s.dev?O(new Error(p(x,m,v))):g(x,s,k,v,O)):e.stat(k,(j,T)=>j?j.code==="ENOENT"?O():O(j):T.ino&&T.dev&&T.ino===s.ino&&T.dev===s.dev?O(new Error(p(x,m,v))):g(x,s,k,v,O))}function h(x,s,m,v){let O=i.resolve(i.dirname(x)),E=i.resolve(i.dirname(m));if(E===O||E===i.parse(E).root)return;let k;try{u()?k=e.statSync(E,{bigint:!0}):k=e.statSync(E)}catch(j){if(j.code==="ENOENT")return;throw j}if(k.ino&&k.dev&&k.ino===s.ino&&k.dev===s.dev)throw new Error(p(x,m,v));return h(x,s,E,v)}function t(x,s){let m=i.resolve(x).split(i.sep).filter(O=>O),v=i.resolve(s).split(i.sep).filter(O=>O);return m.reduce((O,E,k)=>O&&v[k]===E,!0)}function p(x,s,m){return`Cannot ${m} '${x}' to a subdirectory of itself, '${s}'.`}r.exports={checkPaths:S,checkPathsSync:F,checkParentPaths:g,checkParentPathsSync:h,isSrcSubdir:t}}}),Er=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/util/buffer.js"(c,r){"use strict";q(),r.exports=function(e){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(e)}catch{return new Buffer(e)}return new Buffer(e)}}}),kr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/copy-sync/copy-sync.js"(c,r){"use strict";q();var e=H(),i=require("path"),n=oe().mkdirsSync,b=Ie().utimesMillisSync,_=ve();function a(s,m,v){typeof v=="function"&&(v={filter:v}),v=v||{},v.clobber="clobber"in v?!!v.clobber:!0,v.overwrite="overwrite"in v?!!v.overwrite:v.clobber,v.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
2
+ "use strict";var ir=Object.create;var Le=Object.defineProperty;var or=Object.getOwnPropertyDescriptor;var ur=Object.getOwnPropertyNames;var sr=Object.getPrototypeOf,ar=Object.prototype.hasOwnProperty;var cr=(s,r)=>()=>(s&&(r=s(s=0)),r);var fr=(s,r)=>()=>(r||s((r={exports:{}}).exports,r),r.exports);var lr=(s,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of ur(r))!ar.call(s,t)&&t!==e&&Le(s,t,{get:()=>r[t],enumerable:!(i=or(r,t))||i.enumerable});return s};var me=(s,r,e)=>(e=s!=null?ir(sr(s)):{},lr(r||!s||!s.__esModule?Le(e,"default",{value:s,enumerable:!0}):e,s));var Y=cr(()=>{});var Ue=fr((Et,Je)=>{"use strict";Y();var pr=Object.create,he=Object.defineProperty,mr=Object.getOwnPropertyDescriptor,xe=Object.getOwnPropertyNames,dr=Object.getPrototypeOf,yr=Object.prototype.hasOwnProperty,hr=(s,r)=>function(){return s&&(r=(0,s[xe(s)[0]])(s=0)),r},D=(s,r)=>function(){return r||(0,s[xe(s)[0]])((r={exports:{}}).exports,r),r.exports},vr=(s,r)=>{for(var e in r)he(s,e,{get:r[e],enumerable:!0})},qe=(s,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of xe(r))!yr.call(s,t)&&t!==e&&he(s,t,{get:()=>r[t],enumerable:!(i=mr(r,t))||i.enumerable});return s},le=(s,r,e)=>(e=s!=null?pr(dr(s)):{},qe(r||!s||!s.__esModule?he(e,"default",{value:s,enumerable:!0}):e,s)),gr=s=>qe(he({},"__esModule",{value:!0}),s),L=hr({"../../node_modules/.pnpm/tsup@5.12.9_typescript@4.7.4/node_modules/tsup/assets/cjs_shims.js"(){}}),_r=D({"../../node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/typeof.js"(s,r){L();function e(i){return r.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r.exports.__esModule=!0,r.exports.default=r.exports,e(i)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports}}),wr=D({"../../node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/regeneratorRuntime.js"(s,r){L();var e=_r().default;function i(){"use strict";r.exports=i=function(){return t},r.exports.__esModule=!0,r.exports.default=r.exports;var t={},E=Object.prototype,y=E.hasOwnProperty,c=typeof Symbol=="function"?Symbol:{},o=c.iterator||"@@iterator",p=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function u(N,_,T){return Object.defineProperty(N,_,{value:T,enumerable:!0,configurable:!0,writable:!0}),N[_]}try{u({},"")}catch{u=function(T,R,M){return T[R]=M}}function f(N,_,T,R){var M=_&&_.prototype instanceof F?_:F,q=Object.create(M.prototype),J=new b(R||[]);return q._invoke=function(H,ne,W){var Q="suspendedStart";return function(ie,fe){if(Q==="executing")throw new Error("Generator is already running");if(Q==="completed"){if(ie==="throw")throw fe;return I()}for(W.method=ie,W.arg=fe;;){var C=W.delegate;if(C){var $=j(C,W);if($){if($===w)continue;return $}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(Q==="suspendedStart")throw Q="completed",W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);Q="executing";var A=m(H,ne,W);if(A.type==="normal"){if(Q=W.done?"completed":"suspendedYield",A.arg===w)continue;return{value:A.arg,done:W.done}}A.type==="throw"&&(Q="completed",W.method="throw",W.arg=A.arg)}}}(N,T,J),q}function m(N,_,T){try{return{type:"normal",arg:N.call(_,T)}}catch(R){return{type:"throw",arg:R}}}t.wrap=f;var w={};function F(){}function S(){}function v(){}var n={};u(n,o,function(){return this});var d=Object.getPrototypeOf,x=d&&d(d(P([])));x&&x!==E&&y.call(x,o)&&(n=x);var a=v.prototype=F.prototype=Object.create(n);function h(N){["next","throw","return"].forEach(function(_){u(N,_,function(T){return this._invoke(_,T)})})}function g(N,_){function T(M,q,J,H){var ne=m(N[M],N,q);if(ne.type!=="throw"){var W=ne.arg,Q=W.value;return Q&&e(Q)=="object"&&y.call(Q,"__await")?_.resolve(Q.__await).then(function(ie){T("next",ie,J,H)},function(ie){T("throw",ie,J,H)}):_.resolve(Q).then(function(ie){W.value=ie,J(W)},function(ie){return T("throw",ie,J,H)})}H(ne.arg)}var R;this._invoke=function(M,q){function J(){return new _(function(H,ne){T(M,q,H,ne)})}return R=R?R.then(J,J):J()}}function j(N,_){var T=N.iterator[_.method];if(T===void 0){if(_.delegate=null,_.method==="throw"){if(N.iterator.return&&(_.method="return",_.arg=void 0,j(N,_),_.method==="throw"))return w;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return w}var R=m(T,N.iterator,_.arg);if(R.type==="throw")return _.method="throw",_.arg=R.arg,_.delegate=null,w;var M=R.arg;return M?M.done?(_[N.resultName]=M.value,_.next=N.nextLoc,_.method!=="return"&&(_.method="next",_.arg=void 0),_.delegate=null,w):M:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,w)}function k(N){var _={tryLoc:N[0]};1 in N&&(_.catchLoc=N[1]),2 in N&&(_.finallyLoc=N[2],_.afterLoc=N[3]),this.tryEntries.push(_)}function O(N){var _=N.completion||{};_.type="normal",delete _.arg,N.completion=_}function b(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(k,this),this.reset(!0)}function P(N){if(N){var _=N[o];if(_)return _.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var T=-1,R=function M(){for(;++T<N.length;)if(y.call(N,T))return M.value=N[T],M.done=!1,M;return M.value=void 0,M.done=!0,M};return R.next=R}}return{next:I}}function I(){return{value:void 0,done:!0}}return S.prototype=v,u(a,"constructor",v),u(v,"constructor",S),S.displayName=u(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(N){var _=typeof N=="function"&&N.constructor;return!!_&&(_===S||(_.displayName||_.name)==="GeneratorFunction")},t.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,v):(N.__proto__=v,u(N,l,"GeneratorFunction")),N.prototype=Object.create(a),N},t.awrap=function(N){return{__await:N}},h(g.prototype),u(g.prototype,p,function(){return this}),t.AsyncIterator=g,t.async=function(N,_,T,R,M){M===void 0&&(M=Promise);var q=new g(f(N,_,T,R),M);return t.isGeneratorFunction(_)?q:q.next().then(function(J){return J.done?J.value:q.next()})},h(a),u(a,l,"Generator"),u(a,o,function(){return this}),u(a,"toString",function(){return"[object Generator]"}),t.keys=function(N){var _=[];for(var T in N)_.push(T);return _.reverse(),function R(){for(;_.length;){var M=_.pop();if(M in N)return R.value=M,R.done=!1,R}return R.done=!0,R}},t.values=P,b.prototype={constructor:b,reset:function(_){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!_)for(var T in this)T.charAt(0)==="t"&&y.call(this,T)&&!isNaN(+T.slice(1))&&(this[T]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if(_.type==="throw")throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var T=this;function R(W,Q){return J.type="throw",J.arg=_,T.next=W,Q&&(T.method="next",T.arg=void 0),!!Q}for(var M=this.tryEntries.length-1;M>=0;--M){var q=this.tryEntries[M],J=q.completion;if(q.tryLoc==="root")return R("end");if(q.tryLoc<=this.prev){var H=y.call(q,"catchLoc"),ne=y.call(q,"finallyLoc");if(H&&ne){if(this.prev<q.catchLoc)return R(q.catchLoc,!0);if(this.prev<q.finallyLoc)return R(q.finallyLoc)}else if(H){if(this.prev<q.catchLoc)return R(q.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<q.finallyLoc)return R(q.finallyLoc)}}}},abrupt:function(_,T){for(var R=this.tryEntries.length-1;R>=0;--R){var M=this.tryEntries[R];if(M.tryLoc<=this.prev&&y.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var q=M;break}}q&&(_==="break"||_==="continue")&&q.tryLoc<=T&&T<=q.finallyLoc&&(q=null);var J=q?q.completion:{};return J.type=_,J.arg=T,q?(this.method="next",this.next=q.finallyLoc,w):this.complete(J)},complete:function(_,T){if(_.type==="throw")throw _.arg;return _.type==="break"||_.type==="continue"?this.next=_.arg:_.type==="return"?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):_.type==="normal"&&T&&(this.next=T),w},finish:function(_){for(var T=this.tryEntries.length-1;T>=0;--T){var R=this.tryEntries[T];if(R.finallyLoc===_)return this.complete(R.completion,R.afterLoc),O(R),w}},catch:function(_){for(var T=this.tryEntries.length-1;T>=0;--T){var R=this.tryEntries[T];if(R.tryLoc===_){var M=R.completion;if(M.type==="throw"){var q=M.arg;O(R)}return q}}throw new Error("illegal catch attempt")},delegateYield:function(_,T,R){return this.delegate={iterator:P(_),resultName:T,nextLoc:R},this.method==="next"&&(this.arg=void 0),w}},t}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports}}),Sr=D({"../../node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/regenerator/index.js"(s,r){L();var e=wr()();r.exports=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}}),xr=D({"../../node_modules/.pnpm/p-try@2.2.0/node_modules/p-try/index.js"(s,r){"use strict";L();var e=(i,...t)=>new Promise(E=>{E(i(...t))});r.exports=e,r.exports.default=e}}),Er=D({"../../node_modules/.pnpm/p-limit@2.3.0/node_modules/p-limit/index.js"(s,r){"use strict";L();var e=xr(),i=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let E=[],y=0,c=()=>{y--,E.length>0&&E.shift()()},o=(u,f,...m)=>{y++;let w=e(u,...m);f(w),w.then(c,c)},p=(u,f,...m)=>{y<t?o(u,f,...m):E.push(o.bind(null,u,f,...m))},l=(u,...f)=>new Promise(m=>p(u,m,...f));return Object.defineProperties(l,{activeCount:{get:()=>y},pendingCount:{get:()=>E.length},clearQueue:{value:()=>{E.length=0}}}),l};r.exports=i,r.exports.default=i}}),kr=D({"../../node_modules/.pnpm/p-locate@4.1.0/node_modules/p-locate/index.js"(s,r){"use strict";L();var e=Er(),i=class extends Error{constructor(c){super(),this.value=c}},t=async(c,o)=>o(await c),E=async c=>{let o=await Promise.all(c);if(o[1]===!0)throw new i(o[0]);return!1},y=async(c,o,p)=>{p={concurrency:1/0,preserveOrder:!0,...p};let l=e(p.concurrency),u=[...c].map(m=>[m,l(t,m,o)]),f=e(p.preserveOrder?1:1/0);try{await Promise.all(u.map(m=>f(E,m)))}catch(m){if(m instanceof i)return m.value;throw m}};r.exports=y,r.exports.default=y}}),Or=D({"../../node_modules/.pnpm/locate-path@5.0.0/node_modules/locate-path/index.js"(s,r){"use strict";L();var e=require("path"),i=require("fs"),{promisify:t}=require("util"),E=kr(),y=t(i.stat),c=t(i.lstat),o={directory:"isDirectory",file:"isFile"};function p({type:u}){if(!(u in o))throw new Error(`Invalid type specified: ${u}`)}var l=(u,f)=>u===void 0||f[o[u]]();r.exports=async(u,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},p(f);let m=f.allowSymlinks?y:c;return E(u,async w=>{try{let F=await m(e.resolve(f.cwd,w));return l(f.type,F)}catch{return!1}},f)},r.exports.sync=(u,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},p(f);let m=f.allowSymlinks?i.statSync:i.lstatSync;for(let w of u)try{let F=m(e.resolve(f.cwd,w));if(l(f.type,F))return w}catch{}}}}),jr=D({"../../node_modules/.pnpm/path-exists@4.0.0/node_modules/path-exists/index.js"(s,r){"use strict";L();var e=require("fs"),{promisify:i}=require("util"),t=i(e.access);r.exports=async E=>{try{return await t(E),!0}catch{return!1}},r.exports.sync=E=>{try{return e.accessSync(E),!0}catch{return!1}}}}),br=D({"../../node_modules/.pnpm/find-up@4.1.0/node_modules/find-up/index.js"(s,r){"use strict";L();var e=require("path"),i=Or(),t=jr(),E=Symbol("findUp.stop");r.exports=async(y,c={})=>{let o=e.resolve(c.cwd||""),{root:p}=e.parse(o),l=[].concat(y),u=async f=>{if(typeof y!="function")return i(l,f);let m=await y(f.cwd);return typeof m=="string"?i([m],f):m};for(;;){let f=await u({...c,cwd:o});if(f===E)return;if(f)return e.resolve(o,f);if(o===p)return;o=e.dirname(o)}},r.exports.sync=(y,c={})=>{let o=e.resolve(c.cwd||""),{root:p}=e.parse(o),l=[].concat(y),u=f=>{if(typeof y!="function")return i.sync(l,f);let m=y(f.cwd);return typeof m=="string"?i.sync([m],f):m};for(;;){let f=u({...c,cwd:o});if(f===E)return;if(f)return e.resolve(o,f);if(o===p)return;o=e.dirname(o)}},r.exports.exists=t,r.exports.sync.exists=t.sync,r.exports.stop=E}}),te=D({"../../node_modules/.pnpm/universalify@0.1.2/node_modules/universalify/index.js"(s){"use strict";L(),s.fromCallback=function(r){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")r.apply(this,arguments);else return new Promise((e,i)=>{arguments[arguments.length]=(t,E)=>{if(t)return i(t);e(E)},arguments.length++,r.apply(this,arguments)})},"name",{value:r.name})},s.fromPromise=function(r){return Object.defineProperty(function(){let e=arguments[arguments.length-1];if(typeof e!="function")return r.apply(this,arguments);r.apply(this,arguments).then(i=>e(null,i),e)},"name",{value:r.name})}}}),Nr=D({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(s,r){L();var e=require("constants"),i=process.cwd,t=null,E=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return t||(t=i.call(process)),t};try{process.cwd()}catch{}typeof process.chdir=="function"&&(y=process.chdir,process.chdir=function(o){t=null,y.call(process,o)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,y));var y;r.exports=c;function c(o){e.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&p(o),o.lutimes||l(o),o.chown=m(o.chown),o.fchown=m(o.fchown),o.lchown=m(o.lchown),o.chmod=u(o.chmod),o.fchmod=u(o.fchmod),o.lchmod=u(o.lchmod),o.chownSync=w(o.chownSync),o.fchownSync=w(o.fchownSync),o.lchownSync=w(o.lchownSync),o.chmodSync=f(o.chmodSync),o.fchmodSync=f(o.fchmodSync),o.lchmodSync=f(o.lchmodSync),o.stat=F(o.stat),o.fstat=F(o.fstat),o.lstat=F(o.lstat),o.statSync=S(o.statSync),o.fstatSync=S(o.fstatSync),o.lstatSync=S(o.lstatSync),o.chmod&&!o.lchmod&&(o.lchmod=function(n,d,x){x&&process.nextTick(x)},o.lchmodSync=function(){}),o.chown&&!o.lchown&&(o.lchown=function(n,d,x,a){a&&process.nextTick(a)},o.lchownSync=function(){}),E==="win32"&&(o.rename=typeof o.rename!="function"?o.rename:function(n){function d(x,a,h){var g=Date.now(),j=0;n(x,a,function k(O){if(O&&(O.code==="EACCES"||O.code==="EPERM")&&Date.now()-g<6e4){setTimeout(function(){o.stat(a,function(b,P){b&&b.code==="ENOENT"?n(x,a,k):h(O)})},j),j<100&&(j+=10);return}h&&h(O)})}return Object.setPrototypeOf&&Object.setPrototypeOf(d,n),d}(o.rename)),o.read=typeof o.read!="function"?o.read:function(n){function d(x,a,h,g,j,k){var O;if(k&&typeof k=="function"){var b=0;O=function(P,I,N){if(P&&P.code==="EAGAIN"&&b<10)return b++,n.call(o,x,a,h,g,j,O);k.apply(this,arguments)}}return n.call(o,x,a,h,g,j,O)}return Object.setPrototypeOf&&Object.setPrototypeOf(d,n),d}(o.read),o.readSync=typeof o.readSync!="function"?o.readSync:function(n){return function(d,x,a,h,g){for(var j=0;;)try{return n.call(o,d,x,a,h,g)}catch(k){if(k.code==="EAGAIN"&&j<10){j++;continue}throw k}}}(o.readSync);function p(n){n.lchmod=function(d,x,a){n.open(d,e.O_WRONLY|e.O_SYMLINK,x,function(h,g){if(h){a&&a(h);return}n.fchmod(g,x,function(j){n.close(g,function(k){a&&a(j||k)})})})},n.lchmodSync=function(d,x){var a=n.openSync(d,e.O_WRONLY|e.O_SYMLINK,x),h=!0,g;try{g=n.fchmodSync(a,x),h=!1}finally{if(h)try{n.closeSync(a)}catch{}else n.closeSync(a)}return g}}function l(n){e.hasOwnProperty("O_SYMLINK")&&n.futimes?(n.lutimes=function(d,x,a,h){n.open(d,e.O_SYMLINK,function(g,j){if(g){h&&h(g);return}n.futimes(j,x,a,function(k){n.close(j,function(O){h&&h(k||O)})})})},n.lutimesSync=function(d,x,a){var h=n.openSync(d,e.O_SYMLINK),g,j=!0;try{g=n.futimesSync(h,x,a),j=!1}finally{if(j)try{n.closeSync(h)}catch{}else n.closeSync(h)}return g}):n.futimes&&(n.lutimes=function(d,x,a,h){h&&process.nextTick(h)},n.lutimesSync=function(){})}function u(n){return n&&function(d,x,a){return n.call(o,d,x,function(h){v(h)&&(h=null),a&&a.apply(this,arguments)})}}function f(n){return n&&function(d,x){try{return n.call(o,d,x)}catch(a){if(!v(a))throw a}}}function m(n){return n&&function(d,x,a,h){return n.call(o,d,x,a,function(g){v(g)&&(g=null),h&&h.apply(this,arguments)})}}function w(n){return n&&function(d,x,a){try{return n.call(o,d,x,a)}catch(h){if(!v(h))throw h}}}function F(n){return n&&function(d,x,a){typeof x=="function"&&(a=x,x=null);function h(g,j){j&&(j.uid<0&&(j.uid+=4294967296),j.gid<0&&(j.gid+=4294967296)),a&&a.apply(this,arguments)}return x?n.call(o,d,x,h):n.call(o,d,h)}}function S(n){return n&&function(d,x){var a=x?n.call(o,d,x):n.call(o,d);return a&&(a.uid<0&&(a.uid+=4294967296),a.gid<0&&(a.gid+=4294967296)),a}}function v(n){if(!n||n.code==="ENOSYS")return!0;var d=!process.getuid||process.getuid()!==0;return!!(d&&(n.code==="EINVAL"||n.code==="EPERM"))}}}}),Fr=D({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(s,r){L();var e=require("stream").Stream;r.exports=i;function i(t){return{ReadStream:E,WriteStream:y};function E(c,o){if(!(this instanceof E))return new E(c,o);e.call(this);var p=this;this.path=c,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var l=Object.keys(o),u=0,f=l.length;u<f;u++){var m=l[u];this[m]=o[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(){p._read()});return}t.open(this.path,this.flags,this.mode,function(w,F){if(w){p.emit("error",w),p.readable=!1;return}p.fd=F,p.emit("open",F),p._read()})}function y(c,o){if(!(this instanceof y))return new y(c,o);e.call(this),this.path=c,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var p=Object.keys(o),l=0,u=p.length;l<u;l++){var f=p[l];this[f]=o[f]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}}),Pr=D({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(s,r){"use strict";L(),r.exports=i;var e=Object.getPrototypeOf||function(t){return t.__proto__};function i(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var E={__proto__:e(t)};else var E=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(y){Object.defineProperty(E,y,Object.getOwnPropertyDescriptor(t,y))}),E}}}),K=D({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(s,r){L();var e=require("fs"),i=Nr(),t=Fr(),E=Pr(),y=require("util"),c,o;typeof Symbol=="function"&&typeof Symbol.for=="function"?(c=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(c="___graceful-fs.queue",o="___graceful-fs.previous");function p(){}function l(n,d){Object.defineProperty(n,c,{get:function(){return d}})}var u=p;y.debuglog?u=y.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(u=function(){var n=y.format.apply(y,arguments);n="GFS4: "+n.split(/\n/).join(`
3
+ GFS4: `),console.error(n)}),e[c]||(f=global[c]||[],l(e,f),e.close=function(n){function d(x,a){return n.call(e,x,function(h){h||S(),typeof a=="function"&&a.apply(this,arguments)})}return Object.defineProperty(d,o,{value:n}),d}(e.close),e.closeSync=function(n){function d(x){n.apply(e,arguments),S()}return Object.defineProperty(d,o,{value:n}),d}(e.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){u(e[c]),require("assert").equal(e[c].length,0)}));var f;global[c]||l(global,e[c]),r.exports=m(E(e)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!e.__patched&&(r.exports=m(e),e.__patched=!0);function m(n){i(n),n.gracefulify=m,n.createReadStream=W,n.createWriteStream=Q;var d=n.readFile;n.readFile=x;function x(C,$,A){return typeof $=="function"&&(A=$,$=null),z(C,$,A);function z(Z,X,B,V){return d(Z,X,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?w([z,[Z,X,B],G,V||Date.now(),Date.now()]):typeof B=="function"&&B.apply(this,arguments)})}}var a=n.writeFile;n.writeFile=h;function h(C,$,A,z){return typeof A=="function"&&(z=A,A=null),Z(C,$,A,z);function Z(X,B,V,G,ee){return a(X,B,V,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?w([Z,[X,B,V,G],U,ee||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var g=n.appendFile;g&&(n.appendFile=j);function j(C,$,A,z){return typeof A=="function"&&(z=A,A=null),Z(C,$,A,z);function Z(X,B,V,G,ee){return g(X,B,V,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?w([Z,[X,B,V,G],U,ee||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var k=n.copyFile;k&&(n.copyFile=O);function O(C,$,A,z){return typeof A=="function"&&(z=A,A=0),Z(C,$,A,z);function Z(X,B,V,G,ee){return k(X,B,V,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?w([Z,[X,B,V,G],U,ee||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var b=n.readdir;n.readdir=I;var P=/^v[0-5]\./;function I(C,$,A){typeof $=="function"&&(A=$,$=null);var z=P.test(process.version)?function(B,V,G,ee){return b(B,Z(B,V,G,ee))}:function(B,V,G,ee){return b(B,V,Z(B,V,G,ee))};return z(C,$,A);function Z(X,B,V,G){return function(ee,U){ee&&(ee.code==="EMFILE"||ee.code==="ENFILE")?w([z,[X,B,V],ee,G||Date.now(),Date.now()]):(U&&U.sort&&U.sort(),typeof V=="function"&&V.call(this,ee,U))}}}if(process.version.substr(0,4)==="v0.8"){var N=t(n);q=N.ReadStream,H=N.WriteStream}var _=n.ReadStream;_&&(q.prototype=Object.create(_.prototype),q.prototype.open=J);var T=n.WriteStream;T&&(H.prototype=Object.create(T.prototype),H.prototype.open=ne),Object.defineProperty(n,"ReadStream",{get:function(){return q},set:function(C){q=C},enumerable:!0,configurable:!0}),Object.defineProperty(n,"WriteStream",{get:function(){return H},set:function(C){H=C},enumerable:!0,configurable:!0});var R=q;Object.defineProperty(n,"FileReadStream",{get:function(){return R},set:function(C){R=C},enumerable:!0,configurable:!0});var M=H;Object.defineProperty(n,"FileWriteStream",{get:function(){return M},set:function(C){M=C},enumerable:!0,configurable:!0});function q(C,$){return this instanceof q?(_.apply(this,arguments),this):q.apply(Object.create(q.prototype),arguments)}function J(){var C=this;fe(C.path,C.flags,C.mode,function($,A){$?(C.autoClose&&C.destroy(),C.emit("error",$)):(C.fd=A,C.emit("open",A),C.read())})}function H(C,$){return this instanceof H?(T.apply(this,arguments),this):H.apply(Object.create(H.prototype),arguments)}function ne(){var C=this;fe(C.path,C.flags,C.mode,function($,A){$?(C.destroy(),C.emit("error",$)):(C.fd=A,C.emit("open",A))})}function W(C,$){return new n.ReadStream(C,$)}function Q(C,$){return new n.WriteStream(C,$)}var ie=n.open;n.open=fe;function fe(C,$,A,z){return typeof A=="function"&&(z=A,A=null),Z(C,$,A,z);function Z(X,B,V,G,ee){return ie(X,B,V,function(U,_t){U&&(U.code==="EMFILE"||U.code==="ENFILE")?w([Z,[X,B,V,G],U,ee||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}return n}function w(n){u("ENQUEUE",n[0].name,n[1]),e[c].push(n),v()}var F;function S(){for(var n=Date.now(),d=0;d<e[c].length;++d)e[c][d].length>2&&(e[c][d][3]=n,e[c][d][4]=n);v()}function v(){if(clearTimeout(F),F=void 0,e[c].length!==0){var n=e[c].shift(),d=n[0],x=n[1],a=n[2],h=n[3],g=n[4];if(h===void 0)u("RETRY",d.name,x),d.apply(null,x);else if(Date.now()-h>=6e4){u("TIMEOUT",d.name,x);var j=x.pop();typeof j=="function"&&j.call(null,a)}else{var k=Date.now()-g,O=Math.max(g-h,1),b=Math.min(O*1.2,100);k>=b?(u("RETRY",d.name,x),d.apply(null,x.concat([h]))):e[c].push(n)}F===void 0&&(F=setTimeout(v,0))}}}}),De=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/fs/index.js"(s){"use strict";L();var r=te().fromCallback,e=K(),i=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof e[t]=="function");Object.keys(e).forEach(t=>{t!=="promises"&&(s[t]=e[t])}),i.forEach(t=>{s[t]=r(e[t])}),s.exists=function(t,E){return typeof E=="function"?e.exists(t,E):new Promise(y=>e.exists(t,y))},s.read=function(t,E,y,c,o,p){return typeof p=="function"?e.read(t,E,y,c,o,p):new Promise((l,u)=>{e.read(t,E,y,c,o,(f,m,w)=>{if(f)return u(f);l({bytesRead:m,buffer:w})})})},s.write=function(t,E,...y){return typeof y[y.length-1]=="function"?e.write(t,E,...y):new Promise((c,o)=>{e.write(t,E,...y,(p,l,u)=>{if(p)return o(p);c({bytesWritten:l,buffer:u})})})},typeof e.realpath.native=="function"&&(s.realpath.native=r(e.realpath.native))}}),Ce=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/mkdirs/win32.js"(s,r){"use strict";L();var e=require("path");function i(y){return y=e.normalize(e.resolve(y)).split(e.sep),y.length>0?y[0]:null}var t=/[<>:"|?*]/;function E(y){let c=i(y);return y=y.replace(c,""),t.test(y)}r.exports={getRootPath:i,invalidWin32Path:E}}}),Tr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/mkdirs/mkdirs.js"(s,r){"use strict";L();var e=K(),i=require("path"),t=Ce().invalidWin32Path,E=parseInt("0777",8);function y(c,o,p,l){if(typeof o=="function"?(p=o,o={}):(!o||typeof o!="object")&&(o={mode:o}),process.platform==="win32"&&t(c)){let m=new Error(c+" contains invalid WIN32 path characters.");return m.code="EINVAL",p(m)}let u=o.mode,f=o.fs||e;u===void 0&&(u=E&~process.umask()),l||(l=null),p=p||function(){},c=i.resolve(c),f.mkdir(c,u,m=>{if(!m)return l=l||c,p(null,l);switch(m.code){case"ENOENT":if(i.dirname(c)===c)return p(m);y(i.dirname(c),o,(w,F)=>{w?p(w,F):y(c,o,p,F)});break;default:f.stat(c,(w,F)=>{w||!F.isDirectory()?p(m,l):p(null,l)});break}})}r.exports=y}}),Ir=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js"(s,r){"use strict";L();var e=K(),i=require("path"),t=Ce().invalidWin32Path,E=parseInt("0777",8);function y(c,o,p){(!o||typeof o!="object")&&(o={mode:o});let l=o.mode,u=o.fs||e;if(process.platform==="win32"&&t(c)){let f=new Error(c+" contains invalid WIN32 path characters.");throw f.code="EINVAL",f}l===void 0&&(l=E&~process.umask()),p||(p=null),c=i.resolve(c);try{u.mkdirSync(c,l),p=p||c}catch(f){if(f.code==="ENOENT"){if(i.dirname(c)===c)throw f;p=y(i.dirname(c),o,p),y(c,o,p)}else{let m;try{m=u.statSync(c)}catch{throw f}if(!m.isDirectory())throw f}}return p}r.exports=y}}),oe=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/mkdirs/index.js"(s,r){"use strict";L();var e=te().fromCallback,i=e(Tr()),t=Ir();r.exports={mkdirs:i,mkdirsSync:t,mkdirp:i,mkdirpSync:t,ensureDir:i,ensureDirSync:t}}}),Me=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/util/utimes.js"(s,r){"use strict";L();var e=K(),i=require("os"),t=require("path");function E(){let l=t.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));l=t.join(i.tmpdir(),l);let u=new Date(1435410243862);e.writeFileSync(l,"https://github.com/jprichardson/node-fs-extra/pull/141");let f=e.openSync(l,"r+");return e.futimesSync(f,u,u),e.closeSync(f),e.statSync(l).mtime>1435410243e3}function y(l){let u=t.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));u=t.join(i.tmpdir(),u);let f=new Date(1435410243862);e.writeFile(u,"https://github.com/jprichardson/node-fs-extra/pull/141",m=>{if(m)return l(m);e.open(u,"r+",(w,F)=>{if(w)return l(w);e.futimes(F,f,f,S=>{if(S)return l(S);e.close(F,v=>{if(v)return l(v);e.stat(u,(n,d)=>{if(n)return l(n);l(null,d.mtime>1435410243e3)})})})})})}function c(l){if(typeof l=="number")return Math.floor(l/1e3)*1e3;if(l instanceof Date)return new Date(Math.floor(l.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function o(l,u,f,m){e.open(l,"r+",(w,F)=>{if(w)return m(w);e.futimes(F,u,f,S=>{e.close(F,v=>{m&&m(S||v)})})})}function p(l,u,f){let m=e.openSync(l,"r+");return e.futimesSync(m,u,f),e.closeSync(m)}r.exports={hasMillisRes:y,hasMillisResSync:E,timeRemoveMillis:c,utimesMillis:o,utimesMillisSync:p}}}),ve=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/util/stat.js"(s,r){"use strict";L();var e=K(),i=require("path"),t=10,E=5,y=0,c=process.versions.node.split("."),o=Number.parseInt(c[0],10),p=Number.parseInt(c[1],10),l=Number.parseInt(c[2],10);function u(){if(o>t)return!0;if(o===t){if(p>E)return!0;if(p===E&&l>=y)return!0}return!1}function f(x,a,h){u()?e.stat(x,{bigint:!0},(g,j)=>{if(g)return h(g);e.stat(a,{bigint:!0},(k,O)=>k?k.code==="ENOENT"?h(null,{srcStat:j,destStat:null}):h(k):h(null,{srcStat:j,destStat:O}))}):e.stat(x,(g,j)=>{if(g)return h(g);e.stat(a,(k,O)=>k?k.code==="ENOENT"?h(null,{srcStat:j,destStat:null}):h(k):h(null,{srcStat:j,destStat:O}))})}function m(x,a){let h,g;u()?h=e.statSync(x,{bigint:!0}):h=e.statSync(x);try{u()?g=e.statSync(a,{bigint:!0}):g=e.statSync(a)}catch(j){if(j.code==="ENOENT")return{srcStat:h,destStat:null};throw j}return{srcStat:h,destStat:g}}function w(x,a,h,g){f(x,a,(j,k)=>{if(j)return g(j);let{srcStat:O,destStat:b}=k;return b&&b.ino&&b.dev&&b.ino===O.ino&&b.dev===O.dev?g(new Error("Source and destination must not be the same.")):O.isDirectory()&&n(x,a)?g(new Error(d(x,a,h))):g(null,{srcStat:O,destStat:b})})}function F(x,a,h){let{srcStat:g,destStat:j}=m(x,a);if(j&&j.ino&&j.dev&&j.ino===g.ino&&j.dev===g.dev)throw new Error("Source and destination must not be the same.");if(g.isDirectory()&&n(x,a))throw new Error(d(x,a,h));return{srcStat:g,destStat:j}}function S(x,a,h,g,j){let k=i.resolve(i.dirname(x)),O=i.resolve(i.dirname(h));if(O===k||O===i.parse(O).root)return j();u()?e.stat(O,{bigint:!0},(b,P)=>b?b.code==="ENOENT"?j():j(b):P.ino&&P.dev&&P.ino===a.ino&&P.dev===a.dev?j(new Error(d(x,h,g))):S(x,a,O,g,j)):e.stat(O,(b,P)=>b?b.code==="ENOENT"?j():j(b):P.ino&&P.dev&&P.ino===a.ino&&P.dev===a.dev?j(new Error(d(x,h,g))):S(x,a,O,g,j))}function v(x,a,h,g){let j=i.resolve(i.dirname(x)),k=i.resolve(i.dirname(h));if(k===j||k===i.parse(k).root)return;let O;try{u()?O=e.statSync(k,{bigint:!0}):O=e.statSync(k)}catch(b){if(b.code==="ENOENT")return;throw b}if(O.ino&&O.dev&&O.ino===a.ino&&O.dev===a.dev)throw new Error(d(x,h,g));return v(x,a,k,g)}function n(x,a){let h=i.resolve(x).split(i.sep).filter(j=>j),g=i.resolve(a).split(i.sep).filter(j=>j);return h.reduce((j,k,O)=>j&&g[O]===k,!0)}function d(x,a,h){return`Cannot ${h} '${x}' to a subdirectory of itself, '${a}'.`}r.exports={checkPaths:w,checkPathsSync:F,checkParentPaths:S,checkParentPathsSync:v,isSrcSubdir:n}}}),Rr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/util/buffer.js"(s,r){"use strict";L(),r.exports=function(e){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(e)}catch{return new Buffer(e)}return new Buffer(e)}}}),Lr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/copy-sync/copy-sync.js"(s,r){"use strict";L();var e=K(),i=require("path"),t=oe().mkdirsSync,E=Me().utimesMillisSync,y=ve();function c(a,h,g){typeof g=="function"&&(g={filter:g}),g=g||{},g.clobber="clobber"in g?!!g.clobber:!0,g.overwrite="overwrite"in g?!!g.overwrite:g.clobber,g.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
4
4
 
5
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:O,destStat:E}=_.checkPathsSync(s,m,"copy");return _.checkParentPathsSync(s,O,m,"copy"),o(E,s,m,v)}function o(s,m,v,O){if(O.filter&&!O.filter(m,v))return;let E=i.dirname(v);return e.existsSync(E)||n(E),y(s,m,v,O)}function y(s,m,v,O){if(!(O.filter&&!O.filter(m,v)))return l(s,m,v,O)}function l(s,m,v,O){let k=(O.dereference?e.statSync:e.lstatSync)(m);if(k.isDirectory())return F(k,s,m,v,O);if(k.isFile()||k.isCharacterDevice()||k.isBlockDevice())return u(k,s,m,v,O);if(k.isSymbolicLink())return p(s,m,v,O)}function u(s,m,v,O,E){return m?f(s,v,O,E):d(s,v,O,E)}function f(s,m,v,O){if(O.overwrite)return e.unlinkSync(v),d(s,m,v,O);if(O.errorOnExist)throw new Error(`'${v}' already exists`)}function d(s,m,v,O){return typeof e.copyFileSync=="function"?(e.copyFileSync(m,v),e.chmodSync(v,s.mode),O.preserveTimestamps?b(v,s.atime,s.mtime):void 0):S(s,m,v,O)}function S(s,m,v,O){let k=Er()(65536),j=e.openSync(m,"r"),T=e.openSync(v,"w",s.mode),I=0;for(;I<s.size;){let P=e.readSync(j,k,0,65536,I);e.writeSync(T,k,0,P),I+=P}O.preserveTimestamps&&e.futimesSync(T,s.atime,s.mtime),e.closeSync(j),e.closeSync(T)}function F(s,m,v,O,E){if(!m)return g(s,v,O,E);if(m&&!m.isDirectory())throw new Error(`Cannot overwrite non-directory '${O}' with directory '${v}'.`);return h(v,O,E)}function g(s,m,v,O){return e.mkdirSync(v),h(m,v,O),e.chmodSync(v,s.mode)}function h(s,m,v){e.readdirSync(s).forEach(O=>t(O,s,m,v))}function t(s,m,v,O){let E=i.join(m,s),k=i.join(v,s),{destStat:j}=_.checkPathsSync(E,k,"copy");return y(j,E,k,O)}function p(s,m,v,O){let E=e.readlinkSync(m);if(O.dereference&&(E=i.resolve(process.cwd(),E)),s){let k;try{k=e.readlinkSync(v)}catch(j){if(j.code==="EINVAL"||j.code==="UNKNOWN")return e.symlinkSync(E,v);throw j}if(O.dereference&&(k=i.resolve(process.cwd(),k)),_.isSrcSubdir(E,k))throw new Error(`Cannot copy '${E}' to a subdirectory of itself, '${k}'.`);if(e.statSync(v).isDirectory()&&_.isSrcSubdir(k,E))throw new Error(`Cannot overwrite '${k}' with '${E}'.`);return x(E,v)}else return e.symlinkSync(E,v)}function x(s,m){return e.unlinkSync(m),e.symlinkSync(s,m)}r.exports=a}}),Le=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/copy-sync/index.js"(c,r){"use strict";q(),r.exports={copySync:kr()}}}),ue=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/path-exists/index.js"(c,r){"use strict";q();var e=te().fromPromise,i=Te();function n(b){return i.access(b).then(()=>!0).catch(()=>!1)}r.exports={pathExists:e(n),pathExistsSync:i.existsSync}}}),Or=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/copy/copy.js"(c,r){"use strict";q();var e=H(),i=require("path"),n=oe().mkdirs,b=ue().pathExists,_=Ie().utimesMillis,a=ve();function o(E,k,j,T){typeof j=="function"&&!T?(T=j,j={}):typeof j=="function"&&(j={filter:j}),T=T||function(){},j=j||{},j.clobber="clobber"in j?!!j.clobber:!0,j.overwrite="overwrite"in j?!!j.overwrite:j.clobber,j.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
5
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:j,destStat:k}=y.checkPathsSync(a,h,"copy");return y.checkParentPathsSync(a,j,h,"copy"),o(k,a,h,g)}function o(a,h,g,j){if(j.filter&&!j.filter(h,g))return;let k=i.dirname(g);return e.existsSync(k)||t(k),p(a,h,g,j)}function p(a,h,g,j){if(!(j.filter&&!j.filter(h,g)))return l(a,h,g,j)}function l(a,h,g,j){let O=(j.dereference?e.statSync:e.lstatSync)(h);if(O.isDirectory())return F(O,a,h,g,j);if(O.isFile()||O.isCharacterDevice()||O.isBlockDevice())return u(O,a,h,g,j);if(O.isSymbolicLink())return d(a,h,g,j)}function u(a,h,g,j,k){return h?f(a,g,j,k):m(a,g,j,k)}function f(a,h,g,j){if(j.overwrite)return e.unlinkSync(g),m(a,h,g,j);if(j.errorOnExist)throw new Error(`'${g}' already exists`)}function m(a,h,g,j){return typeof e.copyFileSync=="function"?(e.copyFileSync(h,g),e.chmodSync(g,a.mode),j.preserveTimestamps?E(g,a.atime,a.mtime):void 0):w(a,h,g,j)}function w(a,h,g,j){let O=Rr()(65536),b=e.openSync(h,"r"),P=e.openSync(g,"w",a.mode),I=0;for(;I<a.size;){let N=e.readSync(b,O,0,65536,I);e.writeSync(P,O,0,N),I+=N}j.preserveTimestamps&&e.futimesSync(P,a.atime,a.mtime),e.closeSync(b),e.closeSync(P)}function F(a,h,g,j,k){if(!h)return S(a,g,j,k);if(h&&!h.isDirectory())throw new Error(`Cannot overwrite non-directory '${j}' with directory '${g}'.`);return v(g,j,k)}function S(a,h,g,j){return e.mkdirSync(g),v(h,g,j),e.chmodSync(g,a.mode)}function v(a,h,g){e.readdirSync(a).forEach(j=>n(j,a,h,g))}function n(a,h,g,j){let k=i.join(h,a),O=i.join(g,a),{destStat:b}=y.checkPathsSync(k,O,"copy");return p(b,k,O,j)}function d(a,h,g,j){let k=e.readlinkSync(h);if(j.dereference&&(k=i.resolve(process.cwd(),k)),a){let O;try{O=e.readlinkSync(g)}catch(b){if(b.code==="EINVAL"||b.code==="UNKNOWN")return e.symlinkSync(k,g);throw b}if(j.dereference&&(O=i.resolve(process.cwd(),O)),y.isSrcSubdir(k,O))throw new Error(`Cannot copy '${k}' to a subdirectory of itself, '${O}'.`);if(e.statSync(g).isDirectory()&&y.isSrcSubdir(O,k))throw new Error(`Cannot overwrite '${O}' with '${k}'.`);return x(k,g)}else return e.symlinkSync(k,g)}function x(a,h){return e.unlinkSync(h),e.symlinkSync(a,h)}r.exports=c}}),Ae=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/copy-sync/index.js"(s,r){"use strict";L(),r.exports={copySync:Lr()}}}),ue=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/path-exists/index.js"(s,r){"use strict";L();var e=te().fromPromise,i=De();function t(E){return i.access(E).then(()=>!0).catch(()=>!1)}r.exports={pathExists:e(t),pathExistsSync:i.existsSync}}}),qr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/copy/copy.js"(s,r){"use strict";L();var e=K(),i=require("path"),t=oe().mkdirs,E=ue().pathExists,y=Me().utimesMillis,c=ve();function o(k,O,b,P){typeof b=="function"&&!P?(P=b,b={}):typeof b=="function"&&(b={filter:b}),P=P||function(){},b=b||{},b.clobber="clobber"in b?!!b.clobber:!0,b.overwrite="overwrite"in b?!!b.overwrite:b.clobber,b.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
6
6
 
7
- see https://github.com/jprichardson/node-fs-extra/issues/269`),a.checkPaths(E,k,"copy",(I,P)=>{if(I)return T(I);let{srcStat:w,destStat:N}=P;a.checkParentPaths(E,w,k,"copy",L=>L?T(L):j.filter?l(y,N,E,k,j,T):y(N,E,k,j,T))})}function y(E,k,j,T,I){let P=i.dirname(j);b(P,(w,N)=>{if(w)return I(w);if(N)return u(E,k,j,T,I);n(P,L=>L?I(L):u(E,k,j,T,I))})}function l(E,k,j,T,I,P){Promise.resolve(I.filter(j,T)).then(w=>w?E(k,j,T,I,P):P(),w=>P(w))}function u(E,k,j,T,I){return T.filter?l(f,E,k,j,T,I):f(E,k,j,T,I)}function f(E,k,j,T,I){(T.dereference?e.stat:e.lstat)(k,(w,N)=>{if(w)return I(w);if(N.isDirectory())return t(N,E,k,j,T,I);if(N.isFile()||N.isCharacterDevice()||N.isBlockDevice())return d(N,E,k,j,T,I);if(N.isSymbolicLink())return v(E,k,j,T,I)})}function d(E,k,j,T,I,P){return k?S(E,j,T,I,P):F(E,j,T,I,P)}function S(E,k,j,T,I){if(T.overwrite)e.unlink(j,P=>P?I(P):F(E,k,j,T,I));else return T.errorOnExist?I(new Error(`'${j}' already exists`)):I()}function F(E,k,j,T,I){return typeof e.copyFile=="function"?e.copyFile(k,j,P=>P?I(P):h(E,j,T,I)):g(E,k,j,T,I)}function g(E,k,j,T,I){let P=e.createReadStream(k);P.on("error",w=>I(w)).once("open",()=>{let w=e.createWriteStream(j,{mode:E.mode});w.on("error",N=>I(N)).on("open",()=>P.pipe(w)).once("close",()=>h(E,j,T,I))})}function h(E,k,j,T){e.chmod(k,E.mode,I=>I?T(I):j.preserveTimestamps?_(k,E.atime,E.mtime,T):T())}function t(E,k,j,T,I,P){return k?k&&!k.isDirectory()?P(new Error(`Cannot overwrite non-directory '${T}' with directory '${j}'.`)):x(j,T,I,P):p(E,j,T,I,P)}function p(E,k,j,T,I){e.mkdir(j,P=>{if(P)return I(P);x(k,j,T,w=>w?I(w):e.chmod(j,E.mode,I))})}function x(E,k,j,T){e.readdir(E,(I,P)=>I?T(I):s(P,E,k,j,T))}function s(E,k,j,T,I){let P=E.pop();return P?m(E,P,k,j,T,I):I()}function m(E,k,j,T,I,P){let w=i.join(j,k),N=i.join(T,k);a.checkPaths(w,N,"copy",(L,C)=>{if(L)return P(L);let{destStat:R}=C;u(R,w,N,I,G=>G?P(G):s(E,j,T,I,P))})}function v(E,k,j,T,I){e.readlink(k,(P,w)=>{if(P)return I(P);if(T.dereference&&(w=i.resolve(process.cwd(),w)),E)e.readlink(j,(N,L)=>N?N.code==="EINVAL"||N.code==="UNKNOWN"?e.symlink(w,j,I):I(N):(T.dereference&&(L=i.resolve(process.cwd(),L)),a.isSrcSubdir(w,L)?I(new Error(`Cannot copy '${w}' to a subdirectory of itself, '${L}'.`)):E.isDirectory()&&a.isSrcSubdir(L,w)?I(new Error(`Cannot overwrite '${L}' with '${w}'.`)):O(w,j,I)));else return e.symlink(w,j,I)})}function O(E,k,j){e.unlink(k,T=>T?j(T):e.symlink(E,k,j))}r.exports=o}}),qe=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/copy/index.js"(c,r){"use strict";q();var e=te().fromCallback;r.exports={copy:e(Or())}}}),jr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/remove/rimraf.js"(c,r){"use strict";q();var e=H(),i=require("path"),n=require("assert"),b=process.platform==="win32";function _(g){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{g[t]=g[t]||e[t],t=t+"Sync",g[t]=g[t]||e[t]}),g.maxBusyTries=g.maxBusyTries||3}function a(g,h,t){let p=0;typeof h=="function"&&(t=h,h={}),n(g,"rimraf: missing path"),n.strictEqual(typeof g,"string","rimraf: path should be a string"),n.strictEqual(typeof t,"function","rimraf: callback function required"),n(h,"rimraf: invalid options argument provided"),n.strictEqual(typeof h,"object","rimraf: options should be object"),_(h),o(g,h,function x(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&p<h.maxBusyTries){p++;let m=p*100;return setTimeout(()=>o(g,h,x),m)}s.code==="ENOENT"&&(s=null)}t(s)})}function o(g,h,t){n(g),n(h),n(typeof t=="function"),h.lstat(g,(p,x)=>{if(p&&p.code==="ENOENT")return t(null);if(p&&p.code==="EPERM"&&b)return y(g,h,p,t);if(x&&x.isDirectory())return u(g,h,p,t);h.unlink(g,s=>{if(s){if(s.code==="ENOENT")return t(null);if(s.code==="EPERM")return b?y(g,h,s,t):u(g,h,s,t);if(s.code==="EISDIR")return u(g,h,s,t)}return t(s)})})}function y(g,h,t,p){n(g),n(h),n(typeof p=="function"),t&&n(t instanceof Error),h.chmod(g,438,x=>{x?p(x.code==="ENOENT"?null:t):h.stat(g,(s,m)=>{s?p(s.code==="ENOENT"?null:t):m.isDirectory()?u(g,h,t,p):h.unlink(g,p)})})}function l(g,h,t){let p;n(g),n(h),t&&n(t instanceof Error);try{h.chmodSync(g,438)}catch(x){if(x.code==="ENOENT")return;throw t}try{p=h.statSync(g)}catch(x){if(x.code==="ENOENT")return;throw t}p.isDirectory()?S(g,h,t):h.unlinkSync(g)}function u(g,h,t,p){n(g),n(h),t&&n(t instanceof Error),n(typeof p=="function"),h.rmdir(g,x=>{x&&(x.code==="ENOTEMPTY"||x.code==="EEXIST"||x.code==="EPERM")?f(g,h,p):x&&x.code==="ENOTDIR"?p(t):p(x)})}function f(g,h,t){n(g),n(h),n(typeof t=="function"),h.readdir(g,(p,x)=>{if(p)return t(p);let s=x.length,m;if(s===0)return h.rmdir(g,t);x.forEach(v=>{a(i.join(g,v),h,O=>{if(!m){if(O)return t(m=O);--s===0&&h.rmdir(g,t)}})})})}function d(g,h){let t;h=h||{},_(h),n(g,"rimraf: missing path"),n.strictEqual(typeof g,"string","rimraf: path should be a string"),n(h,"rimraf: missing options"),n.strictEqual(typeof h,"object","rimraf: options should be object");try{t=h.lstatSync(g)}catch(p){if(p.code==="ENOENT")return;p.code==="EPERM"&&b&&l(g,h,p)}try{t&&t.isDirectory()?S(g,h,null):h.unlinkSync(g)}catch(p){if(p.code==="ENOENT")return;if(p.code==="EPERM")return b?l(g,h,p):S(g,h,p);if(p.code!=="EISDIR")throw p;S(g,h,p)}}function S(g,h,t){n(g),n(h),t&&n(t instanceof Error);try{h.rmdirSync(g)}catch(p){if(p.code==="ENOTDIR")throw t;if(p.code==="ENOTEMPTY"||p.code==="EEXIST"||p.code==="EPERM")F(g,h);else if(p.code!=="ENOENT")throw p}}function F(g,h){if(n(g),n(h),h.readdirSync(g).forEach(t=>d(i.join(g,t),h)),b){let t=Date.now();do try{return h.rmdirSync(g,h)}catch{}while(Date.now()-t<500)}else return h.rmdirSync(g,h)}r.exports=a,a.sync=d}}),_e=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/remove/index.js"(c,r){"use strict";q();var e=te().fromCallback,i=jr();r.exports={remove:e(i),removeSync:i.sync}}}),Pr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/empty/index.js"(c,r){"use strict";q();var e=te().fromCallback,i=H(),n=require("path"),b=oe(),_=_e(),a=e(function(l,u){u=u||function(){},i.readdir(l,(f,d)=>{if(f)return b.mkdirs(l,u);d=d.map(F=>n.join(l,F)),S();function S(){let F=d.pop();if(!F)return u();_.remove(F,g=>{if(g)return u(g);S()})}})});function o(y){let l;try{l=i.readdirSync(y)}catch{return b.mkdirsSync(y)}l.forEach(u=>{u=n.join(y,u),_.removeSync(u)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:a,emptydir:a}}}),br=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/file.js"(c,r){"use strict";q();var e=te().fromCallback,i=require("path"),n=H(),b=oe(),_=ue().pathExists;function a(y,l){function u(){n.writeFile(y,"",f=>{if(f)return l(f);l()})}n.stat(y,(f,d)=>{if(!f&&d.isFile())return l();let S=i.dirname(y);_(S,(F,g)=>{if(F)return l(F);if(g)return u();b.mkdirs(S,h=>{if(h)return l(h);u()})})})}function o(y){let l;try{l=n.statSync(y)}catch{}if(l&&l.isFile())return;let u=i.dirname(y);n.existsSync(u)||b.mkdirsSync(u),n.writeFileSync(y,"")}r.exports={createFile:e(a),createFileSync:o}}}),Fr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/link.js"(c,r){"use strict";q();var e=te().fromCallback,i=require("path"),n=H(),b=oe(),_=ue().pathExists;function a(y,l,u){function f(d,S){n.link(d,S,F=>{if(F)return u(F);u(null)})}_(l,(d,S)=>{if(d)return u(d);if(S)return u(null);n.lstat(y,F=>{if(F)return F.message=F.message.replace("lstat","ensureLink"),u(F);let g=i.dirname(l);_(g,(h,t)=>{if(h)return u(h);if(t)return f(y,l);b.mkdirs(g,p=>{if(p)return u(p);f(y,l)})})})})}function o(y,l){if(n.existsSync(l))return;try{n.lstatSync(y)}catch(S){throw S.message=S.message.replace("lstat","ensureLink"),S}let f=i.dirname(l);return n.existsSync(f)||b.mkdirsSync(f),n.linkSync(y,l)}r.exports={createLink:e(a),createLinkSync:o}}}),Tr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(c,r){"use strict";q();var e=require("path"),i=H(),n=ue().pathExists;function b(a,o,y){if(e.isAbsolute(a))return i.lstat(a,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),y(l)):y(null,{toCwd:a,toDst:a}));{let l=e.dirname(o),u=e.join(l,a);return n(u,(f,d)=>f?y(f):d?y(null,{toCwd:u,toDst:a}):i.lstat(a,S=>S?(S.message=S.message.replace("lstat","ensureSymlink"),y(S)):y(null,{toCwd:a,toDst:e.relative(l,a)})))}}function _(a,o){let y;if(e.isAbsolute(a)){if(y=i.existsSync(a),!y)throw new Error("absolute srcpath does not exist");return{toCwd:a,toDst:a}}else{let l=e.dirname(o),u=e.join(l,a);if(y=i.existsSync(u),y)return{toCwd:u,toDst:a};if(y=i.existsSync(a),!y)throw new Error("relative srcpath does not exist");return{toCwd:a,toDst:e.relative(l,a)}}}r.exports={symlinkPaths:b,symlinkPathsSync:_}}}),Nr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(c,r){"use strict";q();var e=H();function i(b,_,a){if(a=typeof _=="function"?_:a,_=typeof _=="function"?!1:_,_)return a(null,_);e.lstat(b,(o,y)=>{if(o)return a(null,"file");_=y&&y.isDirectory()?"dir":"file",a(null,_)})}function n(b,_){let a;if(_)return _;try{a=e.lstatSync(b)}catch{return"file"}return a&&a.isDirectory()?"dir":"file"}r.exports={symlinkType:i,symlinkTypeSync:n}}}),Ir=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/symlink.js"(c,r){"use strict";q();var e=te().fromCallback,i=require("path"),n=H(),b=oe(),_=b.mkdirs,a=b.mkdirsSync,o=Tr(),y=o.symlinkPaths,l=o.symlinkPathsSync,u=Nr(),f=u.symlinkType,d=u.symlinkTypeSync,S=ue().pathExists;function F(h,t,p,x){x=typeof p=="function"?p:x,p=typeof p=="function"?!1:p,S(t,(s,m)=>{if(s)return x(s);if(m)return x(null);y(h,t,(v,O)=>{if(v)return x(v);h=O.toDst,f(O.toCwd,p,(E,k)=>{if(E)return x(E);let j=i.dirname(t);S(j,(T,I)=>{if(T)return x(T);if(I)return n.symlink(h,t,k,x);_(j,P=>{if(P)return x(P);n.symlink(h,t,k,x)})})})})})}function g(h,t,p){if(n.existsSync(t))return;let s=l(h,t);h=s.toDst,p=d(s.toCwd,p);let m=i.dirname(t);return n.existsSync(m)||a(m),n.symlinkSync(h,t,p)}r.exports={createSymlink:e(F),createSymlinkSync:g}}}),Lr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/index.js"(c,r){"use strict";q();var e=br(),i=Fr(),n=Ir();r.exports={createFile:e.createFile,createFileSync:e.createFileSync,ensureFile:e.createFile,ensureFileSync:e.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:n.createSymlink,createSymlinkSync:n.createSymlinkSync,ensureSymlink:n.createSymlink,ensureSymlinkSync:n.createSymlinkSync}}}),qr=D({"../../node_modules/.pnpm/jsonfile@4.0.0/node_modules/jsonfile/index.js"(c,r){q();var e;try{e=H()}catch{e=require("fs")}function i(l,u,f){f==null&&(f=u,u={}),typeof u=="string"&&(u={encoding:u}),u=u||{};var d=u.fs||e,S=!0;"throws"in u&&(S=u.throws),d.readFile(l,u,function(F,g){if(F)return f(F);g=o(g);var h;try{h=JSON.parse(g,u?u.reviver:null)}catch(t){return S?(t.message=l+": "+t.message,f(t)):f(null,null)}f(null,h)})}function n(l,u){u=u||{},typeof u=="string"&&(u={encoding:u});var f=u.fs||e,d=!0;"throws"in u&&(d=u.throws);try{var S=f.readFileSync(l,u);return S=o(S),JSON.parse(S,u.reviver)}catch(F){if(d)throw F.message=l+": "+F.message,F;return null}}function b(l,u){var f,d=`
8
- `;typeof u=="object"&&u!==null&&(u.spaces&&(f=u.spaces),u.EOL&&(d=u.EOL));var S=JSON.stringify(l,u?u.replacer:null,f);return S.replace(/\n/g,d)+d}function _(l,u,f,d){d==null&&(d=f,f={}),f=f||{};var S=f.fs||e,F="";try{F=b(u,f)}catch(g){d&&d(g,null);return}S.writeFile(l,F,f,d)}function a(l,u,f){f=f||{};var d=f.fs||e,S=b(u,f);return d.writeFileSync(l,S,f)}function o(l){return Buffer.isBuffer(l)&&(l=l.toString("utf8")),l=l.replace(/^\uFEFF/,""),l}var y={readFile:i,readFileSync:n,writeFile:_,writeFileSync:a};r.exports=y}}),Ee=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/json/jsonfile.js"(c,r){"use strict";q();var e=te().fromCallback,i=qr();r.exports={readJson:e(i.readFile),readJsonSync:i.readFileSync,writeJson:e(i.writeFile),writeJsonSync:i.writeFileSync}}}),Rr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/json/output-json.js"(c,r){"use strict";q();var e=require("path"),i=oe(),n=ue().pathExists,b=Ee();function _(a,o,y,l){typeof y=="function"&&(l=y,y={});let u=e.dirname(a);n(u,(f,d)=>{if(f)return l(f);if(d)return b.writeJson(a,o,y,l);i.mkdirs(u,S=>{if(S)return l(S);b.writeJson(a,o,y,l)})})}r.exports=_}}),Dr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/json/output-json-sync.js"(c,r){"use strict";q();var e=H(),i=require("path"),n=oe(),b=Ee();function _(a,o,y){let l=i.dirname(a);e.existsSync(l)||n.mkdirsSync(l),b.writeJsonSync(a,o,y)}r.exports=_}}),Mr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/json/index.js"(c,r){"use strict";q();var e=te().fromCallback,i=Ee();i.outputJson=e(Rr()),i.outputJsonSync=Dr(),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,r.exports=i}}),Cr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/move-sync/move-sync.js"(c,r){"use strict";q();var e=H(),i=require("path"),n=Le().copySync,b=_e().removeSync,_=oe().mkdirpSync,a=ve();function o(f,d,S){S=S||{};let F=S.overwrite||S.clobber||!1,{srcStat:g}=a.checkPathsSync(f,d,"move");return a.checkParentPathsSync(f,g,d,"move"),_(i.dirname(d)),y(f,d,F)}function y(f,d,S){if(S)return b(d),l(f,d,S);if(e.existsSync(d))throw new Error("dest already exists.");return l(f,d,S)}function l(f,d,S){try{e.renameSync(f,d)}catch(F){if(F.code!=="EXDEV")throw F;return u(f,d,S)}}function u(f,d,S){return n(f,d,{overwrite:S,errorOnExist:!0}),b(f)}r.exports=o}}),Ar=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/move-sync/index.js"(c,r){"use strict";q(),r.exports={moveSync:Cr()}}}),$r=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/move/move.js"(c,r){"use strict";q();var e=H(),i=require("path"),n=qe().copy,b=_e().remove,_=oe().mkdirp,a=ue().pathExists,o=ve();function y(d,S,F,g){typeof F=="function"&&(g=F,F={});let h=F.overwrite||F.clobber||!1;o.checkPaths(d,S,"move",(t,p)=>{if(t)return g(t);let{srcStat:x}=p;o.checkParentPaths(d,x,S,"move",s=>{if(s)return g(s);_(i.dirname(S),m=>m?g(m):l(d,S,h,g))})})}function l(d,S,F,g){if(F)return b(S,h=>h?g(h):u(d,S,F,g));a(S,(h,t)=>h?g(h):t?g(new Error("dest already exists.")):u(d,S,F,g))}function u(d,S,F,g){e.rename(d,S,h=>h?h.code!=="EXDEV"?g(h):f(d,S,F,g):g())}function f(d,S,F,g){n(d,S,{overwrite:F,errorOnExist:!0},t=>t?g(t):b(d,g))}r.exports=y}}),Wr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/move/index.js"(c,r){"use strict";q();var e=te().fromCallback;r.exports={move:e($r())}}}),Jr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/output/index.js"(c,r){"use strict";q();var e=te().fromCallback,i=H(),n=require("path"),b=oe(),_=ue().pathExists;function a(y,l,u,f){typeof u=="function"&&(f=u,u="utf8");let d=n.dirname(y);_(d,(S,F)=>{if(S)return f(S);if(F)return i.writeFile(y,l,u,f);b.mkdirs(d,g=>{if(g)return f(g);i.writeFile(y,l,u,f)})})}function o(y,...l){let u=n.dirname(y);if(i.existsSync(u))return i.writeFileSync(y,...l);b.mkdirsSync(u),i.writeFileSync(y,...l)}r.exports={outputFile:e(a),outputFileSync:o}}}),Gr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/index.js"(c,r){"use strict";q(),r.exports=Object.assign({},Te(),Le(),qe(),Pr(),Lr(),Mr(),oe(),Ar(),Wr(),Jr(),ue(),_e());var e=require("fs");Object.getOwnPropertyDescriptor(e,"promises")&&Object.defineProperty(r.exports,"promises",{get(){return e.promises}})}}),Re={};sr(Re,{getTurboRoot:()=>ot,searchUp:()=>De});Me.exports=ar(Re);q();q();q();var dt=le(lr());q();q();function Ur(c,r){if(!(c instanceof r))throw new TypeError("Cannot call a class as a function")}q();q();function Se(c){return Se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Se(c)}q();function Br(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function Vr(c,r){if(r&&(Se(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Br(c)}q();function ye(c){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(c)}q();q();function de(c,r){return de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},de(c,r)}function Yr(c,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(r&&r.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),r&&de(c,r)}q();q();function Hr(c){return Function.toString.call(c).indexOf("[native code]")!==-1}q();q();function Kr(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function me(c,r,e){return Kr()?me=Reflect.construct.bind():me=function(n,b,_){var a=[null];a.push.apply(a,b);var o=Function.bind.apply(n,a),y=new o;return _&&de(y,_.prototype),y},me.apply(null,arguments)}function ge(c){var r=typeof Map=="function"?new Map:void 0;return ge=function(i){if(i===null||!Hr(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(i))return r.get(i);r.set(i,n)}function n(){return me(i,arguments,ye(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),de(n,i)},ge(c)}var Qr=le(vr()),ke=le(require("path")),Oe=le(Gr()),Xr=function(c){Yr(r,c);function r(e){var i;return Ur(this,r),i=Vr(this,ye(r).call(this,"No package.json could be found upwards from the directory ".concat(e))),i.directory=e,i}return r}(ge(Error));function zr(c,r){try{var e=Oe.default.readJsonSync(ke.default.join(c,"package.json"));if(r.current===void 0&&(r.current=c),e.workspaces||e.bolt)return c}catch(i){if(i.code!=="ENOENT")throw i}}function Zr(c){try{var r=Oe.default.readJsonSync(ke.default.join(c,"lerna.json"));if(r.useWorkspaces!==!0)return c}catch(e){if(e.code!=="ENOENT")throw e}}function et(c){var r=Oe.default.existsSync(ke.default.join(c,"pnpm-workspace.yaml"));if(r)return c}function rt(c){var r={current:void 0},e=(0,Qr.sync)(function(i){return[Zr(i),zr(i,r),et(i)].find(function(n){return n})},{cwd:c,type:"directory"});if(r.current===void 0)throw new Xr(c);return e===void 0?r.current:e}q();var tt=le(require("fs")),we=le(require("path"));function nt({target:c,cwd:r}){let e=we.default.parse(r).root,i=!1;for(;!i&&r!==e;){if(tt.default.existsSync(we.default.join(r,c))){i=!0;break}r=we.default.dirname(r)}return i?r:null}var De=nt;function it(c){let r=De({target:"turbo.json",cwd:c||process.cwd()});if(!r)try{if(r=rt(c||process.cwd()),!r)return null}catch{return null}return r}var ot=it;});re();re();var Ue=require("child_process"),Be=pe(require("path")),Ve=pe(Ce());re();re();var Ae="\u226B ";function ee(...c){console.log(Ae,...c)}function se(...c){console.error(Ae,...c)}function $e(c){let{fallback:r="HEAD^",workspace:e}=c;return process.env.VERCEL==="1"?process.env.VERCEL_GIT_PREVIOUS_SHA?(ee(`found previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}" on "${process.env.VERCEL_GIT_COMMIT_REF}"`),{ref:process.env.VERCEL_GIT_PREVIOUS_SHA,type:"previousDeploy"}):(ee(`no previous deployments found for "${e}" on "${process.env.VERCEL_GIT_COMMIT_REF}".`),r&&r!=="false"?(ee(`falling back to ${r}`),{ref:r,type:"customFallback"}):null):{ref:"HEAD^",type:"headRelative"}}re();var We=pe(require("fs")),Je=pe(require("path"));function Ge(c){let{directory:r=process.cwd(),workspace:e}=c;if(e)return ee(`using "${e}" as workspace from arguments`),e;let i=Je.default.join(r,"package.json");try{let n=We.default.readFileSync(i,"utf8"),b=JSON.parse(n);return b.name?(ee(`inferred "${b.name}" as workspace from "package.json"`),b.name):(se(`"${i}" is missing the "name" field (required).`),null)}catch{return se(`"${i}" could not be found. turbo-ignore inferencing failed`),null}}function ut(){return ee("ignoring the change"),process.exit(0)}function ae(){return ee("proceeding with deployment"),process.exit(1)}function je({args:c}){if(ee(`Using Turborepo to determine if this project is affected by the commit...
9
- `),c.directory=c.directory?Be.default.resolve(c.directory):process.cwd(),process.env.TURBO_FORCE==="true")return ee("`TURBO_FORCE` detected"),ae();let r=(0,Ve.getTurboRoot)(c.directory);if(!r)return se("monorepo root not found. turbo-ignore inferencing failed"),ae();let e=Ge(c);if(!e)return ae();let i=$e({workspace:e,fallback:c.fallback});if(!i)return ae();let n=`npx turbo run build --filter=${e}...[${i.ref}] --dry=json`;ee(`analyzing results of \`${n}\``),(0,Ue.exec)(n,{cwd:r},(b,_)=>{if(b)return se(`exec error: ${b}`),ae();try{let a=JSON.parse(_);if(a==null)return se(`failed to parse JSON output from \`${n}\`.`),ae();let{packages:o}=a;return o&&o.length>0?(o.length===1?ee(`this commit affects "${e}"`):ee(`this commit affects "${e}" and ${o.length-1} ${o.length-1===1?"dependency":"dependencies"} (${o.slice(1).join(", ")})`),ae()):(ee("this project and its dependencies are not affected"),ut())}catch(a){return se(`failed to parse JSON output from \`${n}\`.`),se(a),ae()}})}re();var Ye={name:"turbo-ignore",version:"0.4.0",description:"",homepage:"https://turbo.build/repo",keywords:[],author:"Jared Palmer",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-ignore"},bugs:{url:"https://github.com/vercel/turbo/issues"},main:"index.js",bin:"index.js",scripts:{build:"tsup && cp ./package.json ./dist/package.json && cp README.md ./dist/README.md",release:"pnpm build && cd dist && pnpm publish",test:"jest",lint:"eslint src/**/*.ts","check-types":"tsc --noEmit"},devDependencies:{"@manypkg/find-root":"^1.1.0","@types/jest":"^27.4.0","@types/node":"^16.11.12",eslint:"^8.20.0",jest:"^27.4.3","ts-jest":"^27.1.1",tsconfig:"workspace:*",tsup:"^5.12.1","turbo-utils":"workspace:*",typescript:"^4.7.4"}};var at=`
7
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),c.checkPaths(k,O,"copy",(I,N)=>{if(I)return P(I);let{srcStat:_,destStat:T}=N;c.checkParentPaths(k,_,O,"copy",R=>R?P(R):b.filter?l(p,T,k,O,b,P):p(T,k,O,b,P))})}function p(k,O,b,P,I){let N=i.dirname(b);E(N,(_,T)=>{if(_)return I(_);if(T)return u(k,O,b,P,I);t(N,R=>R?I(R):u(k,O,b,P,I))})}function l(k,O,b,P,I,N){Promise.resolve(I.filter(b,P)).then(_=>_?k(O,b,P,I,N):N(),_=>N(_))}function u(k,O,b,P,I){return P.filter?l(f,k,O,b,P,I):f(k,O,b,P,I)}function f(k,O,b,P,I){(P.dereference?e.stat:e.lstat)(O,(_,T)=>{if(_)return I(_);if(T.isDirectory())return n(T,k,O,b,P,I);if(T.isFile()||T.isCharacterDevice()||T.isBlockDevice())return m(T,k,O,b,P,I);if(T.isSymbolicLink())return g(k,O,b,P,I)})}function m(k,O,b,P,I,N){return O?w(k,b,P,I,N):F(k,b,P,I,N)}function w(k,O,b,P,I){if(P.overwrite)e.unlink(b,N=>N?I(N):F(k,O,b,P,I));else return P.errorOnExist?I(new Error(`'${b}' already exists`)):I()}function F(k,O,b,P,I){return typeof e.copyFile=="function"?e.copyFile(O,b,N=>N?I(N):v(k,b,P,I)):S(k,O,b,P,I)}function S(k,O,b,P,I){let N=e.createReadStream(O);N.on("error",_=>I(_)).once("open",()=>{let _=e.createWriteStream(b,{mode:k.mode});_.on("error",T=>I(T)).on("open",()=>N.pipe(_)).once("close",()=>v(k,b,P,I))})}function v(k,O,b,P){e.chmod(O,k.mode,I=>I?P(I):b.preserveTimestamps?y(O,k.atime,k.mtime,P):P())}function n(k,O,b,P,I,N){return O?O&&!O.isDirectory()?N(new Error(`Cannot overwrite non-directory '${P}' with directory '${b}'.`)):x(b,P,I,N):d(k,b,P,I,N)}function d(k,O,b,P,I){e.mkdir(b,N=>{if(N)return I(N);x(O,b,P,_=>_?I(_):e.chmod(b,k.mode,I))})}function x(k,O,b,P){e.readdir(k,(I,N)=>I?P(I):a(N,k,O,b,P))}function a(k,O,b,P,I){let N=k.pop();return N?h(k,N,O,b,P,I):I()}function h(k,O,b,P,I,N){let _=i.join(b,O),T=i.join(P,O);c.checkPaths(_,T,"copy",(R,M)=>{if(R)return N(R);let{destStat:q}=M;u(q,_,T,I,J=>J?N(J):a(k,b,P,I,N))})}function g(k,O,b,P,I){e.readlink(O,(N,_)=>{if(N)return I(N);if(P.dereference&&(_=i.resolve(process.cwd(),_)),k)e.readlink(b,(T,R)=>T?T.code==="EINVAL"||T.code==="UNKNOWN"?e.symlink(_,b,I):I(T):(P.dereference&&(R=i.resolve(process.cwd(),R)),c.isSrcSubdir(_,R)?I(new Error(`Cannot copy '${_}' to a subdirectory of itself, '${R}'.`)):k.isDirectory()&&c.isSrcSubdir(R,_)?I(new Error(`Cannot overwrite '${R}' with '${_}'.`)):j(_,b,I)));else return e.symlink(_,b,I)})}function j(k,O,b){e.unlink(O,P=>P?b(P):e.symlink(k,O,b))}r.exports=o}}),$e=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/copy/index.js"(s,r){"use strict";L();var e=te().fromCallback;r.exports={copy:e(qr())}}}),Dr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/remove/rimraf.js"(s,r){"use strict";L();var e=K(),i=require("path"),t=require("assert"),E=process.platform==="win32";function y(S){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(n=>{S[n]=S[n]||e[n],n=n+"Sync",S[n]=S[n]||e[n]}),S.maxBusyTries=S.maxBusyTries||3}function c(S,v,n){let d=0;typeof v=="function"&&(n=v,v={}),t(S,"rimraf: missing path"),t.strictEqual(typeof S,"string","rimraf: path should be a string"),t.strictEqual(typeof n,"function","rimraf: callback function required"),t(v,"rimraf: invalid options argument provided"),t.strictEqual(typeof v,"object","rimraf: options should be object"),y(v),o(S,v,function x(a){if(a){if((a.code==="EBUSY"||a.code==="ENOTEMPTY"||a.code==="EPERM")&&d<v.maxBusyTries){d++;let h=d*100;return setTimeout(()=>o(S,v,x),h)}a.code==="ENOENT"&&(a=null)}n(a)})}function o(S,v,n){t(S),t(v),t(typeof n=="function"),v.lstat(S,(d,x)=>{if(d&&d.code==="ENOENT")return n(null);if(d&&d.code==="EPERM"&&E)return p(S,v,d,n);if(x&&x.isDirectory())return u(S,v,d,n);v.unlink(S,a=>{if(a){if(a.code==="ENOENT")return n(null);if(a.code==="EPERM")return E?p(S,v,a,n):u(S,v,a,n);if(a.code==="EISDIR")return u(S,v,a,n)}return n(a)})})}function p(S,v,n,d){t(S),t(v),t(typeof d=="function"),n&&t(n instanceof Error),v.chmod(S,438,x=>{x?d(x.code==="ENOENT"?null:n):v.stat(S,(a,h)=>{a?d(a.code==="ENOENT"?null:n):h.isDirectory()?u(S,v,n,d):v.unlink(S,d)})})}function l(S,v,n){let d;t(S),t(v),n&&t(n instanceof Error);try{v.chmodSync(S,438)}catch(x){if(x.code==="ENOENT")return;throw n}try{d=v.statSync(S)}catch(x){if(x.code==="ENOENT")return;throw n}d.isDirectory()?w(S,v,n):v.unlinkSync(S)}function u(S,v,n,d){t(S),t(v),n&&t(n instanceof Error),t(typeof d=="function"),v.rmdir(S,x=>{x&&(x.code==="ENOTEMPTY"||x.code==="EEXIST"||x.code==="EPERM")?f(S,v,d):x&&x.code==="ENOTDIR"?d(n):d(x)})}function f(S,v,n){t(S),t(v),t(typeof n=="function"),v.readdir(S,(d,x)=>{if(d)return n(d);let a=x.length,h;if(a===0)return v.rmdir(S,n);x.forEach(g=>{c(i.join(S,g),v,j=>{if(!h){if(j)return n(h=j);--a===0&&v.rmdir(S,n)}})})})}function m(S,v){let n;v=v||{},y(v),t(S,"rimraf: missing path"),t.strictEqual(typeof S,"string","rimraf: path should be a string"),t(v,"rimraf: missing options"),t.strictEqual(typeof v,"object","rimraf: options should be object");try{n=v.lstatSync(S)}catch(d){if(d.code==="ENOENT")return;d.code==="EPERM"&&E&&l(S,v,d)}try{n&&n.isDirectory()?w(S,v,null):v.unlinkSync(S)}catch(d){if(d.code==="ENOENT")return;if(d.code==="EPERM")return E?l(S,v,d):w(S,v,d);if(d.code!=="EISDIR")throw d;w(S,v,d)}}function w(S,v,n){t(S),t(v),n&&t(n instanceof Error);try{v.rmdirSync(S)}catch(d){if(d.code==="ENOTDIR")throw n;if(d.code==="ENOTEMPTY"||d.code==="EEXIST"||d.code==="EPERM")F(S,v);else if(d.code!=="ENOENT")throw d}}function F(S,v){if(t(S),t(v),v.readdirSync(S).forEach(n=>m(i.join(S,n),v)),E){let n=Date.now();do try{return v.rmdirSync(S,v)}catch{}while(Date.now()-n<500)}else return v.rmdirSync(S,v)}r.exports=c,c.sync=m}}),ge=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/remove/index.js"(s,r){"use strict";L();var e=te().fromCallback,i=Dr();r.exports={remove:e(i),removeSync:i.sync}}}),Cr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/empty/index.js"(s,r){"use strict";L();var e=te().fromCallback,i=K(),t=require("path"),E=oe(),y=ge(),c=e(function(l,u){u=u||function(){},i.readdir(l,(f,m)=>{if(f)return E.mkdirs(l,u);m=m.map(F=>t.join(l,F)),w();function w(){let F=m.pop();if(!F)return u();y.remove(F,S=>{if(S)return u(S);w()})}})});function o(p){let l;try{l=i.readdirSync(p)}catch{return E.mkdirsSync(p)}l.forEach(u=>{u=t.join(p,u),y.removeSync(u)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:c,emptydir:c}}}),Mr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/file.js"(s,r){"use strict";L();var e=te().fromCallback,i=require("path"),t=K(),E=oe(),y=ue().pathExists;function c(p,l){function u(){t.writeFile(p,"",f=>{if(f)return l(f);l()})}t.stat(p,(f,m)=>{if(!f&&m.isFile())return l();let w=i.dirname(p);y(w,(F,S)=>{if(F)return l(F);if(S)return u();E.mkdirs(w,v=>{if(v)return l(v);u()})})})}function o(p){let l;try{l=t.statSync(p)}catch{}if(l&&l.isFile())return;let u=i.dirname(p);t.existsSync(u)||E.mkdirsSync(u),t.writeFileSync(p,"")}r.exports={createFile:e(c),createFileSync:o}}}),Ar=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/link.js"(s,r){"use strict";L();var e=te().fromCallback,i=require("path"),t=K(),E=oe(),y=ue().pathExists;function c(p,l,u){function f(m,w){t.link(m,w,F=>{if(F)return u(F);u(null)})}y(l,(m,w)=>{if(m)return u(m);if(w)return u(null);t.lstat(p,F=>{if(F)return F.message=F.message.replace("lstat","ensureLink"),u(F);let S=i.dirname(l);y(S,(v,n)=>{if(v)return u(v);if(n)return f(p,l);E.mkdirs(S,d=>{if(d)return u(d);f(p,l)})})})})}function o(p,l){if(t.existsSync(l))return;try{t.lstatSync(p)}catch(w){throw w.message=w.message.replace("lstat","ensureLink"),w}let f=i.dirname(l);return t.existsSync(f)||E.mkdirsSync(f),t.linkSync(p,l)}r.exports={createLink:e(c),createLinkSync:o}}}),$r=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(s,r){"use strict";L();var e=require("path"),i=K(),t=ue().pathExists;function E(c,o,p){if(e.isAbsolute(c))return i.lstat(c,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),p(l)):p(null,{toCwd:c,toDst:c}));{let l=e.dirname(o),u=e.join(l,c);return t(u,(f,m)=>f?p(f):m?p(null,{toCwd:u,toDst:c}):i.lstat(c,w=>w?(w.message=w.message.replace("lstat","ensureSymlink"),p(w)):p(null,{toCwd:c,toDst:e.relative(l,c)})))}}function y(c,o){let p;if(e.isAbsolute(c)){if(p=i.existsSync(c),!p)throw new Error("absolute srcpath does not exist");return{toCwd:c,toDst:c}}else{let l=e.dirname(o),u=e.join(l,c);if(p=i.existsSync(u),p)return{toCwd:u,toDst:c};if(p=i.existsSync(c),!p)throw new Error("relative srcpath does not exist");return{toCwd:c,toDst:e.relative(l,c)}}}r.exports={symlinkPaths:E,symlinkPathsSync:y}}}),Wr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(s,r){"use strict";L();var e=K();function i(E,y,c){if(c=typeof y=="function"?y:c,y=typeof y=="function"?!1:y,y)return c(null,y);e.lstat(E,(o,p)=>{if(o)return c(null,"file");y=p&&p.isDirectory()?"dir":"file",c(null,y)})}function t(E,y){let c;if(y)return y;try{c=e.lstatSync(E)}catch{return"file"}return c&&c.isDirectory()?"dir":"file"}r.exports={symlinkType:i,symlinkTypeSync:t}}}),Gr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/symlink.js"(s,r){"use strict";L();var e=te().fromCallback,i=require("path"),t=K(),E=oe(),y=E.mkdirs,c=E.mkdirsSync,o=$r(),p=o.symlinkPaths,l=o.symlinkPathsSync,u=Wr(),f=u.symlinkType,m=u.symlinkTypeSync,w=ue().pathExists;function F(v,n,d,x){x=typeof d=="function"?d:x,d=typeof d=="function"?!1:d,w(n,(a,h)=>{if(a)return x(a);if(h)return x(null);p(v,n,(g,j)=>{if(g)return x(g);v=j.toDst,f(j.toCwd,d,(k,O)=>{if(k)return x(k);let b=i.dirname(n);w(b,(P,I)=>{if(P)return x(P);if(I)return t.symlink(v,n,O,x);y(b,N=>{if(N)return x(N);t.symlink(v,n,O,x)})})})})})}function S(v,n,d){if(t.existsSync(n))return;let a=l(v,n);v=a.toDst,d=m(a.toCwd,d);let h=i.dirname(n);return t.existsSync(h)||c(h),t.symlinkSync(v,n,d)}r.exports={createSymlink:e(F),createSymlinkSync:S}}}),Jr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/index.js"(s,r){"use strict";L();var e=Mr(),i=Ar(),t=Gr();r.exports={createFile:e.createFile,createFileSync:e.createFileSync,ensureFile:e.createFile,ensureFileSync:e.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:t.createSymlink,createSymlinkSync:t.createSymlinkSync,ensureSymlink:t.createSymlink,ensureSymlinkSync:t.createSymlinkSync}}}),Ur=D({"../../node_modules/.pnpm/jsonfile@4.0.0/node_modules/jsonfile/index.js"(s,r){L();var e;try{e=K()}catch{e=require("fs")}function i(l,u,f){f==null&&(f=u,u={}),typeof u=="string"&&(u={encoding:u}),u=u||{};var m=u.fs||e,w=!0;"throws"in u&&(w=u.throws),m.readFile(l,u,function(F,S){if(F)return f(F);S=o(S);var v;try{v=JSON.parse(S,u?u.reviver:null)}catch(n){return w?(n.message=l+": "+n.message,f(n)):f(null,null)}f(null,v)})}function t(l,u){u=u||{},typeof u=="string"&&(u={encoding:u});var f=u.fs||e,m=!0;"throws"in u&&(m=u.throws);try{var w=f.readFileSync(l,u);return w=o(w),JSON.parse(w,u.reviver)}catch(F){if(m)throw F.message=l+": "+F.message,F;return null}}function E(l,u){var f,m=`
8
+ `;typeof u=="object"&&u!==null&&(u.spaces&&(f=u.spaces),u.EOL&&(m=u.EOL));var w=JSON.stringify(l,u?u.replacer:null,f);return w.replace(/\n/g,m)+m}function y(l,u,f,m){m==null&&(m=f,f={}),f=f||{};var w=f.fs||e,F="";try{F=E(u,f)}catch(S){m&&m(S,null);return}w.writeFile(l,F,f,m)}function c(l,u,f){f=f||{};var m=f.fs||e,w=E(u,f);return m.writeFileSync(l,w,f)}function o(l){return Buffer.isBuffer(l)&&(l=l.toString("utf8")),l=l.replace(/^\uFEFF/,""),l}var p={readFile:i,readFileSync:t,writeFile:y,writeFileSync:c};r.exports=p}}),Ee=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/json/jsonfile.js"(s,r){"use strict";L();var e=te().fromCallback,i=Ur();r.exports={readJson:e(i.readFile),readJsonSync:i.readFileSync,writeJson:e(i.writeFile),writeJsonSync:i.writeFileSync}}}),Br=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/json/output-json.js"(s,r){"use strict";L();var e=require("path"),i=oe(),t=ue().pathExists,E=Ee();function y(c,o,p,l){typeof p=="function"&&(l=p,p={});let u=e.dirname(c);t(u,(f,m)=>{if(f)return l(f);if(m)return E.writeJson(c,o,p,l);i.mkdirs(u,w=>{if(w)return l(w);E.writeJson(c,o,p,l)})})}r.exports=y}}),Vr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/json/output-json-sync.js"(s,r){"use strict";L();var e=K(),i=require("path"),t=oe(),E=Ee();function y(c,o,p){let l=i.dirname(c);e.existsSync(l)||t.mkdirsSync(l),E.writeJsonSync(c,o,p)}r.exports=y}}),Hr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/json/index.js"(s,r){"use strict";L();var e=te().fromCallback,i=Ee();i.outputJson=e(Br()),i.outputJsonSync=Vr(),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,r.exports=i}}),Yr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/move-sync/move-sync.js"(s,r){"use strict";L();var e=K(),i=require("path"),t=Ae().copySync,E=ge().removeSync,y=oe().mkdirpSync,c=ve();function o(f,m,w){w=w||{};let F=w.overwrite||w.clobber||!1,{srcStat:S}=c.checkPathsSync(f,m,"move");return c.checkParentPathsSync(f,S,m,"move"),y(i.dirname(m)),p(f,m,F)}function p(f,m,w){if(w)return E(m),l(f,m,w);if(e.existsSync(m))throw new Error("dest already exists.");return l(f,m,w)}function l(f,m,w){try{e.renameSync(f,m)}catch(F){if(F.code!=="EXDEV")throw F;return u(f,m,w)}}function u(f,m,w){return t(f,m,{overwrite:w,errorOnExist:!0}),E(f)}r.exports=o}}),Kr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/move-sync/index.js"(s,r){"use strict";L(),r.exports={moveSync:Yr()}}}),Qr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/move/move.js"(s,r){"use strict";L();var e=K(),i=require("path"),t=$e().copy,E=ge().remove,y=oe().mkdirp,c=ue().pathExists,o=ve();function p(m,w,F,S){typeof F=="function"&&(S=F,F={});let v=F.overwrite||F.clobber||!1;o.checkPaths(m,w,"move",(n,d)=>{if(n)return S(n);let{srcStat:x}=d;o.checkParentPaths(m,x,w,"move",a=>{if(a)return S(a);y(i.dirname(w),h=>h?S(h):l(m,w,v,S))})})}function l(m,w,F,S){if(F)return E(w,v=>v?S(v):u(m,w,F,S));c(w,(v,n)=>v?S(v):n?S(new Error("dest already exists.")):u(m,w,F,S))}function u(m,w,F,S){e.rename(m,w,v=>v?v.code!=="EXDEV"?S(v):f(m,w,F,S):S())}function f(m,w,F,S){t(m,w,{overwrite:F,errorOnExist:!0},n=>n?S(n):E(m,S))}r.exports=p}}),Xr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/move/index.js"(s,r){"use strict";L();var e=te().fromCallback;r.exports={move:e(Qr())}}}),zr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/output/index.js"(s,r){"use strict";L();var e=te().fromCallback,i=K(),t=require("path"),E=oe(),y=ue().pathExists;function c(p,l,u,f){typeof u=="function"&&(f=u,u="utf8");let m=t.dirname(p);y(m,(w,F)=>{if(w)return f(w);if(F)return i.writeFile(p,l,u,f);E.mkdirs(m,S=>{if(S)return f(S);i.writeFile(p,l,u,f)})})}function o(p,...l){let u=t.dirname(p);if(i.existsSync(u))return i.writeFileSync(p,...l);E.mkdirsSync(u),i.writeFileSync(p,...l)}r.exports={outputFile:e(c),outputFileSync:o}}}),Zr=D({"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/index.js"(s,r){"use strict";L(),r.exports=Object.assign({},De(),Ae(),$e(),Cr(),Jr(),Hr(),oe(),Kr(),Xr(),zr(),ue(),ge());var e=require("fs");Object.getOwnPropertyDescriptor(e,"promises")&&Object.defineProperty(r.exports,"promises",{get(){return e.promises}})}}),We={};vr(We,{getTurboRoot:()=>yt,searchUp:()=>Ge});Je.exports=gr(We);L();L();L();var xt=le(Sr());L();L();function et(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")}L();L();function we(s){return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},we(s)}L();function rt(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function tt(s,r){if(r&&(we(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rt(s)}L();function ye(s){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(s)}L();L();function pe(s,r){return pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,t){return i.__proto__=t,i},pe(s,r)}function nt(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(r&&r.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),r&&pe(s,r)}L();L();function it(s){return Function.toString.call(s).indexOf("[native code]")!==-1}L();L();function ot(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function de(s,r,e){return ot()?de=Reflect.construct.bind():de=function(t,E,y){var c=[null];c.push.apply(c,E);var o=Function.bind.apply(t,c),p=new o;return y&&pe(p,y.prototype),p},de.apply(null,arguments)}function Se(s){var r=typeof Map=="function"?new Map:void 0;return Se=function(i){if(i===null||!it(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(i))return r.get(i);r.set(i,t)}function t(){return de(i,arguments,ye(this).constructor)}return t.prototype=Object.create(i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),pe(t,i)},Se(s)}var ut=le(br()),ke=le(require("path")),Oe=le(Zr()),st=function(s){nt(r,s);function r(e){var i;return et(this,r),i=tt(this,ye(r).call(this,"No package.json could be found upwards from the directory ".concat(e))),i.directory=e,i}return r}(Se(Error));function at(s,r){try{var e=Oe.default.readJsonSync(ke.default.join(s,"package.json"));if(r.current===void 0&&(r.current=s),e.workspaces||e.bolt)return s}catch(i){if(i.code!=="ENOENT")throw i}}function ct(s){try{var r=Oe.default.readJsonSync(ke.default.join(s,"lerna.json"));if(r.useWorkspaces!==!0)return s}catch(e){if(e.code!=="ENOENT")throw e}}function ft(s){var r=Oe.default.existsSync(ke.default.join(s,"pnpm-workspace.yaml"));if(r)return s}function lt(s){var r={current:void 0},e=(0,ut.sync)(function(i){return[ct(i),at(i,r),ft(i)].find(function(t){return t})},{cwd:s,type:"directory"});if(r.current===void 0)throw new st(s);return e===void 0?r.current:e}L();var pt=le(require("fs")),_e=le(require("path"));function mt({target:s,cwd:r}){let e=_e.default.parse(r).root,i=!1;for(;!i&&r!==e;){if(pt.default.existsSync(_e.default.join(r,s))){i=!0;break}r=_e.default.dirname(r)}return i?r:null}var Ge=mt;function dt(s){let r=Ge({target:"turbo.json",cwd:s||process.cwd()});if(!r)try{if(r=lt(s||process.cwd()),!r)return null}catch{return null}return r}var yt=dt;});Y();Y();var er=require("child_process"),rr=me(require("path")),tr=me(Ue());Y();Y();var je="\u226B ";function re(...s){console.log(je,...s)}function se(...s){console.error(je,...s)}function Be(...s){console.warn(je,...s)}function Ve(s){let{fallback:r,workspace:e}=s;return process.env.VERCEL==="1"?process.env.VERCEL_GIT_PREVIOUS_SHA?(re(`found previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}" on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`),{ref:process.env.VERCEL_GIT_PREVIOUS_SHA,type:"previousDeploy"}):(re(`no previous deployments found for "${e}" on branch "${process.env.VERCEL_GIT_COMMIT_REF}".`),r?(re(`falling back to ref ${r}`),{ref:r,type:"customFallback"}):null):{ref:"HEAD^",type:"headRelative"}}Y();var He=me(require("fs")),Ye=me(require("path"));function Ke(s){let{directory:r=process.cwd(),workspace:e}=s;if(e)return re(`using "${e}" as workspace from arguments`),e;let i=Ye.default.join(r,"package.json");try{let t=He.default.readFileSync(i,"utf8"),E=JSON.parse(t);return E.name?(re(`inferred "${E.name}" as workspace from "package.json"`),E.name):(se(`"${i}" is missing the "name" field (required).`),null)}catch{return se(`"${i}" could not be found. turbo-ignore inferencing failed`),null}}Y();var be={MISSING_LOCKFILE:{regex:/reading (yarn.lock|package-lock.json|pnpm-lock.yaml):.*?no such file or directory/,message:"turbo-ignore could not complete - no lockfile found, please commit one to your repository"},NO_PACKAGE_MANAGER:{regex:/run failed: We did not detect an in-use package manager for your project/,message:'turbo-ignore could not complete - no package manager detected, please commit a lockfile, or set "packageManager" in your root "package.json"'},UNREACHABLE_PARENT:{regex:/failed to resolve packages to run: commit HEAD\^ does not exist/,message:"turbo-ignore could not complete - parent commit does not exist or is unreachable"},UNREACHABLE_COMMIT:{regex:/commit \S+ does not exist/,message:"turbo-ignore could not complete - commit does not exist or is unreachable"}};function Qe({err:s}){let r=Object.keys(be).find(e=>{let{regex:i}=be[e];return i.test(s)});return r?{level:"warn",message:be[r].message,code:r}:{level:"error",message:s,code:"UNKNOWN_ERROR"}}Y();var Xe=require("child_process"),Ne=["[skip ci]","[ci skip]","[no ci]","[skip vercel]","[vercel skip]"],Fe=["[vercel deploy]","[vercel build]"];function Pe({workspace:s}){return[`[vercel skip ${s}]`]}function Te({workspace:s}){return[`[vercel deploy ${s}]`,`[vercel build ${s}]`]}function ht(){return process.env.VERCEL==="1"&&process.env.VERCEL_GIT_COMMIT_MESSAGE?process.env.VERCEL_GIT_COMMIT_MESSAGE:(0,Xe.execSync)("git show -s --format=%B").toString()}function ze({workspace:s}){let r=ht(),e=c=>r.includes(c),i=Te({workspace:s}).find(e),t=Pe({workspace:s}).find(e);if(i&&t)return{result:"conflict",scope:"workspace",reason:`conflicting commit messages found: ${i} and ${t}`};if(i)return{result:"deploy",scope:"workspace",reason:`found commit message: ${i}`};if(t)return{result:"skip",scope:"workspace",reason:`found commit message: ${t}`};let E=Fe.find(e),y=Ne.find(e);return E&&y?{result:"conflict",scope:"global",reason:`conflicting commit messages found: ${E} and ${y}`}:E?{result:"deploy",scope:"global",reason:`found commit message: ${E}`}:y?{result:"skip",scope:"global",reason:`found commit message: ${y}`}:{result:"continue",scope:"global",reason:"no deploy or skip string found in commit message."}}function Ze(){return console.log(`
9
+ \u2B1C\uFE0F ignoring the change`),process.exit(0)}function ae(){return console.log(`
10
+ \u2705 proceeding with deployment`),process.exit(1)}function Ie({args:s}){if(re(`Using Turborepo to determine if this project is affected by the commit...
11
+ `),s.directory=s.directory?rr.default.resolve(s.directory):process.cwd(),process.env.TURBO_FORCE==="true")return re("`TURBO_FORCE` detected"),ae();let r=(0,tr.getTurboRoot)(s.directory);if(!r)return se("monorepo root not found. turbo-ignore inferencing failed"),ae();let e=Ke(s);if(!e)return ae();let i=ze({workspace:e});if(i.result==="skip")return re(i.reason),Ze();if(i.result==="deploy")return re(i.reason),ae();i.result==="conflict"&&re(i.reason);let t=Ve({workspace:e,fallback:s.fallback});if(!t)return ae();let E=`npx turbo run build --filter=${e}...[${t.ref}] --dry=json`;re(`analyzing results of \`${E}\``),(0,er.exec)(E,{cwd:r},(y,c)=>{if(y){let{level:o,code:p,message:l}=Qe({err:y.message});return o==="warn"?Be(l):se(`${p}: ${y}`),ae()}try{let o=JSON.parse(c);if(o==null)return se(`failed to parse JSON output from \`${E}\`.`),ae();let{packages:p}=o;return p&&p.length>0?(p.length===1?re(`this commit affects "${e}"`):re(`this commit affects "${e}" and ${p.length-1} ${p.length-1===1?"dependency":"dependencies"} (${p.slice(1).join(", ")})`),ae()):(re("this project and its dependencies are not affected"),Ze())}catch(o){return se(`failed to parse JSON output from \`${E}\`.`),se(o),ae()}})}Y();var nr={name:"turbo-ignore",version:"0.5.0",description:"",homepage:"https://turbo.build/repo",keywords:[],author:"Jared Palmer",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-ignore"},bugs:{url:"https://github.com/vercel/turbo/issues"},main:"index.js",bin:"index.js",scripts:{build:"tsup && cp ./package.json ./dist/package.json && cp README.md ./dist/README.md",release:"pnpm build && cd dist && pnpm publish",test:"jest",lint:"eslint src/**/*.ts","check-types":"tsc --noEmit"},devDependencies:{"@manypkg/find-root":"^1.1.0","@types/jest":"^27.4.0","@types/node":"^16.11.12",eslint:"^8.20.0",jest:"^27.4.3","ts-jest":"^27.1.1",tsconfig:"workspace:*",tsup:"^5.12.1","turbo-utils":"workspace:*",typescript:"^4.7.4"}};var gt=`
10
12
  turbo-ignore
11
13
 
12
14
  Automatically ignore builds that have no changes
@@ -19,9 +21,20 @@ field of the "package.json" located at the current working directory.
19
21
 
20
22
  Flags:
21
23
  --fallback=<ref> On Vercel, if no previously deployed SHA is available to compare against,
22
- fallback to comparing against the provided ref, or use "false" to
23
- disable [default: HEAD^]
24
+ fallback to comparing against the provided ref
24
25
  --help, -h Show this help message
25
26
  --version, -v Show the version of this script
26
- `;function Pe({argv:c}){let r={directory:process.cwd()},e=new Set(c.filter(n=>n.startsWith("-")).map(n=>n.replace(/-/g,"")));(e.has("help")||e.has("h"))&&(console.log(at),process.exit(0)),(e.has("version")||e.has("v"))&&(console.log(Ye.version),process.exit(0)),c.length&&!c[0].startsWith("-")&&(r.workspace=c[0]);let i=c.find(n=>n.startsWith("--fallback="));return i&&(r.fallback=i.split("=")[1]),r}je({args:Pe({argv:process.argv.slice(2)})});
27
+
28
+ ---
29
+
30
+ turbo-ignore will also check for special commit messages to indicate if a build should be skipped or not.
31
+
32
+ Skip turbo-ignore check and automatically ignore:
33
+ ${[...Ne,...Pe({workspace:"<workspace>"})].map(s=>` - ${s}`).join(`
34
+ `)}
35
+
36
+ Skip turbo-ignore check and automatically deploy:
37
+ ${[...Fe,...Te({workspace:"<workspace>"})].map(s=>` - ${s}`).join(`
38
+ `)}
39
+ `;function Re({argv:s}){let r={directory:process.cwd()},e=new Set(s.filter(t=>t.startsWith("-")).map(t=>t.replace(/-/g,"")));(e.has("help")||e.has("h"))&&(console.log(gt),process.exit(0)),(e.has("version")||e.has("v"))&&(console.log(nr.version),process.exit(0)),s.length&&!s[0].startsWith("-")&&(r.workspace=s[0]);let i=s.find(t=>t.startsWith("--fallback="));return i&&(r.fallback=i.split("=")[1]),r}Ie({args:Re({argv:process.argv.slice(2)})});
27
40
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turbo-ignore",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "",
5
5
  "homepage": "https://turbo.build/repo",
6
6
  "keywords": [],