From ab247ebf6b9fdbdafd2eb5ecbede61340cf55794 Mon Sep 17 00:00:00 2001 From: Felix Haus Date: Mon, 15 Mar 2021 17:25:48 +0100 Subject: [PATCH] Fix: Push release branch back to origin --- dist/index.js | 2 +- src/index.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index c3bc800..8bc6cba 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1 @@ -module.exports=(()=>{var t={7351:function(t,e,r){"use strict";var n=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(Object.hasOwnProperty.call(t,r))e[r]=t[r];e["default"]=t;return e};Object.defineProperty(e,"__esModule",{value:true});const s=n(r(2087));const i=r(5278);function issueCommand(t,e,r){const n=new Command(t,e,r);process.stdout.write(n.toString()+s.EOL)}e.issueCommand=issueCommand;function issue(t,e=""){issueCommand(t,{},e)}e.issue=issue;const o="::";class Command{constructor(t,e,r){if(!t){t="missing.command"}this.command=t;this.properties=e;this.message=r}toString(){let t=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(e){e=false}else{t+=","}t+=`${r}=${escapeProperty(n)}`}}}}t+=`${o}${escapeData(this.message)}`;return t}}function escapeData(t){return i.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(t){return i.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){function adopt(t){return t instanceof r?t:new r(function(e){e(t)})}return new(r||(r=Promise))(function(r,s){function fulfilled(t){try{step(n.next(t))}catch(t){s(t)}}function rejected(t){try{step(n["throw"](t))}catch(t){s(t)}}function step(t){t.done?r(t.value):adopt(t.value).then(fulfilled,rejected)}step((n=n.apply(t,e||[])).next())})};var s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(Object.hasOwnProperty.call(t,r))e[r]=t[r];e["default"]=t;return e};Object.defineProperty(e,"__esModule",{value:true});const i=r(7351);const o=r(717);const a=r(5278);const c=s(r(2087));const u=s(r(5622));var l;(function(t){t[t["Success"]=0]="Success";t[t["Failure"]=1]="Failure"})(l=e.ExitCode||(e.ExitCode={}));function exportVariable(t,e){const r=a.toCommandValue(e);process.env[t]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const e="_GitHubActionsFileCommandDelimeter_";const n=`${t}<<${e}${c.EOL}${r}${c.EOL}${e}`;o.issueCommand("ENV",n)}else{i.issueCommand("set-env",{name:t},r)}}e.exportVariable=exportVariable;function setSecret(t){i.issueCommand("add-mask",{},t)}e.setSecret=setSecret;function addPath(t){const e=process.env["GITHUB_PATH"]||"";if(e){o.issueCommand("PATH",t)}else{i.issueCommand("add-path",{},t)}process.env["PATH"]=`${t}${u.delimiter}${process.env["PATH"]}`}e.addPath=addPath;function getInput(t,e){const r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r){throw new Error(`Input required and not supplied: ${t}`)}return r.trim()}e.getInput=getInput;function setOutput(t,e){i.issueCommand("set-output",{name:t},e)}e.setOutput=setOutput;function setCommandEcho(t){i.issue("echo",t?"on":"off")}e.setCommandEcho=setCommandEcho;function setFailed(t){process.exitCode=l.Failure;error(t)}e.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}e.isDebug=isDebug;function debug(t){i.issueCommand("debug",{},t)}e.debug=debug;function error(t){i.issue("error",t instanceof Error?t.toString():t)}e.error=error;function warning(t){i.issue("warning",t instanceof Error?t.toString():t)}e.warning=warning;function info(t){process.stdout.write(t+c.EOL)}e.info=info;function startGroup(t){i.issue("group",t)}e.startGroup=startGroup;function endGroup(){i.issue("endgroup")}e.endGroup=endGroup;function group(t,e){return n(this,void 0,void 0,function*(){startGroup(t);let r;try{r=yield e()}finally{endGroup()}return r})}e.group=group;function saveState(t,e){i.issueCommand("save-state",{name:t},e)}e.saveState=saveState;function getState(t){return process.env[`STATE_${t}`]||""}e.getState=getState},717:function(t,e,r){"use strict";var n=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(Object.hasOwnProperty.call(t,r))e[r]=t[r];e["default"]=t;return e};Object.defineProperty(e,"__esModule",{value:true});const s=n(r(5747));const i=n(r(2087));const o=r(5278);function issueCommand(t,e){const r=process.env[`GITHUB_${t}`];if(!r){throw new Error(`Unable to find environment variable for file command ${t}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${o.toCommandValue(e)}${i.EOL}`,{encoding:"utf8"})}e.issueCommand=issueCommand},5278:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});function toCommandValue(t){if(t===null||t===undefined){return""}else if(typeof t==="string"||t instanceof String){return t}return JSON.stringify(t)}e.toCommandValue=toCommandValue},4751:(t,e,r)=>{"use strict";function __export(t){for(var r in t)if(!e.hasOwnProperty(r))e[r]=t[r]}Object.defineProperty(e,"__esModule",{value:true});__export(r(2825))},2825:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const s=r(5747);const i=n(r(8231));const o=i.default("@kwsites/file-exists");function check(t,e,r){o(`checking %s`,t);try{const n=s.statSync(t);if(n.isFile()&&e){o(`[OK] path represents a file`);return true}if(n.isDirectory()&&r){o(`[OK] path represents a directory`);return true}o(`[FAIL] path represents something other than a file or directory`);return false}catch(t){if(t.code==="ENOENT"){o(`[FAIL] path is not accessible: %o`,t);return false}o(`[FATAL] %o`,t);throw t}}function exists(t,r=e.READABLE){return check(t,(r&e.FILE)>0,(r&e.FOLDER)>0)}e.exists=exists;e.FILE=1;e.FOLDER=2;e.READABLE=e.FILE+e.FOLDER},9819:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createDeferred=e.deferred=void 0;function deferred(){let t;let e;let r="pending";const n=new Promise((r,n)=>{t=r;e=n});return{promise:n,done(e){if(r==="pending"){r="resolved";t(e)}},fail(t){if(r==="pending"){r="rejected";e(t)}},get fulfilled(){return r!=="pending"},get status(){return r}}}e.deferred=deferred;e.createDeferred=deferred;e.default=deferred},3803:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;const n=r(5747);e.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync,readdir:n.readdir,readdirSync:n.readdirSync};function createFileSystemAdapter(t){if(t===undefined){return e.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}e.createFileSystemAdapter=createFileSystemAdapter},8838:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const r=process.versions.node.split(".");const n=parseInt(r[0],10);const s=parseInt(r[1],10);const i=10;const o=10;const a=n>i;const c=n===i&&s>=o;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||c},5667:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.Settings=e.scandirSync=e.scandir=void 0;const n=r(4507);const s=r(9560);const i=r(8662);e.Settings=i.default;function scandir(t,e,r){if(typeof e==="function"){return n.read(t,getSettings(),e)}n.read(t,getSettings(e),r)}e.scandir=scandir;function scandirSync(t,e){const r=getSettings(e);return s.read(t,r)}e.scandirSync=scandirSync;function getSettings(t={}){if(t instanceof i.default){return t}return new i.default(t)}},4507:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.readdir=e.readdirWithFileTypes=e.read=void 0;const n=r(109);const s=r(5288);const i=r(8838);const o=r(6297);const a=r(3847);function read(t,e,r){if(!e.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,e,r)}return readdir(t,e,r)}e.read=read;function readdirWithFileTypes(t,e,r){e.fs.readdir(t,{withFileTypes:true},(n,i)=>{if(n!==null){return callFailureCallback(r,n)}const o=i.map(r=>({dirent:r,name:r.name,path:a.joinPathSegments(t,r.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){return callSuccessCallback(r,o)}const c=o.map(t=>makeRplTaskEntry(t,e));s(c,(t,e)=>{if(t!==null){return callFailureCallback(r,t)}callSuccessCallback(r,e)})})}e.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(t,e){return r=>{if(!t.dirent.isSymbolicLink()){return r(null,t)}e.fs.stat(t.path,(n,s)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){return r(n)}return r(null,t)}t.dirent=o.fs.createDirentFromStats(t.name,s);return r(null,t)})}}function readdir(t,e,r){e.fs.readdir(t,(i,c)=>{if(i!==null){return callFailureCallback(r,i)}const u=c.map(r=>a.joinPathSegments(t,r,e.pathSegmentSeparator));const l=u.map(t=>{return r=>n.stat(t,e.fsStatSettings,r)});s(l,(t,n)=>{if(t!==null){return callFailureCallback(r,t)}const s=[];c.forEach((t,r)=>{const i=n[r];const a={name:t,path:u[r],dirent:o.fs.createDirentFromStats(t,i)};if(e.stats){a.stats=i}s.push(a)});callSuccessCallback(r,s)})})}e.readdir=readdir;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},3847:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.joinPathSegments=void 0;function joinPathSegments(t,e,r){if(t.endsWith(r)){return t+e}return t+r+e}e.joinPathSegments=joinPathSegments},9560:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.readdir=e.readdirWithFileTypes=e.read=void 0;const n=r(109);const s=r(8838);const i=r(6297);const o=r(3847);function read(t,e){if(!e.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,e)}return readdir(t,e)}e.read=read;function readdirWithFileTypes(t,e){const r=e.fs.readdirSync(t,{withFileTypes:true});return r.map(r=>{const n={dirent:r,name:r.name,path:o.joinPathSegments(t,r.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks){try{const t=e.fs.statSync(n.path);n.dirent=i.fs.createDirentFromStats(n.name,t)}catch(t){if(e.throwErrorOnBrokenSymbolicLink){throw t}}}return n})}e.readdirWithFileTypes=readdirWithFileTypes;function readdir(t,e){const r=e.fs.readdirSync(t);return r.map(r=>{const s=o.joinPathSegments(t,r,e.pathSegmentSeparator);const a=n.statSync(s,e.fsStatSettings);const c={name:r,path:s,dirent:i.fs.createDirentFromStats(r,a)};if(e.stats){c.stats=a}return c})}e.readdir=readdir},8662:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5622);const s=r(109);const i=r(3803);class Settings{constructor(t={}){this._options=t;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=i.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,n.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new s.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t!==null&&t!==void 0?t:e}}e.default=Settings},883:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createDirentFromStats=void 0;class DirentFromStats{constructor(t,e){this.name=t;this.isBlockDevice=e.isBlockDevice.bind(e);this.isCharacterDevice=e.isCharacterDevice.bind(e);this.isDirectory=e.isDirectory.bind(e);this.isFIFO=e.isFIFO.bind(e);this.isFile=e.isFile.bind(e);this.isSocket=e.isSocket.bind(e);this.isSymbolicLink=e.isSymbolicLink.bind(e)}}function createDirentFromStats(t,e){return new DirentFromStats(t,e)}e.createDirentFromStats=createDirentFromStats},6297:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.fs=void 0;const n=r(883);e.fs=n},2987:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;const n=r(5747);e.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync};function createFileSystemAdapter(t){if(t===undefined){return e.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}e.createFileSystemAdapter=createFileSystemAdapter},109:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.statSync=e.stat=e.Settings=void 0;const n=r(4147);const s=r(4527);const i=r(2410);e.Settings=i.default;function stat(t,e,r){if(typeof e==="function"){return n.read(t,getSettings(),e)}n.read(t,getSettings(e),r)}e.stat=stat;function statSync(t,e){const r=getSettings(e);return s.read(t,r)}e.statSync=statSync;function getSettings(t={}){if(t instanceof i.default){return t}return new i.default(t)}},4147:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.read=void 0;function read(t,e,r){e.fs.lstat(t,(n,s)=>{if(n!==null){return callFailureCallback(r,n)}if(!s.isSymbolicLink()||!e.followSymbolicLink){return callSuccessCallback(r,s)}e.fs.stat(t,(t,n)=>{if(t!==null){if(e.throwErrorOnBrokenSymbolicLink){return callFailureCallback(r,t)}return callSuccessCallback(r,s)}if(e.markSymbolicLink){n.isSymbolicLink=(()=>true)}callSuccessCallback(r,n)})})}e.read=read;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},4527:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.read=void 0;function read(t,e){const r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink){return r}try{const n=e.fs.statSync(t);if(e.markSymbolicLink){n.isSymbolicLink=(()=>true)}return n}catch(t){if(!e.throwErrorOnBrokenSymbolicLink){return r}throw t}}e.read=read},2410:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2987);class Settings{constructor(t={}){this._options=t;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=n.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(t,e){return t!==null&&t!==void 0?t:e}}e.default=Settings},6026:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.Settings=e.walkStream=e.walkSync=e.walk=void 0;const n=r(7523);const s=r(6737);const i=r(3068);const o=r(141);e.Settings=o.default;function walk(t,e,r){if(typeof e==="function"){return new n.default(t,getSettings()).read(e)}new n.default(t,getSettings(e)).read(r)}e.walk=walk;function walkSync(t,e){const r=getSettings(e);const n=new i.default(t,r);return n.read()}e.walkSync=walkSync;function walkStream(t,e){const r=getSettings(e);const n=new s.default(t,r);return n.read()}e.walkStream=walkStream;function getSettings(t={}){if(t instanceof o.default){return t}return new o.default(t)}},7523:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5732);class AsyncProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new n.default(this._root,this._settings);this._storage=new Set}read(t){this._reader.onError(e=>{callFailureCallback(t,e)});this._reader.onEntry(t=>{this._storage.add(t)});this._reader.onEnd(()=>{callSuccessCallback(t,[...this._storage])});this._reader.read()}}e.default=AsyncProvider;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},6737:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2413);const s=r(5732);class StreamProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new s.default(this._root,this._settings);this._stream=new n.Readable({objectMode:true,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed){this._reader.destroy()}}})}read(){this._reader.onError(t=>{this._stream.emit("error",t)});this._reader.onEntry(t=>{this._stream.push(t)});this._reader.onEnd(()=>{this._stream.push(null)});this._reader.read();return this._stream}}e.default=StreamProvider},3068:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(3595);class SyncProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new n.default(this._root,this._settings)}read(){return this._reader.read()}}e.default=SyncProvider},5732:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(8614);const s=r(5667);const i=r(7340);const o=r(7988);const a=r(8311);class AsyncReader extends a.default{constructor(t,e){super(t,e);this._settings=e;this._scandir=s.scandir;this._emitter=new n.EventEmitter;this._queue=i(this._worker.bind(this),this._settings.concurrency);this._isFatalError=false;this._isDestroyed=false;this._queue.drain=(()=>{if(!this._isFatalError){this._emitter.emit("end")}})}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)});return this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,e){const r={directory:t,base:e};this._queue.push(r,t=>{if(t!==null){this._handleError(t)}})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(r,n)=>{if(r!==null){return e(r,undefined)}for(const e of n){this._handleEntry(e,t.base)}e(null,undefined)})}_handleError(t){if(this._isDestroyed||!o.isFatalError(this._settings,t)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",t)}_handleEntry(t,e){if(this._isDestroyed||this._isFatalError){return}const r=t.path;if(e!==undefined){t.path=o.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)}if(o.isAppliedFilter(this._settings.entryFilter,t)){this._emitEntry(t)}if(t.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(r,t.path)}}_emitEntry(t){this._emitter.emit("entry",t)}}e.default=AsyncReader},7988:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function isFatalError(t,e){if(t.errorFilter===null){return true}return!t.errorFilter(e)}e.isFatalError=isFatalError;function isAppliedFilter(t,e){return t===null||t(e)}e.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(t,e){return t.split(/[/\\]/).join(e)}e.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(t,e,r){if(t===""){return e}if(t.endsWith(r)){return t+e}return t+r+e}e.joinPathSegments=joinPathSegments},8311:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(7988);class Reader{constructor(t,e){this._root=t;this._settings=e;this._root=n.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}}e.default=Reader},3595:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5667);const s=r(7988);const i=r(8311);class SyncReader extends i.default{constructor(){super(...arguments);this._scandir=n.scandirSync;this._storage=new Set;this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return[...this._storage]}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(const t of this._queue.values()){this._handleDirectory(t.directory,t.base)}}_handleDirectory(t,e){try{const r=this._scandir(t,this._settings.fsScandirSettings);for(const t of r){this._handleEntry(t,e)}}catch(t){this._handleError(t)}}_handleError(t){if(!s.isFatalError(this._settings,t)){return}throw t}_handleEntry(t,e){const r=t.path;if(e!==undefined){t.path=s.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)}if(s.isAppliedFilter(this._settings.entryFilter,t)){this._pushToStorage(t)}if(t.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(r,t.path)}}_pushToStorage(t){this._storage.add(t)}}e.default=SyncReader},141:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5622);const s=r(5667);class Settings{constructor(t={}){this._options=t;this.basePath=this._getValue(this._options.basePath,undefined);this.concurrency=this._getValue(this._options.concurrency,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,n.sep);this.fsScandirSettings=new s.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t!==null&&t!==void 0?t:e}}e.default=Settings},9600:t=>{"use strict";t.exports=((...t)=>{return[...new Set([].concat(...t))]})},610:(t,e,r)=>{"use strict";const n=r(8750);const s=r(9434);const i=r(5873);const o=r(6477);const a=(t,e={})=>{let r=[];if(Array.isArray(t)){for(let n of t){let t=a.create(n,e);if(Array.isArray(t)){r.push(...t)}else{r.push(t)}}}else{r=[].concat(a.create(t,e))}if(e&&e.expand===true&&e.nodupes===true){r=[...new Set(r)]}return r};a.parse=((t,e={})=>o(t,e));a.stringify=((t,e={})=>{if(typeof t==="string"){return n(a.parse(t,e),e)}return n(t,e)});a.compile=((t,e={})=>{if(typeof t==="string"){t=a.parse(t,e)}return s(t,e)});a.expand=((t,e={})=>{if(typeof t==="string"){t=a.parse(t,e)}let r=i(t,e);if(e.noempty===true){r=r.filter(Boolean)}if(e.nodupes===true){r=[...new Set(r)]}return r});a.create=((t,e={})=>{if(t===""||t.length<3){return[t]}return e.expand!==true?a.compile(t,e):a.expand(t,e)});t.exports=a},9434:(t,e,r)=>{"use strict";const n=r(6330);const s=r(5207);const i=(t,e={})=>{let r=(t,i={})=>{let o=s.isInvalidBrace(i);let a=t.invalid===true&&e.escapeInvalid===true;let c=o===true||a===true;let u=e.escapeInvalid===true?"\\":"";let l="";if(t.isOpen===true){return u+t.value}if(t.isClose===true){return u+t.value}if(t.type==="open"){return c?u+t.value:"("}if(t.type==="close"){return c?u+t.value:")"}if(t.type==="comma"){return t.prev.type==="comma"?"":c?t.value:"|"}if(t.value){return t.value}if(t.nodes&&t.ranges>0){let r=s.reduce(t.nodes);let i=n(...r,{...e,wrap:false,toRegex:true});if(i.length!==0){return r.length>1&&i.length>1?`(${i})`:i}}if(t.nodes){for(let e of t.nodes){l+=r(e,t)}}return l};return r(t)};t.exports=i},8774:t=>{"use strict";t.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:"\n",CHAR_NO_BREAK_SPACE:" ",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:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},5873:(t,e,r)=>{"use strict";const n=r(6330);const s=r(8750);const i=r(5207);const o=(t="",e="",r=false)=>{let n=[];t=[].concat(t);e=[].concat(e);if(!e.length)return t;if(!t.length){return r?i.flatten(e).map(t=>`{${t}}`):e}for(let s of t){if(Array.isArray(s)){for(let t of s){n.push(o(t,e,r))}}else{for(let t of e){if(r===true&&typeof t==="string")t=`{${t}}`;n.push(Array.isArray(t)?o(s,t,r):s+t)}}}return i.flatten(n)};const a=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit;let a=(t,c={})=>{t.queue=[];let u=c;let l=c.queue;while(u.type!=="brace"&&u.type!=="root"&&u.parent){u=u.parent;l=u.queue}if(t.invalid||t.dollar){l.push(o(l.pop(),s(t,e)));return}if(t.type==="brace"&&t.invalid!==true&&t.nodes.length===2){l.push(o(l.pop(),["{}"]));return}if(t.nodes&&t.ranges>0){let a=i.reduce(t.nodes);if(i.exceedsLimit(...a,e.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let c=n(...a,e);if(c.length===0){c=s(t,e)}l.push(o(l.pop(),c));t.nodes=[];return}let f=i.encloseBrace(t);let p=t.queue;let d=t;while(d.type!=="brace"&&d.type!=="root"&&d.parent){d=d.parent;p=d.queue}for(let e=0;e{"use strict";const n=r(8750);const{MAX_LENGTH:s,CHAR_BACKSLASH:i,CHAR_BACKTICK:o,CHAR_COMMA:a,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:u,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_RIGHT_CURLY_BRACE:p,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=r(8774);const b=(t,e={})=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}let r=e||{};let b=typeof r.maxLength==="number"?Math.min(s,r.maxLength):s;if(t.length>b){throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${b})`)}let S={type:"root",input:t,nodes:[]};let E=[S];let v=S;let T=S;let R=0;let k=t.length;let P=0;let C=0;let A;let O={};const w=()=>t[P++];const x=t=>{if(t.type==="text"&&T.type==="dot"){T.type="text"}if(T&&T.type==="text"&&t.type==="text"){T.value+=t.value;return}v.nodes.push(t);t.parent=v;t.prev=T;T=t;return t};x({type:"bos"});while(P0){if(v.ranges>0){v.ranges=0;let t=v.nodes.shift();v.nodes=[t,{type:"text",value:n(v)}]}x({type:"comma",value:A});v.commas++;continue}if(A===c&&C>0&&v.commas===0){let t=v.nodes;if(C===0||t.length===0){x({type:"text",value:A});continue}if(T.type==="dot"){v.range=[];T.value+=A;T.type="range";if(v.nodes.length!==3&&v.nodes.length!==5){v.invalid=true;v.ranges=0;T.type="text";continue}v.ranges++;v.args=[];continue}if(T.type==="range"){t.pop();let e=t[t.length-1];e.value+=T.value+A;T=e;v.ranges--;continue}x({type:"dot",value:A});continue}x({type:"text",value:A})}do{v=E.pop();if(v.type!=="root"){v.nodes.forEach(t=>{if(!t.nodes){if(t.type==="open")t.isOpen=true;if(t.type==="close")t.isClose=true;if(!t.nodes)t.type="text";t.invalid=true}});let t=E[E.length-1];let e=t.nodes.indexOf(v);t.nodes.splice(e,1,...v.nodes)}}while(E.length>0);x({type:"eos"});return S};t.exports=b},8750:(t,e,r)=>{"use strict";const n=r(5207);t.exports=((t,e={})=>{let r=(t,s={})=>{let i=e.escapeInvalid&&n.isInvalidBrace(s);let o=t.invalid===true&&e.escapeInvalid===true;let a="";if(t.value){if((i||o)&&n.isOpenOrClose(t)){return"\\"+t.value}return t.value}if(t.value){return t.value}if(t.nodes){for(let e of t.nodes){a+=r(e)}}return a};return r(t)})},5207:(t,e)=>{"use strict";e.isInteger=(t=>{if(typeof t==="number"){return Number.isInteger(t)}if(typeof t==="string"&&t.trim()!==""){return Number.isInteger(Number(t))}return false});e.find=((t,e)=>t.nodes.find(t=>t.type===e));e.exceedsLimit=((t,r,n=1,s)=>{if(s===false)return false;if(!e.isInteger(t)||!e.isInteger(r))return false;return(Number(r)-Number(t))/Number(n)>=s});e.escapeNode=((t,e=0,r)=>{let n=t.nodes[e];if(!n)return;if(r&&n.type===r||n.type==="open"||n.type==="close"){if(n.escaped!==true){n.value="\\"+n.value;n.escaped=true}}});e.encloseBrace=(t=>{if(t.type!=="brace")return false;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}return false});e.isInvalidBrace=(t=>{if(t.type!=="brace")return false;if(t.invalid===true||t.dollar)return true;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}if(t.open!==true||t.close!==true){t.invalid=true;return true}return false});e.isOpenOrClose=(t=>{if(t.type==="open"||t.type==="close"){return true}return t.open===true||t.close===true});e.reduce=(t=>t.reduce((t,e)=>{if(e.type==="text")t.push(e.value);if(e.type==="range")e.type="text";return t},[]));e.flatten=((...t)=>{const e=[];const r=t=>{for(let n=0;n{e.formatArgs=formatArgs;e.save=save;e.load=load;e.useColors=useColors;e.storage=localstorage();e.destroy=(()=>{let t=false;return()=>{if(!t){t=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(e){e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0;let s=0;e[0].replace(/%[a-zA-Z%]/g,t=>{if(t==="%%"){return}n++;if(t==="%c"){s=n}});e.splice(s,0,r)}e.log=console.debug||console.log||(()=>{});function save(t){try{if(t){e.storage.setItem("debug",t)}else{e.storage.removeItem("debug")}}catch(t){}}function load(){let t;try{t=e.storage.getItem("debug")}catch(t){}if(!t&&typeof process!=="undefined"&&"env"in process){t=process.env.DEBUG}return t}function localstorage(){try{return localStorage}catch(t){}}t.exports=r(6243)(e);const{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},6243:(t,e,r)=>{function setup(t){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(900);createDebug.destroy=destroy;Object.keys(t).forEach(e=>{createDebug[e]=t[e]});createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(t){let e=0;for(let r=0;r{if(e==="%%"){return"%"}i++;const s=createDebug.formatters[n];if(typeof s==="function"){const n=t[i];e=s.call(r,n);t.splice(i,1);i--}return e});createDebug.formatArgs.call(r,t);const o=r.log||createDebug.log;o.apply(r,t)}debug.namespace=t;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(t);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;s=createDebug.enabled(t)}return s},set:t=>{r=t}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(t,e){const r=createDebug(this.namespace+(typeof e==="undefined"?":":e)+t);r.log=this.log;return r}function enable(t){createDebug.save(t);createDebug.namespaces=t;createDebug.names=[];createDebug.skips=[];let e;const r=(typeof t==="string"?t:"").split(/[\s,]+/);const n=r.length;for(e=0;e"-"+t)].join(",");createDebug.enable("");return t}function enabled(t){if(t[t.length-1]==="*"){return true}let e;let r;for(e=0,r=createDebug.skips.length;e{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){t.exports=r(8222)}else{t.exports=r(5332)}},5332:(t,e,r)=>{const n=r(3867);const s=r(1669);e.init=init;e.log=log;e.formatArgs=formatArgs;e.save=save;e.load=load;e.useColors=useColors;e.destroy=s.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");e.colors=[6,2,3,4,5,1];try{const t=r(9318);if(t&&(t.stderr||t).level>=2){e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(t){}e.inspectOpts=Object.keys(process.env).filter(t=>{return/^debug_/i.test(t)}).reduce((t,e)=>{const r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(t,e)=>{return e.toUpperCase()});let n=process.env[e];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}t[r]=n;return t},{});function useColors(){return"colors"in e.inspectOpts?Boolean(e.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(e){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const s="[3"+(n<8?n:"8;5;"+n);const i=` ${s};1m${r} `;e[0]=i+e[0].split("\n").join("\n"+i);e.push(s+"m+"+t.exports.humanize(this.diff)+"")}else{e[0]=getDate()+r+" "+e[0]}}function getDate(){if(e.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...t){return process.stderr.write(s.format(...t)+"\n")}function save(t){if(t){process.env.DEBUG=t}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(t){t.inspectOpts={};const r=Object.keys(e.inspectOpts);for(let n=0;nt.trim()).join(" ")};i.O=function(t){this.inspectOpts.colors=this.useColors;return s.inspect(t,this.inspectOpts)}},2738:(t,e,r)=>{"use strict";const n=r(5622);const s=r(3433);const i=t=>t.length>1?`{${t.join(",")}}`:t[0];const o=(t,e)=>{const r=t[0]==="!"?t.slice(1):t;return n.isAbsolute(r)?r:n.join(e,r)};const a=(t,e)=>{if(n.extname(t)){return`**/${t}`}return`**/${t}.${i(e)}`};const c=(t,e)=>{if(e.files&&!Array.isArray(e.files)){throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof e.files}\``)}if(e.extensions&&!Array.isArray(e.extensions)){throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof e.extensions}\``)}if(e.files&&e.extensions){return e.files.map(r=>n.posix.join(t,a(r,e.extensions)))}if(e.files){return e.files.map(e=>n.posix.join(t,`**/${e}`))}if(e.extensions){return[n.posix.join(t,`**/*.${i(e.extensions)}`)]}return[n.posix.join(t,"**")]};t.exports=(async(t,e)=>{e={cwd:process.cwd(),...e};if(typeof e.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``)}const r=await Promise.all([].concat(t).map(async t=>{const r=await s.isDirectory(o(t,e.cwd));return r?c(t,e):t}));return[].concat.apply([],r)});t.exports.sync=((t,e)=>{e={cwd:process.cwd(),...e};if(typeof e.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``)}const r=[].concat(t).map(t=>s.isDirectorySync(o(t,e.cwd))?c(t,e):t);return[].concat.apply([],r)})},3664:(t,e,r)=>{"use strict";const n=r(2708);const s=r(5679);const i=r(4630);const o=r(2405);const a=r(952);const c=r(5444);async function FastGlob(t,e){assertPatternsInput(t);const r=getWorks(t,s.default,e);const n=await Promise.all(r);return c.array.flatten(n)}(function(t){function sync(t,e){assertPatternsInput(t);const r=getWorks(t,o.default,e);return c.array.flatten(r)}t.sync=sync;function stream(t,e){assertPatternsInput(t);const r=getWorks(t,i.default,e);return c.stream.merge(r)}t.stream=stream;function generateTasks(t,e){assertPatternsInput(t);const r=[].concat(t);const s=new a.default(e);return n.generate(r,s)}t.generateTasks=generateTasks;function isDynamicPattern(t,e){assertPatternsInput(t);const r=new a.default(e);return c.pattern.isDynamicPattern(t,r)}t.isDynamicPattern=isDynamicPattern;function escapePath(t){assertPatternsInput(t);return c.path.escape(t)}t.escapePath=escapePath})(FastGlob||(FastGlob={}));function getWorks(t,e,r){const s=[].concat(t);const i=new a.default(r);const o=n.generate(s,i);const c=new e(i);return o.map(c.read,c)}function assertPatternsInput(t){const e=[].concat(t);const r=e.every(t=>c.string.isString(t)&&!c.string.isEmpty(t));if(!r){throw new TypeError("Patterns must be a string (non empty) or an array of strings")}}t.exports=FastGlob},2708:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;const n=r(5444);function generate(t,e){const r=getPositivePatterns(t);const s=getNegativePatternsAsPositive(t,e.ignore);const i=r.filter(t=>n.pattern.isStaticPattern(t,e));const o=r.filter(t=>n.pattern.isDynamicPattern(t,e));const a=convertPatternsToTasks(i,s,false);const c=convertPatternsToTasks(o,s,true);return a.concat(c)}e.generate=generate;function convertPatternsToTasks(t,e,r){const n=groupPatternsByBaseDirectory(t);if("."in n){const n=convertPatternGroupToTask(".",t,e,r);return[n]}return convertPatternGroupsToTasks(n,e,r)}e.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(t){return n.pattern.getPositivePatterns(t)}e.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(t,e){const r=n.pattern.getNegativePatterns(t).concat(e);const s=r.map(n.pattern.convertToPositivePattern);return s}e.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(t){const e={};return t.reduce((t,e)=>{const r=n.pattern.getBaseDirectory(e);if(r in t){t[r].push(e)}else{t[r]=[e]}return t},e)}e.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(t,e,r){return Object.keys(t).map(n=>{return convertPatternGroupToTask(n,t[n],e,r)})}e.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(t,e,r,s){return{dynamic:s,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(n.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=convertPatternGroupToTask},5679:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2083);const s=r(257);class ProviderAsync extends s.default{constructor(){super(...arguments);this._reader=new n.default(this._settings)}read(t){const e=this._getRootDirectory(t);const r=this._getReaderOptions(t);const n=[];return new Promise((s,i)=>{const o=this.api(e,t,r);o.once("error",i);o.on("data",t=>n.push(r.transform(t)));o.once("end",()=>s(n))})}api(t,e,r){if(e.dynamic){return this._reader.dynamic(t,r)}return this._reader.static(e.patterns,r)}}e.default=ProviderAsync},6983:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5444);const s=r(5295);class DeepFilter{constructor(t,e){this._settings=t;this._micromatchOptions=e}getFilter(t,e,r){const n=this._getMatcher(e);const s=this._getNegativePatternsRe(r);return e=>this._filter(t,e,n,s)}_getMatcher(t){return new s.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){const e=t.filter(n.pattern.isAffectDepthOfReadingPattern);return n.pattern.convertPatternsToRe(e,this._micromatchOptions)}_filter(t,e,r,s){if(this._isSkippedByDeep(t,e.path)){return false}if(this._isSkippedSymbolicLink(e)){return false}const i=n.path.removeLeadingDotSegment(e.path);if(this._isSkippedByPositivePatterns(i,r)){return false}return this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(t,e){if(this._settings.deep===Infinity){return false}return this._getEntryLevel(t,e)>=this._settings.deep}_getEntryLevel(t,e){const r=e.split("/").length;if(t===""){return r}const n=t.split("/").length;return r-n}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,e){return!this._settings.baseNameMatch&&!e.match(t)}_isSkippedByNegativePatterns(t,e){return!n.pattern.matchAny(t,e)}}e.default=DeepFilter},1343:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5444);class EntryFilter{constructor(t,e){this._settings=t;this._micromatchOptions=e;this.index=new Map}getFilter(t,e){const r=n.pattern.convertPatternsToRe(t,this._micromatchOptions);const s=n.pattern.convertPatternsToRe(e,this._micromatchOptions);return t=>this._filter(t,r,s)}_filter(t,e,r){if(this._settings.unique&&this._isDuplicateEntry(t)){return false}if(this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)){return false}if(this._isSkippedByAbsoluteNegativePatterns(t.path,r)){return false}const n=this._settings.baseNameMatch?t.name:t.path;const s=this._isMatchToPatterns(n,e)&&!this._isMatchToPatterns(t.path,r);if(this._settings.unique&&s){this._createIndexRecord(t)}return s}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,undefined)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,e){if(!this._settings.absolute){return false}const r=n.path.makeAbsolute(this._settings.cwd,t);return n.pattern.matchAny(r,e)}_isMatchToPatterns(t,e){const r=n.path.removeLeadingDotSegment(t);return n.pattern.matchAny(r,e)}}e.default=EntryFilter},6654:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5444);class ErrorFilter{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return n.errno.isEnoentCodeError(t)||this._settings.suppressErrors}}e.default=ErrorFilter},2576:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5444);class Matcher{constructor(t,e,r){this._patterns=t;this._settings=e;this._micromatchOptions=r;this._storage=[];this._fillStorage()}_fillStorage(){const t=n.pattern.expandPatternsWithBraceExpansion(this._patterns);for(const e of t){const t=this._getPatternSegments(e);const r=this._splitSegmentsIntoSections(t);this._storage.push({complete:r.length<=1,pattern:e,segments:t,sections:r})}}_getPatternSegments(t){const e=n.pattern.getPatternParts(t,this._micromatchOptions);return e.map(t=>{const e=n.pattern.isDynamicPattern(t,this._settings);if(!e){return{dynamic:false,pattern:t}}return{dynamic:true,pattern:t,patternRe:n.pattern.makeRe(t,this._micromatchOptions)}})}_splitSegmentsIntoSections(t){return n.array.splitWhen(t,t=>t.dynamic&&n.pattern.hasGlobStar(t.pattern))}}e.default=Matcher},5295:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2576);class PartialMatcher extends n.default{match(t){const e=t.split("/");const r=e.length;const n=this._storage.filter(t=>!t.complete||t.segments.length>r);for(const t of n){const n=t.sections[0];if(!t.complete&&r>n.length){return true}const s=e.every((e,r)=>{const n=t.segments[r];if(n.dynamic&&n.patternRe.test(e)){return true}if(!n.dynamic&&n.pattern===e){return true}return false});if(s){return true}}return false}}e.default=PartialMatcher},257:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5622);const s=r(6983);const i=r(1343);const o=r(6654);const a=r(4029);class Provider{constructor(t){this._settings=t;this.errorFilter=new o.default(this._settings);this.entryFilter=new i.default(this._settings,this._getMicromatchOptions());this.deepFilter=new s.default(this._settings,this._getMicromatchOptions());this.entryTransformer=new a.default(this._settings)}_getRootDirectory(t){return n.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){const e=t.base==="."?"":t.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:true,strictSlashes:false}}}e.default=Provider},4630:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2413);const s=r(2083);const i=r(257);class ProviderStream extends i.default{constructor(){super(...arguments);this._reader=new s.default(this._settings)}read(t){const e=this._getRootDirectory(t);const r=this._getReaderOptions(t);const s=this.api(e,t,r);const i=new n.Readable({objectMode:true,read:()=>{}});s.once("error",t=>i.emit("error",t)).on("data",t=>i.emit("data",r.transform(t))).once("end",()=>i.emit("end"));i.once("close",()=>s.destroy());return i}api(t,e,r){if(e.dynamic){return this._reader.dynamic(t,r)}return this._reader.static(e.patterns,r)}}e.default=ProviderStream},2405:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(6234);const s=r(257);class ProviderSync extends s.default{constructor(){super(...arguments);this._reader=new n.default(this._settings)}read(t){const e=this._getRootDirectory(t);const r=this._getReaderOptions(t);const n=this.api(e,t,r);return n.map(r.transform)}api(t,e,r){if(e.dynamic){return this._reader.dynamic(t,r)}return this._reader.static(e.patterns,r)}}e.default=ProviderSync},4029:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5444);class EntryTransformer{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let e=t.path;if(this._settings.absolute){e=n.path.makeAbsolute(this._settings.cwd,e);e=n.path.unixify(e)}if(this._settings.markDirectories&&t.dirent.isDirectory()){e+="/"}if(!this._settings.objectMode){return e}return Object.assign(Object.assign({},t),{path:e})}}e.default=EntryTransformer},5582:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5622);const s=r(109);const i=r(5444);class Reader{constructor(t){this._settings=t;this._fsStatSettings=new s.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return n.resolve(this._settings.cwd,t)}_makeEntry(t,e){const r={name:e,path:e,dirent:i.fs.createDirentFromStats(e,t)};if(this._settings.stats){r.stats=t}return r}_isFatalError(t){return!i.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}}e.default=Reader},2083:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2413);const s=r(109);const i=r(6026);const o=r(5582);class ReaderStream extends o.default{constructor(){super(...arguments);this._walkStream=i.walkStream;this._stat=s.stat}dynamic(t,e){return this._walkStream(t,e)}static(t,e){const r=t.map(this._getFullEntryPath,this);const s=new n.PassThrough({objectMode:true});s._write=((n,i,o)=>{return this._getEntry(r[n],t[n],e).then(t=>{if(t!==null&&e.entryFilter(t)){s.push(t)}if(n===r.length-1){s.end()}o()}).catch(o)});for(let t=0;tthis._makeEntry(t,e)).catch(t=>{if(r.errorFilter(t)){return null}throw t})}_getStat(t){return new Promise((e,r)=>{this._stat(t,this._fsStatSettings,(t,n)=>{return t===null?e(n):r(t)})})}}e.default=ReaderStream},6234:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(109);const s=r(6026);const i=r(5582);class ReaderSync extends i.default{constructor(){super(...arguments);this._walkSync=s.walkSync;this._statSync=n.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){const r=[];for(const n of t){const t=this._getFullEntryPath(n);const s=this._getEntry(t,n,e);if(s===null||!e.entryFilter(s)){continue}r.push(s)}return r}_getEntry(t,e,r){try{const n=this._getStat(t);return this._makeEntry(n,e)}catch(t){if(r.errorFilter(t)){return null}throw t}}_getStat(t){return this._statSync(t,this._fsStatSettings)}}e.default=ReaderSync},952:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const n=r(5747);const s=r(2087);const i=Math.max(s.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:n.lstat,lstatSync:n.lstatSync,stat:n.stat,statSync:n.statSync,readdir:n.readdir,readdirSync:n.readdirSync};class Settings{constructor(t={}){this._options=t;this.absolute=this._getValue(this._options.absolute,false);this.baseNameMatch=this._getValue(this._options.baseNameMatch,false);this.braceExpansion=this._getValue(this._options.braceExpansion,true);this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,true);this.concurrency=this._getValue(this._options.concurrency,i);this.cwd=this._getValue(this._options.cwd,process.cwd());this.deep=this._getValue(this._options.deep,Infinity);this.dot=this._getValue(this._options.dot,false);this.extglob=this._getValue(this._options.extglob,true);this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,true);this.fs=this._getFileSystemMethods(this._options.fs);this.globstar=this._getValue(this._options.globstar,true);this.ignore=this._getValue(this._options.ignore,[]);this.markDirectories=this._getValue(this._options.markDirectories,false);this.objectMode=this._getValue(this._options.objectMode,false);this.onlyDirectories=this._getValue(this._options.onlyDirectories,false);this.onlyFiles=this._getValue(this._options.onlyFiles,true);this.stats=this._getValue(this._options.stats,false);this.suppressErrors=this._getValue(this._options.suppressErrors,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,false);this.unique=this._getValue(this._options.unique,true);if(this.onlyDirectories){this.onlyFiles=false}if(this.stats){this.objectMode=true}}_getValue(t,e){return t===undefined?e:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),t)}}e.default=Settings},5325:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.splitWhen=e.flatten=void 0;function flatten(t){return t.reduce((t,e)=>[].concat(t,e),[])}e.flatten=flatten;function splitWhen(t,e){const r=[[]];let n=0;for(const s of t){if(e(s)){n++;r[n]=[]}else{r[n].push(s)}}return r}e.splitWhen=splitWhen},1230:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.isEnoentCodeError=void 0;function isEnoentCodeError(t){return t.code==="ENOENT"}e.isEnoentCodeError=isEnoentCodeError},7543:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createDirentFromStats=void 0;class DirentFromStats{constructor(t,e){this.name=t;this.isBlockDevice=e.isBlockDevice.bind(e);this.isCharacterDevice=e.isCharacterDevice.bind(e);this.isDirectory=e.isDirectory.bind(e);this.isFIFO=e.isFIFO.bind(e);this.isFile=e.isFile.bind(e);this.isSocket=e.isSocket.bind(e);this.isSymbolicLink=e.isSymbolicLink.bind(e)}}function createDirentFromStats(t,e){return new DirentFromStats(t,e)}e.createDirentFromStats=createDirentFromStats},5444:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;const n=r(5325);e.array=n;const s=r(1230);e.errno=s;const i=r(7543);e.fs=i;const o=r(3873);e.path=o;const a=r(1221);e.pattern=a;const c=r(8382);e.stream=c;const u=r(2203);e.string=u},3873:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;const n=r(5622);const s=2;const i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function unixify(t){return t.replace(/\\/g,"/")}e.unixify=unixify;function makeAbsolute(t,e){return n.resolve(t,e)}e.makeAbsolute=makeAbsolute;function escape(t){return t.replace(i,"\\$2")}e.escape=escape;function removeLeadingDotSegment(t){if(t.charAt(0)==="."){const e=t.charAt(1);if(e==="/"||e==="\\"){return t.slice(s)}}return t}e.removeLeadingDotSegment=removeLeadingDotSegment},1221:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;const n=r(5622);const s=r(4655);const i=r(6228);const o=r(8569);const a="**";const c="\\";const u=/[*?]|^!/;const l=/\[.*]/;const f=/(?:^|[^!*+?@])\(.*\|.*\)/;const p=/[!*+?@]\(.*\)/;const d=/{.*(?:,|\.\.).*}/;function isStaticPattern(t,e={}){return!isDynamicPattern(t,e)}e.isStaticPattern=isStaticPattern;function isDynamicPattern(t,e={}){if(t===""){return false}if(e.caseSensitiveMatch===false||t.includes(c)){return true}if(u.test(t)||l.test(t)||f.test(t)){return true}if(e.extglob!==false&&p.test(t)){return true}if(e.braceExpansion!==false&&d.test(t)){return true}return false}e.isDynamicPattern=isDynamicPattern;function convertToPositivePattern(t){return isNegativePattern(t)?t.slice(1):t}e.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(t){return"!"+t}e.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(t){return t.startsWith("!")&&t[1]!=="("}e.isNegativePattern=isNegativePattern;function isPositivePattern(t){return!isNegativePattern(t)}e.isPositivePattern=isPositivePattern;function getNegativePatterns(t){return t.filter(isNegativePattern)}e.getNegativePatterns=getNegativePatterns;function getPositivePatterns(t){return t.filter(isPositivePattern)}e.getPositivePatterns=getPositivePatterns;function getBaseDirectory(t){return s(t,{flipBackslashes:false})}e.getBaseDirectory=getBaseDirectory;function hasGlobStar(t){return t.includes(a)}e.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(t){return t.endsWith("/"+a)}e.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(t){const e=n.basename(t);return endsWithSlashGlobStar(t)||isStaticPattern(e)}e.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function expandPatternsWithBraceExpansion(t){return t.reduce((t,e)=>{return t.concat(expandBraceExpansion(e))},[])}e.expandPatternsWithBraceExpansion=expandPatternsWithBraceExpansion;function expandBraceExpansion(t){return i.braces(t,{expand:true,nodupes:true})}e.expandBraceExpansion=expandBraceExpansion;function getPatternParts(t,e){let{parts:r}=o.scan(t,Object.assign(Object.assign({},e),{parts:true}));if(r.length===0){r=[t]}if(r[0].startsWith("/")){r[0]=r[0].slice(1);r.unshift("")}return r}e.getPatternParts=getPatternParts;function makeRe(t,e){return i.makeRe(t,e)}e.makeRe=makeRe;function convertPatternsToRe(t,e){return t.map(t=>makeRe(t,e))}e.convertPatternsToRe=convertPatternsToRe;function matchAny(t,e){return e.some(e=>e.test(t))}e.matchAny=matchAny},8382:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.merge=void 0;const n=r(2578);function merge(t){const e=n(t);t.forEach(t=>{t.once("error",t=>e.emit("error",t))});e.once("close",()=>propagateCloseEventToSources(t));e.once("end",()=>propagateCloseEventToSources(t));return e}e.merge=merge;function propagateCloseEventToSources(t){t.forEach(t=>t.emit("close"))}},2203:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.isEmpty=e.isString=void 0;function isString(t){return typeof t==="string"}e.isString=isString;function isEmpty(t){return t===""}e.isEmpty=isEmpty},7340:(t,e,r)=>{"use strict";var n=r(2113);function fastqueue(t,e,r){if(typeof t==="function"){r=e;e=t;t=null}if(r<1){throw new Error("fastqueue concurrency must be greater than 1")}var s=n(Task);var i=null;var o=null;var a=0;var c=null;var u={push:push,drain:noop,saturated:noop,pause:pause,paused:false,concurrency:r,running:running,resume:resume,idle:idle,length:length,getQueue:getQueue,unshift:unshift,empty:noop,kill:kill,killAndDrain:killAndDrain,error:error};return u;function running(){return a}function pause(){u.paused=true}function length(){var t=i;var e=0;while(t){t=t.next;e++}return e}function getQueue(){var t=i;var e=[];while(t){e.push(t.value);t=t.next}return e}function resume(){if(!u.paused)return;u.paused=false;for(var t=0;t{"use strict";const n=r(1669);const s=r(1861);const i=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);const o=t=>{return e=>t===true?Number(e):String(e)};const a=t=>{return typeof t==="number"||typeof t==="string"&&t!==""};const c=t=>Number.isInteger(+t);const u=t=>{let e=`${t}`;let r=-1;if(e[0]==="-")e=e.slice(1);if(e==="0")return false;while(e[++r]==="0");return r>0};const l=(t,e,r)=>{if(typeof t==="string"||typeof e==="string"){return true}return r.stringify===true};const f=(t,e,r)=>{if(e>0){let r=t[0]==="-"?"-":"";if(r)t=t.slice(1);t=r+t.padStart(r?e-1:e,"0")}if(r===false){return String(t)}return t};const p=(t,e)=>{let r=t[0]==="-"?"-":"";if(r){t=t.slice(1);e--}while(t.length{t.negatives.sort((t,e)=>te?1:0);t.positives.sort((t,e)=>te?1:0);let r=e.capture?"":"?:";let n="";let s="";let i;if(t.positives.length){n=t.positives.join("|")}if(t.negatives.length){s=`-(${r}${t.negatives.join("|")})`}if(n&&s){i=`${n}|${s}`}else{i=n||s}if(e.wrap){return`(${r}${i})`}return i};const h=(t,e,r,n)=>{if(r){return s(t,e,{wrap:false,...n})}let i=String.fromCharCode(t);if(t===e)return i;let o=String.fromCharCode(e);return`[${i}-${o}]`};const g=(t,e,r)=>{if(Array.isArray(t)){let e=r.wrap===true;let n=r.capture?"":"?:";return e?`(${n}${t.join("|")})`:t.join("|")}return s(t,e,r)};const m=(...t)=>{return new RangeError("Invalid range arguments: "+n.inspect(...t))};const y=(t,e,r)=>{if(r.strictRanges===true)throw m([t,e]);return[]};const _=(t,e)=>{if(e.strictRanges===true){throw new TypeError(`Expected step "${t}" to be a number`)}return[]};const b=(t,e,r=1,n={})=>{let s=Number(t);let i=Number(e);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===true)throw m([t,e]);return[]}if(s===0)s=0;if(i===0)i=0;let a=s>i;let c=String(t);let y=String(e);let _=String(r);r=Math.max(Math.abs(r),1);let b=u(c)||u(y)||u(_);let S=b?Math.max(c.length,y.length,_.length):0;let E=b===false&&l(t,e,n)===false;let v=n.transform||o(E);if(n.toRegex&&r===1){return h(p(t,S),p(e,S),true,n)}let T={negatives:[],positives:[]};let R=t=>T[t<0?"negatives":"positives"].push(Math.abs(t));let k=[];let P=0;while(a?s>=i:s<=i){if(n.toRegex===true&&r>1){R(s)}else{k.push(f(v(s,P),S,E))}s=a?s-r:s+r;P++}if(n.toRegex===true){return r>1?d(T,n):g(k,null,{wrap:false,...n})}return k};const S=(t,e,r=1,n={})=>{if(!c(t)&&t.length>1||!c(e)&&e.length>1){return y(t,e,n)}let s=n.transform||(t=>String.fromCharCode(t));let i=`${t}`.charCodeAt(0);let o=`${e}`.charCodeAt(0);let a=i>o;let u=Math.min(i,o);let l=Math.max(i,o);if(n.toRegex&&r===1){return h(u,l,false,n)}let f=[];let p=0;while(a?i>=o:i<=o){f.push(s(i,p));i=a?i-r:i+r;p++}if(n.toRegex===true){return g(f,null,{wrap:false,options:n})}return f};const E=(t,e,r,n={})=>{if(e==null&&a(t)){return[t]}if(!a(t)||!a(e)){return y(t,e,n)}if(typeof r==="function"){return E(t,e,1,{transform:r})}if(i(r)){return E(t,e,0,r)}let s={...n};if(s.capture===true)s.wrap=true;r=r||s.step||1;if(!c(r)){if(r!=null&&!i(r))return _(r,s);return E(t,e,1,r)}if(c(t)&&c(e)){return b(t,e,r,s)}return S(t,e,Math.max(Math.abs(r),1),s)};t.exports=E},4655:(t,e,r)=>{"use strict";var n=r(4466);var s=r(5622).posix.dirname;var i=r(2087).platform()==="win32";var o="/";var a=/\\/g;var c=/[\{\[].*[\}\]]$/;var u=/(^|[^\\])([\{\[]|\([^\)]+$)/;var l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function globParent(t,e){var r=Object.assign({flipBackslashes:true},e);if(r.flipBackslashes&&i&&t.indexOf(o)<0){t=t.replace(a,o)}if(c.test(t)){t+=o}t+="a";do{t=s(t)}while(n(t)||u.test(t));return t.replace(l,"$1")}},9038:(t,e,r)=>{"use strict";const{promisify:n}=r(1669);const s=r(5747);const i=r(5622);const o=r(3664);const a=r(4777);const c=r(4111);const u=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"];const l=n(s.readFile);const f=t=>e=>{if(e.startsWith("!")){return"!"+i.posix.join(t,e.slice(1))}return i.posix.join(t,e)};const p=(t,e)=>{const r=c(i.relative(e.cwd,i.dirname(e.fileName)));return t.split(/\r?\n/).filter(Boolean).filter(t=>!t.startsWith("#")).map(f(r))};const d=t=>{const e=a();for(const r of t){e.add(p(r.content,{cwd:r.cwd,fileName:r.filePath}))}return e};const h=(t,e)=>{t=c(t);if(i.isAbsolute(e)){if(e.startsWith(t)){return e}throw new Error(`Path ${e} is not in cwd ${t}`)}return i.join(t,e)};const g=(t,e)=>{return r=>t.ignores(c(i.relative(e,h(e,r.path||r))))};const m=async(t,e)=>{const r=i.join(e,t);const n=await l(r,"utf8");return{cwd:e,filePath:r,content:n}};const y=(t,e)=>{const r=i.join(e,t);const n=s.readFileSync(r,"utf8");return{cwd:e,filePath:r,content:n}};const _=({ignore:t=[],cwd:e=c(process.cwd())}={})=>{return{ignore:t,cwd:e}};t.exports=(async t=>{t=_(t);const e=await o("**/.gitignore",{ignore:u.concat(t.ignore),cwd:t.cwd});const r=await Promise.all(e.map(e=>m(e,t.cwd)));const n=d(r);return g(n,t.cwd)});t.exports.sync=(t=>{t=_(t);const e=o.sync("**/.gitignore",{ignore:u.concat(t.ignore),cwd:t.cwd});const r=e.map(e=>y(e,t.cwd));const n=d(r);return g(n,t.cwd)})},3398:(t,e,r)=>{"use strict";const n=r(5747);const s=r(9600);const i=r(2578);const o=r(3664);const a=r(2738);const c=r(9038);const{FilterStream:u,UniqueStream:l}=r(2408);const f=()=>false;const p=t=>t[0]==="!";const d=t=>{if(!t.every(t=>typeof t==="string")){throw new TypeError("Patterns must be a string or an array of strings")}};const h=(t={})=>{if(!t.cwd){return}let e;try{e=n.statSync(t.cwd)}catch{return}if(!e.isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const g=t=>t.stats instanceof n.Stats?t.path:t;const m=(t,e)=>{t=s([].concat(t));d(t);h(e);const r=[];e={ignore:[],expandDirectories:true,...e};for(const[n,s]of t.entries()){if(p(s)){continue}const i=t.slice(n).filter(t=>p(t)).map(t=>t.slice(1));const o={...e,ignore:e.ignore.concat(i)};r.push({pattern:s,options:o})}return r};const y=(t,e)=>{let r={};if(t.options.cwd){r.cwd=t.options.cwd}if(Array.isArray(t.options.expandDirectories)){r={...r,files:t.options.expandDirectories}}else if(typeof t.options.expandDirectories==="object"){r={...r,...t.options.expandDirectories}}return e(t.pattern,r)};const _=(t,e)=>t.options.expandDirectories?y(t,e):[t.pattern];const b=t=>{return t&&t.gitignore?c.sync({cwd:t.cwd,ignore:t.ignore}):f};const S=t=>e=>{const{options:r}=t;if(r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories){r.ignore=a.sync(r.ignore)}return{pattern:e,options:r}};t.exports=(async(t,e)=>{const r=m(t,e);const n=async()=>{return e&&e.gitignore?c({cwd:e.cwd,ignore:e.ignore}):f};const i=async()=>{const t=await Promise.all(r.map(async t=>{const e=await _(t,a);return Promise.all(e.map(S(t)))}));return s(...t)};const[u,l]=await Promise.all([n(),i()]);const p=await Promise.all(l.map(t=>o(t.pattern,t.options)));return s(...p).filter(t=>!u(g(t)))});t.exports.sync=((t,e)=>{const r=m(t,e);const n=[];for(const t of r){const e=_(t,a.sync).map(S(t));n.push(...e)}const i=b(e);let c=[];for(const t of n){c=s(c,o.sync(t.pattern,t.options))}return c.filter(t=>!i(t))});t.exports.stream=((t,e)=>{const r=m(t,e);const n=[];for(const t of r){const e=_(t,a.sync).map(S(t));n.push(...e)}const s=b(e);const c=new u(t=>!s(t));const f=new l;return i(n.map(t=>o.stream(t.pattern,t.options))).pipe(c).pipe(f)});t.exports.generateGlobTasks=m;t.exports.hasMagic=((t,e)=>[].concat(t).some(t=>o.isDynamicPattern(t,e)));t.exports.gitignore=c},2408:(t,e,r)=>{"use strict";const{Transform:n}=r(2413);class ObjectTransform extends n{constructor(){super({objectMode:true})}}class FilterStream extends ObjectTransform{constructor(t){super();this._filter=t}_transform(t,e,r){if(this._filter(t)){this.push(t)}r()}}class UniqueStream extends ObjectTransform{constructor(){super();this._pushed=new Set}_transform(t,e,r){if(!this._pushed.has(t)){this.push(t);this._pushed.add(t)}r()}}t.exports={FilterStream:FilterStream,UniqueStream:UniqueStream}},1621:t=>{"use strict";t.exports=((t,e=process.argv)=>{const r=t.startsWith("-")?"":t.length===1?"-":"--";const n=e.indexOf(r+t);const s=e.indexOf("--");return n!==-1&&(s===-1||n{function makeArray(t){return Array.isArray(t)?t:[t]}const e="";const r=" ";const n="\\";const s=/^\s+$/;const i=/^\\!/;const o=/^\\#/;const a=/\r?\n/g;const c=/^\.*\/|^\.+$/;const u="/";const l=typeof Symbol!=="undefined"?Symbol.for("node-ignore"):"node-ignore";const f=(t,e,r)=>Object.defineProperty(t,e,{value:r});const p=/([0-z])-([0-z])/g;const d=t=>t.replace(p,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:e);const h=t=>{const{length:e}=t;return t.slice(0,e-e%2)};const g=[[/\\?\s+$/,t=>t.indexOf("\\")===0?r:e],[/\\\s/g,()=>r],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6`${e}[^\\/]*`],[/\\\\\\(?=[$.|*+(){^])/g,()=>n],[/\\\\/g,()=>n],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,i)=>e===n?`\\[${r}${h(s)}${i}`:i==="]"?s.length%2===0?`[${d(r)}${s}]`:"[]":"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>{const r=e?`${e}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`}]];const m=Object.create(null);const y=(t,e,r)=>{const n=m[t];if(n){return n}const s=g.reduce((e,r)=>e.replace(r[0],r[1].bind(t)),t);return m[t]=r?new RegExp(s,"i"):new RegExp(s)};const _=t=>typeof t==="string";const b=t=>t&&_(t)&&!s.test(t)&&t.indexOf("#")!==0;const S=t=>t.split(a);class IgnoreRule{constructor(t,e,r,n){this.origin=t;this.pattern=e;this.negative=r;this.regex=n}}const E=(t,e)=>{const r=t;let n=false;if(t.indexOf("!")===0){n=true;t=t.substr(1)}t=t.replace(i,"!").replace(o,"#");const s=y(t,n,e);return new IgnoreRule(r,t,n,s)};const v=(t,e)=>{throw new e(t)};const T=(t,e,r)=>{if(!_(t)){return r(`path must be a string, but got \`${e}\``,TypeError)}if(!t){return r(`path must not be empty`,TypeError)}if(T.isNotRelative(t)){const t="`path.relative()`d";return r(`path should be a ${t} string, but got "${e}"`,RangeError)}return true};const R=t=>c.test(t);T.isNotRelative=R;T.convert=(t=>t);class Ignore{constructor({ignorecase:t=true}={}){this._rules=[];this._ignorecase=t;f(this,l,true);this._initCache()}_initCache(){this._ignoreCache=Object.create(null);this._testCache=Object.create(null)}_addPattern(t){if(t&&t[l]){this._rules=this._rules.concat(t._rules);this._added=true;return}if(b(t)){const e=E(t,this._ignorecase);this._added=true;this._rules.push(e)}}add(t){this._added=false;makeArray(_(t)?S(t):t).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(t){return this.add(t)}_testOne(t,e){let r=false;let n=false;this._rules.forEach(s=>{const{negative:i}=s;if(n===i&&r!==n||i&&!r&&!n&&!e){return}const o=s.regex.test(t);if(o){r=!i;n=i}});return{ignored:r,unignored:n}}_test(t,e,r,n){const s=t&&T.convert(t);T(s,t,v);return this._t(s,e,r,n)}_t(t,e,r,n){if(t in e){return e[t]}if(!n){n=t.split(u)}n.pop();if(!n.length){return e[t]=this._testOne(t,r)}const s=this._t(n.join(u)+u,e,r,n);return e[t]=s.ignored?s:this._testOne(t,r)}ignores(t){return this._test(t,this._ignoreCache,false).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return makeArray(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,true)}}const k=t=>new Ignore(t);const P=()=>false;const C=t=>T(t&&T.convert(t),t,P);k.isPathValid=C;k.default=k;t.exports=k;if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const t=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");T.convert=t;const e=/^[a-z]:\//i;T.isNotRelative=(t=>e.test(t)||R(t))}},6435:t=>{t.exports=function isExtglob(t){if(typeof t!=="string"||t===""){return false}var e;while(e=/(\\).|([@?!+*]\(.*\))/g.exec(t)){if(e[2])return true;t=t.slice(e.index+e[0].length)}return false}},4466:(t,e,r)=>{var n=r(6435);var s={"{":"}","(":")","[":"]"};var i=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;var o=/\\(.)|(^!|[*?{}()[\]]|\(\?)/;t.exports=function isGlob(t,e){if(typeof t!=="string"||t===""){return false}if(n(t)){return true}var r=i;var a;if(e&&e.strict===false){r=o}while(a=r.exec(t)){if(a[2])return true;var c=a.index+a[0].length;var u=a[1];var l=u?s[u]:null;if(u&&l){var f=t.indexOf(l,c);if(f!==-1){c=f+1}}t=t.slice(c)}return false}},5680:t=>{"use strict";t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},2578:(t,e,r)=>{"use strict";const n=r(2413);const s=n.PassThrough;const i=Array.prototype.slice;t.exports=merge2;function merge2(){const t=[];const e=i.call(arguments);let r=false;let n=e[e.length-1];if(n&&!Array.isArray(n)&&n.pipe==null){e.pop()}else{n={}}const o=n.end!==false;const a=n.pipeError===true;if(n.objectMode==null){n.objectMode=true}if(n.highWaterMark==null){n.highWaterMark=64*1024}const c=s(n);function addStream(){for(let e=0,r=arguments.length;e0){return}r=false;mergeStream()}function pipe(t){function onend(){t.removeListener("merge2UnpipeEnd",onend);t.removeListener("end",onend);if(a){t.removeListener("error",onerror)}next()}function onerror(t){c.emit("error",t)}if(t._readableState.endEmitted){return next()}t.on("merge2UnpipeEnd",onend);t.on("end",onend);if(a){t.on("error",onerror)}t.pipe(c,{end:false});t.resume()}for(let t=0;t{"use strict";const n=r(1669);const s=r(610);const i=r(8569);const o=r(479);const a=t=>typeof t==="string"&&(t===""||t==="./");const c=(t,e,r)=>{e=[].concat(e);t=[].concat(t);let n=new Set;let s=new Set;let o=new Set;let a=0;let c=t=>{o.add(t.output);if(r&&r.onResult){r.onResult(t)}};for(let o=0;o!n.has(t));if(r&&l.length===0){if(r.failglob===true){throw new Error(`No matches found for "${e.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?e.map(t=>t.replace(/\\/g,"")):e}}return l};c.match=c;c.matcher=((t,e)=>i(t,e));c.isMatch=((t,e,r)=>i(e,r)(t));c.any=c.isMatch;c.not=((t,e,r={})=>{e=[].concat(e).map(String);let n=new Set;let s=[];let i=t=>{if(r.onResult)r.onResult(t);s.push(t.output)};let o=c(t,e,{...r,onResult:i});for(let t of s){if(!o.includes(t)){n.add(t)}}return[...n]});c.contains=((t,e,r)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${n.inspect(t)}"`)}if(Array.isArray(e)){return e.some(e=>c.contains(t,e,r))}if(typeof e==="string"){if(a(t)||a(e)){return false}if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e)){return true}}return c.isMatch(t,e,{...r,contains:true})});c.matchKeys=((t,e,r)=>{if(!o.isObject(t)){throw new TypeError("Expected the first argument to be an object")}let n=c(Object.keys(t),e,r);let s={};for(let e of n)s[e]=t[e];return s});c.some=((t,e,r)=>{let n=[].concat(t);for(let t of[].concat(e)){let e=i(String(t),r);if(n.some(t=>e(t))){return true}}return false});c.every=((t,e,r)=>{let n=[].concat(t);for(let t of[].concat(e)){let e=i(String(t),r);if(!n.every(t=>e(t))){return false}}return true});c.all=((t,e,r)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${n.inspect(t)}"`)}return[].concat(e).every(e=>i(e,r)(t))});c.capture=((t,e,r)=>{let n=o.isWindows(r);let s=i.makeRe(String(t),{...r,capture:true});let a=s.exec(n?o.toPosixSlashes(e):e);if(a){return a.slice(1).map(t=>t===void 0?"":t)}});c.makeRe=((...t)=>i.makeRe(...t));c.scan=((...t)=>i.scan(...t));c.parse=((t,e)=>{let r=[];for(let n of[].concat(t||[])){for(let t of s(String(n),e)){r.push(i.parse(t,e))}}return r});c.braces=((t,e)=>{if(typeof t!=="string")throw new TypeError("Expected a string");if(e&&e.nobrace===true||!/\{.*\}/.test(t)){return[t]}return s(t,e)});c.braceExpand=((t,e)=>{if(typeof t!=="string")throw new TypeError("Expected a string");return c.braces(t,{...e,expand:true})});t.exports=c},900:t=>{var e=1e3;var r=e*60;var n=r*60;var s=n*24;var i=s*7;var o=s*365.25;t.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0){return parse(t)}else if(r==="number"&&isFinite(t)){return e.long?fmtLong(t):fmtShort(t)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function parse(t){t=String(t);if(t.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(t){var i=Math.abs(t);if(i>=s){return Math.round(t/s)+"d"}if(i>=n){return Math.round(t/n)+"h"}if(i>=r){return Math.round(t/r)+"m"}if(i>=e){return Math.round(t/e)+"s"}return t+"ms"}function fmtLong(t){var i=Math.abs(t);if(i>=s){return plural(t,i,s,"day")}if(i>=n){return plural(t,i,n,"hour")}if(i>=r){return plural(t,i,r,"minute")}if(i>=e){return plural(t,i,e,"second")}return t+" ms"}function plural(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}},3433:(t,e,r)=>{"use strict";const{promisify:n}=r(1669);const s=r(5747);async function isType(t,e,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{const i=await n(s[t])(r);return i[e]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}function isTypeSync(t,e,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{return s[t](r)[e]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}e.isFile=isType.bind(null,"stat","isFile");e.isDirectory=isType.bind(null,"stat","isDirectory");e.isSymlink=isType.bind(null,"lstat","isSymbolicLink");e.isFileSync=isTypeSync.bind(null,"statSync","isFile");e.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");e.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},8569:(t,e,r)=>{"use strict";t.exports=r(3322)},6099:(t,e,r)=>{"use strict";const n=r(5622);const s="\\\\/";const i=`[^${s}]`;const o="\\.";const a="\\+";const c="\\?";const u="\\/";const l="(?=.)";const f="[^/]";const p=`(?:${u}|$)`;const d=`(?:^|${u})`;const h=`${o}{1,2}${p}`;const g=`(?!${o})`;const m=`(?!${d}${h})`;const y=`(?!${o}{0,1}${p})`;const _=`(?!${h})`;const b=`[^.${u}]`;const S=`${f}*?`;const E={DOT_LITERAL:o,PLUS_LITERAL:a,QMARK_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:l,QMARK:f,END_ANCHOR:p,DOTS_SLASH:h,NO_DOT:g,NO_DOTS:m,NO_DOT_SLASH:y,NO_DOTS_SLASH:_,QMARK_NO_DOT:b,STAR:S,START_ANCHOR:d};const v={...E,SLASH_LITERAL:`[${s}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${o}{1,2}(?:[${s}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${s}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${s}]|$))`,QMARK_NO_DOT:`[^.${s}]`,START_ANCHOR:`(?:^|[${s}])`,END_ANCHOR:`(?:[${s}]|$)`};const T={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:T,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:n.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?v:E}}},2139:(t,e,r)=>{"use strict";const n=r(6099);const s=r(479);const{MAX_LENGTH:i,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:u}=n;const l=(t,e)=>{if(typeof e.expandRange==="function"){return e.expandRange(...t,e)}t.sort();const r=`[${t.join("-")}]`;try{new RegExp(r)}catch(e){return t.map(t=>s.escapeRegex(t)).join("..")}return r};const f=(t,e)=>{return`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`};const p=(t,e)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=u[t]||t;const r={...e};const p=typeof r.maxLength==="number"?Math.min(i,r.maxLength):i;let d=t.length;if(d>p){throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${p}`)}const h={type:"bos",value:"",output:r.prepend||""};const g=[h];const m=r.capture?"":"?:";const y=s.isWindows(e);const _=n.globChars(y);const b=n.extglobChars(_);const{DOT_LITERAL:S,PLUS_LITERAL:E,SLASH_LITERAL:v,ONE_CHAR:T,DOTS_SLASH:R,NO_DOT:k,NO_DOT_SLASH:P,NO_DOTS_SLASH:C,QMARK:A,QMARK_NO_DOT:O,STAR:w,START_ANCHOR:x}=_;const M=t=>{return`(${m}(?:(?!${x}${t.dot?R:S}).)*?)`};const L=r.dot?"":k;const D=r.dot?A:O;let F=r.bash===true?M(r):w;if(r.capture){F=`(${F})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const j={input:t,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:g};t=s.removePrefix(t,j);d=t.length;const I=[];const $=[];const N=[];let G=h;let B;const H=()=>j.index===d-1;const U=j.peek=((e=1)=>t[j.index+e]);const W=j.advance=(()=>t[++j.index]);const V=()=>t.slice(j.index+1);const K=(t="",e=0)=>{j.consumed+=t;j.index+=e};const Q=t=>{j.output+=t.output!=null?t.output:t.value;K(t.value)};const Y=()=>{let t=1;while(U()==="!"&&(U(2)!=="("||U(3)==="?")){W();j.start++;t++}if(t%2===0){return false}j.negated=true;j.start++;return true};const z=t=>{j[t]++;N.push(t)};const X=t=>{j[t]--;N.pop()};const Z=t=>{if(G.type==="globstar"){const e=j.braces>0&&(t.type==="comma"||t.type==="brace");const r=t.extglob===true||I.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!e&&!r){j.output=j.output.slice(0,-G.output.length);G.type="star";G.value="*";G.output=F;j.output+=G.output}}if(I.length&&t.type!=="paren"&&!b[t.value]){I[I.length-1].inner+=t.value}if(t.value||t.output)Q(t);if(G&&G.type==="text"&&t.type==="text"){G.value+=t.value;G.output=(G.output||"")+t.value;return}t.prev=G;g.push(t);G=t};const J=(t,e)=>{const n={...b[e],conditions:1,inner:""};n.prev=G;n.parens=j.parens;n.output=j.output;const s=(r.capture?"(":"")+n.open;z("parens");Z({type:t,value:e,output:j.output?"":T});Z({type:"paren",extglob:true,value:W(),output:s});I.push(n)};const q=t=>{let e=t.close+(r.capture?")":"");if(t.type==="negate"){let n=F;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){n=M(r)}if(n!==F||H()||/^\)+$/.test(V())){e=t.close=`)$))${n}`}if(t.prev.type==="bos"&&H()){j.negatedExtglob=true}}Z({type:"paren",extglob:true,value:B,output:e});X("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let n=false;let i=t.replace(c,(t,e,r,s,i,o)=>{if(s==="\\"){n=true;return t}if(s==="?"){if(e){return e+s+(i?A.repeat(i.length):"")}if(o===0){return D+(i?A.repeat(i.length):"")}return A.repeat(r.length)}if(s==="."){return S.repeat(r.length)}if(s==="*"){if(e){return e+s+(i?F:"")}return F}return e?t:`\\${t}`});if(n===true){if(r.unescape===true){i=i.replace(/\\/g,"")}else{i=i.replace(/\\+/g,t=>{return t.length%2===0?"\\\\":t?"\\":""})}}if(i===t&&r.contains===true){j.output=t;return j}j.output=s.wrapOutput(i,j,e);return j}while(!H()){B=W();if(B==="\0"){continue}if(B==="\\"){const t=U();if(t==="/"&&r.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){B+="\\";Z({type:"text",value:B});continue}const e=/^\\+/.exec(V());let n=0;if(e&&e[0].length>2){n=e[0].length;j.index+=n;if(n%2!==0){B+="\\"}}if(r.unescape===true){B=W()||""}else{B+=W()||""}if(j.brackets===0){Z({type:"text",value:B});continue}}if(j.brackets>0&&(B!=="]"||G.value==="["||G.value==="[^")){if(r.posix!==false&&B===":"){const t=G.value.slice(1);if(t.includes("[")){G.posix=true;if(t.includes(":")){const t=G.value.lastIndexOf("[");const e=G.value.slice(0,t);const r=G.value.slice(t+2);const n=o[r];if(n){G.value=e+n;j.backtrack=true;W();if(!h.output&&g.indexOf(G)===1){h.output=T}continue}}}}if(B==="["&&U()!==":"||B==="-"&&U()==="]"){B=`\\${B}`}if(B==="]"&&(G.value==="["||G.value==="[^")){B=`\\${B}`}if(r.posix===true&&B==="!"&&G.value==="["){B="^"}G.value+=B;Q({value:B});continue}if(j.quotes===1&&B!=='"'){B=s.escapeRegex(B);G.value+=B;Q({value:B});continue}if(B==='"'){j.quotes=j.quotes===1?0:1;if(r.keepQuotes===true){Z({type:"text",value:B})}continue}if(B==="("){z("parens");Z({type:"paren",value:B});continue}if(B===")"){if(j.parens===0&&r.strictBrackets===true){throw new SyntaxError(f("opening","("))}const t=I[I.length-1];if(t&&j.parens===t.parens+1){q(I.pop());continue}Z({type:"paren",value:B,output:j.parens?")":"\\)"});X("parens");continue}if(B==="["){if(r.nobracket===true||!V().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(f("closing","]"))}B=`\\${B}`}else{z("brackets")}Z({type:"bracket",value:B});continue}if(B==="]"){if(r.nobracket===true||G&&G.type==="bracket"&&G.value.length===1){Z({type:"text",value:B,output:`\\${B}`});continue}if(j.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(f("opening","["))}Z({type:"text",value:B,output:`\\${B}`});continue}X("brackets");const t=G.value.slice(1);if(G.posix!==true&&t[0]==="^"&&!t.includes("/")){B=`/${B}`}G.value+=B;Q({value:B});if(r.literalBrackets===false||s.hasRegexChars(t)){continue}const e=s.escapeRegex(G.value);j.output=j.output.slice(0,-G.value.length);if(r.literalBrackets===true){j.output+=e;G.value=e;continue}G.value=`(${m}${e}|${G.value})`;j.output+=G.value;continue}if(B==="{"&&r.nobrace!==true){z("braces");const t={type:"brace",value:B,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};$.push(t);Z(t);continue}if(B==="}"){const t=$[$.length-1];if(r.nobrace===true||!t){Z({type:"text",value:B,output:B});continue}let e=")";if(t.dots===true){const t=g.slice();const n=[];for(let e=t.length-1;e>=0;e--){g.pop();if(t[e].type==="brace"){break}if(t[e].type!=="dots"){n.unshift(t[e].value)}}e=l(n,r);j.backtrack=true}if(t.comma!==true&&t.dots!==true){const r=j.output.slice(0,t.outputIndex);const n=j.tokens.slice(t.tokensIndex);t.value=t.output="\\{";B=e="\\}";j.output=r;for(const t of n){j.output+=t.output||t.value}}Z({type:"brace",value:B,output:e});X("braces");$.pop();continue}if(B==="|"){if(I.length>0){I[I.length-1].conditions++}Z({type:"text",value:B});continue}if(B===","){let t=B;const e=$[$.length-1];if(e&&N[N.length-1]==="braces"){e.comma=true;t="|"}Z({type:"comma",value:B,output:t});continue}if(B==="/"){if(G.type==="dot"&&j.index===j.start+1){j.start=j.index+1;j.consumed="";j.output="";g.pop();G=h;continue}Z({type:"slash",value:B,output:v});continue}if(B==="."){if(j.braces>0&&G.type==="dot"){if(G.value===".")G.output=S;const t=$[$.length-1];G.type="dots";G.output+=B;G.value+=B;t.dots=true;continue}if(j.braces+j.parens===0&&G.type!=="bos"&&G.type!=="slash"){Z({type:"text",value:B,output:S});continue}Z({type:"dot",value:B,output:S});continue}if(B==="?"){const t=G&&G.value==="(";if(!t&&r.noextglob!==true&&U()==="("&&U(2)!=="?"){J("qmark",B);continue}if(G&&G.type==="paren"){const t=U();let e=B;if(t==="<"&&!s.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(G.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(V())){e=`\\${B}`}Z({type:"text",value:B,output:e});continue}if(r.dot!==true&&(G.type==="slash"||G.type==="bos")){Z({type:"qmark",value:B,output:O});continue}Z({type:"qmark",value:B,output:A});continue}if(B==="!"){if(r.noextglob!==true&&U()==="("){if(U(2)!=="?"||!/[!=<:]/.test(U(3))){J("negate",B);continue}}if(r.nonegate!==true&&j.index===0){Y();continue}}if(B==="+"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){J("plus",B);continue}if(G&&G.value==="("||r.regex===false){Z({type:"plus",value:B,output:E});continue}if(G&&(G.type==="bracket"||G.type==="paren"||G.type==="brace")||j.parens>0){Z({type:"plus",value:B});continue}Z({type:"plus",value:E});continue}if(B==="@"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){Z({type:"at",extglob:true,value:B,output:""});continue}Z({type:"text",value:B});continue}if(B!=="*"){if(B==="$"||B==="^"){B=`\\${B}`}const t=a.exec(V());if(t){B+=t[0];j.index+=t[0].length}Z({type:"text",value:B});continue}if(G&&(G.type==="globstar"||G.star===true)){G.type="star";G.star=true;G.value+=B;G.output=F;j.backtrack=true;j.globstar=true;K(B);continue}let e=V();if(r.noextglob!==true&&/^\([^?]/.test(e)){J("star",B);continue}if(G.type==="star"){if(r.noglobstar===true){K(B);continue}const n=G.prev;const s=n.prev;const i=n.type==="slash"||n.type==="bos";const o=s&&(s.type==="star"||s.type==="globstar");if(r.bash===true&&(!i||e[0]&&e[0]!=="/")){Z({type:"star",value:B,output:""});continue}const a=j.braces>0&&(n.type==="comma"||n.type==="brace");const c=I.length&&(n.type==="pipe"||n.type==="paren");if(!i&&n.type!=="paren"&&!a&&!c){Z({type:"star",value:B,output:""});continue}while(e.slice(0,3)==="/**"){const r=t[j.index+4];if(r&&r!=="/"){break}e=e.slice(3);K("/**",3)}if(n.type==="bos"&&H()){G.type="globstar";G.value+=B;G.output=M(r);j.output=G.output;j.globstar=true;K(B);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&!o&&H()){j.output=j.output.slice(0,-(n.output+G.output).length);n.output=`(?:${n.output}`;G.type="globstar";G.output=M(r)+(r.strictSlashes?")":"|$)");G.value+=B;j.globstar=true;j.output+=n.output+G.output;K(B);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&e[0]==="/"){const t=e[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(n.output+G.output).length);n.output=`(?:${n.output}`;G.type="globstar";G.output=`${M(r)}${v}|${v}${t})`;G.value+=B;j.output+=n.output+G.output;j.globstar=true;K(B+W());Z({type:"slash",value:"/",output:""});continue}if(n.type==="bos"&&e[0]==="/"){G.type="globstar";G.value+=B;G.output=`(?:^|${v}|${M(r)}${v})`;j.output=G.output;j.globstar=true;K(B+W());Z({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-G.output.length);G.type="globstar";G.output=M(r);G.value+=B;j.output+=G.output;j.globstar=true;K(B);continue}const n={type:"star",value:B,output:F};if(r.bash===true){n.output=".*?";if(G.type==="bos"||G.type==="slash"){n.output=L+n.output}Z(n);continue}if(G&&(G.type==="bracket"||G.type==="paren")&&r.regex===true){n.output=B;Z(n);continue}if(j.index===j.start||G.type==="slash"||G.type==="dot"){if(G.type==="dot"){j.output+=P;G.output+=P}else if(r.dot===true){j.output+=C;G.output+=C}else{j.output+=L;G.output+=L}if(U()!=="*"){j.output+=T;G.output+=T}}Z(n)}while(j.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(f("closing","]"));j.output=s.escapeLast(j.output,"[");X("brackets")}while(j.parens>0){if(r.strictBrackets===true)throw new SyntaxError(f("closing",")"));j.output=s.escapeLast(j.output,"(");X("parens")}while(j.braces>0){if(r.strictBrackets===true)throw new SyntaxError(f("closing","}"));j.output=s.escapeLast(j.output,"{");X("braces")}if(r.strictSlashes!==true&&(G.type==="star"||G.type==="bracket")){Z({type:"maybe_slash",value:"",output:`${v}?`})}if(j.backtrack===true){j.output="";for(const t of j.tokens){j.output+=t.output!=null?t.output:t.value;if(t.suffix){j.output+=t.suffix}}}return j};p.fastpaths=((t,e)=>{const r={...e};const o=typeof r.maxLength==="number"?Math.min(i,r.maxLength):i;const a=t.length;if(a>o){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`)}t=u[t]||t;const c=s.isWindows(e);const{DOT_LITERAL:l,SLASH_LITERAL:f,ONE_CHAR:p,DOTS_SLASH:d,NO_DOT:h,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:_}=n.globChars(c);const b=r.dot?g:h;const S=r.dot?m:h;const E=r.capture?"":"?:";const v={negated:false,prefix:""};let T=r.bash===true?".*?":y;if(r.capture){T=`(${T})`}const R=t=>{if(t.noglobstar===true)return T;return`(${E}(?:(?!${_}${t.dot?d:l}).)*?)`};const k=t=>{switch(t){case"*":return`${b}${p}${T}`;case".*":return`${l}${p}${T}`;case"*.*":return`${b}${T}${l}${p}${T}`;case"*/*":return`${b}${T}${f}${p}${S}${T}`;case"**":return b+R(r);case"**/*":return`(?:${b}${R(r)}${f})?${S}${p}${T}`;case"**/*.*":return`(?:${b}${R(r)}${f})?${S}${T}${l}${p}${T}`;case"**/.*":return`(?:${b}${R(r)}${f})?${l}${p}${T}`;default:{const e=/^(.*?)\.(\w+)$/.exec(t);if(!e)return;const r=k(e[1]);if(!r)return;return r+l+e[2]}}};const P=s.removePrefix(t,v);let C=k(P);if(C&&r.strictSlashes!==true){C+=`${f}?`}return C});t.exports=p},3322:(t,e,r)=>{"use strict";const n=r(5622);const s=r(2429);const i=r(2139);const o=r(479);const a=r(6099);const c=t=>t&&typeof t==="object"&&!Array.isArray(t);const u=(t,e,r=false)=>{if(Array.isArray(t)){const n=t.map(t=>u(t,e,r));const s=t=>{for(const e of n){const r=e(t);if(r)return r}return false};return s}const n=c(t)&&t.tokens&&t.input;if(t===""||typeof t!=="string"&&!n){throw new TypeError("Expected pattern to be a non-empty string")}const s=e||{};const i=o.isWindows(e);const a=n?u.compileRe(t,e):u.makeRe(t,e,false,true);const l=a.state;delete a.state;let f=()=>false;if(s.ignore){const t={...e,ignore:null,onMatch:null,onResult:null};f=u(s.ignore,t,r)}const p=(r,n=false)=>{const{isMatch:o,match:c,output:p}=u.test(r,a,e,{glob:t,posix:i});const d={glob:t,state:l,regex:a,posix:i,input:r,output:p,match:c,isMatch:o};if(typeof s.onResult==="function"){s.onResult(d)}if(o===false){d.isMatch=false;return n?d:false}if(f(r)){if(typeof s.onIgnore==="function"){s.onIgnore(d)}d.isMatch=false;return n?d:false}if(typeof s.onMatch==="function"){s.onMatch(d)}return n?d:true};if(r){p.state=l}return p};u.test=((t,e,r,{glob:n,posix:s}={})=>{if(typeof t!=="string"){throw new TypeError("Expected input to be a string")}if(t===""){return{isMatch:false,output:""}}const i=r||{};const a=i.format||(s?o.toPosixSlashes:null);let c=t===n;let l=c&&a?a(t):t;if(c===false){l=a?a(t):t;c=l===n}if(c===false||i.capture===true){if(i.matchBase===true||i.basename===true){c=u.matchBase(t,e,r,s)}else{c=e.exec(l)}}return{isMatch:Boolean(c),match:c,output:l}});u.matchBase=((t,e,r,s=o.isWindows(r))=>{const i=e instanceof RegExp?e:u.makeRe(e,r);return i.test(n.basename(t))});u.isMatch=((t,e,r)=>u(e,r)(t));u.parse=((t,e)=>{if(Array.isArray(t))return t.map(t=>u.parse(t,e));return i(t,{...e,fastpaths:false})});u.scan=((t,e)=>s(t,e));u.compileRe=((t,e,r=false,n=false)=>{if(r===true){return t.output}const s=e||{};const i=s.contains?"":"^";const o=s.contains?"":"$";let a=`${i}(?:${t.output})${o}`;if(t&&t.negated===true){a=`^(?!${a}).*$`}const c=u.toRegex(a,e);if(n===true){c.state=t}return c});u.makeRe=((t,e,r=false,n=false)=>{if(!t||typeof t!=="string"){throw new TypeError("Expected a non-empty string")}const s=e||{};let o={negated:false,fastpaths:true};let a="";let c;if(t.startsWith("./")){t=t.slice(2);a=o.prefix="./"}if(s.fastpaths!==false&&(t[0]==="."||t[0]==="*")){c=i.fastpaths(t,e)}if(c===undefined){o=i(t,e);o.prefix=a+(o.prefix||"")}else{o.output=c}return u.compileRe(o,e,r,n)});u.toRegex=((t,e)=>{try{const r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(t){if(e&&e.debug===true)throw t;return/$^/}});u.constants=a;t.exports=u},2429:(t,e,r)=>{"use strict";const n=r(479);const{CHAR_ASTERISK:s,CHAR_AT:i,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:h,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:_}=r(6099);const b=t=>{return t===l||t===o};const S=t=>{if(t.isPrefix!==true){t.depth=t.isGlobstar?Infinity:1}};const E=(t,e)=>{const r=e||{};const E=t.length-1;const v=r.parts===true||r.scanToEnd===true;const T=[];const R=[];const k=[];let P=t;let C=-1;let A=0;let O=0;let w=false;let x=false;let M=false;let L=false;let D=false;let F=false;let j=false;let I=false;let $=false;let N=0;let G;let B;let H={value:"",depth:0,isGlob:false};const U=()=>C>=E;const W=()=>P.charCodeAt(C+1);const V=()=>{G=B;return P.charCodeAt(++C)};while(C0){Q=P.slice(0,A);P=P.slice(A);O-=A}if(K&&M===true&&O>0){K=P.slice(0,O);Y=P.slice(O)}else if(M===true){K="";Y=P}else{K=P}if(K&&K!==""&&K!=="/"&&K!==P){if(b(K.charCodeAt(K.length-1))){K=K.slice(0,-1)}}if(r.unescape===true){if(Y)Y=n.removeBackslashes(Y);if(K&&j===true){K=n.removeBackslashes(K)}}const z={prefix:Q,input:t,start:A,base:K,glob:Y,isBrace:w,isBracket:x,isGlob:M,isExtglob:L,isGlobstar:D,negated:I};if(r.tokens===true){z.maxDepth=0;if(!b(B)){R.push(H)}z.tokens=R}if(r.parts===true||r.tokens===true){let e;for(let n=0;n{"use strict";const n=r(5622);const s=process.platform==="win32";const{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:c}=r(6099);e.isObject=(t=>t!==null&&typeof t==="object"&&!Array.isArray(t));e.hasRegexChars=(t=>a.test(t));e.isRegexChar=(t=>t.length===1&&e.hasRegexChars(t));e.escapeRegex=(t=>t.replace(c,"\\$1"));e.toPosixSlashes=(t=>t.replace(i,"/"));e.removeBackslashes=(t=>{return t.replace(o,t=>{return t==="\\"?"":t})});e.supportsLookbehinds=(()=>{const t=process.version.slice(1).split(".").map(Number);if(t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10){return true}return false});e.isWindows=(t=>{if(t&&typeof t.windows==="boolean"){return t.windows}return s===true||n.sep==="\\"});e.escapeLast=((t,r,n)=>{const s=t.lastIndexOf(r,n);if(s===-1)return t;if(t[s-1]==="\\")return e.escapeLast(t,r,s-1);return`${t.slice(0,s)}\\${t.slice(s)}`});e.removePrefix=((t,e={})=>{let r=t;if(r.startsWith("./")){r=r.slice(2);e.prefix="./"}return r});e.wrapOutput=((t,e={},r={})=>{const n=r.contains?"":"^";const s=r.contains?"":"$";let i=`${n}(?:${t})${s}`;if(e.negated===true){i=`(?:^(?!${i}).*$)`}return i})},9795:t=>{let e;t.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(globalThis):t=>(e||(e=Promise.resolve())).then(t).catch(t=>setTimeout(()=>{throw t},0))},2113:t=>{"use strict";function reusify(t){var e=new t;var r=e;function get(){var n=e;if(n.next){e=n.next}else{e=new t;r=e}n.next=null;return n}function release(t){r.next=t;r=t}return{get:get,release:release}}t.exports=reusify},5288:(t,e,r)=>{t.exports=runParallel;const n=r(9795);function runParallel(t,e){let r,s,i;let o=true;if(Array.isArray(t)){r=[];s=t.length}else{i=Object.keys(t);r={};s=i.length}function done(t){function end(){if(e)e(t,r);e=null}if(o)n(end);else end()}function each(t,e,n){r[t]=n;if(--s===0||e){done(e)}}if(!s){done(null)}else if(i){i.forEach(function(e){t[e](function(t,r){each(e,t,r)})})}else{t.forEach(function(t,e){t(function(t,r){each(e,t,r)})})}o=false}},4966:(t,e,r)=>{const{GitExecutor:n}=r(4701);const{SimpleGitApi:s}=r(999);const{Scheduler:i}=r(3421);const{GitLogger:o}=r(7178);const{adhocExecTask:a,configurationErrorTask:c}=r(2815);const{NOOP:u,asArray:l,filterArray:f,filterPrimitives:p,filterString:d,filterStringOrStringArray:h,filterType:g,folderExists:m,getTrailingOptions:y,trailingFunctionArgument:_,trailingOptionsArgument:b}=r(847);const{applyPatchTask:S}=r(4931);const{branchTask:E,branchLocalTask:v,deleteBranchesTask:T,deleteBranchTask:R}=r(17);const{checkIgnoreTask:k}=r(3293);const{checkIsRepoTask:P}=r(221);const{cloneTask:C,cloneMirrorTask:A}=r(3173);const{addConfigTask:O,listConfigTask:w}=r(7597);const{cleanWithOptionsTask:x,isCleanOptionsArray:M}=r(4386);const{commitTask:L}=r(5494);const{diffSummaryTask:D}=r(9241);const{fetchTask:F}=r(8823);const{hashObjectTask:j}=r(8199);const{initTask:I}=r(6016);const{logTask:$,parseLogOptions:N}=r(8627);const{mergeTask:G}=r(8829);const{moveTask:B}=r(6520);const{pullTask:H}=r(4636);const{pushTagsTask:U}=r(1435);const{addRemoteTask:W,getRemotesTask:V,listRemotesTask:K,remoteTask:Q,removeRemoteTask:Y}=r(9866);const{getResetMode:z,resetTask:X}=r(2377);const{stashListTask:Z}=r(810);const{statusTask:J}=r(9197);const{addSubModuleTask:q,initSubModuleTask:tt,subModuleTask:et,updateSubModuleTask:rt}=r(8772);const{addAnnotatedTagTask:nt,addTagTask:st,tagListTask:it}=r(8540);const{straightThroughBufferTask:ot,straightThroughStringTask:at}=r(2815);function Git(t,e){this._executor=new n(t.binary,t.baseDir,new i(t.maxConcurrentProcesses),e);this._logger=new o}(Git.prototype=Object.create(s.prototype)).constructor=Git;Git.prototype._logger=null;Git.prototype.customBinary=function(t){this._executor.binary=t;return this};Git.prototype.env=function(t,e){if(arguments.length===1&&typeof t==="object"){this._executor.env=t}else{(this._executor.env=this._executor.env||{})[t]=e}return this};Git.prototype.cwd=function(t){const e=typeof t!=="string"?c("Git.cwd: workingDirectory must be supplied as a string"):a(()=>{if(!m(t)){throw new Error(`Git.cwd: cannot change to non-directory "${t}"`)}return this._executor.cwd=t});return this._runTask(e,_(arguments)||u)};Git.prototype.outputHandler=function(t){this._executor.outputHandler=t;return this};Git.prototype.init=function(t,e){return this._runTask(I(t===true,this._executor.cwd,y(arguments)),_(arguments))};Git.prototype.status=function(){return this._runTask(J(y(arguments)),_(arguments))};Git.prototype.stashList=function(t){return this._runTask(Z(b(arguments)||{},f(t)&&t||[]),_(arguments))};Git.prototype.stash=function(t,e){return this._runTask(at(["stash",...y(arguments)]),_(arguments))};function createCloneTask(t,e,r,n){if(typeof r!=="string"){return c(`git.${t}() requires a string 'repoPath'`)}return e(r,g(n,d),y(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",C,...arguments),_(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",A,...arguments),_(arguments))};Git.prototype.mv=function(t,e){return this._runTask(B(t,e),_(arguments))};Git.prototype.checkoutLatestTag=function(t){var e=this;return this.pull(function(){e.tags(function(r,n){e.checkout(n.latest,t)})})};Git.prototype.commit=function(t,e,r,n){const s=_(arguments);const i=[];if(h(t)){i.push(...l(t))}else{console.warn("simple-git deprecation notice: git.commit: requires the commit message to be supplied as a string/string[], this will be an error in version 3")}return this._runTask(L(i,l(g(e,h,[])),[...g(r,f,[]),...y(arguments,0,true)]),s)};Git.prototype.pull=function(t,e,r,n){return this._runTask(H(g(t,d),g(e,d),y(arguments)),_(arguments))};Git.prototype.fetch=function(t,e){return this._runTask(F(g(t,d),g(e,d),y(arguments)),_(arguments))};Git.prototype.silent=function(t){console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3");this._logger.silent(!!t);return this};Git.prototype.tags=function(t,e){return this._runTask(it(y(arguments)),_(arguments))};Git.prototype.rebase=function(){return this._runTask(at(["rebase",...y(arguments)]),_(arguments))};Git.prototype.reset=function(t){return this._runTask(X(z(t),y(arguments)),_(arguments))};Git.prototype.revert=function(t){const e=_(arguments);if(typeof t!=="string"){return this._runTask(c("Commit must be a string"),e)}return this._runTask(at(["revert",...y(arguments,0,true),t]),e)};Git.prototype.addTag=function(t){const e=typeof t==="string"?st(t):c("Git.addTag requires a tag name");return this._runTask(e,_(arguments))};Git.prototype.addAnnotatedTag=function(t,e){return this._runTask(nt(t,e),_(arguments))};Git.prototype.checkout=function(){const t=["checkout",...y(arguments,true)];return this._runTask(at(t),_(arguments))};Git.prototype.checkoutBranch=function(t,e,r){return this.checkout(["-b",t,e],_(arguments))};Git.prototype.checkoutLocalBranch=function(t,e){return this.checkout(["-b",t],_(arguments))};Git.prototype.deleteLocalBranch=function(t,e,r){return this._runTask(R(t,typeof e==="boolean"?e:false),_(arguments))};Git.prototype.deleteLocalBranches=function(t,e,r){return this._runTask(T(t,typeof e==="boolean"?e:false),_(arguments))};Git.prototype.branch=function(t,e){return this._runTask(E(y(arguments)),_(arguments))};Git.prototype.branchLocal=function(t){return this._runTask(v(),_(arguments))};Git.prototype.addConfig=function(t,e,r,n){return this._runTask(O(t,e,typeof r==="boolean"?r:false),_(arguments))};Git.prototype.listConfig=function(){return this._runTask(w(),_(arguments))};Git.prototype.raw=function(t){const e=!Array.isArray(t);const r=[].slice.call(e?arguments:t,0);for(let t=0;t{const{gitP:n}=r(941);const{esModuleFactory:s,gitInstanceFactory:i,gitExportFactory:o}=r(9846);t.exports=s(o(i,{gitP:n}))},4732:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(1876);const s=r(5757);const i=r(19);const o=r(5131);const a=r(740);const c=r(221);const u=r(4386);const l=r(2377);const f={CheckRepoActions:c.CheckRepoActions,CleanOptions:u.CleanOptions,GitConstructError:n.GitConstructError,GitError:s.GitError,GitPluginError:i.GitPluginError,GitResponseError:o.GitResponseError,ResetMode:l.ResetMode,TaskConfigurationError:a.TaskConfigurationError};e.default=f},1876:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.GitConstructError=void 0;const n=r(5757);class GitConstructError extends n.GitError{constructor(t,e){super(undefined,e);this.config=t}}e.GitConstructError=GitConstructError},5757:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.GitError=void 0;class GitError extends Error{constructor(t,e){super(e);this.task=t;Object.setPrototypeOf(this,new.target.prototype)}}e.GitError=GitError},19:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.GitPluginError=void 0;const n=r(5757);class GitPluginError extends n.GitError{constructor(t,e,r){super(t,r);this.task=t;this.plugin=e;Object.setPrototypeOf(this,new.target.prototype)}}e.GitPluginError=GitPluginError},5131:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.GitResponseError=void 0;const n=r(5757);class GitResponseError extends n.GitError{constructor(t,e){super(undefined,e||String(t));this.git=t}}e.GitResponseError=GitResponseError},740:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.TaskConfigurationError=void 0;const n=r(5757);class TaskConfigurationError extends n.GitError{constructor(t){super(undefined,t)}}e.TaskConfigurationError=TaskConfigurationError},9846:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.gitInstanceFactory=e.gitExportFactory=e.esModuleFactory=void 0;const n=r(4966);const s=r(4732);const i=r(8078);const o=r(847);function esModuleFactory(t){return Object.defineProperties(t,{__esModule:{value:true},default:{value:t}})}e.esModuleFactory=esModuleFactory;function gitExportFactory(t,e){return Object.assign(function(...e){return t.apply(null,e)},s.default,e||{})}e.gitExportFactory=gitExportFactory;function gitInstanceFactory(t,e){const r=new i.PluginStore;const a=o.createInstanceConfig(t&&(typeof t==="string"?{baseDir:t}:t)||{},e);if(!o.folderExists(a.baseDir)){throw new s.default.GitConstructError(a,`Cannot use simple-git on a directory that does not exist`)}if(Array.isArray(a.config)){r.add(i.commandConfigPrefixingPlugin(a.config))}a.progress&&r.add(i.progressMonitorPlugin(a.progress));a.timeout&&r.add(i.timeoutPlugin(a.timeout));return new n(a,r)}e.gitInstanceFactory=gitInstanceFactory},7178:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.GitLogger=e.createLogger=e.log=void 0;const n=r(8231);const s=r(847);n.default.formatters.L=(t=>String(s.filterHasLength(t)?t.length:"-"));n.default.formatters.B=(t=>{if(Buffer.isBuffer(t)){return t.toString("utf8")}return s.objectToString(t)});e.log=n.default("simple-git");function prefixedLogger(t,e,r){if(!e||!String(e).replace(/\s*/,"")){return!r?t:(e,...n)=>{t(e,...n);r(e,...n)}}return(n,...s)=>{t(`%s ${n}`,e,...s);if(r){r(n,...s)}}}function childLoggerName(t,e,{namespace:r}){if(typeof t==="string"){return t}const n=e&&e.namespace||"";if(n.startsWith(r)){return n.substr(r.length+1)}return n||r}function createLogger(t,r,n,i=e.log){const o=t&&`[${t}]`||"";const a=[];const c=typeof r==="string"?i.extend(r):r;const u=childLoggerName(s.filterType(r,s.filterString),c,i);return step(n);function child(e){return s.append(a,createLogger(t,c&&c.extend(e)||e))}function sibling(e,r){return s.append(a,createLogger(t,u.replace(/^[^:]+/,e),r,i))}function step(e){const r=e&&`[${e}]`||"";const n=c&&prefixedLogger(c,r)||s.NOOP;const a=prefixedLogger(i,`${o} ${r}`,n);return Object.assign(c?n:a,{key:u,label:t,child:child,sibling:sibling,debug:n,info:a,step:step})}}e.createLogger=createLogger;class GitLogger{constructor(t=e.log){this._out=t;this.error=prefixedLogger(t,"[ERROR]");this.warn=prefixedLogger(t,"[WARN]")}silent(t=false){if(t!==this._out.enabled){return}const{namespace:e}=this._out;const r=(process.env.DEBUG||"").split(",").filter(t=>!!t);const i=r.includes(e);const o=r.includes(`-${e}`);if(!t){if(o){s.remove(r,`-${e}`)}else{r.push(e)}}else{if(i){s.remove(r,e)}else{r.push(`-${e}`)}}n.default.enable(r.join(","))}}e.GitLogger=GitLogger},6086:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.hasBranchDeletionError=e.parseBranchDeletions=void 0;const n=r(3755);const s=r(847);const i=/(\S+)\s+\(\S+\s([^)]+)\)/;const o=/^error[^']+'([^']+)'/m;const a=[new s.LineParser(i,(t,[e,r])=>{const s=n.branchDeletionSuccess(e,r);t.all.push(s);t.branches[e]=s}),new s.LineParser(o,(t,[e])=>{const r=n.branchDeletionFailure(e);t.errors.push(r);t.all.push(r);t.branches[e]=r})];const c=t=>{return s.parseStringResponse(new n.BranchDeletionBatch,a,t)};e.parseBranchDeletions=c;function hasBranchDeletionError(t,e){return e===s.ExitCodes.ERROR&&o.test(t)}e.hasBranchDeletionError=hasBranchDeletionError},9264:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseBranchSummary=void 0;const n=r(4446);const s=r(847);const i=[new s.LineParser(/^(\*\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(t,[e,r,n,s])=>{t.push(!!e,true,r,n,s)}),new s.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/s,(t,[e,r,n,s])=>{t.push(!!e,false,r,n,s)})];function parseBranchSummary(t){return s.parseStringResponse(new n.BranchSummaryResult,i,t)}e.parseBranchSummary=parseBranchSummary},3026:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseCommitResult=void 0;const n=r(847);const s=[new n.LineParser(/\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(t,[e,r,n])=>{t.branch=e;t.commit=n;t.root=!!r}),new n.LineParser(/\s*Author:\s(.+)/i,(t,[e])=>{const r=e.split("<");const n=r.pop();if(!n||!n.includes("@")){return}t.author={email:n.substr(0,n.length-1),name:r.join("<").trim()}}),new n.LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(t,[e,r,n])=>{t.summary.changes=parseInt(e,10)||0;t.summary.insertions=parseInt(r,10)||0;t.summary.deletions=parseInt(n,10)||0}),new n.LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(t,[e,r,n])=>{t.summary.changes=parseInt(e,10)||0;const s=parseInt(r,10)||0;if(n==="-"){t.summary.deletions=s}else if(n==="+"){t.summary.insertions=s}})];function parseCommitResult(t){const e={author:null,branch:"",commit:"",root:false,summary:{changes:0,insertions:0,deletions:0}};return n.parseStringResponse(e,s,t)}e.parseCommitResult=parseCommitResult},2024:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseDiffResult=void 0;const n=r(4781);function parseDiffResult(t){const e=t.trim().split("\n");const r=new n.DiffSummary;readSummaryLine(r,e.pop());for(let t=0,n=e.length;t ([0-9.]+) ([a-z]+)$/);if(r){e.push({file:r[1].trim(),before:+r[2],after:+r[3],binary:true});return true}return false}},6254:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseFetchResult=void 0;const n=r(847);const s=[new n.LineParser(/From (.+)$/,(t,[e])=>{t.remote=e}),new n.LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(t,[e,r])=>{t.branches.push({name:e,tracking:r})}),new n.LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(t,[e,r])=>{t.tags.push({name:e,tracking:r})})];function parseFetchResult(t,e){const r={raw:t,remote:null,branches:[],tags:[]};return n.parseStringResponse(r,s,t,e)}e.parseFetchResult=parseFetchResult},9729:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createListLogSummaryParser=e.SPLITTER=e.COMMIT_BOUNDARY=e.START_BOUNDARY=void 0;const n=r(847);const s=r(2024);e.START_BOUNDARY="òòòòòò ";e.COMMIT_BOUNDARY=" òò";e.SPLITTER=" ò ";const i=["hash","date","message","refs","author_name","author_email"];function lineBuilder(t,e){return e.reduce((e,r,n)=>{e[r]=t[n]||"";return e},Object.create({diff:null}))}function createListLogSummaryParser(t=e.SPLITTER,r=i){return function(i){const o=n.toLinesWithContent(i,true,e.START_BOUNDARY).map(function(n){const i=n.trim().split(e.COMMIT_BOUNDARY);const o=lineBuilder(i[0].trim().split(t),r);if(i.length>1&&!!i[1].trim()){o.diff=s.parseDiffResult(i[1])}return o});return{all:o,latest:o.length&&o[0]||null,total:o.length}}}e.createListLogSummaryParser=createListLogSummaryParser},6412:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseMergeDetail=e.parseMergeResult=void 0;const n=r(1651);const s=r(847);const i=r(5658);const o=[new s.LineParser(/^Auto-merging\s+(.+)$/,(t,[e])=>{t.merges.push(e)}),new s.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(t,[e,r])=>{t.conflicts.push(new n.MergeSummaryConflict(e,r))}),new s.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(t,[e,r,s])=>{t.conflicts.push(new n.MergeSummaryConflict(e,r,{deleteRef:s}))}),new s.LineParser(/^CONFLICT\s+\((.+)\):/,(t,[e])=>{t.conflicts.push(new n.MergeSummaryConflict(e,null))}),new s.LineParser(/^Automatic merge failed;\s+(.+)$/,(t,[e])=>{t.result=e})];const a=(t,r)=>{return Object.assign(e.parseMergeDetail(t,r),i.parsePullResult(t,r))};e.parseMergeResult=a;const c=t=>{return s.parseStringResponse(new n.MergeSummaryDetail,o,t)};e.parseMergeDetail=c},7444:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseMoveResult=void 0;const n=r(847);const s=[new n.LineParser(/^Renaming (.+) to (.+)$/,(t,[e,r])=>{t.moves.push({from:e,to:r})})];function parseMoveResult(t){return n.parseStringResponse({moves:[]},s,t)}e.parseMoveResult=parseMoveResult},5658:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parsePullResult=e.parsePullDetail=void 0;const n=r(3567);const s=r(847);const i=r(2661);const o=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;const a=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;const c=/^(create|delete) mode \d+ (.+)/;const u=[new s.LineParser(o,(t,[e,r,n])=>{t.files.push(e);if(r){t.insertions[e]=r.length}if(n){t.deletions[e]=n.length}}),new s.LineParser(a,(t,[e,,r,,n])=>{if(r!==undefined||n!==undefined){t.summary.changes=+e||0;t.summary.insertions=+r||0;t.summary.deletions=+n||0;return true}return false}),new s.LineParser(c,(t,[e,r])=>{s.append(t.files,r);s.append(e==="create"?t.created:t.deleted,r)})];const l=(t,e)=>{return s.parseStringResponse(new n.PullSummary,u,t,e)};e.parsePullDetail=l;const f=(t,r)=>{return Object.assign(new n.PullSummary,e.parsePullDetail(t,r),i.parseRemoteMessages(t,r))};e.parsePullResult=f},8530:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parsePushDetail=e.parsePushResult=void 0;const n=r(847);const s=r(2661);function pushResultPushedItem(t,e,r){const n=r.includes("deleted");const s=r.includes("tag")||/^refs\/tags/.test(t);const i=!r.includes("new");return{deleted:n,tag:s,branch:!s,new:!i,alreadyUpdated:i,local:t,remote:e}}const i=[new n.LineParser(/^Pushing to (.+)$/,(t,[e])=>{t.repo=e}),new n.LineParser(/^updating local tracking ref '(.+)'/,(t,[e])=>{t.ref=Object.assign(Object.assign({},t.ref||{}),{local:e})}),new n.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,(t,[e,r,n])=>{t.pushed.push(pushResultPushedItem(e,r,n))}),new n.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(t,[e,r,n])=>{t.branch=Object.assign(Object.assign({},t.branch||{}),{local:e,remote:r,remoteName:n})}),new n.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(t,[e,r,n,s])=>{t.update={head:{local:e,remote:r},hash:{from:n,to:s}}})];const o=(t,r)=>{const n=e.parsePushDetail(t,r);const i=s.parseRemoteMessages(t,r);return Object.assign(Object.assign({},n),i)};e.parsePushResult=o;const a=(t,e)=>{return n.parseStringResponse({pushed:[]},i,t,e)};e.parsePushDetail=a},2661:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.RemoteMessageSummary=e.parseRemoteMessages=void 0;const n=r(847);const s=r(3565);const i=[new n.RemoteLineParser(/^remote:\s*(.+)$/,(t,[e])=>{t.remoteMessages.all.push(e.trim());return false}),...s.remoteMessagesObjectParsers,new n.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(t,[e])=>{t.remoteMessages.pullRequestUrl=e}),new n.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(t,[e,r,s])=>{t.remoteMessages.vulnerabilities={count:n.asNumber(e),summary:r,url:s}})];function parseRemoteMessages(t,e){return n.parseStringResponse({remoteMessages:new RemoteMessageSummary},i,e)}e.parseRemoteMessages=parseRemoteMessages;class RemoteMessageSummary{constructor(){this.all=[]}}e.RemoteMessageSummary=RemoteMessageSummary},3565:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.remoteMessagesObjectParsers=void 0;const n=r(847);function objectEnumerationResult(t){return t.objects=t.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function asObjectCount(t){const e=/^\s*(\d+)/.exec(t);const r=/delta (\d+)/i.exec(t);return{count:n.asNumber(e&&e[1]||"0"),delta:n.asNumber(r&&r[1]||"0")}}e.remoteMessagesObjectParsers=[new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(t,[e,r])=>{const s=e.toLowerCase();const i=objectEnumerationResult(t.remoteMessages);Object.assign(i,{[s]:n.asNumber(r)})}),new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(t,[e,r])=>{const s=e.toLowerCase();const i=objectEnumerationResult(t.remoteMessages);Object.assign(i,{[s]:n.asNumber(r)})}),new n.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(t,[e,r,s])=>{const i=objectEnumerationResult(t.remoteMessages);i.total=asObjectCount(e);i.reused=asObjectCount(r);i.packReused=n.asNumber(s)})]},2581:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.commandConfigPrefixingPlugin=void 0;const n=r(847);function commandConfigPrefixingPlugin(t){const e=n.prefixedArray(t,"-c");return{type:"spawn.args",action(t){return[...e,...t]}}}e.commandConfigPrefixingPlugin=commandConfigPrefixingPlugin},8078:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){if(n===undefined)n=r;Object.defineProperty(t,n,{enumerable:true,get:function(){return e[r]}})}:function(t,e,r,n){if(n===undefined)n=r;t[n]=e[r]});var s=this&&this.__exportStar||function(t,e){for(var r in t)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r))n(e,t,r)};Object.defineProperty(e,"__esModule",{value:true});s(r(2581),e);s(r(5067),e);s(r(1738),e);s(r(8436),e);s(r(9504),e)},5067:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.PluginStore=void 0;const n=r(847);class PluginStore{constructor(){this.plugins=new Set}add(t){const e=[];n.asArray(t).forEach(t=>t&&this.plugins.add(n.append(e,t)));return()=>{e.forEach(t=>this.plugins.delete(t))}}exec(t,e,r){let n=e;const s=Object.freeze(Object.create(r));for(const e of this.plugins){if(e.type===t){n=e.action(n,s)}}return n}}e.PluginStore=PluginStore},1738:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.progressMonitorPlugin=void 0;const n=r(847);function progressMonitorPlugin(t){const e="--progress";const r=["checkout","clone","fetch","pull","push"];const s={type:"spawn.after",action(r,s){var i;if(!s.commands.includes(e)){return}(i=s.spawned.stderr)===null||i===void 0?void 0:i.on("data",e=>{const r=/^([a-zA-Z ]+):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(e.toString("utf8"));if(!r){return}t({method:s.method,stage:progressEventStage(r[1]),progress:n.asNumber(r[2]),processed:n.asNumber(r[3]),total:n.asNumber(r[4])})})}};const i={type:"spawn.args",action(t,s){if(!r.includes(s.method)){return t}return n.including(t,e)}};return[i,s]}e.progressMonitorPlugin=progressMonitorPlugin;function progressEventStage(t){return String(t.toLowerCase().split(" ",1))||"unknown"}},8436:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true})},9504:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.timeoutPlugin=void 0;const n=r(19);function timeoutPlugin({block:t}){if(t>0){return{type:"spawn.after",action(e,r){var s,i;let o;function wait(){o&&clearTimeout(o);o=setTimeout(kill,t)}function stop(){var t,e;(t=r.spawned.stdout)===null||t===void 0?void 0:t.off("data",wait);(e=r.spawned.stderr)===null||e===void 0?void 0:e.off("data",wait);r.spawned.off("exit",stop);r.spawned.off("close",stop)}function kill(){stop();r.kill(new n.GitPluginError(undefined,"timeout",`block timeout reached`))}(s=r.spawned.stdout)===null||s===void 0?void 0:s.on("data",wait);(i=r.spawned.stderr)===null||i===void 0?void 0:i.on("data",wait);r.spawned.on("exit",stop);r.spawned.on("close",stop);wait()}}}}e.timeoutPlugin=timeoutPlugin},3755:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.isSingleBranchDeleteFailure=e.branchDeletionFailure=e.branchDeletionSuccess=e.BranchDeletionBatch=void 0;class BranchDeletionBatch{constructor(){this.all=[];this.branches={};this.errors=[]}get success(){return!this.errors.length}}e.BranchDeletionBatch=BranchDeletionBatch;function branchDeletionSuccess(t,e){return{branch:t,hash:e,success:true}}e.branchDeletionSuccess=branchDeletionSuccess;function branchDeletionFailure(t){return{branch:t,hash:null,success:false}}e.branchDeletionFailure=branchDeletionFailure;function isSingleBranchDeleteFailure(t){return t.success}e.isSingleBranchDeleteFailure=isSingleBranchDeleteFailure},4446:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.BranchSummaryResult=void 0;class BranchSummaryResult{constructor(){this.all=[];this.branches={};this.current="";this.detached=false}push(t,e,r,n,s){if(t){this.detached=e;this.current=r}this.all.push(r);this.branches[r]={current:t,name:r,commit:n,label:s}}}e.BranchSummaryResult=BranchSummaryResult},9926:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseCheckIgnore=void 0;const r=t=>{return t.split(/\n/g).map(t=>t.trim()).filter(t=>!!t)};e.parseCheckIgnore=r},5689:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.cleanSummaryParser=e.CleanResponse=void 0;const n=r(847);class CleanResponse{constructor(t){this.dryRun=t;this.paths=[];this.files=[];this.folders=[]}}e.CleanResponse=CleanResponse;const s=/^[a-z]+\s*/i;const i=/^[a-z]+\s+[a-z]+\s*/i;const o=/\/$/;function cleanSummaryParser(t,e){const r=new CleanResponse(t);const a=t?i:s;n.toLinesWithContent(e).forEach(t=>{const e=t.replace(a,"");r.paths.push(e);(o.test(e)?r.folders:r.files).push(e)});return r}e.cleanSummaryParser=cleanSummaryParser},7219:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.configListParser=e.ConfigList=void 0;const n=r(847);class ConfigList{constructor(){this.files=[];this.values=Object.create(null)}get all(){if(!this._all){this._all=this.files.reduce((t,e)=>{return Object.assign(t,this.values[e])},{})}return this._all}addFile(t){if(!(t in this.values)){const e=n.last(this.files);this.values[t]=e?Object.create(this.values[e]):{};this.files.push(t)}return this.values[t]}addValue(t,e,r){const n=this.addFile(t);if(!n.hasOwnProperty(e)){n[e]=r}else if(Array.isArray(n[e])){n[e].push(r)}else{n[e]=[n[e],r]}this._all=undefined}}e.ConfigList=ConfigList;function configListParser(t){const e=new ConfigList;const r=t.split("\0");for(let t=0,s=r.length-1;t{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.DiffSummary=void 0;class DiffSummary{constructor(){this.changed=0;this.deletions=0;this.insertions=0;this.files=[]}}e.DiffSummary=DiffSummary},860:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.FileStatusSummary=e.fromPathRegex=void 0;e.fromPathRegex=/^(.+) -> (.+)$/;class FileStatusSummary{constructor(t,r,n){this.path=t;this.index=r;this.working_dir=n;if("R"===r+n){const r=e.fromPathRegex.exec(t)||[null,t,t];this.from=r[1]||"";this.path=r[2]||""}}}e.FileStatusSummary=FileStatusSummary},9999:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseGetRemotesVerbose=e.parseGetRemotes=void 0;const n=r(847);function parseGetRemotes(t){const e={};forEach(t,([t])=>e[t]={name:t});return Object.values(e)}e.parseGetRemotes=parseGetRemotes;function parseGetRemotesVerbose(t){const e={};forEach(t,([t,r,n])=>{if(!e.hasOwnProperty(t)){e[t]={name:t,refs:{fetch:"",push:""}}}if(n&&r){e[t].refs[n.replace(/[^a-z]/g,"")]=r}});return Object.values(e)}e.parseGetRemotesVerbose=parseGetRemotesVerbose;function forEach(t,e){n.forEachLineWithContent(t,t=>e(t.split(/\s+/)))}},8690:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseInit=e.InitSummary=void 0;class InitSummary{constructor(t,e,r,n){this.bare=t;this.path=e;this.existing=r;this.gitDir=n}}e.InitSummary=InitSummary;const r=/^Init.+ repository in (.+)$/;const n=/^Rein.+ in (.+)$/;function parseInit(t,e,s){const i=String(s).trim();let o;if(o=r.exec(i)){return new InitSummary(t,e,false,o[1])}if(o=n.exec(i)){return new InitSummary(t,e,true,o[1])}let a="";const c=i.split(" ");while(c.length){const t=c.shift();if(t==="in"){a=c.join(" ");break}}return new InitSummary(t,e,/^re/i.test(i),a)}e.parseInit=parseInit},1651:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.MergeSummaryDetail=e.MergeSummaryConflict=void 0;class MergeSummaryConflict{constructor(t,e=null,r){this.reason=t;this.file=e;this.meta=r}toString(){return`${this.file}:${this.reason}`}}e.MergeSummaryConflict=MergeSummaryConflict;class MergeSummaryDetail{constructor(){this.conflicts=[];this.merges=[];this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){if(this.conflicts.length){return`CONFLICTS: ${this.conflicts.join(", ")}`}return"OK"}}e.MergeSummaryDetail=MergeSummaryDetail},3567:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.PullSummary=void 0;class PullSummary{constructor(){this.remoteMessages={all:[]};this.created=[];this.deleted=[];this.files=[];this.deletions={};this.insertions={};this.summary={changes:0,deletions:0,insertions:0}}}e.PullSummary=PullSummary},6790:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseStatusSummary=e.StatusSummary=void 0;const n=r(847);const s=r(860);class StatusSummary{constructor(){this.not_added=[];this.conflicted=[];this.created=[];this.deleted=[];this.modified=[];this.renamed=[];this.files=[];this.staged=[];this.ahead=0;this.behind=0;this.current=null;this.tracking=null}isClean(){return!this.files.length}}e.StatusSummary=StatusSummary;var i;(function(t){t["ADDED"]="A";t["DELETED"]="D";t["MODIFIED"]="M";t["RENAMED"]="R";t["COPIED"]="C";t["UNMERGED"]="U";t["UNTRACKED"]="?";t["IGNORED"]="!";t["NONE"]=" "})(i||(i={}));function renamedFile(t){const e=/^(.+) -> (.+)$/.exec(t);if(!e){return{from:t,to:t}}return{from:String(e[1]),to:String(e[2])}}function parser(t,e,r){return[`${t}${e}`,r]}function conflicts(t,...e){return e.map(e=>parser(t,e,(t,e)=>n.append(t.conflicted,e)))}const o=new Map([parser(i.NONE,i.ADDED,(t,e)=>n.append(t.created,e)),parser(i.NONE,i.DELETED,(t,e)=>n.append(t.deleted,e)),parser(i.NONE,i.MODIFIED,(t,e)=>n.append(t.modified,e)),parser(i.ADDED,i.NONE,(t,e)=>n.append(t.created,e)&&n.append(t.staged,e)),parser(i.ADDED,i.MODIFIED,(t,e)=>n.append(t.created,e)&&n.append(t.staged,e)&&n.append(t.modified,e)),parser(i.DELETED,i.NONE,(t,e)=>n.append(t.deleted,e)&&n.append(t.staged,e)),parser(i.MODIFIED,i.NONE,(t,e)=>n.append(t.modified,e)&&n.append(t.staged,e)),parser(i.MODIFIED,i.MODIFIED,(t,e)=>n.append(t.modified,e)&&n.append(t.staged,e)),parser(i.RENAMED,i.NONE,(t,e)=>{n.append(t.renamed,renamedFile(e))}),parser(i.RENAMED,i.MODIFIED,(t,e)=>{const r=renamedFile(e);n.append(t.renamed,r);n.append(t.modified,r.to)}),parser(i.UNTRACKED,i.UNTRACKED,(t,e)=>n.append(t.not_added,e)),...conflicts(i.ADDED,i.ADDED,i.UNMERGED),...conflicts(i.DELETED,i.DELETED,i.UNMERGED),...conflicts(i.UNMERGED,i.ADDED,i.DELETED,i.UNMERGED),["##",(t,e)=>{const r=/ahead (\d+)/;const n=/behind (\d+)/;const s=/^(.+?(?=(?:\.{3}|\s|$)))/;const i=/\.{3}(\S*)/;const o=/\son\s([\S]+)$/;let a;a=r.exec(e);t.ahead=a&&+a[1]||0;a=n.exec(e);t.behind=a&&+a[1]||0;a=s.exec(e);t.current=a&&a[1];a=i.exec(e);t.tracking=a&&a[1];a=o.exec(e);t.current=a&&a[1]||t.current}]]);const a=function(t){const e=t.trim().split("\n");const r=new StatusSummary;for(let t=0,n=e.length;t{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseTagList=e.TagList=void 0;class TagList{constructor(t,e){this.all=t;this.latest=e}}e.TagList=TagList;const r=function(t,e=false){const r=t.split("\n").map(trimmed).filter(Boolean);if(!e){r.sort(function(t,e){const r=t.split(".");const n=e.split(".");if(r.length===1||n.length===1){return singleSorted(toNumber(r[0]),toNumber(n[0]))}for(let t=0,e=Math.max(r.length,n.length);tt.indexOf(".")>=0);return new TagList(r,n)};e.parseTagList=r;function singleSorted(t,e){const r=isNaN(t);const n=isNaN(e);if(r!==n){return r?1:-1}return r?sorted(t,e):0}function sorted(t,e){return t===e?0:t>e?1:-1}function trimmed(t){return t.trim()}function toNumber(t){if(typeof t==="string"){return parseInt(t.replace(/^\D+/g,""),10)||0}return 0}},8543:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){function adopt(t){return t instanceof r?t:new r(function(e){e(t)})}return new(r||(r=Promise))(function(r,s){function fulfilled(t){try{step(n.next(t))}catch(t){s(t)}}function rejected(t){try{step(n["throw"](t))}catch(t){s(t)}}function step(t){t.done?r(t.value):adopt(t.value).then(fulfilled,rejected)}step((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:true});e.GitExecutorChain=void 0;const s=r(3129);const i=r(5757);const o=r(2815);const a=r(847);const c=r(6676);class GitExecutorChain{constructor(t,e,r){this._executor=t;this._scheduler=e;this._plugins=r;this._chain=Promise.resolve();this._queue=new c.TasksPendingQueue}get binary(){return this._executor.binary}get cwd(){return this._executor.cwd}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(t){this._queue.push(t);return this._chain=this._chain.then(()=>this.attemptTask(t))}attemptTask(t){return n(this,void 0,void 0,function*(){const e=yield this._scheduler.next();const r=()=>this._queue.complete(t);try{const{logger:n}=this._queue.attempt(t);return yield o.isEmptyTask(t)?this.attemptEmptyTask(t,n):this.attemptRemoteTask(t,n)}catch(e){throw this.onFatalException(t,e)}finally{r();e()}})}onFatalException(t,e){const r=e instanceof i.GitError?Object.assign(e,{task:t}):new i.GitError(t,e&&String(e));this._chain=Promise.resolve();this._queue.fatal(r);return r}attemptRemoteTask(t,e){return n(this,void 0,void 0,function*(){const r=this._plugins.exec("spawn.args",[...t.commands],pluginContext(t,t.commands));const n=yield this.gitResponse(t,this.binary,r,this.outputHandler,e.step("SPAWN"));const s=yield this.handleTaskData(t,n,e.step("HANDLE"));e(`passing response to task's parser as a %s`,t.format);if(o.isBufferTask(t)){return a.callTaskParser(t.parser,s)}return a.callTaskParser(t.parser,s.asStrings())})}attemptEmptyTask(t,e){return n(this,void 0,void 0,function*(){e(`empty task bypassing child process to call to task's parser`);return t.parser()})}handleTaskData({onError:t,concatStdErr:e},{exitCode:r,rejection:n,stdOut:s,stdErr:i},o){return new Promise((c,u)=>{o(`Preparing to handle process response exitCode=%d stdOut=`,r);const l=!!(n||r&&i.length);if(l&&t){o.info(`exitCode=%s handling with custom error handler`);o(`concatenate stdErr to stdOut: %j`,e);return t(r,Buffer.concat([...e?s:[],...i]).toString("utf-8"),t=>{o.info(`custom error handler treated as success`);o(`custom error returned a %s`,a.objectToString(t));c(new a.GitOutputStreams(Buffer.isBuffer(t)?t:Buffer.from(String(t)),Buffer.concat(i)))},u)}if(l){o.info(`handling as error: exitCode=%s stdErr=%s rejection=%o`,r,i.length,n);return u(n||Buffer.concat(i).toString("utf-8"))}if(e){o(`concatenating stdErr onto stdOut before processing`);o(`stdErr: $O`,i);s.push(...i)}o.info(`retrieving task output complete`);c(new a.GitOutputStreams(Buffer.concat(s),Buffer.concat(i)))})}gitResponse(t,e,r,i,o){return n(this,void 0,void 0,function*(){const n=o.sibling("output");const a={cwd:this.cwd,env:this.env,windowsHide:true};return new Promise(c=>{const u=[];const l=[];let f=false;let p;function attemptClose(t,e="retry"){if(f||l.length||u.length){o.info(`exitCode=%s event=%s rejection=%o`,t,e,p);c({stdOut:u,stdErr:l,exitCode:t,rejection:p});f=true}if(!f){f=true;setTimeout(()=>attemptClose(t,"deferred"),50);o("received %s event before content on stdOut/stdErr",e)}}o.info(`%s %o`,e,r);o("%O",a);const d=s.spawn(e,r,a);d.stdout.on("data",onDataReceived(u,"stdOut",o,n.step("stdOut")));d.stderr.on("data",onDataReceived(l,"stdErr",o,n.step("stdErr")));d.on("error",onErrorReceived(l,o));d.on("close",t=>attemptClose(t,"close"));d.on("exit",t=>attemptClose(t,"exit"));if(i){o(`Passing child process stdOut/stdErr to custom outputHandler`);i(e,d.stdout,d.stderr,[...r])}this._plugins.exec("spawn.after",undefined,Object.assign(Object.assign({},pluginContext(t,r)),{spawned:d,kill(t){if(d.killed){return}p=t;d.kill("SIGINT")}}))})})}}e.GitExecutorChain=GitExecutorChain;function pluginContext(t,e){return{method:a.first(t.commands)||"",commands:e}}function onErrorReceived(t,e){return r=>{e(`[ERROR] child process exception %o`,r);t.push(Buffer.from(String(r.stack),"ascii"))}}function onDataReceived(t,e,r,n){return s=>{r(`%s received %L bytes`,e,s);n(`%B`,s);t.push(s)}}},4701:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.GitExecutor=void 0;const n=r(8543);class GitExecutor{constructor(t="git",e,r,s){this.binary=t;this.cwd=e;this._scheduler=r;this._plugins=s;this._chain=new n.GitExecutorChain(this,this._scheduler,this._plugins)}chain(){return new n.GitExecutorChain(this,this._scheduler,this._plugins)}push(t){return this._chain.push(t)}}e.GitExecutor=GitExecutor},941:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.gitP=void 0;const n=r(5131);const s=r(9846);const i=["customBinary","env","outputHandler","silent"];const o=["add","addAnnotatedTag","addConfig","addRemote","addTag","applyPatch","binaryCatFile","branch","branchLocal","catFile","checkIgnore","checkIsRepo","checkout","checkoutBranch","checkoutLatestTag","checkoutLocalBranch","clean","clone","commit","cwd","deleteLocalBranch","deleteLocalBranches","diff","diffSummary","exec","fetch","getRemotes","init","listConfig","listRemote","log","merge","mergeFromTo","mirror","mv","pull","push","pushTags","raw","rebase","remote","removeRemote","reset","revert","revparse","rm","rmKeepLocal","show","stash","stashList","status","subModule","submoduleAdd","submoduleInit","submoduleUpdate","tag","tags","updateServerInfo"];function gitP(...t){let e;let r=Promise.resolve();try{e=s.gitInstanceFactory(...t)}catch(t){r=Promise.reject(t)}function builderReturn(){return n}function chainReturn(){return r}const n=[...i,...o].reduce((t,r)=>{const n=o.includes(r);const s=n?asyncWrapper(r,e):syncWrapper(r,e,t);const i=n?chainReturn:builderReturn;Object.defineProperty(t,r,{enumerable:false,configurable:false,value:e?s:i});return t},{});return n;function asyncWrapper(t,e){return function(...n){if(typeof n[n.length]==="function"){throw new TypeError("Promise interface requires that handlers are not supplied inline, "+"trailing function not allowed in call to "+t)}return r.then(function(){return new Promise(function(r,s){const i=(t,e)=>{if(t){return s(toError(t))}r(e)};n.push(i);e[t].apply(e,n)})})}}function syncWrapper(t,e,r){return(...n)=>{e[t](...n);return r}}}e.gitP=gitP;function toError(t){if(t instanceof Error){return t}if(typeof t==="string"){return new Error(t)}return new n.GitResponseError(t)}},3421:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.Scheduler=void 0;const n=r(847);const s=r(9819);const i=r(7178);const o=i.createLogger("","scheduler");const a=(()=>{let t=0;return()=>{t++;const{promise:e,done:r}=s.createDeferred();return{promise:e,done:r,id:t}}})();class Scheduler{constructor(t=2){this.concurrency=t;this.pending=[];this.running=[];o(`Constructed, concurrency=%s`,t)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){o(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}const t=n.append(this.running,this.pending.shift());o(`Attempting id=%s`,t.id);t.done(()=>{o(`Completing id=`,t.id);n.remove(this.running,t);this.schedule()})}next(){const{promise:t,id:e}=n.append(this.pending,a());o(`Scheduling id=%s`,e);this.schedule();return t}}e.Scheduler=Scheduler},6676:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.TasksPendingQueue=void 0;const n=r(5757);const s=r(7178);class TasksPendingQueue{constructor(t="GitExecutor"){this.logLabel=t;this._queue=new Map}withProgress(t){return this._queue.get(t)}createProgress(t){const e=TasksPendingQueue.getName(t.commands[0]);const r=s.createLogger(this.logLabel,e);return{task:t,logger:r,name:e}}push(t){const e=this.createProgress(t);e.logger("Adding task to the queue, commands = %o",t.commands);this._queue.set(t,e);return e}fatal(t){for(const[e,{logger:r}]of Array.from(this._queue.entries())){if(e===t.task){r.info(`Failed %o`,t);r(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)}else{r.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,t.message)}this.complete(e)}if(this._queue.size!==0){throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}}complete(t){const e=this.withProgress(t);if(e){this._queue.delete(t)}}attempt(t){const e=this.withProgress(t);if(!e){throw new n.GitError(undefined,"TasksPendingQueue: attempt called for an unknown task")}e.logger("Starting task");return e}static getName(t="empty"){return`task:${t}:${++TasksPendingQueue.counter}`}}e.TasksPendingQueue=TasksPendingQueue;TasksPendingQueue.counter=0},999:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.SimpleGitApi=void 0;const n=r(8850);const s=r(1435);const i=r(2815);const o=r(847);class SimpleGitApi{constructor(t){this._executor=t}_runTask(t,e){const r=this._executor.chain();const s=r.push(t);if(e){n.taskCallback(t,s,e)}return Object.create(this,{then:{value:s.then.bind(s)},catch:{value:s.catch.bind(s)},_executor:{value:r}})}add(t){return this._runTask(i.straightThroughStringTask(["add",...o.asArray(t)]),o.trailingFunctionArgument(arguments))}push(){const t=s.pushTask({remote:o.filterType(arguments[0],o.filterString),branch:o.filterType(arguments[1],o.filterString)},o.getTrailingOptions(arguments));return this._runTask(t,o.trailingFunctionArgument(arguments))}}e.SimpleGitApi=SimpleGitApi},8850:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.taskCallback=void 0;const n=r(5131);const s=r(847);function taskCallback(t,e,r=s.NOOP){const i=t=>{r(null,t)};const o=e=>{if((e===null||e===void 0?void 0:e.task)===t){if(e instanceof n.GitResponseError){return r(addDeprecationNoticeToError(e))}r(e)}};e.then(i,o)}e.taskCallback=taskCallback;function addDeprecationNoticeToError(t){let e=t=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${t} should be GitResponseError.git.${t}, this will no longer be available in version 3`);e=s.NOOP};return Object.create(t,Object.getOwnPropertyNames(t.git).reduce(descriptorReducer,{}));function descriptorReducer(r,n){if(n in t){return r}r[n]={enumerable:false,configurable:false,get(){e(n);return t.git[n]}};return r}}},4931:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.applyPatchTask=void 0;const n=r(2815);function applyPatchTask(t,e){return n.straightThroughStringTask(["apply",...e,...t])}e.applyPatchTask=applyPatchTask},17:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.deleteBranchTask=e.deleteBranchesTask=e.branchLocalTask=e.branchTask=e.containsDeleteBranchCommand=void 0;const n=r(5131);const s=r(6086);const i=r(9264);function containsDeleteBranchCommand(t){const e=["-d","-D","--delete"];return t.some(t=>e.includes(t))}e.containsDeleteBranchCommand=containsDeleteBranchCommand;function branchTask(t){const e=containsDeleteBranchCommand(t);const r=["branch",...t];if(r.length===1){r.push("-a")}if(!r.includes("-v")){r.splice(1,0,"-v")}return{format:"utf-8",commands:r,parser(t,r){if(e){return s.parseBranchDeletions(t,r).all[0]}return i.parseBranchSummary(t)}}}e.branchTask=branchTask;function branchLocalTask(){const t=i.parseBranchSummary;return{format:"utf-8",commands:["branch","-v"],parser:t}}e.branchLocalTask=branchLocalTask;function deleteBranchesTask(t,e=false){return{format:"utf-8",commands:["branch","-v",e?"-D":"-d",...t],parser(t,e){return s.parseBranchDeletions(t,e)},onError(t,e,r,n){if(!s.hasBranchDeletionError(e,t)){return n(e)}r(e)},concatStdErr:true}}e.deleteBranchesTask=deleteBranchesTask;function deleteBranchTask(t,e=false){const r={format:"utf-8",commands:["branch","-v",e?"-D":"-d",t],parser(e,r){return s.parseBranchDeletions(e,r).branches[t]},onError(t,e,i,o){if(!s.hasBranchDeletionError(e,t)){return o(e)}throw new n.GitResponseError(r.parser(e,""),e)},concatStdErr:true};return r}e.deleteBranchTask=deleteBranchTask},3293:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.checkIgnoreTask=void 0;const n=r(9926);function checkIgnoreTask(t){return{commands:["check-ignore",...t],format:"utf-8",parser:n.parseCheckIgnore}}e.checkIgnoreTask=checkIgnoreTask},221:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.checkIsBareRepoTask=e.checkIsRepoRootTask=e.checkIsRepoTask=e.CheckRepoActions=void 0;const n=r(847);var s;(function(t){t["BARE"]="bare";t["IN_TREE"]="tree";t["IS_REPO_ROOT"]="root"})(s=e.CheckRepoActions||(e.CheckRepoActions={}));const i=(t,e,r,s)=>{if(t===n.ExitCodes.UNCLEAN&&isNotRepoMessage(e)){return r("false")}s(e)};const o=t=>{return t.trim()==="true"};function checkIsRepoTask(t){switch(t){case s.BARE:return checkIsBareRepoTask();case s.IS_REPO_ROOT:return checkIsRepoRootTask()}const e=["rev-parse","--is-inside-work-tree"];return{commands:e,format:"utf-8",onError:i,parser:o}}e.checkIsRepoTask=checkIsRepoTask;function checkIsRepoRootTask(){const t=["rev-parse","--git-dir"];return{commands:t,format:"utf-8",onError:i,parser(t){return/^\.(git)?$/.test(t.trim())}}}e.checkIsRepoRootTask=checkIsRepoRootTask;function checkIsBareRepoTask(){const t=["rev-parse","--is-bare-repository"];return{commands:t,format:"utf-8",onError:i,parser:o}}e.checkIsBareRepoTask=checkIsBareRepoTask;function isNotRepoMessage(t){return/(Not a git repository|Kein Git-Repository)/i.test(t)}},4386:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.isCleanOptionsArray=e.cleanTask=e.cleanWithOptionsTask=e.CleanOptions=e.CONFIG_ERROR_UNKNOWN_OPTION=e.CONFIG_ERROR_MODE_REQUIRED=e.CONFIG_ERROR_INTERACTIVE_MODE=void 0;const n=r(5689);const s=r(847);const i=r(2815);e.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";e.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';e.CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ";var o;(function(t){t["DRY_RUN"]="n";t["FORCE"]="f";t["IGNORED_INCLUDED"]="x";t["IGNORED_ONLY"]="X";t["EXCLUDING"]="e";t["QUIET"]="q";t["RECURSIVE"]="d"})(o=e.CleanOptions||(e.CleanOptions={}));const a=new Set(["i",...s.asStringArray(Object.values(o))]);function cleanWithOptionsTask(t,r){const{cleanMode:n,options:s,valid:o}=getCleanOptions(t);if(!n){return i.configurationErrorTask(e.CONFIG_ERROR_MODE_REQUIRED)}if(!o.options){return i.configurationErrorTask(e.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(t))}s.push(...r);if(s.some(isInteractiveMode)){return i.configurationErrorTask(e.CONFIG_ERROR_INTERACTIVE_MODE)}return cleanTask(n,s)}e.cleanWithOptionsTask=cleanWithOptionsTask;function cleanTask(t,e){const r=["clean",`-${t}`,...e];return{commands:r,format:"utf-8",parser(e){return n.cleanSummaryParser(t===o.DRY_RUN,e)}}}e.cleanTask=cleanTask;function isCleanOptionsArray(t){return Array.isArray(t)&&t.every(t=>a.has(t))}e.isCleanOptionsArray=isCleanOptionsArray;function getCleanOptions(t){let e;let r=[];let n={cleanMode:false,options:true};t.replace(/[^a-z]i/g,"").split("").forEach(t=>{if(isCleanMode(t)){e=t;n.cleanMode=true}else{n.options=n.options&&isKnownOption(r[r.length]=`-${t}`)}});return{cleanMode:e,options:r,valid:n}}function isCleanMode(t){return t===o.FORCE||t===o.DRY_RUN}function isKnownOption(t){return/^-[a-z]$/i.test(t)&&a.has(t.charAt(1))}function isInteractiveMode(t){if(/^-[^\-]/.test(t)){return t.indexOf("i")>0}return t==="--interactive"}},3173:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.cloneMirrorTask=e.cloneTask=void 0;const n=r(2815);const s=r(847);function cloneTask(t,e,r){const s=["clone",...r];if(typeof t==="string"){s.push(t)}if(typeof e==="string"){s.push(e)}return n.straightThroughStringTask(s)}e.cloneTask=cloneTask;function cloneMirrorTask(t,e,r){s.append(r,"--mirror");return cloneTask(t,e,r)}e.cloneMirrorTask=cloneMirrorTask},5494:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.commitTask=void 0;const n=r(3026);function commitTask(t,e,r){const s=["commit"];t.forEach(t=>s.push("-m",t));s.push(...e,...r);return{commands:s,format:"utf-8",parser:n.parseCommitResult}}e.commitTask=commitTask},7597:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.listConfigTask=e.addConfigTask=void 0;const n=r(7219);function addConfigTask(t,e,r=false){const n=["config","--local"];if(r){n.push("--add")}n.push(t,e);return{commands:n,format:"utf-8",parser(t){return t}}}e.addConfigTask=addConfigTask;function listConfigTask(){return{commands:["config","--list","--show-origin","--null"],format:"utf-8",parser(t){return n.configListParser(t)}}}e.listConfigTask=listConfigTask},9241:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.diffSummaryTask=void 0;const n=r(2024);function diffSummaryTask(t){return{commands:["diff","--stat=4096",...t],format:"utf-8",parser(t){return n.parseDiffResult(t)}}}e.diffSummaryTask=diffSummaryTask},8823:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.fetchTask=void 0;const n=r(6254);function fetchTask(t,e,r){const s=["fetch",...r];if(t&&e){s.push(t,e)}return{commands:s,format:"utf-8",parser:n.parseFetchResult}}e.fetchTask=fetchTask},8199:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.hashObjectTask=void 0;const n=r(2815);function hashObjectTask(t,e){const r=["hash-object",t];if(e){r.push("-w")}return n.straightThroughStringTask(r,true)}e.hashObjectTask=hashObjectTask},6016:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.initTask=void 0;const n=r(8690);const s="--bare";function hasBareCommand(t){return t.includes(s)}function initTask(t=false,e,r){const i=["init",...r];if(t&&!hasBareCommand(i)){i.splice(1,0,s)}return{commands:i,concatStdErr:false,format:"utf-8",parser(t){return n.parseInit(i.includes("--bare"),e,t)}}}e.initTask=initTask},8627:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.logTask=e.parseLogOptions=void 0;const n=r(9729);const s=r(847);var i;(function(t){t[t["--pretty"]=0]="--pretty";t[t["max-count"]=1]="max-count";t[t["maxCount"]=2]="maxCount";t[t["n"]=3]="n";t[t["file"]=4]="file";t[t["format"]=5]="format";t[t["from"]=6]="from";t[t["to"]=7]="to";t[t["splitter"]=8]="splitter";t[t["symmetric"]=9]="symmetric";t[t["multiLine"]=10]="multiLine";t[t["strictDate"]=11]="strictDate"})(i||(i={}));function prettyFormat(t,e){const r=[];const n=[];Object.keys(t).forEach(e=>{r.push(e);n.push(String(t[e]))});return[r,n.join(e)]}function userOptions(t){const e=Object.assign({},t);Object.keys(t).forEach(t=>{if(t in i){delete e[t]}});return e}function parseLogOptions(t={},e=[]){const r=t.splitter||n.SPLITTER;const i=t.format||{hash:"%H",date:t.strictDate===false?"%ai":"%aI",message:"%s",refs:"%D",body:t.multiLine?"%B":"%b",author_name:"%aN",author_email:"%ae"};const[o,a]=prettyFormat(i,r);const c=[];const u=[`--pretty=format:${n.START_BOUNDARY}${a}${n.COMMIT_BOUNDARY}`,...e];const l=t.n||t["max-count"]||t.maxCount;if(l){u.push(`--max-count=${l}`)}if(t.from&&t.to){const e=t.symmetric!==false?"...":"..";c.push(`${t.from}${e}${t.to}`)}if(t.file){c.push("--follow",t.file)}s.appendTaskOptions(userOptions(t),u);return{fields:o,splitter:r,commands:[...u,...c]}}e.parseLogOptions=parseLogOptions;function logTask(t,e,r){return{commands:["log",...r],format:"utf-8",parser:n.createListLogSummaryParser(t,e)}}e.logTask=logTask},8829:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.mergeTask=void 0;const n=r(5131);const s=r(6412);const i=r(2815);function mergeTask(t){if(!t.length){return i.configurationErrorTask("Git.merge requires at least one option")}return{commands:["merge",...t],format:"utf-8",parser(t,e){const r=s.parseMergeResult(t,e);if(r.failed){throw new n.GitResponseError(r)}return r}}}e.mergeTask=mergeTask},6520:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.moveTask=void 0;const n=r(7444);const s=r(847);function moveTask(t,e){return{commands:["mv","-v",...s.asArray(t),e],format:"utf-8",parser:n.parseMoveResult}}e.moveTask=moveTask},4636:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.pullTask=void 0;const n=r(5658);function pullTask(t,e,r){const s=["pull",...r];if(t&&e){s.splice(1,0,t,e)}return{commands:s,format:"utf-8",parser(t,e){return n.parsePullResult(t,e)}}}e.pullTask=pullTask},1435:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.pushTask=e.pushTagsTask=void 0;const n=r(8530);const s=r(847);function pushTagsTask(t={},e){s.append(e,"--tags");return pushTask(t,e)}e.pushTagsTask=pushTagsTask;function pushTask(t={},e){const r=["push",...e];if(t.branch){r.splice(1,0,t.branch)}if(t.remote){r.splice(1,0,t.remote)}s.remove(r,"-v");s.append(r,"--verbose");s.append(r,"--porcelain");return{commands:r,format:"utf-8",parser:n.parsePushResult}}e.pushTask=pushTask},9866:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.removeRemoteTask=e.remoteTask=e.listRemotesTask=e.getRemotesTask=e.addRemoteTask=void 0;const n=r(9999);const s=r(2815);function addRemoteTask(t,e,r=[]){return s.straightThroughStringTask(["remote","add",...r,t,e])}e.addRemoteTask=addRemoteTask;function getRemotesTask(t){const e=["remote"];if(t){e.push("-v")}return{commands:e,format:"utf-8",parser:t?n.parseGetRemotesVerbose:n.parseGetRemotes}}e.getRemotesTask=getRemotesTask;function listRemotesTask(t=[]){const e=[...t];if(e[0]!=="ls-remote"){e.unshift("ls-remote")}return s.straightThroughStringTask(e)}e.listRemotesTask=listRemotesTask;function remoteTask(t=[]){const e=[...t];if(e[0]!=="remote"){e.unshift("remote")}return s.straightThroughStringTask(e)}e.remoteTask=remoteTask;function removeRemoteTask(t){return s.straightThroughStringTask(["remote","remove",t])}e.removeRemoteTask=removeRemoteTask},2377:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.getResetMode=e.resetTask=e.ResetMode=void 0;const n=r(2815);var s;(function(t){t["MIXED"]="mixed";t["SOFT"]="soft";t["HARD"]="hard";t["MERGE"]="merge";t["KEEP"]="keep"})(s=e.ResetMode||(e.ResetMode={}));const i=Array.from(Object.values(s));function resetTask(t,e){const r=["reset"];if(isValidResetMode(t)){r.push(`--${t}`)}r.push(...e);return n.straightThroughStringTask(r)}e.resetTask=resetTask;function getResetMode(t){if(isValidResetMode(t)){return t}switch(typeof t){case"string":case"undefined":return s.SOFT}return}e.getResetMode=getResetMode;function isValidResetMode(t){return i.includes(t)}},810:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.stashListTask=void 0;const n=r(9729);const s=r(8627);function stashListTask(t={},e){const r=s.parseLogOptions(t);const i=n.createListLogSummaryParser(r.splitter,r.fields);return{commands:["stash","list",...r.commands,...e],format:"utf-8",parser:i}}e.stashListTask=stashListTask},9197:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.statusTask=void 0;const n=r(6790);function statusTask(t){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...t],parser(t){return n.parseStatusSummary(t)}}}e.statusTask=statusTask},8772:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.updateSubModuleTask=e.subModuleTask=e.initSubModuleTask=e.addSubModuleTask=void 0;const n=r(2815);function addSubModuleTask(t,e){return subModuleTask(["add",t,e])}e.addSubModuleTask=addSubModuleTask;function initSubModuleTask(t){return subModuleTask(["init",...t])}e.initSubModuleTask=initSubModuleTask;function subModuleTask(t){const e=[...t];if(e[0]!=="submodule"){e.unshift("submodule")}return n.straightThroughStringTask(e)}e.subModuleTask=subModuleTask;function updateSubModuleTask(t){return subModuleTask(["update",...t])}e.updateSubModuleTask=updateSubModuleTask},8540:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.addAnnotatedTagTask=e.addTagTask=e.tagListTask=void 0;const n=r(4539);function tagListTask(t=[]){const e=t.some(t=>/^--sort=/.test(t));return{format:"utf-8",commands:["tag","-l",...t],parser(t){return n.parseTagList(t,e)}}}e.tagListTask=tagListTask;function addTagTask(t){return{format:"utf-8",commands:["tag",t],parser(){return{name:t}}}}e.addTagTask=addTagTask;function addAnnotatedTagTask(t,e){return{format:"utf-8",commands:["tag","-a","-m",e,t],parser(){return{name:t}}}}e.addAnnotatedTagTask=addAnnotatedTagTask},2815:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.isEmptyTask=e.isBufferTask=e.straightThroughBufferTask=e.straightThroughStringTask=e.configurationErrorTask=e.adhocExecTask=e.EMPTY_COMMANDS=void 0;const n=r(740);e.EMPTY_COMMANDS=[];function adhocExecTask(t){return{commands:e.EMPTY_COMMANDS,format:"utf-8",parser:t}}e.adhocExecTask=adhocExecTask;function configurationErrorTask(t){return{commands:e.EMPTY_COMMANDS,format:"utf-8",parser(){throw typeof t==="string"?new n.TaskConfigurationError(t):t}}}e.configurationErrorTask=configurationErrorTask;function straightThroughStringTask(t,e=false){return{commands:t,format:"utf-8",parser(t){return e?String(t).trim():t}}}e.straightThroughStringTask=straightThroughStringTask;function straightThroughBufferTask(t){return{commands:t,format:"buffer",parser(t){return t}}}e.straightThroughBufferTask=straightThroughBufferTask;function isBufferTask(t){return t.format==="buffer"}e.isBufferTask=isBufferTask;function isEmptyTask(t){return!t.commands.length}e.isEmptyTask=isEmptyTask},7366:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.filterHasLength=e.filterFunction=e.filterPlainObject=e.filterStringOrStringArray=e.filterStringArray=e.filterString=e.filterPrimitives=e.filterArray=e.filterType=void 0;const n=r(8237);function filterType(t,e,r){if(e(t)){return t}return arguments.length>2?r:undefined}e.filterType=filterType;const s=t=>{return Array.isArray(t)};e.filterArray=s;function filterPrimitives(t,e){return/number|string|boolean/.test(typeof t)&&(!e||!e.includes(typeof t))}e.filterPrimitives=filterPrimitives;const i=t=>{return typeof t==="string"};e.filterString=i;const o=t=>{return Array.isArray(t)&&t.every(e.filterString)};e.filterStringArray=o;const a=t=>{return e.filterString(t)||Array.isArray(t)&&t.every(e.filterString)};e.filterStringOrStringArray=a;function filterPlainObject(t){return!!t&&n.objectToString(t)==="[object Object]"}e.filterPlainObject=filterPlainObject;function filterFunction(t){return typeof t==="function"}e.filterFunction=filterFunction;const c=t=>{if(t==null||"number|boolean|function".includes(typeof t)){return false}return Array.isArray(t)||typeof t==="string"||typeof t.length==="number"};e.filterHasLength=c},2185:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.ExitCodes=void 0;var r;(function(t){t[t["SUCCESS"]=0]="SUCCESS";t[t["ERROR"]=1]="ERROR";t[t["UNCLEAN"]=128]="UNCLEAN"})(r=e.ExitCodes||(e.ExitCodes={}))},6578:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.GitOutputStreams=void 0;class GitOutputStreams{constructor(t,e){this.stdOut=t;this.stdErr=e}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}e.GitOutputStreams=GitOutputStreams},847:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){if(n===undefined)n=r;Object.defineProperty(t,n,{enumerable:true,get:function(){return e[r]}})}:function(t,e,r,n){if(n===undefined)n=r;t[n]=e[r]});var s=this&&this.__exportStar||function(t,e){for(var r in t)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r))n(e,t,r)};Object.defineProperty(e,"__esModule",{value:true});s(r(7366),e);s(r(2185),e);s(r(6578),e);s(r(9536),e);s(r(5218),e);s(r(3546),e);s(r(1351),e);s(r(8237),e)},9536:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.RemoteLineParser=e.LineParser=void 0;class LineParser{constructor(t,e){this.matches=[];this.parse=((t,e)=>{this.resetMatches();if(!this._regExp.every((e,r)=>this.addMatch(e,r,t(r)))){return false}return this.useMatches(e,this.prepareMatches())!==false});this._regExp=Array.isArray(t)?t:[t];if(e){this.useMatches=e}}useMatches(t,e){throw new Error(`LineParser:useMatches not implemented`)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(t,e,r){const n=r&&t.exec(r);if(n){this.pushMatch(e,n)}return!!n}pushMatch(t,e){this.matches.push(...e.slice(1))}}e.LineParser=LineParser;class RemoteLineParser extends LineParser{addMatch(t,e,r){return/^remote:\s/.test(String(r))&&super.addMatch(t,e,r)}pushMatch(t,e){if(t>0||e.length>1){super.pushMatch(t,e)}}}e.RemoteLineParser=RemoteLineParser},5218:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createInstanceConfig=void 0;const r={binary:"git",maxConcurrentProcesses:5,config:[]};function createInstanceConfig(...t){const e=process.cwd();const n=Object.assign(Object.assign({baseDir:e},r),...t.filter(t=>typeof t==="object"&&t));n.baseDir=n.baseDir||e;return n}e.createInstanceConfig=createInstanceConfig},3546:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.trailingFunctionArgument=e.trailingOptionsArgument=e.getTrailingOptions=e.appendTaskOptions=void 0;const n=r(7366);const s=r(8237);function appendTaskOptions(t,e=[]){if(!n.filterPlainObject(t)){return e}return Object.keys(t).reduce((e,r)=>{const s=t[r];if(n.filterPrimitives(s,["boolean"])){e.push(r+"="+s)}else{e.push(r)}return e},e)}e.appendTaskOptions=appendTaskOptions;function getTrailingOptions(t,e=0,r=false){const n=[];for(let r=0,s=e<0?t.length:e;r{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseStringResponse=e.callTaskParser=void 0;const n=r(8237);function callTaskParser(t,e){return t(e.stdOut,e.stdErr)}e.callTaskParser=callTaskParser;function parseStringResponse(t,e,...r){r.forEach(r=>{for(let s=n.toLinesWithContent(r),i=0,o=s.length;i{if(i+t>=o){return}return s[i+t]};e.some(({parse:e})=>e(r,t))}});return t}e.parseStringResponse=parseStringResponse},8237:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.prefixedArray=e.asNumber=e.asStringArray=e.asArray=e.objectToString=e.remove=e.including=e.append=e.folderExists=e.forEachLineWithContent=e.toLinesWithContent=e.last=e.first=e.splitOn=e.isUserFunction=e.asFunction=e.NOOP=void 0;const n=r(4751);const s=()=>{};e.NOOP=s;function asFunction(t){return typeof t==="function"?t:e.NOOP}e.asFunction=asFunction;function isUserFunction(t){return typeof t==="function"&&t!==e.NOOP}e.isUserFunction=isUserFunction;function splitOn(t,e){const r=t.indexOf(e);if(r<=0){return[t,""]}return[t.substr(0,r),t.substr(r+1)]}e.splitOn=splitOn;function first(t,e=0){return isArrayLike(t)&&t.length>e?t[e]:undefined}e.first=first;function last(t,e=0){if(isArrayLike(t)&&t.length>e){return t[t.length-1-e]}}e.last=last;function isArrayLike(t){return!!(t&&typeof t.length==="number")}function toLinesWithContent(t,e=true,r="\n"){return t.split(r).reduce((t,r)=>{const n=e?r.trim():r;if(n){t.push(n)}return t},[])}e.toLinesWithContent=toLinesWithContent;function forEachLineWithContent(t,e){return toLinesWithContent(t,true).map(t=>e(t))}e.forEachLineWithContent=forEachLineWithContent;function folderExists(t){return n.exists(t,n.FOLDER)}e.folderExists=folderExists;function append(t,e){if(Array.isArray(t)){if(!t.includes(e)){t.push(e)}}else{t.add(e)}return e}e.append=append;function including(t,e){if(Array.isArray(t)&&!t.includes(e)){t.push(e)}return t}e.including=including;function remove(t,e){if(Array.isArray(t)){const r=t.indexOf(e);if(r>=0){t.splice(r,1)}}else{t.delete(e)}return e}e.remove=remove;e.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function asArray(t){return Array.isArray(t)?t:[t]}e.asArray=asArray;function asStringArray(t){return asArray(t).map(String)}e.asStringArray=asStringArray;function asNumber(t,e=0){if(t==null){return e}const r=parseInt(t,10);return isNaN(r)?e:r}e.asNumber=asNumber;function prefixedArray(t,e){const r=[];for(let n=0,s=t.length;n{"use strict";t.exports=(t=>{const e=/^\\\\\?\\/.test(t);const r=/[^\u0000-\u0080]+/.test(t);if(e||r){return t}return t.replace(/\\/g,"/")})},9318:(t,e,r)=>{"use strict";const n=r(2087);const s=r(3867);const i=r(1621);const{env:o}=process;let a;if(i("no-color")||i("no-colors")||i("color=false")||i("color=never")){a=0}else if(i("color")||i("colors")||i("color=true")||i("color=always")){a=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){a=1}else if(o.FORCE_COLOR==="false"){a=0}else{a=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t,e){if(a===0){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(t&&!e&&a===undefined){return 0}const r=a||0;if(o.TERM==="dumb"){return r}if(process.platform==="win32"){const t=n.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(t=>t in o)||o.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const t=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return r}function getSupportLevel(t){const e=supportsColor(t,t&&t.isTTY);return translateLevel(e)}t.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,s.isatty(1))),stderr:translateLevel(supportsColor(true,s.isatty(2)))}},1861:(t,e,r)=>{"use strict";const n=r(5680);const s=(t,e,r)=>{if(n(t)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(e===void 0||t===e){return String(t)}if(n(e)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let i={relaxZeros:true,...r};if(typeof i.strictZeros==="boolean"){i.relaxZeros=i.strictZeros===false}let o=String(i.relaxZeros);let a=String(i.shorthand);let c=String(i.capture);let u=String(i.wrap);let l=t+":"+e+"="+o+a+c+u;if(s.cache.hasOwnProperty(l)){return s.cache[l].result}let f=Math.min(t,e);let p=Math.max(t,e);if(Math.abs(f-p)===1){let r=t+"|"+e;if(i.capture){return`(${r})`}if(i.wrap===false){return r}return`(?:${r})`}let d=hasPadding(t)||hasPadding(e);let h={min:t,max:e,a:f,b:p};let g=[];let m=[];if(d){h.isPadded=d;h.maxLen=String(h.max).length}if(f<0){let t=p<0?Math.abs(p):1;m=splitToPatterns(t,Math.abs(f),h,i);f=h.a=0}if(p>=0){g=splitToPatterns(f,p,h,i)}h.negatives=m;h.positives=g;h.result=collatePatterns(m,g,i);if(i.capture===true){h.result=`(${h.result})`}else if(i.wrap!==false&&g.length+m.length>1){h.result=`(?:${h.result})`}s.cache[l]=h;return h.result};function collatePatterns(t,e,r){let n=filterPatterns(t,e,"-",false,r)||[];let s=filterPatterns(e,t,"",false,r)||[];let i=filterPatterns(t,e,"-?",true,r)||[];let o=n.concat(i).concat(s);return o.join("|")}function splitToRanges(t,e){let r=1;let n=1;let s=countNines(t,r);let i=new Set([e]);while(t<=s&&s<=e){i.add(s);r+=1;s=countNines(t,r)}s=countZeros(e+1,n)-1;while(t1){a.count.pop()}a.count.push(c.count[0]);a.string=a.pattern+toQuantifier(a.count);o=e+1;continue}if(r.isPadded){u=padZeros(e,r,n)}c.string=u+c.pattern+toQuantifier(c.count);i.push(c);o=e+1;a=c}return i}function filterPatterns(t,e,r,n,s){let i=[];for(let s of t){let{string:t}=s;if(!n&&!contains(e,"string",t)){i.push(r+t)}if(n&&contains(e,"string",t)){i.push(r+t)}}return i}function zip(t,e){let r=[];for(let n=0;ne?1:e>t?-1:0}function contains(t,e,r){return t.some(t=>t[e]===r)}function countNines(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function countZeros(t,e){return t-t%Math.pow(10,e)}function toQuantifier(t){let[e=0,r=""]=t;if(r||e>1){return`{${e+(r?","+r:"")}}`}return""}function toCharacterClass(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function hasPadding(t){return/^-?(0+)\d/.test(t)}function padZeros(t,e,r){if(!e.isPadded){return t}let n=Math.abs(e.maxLen-String(t).length);let s=r.relaxZeros!==false;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:{return s?`0{0,${n}}`:`0{${n}}`}}}s.cache={};s.clearCache=(()=>s.cache={});t.exports=s},1313:(t,e,r)=>{const n=r(3398);t.exports=async function gitStripMerge(t,e,r,{deleteCommitMessage:s="delete commit",mergeCommitMessage:i="merge commit"}={}){async function gitBranch(e){const r=await t.raw(["symbolic-ref",e]);const n=r.match(/refs\/heads\/(.*)/);if(n&&n[1]){return n[1]}return t.revparse(e)}const o=t._executor.cwd?t._executor.cwd:process.cwd();const a=await gitBranch("HEAD");const c=await t.revparse(e);await t.checkout(a);await t.checkout(c);const u=await n(r,{cwd:o});await t.rm(u);await t.commit(s);const l=await t.revparse("HEAD");await t.checkout(a);await t.merge(["-m",i,l,"--no-ff"])}},4351:(t,e,r)=>{const n=r(5622);const s=r(2186);const i=r(1477);const o=r(1313);async function run(){const t=n.join(process.cwd());const e=i({baseDir:t});const r=s.getInput("release-tag",{required:true});const a=s.getInput("exclude",{required:true});const c=s.getInput("release-branch",{required:true});const u=s.getInput("upstream-branch",{required:true});let l=[];try{const t=JSON.parse(a);if(Array.isArray(t)&&t.find(t=>typeof t!=="string")===undefined){l=t}}catch(t){if(a){l=[a]}}await e.addConfig("user.name","github-actions[bot]");await e.addConfig("user.email","41898282+github-actions[bot]@users.noreply.github.com");await e.checkout(c);await o(e,u,l);s.info(`Creating new tag ${r}`);await e.addAnnotatedTag(r,`Release ${r}`);e.pushTags("origin")}try{run()}catch(t){console.log(t)}},3129:t=>{"use strict";t.exports=require("child_process")},8614:t=>{"use strict";t.exports=require("events")},5747:t=>{"use strict";t.exports=require("fs")},2087:t=>{"use strict";t.exports=require("os")},5622:t=>{"use strict";t.exports=require("path")},2413:t=>{"use strict";t.exports=require("stream")},3867:t=>{"use strict";t.exports=require("tty")},1669:t=>{"use strict";t.exports=require("util")}};var e={};function __nccwpck_require__(r){if(e[r]){return e[r].exports}var n=e[r]={exports:{}};var s=true;try{t[r].call(n.exports,n,n.exports,__nccwpck_require__);s=false}finally{if(s)delete e[r]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(4351)})(); \ No newline at end of file +module.exports=(()=>{var t={7351:function(t,e,r){"use strict";var n=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(Object.hasOwnProperty.call(t,r))e[r]=t[r];e["default"]=t;return e};Object.defineProperty(e,"__esModule",{value:true});const s=n(r(2087));const i=r(5278);function issueCommand(t,e,r){const n=new Command(t,e,r);process.stdout.write(n.toString()+s.EOL)}e.issueCommand=issueCommand;function issue(t,e=""){issueCommand(t,{},e)}e.issue=issue;const o="::";class Command{constructor(t,e,r){if(!t){t="missing.command"}this.command=t;this.properties=e;this.message=r}toString(){let t=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(e){e=false}else{t+=","}t+=`${r}=${escapeProperty(n)}`}}}}t+=`${o}${escapeData(this.message)}`;return t}}function escapeData(t){return i.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(t){return i.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){function adopt(t){return t instanceof r?t:new r(function(e){e(t)})}return new(r||(r=Promise))(function(r,s){function fulfilled(t){try{step(n.next(t))}catch(t){s(t)}}function rejected(t){try{step(n["throw"](t))}catch(t){s(t)}}function step(t){t.done?r(t.value):adopt(t.value).then(fulfilled,rejected)}step((n=n.apply(t,e||[])).next())})};var s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(Object.hasOwnProperty.call(t,r))e[r]=t[r];e["default"]=t;return e};Object.defineProperty(e,"__esModule",{value:true});const i=r(7351);const o=r(717);const a=r(5278);const u=s(r(2087));const c=s(r(5622));var l;(function(t){t[t["Success"]=0]="Success";t[t["Failure"]=1]="Failure"})(l=e.ExitCode||(e.ExitCode={}));function exportVariable(t,e){const r=a.toCommandValue(e);process.env[t]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const e="_GitHubActionsFileCommandDelimeter_";const n=`${t}<<${e}${u.EOL}${r}${u.EOL}${e}`;o.issueCommand("ENV",n)}else{i.issueCommand("set-env",{name:t},r)}}e.exportVariable=exportVariable;function setSecret(t){i.issueCommand("add-mask",{},t)}e.setSecret=setSecret;function addPath(t){const e=process.env["GITHUB_PATH"]||"";if(e){o.issueCommand("PATH",t)}else{i.issueCommand("add-path",{},t)}process.env["PATH"]=`${t}${c.delimiter}${process.env["PATH"]}`}e.addPath=addPath;function getInput(t,e){const r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r){throw new Error(`Input required and not supplied: ${t}`)}return r.trim()}e.getInput=getInput;function setOutput(t,e){i.issueCommand("set-output",{name:t},e)}e.setOutput=setOutput;function setCommandEcho(t){i.issue("echo",t?"on":"off")}e.setCommandEcho=setCommandEcho;function setFailed(t){process.exitCode=l.Failure;error(t)}e.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}e.isDebug=isDebug;function debug(t){i.issueCommand("debug",{},t)}e.debug=debug;function error(t){i.issue("error",t instanceof Error?t.toString():t)}e.error=error;function warning(t){i.issue("warning",t instanceof Error?t.toString():t)}e.warning=warning;function info(t){process.stdout.write(t+u.EOL)}e.info=info;function startGroup(t){i.issue("group",t)}e.startGroup=startGroup;function endGroup(){i.issue("endgroup")}e.endGroup=endGroup;function group(t,e){return n(this,void 0,void 0,function*(){startGroup(t);let r;try{r=yield e()}finally{endGroup()}return r})}e.group=group;function saveState(t,e){i.issueCommand("save-state",{name:t},e)}e.saveState=saveState;function getState(t){return process.env[`STATE_${t}`]||""}e.getState=getState},717:function(t,e,r){"use strict";var n=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(Object.hasOwnProperty.call(t,r))e[r]=t[r];e["default"]=t;return e};Object.defineProperty(e,"__esModule",{value:true});const s=n(r(5747));const i=n(r(2087));const o=r(5278);function issueCommand(t,e){const r=process.env[`GITHUB_${t}`];if(!r){throw new Error(`Unable to find environment variable for file command ${t}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${o.toCommandValue(e)}${i.EOL}`,{encoding:"utf8"})}e.issueCommand=issueCommand},5278:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});function toCommandValue(t){if(t===null||t===undefined){return""}else if(typeof t==="string"||t instanceof String){return t}return JSON.stringify(t)}e.toCommandValue=toCommandValue},4751:(t,e,r)=>{"use strict";function __export(t){for(var r in t)if(!e.hasOwnProperty(r))e[r]=t[r]}Object.defineProperty(e,"__esModule",{value:true});__export(r(2825))},2825:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const s=r(5747);const i=n(r(8231));const o=i.default("@kwsites/file-exists");function check(t,e,r){o(`checking %s`,t);try{const n=s.statSync(t);if(n.isFile()&&e){o(`[OK] path represents a file`);return true}if(n.isDirectory()&&r){o(`[OK] path represents a directory`);return true}o(`[FAIL] path represents something other than a file or directory`);return false}catch(t){if(t.code==="ENOENT"){o(`[FAIL] path is not accessible: %o`,t);return false}o(`[FATAL] %o`,t);throw t}}function exists(t,r=e.READABLE){return check(t,(r&e.FILE)>0,(r&e.FOLDER)>0)}e.exists=exists;e.FILE=1;e.FOLDER=2;e.READABLE=e.FILE+e.FOLDER},9819:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createDeferred=e.deferred=void 0;function deferred(){let t;let e;let r="pending";const n=new Promise((r,n)=>{t=r;e=n});return{promise:n,done(e){if(r==="pending"){r="resolved";t(e)}},fail(t){if(r==="pending"){r="rejected";e(t)}},get fulfilled(){return r!=="pending"},get status(){return r}}}e.deferred=deferred;e.createDeferred=deferred;e.default=deferred},3803:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;const n=r(5747);e.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync,readdir:n.readdir,readdirSync:n.readdirSync};function createFileSystemAdapter(t){if(t===undefined){return e.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}e.createFileSystemAdapter=createFileSystemAdapter},8838:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const r=process.versions.node.split(".");const n=parseInt(r[0],10);const s=parseInt(r[1],10);const i=10;const o=10;const a=n>i;const u=n===i&&s>=o;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||u},5667:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.Settings=e.scandirSync=e.scandir=void 0;const n=r(4507);const s=r(9560);const i=r(8662);e.Settings=i.default;function scandir(t,e,r){if(typeof e==="function"){return n.read(t,getSettings(),e)}n.read(t,getSettings(e),r)}e.scandir=scandir;function scandirSync(t,e){const r=getSettings(e);return s.read(t,r)}e.scandirSync=scandirSync;function getSettings(t={}){if(t instanceof i.default){return t}return new i.default(t)}},4507:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.readdir=e.readdirWithFileTypes=e.read=void 0;const n=r(109);const s=r(5288);const i=r(8838);const o=r(6297);const a=r(3847);function read(t,e,r){if(!e.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,e,r)}return readdir(t,e,r)}e.read=read;function readdirWithFileTypes(t,e,r){e.fs.readdir(t,{withFileTypes:true},(n,i)=>{if(n!==null){return callFailureCallback(r,n)}const o=i.map(r=>({dirent:r,name:r.name,path:a.joinPathSegments(t,r.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){return callSuccessCallback(r,o)}const u=o.map(t=>makeRplTaskEntry(t,e));s(u,(t,e)=>{if(t!==null){return callFailureCallback(r,t)}callSuccessCallback(r,e)})})}e.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(t,e){return r=>{if(!t.dirent.isSymbolicLink()){return r(null,t)}e.fs.stat(t.path,(n,s)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){return r(n)}return r(null,t)}t.dirent=o.fs.createDirentFromStats(t.name,s);return r(null,t)})}}function readdir(t,e,r){e.fs.readdir(t,(i,u)=>{if(i!==null){return callFailureCallback(r,i)}const c=u.map(r=>a.joinPathSegments(t,r,e.pathSegmentSeparator));const l=c.map(t=>{return r=>n.stat(t,e.fsStatSettings,r)});s(l,(t,n)=>{if(t!==null){return callFailureCallback(r,t)}const s=[];u.forEach((t,r)=>{const i=n[r];const a={name:t,path:c[r],dirent:o.fs.createDirentFromStats(t,i)};if(e.stats){a.stats=i}s.push(a)});callSuccessCallback(r,s)})})}e.readdir=readdir;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},3847:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.joinPathSegments=void 0;function joinPathSegments(t,e,r){if(t.endsWith(r)){return t+e}return t+r+e}e.joinPathSegments=joinPathSegments},9560:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.readdir=e.readdirWithFileTypes=e.read=void 0;const n=r(109);const s=r(8838);const i=r(6297);const o=r(3847);function read(t,e){if(!e.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,e)}return readdir(t,e)}e.read=read;function readdirWithFileTypes(t,e){const r=e.fs.readdirSync(t,{withFileTypes:true});return r.map(r=>{const n={dirent:r,name:r.name,path:o.joinPathSegments(t,r.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks){try{const t=e.fs.statSync(n.path);n.dirent=i.fs.createDirentFromStats(n.name,t)}catch(t){if(e.throwErrorOnBrokenSymbolicLink){throw t}}}return n})}e.readdirWithFileTypes=readdirWithFileTypes;function readdir(t,e){const r=e.fs.readdirSync(t);return r.map(r=>{const s=o.joinPathSegments(t,r,e.pathSegmentSeparator);const a=n.statSync(s,e.fsStatSettings);const u={name:r,path:s,dirent:i.fs.createDirentFromStats(r,a)};if(e.stats){u.stats=a}return u})}e.readdir=readdir},8662:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5622);const s=r(109);const i=r(3803);class Settings{constructor(t={}){this._options=t;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=i.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,n.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new s.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t!==null&&t!==void 0?t:e}}e.default=Settings},883:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createDirentFromStats=void 0;class DirentFromStats{constructor(t,e){this.name=t;this.isBlockDevice=e.isBlockDevice.bind(e);this.isCharacterDevice=e.isCharacterDevice.bind(e);this.isDirectory=e.isDirectory.bind(e);this.isFIFO=e.isFIFO.bind(e);this.isFile=e.isFile.bind(e);this.isSocket=e.isSocket.bind(e);this.isSymbolicLink=e.isSymbolicLink.bind(e)}}function createDirentFromStats(t,e){return new DirentFromStats(t,e)}e.createDirentFromStats=createDirentFromStats},6297:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.fs=void 0;const n=r(883);e.fs=n},2987:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;const n=r(5747);e.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync};function createFileSystemAdapter(t){if(t===undefined){return e.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}e.createFileSystemAdapter=createFileSystemAdapter},109:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.statSync=e.stat=e.Settings=void 0;const n=r(4147);const s=r(4527);const i=r(2410);e.Settings=i.default;function stat(t,e,r){if(typeof e==="function"){return n.read(t,getSettings(),e)}n.read(t,getSettings(e),r)}e.stat=stat;function statSync(t,e){const r=getSettings(e);return s.read(t,r)}e.statSync=statSync;function getSettings(t={}){if(t instanceof i.default){return t}return new i.default(t)}},4147:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.read=void 0;function read(t,e,r){e.fs.lstat(t,(n,s)=>{if(n!==null){return callFailureCallback(r,n)}if(!s.isSymbolicLink()||!e.followSymbolicLink){return callSuccessCallback(r,s)}e.fs.stat(t,(t,n)=>{if(t!==null){if(e.throwErrorOnBrokenSymbolicLink){return callFailureCallback(r,t)}return callSuccessCallback(r,s)}if(e.markSymbolicLink){n.isSymbolicLink=(()=>true)}callSuccessCallback(r,n)})})}e.read=read;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},4527:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.read=void 0;function read(t,e){const r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink){return r}try{const n=e.fs.statSync(t);if(e.markSymbolicLink){n.isSymbolicLink=(()=>true)}return n}catch(t){if(!e.throwErrorOnBrokenSymbolicLink){return r}throw t}}e.read=read},2410:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2987);class Settings{constructor(t={}){this._options=t;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=n.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(t,e){return t!==null&&t!==void 0?t:e}}e.default=Settings},6026:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.Settings=e.walkStream=e.walkSync=e.walk=void 0;const n=r(7523);const s=r(6737);const i=r(3068);const o=r(141);e.Settings=o.default;function walk(t,e,r){if(typeof e==="function"){return new n.default(t,getSettings()).read(e)}new n.default(t,getSettings(e)).read(r)}e.walk=walk;function walkSync(t,e){const r=getSettings(e);const n=new i.default(t,r);return n.read()}e.walkSync=walkSync;function walkStream(t,e){const r=getSettings(e);const n=new s.default(t,r);return n.read()}e.walkStream=walkStream;function getSettings(t={}){if(t instanceof o.default){return t}return new o.default(t)}},7523:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5732);class AsyncProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new n.default(this._root,this._settings);this._storage=new Set}read(t){this._reader.onError(e=>{callFailureCallback(t,e)});this._reader.onEntry(t=>{this._storage.add(t)});this._reader.onEnd(()=>{callSuccessCallback(t,[...this._storage])});this._reader.read()}}e.default=AsyncProvider;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},6737:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2413);const s=r(5732);class StreamProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new s.default(this._root,this._settings);this._stream=new n.Readable({objectMode:true,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed){this._reader.destroy()}}})}read(){this._reader.onError(t=>{this._stream.emit("error",t)});this._reader.onEntry(t=>{this._stream.push(t)});this._reader.onEnd(()=>{this._stream.push(null)});this._reader.read();return this._stream}}e.default=StreamProvider},3068:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(3595);class SyncProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new n.default(this._root,this._settings)}read(){return this._reader.read()}}e.default=SyncProvider},5732:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(8614);const s=r(5667);const i=r(7340);const o=r(7988);const a=r(8311);class AsyncReader extends a.default{constructor(t,e){super(t,e);this._settings=e;this._scandir=s.scandir;this._emitter=new n.EventEmitter;this._queue=i(this._worker.bind(this),this._settings.concurrency);this._isFatalError=false;this._isDestroyed=false;this._queue.drain=(()=>{if(!this._isFatalError){this._emitter.emit("end")}})}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)});return this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,e){const r={directory:t,base:e};this._queue.push(r,t=>{if(t!==null){this._handleError(t)}})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(r,n)=>{if(r!==null){return e(r,undefined)}for(const e of n){this._handleEntry(e,t.base)}e(null,undefined)})}_handleError(t){if(this._isDestroyed||!o.isFatalError(this._settings,t)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",t)}_handleEntry(t,e){if(this._isDestroyed||this._isFatalError){return}const r=t.path;if(e!==undefined){t.path=o.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)}if(o.isAppliedFilter(this._settings.entryFilter,t)){this._emitEntry(t)}if(t.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(r,t.path)}}_emitEntry(t){this._emitter.emit("entry",t)}}e.default=AsyncReader},7988:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function isFatalError(t,e){if(t.errorFilter===null){return true}return!t.errorFilter(e)}e.isFatalError=isFatalError;function isAppliedFilter(t,e){return t===null||t(e)}e.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(t,e){return t.split(/[/\\]/).join(e)}e.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(t,e,r){if(t===""){return e}if(t.endsWith(r)){return t+e}return t+r+e}e.joinPathSegments=joinPathSegments},8311:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(7988);class Reader{constructor(t,e){this._root=t;this._settings=e;this._root=n.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}}e.default=Reader},3595:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5667);const s=r(7988);const i=r(8311);class SyncReader extends i.default{constructor(){super(...arguments);this._scandir=n.scandirSync;this._storage=new Set;this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return[...this._storage]}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(const t of this._queue.values()){this._handleDirectory(t.directory,t.base)}}_handleDirectory(t,e){try{const r=this._scandir(t,this._settings.fsScandirSettings);for(const t of r){this._handleEntry(t,e)}}catch(t){this._handleError(t)}}_handleError(t){if(!s.isFatalError(this._settings,t)){return}throw t}_handleEntry(t,e){const r=t.path;if(e!==undefined){t.path=s.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)}if(s.isAppliedFilter(this._settings.entryFilter,t)){this._pushToStorage(t)}if(t.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(r,t.path)}}_pushToStorage(t){this._storage.add(t)}}e.default=SyncReader},141:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5622);const s=r(5667);class Settings{constructor(t={}){this._options=t;this.basePath=this._getValue(this._options.basePath,undefined);this.concurrency=this._getValue(this._options.concurrency,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,n.sep);this.fsScandirSettings=new s.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t!==null&&t!==void 0?t:e}}e.default=Settings},9600:t=>{"use strict";t.exports=((...t)=>{return[...new Set([].concat(...t))]})},610:(t,e,r)=>{"use strict";const n=r(8750);const s=r(9434);const i=r(5873);const o=r(6477);const a=(t,e={})=>{let r=[];if(Array.isArray(t)){for(let n of t){let t=a.create(n,e);if(Array.isArray(t)){r.push(...t)}else{r.push(t)}}}else{r=[].concat(a.create(t,e))}if(e&&e.expand===true&&e.nodupes===true){r=[...new Set(r)]}return r};a.parse=((t,e={})=>o(t,e));a.stringify=((t,e={})=>{if(typeof t==="string"){return n(a.parse(t,e),e)}return n(t,e)});a.compile=((t,e={})=>{if(typeof t==="string"){t=a.parse(t,e)}return s(t,e)});a.expand=((t,e={})=>{if(typeof t==="string"){t=a.parse(t,e)}let r=i(t,e);if(e.noempty===true){r=r.filter(Boolean)}if(e.nodupes===true){r=[...new Set(r)]}return r});a.create=((t,e={})=>{if(t===""||t.length<3){return[t]}return e.expand!==true?a.compile(t,e):a.expand(t,e)});t.exports=a},9434:(t,e,r)=>{"use strict";const n=r(6330);const s=r(5207);const i=(t,e={})=>{let r=(t,i={})=>{let o=s.isInvalidBrace(i);let a=t.invalid===true&&e.escapeInvalid===true;let u=o===true||a===true;let c=e.escapeInvalid===true?"\\":"";let l="";if(t.isOpen===true){return c+t.value}if(t.isClose===true){return c+t.value}if(t.type==="open"){return u?c+t.value:"("}if(t.type==="close"){return u?c+t.value:")"}if(t.type==="comma"){return t.prev.type==="comma"?"":u?t.value:"|"}if(t.value){return t.value}if(t.nodes&&t.ranges>0){let r=s.reduce(t.nodes);let i=n(...r,{...e,wrap:false,toRegex:true});if(i.length!==0){return r.length>1&&i.length>1?`(${i})`:i}}if(t.nodes){for(let e of t.nodes){l+=r(e,t)}}return l};return r(t)};t.exports=i},8774:t=>{"use strict";t.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:"\n",CHAR_NO_BREAK_SPACE:" ",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:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},5873:(t,e,r)=>{"use strict";const n=r(6330);const s=r(8750);const i=r(5207);const o=(t="",e="",r=false)=>{let n=[];t=[].concat(t);e=[].concat(e);if(!e.length)return t;if(!t.length){return r?i.flatten(e).map(t=>`{${t}}`):e}for(let s of t){if(Array.isArray(s)){for(let t of s){n.push(o(t,e,r))}}else{for(let t of e){if(r===true&&typeof t==="string")t=`{${t}}`;n.push(Array.isArray(t)?o(s,t,r):s+t)}}}return i.flatten(n)};const a=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit;let a=(t,u={})=>{t.queue=[];let c=u;let l=u.queue;while(c.type!=="brace"&&c.type!=="root"&&c.parent){c=c.parent;l=c.queue}if(t.invalid||t.dollar){l.push(o(l.pop(),s(t,e)));return}if(t.type==="brace"&&t.invalid!==true&&t.nodes.length===2){l.push(o(l.pop(),["{}"]));return}if(t.nodes&&t.ranges>0){let a=i.reduce(t.nodes);if(i.exceedsLimit(...a,e.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let u=n(...a,e);if(u.length===0){u=s(t,e)}l.push(o(l.pop(),u));t.nodes=[];return}let f=i.encloseBrace(t);let p=t.queue;let d=t;while(d.type!=="brace"&&d.type!=="root"&&d.parent){d=d.parent;p=d.queue}for(let e=0;e{"use strict";const n=r(8750);const{MAX_LENGTH:s,CHAR_BACKSLASH:i,CHAR_BACKTICK:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_RIGHT_CURLY_BRACE:p,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=r(8774);const b=(t,e={})=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}let r=e||{};let b=typeof r.maxLength==="number"?Math.min(s,r.maxLength):s;if(t.length>b){throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${b})`)}let S={type:"root",input:t,nodes:[]};let E=[S];let v=S;let T=S;let R=0;let k=t.length;let P=0;let C=0;let A;let O={};const w=()=>t[P++];const x=t=>{if(t.type==="text"&&T.type==="dot"){T.type="text"}if(T&&T.type==="text"&&t.type==="text"){T.value+=t.value;return}v.nodes.push(t);t.parent=v;t.prev=T;T=t;return t};x({type:"bos"});while(P0){if(v.ranges>0){v.ranges=0;let t=v.nodes.shift();v.nodes=[t,{type:"text",value:n(v)}]}x({type:"comma",value:A});v.commas++;continue}if(A===u&&C>0&&v.commas===0){let t=v.nodes;if(C===0||t.length===0){x({type:"text",value:A});continue}if(T.type==="dot"){v.range=[];T.value+=A;T.type="range";if(v.nodes.length!==3&&v.nodes.length!==5){v.invalid=true;v.ranges=0;T.type="text";continue}v.ranges++;v.args=[];continue}if(T.type==="range"){t.pop();let e=t[t.length-1];e.value+=T.value+A;T=e;v.ranges--;continue}x({type:"dot",value:A});continue}x({type:"text",value:A})}do{v=E.pop();if(v.type!=="root"){v.nodes.forEach(t=>{if(!t.nodes){if(t.type==="open")t.isOpen=true;if(t.type==="close")t.isClose=true;if(!t.nodes)t.type="text";t.invalid=true}});let t=E[E.length-1];let e=t.nodes.indexOf(v);t.nodes.splice(e,1,...v.nodes)}}while(E.length>0);x({type:"eos"});return S};t.exports=b},8750:(t,e,r)=>{"use strict";const n=r(5207);t.exports=((t,e={})=>{let r=(t,s={})=>{let i=e.escapeInvalid&&n.isInvalidBrace(s);let o=t.invalid===true&&e.escapeInvalid===true;let a="";if(t.value){if((i||o)&&n.isOpenOrClose(t)){return"\\"+t.value}return t.value}if(t.value){return t.value}if(t.nodes){for(let e of t.nodes){a+=r(e)}}return a};return r(t)})},5207:(t,e)=>{"use strict";e.isInteger=(t=>{if(typeof t==="number"){return Number.isInteger(t)}if(typeof t==="string"&&t.trim()!==""){return Number.isInteger(Number(t))}return false});e.find=((t,e)=>t.nodes.find(t=>t.type===e));e.exceedsLimit=((t,r,n=1,s)=>{if(s===false)return false;if(!e.isInteger(t)||!e.isInteger(r))return false;return(Number(r)-Number(t))/Number(n)>=s});e.escapeNode=((t,e=0,r)=>{let n=t.nodes[e];if(!n)return;if(r&&n.type===r||n.type==="open"||n.type==="close"){if(n.escaped!==true){n.value="\\"+n.value;n.escaped=true}}});e.encloseBrace=(t=>{if(t.type!=="brace")return false;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}return false});e.isInvalidBrace=(t=>{if(t.type!=="brace")return false;if(t.invalid===true||t.dollar)return true;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}if(t.open!==true||t.close!==true){t.invalid=true;return true}return false});e.isOpenOrClose=(t=>{if(t.type==="open"||t.type==="close"){return true}return t.open===true||t.close===true});e.reduce=(t=>t.reduce((t,e)=>{if(e.type==="text")t.push(e.value);if(e.type==="range")e.type="text";return t},[]));e.flatten=((...t)=>{const e=[];const r=t=>{for(let n=0;n{e.formatArgs=formatArgs;e.save=save;e.load=load;e.useColors=useColors;e.storage=localstorage();e.destroy=(()=>{let t=false;return()=>{if(!t){t=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(e){e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0;let s=0;e[0].replace(/%[a-zA-Z%]/g,t=>{if(t==="%%"){return}n++;if(t==="%c"){s=n}});e.splice(s,0,r)}e.log=console.debug||console.log||(()=>{});function save(t){try{if(t){e.storage.setItem("debug",t)}else{e.storage.removeItem("debug")}}catch(t){}}function load(){let t;try{t=e.storage.getItem("debug")}catch(t){}if(!t&&typeof process!=="undefined"&&"env"in process){t=process.env.DEBUG}return t}function localstorage(){try{return localStorage}catch(t){}}t.exports=r(6243)(e);const{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},6243:(t,e,r)=>{function setup(t){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(900);createDebug.destroy=destroy;Object.keys(t).forEach(e=>{createDebug[e]=t[e]});createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(t){let e=0;for(let r=0;r{if(e==="%%"){return"%"}i++;const s=createDebug.formatters[n];if(typeof s==="function"){const n=t[i];e=s.call(r,n);t.splice(i,1);i--}return e});createDebug.formatArgs.call(r,t);const o=r.log||createDebug.log;o.apply(r,t)}debug.namespace=t;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(t);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;s=createDebug.enabled(t)}return s},set:t=>{r=t}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(t,e){const r=createDebug(this.namespace+(typeof e==="undefined"?":":e)+t);r.log=this.log;return r}function enable(t){createDebug.save(t);createDebug.namespaces=t;createDebug.names=[];createDebug.skips=[];let e;const r=(typeof t==="string"?t:"").split(/[\s,]+/);const n=r.length;for(e=0;e"-"+t)].join(",");createDebug.enable("");return t}function enabled(t){if(t[t.length-1]==="*"){return true}let e;let r;for(e=0,r=createDebug.skips.length;e{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){t.exports=r(8222)}else{t.exports=r(5332)}},5332:(t,e,r)=>{const n=r(3867);const s=r(1669);e.init=init;e.log=log;e.formatArgs=formatArgs;e.save=save;e.load=load;e.useColors=useColors;e.destroy=s.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");e.colors=[6,2,3,4,5,1];try{const t=r(9318);if(t&&(t.stderr||t).level>=2){e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(t){}e.inspectOpts=Object.keys(process.env).filter(t=>{return/^debug_/i.test(t)}).reduce((t,e)=>{const r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(t,e)=>{return e.toUpperCase()});let n=process.env[e];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}t[r]=n;return t},{});function useColors(){return"colors"in e.inspectOpts?Boolean(e.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(e){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const s="[3"+(n<8?n:"8;5;"+n);const i=` ${s};1m${r} `;e[0]=i+e[0].split("\n").join("\n"+i);e.push(s+"m+"+t.exports.humanize(this.diff)+"")}else{e[0]=getDate()+r+" "+e[0]}}function getDate(){if(e.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...t){return process.stderr.write(s.format(...t)+"\n")}function save(t){if(t){process.env.DEBUG=t}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(t){t.inspectOpts={};const r=Object.keys(e.inspectOpts);for(let n=0;nt.trim()).join(" ")};i.O=function(t){this.inspectOpts.colors=this.useColors;return s.inspect(t,this.inspectOpts)}},2738:(t,e,r)=>{"use strict";const n=r(5622);const s=r(3433);const i=t=>t.length>1?`{${t.join(",")}}`:t[0];const o=(t,e)=>{const r=t[0]==="!"?t.slice(1):t;return n.isAbsolute(r)?r:n.join(e,r)};const a=(t,e)=>{if(n.extname(t)){return`**/${t}`}return`**/${t}.${i(e)}`};const u=(t,e)=>{if(e.files&&!Array.isArray(e.files)){throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof e.files}\``)}if(e.extensions&&!Array.isArray(e.extensions)){throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof e.extensions}\``)}if(e.files&&e.extensions){return e.files.map(r=>n.posix.join(t,a(r,e.extensions)))}if(e.files){return e.files.map(e=>n.posix.join(t,`**/${e}`))}if(e.extensions){return[n.posix.join(t,`**/*.${i(e.extensions)}`)]}return[n.posix.join(t,"**")]};t.exports=(async(t,e)=>{e={cwd:process.cwd(),...e};if(typeof e.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``)}const r=await Promise.all([].concat(t).map(async t=>{const r=await s.isDirectory(o(t,e.cwd));return r?u(t,e):t}));return[].concat.apply([],r)});t.exports.sync=((t,e)=>{e={cwd:process.cwd(),...e};if(typeof e.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``)}const r=[].concat(t).map(t=>s.isDirectorySync(o(t,e.cwd))?u(t,e):t);return[].concat.apply([],r)})},3664:(t,e,r)=>{"use strict";const n=r(2708);const s=r(5679);const i=r(4630);const o=r(2405);const a=r(952);const u=r(5444);async function FastGlob(t,e){assertPatternsInput(t);const r=getWorks(t,s.default,e);const n=await Promise.all(r);return u.array.flatten(n)}(function(t){function sync(t,e){assertPatternsInput(t);const r=getWorks(t,o.default,e);return u.array.flatten(r)}t.sync=sync;function stream(t,e){assertPatternsInput(t);const r=getWorks(t,i.default,e);return u.stream.merge(r)}t.stream=stream;function generateTasks(t,e){assertPatternsInput(t);const r=[].concat(t);const s=new a.default(e);return n.generate(r,s)}t.generateTasks=generateTasks;function isDynamicPattern(t,e){assertPatternsInput(t);const r=new a.default(e);return u.pattern.isDynamicPattern(t,r)}t.isDynamicPattern=isDynamicPattern;function escapePath(t){assertPatternsInput(t);return u.path.escape(t)}t.escapePath=escapePath})(FastGlob||(FastGlob={}));function getWorks(t,e,r){const s=[].concat(t);const i=new a.default(r);const o=n.generate(s,i);const u=new e(i);return o.map(u.read,u)}function assertPatternsInput(t){const e=[].concat(t);const r=e.every(t=>u.string.isString(t)&&!u.string.isEmpty(t));if(!r){throw new TypeError("Patterns must be a string (non empty) or an array of strings")}}t.exports=FastGlob},2708:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;const n=r(5444);function generate(t,e){const r=getPositivePatterns(t);const s=getNegativePatternsAsPositive(t,e.ignore);const i=r.filter(t=>n.pattern.isStaticPattern(t,e));const o=r.filter(t=>n.pattern.isDynamicPattern(t,e));const a=convertPatternsToTasks(i,s,false);const u=convertPatternsToTasks(o,s,true);return a.concat(u)}e.generate=generate;function convertPatternsToTasks(t,e,r){const n=groupPatternsByBaseDirectory(t);if("."in n){const n=convertPatternGroupToTask(".",t,e,r);return[n]}return convertPatternGroupsToTasks(n,e,r)}e.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(t){return n.pattern.getPositivePatterns(t)}e.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(t,e){const r=n.pattern.getNegativePatterns(t).concat(e);const s=r.map(n.pattern.convertToPositivePattern);return s}e.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(t){const e={};return t.reduce((t,e)=>{const r=n.pattern.getBaseDirectory(e);if(r in t){t[r].push(e)}else{t[r]=[e]}return t},e)}e.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(t,e,r){return Object.keys(t).map(n=>{return convertPatternGroupToTask(n,t[n],e,r)})}e.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(t,e,r,s){return{dynamic:s,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(n.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=convertPatternGroupToTask},5679:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2083);const s=r(257);class ProviderAsync extends s.default{constructor(){super(...arguments);this._reader=new n.default(this._settings)}read(t){const e=this._getRootDirectory(t);const r=this._getReaderOptions(t);const n=[];return new Promise((s,i)=>{const o=this.api(e,t,r);o.once("error",i);o.on("data",t=>n.push(r.transform(t)));o.once("end",()=>s(n))})}api(t,e,r){if(e.dynamic){return this._reader.dynamic(t,r)}return this._reader.static(e.patterns,r)}}e.default=ProviderAsync},6983:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5444);const s=r(5295);class DeepFilter{constructor(t,e){this._settings=t;this._micromatchOptions=e}getFilter(t,e,r){const n=this._getMatcher(e);const s=this._getNegativePatternsRe(r);return e=>this._filter(t,e,n,s)}_getMatcher(t){return new s.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){const e=t.filter(n.pattern.isAffectDepthOfReadingPattern);return n.pattern.convertPatternsToRe(e,this._micromatchOptions)}_filter(t,e,r,s){if(this._isSkippedByDeep(t,e.path)){return false}if(this._isSkippedSymbolicLink(e)){return false}const i=n.path.removeLeadingDotSegment(e.path);if(this._isSkippedByPositivePatterns(i,r)){return false}return this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(t,e){if(this._settings.deep===Infinity){return false}return this._getEntryLevel(t,e)>=this._settings.deep}_getEntryLevel(t,e){const r=e.split("/").length;if(t===""){return r}const n=t.split("/").length;return r-n}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,e){return!this._settings.baseNameMatch&&!e.match(t)}_isSkippedByNegativePatterns(t,e){return!n.pattern.matchAny(t,e)}}e.default=DeepFilter},1343:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5444);class EntryFilter{constructor(t,e){this._settings=t;this._micromatchOptions=e;this.index=new Map}getFilter(t,e){const r=n.pattern.convertPatternsToRe(t,this._micromatchOptions);const s=n.pattern.convertPatternsToRe(e,this._micromatchOptions);return t=>this._filter(t,r,s)}_filter(t,e,r){if(this._settings.unique&&this._isDuplicateEntry(t)){return false}if(this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)){return false}if(this._isSkippedByAbsoluteNegativePatterns(t.path,r)){return false}const n=this._settings.baseNameMatch?t.name:t.path;const s=this._isMatchToPatterns(n,e)&&!this._isMatchToPatterns(t.path,r);if(this._settings.unique&&s){this._createIndexRecord(t)}return s}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,undefined)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,e){if(!this._settings.absolute){return false}const r=n.path.makeAbsolute(this._settings.cwd,t);return n.pattern.matchAny(r,e)}_isMatchToPatterns(t,e){const r=n.path.removeLeadingDotSegment(t);return n.pattern.matchAny(r,e)}}e.default=EntryFilter},6654:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5444);class ErrorFilter{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return n.errno.isEnoentCodeError(t)||this._settings.suppressErrors}}e.default=ErrorFilter},2576:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5444);class Matcher{constructor(t,e,r){this._patterns=t;this._settings=e;this._micromatchOptions=r;this._storage=[];this._fillStorage()}_fillStorage(){const t=n.pattern.expandPatternsWithBraceExpansion(this._patterns);for(const e of t){const t=this._getPatternSegments(e);const r=this._splitSegmentsIntoSections(t);this._storage.push({complete:r.length<=1,pattern:e,segments:t,sections:r})}}_getPatternSegments(t){const e=n.pattern.getPatternParts(t,this._micromatchOptions);return e.map(t=>{const e=n.pattern.isDynamicPattern(t,this._settings);if(!e){return{dynamic:false,pattern:t}}return{dynamic:true,pattern:t,patternRe:n.pattern.makeRe(t,this._micromatchOptions)}})}_splitSegmentsIntoSections(t){return n.array.splitWhen(t,t=>t.dynamic&&n.pattern.hasGlobStar(t.pattern))}}e.default=Matcher},5295:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2576);class PartialMatcher extends n.default{match(t){const e=t.split("/");const r=e.length;const n=this._storage.filter(t=>!t.complete||t.segments.length>r);for(const t of n){const n=t.sections[0];if(!t.complete&&r>n.length){return true}const s=e.every((e,r)=>{const n=t.segments[r];if(n.dynamic&&n.patternRe.test(e)){return true}if(!n.dynamic&&n.pattern===e){return true}return false});if(s){return true}}return false}}e.default=PartialMatcher},257:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5622);const s=r(6983);const i=r(1343);const o=r(6654);const a=r(4029);class Provider{constructor(t){this._settings=t;this.errorFilter=new o.default(this._settings);this.entryFilter=new i.default(this._settings,this._getMicromatchOptions());this.deepFilter=new s.default(this._settings,this._getMicromatchOptions());this.entryTransformer=new a.default(this._settings)}_getRootDirectory(t){return n.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){const e=t.base==="."?"":t.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:true,strictSlashes:false}}}e.default=Provider},4630:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2413);const s=r(2083);const i=r(257);class ProviderStream extends i.default{constructor(){super(...arguments);this._reader=new s.default(this._settings)}read(t){const e=this._getRootDirectory(t);const r=this._getReaderOptions(t);const s=this.api(e,t,r);const i=new n.Readable({objectMode:true,read:()=>{}});s.once("error",t=>i.emit("error",t)).on("data",t=>i.emit("data",r.transform(t))).once("end",()=>i.emit("end"));i.once("close",()=>s.destroy());return i}api(t,e,r){if(e.dynamic){return this._reader.dynamic(t,r)}return this._reader.static(e.patterns,r)}}e.default=ProviderStream},2405:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(6234);const s=r(257);class ProviderSync extends s.default{constructor(){super(...arguments);this._reader=new n.default(this._settings)}read(t){const e=this._getRootDirectory(t);const r=this._getReaderOptions(t);const n=this.api(e,t,r);return n.map(r.transform)}api(t,e,r){if(e.dynamic){return this._reader.dynamic(t,r)}return this._reader.static(e.patterns,r)}}e.default=ProviderSync},4029:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5444);class EntryTransformer{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let e=t.path;if(this._settings.absolute){e=n.path.makeAbsolute(this._settings.cwd,e);e=n.path.unixify(e)}if(this._settings.markDirectories&&t.dirent.isDirectory()){e+="/"}if(!this._settings.objectMode){return e}return Object.assign(Object.assign({},t),{path:e})}}e.default=EntryTransformer},5582:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(5622);const s=r(109);const i=r(5444);class Reader{constructor(t){this._settings=t;this._fsStatSettings=new s.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return n.resolve(this._settings.cwd,t)}_makeEntry(t,e){const r={name:e,path:e,dirent:i.fs.createDirentFromStats(e,t)};if(this._settings.stats){r.stats=t}return r}_isFatalError(t){return!i.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}}e.default=Reader},2083:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2413);const s=r(109);const i=r(6026);const o=r(5582);class ReaderStream extends o.default{constructor(){super(...arguments);this._walkStream=i.walkStream;this._stat=s.stat}dynamic(t,e){return this._walkStream(t,e)}static(t,e){const r=t.map(this._getFullEntryPath,this);const s=new n.PassThrough({objectMode:true});s._write=((n,i,o)=>{return this._getEntry(r[n],t[n],e).then(t=>{if(t!==null&&e.entryFilter(t)){s.push(t)}if(n===r.length-1){s.end()}o()}).catch(o)});for(let t=0;tthis._makeEntry(t,e)).catch(t=>{if(r.errorFilter(t)){return null}throw t})}_getStat(t){return new Promise((e,r)=>{this._stat(t,this._fsStatSettings,(t,n)=>{return t===null?e(n):r(t)})})}}e.default=ReaderStream},6234:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(109);const s=r(6026);const i=r(5582);class ReaderSync extends i.default{constructor(){super(...arguments);this._walkSync=s.walkSync;this._statSync=n.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){const r=[];for(const n of t){const t=this._getFullEntryPath(n);const s=this._getEntry(t,n,e);if(s===null||!e.entryFilter(s)){continue}r.push(s)}return r}_getEntry(t,e,r){try{const n=this._getStat(t);return this._makeEntry(n,e)}catch(t){if(r.errorFilter(t)){return null}throw t}}_getStat(t){return this._statSync(t,this._fsStatSettings)}}e.default=ReaderSync},952:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const n=r(5747);const s=r(2087);const i=Math.max(s.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:n.lstat,lstatSync:n.lstatSync,stat:n.stat,statSync:n.statSync,readdir:n.readdir,readdirSync:n.readdirSync};class Settings{constructor(t={}){this._options=t;this.absolute=this._getValue(this._options.absolute,false);this.baseNameMatch=this._getValue(this._options.baseNameMatch,false);this.braceExpansion=this._getValue(this._options.braceExpansion,true);this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,true);this.concurrency=this._getValue(this._options.concurrency,i);this.cwd=this._getValue(this._options.cwd,process.cwd());this.deep=this._getValue(this._options.deep,Infinity);this.dot=this._getValue(this._options.dot,false);this.extglob=this._getValue(this._options.extglob,true);this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,true);this.fs=this._getFileSystemMethods(this._options.fs);this.globstar=this._getValue(this._options.globstar,true);this.ignore=this._getValue(this._options.ignore,[]);this.markDirectories=this._getValue(this._options.markDirectories,false);this.objectMode=this._getValue(this._options.objectMode,false);this.onlyDirectories=this._getValue(this._options.onlyDirectories,false);this.onlyFiles=this._getValue(this._options.onlyFiles,true);this.stats=this._getValue(this._options.stats,false);this.suppressErrors=this._getValue(this._options.suppressErrors,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,false);this.unique=this._getValue(this._options.unique,true);if(this.onlyDirectories){this.onlyFiles=false}if(this.stats){this.objectMode=true}}_getValue(t,e){return t===undefined?e:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),t)}}e.default=Settings},5325:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.splitWhen=e.flatten=void 0;function flatten(t){return t.reduce((t,e)=>[].concat(t,e),[])}e.flatten=flatten;function splitWhen(t,e){const r=[[]];let n=0;for(const s of t){if(e(s)){n++;r[n]=[]}else{r[n].push(s)}}return r}e.splitWhen=splitWhen},1230:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.isEnoentCodeError=void 0;function isEnoentCodeError(t){return t.code==="ENOENT"}e.isEnoentCodeError=isEnoentCodeError},7543:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createDirentFromStats=void 0;class DirentFromStats{constructor(t,e){this.name=t;this.isBlockDevice=e.isBlockDevice.bind(e);this.isCharacterDevice=e.isCharacterDevice.bind(e);this.isDirectory=e.isDirectory.bind(e);this.isFIFO=e.isFIFO.bind(e);this.isFile=e.isFile.bind(e);this.isSocket=e.isSocket.bind(e);this.isSymbolicLink=e.isSymbolicLink.bind(e)}}function createDirentFromStats(t,e){return new DirentFromStats(t,e)}e.createDirentFromStats=createDirentFromStats},5444:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;const n=r(5325);e.array=n;const s=r(1230);e.errno=s;const i=r(7543);e.fs=i;const o=r(3873);e.path=o;const a=r(1221);e.pattern=a;const u=r(8382);e.stream=u;const c=r(2203);e.string=c},3873:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;const n=r(5622);const s=2;const i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function unixify(t){return t.replace(/\\/g,"/")}e.unixify=unixify;function makeAbsolute(t,e){return n.resolve(t,e)}e.makeAbsolute=makeAbsolute;function escape(t){return t.replace(i,"\\$2")}e.escape=escape;function removeLeadingDotSegment(t){if(t.charAt(0)==="."){const e=t.charAt(1);if(e==="/"||e==="\\"){return t.slice(s)}}return t}e.removeLeadingDotSegment=removeLeadingDotSegment},1221:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;const n=r(5622);const s=r(4655);const i=r(6228);const o=r(8569);const a="**";const u="\\";const c=/[*?]|^!/;const l=/\[.*]/;const f=/(?:^|[^!*+?@])\(.*\|.*\)/;const p=/[!*+?@]\(.*\)/;const d=/{.*(?:,|\.\.).*}/;function isStaticPattern(t,e={}){return!isDynamicPattern(t,e)}e.isStaticPattern=isStaticPattern;function isDynamicPattern(t,e={}){if(t===""){return false}if(e.caseSensitiveMatch===false||t.includes(u)){return true}if(c.test(t)||l.test(t)||f.test(t)){return true}if(e.extglob!==false&&p.test(t)){return true}if(e.braceExpansion!==false&&d.test(t)){return true}return false}e.isDynamicPattern=isDynamicPattern;function convertToPositivePattern(t){return isNegativePattern(t)?t.slice(1):t}e.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(t){return"!"+t}e.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(t){return t.startsWith("!")&&t[1]!=="("}e.isNegativePattern=isNegativePattern;function isPositivePattern(t){return!isNegativePattern(t)}e.isPositivePattern=isPositivePattern;function getNegativePatterns(t){return t.filter(isNegativePattern)}e.getNegativePatterns=getNegativePatterns;function getPositivePatterns(t){return t.filter(isPositivePattern)}e.getPositivePatterns=getPositivePatterns;function getBaseDirectory(t){return s(t,{flipBackslashes:false})}e.getBaseDirectory=getBaseDirectory;function hasGlobStar(t){return t.includes(a)}e.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(t){return t.endsWith("/"+a)}e.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(t){const e=n.basename(t);return endsWithSlashGlobStar(t)||isStaticPattern(e)}e.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function expandPatternsWithBraceExpansion(t){return t.reduce((t,e)=>{return t.concat(expandBraceExpansion(e))},[])}e.expandPatternsWithBraceExpansion=expandPatternsWithBraceExpansion;function expandBraceExpansion(t){return i.braces(t,{expand:true,nodupes:true})}e.expandBraceExpansion=expandBraceExpansion;function getPatternParts(t,e){let{parts:r}=o.scan(t,Object.assign(Object.assign({},e),{parts:true}));if(r.length===0){r=[t]}if(r[0].startsWith("/")){r[0]=r[0].slice(1);r.unshift("")}return r}e.getPatternParts=getPatternParts;function makeRe(t,e){return i.makeRe(t,e)}e.makeRe=makeRe;function convertPatternsToRe(t,e){return t.map(t=>makeRe(t,e))}e.convertPatternsToRe=convertPatternsToRe;function matchAny(t,e){return e.some(e=>e.test(t))}e.matchAny=matchAny},8382:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.merge=void 0;const n=r(2578);function merge(t){const e=n(t);t.forEach(t=>{t.once("error",t=>e.emit("error",t))});e.once("close",()=>propagateCloseEventToSources(t));e.once("end",()=>propagateCloseEventToSources(t));return e}e.merge=merge;function propagateCloseEventToSources(t){t.forEach(t=>t.emit("close"))}},2203:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.isEmpty=e.isString=void 0;function isString(t){return typeof t==="string"}e.isString=isString;function isEmpty(t){return t===""}e.isEmpty=isEmpty},7340:(t,e,r)=>{"use strict";var n=r(2113);function fastqueue(t,e,r){if(typeof t==="function"){r=e;e=t;t=null}if(r<1){throw new Error("fastqueue concurrency must be greater than 1")}var s=n(Task);var i=null;var o=null;var a=0;var u=null;var c={push:push,drain:noop,saturated:noop,pause:pause,paused:false,concurrency:r,running:running,resume:resume,idle:idle,length:length,getQueue:getQueue,unshift:unshift,empty:noop,kill:kill,killAndDrain:killAndDrain,error:error};return c;function running(){return a}function pause(){c.paused=true}function length(){var t=i;var e=0;while(t){t=t.next;e++}return e}function getQueue(){var t=i;var e=[];while(t){e.push(t.value);t=t.next}return e}function resume(){if(!c.paused)return;c.paused=false;for(var t=0;t{"use strict";const n=r(1669);const s=r(1861);const i=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);const o=t=>{return e=>t===true?Number(e):String(e)};const a=t=>{return typeof t==="number"||typeof t==="string"&&t!==""};const u=t=>Number.isInteger(+t);const c=t=>{let e=`${t}`;let r=-1;if(e[0]==="-")e=e.slice(1);if(e==="0")return false;while(e[++r]==="0");return r>0};const l=(t,e,r)=>{if(typeof t==="string"||typeof e==="string"){return true}return r.stringify===true};const f=(t,e,r)=>{if(e>0){let r=t[0]==="-"?"-":"";if(r)t=t.slice(1);t=r+t.padStart(r?e-1:e,"0")}if(r===false){return String(t)}return t};const p=(t,e)=>{let r=t[0]==="-"?"-":"";if(r){t=t.slice(1);e--}while(t.length{t.negatives.sort((t,e)=>te?1:0);t.positives.sort((t,e)=>te?1:0);let r=e.capture?"":"?:";let n="";let s="";let i;if(t.positives.length){n=t.positives.join("|")}if(t.negatives.length){s=`-(${r}${t.negatives.join("|")})`}if(n&&s){i=`${n}|${s}`}else{i=n||s}if(e.wrap){return`(${r}${i})`}return i};const h=(t,e,r,n)=>{if(r){return s(t,e,{wrap:false,...n})}let i=String.fromCharCode(t);if(t===e)return i;let o=String.fromCharCode(e);return`[${i}-${o}]`};const g=(t,e,r)=>{if(Array.isArray(t)){let e=r.wrap===true;let n=r.capture?"":"?:";return e?`(${n}${t.join("|")})`:t.join("|")}return s(t,e,r)};const m=(...t)=>{return new RangeError("Invalid range arguments: "+n.inspect(...t))};const y=(t,e,r)=>{if(r.strictRanges===true)throw m([t,e]);return[]};const _=(t,e)=>{if(e.strictRanges===true){throw new TypeError(`Expected step "${t}" to be a number`)}return[]};const b=(t,e,r=1,n={})=>{let s=Number(t);let i=Number(e);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===true)throw m([t,e]);return[]}if(s===0)s=0;if(i===0)i=0;let a=s>i;let u=String(t);let y=String(e);let _=String(r);r=Math.max(Math.abs(r),1);let b=c(u)||c(y)||c(_);let S=b?Math.max(u.length,y.length,_.length):0;let E=b===false&&l(t,e,n)===false;let v=n.transform||o(E);if(n.toRegex&&r===1){return h(p(t,S),p(e,S),true,n)}let T={negatives:[],positives:[]};let R=t=>T[t<0?"negatives":"positives"].push(Math.abs(t));let k=[];let P=0;while(a?s>=i:s<=i){if(n.toRegex===true&&r>1){R(s)}else{k.push(f(v(s,P),S,E))}s=a?s-r:s+r;P++}if(n.toRegex===true){return r>1?d(T,n):g(k,null,{wrap:false,...n})}return k};const S=(t,e,r=1,n={})=>{if(!u(t)&&t.length>1||!u(e)&&e.length>1){return y(t,e,n)}let s=n.transform||(t=>String.fromCharCode(t));let i=`${t}`.charCodeAt(0);let o=`${e}`.charCodeAt(0);let a=i>o;let c=Math.min(i,o);let l=Math.max(i,o);if(n.toRegex&&r===1){return h(c,l,false,n)}let f=[];let p=0;while(a?i>=o:i<=o){f.push(s(i,p));i=a?i-r:i+r;p++}if(n.toRegex===true){return g(f,null,{wrap:false,options:n})}return f};const E=(t,e,r,n={})=>{if(e==null&&a(t)){return[t]}if(!a(t)||!a(e)){return y(t,e,n)}if(typeof r==="function"){return E(t,e,1,{transform:r})}if(i(r)){return E(t,e,0,r)}let s={...n};if(s.capture===true)s.wrap=true;r=r||s.step||1;if(!u(r)){if(r!=null&&!i(r))return _(r,s);return E(t,e,1,r)}if(u(t)&&u(e)){return b(t,e,r,s)}return S(t,e,Math.max(Math.abs(r),1),s)};t.exports=E},4655:(t,e,r)=>{"use strict";var n=r(4466);var s=r(5622).posix.dirname;var i=r(2087).platform()==="win32";var o="/";var a=/\\/g;var u=/[\{\[].*[\}\]]$/;var c=/(^|[^\\])([\{\[]|\([^\)]+$)/;var l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function globParent(t,e){var r=Object.assign({flipBackslashes:true},e);if(r.flipBackslashes&&i&&t.indexOf(o)<0){t=t.replace(a,o)}if(u.test(t)){t+=o}t+="a";do{t=s(t)}while(n(t)||c.test(t));return t.replace(l,"$1")}},9038:(t,e,r)=>{"use strict";const{promisify:n}=r(1669);const s=r(5747);const i=r(5622);const o=r(3664);const a=r(4777);const u=r(4111);const c=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"];const l=n(s.readFile);const f=t=>e=>{if(e.startsWith("!")){return"!"+i.posix.join(t,e.slice(1))}return i.posix.join(t,e)};const p=(t,e)=>{const r=u(i.relative(e.cwd,i.dirname(e.fileName)));return t.split(/\r?\n/).filter(Boolean).filter(t=>!t.startsWith("#")).map(f(r))};const d=t=>{const e=a();for(const r of t){e.add(p(r.content,{cwd:r.cwd,fileName:r.filePath}))}return e};const h=(t,e)=>{t=u(t);if(i.isAbsolute(e)){if(e.startsWith(t)){return e}throw new Error(`Path ${e} is not in cwd ${t}`)}return i.join(t,e)};const g=(t,e)=>{return r=>t.ignores(u(i.relative(e,h(e,r.path||r))))};const m=async(t,e)=>{const r=i.join(e,t);const n=await l(r,"utf8");return{cwd:e,filePath:r,content:n}};const y=(t,e)=>{const r=i.join(e,t);const n=s.readFileSync(r,"utf8");return{cwd:e,filePath:r,content:n}};const _=({ignore:t=[],cwd:e=u(process.cwd())}={})=>{return{ignore:t,cwd:e}};t.exports=(async t=>{t=_(t);const e=await o("**/.gitignore",{ignore:c.concat(t.ignore),cwd:t.cwd});const r=await Promise.all(e.map(e=>m(e,t.cwd)));const n=d(r);return g(n,t.cwd)});t.exports.sync=(t=>{t=_(t);const e=o.sync("**/.gitignore",{ignore:c.concat(t.ignore),cwd:t.cwd});const r=e.map(e=>y(e,t.cwd));const n=d(r);return g(n,t.cwd)})},3398:(t,e,r)=>{"use strict";const n=r(5747);const s=r(9600);const i=r(2578);const o=r(3664);const a=r(2738);const u=r(9038);const{FilterStream:c,UniqueStream:l}=r(2408);const f=()=>false;const p=t=>t[0]==="!";const d=t=>{if(!t.every(t=>typeof t==="string")){throw new TypeError("Patterns must be a string or an array of strings")}};const h=(t={})=>{if(!t.cwd){return}let e;try{e=n.statSync(t.cwd)}catch{return}if(!e.isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const g=t=>t.stats instanceof n.Stats?t.path:t;const m=(t,e)=>{t=s([].concat(t));d(t);h(e);const r=[];e={ignore:[],expandDirectories:true,...e};for(const[n,s]of t.entries()){if(p(s)){continue}const i=t.slice(n).filter(t=>p(t)).map(t=>t.slice(1));const o={...e,ignore:e.ignore.concat(i)};r.push({pattern:s,options:o})}return r};const y=(t,e)=>{let r={};if(t.options.cwd){r.cwd=t.options.cwd}if(Array.isArray(t.options.expandDirectories)){r={...r,files:t.options.expandDirectories}}else if(typeof t.options.expandDirectories==="object"){r={...r,...t.options.expandDirectories}}return e(t.pattern,r)};const _=(t,e)=>t.options.expandDirectories?y(t,e):[t.pattern];const b=t=>{return t&&t.gitignore?u.sync({cwd:t.cwd,ignore:t.ignore}):f};const S=t=>e=>{const{options:r}=t;if(r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories){r.ignore=a.sync(r.ignore)}return{pattern:e,options:r}};t.exports=(async(t,e)=>{const r=m(t,e);const n=async()=>{return e&&e.gitignore?u({cwd:e.cwd,ignore:e.ignore}):f};const i=async()=>{const t=await Promise.all(r.map(async t=>{const e=await _(t,a);return Promise.all(e.map(S(t)))}));return s(...t)};const[c,l]=await Promise.all([n(),i()]);const p=await Promise.all(l.map(t=>o(t.pattern,t.options)));return s(...p).filter(t=>!c(g(t)))});t.exports.sync=((t,e)=>{const r=m(t,e);const n=[];for(const t of r){const e=_(t,a.sync).map(S(t));n.push(...e)}const i=b(e);let u=[];for(const t of n){u=s(u,o.sync(t.pattern,t.options))}return u.filter(t=>!i(t))});t.exports.stream=((t,e)=>{const r=m(t,e);const n=[];for(const t of r){const e=_(t,a.sync).map(S(t));n.push(...e)}const s=b(e);const u=new c(t=>!s(t));const f=new l;return i(n.map(t=>o.stream(t.pattern,t.options))).pipe(u).pipe(f)});t.exports.generateGlobTasks=m;t.exports.hasMagic=((t,e)=>[].concat(t).some(t=>o.isDynamicPattern(t,e)));t.exports.gitignore=u},2408:(t,e,r)=>{"use strict";const{Transform:n}=r(2413);class ObjectTransform extends n{constructor(){super({objectMode:true})}}class FilterStream extends ObjectTransform{constructor(t){super();this._filter=t}_transform(t,e,r){if(this._filter(t)){this.push(t)}r()}}class UniqueStream extends ObjectTransform{constructor(){super();this._pushed=new Set}_transform(t,e,r){if(!this._pushed.has(t)){this.push(t);this._pushed.add(t)}r()}}t.exports={FilterStream:FilterStream,UniqueStream:UniqueStream}},1621:t=>{"use strict";t.exports=((t,e=process.argv)=>{const r=t.startsWith("-")?"":t.length===1?"-":"--";const n=e.indexOf(r+t);const s=e.indexOf("--");return n!==-1&&(s===-1||n{function makeArray(t){return Array.isArray(t)?t:[t]}const e="";const r=" ";const n="\\";const s=/^\s+$/;const i=/^\\!/;const o=/^\\#/;const a=/\r?\n/g;const u=/^\.*\/|^\.+$/;const c="/";const l=typeof Symbol!=="undefined"?Symbol.for("node-ignore"):"node-ignore";const f=(t,e,r)=>Object.defineProperty(t,e,{value:r});const p=/([0-z])-([0-z])/g;const d=t=>t.replace(p,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:e);const h=t=>{const{length:e}=t;return t.slice(0,e-e%2)};const g=[[/\\?\s+$/,t=>t.indexOf("\\")===0?r:e],[/\\\s/g,()=>r],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6`${e}[^\\/]*`],[/\\\\\\(?=[$.|*+(){^])/g,()=>n],[/\\\\/g,()=>n],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,i)=>e===n?`\\[${r}${h(s)}${i}`:i==="]"?s.length%2===0?`[${d(r)}${s}]`:"[]":"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>{const r=e?`${e}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`}]];const m=Object.create(null);const y=(t,e,r)=>{const n=m[t];if(n){return n}const s=g.reduce((e,r)=>e.replace(r[0],r[1].bind(t)),t);return m[t]=r?new RegExp(s,"i"):new RegExp(s)};const _=t=>typeof t==="string";const b=t=>t&&_(t)&&!s.test(t)&&t.indexOf("#")!==0;const S=t=>t.split(a);class IgnoreRule{constructor(t,e,r,n){this.origin=t;this.pattern=e;this.negative=r;this.regex=n}}const E=(t,e)=>{const r=t;let n=false;if(t.indexOf("!")===0){n=true;t=t.substr(1)}t=t.replace(i,"!").replace(o,"#");const s=y(t,n,e);return new IgnoreRule(r,t,n,s)};const v=(t,e)=>{throw new e(t)};const T=(t,e,r)=>{if(!_(t)){return r(`path must be a string, but got \`${e}\``,TypeError)}if(!t){return r(`path must not be empty`,TypeError)}if(T.isNotRelative(t)){const t="`path.relative()`d";return r(`path should be a ${t} string, but got "${e}"`,RangeError)}return true};const R=t=>u.test(t);T.isNotRelative=R;T.convert=(t=>t);class Ignore{constructor({ignorecase:t=true}={}){this._rules=[];this._ignorecase=t;f(this,l,true);this._initCache()}_initCache(){this._ignoreCache=Object.create(null);this._testCache=Object.create(null)}_addPattern(t){if(t&&t[l]){this._rules=this._rules.concat(t._rules);this._added=true;return}if(b(t)){const e=E(t,this._ignorecase);this._added=true;this._rules.push(e)}}add(t){this._added=false;makeArray(_(t)?S(t):t).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(t){return this.add(t)}_testOne(t,e){let r=false;let n=false;this._rules.forEach(s=>{const{negative:i}=s;if(n===i&&r!==n||i&&!r&&!n&&!e){return}const o=s.regex.test(t);if(o){r=!i;n=i}});return{ignored:r,unignored:n}}_test(t,e,r,n){const s=t&&T.convert(t);T(s,t,v);return this._t(s,e,r,n)}_t(t,e,r,n){if(t in e){return e[t]}if(!n){n=t.split(c)}n.pop();if(!n.length){return e[t]=this._testOne(t,r)}const s=this._t(n.join(c)+c,e,r,n);return e[t]=s.ignored?s:this._testOne(t,r)}ignores(t){return this._test(t,this._ignoreCache,false).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return makeArray(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,true)}}const k=t=>new Ignore(t);const P=()=>false;const C=t=>T(t&&T.convert(t),t,P);k.isPathValid=C;k.default=k;t.exports=k;if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const t=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");T.convert=t;const e=/^[a-z]:\//i;T.isNotRelative=(t=>e.test(t)||R(t))}},6435:t=>{t.exports=function isExtglob(t){if(typeof t!=="string"||t===""){return false}var e;while(e=/(\\).|([@?!+*]\(.*\))/g.exec(t)){if(e[2])return true;t=t.slice(e.index+e[0].length)}return false}},4466:(t,e,r)=>{var n=r(6435);var s={"{":"}","(":")","[":"]"};var i=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;var o=/\\(.)|(^!|[*?{}()[\]]|\(\?)/;t.exports=function isGlob(t,e){if(typeof t!=="string"||t===""){return false}if(n(t)){return true}var r=i;var a;if(e&&e.strict===false){r=o}while(a=r.exec(t)){if(a[2])return true;var u=a.index+a[0].length;var c=a[1];var l=c?s[c]:null;if(c&&l){var f=t.indexOf(l,u);if(f!==-1){u=f+1}}t=t.slice(u)}return false}},5680:t=>{"use strict";t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},2578:(t,e,r)=>{"use strict";const n=r(2413);const s=n.PassThrough;const i=Array.prototype.slice;t.exports=merge2;function merge2(){const t=[];const e=i.call(arguments);let r=false;let n=e[e.length-1];if(n&&!Array.isArray(n)&&n.pipe==null){e.pop()}else{n={}}const o=n.end!==false;const a=n.pipeError===true;if(n.objectMode==null){n.objectMode=true}if(n.highWaterMark==null){n.highWaterMark=64*1024}const u=s(n);function addStream(){for(let e=0,r=arguments.length;e0){return}r=false;mergeStream()}function pipe(t){function onend(){t.removeListener("merge2UnpipeEnd",onend);t.removeListener("end",onend);if(a){t.removeListener("error",onerror)}next()}function onerror(t){u.emit("error",t)}if(t._readableState.endEmitted){return next()}t.on("merge2UnpipeEnd",onend);t.on("end",onend);if(a){t.on("error",onerror)}t.pipe(u,{end:false});t.resume()}for(let t=0;t{"use strict";const n=r(1669);const s=r(610);const i=r(8569);const o=r(479);const a=t=>typeof t==="string"&&(t===""||t==="./");const u=(t,e,r)=>{e=[].concat(e);t=[].concat(t);let n=new Set;let s=new Set;let o=new Set;let a=0;let u=t=>{o.add(t.output);if(r&&r.onResult){r.onResult(t)}};for(let o=0;o!n.has(t));if(r&&l.length===0){if(r.failglob===true){throw new Error(`No matches found for "${e.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?e.map(t=>t.replace(/\\/g,"")):e}}return l};u.match=u;u.matcher=((t,e)=>i(t,e));u.isMatch=((t,e,r)=>i(e,r)(t));u.any=u.isMatch;u.not=((t,e,r={})=>{e=[].concat(e).map(String);let n=new Set;let s=[];let i=t=>{if(r.onResult)r.onResult(t);s.push(t.output)};let o=u(t,e,{...r,onResult:i});for(let t of s){if(!o.includes(t)){n.add(t)}}return[...n]});u.contains=((t,e,r)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${n.inspect(t)}"`)}if(Array.isArray(e)){return e.some(e=>u.contains(t,e,r))}if(typeof e==="string"){if(a(t)||a(e)){return false}if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e)){return true}}return u.isMatch(t,e,{...r,contains:true})});u.matchKeys=((t,e,r)=>{if(!o.isObject(t)){throw new TypeError("Expected the first argument to be an object")}let n=u(Object.keys(t),e,r);let s={};for(let e of n)s[e]=t[e];return s});u.some=((t,e,r)=>{let n=[].concat(t);for(let t of[].concat(e)){let e=i(String(t),r);if(n.some(t=>e(t))){return true}}return false});u.every=((t,e,r)=>{let n=[].concat(t);for(let t of[].concat(e)){let e=i(String(t),r);if(!n.every(t=>e(t))){return false}}return true});u.all=((t,e,r)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${n.inspect(t)}"`)}return[].concat(e).every(e=>i(e,r)(t))});u.capture=((t,e,r)=>{let n=o.isWindows(r);let s=i.makeRe(String(t),{...r,capture:true});let a=s.exec(n?o.toPosixSlashes(e):e);if(a){return a.slice(1).map(t=>t===void 0?"":t)}});u.makeRe=((...t)=>i.makeRe(...t));u.scan=((...t)=>i.scan(...t));u.parse=((t,e)=>{let r=[];for(let n of[].concat(t||[])){for(let t of s(String(n),e)){r.push(i.parse(t,e))}}return r});u.braces=((t,e)=>{if(typeof t!=="string")throw new TypeError("Expected a string");if(e&&e.nobrace===true||!/\{.*\}/.test(t)){return[t]}return s(t,e)});u.braceExpand=((t,e)=>{if(typeof t!=="string")throw new TypeError("Expected a string");return u.braces(t,{...e,expand:true})});t.exports=u},900:t=>{var e=1e3;var r=e*60;var n=r*60;var s=n*24;var i=s*7;var o=s*365.25;t.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0){return parse(t)}else if(r==="number"&&isFinite(t)){return e.long?fmtLong(t):fmtShort(t)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function parse(t){t=String(t);if(t.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!a){return}var u=parseFloat(a[1]);var c=(a[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return u*o;case"weeks":case"week":case"w":return u*i;case"days":case"day":case"d":return u*s;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(t){var i=Math.abs(t);if(i>=s){return Math.round(t/s)+"d"}if(i>=n){return Math.round(t/n)+"h"}if(i>=r){return Math.round(t/r)+"m"}if(i>=e){return Math.round(t/e)+"s"}return t+"ms"}function fmtLong(t){var i=Math.abs(t);if(i>=s){return plural(t,i,s,"day")}if(i>=n){return plural(t,i,n,"hour")}if(i>=r){return plural(t,i,r,"minute")}if(i>=e){return plural(t,i,e,"second")}return t+" ms"}function plural(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}},3433:(t,e,r)=>{"use strict";const{promisify:n}=r(1669);const s=r(5747);async function isType(t,e,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{const i=await n(s[t])(r);return i[e]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}function isTypeSync(t,e,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{return s[t](r)[e]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}e.isFile=isType.bind(null,"stat","isFile");e.isDirectory=isType.bind(null,"stat","isDirectory");e.isSymlink=isType.bind(null,"lstat","isSymbolicLink");e.isFileSync=isTypeSync.bind(null,"statSync","isFile");e.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");e.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},8569:(t,e,r)=>{"use strict";t.exports=r(3322)},6099:(t,e,r)=>{"use strict";const n=r(5622);const s="\\\\/";const i=`[^${s}]`;const o="\\.";const a="\\+";const u="\\?";const c="\\/";const l="(?=.)";const f="[^/]";const p=`(?:${c}|$)`;const d=`(?:^|${c})`;const h=`${o}{1,2}${p}`;const g=`(?!${o})`;const m=`(?!${d}${h})`;const y=`(?!${o}{0,1}${p})`;const _=`(?!${h})`;const b=`[^.${c}]`;const S=`${f}*?`;const E={DOT_LITERAL:o,PLUS_LITERAL:a,QMARK_LITERAL:u,SLASH_LITERAL:c,ONE_CHAR:l,QMARK:f,END_ANCHOR:p,DOTS_SLASH:h,NO_DOT:g,NO_DOTS:m,NO_DOT_SLASH:y,NO_DOTS_SLASH:_,QMARK_NO_DOT:b,STAR:S,START_ANCHOR:d};const v={...E,SLASH_LITERAL:`[${s}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${o}{1,2}(?:[${s}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${s}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${s}]|$))`,QMARK_NO_DOT:`[^.${s}]`,START_ANCHOR:`(?:^|[${s}])`,END_ANCHOR:`(?:[${s}]|$)`};const T={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:T,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:n.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?v:E}}},2139:(t,e,r)=>{"use strict";const n=r(6099);const s=r(479);const{MAX_LENGTH:i,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:c}=n;const l=(t,e)=>{if(typeof e.expandRange==="function"){return e.expandRange(...t,e)}t.sort();const r=`[${t.join("-")}]`;try{new RegExp(r)}catch(e){return t.map(t=>s.escapeRegex(t)).join("..")}return r};const f=(t,e)=>{return`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`};const p=(t,e)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=c[t]||t;const r={...e};const p=typeof r.maxLength==="number"?Math.min(i,r.maxLength):i;let d=t.length;if(d>p){throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${p}`)}const h={type:"bos",value:"",output:r.prepend||""};const g=[h];const m=r.capture?"":"?:";const y=s.isWindows(e);const _=n.globChars(y);const b=n.extglobChars(_);const{DOT_LITERAL:S,PLUS_LITERAL:E,SLASH_LITERAL:v,ONE_CHAR:T,DOTS_SLASH:R,NO_DOT:k,NO_DOT_SLASH:P,NO_DOTS_SLASH:C,QMARK:A,QMARK_NO_DOT:O,STAR:w,START_ANCHOR:x}=_;const M=t=>{return`(${m}(?:(?!${x}${t.dot?R:S}).)*?)`};const L=r.dot?"":k;const D=r.dot?A:O;let F=r.bash===true?M(r):w;if(r.capture){F=`(${F})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const j={input:t,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:g};t=s.removePrefix(t,j);d=t.length;const I=[];const $=[];const N=[];let G=h;let B;const H=()=>j.index===d-1;const U=j.peek=((e=1)=>t[j.index+e]);const W=j.advance=(()=>t[++j.index]);const V=()=>t.slice(j.index+1);const K=(t="",e=0)=>{j.consumed+=t;j.index+=e};const Q=t=>{j.output+=t.output!=null?t.output:t.value;K(t.value)};const Y=()=>{let t=1;while(U()==="!"&&(U(2)!=="("||U(3)==="?")){W();j.start++;t++}if(t%2===0){return false}j.negated=true;j.start++;return true};const z=t=>{j[t]++;N.push(t)};const X=t=>{j[t]--;N.pop()};const Z=t=>{if(G.type==="globstar"){const e=j.braces>0&&(t.type==="comma"||t.type==="brace");const r=t.extglob===true||I.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!e&&!r){j.output=j.output.slice(0,-G.output.length);G.type="star";G.value="*";G.output=F;j.output+=G.output}}if(I.length&&t.type!=="paren"&&!b[t.value]){I[I.length-1].inner+=t.value}if(t.value||t.output)Q(t);if(G&&G.type==="text"&&t.type==="text"){G.value+=t.value;G.output=(G.output||"")+t.value;return}t.prev=G;g.push(t);G=t};const J=(t,e)=>{const n={...b[e],conditions:1,inner:""};n.prev=G;n.parens=j.parens;n.output=j.output;const s=(r.capture?"(":"")+n.open;z("parens");Z({type:t,value:e,output:j.output?"":T});Z({type:"paren",extglob:true,value:W(),output:s});I.push(n)};const q=t=>{let e=t.close+(r.capture?")":"");if(t.type==="negate"){let n=F;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){n=M(r)}if(n!==F||H()||/^\)+$/.test(V())){e=t.close=`)$))${n}`}if(t.prev.type==="bos"&&H()){j.negatedExtglob=true}}Z({type:"paren",extglob:true,value:B,output:e});X("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let n=false;let i=t.replace(u,(t,e,r,s,i,o)=>{if(s==="\\"){n=true;return t}if(s==="?"){if(e){return e+s+(i?A.repeat(i.length):"")}if(o===0){return D+(i?A.repeat(i.length):"")}return A.repeat(r.length)}if(s==="."){return S.repeat(r.length)}if(s==="*"){if(e){return e+s+(i?F:"")}return F}return e?t:`\\${t}`});if(n===true){if(r.unescape===true){i=i.replace(/\\/g,"")}else{i=i.replace(/\\+/g,t=>{return t.length%2===0?"\\\\":t?"\\":""})}}if(i===t&&r.contains===true){j.output=t;return j}j.output=s.wrapOutput(i,j,e);return j}while(!H()){B=W();if(B==="\0"){continue}if(B==="\\"){const t=U();if(t==="/"&&r.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){B+="\\";Z({type:"text",value:B});continue}const e=/^\\+/.exec(V());let n=0;if(e&&e[0].length>2){n=e[0].length;j.index+=n;if(n%2!==0){B+="\\"}}if(r.unescape===true){B=W()||""}else{B+=W()||""}if(j.brackets===0){Z({type:"text",value:B});continue}}if(j.brackets>0&&(B!=="]"||G.value==="["||G.value==="[^")){if(r.posix!==false&&B===":"){const t=G.value.slice(1);if(t.includes("[")){G.posix=true;if(t.includes(":")){const t=G.value.lastIndexOf("[");const e=G.value.slice(0,t);const r=G.value.slice(t+2);const n=o[r];if(n){G.value=e+n;j.backtrack=true;W();if(!h.output&&g.indexOf(G)===1){h.output=T}continue}}}}if(B==="["&&U()!==":"||B==="-"&&U()==="]"){B=`\\${B}`}if(B==="]"&&(G.value==="["||G.value==="[^")){B=`\\${B}`}if(r.posix===true&&B==="!"&&G.value==="["){B="^"}G.value+=B;Q({value:B});continue}if(j.quotes===1&&B!=='"'){B=s.escapeRegex(B);G.value+=B;Q({value:B});continue}if(B==='"'){j.quotes=j.quotes===1?0:1;if(r.keepQuotes===true){Z({type:"text",value:B})}continue}if(B==="("){z("parens");Z({type:"paren",value:B});continue}if(B===")"){if(j.parens===0&&r.strictBrackets===true){throw new SyntaxError(f("opening","("))}const t=I[I.length-1];if(t&&j.parens===t.parens+1){q(I.pop());continue}Z({type:"paren",value:B,output:j.parens?")":"\\)"});X("parens");continue}if(B==="["){if(r.nobracket===true||!V().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(f("closing","]"))}B=`\\${B}`}else{z("brackets")}Z({type:"bracket",value:B});continue}if(B==="]"){if(r.nobracket===true||G&&G.type==="bracket"&&G.value.length===1){Z({type:"text",value:B,output:`\\${B}`});continue}if(j.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(f("opening","["))}Z({type:"text",value:B,output:`\\${B}`});continue}X("brackets");const t=G.value.slice(1);if(G.posix!==true&&t[0]==="^"&&!t.includes("/")){B=`/${B}`}G.value+=B;Q({value:B});if(r.literalBrackets===false||s.hasRegexChars(t)){continue}const e=s.escapeRegex(G.value);j.output=j.output.slice(0,-G.value.length);if(r.literalBrackets===true){j.output+=e;G.value=e;continue}G.value=`(${m}${e}|${G.value})`;j.output+=G.value;continue}if(B==="{"&&r.nobrace!==true){z("braces");const t={type:"brace",value:B,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};$.push(t);Z(t);continue}if(B==="}"){const t=$[$.length-1];if(r.nobrace===true||!t){Z({type:"text",value:B,output:B});continue}let e=")";if(t.dots===true){const t=g.slice();const n=[];for(let e=t.length-1;e>=0;e--){g.pop();if(t[e].type==="brace"){break}if(t[e].type!=="dots"){n.unshift(t[e].value)}}e=l(n,r);j.backtrack=true}if(t.comma!==true&&t.dots!==true){const r=j.output.slice(0,t.outputIndex);const n=j.tokens.slice(t.tokensIndex);t.value=t.output="\\{";B=e="\\}";j.output=r;for(const t of n){j.output+=t.output||t.value}}Z({type:"brace",value:B,output:e});X("braces");$.pop();continue}if(B==="|"){if(I.length>0){I[I.length-1].conditions++}Z({type:"text",value:B});continue}if(B===","){let t=B;const e=$[$.length-1];if(e&&N[N.length-1]==="braces"){e.comma=true;t="|"}Z({type:"comma",value:B,output:t});continue}if(B==="/"){if(G.type==="dot"&&j.index===j.start+1){j.start=j.index+1;j.consumed="";j.output="";g.pop();G=h;continue}Z({type:"slash",value:B,output:v});continue}if(B==="."){if(j.braces>0&&G.type==="dot"){if(G.value===".")G.output=S;const t=$[$.length-1];G.type="dots";G.output+=B;G.value+=B;t.dots=true;continue}if(j.braces+j.parens===0&&G.type!=="bos"&&G.type!=="slash"){Z({type:"text",value:B,output:S});continue}Z({type:"dot",value:B,output:S});continue}if(B==="?"){const t=G&&G.value==="(";if(!t&&r.noextglob!==true&&U()==="("&&U(2)!=="?"){J("qmark",B);continue}if(G&&G.type==="paren"){const t=U();let e=B;if(t==="<"&&!s.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(G.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(V())){e=`\\${B}`}Z({type:"text",value:B,output:e});continue}if(r.dot!==true&&(G.type==="slash"||G.type==="bos")){Z({type:"qmark",value:B,output:O});continue}Z({type:"qmark",value:B,output:A});continue}if(B==="!"){if(r.noextglob!==true&&U()==="("){if(U(2)!=="?"||!/[!=<:]/.test(U(3))){J("negate",B);continue}}if(r.nonegate!==true&&j.index===0){Y();continue}}if(B==="+"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){J("plus",B);continue}if(G&&G.value==="("||r.regex===false){Z({type:"plus",value:B,output:E});continue}if(G&&(G.type==="bracket"||G.type==="paren"||G.type==="brace")||j.parens>0){Z({type:"plus",value:B});continue}Z({type:"plus",value:E});continue}if(B==="@"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){Z({type:"at",extglob:true,value:B,output:""});continue}Z({type:"text",value:B});continue}if(B!=="*"){if(B==="$"||B==="^"){B=`\\${B}`}const t=a.exec(V());if(t){B+=t[0];j.index+=t[0].length}Z({type:"text",value:B});continue}if(G&&(G.type==="globstar"||G.star===true)){G.type="star";G.star=true;G.value+=B;G.output=F;j.backtrack=true;j.globstar=true;K(B);continue}let e=V();if(r.noextglob!==true&&/^\([^?]/.test(e)){J("star",B);continue}if(G.type==="star"){if(r.noglobstar===true){K(B);continue}const n=G.prev;const s=n.prev;const i=n.type==="slash"||n.type==="bos";const o=s&&(s.type==="star"||s.type==="globstar");if(r.bash===true&&(!i||e[0]&&e[0]!=="/")){Z({type:"star",value:B,output:""});continue}const a=j.braces>0&&(n.type==="comma"||n.type==="brace");const u=I.length&&(n.type==="pipe"||n.type==="paren");if(!i&&n.type!=="paren"&&!a&&!u){Z({type:"star",value:B,output:""});continue}while(e.slice(0,3)==="/**"){const r=t[j.index+4];if(r&&r!=="/"){break}e=e.slice(3);K("/**",3)}if(n.type==="bos"&&H()){G.type="globstar";G.value+=B;G.output=M(r);j.output=G.output;j.globstar=true;K(B);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&!o&&H()){j.output=j.output.slice(0,-(n.output+G.output).length);n.output=`(?:${n.output}`;G.type="globstar";G.output=M(r)+(r.strictSlashes?")":"|$)");G.value+=B;j.globstar=true;j.output+=n.output+G.output;K(B);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&e[0]==="/"){const t=e[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(n.output+G.output).length);n.output=`(?:${n.output}`;G.type="globstar";G.output=`${M(r)}${v}|${v}${t})`;G.value+=B;j.output+=n.output+G.output;j.globstar=true;K(B+W());Z({type:"slash",value:"/",output:""});continue}if(n.type==="bos"&&e[0]==="/"){G.type="globstar";G.value+=B;G.output=`(?:^|${v}|${M(r)}${v})`;j.output=G.output;j.globstar=true;K(B+W());Z({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-G.output.length);G.type="globstar";G.output=M(r);G.value+=B;j.output+=G.output;j.globstar=true;K(B);continue}const n={type:"star",value:B,output:F};if(r.bash===true){n.output=".*?";if(G.type==="bos"||G.type==="slash"){n.output=L+n.output}Z(n);continue}if(G&&(G.type==="bracket"||G.type==="paren")&&r.regex===true){n.output=B;Z(n);continue}if(j.index===j.start||G.type==="slash"||G.type==="dot"){if(G.type==="dot"){j.output+=P;G.output+=P}else if(r.dot===true){j.output+=C;G.output+=C}else{j.output+=L;G.output+=L}if(U()!=="*"){j.output+=T;G.output+=T}}Z(n)}while(j.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(f("closing","]"));j.output=s.escapeLast(j.output,"[");X("brackets")}while(j.parens>0){if(r.strictBrackets===true)throw new SyntaxError(f("closing",")"));j.output=s.escapeLast(j.output,"(");X("parens")}while(j.braces>0){if(r.strictBrackets===true)throw new SyntaxError(f("closing","}"));j.output=s.escapeLast(j.output,"{");X("braces")}if(r.strictSlashes!==true&&(G.type==="star"||G.type==="bracket")){Z({type:"maybe_slash",value:"",output:`${v}?`})}if(j.backtrack===true){j.output="";for(const t of j.tokens){j.output+=t.output!=null?t.output:t.value;if(t.suffix){j.output+=t.suffix}}}return j};p.fastpaths=((t,e)=>{const r={...e};const o=typeof r.maxLength==="number"?Math.min(i,r.maxLength):i;const a=t.length;if(a>o){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`)}t=c[t]||t;const u=s.isWindows(e);const{DOT_LITERAL:l,SLASH_LITERAL:f,ONE_CHAR:p,DOTS_SLASH:d,NO_DOT:h,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:_}=n.globChars(u);const b=r.dot?g:h;const S=r.dot?m:h;const E=r.capture?"":"?:";const v={negated:false,prefix:""};let T=r.bash===true?".*?":y;if(r.capture){T=`(${T})`}const R=t=>{if(t.noglobstar===true)return T;return`(${E}(?:(?!${_}${t.dot?d:l}).)*?)`};const k=t=>{switch(t){case"*":return`${b}${p}${T}`;case".*":return`${l}${p}${T}`;case"*.*":return`${b}${T}${l}${p}${T}`;case"*/*":return`${b}${T}${f}${p}${S}${T}`;case"**":return b+R(r);case"**/*":return`(?:${b}${R(r)}${f})?${S}${p}${T}`;case"**/*.*":return`(?:${b}${R(r)}${f})?${S}${T}${l}${p}${T}`;case"**/.*":return`(?:${b}${R(r)}${f})?${l}${p}${T}`;default:{const e=/^(.*?)\.(\w+)$/.exec(t);if(!e)return;const r=k(e[1]);if(!r)return;return r+l+e[2]}}};const P=s.removePrefix(t,v);let C=k(P);if(C&&r.strictSlashes!==true){C+=`${f}?`}return C});t.exports=p},3322:(t,e,r)=>{"use strict";const n=r(5622);const s=r(2429);const i=r(2139);const o=r(479);const a=r(6099);const u=t=>t&&typeof t==="object"&&!Array.isArray(t);const c=(t,e,r=false)=>{if(Array.isArray(t)){const n=t.map(t=>c(t,e,r));const s=t=>{for(const e of n){const r=e(t);if(r)return r}return false};return s}const n=u(t)&&t.tokens&&t.input;if(t===""||typeof t!=="string"&&!n){throw new TypeError("Expected pattern to be a non-empty string")}const s=e||{};const i=o.isWindows(e);const a=n?c.compileRe(t,e):c.makeRe(t,e,false,true);const l=a.state;delete a.state;let f=()=>false;if(s.ignore){const t={...e,ignore:null,onMatch:null,onResult:null};f=c(s.ignore,t,r)}const p=(r,n=false)=>{const{isMatch:o,match:u,output:p}=c.test(r,a,e,{glob:t,posix:i});const d={glob:t,state:l,regex:a,posix:i,input:r,output:p,match:u,isMatch:o};if(typeof s.onResult==="function"){s.onResult(d)}if(o===false){d.isMatch=false;return n?d:false}if(f(r)){if(typeof s.onIgnore==="function"){s.onIgnore(d)}d.isMatch=false;return n?d:false}if(typeof s.onMatch==="function"){s.onMatch(d)}return n?d:true};if(r){p.state=l}return p};c.test=((t,e,r,{glob:n,posix:s}={})=>{if(typeof t!=="string"){throw new TypeError("Expected input to be a string")}if(t===""){return{isMatch:false,output:""}}const i=r||{};const a=i.format||(s?o.toPosixSlashes:null);let u=t===n;let l=u&&a?a(t):t;if(u===false){l=a?a(t):t;u=l===n}if(u===false||i.capture===true){if(i.matchBase===true||i.basename===true){u=c.matchBase(t,e,r,s)}else{u=e.exec(l)}}return{isMatch:Boolean(u),match:u,output:l}});c.matchBase=((t,e,r,s=o.isWindows(r))=>{const i=e instanceof RegExp?e:c.makeRe(e,r);return i.test(n.basename(t))});c.isMatch=((t,e,r)=>c(e,r)(t));c.parse=((t,e)=>{if(Array.isArray(t))return t.map(t=>c.parse(t,e));return i(t,{...e,fastpaths:false})});c.scan=((t,e)=>s(t,e));c.compileRe=((t,e,r=false,n=false)=>{if(r===true){return t.output}const s=e||{};const i=s.contains?"":"^";const o=s.contains?"":"$";let a=`${i}(?:${t.output})${o}`;if(t&&t.negated===true){a=`^(?!${a}).*$`}const u=c.toRegex(a,e);if(n===true){u.state=t}return u});c.makeRe=((t,e,r=false,n=false)=>{if(!t||typeof t!=="string"){throw new TypeError("Expected a non-empty string")}const s=e||{};let o={negated:false,fastpaths:true};let a="";let u;if(t.startsWith("./")){t=t.slice(2);a=o.prefix="./"}if(s.fastpaths!==false&&(t[0]==="."||t[0]==="*")){u=i.fastpaths(t,e)}if(u===undefined){o=i(t,e);o.prefix=a+(o.prefix||"")}else{o.output=u}return c.compileRe(o,e,r,n)});c.toRegex=((t,e)=>{try{const r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(t){if(e&&e.debug===true)throw t;return/$^/}});c.constants=a;t.exports=c},2429:(t,e,r)=>{"use strict";const n=r(479);const{CHAR_ASTERISK:s,CHAR_AT:i,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:h,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:_}=r(6099);const b=t=>{return t===l||t===o};const S=t=>{if(t.isPrefix!==true){t.depth=t.isGlobstar?Infinity:1}};const E=(t,e)=>{const r=e||{};const E=t.length-1;const v=r.parts===true||r.scanToEnd===true;const T=[];const R=[];const k=[];let P=t;let C=-1;let A=0;let O=0;let w=false;let x=false;let M=false;let L=false;let D=false;let F=false;let j=false;let I=false;let $=false;let N=0;let G;let B;let H={value:"",depth:0,isGlob:false};const U=()=>C>=E;const W=()=>P.charCodeAt(C+1);const V=()=>{G=B;return P.charCodeAt(++C)};while(C0){Q=P.slice(0,A);P=P.slice(A);O-=A}if(K&&M===true&&O>0){K=P.slice(0,O);Y=P.slice(O)}else if(M===true){K="";Y=P}else{K=P}if(K&&K!==""&&K!=="/"&&K!==P){if(b(K.charCodeAt(K.length-1))){K=K.slice(0,-1)}}if(r.unescape===true){if(Y)Y=n.removeBackslashes(Y);if(K&&j===true){K=n.removeBackslashes(K)}}const z={prefix:Q,input:t,start:A,base:K,glob:Y,isBrace:w,isBracket:x,isGlob:M,isExtglob:L,isGlobstar:D,negated:I};if(r.tokens===true){z.maxDepth=0;if(!b(B)){R.push(H)}z.tokens=R}if(r.parts===true||r.tokens===true){let e;for(let n=0;n{"use strict";const n=r(5622);const s=process.platform==="win32";const{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:u}=r(6099);e.isObject=(t=>t!==null&&typeof t==="object"&&!Array.isArray(t));e.hasRegexChars=(t=>a.test(t));e.isRegexChar=(t=>t.length===1&&e.hasRegexChars(t));e.escapeRegex=(t=>t.replace(u,"\\$1"));e.toPosixSlashes=(t=>t.replace(i,"/"));e.removeBackslashes=(t=>{return t.replace(o,t=>{return t==="\\"?"":t})});e.supportsLookbehinds=(()=>{const t=process.version.slice(1).split(".").map(Number);if(t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10){return true}return false});e.isWindows=(t=>{if(t&&typeof t.windows==="boolean"){return t.windows}return s===true||n.sep==="\\"});e.escapeLast=((t,r,n)=>{const s=t.lastIndexOf(r,n);if(s===-1)return t;if(t[s-1]==="\\")return e.escapeLast(t,r,s-1);return`${t.slice(0,s)}\\${t.slice(s)}`});e.removePrefix=((t,e={})=>{let r=t;if(r.startsWith("./")){r=r.slice(2);e.prefix="./"}return r});e.wrapOutput=((t,e={},r={})=>{const n=r.contains?"":"^";const s=r.contains?"":"$";let i=`${n}(?:${t})${s}`;if(e.negated===true){i=`(?:^(?!${i}).*$)`}return i})},9795:t=>{let e;t.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(globalThis):t=>(e||(e=Promise.resolve())).then(t).catch(t=>setTimeout(()=>{throw t},0))},2113:t=>{"use strict";function reusify(t){var e=new t;var r=e;function get(){var n=e;if(n.next){e=n.next}else{e=new t;r=e}n.next=null;return n}function release(t){r.next=t;r=t}return{get:get,release:release}}t.exports=reusify},5288:(t,e,r)=>{t.exports=runParallel;const n=r(9795);function runParallel(t,e){let r,s,i;let o=true;if(Array.isArray(t)){r=[];s=t.length}else{i=Object.keys(t);r={};s=i.length}function done(t){function end(){if(e)e(t,r);e=null}if(o)n(end);else end()}function each(t,e,n){r[t]=n;if(--s===0||e){done(e)}}if(!s){done(null)}else if(i){i.forEach(function(e){t[e](function(t,r){each(e,t,r)})})}else{t.forEach(function(t,e){t(function(t,r){each(e,t,r)})})}o=false}},4966:(t,e,r)=>{const{GitExecutor:n}=r(4701);const{SimpleGitApi:s}=r(999);const{Scheduler:i}=r(3421);const{GitLogger:o}=r(7178);const{adhocExecTask:a,configurationErrorTask:u}=r(2815);const{NOOP:c,asArray:l,filterArray:f,filterPrimitives:p,filterString:d,filterStringOrStringArray:h,filterType:g,folderExists:m,getTrailingOptions:y,trailingFunctionArgument:_,trailingOptionsArgument:b}=r(847);const{applyPatchTask:S}=r(4931);const{branchTask:E,branchLocalTask:v,deleteBranchesTask:T,deleteBranchTask:R}=r(17);const{checkIgnoreTask:k}=r(3293);const{checkIsRepoTask:P}=r(221);const{cloneTask:C,cloneMirrorTask:A}=r(3173);const{addConfigTask:O,listConfigTask:w}=r(7597);const{cleanWithOptionsTask:x,isCleanOptionsArray:M}=r(4386);const{commitTask:L}=r(5494);const{diffSummaryTask:D}=r(9241);const{fetchTask:F}=r(8823);const{hashObjectTask:j}=r(8199);const{initTask:I}=r(6016);const{logTask:$,parseLogOptions:N}=r(8627);const{mergeTask:G}=r(8829);const{moveTask:B}=r(6520);const{pullTask:H}=r(4636);const{pushTagsTask:U}=r(1435);const{addRemoteTask:W,getRemotesTask:V,listRemotesTask:K,remoteTask:Q,removeRemoteTask:Y}=r(9866);const{getResetMode:z,resetTask:X}=r(2377);const{stashListTask:Z}=r(810);const{statusTask:J}=r(9197);const{addSubModuleTask:q,initSubModuleTask:tt,subModuleTask:et,updateSubModuleTask:rt}=r(8772);const{addAnnotatedTagTask:nt,addTagTask:st,tagListTask:it}=r(8540);const{straightThroughBufferTask:ot,straightThroughStringTask:at}=r(2815);function Git(t,e){this._executor=new n(t.binary,t.baseDir,new i(t.maxConcurrentProcesses),e);this._logger=new o}(Git.prototype=Object.create(s.prototype)).constructor=Git;Git.prototype._logger=null;Git.prototype.customBinary=function(t){this._executor.binary=t;return this};Git.prototype.env=function(t,e){if(arguments.length===1&&typeof t==="object"){this._executor.env=t}else{(this._executor.env=this._executor.env||{})[t]=e}return this};Git.prototype.cwd=function(t){const e=typeof t!=="string"?u("Git.cwd: workingDirectory must be supplied as a string"):a(()=>{if(!m(t)){throw new Error(`Git.cwd: cannot change to non-directory "${t}"`)}return this._executor.cwd=t});return this._runTask(e,_(arguments)||c)};Git.prototype.outputHandler=function(t){this._executor.outputHandler=t;return this};Git.prototype.init=function(t,e){return this._runTask(I(t===true,this._executor.cwd,y(arguments)),_(arguments))};Git.prototype.status=function(){return this._runTask(J(y(arguments)),_(arguments))};Git.prototype.stashList=function(t){return this._runTask(Z(b(arguments)||{},f(t)&&t||[]),_(arguments))};Git.prototype.stash=function(t,e){return this._runTask(at(["stash",...y(arguments)]),_(arguments))};function createCloneTask(t,e,r,n){if(typeof r!=="string"){return u(`git.${t}() requires a string 'repoPath'`)}return e(r,g(n,d),y(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",C,...arguments),_(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",A,...arguments),_(arguments))};Git.prototype.mv=function(t,e){return this._runTask(B(t,e),_(arguments))};Git.prototype.checkoutLatestTag=function(t){var e=this;return this.pull(function(){e.tags(function(r,n){e.checkout(n.latest,t)})})};Git.prototype.commit=function(t,e,r,n){const s=_(arguments);const i=[];if(h(t)){i.push(...l(t))}else{console.warn("simple-git deprecation notice: git.commit: requires the commit message to be supplied as a string/string[], this will be an error in version 3")}return this._runTask(L(i,l(g(e,h,[])),[...g(r,f,[]),...y(arguments,0,true)]),s)};Git.prototype.pull=function(t,e,r,n){return this._runTask(H(g(t,d),g(e,d),y(arguments)),_(arguments))};Git.prototype.fetch=function(t,e){return this._runTask(F(g(t,d),g(e,d),y(arguments)),_(arguments))};Git.prototype.silent=function(t){console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3");this._logger.silent(!!t);return this};Git.prototype.tags=function(t,e){return this._runTask(it(y(arguments)),_(arguments))};Git.prototype.rebase=function(){return this._runTask(at(["rebase",...y(arguments)]),_(arguments))};Git.prototype.reset=function(t){return this._runTask(X(z(t),y(arguments)),_(arguments))};Git.prototype.revert=function(t){const e=_(arguments);if(typeof t!=="string"){return this._runTask(u("Commit must be a string"),e)}return this._runTask(at(["revert",...y(arguments,0,true),t]),e)};Git.prototype.addTag=function(t){const e=typeof t==="string"?st(t):u("Git.addTag requires a tag name");return this._runTask(e,_(arguments))};Git.prototype.addAnnotatedTag=function(t,e){return this._runTask(nt(t,e),_(arguments))};Git.prototype.checkout=function(){const t=["checkout",...y(arguments,true)];return this._runTask(at(t),_(arguments))};Git.prototype.checkoutBranch=function(t,e,r){return this.checkout(["-b",t,e],_(arguments))};Git.prototype.checkoutLocalBranch=function(t,e){return this.checkout(["-b",t],_(arguments))};Git.prototype.deleteLocalBranch=function(t,e,r){return this._runTask(R(t,typeof e==="boolean"?e:false),_(arguments))};Git.prototype.deleteLocalBranches=function(t,e,r){return this._runTask(T(t,typeof e==="boolean"?e:false),_(arguments))};Git.prototype.branch=function(t,e){return this._runTask(E(y(arguments)),_(arguments))};Git.prototype.branchLocal=function(t){return this._runTask(v(),_(arguments))};Git.prototype.addConfig=function(t,e,r,n){return this._runTask(O(t,e,typeof r==="boolean"?r:false),_(arguments))};Git.prototype.listConfig=function(){return this._runTask(w(),_(arguments))};Git.prototype.raw=function(t){const e=!Array.isArray(t);const r=[].slice.call(e?arguments:t,0);for(let t=0;t{const{gitP:n}=r(941);const{esModuleFactory:s,gitInstanceFactory:i,gitExportFactory:o}=r(9846);t.exports=s(o(i,{gitP:n}))},4732:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(1876);const s=r(5757);const i=r(19);const o=r(5131);const a=r(740);const u=r(221);const c=r(4386);const l=r(2377);const f={CheckRepoActions:u.CheckRepoActions,CleanOptions:c.CleanOptions,GitConstructError:n.GitConstructError,GitError:s.GitError,GitPluginError:i.GitPluginError,GitResponseError:o.GitResponseError,ResetMode:l.ResetMode,TaskConfigurationError:a.TaskConfigurationError};e.default=f},1876:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.GitConstructError=void 0;const n=r(5757);class GitConstructError extends n.GitError{constructor(t,e){super(undefined,e);this.config=t}}e.GitConstructError=GitConstructError},5757:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.GitError=void 0;class GitError extends Error{constructor(t,e){super(e);this.task=t;Object.setPrototypeOf(this,new.target.prototype)}}e.GitError=GitError},19:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.GitPluginError=void 0;const n=r(5757);class GitPluginError extends n.GitError{constructor(t,e,r){super(t,r);this.task=t;this.plugin=e;Object.setPrototypeOf(this,new.target.prototype)}}e.GitPluginError=GitPluginError},5131:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.GitResponseError=void 0;const n=r(5757);class GitResponseError extends n.GitError{constructor(t,e){super(undefined,e||String(t));this.git=t}}e.GitResponseError=GitResponseError},740:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.TaskConfigurationError=void 0;const n=r(5757);class TaskConfigurationError extends n.GitError{constructor(t){super(undefined,t)}}e.TaskConfigurationError=TaskConfigurationError},9846:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.gitInstanceFactory=e.gitExportFactory=e.esModuleFactory=void 0;const n=r(4966);const s=r(4732);const i=r(8078);const o=r(847);function esModuleFactory(t){return Object.defineProperties(t,{__esModule:{value:true},default:{value:t}})}e.esModuleFactory=esModuleFactory;function gitExportFactory(t,e){return Object.assign(function(...e){return t.apply(null,e)},s.default,e||{})}e.gitExportFactory=gitExportFactory;function gitInstanceFactory(t,e){const r=new i.PluginStore;const a=o.createInstanceConfig(t&&(typeof t==="string"?{baseDir:t}:t)||{},e);if(!o.folderExists(a.baseDir)){throw new s.default.GitConstructError(a,`Cannot use simple-git on a directory that does not exist`)}if(Array.isArray(a.config)){r.add(i.commandConfigPrefixingPlugin(a.config))}a.progress&&r.add(i.progressMonitorPlugin(a.progress));a.timeout&&r.add(i.timeoutPlugin(a.timeout));return new n(a,r)}e.gitInstanceFactory=gitInstanceFactory},7178:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.GitLogger=e.createLogger=e.log=void 0;const n=r(8231);const s=r(847);n.default.formatters.L=(t=>String(s.filterHasLength(t)?t.length:"-"));n.default.formatters.B=(t=>{if(Buffer.isBuffer(t)){return t.toString("utf8")}return s.objectToString(t)});e.log=n.default("simple-git");function prefixedLogger(t,e,r){if(!e||!String(e).replace(/\s*/,"")){return!r?t:(e,...n)=>{t(e,...n);r(e,...n)}}return(n,...s)=>{t(`%s ${n}`,e,...s);if(r){r(n,...s)}}}function childLoggerName(t,e,{namespace:r}){if(typeof t==="string"){return t}const n=e&&e.namespace||"";if(n.startsWith(r)){return n.substr(r.length+1)}return n||r}function createLogger(t,r,n,i=e.log){const o=t&&`[${t}]`||"";const a=[];const u=typeof r==="string"?i.extend(r):r;const c=childLoggerName(s.filterType(r,s.filterString),u,i);return step(n);function child(e){return s.append(a,createLogger(t,u&&u.extend(e)||e))}function sibling(e,r){return s.append(a,createLogger(t,c.replace(/^[^:]+/,e),r,i))}function step(e){const r=e&&`[${e}]`||"";const n=u&&prefixedLogger(u,r)||s.NOOP;const a=prefixedLogger(i,`${o} ${r}`,n);return Object.assign(u?n:a,{key:c,label:t,child:child,sibling:sibling,debug:n,info:a,step:step})}}e.createLogger=createLogger;class GitLogger{constructor(t=e.log){this._out=t;this.error=prefixedLogger(t,"[ERROR]");this.warn=prefixedLogger(t,"[WARN]")}silent(t=false){if(t!==this._out.enabled){return}const{namespace:e}=this._out;const r=(process.env.DEBUG||"").split(",").filter(t=>!!t);const i=r.includes(e);const o=r.includes(`-${e}`);if(!t){if(o){s.remove(r,`-${e}`)}else{r.push(e)}}else{if(i){s.remove(r,e)}else{r.push(`-${e}`)}}n.default.enable(r.join(","))}}e.GitLogger=GitLogger},6086:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.hasBranchDeletionError=e.parseBranchDeletions=void 0;const n=r(3755);const s=r(847);const i=/(\S+)\s+\(\S+\s([^)]+)\)/;const o=/^error[^']+'([^']+)'/m;const a=[new s.LineParser(i,(t,[e,r])=>{const s=n.branchDeletionSuccess(e,r);t.all.push(s);t.branches[e]=s}),new s.LineParser(o,(t,[e])=>{const r=n.branchDeletionFailure(e);t.errors.push(r);t.all.push(r);t.branches[e]=r})];const u=t=>{return s.parseStringResponse(new n.BranchDeletionBatch,a,t)};e.parseBranchDeletions=u;function hasBranchDeletionError(t,e){return e===s.ExitCodes.ERROR&&o.test(t)}e.hasBranchDeletionError=hasBranchDeletionError},9264:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseBranchSummary=void 0;const n=r(4446);const s=r(847);const i=[new s.LineParser(/^(\*\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(t,[e,r,n,s])=>{t.push(!!e,true,r,n,s)}),new s.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/s,(t,[e,r,n,s])=>{t.push(!!e,false,r,n,s)})];function parseBranchSummary(t){return s.parseStringResponse(new n.BranchSummaryResult,i,t)}e.parseBranchSummary=parseBranchSummary},3026:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseCommitResult=void 0;const n=r(847);const s=[new n.LineParser(/\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(t,[e,r,n])=>{t.branch=e;t.commit=n;t.root=!!r}),new n.LineParser(/\s*Author:\s(.+)/i,(t,[e])=>{const r=e.split("<");const n=r.pop();if(!n||!n.includes("@")){return}t.author={email:n.substr(0,n.length-1),name:r.join("<").trim()}}),new n.LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(t,[e,r,n])=>{t.summary.changes=parseInt(e,10)||0;t.summary.insertions=parseInt(r,10)||0;t.summary.deletions=parseInt(n,10)||0}),new n.LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(t,[e,r,n])=>{t.summary.changes=parseInt(e,10)||0;const s=parseInt(r,10)||0;if(n==="-"){t.summary.deletions=s}else if(n==="+"){t.summary.insertions=s}})];function parseCommitResult(t){const e={author:null,branch:"",commit:"",root:false,summary:{changes:0,insertions:0,deletions:0}};return n.parseStringResponse(e,s,t)}e.parseCommitResult=parseCommitResult},2024:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseDiffResult=void 0;const n=r(4781);function parseDiffResult(t){const e=t.trim().split("\n");const r=new n.DiffSummary;readSummaryLine(r,e.pop());for(let t=0,n=e.length;t ([0-9.]+) ([a-z]+)$/);if(r){e.push({file:r[1].trim(),before:+r[2],after:+r[3],binary:true});return true}return false}},6254:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseFetchResult=void 0;const n=r(847);const s=[new n.LineParser(/From (.+)$/,(t,[e])=>{t.remote=e}),new n.LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(t,[e,r])=>{t.branches.push({name:e,tracking:r})}),new n.LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(t,[e,r])=>{t.tags.push({name:e,tracking:r})})];function parseFetchResult(t,e){const r={raw:t,remote:null,branches:[],tags:[]};return n.parseStringResponse(r,s,t,e)}e.parseFetchResult=parseFetchResult},9729:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createListLogSummaryParser=e.SPLITTER=e.COMMIT_BOUNDARY=e.START_BOUNDARY=void 0;const n=r(847);const s=r(2024);e.START_BOUNDARY="òòòòòò ";e.COMMIT_BOUNDARY=" òò";e.SPLITTER=" ò ";const i=["hash","date","message","refs","author_name","author_email"];function lineBuilder(t,e){return e.reduce((e,r,n)=>{e[r]=t[n]||"";return e},Object.create({diff:null}))}function createListLogSummaryParser(t=e.SPLITTER,r=i){return function(i){const o=n.toLinesWithContent(i,true,e.START_BOUNDARY).map(function(n){const i=n.trim().split(e.COMMIT_BOUNDARY);const o=lineBuilder(i[0].trim().split(t),r);if(i.length>1&&!!i[1].trim()){o.diff=s.parseDiffResult(i[1])}return o});return{all:o,latest:o.length&&o[0]||null,total:o.length}}}e.createListLogSummaryParser=createListLogSummaryParser},6412:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseMergeDetail=e.parseMergeResult=void 0;const n=r(1651);const s=r(847);const i=r(5658);const o=[new s.LineParser(/^Auto-merging\s+(.+)$/,(t,[e])=>{t.merges.push(e)}),new s.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(t,[e,r])=>{t.conflicts.push(new n.MergeSummaryConflict(e,r))}),new s.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(t,[e,r,s])=>{t.conflicts.push(new n.MergeSummaryConflict(e,r,{deleteRef:s}))}),new s.LineParser(/^CONFLICT\s+\((.+)\):/,(t,[e])=>{t.conflicts.push(new n.MergeSummaryConflict(e,null))}),new s.LineParser(/^Automatic merge failed;\s+(.+)$/,(t,[e])=>{t.result=e})];const a=(t,r)=>{return Object.assign(e.parseMergeDetail(t,r),i.parsePullResult(t,r))};e.parseMergeResult=a;const u=t=>{return s.parseStringResponse(new n.MergeSummaryDetail,o,t)};e.parseMergeDetail=u},7444:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseMoveResult=void 0;const n=r(847);const s=[new n.LineParser(/^Renaming (.+) to (.+)$/,(t,[e,r])=>{t.moves.push({from:e,to:r})})];function parseMoveResult(t){return n.parseStringResponse({moves:[]},s,t)}e.parseMoveResult=parseMoveResult},5658:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parsePullResult=e.parsePullDetail=void 0;const n=r(3567);const s=r(847);const i=r(2661);const o=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;const a=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;const u=/^(create|delete) mode \d+ (.+)/;const c=[new s.LineParser(o,(t,[e,r,n])=>{t.files.push(e);if(r){t.insertions[e]=r.length}if(n){t.deletions[e]=n.length}}),new s.LineParser(a,(t,[e,,r,,n])=>{if(r!==undefined||n!==undefined){t.summary.changes=+e||0;t.summary.insertions=+r||0;t.summary.deletions=+n||0;return true}return false}),new s.LineParser(u,(t,[e,r])=>{s.append(t.files,r);s.append(e==="create"?t.created:t.deleted,r)})];const l=(t,e)=>{return s.parseStringResponse(new n.PullSummary,c,t,e)};e.parsePullDetail=l;const f=(t,r)=>{return Object.assign(new n.PullSummary,e.parsePullDetail(t,r),i.parseRemoteMessages(t,r))};e.parsePullResult=f},8530:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parsePushDetail=e.parsePushResult=void 0;const n=r(847);const s=r(2661);function pushResultPushedItem(t,e,r){const n=r.includes("deleted");const s=r.includes("tag")||/^refs\/tags/.test(t);const i=!r.includes("new");return{deleted:n,tag:s,branch:!s,new:!i,alreadyUpdated:i,local:t,remote:e}}const i=[new n.LineParser(/^Pushing to (.+)$/,(t,[e])=>{t.repo=e}),new n.LineParser(/^updating local tracking ref '(.+)'/,(t,[e])=>{t.ref=Object.assign(Object.assign({},t.ref||{}),{local:e})}),new n.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,(t,[e,r,n])=>{t.pushed.push(pushResultPushedItem(e,r,n))}),new n.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(t,[e,r,n])=>{t.branch=Object.assign(Object.assign({},t.branch||{}),{local:e,remote:r,remoteName:n})}),new n.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(t,[e,r,n,s])=>{t.update={head:{local:e,remote:r},hash:{from:n,to:s}}})];const o=(t,r)=>{const n=e.parsePushDetail(t,r);const i=s.parseRemoteMessages(t,r);return Object.assign(Object.assign({},n),i)};e.parsePushResult=o;const a=(t,e)=>{return n.parseStringResponse({pushed:[]},i,t,e)};e.parsePushDetail=a},2661:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.RemoteMessageSummary=e.parseRemoteMessages=void 0;const n=r(847);const s=r(3565);const i=[new n.RemoteLineParser(/^remote:\s*(.+)$/,(t,[e])=>{t.remoteMessages.all.push(e.trim());return false}),...s.remoteMessagesObjectParsers,new n.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(t,[e])=>{t.remoteMessages.pullRequestUrl=e}),new n.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(t,[e,r,s])=>{t.remoteMessages.vulnerabilities={count:n.asNumber(e),summary:r,url:s}})];function parseRemoteMessages(t,e){return n.parseStringResponse({remoteMessages:new RemoteMessageSummary},i,e)}e.parseRemoteMessages=parseRemoteMessages;class RemoteMessageSummary{constructor(){this.all=[]}}e.RemoteMessageSummary=RemoteMessageSummary},3565:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.remoteMessagesObjectParsers=void 0;const n=r(847);function objectEnumerationResult(t){return t.objects=t.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function asObjectCount(t){const e=/^\s*(\d+)/.exec(t);const r=/delta (\d+)/i.exec(t);return{count:n.asNumber(e&&e[1]||"0"),delta:n.asNumber(r&&r[1]||"0")}}e.remoteMessagesObjectParsers=[new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(t,[e,r])=>{const s=e.toLowerCase();const i=objectEnumerationResult(t.remoteMessages);Object.assign(i,{[s]:n.asNumber(r)})}),new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(t,[e,r])=>{const s=e.toLowerCase();const i=objectEnumerationResult(t.remoteMessages);Object.assign(i,{[s]:n.asNumber(r)})}),new n.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(t,[e,r,s])=>{const i=objectEnumerationResult(t.remoteMessages);i.total=asObjectCount(e);i.reused=asObjectCount(r);i.packReused=n.asNumber(s)})]},2581:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.commandConfigPrefixingPlugin=void 0;const n=r(847);function commandConfigPrefixingPlugin(t){const e=n.prefixedArray(t,"-c");return{type:"spawn.args",action(t){return[...e,...t]}}}e.commandConfigPrefixingPlugin=commandConfigPrefixingPlugin},8078:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){if(n===undefined)n=r;Object.defineProperty(t,n,{enumerable:true,get:function(){return e[r]}})}:function(t,e,r,n){if(n===undefined)n=r;t[n]=e[r]});var s=this&&this.__exportStar||function(t,e){for(var r in t)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r))n(e,t,r)};Object.defineProperty(e,"__esModule",{value:true});s(r(2581),e);s(r(5067),e);s(r(1738),e);s(r(8436),e);s(r(9504),e)},5067:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.PluginStore=void 0;const n=r(847);class PluginStore{constructor(){this.plugins=new Set}add(t){const e=[];n.asArray(t).forEach(t=>t&&this.plugins.add(n.append(e,t)));return()=>{e.forEach(t=>this.plugins.delete(t))}}exec(t,e,r){let n=e;const s=Object.freeze(Object.create(r));for(const e of this.plugins){if(e.type===t){n=e.action(n,s)}}return n}}e.PluginStore=PluginStore},1738:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.progressMonitorPlugin=void 0;const n=r(847);function progressMonitorPlugin(t){const e="--progress";const r=["checkout","clone","fetch","pull","push"];const s={type:"spawn.after",action(r,s){var i;if(!s.commands.includes(e)){return}(i=s.spawned.stderr)===null||i===void 0?void 0:i.on("data",e=>{const r=/^([a-zA-Z ]+):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(e.toString("utf8"));if(!r){return}t({method:s.method,stage:progressEventStage(r[1]),progress:n.asNumber(r[2]),processed:n.asNumber(r[3]),total:n.asNumber(r[4])})})}};const i={type:"spawn.args",action(t,s){if(!r.includes(s.method)){return t}return n.including(t,e)}};return[i,s]}e.progressMonitorPlugin=progressMonitorPlugin;function progressEventStage(t){return String(t.toLowerCase().split(" ",1))||"unknown"}},8436:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true})},9504:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.timeoutPlugin=void 0;const n=r(19);function timeoutPlugin({block:t}){if(t>0){return{type:"spawn.after",action(e,r){var s,i;let o;function wait(){o&&clearTimeout(o);o=setTimeout(kill,t)}function stop(){var t,e;(t=r.spawned.stdout)===null||t===void 0?void 0:t.off("data",wait);(e=r.spawned.stderr)===null||e===void 0?void 0:e.off("data",wait);r.spawned.off("exit",stop);r.spawned.off("close",stop)}function kill(){stop();r.kill(new n.GitPluginError(undefined,"timeout",`block timeout reached`))}(s=r.spawned.stdout)===null||s===void 0?void 0:s.on("data",wait);(i=r.spawned.stderr)===null||i===void 0?void 0:i.on("data",wait);r.spawned.on("exit",stop);r.spawned.on("close",stop);wait()}}}}e.timeoutPlugin=timeoutPlugin},3755:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.isSingleBranchDeleteFailure=e.branchDeletionFailure=e.branchDeletionSuccess=e.BranchDeletionBatch=void 0;class BranchDeletionBatch{constructor(){this.all=[];this.branches={};this.errors=[]}get success(){return!this.errors.length}}e.BranchDeletionBatch=BranchDeletionBatch;function branchDeletionSuccess(t,e){return{branch:t,hash:e,success:true}}e.branchDeletionSuccess=branchDeletionSuccess;function branchDeletionFailure(t){return{branch:t,hash:null,success:false}}e.branchDeletionFailure=branchDeletionFailure;function isSingleBranchDeleteFailure(t){return t.success}e.isSingleBranchDeleteFailure=isSingleBranchDeleteFailure},4446:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.BranchSummaryResult=void 0;class BranchSummaryResult{constructor(){this.all=[];this.branches={};this.current="";this.detached=false}push(t,e,r,n,s){if(t){this.detached=e;this.current=r}this.all.push(r);this.branches[r]={current:t,name:r,commit:n,label:s}}}e.BranchSummaryResult=BranchSummaryResult},9926:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseCheckIgnore=void 0;const r=t=>{return t.split(/\n/g).map(t=>t.trim()).filter(t=>!!t)};e.parseCheckIgnore=r},5689:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.cleanSummaryParser=e.CleanResponse=void 0;const n=r(847);class CleanResponse{constructor(t){this.dryRun=t;this.paths=[];this.files=[];this.folders=[]}}e.CleanResponse=CleanResponse;const s=/^[a-z]+\s*/i;const i=/^[a-z]+\s+[a-z]+\s*/i;const o=/\/$/;function cleanSummaryParser(t,e){const r=new CleanResponse(t);const a=t?i:s;n.toLinesWithContent(e).forEach(t=>{const e=t.replace(a,"");r.paths.push(e);(o.test(e)?r.folders:r.files).push(e)});return r}e.cleanSummaryParser=cleanSummaryParser},7219:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.configListParser=e.ConfigList=void 0;const n=r(847);class ConfigList{constructor(){this.files=[];this.values=Object.create(null)}get all(){if(!this._all){this._all=this.files.reduce((t,e)=>{return Object.assign(t,this.values[e])},{})}return this._all}addFile(t){if(!(t in this.values)){const e=n.last(this.files);this.values[t]=e?Object.create(this.values[e]):{};this.files.push(t)}return this.values[t]}addValue(t,e,r){const n=this.addFile(t);if(!n.hasOwnProperty(e)){n[e]=r}else if(Array.isArray(n[e])){n[e].push(r)}else{n[e]=[n[e],r]}this._all=undefined}}e.ConfigList=ConfigList;function configListParser(t){const e=new ConfigList;const r=t.split("\0");for(let t=0,s=r.length-1;t{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.DiffSummary=void 0;class DiffSummary{constructor(){this.changed=0;this.deletions=0;this.insertions=0;this.files=[]}}e.DiffSummary=DiffSummary},860:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.FileStatusSummary=e.fromPathRegex=void 0;e.fromPathRegex=/^(.+) -> (.+)$/;class FileStatusSummary{constructor(t,r,n){this.path=t;this.index=r;this.working_dir=n;if("R"===r+n){const r=e.fromPathRegex.exec(t)||[null,t,t];this.from=r[1]||"";this.path=r[2]||""}}}e.FileStatusSummary=FileStatusSummary},9999:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseGetRemotesVerbose=e.parseGetRemotes=void 0;const n=r(847);function parseGetRemotes(t){const e={};forEach(t,([t])=>e[t]={name:t});return Object.values(e)}e.parseGetRemotes=parseGetRemotes;function parseGetRemotesVerbose(t){const e={};forEach(t,([t,r,n])=>{if(!e.hasOwnProperty(t)){e[t]={name:t,refs:{fetch:"",push:""}}}if(n&&r){e[t].refs[n.replace(/[^a-z]/g,"")]=r}});return Object.values(e)}e.parseGetRemotesVerbose=parseGetRemotesVerbose;function forEach(t,e){n.forEachLineWithContent(t,t=>e(t.split(/\s+/)))}},8690:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseInit=e.InitSummary=void 0;class InitSummary{constructor(t,e,r,n){this.bare=t;this.path=e;this.existing=r;this.gitDir=n}}e.InitSummary=InitSummary;const r=/^Init.+ repository in (.+)$/;const n=/^Rein.+ in (.+)$/;function parseInit(t,e,s){const i=String(s).trim();let o;if(o=r.exec(i)){return new InitSummary(t,e,false,o[1])}if(o=n.exec(i)){return new InitSummary(t,e,true,o[1])}let a="";const u=i.split(" ");while(u.length){const t=u.shift();if(t==="in"){a=u.join(" ");break}}return new InitSummary(t,e,/^re/i.test(i),a)}e.parseInit=parseInit},1651:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.MergeSummaryDetail=e.MergeSummaryConflict=void 0;class MergeSummaryConflict{constructor(t,e=null,r){this.reason=t;this.file=e;this.meta=r}toString(){return`${this.file}:${this.reason}`}}e.MergeSummaryConflict=MergeSummaryConflict;class MergeSummaryDetail{constructor(){this.conflicts=[];this.merges=[];this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){if(this.conflicts.length){return`CONFLICTS: ${this.conflicts.join(", ")}`}return"OK"}}e.MergeSummaryDetail=MergeSummaryDetail},3567:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.PullSummary=void 0;class PullSummary{constructor(){this.remoteMessages={all:[]};this.created=[];this.deleted=[];this.files=[];this.deletions={};this.insertions={};this.summary={changes:0,deletions:0,insertions:0}}}e.PullSummary=PullSummary},6790:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseStatusSummary=e.StatusSummary=void 0;const n=r(847);const s=r(860);class StatusSummary{constructor(){this.not_added=[];this.conflicted=[];this.created=[];this.deleted=[];this.modified=[];this.renamed=[];this.files=[];this.staged=[];this.ahead=0;this.behind=0;this.current=null;this.tracking=null}isClean(){return!this.files.length}}e.StatusSummary=StatusSummary;var i;(function(t){t["ADDED"]="A";t["DELETED"]="D";t["MODIFIED"]="M";t["RENAMED"]="R";t["COPIED"]="C";t["UNMERGED"]="U";t["UNTRACKED"]="?";t["IGNORED"]="!";t["NONE"]=" "})(i||(i={}));function renamedFile(t){const e=/^(.+) -> (.+)$/.exec(t);if(!e){return{from:t,to:t}}return{from:String(e[1]),to:String(e[2])}}function parser(t,e,r){return[`${t}${e}`,r]}function conflicts(t,...e){return e.map(e=>parser(t,e,(t,e)=>n.append(t.conflicted,e)))}const o=new Map([parser(i.NONE,i.ADDED,(t,e)=>n.append(t.created,e)),parser(i.NONE,i.DELETED,(t,e)=>n.append(t.deleted,e)),parser(i.NONE,i.MODIFIED,(t,e)=>n.append(t.modified,e)),parser(i.ADDED,i.NONE,(t,e)=>n.append(t.created,e)&&n.append(t.staged,e)),parser(i.ADDED,i.MODIFIED,(t,e)=>n.append(t.created,e)&&n.append(t.staged,e)&&n.append(t.modified,e)),parser(i.DELETED,i.NONE,(t,e)=>n.append(t.deleted,e)&&n.append(t.staged,e)),parser(i.MODIFIED,i.NONE,(t,e)=>n.append(t.modified,e)&&n.append(t.staged,e)),parser(i.MODIFIED,i.MODIFIED,(t,e)=>n.append(t.modified,e)&&n.append(t.staged,e)),parser(i.RENAMED,i.NONE,(t,e)=>{n.append(t.renamed,renamedFile(e))}),parser(i.RENAMED,i.MODIFIED,(t,e)=>{const r=renamedFile(e);n.append(t.renamed,r);n.append(t.modified,r.to)}),parser(i.UNTRACKED,i.UNTRACKED,(t,e)=>n.append(t.not_added,e)),...conflicts(i.ADDED,i.ADDED,i.UNMERGED),...conflicts(i.DELETED,i.DELETED,i.UNMERGED),...conflicts(i.UNMERGED,i.ADDED,i.DELETED,i.UNMERGED),["##",(t,e)=>{const r=/ahead (\d+)/;const n=/behind (\d+)/;const s=/^(.+?(?=(?:\.{3}|\s|$)))/;const i=/\.{3}(\S*)/;const o=/\son\s([\S]+)$/;let a;a=r.exec(e);t.ahead=a&&+a[1]||0;a=n.exec(e);t.behind=a&&+a[1]||0;a=s.exec(e);t.current=a&&a[1];a=i.exec(e);t.tracking=a&&a[1];a=o.exec(e);t.current=a&&a[1]||t.current}]]);const a=function(t){const e=t.trim().split("\n");const r=new StatusSummary;for(let t=0,n=e.length;t{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseTagList=e.TagList=void 0;class TagList{constructor(t,e){this.all=t;this.latest=e}}e.TagList=TagList;const r=function(t,e=false){const r=t.split("\n").map(trimmed).filter(Boolean);if(!e){r.sort(function(t,e){const r=t.split(".");const n=e.split(".");if(r.length===1||n.length===1){return singleSorted(toNumber(r[0]),toNumber(n[0]))}for(let t=0,e=Math.max(r.length,n.length);tt.indexOf(".")>=0);return new TagList(r,n)};e.parseTagList=r;function singleSorted(t,e){const r=isNaN(t);const n=isNaN(e);if(r!==n){return r?1:-1}return r?sorted(t,e):0}function sorted(t,e){return t===e?0:t>e?1:-1}function trimmed(t){return t.trim()}function toNumber(t){if(typeof t==="string"){return parseInt(t.replace(/^\D+/g,""),10)||0}return 0}},8543:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){function adopt(t){return t instanceof r?t:new r(function(e){e(t)})}return new(r||(r=Promise))(function(r,s){function fulfilled(t){try{step(n.next(t))}catch(t){s(t)}}function rejected(t){try{step(n["throw"](t))}catch(t){s(t)}}function step(t){t.done?r(t.value):adopt(t.value).then(fulfilled,rejected)}step((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:true});e.GitExecutorChain=void 0;const s=r(3129);const i=r(5757);const o=r(2815);const a=r(847);const u=r(6676);class GitExecutorChain{constructor(t,e,r){this._executor=t;this._scheduler=e;this._plugins=r;this._chain=Promise.resolve();this._queue=new u.TasksPendingQueue}get binary(){return this._executor.binary}get cwd(){return this._executor.cwd}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(t){this._queue.push(t);return this._chain=this._chain.then(()=>this.attemptTask(t))}attemptTask(t){return n(this,void 0,void 0,function*(){const e=yield this._scheduler.next();const r=()=>this._queue.complete(t);try{const{logger:n}=this._queue.attempt(t);return yield o.isEmptyTask(t)?this.attemptEmptyTask(t,n):this.attemptRemoteTask(t,n)}catch(e){throw this.onFatalException(t,e)}finally{r();e()}})}onFatalException(t,e){const r=e instanceof i.GitError?Object.assign(e,{task:t}):new i.GitError(t,e&&String(e));this._chain=Promise.resolve();this._queue.fatal(r);return r}attemptRemoteTask(t,e){return n(this,void 0,void 0,function*(){const r=this._plugins.exec("spawn.args",[...t.commands],pluginContext(t,t.commands));const n=yield this.gitResponse(t,this.binary,r,this.outputHandler,e.step("SPAWN"));const s=yield this.handleTaskData(t,n,e.step("HANDLE"));e(`passing response to task's parser as a %s`,t.format);if(o.isBufferTask(t)){return a.callTaskParser(t.parser,s)}return a.callTaskParser(t.parser,s.asStrings())})}attemptEmptyTask(t,e){return n(this,void 0,void 0,function*(){e(`empty task bypassing child process to call to task's parser`);return t.parser()})}handleTaskData({onError:t,concatStdErr:e},{exitCode:r,rejection:n,stdOut:s,stdErr:i},o){return new Promise((u,c)=>{o(`Preparing to handle process response exitCode=%d stdOut=`,r);const l=!!(n||r&&i.length);if(l&&t){o.info(`exitCode=%s handling with custom error handler`);o(`concatenate stdErr to stdOut: %j`,e);return t(r,Buffer.concat([...e?s:[],...i]).toString("utf-8"),t=>{o.info(`custom error handler treated as success`);o(`custom error returned a %s`,a.objectToString(t));u(new a.GitOutputStreams(Buffer.isBuffer(t)?t:Buffer.from(String(t)),Buffer.concat(i)))},c)}if(l){o.info(`handling as error: exitCode=%s stdErr=%s rejection=%o`,r,i.length,n);return c(n||Buffer.concat(i).toString("utf-8"))}if(e){o(`concatenating stdErr onto stdOut before processing`);o(`stdErr: $O`,i);s.push(...i)}o.info(`retrieving task output complete`);u(new a.GitOutputStreams(Buffer.concat(s),Buffer.concat(i)))})}gitResponse(t,e,r,i,o){return n(this,void 0,void 0,function*(){const n=o.sibling("output");const a={cwd:this.cwd,env:this.env,windowsHide:true};return new Promise(u=>{const c=[];const l=[];let f=false;let p;function attemptClose(t,e="retry"){if(f||l.length||c.length){o.info(`exitCode=%s event=%s rejection=%o`,t,e,p);u({stdOut:c,stdErr:l,exitCode:t,rejection:p});f=true}if(!f){f=true;setTimeout(()=>attemptClose(t,"deferred"),50);o("received %s event before content on stdOut/stdErr",e)}}o.info(`%s %o`,e,r);o("%O",a);const d=s.spawn(e,r,a);d.stdout.on("data",onDataReceived(c,"stdOut",o,n.step("stdOut")));d.stderr.on("data",onDataReceived(l,"stdErr",o,n.step("stdErr")));d.on("error",onErrorReceived(l,o));d.on("close",t=>attemptClose(t,"close"));d.on("exit",t=>attemptClose(t,"exit"));if(i){o(`Passing child process stdOut/stdErr to custom outputHandler`);i(e,d.stdout,d.stderr,[...r])}this._plugins.exec("spawn.after",undefined,Object.assign(Object.assign({},pluginContext(t,r)),{spawned:d,kill(t){if(d.killed){return}p=t;d.kill("SIGINT")}}))})})}}e.GitExecutorChain=GitExecutorChain;function pluginContext(t,e){return{method:a.first(t.commands)||"",commands:e}}function onErrorReceived(t,e){return r=>{e(`[ERROR] child process exception %o`,r);t.push(Buffer.from(String(r.stack),"ascii"))}}function onDataReceived(t,e,r,n){return s=>{r(`%s received %L bytes`,e,s);n(`%B`,s);t.push(s)}}},4701:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.GitExecutor=void 0;const n=r(8543);class GitExecutor{constructor(t="git",e,r,s){this.binary=t;this.cwd=e;this._scheduler=r;this._plugins=s;this._chain=new n.GitExecutorChain(this,this._scheduler,this._plugins)}chain(){return new n.GitExecutorChain(this,this._scheduler,this._plugins)}push(t){return this._chain.push(t)}}e.GitExecutor=GitExecutor},941:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.gitP=void 0;const n=r(5131);const s=r(9846);const i=["customBinary","env","outputHandler","silent"];const o=["add","addAnnotatedTag","addConfig","addRemote","addTag","applyPatch","binaryCatFile","branch","branchLocal","catFile","checkIgnore","checkIsRepo","checkout","checkoutBranch","checkoutLatestTag","checkoutLocalBranch","clean","clone","commit","cwd","deleteLocalBranch","deleteLocalBranches","diff","diffSummary","exec","fetch","getRemotes","init","listConfig","listRemote","log","merge","mergeFromTo","mirror","mv","pull","push","pushTags","raw","rebase","remote","removeRemote","reset","revert","revparse","rm","rmKeepLocal","show","stash","stashList","status","subModule","submoduleAdd","submoduleInit","submoduleUpdate","tag","tags","updateServerInfo"];function gitP(...t){let e;let r=Promise.resolve();try{e=s.gitInstanceFactory(...t)}catch(t){r=Promise.reject(t)}function builderReturn(){return n}function chainReturn(){return r}const n=[...i,...o].reduce((t,r)=>{const n=o.includes(r);const s=n?asyncWrapper(r,e):syncWrapper(r,e,t);const i=n?chainReturn:builderReturn;Object.defineProperty(t,r,{enumerable:false,configurable:false,value:e?s:i});return t},{});return n;function asyncWrapper(t,e){return function(...n){if(typeof n[n.length]==="function"){throw new TypeError("Promise interface requires that handlers are not supplied inline, "+"trailing function not allowed in call to "+t)}return r.then(function(){return new Promise(function(r,s){const i=(t,e)=>{if(t){return s(toError(t))}r(e)};n.push(i);e[t].apply(e,n)})})}}function syncWrapper(t,e,r){return(...n)=>{e[t](...n);return r}}}e.gitP=gitP;function toError(t){if(t instanceof Error){return t}if(typeof t==="string"){return new Error(t)}return new n.GitResponseError(t)}},3421:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.Scheduler=void 0;const n=r(847);const s=r(9819);const i=r(7178);const o=i.createLogger("","scheduler");const a=(()=>{let t=0;return()=>{t++;const{promise:e,done:r}=s.createDeferred();return{promise:e,done:r,id:t}}})();class Scheduler{constructor(t=2){this.concurrency=t;this.pending=[];this.running=[];o(`Constructed, concurrency=%s`,t)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){o(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}const t=n.append(this.running,this.pending.shift());o(`Attempting id=%s`,t.id);t.done(()=>{o(`Completing id=`,t.id);n.remove(this.running,t);this.schedule()})}next(){const{promise:t,id:e}=n.append(this.pending,a());o(`Scheduling id=%s`,e);this.schedule();return t}}e.Scheduler=Scheduler},6676:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.TasksPendingQueue=void 0;const n=r(5757);const s=r(7178);class TasksPendingQueue{constructor(t="GitExecutor"){this.logLabel=t;this._queue=new Map}withProgress(t){return this._queue.get(t)}createProgress(t){const e=TasksPendingQueue.getName(t.commands[0]);const r=s.createLogger(this.logLabel,e);return{task:t,logger:r,name:e}}push(t){const e=this.createProgress(t);e.logger("Adding task to the queue, commands = %o",t.commands);this._queue.set(t,e);return e}fatal(t){for(const[e,{logger:r}]of Array.from(this._queue.entries())){if(e===t.task){r.info(`Failed %o`,t);r(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)}else{r.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,t.message)}this.complete(e)}if(this._queue.size!==0){throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}}complete(t){const e=this.withProgress(t);if(e){this._queue.delete(t)}}attempt(t){const e=this.withProgress(t);if(!e){throw new n.GitError(undefined,"TasksPendingQueue: attempt called for an unknown task")}e.logger("Starting task");return e}static getName(t="empty"){return`task:${t}:${++TasksPendingQueue.counter}`}}e.TasksPendingQueue=TasksPendingQueue;TasksPendingQueue.counter=0},999:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.SimpleGitApi=void 0;const n=r(8850);const s=r(1435);const i=r(2815);const o=r(847);class SimpleGitApi{constructor(t){this._executor=t}_runTask(t,e){const r=this._executor.chain();const s=r.push(t);if(e){n.taskCallback(t,s,e)}return Object.create(this,{then:{value:s.then.bind(s)},catch:{value:s.catch.bind(s)},_executor:{value:r}})}add(t){return this._runTask(i.straightThroughStringTask(["add",...o.asArray(t)]),o.trailingFunctionArgument(arguments))}push(){const t=s.pushTask({remote:o.filterType(arguments[0],o.filterString),branch:o.filterType(arguments[1],o.filterString)},o.getTrailingOptions(arguments));return this._runTask(t,o.trailingFunctionArgument(arguments))}}e.SimpleGitApi=SimpleGitApi},8850:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.taskCallback=void 0;const n=r(5131);const s=r(847);function taskCallback(t,e,r=s.NOOP){const i=t=>{r(null,t)};const o=e=>{if((e===null||e===void 0?void 0:e.task)===t){if(e instanceof n.GitResponseError){return r(addDeprecationNoticeToError(e))}r(e)}};e.then(i,o)}e.taskCallback=taskCallback;function addDeprecationNoticeToError(t){let e=t=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${t} should be GitResponseError.git.${t}, this will no longer be available in version 3`);e=s.NOOP};return Object.create(t,Object.getOwnPropertyNames(t.git).reduce(descriptorReducer,{}));function descriptorReducer(r,n){if(n in t){return r}r[n]={enumerable:false,configurable:false,get(){e(n);return t.git[n]}};return r}}},4931:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.applyPatchTask=void 0;const n=r(2815);function applyPatchTask(t,e){return n.straightThroughStringTask(["apply",...e,...t])}e.applyPatchTask=applyPatchTask},17:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.deleteBranchTask=e.deleteBranchesTask=e.branchLocalTask=e.branchTask=e.containsDeleteBranchCommand=void 0;const n=r(5131);const s=r(6086);const i=r(9264);function containsDeleteBranchCommand(t){const e=["-d","-D","--delete"];return t.some(t=>e.includes(t))}e.containsDeleteBranchCommand=containsDeleteBranchCommand;function branchTask(t){const e=containsDeleteBranchCommand(t);const r=["branch",...t];if(r.length===1){r.push("-a")}if(!r.includes("-v")){r.splice(1,0,"-v")}return{format:"utf-8",commands:r,parser(t,r){if(e){return s.parseBranchDeletions(t,r).all[0]}return i.parseBranchSummary(t)}}}e.branchTask=branchTask;function branchLocalTask(){const t=i.parseBranchSummary;return{format:"utf-8",commands:["branch","-v"],parser:t}}e.branchLocalTask=branchLocalTask;function deleteBranchesTask(t,e=false){return{format:"utf-8",commands:["branch","-v",e?"-D":"-d",...t],parser(t,e){return s.parseBranchDeletions(t,e)},onError(t,e,r,n){if(!s.hasBranchDeletionError(e,t)){return n(e)}r(e)},concatStdErr:true}}e.deleteBranchesTask=deleteBranchesTask;function deleteBranchTask(t,e=false){const r={format:"utf-8",commands:["branch","-v",e?"-D":"-d",t],parser(e,r){return s.parseBranchDeletions(e,r).branches[t]},onError(t,e,i,o){if(!s.hasBranchDeletionError(e,t)){return o(e)}throw new n.GitResponseError(r.parser(e,""),e)},concatStdErr:true};return r}e.deleteBranchTask=deleteBranchTask},3293:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.checkIgnoreTask=void 0;const n=r(9926);function checkIgnoreTask(t){return{commands:["check-ignore",...t],format:"utf-8",parser:n.parseCheckIgnore}}e.checkIgnoreTask=checkIgnoreTask},221:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.checkIsBareRepoTask=e.checkIsRepoRootTask=e.checkIsRepoTask=e.CheckRepoActions=void 0;const n=r(847);var s;(function(t){t["BARE"]="bare";t["IN_TREE"]="tree";t["IS_REPO_ROOT"]="root"})(s=e.CheckRepoActions||(e.CheckRepoActions={}));const i=(t,e,r,s)=>{if(t===n.ExitCodes.UNCLEAN&&isNotRepoMessage(e)){return r("false")}s(e)};const o=t=>{return t.trim()==="true"};function checkIsRepoTask(t){switch(t){case s.BARE:return checkIsBareRepoTask();case s.IS_REPO_ROOT:return checkIsRepoRootTask()}const e=["rev-parse","--is-inside-work-tree"];return{commands:e,format:"utf-8",onError:i,parser:o}}e.checkIsRepoTask=checkIsRepoTask;function checkIsRepoRootTask(){const t=["rev-parse","--git-dir"];return{commands:t,format:"utf-8",onError:i,parser(t){return/^\.(git)?$/.test(t.trim())}}}e.checkIsRepoRootTask=checkIsRepoRootTask;function checkIsBareRepoTask(){const t=["rev-parse","--is-bare-repository"];return{commands:t,format:"utf-8",onError:i,parser:o}}e.checkIsBareRepoTask=checkIsBareRepoTask;function isNotRepoMessage(t){return/(Not a git repository|Kein Git-Repository)/i.test(t)}},4386:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.isCleanOptionsArray=e.cleanTask=e.cleanWithOptionsTask=e.CleanOptions=e.CONFIG_ERROR_UNKNOWN_OPTION=e.CONFIG_ERROR_MODE_REQUIRED=e.CONFIG_ERROR_INTERACTIVE_MODE=void 0;const n=r(5689);const s=r(847);const i=r(2815);e.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";e.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';e.CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ";var o;(function(t){t["DRY_RUN"]="n";t["FORCE"]="f";t["IGNORED_INCLUDED"]="x";t["IGNORED_ONLY"]="X";t["EXCLUDING"]="e";t["QUIET"]="q";t["RECURSIVE"]="d"})(o=e.CleanOptions||(e.CleanOptions={}));const a=new Set(["i",...s.asStringArray(Object.values(o))]);function cleanWithOptionsTask(t,r){const{cleanMode:n,options:s,valid:o}=getCleanOptions(t);if(!n){return i.configurationErrorTask(e.CONFIG_ERROR_MODE_REQUIRED)}if(!o.options){return i.configurationErrorTask(e.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(t))}s.push(...r);if(s.some(isInteractiveMode)){return i.configurationErrorTask(e.CONFIG_ERROR_INTERACTIVE_MODE)}return cleanTask(n,s)}e.cleanWithOptionsTask=cleanWithOptionsTask;function cleanTask(t,e){const r=["clean",`-${t}`,...e];return{commands:r,format:"utf-8",parser(e){return n.cleanSummaryParser(t===o.DRY_RUN,e)}}}e.cleanTask=cleanTask;function isCleanOptionsArray(t){return Array.isArray(t)&&t.every(t=>a.has(t))}e.isCleanOptionsArray=isCleanOptionsArray;function getCleanOptions(t){let e;let r=[];let n={cleanMode:false,options:true};t.replace(/[^a-z]i/g,"").split("").forEach(t=>{if(isCleanMode(t)){e=t;n.cleanMode=true}else{n.options=n.options&&isKnownOption(r[r.length]=`-${t}`)}});return{cleanMode:e,options:r,valid:n}}function isCleanMode(t){return t===o.FORCE||t===o.DRY_RUN}function isKnownOption(t){return/^-[a-z]$/i.test(t)&&a.has(t.charAt(1))}function isInteractiveMode(t){if(/^-[^\-]/.test(t)){return t.indexOf("i")>0}return t==="--interactive"}},3173:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.cloneMirrorTask=e.cloneTask=void 0;const n=r(2815);const s=r(847);function cloneTask(t,e,r){const s=["clone",...r];if(typeof t==="string"){s.push(t)}if(typeof e==="string"){s.push(e)}return n.straightThroughStringTask(s)}e.cloneTask=cloneTask;function cloneMirrorTask(t,e,r){s.append(r,"--mirror");return cloneTask(t,e,r)}e.cloneMirrorTask=cloneMirrorTask},5494:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.commitTask=void 0;const n=r(3026);function commitTask(t,e,r){const s=["commit"];t.forEach(t=>s.push("-m",t));s.push(...e,...r);return{commands:s,format:"utf-8",parser:n.parseCommitResult}}e.commitTask=commitTask},7597:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.listConfigTask=e.addConfigTask=void 0;const n=r(7219);function addConfigTask(t,e,r=false){const n=["config","--local"];if(r){n.push("--add")}n.push(t,e);return{commands:n,format:"utf-8",parser(t){return t}}}e.addConfigTask=addConfigTask;function listConfigTask(){return{commands:["config","--list","--show-origin","--null"],format:"utf-8",parser(t){return n.configListParser(t)}}}e.listConfigTask=listConfigTask},9241:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.diffSummaryTask=void 0;const n=r(2024);function diffSummaryTask(t){return{commands:["diff","--stat=4096",...t],format:"utf-8",parser(t){return n.parseDiffResult(t)}}}e.diffSummaryTask=diffSummaryTask},8823:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.fetchTask=void 0;const n=r(6254);function fetchTask(t,e,r){const s=["fetch",...r];if(t&&e){s.push(t,e)}return{commands:s,format:"utf-8",parser:n.parseFetchResult}}e.fetchTask=fetchTask},8199:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.hashObjectTask=void 0;const n=r(2815);function hashObjectTask(t,e){const r=["hash-object",t];if(e){r.push("-w")}return n.straightThroughStringTask(r,true)}e.hashObjectTask=hashObjectTask},6016:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.initTask=void 0;const n=r(8690);const s="--bare";function hasBareCommand(t){return t.includes(s)}function initTask(t=false,e,r){const i=["init",...r];if(t&&!hasBareCommand(i)){i.splice(1,0,s)}return{commands:i,concatStdErr:false,format:"utf-8",parser(t){return n.parseInit(i.includes("--bare"),e,t)}}}e.initTask=initTask},8627:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.logTask=e.parseLogOptions=void 0;const n=r(9729);const s=r(847);var i;(function(t){t[t["--pretty"]=0]="--pretty";t[t["max-count"]=1]="max-count";t[t["maxCount"]=2]="maxCount";t[t["n"]=3]="n";t[t["file"]=4]="file";t[t["format"]=5]="format";t[t["from"]=6]="from";t[t["to"]=7]="to";t[t["splitter"]=8]="splitter";t[t["symmetric"]=9]="symmetric";t[t["multiLine"]=10]="multiLine";t[t["strictDate"]=11]="strictDate"})(i||(i={}));function prettyFormat(t,e){const r=[];const n=[];Object.keys(t).forEach(e=>{r.push(e);n.push(String(t[e]))});return[r,n.join(e)]}function userOptions(t){const e=Object.assign({},t);Object.keys(t).forEach(t=>{if(t in i){delete e[t]}});return e}function parseLogOptions(t={},e=[]){const r=t.splitter||n.SPLITTER;const i=t.format||{hash:"%H",date:t.strictDate===false?"%ai":"%aI",message:"%s",refs:"%D",body:t.multiLine?"%B":"%b",author_name:"%aN",author_email:"%ae"};const[o,a]=prettyFormat(i,r);const u=[];const c=[`--pretty=format:${n.START_BOUNDARY}${a}${n.COMMIT_BOUNDARY}`,...e];const l=t.n||t["max-count"]||t.maxCount;if(l){c.push(`--max-count=${l}`)}if(t.from&&t.to){const e=t.symmetric!==false?"...":"..";u.push(`${t.from}${e}${t.to}`)}if(t.file){u.push("--follow",t.file)}s.appendTaskOptions(userOptions(t),c);return{fields:o,splitter:r,commands:[...c,...u]}}e.parseLogOptions=parseLogOptions;function logTask(t,e,r){return{commands:["log",...r],format:"utf-8",parser:n.createListLogSummaryParser(t,e)}}e.logTask=logTask},8829:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.mergeTask=void 0;const n=r(5131);const s=r(6412);const i=r(2815);function mergeTask(t){if(!t.length){return i.configurationErrorTask("Git.merge requires at least one option")}return{commands:["merge",...t],format:"utf-8",parser(t,e){const r=s.parseMergeResult(t,e);if(r.failed){throw new n.GitResponseError(r)}return r}}}e.mergeTask=mergeTask},6520:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.moveTask=void 0;const n=r(7444);const s=r(847);function moveTask(t,e){return{commands:["mv","-v",...s.asArray(t),e],format:"utf-8",parser:n.parseMoveResult}}e.moveTask=moveTask},4636:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.pullTask=void 0;const n=r(5658);function pullTask(t,e,r){const s=["pull",...r];if(t&&e){s.splice(1,0,t,e)}return{commands:s,format:"utf-8",parser(t,e){return n.parsePullResult(t,e)}}}e.pullTask=pullTask},1435:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.pushTask=e.pushTagsTask=void 0;const n=r(8530);const s=r(847);function pushTagsTask(t={},e){s.append(e,"--tags");return pushTask(t,e)}e.pushTagsTask=pushTagsTask;function pushTask(t={},e){const r=["push",...e];if(t.branch){r.splice(1,0,t.branch)}if(t.remote){r.splice(1,0,t.remote)}s.remove(r,"-v");s.append(r,"--verbose");s.append(r,"--porcelain");return{commands:r,format:"utf-8",parser:n.parsePushResult}}e.pushTask=pushTask},9866:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.removeRemoteTask=e.remoteTask=e.listRemotesTask=e.getRemotesTask=e.addRemoteTask=void 0;const n=r(9999);const s=r(2815);function addRemoteTask(t,e,r=[]){return s.straightThroughStringTask(["remote","add",...r,t,e])}e.addRemoteTask=addRemoteTask;function getRemotesTask(t){const e=["remote"];if(t){e.push("-v")}return{commands:e,format:"utf-8",parser:t?n.parseGetRemotesVerbose:n.parseGetRemotes}}e.getRemotesTask=getRemotesTask;function listRemotesTask(t=[]){const e=[...t];if(e[0]!=="ls-remote"){e.unshift("ls-remote")}return s.straightThroughStringTask(e)}e.listRemotesTask=listRemotesTask;function remoteTask(t=[]){const e=[...t];if(e[0]!=="remote"){e.unshift("remote")}return s.straightThroughStringTask(e)}e.remoteTask=remoteTask;function removeRemoteTask(t){return s.straightThroughStringTask(["remote","remove",t])}e.removeRemoteTask=removeRemoteTask},2377:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.getResetMode=e.resetTask=e.ResetMode=void 0;const n=r(2815);var s;(function(t){t["MIXED"]="mixed";t["SOFT"]="soft";t["HARD"]="hard";t["MERGE"]="merge";t["KEEP"]="keep"})(s=e.ResetMode||(e.ResetMode={}));const i=Array.from(Object.values(s));function resetTask(t,e){const r=["reset"];if(isValidResetMode(t)){r.push(`--${t}`)}r.push(...e);return n.straightThroughStringTask(r)}e.resetTask=resetTask;function getResetMode(t){if(isValidResetMode(t)){return t}switch(typeof t){case"string":case"undefined":return s.SOFT}return}e.getResetMode=getResetMode;function isValidResetMode(t){return i.includes(t)}},810:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.stashListTask=void 0;const n=r(9729);const s=r(8627);function stashListTask(t={},e){const r=s.parseLogOptions(t);const i=n.createListLogSummaryParser(r.splitter,r.fields);return{commands:["stash","list",...r.commands,...e],format:"utf-8",parser:i}}e.stashListTask=stashListTask},9197:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.statusTask=void 0;const n=r(6790);function statusTask(t){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...t],parser(t){return n.parseStatusSummary(t)}}}e.statusTask=statusTask},8772:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.updateSubModuleTask=e.subModuleTask=e.initSubModuleTask=e.addSubModuleTask=void 0;const n=r(2815);function addSubModuleTask(t,e){return subModuleTask(["add",t,e])}e.addSubModuleTask=addSubModuleTask;function initSubModuleTask(t){return subModuleTask(["init",...t])}e.initSubModuleTask=initSubModuleTask;function subModuleTask(t){const e=[...t];if(e[0]!=="submodule"){e.unshift("submodule")}return n.straightThroughStringTask(e)}e.subModuleTask=subModuleTask;function updateSubModuleTask(t){return subModuleTask(["update",...t])}e.updateSubModuleTask=updateSubModuleTask},8540:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.addAnnotatedTagTask=e.addTagTask=e.tagListTask=void 0;const n=r(4539);function tagListTask(t=[]){const e=t.some(t=>/^--sort=/.test(t));return{format:"utf-8",commands:["tag","-l",...t],parser(t){return n.parseTagList(t,e)}}}e.tagListTask=tagListTask;function addTagTask(t){return{format:"utf-8",commands:["tag",t],parser(){return{name:t}}}}e.addTagTask=addTagTask;function addAnnotatedTagTask(t,e){return{format:"utf-8",commands:["tag","-a","-m",e,t],parser(){return{name:t}}}}e.addAnnotatedTagTask=addAnnotatedTagTask},2815:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.isEmptyTask=e.isBufferTask=e.straightThroughBufferTask=e.straightThroughStringTask=e.configurationErrorTask=e.adhocExecTask=e.EMPTY_COMMANDS=void 0;const n=r(740);e.EMPTY_COMMANDS=[];function adhocExecTask(t){return{commands:e.EMPTY_COMMANDS,format:"utf-8",parser:t}}e.adhocExecTask=adhocExecTask;function configurationErrorTask(t){return{commands:e.EMPTY_COMMANDS,format:"utf-8",parser(){throw typeof t==="string"?new n.TaskConfigurationError(t):t}}}e.configurationErrorTask=configurationErrorTask;function straightThroughStringTask(t,e=false){return{commands:t,format:"utf-8",parser(t){return e?String(t).trim():t}}}e.straightThroughStringTask=straightThroughStringTask;function straightThroughBufferTask(t){return{commands:t,format:"buffer",parser(t){return t}}}e.straightThroughBufferTask=straightThroughBufferTask;function isBufferTask(t){return t.format==="buffer"}e.isBufferTask=isBufferTask;function isEmptyTask(t){return!t.commands.length}e.isEmptyTask=isEmptyTask},7366:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.filterHasLength=e.filterFunction=e.filterPlainObject=e.filterStringOrStringArray=e.filterStringArray=e.filterString=e.filterPrimitives=e.filterArray=e.filterType=void 0;const n=r(8237);function filterType(t,e,r){if(e(t)){return t}return arguments.length>2?r:undefined}e.filterType=filterType;const s=t=>{return Array.isArray(t)};e.filterArray=s;function filterPrimitives(t,e){return/number|string|boolean/.test(typeof t)&&(!e||!e.includes(typeof t))}e.filterPrimitives=filterPrimitives;const i=t=>{return typeof t==="string"};e.filterString=i;const o=t=>{return Array.isArray(t)&&t.every(e.filterString)};e.filterStringArray=o;const a=t=>{return e.filterString(t)||Array.isArray(t)&&t.every(e.filterString)};e.filterStringOrStringArray=a;function filterPlainObject(t){return!!t&&n.objectToString(t)==="[object Object]"}e.filterPlainObject=filterPlainObject;function filterFunction(t){return typeof t==="function"}e.filterFunction=filterFunction;const u=t=>{if(t==null||"number|boolean|function".includes(typeof t)){return false}return Array.isArray(t)||typeof t==="string"||typeof t.length==="number"};e.filterHasLength=u},2185:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.ExitCodes=void 0;var r;(function(t){t[t["SUCCESS"]=0]="SUCCESS";t[t["ERROR"]=1]="ERROR";t[t["UNCLEAN"]=128]="UNCLEAN"})(r=e.ExitCodes||(e.ExitCodes={}))},6578:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.GitOutputStreams=void 0;class GitOutputStreams{constructor(t,e){this.stdOut=t;this.stdErr=e}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}e.GitOutputStreams=GitOutputStreams},847:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){if(n===undefined)n=r;Object.defineProperty(t,n,{enumerable:true,get:function(){return e[r]}})}:function(t,e,r,n){if(n===undefined)n=r;t[n]=e[r]});var s=this&&this.__exportStar||function(t,e){for(var r in t)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r))n(e,t,r)};Object.defineProperty(e,"__esModule",{value:true});s(r(7366),e);s(r(2185),e);s(r(6578),e);s(r(9536),e);s(r(5218),e);s(r(3546),e);s(r(1351),e);s(r(8237),e)},9536:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.RemoteLineParser=e.LineParser=void 0;class LineParser{constructor(t,e){this.matches=[];this.parse=((t,e)=>{this.resetMatches();if(!this._regExp.every((e,r)=>this.addMatch(e,r,t(r)))){return false}return this.useMatches(e,this.prepareMatches())!==false});this._regExp=Array.isArray(t)?t:[t];if(e){this.useMatches=e}}useMatches(t,e){throw new Error(`LineParser:useMatches not implemented`)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(t,e,r){const n=r&&t.exec(r);if(n){this.pushMatch(e,n)}return!!n}pushMatch(t,e){this.matches.push(...e.slice(1))}}e.LineParser=LineParser;class RemoteLineParser extends LineParser{addMatch(t,e,r){return/^remote:\s/.test(String(r))&&super.addMatch(t,e,r)}pushMatch(t,e){if(t>0||e.length>1){super.pushMatch(t,e)}}}e.RemoteLineParser=RemoteLineParser},5218:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createInstanceConfig=void 0;const r={binary:"git",maxConcurrentProcesses:5,config:[]};function createInstanceConfig(...t){const e=process.cwd();const n=Object.assign(Object.assign({baseDir:e},r),...t.filter(t=>typeof t==="object"&&t));n.baseDir=n.baseDir||e;return n}e.createInstanceConfig=createInstanceConfig},3546:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.trailingFunctionArgument=e.trailingOptionsArgument=e.getTrailingOptions=e.appendTaskOptions=void 0;const n=r(7366);const s=r(8237);function appendTaskOptions(t,e=[]){if(!n.filterPlainObject(t)){return e}return Object.keys(t).reduce((e,r)=>{const s=t[r];if(n.filterPrimitives(s,["boolean"])){e.push(r+"="+s)}else{e.push(r)}return e},e)}e.appendTaskOptions=appendTaskOptions;function getTrailingOptions(t,e=0,r=false){const n=[];for(let r=0,s=e<0?t.length:e;r{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.parseStringResponse=e.callTaskParser=void 0;const n=r(8237);function callTaskParser(t,e){return t(e.stdOut,e.stdErr)}e.callTaskParser=callTaskParser;function parseStringResponse(t,e,...r){r.forEach(r=>{for(let s=n.toLinesWithContent(r),i=0,o=s.length;i{if(i+t>=o){return}return s[i+t]};e.some(({parse:e})=>e(r,t))}});return t}e.parseStringResponse=parseStringResponse},8237:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.prefixedArray=e.asNumber=e.asStringArray=e.asArray=e.objectToString=e.remove=e.including=e.append=e.folderExists=e.forEachLineWithContent=e.toLinesWithContent=e.last=e.first=e.splitOn=e.isUserFunction=e.asFunction=e.NOOP=void 0;const n=r(4751);const s=()=>{};e.NOOP=s;function asFunction(t){return typeof t==="function"?t:e.NOOP}e.asFunction=asFunction;function isUserFunction(t){return typeof t==="function"&&t!==e.NOOP}e.isUserFunction=isUserFunction;function splitOn(t,e){const r=t.indexOf(e);if(r<=0){return[t,""]}return[t.substr(0,r),t.substr(r+1)]}e.splitOn=splitOn;function first(t,e=0){return isArrayLike(t)&&t.length>e?t[e]:undefined}e.first=first;function last(t,e=0){if(isArrayLike(t)&&t.length>e){return t[t.length-1-e]}}e.last=last;function isArrayLike(t){return!!(t&&typeof t.length==="number")}function toLinesWithContent(t,e=true,r="\n"){return t.split(r).reduce((t,r)=>{const n=e?r.trim():r;if(n){t.push(n)}return t},[])}e.toLinesWithContent=toLinesWithContent;function forEachLineWithContent(t,e){return toLinesWithContent(t,true).map(t=>e(t))}e.forEachLineWithContent=forEachLineWithContent;function folderExists(t){return n.exists(t,n.FOLDER)}e.folderExists=folderExists;function append(t,e){if(Array.isArray(t)){if(!t.includes(e)){t.push(e)}}else{t.add(e)}return e}e.append=append;function including(t,e){if(Array.isArray(t)&&!t.includes(e)){t.push(e)}return t}e.including=including;function remove(t,e){if(Array.isArray(t)){const r=t.indexOf(e);if(r>=0){t.splice(r,1)}}else{t.delete(e)}return e}e.remove=remove;e.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function asArray(t){return Array.isArray(t)?t:[t]}e.asArray=asArray;function asStringArray(t){return asArray(t).map(String)}e.asStringArray=asStringArray;function asNumber(t,e=0){if(t==null){return e}const r=parseInt(t,10);return isNaN(r)?e:r}e.asNumber=asNumber;function prefixedArray(t,e){const r=[];for(let n=0,s=t.length;n{"use strict";t.exports=(t=>{const e=/^\\\\\?\\/.test(t);const r=/[^\u0000-\u0080]+/.test(t);if(e||r){return t}return t.replace(/\\/g,"/")})},9318:(t,e,r)=>{"use strict";const n=r(2087);const s=r(3867);const i=r(1621);const{env:o}=process;let a;if(i("no-color")||i("no-colors")||i("color=false")||i("color=never")){a=0}else if(i("color")||i("colors")||i("color=true")||i("color=always")){a=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){a=1}else if(o.FORCE_COLOR==="false"){a=0}else{a=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t,e){if(a===0){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(t&&!e&&a===undefined){return 0}const r=a||0;if(o.TERM==="dumb"){return r}if(process.platform==="win32"){const t=n.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(t=>t in o)||o.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const t=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return r}function getSupportLevel(t){const e=supportsColor(t,t&&t.isTTY);return translateLevel(e)}t.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,s.isatty(1))),stderr:translateLevel(supportsColor(true,s.isatty(2)))}},1861:(t,e,r)=>{"use strict";const n=r(5680);const s=(t,e,r)=>{if(n(t)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(e===void 0||t===e){return String(t)}if(n(e)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let i={relaxZeros:true,...r};if(typeof i.strictZeros==="boolean"){i.relaxZeros=i.strictZeros===false}let o=String(i.relaxZeros);let a=String(i.shorthand);let u=String(i.capture);let c=String(i.wrap);let l=t+":"+e+"="+o+a+u+c;if(s.cache.hasOwnProperty(l)){return s.cache[l].result}let f=Math.min(t,e);let p=Math.max(t,e);if(Math.abs(f-p)===1){let r=t+"|"+e;if(i.capture){return`(${r})`}if(i.wrap===false){return r}return`(?:${r})`}let d=hasPadding(t)||hasPadding(e);let h={min:t,max:e,a:f,b:p};let g=[];let m=[];if(d){h.isPadded=d;h.maxLen=String(h.max).length}if(f<0){let t=p<0?Math.abs(p):1;m=splitToPatterns(t,Math.abs(f),h,i);f=h.a=0}if(p>=0){g=splitToPatterns(f,p,h,i)}h.negatives=m;h.positives=g;h.result=collatePatterns(m,g,i);if(i.capture===true){h.result=`(${h.result})`}else if(i.wrap!==false&&g.length+m.length>1){h.result=`(?:${h.result})`}s.cache[l]=h;return h.result};function collatePatterns(t,e,r){let n=filterPatterns(t,e,"-",false,r)||[];let s=filterPatterns(e,t,"",false,r)||[];let i=filterPatterns(t,e,"-?",true,r)||[];let o=n.concat(i).concat(s);return o.join("|")}function splitToRanges(t,e){let r=1;let n=1;let s=countNines(t,r);let i=new Set([e]);while(t<=s&&s<=e){i.add(s);r+=1;s=countNines(t,r)}s=countZeros(e+1,n)-1;while(t1){a.count.pop()}a.count.push(u.count[0]);a.string=a.pattern+toQuantifier(a.count);o=e+1;continue}if(r.isPadded){c=padZeros(e,r,n)}u.string=c+u.pattern+toQuantifier(u.count);i.push(u);o=e+1;a=u}return i}function filterPatterns(t,e,r,n,s){let i=[];for(let s of t){let{string:t}=s;if(!n&&!contains(e,"string",t)){i.push(r+t)}if(n&&contains(e,"string",t)){i.push(r+t)}}return i}function zip(t,e){let r=[];for(let n=0;ne?1:e>t?-1:0}function contains(t,e,r){return t.some(t=>t[e]===r)}function countNines(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function countZeros(t,e){return t-t%Math.pow(10,e)}function toQuantifier(t){let[e=0,r=""]=t;if(r||e>1){return`{${e+(r?","+r:"")}}`}return""}function toCharacterClass(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function hasPadding(t){return/^-?(0+)\d/.test(t)}function padZeros(t,e,r){if(!e.isPadded){return t}let n=Math.abs(e.maxLen-String(t).length);let s=r.relaxZeros!==false;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:{return s?`0{0,${n}}`:`0{${n}}`}}}s.cache={};s.clearCache=(()=>s.cache={});t.exports=s},1313:(t,e,r)=>{const n=r(3398);t.exports=async function gitStripMerge(t,e,r,{deleteCommitMessage:s="delete commit",mergeCommitMessage:i="merge commit"}={}){async function gitBranch(e){const r=await t.raw(["symbolic-ref",e]);const n=r.match(/refs\/heads\/(.*)/);if(n&&n[1]){return n[1]}return t.revparse(e)}const o=t._executor.cwd?t._executor.cwd:process.cwd();const a=await gitBranch("HEAD");const u=await t.revparse(e);await t.checkout(a);await t.checkout(u);const c=await n(r,{cwd:o});await t.rm(c);await t.commit(s);const l=await t.revparse("HEAD");await t.checkout(a);await t.merge(["-m",i,l,"--no-ff"])}},4351:(t,e,r)=>{const n=r(5622);const s=r(2186);const i=r(1477);const o=r(1313);async function run(){const t=n.join(process.cwd());const e=i({baseDir:t});const r=s.getInput("release-tag",{required:true});const a=s.getInput("exclude",{required:true});const u=s.getInput("release-branch",{required:true});const c=s.getInput("upstream-branch",{required:true});let l=[];try{const t=JSON.parse(a);if(Array.isArray(t)&&t.find(t=>typeof t!=="string")===undefined){l=t}}catch(t){if(a){l=[a]}}await e.addConfig("user.name","github-actions[bot]");await e.addConfig("user.email","41898282+github-actions[bot]@users.noreply.github.com");await e.checkout(u);await o(e,c,l);s.info(`Creating new tag ${r}`);await e.addAnnotatedTag(r,`Release ${r}`);e.push("origin",u);e.pushTags("origin")}try{run()}catch(t){console.log(t)}},3129:t=>{"use strict";t.exports=require("child_process")},8614:t=>{"use strict";t.exports=require("events")},5747:t=>{"use strict";t.exports=require("fs")},2087:t=>{"use strict";t.exports=require("os")},5622:t=>{"use strict";t.exports=require("path")},2413:t=>{"use strict";t.exports=require("stream")},3867:t=>{"use strict";t.exports=require("tty")},1669:t=>{"use strict";t.exports=require("util")}};var e={};function __nccwpck_require__(r){if(e[r]){return e[r].exports}var n=e[r]={exports:{}};var s=true;try{t[r].call(n.exports,n,n.exports,__nccwpck_require__);s=false}finally{if(s)delete e[r]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(4351)})(); \ No newline at end of file diff --git a/src/index.js b/src/index.js index 8eb308b..1ab3e95 100644 --- a/src/index.js +++ b/src/index.js @@ -46,7 +46,8 @@ async function run() { core.info(`Creating new tag ${releaseTag}`); await git.addAnnotatedTag(releaseTag, `Release ${releaseTag}`); - // Push tag back to repo + // Push commits & tag back to repo + git.push('origin', releaseBranchName); git.pushTags('origin'); }