@turbo/codemod 1.8.3-canary.0 → 1.8.4-canary.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.
@@ -1 +1,90 @@
|
|
1
|
-
"use strict";var S=Object.create;var p=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var D=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var J=(r,e)=>{for(var t in e)p(r,t,{get:e[t],enumerable:!0})},w=(r,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!I.call(r,o)&&o!==t&&p(r,o,{get:()=>e[o],enumerable:!(s=x(e,o))||s.enumerable});return r};var f=(r,e,t)=>(t=r!=null?S(D(r)):{},w(e||!r||!r.__esModule?p(t,"default",{value:r,enumerable:!0}):t,r)),U=r=>w(p({},"__esModule",{value:!0}),r);var $={};J($,{default:()=>_,transformer:()=>N});module.exports=U($);var E=f(require("path")),T=f(require("fs-extra"));var g=f(require("chalk"));var y=f(require("chalk")),b=require("diff"),c=f(require("fs-extra")),j=f(require("os")),P=f(require("path")),m=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{P.default.extname(e.filePath)===".json"?this.before=c.default.readJsonSync(e.filePath):this.before=c.default.readFileSync(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,b.diffJson)(this.before,e.after):this.changes=(0,b.diffLines)(this.before,e.after):this.changes=[]}fileName(){return P.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?c.default.writeJsonSync(this.filePath,this.after,{spaces:2}):c.default.writeFileSync(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(t=>{t.added?process.stdout.write(y.default.green(t.value)):t.removed?process.stdout.write(y.default.red(t.value)):process.stdout.write(y.default.dim(t.value))}),console.log(j.default.EOL)):console.log(this.after)}};var n=f(require("chalk")),l=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}modified(...e){console.log(n.default.green(" MODIFIED "),...e,this.dry?n.default.dim("(dry run)"):"")}unchanged(...e){console.log(n.default.gray(" UNCHANGED "),...e,this.dry?n.default.dim("(dry run)"):"")}skipped(...e){console.log(n.default.yellow(" SKIPPED "),...e,this.dry?n.default.dim("(dry run)"):"")}error(...e){console.log(n.default.red(" ERROR "),...e,this.dry?n.default.dim("(dry run)"):"")}info(...e){console.log(n.default.bold(" INFO "),...e,this.dry?n.default.dim("(dry run)"):"")}};var R=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new l(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new m({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(s=>{let o=this.modifications[s],i={action:"unchanged",additions:o.additions(),deletions:o.deletions()};if(o.hasChanges()){if(this.dry)i.action="skipped",this.logger.skipped(g.default.dim(o.fileName()));else try{o.write(),i.action="modified",this.logger.modified(g.default.bold(o.fileName()))}catch(a){let h="Unknown error";a instanceof Error&&(h=a.message),i.error=new Error(h),i.action="error",this.logger.error(o.fileName(),h)}this.print&&o.log({diff:!0})}else this.logger.unchanged(g.default.dim(o.fileName()));e.changes[o.fileName()]=i}),Object.keys(e.changes).some(s=>e.changes[s].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let t=Object.keys(e.changes);if(console.log(),t.length>0){console.log(g.default.bold("Results:"));let s={};t.forEach(o=>{var a;let i=e.changes[o];s[o]={action:i.action,additions:i.additions,deletions:i.deletions,error:((a=i.error)==null?void 0:a.message)||"None"}}),console.table(s),console.log()}}},A=R;function F({transformer:r,rootPath:e,options:t}){let s={transformer:r,rootPath:e,...t},o=new l(s),i=new A(s);return{log:o,runner:i}}var C=["dist/**","build/**"],k="set-default-outputs",L='Add the "outputs" key with defaults where it is missing in `turbo.json`',M="1.7.0";function N({root:r,options:e}){let{log:t,runner:s}=F({transformer:k,rootPath:r,options:e}),o=E.default.join(r,"package.json"),i={};try{i=T.default.readJSONSync(o)}catch{}if("turbo"in i)return s.abortTransform({reason:'"turbo" key detected in package.json. Run `npx @turbo/codemod transform create-turbo-config` first'});t.info("Adding default `outputs` key into tasks if it doesn't exist");let a=E.default.join(r,"turbo.json");if(!T.default.existsSync(a))return s.abortTransform({reason:`No turbo.json found at ${r}. Is the path correct?`});let h=T.default.readJsonSync(a);for(let[O,d]of Object.entries(h.pipeline))d.outputs?Array.isArray(d.outputs)&&d.outputs.length===0&&delete d.outputs:d.outputs=C;return s.modifyFile({filePath:a,after:h}),s.finish()}var H={name:`${k}: ${L}`,value:k,introducedIn:M,transformer:N},_=H;0&&(module.exports={transformer});
|
1
|
+
"use strict";var ti=Object.create;var De=Object.defineProperty;var ei=Object.getOwnPropertyDescriptor;var ri=Object.getOwnPropertyNames;var ni=Object.getPrototypeOf,ii=Object.prototype.hasOwnProperty;var oi=(t,e)=>{for(var r in e)De(t,r,{get:e[r],enumerable:!0})},wr=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ri(e))!ii.call(t,n)&&n!==r&&De(t,n,{get:()=>e[n],enumerable:!(i=ei(e,n))||i.enumerable});return t};var kt=(t,e,r)=>(r=t!=null?ti(ni(t)):{},wr(e||!t||!t.__esModule?De(r,"default",{value:t,enumerable:!0}):r,t)),ui=t=>wr(De({},"__esModule",{value:!0}),t);var jc={};oi(jc,{default:()=>Lc,transformer:()=>zn});module.exports=ui(jc);var Fr=kt(require("path")),Ne=kt(require("fs-extra"));var si=Object.create,xr=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,ci=Object.getOwnPropertyNames,li=Object.getPrototypeOf,pi=Object.prototype.hasOwnProperty,G=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),fi=(t,e)=>()=>(t&&(e=t(t=0)),e),N=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),di=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ci(e))!pi.call(t,n)&&n!==r&&xr(t,n,{get:()=>e[n],enumerable:!(i=ai(e,n))||i.enumerable});return t},Ht=(t,e,r)=>(r=t!=null?si(li(t)):{},di(e||!t||!t.__esModule?xr(r,"default",{value:t,enumerable:!0}):r,t)),R=fi(()=>{});var je=kt(require("fs"),1),ne=kt(require("path"),1);R();function hi({target:t,cwd:e,contentCheck:r}){let i=ne.default.parse(e).root,n=!1;for(;!n&&e!==i;){if(r)try{let a=je.default.readFileSync(ne.default.join(e,t)).toString();if(r(a)){n=!0;break}}catch{}else if(je.default.existsSync(ne.default.join(e,t))){n=!0;break}e=ne.default.dirname(e)}return n?e:null}var Me=hi;var Se=kt(require("path"),1),mi=N((t,e)=>{R();function r(i){return e.exports=r=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},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),yi=N((t,e)=>{R();var r=mi().default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var n={},a=Object.prototype,s=a.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},u=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",p=o.toStringTag||"@@toStringTag";function l(_,F,w){return Object.defineProperty(_,F,{value:w,enumerable:!0,configurable:!0,writable:!0}),_[F]}try{l({},"")}catch{l=function(_,F,w){return _[F]=w}}function f(_,F,w,O){var I=F&&F.prototype instanceof v?F:v,L=Object.create(I.prototype),U=new k(O||[]);return L._invoke=function(Q,tt,$){var st="suspendedStart";return function(ct,pt){if(st==="executing")throw new Error("Generator is already running");if(st==="completed"){if(ct==="throw")throw pt;return j()}for($.method=ct,$.arg=pt;;){var P=$.delegate;if(P){var M=x(P,$);if(M){if(M===y)continue;return M}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(st==="suspendedStart")throw st="completed",$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);st="executing";var V=h(Q,tt,$);if(V.type==="normal"){if(st=$.done?"completed":"suspendedYield",V.arg===y)continue;return{value:V.arg,done:$.done}}V.type==="throw"&&(st="completed",$.method="throw",$.arg=V.arg)}}}(_,w,U),L}function h(_,F,w){try{return{type:"normal",arg:_.call(F,w)}}catch(O){return{type:"throw",arg:O}}}n.wrap=f;var y={};function v(){}function E(){}function A(){}var d={};l(d,u,function(){return this});var D=Object.getPrototypeOf,g=D&&D(D(T([])));g&&g!==a&&s.call(g,u)&&(d=g);var m=A.prototype=v.prototype=Object.create(d);function C(_){["next","throw","return"].forEach(function(F){l(_,F,function(w){return this._invoke(F,w)})})}function b(_,F){function w(I,L,U,Q){var tt=h(_[I],_,L);if(tt.type!=="throw"){var $=tt.arg,st=$.value;return st&&r(st)=="object"&&s.call(st,"__await")?F.resolve(st.__await).then(function(ct){w("next",ct,U,Q)},function(ct){w("throw",ct,U,Q)}):F.resolve(st).then(function(ct){$.value=ct,U($)},function(ct){return w("throw",ct,U,Q)})}Q(tt.arg)}var O;this._invoke=function(I,L){function U(){return new F(function(Q,tt){w(I,L,Q,tt)})}return O=O?O.then(U,U):U()}}function x(_,F){var w=_.iterator[F.method];if(w===void 0){if(F.delegate=null,F.method==="throw"){if(_.iterator.return&&(F.method="return",F.arg=void 0,x(_,F),F.method==="throw"))return y;F.method="throw",F.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var O=h(w,_.iterator,F.arg);if(O.type==="throw")return F.method="throw",F.arg=O.arg,F.delegate=null,y;var I=O.arg;return I?I.done?(F[_.resultName]=I.value,F.next=_.nextLoc,F.method!=="return"&&(F.method="next",F.arg=void 0),F.delegate=null,y):I:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,y)}function S(_){var F={tryLoc:_[0]};1 in _&&(F.catchLoc=_[1]),2 in _&&(F.finallyLoc=_[2],F.afterLoc=_[3]),this.tryEntries.push(F)}function B(_){var F=_.completion||{};F.type="normal",delete F.arg,_.completion=F}function k(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(S,this),this.reset(!0)}function T(_){if(_){var F=_[u];if(F)return F.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var w=-1,O=function I(){for(;++w<_.length;)if(s.call(_,w))return I.value=_[w],I.done=!1,I;return I.value=void 0,I.done=!0,I};return O.next=O}}return{next:j}}function j(){return{value:void 0,done:!0}}return E.prototype=A,l(m,"constructor",A),l(A,"constructor",E),E.displayName=l(A,p,"GeneratorFunction"),n.isGeneratorFunction=function(_){var F=typeof _=="function"&&_.constructor;return!!F&&(F===E||(F.displayName||F.name)==="GeneratorFunction")},n.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,A):(_.__proto__=A,l(_,p,"GeneratorFunction")),_.prototype=Object.create(m),_},n.awrap=function(_){return{__await:_}},C(b.prototype),l(b.prototype,c,function(){return this}),n.AsyncIterator=b,n.async=function(_,F,w,O,I){I===void 0&&(I=Promise);var L=new b(f(_,F,w,O),I);return n.isGeneratorFunction(F)?L:L.next().then(function(U){return U.done?U.value:L.next()})},C(m),l(m,p,"Generator"),l(m,u,function(){return this}),l(m,"toString",function(){return"[object Generator]"}),n.keys=function(_){var F=[];for(var w in _)F.push(w);return F.reverse(),function O(){for(;F.length;){var I=F.pop();if(I in _)return O.value=I,O.done=!1,O}return O.done=!0,O}},n.values=T,k.prototype={constructor:k,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(B),!_)for(var F in this)F.charAt(0)==="t"&&s.call(this,F)&&!isNaN(+F.slice(1))&&(this[F]=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 F=this;function w(tt,$){return L.type="throw",L.arg=_,F.next=tt,$&&(F.method="next",F.arg=void 0),!!$}for(var O=this.tryEntries.length-1;O>=0;--O){var I=this.tryEntries[O],L=I.completion;if(I.tryLoc==="root")return w("end");if(I.tryLoc<=this.prev){var U=s.call(I,"catchLoc"),Q=s.call(I,"finallyLoc");if(U&&Q){if(this.prev<I.catchLoc)return w(I.catchLoc,!0);if(this.prev<I.finallyLoc)return w(I.finallyLoc)}else if(U){if(this.prev<I.catchLoc)return w(I.catchLoc,!0)}else{if(!Q)throw new Error("try statement without catch or finally");if(this.prev<I.finallyLoc)return w(I.finallyLoc)}}}},abrupt:function(_,F){for(var w=this.tryEntries.length-1;w>=0;--w){var O=this.tryEntries[w];if(O.tryLoc<=this.prev&&s.call(O,"finallyLoc")&&this.prev<O.finallyLoc){var I=O;break}}I&&(_==="break"||_==="continue")&&I.tryLoc<=F&&F<=I.finallyLoc&&(I=null);var L=I?I.completion:{};return L.type=_,L.arg=F,I?(this.method="next",this.next=I.finallyLoc,y):this.complete(L)},complete:function(_,F){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"&&F&&(this.next=F),y},finish:function(_){for(var F=this.tryEntries.length-1;F>=0;--F){var w=this.tryEntries[F];if(w.finallyLoc===_)return this.complete(w.completion,w.afterLoc),B(w),y}},catch:function(_){for(var F=this.tryEntries.length-1;F>=0;--F){var w=this.tryEntries[F];if(w.tryLoc===_){var O=w.completion;if(O.type==="throw"){var I=O.arg;B(w)}return I}}throw new Error("illegal catch attempt")},delegateYield:function(_,F,w){return this.delegate={iterator:T(_),resultName:F,nextLoc:w},this.method==="next"&&(this.arg=void 0),y}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),Di=N((t,e)=>{R();var r=yi()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),gi=N((t,e)=>{"use strict";R();var r=(i,...n)=>new Promise(a=>{a(i(...n))});e.exports=r,e.exports.default=r}),Ei=N((t,e)=>{"use strict";R();var r=gi(),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 a=[],s=0,o=()=>{s--,a.length>0&&a.shift()()},u=(l,f,...h)=>{s++;let y=r(l,...h);f(y),y.then(o,o)},c=(l,f,...h)=>{s<n?u(l,f,...h):a.push(u.bind(null,l,f,...h))},p=(l,...f)=>new Promise(h=>c(l,h,...f));return Object.defineProperties(p,{activeCount:{get:()=>s},pendingCount:{get:()=>a.length},clearQueue:{value:()=>{a.length=0}}}),p};e.exports=i,e.exports.default=i}),vi=N((t,e)=>{"use strict";R();var r=Ei(),i=class extends Error{constructor(o){super(),this.value=o}},n=async(o,u)=>u(await o),a=async o=>{let u=await Promise.all(o);if(u[1]===!0)throw new i(u[0]);return!1},s=async(o,u,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let p=r(c.concurrency),l=[...o].map(h=>[h,p(n,h,u)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(l.map(h=>f(a,h)))}catch(h){if(h instanceof i)return h.value;throw h}};e.exports=s,e.exports.default=s}),Ai=N((t,e)=>{"use strict";R();var r=G("path"),i=G("fs"),{promisify:n}=G("util"),a=vi(),s=n(i.stat),o=n(i.lstat),u={directory:"isDirectory",file:"isFile"};function c({type:l}){if(!(l in u))throw new Error(`Invalid type specified: ${l}`)}var p=(l,f)=>l===void 0||f[u[l]]();e.exports=async(l,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let h=f.allowSymlinks?s:o;return a(l,async y=>{try{let v=await h(r.resolve(f.cwd,y));return p(f.type,v)}catch{return!1}},f)},e.exports.sync=(l,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let h=f.allowSymlinks?i.statSync:i.lstatSync;for(let y of l)try{let v=h(r.resolve(f.cwd,y));if(p(f.type,v))return y}catch{}}}),Ci=N((t,e)=>{"use strict";R();var r=G("fs"),{promisify:i}=G("util"),n=i(r.access);e.exports=async a=>{try{return await n(a),!0}catch{return!1}},e.exports.sync=a=>{try{return r.accessSync(a),!0}catch{return!1}}}),bi=N((t,e)=>{"use strict";R();var r=G("path"),i=Ai(),n=Ci(),a=Symbol("findUp.stop");e.exports=async(s,o={})=>{let u=r.resolve(o.cwd||""),{root:c}=r.parse(u),p=[].concat(s),l=async f=>{if(typeof s!="function")return i(p,f);let h=await s(f.cwd);return typeof h=="string"?i([h],f):h};for(;;){let f=await l({...o,cwd:u});if(f===a)return;if(f)return r.resolve(u,f);if(u===c)return;u=r.dirname(u)}},e.exports.sync=(s,o={})=>{let u=r.resolve(o.cwd||""),{root:c}=r.parse(u),p=[].concat(s),l=f=>{if(typeof s!="function")return i.sync(p,f);let h=s(f.cwd);return typeof h=="string"?i.sync([h],f):h};for(;;){let f=l({...o,cwd:u});if(f===a)return;if(f)return r.resolve(u,f);if(u===c)return;u=r.dirname(u)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=a}),Bt=N(t=>{"use strict";R(),t.fromCallback=function(e){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")e.apply(this,arguments);else return new Promise((r,i)=>{arguments[arguments.length]=(n,a)=>{if(n)return i(n);r(a)},arguments.length++,e.apply(this,arguments)})},"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty(function(){let r=arguments[arguments.length-1];if(typeof r!="function")return e.apply(this,arguments);e.apply(this,arguments).then(i=>r(null,i),r)},"name",{value:e.name})}}),Si=N((t,e)=>{R();var r=G("constants"),i=process.cwd,n=null,a=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"&&(s=process.chdir,process.chdir=function(u){n=null,s.call(process,u)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s));var s;e.exports=o;function o(u){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(u),u.lutimes||p(u),u.chown=h(u.chown),u.fchown=h(u.fchown),u.lchown=h(u.lchown),u.chmod=l(u.chmod),u.fchmod=l(u.fchmod),u.lchmod=l(u.lchmod),u.chownSync=y(u.chownSync),u.fchownSync=y(u.fchownSync),u.lchownSync=y(u.lchownSync),u.chmodSync=f(u.chmodSync),u.fchmodSync=f(u.fchmodSync),u.lchmodSync=f(u.lchmodSync),u.stat=v(u.stat),u.fstat=v(u.fstat),u.lstat=v(u.lstat),u.statSync=E(u.statSync),u.fstatSync=E(u.fstatSync),u.lstatSync=E(u.lstatSync),u.chmod&&!u.lchmod&&(u.lchmod=function(d,D,g){g&&process.nextTick(g)},u.lchmodSync=function(){}),u.chown&&!u.lchown&&(u.lchown=function(d,D,g,m){m&&process.nextTick(m)},u.lchownSync=function(){}),a==="win32"&&(u.rename=typeof u.rename!="function"?u.rename:function(d){function D(g,m,C){var b=Date.now(),x=0;d(g,m,function S(B){if(B&&(B.code==="EACCES"||B.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){u.stat(m,function(k,T){k&&k.code==="ENOENT"?d(g,m,S):C(B)})},x),x<100&&(x+=10);return}C&&C(B)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,d),D}(u.rename)),u.read=typeof u.read!="function"?u.read:function(d){function D(g,m,C,b,x,S){var B;if(S&&typeof S=="function"){var k=0;B=function(T,j,_){if(T&&T.code==="EAGAIN"&&k<10)return k++,d.call(u,g,m,C,b,x,B);S.apply(this,arguments)}}return d.call(u,g,m,C,b,x,B)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,d),D}(u.read),u.readSync=typeof u.readSync!="function"?u.readSync:function(d){return function(D,g,m,C,b){for(var x=0;;)try{return d.call(u,D,g,m,C,b)}catch(S){if(S.code==="EAGAIN"&&x<10){x++;continue}throw S}}}(u.readSync);function c(d){d.lchmod=function(D,g,m){d.open(D,r.O_WRONLY|r.O_SYMLINK,g,function(C,b){if(C){m&&m(C);return}d.fchmod(b,g,function(x){d.close(b,function(S){m&&m(x||S)})})})},d.lchmodSync=function(D,g){var m=d.openSync(D,r.O_WRONLY|r.O_SYMLINK,g),C=!0,b;try{b=d.fchmodSync(m,g),C=!1}finally{if(C)try{d.closeSync(m)}catch{}else d.closeSync(m)}return b}}function p(d){r.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(D,g,m,C){d.open(D,r.O_SYMLINK,function(b,x){if(b){C&&C(b);return}d.futimes(x,g,m,function(S){d.close(x,function(B){C&&C(S||B)})})})},d.lutimesSync=function(D,g,m){var C=d.openSync(D,r.O_SYMLINK),b,x=!0;try{b=d.futimesSync(C,g,m),x=!1}finally{if(x)try{d.closeSync(C)}catch{}else d.closeSync(C)}return b}):d.futimes&&(d.lutimes=function(D,g,m,C){C&&process.nextTick(C)},d.lutimesSync=function(){})}function l(d){return d&&function(D,g,m){return d.call(u,D,g,function(C){A(C)&&(C=null),m&&m.apply(this,arguments)})}}function f(d){return d&&function(D,g){try{return d.call(u,D,g)}catch(m){if(!A(m))throw m}}}function h(d){return d&&function(D,g,m,C){return d.call(u,D,g,m,function(b){A(b)&&(b=null),C&&C.apply(this,arguments)})}}function y(d){return d&&function(D,g,m){try{return d.call(u,D,g,m)}catch(C){if(!A(C))throw C}}}function v(d){return d&&function(D,g,m){typeof g=="function"&&(m=g,g=null);function C(b,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),m&&m.apply(this,arguments)}return g?d.call(u,D,g,C):d.call(u,D,C)}}function E(d){return d&&function(D,g){var m=g?d.call(u,D,g):d.call(u,D);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function A(d){if(!d||d.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(d.code==="EINVAL"||d.code==="EPERM"))}}}),Fi=N((t,e)=>{R();var r=G("stream").Stream;e.exports=i;function i(n){return{ReadStream:a,WriteStream:s};function a(o,u){if(!(this instanceof a))return new a(o,u);r.call(this);var c=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,u=u||{};for(var p=Object.keys(u),l=0,f=p.length;l<f;l++){var h=p[l];this[h]=u[h]}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(){c._read()});return}n.open(this.path,this.flags,this.mode,function(y,v){if(y){c.emit("error",y),c.readable=!1;return}c.fd=v,c.emit("open",v),c._read()})}function s(o,u){if(!(this instanceof s))return new s(o,u);r.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,u=u||{};for(var c=Object.keys(u),p=0,l=c.length;p<l;p++){var f=c[p];this[f]=u[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())}}}),_i=N((t,e)=>{"use strict";R(),e.exports=i;var r=Object.getPrototypeOf||function(n){return n.__proto__};function i(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var a={__proto__:r(n)};else var a=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(n,s))}),a}}),Et=N((t,e)=>{R();var r=G("fs"),i=Si(),n=Fi(),a=_i(),s=G("util"),o,u;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),u=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",u="___graceful-fs.previous");function c(){}function p(d,D){Object.defineProperty(d,o,{get:function(){return D}})}var l=c;s.debuglog?l=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var d=s.format.apply(s,arguments);d="GFS4: "+d.split(/\n/).join(`
|
2
|
+
GFS4: `),console.error(d)}),r[o]||(f=global[o]||[],p(r,f),r.close=function(d){function D(g,m){return d.call(r,g,function(C){C||E(),typeof m=="function"&&m.apply(this,arguments)})}return Object.defineProperty(D,u,{value:d}),D}(r.close),r.closeSync=function(d){function D(g){d.apply(r,arguments),E()}return Object.defineProperty(D,u,{value:d}),D}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){l(r[o]),G("assert").equal(r[o].length,0)}));var f;global[o]||p(global,r[o]),e.exports=h(a(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(e.exports=h(r),r.__patched=!0);function h(d){i(d),d.gracefulify=h,d.createReadStream=$,d.createWriteStream=st;var D=d.readFile;d.readFile=g;function g(P,M,V){return typeof M=="function"&&(V=M,M=null),q(P,M,V);function q(at,ot,J,Z){return D(at,ot,function(ut){ut&&(ut.code==="EMFILE"||ut.code==="ENFILE")?y([q,[at,ot,J],ut,Z||Date.now(),Date.now()]):typeof J=="function"&&J.apply(this,arguments)})}}var m=d.writeFile;d.writeFile=C;function C(P,M,V,q){return typeof V=="function"&&(q=V,V=null),at(P,M,V,q);function at(ot,J,Z,ut,ft){return m(ot,J,Z,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?y([at,[ot,J,Z,ut],et,ft||Date.now(),Date.now()]):typeof ut=="function"&&ut.apply(this,arguments)})}}var b=d.appendFile;b&&(d.appendFile=x);function x(P,M,V,q){return typeof V=="function"&&(q=V,V=null),at(P,M,V,q);function at(ot,J,Z,ut,ft){return b(ot,J,Z,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?y([at,[ot,J,Z,ut],et,ft||Date.now(),Date.now()]):typeof ut=="function"&&ut.apply(this,arguments)})}}var S=d.copyFile;S&&(d.copyFile=B);function B(P,M,V,q){return typeof V=="function"&&(q=V,V=0),at(P,M,V,q);function at(ot,J,Z,ut,ft){return S(ot,J,Z,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?y([at,[ot,J,Z,ut],et,ft||Date.now(),Date.now()]):typeof ut=="function"&&ut.apply(this,arguments)})}}var k=d.readdir;d.readdir=j;var T=/^v[0-5]\./;function j(P,M,V){typeof M=="function"&&(V=M,M=null);var q=T.test(process.version)?function(ot,J,Z,ut){return k(ot,at(ot,J,Z,ut))}:function(ot,J,Z,ut){return k(ot,J,at(ot,J,Z,ut))};return q(P,M,V);function at(ot,J,Z,ut){return function(ft,et){ft&&(ft.code==="EMFILE"||ft.code==="ENFILE")?y([q,[ot,J,Z],ft,ut||Date.now(),Date.now()]):(et&&et.sort&&et.sort(),typeof Z=="function"&&Z.call(this,ft,et))}}}if(process.version.substr(0,4)==="v0.8"){var _=n(d);L=_.ReadStream,Q=_.WriteStream}var F=d.ReadStream;F&&(L.prototype=Object.create(F.prototype),L.prototype.open=U);var w=d.WriteStream;w&&(Q.prototype=Object.create(w.prototype),Q.prototype.open=tt),Object.defineProperty(d,"ReadStream",{get:function(){return L},set:function(P){L=P},enumerable:!0,configurable:!0}),Object.defineProperty(d,"WriteStream",{get:function(){return Q},set:function(P){Q=P},enumerable:!0,configurable:!0});var O=L;Object.defineProperty(d,"FileReadStream",{get:function(){return O},set:function(P){O=P},enumerable:!0,configurable:!0});var I=Q;Object.defineProperty(d,"FileWriteStream",{get:function(){return I},set:function(P){I=P},enumerable:!0,configurable:!0});function L(P,M){return this instanceof L?(F.apply(this,arguments),this):L.apply(Object.create(L.prototype),arguments)}function U(){var P=this;pt(P.path,P.flags,P.mode,function(M,V){M?(P.autoClose&&P.destroy(),P.emit("error",M)):(P.fd=V,P.emit("open",V),P.read())})}function Q(P,M){return this instanceof Q?(w.apply(this,arguments),this):Q.apply(Object.create(Q.prototype),arguments)}function tt(){var P=this;pt(P.path,P.flags,P.mode,function(M,V){M?(P.destroy(),P.emit("error",M)):(P.fd=V,P.emit("open",V))})}function $(P,M){return new d.ReadStream(P,M)}function st(P,M){return new d.WriteStream(P,M)}var ct=d.open;d.open=pt;function pt(P,M,V,q){return typeof V=="function"&&(q=V,V=null),at(P,M,V,q);function at(ot,J,Z,ut,ft){return ct(ot,J,Z,function(et,X){et&&(et.code==="EMFILE"||et.code==="ENFILE")?y([at,[ot,J,Z,ut],et,ft||Date.now(),Date.now()]):typeof ut=="function"&&ut.apply(this,arguments)})}}return d}function y(d){l("ENQUEUE",d[0].name,d[1]),r[o].push(d),A()}var v;function E(){for(var d=Date.now(),D=0;D<r[o].length;++D)r[o][D].length>2&&(r[o][D][3]=d,r[o][D][4]=d);A()}function A(){if(clearTimeout(v),v=void 0,r[o].length!==0){var d=r[o].shift(),D=d[0],g=d[1],m=d[2],C=d[3],b=d[4];if(C===void 0)l("RETRY",D.name,g),D.apply(null,g);else if(Date.now()-C>=6e4){l("TIMEOUT",D.name,g);var x=g.pop();typeof x=="function"&&x.call(null,m)}else{var S=Date.now()-b,B=Math.max(b-C,1),k=Math.min(B*1.2,100);S>=k?(l("RETRY",D.name,g),D.apply(null,g.concat([C]))):r[o].push(d)}v===void 0&&(v=setTimeout(A,0))}}}),Br=N(t=>{"use strict";R();var e=Bt().fromCallback,r=Et(),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 r[n]=="function");Object.keys(r).forEach(n=>{n!=="promises"&&(t[n]=r[n])}),i.forEach(n=>{t[n]=e(r[n])}),t.exists=function(n,a){return typeof a=="function"?r.exists(n,a):new Promise(s=>r.exists(n,s))},t.read=function(n,a,s,o,u,c){return typeof c=="function"?r.read(n,a,s,o,u,c):new Promise((p,l)=>{r.read(n,a,s,o,u,(f,h,y)=>{if(f)return l(f);p({bytesRead:h,buffer:y})})})},t.write=function(n,a,...s){return typeof s[s.length-1]=="function"?r.write(n,a,...s):new Promise((o,u)=>{r.write(n,a,...s,(c,p,l)=>{if(c)return u(c);o({bytesWritten:p,buffer:l})})})},typeof r.realpath.native=="function"&&(t.realpath.native=e(r.realpath.native))}),Or=N((t,e)=>{"use strict";R();var r=G("path");function i(s){return s=r.normalize(r.resolve(s)).split(r.sep),s.length>0?s[0]:null}var n=/[<>:"|?*]/;function a(s){let o=i(s);return s=s.replace(o,""),n.test(s)}e.exports={getRootPath:i,invalidWin32Path:a}}),wi=N((t,e)=>{"use strict";R();var r=Et(),i=G("path"),n=Or().invalidWin32Path,a=parseInt("0777",8);function s(o,u,c,p){if(typeof u=="function"?(c=u,u={}):(!u||typeof u!="object")&&(u={mode:u}),process.platform==="win32"&&n(o)){let h=new Error(o+" contains invalid WIN32 path characters.");return h.code="EINVAL",c(h)}let l=u.mode,f=u.fs||r;l===void 0&&(l=a&~process.umask()),p||(p=null),c=c||function(){},o=i.resolve(o),f.mkdir(o,l,h=>{if(!h)return p=p||o,c(null,p);switch(h.code){case"ENOENT":if(i.dirname(o)===o)return c(h);s(i.dirname(o),u,(y,v)=>{y?c(y,v):s(o,u,c,v)});break;default:f.stat(o,(y,v)=>{y||!v.isDirectory()?c(h,p):c(null,p)});break}})}e.exports=s}),xi=N((t,e)=>{"use strict";R();var r=Et(),i=G("path"),n=Or().invalidWin32Path,a=parseInt("0777",8);function s(o,u,c){(!u||typeof u!="object")&&(u={mode:u});let p=u.mode,l=u.fs||r;if(process.platform==="win32"&&n(o)){let f=new Error(o+" contains invalid WIN32 path characters.");throw f.code="EINVAL",f}p===void 0&&(p=a&~process.umask()),c||(c=null),o=i.resolve(o);try{l.mkdirSync(o,p),c=c||o}catch(f){if(f.code==="ENOENT"){if(i.dirname(o)===o)throw f;c=s(i.dirname(o),u,c),s(o,u,c)}else{let h;try{h=l.statSync(o)}catch{throw f}if(!h.isDirectory())throw f}}return c}e.exports=s}),Ot=N((t,e)=>{"use strict";R();var r=Bt().fromCallback,i=r(wi()),n=xi();e.exports={mkdirs:i,mkdirsSync:n,mkdirp:i,mkdirpSync:n,ensureDir:i,ensureDirSync:n}}),Rr=N((t,e)=>{"use strict";R();var r=Et(),i=G("os"),n=G("path");function a(){let p=n.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));p=n.join(i.tmpdir(),p);let l=new Date(1435410243862);r.writeFileSync(p,"https://github.com/jprichardson/node-fs-extra/pull/141");let f=r.openSync(p,"r+");return r.futimesSync(f,l,l),r.closeSync(f),r.statSync(p).mtime>1435410243e3}function s(p){let l=n.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));l=n.join(i.tmpdir(),l);let f=new Date(1435410243862);r.writeFile(l,"https://github.com/jprichardson/node-fs-extra/pull/141",h=>{if(h)return p(h);r.open(l,"r+",(y,v)=>{if(y)return p(y);r.futimes(v,f,f,E=>{if(E)return p(E);r.close(v,A=>{if(A)return p(A);r.stat(l,(d,D)=>{if(d)return p(d);p(null,D.mtime>1435410243e3)})})})})})}function o(p){if(typeof p=="number")return Math.floor(p/1e3)*1e3;if(p instanceof Date)return new Date(Math.floor(p.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function u(p,l,f,h){r.open(p,"r+",(y,v)=>{if(y)return h(y);r.futimes(v,l,f,E=>{r.close(v,A=>{h&&h(E||A)})})})}function c(p,l,f){let h=r.openSync(p,"r+");return r.futimesSync(h,l,f),r.closeSync(h)}e.exports={hasMillisRes:s,hasMillisResSync:a,timeRemoveMillis:o,utimesMillis:u,utimesMillisSync:c}}),Ce=N((t,e)=>{"use strict";R();var r=Et(),i=G("path"),n=10,a=5,s=0,o=process.versions.node.split("."),u=Number.parseInt(o[0],10),c=Number.parseInt(o[1],10),p=Number.parseInt(o[2],10);function l(){return u>n||u===n&&(c>a||c===a&&p>=s)}function f(g,m,C){l()?r.stat(g,{bigint:!0},(b,x)=>{if(b)return C(b);r.stat(m,{bigint:!0},(S,B)=>S?S.code==="ENOENT"?C(null,{srcStat:x,destStat:null}):C(S):C(null,{srcStat:x,destStat:B}))}):r.stat(g,(b,x)=>{if(b)return C(b);r.stat(m,(S,B)=>S?S.code==="ENOENT"?C(null,{srcStat:x,destStat:null}):C(S):C(null,{srcStat:x,destStat:B}))})}function h(g,m){let C,b;l()?C=r.statSync(g,{bigint:!0}):C=r.statSync(g);try{l()?b=r.statSync(m,{bigint:!0}):b=r.statSync(m)}catch(x){if(x.code==="ENOENT")return{srcStat:C,destStat:null};throw x}return{srcStat:C,destStat:b}}function y(g,m,C,b){f(g,m,(x,S)=>{if(x)return b(x);let{srcStat:B,destStat:k}=S;return k&&k.ino&&k.dev&&k.ino===B.ino&&k.dev===B.dev?b(new Error("Source and destination must not be the same.")):B.isDirectory()&&d(g,m)?b(new Error(D(g,m,C))):b(null,{srcStat:B,destStat:k})})}function v(g,m,C){let{srcStat:b,destStat:x}=h(g,m);if(x&&x.ino&&x.dev&&x.ino===b.ino&&x.dev===b.dev)throw new Error("Source and destination must not be the same.");if(b.isDirectory()&&d(g,m))throw new Error(D(g,m,C));return{srcStat:b,destStat:x}}function E(g,m,C,b,x){let S=i.resolve(i.dirname(g)),B=i.resolve(i.dirname(C));if(B===S||B===i.parse(B).root)return x();l()?r.stat(B,{bigint:!0},(k,T)=>k?k.code==="ENOENT"?x():x(k):T.ino&&T.dev&&T.ino===m.ino&&T.dev===m.dev?x(new Error(D(g,C,b))):E(g,m,B,b,x)):r.stat(B,(k,T)=>k?k.code==="ENOENT"?x():x(k):T.ino&&T.dev&&T.ino===m.ino&&T.dev===m.dev?x(new Error(D(g,C,b))):E(g,m,B,b,x))}function A(g,m,C,b){let x=i.resolve(i.dirname(g)),S=i.resolve(i.dirname(C));if(S===x||S===i.parse(S).root)return;let B;try{l()?B=r.statSync(S,{bigint:!0}):B=r.statSync(S)}catch(k){if(k.code==="ENOENT")return;throw k}if(B.ino&&B.dev&&B.ino===m.ino&&B.dev===m.dev)throw new Error(D(g,C,b));return A(g,m,S,b)}function d(g,m){let C=i.resolve(g).split(i.sep).filter(x=>x),b=i.resolve(m).split(i.sep).filter(x=>x);return C.reduce((x,S,B)=>x&&b[B]===S,!0)}function D(g,m,C){return`Cannot ${C} '${g}' to a subdirectory of itself, '${m}'.`}e.exports={checkPaths:y,checkPathsSync:v,checkParentPaths:E,checkParentPathsSync:A,isSrcSubdir:d}}),ki=N((t,e)=>{"use strict";R(),e.exports=function(r){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(r)}catch{return new Buffer(r)}return new Buffer(r)}}),Bi=N((t,e)=>{"use strict";R();var r=Et(),i=G("path"),n=Ot().mkdirsSync,a=Rr().utimesMillisSync,s=Ce();function o(m,C,b){typeof b=="function"&&(b={filter:b}),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;
|
3
|
+
|
4
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:x,destStat:S}=s.checkPathsSync(m,C,"copy");return s.checkParentPathsSync(m,x,C,"copy"),u(S,m,C,b)}function u(m,C,b,x){if(x.filter&&!x.filter(C,b))return;let S=i.dirname(b);return r.existsSync(S)||n(S),c(m,C,b,x)}function c(m,C,b,x){if(!(x.filter&&!x.filter(C,b)))return p(m,C,b,x)}function p(m,C,b,x){let S=(x.dereference?r.statSync:r.lstatSync)(C);if(S.isDirectory())return v(S,m,C,b,x);if(S.isFile()||S.isCharacterDevice()||S.isBlockDevice())return l(S,m,C,b,x);if(S.isSymbolicLink())return D(m,C,b,x)}function l(m,C,b,x,S){return C?f(m,b,x,S):h(m,b,x,S)}function f(m,C,b,x){if(x.overwrite)return r.unlinkSync(b),h(m,C,b,x);if(x.errorOnExist)throw new Error(`'${b}' already exists`)}function h(m,C,b,x){return typeof r.copyFileSync=="function"?(r.copyFileSync(C,b),r.chmodSync(b,m.mode),x.preserveTimestamps?a(b,m.atime,m.mtime):void 0):y(m,C,b,x)}function y(m,C,b,x){let S=ki()(65536),B=r.openSync(C,"r"),k=r.openSync(b,"w",m.mode),T=0;for(;T<m.size;){let j=r.readSync(B,S,0,65536,T);r.writeSync(k,S,0,j),T+=j}x.preserveTimestamps&&r.futimesSync(k,m.atime,m.mtime),r.closeSync(B),r.closeSync(k)}function v(m,C,b,x,S){if(!C)return E(m,b,x,S);if(C&&!C.isDirectory())throw new Error(`Cannot overwrite non-directory '${x}' with directory '${b}'.`);return A(b,x,S)}function E(m,C,b,x){return r.mkdirSync(b),A(C,b,x),r.chmodSync(b,m.mode)}function A(m,C,b){r.readdirSync(m).forEach(x=>d(x,m,C,b))}function d(m,C,b,x){let S=i.join(C,m),B=i.join(b,m),{destStat:k}=s.checkPathsSync(S,B,"copy");return c(k,S,B,x)}function D(m,C,b,x){let S=r.readlinkSync(C);if(x.dereference&&(S=i.resolve(process.cwd(),S)),m){let B;try{B=r.readlinkSync(b)}catch(k){if(k.code==="EINVAL"||k.code==="UNKNOWN")return r.symlinkSync(S,b);throw k}if(x.dereference&&(B=i.resolve(process.cwd(),B)),s.isSrcSubdir(S,B))throw new Error(`Cannot copy '${S}' to a subdirectory of itself, '${B}'.`);if(r.statSync(b).isDirectory()&&s.isSrcSubdir(B,S))throw new Error(`Cannot overwrite '${B}' with '${S}'.`);return g(S,b)}else return r.symlinkSync(S,b)}function g(m,C){return r.unlinkSync(C),r.symlinkSync(m,C)}e.exports=o}),Tr=N((t,e)=>{"use strict";R(),e.exports={copySync:Bi()}}),Mt=N((t,e)=>{"use strict";R();var r=Bt().fromPromise,i=Br();function n(a){return i.access(a).then(()=>!0).catch(()=>!1)}e.exports={pathExists:r(n),pathExistsSync:i.existsSync}}),Oi=N((t,e)=>{"use strict";R();var r=Et(),i=G("path"),n=Ot().mkdirs,a=Mt().pathExists,s=Rr().utimesMillis,o=Ce();function u(S,B,k,T){typeof k=="function"&&!T?(T=k,k={}):typeof k=="function"&&(k={filter:k}),T=T||function(){},k=k||{},k.clobber="clobber"in k?!!k.clobber:!0,k.overwrite="overwrite"in k?!!k.overwrite:k.clobber,k.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
5
|
+
|
6
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),o.checkPaths(S,B,"copy",(j,_)=>{if(j)return T(j);let{srcStat:F,destStat:w}=_;o.checkParentPaths(S,F,B,"copy",O=>O?T(O):k.filter?p(c,w,S,B,k,T):c(w,S,B,k,T))})}function c(S,B,k,T,j){let _=i.dirname(k);a(_,(F,w)=>{if(F)return j(F);if(w)return l(S,B,k,T,j);n(_,O=>O?j(O):l(S,B,k,T,j))})}function p(S,B,k,T,j,_){Promise.resolve(j.filter(k,T)).then(F=>F?S(B,k,T,j,_):_(),F=>_(F))}function l(S,B,k,T,j){return T.filter?p(f,S,B,k,T,j):f(S,B,k,T,j)}function f(S,B,k,T,j){(T.dereference?r.stat:r.lstat)(B,(_,F)=>{if(_)return j(_);if(F.isDirectory())return d(F,S,B,k,T,j);if(F.isFile()||F.isCharacterDevice()||F.isBlockDevice())return h(F,S,B,k,T,j);if(F.isSymbolicLink())return b(S,B,k,T,j)})}function h(S,B,k,T,j,_){return B?y(S,k,T,j,_):v(S,k,T,j,_)}function y(S,B,k,T,j){if(T.overwrite)r.unlink(k,_=>_?j(_):v(S,B,k,T,j));else return T.errorOnExist?j(new Error(`'${k}' already exists`)):j()}function v(S,B,k,T,j){return typeof r.copyFile=="function"?r.copyFile(B,k,_=>_?j(_):A(S,k,T,j)):E(S,B,k,T,j)}function E(S,B,k,T,j){let _=r.createReadStream(B);_.on("error",F=>j(F)).once("open",()=>{let F=r.createWriteStream(k,{mode:S.mode});F.on("error",w=>j(w)).on("open",()=>_.pipe(F)).once("close",()=>A(S,k,T,j))})}function A(S,B,k,T){r.chmod(B,S.mode,j=>j?T(j):k.preserveTimestamps?s(B,S.atime,S.mtime,T):T())}function d(S,B,k,T,j,_){return B?B&&!B.isDirectory()?_(new Error(`Cannot overwrite non-directory '${T}' with directory '${k}'.`)):g(k,T,j,_):D(S,k,T,j,_)}function D(S,B,k,T,j){r.mkdir(k,_=>{if(_)return j(_);g(B,k,T,F=>F?j(F):r.chmod(k,S.mode,j))})}function g(S,B,k,T){r.readdir(S,(j,_)=>j?T(j):m(_,S,B,k,T))}function m(S,B,k,T,j){let _=S.pop();return _?C(S,_,B,k,T,j):j()}function C(S,B,k,T,j,_){let F=i.join(k,B),w=i.join(T,B);o.checkPaths(F,w,"copy",(O,I)=>{if(O)return _(O);let{destStat:L}=I;l(L,F,w,j,U=>U?_(U):m(S,k,T,j,_))})}function b(S,B,k,T,j){r.readlink(B,(_,F)=>{if(_)return j(_);if(T.dereference&&(F=i.resolve(process.cwd(),F)),S)r.readlink(k,(w,O)=>w?w.code==="EINVAL"||w.code==="UNKNOWN"?r.symlink(F,k,j):j(w):(T.dereference&&(O=i.resolve(process.cwd(),O)),o.isSrcSubdir(F,O)?j(new Error(`Cannot copy '${F}' to a subdirectory of itself, '${O}'.`)):S.isDirectory()&&o.isSrcSubdir(O,F)?j(new Error(`Cannot overwrite '${O}' with '${F}'.`)):x(F,k,j)));else return r.symlink(F,k,j)})}function x(S,B,k){r.unlink(B,T=>T?k(T):r.symlink(S,B,k))}e.exports=u}),Pr=N((t,e)=>{"use strict";R();var r=Bt().fromCallback;e.exports={copy:r(Oi())}}),Ri=N((t,e)=>{"use strict";R();var r=Et(),i=G("path"),n=G("assert"),a=process.platform==="win32";function s(E){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(A=>{E[A]=E[A]||r[A],A=A+"Sync",E[A]=E[A]||r[A]}),E.maxBusyTries=E.maxBusyTries||3}function o(E,A,d){let D=0;typeof A=="function"&&(d=A,A={}),n(E,"rimraf: missing path"),n.strictEqual(typeof E,"string","rimraf: path should be a string"),n.strictEqual(typeof d,"function","rimraf: callback function required"),n(A,"rimraf: invalid options argument provided"),n.strictEqual(typeof A,"object","rimraf: options should be object"),s(A),u(E,A,function g(m){if(m){if((m.code==="EBUSY"||m.code==="ENOTEMPTY"||m.code==="EPERM")&&D<A.maxBusyTries){D++;let C=D*100;return setTimeout(()=>u(E,A,g),C)}m.code==="ENOENT"&&(m=null)}d(m)})}function u(E,A,d){n(E),n(A),n(typeof d=="function"),A.lstat(E,(D,g)=>{if(D&&D.code==="ENOENT")return d(null);if(D&&D.code==="EPERM"&&a)return c(E,A,D,d);if(g&&g.isDirectory())return l(E,A,D,d);A.unlink(E,m=>{if(m){if(m.code==="ENOENT")return d(null);if(m.code==="EPERM")return a?c(E,A,m,d):l(E,A,m,d);if(m.code==="EISDIR")return l(E,A,m,d)}return d(m)})})}function c(E,A,d,D){n(E),n(A),n(typeof D=="function"),d&&n(d instanceof Error),A.chmod(E,438,g=>{g?D(g.code==="ENOENT"?null:d):A.stat(E,(m,C)=>{m?D(m.code==="ENOENT"?null:d):C.isDirectory()?l(E,A,d,D):A.unlink(E,D)})})}function p(E,A,d){let D;n(E),n(A),d&&n(d instanceof Error);try{A.chmodSync(E,438)}catch(g){if(g.code==="ENOENT")return;throw d}try{D=A.statSync(E)}catch(g){if(g.code==="ENOENT")return;throw d}D.isDirectory()?y(E,A,d):A.unlinkSync(E)}function l(E,A,d,D){n(E),n(A),d&&n(d instanceof Error),n(typeof D=="function"),A.rmdir(E,g=>{g&&(g.code==="ENOTEMPTY"||g.code==="EEXIST"||g.code==="EPERM")?f(E,A,D):g&&g.code==="ENOTDIR"?D(d):D(g)})}function f(E,A,d){n(E),n(A),n(typeof d=="function"),A.readdir(E,(D,g)=>{if(D)return d(D);let m=g.length,C;if(m===0)return A.rmdir(E,d);g.forEach(b=>{o(i.join(E,b),A,x=>{if(!C){if(x)return d(C=x);--m===0&&A.rmdir(E,d)}})})})}function h(E,A){let d;A=A||{},s(A),n(E,"rimraf: missing path"),n.strictEqual(typeof E,"string","rimraf: path should be a string"),n(A,"rimraf: missing options"),n.strictEqual(typeof A,"object","rimraf: options should be object");try{d=A.lstatSync(E)}catch(D){if(D.code==="ENOENT")return;D.code==="EPERM"&&a&&p(E,A,D)}try{d&&d.isDirectory()?y(E,A,null):A.unlinkSync(E)}catch(D){if(D.code==="ENOENT")return;if(D.code==="EPERM")return a?p(E,A,D):y(E,A,D);if(D.code!=="EISDIR")throw D;y(E,A,D)}}function y(E,A,d){n(E),n(A),d&&n(d instanceof Error);try{A.rmdirSync(E)}catch(D){if(D.code==="ENOTDIR")throw d;if(D.code==="ENOTEMPTY"||D.code==="EEXIST"||D.code==="EPERM")v(E,A);else if(D.code!=="ENOENT")throw D}}function v(E,A){if(n(E),n(A),A.readdirSync(E).forEach(d=>h(i.join(E,d),A)),a){let d=Date.now();do try{return A.rmdirSync(E,A)}catch{}while(Date.now()-d<500)}else return A.rmdirSync(E,A)}e.exports=o,o.sync=h}),be=N((t,e)=>{"use strict";R();var r=Bt().fromCallback,i=Ri();e.exports={remove:r(i),removeSync:i.sync}}),Ti=N((t,e)=>{"use strict";R();var r=Bt().fromCallback,i=Et(),n=G("path"),a=Ot(),s=be(),o=r(function(c,p){p=p||function(){},i.readdir(c,(l,f)=>{if(l)return a.mkdirs(c,p);f=f.map(y=>n.join(c,y)),h();function h(){let y=f.pop();if(!y)return p();s.remove(y,v=>{if(v)return p(v);h()})}})});function u(c){let p;try{p=i.readdirSync(c)}catch{return a.mkdirsSync(c)}p.forEach(l=>{l=n.join(c,l),s.removeSync(l)})}e.exports={emptyDirSync:u,emptydirSync:u,emptyDir:o,emptydir:o}}),Pi=N((t,e)=>{"use strict";R();var r=Bt().fromCallback,i=G("path"),n=Et(),a=Ot(),s=Mt().pathExists;function o(c,p){function l(){n.writeFile(c,"",f=>{if(f)return p(f);p()})}n.stat(c,(f,h)=>{if(!f&&h.isFile())return p();let y=i.dirname(c);s(y,(v,E)=>{if(v)return p(v);if(E)return l();a.mkdirs(y,A=>{if(A)return p(A);l()})})})}function u(c){let p;try{p=n.statSync(c)}catch{}if(p&&p.isFile())return;let l=i.dirname(c);n.existsSync(l)||a.mkdirsSync(l),n.writeFileSync(c,"")}e.exports={createFile:r(o),createFileSync:u}}),Ni=N((t,e)=>{"use strict";R();var r=Bt().fromCallback,i=G("path"),n=Et(),a=Ot(),s=Mt().pathExists;function o(c,p,l){function f(h,y){n.link(h,y,v=>{if(v)return l(v);l(null)})}s(p,(h,y)=>{if(h)return l(h);if(y)return l(null);n.lstat(c,v=>{if(v)return v.message=v.message.replace("lstat","ensureLink"),l(v);let E=i.dirname(p);s(E,(A,d)=>{if(A)return l(A);if(d)return f(c,p);a.mkdirs(E,D=>{if(D)return l(D);f(c,p)})})})})}function u(c,p){if(n.existsSync(p))return;try{n.lstatSync(c)}catch(f){throw f.message=f.message.replace("lstat","ensureLink"),f}let l=i.dirname(p);return n.existsSync(l)||a.mkdirsSync(l),n.linkSync(c,p)}e.exports={createLink:r(o),createLinkSync:u}}),Ii=N((t,e)=>{"use strict";R();var r=G("path"),i=Et(),n=Mt().pathExists;function a(o,u,c){if(r.isAbsolute(o))return i.lstat(o,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),c(p)):c(null,{toCwd:o,toDst:o}));{let p=r.dirname(u),l=r.join(p,o);return n(l,(f,h)=>f?c(f):h?c(null,{toCwd:l,toDst:o}):i.lstat(o,y=>y?(y.message=y.message.replace("lstat","ensureSymlink"),c(y)):c(null,{toCwd:o,toDst:r.relative(p,o)})))}}function s(o,u){let c;if(r.isAbsolute(o)){if(c=i.existsSync(o),!c)throw new Error("absolute srcpath does not exist");return{toCwd:o,toDst:o}}else{let p=r.dirname(u),l=r.join(p,o);if(c=i.existsSync(l),c)return{toCwd:l,toDst:o};if(c=i.existsSync(o),!c)throw new Error("relative srcpath does not exist");return{toCwd:o,toDst:r.relative(p,o)}}}e.exports={symlinkPaths:a,symlinkPathsSync:s}}),Li=N((t,e)=>{"use strict";R();var r=Et();function i(a,s,o){if(o=typeof s=="function"?s:o,s=typeof s=="function"?!1:s,s)return o(null,s);r.lstat(a,(u,c)=>{if(u)return o(null,"file");s=c&&c.isDirectory()?"dir":"file",o(null,s)})}function n(a,s){let o;if(s)return s;try{o=r.lstatSync(a)}catch{return"file"}return o&&o.isDirectory()?"dir":"file"}e.exports={symlinkType:i,symlinkTypeSync:n}}),ji=N((t,e)=>{"use strict";R();var r=Bt().fromCallback,i=G("path"),n=Et(),a=Ot(),s=a.mkdirs,o=a.mkdirsSync,u=Ii(),c=u.symlinkPaths,p=u.symlinkPathsSync,l=Li(),f=l.symlinkType,h=l.symlinkTypeSync,y=Mt().pathExists;function v(A,d,D,g){g=typeof D=="function"?D:g,D=typeof D=="function"?!1:D,y(d,(m,C)=>{if(m)return g(m);if(C)return g(null);c(A,d,(b,x)=>{if(b)return g(b);A=x.toDst,f(x.toCwd,D,(S,B)=>{if(S)return g(S);let k=i.dirname(d);y(k,(T,j)=>{if(T)return g(T);if(j)return n.symlink(A,d,B,g);s(k,_=>{if(_)return g(_);n.symlink(A,d,B,g)})})})})})}function E(A,d,D){if(n.existsSync(d))return;let g=p(A,d);A=g.toDst,D=h(g.toCwd,D);let m=i.dirname(d);return n.existsSync(m)||o(m),n.symlinkSync(A,d,D)}e.exports={createSymlink:r(v),createSymlinkSync:E}}),Mi=N((t,e)=>{"use strict";R();var r=Pi(),i=Ni(),n=ji();e.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.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}}),$i=N((t,e)=>{R();var r;try{r=Et()}catch{r=G("fs")}function i(p,l,f){f==null&&(f=l,l={}),typeof l=="string"&&(l={encoding:l}),l=l||{};var h=l.fs||r,y=!0;"throws"in l&&(y=l.throws),h.readFile(p,l,function(v,E){if(v)return f(v);E=u(E);var A;try{A=JSON.parse(E,l?l.reviver:null)}catch(d){return y?(d.message=p+": "+d.message,f(d)):f(null,null)}f(null,A)})}function n(p,l){l=l||{},typeof l=="string"&&(l={encoding:l});var f=l.fs||r,h=!0;"throws"in l&&(h=l.throws);try{var y=f.readFileSync(p,l);return y=u(y),JSON.parse(y,l.reviver)}catch(v){if(h)throw v.message=p+": "+v.message,v;return null}}function a(p,l){var f,h=`
|
7
|
+
`;typeof l=="object"&&l!==null&&(l.spaces&&(f=l.spaces),l.EOL&&(h=l.EOL));var y=JSON.stringify(p,l?l.replacer:null,f);return y.replace(/\n/g,h)+h}function s(p,l,f,h){h==null&&(h=f,f={}),f=f||{};var y=f.fs||r,v="";try{v=a(l,f)}catch(E){h&&h(E,null);return}y.writeFile(p,v,f,h)}function o(p,l,f){f=f||{};var h=f.fs||r,y=a(l,f);return h.writeFileSync(p,y,f)}function u(p){return Buffer.isBuffer(p)&&(p=p.toString("utf8")),p=p.replace(/^\uFEFF/,""),p}var c={readFile:i,readFileSync:n,writeFile:s,writeFileSync:o};e.exports=c}),qe=N((t,e)=>{"use strict";R();var r=Bt().fromCallback,i=$i();e.exports={readJson:r(i.readFile),readJsonSync:i.readFileSync,writeJson:r(i.writeFile),writeJsonSync:i.writeFileSync}}),Hi=N((t,e)=>{"use strict";R();var r=G("path"),i=Ot(),n=Mt().pathExists,a=qe();function s(o,u,c,p){typeof c=="function"&&(p=c,c={});let l=r.dirname(o);n(l,(f,h)=>{if(f)return p(f);if(h)return a.writeJson(o,u,c,p);i.mkdirs(l,y=>{if(y)return p(y);a.writeJson(o,u,c,p)})})}e.exports=s}),Gi=N((t,e)=>{"use strict";R();var r=Et(),i=G("path"),n=Ot(),a=qe();function s(o,u,c){let p=i.dirname(o);r.existsSync(p)||n.mkdirsSync(p),a.writeJsonSync(o,u,c)}e.exports=s}),Ui=N((t,e)=>{"use strict";R();var r=Bt().fromCallback,i=qe();i.outputJson=r(Hi()),i.outputJsonSync=Gi(),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,e.exports=i}),Wi=N((t,e)=>{"use strict";R();var r=Et(),i=G("path"),n=Tr().copySync,a=be().removeSync,s=Ot().mkdirpSync,o=Ce();function u(f,h,y){y=y||{};let v=y.overwrite||y.clobber||!1,{srcStat:E}=o.checkPathsSync(f,h,"move");return o.checkParentPathsSync(f,E,h,"move"),s(i.dirname(h)),c(f,h,v)}function c(f,h,y){if(y)return a(h),p(f,h,y);if(r.existsSync(h))throw new Error("dest already exists.");return p(f,h,y)}function p(f,h,y){try{r.renameSync(f,h)}catch(v){if(v.code!=="EXDEV")throw v;return l(f,h,y)}}function l(f,h,y){return n(f,h,{overwrite:y,errorOnExist:!0}),a(f)}e.exports=u}),Vi=N((t,e)=>{"use strict";R(),e.exports={moveSync:Wi()}}),Ki=N((t,e)=>{"use strict";R();var r=Et(),i=G("path"),n=Pr().copy,a=be().remove,s=Ot().mkdirp,o=Mt().pathExists,u=Ce();function c(h,y,v,E){typeof v=="function"&&(E=v,v={});let A=v.overwrite||v.clobber||!1;u.checkPaths(h,y,"move",(d,D)=>{if(d)return E(d);let{srcStat:g}=D;u.checkParentPaths(h,g,y,"move",m=>{if(m)return E(m);s(i.dirname(y),C=>C?E(C):p(h,y,A,E))})})}function p(h,y,v,E){if(v)return a(y,A=>A?E(A):l(h,y,v,E));o(y,(A,d)=>A?E(A):d?E(new Error("dest already exists.")):l(h,y,v,E))}function l(h,y,v,E){r.rename(h,y,A=>A?A.code!=="EXDEV"?E(A):f(h,y,v,E):E())}function f(h,y,v,E){n(h,y,{overwrite:v,errorOnExist:!0},A=>A?E(A):a(h,E))}e.exports=c}),qi=N((t,e)=>{"use strict";R();var r=Bt().fromCallback;e.exports={move:r(Ki())}}),Yi=N((t,e)=>{"use strict";R();var r=Bt().fromCallback,i=Et(),n=G("path"),a=Ot(),s=Mt().pathExists;function o(c,p,l,f){typeof l=="function"&&(f=l,l="utf8");let h=n.dirname(c);s(h,(y,v)=>{if(y)return f(y);if(v)return i.writeFile(c,p,l,f);a.mkdirs(h,E=>{if(E)return f(E);i.writeFile(c,p,l,f)})})}function u(c,...p){let l=n.dirname(c);if(i.existsSync(l))return i.writeFileSync(c,...p);a.mkdirsSync(l),i.writeFileSync(c,...p)}e.exports={outputFile:r(o),outputFileSync:u}}),Qi=N((t,e)=>{"use strict";R(),e.exports=Object.assign({},Br(),Tr(),Pr(),Ti(),Mi(),Ui(),Ot(),Vi(),qi(),Yi(),Mt(),be());var r=G("fs");Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(e.exports,"promises",{get(){return r.promises}})});R();R();var Vc=Ht(Di());R();R();function Xi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}R();R();function Ge(t){return Ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(t)}R();function Ji(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zi(t,e){if(e&&(Ge(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ji(t)}R();function ve(t){return ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ve(t)}R();R();function ue(t,e){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ue(t,e)}function zi(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ue(t,e)}R();R();function to(t){return Function.toString.call(t).indexOf("[native code]")!==-1}R();R();function eo(){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 Ee(t,e,r){return eo()?Ee=Reflect.construct.bind():Ee=function(i,n,a){var s=[null];s.push.apply(s,n);var o=Function.bind.apply(i,s),u=new o;return a&&ue(u,a.prototype),u},Ee.apply(null,arguments)}function Ue(t){var e=typeof Map=="function"?new Map:void 0;return Ue=function(r){if(r===null||!to(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Ee(r,arguments,ve(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ue(i,r)},Ue(t)}var ro=Ht(bi()),Ye=Ht(Qi()),no=function(t){zi(e,t);function e(r){var i;return Xi(this,e),i=Zi(this,ve(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Ue(Error));function io(t,e){try{var r=Ye.default.readJsonSync(Se.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(i){if(i.code!=="ENOENT")throw i}}function oo(t){try{var e=Ye.default.readJsonSync(Se.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function uo(t){var e=Ye.default.existsSync(Se.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function so(t){var e={current:void 0},r=(0,ro.sync)(function(i){return[oo(i),io(i,e),uo(i)].find(function(n){return n})},{cwd:t,type:"directory"});if(e.current===void 0)throw new no(t);return r===void 0?e.current:r}R();var ao=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,co=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,lo=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,$e={Space_Separator:ao,ID_Start:co,ID_Continue:lo},mt={isSpaceSeparator(t){return typeof t=="string"&&$e.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||$e.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="\u200C"||t==="\u200D"||$e.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}},We,_t,Lt,Ae,Gt,Tt,Ct,Qe,oe,po=function(t,e){We=String(t),_t="start",Lt=[],Ae=0,Gt=1,Tt=0,Ct=void 0,Qe=void 0,oe=void 0;do Ct=fo(),yo[_t]();while(Ct.type!=="eof");return typeof e=="function"?Ve({"":oe},"",e):oe};function Ve(t,e,r){let i=t[e];if(i!=null&&typeof i=="object")if(Array.isArray(i))for(let n=0;n<i.length;n++){let a=String(n),s=Ve(i,a,r);s===void 0?delete i[a]:Object.defineProperty(i,a,{value:s,writable:!0,enumerable:!0,configurable:!0})}else for(let n in i){let a=Ve(i,n,r);a===void 0?delete i[n]:Object.defineProperty(i,n,{value:a,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,i)}var rt,z,ie,It,it;function fo(){for(rt="default",z="",ie=!1,It=1;;){it=jt();let t=Nr[rt]();if(t)return t}}function jt(){if(We[Ae])return String.fromCodePoint(We.codePointAt(Ae))}function H(){let t=jt();return t===`
|
8
|
+
`?(Gt++,Tt=0):t?Tt+=t.length:Tt++,t&&(Ae+=t.length),t}var Nr={default(){switch(it){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
9
|
+
`:case"\r":case"\u2028":case"\u2029":H();return;case"/":H(),rt="comment";return;case void 0:return H(),dt("eof")}if(mt.isSpaceSeparator(it)){H();return}return Nr[_t]()},comment(){switch(it){case"*":H(),rt="multiLineComment";return;case"/":H(),rt="singleLineComment";return}throw ht(H())},multiLineComment(){switch(it){case"*":H(),rt="multiLineCommentAsterisk";return;case void 0:throw ht(H())}H()},multiLineCommentAsterisk(){switch(it){case"*":H();return;case"/":H(),rt="default";return;case void 0:throw ht(H())}H(),rt="multiLineComment"},singleLineComment(){switch(it){case`
|
10
|
+
`:case"\r":case"\u2028":case"\u2029":H(),rt="default";return;case void 0:return H(),dt("eof")}H()},value(){switch(it){case"{":case"[":return dt("punctuator",H());case"n":return H(),Kt("ull"),dt("null",null);case"t":return H(),Kt("rue"),dt("boolean",!0);case"f":return H(),Kt("alse"),dt("boolean",!1);case"-":case"+":H()==="-"&&(It=-1),rt="sign";return;case".":z=H(),rt="decimalPointLeading";return;case"0":z=H(),rt="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":z=H(),rt="decimalInteger";return;case"I":return H(),Kt("nfinity"),dt("numeric",1/0);case"N":return H(),Kt("aN"),dt("numeric",NaN);case'"':case"'":ie=H()==='"',z="",rt="string";return}throw ht(H())},identifierNameStartEscape(){if(it!=="u")throw ht(H());H();let t=Ke();switch(t){case"$":case"_":break;default:if(!mt.isIdStartChar(t))throw kr();break}z+=t,rt="identifierName"},identifierName(){switch(it){case"$":case"_":case"\u200C":case"\u200D":z+=H();return;case"\\":H(),rt="identifierNameEscape";return}if(mt.isIdContinueChar(it)){z+=H();return}return dt("identifier",z)},identifierNameEscape(){if(it!=="u")throw ht(H());H();let t=Ke();switch(t){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!mt.isIdContinueChar(t))throw kr();break}z+=t,rt="identifierName"},sign(){switch(it){case".":z=H(),rt="decimalPointLeading";return;case"0":z=H(),rt="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":z=H(),rt="decimalInteger";return;case"I":return H(),Kt("nfinity"),dt("numeric",It*(1/0));case"N":return H(),Kt("aN"),dt("numeric",NaN)}throw ht(H())},zero(){switch(it){case".":z+=H(),rt="decimalPoint";return;case"e":case"E":z+=H(),rt="decimalExponent";return;case"x":case"X":z+=H(),rt="hexadecimal";return}return dt("numeric",It*0)},decimalInteger(){switch(it){case".":z+=H(),rt="decimalPoint";return;case"e":case"E":z+=H(),rt="decimalExponent";return}if(mt.isDigit(it)){z+=H();return}return dt("numeric",It*Number(z))},decimalPointLeading(){if(mt.isDigit(it)){z+=H(),rt="decimalFraction";return}throw ht(H())},decimalPoint(){switch(it){case"e":case"E":z+=H(),rt="decimalExponent";return}if(mt.isDigit(it)){z+=H(),rt="decimalFraction";return}return dt("numeric",It*Number(z))},decimalFraction(){switch(it){case"e":case"E":z+=H(),rt="decimalExponent";return}if(mt.isDigit(it)){z+=H();return}return dt("numeric",It*Number(z))},decimalExponent(){switch(it){case"+":case"-":z+=H(),rt="decimalExponentSign";return}if(mt.isDigit(it)){z+=H(),rt="decimalExponentInteger";return}throw ht(H())},decimalExponentSign(){if(mt.isDigit(it)){z+=H(),rt="decimalExponentInteger";return}throw ht(H())},decimalExponentInteger(){if(mt.isDigit(it)){z+=H();return}return dt("numeric",It*Number(z))},hexadecimal(){if(mt.isHexDigit(it)){z+=H(),rt="hexadecimalInteger";return}throw ht(H())},hexadecimalInteger(){if(mt.isHexDigit(it)){z+=H();return}return dt("numeric",It*Number(z))},string(){switch(it){case"\\":H(),z+=ho();return;case'"':if(ie)return H(),dt("string",z);z+=H();return;case"'":if(!ie)return H(),dt("string",z);z+=H();return;case`
|
11
|
+
`:case"\r":throw ht(H());case"\u2028":case"\u2029":Do(it);break;case void 0:throw ht(H())}z+=H()},start(){switch(it){case"{":case"[":return dt("punctuator",H())}rt="value"},beforePropertyName(){switch(it){case"$":case"_":z=H(),rt="identifierName";return;case"\\":H(),rt="identifierNameStartEscape";return;case"}":return dt("punctuator",H());case'"':case"'":ie=H()==='"',rt="string";return}if(mt.isIdStartChar(it)){z+=H(),rt="identifierName";return}throw ht(H())},afterPropertyName(){if(it===":")return dt("punctuator",H());throw ht(H())},beforePropertyValue(){rt="value"},afterPropertyValue(){switch(it){case",":case"}":return dt("punctuator",H())}throw ht(H())},beforeArrayValue(){if(it==="]")return dt("punctuator",H());rt="value"},afterArrayValue(){switch(it){case",":case"]":return dt("punctuator",H())}throw ht(H())},end(){throw ht(H())}};function dt(t,e){return{type:t,value:e,line:Gt,column:Tt}}function Kt(t){for(let e of t){if(jt()!==e)throw ht(H());H()}}function ho(){switch(jt()){case"b":return H(),"\b";case"f":return H(),"\f";case"n":return H(),`
|
12
|
+
`;case"r":return H(),"\r";case"t":return H()," ";case"v":return H(),"\v";case"0":if(H(),mt.isDigit(jt()))throw ht(H());return"\0";case"x":return H(),mo();case"u":return H(),Ke();case`
|
13
|
+
`:case"\u2028":case"\u2029":return H(),"";case"\r":return H(),jt()===`
|
14
|
+
`&&H(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw ht(H());case void 0:throw ht(H())}return H()}function mo(){let t="",e=jt();if(!mt.isHexDigit(e)||(t+=H(),e=jt(),!mt.isHexDigit(e)))throw ht(H());return t+=H(),String.fromCodePoint(parseInt(t,16))}function Ke(){let t="",e=4;for(;e-- >0;){let r=jt();if(!mt.isHexDigit(r))throw ht(H());t+=H()}return String.fromCodePoint(parseInt(t,16))}var yo={start(){if(Ct.type==="eof")throw qt();He()},beforePropertyName(){switch(Ct.type){case"identifier":case"string":Qe=Ct.value,_t="afterPropertyName";return;case"punctuator":ge();return;case"eof":throw qt()}},afterPropertyName(){if(Ct.type==="eof")throw qt();_t="beforePropertyValue"},beforePropertyValue(){if(Ct.type==="eof")throw qt();He()},beforeArrayValue(){if(Ct.type==="eof")throw qt();if(Ct.type==="punctuator"&&Ct.value==="]"){ge();return}He()},afterPropertyValue(){if(Ct.type==="eof")throw qt();switch(Ct.value){case",":_t="beforePropertyName";return;case"}":ge()}},afterArrayValue(){if(Ct.type==="eof")throw qt();switch(Ct.value){case",":_t="beforeArrayValue";return;case"]":ge()}},end(){}};function He(){let t;switch(Ct.type){case"punctuator":switch(Ct.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=Ct.value;break}if(oe===void 0)oe=t;else{let e=Lt[Lt.length-1];Array.isArray(e)?e.push(t):Object.defineProperty(e,Qe,{value:t,writable:!0,enumerable:!0,configurable:!0})}if(t!==null&&typeof t=="object")Lt.push(t),Array.isArray(t)?_t="beforeArrayValue":_t="beforePropertyName";else{let e=Lt[Lt.length-1];e==null?_t="end":Array.isArray(e)?_t="afterArrayValue":_t="afterPropertyValue"}}function ge(){Lt.pop();let t=Lt[Lt.length-1];t==null?_t="end":Array.isArray(t)?_t="afterArrayValue":_t="afterPropertyValue"}function ht(t){return Xe(t===void 0?`JSON5: invalid end of input at ${Gt}:${Tt}`:`JSON5: invalid character '${Ir(t)}' at ${Gt}:${Tt}`)}function qt(){return Xe(`JSON5: invalid end of input at ${Gt}:${Tt}`)}function kr(){return Tt-=5,Xe(`JSON5: invalid identifier character at ${Gt}:${Tt}`)}function Do(t){console.warn(`JSON5: '${Ir(t)}' in strings is not valid ECMAScript; consider escaping`)}function Ir(t){let e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[t])return e[t];if(t<" "){let r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}function Xe(t){let e=new SyntaxError(t);return e.lineNumber=Gt,e.columnNumber=Tt,e}var go=function(t,e,r){let i=[],n="",a,s,o="",u;if(e!=null&&typeof e=="object"&&!Array.isArray(e)&&(r=e.space,u=e.quote,e=e.replacer),typeof e=="function")s=e;else if(Array.isArray(e)){a=[];for(let y of e){let v;typeof y=="string"?v=y:(typeof y=="number"||y instanceof String||y instanceof Number)&&(v=String(y)),v!==void 0&&a.indexOf(v)<0&&a.push(v)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),typeof r=="number"?r>0&&(r=Math.min(10,Math.floor(r)),o=" ".substr(0,r)):typeof r=="string"&&(o=r.substr(0,10)),c("",{"":t});function c(y,v){let E=v[y];switch(E!=null&&(typeof E.toJSON5=="function"?E=E.toJSON5(y):typeof E.toJSON=="function"&&(E=E.toJSON(y))),s&&(E=s.call(v,y,E)),E instanceof Number?E=Number(E):E instanceof String?E=String(E):E instanceof Boolean&&(E=E.valueOf()),E){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof E=="string")return p(E,!1);if(typeof E=="number")return String(E);if(typeof E=="object")return Array.isArray(E)?h(E):l(E)}function p(y){let v={"'":.1,'"':.2},E={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},A="";for(let D=0;D<y.length;D++){let g=y[D];switch(g){case"'":case'"':v[g]++,A+=g;continue;case"\0":if(mt.isDigit(y[D+1])){A+="\\x00";continue}}if(E[g]){A+=E[g];continue}if(g<" "){let m=g.charCodeAt(0).toString(16);A+="\\x"+("00"+m).substring(m.length);continue}A+=g}let d=u||Object.keys(v).reduce((D,g)=>v[D]<v[g]?D:g);return A=A.replace(new RegExp(d,"g"),E[d]),d+A+d}function l(y){if(i.indexOf(y)>=0)throw TypeError("Converting circular structure to JSON5");i.push(y);let v=n;n=n+o;let E=a||Object.keys(y),A=[];for(let D of E){let g=c(D,y);if(g!==void 0){let m=f(D)+":";o!==""&&(m+=" "),m+=g,A.push(m)}}let d;if(A.length===0)d="{}";else{let D;if(o==="")D=A.join(","),d="{"+D+"}";else{let g=`,
|
15
|
+
`+n;D=A.join(g),d=`{
|
16
|
+
`+n+D+`,
|
17
|
+
`+v+"}"}}return i.pop(),n=v,d}function f(y){if(y.length===0)return p(y,!0);let v=String.fromCodePoint(y.codePointAt(0));if(!mt.isIdStartChar(v))return p(y,!0);for(let E=v.length;E<y.length;E++)if(!mt.isIdContinueChar(String.fromCodePoint(y.codePointAt(E))))return p(y,!0);return y}function h(y){if(i.indexOf(y)>=0)throw TypeError("Converting circular structure to JSON5");i.push(y);let v=n;n=n+o;let E=[];for(let d=0;d<y.length;d++){let D=c(String(d),y);E.push(D!==void 0?D:"null")}let A;if(E.length===0)A="[]";else if(o===""){let d=E.join(",");A="["+d+"]"}else{let d=`,
|
18
|
+
`+n,D=E.join(d);A=`[
|
19
|
+
`+n+D+`,
|
20
|
+
`+v+"]"}return i.pop(),n=v,A}},Eo={parse:po,stringify:go},vo=Eo,Je=vo;function Ao(t){let e=i=>!Je.parse(i).extends,r=Me({target:"turbo.json",cwd:t||process.cwd(),contentCheck:e});if(!r)try{if(r=so(t||process.cwd()),!r)return null}catch{return null}return r}var Ze=Ao;var ae=kt(require("fs"),1),Qt=kt(require("path"),1),Co=N((t,e)=>{"use strict";R(),e.exports=(...r)=>[...new Set([].concat(...r))]}),Zr=N((t,e)=>{"use strict";R();var r=G("stream"),i=r.PassThrough,n=Array.prototype.slice;e.exports=a;function a(){let o=[],u=n.call(arguments),c=!1,p=u[u.length-1];p&&!Array.isArray(p)&&p.pipe==null?u.pop():p={};let l=p.end!==!1,f=p.pipeError===!0;p.objectMode==null&&(p.objectMode=!0),p.highWaterMark==null&&(p.highWaterMark=64*1024);let h=i(p);function y(){for(let A=0,d=arguments.length;A<d;A++)o.push(s(arguments[A],p));return v(),this}function v(){if(c)return;c=!0;let A=o.shift();if(!A){process.nextTick(E);return}Array.isArray(A)||(A=[A]);let d=A.length+1;function D(){--d>0||(c=!1,v())}function g(m){function C(){m.removeListener("merge2UnpipeEnd",C),m.removeListener("end",C),f&&m.removeListener("error",b),D()}function b(x){h.emit("error",x)}if(m._readableState.endEmitted)return D();m.on("merge2UnpipeEnd",C),m.on("end",C),f&&m.on("error",b),m.pipe(h,{end:!1}),m.resume()}for(let m=0;m<A.length;m++)g(A[m]);D()}function E(){c=!1,h.emit("queueDrain"),l&&h.end()}return h.setMaxListeners(0),h.add=y,h.on("unpipe",function(A){A.emit("merge2UnpipeEnd")}),u.length&&y.apply(null,u),h}function s(o,u){if(Array.isArray(o))for(let c=0,p=o.length;c<p;c++)o[c]=s(o[c],u);else{if(!o._readableState&&o.pipe&&(o=o.pipe(i(u))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}}),bo=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.splitWhen=t.flatten=void 0;function e(i){return i.reduce((n,a)=>[].concat(n,a),[])}t.flatten=e;function r(i,n){let a=[[]],s=0;for(let o of i)n(o)?(s++,a[s]=[]):a[s].push(o);return a}t.splitWhen=r}),So=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEnoentCodeError=void 0;function e(r){return r.code==="ENOENT"}t.isEnoentCodeError=e}),Fo=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var e=class{constructor(i,n){this.name=i,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function r(i,n){return new e(i,n)}t.createDirentFromStats=r}),_o=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeLeadingDotSegment=t.escape=t.makeAbsolute=t.unixify=void 0;var e=G("path"),r=2,i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function n(u){return u.replace(/\\/g,"/")}t.unixify=n;function a(u,c){return e.resolve(u,c)}t.makeAbsolute=a;function s(u){return u.replace(i,"\\$2")}t.escape=s;function o(u){if(u.charAt(0)==="."){let c=u.charAt(1);if(c==="/"||c==="\\")return u.slice(r)}return u}t.removeLeadingDotSegment=o}),wo=N((t,e)=>{R(),e.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(i[2])return!0;r=r.slice(i.index+i[0].length)}return!1}}),xo=N((t,e)=>{R();var r=wo(),i={"{":"}","(":")","[":"]"},n=function(s){if(s[0]==="!")return!0;for(var o=0,u=-2,c=-2,p=-2,l=-2,f=-2;o<s.length;){if(s[o]==="*"||s[o+1]==="?"&&/[\].+)]/.test(s[o])||c!==-1&&s[o]==="["&&s[o+1]!=="]"&&(c<o&&(c=s.indexOf("]",o)),c>o&&(f===-1||f>c||(f=s.indexOf("\\",o),f===-1||f>c)))||p!==-1&&s[o]==="{"&&s[o+1]!=="}"&&(p=s.indexOf("}",o),p>o&&(f=s.indexOf("\\",o),f===-1||f>p))||l!==-1&&s[o]==="("&&s[o+1]==="?"&&/[:!=]/.test(s[o+2])&&s[o+3]!==")"&&(l=s.indexOf(")",o),l>o&&(f=s.indexOf("\\",o),f===-1||f>l))||u!==-1&&s[o]==="("&&s[o+1]!=="|"&&(u<o&&(u=s.indexOf("|",o)),u!==-1&&s[u+1]!==")"&&(l=s.indexOf(")",u),l>u&&(f=s.indexOf("\\",u),f===-1||f>l))))return!0;if(s[o]==="\\"){var h=s[o+1];o+=2;var y=i[h];if(y){var v=s.indexOf(y,o);v!==-1&&(o=v+1)}if(s[o]==="!")return!0}else o++}return!1},a=function(s){if(s[0]==="!")return!0;for(var o=0;o<s.length;){if(/[*?{}()[\]]/.test(s[o]))return!0;if(s[o]==="\\"){var u=s[o+1];o+=2;var c=i[u];if(c){var p=s.indexOf(c,o);p!==-1&&(o=p+1)}if(s[o]==="!")return!0}else o++}return!1};e.exports=function(s,o){if(typeof s!="string"||s==="")return!1;if(r(s))return!0;var u=n;return o&&o.strict===!1&&(u=a),u(s)}}),ko=N((t,e)=>{"use strict";R();var r=xo(),i=G("path").posix.dirname,n=G("os").platform()==="win32",a="/",s=/\\/g,o=/[\{\[].*[\}\]]$/,u=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function(p,l){var f=Object.assign({flipBackslashes:!0},l);f.flipBackslashes&&n&&p.indexOf(a)<0&&(p=p.replace(s,a)),o.test(p)&&(p+=a),p+="a";do p=i(p);while(r(p)||u.test(p));return p.replace(c,"$1")}}),sr=N(t=>{"use strict";R(),t.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1,t.find=(e,r)=>e.nodes.find(i=>i.type===r),t.exceedsLimit=(e,r,i=1,n)=>n===!1||!t.isInteger(e)||!t.isInteger(r)?!1:(Number(r)-Number(e))/Number(i)>=n,t.escapeNode=(e,r=0,i)=>{let n=e.nodes[r];!n||(i&&n.type===i||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)},t.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1,t.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1,t.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0,t.reduce=e=>e.reduce((r,i)=>(i.type==="text"&&r.push(i.value),i.type==="range"&&(i.type="text"),r),[]),t.flatten=(...e)=>{let r=[],i=n=>{for(let a=0;a<n.length;a++){let s=n[a];Array.isArray(s)?i(s,r):s!==void 0&&r.push(s)}return r};return i(e),r}}),ar=N((t,e)=>{"use strict";R();var r=sr();e.exports=(i,n={})=>{let a=(s,o={})=>{let u=n.escapeInvalid&&r.isInvalidBrace(o),c=s.invalid===!0&&n.escapeInvalid===!0,p="";if(s.value)return(u||c)&&r.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let l of s.nodes)p+=a(l);return p};return a(i)}}),Bo=N((t,e)=>{"use strict";R(),e.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}),Oo=N((t,e)=>{"use strict";R();var r=Bo(),i=(d,D,g)=>{if(r(d)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(D===void 0||d===D)return String(d);if(r(D)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let m={relaxZeros:!0,...g};typeof m.strictZeros=="boolean"&&(m.relaxZeros=m.strictZeros===!1);let C=String(m.relaxZeros),b=String(m.shorthand),x=String(m.capture),S=String(m.wrap),B=d+":"+D+"="+C+b+x+S;if(i.cache.hasOwnProperty(B))return i.cache[B].result;let k=Math.min(d,D),T=Math.max(d,D);if(Math.abs(k-T)===1){let O=d+"|"+D;return m.capture?`(${O})`:m.wrap===!1?O:`(?:${O})`}let j=E(d)||E(D),_={min:d,max:D,a:k,b:T},F=[],w=[];if(j&&(_.isPadded=j,_.maxLen=String(_.max).length),k<0){let O=T<0?Math.abs(T):1;w=o(O,Math.abs(k),_,m),k=_.a=0}return T>=0&&(F=o(k,T,_,m)),_.negatives=w,_.positives=F,_.result=n(w,F,m),m.capture===!0?_.result=`(${_.result})`:m.wrap!==!1&&F.length+w.length>1&&(_.result=`(?:${_.result})`),i.cache[B]=_,_.result};function n(d,D,g){let m=u(d,D,"-",!1,g)||[],C=u(D,d,"",!1,g)||[],b=u(d,D,"-?",!0,g)||[];return m.concat(b).concat(C).join("|")}function a(d,D){let g=1,m=1,C=f(d,g),b=new Set([D]);for(;d<=C&&C<=D;)b.add(C),g+=1,C=f(d,g);for(C=h(D+1,m)-1;d<C&&C<=D;)b.add(C),m+=1,C=h(D+1,m)-1;return b=[...b],b.sort(p),b}function s(d,D,g){if(d===D)return{pattern:d,count:[],digits:0};let m=c(d,D),C=m.length,b="",x=0;for(let S=0;S<C;S++){let[B,k]=m[S];B===k?b+=B:B!=="0"||k!=="9"?b+=v(B,k,g):x++}return x&&(b+=g.shorthand===!0?"\\d":"[0-9]"),{pattern:b,count:[x],digits:C}}function o(d,D,g,m){let C=a(d,D),b=[],x=d,S;for(let B=0;B<C.length;B++){let k=C[B],T=s(String(x),String(k),m),j="";if(!g.isPadded&&S&&S.pattern===T.pattern){S.count.length>1&&S.count.pop(),S.count.push(T.count[0]),S.string=S.pattern+y(S.count),x=k+1;continue}g.isPadded&&(j=A(k,g,m)),T.string=j+T.pattern+y(T.count),b.push(T),x=k+1,S=T}return b}function u(d,D,g,m,C){let b=[];for(let x of d){let{string:S}=x;!m&&!l(D,"string",S)&&b.push(g+S),m&&l(D,"string",S)&&b.push(g+S)}return b}function c(d,D){let g=[];for(let m=0;m<d.length;m++)g.push([d[m],D[m]]);return g}function p(d,D){return d>D?1:D>d?-1:0}function l(d,D,g){return d.some(m=>m[D]===g)}function f(d,D){return Number(String(d).slice(0,-D)+"9".repeat(D))}function h(d,D){return d-d%Math.pow(10,D)}function y(d){let[D=0,g=""]=d;return g||D>1?`{${D+(g?","+g:"")}}`:""}function v(d,D,g){return`[${d}${D-d===1?"":"-"}${D}]`}function E(d){return/^-?(0+)\d/.test(d)}function A(d,D,g){if(!D.isPadded)return d;let m=Math.abs(D.maxLen-String(d).length),C=g.relaxZeros!==!1;switch(m){case 0:return"";case 1:return C?"0?":"0";case 2:return C?"0{0,2}":"00";default:return C?`0{0,${m}}`:`0{${m}}`}}i.cache={},i.clearCache=()=>i.cache={},e.exports=i}),zr=N((t,e)=>{"use strict";R();var r=G("util"),i=Oo(),n=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),a=m=>C=>m===!0?Number(C):String(C),s=m=>typeof m=="number"||typeof m=="string"&&m!=="",o=m=>Number.isInteger(+m),u=m=>{let C=`${m}`,b=-1;if(C[0]==="-"&&(C=C.slice(1)),C==="0")return!1;for(;C[++b]==="0";);return b>0},c=(m,C,b)=>typeof m=="string"||typeof C=="string"?!0:b.stringify===!0,p=(m,C,b)=>{if(C>0){let x=m[0]==="-"?"-":"";x&&(m=m.slice(1)),m=x+m.padStart(x?C-1:C,"0")}return b===!1?String(m):m},l=(m,C)=>{let b=m[0]==="-"?"-":"";for(b&&(m=m.slice(1),C--);m.length<C;)m="0"+m;return b?"-"+m:m},f=(m,C)=>{m.negatives.sort((k,T)=>k<T?-1:k>T?1:0),m.positives.sort((k,T)=>k<T?-1:k>T?1:0);let b=C.capture?"":"?:",x="",S="",B;return m.positives.length&&(x=m.positives.join("|")),m.negatives.length&&(S=`-(${b}${m.negatives.join("|")})`),x&&S?B=`${x}|${S}`:B=x||S,C.wrap?`(${b}${B})`:B},h=(m,C,b,x)=>{if(b)return i(m,C,{wrap:!1,...x});let S=String.fromCharCode(m);if(m===C)return S;let B=String.fromCharCode(C);return`[${S}-${B}]`},y=(m,C,b)=>{if(Array.isArray(m)){let x=b.wrap===!0,S=b.capture?"":"?:";return x?`(${S}${m.join("|")})`:m.join("|")}return i(m,C,b)},v=(...m)=>new RangeError("Invalid range arguments: "+r.inspect(...m)),E=(m,C,b)=>{if(b.strictRanges===!0)throw v([m,C]);return[]},A=(m,C)=>{if(C.strictRanges===!0)throw new TypeError(`Expected step "${m}" to be a number`);return[]},d=(m,C,b=1,x={})=>{let S=Number(m),B=Number(C);if(!Number.isInteger(S)||!Number.isInteger(B)){if(x.strictRanges===!0)throw v([m,C]);return[]}S===0&&(S=0),B===0&&(B=0);let k=S>B,T=String(m),j=String(C),_=String(b);b=Math.max(Math.abs(b),1);let F=u(T)||u(j)||u(_),w=F?Math.max(T.length,j.length,_.length):0,O=F===!1&&c(m,C,x)===!1,I=x.transform||a(O);if(x.toRegex&&b===1)return h(l(m,w),l(C,w),!0,x);let L={negatives:[],positives:[]},U=$=>L[$<0?"negatives":"positives"].push(Math.abs($)),Q=[],tt=0;for(;k?S>=B:S<=B;)x.toRegex===!0&&b>1?U(S):Q.push(p(I(S,tt),w,O)),S=k?S-b:S+b,tt++;return x.toRegex===!0?b>1?f(L,x):y(Q,null,{wrap:!1,...x}):Q},D=(m,C,b=1,x={})=>{if(!o(m)&&m.length>1||!o(C)&&C.length>1)return E(m,C,x);let S=x.transform||(O=>String.fromCharCode(O)),B=`${m}`.charCodeAt(0),k=`${C}`.charCodeAt(0),T=B>k,j=Math.min(B,k),_=Math.max(B,k);if(x.toRegex&&b===1)return h(j,_,!1,x);let F=[],w=0;for(;T?B>=k:B<=k;)F.push(S(B,w)),B=T?B-b:B+b,w++;return x.toRegex===!0?y(F,null,{wrap:!1,options:x}):F},g=(m,C,b,x={})=>{if(C==null&&s(m))return[m];if(!s(m)||!s(C))return E(m,C,x);if(typeof b=="function")return g(m,C,1,{transform:b});if(n(b))return g(m,C,0,b);let S={...x};return S.capture===!0&&(S.wrap=!0),b=b||S.step||1,o(b)?o(m)&&o(C)?d(m,C,b,S):D(m,C,Math.max(Math.abs(b),1),S):b!=null&&!n(b)?A(b,S):g(m,C,1,b)};e.exports=g}),Ro=N((t,e)=>{"use strict";R();var r=zr(),i=sr(),n=(a,s={})=>{let o=(u,c={})=>{let p=i.isInvalidBrace(c),l=u.invalid===!0&&s.escapeInvalid===!0,f=p===!0||l===!0,h=s.escapeInvalid===!0?"\\":"",y="";if(u.isOpen===!0||u.isClose===!0)return h+u.value;if(u.type==="open")return f?h+u.value:"(";if(u.type==="close")return f?h+u.value:")";if(u.type==="comma")return u.prev.type==="comma"?"":f?u.value:"|";if(u.value)return u.value;if(u.nodes&&u.ranges>0){let v=i.reduce(u.nodes),E=r(...v,{...s,wrap:!1,toRegex:!0});if(E.length!==0)return v.length>1&&E.length>1?`(${E})`:E}if(u.nodes)for(let v of u.nodes)y+=o(v,u);return y};return o(a)};e.exports=n}),To=N((t,e)=>{"use strict";R();var r=zr(),i=ar(),n=sr(),a=(o="",u="",c=!1)=>{let p=[];if(o=[].concat(o),u=[].concat(u),!u.length)return o;if(!o.length)return c?n.flatten(u).map(l=>`{${l}}`):u;for(let l of o)if(Array.isArray(l))for(let f of l)p.push(a(f,u,c));else for(let f of u)c===!0&&typeof f=="string"&&(f=`{${f}}`),p.push(Array.isArray(f)?a(l,f,c):l+f);return n.flatten(p)},s=(o,u={})=>{let c=u.rangeLimit===void 0?1e3:u.rangeLimit,p=(l,f={})=>{l.queue=[];let h=f,y=f.queue;for(;h.type!=="brace"&&h.type!=="root"&&h.parent;)h=h.parent,y=h.queue;if(l.invalid||l.dollar){y.push(a(y.pop(),i(l,u)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){y.push(a(y.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){let d=n.reduce(l.nodes);if(n.exceedsLimit(...d,u.step,c))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let D=r(...d,u);D.length===0&&(D=i(l,u)),y.push(a(y.pop(),D)),l.nodes=[];return}let v=n.encloseBrace(l),E=l.queue,A=l;for(;A.type!=="brace"&&A.type!=="root"&&A.parent;)A=A.parent,E=A.queue;for(let d=0;d<l.nodes.length;d++){let D=l.nodes[d];if(D.type==="comma"&&l.type==="brace"){d===1&&E.push(""),E.push("");continue}if(D.type==="close"){y.push(a(y.pop(),E,v));continue}if(D.value&&D.type!=="open"){E.push(a(E.pop(),D.value));continue}D.nodes&&p(D,l)}return E};return n.flatten(p(o))};e.exports=s}),Po=N((t,e)=>{"use strict";R(),e.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
21
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),No=N((t,e)=>{"use strict";R();var r=ar(),{MAX_LENGTH:i,CHAR_BACKSLASH:n,CHAR_BACKTICK:a,CHAR_COMMA:s,CHAR_DOT:o,CHAR_LEFT_PARENTHESES:u,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:y,CHAR_SINGLE_QUOTE:v,CHAR_NO_BREAK_SPACE:E,CHAR_ZERO_WIDTH_NOBREAK_SPACE:A}=Po(),d=(D,g={})=>{if(typeof D!="string")throw new TypeError("Expected a string");let m=g||{},C=typeof m.maxLength=="number"?Math.min(i,m.maxLength):i;if(D.length>C)throw new SyntaxError(`Input length (${D.length}), exceeds max characters (${C})`);let b={type:"root",input:D,nodes:[]},x=[b],S=b,B=b,k=0,T=D.length,j=0,_=0,F,w={},O=()=>D[j++],I=L=>{if(L.type==="text"&&B.type==="dot"&&(B.type="text"),B&&B.type==="text"&&L.type==="text"){B.value+=L.value;return}return S.nodes.push(L),L.parent=S,L.prev=B,B=L,L};for(I({type:"bos"});j<T;)if(S=x[x.length-1],F=O(),!(F===A||F===E)){if(F===n){I({type:"text",value:(g.keepEscaping?F:"")+O()});continue}if(F===h){I({type:"text",value:"\\"+F});continue}if(F===f){k++;let L=!0,U;for(;j<T&&(U=O());){if(F+=U,U===f){k++;continue}if(U===n){F+=O();continue}if(U===h&&(k--,k===0))break}I({type:"text",value:F});continue}if(F===u){S=I({type:"paren",nodes:[]}),x.push(S),I({type:"text",value:F});continue}if(F===c){if(S.type!=="paren"){I({type:"text",value:F});continue}S=x.pop(),I({type:"text",value:F}),S=x[x.length-1];continue}if(F===y||F===v||F===a){let L=F,U;for(g.keepQuotes!==!0&&(F="");j<T&&(U=O());){if(U===n){F+=U+O();continue}if(U===L){g.keepQuotes===!0&&(F+=U);break}F+=U}I({type:"text",value:F});continue}if(F===p){_++;let L=B.value&&B.value.slice(-1)==="$"||S.dollar===!0;S=I({type:"brace",open:!0,close:!1,dollar:L,depth:_,commas:0,ranges:0,nodes:[]}),x.push(S),I({type:"open",value:F});continue}if(F===l){if(S.type!=="brace"){I({type:"text",value:F});continue}let L="close";S=x.pop(),S.close=!0,I({type:L,value:F}),_--,S=x[x.length-1];continue}if(F===s&&_>0){if(S.ranges>0){S.ranges=0;let L=S.nodes.shift();S.nodes=[L,{type:"text",value:r(S)}]}I({type:"comma",value:F}),S.commas++;continue}if(F===o&&_>0&&S.commas===0){let L=S.nodes;if(_===0||L.length===0){I({type:"text",value:F});continue}if(B.type==="dot"){if(S.range=[],B.value+=F,B.type="range",S.nodes.length!==3&&S.nodes.length!==5){S.invalid=!0,S.ranges=0,B.type="text";continue}S.ranges++,S.args=[];continue}if(B.type==="range"){L.pop();let U=L[L.length-1];U.value+=B.value+F,B=U,S.ranges--;continue}I({type:"dot",value:F});continue}I({type:"text",value:F})}do if(S=x.pop(),S.type!=="root"){S.nodes.forEach(Q=>{Q.nodes||(Q.type==="open"&&(Q.isOpen=!0),Q.type==="close"&&(Q.isClose=!0),Q.nodes||(Q.type="text"),Q.invalid=!0)});let L=x[x.length-1],U=L.nodes.indexOf(S);L.nodes.splice(U,1,...S.nodes)}while(x.length>0);return I({type:"eos"}),b};e.exports=d}),Io=N((t,e)=>{"use strict";R();var r=ar(),i=Ro(),n=To(),a=No(),s=(o,u={})=>{let c=[];if(Array.isArray(o))for(let p of o){let l=s.create(p,u);Array.isArray(l)?c.push(...l):c.push(l)}else c=[].concat(s.create(o,u));return u&&u.expand===!0&&u.nodupes===!0&&(c=[...new Set(c)]),c};s.parse=(o,u={})=>a(o,u),s.stringify=(o,u={})=>r(typeof o=="string"?s.parse(o,u):o,u),s.compile=(o,u={})=>(typeof o=="string"&&(o=s.parse(o,u)),i(o,u)),s.expand=(o,u={})=>{typeof o=="string"&&(o=s.parse(o,u));let c=n(o,u);return u.noempty===!0&&(c=c.filter(Boolean)),u.nodupes===!0&&(c=[...new Set(c)]),c},s.create=(o,u={})=>o===""||o.length<3?[o]:u.expand!==!0?s.compile(o,u):s.expand(o,u),e.exports=s}),Be=N((t,e)=>{"use strict";R();var r=G("path"),i="\\\\/",n=`[^${i}]`,a="\\.",s="\\+",o="\\?",u="\\/",c="(?=.)",p="[^/]",l=`(?:${u}|$)`,f=`(?:^|${u})`,h=`${a}{1,2}${l}`,y=`(?!${a})`,v=`(?!${f}${h})`,E=`(?!${a}{0,1}${l})`,A=`(?!${h})`,d=`[^.${u}]`,D=`${p}*?`,g={DOT_LITERAL:a,PLUS_LITERAL:s,QMARK_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:c,QMARK:p,END_ANCHOR:l,DOTS_SLASH:h,NO_DOT:y,NO_DOTS:v,NO_DOT_SLASH:E,NO_DOTS_SLASH:A,QMARK_NO_DOT:d,STAR:D,START_ANCHOR:f},m={...g,SLASH_LITERAL:`[${i}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${a}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${a})`,NO_DOTS:`(?!(?:^|[${i}])${a}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${a}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${a}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},C={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:C,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(b){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${b.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(b){return b===!0?m:g}}}),Oe=N(t=>{"use strict";R();var e=G("path"),r=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:s}=Be();t.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),t.hasRegexChars=o=>a.test(o),t.isRegexChar=o=>o.length===1&&t.hasRegexChars(o),t.escapeRegex=o=>o.replace(s,"\\$1"),t.toPosixSlashes=o=>o.replace(i,"/"),t.removeBackslashes=o=>o.replace(n,u=>u==="\\"?"":u),t.supportsLookbehinds=()=>{let o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},t.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:r===!0||e.sep==="\\",t.escapeLast=(o,u,c)=>{let p=o.lastIndexOf(u,c);return p===-1?o:o[p-1]==="\\"?t.escapeLast(o,u,p-1):`${o.slice(0,p)}\\${o.slice(p)}`},t.removePrefix=(o,u={})=>{let c=o;return c.startsWith("./")&&(c=c.slice(2),u.prefix="./"),c},t.wrapOutput=(o,u={},c={})=>{let p=c.contains?"":"^",l=c.contains?"":"$",f=`${p}(?:${o})${l}`;return u.negated===!0&&(f=`(?:^(?!${f}).*$)`),f}}),Lo=N((t,e)=>{"use strict";R();var r=Oe(),{CHAR_ASTERISK:i,CHAR_AT:n,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:s,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:h,CHAR_QUESTION_MARK:y,CHAR_RIGHT_CURLY_BRACE:v,CHAR_RIGHT_PARENTHESES:E,CHAR_RIGHT_SQUARE_BRACKET:A}=Be(),d=m=>m===c||m===a,D=m=>{m.isPrefix!==!0&&(m.depth=m.isGlobstar?1/0:1)},g=(m,C)=>{let b=C||{},x=m.length-1,S=b.parts===!0||b.scanToEnd===!0,B=[],k=[],T=[],j=m,_=-1,F=0,w=0,O=!1,I=!1,L=!1,U=!1,Q=!1,tt=!1,$=!1,st=!1,ct=!1,pt=!1,P=0,M,V,q={value:"",depth:0,isGlob:!1},at=()=>_>=x,ot=()=>j.charCodeAt(_+1),J=()=>(M=V,j.charCodeAt(++_));for(;_<x;){V=J();let X;if(V===a){$=q.backslashes=!0,V=J(),V===p&&(tt=!0);continue}if(tt===!0||V===p){for(P++;at()!==!0&&(V=J());){if(V===a){$=q.backslashes=!0,J();continue}if(V===p){P++;continue}if(tt!==!0&&V===o&&(V=J())===o){if(O=q.isBrace=!0,L=q.isGlob=!0,pt=!0,S===!0)continue;break}if(tt!==!0&&V===s){if(O=q.isBrace=!0,L=q.isGlob=!0,pt=!0,S===!0)continue;break}if(V===v&&(P--,P===0)){tt=!1,O=q.isBrace=!0,pt=!0;break}}if(S===!0)continue;break}if(V===c){if(B.push(_),k.push(q),q={value:"",depth:0,isGlob:!1},pt===!0)continue;if(M===o&&_===F+1){F+=2;continue}w=_+1;continue}if(b.noext!==!0&&(V===h||V===n||V===i||V===y||V===u)&&ot()===l){if(L=q.isGlob=!0,U=q.isExtglob=!0,pt=!0,V===u&&_===F&&(ct=!0),S===!0){for(;at()!==!0&&(V=J());){if(V===a){$=q.backslashes=!0,V=J();continue}if(V===E){L=q.isGlob=!0,pt=!0;break}}continue}break}if(V===i){if(M===i&&(Q=q.isGlobstar=!0),L=q.isGlob=!0,pt=!0,S===!0)continue;break}if(V===y){if(L=q.isGlob=!0,pt=!0,S===!0)continue;break}if(V===f){for(;at()!==!0&&(X=J());){if(X===a){$=q.backslashes=!0,J();continue}if(X===A){I=q.isBracket=!0,L=q.isGlob=!0,pt=!0;break}}if(S===!0)continue;break}if(b.nonegate!==!0&&V===u&&_===F){st=q.negated=!0,F++;continue}if(b.noparen!==!0&&V===l){if(L=q.isGlob=!0,S===!0){for(;at()!==!0&&(V=J());){if(V===l){$=q.backslashes=!0,V=J();continue}if(V===E){pt=!0;break}}continue}break}if(L===!0){if(pt=!0,S===!0)continue;break}}b.noext===!0&&(U=!1,L=!1);let Z=j,ut="",ft="";F>0&&(ut=j.slice(0,F),j=j.slice(F),w-=F),Z&&L===!0&&w>0?(Z=j.slice(0,w),ft=j.slice(w)):L===!0?(Z="",ft=j):Z=j,Z&&Z!==""&&Z!=="/"&&Z!==j&&d(Z.charCodeAt(Z.length-1))&&(Z=Z.slice(0,-1)),b.unescape===!0&&(ft&&(ft=r.removeBackslashes(ft)),Z&&$===!0&&(Z=r.removeBackslashes(Z)));let et={prefix:ut,input:m,start:F,base:Z,glob:ft,isBrace:O,isBracket:I,isGlob:L,isExtglob:U,isGlobstar:Q,negated:st,negatedExtglob:ct};if(b.tokens===!0&&(et.maxDepth=0,d(V)||k.push(q),et.tokens=k),b.parts===!0||b.tokens===!0){let X;for(let At=0;At<B.length;At++){let Ie=X?X+1:F,K=B[At],lt=m.slice(Ie,K);b.tokens&&(At===0&&F!==0?(k[At].isPrefix=!0,k[At].value=ut):k[At].value=lt,D(k[At]),et.maxDepth+=k[At].depth),(At!==0||lt!=="")&&T.push(lt),X=K}if(X&&X+1<m.length){let At=m.slice(X+1);T.push(At),b.tokens&&(k[k.length-1].value=At,D(k[k.length-1]),et.maxDepth+=k[k.length-1].depth)}et.slashes=B,et.parts=T}return et};e.exports=g}),jo=N((t,e)=>{"use strict";R();var r=Be(),i=Oe(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:u}=r,c=(f,h)=>{if(typeof h.expandRange=="function")return h.expandRange(...f,h);f.sort();let y=`[${f.join("-")}]`;try{new RegExp(y)}catch{return f.map(v=>i.escapeRegex(v)).join("..")}return y},p=(f,h)=>`Missing ${f}: "${h}" - use "\\\\${h}" to match literal characters`,l=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");f=u[f]||f;let y={...h},v=typeof y.maxLength=="number"?Math.min(n,y.maxLength):n,E=f.length;if(E>v)throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${v}`);let A={type:"bos",value:"",output:y.prepend||""},d=[A],D=y.capture?"":"?:",g=i.isWindows(h),m=r.globChars(g),C=r.extglobChars(m),{DOT_LITERAL:b,PLUS_LITERAL:x,SLASH_LITERAL:S,ONE_CHAR:B,DOTS_SLASH:k,NO_DOT:T,NO_DOT_SLASH:j,NO_DOTS_SLASH:_,QMARK:F,QMARK_NO_DOT:w,STAR:O,START_ANCHOR:I}=m,L=K=>`(${D}(?:(?!${I}${K.dot?k:b}).)*?)`,U=y.dot?"":T,Q=y.dot?F:w,tt=y.bash===!0?L(y):O;y.capture&&(tt=`(${tt})`),typeof y.noext=="boolean"&&(y.noextglob=y.noext);let $={input:f,index:-1,start:0,dot:y.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:d};f=i.removePrefix(f,$),E=f.length;let st=[],ct=[],pt=[],P=A,M,V=()=>$.index===E-1,q=$.peek=(K=1)=>f[$.index+K],at=$.advance=()=>f[++$.index]||"",ot=()=>f.slice($.index+1),J=(K="",lt=0)=>{$.consumed+=K,$.index+=lt},Z=K=>{$.output+=K.output!=null?K.output:K.value,J(K.value)},ut=()=>{let K=1;for(;q()==="!"&&(q(2)!=="("||q(3)==="?");)at(),$.start++,K++;return K%2===0?!1:($.negated=!0,$.start++,!0)},ft=K=>{$[K]++,pt.push(K)},et=K=>{$[K]--,pt.pop()},X=K=>{if(P.type==="globstar"){let lt=$.braces>0&&(K.type==="comma"||K.type==="brace"),W=K.extglob===!0||st.length&&(K.type==="pipe"||K.type==="paren");K.type!=="slash"&&K.type!=="paren"&&!lt&&!W&&($.output=$.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=tt,$.output+=P.output)}if(st.length&&K.type!=="paren"&&(st[st.length-1].inner+=K.value),(K.value||K.output)&&Z(K),P&&P.type==="text"&&K.type==="text"){P.value+=K.value,P.output=(P.output||"")+K.value;return}K.prev=P,d.push(K),P=K},At=(K,lt)=>{let W={...C[lt],conditions:1,inner:""};W.prev=P,W.parens=$.parens,W.output=$.output;let nt=(y.capture?"(":"")+W.open;ft("parens"),X({type:K,value:lt,output:$.output?"":B}),X({type:"paren",extglob:!0,value:at(),output:nt}),st.push(W)},Ie=K=>{let lt=K.close+(y.capture?")":""),W;if(K.type==="negate"){let nt=tt;if(K.inner&&K.inner.length>1&&K.inner.includes("/")&&(nt=L(y)),(nt!==tt||V()||/^\)+$/.test(ot()))&&(lt=K.close=`)$))${nt}`),K.inner.includes("*")&&(W=ot())&&/^\.[^\\/.]+$/.test(W)){let yt=l(W,{...h,fastpaths:!1}).output;lt=K.close=`)${yt})${nt})`}K.prev.type==="bos"&&($.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:M,output:lt}),et("parens")};if(y.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(f)){let K=!1,lt=f.replace(o,(W,nt,yt,Ft,gt,Le)=>Ft==="\\"?(K=!0,W):Ft==="?"?nt?nt+Ft+(gt?F.repeat(gt.length):""):Le===0?Q+(gt?F.repeat(gt.length):""):F.repeat(yt.length):Ft==="."?b.repeat(yt.length):Ft==="*"?nt?nt+Ft+(gt?tt:""):tt:nt?W:`\\${W}`);return K===!0&&(y.unescape===!0?lt=lt.replace(/\\/g,""):lt=lt.replace(/\\+/g,W=>W.length%2===0?"\\\\":W?"\\":"")),lt===f&&y.contains===!0?($.output=f,$):($.output=i.wrapOutput(lt,$,h),$)}for(;!V();){if(M=at(),M==="\0")continue;if(M==="\\"){let W=q();if(W==="/"&&y.bash!==!0||W==="."||W===";")continue;if(!W){M+="\\",X({type:"text",value:M});continue}let nt=/^\\+/.exec(ot()),yt=0;if(nt&&nt[0].length>2&&(yt=nt[0].length,$.index+=yt,yt%2!==0&&(M+="\\")),y.unescape===!0?M=at():M+=at(),$.brackets===0){X({type:"text",value:M});continue}}if($.brackets>0&&(M!=="]"||P.value==="["||P.value==="[^")){if(y.posix!==!1&&M===":"){let W=P.value.slice(1);if(W.includes("[")&&(P.posix=!0,W.includes(":"))){let nt=P.value.lastIndexOf("["),yt=P.value.slice(0,nt),Ft=P.value.slice(nt+2),gt=a[Ft];if(gt){P.value=yt+gt,$.backtrack=!0,at(),!A.output&&d.indexOf(P)===1&&(A.output=B);continue}}}(M==="["&&q()!==":"||M==="-"&&q()==="]")&&(M=`\\${M}`),M==="]"&&(P.value==="["||P.value==="[^")&&(M=`\\${M}`),y.posix===!0&&M==="!"&&P.value==="["&&(M="^"),P.value+=M,Z({value:M});continue}if($.quotes===1&&M!=='"'){M=i.escapeRegex(M),P.value+=M,Z({value:M});continue}if(M==='"'){$.quotes=$.quotes===1?0:1,y.keepQuotes===!0&&X({type:"text",value:M});continue}if(M==="("){ft("parens"),X({type:"paren",value:M});continue}if(M===")"){if($.parens===0&&y.strictBrackets===!0)throw new SyntaxError(p("opening","("));let W=st[st.length-1];if(W&&$.parens===W.parens+1){Ie(st.pop());continue}X({type:"paren",value:M,output:$.parens?")":"\\)"}),et("parens");continue}if(M==="["){if(y.nobracket===!0||!ot().includes("]")){if(y.nobracket!==!0&&y.strictBrackets===!0)throw new SyntaxError(p("closing","]"));M=`\\${M}`}else ft("brackets");X({type:"bracket",value:M});continue}if(M==="]"){if(y.nobracket===!0||P&&P.type==="bracket"&&P.value.length===1){X({type:"text",value:M,output:`\\${M}`});continue}if($.brackets===0){if(y.strictBrackets===!0)throw new SyntaxError(p("opening","["));X({type:"text",value:M,output:`\\${M}`});continue}et("brackets");let W=P.value.slice(1);if(P.posix!==!0&&W[0]==="^"&&!W.includes("/")&&(M=`/${M}`),P.value+=M,Z({value:M}),y.literalBrackets===!1||i.hasRegexChars(W))continue;let nt=i.escapeRegex(P.value);if($.output=$.output.slice(0,-P.value.length),y.literalBrackets===!0){$.output+=nt,P.value=nt;continue}P.value=`(${D}${nt}|${P.value})`,$.output+=P.value;continue}if(M==="{"&&y.nobrace!==!0){ft("braces");let W={type:"brace",value:M,output:"(",outputIndex:$.output.length,tokensIndex:$.tokens.length};ct.push(W),X(W);continue}if(M==="}"){let W=ct[ct.length-1];if(y.nobrace===!0||!W){X({type:"text",value:M,output:M});continue}let nt=")";if(W.dots===!0){let yt=d.slice(),Ft=[];for(let gt=yt.length-1;gt>=0&&(d.pop(),yt[gt].type!=="brace");gt--)yt[gt].type!=="dots"&&Ft.unshift(yt[gt].value);nt=c(Ft,y),$.backtrack=!0}if(W.comma!==!0&&W.dots!==!0){let yt=$.output.slice(0,W.outputIndex),Ft=$.tokens.slice(W.tokensIndex);W.value=W.output="\\{",M=nt="\\}",$.output=yt;for(let gt of Ft)$.output+=gt.output||gt.value}X({type:"brace",value:M,output:nt}),et("braces"),ct.pop();continue}if(M==="|"){st.length>0&&st[st.length-1].conditions++,X({type:"text",value:M});continue}if(M===","){let W=M,nt=ct[ct.length-1];nt&&pt[pt.length-1]==="braces"&&(nt.comma=!0,W="|"),X({type:"comma",value:M,output:W});continue}if(M==="/"){if(P.type==="dot"&&$.index===$.start+1){$.start=$.index+1,$.consumed="",$.output="",d.pop(),P=A;continue}X({type:"slash",value:M,output:S});continue}if(M==="."){if($.braces>0&&P.type==="dot"){P.value==="."&&(P.output=b);let W=ct[ct.length-1];P.type="dots",P.output+=M,P.value+=M,W.dots=!0;continue}if($.braces+$.parens===0&&P.type!=="bos"&&P.type!=="slash"){X({type:"text",value:M,output:b});continue}X({type:"dot",value:M,output:b});continue}if(M==="?"){if(!(P&&P.value==="(")&&y.noextglob!==!0&&q()==="("&&q(2)!=="?"){At("qmark",M);continue}if(P&&P.type==="paren"){let W=q(),nt=M;if(W==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(P.value==="("&&!/[!=<:]/.test(W)||W==="<"&&!/<([!=]|\w+>)/.test(ot()))&&(nt=`\\${M}`),X({type:"text",value:M,output:nt});continue}if(y.dot!==!0&&(P.type==="slash"||P.type==="bos")){X({type:"qmark",value:M,output:w});continue}X({type:"qmark",value:M,output:F});continue}if(M==="!"){if(y.noextglob!==!0&&q()==="("&&(q(2)!=="?"||!/[!=<:]/.test(q(3)))){At("negate",M);continue}if(y.nonegate!==!0&&$.index===0){ut();continue}}if(M==="+"){if(y.noextglob!==!0&&q()==="("&&q(2)!=="?"){At("plus",M);continue}if(P&&P.value==="("||y.regex===!1){X({type:"plus",value:M,output:x});continue}if(P&&(P.type==="bracket"||P.type==="paren"||P.type==="brace")||$.parens>0){X({type:"plus",value:M});continue}X({type:"plus",value:x});continue}if(M==="@"){if(y.noextglob!==!0&&q()==="("&&q(2)!=="?"){X({type:"at",extglob:!0,value:M,output:""});continue}X({type:"text",value:M});continue}if(M!=="*"){(M==="$"||M==="^")&&(M=`\\${M}`);let W=s.exec(ot());W&&(M+=W[0],$.index+=W[0].length),X({type:"text",value:M});continue}if(P&&(P.type==="globstar"||P.star===!0)){P.type="star",P.star=!0,P.value+=M,P.output=tt,$.backtrack=!0,$.globstar=!0,J(M);continue}let K=ot();if(y.noextglob!==!0&&/^\([^?]/.test(K)){At("star",M);continue}if(P.type==="star"){if(y.noglobstar===!0){J(M);continue}let W=P.prev,nt=W.prev,yt=W.type==="slash"||W.type==="bos",Ft=nt&&(nt.type==="star"||nt.type==="globstar");if(y.bash===!0&&(!yt||K[0]&&K[0]!=="/")){X({type:"star",value:M,output:""});continue}let gt=$.braces>0&&(W.type==="comma"||W.type==="brace"),Le=st.length&&(W.type==="pipe"||W.type==="paren");if(!yt&&W.type!=="paren"&&!gt&&!Le){X({type:"star",value:M,output:""});continue}for(;K.slice(0,3)==="/**";){let ye=f[$.index+4];if(ye&&ye!=="/")break;K=K.slice(3),J("/**",3)}if(W.type==="bos"&&V()){P.type="globstar",P.value+=M,P.output=L(y),$.output=P.output,$.globstar=!0,J(M);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&!Ft&&V()){$.output=$.output.slice(0,-(W.output+P.output).length),W.output=`(?:${W.output}`,P.type="globstar",P.output=L(y)+(y.strictSlashes?")":"|$)"),P.value+=M,$.globstar=!0,$.output+=W.output+P.output,J(M);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&K[0]==="/"){let ye=K[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(W.output+P.output).length),W.output=`(?:${W.output}`,P.type="globstar",P.output=`${L(y)}${S}|${S}${ye})`,P.value+=M,$.output+=W.output+P.output,$.globstar=!0,J(M+at()),X({type:"slash",value:"/",output:""});continue}if(W.type==="bos"&&K[0]==="/"){P.type="globstar",P.value+=M,P.output=`(?:^|${S}|${L(y)}${S})`,$.output=P.output,$.globstar=!0,J(M+at()),X({type:"slash",value:"/",output:""});continue}$.output=$.output.slice(0,-P.output.length),P.type="globstar",P.output=L(y),P.value+=M,$.output+=P.output,$.globstar=!0,J(M);continue}let lt={type:"star",value:M,output:tt};if(y.bash===!0){lt.output=".*?",(P.type==="bos"||P.type==="slash")&&(lt.output=U+lt.output),X(lt);continue}if(P&&(P.type==="bracket"||P.type==="paren")&&y.regex===!0){lt.output=M,X(lt);continue}($.index===$.start||P.type==="slash"||P.type==="dot")&&(P.type==="dot"?($.output+=j,P.output+=j):y.dot===!0?($.output+=_,P.output+=_):($.output+=U,P.output+=U),q()!=="*"&&($.output+=B,P.output+=B)),X(lt)}for(;$.brackets>0;){if(y.strictBrackets===!0)throw new SyntaxError(p("closing","]"));$.output=i.escapeLast($.output,"["),et("brackets")}for(;$.parens>0;){if(y.strictBrackets===!0)throw new SyntaxError(p("closing",")"));$.output=i.escapeLast($.output,"("),et("parens")}for(;$.braces>0;){if(y.strictBrackets===!0)throw new SyntaxError(p("closing","}"));$.output=i.escapeLast($.output,"{"),et("braces")}if(y.strictSlashes!==!0&&(P.type==="star"||P.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${S}?`}),$.backtrack===!0){$.output="";for(let K of $.tokens)$.output+=K.output!=null?K.output:K.value,K.suffix&&($.output+=K.suffix)}return $};l.fastpaths=(f,h)=>{let y={...h},v=typeof y.maxLength=="number"?Math.min(n,y.maxLength):n,E=f.length;if(E>v)throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${v}`);f=u[f]||f;let A=i.isWindows(h),{DOT_LITERAL:d,SLASH_LITERAL:D,ONE_CHAR:g,DOTS_SLASH:m,NO_DOT:C,NO_DOTS:b,NO_DOTS_SLASH:x,STAR:S,START_ANCHOR:B}=r.globChars(A),k=y.dot?b:C,T=y.dot?x:C,j=y.capture?"":"?:",_={negated:!1,prefix:""},F=y.bash===!0?".*?":S;y.capture&&(F=`(${F})`);let w=U=>U.noglobstar===!0?F:`(${j}(?:(?!${B}${U.dot?m:d}).)*?)`,O=U=>{switch(U){case"*":return`${k}${g}${F}`;case".*":return`${d}${g}${F}`;case"*.*":return`${k}${F}${d}${g}${F}`;case"*/*":return`${k}${F}${D}${g}${T}${F}`;case"**":return k+w(y);case"**/*":return`(?:${k}${w(y)}${D})?${T}${g}${F}`;case"**/*.*":return`(?:${k}${w(y)}${D})?${T}${F}${d}${g}${F}`;case"**/.*":return`(?:${k}${w(y)}${D})?${d}${g}${F}`;default:{let Q=/^(.*?)\.(\w+)$/.exec(U);if(!Q)return;let tt=O(Q[1]);return tt?tt+d+Q[2]:void 0}}},I=i.removePrefix(f,_),L=O(I);return L&&y.strictSlashes!==!0&&(L+=`${D}?`),L},e.exports=l}),Mo=N((t,e)=>{"use strict";R();var r=G("path"),i=Lo(),n=jo(),a=Oe(),s=Be(),o=c=>c&&typeof c=="object"&&!Array.isArray(c),u=(c,p,l=!1)=>{if(Array.isArray(c)){let D=c.map(g=>u(g,p,l));return g=>{for(let m of D){let C=m(g);if(C)return C}return!1}}let f=o(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!f)throw new TypeError("Expected pattern to be a non-empty string");let h=p||{},y=a.isWindows(p),v=f?u.compileRe(c,p):u.makeRe(c,p,!1,!0),E=v.state;delete v.state;let A=()=>!1;if(h.ignore){let D={...p,ignore:null,onMatch:null,onResult:null};A=u(h.ignore,D,l)}let d=(D,g=!1)=>{let{isMatch:m,match:C,output:b}=u.test(D,v,p,{glob:c,posix:y}),x={glob:c,state:E,regex:v,posix:y,input:D,output:b,match:C,isMatch:m};return typeof h.onResult=="function"&&h.onResult(x),m===!1?(x.isMatch=!1,g?x:!1):A(D)?(typeof h.onIgnore=="function"&&h.onIgnore(x),x.isMatch=!1,g?x:!1):(typeof h.onMatch=="function"&&h.onMatch(x),g?x:!0)};return l&&(d.state=E),d};u.test=(c,p,l,{glob:f,posix:h}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let y=l||{},v=y.format||(h?a.toPosixSlashes:null),E=c===f,A=E&&v?v(c):c;return E===!1&&(A=v?v(c):c,E=A===f),(E===!1||y.capture===!0)&&(y.matchBase===!0||y.basename===!0?E=u.matchBase(c,p,l,h):E=p.exec(A)),{isMatch:Boolean(E),match:E,output:A}},u.matchBase=(c,p,l,f=a.isWindows(l))=>(p instanceof RegExp?p:u.makeRe(p,l)).test(r.basename(c)),u.isMatch=(c,p,l)=>u(p,l)(c),u.parse=(c,p)=>Array.isArray(c)?c.map(l=>u.parse(l,p)):n(c,{...p,fastpaths:!1}),u.scan=(c,p)=>i(c,p),u.compileRe=(c,p,l=!1,f=!1)=>{if(l===!0)return c.output;let h=p||{},y=h.contains?"":"^",v=h.contains?"":"$",E=`${y}(?:${c.output})${v}`;c&&c.negated===!0&&(E=`^(?!${E}).*$`);let A=u.toRegex(E,p);return f===!0&&(A.state=c),A},u.makeRe=(c,p={},l=!1,f=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let h={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(h.output=n.fastpaths(c,p)),h.output||(h=n(c,p)),u.compileRe(h,p,l,f)},u.toRegex=(c,p)=>{try{let l=p||{};return new RegExp(c,l.flags||(l.nocase?"i":""))}catch(l){if(p&&p.debug===!0)throw l;return/$^/}},u.constants=s,e.exports=u}),$o=N((t,e)=>{"use strict";R(),e.exports=Mo()}),Ho=N((t,e)=>{"use strict";R();var r=G("util"),i=Io(),n=$o(),a=Oe(),s=u=>u===""||u==="./",o=(u,c,p)=>{c=[].concat(c),u=[].concat(u);let l=new Set,f=new Set,h=new Set,y=0,v=A=>{h.add(A.output),p&&p.onResult&&p.onResult(A)};for(let A=0;A<c.length;A++){let d=n(String(c[A]),{...p,onResult:v},!0),D=d.state.negated||d.state.negatedExtglob;D&&y++;for(let g of u){let m=d(g,!0);!(D?!m.isMatch:m.isMatch)||(D?l.add(m.output):(l.delete(m.output),f.add(m.output)))}}let E=(y===c.length?[...h]:[...f]).filter(A=>!l.has(A));if(p&&E.length===0){if(p.failglob===!0)throw new Error(`No matches found for "${c.join(", ")}"`);if(p.nonull===!0||p.nullglob===!0)return p.unescape?c.map(A=>A.replace(/\\/g,"")):c}return E};o.match=o,o.matcher=(u,c)=>n(u,c),o.isMatch=(u,c,p)=>n(c,p)(u),o.any=o.isMatch,o.not=(u,c,p={})=>{c=[].concat(c).map(String);let l=new Set,f=[],h=v=>{p.onResult&&p.onResult(v),f.push(v.output)},y=new Set(o(u,c,{...p,onResult:h}));for(let v of f)y.has(v)||l.add(v);return[...l]},o.contains=(u,c,p)=>{if(typeof u!="string")throw new TypeError(`Expected a string: "${r.inspect(u)}"`);if(Array.isArray(c))return c.some(l=>o.contains(u,l,p));if(typeof c=="string"){if(s(u)||s(c))return!1;if(u.includes(c)||u.startsWith("./")&&u.slice(2).includes(c))return!0}return o.isMatch(u,c,{...p,contains:!0})},o.matchKeys=(u,c,p)=>{if(!a.isObject(u))throw new TypeError("Expected the first argument to be an object");let l=o(Object.keys(u),c,p),f={};for(let h of l)f[h]=u[h];return f},o.some=(u,c,p)=>{let l=[].concat(u);for(let f of[].concat(c)){let h=n(String(f),p);if(l.some(y=>h(y)))return!0}return!1},o.every=(u,c,p)=>{let l=[].concat(u);for(let f of[].concat(c)){let h=n(String(f),p);if(!l.every(y=>h(y)))return!1}return!0},o.all=(u,c,p)=>{if(typeof u!="string")throw new TypeError(`Expected a string: "${r.inspect(u)}"`);return[].concat(c).every(l=>n(l,p)(u))},o.capture=(u,c,p)=>{let l=a.isWindows(p),f=n.makeRe(String(u),{...p,capture:!0}).exec(l?a.toPosixSlashes(c):c);if(f)return f.slice(1).map(h=>h===void 0?"":h)},o.makeRe=(...u)=>n.makeRe(...u),o.scan=(...u)=>n.scan(...u),o.parse=(u,c)=>{let p=[];for(let l of[].concat(u||[]))for(let f of i(String(l),c))p.push(n.parse(f,c));return p},o.braces=(u,c)=>{if(typeof u!="string")throw new TypeError("Expected a string");return c&&c.nobrace===!0||!/\{.*\}/.test(u)?[u]:i(u,c)},o.braceExpand=(u,c)=>{if(typeof u!="string")throw new TypeError("Expected a string");return o.braces(u,{...c,expand:!0})},e.exports=o}),Go=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;var e=G("path"),r=ko(),i=Ho(),n="**",a="\\",s=/[*?]|^!/,o=/\[[^[]*]/,u=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,p=/,|\.\./;function l(O,I={}){return!f(O,I)}t.isStaticPattern=l;function f(O,I={}){return O===""?!1:!!(I.caseSensitiveMatch===!1||O.includes(a)||s.test(O)||o.test(O)||u.test(O)||I.extglob!==!1&&c.test(O)||I.braceExpansion!==!1&&h(O))}t.isDynamicPattern=f;function h(O){let I=O.indexOf("{");if(I===-1)return!1;let L=O.indexOf("}",I+1);if(L===-1)return!1;let U=O.slice(I,L);return p.test(U)}function y(O){return E(O)?O.slice(1):O}t.convertToPositivePattern=y;function v(O){return"!"+O}t.convertToNegativePattern=v;function E(O){return O.startsWith("!")&&O[1]!=="("}t.isNegativePattern=E;function A(O){return!E(O)}t.isPositivePattern=A;function d(O){return O.filter(E)}t.getNegativePatterns=d;function D(O){return O.filter(A)}t.getPositivePatterns=D;function g(O){return O.filter(I=>!C(I))}t.getPatternsInsideCurrentDirectory=g;function m(O){return O.filter(C)}t.getPatternsOutsideCurrentDirectory=m;function C(O){return O.startsWith("..")||O.startsWith("./..")}t.isPatternRelatedToParentDirectory=C;function b(O){return r(O,{flipBackslashes:!1})}t.getBaseDirectory=b;function x(O){return O.includes(n)}t.hasGlobStar=x;function S(O){return O.endsWith("/"+n)}t.endsWithSlashGlobStar=S;function B(O){let I=e.basename(O);return S(O)||l(I)}t.isAffectDepthOfReadingPattern=B;function k(O){return O.reduce((I,L)=>I.concat(T(L)),[])}t.expandPatternsWithBraceExpansion=k;function T(O){return i.braces(O,{expand:!0,nodupes:!0})}t.expandBraceExpansion=T;function j(O,I){let{parts:L}=i.scan(O,Object.assign(Object.assign({},I),{parts:!0}));return L.length===0&&(L=[O]),L[0].startsWith("/")&&(L[0]=L[0].slice(1),L.unshift("")),L}t.getPatternParts=j;function _(O,I){return i.makeRe(O,I)}t.makeRe=_;function F(O,I){return O.map(L=>_(L,I))}t.convertPatternsToRe=F;function w(O,I){return I.some(L=>L.test(O))}t.matchAny=w}),Uo=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var e=Zr();function r(n){let a=e(n);return n.forEach(s=>{s.once("error",o=>a.emit("error",o))}),a.once("close",()=>i(n)),a.once("end",()=>i(n)),a}t.merge=r;function i(n){n.forEach(a=>a.emit("close"))}}),Wo=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.isString=void 0;function e(i){return typeof i=="string"}t.isString=e;function r(i){return i===""}t.isEmpty=r}),Vt=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;var e=bo();t.array=e;var r=So();t.errno=r;var i=Fo();t.fs=i;var n=_o();t.path=n;var a=Go();t.pattern=a;var s=Uo();t.stream=s;var o=Wo();t.string=o}),Vo=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;var e=Vt();function r(c,p){let l=n(c),f=a(c,p.ignore),h=l.filter(A=>e.pattern.isStaticPattern(A,p)),y=l.filter(A=>e.pattern.isDynamicPattern(A,p)),v=i(h,f,!1),E=i(y,f,!0);return v.concat(E)}t.generate=r;function i(c,p,l){let f=[],h=e.pattern.getPatternsOutsideCurrentDirectory(c),y=e.pattern.getPatternsInsideCurrentDirectory(c),v=s(h),E=s(y);return f.push(...o(v,p,l)),"."in E?f.push(u(".",y,p,l)):f.push(...o(E,p,l)),f}t.convertPatternsToTasks=i;function n(c){return e.pattern.getPositivePatterns(c)}t.getPositivePatterns=n;function a(c,p){return e.pattern.getNegativePatterns(c).concat(p).map(e.pattern.convertToPositivePattern)}t.getNegativePatternsAsPositive=a;function s(c){let p={};return c.reduce((l,f)=>{let h=e.pattern.getBaseDirectory(f);return h in l?l[h].push(f):l[h]=[f],l},p)}t.groupPatternsByBaseDirectory=s;function o(c,p,l){return Object.keys(c).map(f=>u(f,c[f],p,l))}t.convertPatternGroupsToTasks=o;function u(c,p,l,f){return{dynamic:f,positive:p,negative:l,base:c,patterns:[].concat(p,l.map(e.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=u}),Ko=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeDuplicateSlashes=t.transform=void 0;var e=/(?!^)\/{2,}/g;function r(n){return n.map(a=>i(a))}t.transform=r;function i(n){return n.replace(e,"/")}t.removeDuplicateSlashes=i}),qo=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function e(n,a,s){a.fs.lstat(n,(o,u)=>{if(o!==null){r(s,o);return}if(!u.isSymbolicLink()||!a.followSymbolicLink){i(s,u);return}a.fs.stat(n,(c,p)=>{if(c!==null){if(a.throwErrorOnBrokenSymbolicLink){r(s,c);return}i(s,u);return}a.markSymbolicLink&&(p.isSymbolicLink=()=>!0),i(s,p)})})}t.read=e;function r(n,a){n(a)}function i(n,a){n(null,a)}}),Yo=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function e(r,i){let n=i.fs.lstatSync(r);if(!n.isSymbolicLink()||!i.followSymbolicLink)return n;try{let a=i.fs.statSync(r);return i.markSymbolicLink&&(a.isSymbolicLink=()=>!0),a}catch(a){if(!i.throwErrorOnBrokenSymbolicLink)return n;throw a}}t.read=e}),Qo=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var e=G("fs");t.FILE_SYSTEM_ADAPTER={lstat:e.lstat,stat:e.stat,lstatSync:e.lstatSync,statSync:e.statSync};function r(i){return i===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),i)}t.createFileSystemAdapter=r}),Xo=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=Qo(),r=class{constructor(i={}){this._options=i,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=e.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(i,n){return i!=null?i:n}};t.default=r}),re=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.statSync=t.stat=t.Settings=void 0;var e=qo(),r=Yo(),i=Xo();t.Settings=i.default;function n(o,u,c){if(typeof u=="function"){e.read(o,s(),u);return}e.read(o,s(u),c)}t.stat=n;function a(o,u){let c=s(u);return r.read(o,c)}t.statSync=a;function s(o={}){return o instanceof i.default?o:new i.default(o)}}),Jo=N((t,e)=>{R();var r;e.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(r||(r=Promise.resolve())).then(i).catch(n=>setTimeout(()=>{throw n},0))}),Zo=N((t,e)=>{R(),e.exports=i;var r=Jo();function i(n,a){let s,o,u,c=!0;Array.isArray(n)?(s=[],o=n.length):(u=Object.keys(n),s={},o=u.length);function p(f){function h(){a&&a(f,s),a=null}c?r(h):h()}function l(f,h,y){s[f]=y,(--o===0||h)&&p(h)}o?u?u.forEach(function(f){n[f](function(h,y){l(f,h,y)})}):n.forEach(function(f,h){f(function(y,v){l(h,y,v)})}):p(null),c=!1}}),tn=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var e=process.versions.node.split(".");if(e[0]===void 0||e[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(e[0],10),i=Number.parseInt(e[1],10),n=10,a=10,s=r>n,o=r===n&&i>=a;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=s||o}),zo=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var e=class{constructor(i,n){this.name=i,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function r(i,n){return new e(i,n)}t.createDirentFromStats=r}),en=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.fs=void 0;var e=zo();t.fs=e}),rn=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=void 0;function e(r,i,n){return r.endsWith(n)?r+i:r+n+i}t.joinPathSegments=e}),tu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var e=re(),r=Zo(),i=tn(),n=en(),a=rn();function s(f,h,y){if(!h.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){o(f,h,y);return}c(f,h,y)}t.read=s;function o(f,h,y){h.fs.readdir(f,{withFileTypes:!0},(v,E)=>{if(v!==null){p(y,v);return}let A=E.map(D=>({dirent:D,name:D.name,path:a.joinPathSegments(f,D.name,h.pathSegmentSeparator)}));if(!h.followSymbolicLinks){l(y,A);return}let d=A.map(D=>u(D,h));r(d,(D,g)=>{if(D!==null){p(y,D);return}l(y,g)})})}t.readdirWithFileTypes=o;function u(f,h){return y=>{if(!f.dirent.isSymbolicLink()){y(null,f);return}h.fs.stat(f.path,(v,E)=>{if(v!==null){if(h.throwErrorOnBrokenSymbolicLink){y(v);return}y(null,f);return}f.dirent=n.fs.createDirentFromStats(f.name,E),y(null,f)})}}function c(f,h,y){h.fs.readdir(f,(v,E)=>{if(v!==null){p(y,v);return}let A=E.map(d=>{let D=a.joinPathSegments(f,d,h.pathSegmentSeparator);return g=>{e.stat(D,h.fsStatSettings,(m,C)=>{if(m!==null){g(m);return}let b={name:d,path:D,dirent:n.fs.createDirentFromStats(d,C)};h.stats&&(b.stats=C),g(null,b)})}});r(A,(d,D)=>{if(d!==null){p(y,d);return}l(y,D)})})}t.readdir=c;function p(f,h){f(h)}function l(f,h){f(null,h)}}),eu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var e=re(),r=tn(),i=en(),n=rn();function a(u,c){return!c.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?s(u,c):o(u,c)}t.read=a;function s(u,c){return c.fs.readdirSync(u,{withFileTypes:!0}).map(p=>{let l={dirent:p,name:p.name,path:n.joinPathSegments(u,p.name,c.pathSegmentSeparator)};if(l.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let f=c.fs.statSync(l.path);l.dirent=i.fs.createDirentFromStats(l.name,f)}catch(f){if(c.throwErrorOnBrokenSymbolicLink)throw f}return l})}t.readdirWithFileTypes=s;function o(u,c){return c.fs.readdirSync(u).map(p=>{let l=n.joinPathSegments(u,p,c.pathSegmentSeparator),f=e.statSync(l,c.fsStatSettings),h={name:p,path:l,dirent:i.fs.createDirentFromStats(p,f)};return c.stats&&(h.stats=f),h})}t.readdir=o}),ru=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var e=G("fs");t.FILE_SYSTEM_ADAPTER={lstat:e.lstat,stat:e.stat,lstatSync:e.lstatSync,statSync:e.statSync,readdir:e.readdir,readdirSync:e.readdirSync};function r(i){return i===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),i)}t.createFileSystemAdapter=r}),nu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=G("path"),r=re(),i=ru(),n=class{constructor(a={}){this._options=a,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,e.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(a,s){return a!=null?a:s}};t.default=n}),cr=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.scandirSync=t.scandir=void 0;var e=tu(),r=eu(),i=nu();t.Settings=i.default;function n(o,u,c){if(typeof u=="function"){e.read(o,s(),u);return}e.read(o,s(u),c)}t.scandir=n;function a(o,u){let c=s(u);return r.read(o,c)}t.scandirSync=a;function s(o={}){return o instanceof i.default?o:new i.default(o)}}),iu=N((t,e)=>{"use strict";R();function r(i){var n=new i,a=n;function s(){var u=n;return u.next?n=u.next:(n=new i,a=n),u.next=null,u}function o(u){a.next=u,a=u}return{get:s,release:o}}e.exports=r}),ou=N((t,e)=>{"use strict";R();var r=iu();function i(o,u,c){if(typeof o=="function"&&(c=u,u=o,o=null),c<1)throw new Error("fastqueue concurrency must be greater than 1");var p=r(a),l=null,f=null,h=0,y=null,v={push:C,drain:n,saturated:n,pause:A,paused:!1,concurrency:c,running:E,resume:g,idle:m,length:d,getQueue:D,unshift:b,empty:n,kill:S,killAndDrain:B,error:k};return v;function E(){return h}function A(){v.paused=!0}function d(){for(var T=l,j=0;T;)T=T.next,j++;return j}function D(){for(var T=l,j=[];T;)j.push(T.value),T=T.next;return j}function g(){if(v.paused){v.paused=!1;for(var T=0;T<v.concurrency;T++)h++,x()}}function m(){return h===0&&v.length()===0}function C(T,j){var _=p.get();_.context=o,_.release=x,_.value=T,_.callback=j||n,_.errorHandler=y,h===v.concurrency||v.paused?f?(f.next=_,f=_):(l=_,f=_,v.saturated()):(h++,u.call(o,_.value,_.worked))}function b(T,j){var _=p.get();_.context=o,_.release=x,_.value=T,_.callback=j||n,h===v.concurrency||v.paused?l?(_.next=l,l=_):(l=_,f=_,v.saturated()):(h++,u.call(o,_.value,_.worked))}function x(T){T&&p.release(T);var j=l;j?v.paused?h--:(f===l&&(f=null),l=j.next,j.next=null,u.call(o,j.value,j.worked),f===null&&v.empty()):--h===0&&v.drain()}function S(){l=null,f=null,v.drain=n}function B(){l=null,f=null,v.drain(),v.drain=n}function k(T){y=T}}function n(){}function a(){this.value=null,this.callback=n,this.next=null,this.release=n,this.context=null,this.errorHandler=null;var o=this;this.worked=function(u,c){var p=o.callback,l=o.errorHandler,f=o.value;o.value=null,o.callback=n,o.errorHandler&&l(u,f),p.call(o.context,u,c),o.release(o)}}function s(o,u,c){typeof o=="function"&&(c=u,u=o,o=null);function p(A,d){u.call(this,A).then(function(D){d(null,D)},d)}var l=i(o,p,c),f=l.push,h=l.unshift;return l.push=y,l.unshift=v,l.drained=E,l;function y(A){var d=new Promise(function(D,g){f(A,function(m,C){if(m){g(m);return}D(C)})});return d.catch(n),d}function v(A){var d=new Promise(function(D,g){h(A,function(m,C){if(m){g(m);return}D(C)})});return d.catch(n),d}function E(){var A=l.drain,d=new Promise(function(D){l.drain=function(){A(),D()}});return d}}e.exports=i,e.exports.promise=s}),lr=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function e(a,s){return a.errorFilter===null?!0:!a.errorFilter(s)}t.isFatalError=e;function r(a,s){return a===null||a(s)}t.isAppliedFilter=r;function i(a,s){return a.split(/[/\\]/).join(s)}t.replacePathSegmentSeparator=i;function n(a,s,o){return a===""?s:a.endsWith(o)?a+s:a+o+s}t.joinPathSegments=n}),nn=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=lr(),r=class{constructor(i,n){this._root=i,this._settings=n,this._root=e.replacePathSegmentSeparator(i,n.pathSegmentSeparator)}};t.default=r}),on=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=G("events"),r=cr(),i=ou(),n=lr(),a=nn(),s=class extends a.default{constructor(o,u){super(o,u),this._settings=u,this._scandir=r.scandir,this._emitter=new e.EventEmitter,this._queue=i(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(o){this._emitter.on("entry",o)}onError(o){this._emitter.once("error",o)}onEnd(o){this._emitter.once("end",o)}_pushToQueue(o,u){let c={directory:o,base:u};this._queue.push(c,p=>{p!==null&&this._handleError(p)})}_worker(o,u){this._scandir(o.directory,this._settings.fsScandirSettings,(c,p)=>{if(c!==null){u(c,void 0);return}for(let l of p)this._handleEntry(l,o.base);u(null,void 0)})}_handleError(o){this._isDestroyed||!n.isFatalError(this._settings,o)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",o))}_handleEntry(o,u){if(this._isDestroyed||this._isFatalError)return;let c=o.path;u!==void 0&&(o.path=n.joinPathSegments(u,o.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,o)&&this._emitEntry(o),o.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(c,u===void 0?void 0:o.path)}_emitEntry(o){this._emitter.emit("entry",o)}};t.default=s}),uu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=on(),r=class{constructor(a,s){this._root=a,this._settings=s,this._reader=new e.default(this._root,this._settings),this._storage=[]}read(a){this._reader.onError(s=>{i(a,s)}),this._reader.onEntry(s=>{this._storage.push(s)}),this._reader.onEnd(()=>{n(a,this._storage)}),this._reader.read()}};t.default=r;function i(a,s){a(s)}function n(a,s){a(null,s)}}),su=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=G("stream"),r=on(),i=class{constructor(n,a){this._root=n,this._settings=a,this._reader=new r.default(this._root,this._settings),this._stream=new e.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(n=>{this._stream.emit("error",n)}),this._reader.onEntry(n=>{this._stream.push(n)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};t.default=i}),au=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=cr(),r=lr(),i=nn(),n=class extends i.default{constructor(){super(...arguments),this._scandir=e.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(a,s){this._queue.add({directory:a,base:s})}_handleQueue(){for(let a of this._queue.values())this._handleDirectory(a.directory,a.base)}_handleDirectory(a,s){try{let o=this._scandir(a,this._settings.fsScandirSettings);for(let u of o)this._handleEntry(u,s)}catch(o){this._handleError(o)}}_handleError(a){if(r.isFatalError(this._settings,a))throw a}_handleEntry(a,s){let o=a.path;s!==void 0&&(a.path=r.joinPathSegments(s,a.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,a)&&this._pushToStorage(a),a.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,a)&&this._pushToQueue(o,s===void 0?void 0:a.path)}_pushToStorage(a){this._storage.push(a)}};t.default=n}),cu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=au(),r=class{constructor(i,n){this._root=i,this._settings=n,this._reader=new e.default(this._root,this._settings)}read(){return this._reader.read()}};t.default=r}),lu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=G("path"),r=cr(),i=class{constructor(n={}){this._options=n,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,e.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(n,a){return n!=null?n:a}};t.default=i}),pr=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.walkStream=t.walkSync=t.walk=void 0;var e=uu(),r=su(),i=cu(),n=lu();t.Settings=n.default;function a(c,p,l){if(typeof p=="function"){new e.default(c,u()).read(p);return}new e.default(c,u(p)).read(l)}t.walk=a;function s(c,p){let l=u(p);return new i.default(c,l).read()}t.walkSync=s;function o(c,p){let l=u(p);return new r.default(c,l).read()}t.walkStream=o;function u(c={}){return c instanceof n.default?c:new n.default(c)}}),fr=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=G("path"),r=re(),i=Vt(),n=class{constructor(a){this._settings=a,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(a){return e.resolve(this._settings.cwd,a)}_makeEntry(a,s){let o={name:s,path:s,dirent:i.fs.createDirentFromStats(s,a)};return this._settings.stats&&(o.stats=a),o}_isFatalError(a){return!i.errno.isEnoentCodeError(a)&&!this._settings.suppressErrors}};t.default=n}),un=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=G("stream"),r=re(),i=pr(),n=fr(),a=class extends n.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=r.stat}dynamic(s,o){return this._walkStream(s,o)}static(s,o){let u=s.map(this._getFullEntryPath,this),c=new e.PassThrough({objectMode:!0});c._write=(p,l,f)=>this._getEntry(u[p],s[p],o).then(h=>{h!==null&&o.entryFilter(h)&&c.push(h),p===u.length-1&&c.end(),f()}).catch(f);for(let p=0;p<u.length;p++)c.write(p);return c}_getEntry(s,o,u){return this._getStat(s).then(c=>this._makeEntry(c,o)).catch(c=>{if(u.errorFilter(c))return null;throw c})}_getStat(s){return new Promise((o,u)=>{this._stat(s,this._fsStatSettings,(c,p)=>c===null?o(p):u(c))})}};t.default=a}),pu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=pr(),r=fr(),i=un(),n=class extends r.default{constructor(){super(...arguments),this._walkAsync=e.walk,this._readerStream=new i.default(this._settings)}dynamic(a,s){return new Promise((o,u)=>{this._walkAsync(a,s,(c,p)=>{c===null?o(p):u(c)})})}async static(a,s){let o=[],u=this._readerStream.static(a,s);return new Promise((c,p)=>{u.once("error",p),u.on("data",l=>o.push(l)),u.once("end",()=>c(o))})}};t.default=n}),fu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=class{constructor(i,n,a){this._patterns=i,this._settings=n,this._micromatchOptions=a,this._storage=[],this._fillStorage()}_fillStorage(){let i=e.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let n of i){let a=this._getPatternSegments(n),s=this._splitSegmentsIntoSections(a);this._storage.push({complete:s.length<=1,pattern:n,segments:a,sections:s})}}_getPatternSegments(i){return e.pattern.getPatternParts(i,this._micromatchOptions).map(n=>e.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:e.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(i){return e.array.splitWhen(i,n=>n.dynamic&&e.pattern.hasGlobStar(n.pattern))}};t.default=r}),du=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=fu(),r=class extends e.default{match(i){let n=i.split("/"),a=n.length,s=this._storage.filter(o=>!o.complete||o.segments.length>a);for(let o of s){let u=o.sections[0];if(!o.complete&&a>u.length||n.every((c,p)=>{let l=o.segments[p];return!!(l.dynamic&&l.patternRe.test(c)||!l.dynamic&&l.pattern===c)}))return!0}return!1}};t.default=r}),hu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=du(),i=class{constructor(n,a){this._settings=n,this._micromatchOptions=a}getFilter(n,a,s){let o=this._getMatcher(a),u=this._getNegativePatternsRe(s);return c=>this._filter(n,c,o,u)}_getMatcher(n){return new r.default(n,this._settings,this._micromatchOptions)}_getNegativePatternsRe(n){let a=n.filter(e.pattern.isAffectDepthOfReadingPattern);return e.pattern.convertPatternsToRe(a,this._micromatchOptions)}_filter(n,a,s,o){if(this._isSkippedByDeep(n,a.path)||this._isSkippedSymbolicLink(a))return!1;let u=e.path.removeLeadingDotSegment(a.path);return this._isSkippedByPositivePatterns(u,s)?!1:this._isSkippedByNegativePatterns(u,o)}_isSkippedByDeep(n,a){return this._settings.deep===1/0?!1:this._getEntryLevel(n,a)>=this._settings.deep}_getEntryLevel(n,a){let s=a.split("/").length;if(n==="")return s;let o=n.split("/").length;return s-o}_isSkippedSymbolicLink(n){return!this._settings.followSymbolicLinks&&n.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(n,a){return!this._settings.baseNameMatch&&!a.match(n)}_isSkippedByNegativePatterns(n,a){return!e.pattern.matchAny(n,a)}};t.default=i}),mu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=class{constructor(i,n){this._settings=i,this._micromatchOptions=n,this.index=new Map}getFilter(i,n){let a=e.pattern.convertPatternsToRe(i,this._micromatchOptions),s=e.pattern.convertPatternsToRe(n,this._micromatchOptions);return o=>this._filter(o,a,s)}_filter(i,n,a){if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i)||this._isSkippedByAbsoluteNegativePatterns(i.path,a))return!1;let s=this._settings.baseNameMatch?i.name:i.path,o=i.dirent.isDirectory(),u=this._isMatchToPatterns(s,n,o)&&!this._isMatchToPatterns(i.path,a,o);return this._settings.unique&&u&&this._createIndexRecord(i),u}_isDuplicateEntry(i){return this.index.has(i.path)}_createIndexRecord(i){this.index.set(i.path,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(i,n){if(!this._settings.absolute)return!1;let a=e.path.makeAbsolute(this._settings.cwd,i);return e.pattern.matchAny(a,n)}_isMatchToPatterns(i,n,a){let s=e.path.removeLeadingDotSegment(i),o=e.pattern.matchAny(s,n);return!o&&a?e.pattern.matchAny(s+"/",n):o}};t.default=r}),yu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=class{constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return e.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};t.default=r}),Du=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=class{constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let n=i.path;return this._settings.absolute&&(n=e.path.makeAbsolute(this._settings.cwd,n),n=e.path.unixify(n)),this._settings.markDirectories&&i.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:n}):n}};t.default=r}),dr=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=G("path"),r=hu(),i=mu(),n=yu(),a=Du(),s=class{constructor(o){this._settings=o,this.errorFilter=new n.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new a.default(this._settings)}_getRootDirectory(o){return e.resolve(this._settings.cwd,o.base)}_getReaderOptions(o){let u=o.base==="."?"":o.base;return{basePath:u,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(u,o.positive,o.negative),entryFilter:this.entryFilter.getFilter(o.positive,o.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};t.default=s}),gu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=pu(),r=dr(),i=class extends r.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}async read(n){let a=this._getRootDirectory(n),s=this._getReaderOptions(n);return(await this.api(a,n,s)).map(o=>s.transform(o))}api(n,a,s){return a.dynamic?this._reader.dynamic(n,s):this._reader.static(a.patterns,s)}};t.default=i}),Eu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=G("stream"),r=un(),i=dr(),n=class extends i.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(a){let s=this._getRootDirectory(a),o=this._getReaderOptions(a),u=this.api(s,a,o),c=new e.Readable({objectMode:!0,read:()=>{}});return u.once("error",p=>c.emit("error",p)).on("data",p=>c.emit("data",o.transform(p))).once("end",()=>c.emit("end")),c.once("close",()=>u.destroy()),c}api(a,s,o){return s.dynamic?this._reader.dynamic(a,o):this._reader.static(s.patterns,o)}};t.default=n}),vu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=re(),r=pr(),i=fr(),n=class extends i.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=e.statSync}dynamic(a,s){return this._walkSync(a,s)}static(a,s){let o=[];for(let u of a){let c=this._getFullEntryPath(u),p=this._getEntry(c,u,s);p===null||!s.entryFilter(p)||o.push(p)}return o}_getEntry(a,s,o){try{let u=this._getStat(a);return this._makeEntry(u,s)}catch(u){if(o.errorFilter(u))return null;throw u}}_getStat(a){return this._statSync(a,this._fsStatSettings)}};t.default=n}),Au=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0});var e=vu(),r=dr(),i=class extends r.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}read(n){let a=this._getRootDirectory(n),s=this._getReaderOptions(n);return this.api(a,n,s).map(s.transform)}api(n,a,s){return a.dynamic?this._reader.dynamic(n,s):this._reader.static(a.patterns,s)}};t.default=i}),Cu=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var e=G("fs"),r=G("os"),i=Math.max(r.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:e.lstat,lstatSync:e.lstatSync,stat:e.stat,statSync:e.statSync,readdir:e.readdir,readdirSync:e.readdirSync};var n=class{constructor(a={}){this._options=a,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(a,s){return a===void 0?s:a}_getFileSystemMethods(a={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),a)}};t.default=n}),sn=N((t,e)=>{"use strict";R();var r=Vo(),i=Ko(),n=gu(),a=Eu(),s=Au(),o=Cu(),u=Vt();async function c(f,h){l(f);let y=p(f,n.default,h),v=await Promise.all(y);return u.array.flatten(v)}(function(f){function h(d,D){l(d);let g=p(d,s.default,D);return u.array.flatten(g)}f.sync=h;function y(d,D){l(d);let g=p(d,a.default,D);return u.stream.merge(g)}f.stream=y;function v(d,D){l(d);let g=i.transform([].concat(d)),m=new o.default(D);return r.generate(g,m)}f.generateTasks=v;function E(d,D){l(d);let g=new o.default(D);return u.pattern.isDynamicPattern(d,g)}f.isDynamicPattern=E;function A(d){return l(d),u.path.escape(d)}f.escapePath=A})(c||(c={}));function p(f,h,y){let v=i.transform([].concat(f)),E=new o.default(y),A=r.generate(v,E),d=new h(E);return A.map(d.read,d)}function l(f){if(![].concat(f).every(h=>u.string.isString(h)&&!u.string.isEmpty(h)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}e.exports=c}),bu=N(t=>{"use strict";R();var{promisify:e}=G("util"),r=G("fs");async function i(a,s,o){if(typeof o!="string")throw new TypeError(`Expected a string, got ${typeof o}`);try{return(await e(r[a])(o))[s]()}catch(u){if(u.code==="ENOENT")return!1;throw u}}function n(a,s,o){if(typeof o!="string")throw new TypeError(`Expected a string, got ${typeof o}`);try{return r[a](o)[s]()}catch(u){if(u.code==="ENOENT")return!1;throw u}}t.isFile=i.bind(null,"stat","isFile"),t.isDirectory=i.bind(null,"stat","isDirectory"),t.isSymlink=i.bind(null,"lstat","isSymbolicLink"),t.isFileSync=n.bind(null,"statSync","isFile"),t.isDirectorySync=n.bind(null,"statSync","isDirectory"),t.isSymlinkSync=n.bind(null,"lstatSync","isSymbolicLink")}),Su=N((t,e)=>{"use strict";R();var r=G("path"),i=bu(),n=u=>u.length>1?`{${u.join(",")}}`:u[0],a=(u,c)=>{let p=u[0]==="!"?u.slice(1):u;return r.isAbsolute(p)?p:r.join(c,p)},s=(u,c)=>r.extname(u)?`**/${u}`:`**/${u}.${n(c)}`,o=(u,c)=>{if(c.files&&!Array.isArray(c.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof c.files}\``);if(c.extensions&&!Array.isArray(c.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof c.extensions}\``);return c.files&&c.extensions?c.files.map(p=>r.posix.join(u,s(p,c.extensions))):c.files?c.files.map(p=>r.posix.join(u,`**/${p}`)):c.extensions?[r.posix.join(u,`**/*.${n(c.extensions)}`)]:[r.posix.join(u,"**")]};e.exports=async(u,c)=>{if(c={cwd:process.cwd(),...c},typeof c.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof c.cwd}\``);let p=await Promise.all([].concat(u).map(async l=>await i.isDirectory(a(l,c.cwd))?o(l,c):l));return[].concat.apply([],p)},e.exports.sync=(u,c)=>{if(c={cwd:process.cwd(),...c},typeof c.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof c.cwd}\``);let p=[].concat(u).map(l=>i.isDirectorySync(a(l,c.cwd))?o(l,c):l);return[].concat.apply([],p)}}),Fu=N((t,e)=>{R();function r(w){return Array.isArray(w)?w:[w]}var i="",n=" ",a="\\",s=/^\s+$/,o=/^\\!/,u=/^\\#/,c=/\r?\n/g,p=/^\.*\/|^\.+$/,l="/",f=typeof Symbol<"u"?Symbol.for("node-ignore"):"node-ignore",h=(w,O,I)=>Object.defineProperty(w,O,{value:I}),y=/([0-z])-([0-z])/g,v=()=>!1,E=w=>w.replace(y,(O,I,L)=>I.charCodeAt(0)<=L.charCodeAt(0)?O:i),A=w=>{let{length:O}=w;return w.slice(0,O-O%2)},d=[[/\\?\s+$/,w=>w.indexOf("\\")===0?n:i],[/\\\s/g,()=>n],[/[\\$.|*+(){^]/g,w=>`\\${w}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(w,O,I)=>O+6<I.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)\\\*(?=.+)/g,(w,O)=>`${O}[^\\/]*`],[/\\\\\\(?=[$.|*+(){^])/g,()=>a],[/\\\\/g,()=>a],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(w,O,I,L,U)=>O===a?`\\[${I}${A(L)}${U}`:U==="]"&&L.length%2===0?`[${E(I)}${L}]`:"[]"],[/(?:[^*])$/,w=>/\/$/.test(w)?`${w}$`:`${w}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(w,O)=>`${O?`${O}[^/]+`:"[^/]*"}(?=$|\\/$)`]],D=Object.create(null),g=(w,O)=>{let I=D[w];return I||(I=d.reduce((L,U)=>L.replace(U[0],U[1].bind(w)),w),D[w]=I),O?new RegExp(I,"i"):new RegExp(I)},m=w=>typeof w=="string",C=w=>w&&m(w)&&!s.test(w)&&w.indexOf("#")!==0,b=w=>w.split(c),x=class{constructor(w,O,I,L){this.origin=w,this.pattern=O,this.negative=I,this.regex=L}},S=(w,O)=>{let I=w,L=!1;w.indexOf("!")===0&&(L=!0,w=w.substr(1)),w=w.replace(o,"!").replace(u,"#");let U=g(w,O);return new x(I,w,L,U)},B=(w,O)=>{throw new O(w)},k=(w,O,I)=>m(w)?w?k.isNotRelative(w)?I(`path should be a \`path.relative()\`d string, but got "${O}"`,RangeError):!0:I("path must not be empty",TypeError):I(`path must be a string, but got \`${O}\``,TypeError),T=w=>p.test(w);k.isNotRelative=T,k.convert=w=>w;var j=class{constructor({ignorecase:w=!0,ignoreCase:O=w,allowRelativePaths:I=!1}={}){h(this,f,!0),this._rules=[],this._ignoreCase=O,this._allowRelativePaths=I,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(w){if(w&&w[f]){this._rules=this._rules.concat(w._rules),this._added=!0;return}if(C(w)){let O=S(w,this._ignoreCase);this._added=!0,this._rules.push(O)}}add(w){return this._added=!1,r(m(w)?b(w):w).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(w){return this.add(w)}_testOne(w,O){let I=!1,L=!1;return this._rules.forEach(U=>{let{negative:Q}=U;L===Q&&I!==L||Q&&!I&&!L&&!O||U.regex.test(w)&&(I=!Q,L=Q)}),{ignored:I,unignored:L}}_test(w,O,I,L){let U=w&&k.convert(w);return k(U,w,this._allowRelativePaths?v:B),this._t(U,O,I,L)}_t(w,O,I,L){if(w in O)return O[w];if(L||(L=w.split(l)),L.pop(),!L.length)return O[w]=this._testOne(w,I);let U=this._t(L.join(l)+l,O,I,L);return O[w]=U.ignored?U:this._testOne(w,I)}ignores(w){return this._test(w,this._ignoreCache,!1).ignored}createFilter(){return w=>!this.ignores(w)}filter(w){return r(w).filter(this.createFilter())}test(w){return this._test(w,this._testCache,!0)}},_=w=>new j(w),F=w=>k(w&&k.convert(w),w,v);if(_.isPathValid=F,_.default=_,e.exports=_,typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let w=I=>/^\\\\\?\\/.test(I)||/["<>|\u0000-\u001F]+/u.test(I)?I:I.replace(/\\/g,"/");k.convert=w;let O=/^[a-z]:\//i;k.isNotRelative=I=>O.test(I)||T(I)}}),_u=N((t,e)=>{"use strict";R(),e.exports=r=>{let i=/^\\\\\?\\/.test(r),n=/[^\u0000-\u0080]+/.test(r);return i||n?r:r.replace(/\\/g,"/")}}),wu=N((t,e)=>{"use strict";R();var{promisify:r}=G("util"),i=G("fs"),n=G("path"),a=sn(),s=Fu(),o=_u(),u=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],c=r(i.readFile),p=d=>D=>D.startsWith("!")?"!"+n.posix.join(d,D.slice(1)):n.posix.join(d,D),l=(d,D)=>{let g=o(n.relative(D.cwd,n.dirname(D.fileName)));return d.split(/\r?\n/).filter(Boolean).filter(m=>!m.startsWith("#")).map(p(g))},f=d=>{let D=s();for(let g of d)D.add(l(g.content,{cwd:g.cwd,fileName:g.filePath}));return D},h=(d,D)=>{if(d=o(d),n.isAbsolute(D)){if(o(D).startsWith(d))return D;throw new Error(`Path ${D} is not in cwd ${d}`)}return n.join(d,D)},y=(d,D)=>g=>d.ignores(o(n.relative(D,h(D,g.path||g)))),v=async(d,D)=>{let g=n.join(D,d),m=await c(g,"utf8");return{cwd:D,filePath:g,content:m}},E=(d,D)=>{let g=n.join(D,d),m=i.readFileSync(g,"utf8");return{cwd:D,filePath:g,content:m}},A=({ignore:d=[],cwd:D=o(process.cwd())}={})=>({ignore:d,cwd:D});e.exports=async d=>{d=A(d);let D=await a("**/.gitignore",{ignore:u.concat(d.ignore),cwd:d.cwd}),g=await Promise.all(D.map(C=>v(C,d.cwd))),m=f(g);return y(m,d.cwd)},e.exports.sync=d=>{d=A(d);let D=a.sync("**/.gitignore",{ignore:u.concat(d.ignore),cwd:d.cwd}).map(m=>E(m,d.cwd)),g=f(D);return y(g,d.cwd)}}),xu=N((t,e)=>{"use strict";R();var{Transform:r}=G("stream"),i=class extends r{constructor(){super({objectMode:!0})}},n=class extends i{constructor(s){super(),this._filter=s}_transform(s,o,u){this._filter(s)&&this.push(s),u()}},a=class extends i{constructor(){super(),this._pushed=new Set}_transform(s,o,u){this._pushed.has(s)||(this.push(s),this._pushed.add(s)),u()}};e.exports={FilterStream:n,UniqueStream:a}}),ku=N((t,e)=>{"use strict";R();var r=G("fs"),i=Co(),n=Zr(),a=sn(),s=Su(),o=wu(),{FilterStream:u,UniqueStream:c}=xu(),p=()=>!1,l=g=>g[0]==="!",f=g=>{if(!g.every(m=>typeof m=="string"))throw new TypeError("Patterns must be a string or an array of strings")},h=(g={})=>{if(!g.cwd)return;let m;try{m=r.statSync(g.cwd)}catch{return}if(!m.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},y=g=>g.stats instanceof r.Stats?g.path:g,v=(g,m)=>{g=i([].concat(g)),f(g),h(m);let C=[];m={ignore:[],expandDirectories:!0,...m};for(let[b,x]of g.entries()){if(l(x))continue;let S=g.slice(b).filter(k=>l(k)).map(k=>k.slice(1)),B={...m,ignore:m.ignore.concat(S)};C.push({pattern:x,options:B})}return C},E=(g,m)=>{let C={};return g.options.cwd&&(C.cwd=g.options.cwd),Array.isArray(g.options.expandDirectories)?C={...C,files:g.options.expandDirectories}:typeof g.options.expandDirectories=="object"&&(C={...C,...g.options.expandDirectories}),m(g.pattern,C)},A=(g,m)=>g.options.expandDirectories?E(g,m):[g.pattern],d=g=>g&&g.gitignore?o.sync({cwd:g.cwd,ignore:g.ignore}):p,D=g=>m=>{let{options:C}=g;return C.ignore&&Array.isArray(C.ignore)&&C.expandDirectories&&(C.ignore=s.sync(C.ignore)),{pattern:m,options:C}};e.exports=async(g,m)=>{let C=v(g,m),b=async()=>m&&m.gitignore?o({cwd:m.cwd,ignore:m.ignore}):p,x=async()=>{let T=await Promise.all(C.map(async j=>{let _=await A(j,s);return Promise.all(_.map(D(j)))}));return i(...T)},[S,B]=await Promise.all([b(),x()]),k=await Promise.all(B.map(T=>a(T.pattern,T.options)));return i(...k).filter(T=>!S(y(T)))},e.exports.sync=(g,m)=>{let C=v(g,m),b=[];for(let B of C){let k=A(B,s.sync).map(D(B));b.push(...k)}let x=d(m),S=[];for(let B of b)S=i(S,a.sync(B.pattern,B.options));return S.filter(B=>!x(B))},e.exports.stream=(g,m)=>{let C=v(g,m),b=[];for(let k of C){let T=A(k,s.sync).map(D(k));b.push(...T)}let x=d(m),S=new u(k=>!x(k)),B=new c;return n(b.map(k=>a.stream(k.pattern,k.options))).pipe(S).pipe(B)},e.exports.generateGlobTasks=v,e.exports.hasMagic=(g,m)=>[].concat(g).some(C=>a.isDynamicPattern(C,m)),e.exports.gitignore=o});R();R();function an(t){return typeof t>"u"||t===null}function Bu(t){return typeof t=="object"&&t!==null}function Ou(t){return Array.isArray(t)?t:an(t)?[]:[t]}function Ru(t,e){var r,i,n,a;if(e)for(a=Object.keys(e),r=0,i=a.length;r<i;r+=1)n=a[r],t[n]=e[n];return t}function Tu(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function Pu(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Nu=an,Iu=Bu,Lu=Ou,ju=Tu,Mu=Pu,$u=Ru,vt={isNothing:Nu,isObject:Iu,toArray:Lu,repeat:ju,isNegativeZero:Mu,extend:$u};function cn(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
22
|
+
|
23
|
+
`+t.mark.snippet),i+" "+r):i}function ce(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=cn(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ce.prototype=Object.create(Error.prototype);ce.prototype.constructor=ce;ce.prototype.toString=function(t){return this.name+": "+cn(this,t)};var wt=ce;function ze(t,e,r,i,n){var a="",s="",o=Math.floor(n/2)-1;return i-e>o&&(a=" ... ",e=i-o+a.length),r-i>o&&(s=" ...",r=i+o-s.length),{str:a+t.slice(e,r).replace(/\t/g,"\u2192")+s,pos:i-e+a.length}}function tr(t,e){return vt.repeat(" ",e-t.length)+t}function Hu(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],a,s=-1;a=r.exec(t.buffer);)n.push(a.index),i.push(a.index+a[0].length),t.position<=a.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o="",u,c,p=Math.min(t.line+e.linesAfter,n.length).toString().length,l=e.maxLength-(e.indent+p+3);for(u=1;u<=e.linesBefore&&!(s-u<0);u++)c=ze(t.buffer,i[s-u],n[s-u],t.position-(i[s]-i[s-u]),l),o=vt.repeat(" ",e.indent)+tr((t.line-u+1).toString(),p)+" | "+c.str+`
|
24
|
+
`+o;for(c=ze(t.buffer,i[s],n[s],t.position,l),o+=vt.repeat(" ",e.indent)+tr((t.line+1).toString(),p)+" | "+c.str+`
|
25
|
+
`,o+=vt.repeat("-",e.indent+p+3+c.pos)+`^
|
26
|
+
`,u=1;u<=e.linesAfter&&!(s+u>=n.length);u++)c=ze(t.buffer,i[s+u],n[s+u],t.position-(i[s]-i[s+u]),l),o+=vt.repeat(" ",e.indent)+tr((t.line+u+1).toString(),p)+" | "+c.str+`
|
27
|
+
`;return o.replace(/\n$/,"")}var Gu=Hu,Uu=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Wu=["scalar","sequence","mapping"];function Vu(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function Ku(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Uu.indexOf(r)===-1)throw new wt('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Vu(e.styleAliases||null),Wu.indexOf(this.kind)===-1)throw new wt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var bt=Ku;function Lr(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(a,s){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=s)}),r[n]=i}),r}function qu(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function rr(t){return this.extend(t)}rr.prototype.extend=function(t){var e=[],r=[];if(t instanceof bt)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new wt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.forEach(function(n){if(!(n instanceof bt))throw new wt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new wt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new wt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(n){if(!(n instanceof bt))throw new wt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(rr.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=Lr(i,"implicit"),i.compiledExplicit=Lr(i,"explicit"),i.compiledTypeMap=qu(i.compiledImplicit,i.compiledExplicit),i};var ln=rr,pn=new bt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),fn=new bt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),dn=new bt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),hn=new ln({explicit:[pn,fn,dn]});function Yu(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Qu(){return null}function Xu(t){return t===null}var mn=new bt("tag:yaml.org,2002:null",{kind:"scalar",resolve:Yu,construct:Qu,predicate:Xu,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Ju(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Zu(t){return t==="true"||t==="True"||t==="TRUE"}function zu(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var yn=new bt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ju,construct:Zu,predicate:zu,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function ts(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function es(t){return 48<=t&&t<=55}function rs(t){return 48<=t&&t<=57}function ns(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!ts(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!es(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!rs(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function is(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function os(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!vt.isNegativeZero(t)}var Dn=new bt("tag:yaml.org,2002:int",{kind:"scalar",resolve:ns,construct:is,predicate:os,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),us=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ss(t){return!(t===null||!us.test(t)||t[t.length-1]==="_")}function as(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var cs=/^[-+]?[0-9]+e/;function ls(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(vt.isNegativeZero(t))return"-0.0";return r=t.toString(10),cs.test(r)?r.replace("e",".e"):r}function ps(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||vt.isNegativeZero(t))}var gn=new bt("tag:yaml.org,2002:float",{kind:"scalar",resolve:ss,construct:as,predicate:ps,represent:ls,defaultStyle:"lowercase"}),En=hn.extend({implicit:[mn,yn,Dn,gn]}),vn=En,An=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Cn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function fs(t){return t===null?!1:An.exec(t)!==null||Cn.exec(t)!==null}function ds(t){var e,r,i,n,a,s,o,u=0,c=null,p,l,f;if(e=An.exec(t),e===null&&(e=Cn.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(a=+e[4],s=+e[5],o=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(p=+e[10],l=+(e[11]||0),c=(p*60+l)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,a,s,o,u)),c&&f.setTime(f.getTime()-c),f}function hs(t){return t.toISOString()}var bn=new bt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:fs,construct:ds,instanceOf:Date,represent:hs});function ms(t){return t==="<<"||t===null}var Sn=new bt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ms}),hr=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
28
|
+
\r`;function ys(t){if(t===null)return!1;var e,r,i=0,n=t.length,a=hr;for(r=0;r<n;r++)if(e=a.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function Ds(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,a=hr,s=0,o=[];for(e=0;e<n;e++)e%4===0&&e&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(i.charAt(e));return r=n%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}function gs(t){var e="",r=0,i,n,a=t.length,s=hr;for(i=0;i<a;i++)i%3===0&&i&&(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]),r=(r<<8)+t[i];return n=a%3,n===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):n===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):n===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}function Es(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Fn=new bt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ys,construct:Ds,predicate:Es,represent:gs}),vs=Object.prototype.hasOwnProperty,As=Object.prototype.toString;function Cs(t){if(t===null)return!0;var e=[],r,i,n,a,s,o=t;for(r=0,i=o.length;r<i;r+=1){if(n=o[r],s=!1,As.call(n)!=="[object Object]")return!1;for(a in n)if(vs.call(n,a))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(a)===-1)e.push(a);else return!1}return!0}function bs(t){return t!==null?t:[]}var _n=new bt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Cs,construct:bs}),Ss=Object.prototype.toString;function Fs(t){if(t===null)return!0;var e,r,i,n,a,s=t;for(a=new Array(s.length),e=0,r=s.length;e<r;e+=1){if(i=s[e],Ss.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;a[e]=[n[0],i[n[0]]]}return!0}function _s(t){if(t===null)return[];var e,r,i,n,a,s=t;for(a=new Array(s.length),e=0,r=s.length;e<r;e+=1)i=s[e],n=Object.keys(i),a[e]=[n[0],i[n[0]]];return a}var wn=new bt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Fs,construct:_s}),ws=Object.prototype.hasOwnProperty;function xs(t){if(t===null)return!0;var e,r=t;for(e in r)if(ws.call(r,e)&&r[e]!==null)return!1;return!0}function ks(t){return t!==null?t:{}}var xn=new bt("tag:yaml.org,2002:set",{kind:"mapping",resolve:xs,construct:ks}),mr=vn.extend({implicit:[bn,Sn],explicit:[Fn,_n,wn,xn]}),Wt=Object.prototype.hasOwnProperty,Fe=1,kn=2,Bn=3,_e=4,er=1,Bs=2,jr=3,Os=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Rs=/[\x85\u2028\u2029]/,Ts=/[,\[\]\{\}]/,On=/^(?:!|!!|![a-z\-]+!)$/i,Rn=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Mr(t){return Object.prototype.toString.call(t)}function Nt(t){return t===10||t===13}function Xt(t){return t===9||t===32}function xt(t){return t===9||t===32||t===10||t===13}function zt(t){return t===44||t===91||t===93||t===123||t===125}function Ps(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Ns(t){return t===120?2:t===117?4:t===85?8:0}function Is(t){return 48<=t&&t<=57?t-48:-1}function $r(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
29
|
+
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function Ls(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Tn=new Array(256),Pn=new Array(256);for(Yt=0;Yt<256;Yt++)Tn[Yt]=$r(Yt)?1:0,Pn[Yt]=$r(Yt);var Yt;function js(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||mr,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Nn(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Gu(r),new wt(e,r)}function Y(t,e){throw Nn(t,e)}function we(t,e){t.onWarning&&t.onWarning.call(null,Nn(t,e))}var Hr={YAML:function(t,e,r){var i,n,a;t.version!==null&&Y(t,"duplication of %YAML directive"),r.length!==1&&Y(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&Y(t,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),a=parseInt(i[2],10),n!==1&&Y(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&we(t,"unsupported YAML version of the document")},TAG:function(t,e,r){var i,n;r.length!==2&&Y(t,"TAG directive accepts exactly two arguments"),i=r[0],n=r[1],On.test(i)||Y(t,"ill-formed tag handle (first argument) of the TAG directive"),Wt.call(t.tagMap,i)&&Y(t,'there is a previously declared suffix for "'+i+'" tag handle'),Rn.test(n)||Y(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{Y(t,"tag prefix is malformed: "+n)}t.tagMap[i]=n}};function Ut(t,e,r,i){var n,a,s,o;if(e<r){if(o=t.input.slice(e,r),i)for(n=0,a=o.length;n<a;n+=1)s=o.charCodeAt(n),s===9||32<=s&&s<=1114111||Y(t,"expected valid JSON character");else Os.test(o)&&Y(t,"the stream contains non-printable characters");t.result+=o}}function Gr(t,e,r,i){var n,a,s,o;for(vt.isObject(r)||Y(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,o=n.length;s<o;s+=1)a=n[s],Wt.call(e,a)||(e[a]=r[a],i[a]=!0)}function te(t,e,r,i,n,a,s,o,u){var c,p;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,p=n.length;c<p;c+=1)Array.isArray(n[c])&&Y(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Mr(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Mr(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,p=a.length;c<p;c+=1)Gr(t,e,a[c],r);else Gr(t,e,a,r);else!t.json&&!Wt.call(r,n)&&Wt.call(e,n)&&(t.line=s||t.line,t.lineStart=o||t.lineStart,t.position=u||t.position,Y(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:a}):e[n]=a,delete r[n];return e}function yr(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Y(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Dt(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Xt(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Nt(n))for(yr(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&we(t,"deficient indentation"),i}function Re(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||xt(r)))}function Dr(t,e){e===1?t.result+=" ":e>1&&(t.result+=vt.repeat(`
|
30
|
+
`,e-1))}function Ms(t,e,r){var i,n,a,s,o,u,c,p,l=t.kind,f=t.result,h;if(h=t.input.charCodeAt(t.position),xt(h)||zt(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(n=t.input.charCodeAt(t.position+1),xt(n)||r&&zt(n)))return!1;for(t.kind="scalar",t.result="",a=s=t.position,o=!1;h!==0;){if(h===58){if(n=t.input.charCodeAt(t.position+1),xt(n)||r&&zt(n))break}else if(h===35){if(i=t.input.charCodeAt(t.position-1),xt(i))break}else{if(t.position===t.lineStart&&Re(t)||r&&zt(h))break;if(Nt(h))if(u=t.line,c=t.lineStart,p=t.lineIndent,Dt(t,!1,-1),t.lineIndent>=e){o=!0,h=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=u,t.lineStart=c,t.lineIndent=p;break}}o&&(Ut(t,a,s,!1),Dr(t,t.line-u),a=s=t.position,o=!1),Xt(h)||(s=t.position+1),h=t.input.charCodeAt(++t.position)}return Ut(t,a,s,!1),t.result?!0:(t.kind=l,t.result=f,!1)}function $s(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Ut(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else Nt(r)?(Ut(t,i,n,!0),Dr(t,Dt(t,!1,e)),i=n=t.position):t.position===t.lineStart&&Re(t)?Y(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Y(t,"unexpected end of the stream within a single quoted scalar")}function Hs(t,e){var r,i,n,a,s,o;if(o=t.input.charCodeAt(t.position),o!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(o=t.input.charCodeAt(t.position))!==0;){if(o===34)return Ut(t,r,t.position,!0),t.position++,!0;if(o===92){if(Ut(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),Nt(o))Dt(t,!1,e);else if(o<256&&Tn[o])t.result+=Pn[o],t.position++;else if((s=Ns(o))>0){for(n=s,a=0;n>0;n--)o=t.input.charCodeAt(++t.position),(s=Ps(o))>=0?a=(a<<4)+s:Y(t,"expected hexadecimal character");t.result+=Ls(a),t.position++}else Y(t,"unknown escape sequence");r=i=t.position}else Nt(o)?(Ut(t,r,i,!0),Dr(t,Dt(t,!1,e)),r=i=t.position):t.position===t.lineStart&&Re(t)?Y(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Y(t,"unexpected end of the stream within a double quoted scalar")}function Gs(t,e){var r=!0,i,n,a,s=t.tag,o,u=t.anchor,c,p,l,f,h,y=Object.create(null),v,E,A,d;if(d=t.input.charCodeAt(t.position),d===91)p=93,h=!1,o=[];else if(d===123)p=125,h=!0,o={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),d=t.input.charCodeAt(++t.position);d!==0;){if(Dt(t,!0,e),d=t.input.charCodeAt(t.position),d===p)return t.position++,t.tag=s,t.anchor=u,t.kind=h?"mapping":"sequence",t.result=o,!0;r?d===44&&Y(t,"expected the node content, but found ','"):Y(t,"missed comma between flow collection entries"),E=v=A=null,l=f=!1,d===63&&(c=t.input.charCodeAt(t.position+1),xt(c)&&(l=f=!0,t.position++,Dt(t,!0,e))),i=t.line,n=t.lineStart,a=t.position,ee(t,e,Fe,!1,!0),E=t.tag,v=t.result,Dt(t,!0,e),d=t.input.charCodeAt(t.position),(f||t.line===i)&&d===58&&(l=!0,d=t.input.charCodeAt(++t.position),Dt(t,!0,e),ee(t,e,Fe,!1,!0),A=t.result),h?te(t,o,y,E,v,A,i,n,a):l?o.push(te(t,null,y,E,v,A,i,n,a)):o.push(v),Dt(t,!0,e),d=t.input.charCodeAt(t.position),d===44?(r=!0,d=t.input.charCodeAt(++t.position)):r=!1}Y(t,"unexpected end of the stream within a flow collection")}function Us(t,e){var r,i,n=er,a=!1,s=!1,o=e,u=0,c=!1,p,l;if(l=t.input.charCodeAt(t.position),l===124)i=!1;else if(l===62)i=!0;else return!1;for(t.kind="scalar",t.result="";l!==0;)if(l=t.input.charCodeAt(++t.position),l===43||l===45)er===n?n=l===43?jr:Bs:Y(t,"repeat of a chomping mode identifier");else if((p=Is(l))>=0)p===0?Y(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Y(t,"repeat of an indentation width identifier"):(o=e+p-1,s=!0);else break;if(Xt(l)){do l=t.input.charCodeAt(++t.position);while(Xt(l));if(l===35)do l=t.input.charCodeAt(++t.position);while(!Nt(l)&&l!==0)}for(;l!==0;){for(yr(t),t.lineIndent=0,l=t.input.charCodeAt(t.position);(!s||t.lineIndent<o)&&l===32;)t.lineIndent++,l=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>o&&(o=t.lineIndent),Nt(l)){u++;continue}if(t.lineIndent<o){n===jr?t.result+=vt.repeat(`
|
31
|
+
`,a?1+u:u):n===er&&a&&(t.result+=`
|
32
|
+
`);break}for(i?Xt(l)?(c=!0,t.result+=vt.repeat(`
|
33
|
+
`,a?1+u:u)):c?(c=!1,t.result+=vt.repeat(`
|
34
|
+
`,u+1)):u===0?a&&(t.result+=" "):t.result+=vt.repeat(`
|
35
|
+
`,u):t.result+=vt.repeat(`
|
36
|
+
`,a?1+u:u),a=!0,s=!0,u=0,r=t.position;!Nt(l)&&l!==0;)l=t.input.charCodeAt(++t.position);Ut(t,r,t.position,!1)}return!0}function Ur(t,e){var r,i=t.tag,n=t.anchor,a=[],s,o=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Y(t,"tab characters must not be used in indentation")),!(u!==45||(s=t.input.charCodeAt(t.position+1),!xt(s))));){if(o=!0,t.position++,Dt(t,!0,-1)&&t.lineIndent<=e){a.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,ee(t,e,Bn,!1,!0),a.push(t.result),Dt(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)Y(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return o?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=a,!0):!1}function Ws(t,e,r){var i,n,a,s,o,u,c=t.tag,p=t.anchor,l={},f=Object.create(null),h=null,y=null,v=null,E=!1,A=!1,d;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=l),d=t.input.charCodeAt(t.position);d!==0;){if(!E&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Y(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),a=t.line,(d===63||d===58)&&xt(i))d===63?(E&&(te(t,l,f,h,y,null,s,o,u),h=y=v=null),A=!0,E=!0,n=!0):E?(E=!1,n=!0):Y(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,d=i;else{if(s=t.line,o=t.lineStart,u=t.position,!ee(t,r,kn,!1,!0))break;if(t.line===a){for(d=t.input.charCodeAt(t.position);Xt(d);)d=t.input.charCodeAt(++t.position);if(d===58)d=t.input.charCodeAt(++t.position),xt(d)||Y(t,"a whitespace character is expected after the key-value separator within a block mapping"),E&&(te(t,l,f,h,y,null,s,o,u),h=y=v=null),A=!0,E=!1,n=!1,h=t.tag,y=t.result;else if(A)Y(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=p,!0}else if(A)Y(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=p,!0}if((t.line===a||t.lineIndent>e)&&(E&&(s=t.line,o=t.lineStart,u=t.position),ee(t,e,_e,!0,n)&&(E?y=t.result:v=t.result),E||(te(t,l,f,h,y,v,s,o,u),h=y=v=null),Dt(t,!0,-1),d=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&d!==0)Y(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return E&&te(t,l,f,h,y,null,s,o,u),A&&(t.tag=c,t.anchor=p,t.kind="mapping",t.result=l),A}function Vs(t){var e,r=!1,i=!1,n,a,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&Y(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(r=!0,s=t.input.charCodeAt(++t.position)):s===33?(i=!0,n="!!",s=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(a=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):Y(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!xt(s);)s===33&&(i?Y(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),On.test(n)||Y(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);a=t.input.slice(e,t.position),Ts.test(a)&&Y(t,"tag suffix cannot contain flow indicator characters")}a&&!Rn.test(a)&&Y(t,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{Y(t,"tag name is malformed: "+a)}return r?t.tag=a:Wt.call(t.tagMap,n)?t.tag=t.tagMap[n]+a:n==="!"?t.tag="!"+a:n==="!!"?t.tag="tag:yaml.org,2002:"+a:Y(t,'undeclared tag handle "'+n+'"'),!0}function Ks(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Y(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!xt(r)&&!zt(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Y(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function qs(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!xt(i)&&!zt(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Y(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Wt.call(t.anchorMap,r)||Y(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Dt(t,!0,-1),!0}function ee(t,e,r,i,n){var a,s,o,u=1,c=!1,p=!1,l,f,h,y,v,E;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=s=o=_e===r||Bn===r,i&&Dt(t,!0,-1)&&(c=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;Vs(t)||Ks(t);)Dt(t,!0,-1)?(c=!0,o=a,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):o=!1;if(o&&(o=c||n),(u===1||_e===r)&&(Fe===r||kn===r?v=e:v=e+1,E=t.position-t.lineStart,u===1?o&&(Ur(t,E)||Ws(t,E,v))||Gs(t,v)?p=!0:(s&&Us(t,v)||$s(t,v)||Hs(t,v)?p=!0:qs(t)?(p=!0,(t.tag!==null||t.anchor!==null)&&Y(t,"alias node should not have any properties")):Ms(t,v,Fe===r)&&(p=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(p=o&&Ur(t,E))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&Y(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,f=t.implicitTypes.length;l<f;l+=1)if(y=t.implicitTypes[l],y.resolve(t.result)){t.result=y.construct(t.result),t.tag=y.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Wt.call(t.typeMap[t.kind||"fallback"],t.tag))y=t.typeMap[t.kind||"fallback"][t.tag];else for(y=null,h=t.typeMap.multi[t.kind||"fallback"],l=0,f=h.length;l<f;l+=1)if(t.tag.slice(0,h[l].tag.length)===h[l].tag){y=h[l];break}y||Y(t,"unknown tag !<"+t.tag+">"),t.result!==null&&y.kind!==t.kind&&Y(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+y.kind+'", not "'+t.kind+'"'),y.resolve(t.result,t.tag)?(t.result=y.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Y(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||p}function Ys(t){var e=t.position,r,i,n,a=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Dt(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(a=!0,s=t.input.charCodeAt(++t.position),r=t.position;s!==0&&!xt(s);)s=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&Y(t,"directive name must not be less than one character in length");s!==0;){for(;Xt(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!Nt(s));break}if(Nt(s))break;for(r=t.position;s!==0&&!xt(s);)s=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}s!==0&&yr(t),Wt.call(Hr,i)?Hr[i](t,i,n):we(t,'unknown document directive "'+i+'"')}if(Dt(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Dt(t,!0,-1)):a&&Y(t,"directives end mark is expected"),ee(t,t.lineIndent-1,_e,!1,!0),Dt(t,!0,-1),t.checkLineBreaks&&Rs.test(t.input.slice(e,t.position))&&we(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Re(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Dt(t,!0,-1));return}if(t.position<t.length-1)Y(t,"end of the stream or a document separator is expected");else return}function In(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
37
|
+
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new js(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,Y(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Ys(r);return r.documents}function Qs(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=In(t,r);if(typeof e!="function")return i;for(var n=0,a=i.length;n<a;n+=1)e(i[n])}function Xs(t,e){var r=In(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new wt("expected a single document in the stream, but found more")}}var Js=Qs,Zs=Xs,Ln={loadAll:Js,load:Zs},jn=Object.prototype.toString,Mn=Object.prototype.hasOwnProperty,gr=65279,zs=9,le=10,ta=13,ea=32,ra=33,na=34,nr=35,ia=37,oa=38,ua=39,sa=42,$n=44,aa=45,xe=58,ca=61,la=62,pa=63,fa=64,Hn=91,Gn=93,da=96,Un=123,ha=124,Wn=125,St={};St[0]="\\0";St[7]="\\a";St[8]="\\b";St[9]="\\t";St[10]="\\n";St[11]="\\v";St[12]="\\f";St[13]="\\r";St[27]="\\e";St[34]='\\"';St[92]="\\\\";St[133]="\\N";St[160]="\\_";St[8232]="\\L";St[8233]="\\P";var ma=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ya=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Da(t,e){var r,i,n,a,s,o,u;if(e===null)return{};for(r={},i=Object.keys(e),n=0,a=i.length;n<a;n+=1)s=i[n],o=String(e[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),u=t.compiledTypeMap.fallback[s],u&&Mn.call(u.styleAliases,o)&&(o=u.styleAliases[o]),r[s]=o;return r}function ga(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new wt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+vt.repeat("0",i-e.length)+e}var Ea=1,pe=2;function va(t){this.schema=t.schema||mr,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=vt.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Da(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?pe:Ea,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Wr(t,e){for(var r=vt.repeat(" ",e),i=0,n=-1,a="",s,o=t.length;i<o;)n=t.indexOf(`
|
38
|
+
`,i),n===-1?(s=t.slice(i),i=o):(s=t.slice(i,n+1),i=n+1),s.length&&s!==`
|
39
|
+
`&&(a+=r),a+=s;return a}function ir(t,e){return`
|
40
|
+
`+vt.repeat(" ",t.indent*e)}function Aa(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function ke(t){return t===ea||t===zs}function fe(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==gr||65536<=t&&t<=1114111}function Vr(t){return fe(t)&&t!==gr&&t!==ta&&t!==le}function Kr(t,e,r){var i=Vr(t),n=i&&!ke(t);return(r?i:i&&t!==$n&&t!==Hn&&t!==Gn&&t!==Un&&t!==Wn)&&t!==nr&&!(e===xe&&!n)||Vr(e)&&!ke(e)&&t===nr||e===xe&&n}function Ca(t){return fe(t)&&t!==gr&&!ke(t)&&t!==aa&&t!==pa&&t!==xe&&t!==$n&&t!==Hn&&t!==Gn&&t!==Un&&t!==Wn&&t!==nr&&t!==oa&&t!==sa&&t!==ra&&t!==ha&&t!==ca&&t!==la&&t!==ua&&t!==na&&t!==ia&&t!==fa&&t!==da}function ba(t){return!ke(t)&&t!==xe}function se(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Vn(t){var e=/^\n* /;return e.test(t)}var Kn=1,or=2,qn=3,Yn=4,Zt=5;function Sa(t,e,r,i,n,a,s,o){var u,c=0,p=null,l=!1,f=!1,h=i!==-1,y=-1,v=Ca(se(t,0))&&ba(se(t,t.length-1));if(e||s)for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=se(t,u),!fe(c))return Zt;v=v&&Kr(c,p,o),p=c}else{for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=se(t,u),c===le)l=!0,h&&(f=f||u-y-1>i&&t[y+1]!==" ",y=u);else if(!fe(c))return Zt;v=v&&Kr(c,p,o),p=c}f=f||h&&u-y-1>i&&t[y+1]!==" "}return!l&&!f?v&&!s&&!n(t)?Kn:a===pe?Zt:or:r>9&&Vn(t)?Zt:s?a===pe?Zt:or:f?Yn:qn}function Fa(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===pe?'""':"''";if(!t.noCompatMode&&(ma.indexOf(e)!==-1||ya.test(e)))return t.quotingType===pe?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),o=i||t.flowLevel>-1&&r>=t.flowLevel;function u(c){return Aa(t,c)}switch(Sa(e,o,t.indent,s,u,t.quotingType,t.forceQuotes&&!i,n)){case Kn:return e;case or:return"'"+e.replace(/'/g,"''")+"'";case qn:return"|"+qr(e,t.indent)+Yr(Wr(e,a));case Yn:return">"+qr(e,t.indent)+Yr(Wr(_a(e,s),a));case Zt:return'"'+wa(e)+'"';default:throw new wt("impossible error: invalid scalar style")}}()}function qr(t,e){var r=Vn(t)?String(e):"",i=t[t.length-1]===`
|
41
|
+
`,n=i&&(t[t.length-2]===`
|
42
|
+
`||t===`
|
43
|
+
`),a=n?"+":i?"":"-";return r+a+`
|
44
|
+
`}function Yr(t){return t[t.length-1]===`
|
45
|
+
`?t.slice(0,-1):t}function _a(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
|
46
|
+
`);return c=c!==-1?c:t.length,r.lastIndex=c,Qr(t.slice(0,c),e)}(),n=t[0]===`
|
47
|
+
`||t[0]===" ",a,s;s=r.exec(t);){var o=s[1],u=s[2];a=u[0]===" ",i+=o+(!n&&!a&&u!==""?`
|
48
|
+
`:"")+Qr(u,e),n=a}return i}function Qr(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,a,s=0,o=0,u="";i=r.exec(t);)o=i.index,o-n>e&&(a=s>n?s:o,u+=`
|
49
|
+
`+t.slice(n,a),n=a+1),s=o;return u+=`
|
50
|
+
`,t.length-n>e&&s>n?u+=t.slice(n,s)+`
|
51
|
+
`+t.slice(s+1):u+=t.slice(n),u.slice(1)}function wa(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=se(t,n),i=St[r],!i&&fe(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||ga(r);return e}function xa(t,e,r){var i="",n=t.tag,a,s,o;for(a=0,s=r.length;a<s;a+=1)o=r[a],t.replacer&&(o=t.replacer.call(r,String(a),o)),($t(t,e,o,!1,!1)||typeof o>"u"&&$t(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function Xr(t,e,r,i){var n="",a=t.tag,s,o,u;for(s=0,o=r.length;s<o;s+=1)u=r[s],t.replacer&&(u=t.replacer.call(r,String(s),u)),($t(t,e+1,u,!0,!0,!1,!0)||typeof u>"u"&&$t(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=ir(t,e)),t.dump&&le===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=a,t.dump=n||"[]"}function ka(t,e,r){var i="",n=t.tag,a=Object.keys(r),s,o,u,c,p;for(s=0,o=a.length;s<o;s+=1)p="",i!==""&&(p+=", "),t.condenseFlow&&(p+='"'),u=a[s],c=r[u],t.replacer&&(c=t.replacer.call(r,u,c)),$t(t,e,u,!1,!1)&&(t.dump.length>1024&&(p+="? "),p+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),$t(t,e,c,!1,!1)&&(p+=t.dump,i+=p));t.tag=n,t.dump="{"+i+"}"}function Ba(t,e,r,i){var n="",a=t.tag,s=Object.keys(r),o,u,c,p,l,f;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new wt("sortKeys must be a boolean or a function");for(o=0,u=s.length;o<u;o+=1)f="",(!i||n!=="")&&(f+=ir(t,e)),c=s[o],p=r[c],t.replacer&&(p=t.replacer.call(r,c,p)),$t(t,e+1,c,!0,!0,!0)&&(l=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,l&&(t.dump&&le===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,l&&(f+=ir(t,e)),$t(t,e+1,p,!0,l)&&(t.dump&&le===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=a,t.dump=n||"{}"}function Jr(t,e,r){var i,n,a,s,o,u;for(n=r?t.explicitTypes:t.implicitTypes,a=0,s=n.length;a<s;a+=1)if(o=n[a],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof e=="object"&&e instanceof o.instanceOf)&&(!o.predicate||o.predicate(e))){if(r?o.multi&&o.representName?t.tag=o.representName(e):t.tag=o.tag:t.tag="?",o.represent){if(u=t.styleMap[o.tag]||o.defaultStyle,jn.call(o.represent)==="[object Function]")i=o.represent(e,u);else if(Mn.call(o.represent,u))i=o.represent[u](e,u);else throw new wt("!<"+o.tag+'> tag resolver accepts not "'+u+'" style');t.dump=i}return!0}return!1}function $t(t,e,r,i,n,a,s){t.tag=null,t.dump=r,Jr(t,r,!1)||Jr(t,r,!0);var o=jn.call(t.dump),u=i,c;i&&(i=t.flowLevel<0||t.flowLevel>e);var p=o==="[object Object]"||o==="[object Array]",l,f;if(p&&(l=t.duplicates.indexOf(r),f=l!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(n=!1),f&&t.usedDuplicates[l])t.dump="*ref_"+l;else{if(p&&f&&!t.usedDuplicates[l]&&(t.usedDuplicates[l]=!0),o==="[object Object]")i&&Object.keys(t.dump).length!==0?(Ba(t,e,t.dump,n),f&&(t.dump="&ref_"+l+t.dump)):(ka(t,e,t.dump),f&&(t.dump="&ref_"+l+" "+t.dump));else if(o==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?Xr(t,e-1,t.dump,n):Xr(t,e,t.dump,n),f&&(t.dump="&ref_"+l+t.dump)):(xa(t,e,t.dump),f&&(t.dump="&ref_"+l+" "+t.dump));else if(o==="[object String]")t.tag!=="?"&&Fa(t,t.dump,e,a,u);else{if(o==="[object Undefined]"||t.skipInvalid)return!1;throw new wt("unacceptable kind of an object to dump "+o)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function Oa(t,e){var r=[],i=[],n,a;for(ur(t,r,i),n=0,a=i.length;n<a;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(a)}function ur(t,e,r){var i,n,a;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,a=t.length;n<a;n+=1)ur(t[n],e,r);else for(i=Object.keys(t),n=0,a=i.length;n<a;n+=1)ur(t[i[n]],e,r)}function Ra(t,e){e=e||{};var r=new va(e);r.noRefs||Oa(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),$t(r,0,i,!0,!0)?r.dump+`
|
52
|
+
`:""}var Ta=Ra,Pa={dump:Ta};function Er(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var Na=bt,Ia=ln,La=hn,ja=En,Ma=vn,$a=mr,Ha=Ln.load,Ga=Ln.loadAll,Ua=Pa.dump,Wa=wt,Va={binary:Fn,float:gn,map:dn,null:mn,pairs:wn,set:xn,timestamp:bn,bool:yn,int:Dn,merge:Sn,omap:_n,seq:fn,str:pn},Ka=Er("safeLoad","load"),qa=Er("safeLoadAll","loadAll"),Ya=Er("safeDump","dump"),Qa={Type:Na,Schema:Ia,FAILSAFE_SCHEMA:La,JSON_SCHEMA:ja,CORE_SCHEMA:Ma,DEFAULT_SCHEMA:$a,load:Ha,loadAll:Ga,dump:Ua,YAMLException:Wa,types:Va,safeLoad:Ka,safeLoadAll:qa,safeDump:Ya},Xa=Qa,Ja=Ht(ku()),Za="turbo.json";function za(t){try{if(ae.default.existsSync(Qt.default.join(t,"pnpm-workspace.yaml"))){let e=Xa.load(ae.default.readFileSync(Qt.default.join(t,"pnpm-workspace.yaml"),"utf8"));return(e==null?void 0:e.packages)||[]}else{let e=JSON.parse(ae.default.readFileSync(Qt.default.join(t,"package.json"),"utf8"));return(e==null?void 0:e.workspaces)||[]}}catch{return[]}}function tc(t){let e=Ze(t),r=[];if(e){let i=za(e).map(n=>`${n}/turbo.json`);Ja.default.sync([Za,...i],{cwd:e,onlyFiles:!0,followSymbolicLinks:!1,gitignore:!0}).map(n=>Qt.default.join(e,n)).forEach(n=>{try{let a=ae.default.readFileSync(n,"utf8"),s=Je.parse(a);if(Qt.default.dirname(n)===e){if("extends"in s)return}else if(!("extends"in s))return;r.push({config:s,turboConfigPath:n,workspacePath:Qt.default.dirname(n),isRootConfig:!("extends"in s)})}catch(a){console.error(a)}})}return r}var vr=tc;var ec=N((t,e)=>{R(),e.exports=a,a.sync=s;var r=G("fs");function i(o,u){var c=u.pathExt!==void 0?u.pathExt:process.env.PATHEXT;if(!c||(c=c.split(";"),c.indexOf("")!==-1))return!0;for(var p=0;p<c.length;p++){var l=c[p].toLowerCase();if(l&&o.substr(-l.length).toLowerCase()===l)return!0}return!1}function n(o,u,c){return!o.isSymbolicLink()&&!o.isFile()?!1:i(u,c)}function a(o,u,c){r.stat(o,function(p,l){c(p,p?!1:n(l,o,u))})}function s(o,u){return n(r.statSync(o),o,u)}}),rc=N((t,e)=>{R(),e.exports=i,i.sync=n;var r=G("fs");function i(o,u,c){r.stat(o,function(p,l){c(p,p?!1:a(l,u))})}function n(o,u){return a(r.statSync(o),u)}function a(o,u){return o.isFile()&&s(o,u)}function s(o,u){var c=o.mode,p=o.uid,l=o.gid,f=u.uid!==void 0?u.uid:process.getuid&&process.getuid(),h=u.gid!==void 0?u.gid:process.getgid&&process.getgid(),y=parseInt("100",8),v=parseInt("010",8),E=parseInt("001",8),A=y|v,d=c&E||c&v&&l===h||c&y&&p===f||c&A&&f===0;return d}}),nc=N((t,e)=>{R();var r=G("fs"),i;process.platform==="win32"||global.TESTING_WINDOWS?i=ec():i=rc(),e.exports=n,n.sync=a;function n(s,o,u){if(typeof o=="function"&&(u=o,o={}),!u){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(c,p){n(s,o||{},function(l,f){l?p(l):c(f)})})}i(s,o||{},function(c,p){c&&(c.code==="EACCES"||o&&o.ignoreErrors)&&(c=null,p=!1),u(c,p)})}function a(s,o){try{return i.sync(s,o||{})}catch(u){if(o&&o.ignoreErrors||u.code==="EACCES")return!1;throw u}}}),ic=N((t,e)=>{R();var r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",i=G("path"),n=r?";":":",a=nc(),s=p=>Object.assign(new Error(`not found: ${p}`),{code:"ENOENT"}),o=(p,l)=>{let f=l.colon||n,h=p.match(/\//)||r&&p.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(l.path||process.env.PATH||"").split(f)],y=r?l.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",v=r?y.split(f):[""];return r&&p.indexOf(".")!==-1&&v[0]!==""&&v.unshift(""),{pathEnv:h,pathExt:v,pathExtExe:y}},u=(p,l,f)=>{typeof l=="function"&&(f=l,l={}),l||(l={});let{pathEnv:h,pathExt:y,pathExtExe:v}=o(p,l),E=[],A=D=>new Promise((g,m)=>{if(D===h.length)return l.all&&E.length?g(E):m(s(p));let C=h[D],b=/^".*"$/.test(C)?C.slice(1,-1):C,x=i.join(b,p),S=!b&&/^\.[\\\/]/.test(p)?p.slice(0,2)+x:x;g(d(S,D,0))}),d=(D,g,m)=>new Promise((C,b)=>{if(m===y.length)return C(A(g+1));let x=y[m];a(D+x,{pathExt:v},(S,B)=>{if(!S&&B)if(l.all)E.push(D+x);else return C(D+x);return C(d(D,g,m+1))})});return f?A(0).then(D=>f(null,D),f):A(0)},c=(p,l)=>{l=l||{};let{pathEnv:f,pathExt:h,pathExtExe:y}=o(p,l),v=[];for(let E=0;E<f.length;E++){let A=f[E],d=/^".*"$/.test(A)?A.slice(1,-1):A,D=i.join(d,p),g=!d&&/^\.[\\\/]/.test(p)?p.slice(0,2)+D:D;for(let m=0;m<h.length;m++){let C=g+h[m];try{if(a.sync(C,{pathExt:y}))if(l.all)v.push(C);else return C}catch{}}}if(l.all&&v.length)return v;if(l.nothrow)return null;throw s(p)};e.exports=u,u.sync=c}),Qn=N((t,e)=>{"use strict";R();var r=(i={})=>{let n=i.env||process.env;return(i.platform||process.platform)!=="win32"?"PATH":Object.keys(n).reverse().find(a=>a.toUpperCase()==="PATH")||"Path"};e.exports=r,e.exports.default=r}),oc=N((t,e)=>{"use strict";R();var r=G("path"),i=ic(),n=Qn();function a(o,u){let c=o.options.env||process.env,p=process.cwd(),l=o.options.cwd!=null,f=l&&process.chdir!==void 0&&!process.chdir.disabled;if(f)try{process.chdir(o.options.cwd)}catch{}let h;try{h=i.sync(o.command,{path:c[n({env:c})],pathExt:u?r.delimiter:void 0})}catch{}finally{f&&process.chdir(p)}return h&&(h=r.resolve(l?o.options.cwd:"",h)),h}function s(o){return a(o)||a(o,!0)}e.exports=s}),uc=N((t,e)=>{"use strict";R();var r=/([()\][%!^"`<>&|;, *?])/g;function i(a){return a=a.replace(r,"^$1"),a}function n(a,s){return a=`${a}`,a=a.replace(/(\\*)"/g,'$1$1\\"'),a=a.replace(/(\\*)$/,"$1$1"),a=`"${a}"`,a=a.replace(r,"^$1"),s&&(a=a.replace(r,"^$1")),a}e.exports.command=i,e.exports.argument=n}),sc=N((t,e)=>{"use strict";R(),e.exports=/^#!(.*)/}),ac=N((t,e)=>{"use strict";R();var r=sc();e.exports=(i="")=>{let n=i.match(r);if(!n)return null;let[a,s]=n[0].replace(/#! ?/,"").split(" "),o=a.split("/").pop();return o==="env"?s:s?`${o} ${s}`:o}}),cc=N((t,e)=>{"use strict";R();var r=G("fs"),i=ac();function n(a){let s=Buffer.alloc(150),o;try{o=r.openSync(a,"r"),r.readSync(o,s,0,150,0),r.closeSync(o)}catch{}return i(s.toString())}e.exports=n}),lc=N((t,e)=>{"use strict";R();var r=G("path"),i=oc(),n=uc(),a=cc(),s=process.platform==="win32",o=/\.(?:com|exe)$/i,u=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c(f){f.file=i(f);let h=f.file&&a(f.file);return h?(f.args.unshift(f.file),f.command=h,i(f)):f.file}function p(f){if(!s)return f;let h=c(f),y=!o.test(h);if(f.options.forceShell||y){let v=u.test(h);f.command=r.normalize(f.command),f.command=n.command(f.command),f.args=f.args.map(A=>n.argument(A,v));let E=[f.command].concat(f.args).join(" ");f.args=["/d","/s","/c",`"${E}"`],f.command=process.env.comspec||"cmd.exe",f.options.windowsVerbatimArguments=!0}return f}function l(f,h,y){h&&!Array.isArray(h)&&(y=h,h=null),h=h?h.slice(0):[],y=Object.assign({},y);let v={command:f,args:h,options:y,file:void 0,original:{command:f,args:h}};return y.shell?v:p(v)}e.exports=l}),pc=N((t,e)=>{"use strict";R();var r=process.platform==="win32";function i(o,u){return Object.assign(new Error(`${u} ${o.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${u} ${o.command}`,path:o.command,spawnargs:o.args})}function n(o,u){if(!r)return;let c=o.emit;o.emit=function(p,l){if(p==="exit"){let f=a(l,u,"spawn");if(f)return c.call(o,"error",f)}return c.apply(o,arguments)}}function a(o,u){return r&&o===1&&!u.file?i(u.original,"spawn"):null}function s(o,u){return r&&o===1&&!u.file?i(u.original,"spawnSync"):null}e.exports={hookChildProcess:n,verifyENOENT:a,verifyENOENTSync:s,notFoundError:i}}),fc=N((t,e)=>{"use strict";R();var r=G("child_process"),i=lc(),n=pc();function a(o,u,c){let p=i(o,u,c),l=r.spawn(p.command,p.args,p.options);return n.hookChildProcess(l,p),l}function s(o,u,c){let p=i(o,u,c),l=r.spawnSync(p.command,p.args,p.options);return l.error=l.error||n.verifyENOENTSync(l.status,p),l}e.exports=a,e.exports.spawn=a,e.exports.sync=s,e.exports._parse=i,e.exports._enoent=n}),dc=N((t,e)=>{"use strict";R(),e.exports=r=>{let i=typeof r=="string"?`
|
53
|
+
`:`
|
54
|
+
`.charCodeAt(),n=typeof r=="string"?"\r":"\r".charCodeAt();return r[r.length-1]===i&&(r=r.slice(0,r.length-1)),r[r.length-1]===n&&(r=r.slice(0,r.length-1)),r}}),hc=N((t,e)=>{"use strict";R();var r=G("path"),i=Qn(),n=a=>{a={cwd:process.cwd(),path:process.env[i()],execPath:process.execPath,...a};let s,o=r.resolve(a.cwd),u=[];for(;s!==o;)u.push(r.join(o,"node_modules/.bin")),s=o,o=r.resolve(o,"..");let c=r.resolve(a.cwd,a.execPath,"..");return u.push(c),u.concat(a.path).join(r.delimiter)};e.exports=n,e.exports.default=n,e.exports.env=a=>{a={env:process.env,...a};let s={...a.env},o=i({env:s});return a.path=s[o],s[o]=e.exports(a),s}}),mc=N((t,e)=>{"use strict";R();var r=(i,n)=>{for(let a of Reflect.ownKeys(n))Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(n,a));return i};e.exports=r,e.exports.default=r}),yc=N((t,e)=>{"use strict";R();var r=mc(),i=new WeakMap,n=(a,s={})=>{if(typeof a!="function")throw new TypeError("Expected a function");let o,u=0,c=a.displayName||a.name||"<anonymous>",p=function(...l){if(i.set(p,++u),u===1)o=a.apply(this,l),a=null;else if(s.throw===!0)throw new Error(`Function \`${c}\` can only be called once`);return o};return r(p,a),i.set(p,u),p};e.exports=n,e.exports.default=n,e.exports.callCount=a=>{if(!i.has(a))throw new Error(`The given function \`${a.name}\` is not wrapped by the \`onetime\` package`);return i.get(a)}}),Dc=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGNALS=void 0;var e=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];t.SIGNALS=e}),Xn=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGRTMAX=t.getRealtimeSignals=void 0;var e=function(){let a=n-i+1;return Array.from({length:a},r)};t.getRealtimeSignals=e;var r=function(a,s){return{name:`SIGRT${s+1}`,number:i+s,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},i=34,n=64;t.SIGRTMAX=n}),gc=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.getSignals=void 0;var e=G("os"),r=Dc(),i=Xn(),n=function(){let s=(0,i.getRealtimeSignals)();return[...r.SIGNALS,...s].map(a)};t.getSignals=n;var a=function({name:s,number:o,description:u,action:c,forced:p=!1,standard:l}){let{signals:{[s]:f}}=e.constants,h=f!==void 0;return{name:s,number:h?f:o,description:u,supported:h,action:c,forced:p,standard:l}}}),Ec=N(t=>{"use strict";R(),Object.defineProperty(t,"__esModule",{value:!0}),t.signalsByNumber=t.signalsByName=void 0;var e=G("os"),r=gc(),i=Xn(),n=function(){return(0,r.getSignals)().reduce(a,{})},a=function(l,{name:f,number:h,description:y,supported:v,action:E,forced:A,standard:d}){return{...l,[f]:{name:f,number:h,description:y,supported:v,action:E,forced:A,standard:d}}},s=n();t.signalsByName=s;var o=function(){let l=(0,r.getSignals)(),f=i.SIGRTMAX+1,h=Array.from({length:f},(y,v)=>u(v,l));return Object.assign({},...h)},u=function(l,f){let h=c(l,f);if(h===void 0)return{};let{name:y,description:v,supported:E,action:A,forced:d,standard:D}=h;return{[l]:{name:y,number:l,description:v,supported:E,action:A,forced:d,standard:D}}},c=function(l,f){let h=f.find(({name:y})=>e.constants.signals[y]===l);return h!==void 0?h:f.find(y=>y.number===l)},p=o();t.signalsByNumber=p}),vc=N((t,e)=>{"use strict";R();var{signalsByName:r}=Ec(),i=({timedOut:a,timeout:s,errorCode:o,signal:u,signalDescription:c,exitCode:p,isCanceled:l})=>a?`timed out after ${s} milliseconds`:l?"was canceled":o!==void 0?`failed with ${o}`:u!==void 0?`was killed with ${u} (${c})`:p!==void 0?`failed with exit code ${p}`:"failed",n=({stdout:a,stderr:s,all:o,error:u,signal:c,exitCode:p,command:l,escapedCommand:f,timedOut:h,isCanceled:y,killed:v,parsed:{options:{timeout:E}}})=>{p=p===null?void 0:p,c=c===null?void 0:c;let A=c===void 0?void 0:r[c].description,d=u&&u.code,D=`Command ${i({timedOut:h,timeout:E,errorCode:d,signal:c,signalDescription:A,exitCode:p,isCanceled:y})}: ${l}`,g=Object.prototype.toString.call(u)==="[object Error]",m=g?`${D}
|
55
|
+
${u.message}`:D,C=[m,s,a].filter(Boolean).join(`
|
56
|
+
`);return g?(u.originalMessage=u.message,u.message=C):u=new Error(C),u.shortMessage=m,u.command=l,u.escapedCommand=f,u.exitCode=p,u.signal=c,u.signalDescription=A,u.stdout=a,u.stderr=s,o!==void 0&&(u.all=o),"bufferedData"in u&&delete u.bufferedData,u.failed=!0,u.timedOut=Boolean(h),u.isCanceled=y,u.killed=v&&!h,u};e.exports=n}),Ac=N((t,e)=>{"use strict";R();var r=["stdin","stdout","stderr"],i=a=>r.some(s=>a[s]!==void 0),n=a=>{if(!a)return;let{stdio:s}=a;if(s===void 0)return r.map(u=>a[u]);if(i(a))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(u=>`\`${u}\``).join(", ")}`);if(typeof s=="string")return s;if(!Array.isArray(s))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof s}\``);let o=Math.max(s.length,r.length);return Array.from({length:o},(u,c)=>s[c])};e.exports=n,e.exports.node=a=>{let s=n(a);return s==="ipc"?"ipc":s===void 0||typeof s=="string"?[s,s,s,"ipc"]:s.includes("ipc")?s:[...s,"ipc"]}}),Cc=N((t,e)=>{R(),e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),bc=N((t,e)=>{R();var r=global.process,i=function(d){return d&&typeof d=="object"&&typeof d.removeListener=="function"&&typeof d.emit=="function"&&typeof d.reallyExit=="function"&&typeof d.listeners=="function"&&typeof d.kill=="function"&&typeof d.pid=="number"&&typeof d.on=="function"};i(r)?(n=G("assert"),a=Cc(),s=/^win/i.test(r.platform),o=G("events"),typeof o!="function"&&(o=o.EventEmitter),r.__signal_exit_emitter__?u=r.__signal_exit_emitter__:(u=r.__signal_exit_emitter__=new o,u.count=0,u.emitted={}),u.infinite||(u.setMaxListeners(1/0),u.infinite=!0),e.exports=function(d,D){if(!i(global.process))return function(){};n.equal(typeof d,"function","a callback must be provided for exit handler"),f===!1&&h();var g="exit";D&&D.alwaysLast&&(g="afterexit");var m=function(){u.removeListener(g,d),u.listeners("exit").length===0&&u.listeners("afterexit").length===0&&c()};return u.on(g,d),m},c=function(){!f||!i(global.process)||(f=!1,a.forEach(function(d){try{r.removeListener(d,l[d])}catch{}}),r.emit=E,r.reallyExit=y,u.count-=1)},e.exports.unload=c,p=function(d,D,g){u.emitted[d]||(u.emitted[d]=!0,u.emit(d,D,g))},l={},a.forEach(function(d){l[d]=function(){if(i(global.process)){var D=r.listeners(d);D.length===u.count&&(c(),p("exit",null,d),p("afterexit",null,d),s&&d==="SIGHUP"&&(d="SIGINT"),r.kill(r.pid,d))}}}),e.exports.signals=function(){return a},f=!1,h=function(){f||!i(global.process)||(f=!0,u.count+=1,a=a.filter(function(d){try{return r.on(d,l[d]),!0}catch{return!1}}),r.emit=A,r.reallyExit=v)},e.exports.load=h,y=r.reallyExit,v=function(d){!i(global.process)||(r.exitCode=d||0,p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),y.call(r,r.exitCode))},E=r.emit,A=function(d,D){if(d==="exit"&&i(global.process)){D!==void 0&&(r.exitCode=D);var g=E.apply(this,arguments);return p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),g}else return E.apply(this,arguments)}):e.exports=function(){return function(){}};var n,a,s,o,u,c,p,l,f,h,y,v,E,A}),Sc=N((t,e)=>{"use strict";R();var r=G("os"),i=bc(),n=1e3*5,a=(v,E="SIGTERM",A={})=>{let d=v(E);return s(v,E,A,d),d},s=(v,E,A,d)=>{if(!o(E,A,d))return;let D=c(A),g=setTimeout(()=>{v("SIGKILL")},D);g.unref&&g.unref()},o=(v,{forceKillAfterTimeout:E},A)=>u(v)&&E!==!1&&A,u=v=>v===r.constants.signals.SIGTERM||typeof v=="string"&&v.toUpperCase()==="SIGTERM",c=({forceKillAfterTimeout:v=!0})=>{if(v===!0)return n;if(!Number.isFinite(v)||v<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${v}\` (${typeof v})`);return v},p=(v,E)=>{v.kill()&&(E.isCanceled=!0)},l=(v,E,A)=>{v.kill(E),A(Object.assign(new Error("Timed out"),{timedOut:!0,signal:E}))},f=(v,{timeout:E,killSignal:A="SIGTERM"},d)=>{if(E===0||E===void 0)return d;let D,g=new Promise((C,b)=>{D=setTimeout(()=>{l(v,A,b)},E)}),m=d.finally(()=>{clearTimeout(D)});return Promise.race([g,m])},h=({timeout:v})=>{if(v!==void 0&&(!Number.isFinite(v)||v<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${v}\` (${typeof v})`)},y=async(v,{cleanup:E,detached:A},d)=>{if(!E||A)return d;let D=i(()=>{v.kill()});return d.finally(()=>{D()})};e.exports={spawnedKill:a,spawnedCancel:p,setupTimeout:f,validateTimeout:h,setExitHandler:y}}),Fc=N((t,e)=>{"use strict";R();var r=i=>i!==null&&typeof i=="object"&&typeof i.pipe=="function";r.writable=i=>r(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object",r.readable=i=>r(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object",r.duplex=i=>r.writable(i)&&r.readable(i),r.transform=i=>r.duplex(i)&&typeof i._transform=="function",e.exports=r}),_c=N((t,e)=>{"use strict";R();var{PassThrough:r}=G("stream");e.exports=i=>{i={...i};let{array:n}=i,{encoding:a}=i,s=a==="buffer",o=!1;n?o=!(a||s):a=a||"utf8",s&&(a=null);let u=new r({objectMode:o});a&&u.setEncoding(a);let c=0,p=[];return u.on("data",l=>{p.push(l),o?c=p.length:c+=l.length}),u.getBufferedValue=()=>n?p:s?Buffer.concat(p,c):p.join(""),u.getBufferedLength=()=>c,u}}),wc=N((t,e)=>{"use strict";R();var{constants:r}=G("buffer"),i=G("stream"),{promisify:n}=G("util"),a=_c(),s=n(i.pipeline),o=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function u(c,p){if(!c)throw new Error("Expected a stream");p={maxBuffer:1/0,...p};let{maxBuffer:l}=p,f=a(p);return await new Promise((h,y)=>{let v=E=>{E&&f.getBufferedLength()<=r.MAX_LENGTH&&(E.bufferedData=f.getBufferedValue()),y(E)};(async()=>{try{await s(c,f),h()}catch(E){v(E)}})(),f.on("data",()=>{f.getBufferedLength()>l&&v(new o)})}),f.getBufferedValue()}e.exports=u,e.exports.buffer=(c,p)=>u(c,{...p,encoding:"buffer"}),e.exports.array=(c,p)=>u(c,{...p,array:!0}),e.exports.MaxBufferError=o}),xc=N((t,e)=>{"use strict";R();var{PassThrough:r}=G("stream");e.exports=function(){var i=[],n=new r({objectMode:!0});return n.setMaxListeners(0),n.add=a,n.isEmpty=s,n.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(a),n;function a(u){return Array.isArray(u)?(u.forEach(a),this):(i.push(u),u.once("end",o.bind(null,u)),u.once("error",n.emit.bind(n,"error")),u.pipe(n,{end:!1}),this)}function s(){return i.length==0}function o(u){i=i.filter(function(c){return c!==u}),!i.length&&n.readable&&n.end()}}}),kc=N((t,e)=>{"use strict";R();var r=Fc(),i=wc(),n=xc(),a=(l,f)=>{f===void 0||l.stdin===void 0||(r(f)?f.pipe(l.stdin):l.stdin.end(f))},s=(l,{all:f})=>{if(!f||!l.stdout&&!l.stderr)return;let h=n();return l.stdout&&h.add(l.stdout),l.stderr&&h.add(l.stderr),h},o=async(l,f)=>{if(l){l.destroy();try{return await f}catch(h){return h.bufferedData}}},u=(l,{encoding:f,buffer:h,maxBuffer:y})=>{if(!(!l||!h))return f?i(l,{encoding:f,maxBuffer:y}):i.buffer(l,{maxBuffer:y})},c=async({stdout:l,stderr:f,all:h},{encoding:y,buffer:v,maxBuffer:E},A)=>{let d=u(l,{encoding:y,buffer:v,maxBuffer:E}),D=u(f,{encoding:y,buffer:v,maxBuffer:E}),g=u(h,{encoding:y,buffer:v,maxBuffer:E*2});try{return await Promise.all([A,d,D,g])}catch(m){return Promise.all([{error:m,signal:m.signal,timedOut:m.timedOut},o(l,d),o(f,D),o(h,g)])}},p=({input:l})=>{if(r(l))throw new TypeError("The `input` option cannot be a stream in sync mode")};e.exports={handleInput:a,makeAllStream:s,getSpawnedResult:c,validateInputSync:p}}),Bc=N((t,e)=>{"use strict";R();var r=(async()=>{})().constructor.prototype,i=["then","catch","finally"].map(s=>[s,Reflect.getOwnPropertyDescriptor(r,s)]),n=(s,o)=>{for(let[u,c]of i){let p=typeof o=="function"?(...l)=>Reflect.apply(c.value,o(),l):c.value.bind(o);Reflect.defineProperty(s,u,{...c,value:p})}return s},a=s=>new Promise((o,u)=>{s.on("exit",(c,p)=>{o({exitCode:c,signal:p})}),s.on("error",c=>{u(c)}),s.stdin&&s.stdin.on("error",c=>{u(c)})});e.exports={mergePromise:n,getSpawnedPromise:a}}),Oc=N((t,e)=>{"use strict";R();var r=(p,l=[])=>Array.isArray(l)?[p,...l]:[p],i=/^[\w.-]+$/,n=/"/g,a=p=>typeof p!="string"||i.test(p)?p:`"${p.replace(n,'\\"')}"`,s=(p,l)=>r(p,l).join(" "),o=(p,l)=>r(p,l).map(f=>a(f)).join(" "),u=/ +/g,c=p=>{let l=[];for(let f of p.trim().split(u)){let h=l[l.length-1];h&&h.endsWith("\\")?l[l.length-1]=`${h.slice(0,-1)} ${f}`:l.push(f)}return l};e.exports={joinCommand:s,getEscapedCommand:o,parseCommand:c}}),Rc=N((t,e)=>{"use strict";R();var r=G("path"),i=G("child_process"),n=fc(),a=dc(),s=hc(),o=yc(),u=vc(),c=Ac(),{spawnedKill:p,spawnedCancel:l,setupTimeout:f,validateTimeout:h,setExitHandler:y}=Sc(),{handleInput:v,getSpawnedResult:E,makeAllStream:A,validateInputSync:d}=kc(),{mergePromise:D,getSpawnedPromise:g}=Bc(),{joinCommand:m,parseCommand:C,getEscapedCommand:b}=Oc(),x=1e3*1e3*100,S=({env:j,extendEnv:_,preferLocal:F,localDir:w,execPath:O})=>{let I=_?{...process.env,...j}:j;return F?s.env({env:I,cwd:w,execPath:O}):I},B=(j,_,F={})=>{let w=n._parse(j,_,F);return j=w.command,_=w.args,F=w.options,F={maxBuffer:x,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:F.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...F},F.env=S(F),F.stdio=c(F),process.platform==="win32"&&r.basename(j,".exe")==="cmd"&&_.unshift("/q"),{file:j,args:_,options:F,parsed:w}},k=(j,_,F)=>typeof _!="string"&&!Buffer.isBuffer(_)?F===void 0?void 0:"":j.stripFinalNewline?a(_):_,T=(j,_,F)=>{let w=B(j,_,F),O=m(j,_),I=b(j,_);h(w.options);let L;try{L=i.spawn(w.file,w.args,w.options)}catch(ct){let pt=new i.ChildProcess,P=Promise.reject(u({error:ct,stdout:"",stderr:"",all:"",command:O,escapedCommand:I,parsed:w,timedOut:!1,isCanceled:!1,killed:!1}));return D(pt,P)}let U=g(L),Q=f(L,w.options,U),tt=y(L,w.options,Q),$={isCanceled:!1};L.kill=p.bind(null,L.kill.bind(L)),L.cancel=l.bind(null,L,$);let st=o(async()=>{let[{error:ct,exitCode:pt,signal:P,timedOut:M},V,q,at]=await E(L,w.options,tt),ot=k(w.options,V),J=k(w.options,q),Z=k(w.options,at);if(ct||pt!==0||P!==null){let ut=u({error:ct,exitCode:pt,signal:P,stdout:ot,stderr:J,all:Z,command:O,escapedCommand:I,parsed:w,timedOut:M,isCanceled:$.isCanceled,killed:L.killed});if(!w.options.reject)return ut;throw ut}return{command:O,escapedCommand:I,exitCode:0,stdout:ot,stderr:J,all:Z,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return v(L,w.options.input),L.all=A(L,w.options),D(L,st)};e.exports=T,e.exports.sync=(j,_,F)=>{let w=B(j,_,F),O=m(j,_),I=b(j,_);d(w.options);let L;try{L=i.spawnSync(w.file,w.args,w.options)}catch(tt){throw u({error:tt,stdout:"",stderr:"",all:"",command:O,escapedCommand:I,parsed:w,timedOut:!1,isCanceled:!1,killed:!1})}let U=k(w.options,L.stdout,L.error),Q=k(w.options,L.stderr,L.error);if(L.error||L.status!==0||L.signal!==null){let tt=u({stdout:U,stderr:Q,error:L.error,signal:L.signal,exitCode:L.status,command:O,escapedCommand:I,parsed:w,timedOut:L.error&&L.error.code==="ETIMEDOUT",isCanceled:!1,killed:L.signal!==null});if(!w.options.reject)return tt;throw tt}return{command:O,escapedCommand:I,exitCode:0,stdout:U,stderr:Q,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},e.exports.command=(j,_)=>{let[F,...w]=C(j);return T(F,w,_)},e.exports.commandSync=(j,_)=>{let[F,...w]=C(j);return T.sync(F,w,_)},e.exports.node=(j,_,F={})=>{_&&!Array.isArray(_)&&typeof _=="object"&&(F=_,_=[]);let w=c.node(F),O=process.execArgv.filter(U=>!U.startsWith("--inspect")),{nodePath:I=process.execPath,nodeOptions:L=O}=F;return T(I,[...L,j,...Array.isArray(_)?_:[]],{...F,stdin:void 0,stdout:void 0,stderr:void 0,stdio:w,shell:!1})}});R();var kl=Ht(Rc());R();var me=kt(require("chalk"));var Te=kt(require("chalk")),Pe=require("diff"),de=kt(require("fs-extra")),Jn=kt(require("os")),Ar=kt(require("path")),he=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{Ar.default.extname(e.filePath)===".json"?this.before=de.default.readJsonSync(e.filePath):this.before=de.default.readFileSync(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,Pe.diffJson)(this.before,e.after):this.changes=(0,Pe.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Ar.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?de.default.writeJsonSync(this.filePath,this.after,{spaces:2}):de.default.writeFileSync(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write(Te.default.green(r.value)):r.removed?process.stdout.write(Te.default.red(r.value)):process.stdout.write(Te.default.dim(r.value))}),console.log(Jn.default.EOL)):console.log(this.after)}};var Pt=kt(require("chalk")),Jt=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}modified(...e){console.log(Pt.default.green(" MODIFIED "),...e,this.dry?Pt.default.dim("(dry run)"):"")}unchanged(...e){console.log(Pt.default.gray(" UNCHANGED "),...e,this.dry?Pt.default.dim("(dry run)"):"")}skipped(...e){console.log(Pt.default.yellow(" SKIPPED "),...e,this.dry?Pt.default.dim("(dry run)"):"")}error(...e){console.log(Pt.default.red(" ERROR "),...e,this.dry?Pt.default.dim("(dry run)"):"")}info(...e){console.log(Pt.default.bold(" INFO "),...e,this.dry?Pt.default.dim("(dry run)"):"")}};var Cr=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new Jt(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new he({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],a={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)a.action="skipped",this.logger.skipped(me.default.dim(n.fileName()));else try{n.write(),a.action="modified",this.logger.modified(me.default.bold(n.fileName()))}catch(s){let o="Unknown error";s instanceof Error&&(o=s.message),a.error=new Error(o),a.action="error",this.logger.error(n.fileName(),o)}this.print&&n.log({diff:!0})}else this.logger.unchanged(me.default.dim(n.fileName()));e.changes[n.fileName()]=a}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(console.log(),r.length>0){console.log(me.default.bold("Results:"));let i={};r.forEach(n=>{var s;let a=e.changes[n];i[n]={action:a.action,additions:a.additions,deletions:a.deletions,error:((s=a.error)==null?void 0:s.message)||"None"}}),console.table(i),console.log()}}},br=Cr;function Sr({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new Jt(i),a=new br(i);return{log:n,runner:a}}var Tc=["dist/**","build/**"],_r="set-default-outputs",Pc='Add the "outputs" key with defaults where it is missing in `turbo.json`',Nc="1.7.0";function Zn(t){for(let[e,r]of Object.entries(t.pipeline))r.cache!==!1&&(r.outputs?Array.isArray(r.outputs)&&r.outputs.length===0&&delete r.outputs:r.outputs=Tc);return t}function zn({root:t,options:e}){let{log:r,runner:i}=Sr({transformer:_r,rootPath:t,options:e}),n=Fr.default.join(t,"package.json"),a={};try{a=Ne.default.readJSONSync(n)}catch{}if("turbo"in a)return i.abortTransform({reason:'"turbo" key detected in package.json. Run `npx @turbo/codemod transform create-turbo-config` first'});r.info("Adding default `outputs` key into tasks if it doesn't exist");let s=Fr.default.join(t,"turbo.json");if(!Ne.default.existsSync(s))return i.abortTransform({reason:`No turbo.json found at ${t}. Is the path correct?`});let o=Ne.default.readJsonSync(s);return i.modifyFile({filePath:s,after:Zn(o)}),vr(t).forEach(c=>{let{config:p,turboConfigPath:l}=c;i.modifyFile({filePath:l,after:Zn(p)})}),i.finish()}var Ic={name:`${_r}: ${Pc}`,value:_r,introducedIn:Nc,transformer:zn},Lc=Ic;0&&(module.exports={transformer});
|
57
|
+
/*!
|
58
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
59
|
+
*
|
60
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
61
|
+
* Licensed under the MIT License.
|
62
|
+
*/
|
63
|
+
/*!
|
64
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
65
|
+
*
|
66
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
67
|
+
* Licensed under the MIT License.
|
68
|
+
*/
|
69
|
+
/*!
|
70
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
71
|
+
*
|
72
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
73
|
+
* Released under the MIT License.
|
74
|
+
*/
|
75
|
+
/*!
|
76
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
77
|
+
*
|
78
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
79
|
+
* Released under the MIT License.
|
80
|
+
*/
|
81
|
+
/*!
|
82
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
83
|
+
*
|
84
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
85
|
+
* Released under the MIT License.
|
86
|
+
*/
|
87
|
+
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
88
|
+
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
89
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
90
|
+
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|