From d4a621f1f9fb7cbea421df29ee5bf949c3d97e1d Mon Sep 17 00:00:00 2001 From: Felix Haus Date: Sun, 19 Sep 2021 20:12:23 +0200 Subject: [PATCH] v2.0.0 --- CHANGELOG.md | 15 + dist/index.js | 28 +- dist/third-party-licenses.txt | 558 ++++++++++++++++++++++++++++++++++ 3 files changed, 593 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d9ec72..10244e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 2.0.0 (September 19, 2021) + +- Get upstream branch from `github.context.ref`. input-variable `upstream-branch` is no longer needed +- Input-variable `exclude` now accepts a multiline input: + + ```yaml + - uses: milliHQ/gh-action-release-branch@v2.0.0 + with: + release-branch: release + release-tag: v1.0.0 + exclude: | + lib/**/* + test/**/* + ``` + ## 1.1.0 - (May 04, 2021) - Include dotfiles in delete commit ([#3](https://github.com/dealmore/gh-action-terraform-module-release/pull/3)) diff --git a/dist/index.js b/dist/index.js index 2a1a79d..4b87be6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,10 +1,22 @@ -(()=>{var e={7351:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(2087));const i=r(5278);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const o="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${o}${escapeData(this.message)}`;return e}}function escapeData(e){return i.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return i.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__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(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${u.EOL}${r}${u.EOL}${t}`;o.issueCommand("ENV",n)}else{i.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){i.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){o.issueCommand("PATH",e)}else{i.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){i.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){i.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){i.issueCommand("debug",{},e)}t.debug=debug;function error(e){i.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){i.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){i.issue("group",e)}t.startGroup=startGroup;function endGroup(){i.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){i.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},717:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(5747));const i=n(r(2087));const o=r(5278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${o.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue},4751:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});__export(r(2825))},2825:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=r(5747);const i=n(r(8231));const o=i.default("@kwsites/file-exists");function check(e,t,r){o(`checking %s`,e);try{const n=s.statSync(e);if(n.isFile()&&t){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(e){if(e.code==="ENOENT"){o(`[FAIL] path is not accessible: %o`,e);return false}o(`[FATAL] %o`,e);throw e}}function exists(e,r=t.READABLE){return check(e,(r&t.FILE)>0,(r&t.FOLDER)>0)}t.exists=exists;t.FILE=1;t.FOLDER=2;t.READABLE=t.FILE+t.FOLDER},9819:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDeferred=t.deferred=void 0;function deferred(){let e;let t;let r="pending";const n=new Promise(((r,n)=>{e=r;t=n}));return{promise:n,done(t){if(r==="pending"){r="resolved";e(t)}},fail(e){if(r==="pending"){r="rejected";t(e)}},get fulfilled(){return r!=="pending"},get status(){return r}}}t.deferred=deferred;t.createDeferred=deferred;t.default=deferred},3803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const n=r(5747);t.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync,readdir:n.readdir,readdirSync:n.readdirSync};function createFileSystemAdapter(e){if(e===undefined){return t.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}t.createFileSystemAdapter=createFileSystemAdapter},8838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.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;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||u},5667:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Settings=t.scandirSync=t.scandir=void 0;const n=r(4507);const s=r(9560);const i=r(8662);t.Settings=i.default;function scandir(e,t,r){if(typeof t==="function"){return n.read(e,getSettings(),t)}n.read(e,getSettings(t),r)}t.scandir=scandir;function scandirSync(e,t){const r=getSettings(t);return s.read(e,r)}t.scandirSync=scandirSync;function getSettings(e={}){if(e instanceof i.default){return e}return new i.default(e)}},4507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readdir=t.readdirWithFileTypes=t.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(e,t,r){if(!t.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(e,t,r)}return readdir(e,t,r)}t.read=read;function readdirWithFileTypes(e,t,r){t.fs.readdir(e,{withFileTypes:true},((n,i)=>{if(n!==null){return callFailureCallback(r,n)}const o=i.map((r=>({dirent:r,name:r.name,path:a.joinPathSegments(e,r.name,t.pathSegmentSeparator)})));if(!t.followSymbolicLinks){return callSuccessCallback(r,o)}const u=o.map((e=>makeRplTaskEntry(e,t)));s(u,((e,t)=>{if(e!==null){return callFailureCallback(r,e)}callSuccessCallback(r,t)}))}))}t.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(e,t){return r=>{if(!e.dirent.isSymbolicLink()){return r(null,e)}t.fs.stat(e.path,((n,s)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){return r(n)}return r(null,e)}e.dirent=o.fs.createDirentFromStats(e.name,s);return r(null,e)}))}}function readdir(e,t,r){t.fs.readdir(e,((i,u)=>{if(i!==null){return callFailureCallback(r,i)}const c=u.map((r=>a.joinPathSegments(e,r,t.pathSegmentSeparator)));const l=c.map((e=>r=>n.stat(e,t.fsStatSettings,r)));s(l,((e,n)=>{if(e!==null){return callFailureCallback(r,e)}const s=[];u.forEach(((e,r)=>{const i=n[r];const a={name:e,path:c[r],dirent:o.fs.createDirentFromStats(e,i)};if(t.stats){a.stats=i}s.push(a)}));callSuccessCallback(r,s)}))}))}t.readdir=readdir;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},3847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.joinPathSegments=void 0;function joinPathSegments(e,t,r){if(e.endsWith(r)){return e+t}return e+r+t}t.joinPathSegments=joinPathSegments},9560:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readdir=t.readdirWithFileTypes=t.read=void 0;const n=r(109);const s=r(8838);const i=r(6297);const o=r(3847);function read(e,t){if(!t.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(e,t)}return readdir(e,t)}t.read=read;function readdirWithFileTypes(e,t){const r=t.fs.readdirSync(e,{withFileTypes:true});return r.map((r=>{const n={dirent:r,name:r.name,path:o.joinPathSegments(e,r.name,t.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&t.followSymbolicLinks){try{const e=t.fs.statSync(n.path);n.dirent=i.fs.createDirentFromStats(n.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink){throw e}}}return n}))}t.readdirWithFileTypes=readdirWithFileTypes;function readdir(e,t){const r=t.fs.readdirSync(e);return r.map((r=>{const s=o.joinPathSegments(e,r,t.pathSegmentSeparator);const a=n.statSync(s,t.fsStatSettings);const u={name:r,path:s,dirent:i.fs.createDirentFromStats(r,a)};if(t.stats){u.stats=a}return u}))}t.readdir=readdir},8662:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5622);const s=r(109);const i=r(3803);class Settings{constructor(e={}){this._options=e;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(e,t){return e!==null&&e!==void 0?e:t}}t.default=Settings},883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDirentFromStats=void 0;class DirentFromStats{constructor(e,t){this.name=e;this.isBlockDevice=t.isBlockDevice.bind(t);this.isCharacterDevice=t.isCharacterDevice.bind(t);this.isDirectory=t.isDirectory.bind(t);this.isFIFO=t.isFIFO.bind(t);this.isFile=t.isFile.bind(t);this.isSocket=t.isSocket.bind(t);this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function createDirentFromStats(e,t){return new DirentFromStats(e,t)}t.createDirentFromStats=createDirentFromStats},6297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fs=void 0;const n=r(883);t.fs=n},2987:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const n=r(5747);t.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync};function createFileSystemAdapter(e){if(e===undefined){return t.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}t.createFileSystemAdapter=createFileSystemAdapter},109:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statSync=t.stat=t.Settings=void 0;const n=r(4147);const s=r(4527);const i=r(2410);t.Settings=i.default;function stat(e,t,r){if(typeof t==="function"){return n.read(e,getSettings(),t)}n.read(e,getSettings(t),r)}t.stat=stat;function statSync(e,t){const r=getSettings(t);return s.read(e,r)}t.statSync=statSync;function getSettings(e={}){if(e instanceof i.default){return e}return new i.default(e)}},4147:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.read=void 0;function read(e,t,r){t.fs.lstat(e,((n,s)=>{if(n!==null){return callFailureCallback(r,n)}if(!s.isSymbolicLink()||!t.followSymbolicLink){return callSuccessCallback(r,s)}t.fs.stat(e,((e,n)=>{if(e!==null){if(t.throwErrorOnBrokenSymbolicLink){return callFailureCallback(r,e)}return callSuccessCallback(r,s)}if(t.markSymbolicLink){n.isSymbolicLink=()=>true}callSuccessCallback(r,n)}))}))}t.read=read;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},4527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.read=void 0;function read(e,t){const r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink){return r}try{const r=t.fs.statSync(e);if(t.markSymbolicLink){r.isSymbolicLink=()=>true}return r}catch(e){if(!t.throwErrorOnBrokenSymbolicLink){return r}throw e}}t.read=read},2410:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2987);class Settings{constructor(e={}){this._options=e;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(e,t){return e!==null&&e!==void 0?e:t}}t.default=Settings},6026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Settings=t.walkStream=t.walkSync=t.walk=void 0;const n=r(7523);const s=r(6737);const i=r(3068);const o=r(141);t.Settings=o.default;function walk(e,t,r){if(typeof t==="function"){return new n.default(e,getSettings()).read(t)}new n.default(e,getSettings(t)).read(r)}t.walk=walk;function walkSync(e,t){const r=getSettings(t);const n=new i.default(e,r);return n.read()}t.walkSync=walkSync;function walkStream(e,t){const r=getSettings(t);const n=new s.default(e,r);return n.read()}t.walkStream=walkStream;function getSettings(e={}){if(e instanceof o.default){return e}return new o.default(e)}},7523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5732);class AsyncProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new n.default(this._root,this._settings);this._storage=new Set}read(e){this._reader.onError((t=>{callFailureCallback(e,t)}));this._reader.onEntry((e=>{this._storage.add(e)}));this._reader.onEnd((()=>{callSuccessCallback(e,[...this._storage])}));this._reader.read()}}t.default=AsyncProvider;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},6737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2413);const s=r(5732);class StreamProvider{constructor(e,t){this._root=e;this._settings=t;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((e=>{this._stream.emit("error",e)}));this._reader.onEntry((e=>{this._stream.push(e)}));this._reader.onEnd((()=>{this._stream.push(null)}));this._reader.read();return this._stream}}t.default=StreamProvider},3068:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3595);class SyncProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new n.default(this._root,this._settings)}read(){return this._reader.read()}}t.default=SyncProvider},5732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__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(e,t){super(e,t);this._settings=t;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(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){const r={directory:e,base:t};this._queue.push(r,(e=>{if(e!==null){this._handleError(e)}}))}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,((r,n)=>{if(r!==null){return t(r,undefined)}for(const t of n){this._handleEntry(t,e.base)}t(null,undefined)}))}_handleError(e){if(this._isDestroyed||!o.isFatalError(this._settings,e)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",e)}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError){return}const r=e.path;if(t!==undefined){e.path=o.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)}if(o.isAppliedFilter(this._settings.entryFilter,e)){this._emitEntry(e)}if(e.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,e)){this._pushToQueue(r,e.path)}}_emitEntry(e){this._emitter.emit("entry",e)}}t.default=AsyncReader},7988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function isFatalError(e,t){if(e.errorFilter===null){return true}return!e.errorFilter(t)}t.isFatalError=isFatalError;function isAppliedFilter(e,t){return e===null||e(t)}t.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(e,t){return e.split(/[/\\]/).join(t)}t.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(e,t,r){if(e===""){return t}if(e.endsWith(r)){return e+t}return e+r+t}t.joinPathSegments=joinPathSegments},8311:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7988);class Reader{constructor(e,t){this._root=e;this._settings=t;this._root=n.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}}t.default=Reader},3595:(e,t,r)=>{"use strict";Object.defineProperty(t,"__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(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(const e of this._queue.values()){this._handleDirectory(e.directory,e.base)}}_handleDirectory(e,t){try{const r=this._scandir(e,this._settings.fsScandirSettings);for(const e of r){this._handleEntry(e,t)}}catch(e){this._handleError(e)}}_handleError(e){if(!s.isFatalError(this._settings,e)){return}throw e}_handleEntry(e,t){const r=e.path;if(t!==undefined){e.path=s.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)}if(s.isAppliedFilter(this._settings.entryFilter,e)){this._pushToStorage(e)}if(e.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,e)){this._pushToQueue(r,e.path)}}_pushToStorage(e){this._storage.add(e)}}t.default=SyncReader},141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5622);const s=r(5667);class Settings{constructor(e={}){this._options=e;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(e,t){return e!==null&&e!==void 0?e:t}}t.default=Settings},9600:e=>{"use strict";e.exports=(...e)=>[...new Set([].concat(...e))]},610:(e,t,r)=>{"use strict";const n=r(8750);const s=r(9434);const i=r(5873);const o=r(6477);const braces=(e,t={})=>{let r=[];if(Array.isArray(e)){for(let n of e){let e=braces.create(n,t);if(Array.isArray(e)){r.push(...e)}else{r.push(e)}}}else{r=[].concat(braces.create(e,t))}if(t&&t.expand===true&&t.nodupes===true){r=[...new Set(r)]}return r};braces.parse=(e,t={})=>o(e,t);braces.stringify=(e,t={})=>{if(typeof e==="string"){return n(braces.parse(e,t),t)}return n(e,t)};braces.compile=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}return s(e,t)};braces.expand=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}let r=i(e,t);if(t.noempty===true){r=r.filter(Boolean)}if(t.nodupes===true){r=[...new Set(r)]}return r};braces.create=(e,t={})=>{if(e===""||e.length<3){return[e]}return t.expand!==true?braces.compile(e,t):braces.expand(e,t)};e.exports=braces},9434:(e,t,r)=>{"use strict";const n=r(6330);const s=r(5207);const compile=(e,t={})=>{let walk=(e,r={})=>{let i=s.isInvalidBrace(r);let o=e.invalid===true&&t.escapeInvalid===true;let a=i===true||o===true;let u=t.escapeInvalid===true?"\\":"";let c="";if(e.isOpen===true){return u+e.value}if(e.isClose===true){return u+e.value}if(e.type==="open"){return a?u+e.value:"("}if(e.type==="close"){return a?u+e.value:")"}if(e.type==="comma"){return e.prev.type==="comma"?"":a?e.value:"|"}if(e.value){return e.value}if(e.nodes&&e.ranges>0){let r=s.reduce(e.nodes);let i=n(...r,{...t,wrap:false,toRegex:true});if(i.length!==0){return r.length>1&&i.length>1?`(${i})`:i}}if(e.nodes){for(let t of e.nodes){c+=walk(t,e)}}return c};return walk(e)};e.exports=compile},8774:e=>{"use strict";e.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\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:(e,t,r)=>{"use strict";const n=r(6330);const s=r(8750);const i=r(5207);const append=(e="",t="",r=false)=>{let n=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return r?i.flatten(t).map((e=>`{${e}}`)):t}for(let s of e){if(Array.isArray(s)){for(let e of s){n.push(append(e,t,r))}}else{for(let e of t){if(r===true&&typeof e==="string")e=`{${e}}`;n.push(Array.isArray(e)?append(s,e,r):s+e)}}}return i.flatten(n)};const expand=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit;let walk=(e,o={})=>{e.queue=[];let a=o;let u=o.queue;while(a.type!=="brace"&&a.type!=="root"&&a.parent){a=a.parent;u=a.queue}if(e.invalid||e.dollar){u.push(append(u.pop(),s(e,t)));return}if(e.type==="brace"&&e.invalid!==true&&e.nodes.length===2){u.push(append(u.pop(),["{}"]));return}if(e.nodes&&e.ranges>0){let o=i.reduce(e.nodes);if(i.exceedsLimit(...o,t.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let a=n(...o,t);if(a.length===0){a=s(e,t)}u.push(append(u.pop(),a));e.nodes=[];return}let c=i.encloseBrace(e);let l=e.queue;let p=e;while(p.type!=="brace"&&p.type!=="root"&&p.parent){p=p.parent;l=p.queue}for(let t=0;t{"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:p,CHAR_RIGHT_CURLY_BRACE:f,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 parse=(e,t={})=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}let r=t||{};let b=typeof r.maxLength==="number"?Math.min(s,r.maxLength):s;if(e.length>b){throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${b})`)}let S={type:"root",input:e,nodes:[]};let v=[S];let E=S;let T=S;let k=0;let R=e.length;let C=0;let P=0;let A;let O={};const advance=()=>e[C++];const push=e=>{if(e.type==="text"&&T.type==="dot"){T.type="text"}if(T&&T.type==="text"&&e.type==="text"){T.value+=e.value;return}E.nodes.push(e);e.parent=E;e.prev=T;T=e;return e};push({type:"bos"});while(C0){if(E.ranges>0){E.ranges=0;let e=E.nodes.shift();E.nodes=[e,{type:"text",value:n(E)}]}push({type:"comma",value:A});E.commas++;continue}if(A===u&&P>0&&E.commas===0){let e=E.nodes;if(P===0||e.length===0){push({type:"text",value:A});continue}if(T.type==="dot"){E.range=[];T.value+=A;T.type="range";if(E.nodes.length!==3&&E.nodes.length!==5){E.invalid=true;E.ranges=0;T.type="text";continue}E.ranges++;E.args=[];continue}if(T.type==="range"){e.pop();let t=e[e.length-1];t.value+=T.value+A;T=t;E.ranges--;continue}push({type:"dot",value:A});continue}push({type:"text",value:A})}do{E=v.pop();if(E.type!=="root"){E.nodes.forEach((e=>{if(!e.nodes){if(e.type==="open")e.isOpen=true;if(e.type==="close")e.isClose=true;if(!e.nodes)e.type="text";e.invalid=true}}));let e=v[v.length-1];let t=e.nodes.indexOf(E);e.nodes.splice(t,1,...E.nodes)}}while(v.length>0);push({type:"eos"});return S};e.exports=parse},8750:(e,t,r)=>{"use strict";const n=r(5207);e.exports=(e,t={})=>{let stringify=(e,r={})=>{let s=t.escapeInvalid&&n.isInvalidBrace(r);let i=e.invalid===true&&t.escapeInvalid===true;let o="";if(e.value){if((s||i)&&n.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(let t of e.nodes){o+=stringify(t)}}return o};return stringify(e)}},5207:(e,t)=>{"use strict";t.isInteger=e=>{if(typeof e==="number"){return Number.isInteger(e)}if(typeof e==="string"&&e.trim()!==""){return Number.isInteger(Number(e))}return false};t.find=(e,t)=>e.nodes.find((e=>e.type===t));t.exceedsLimit=(e,r,n=1,s)=>{if(s===false)return false;if(!t.isInteger(e)||!t.isInteger(r))return false;return(Number(r)-Number(e))/Number(n)>=s};t.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];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}}};t.encloseBrace=e=>{if(e.type!=="brace")return false;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}return false};t.isInvalidBrace=e=>{if(e.type!=="brace")return false;if(e.invalid===true||e.dollar)return true;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}if(e.open!==true||e.close!==true){e.invalid=true;return true}return false};t.isOpenOrClose=e=>{if(e.type==="open"||e.type==="close"){return true}return e.open===true||e.close===true};t.reduce=e=>e.reduce(((e,t)=>{if(t.type==="text")e.push(t.value);if(t.type==="range")t.type="text";return e}),[]);t.flatten=(...e)=>{const t=[];const flat=e=>{for(let r=0;r{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=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`.")}}})();t.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(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){s=n}}));t.splice(s,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(6243)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,t,r)=>{function setup(e){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(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return"%"}i++;const s=createDebug.formatters[n];if(typeof s==="function"){const n=e[i];t=s.call(r,n);e.splice(i,1);i--}return t}));createDebug.formatArgs.call(r,e);const o=r.log||createDebug.log;o.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);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(e)}return s},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(8222)}else{e.exports=r(5332)}},5332:(e,t,r)=>{const n=r(3867);const s=r(1669);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.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`.");t.colors=[6,2,3,4,5,1];try{const e=r(9318);if(e&&(e.stderr||e).level>=2){t.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(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];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)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){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} `;t[0]=i+t[0].split("\n").join("\n"+i);t.push(s+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(s.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;ne.trim())).join(" ")};i.O=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts)}},2738:(e,t,r)=>{"use strict";const n=r(5622);const s=r(3433);const getExtensions=e=>e.length>1?`{${e.join(",")}}`:e[0];const getPath=(e,t)=>{const r=e[0]==="!"?e.slice(1):e;return n.isAbsolute(r)?r:n.join(t,r)};const addExtensions=(e,t)=>{if(n.extname(e)){return`**/${e}`}return`**/${e}.${getExtensions(t)}`};const getGlob=(e,t)=>{if(t.files&&!Array.isArray(t.files)){throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``)}if(t.extensions&&!Array.isArray(t.extensions)){throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``)}if(t.files&&t.extensions){return t.files.map((r=>n.posix.join(e,addExtensions(r,t.extensions))))}if(t.files){return t.files.map((t=>n.posix.join(e,`**/${t}`)))}if(t.extensions){return[n.posix.join(e,`**/*.${getExtensions(t.extensions)}`)]}return[n.posix.join(e,"**")]};e.exports=async(e,t)=>{t={cwd:process.cwd(),...t};if(typeof t.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``)}const r=await Promise.all([].concat(e).map((async e=>{const r=await s.isDirectory(getPath(e,t.cwd));return r?getGlob(e,t):e})));return[].concat.apply([],r)};e.exports.sync=(e,t)=>{t={cwd:process.cwd(),...t};if(typeof t.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``)}const r=[].concat(e).map((e=>s.isDirectorySync(getPath(e,t.cwd))?getGlob(e,t):e));return[].concat.apply([],r)}},3664:(e,t,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(e,t){assertPatternsInput(e);const r=getWorks(e,s.default,t);const n=await Promise.all(r);return u.array.flatten(n)}(function(e){function sync(e,t){assertPatternsInput(e);const r=getWorks(e,o.default,t);return u.array.flatten(r)}e.sync=sync;function stream(e,t){assertPatternsInput(e);const r=getWorks(e,i.default,t);return u.stream.merge(r)}e.stream=stream;function generateTasks(e,t){assertPatternsInput(e);const r=[].concat(e);const s=new a.default(t);return n.generate(r,s)}e.generateTasks=generateTasks;function isDynamicPattern(e,t){assertPatternsInput(e);const r=new a.default(t);return u.pattern.isDynamicPattern(e,r)}e.isDynamicPattern=isDynamicPattern;function escapePath(e){assertPatternsInput(e);return u.path.escape(e)}e.escapePath=escapePath})(FastGlob||(FastGlob={}));function getWorks(e,t,r){const s=[].concat(e);const i=new a.default(r);const o=n.generate(s,i);const u=new t(i);return o.map(u.read,u)}function assertPatternsInput(e){const t=[].concat(e);const r=t.every((e=>u.string.isString(e)&&!u.string.isEmpty(e)));if(!r){throw new TypeError("Patterns must be a string (non empty) or an array of strings")}}e.exports=FastGlob},2708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;const n=r(5444);function generate(e,t){const r=getPositivePatterns(e);const s=getNegativePatternsAsPositive(e,t.ignore);const i=r.filter((e=>n.pattern.isStaticPattern(e,t)));const o=r.filter((e=>n.pattern.isDynamicPattern(e,t)));const a=convertPatternsToTasks(i,s,false);const u=convertPatternsToTasks(o,s,true);return a.concat(u)}t.generate=generate;function convertPatternsToTasks(e,t,r){const n=groupPatternsByBaseDirectory(e);if("."in n){const n=convertPatternGroupToTask(".",e,t,r);return[n]}return convertPatternGroupsToTasks(n,t,r)}t.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(e){return n.pattern.getPositivePatterns(e)}t.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(e,t){const r=n.pattern.getNegativePatterns(e).concat(t);const s=r.map(n.pattern.convertToPositivePattern);return s}t.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(e){const t={};return e.reduce(((e,t)=>{const r=n.pattern.getBaseDirectory(t);if(r in e){e[r].push(t)}else{e[r]=[t]}return e}),t)}t.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(e,t,r){return Object.keys(e).map((n=>convertPatternGroupToTask(n,e[n],t,r)))}t.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(e,t,r,s){return{dynamic:s,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(n.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=convertPatternGroupToTask},5679:(e,t,r)=>{"use strict";Object.defineProperty(t,"__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(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const n=[];return new Promise(((s,i)=>{const o=this.api(t,e,r);o.once("error",i);o.on("data",(e=>n.push(r.transform(e))));o.once("end",(()=>s(n)))}))}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t.default=ProviderAsync},6983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5444);const s=r(5295);class DeepFilter{constructor(e,t){this._settings=e;this._micromatchOptions=t}getFilter(e,t,r){const n=this._getMatcher(t);const s=this._getNegativePatternsRe(r);return t=>this._filter(e,t,n,s)}_getMatcher(e){return new s.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){const t=e.filter(n.pattern.isAffectDepthOfReadingPattern);return n.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,r,s){if(this._isSkippedByDeep(e,t.path)){return false}if(this._isSkippedSymbolicLink(t)){return false}const i=n.path.removeLeadingDotSegment(t.path);if(this._isSkippedByPositivePatterns(i,r)){return false}return this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(e,t){if(this._settings.deep===Infinity){return false}return this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){const r=t.split("/").length;if(e===""){return r}const n=e.split("/").length;return r-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!n.pattern.matchAny(e,t)}}t.default=DeepFilter},1343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5444);class EntryFilter{constructor(e,t){this._settings=e;this._micromatchOptions=t;this.index=new Map}getFilter(e,t){const r=n.pattern.convertPatternsToRe(e,this._micromatchOptions);const s=n.pattern.convertPatternsToRe(t,this._micromatchOptions);return e=>this._filter(e,r,s)}_filter(e,t,r){if(this._settings.unique&&this._isDuplicateEntry(e)){return false}if(this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)){return false}if(this._isSkippedByAbsoluteNegativePatterns(e.path,r)){return false}const n=this._settings.baseNameMatch?e.name:e.path;const s=this._isMatchToPatterns(n,t)&&!this._isMatchToPatterns(e.path,r);if(this._settings.unique&&s){this._createIndexRecord(e)}return s}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,undefined)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,t){if(!this._settings.absolute){return false}const r=n.path.makeAbsolute(this._settings.cwd,e);return n.pattern.matchAny(r,t)}_isMatchToPatterns(e,t){const r=n.path.removeLeadingDotSegment(e);return n.pattern.matchAny(r,t)}}t.default=EntryFilter},6654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5444);class ErrorFilter{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return n.errno.isEnoentCodeError(e)||this._settings.suppressErrors}}t.default=ErrorFilter},2576:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5444);class Matcher{constructor(e,t,r){this._patterns=e;this._settings=t;this._micromatchOptions=r;this._storage=[];this._fillStorage()}_fillStorage(){const e=n.pattern.expandPatternsWithBraceExpansion(this._patterns);for(const t of e){const e=this._getPatternSegments(t);const r=this._splitSegmentsIntoSections(e);this._storage.push({complete:r.length<=1,pattern:t,segments:e,sections:r})}}_getPatternSegments(e){const t=n.pattern.getPatternParts(e,this._micromatchOptions);return t.map((e=>{const t=n.pattern.isDynamicPattern(e,this._settings);if(!t){return{dynamic:false,pattern:e}}return{dynamic:true,pattern:e,patternRe:n.pattern.makeRe(e,this._micromatchOptions)}}))}_splitSegmentsIntoSections(e){return n.array.splitWhen(e,(e=>e.dynamic&&n.pattern.hasGlobStar(e.pattern)))}}t.default=Matcher},5295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2576);class PartialMatcher extends n.default{match(e){const t=e.split("/");const r=t.length;const n=this._storage.filter((e=>!e.complete||e.segments.length>r));for(const e of n){const n=e.sections[0];if(!e.complete&&r>n.length){return true}const s=t.every(((t,r)=>{const n=e.segments[r];if(n.dynamic&&n.patternRe.test(t)){return true}if(!n.dynamic&&n.pattern===t){return true}return false}));if(s){return true}}return false}}t.default=PartialMatcher},257:(e,t,r)=>{"use strict";Object.defineProperty(t,"__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(e){this._settings=e;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(e){return n.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){const t=e.base==="."?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:true,strictSlashes:false}}}t.default=Provider},4630:(e,t,r)=>{"use strict";Object.defineProperty(t,"__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(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const s=this.api(t,e,r);const i=new n.Readable({objectMode:true,read:()=>{}});s.once("error",(e=>i.emit("error",e))).on("data",(e=>i.emit("data",r.transform(e)))).once("end",(()=>i.emit("end")));i.once("close",(()=>s.destroy()));return i}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t.default=ProviderStream},2405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__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(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const n=this.api(t,e,r);return n.map(r.transform)}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t.default=ProviderSync},4029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5444);class EntryTransformer{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let t=e.path;if(this._settings.absolute){t=n.path.makeAbsolute(this._settings.cwd,t);t=n.path.unixify(t)}if(this._settings.markDirectories&&e.dirent.isDirectory()){t+="/"}if(!this._settings.objectMode){return t}return Object.assign(Object.assign({},e),{path:t})}}t.default=EntryTransformer},5582:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5622);const s=r(109);const i=r(5444);class Reader{constructor(e){this._settings=e;this._fsStatSettings=new s.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return n.resolve(this._settings.cwd,e)}_makeEntry(e,t){const r={name:t,path:t,dirent:i.fs.createDirentFromStats(t,e)};if(this._settings.stats){r.stats=e}return r}_isFatalError(e){return!i.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}}t.default=Reader},2083:(e,t,r)=>{"use strict";Object.defineProperty(t,"__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(e,t){return this._walkStream(e,t)}static(e,t){const r=e.map(this._getFullEntryPath,this);const s=new n.PassThrough({objectMode:true});s._write=(n,i,o)=>this._getEntry(r[n],e[n],t).then((e=>{if(e!==null&&t.entryFilter(e)){s.push(e)}if(n===r.length-1){s.end()}o()})).catch(o);for(let e=0;ethis._makeEntry(e,t))).catch((e=>{if(r.errorFilter(e)){return null}throw e}))}_getStat(e){return new Promise(((t,r)=>{this._stat(e,this._fsStatSettings,((e,n)=>e===null?t(n):r(e)))}))}}t.default=ReaderStream},6234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__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(e,t){return this._walkSync(e,t)}static(e,t){const r=[];for(const n of e){const e=this._getFullEntryPath(n);const s=this._getEntry(e,n,t);if(s===null||!t.entryFilter(s)){continue}r.push(s)}return r}_getEntry(e,t,r){try{const r=this._getStat(e);return this._makeEntry(r,t)}catch(e){if(r.errorFilter(e)){return null}throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}t.default=ReaderSync},952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const n=r(5747);const s=r(2087);const i=Math.max(s.cpus().length,1);t.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(e={}){this._options=e;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(e,t){return e===undefined?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),e)}}t.default=Settings},5325:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitWhen=t.flatten=void 0;function flatten(e){return e.reduce(((e,t)=>[].concat(e,t)),[])}t.flatten=flatten;function splitWhen(e,t){const r=[[]];let n=0;for(const s of e){if(t(s)){n++;r[n]=[]}else{r[n].push(s)}}return r}t.splitWhen=splitWhen},1230:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEnoentCodeError=void 0;function isEnoentCodeError(e){return e.code==="ENOENT"}t.isEnoentCodeError=isEnoentCodeError},7543:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDirentFromStats=void 0;class DirentFromStats{constructor(e,t){this.name=e;this.isBlockDevice=t.isBlockDevice.bind(t);this.isCharacterDevice=t.isCharacterDevice.bind(t);this.isDirectory=t.isDirectory.bind(t);this.isFIFO=t.isFIFO.bind(t);this.isFile=t.isFile.bind(t);this.isSocket=t.isSocket.bind(t);this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function createDirentFromStats(e,t){return new DirentFromStats(e,t)}t.createDirentFromStats=createDirentFromStats},5444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;const n=r(5325);t.array=n;const s=r(1230);t.errno=s;const i=r(7543);t.fs=i;const o=r(3873);t.path=o;const a=r(1221);t.pattern=a;const u=r(8382);t.stream=u;const c=r(2203);t.string=c},3873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.removeLeadingDotSegment=t.escape=t.makeAbsolute=t.unixify=void 0;const n=r(5622);const s=2;const i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function unixify(e){return e.replace(/\\/g,"/")}t.unixify=unixify;function makeAbsolute(e,t){return n.resolve(e,t)}t.makeAbsolute=makeAbsolute;function escape(e){return e.replace(i,"\\$2")}t.escape=escape;function removeLeadingDotSegment(e){if(e.charAt(0)==="."){const t=e.charAt(1);if(t==="/"||t==="\\"){return e.slice(s)}}return e}t.removeLeadingDotSegment=removeLeadingDotSegment},1221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.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 p=/(?:^|[^!*+?@])\(.*\|.*\)/;const f=/[!*+?@]\(.*\)/;const d=/{.*(?:,|\.\.).*}/;function isStaticPattern(e,t={}){return!isDynamicPattern(e,t)}t.isStaticPattern=isStaticPattern;function isDynamicPattern(e,t={}){if(e===""){return false}if(t.caseSensitiveMatch===false||e.includes(u)){return true}if(c.test(e)||l.test(e)||p.test(e)){return true}if(t.extglob!==false&&f.test(e)){return true}if(t.braceExpansion!==false&&d.test(e)){return true}return false}t.isDynamicPattern=isDynamicPattern;function convertToPositivePattern(e){return isNegativePattern(e)?e.slice(1):e}t.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(e){return"!"+e}t.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(e){return e.startsWith("!")&&e[1]!=="("}t.isNegativePattern=isNegativePattern;function isPositivePattern(e){return!isNegativePattern(e)}t.isPositivePattern=isPositivePattern;function getNegativePatterns(e){return e.filter(isNegativePattern)}t.getNegativePatterns=getNegativePatterns;function getPositivePatterns(e){return e.filter(isPositivePattern)}t.getPositivePatterns=getPositivePatterns;function getBaseDirectory(e){return s(e,{flipBackslashes:false})}t.getBaseDirectory=getBaseDirectory;function hasGlobStar(e){return e.includes(a)}t.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(e){return e.endsWith("/"+a)}t.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(e){const t=n.basename(e);return endsWithSlashGlobStar(e)||isStaticPattern(t)}t.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function expandPatternsWithBraceExpansion(e){return e.reduce(((e,t)=>e.concat(expandBraceExpansion(t))),[])}t.expandPatternsWithBraceExpansion=expandPatternsWithBraceExpansion;function expandBraceExpansion(e){return i.braces(e,{expand:true,nodupes:true})}t.expandBraceExpansion=expandBraceExpansion;function getPatternParts(e,t){let{parts:r}=o.scan(e,Object.assign(Object.assign({},t),{parts:true}));if(r.length===0){r=[e]}if(r[0].startsWith("/")){r[0]=r[0].slice(1);r.unshift("")}return r}t.getPatternParts=getPatternParts;function makeRe(e,t){return i.makeRe(e,t)}t.makeRe=makeRe;function convertPatternsToRe(e,t){return e.map((e=>makeRe(e,t)))}t.convertPatternsToRe=convertPatternsToRe;function matchAny(e,t){return t.some((t=>t.test(e)))}t.matchAny=matchAny},8382:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.merge=void 0;const n=r(2578);function merge(e){const t=n(e);e.forEach((e=>{e.once("error",(e=>t.emit("error",e)))}));t.once("close",(()=>propagateCloseEventToSources(e)));t.once("end",(()=>propagateCloseEventToSources(e)));return t}t.merge=merge;function propagateCloseEventToSources(e){e.forEach((e=>e.emit("close")))}},2203:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmpty=t.isString=void 0;function isString(e){return typeof e==="string"}t.isString=isString;function isEmpty(e){return e===""}t.isEmpty=isEmpty},7340:(e,t,r)=>{"use strict";var n=r(2113);function fastqueue(e,t,r){if(typeof e==="function"){r=t;t=e;e=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 e=i;var t=0;while(e){e=e.next;t++}return t}function getQueue(){var e=i;var t=[];while(e){t.push(e.value);e=e.next}return t}function resume(){if(!c.paused)return;c.paused=false;for(var e=0;e{"use strict"; +(()=>{var __webpack_modules__={7351:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=o(r(2087));const a=r(5278);function issueCommand(e,t,r){const s=new Command(e,t,r);process.stdout.write(s.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const c="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const s=this.properties[r];if(s){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(s)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const a=r(7351);const c=r(717);const u=r(5278);const l=o(r(2087));const p=o(r(5622));var d;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(d=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const s=process.env["GITHUB_ENV"]||"";if(s){const t="_GitHubActionsFileCommandDelimeter_";const s=`${e}<<${t}${l.EOL}${r}${l.EOL}${t}`;c.issueCommand("ENV",s)}else{a.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){c.issueCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${p.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}t.getInput=getInput;function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));return r}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const s=["false","False","FALSE"];const n=getInput(e,t);if(r.includes(n))return true;if(s.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(l.EOL);a.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=d.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){a.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return i(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){a.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},717:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const i=o(r(5747));const a=o(r(2087));const c=r(5278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!i.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}i.appendFileSync(r,`${c.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},4087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const s=r(5747);const n=r(2087);class Context{constructor(){var e,t,r;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(s.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(s.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${n.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(r=process.env.GITHUB_GRAPHQL_URL)!==null&&r!==void 0?r:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},5438:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=o(r(4087));const a=r(3030);t.context=new i.Context;function getOctokit(e,t){return new a.GitHub(a.getOctokitOptions(e,t))}t.getOctokit=getOctokit},7914:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const i=o(r(9925));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new i.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},3030:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.context=void 0;const i=o(r(4087));const a=o(r(7914));const c=r(6762);const u=r(3044);const l=r(4193);t.context=new i.Context;const p=a.getApiBaseUrl();const d={baseUrl:p,request:{agent:a.getProxyAgent(p)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,l.paginateRest).defaults(d);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const s=a.getAuthString(e,r);if(s){r.auth=s}return r}t.getOctokitOptions=getOctokitOptions},9925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(8605);const n=r(7211);const o=r(6443);let i;var a;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(a=t.HttpCodes||(t.HttpCodes={}));var c;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(c=t.Headers||(t.Headers={}));var u;(function(e){e["ApplicationJson"]="application/json"})(u=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const p=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const d=["OPTIONS","GET","DELETE","HEAD"];const g=10;const h=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,s){return this.request(e,t,r,s)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,u.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let n=await this.post(e,s,r);return this._processResponse(n,this.requestOptions)}async putJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let n=await this.put(e,s,r);return this._processResponse(n,this.requestOptions)}async patchJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let n=await this.patch(e,s,r);return this._processResponse(n,this.requestOptions)}async request(e,t,r,s){if(this._disposed){throw new Error("Client has already been disposed.")}let n=new URL(t);let o=this._prepareRequest(e,n,s);let i=this._allowRetries&&d.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let u;while(c0){const i=u.message.headers["location"];if(!i){break}let a=new URL(i);if(n.protocol=="https:"&&n.protocol!=a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await u.readBody();if(a.hostname!==n.hostname){for(let e in s){if(e.toLowerCase()==="authorization"){delete s[e]}}}o=this._prepareRequest(e,a,s);u=await this.requestRaw(o,r);t--}if(p.indexOf(u.message.statusCode)==-1){return u}c+=1;if(c{let callbackForResult=function(e,t){if(e){s(e)}r(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,r){let s;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;let handleResult=(e,t)=>{if(!n){n=true;r(e,t)}};let o=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));o.on("socket",(e=>{s=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(s){s.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));o.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const i=o.parsedUrl.protocol==="https:";o.httpModule=i?n:s;const a=i?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):a;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(o.options)}))}return o}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});let s;if(this.requestOptions&&this.requestOptions.headers){s=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||s||r}_getAgent(e){let t;let a=o.getProxyUrl(e);let c=a&&a.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||s.globalAgent.maxSockets}if(c){if(!i){i=r(4294)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{...(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`},host:a.hostname,port:a.port}};let s;const n=a.protocol==="https:";if(u){s=n?i.httpsOverHttps:i.httpsOverHttp}else{s=n?i.httpOverHttps:i.httpOverHttp}t=s(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new n.Agent(e):new s.Agent(e);this._agent=t}if(!t){t=u?n.globalAgent:s.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(g,e);const t=h*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(r,s)=>{const n=e.message.statusCode;const o={statusCode:n,result:null,headers:{}};if(n==a.NotFound){r(o)}let i;let c;try{c=await e.readBody();if(c&&c.length>0){if(t&&t.deserializeDates){i=JSON.parse(c,HttpClient.dateTimeDeserializer)}else{i=JSON.parse(c)}o.result=i}o.headers=e.message.headers}catch(e){}if(n>299){let e;if(i&&i.message){e=i.message}else if(c&&c.length>0){e=c}else{e="Failed request: ("+n+")"}let t=new HttpClientError(e,n);t.result=o.result;s(t)}else{r(o)}}))}}t.HttpClient=HttpClient},6443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let s;if(t){s=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{s=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(s){r=new URL(s)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let s=[e.hostname.toUpperCase()];if(typeof r==="number"){s.push(`${s[0]}:${r}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(s.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},4751:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});__export(r(2825))},2825:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const n=r(5747);const o=s(r(8231));const i=o.default("@kwsites/file-exists");function check(e,t,r){i(`checking %s`,e);try{const s=n.statSync(e);if(s.isFile()&&t){i(`[OK] path represents a file`);return true}if(s.isDirectory()&&r){i(`[OK] path represents a directory`);return true}i(`[FAIL] path represents something other than a file or directory`);return false}catch(e){if(e.code==="ENOENT"){i(`[FAIL] path is not accessible: %o`,e);return false}i(`[FATAL] %o`,e);throw e}}function exists(e,r=t.READABLE){return check(e,(r&t.FILE)>0,(r&t.FOLDER)>0)}t.exists=exists;t.FILE=1;t.FOLDER=2;t.READABLE=t.FILE+t.FOLDER},9819:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDeferred=t.deferred=void 0;function deferred(){let e;let t;let r="pending";const s=new Promise(((r,s)=>{e=r;t=s}));return{promise:s,done(t){if(r==="pending"){r="resolved";e(t)}},fail(e){if(r==="pending"){r="rejected";t(e)}},get fulfilled(){return r!=="pending"},get status(){return r}}}t.deferred=deferred;t.createDeferred=deferred;t.default=deferred},3803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const s=r(5747);t.FILE_SYSTEM_ADAPTER={lstat:s.lstat,stat:s.stat,lstatSync:s.lstatSync,statSync:s.statSync,readdir:s.readdir,readdirSync:s.readdirSync};function createFileSystemAdapter(e){if(e===undefined){return t.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}t.createFileSystemAdapter=createFileSystemAdapter},8838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const r=process.versions.node.split(".");const s=parseInt(r[0],10);const n=parseInt(r[1],10);const o=10;const i=10;const a=s>o;const c=s===o&&n>=i;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||c},5667:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Settings=t.scandirSync=t.scandir=void 0;const s=r(4507);const n=r(9560);const o=r(8662);t.Settings=o.default;function scandir(e,t,r){if(typeof t==="function"){return s.read(e,getSettings(),t)}s.read(e,getSettings(t),r)}t.scandir=scandir;function scandirSync(e,t){const r=getSettings(t);return n.read(e,r)}t.scandirSync=scandirSync;function getSettings(e={}){if(e instanceof o.default){return e}return new o.default(e)}},4507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readdir=t.readdirWithFileTypes=t.read=void 0;const s=r(109);const n=r(5288);const o=r(8838);const i=r(6297);const a=r(3847);function read(e,t,r){if(!t.stats&&o.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(e,t,r)}return readdir(e,t,r)}t.read=read;function readdirWithFileTypes(e,t,r){t.fs.readdir(e,{withFileTypes:true},((s,o)=>{if(s!==null){return callFailureCallback(r,s)}const i=o.map((r=>({dirent:r,name:r.name,path:a.joinPathSegments(e,r.name,t.pathSegmentSeparator)})));if(!t.followSymbolicLinks){return callSuccessCallback(r,i)}const c=i.map((e=>makeRplTaskEntry(e,t)));n(c,((e,t)=>{if(e!==null){return callFailureCallback(r,e)}callSuccessCallback(r,t)}))}))}t.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(e,t){return r=>{if(!e.dirent.isSymbolicLink()){return r(null,e)}t.fs.stat(e.path,((s,n)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){return r(s)}return r(null,e)}e.dirent=i.fs.createDirentFromStats(e.name,n);return r(null,e)}))}}function readdir(e,t,r){t.fs.readdir(e,((o,c)=>{if(o!==null){return callFailureCallback(r,o)}const u=c.map((r=>a.joinPathSegments(e,r,t.pathSegmentSeparator)));const l=u.map((e=>r=>s.stat(e,t.fsStatSettings,r)));n(l,((e,s)=>{if(e!==null){return callFailureCallback(r,e)}const n=[];c.forEach(((e,r)=>{const o=s[r];const a={name:e,path:u[r],dirent:i.fs.createDirentFromStats(e,o)};if(t.stats){a.stats=o}n.push(a)}));callSuccessCallback(r,n)}))}))}t.readdir=readdir;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},3847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.joinPathSegments=void 0;function joinPathSegments(e,t,r){if(e.endsWith(r)){return e+t}return e+r+t}t.joinPathSegments=joinPathSegments},9560:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readdir=t.readdirWithFileTypes=t.read=void 0;const s=r(109);const n=r(8838);const o=r(6297);const i=r(3847);function read(e,t){if(!t.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(e,t)}return readdir(e,t)}t.read=read;function readdirWithFileTypes(e,t){const r=t.fs.readdirSync(e,{withFileTypes:true});return r.map((r=>{const s={dirent:r,name:r.name,path:i.joinPathSegments(e,r.name,t.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&t.followSymbolicLinks){try{const e=t.fs.statSync(s.path);s.dirent=o.fs.createDirentFromStats(s.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink){throw e}}}return s}))}t.readdirWithFileTypes=readdirWithFileTypes;function readdir(e,t){const r=t.fs.readdirSync(e);return r.map((r=>{const n=i.joinPathSegments(e,r,t.pathSegmentSeparator);const a=s.statSync(n,t.fsStatSettings);const c={name:r,path:n,dirent:o.fs.createDirentFromStats(r,a)};if(t.stats){c.stats=a}return c}))}t.readdir=readdir},8662:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(5622);const n=r(109);const o=r(3803);class Settings{constructor(e={}){this._options=e;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=o.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,s.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new n.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t.default=Settings},883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDirentFromStats=void 0;class DirentFromStats{constructor(e,t){this.name=e;this.isBlockDevice=t.isBlockDevice.bind(t);this.isCharacterDevice=t.isCharacterDevice.bind(t);this.isDirectory=t.isDirectory.bind(t);this.isFIFO=t.isFIFO.bind(t);this.isFile=t.isFile.bind(t);this.isSocket=t.isSocket.bind(t);this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function createDirentFromStats(e,t){return new DirentFromStats(e,t)}t.createDirentFromStats=createDirentFromStats},6297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fs=void 0;const s=r(883);t.fs=s},2987:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const s=r(5747);t.FILE_SYSTEM_ADAPTER={lstat:s.lstat,stat:s.stat,lstatSync:s.lstatSync,statSync:s.statSync};function createFileSystemAdapter(e){if(e===undefined){return t.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}t.createFileSystemAdapter=createFileSystemAdapter},109:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statSync=t.stat=t.Settings=void 0;const s=r(4147);const n=r(4527);const o=r(2410);t.Settings=o.default;function stat(e,t,r){if(typeof t==="function"){return s.read(e,getSettings(),t)}s.read(e,getSettings(t),r)}t.stat=stat;function statSync(e,t){const r=getSettings(t);return n.read(e,r)}t.statSync=statSync;function getSettings(e={}){if(e instanceof o.default){return e}return new o.default(e)}},4147:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.read=void 0;function read(e,t,r){t.fs.lstat(e,((s,n)=>{if(s!==null){return callFailureCallback(r,s)}if(!n.isSymbolicLink()||!t.followSymbolicLink){return callSuccessCallback(r,n)}t.fs.stat(e,((e,s)=>{if(e!==null){if(t.throwErrorOnBrokenSymbolicLink){return callFailureCallback(r,e)}return callSuccessCallback(r,n)}if(t.markSymbolicLink){s.isSymbolicLink=()=>true}callSuccessCallback(r,s)}))}))}t.read=read;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},4527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.read=void 0;function read(e,t){const r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink){return r}try{const r=t.fs.statSync(e);if(t.markSymbolicLink){r.isSymbolicLink=()=>true}return r}catch(e){if(!t.throwErrorOnBrokenSymbolicLink){return r}throw e}}t.read=read},2410:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(2987);class Settings{constructor(e={}){this._options=e;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=s.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t.default=Settings},6026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Settings=t.walkStream=t.walkSync=t.walk=void 0;const s=r(7523);const n=r(6737);const o=r(3068);const i=r(141);t.Settings=i.default;function walk(e,t,r){if(typeof t==="function"){return new s.default(e,getSettings()).read(t)}new s.default(e,getSettings(t)).read(r)}t.walk=walk;function walkSync(e,t){const r=getSettings(t);const s=new o.default(e,r);return s.read()}t.walkSync=walkSync;function walkStream(e,t){const r=getSettings(t);const s=new n.default(e,r);return s.read()}t.walkStream=walkStream;function getSettings(e={}){if(e instanceof i.default){return e}return new i.default(e)}},7523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(5732);class AsyncProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new s.default(this._root,this._settings);this._storage=new Set}read(e){this._reader.onError((t=>{callFailureCallback(e,t)}));this._reader.onEntry((e=>{this._storage.add(e)}));this._reader.onEnd((()=>{callSuccessCallback(e,[...this._storage])}));this._reader.read()}}t.default=AsyncProvider;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},6737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(2413);const n=r(5732);class StreamProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new n.default(this._root,this._settings);this._stream=new s.Readable({objectMode:true,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed){this._reader.destroy()}}})}read(){this._reader.onError((e=>{this._stream.emit("error",e)}));this._reader.onEntry((e=>{this._stream.push(e)}));this._reader.onEnd((()=>{this._stream.push(null)}));this._reader.read();return this._stream}}t.default=StreamProvider},3068:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(3595);class SyncProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new s.default(this._root,this._settings)}read(){return this._reader.read()}}t.default=SyncProvider},5732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(8614);const n=r(5667);const o=r(7340);const i=r(7988);const a=r(8311);class AsyncReader extends a.default{constructor(e,t){super(e,t);this._settings=t;this._scandir=n.scandir;this._emitter=new s.EventEmitter;this._queue=o(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(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){const r={directory:e,base:t};this._queue.push(r,(e=>{if(e!==null){this._handleError(e)}}))}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,((r,s)=>{if(r!==null){return t(r,undefined)}for(const t of s){this._handleEntry(t,e.base)}t(null,undefined)}))}_handleError(e){if(this._isDestroyed||!i.isFatalError(this._settings,e)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",e)}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError){return}const r=e.path;if(t!==undefined){e.path=i.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)}if(i.isAppliedFilter(this._settings.entryFilter,e)){this._emitEntry(e)}if(e.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,e)){this._pushToQueue(r,e.path)}}_emitEntry(e){this._emitter.emit("entry",e)}}t.default=AsyncReader},7988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function isFatalError(e,t){if(e.errorFilter===null){return true}return!e.errorFilter(t)}t.isFatalError=isFatalError;function isAppliedFilter(e,t){return e===null||e(t)}t.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(e,t){return e.split(/[/\\]/).join(t)}t.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(e,t,r){if(e===""){return t}if(e.endsWith(r)){return e+t}return e+r+t}t.joinPathSegments=joinPathSegments},8311:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(7988);class Reader{constructor(e,t){this._root=e;this._settings=t;this._root=s.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}}t.default=Reader},3595:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(5667);const n=r(7988);const o=r(8311);class SyncReader extends o.default{constructor(){super(...arguments);this._scandir=s.scandirSync;this._storage=new Set;this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return[...this._storage]}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(const e of this._queue.values()){this._handleDirectory(e.directory,e.base)}}_handleDirectory(e,t){try{const r=this._scandir(e,this._settings.fsScandirSettings);for(const e of r){this._handleEntry(e,t)}}catch(e){this._handleError(e)}}_handleError(e){if(!n.isFatalError(this._settings,e)){return}throw e}_handleEntry(e,t){const r=e.path;if(t!==undefined){e.path=n.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)}if(n.isAppliedFilter(this._settings.entryFilter,e)){this._pushToStorage(e)}if(e.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,e)){this._pushToQueue(r,e.path)}}_pushToStorage(e){this._storage.add(e)}}t.default=SyncReader},141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(5622);const n=r(5667);class Settings{constructor(e={}){this._options=e;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,s.sep);this.fsScandirSettings=new n.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t.default=Settings},334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=/^v1\./;const s=/^ghs_/;const n=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const o=r.test(e)||s.test(e);const i=n.test(e);const a=t?"app":o?"installation":i?"user-to-server":"oauth";return{type:"token",token:e,tokenType:a}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,s){const n=t.endpoint.merge(r,s);n.headers.authorization=withAuthorizationPrefix(e);return t(n)}const o=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=o},6762:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(5030);var n=r(3682);var o=r(6234);var i=r(8467);var a=r(334);function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var r={};var s=Object.keys(e);var n,o;for(o=0;o=0)continue;r[n]=e[n]}return r}function _objectWithoutProperties(e,t){if(e==null)return{};var r=_objectWithoutPropertiesLoose(e,t);var s,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,s))continue;r[s]=e[s]}}return r}const c="3.5.1";const u=["authStrategy"];class Octokit{constructor(e={}){const t=new n.Collection;const r={baseUrl:o.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=[e.userAgent,`octokit-core.js/${c} ${s.getUserAgent()}`].filter(Boolean).join(" ");if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=o.request.defaults(r);this.graphql=i.withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=a.createTokenAuth(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r}=e,s=_objectWithoutProperties(e,u);const n=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:s},e.auth));t.wrap("request",n.hook);this.auth=n}const l=this.constructor;l.plugins.forEach((t=>{Object.assign(this,t(this,e))}))}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(...e){var t;const r=this.plugins;const s=(t=class extends(this){},t.plugins=r.concat(e.filter((e=>!r.includes(e)))),t);return s}}Octokit.VERSION=c;Octokit.plugins=[];t.Octokit=Octokit},9440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(558);var n=r(5030);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(s.isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===undefined){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const s=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){s.mediaType.previews=e.mediaType.previews.filter((e=>!s.mediaType.previews.includes(e))).concat(s.mediaType.previews)}s.mediaType.previews=s.mediaType.previews.map((e=>e.replace(/-preview/,"")));return s}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const s=Object.keys(t);if(s.length===0){return e}return e+r+s.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}const o=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(o);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){return Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,r)=>{t[r]=e[r];return t}),{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,s){var n=e[r],o=[];if(isDefined(n)&&n!==""){if(typeof n==="string"||typeof n==="number"||typeof n==="boolean"){n=n.toString();if(s&&s!=="*"){n=n.substring(0,parseInt(s,10))}o.push(encodeValue(t,n,isKeyOperator(t)?r:""))}else{if(s==="*"){if(Array.isArray(n)){n.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(n).forEach((function(e){if(isDefined(n[e])){o.push(encodeValue(t,n[e],e))}}))}}else{const e=[];if(Array.isArray(n)){n.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(n).forEach((function(r){if(isDefined(n[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,n[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(n)){o.push(encodeUnreserved(r))}}else if(n===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(n===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,s,n){if(s){let e="";const n=[];if(r.indexOf(s.charAt(0))!==-1){e=s.charAt(0);s=s.substr(1)}s.split(/,/g).forEach((function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(getValues(t,e,s[1],s[2]||s[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(n.length!==0?e:"")+n.join(o)}else{return n.join(",")}}else{return encodeReserved(n)}}))}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let s=Object.assign({},e.headers);let n;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(s.accept);if(!u){if(e.mediaType.format){s.accept=s.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(e.mediaType.previews.length){const t=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){n=c.data}else{if(Object.keys(c).length){n=c}else{s["content-length"]=0}}}if(!s["content-type"]&&typeof n!=="undefined"){s["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof n==="undefined"){n=""}return Object.assign({method:t,url:r,headers:s},typeof n!=="undefined"?{body:n}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const s=endpointWithDefaults.bind(null,r);return Object.assign(s,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const i="6.0.12";const a=`octokit-endpoint.js/${i} ${n.getUserAgent()}`;const c={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":a},mediaType:{format:"",previews:[]}};const u=withDefaults(null,c);t.endpoint=u},558:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true}); +/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},8467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(6234);var n=r(5030);const o="4.8.0";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}class GraphqlResponseError extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.name="GraphqlResponseError";this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const i=["method","baseUrl","url","headers","request","query","mediaType"];const a=["query","method","url"];const c=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!a.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const s=typeof t==="string"?Object.assign({query:t},r):t;const n=Object.keys(s).reduce(((e,t)=>{if(i.includes(t)){e[t]=s[t];return e}if(!e.variables){e.variables={}}e.variables[t]=s[t];return e}),{});const o=s.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(c.test(o)){n.url=o.replace(c,"/api/graphql")}return e(n).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new GraphqlResponseError(n,t,e.data)}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:s.request.endpoint})}const u=withDefaults(s.request,{headers:{"user-agent":`octokit-graphql.js/${o} ${n.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.GraphqlResponseError=GraphqlResponseError;t.graphql=u;t.withCustomRequest=withCustomRequest},4193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="2.16.3";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);if(t){s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}r.push.apply(r,s)}return r}function _objectSpread2(e){for(var t=1;t({async next(){if(!a)return{done:true};try{const e=await n({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,s){if(typeof r==="function"){s=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),s)}function gather(e,t,r,s){return r.next().then((n=>{if(n.done){return t}let o=false;function done(){o=true}t=t.concat(s?s(n.value,done):n.value.data);if(o){return t}return gather(e,t,r,s)}))}const s=Object.assign(paginate,{iterator:iterator});const n=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/actions/runners/downloads","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/runners/downloads","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runners/downloads","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/autolinks","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /scim/v2/enterprises/{enterprise}/Groups","GET /scim/v2/enterprises/{enterprise}/Users","GET /scim/v2/organizations/{org}/Users","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/team-sync/group-mappings","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /user/{username}/packages","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return n.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.composePaginateRest=s;t.isPaginatingEndpoint=isPaginatingEndpoint;t.paginateRest=paginateRest;t.paginatingEndpoints=n},3044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);if(t){s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}r.push.apply(r,s)}return r}function _objectSpread2(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=r(8932);var n=_interopDefault(r(1223));const o=n((e=>console.warn(e)));const i=n((e=>console.warn(e)));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let n;if("headers"in r&&typeof r.headers!=="undefined"){n=r.headers}if("response"in r){this.response=r.response;n=r.response.headers}const a=Object.assign({},r.request);if(r.request.headers.authorization){a.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}a.url=a.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=a;Object.defineProperty(this,"code",{get(){o(new s.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){i(new s.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return n||{}}})}}t.RequestError=RequestError},6234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=r(9440);var n=r(5030);var o=r(9062);var i=_interopDefault(r(467));var a=r(537);const c="5.6.1";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){const t=e.request&&e.request.log?e.request.log:console;if(o.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let r={};let s;let n;const c=e.request&&e.request.fetch||i;return c(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((async o=>{n=o.url;s=o.status;for(const e of o.headers){r[e[0]]=e[1]}if("deprecation"in r){const s=r.link&&r.link.match(/<([^>]+)>; rel="deprecation"/);const n=s&&s.pop();t.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${r.sunset}${n?`. See ${n}`:""}`)}if(s===204||s===205){return}if(e.method==="HEAD"){if(s<400){return}throw new a.RequestError(o.statusText,s,{response:{url:n,status:s,headers:r,data:undefined},request:e})}if(s===304){throw new a.RequestError("Not modified",s,{response:{url:n,status:s,headers:r,data:await getResponseData(o)},request:e})}if(s>=400){const t=await getResponseData(o);const i=new a.RequestError(toErrorMessage(t),s,{response:{url:n,status:s,headers:r,data:t},request:e});throw i}return getResponseData(o)})).then((e=>({status:s,url:n,headers:r,data:e}))).catch((t=>{if(t instanceof a.RequestError)throw t;throw new a.RequestError(t.message,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json()}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`}return e.message}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const s=r.merge(e,t);if(!s.request||!s.request.hook){return fetchWrapper(r.parse(s))}const request=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request,{endpoint:r,defaults:withDefaults.bind(null,r)});return s.request.hook(request,s)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}const u=withDefaults(s.endpoint,{headers:{"user-agent":`octokit-request.js/${c} ${n.getUserAgent()}`}});t.request=u},9062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true}); +/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},9600:e=>{"use strict";e.exports=(...e)=>[...new Set([].concat(...e))]},3682:(e,t,r)=>{var s=r(4670);var n=r(5549);var o=r(6819);var i=Function.bind;var a=i.bind(i);function bindApi(e,t,r){var s=a(o,null).apply(null,r?[t,r]:[t]);e.api={remove:s};e.remove=s;["before","error","after","wrap"].forEach((function(s){var o=r?[t,s,r]:[t,s];e[s]=e.api[s]=a(n,null).apply(null,o)}))}function HookSingular(){var e="h";var t={registry:{}};var r=s.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=s.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},5549:e=>{e.exports=addHook;function addHook(e,t,r,s){var n=s;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){s=function(e,t){return Promise.resolve().then(n.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){s=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return n(r,t)})).then((function(){return r}))}}if(t==="error"){s=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return n(e,t)}))}}e.registry[r].push({hook:s,orig:n})}},4670:e=>{e.exports=register;function register(e,t,r,s){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!s){s={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,s)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(s)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,s)}),r)()}))}},6819:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var s=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(s===-1){return}e.registry[t].splice(s,1)}},610:(e,t,r)=>{"use strict";const s=r(8750);const n=r(9434);const o=r(5873);const i=r(6477);const braces=(e,t={})=>{let r=[];if(Array.isArray(e)){for(let s of e){let e=braces.create(s,t);if(Array.isArray(e)){r.push(...e)}else{r.push(e)}}}else{r=[].concat(braces.create(e,t))}if(t&&t.expand===true&&t.nodupes===true){r=[...new Set(r)]}return r};braces.parse=(e,t={})=>i(e,t);braces.stringify=(e,t={})=>{if(typeof e==="string"){return s(braces.parse(e,t),t)}return s(e,t)};braces.compile=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}return n(e,t)};braces.expand=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}let r=o(e,t);if(t.noempty===true){r=r.filter(Boolean)}if(t.nodupes===true){r=[...new Set(r)]}return r};braces.create=(e,t={})=>{if(e===""||e.length<3){return[e]}return t.expand!==true?braces.compile(e,t):braces.expand(e,t)};e.exports=braces},9434:(e,t,r)=>{"use strict";const s=r(6330);const n=r(5207);const compile=(e,t={})=>{let walk=(e,r={})=>{let o=n.isInvalidBrace(r);let i=e.invalid===true&&t.escapeInvalid===true;let a=o===true||i===true;let c=t.escapeInvalid===true?"\\":"";let u="";if(e.isOpen===true){return c+e.value}if(e.isClose===true){return c+e.value}if(e.type==="open"){return a?c+e.value:"("}if(e.type==="close"){return a?c+e.value:")"}if(e.type==="comma"){return e.prev.type==="comma"?"":a?e.value:"|"}if(e.value){return e.value}if(e.nodes&&e.ranges>0){let r=n.reduce(e.nodes);let o=s(...r,{...t,wrap:false,toRegex:true});if(o.length!==0){return r.length>1&&o.length>1?`(${o})`:o}}if(e.nodes){for(let t of e.nodes){u+=walk(t,e)}}return u};return walk(e)};e.exports=compile},8774:e=>{"use strict";e.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\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:(e,t,r)=>{"use strict";const s=r(6330);const n=r(8750);const o=r(5207);const append=(e="",t="",r=false)=>{let s=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return r?o.flatten(t).map((e=>`{${e}}`)):t}for(let n of e){if(Array.isArray(n)){for(let e of n){s.push(append(e,t,r))}}else{for(let e of t){if(r===true&&typeof e==="string")e=`{${e}}`;s.push(Array.isArray(e)?append(n,e,r):n+e)}}}return o.flatten(s)};const expand=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit;let walk=(e,i={})=>{e.queue=[];let a=i;let c=i.queue;while(a.type!=="brace"&&a.type!=="root"&&a.parent){a=a.parent;c=a.queue}if(e.invalid||e.dollar){c.push(append(c.pop(),n(e,t)));return}if(e.type==="brace"&&e.invalid!==true&&e.nodes.length===2){c.push(append(c.pop(),["{}"]));return}if(e.nodes&&e.ranges>0){let i=o.reduce(e.nodes);if(o.exceedsLimit(...i,t.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let a=s(...i,t);if(a.length===0){a=n(e,t)}c.push(append(c.pop(),a));e.nodes=[];return}let u=o.encloseBrace(e);let l=e.queue;let p=e;while(p.type!=="brace"&&p.type!=="root"&&p.parent){p=p.parent;l=p.queue}for(let t=0;t{"use strict";const s=r(8750);const{MAX_LENGTH:n,CHAR_BACKSLASH:o,CHAR_BACKTICK:i,CHAR_COMMA:a,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:u,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:g,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:b}=r(8774);const parse=(e,t={})=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}let r=t||{};let T=typeof r.maxLength==="number"?Math.min(n,r.maxLength):n;if(e.length>T){throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${T})`)}let E={type:"root",input:e,nodes:[]};let v=[E];let w=E;let k=E;let S=0;let P=e.length;let O=0;let R=0;let A;let C={};const advance=()=>e[O++];const push=e=>{if(e.type==="text"&&k.type==="dot"){k.type="text"}if(k&&k.type==="text"&&e.type==="text"){k.value+=e.value;return}w.nodes.push(e);e.parent=w;e.prev=k;k=e;return e};push({type:"bos"});while(O0){if(w.ranges>0){w.ranges=0;let e=w.nodes.shift();w.nodes=[e,{type:"text",value:s(w)}]}push({type:"comma",value:A});w.commas++;continue}if(A===c&&R>0&&w.commas===0){let e=w.nodes;if(R===0||e.length===0){push({type:"text",value:A});continue}if(k.type==="dot"){w.range=[];k.value+=A;k.type="range";if(w.nodes.length!==3&&w.nodes.length!==5){w.invalid=true;w.ranges=0;k.type="text";continue}w.ranges++;w.args=[];continue}if(k.type==="range"){e.pop();let t=e[e.length-1];t.value+=k.value+A;k=t;w.ranges--;continue}push({type:"dot",value:A});continue}push({type:"text",value:A})}do{w=v.pop();if(w.type!=="root"){w.nodes.forEach((e=>{if(!e.nodes){if(e.type==="open")e.isOpen=true;if(e.type==="close")e.isClose=true;if(!e.nodes)e.type="text";e.invalid=true}}));let e=v[v.length-1];let t=e.nodes.indexOf(w);e.nodes.splice(t,1,...w.nodes)}}while(v.length>0);push({type:"eos"});return E};e.exports=parse},8750:(e,t,r)=>{"use strict";const s=r(5207);e.exports=(e,t={})=>{let stringify=(e,r={})=>{let n=t.escapeInvalid&&s.isInvalidBrace(r);let o=e.invalid===true&&t.escapeInvalid===true;let i="";if(e.value){if((n||o)&&s.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(let t of e.nodes){i+=stringify(t)}}return i};return stringify(e)}},5207:(e,t)=>{"use strict";t.isInteger=e=>{if(typeof e==="number"){return Number.isInteger(e)}if(typeof e==="string"&&e.trim()!==""){return Number.isInteger(Number(e))}return false};t.find=(e,t)=>e.nodes.find((e=>e.type===t));t.exceedsLimit=(e,r,s=1,n)=>{if(n===false)return false;if(!t.isInteger(e)||!t.isInteger(r))return false;return(Number(r)-Number(e))/Number(s)>=n};t.escapeNode=(e,t=0,r)=>{let s=e.nodes[t];if(!s)return;if(r&&s.type===r||s.type==="open"||s.type==="close"){if(s.escaped!==true){s.value="\\"+s.value;s.escaped=true}}};t.encloseBrace=e=>{if(e.type!=="brace")return false;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}return false};t.isInvalidBrace=e=>{if(e.type!=="brace")return false;if(e.invalid===true||e.dollar)return true;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}if(e.open!==true||e.close!==true){e.invalid=true;return true}return false};t.isOpenOrClose=e=>{if(e.type==="open"||e.type==="close"){return true}return e.open===true||e.close===true};t.reduce=e=>e.reduce(((e,t)=>{if(t.type==="text")e.push(t.value);if(t.type==="range")t.type="text";return e}),[]);t.flatten=(...e)=>{const t=[];const flat=e=>{for(let r=0;r{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=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`.")}}})();t.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(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let s=0;let n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}s++;if(e==="%c"){n=s}}));t.splice(n,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(6243)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,t,r)=>{function setup(e){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(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return"%"}o++;const n=createDebug.formatters[s];if(typeof n==="function"){const s=e[o];t=n.call(r,s);e.splice(o,1);o--}return t}));createDebug.formatArgs.call(r,e);const i=r.log||createDebug.log;i.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(s!==createDebug.namespaces){s=createDebug.namespaces;n=createDebug.enabled(e)}return n},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const s=r.length;for(t=0;t"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(8222)}else{e.exports=r(5332)}},5332:(e,t,r)=>{const s=r(3867);const n=r(1669);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(9318);if(e&&(e.stderr||e).level>=2){t.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(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let s=process.env[t];if(/^(yes|on|true|enabled)$/i.test(s)){s=true}else if(/^(no|off|false|disabled)$/i.test(s)){s=false}else if(s==="null"){s=null}else{s=Number(s)}e[r]=s;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):s.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:s}=this;if(s){const s=this.color;const n="[3"+(s<8?s:"8;5;"+s);const o=` ${n};1m${r} `;t[0]=o+t[0].split("\n").join("\n"+o);t.push(n+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(n.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let s=0;se.trim())).join(" ")};o.O=function(e){this.inspectOpts.colors=this.useColors;return n.inspect(e,this.inspectOpts)}},8932:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},2738:(e,t,r)=>{"use strict";const s=r(5622);const n=r(3433);const getExtensions=e=>e.length>1?`{${e.join(",")}}`:e[0];const getPath=(e,t)=>{const r=e[0]==="!"?e.slice(1):e;return s.isAbsolute(r)?r:s.join(t,r)};const addExtensions=(e,t)=>{if(s.extname(e)){return`**/${e}`}return`**/${e}.${getExtensions(t)}`};const getGlob=(e,t)=>{if(t.files&&!Array.isArray(t.files)){throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``)}if(t.extensions&&!Array.isArray(t.extensions)){throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``)}if(t.files&&t.extensions){return t.files.map((r=>s.posix.join(e,addExtensions(r,t.extensions))))}if(t.files){return t.files.map((t=>s.posix.join(e,`**/${t}`)))}if(t.extensions){return[s.posix.join(e,`**/*.${getExtensions(t.extensions)}`)]}return[s.posix.join(e,"**")]};e.exports=async(e,t)=>{t={cwd:process.cwd(),...t};if(typeof t.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``)}const r=await Promise.all([].concat(e).map((async e=>{const r=await n.isDirectory(getPath(e,t.cwd));return r?getGlob(e,t):e})));return[].concat.apply([],r)};e.exports.sync=(e,t)=>{t={cwd:process.cwd(),...t};if(typeof t.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``)}const r=[].concat(e).map((e=>n.isDirectorySync(getPath(e,t.cwd))?getGlob(e,t):e));return[].concat.apply([],r)}},3664:(e,t,r)=>{"use strict";const s=r(2708);const n=r(5679);const o=r(4630);const i=r(2405);const a=r(952);const c=r(5444);async function FastGlob(e,t){assertPatternsInput(e);const r=getWorks(e,n.default,t);const s=await Promise.all(r);return c.array.flatten(s)}(function(e){function sync(e,t){assertPatternsInput(e);const r=getWorks(e,i.default,t);return c.array.flatten(r)}e.sync=sync;function stream(e,t){assertPatternsInput(e);const r=getWorks(e,o.default,t);return c.stream.merge(r)}e.stream=stream;function generateTasks(e,t){assertPatternsInput(e);const r=[].concat(e);const n=new a.default(t);return s.generate(r,n)}e.generateTasks=generateTasks;function isDynamicPattern(e,t){assertPatternsInput(e);const r=new a.default(t);return c.pattern.isDynamicPattern(e,r)}e.isDynamicPattern=isDynamicPattern;function escapePath(e){assertPatternsInput(e);return c.path.escape(e)}e.escapePath=escapePath})(FastGlob||(FastGlob={}));function getWorks(e,t,r){const n=[].concat(e);const o=new a.default(r);const i=s.generate(n,o);const c=new t(o);return i.map(c.read,c)}function assertPatternsInput(e){const t=[].concat(e);const r=t.every((e=>c.string.isString(e)&&!c.string.isEmpty(e)));if(!r){throw new TypeError("Patterns must be a string (non empty) or an array of strings")}}e.exports=FastGlob},2708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;const s=r(5444);function generate(e,t){const r=getPositivePatterns(e);const n=getNegativePatternsAsPositive(e,t.ignore);const o=r.filter((e=>s.pattern.isStaticPattern(e,t)));const i=r.filter((e=>s.pattern.isDynamicPattern(e,t)));const a=convertPatternsToTasks(o,n,false);const c=convertPatternsToTasks(i,n,true);return a.concat(c)}t.generate=generate;function convertPatternsToTasks(e,t,r){const s=groupPatternsByBaseDirectory(e);if("."in s){const s=convertPatternGroupToTask(".",e,t,r);return[s]}return convertPatternGroupsToTasks(s,t,r)}t.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(e){return s.pattern.getPositivePatterns(e)}t.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(e,t){const r=s.pattern.getNegativePatterns(e).concat(t);const n=r.map(s.pattern.convertToPositivePattern);return n}t.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(e){const t={};return e.reduce(((e,t)=>{const r=s.pattern.getBaseDirectory(t);if(r in e){e[r].push(t)}else{e[r]=[t]}return e}),t)}t.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(e,t,r){return Object.keys(e).map((s=>convertPatternGroupToTask(s,e[s],t,r)))}t.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(s.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=convertPatternGroupToTask},5679:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(2083);const n=r(257);class ProviderAsync extends n.default{constructor(){super(...arguments);this._reader=new s.default(this._settings)}read(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const s=[];return new Promise(((n,o)=>{const i=this.api(t,e,r);i.once("error",o);i.on("data",(e=>s.push(r.transform(e))));i.once("end",(()=>n(s)))}))}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t.default=ProviderAsync},6983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(5444);const n=r(5295);class DeepFilter{constructor(e,t){this._settings=e;this._micromatchOptions=t}getFilter(e,t,r){const s=this._getMatcher(t);const n=this._getNegativePatternsRe(r);return t=>this._filter(e,t,s,n)}_getMatcher(e){return new n.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){const t=e.filter(s.pattern.isAffectDepthOfReadingPattern);return s.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,r,n){if(this._isSkippedByDeep(e,t.path)){return false}if(this._isSkippedSymbolicLink(t)){return false}const o=s.path.removeLeadingDotSegment(t.path);if(this._isSkippedByPositivePatterns(o,r)){return false}return this._isSkippedByNegativePatterns(o,n)}_isSkippedByDeep(e,t){if(this._settings.deep===Infinity){return false}return this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){const r=t.split("/").length;if(e===""){return r}const s=e.split("/").length;return r-s}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!s.pattern.matchAny(e,t)}}t.default=DeepFilter},1343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(5444);class EntryFilter{constructor(e,t){this._settings=e;this._micromatchOptions=t;this.index=new Map}getFilter(e,t){const r=s.pattern.convertPatternsToRe(e,this._micromatchOptions);const n=s.pattern.convertPatternsToRe(t,this._micromatchOptions);return e=>this._filter(e,r,n)}_filter(e,t,r){if(this._settings.unique&&this._isDuplicateEntry(e)){return false}if(this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)){return false}if(this._isSkippedByAbsoluteNegativePatterns(e.path,r)){return false}const s=this._settings.baseNameMatch?e.name:e.path;const n=this._isMatchToPatterns(s,t)&&!this._isMatchToPatterns(e.path,r);if(this._settings.unique&&n){this._createIndexRecord(e)}return n}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,undefined)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,t){if(!this._settings.absolute){return false}const r=s.path.makeAbsolute(this._settings.cwd,e);return s.pattern.matchAny(r,t)}_isMatchToPatterns(e,t){const r=s.path.removeLeadingDotSegment(e);return s.pattern.matchAny(r,t)}}t.default=EntryFilter},6654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(5444);class ErrorFilter{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return s.errno.isEnoentCodeError(e)||this._settings.suppressErrors}}t.default=ErrorFilter},2576:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(5444);class Matcher{constructor(e,t,r){this._patterns=e;this._settings=t;this._micromatchOptions=r;this._storage=[];this._fillStorage()}_fillStorage(){const e=s.pattern.expandPatternsWithBraceExpansion(this._patterns);for(const t of e){const e=this._getPatternSegments(t);const r=this._splitSegmentsIntoSections(e);this._storage.push({complete:r.length<=1,pattern:t,segments:e,sections:r})}}_getPatternSegments(e){const t=s.pattern.getPatternParts(e,this._micromatchOptions);return t.map((e=>{const t=s.pattern.isDynamicPattern(e,this._settings);if(!t){return{dynamic:false,pattern:e}}return{dynamic:true,pattern:e,patternRe:s.pattern.makeRe(e,this._micromatchOptions)}}))}_splitSegmentsIntoSections(e){return s.array.splitWhen(e,(e=>e.dynamic&&s.pattern.hasGlobStar(e.pattern)))}}t.default=Matcher},5295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(2576);class PartialMatcher extends s.default{match(e){const t=e.split("/");const r=t.length;const s=this._storage.filter((e=>!e.complete||e.segments.length>r));for(const e of s){const s=e.sections[0];if(!e.complete&&r>s.length){return true}const n=t.every(((t,r)=>{const s=e.segments[r];if(s.dynamic&&s.patternRe.test(t)){return true}if(!s.dynamic&&s.pattern===t){return true}return false}));if(n){return true}}return false}}t.default=PartialMatcher},257:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(5622);const n=r(6983);const o=r(1343);const i=r(6654);const a=r(4029);class Provider{constructor(e){this._settings=e;this.errorFilter=new i.default(this._settings);this.entryFilter=new o.default(this._settings,this._getMicromatchOptions());this.deepFilter=new n.default(this._settings,this._getMicromatchOptions());this.entryTransformer=new a.default(this._settings)}_getRootDirectory(e){return s.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){const t=e.base==="."?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:true,strictSlashes:false}}}t.default=Provider},4630:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(2413);const n=r(2083);const o=r(257);class ProviderStream extends o.default{constructor(){super(...arguments);this._reader=new n.default(this._settings)}read(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const n=this.api(t,e,r);const o=new s.Readable({objectMode:true,read:()=>{}});n.once("error",(e=>o.emit("error",e))).on("data",(e=>o.emit("data",r.transform(e)))).once("end",(()=>o.emit("end")));o.once("close",(()=>n.destroy()));return o}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t.default=ProviderStream},2405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(8821);const n=r(257);class ProviderSync extends n.default{constructor(){super(...arguments);this._reader=new s.default(this._settings)}read(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const s=this.api(t,e,r);return s.map(r.transform)}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t.default=ProviderSync},4029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(5444);class EntryTransformer{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let t=e.path;if(this._settings.absolute){t=s.path.makeAbsolute(this._settings.cwd,t);t=s.path.unixify(t)}if(this._settings.markDirectories&&e.dirent.isDirectory()){t+="/"}if(!this._settings.objectMode){return t}return Object.assign(Object.assign({},e),{path:t})}}t.default=EntryTransformer},5582:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(5622);const n=r(109);const o=r(5444);class Reader{constructor(e){this._settings=e;this._fsStatSettings=new n.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return s.resolve(this._settings.cwd,e)}_makeEntry(e,t){const r={name:t,path:t,dirent:o.fs.createDirentFromStats(t,e)};if(this._settings.stats){r.stats=e}return r}_isFatalError(e){return!o.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}}t.default=Reader},2083:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(2413);const n=r(109);const o=r(6026);const i=r(5582);class ReaderStream extends i.default{constructor(){super(...arguments);this._walkStream=o.walkStream;this._stat=n.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){const r=e.map(this._getFullEntryPath,this);const n=new s.PassThrough({objectMode:true});n._write=(s,o,i)=>this._getEntry(r[s],e[s],t).then((e=>{if(e!==null&&t.entryFilter(e)){n.push(e)}if(s===r.length-1){n.end()}i()})).catch(i);for(let e=0;ethis._makeEntry(e,t))).catch((e=>{if(r.errorFilter(e)){return null}throw e}))}_getStat(e){return new Promise(((t,r)=>{this._stat(e,this._fsStatSettings,((e,s)=>e===null?t(s):r(e)))}))}}t.default=ReaderStream},8821:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(109);const n=r(6026);const o=r(5582);class ReaderSync extends o.default{constructor(){super(...arguments);this._walkSync=n.walkSync;this._statSync=s.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){const r=[];for(const s of e){const e=this._getFullEntryPath(s);const n=this._getEntry(e,s,t);if(n===null||!t.entryFilter(n)){continue}r.push(n)}return r}_getEntry(e,t,r){try{const r=this._getStat(e);return this._makeEntry(r,t)}catch(e){if(r.errorFilter(e)){return null}throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}t.default=ReaderSync},952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const s=r(5747);const n=r(2087);const o=Math.max(n.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:s.lstat,lstatSync:s.lstatSync,stat:s.stat,statSync:s.statSync,readdir:s.readdir,readdirSync:s.readdirSync};class Settings{constructor(e={}){this._options=e;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,o);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(e,t){return e===undefined?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),e)}}t.default=Settings},5325:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitWhen=t.flatten=void 0;function flatten(e){return e.reduce(((e,t)=>[].concat(e,t)),[])}t.flatten=flatten;function splitWhen(e,t){const r=[[]];let s=0;for(const n of e){if(t(n)){s++;r[s]=[]}else{r[s].push(n)}}return r}t.splitWhen=splitWhen},1230:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEnoentCodeError=void 0;function isEnoentCodeError(e){return e.code==="ENOENT"}t.isEnoentCodeError=isEnoentCodeError},7543:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDirentFromStats=void 0;class DirentFromStats{constructor(e,t){this.name=e;this.isBlockDevice=t.isBlockDevice.bind(t);this.isCharacterDevice=t.isCharacterDevice.bind(t);this.isDirectory=t.isDirectory.bind(t);this.isFIFO=t.isFIFO.bind(t);this.isFile=t.isFile.bind(t);this.isSocket=t.isSocket.bind(t);this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function createDirentFromStats(e,t){return new DirentFromStats(e,t)}t.createDirentFromStats=createDirentFromStats},5444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;const s=r(5325);t.array=s;const n=r(1230);t.errno=n;const o=r(7543);t.fs=o;const i=r(3873);t.path=i;const a=r(1221);t.pattern=a;const c=r(8382);t.stream=c;const u=r(2203);t.string=u},3873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.removeLeadingDotSegment=t.escape=t.makeAbsolute=t.unixify=void 0;const s=r(5622);const n=2;const o=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function unixify(e){return e.replace(/\\/g,"/")}t.unixify=unixify;function makeAbsolute(e,t){return s.resolve(e,t)}t.makeAbsolute=makeAbsolute;function escape(e){return e.replace(o,"\\$2")}t.escape=escape;function removeLeadingDotSegment(e){if(e.charAt(0)==="."){const t=e.charAt(1);if(t==="/"||t==="\\"){return e.slice(n)}}return e}t.removeLeadingDotSegment=removeLeadingDotSegment},1221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;const s=r(5622);const n=r(4655);const o=r(6228);const i=r(8569);const a="**";const c="\\";const u=/[*?]|^!/;const l=/\[.*]/;const p=/(?:^|[^!*+?@])\(.*\|.*\)/;const d=/[!*+?@]\(.*\)/;const g=/{.*(?:,|\.\.).*}/;function isStaticPattern(e,t={}){return!isDynamicPattern(e,t)}t.isStaticPattern=isStaticPattern;function isDynamicPattern(e,t={}){if(e===""){return false}if(t.caseSensitiveMatch===false||e.includes(c)){return true}if(u.test(e)||l.test(e)||p.test(e)){return true}if(t.extglob!==false&&d.test(e)){return true}if(t.braceExpansion!==false&&g.test(e)){return true}return false}t.isDynamicPattern=isDynamicPattern;function convertToPositivePattern(e){return isNegativePattern(e)?e.slice(1):e}t.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(e){return"!"+e}t.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(e){return e.startsWith("!")&&e[1]!=="("}t.isNegativePattern=isNegativePattern;function isPositivePattern(e){return!isNegativePattern(e)}t.isPositivePattern=isPositivePattern;function getNegativePatterns(e){return e.filter(isNegativePattern)}t.getNegativePatterns=getNegativePatterns;function getPositivePatterns(e){return e.filter(isPositivePattern)}t.getPositivePatterns=getPositivePatterns;function getBaseDirectory(e){return n(e,{flipBackslashes:false})}t.getBaseDirectory=getBaseDirectory;function hasGlobStar(e){return e.includes(a)}t.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(e){return e.endsWith("/"+a)}t.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(e){const t=s.basename(e);return endsWithSlashGlobStar(e)||isStaticPattern(t)}t.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function expandPatternsWithBraceExpansion(e){return e.reduce(((e,t)=>e.concat(expandBraceExpansion(t))),[])}t.expandPatternsWithBraceExpansion=expandPatternsWithBraceExpansion;function expandBraceExpansion(e){return o.braces(e,{expand:true,nodupes:true})}t.expandBraceExpansion=expandBraceExpansion;function getPatternParts(e,t){let{parts:r}=i.scan(e,Object.assign(Object.assign({},t),{parts:true}));if(r.length===0){r=[e]}if(r[0].startsWith("/")){r[0]=r[0].slice(1);r.unshift("")}return r}t.getPatternParts=getPatternParts;function makeRe(e,t){return o.makeRe(e,t)}t.makeRe=makeRe;function convertPatternsToRe(e,t){return e.map((e=>makeRe(e,t)))}t.convertPatternsToRe=convertPatternsToRe;function matchAny(e,t){return t.some((t=>t.test(e)))}t.matchAny=matchAny},8382:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.merge=void 0;const s=r(2578);function merge(e){const t=s(e);e.forEach((e=>{e.once("error",(e=>t.emit("error",e)))}));t.once("close",(()=>propagateCloseEventToSources(e)));t.once("end",(()=>propagateCloseEventToSources(e)));return t}t.merge=merge;function propagateCloseEventToSources(e){e.forEach((e=>e.emit("close")))}},2203:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmpty=t.isString=void 0;function isString(e){return typeof e==="string"}t.isString=isString;function isEmpty(e){return e===""}t.isEmpty=isEmpty},7340:(e,t,r)=>{"use strict";var s=r(2113);function fastqueue(e,t,r){if(typeof e==="function"){r=t;t=e;e=null}if(r<1){throw new Error("fastqueue concurrency must be greater than 1")}var n=s(Task);var o=null;var i=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 e=o;var t=0;while(e){e=e.next;t++}return t}function getQueue(){var e=o;var t=[];while(e){t.push(e.value);e=e.next}return t}function resume(){if(!u.paused)return;u.paused=false;for(var e=0;e{"use strict"; /*! * fill-range * * Copyright (c) 2014-present, Jon Schlinkert. * Licensed under the MIT License. - */const n=r(1669);const s=r(1861);const isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);const transform=e=>t=>e===true?Number(t):String(t);const isValidValue=e=>typeof e==="number"||typeof e==="string"&&e!=="";const isNumber=e=>Number.isInteger(+e);const zeros=e=>{let t=`${e}`;let r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return false;while(t[++r]==="0");return r>0};const stringify=(e,t,r)=>{if(typeof e==="string"||typeof t==="string"){return true}return r.stringify===true};const pad=(e,t,r)=>{if(t>0){let r=e[0]==="-"?"-":"";if(r)e=e.slice(1);e=r+e.padStart(r?t-1:t,"0")}if(r===false){return String(e)}return e};const toMaxLen=(e,t)=>{let r=e[0]==="-"?"-":"";if(r){e=e.slice(1);t--}while(e.length{e.negatives.sort(((e,t)=>et?1:0));e.positives.sort(((e,t)=>et?1:0));let r=t.capture?"":"?:";let n="";let s="";let i;if(e.positives.length){n=e.positives.join("|")}if(e.negatives.length){s=`-(${r}${e.negatives.join("|")})`}if(n&&s){i=`${n}|${s}`}else{i=n||s}if(t.wrap){return`(${r}${i})`}return i};const toRange=(e,t,r,n)=>{if(r){return s(e,t,{wrap:false,...n})}let i=String.fromCharCode(e);if(e===t)return i;let o=String.fromCharCode(t);return`[${i}-${o}]`};const toRegex=(e,t,r)=>{if(Array.isArray(e)){let t=r.wrap===true;let n=r.capture?"":"?:";return t?`(${n}${e.join("|")})`:e.join("|")}return s(e,t,r)};const rangeError=(...e)=>new RangeError("Invalid range arguments: "+n.inspect(...e));const invalidRange=(e,t,r)=>{if(r.strictRanges===true)throw rangeError([e,t]);return[]};const invalidStep=(e,t)=>{if(t.strictRanges===true){throw new TypeError(`Expected step "${e}" to be a number`)}return[]};const fillNumbers=(e,t,r=1,n={})=>{let s=Number(e);let i=Number(t);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===true)throw rangeError([e,t]);return[]}if(s===0)s=0;if(i===0)i=0;let o=s>i;let a=String(e);let u=String(t);let c=String(r);r=Math.max(Math.abs(r),1);let l=zeros(a)||zeros(u)||zeros(c);let p=l?Math.max(a.length,u.length,c.length):0;let f=l===false&&stringify(e,t,n)===false;let d=n.transform||transform(f);if(n.toRegex&&r===1){return toRange(toMaxLen(e,p),toMaxLen(t,p),true,n)}let h={negatives:[],positives:[]};let push=e=>h[e<0?"negatives":"positives"].push(Math.abs(e));let g=[];let m=0;while(o?s>=i:s<=i){if(n.toRegex===true&&r>1){push(s)}else{g.push(pad(d(s,m),p,f))}s=o?s-r:s+r;m++}if(n.toRegex===true){return r>1?toSequence(h,n):toRegex(g,null,{wrap:false,...n})}return g};const fillLetters=(e,t,r=1,n={})=>{if(!isNumber(e)&&e.length>1||!isNumber(t)&&t.length>1){return invalidRange(e,t,n)}let s=n.transform||(e=>String.fromCharCode(e));let i=`${e}`.charCodeAt(0);let o=`${t}`.charCodeAt(0);let a=i>o;let u=Math.min(i,o);let c=Math.max(i,o);if(n.toRegex&&r===1){return toRange(u,c,false,n)}let l=[];let p=0;while(a?i>=o:i<=o){l.push(s(i,p));i=a?i-r:i+r;p++}if(n.toRegex===true){return toRegex(l,null,{wrap:false,options:n})}return l};const fill=(e,t,r,n={})=>{if(t==null&&isValidValue(e)){return[e]}if(!isValidValue(e)||!isValidValue(t)){return invalidRange(e,t,n)}if(typeof r==="function"){return fill(e,t,1,{transform:r})}if(isObject(r)){return fill(e,t,0,r)}let s={...n};if(s.capture===true)s.wrap=true;r=r||s.step||1;if(!isNumber(r)){if(r!=null&&!isObject(r))return invalidStep(r,s);return fill(e,t,1,r)}if(isNumber(e)&&isNumber(t)){return fillNumbers(e,t,r,s)}return fillLetters(e,t,Math.max(Math.abs(r),1),s)};e.exports=fill},4655:(e,t,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;e.exports=function globParent(e,t){var r=Object.assign({flipBackslashes:true},t);if(r.flipBackslashes&&i&&e.indexOf(o)<0){e=e.replace(a,o)}if(u.test(e)){e+=o}e+="a";do{e=s(e)}while(n(e)||c.test(e));return e.replace(l,"$1")}},9038:(e,t,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 mapGitIgnorePatternTo=e=>t=>{if(t.startsWith("!")){return"!"+i.posix.join(e,t.slice(1))}return i.posix.join(e,t)};const parseGitIgnore=(e,t)=>{const r=u(i.relative(t.cwd,i.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter((e=>!e.startsWith("#"))).map(mapGitIgnorePatternTo(r))};const reduceIgnore=e=>{const t=a();for(const r of e){t.add(parseGitIgnore(r.content,{cwd:r.cwd,fileName:r.filePath}))}return t};const ensureAbsolutePathForCwd=(e,t)=>{e=u(e);if(i.isAbsolute(t)){if(t.startsWith(e)){return t}throw new Error(`Path ${t} is not in cwd ${e}`)}return i.join(e,t)};const getIsIgnoredPredecate=(e,t)=>r=>e.ignores(u(i.relative(t,ensureAbsolutePathForCwd(t,r.path||r))));const getFile=async(e,t)=>{const r=i.join(t,e);const n=await l(r,"utf8");return{cwd:t,filePath:r,content:n}};const getFileSync=(e,t)=>{const r=i.join(t,e);const n=s.readFileSync(r,"utf8");return{cwd:t,filePath:r,content:n}};const normalizeOptions=({ignore:e=[],cwd:t=u(process.cwd())}={})=>({ignore:e,cwd:t});e.exports=async e=>{e=normalizeOptions(e);const t=await o("**/.gitignore",{ignore:c.concat(e.ignore),cwd:e.cwd});const r=await Promise.all(t.map((t=>getFile(t,e.cwd))));const n=reduceIgnore(r);return getIsIgnoredPredecate(n,e.cwd)};e.exports.sync=e=>{e=normalizeOptions(e);const t=o.sync("**/.gitignore",{ignore:c.concat(e.ignore),cwd:e.cwd});const r=t.map((t=>getFileSync(t,e.cwd)));const n=reduceIgnore(r);return getIsIgnoredPredecate(n,e.cwd)}},3398:(e,t,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 DEFAULT_FILTER=()=>false;const isNegative=e=>e[0]==="!";const assertPatternsInput=e=>{if(!e.every((e=>typeof e==="string"))){throw new TypeError("Patterns must be a string or an array of strings")}};const checkCwdOption=(e={})=>{if(!e.cwd){return}let t;try{t=n.statSync(e.cwd)}catch{return}if(!t.isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const getPathString=e=>e.stats instanceof n.Stats?e.path:e;const generateGlobTasks=(e,t)=>{e=s([].concat(e));assertPatternsInput(e);checkCwdOption(t);const r=[];t={ignore:[],expandDirectories:true,...t};for(const[n,s]of e.entries()){if(isNegative(s)){continue}const i=e.slice(n).filter((e=>isNegative(e))).map((e=>e.slice(1)));const o={...t,ignore:t.ignore.concat(i)};r.push({pattern:s,options:o})}return r};const globDirs=(e,t)=>{let r={};if(e.options.cwd){r.cwd=e.options.cwd}if(Array.isArray(e.options.expandDirectories)){r={...r,files:e.options.expandDirectories}}else if(typeof e.options.expandDirectories==="object"){r={...r,...e.options.expandDirectories}}return t(e.pattern,r)};const getPattern=(e,t)=>e.options.expandDirectories?globDirs(e,t):[e.pattern];const getFilterSync=e=>e&&e.gitignore?u.sync({cwd:e.cwd,ignore:e.ignore}):DEFAULT_FILTER;const globToTask=e=>t=>{const{options:r}=e;if(r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories){r.ignore=a.sync(r.ignore)}return{pattern:t,options:r}};e.exports=async(e,t)=>{const r=generateGlobTasks(e,t);const getFilter=async()=>t&&t.gitignore?u({cwd:t.cwd,ignore:t.ignore}):DEFAULT_FILTER;const getTasks=async()=>{const e=await Promise.all(r.map((async e=>{const t=await getPattern(e,a);return Promise.all(t.map(globToTask(e)))})));return s(...e)};const[n,i]=await Promise.all([getFilter(),getTasks()]);const c=await Promise.all(i.map((e=>o(e.pattern,e.options))));return s(...c).filter((e=>!n(getPathString(e))))};e.exports.sync=(e,t)=>{const r=generateGlobTasks(e,t);const n=[];for(const e of r){const t=getPattern(e,a.sync).map(globToTask(e));n.push(...t)}const i=getFilterSync(t);let u=[];for(const e of n){u=s(u,o.sync(e.pattern,e.options))}return u.filter((e=>!i(e)))};e.exports.stream=(e,t)=>{const r=generateGlobTasks(e,t);const n=[];for(const e of r){const t=getPattern(e,a.sync).map(globToTask(e));n.push(...t)}const s=getFilterSync(t);const u=new c((e=>!s(e)));const p=new l;return i(n.map((e=>o.stream(e.pattern,e.options)))).pipe(u).pipe(p)};e.exports.generateGlobTasks=generateGlobTasks;e.exports.hasMagic=(e,t)=>[].concat(e).some((e=>o.isDynamicPattern(e,t)));e.exports.gitignore=u},2408:(e,t,r)=>{"use strict";const{Transform:n}=r(2413);class ObjectTransform extends n{constructor(){super({objectMode:true})}}class FilterStream extends ObjectTransform{constructor(e){super();this._filter=e}_transform(e,t,r){if(this._filter(e)){this.push(e)}r()}}class UniqueStream extends ObjectTransform{constructor(){super();this._pushed=new Set}_transform(e,t,r){if(!this._pushed.has(e)){this.push(e);this._pushed.add(e)}r()}}e.exports={FilterStream:FilterStream,UniqueStream:UniqueStream}},1621:e=>{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const s=t.indexOf("--");return n!==-1&&(s===-1||n{function makeArray(e){return Array.isArray(e)?e:[e]}const t="";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 define=(e,t,r)=>Object.defineProperty(e,t,{value:r});const p=/([0-z])-([0-z])/g;const sanitizeRange=e=>e.replace(p,((e,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?e:t));const cleanRangeBackSlash=e=>{const{length:t}=e;return e.slice(0,t-t%2)};const f=[[/\\?\s+$/,e=>e.indexOf("\\")===0?r:t],[/\\\s/g,()=>r],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6`${t}[^\\/]*`],[/\\\\\\(?=[$.|*+(){^])/g,()=>n],[/\\\\/g,()=>n],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,s,i)=>t===n?`\\[${r}${cleanRangeBackSlash(s)}${i}`:i==="]"?s.length%2===0?`[${sanitizeRange(r)}${s}]`:"[]":"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>{const r=t?`${t}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`}]];const d=Object.create(null);const makeRegex=(e,t,r)=>{const n=d[e];if(n){return n}const s=f.reduce(((t,r)=>t.replace(r[0],r[1].bind(e))),e);return d[e]=r?new RegExp(s,"i"):new RegExp(s)};const isString=e=>typeof e==="string";const checkPattern=e=>e&&isString(e)&&!s.test(e)&&e.indexOf("#")!==0;const splitPattern=e=>e.split(a);class IgnoreRule{constructor(e,t,r,n){this.origin=e;this.pattern=t;this.negative=r;this.regex=n}}const createRule=(e,t)=>{const r=e;let n=false;if(e.indexOf("!")===0){n=true;e=e.substr(1)}e=e.replace(i,"!").replace(o,"#");const s=makeRegex(e,n,t);return new IgnoreRule(r,e,n,s)};const throwError=(e,t)=>{throw new t(e)};const checkPath=(e,t,r)=>{if(!isString(e)){return r(`path must be a string, but got \`${t}\``,TypeError)}if(!e){return r(`path must not be empty`,TypeError)}if(checkPath.isNotRelative(e)){const e="`path.relative()`d";return r(`path should be a ${e} string, but got "${t}"`,RangeError)}return true};const isNotRelative=e=>u.test(e);checkPath.isNotRelative=isNotRelative;checkPath.convert=e=>e;class Ignore{constructor({ignorecase:e=true}={}){this._rules=[];this._ignorecase=e;define(this,l,true);this._initCache()}_initCache(){this._ignoreCache=Object.create(null);this._testCache=Object.create(null)}_addPattern(e){if(e&&e[l]){this._rules=this._rules.concat(e._rules);this._added=true;return}if(checkPattern(e)){const t=createRule(e,this._ignorecase);this._added=true;this._rules.push(t)}}add(e){this._added=false;makeArray(isString(e)?splitPattern(e):e).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(e){return this.add(e)}_testOne(e,t){let r=false;let n=false;this._rules.forEach((s=>{const{negative:i}=s;if(n===i&&r!==n||i&&!r&&!n&&!t){return}const o=s.regex.test(e);if(o){r=!i;n=i}}));return{ignored:r,unignored:n}}_test(e,t,r,n){const s=e&&checkPath.convert(e);checkPath(s,e,throwError);return this._t(s,t,r,n)}_t(e,t,r,n){if(e in t){return t[e]}if(!n){n=e.split(c)}n.pop();if(!n.length){return t[e]=this._testOne(e,r)}const s=this._t(n.join(c)+c,t,r,n);return t[e]=s.ignored?s:this._testOne(e,r)}ignores(e){return this._test(e,this._ignoreCache,false).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return makeArray(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,true)}}const factory=e=>new Ignore(e);const returnFalse=()=>false;const isPathValid=e=>checkPath(e&&checkPath.convert(e),e,returnFalse);factory.isPathValid=isPathValid;factory.default=factory;e.exports=factory;if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const makePosix=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");checkPath.convert=makePosix;const e=/^[a-z]:\//i;checkPath.isNotRelative=t=>e.test(t)||isNotRelative(t)}},6435:e=>{ + */const s=r(1669);const n=r(1861);const isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);const transform=e=>t=>e===true?Number(t):String(t);const isValidValue=e=>typeof e==="number"||typeof e==="string"&&e!=="";const isNumber=e=>Number.isInteger(+e);const zeros=e=>{let t=`${e}`;let r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return false;while(t[++r]==="0");return r>0};const stringify=(e,t,r)=>{if(typeof e==="string"||typeof t==="string"){return true}return r.stringify===true};const pad=(e,t,r)=>{if(t>0){let r=e[0]==="-"?"-":"";if(r)e=e.slice(1);e=r+e.padStart(r?t-1:t,"0")}if(r===false){return String(e)}return e};const toMaxLen=(e,t)=>{let r=e[0]==="-"?"-":"";if(r){e=e.slice(1);t--}while(e.length{e.negatives.sort(((e,t)=>et?1:0));e.positives.sort(((e,t)=>et?1:0));let r=t.capture?"":"?:";let s="";let n="";let o;if(e.positives.length){s=e.positives.join("|")}if(e.negatives.length){n=`-(${r}${e.negatives.join("|")})`}if(s&&n){o=`${s}|${n}`}else{o=s||n}if(t.wrap){return`(${r}${o})`}return o};const toRange=(e,t,r,s)=>{if(r){return n(e,t,{wrap:false,...s})}let o=String.fromCharCode(e);if(e===t)return o;let i=String.fromCharCode(t);return`[${o}-${i}]`};const toRegex=(e,t,r)=>{if(Array.isArray(e)){let t=r.wrap===true;let s=r.capture?"":"?:";return t?`(${s}${e.join("|")})`:e.join("|")}return n(e,t,r)};const rangeError=(...e)=>new RangeError("Invalid range arguments: "+s.inspect(...e));const invalidRange=(e,t,r)=>{if(r.strictRanges===true)throw rangeError([e,t]);return[]};const invalidStep=(e,t)=>{if(t.strictRanges===true){throw new TypeError(`Expected step "${e}" to be a number`)}return[]};const fillNumbers=(e,t,r=1,s={})=>{let n=Number(e);let o=Number(t);if(!Number.isInteger(n)||!Number.isInteger(o)){if(s.strictRanges===true)throw rangeError([e,t]);return[]}if(n===0)n=0;if(o===0)o=0;let i=n>o;let a=String(e);let c=String(t);let u=String(r);r=Math.max(Math.abs(r),1);let l=zeros(a)||zeros(c)||zeros(u);let p=l?Math.max(a.length,c.length,u.length):0;let d=l===false&&stringify(e,t,s)===false;let g=s.transform||transform(d);if(s.toRegex&&r===1){return toRange(toMaxLen(e,p),toMaxLen(t,p),true,s)}let h={negatives:[],positives:[]};let push=e=>h[e<0?"negatives":"positives"].push(Math.abs(e));let m=[];let y=0;while(i?n>=o:n<=o){if(s.toRegex===true&&r>1){push(n)}else{m.push(pad(g(n,y),p,d))}n=i?n-r:n+r;y++}if(s.toRegex===true){return r>1?toSequence(h,s):toRegex(m,null,{wrap:false,...s})}return m};const fillLetters=(e,t,r=1,s={})=>{if(!isNumber(e)&&e.length>1||!isNumber(t)&&t.length>1){return invalidRange(e,t,s)}let n=s.transform||(e=>String.fromCharCode(e));let o=`${e}`.charCodeAt(0);let i=`${t}`.charCodeAt(0);let a=o>i;let c=Math.min(o,i);let u=Math.max(o,i);if(s.toRegex&&r===1){return toRange(c,u,false,s)}let l=[];let p=0;while(a?o>=i:o<=i){l.push(n(o,p));o=a?o-r:o+r;p++}if(s.toRegex===true){return toRegex(l,null,{wrap:false,options:s})}return l};const fill=(e,t,r,s={})=>{if(t==null&&isValidValue(e)){return[e]}if(!isValidValue(e)||!isValidValue(t)){return invalidRange(e,t,s)}if(typeof r==="function"){return fill(e,t,1,{transform:r})}if(isObject(r)){return fill(e,t,0,r)}let n={...s};if(n.capture===true)n.wrap=true;r=r||n.step||1;if(!isNumber(r)){if(r!=null&&!isObject(r))return invalidStep(r,n);return fill(e,t,1,r)}if(isNumber(e)&&isNumber(t)){return fillNumbers(e,t,r,n)}return fillLetters(e,t,Math.max(Math.abs(r),1),n)};e.exports=fill},4655:(e,t,r)=>{"use strict";var s=r(4466);var n=r(5622).posix.dirname;var o=r(2087).platform()==="win32";var i="/";var a=/\\/g;var c=/[\{\[].*[\}\]]$/;var u=/(^|[^\\])([\{\[]|\([^\)]+$)/;var l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function globParent(e,t){var r=Object.assign({flipBackslashes:true},t);if(r.flipBackslashes&&o&&e.indexOf(i)<0){e=e.replace(a,i)}if(c.test(e)){e+=i}e+="a";do{e=n(e)}while(s(e)||u.test(e));return e.replace(l,"$1")}},9038:(e,t,r)=>{"use strict";const{promisify:s}=r(1669);const n=r(5747);const o=r(5622);const i=r(3664);const a=r(4777);const c=r(4111);const u=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"];const l=s(n.readFile);const mapGitIgnorePatternTo=e=>t=>{if(t.startsWith("!")){return"!"+o.posix.join(e,t.slice(1))}return o.posix.join(e,t)};const parseGitIgnore=(e,t)=>{const r=c(o.relative(t.cwd,o.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter((e=>!e.startsWith("#"))).map(mapGitIgnorePatternTo(r))};const reduceIgnore=e=>{const t=a();for(const r of e){t.add(parseGitIgnore(r.content,{cwd:r.cwd,fileName:r.filePath}))}return t};const ensureAbsolutePathForCwd=(e,t)=>{e=c(e);if(o.isAbsolute(t)){if(t.startsWith(e)){return t}throw new Error(`Path ${t} is not in cwd ${e}`)}return o.join(e,t)};const getIsIgnoredPredecate=(e,t)=>r=>e.ignores(c(o.relative(t,ensureAbsolutePathForCwd(t,r.path||r))));const getFile=async(e,t)=>{const r=o.join(t,e);const s=await l(r,"utf8");return{cwd:t,filePath:r,content:s}};const getFileSync=(e,t)=>{const r=o.join(t,e);const s=n.readFileSync(r,"utf8");return{cwd:t,filePath:r,content:s}};const normalizeOptions=({ignore:e=[],cwd:t=c(process.cwd())}={})=>({ignore:e,cwd:t});e.exports=async e=>{e=normalizeOptions(e);const t=await i("**/.gitignore",{ignore:u.concat(e.ignore),cwd:e.cwd});const r=await Promise.all(t.map((t=>getFile(t,e.cwd))));const s=reduceIgnore(r);return getIsIgnoredPredecate(s,e.cwd)};e.exports.sync=e=>{e=normalizeOptions(e);const t=i.sync("**/.gitignore",{ignore:u.concat(e.ignore),cwd:e.cwd});const r=t.map((t=>getFileSync(t,e.cwd)));const s=reduceIgnore(r);return getIsIgnoredPredecate(s,e.cwd)}},3398:(e,t,r)=>{"use strict";const s=r(5747);const n=r(9600);const o=r(2578);const i=r(3664);const a=r(2738);const c=r(9038);const{FilterStream:u,UniqueStream:l}=r(2408);const DEFAULT_FILTER=()=>false;const isNegative=e=>e[0]==="!";const assertPatternsInput=e=>{if(!e.every((e=>typeof e==="string"))){throw new TypeError("Patterns must be a string or an array of strings")}};const checkCwdOption=(e={})=>{if(!e.cwd){return}let t;try{t=s.statSync(e.cwd)}catch{return}if(!t.isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const getPathString=e=>e.stats instanceof s.Stats?e.path:e;const generateGlobTasks=(e,t)=>{e=n([].concat(e));assertPatternsInput(e);checkCwdOption(t);const r=[];t={ignore:[],expandDirectories:true,...t};for(const[s,n]of e.entries()){if(isNegative(n)){continue}const o=e.slice(s).filter((e=>isNegative(e))).map((e=>e.slice(1)));const i={...t,ignore:t.ignore.concat(o)};r.push({pattern:n,options:i})}return r};const globDirs=(e,t)=>{let r={};if(e.options.cwd){r.cwd=e.options.cwd}if(Array.isArray(e.options.expandDirectories)){r={...r,files:e.options.expandDirectories}}else if(typeof e.options.expandDirectories==="object"){r={...r,...e.options.expandDirectories}}return t(e.pattern,r)};const getPattern=(e,t)=>e.options.expandDirectories?globDirs(e,t):[e.pattern];const getFilterSync=e=>e&&e.gitignore?c.sync({cwd:e.cwd,ignore:e.ignore}):DEFAULT_FILTER;const globToTask=e=>t=>{const{options:r}=e;if(r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories){r.ignore=a.sync(r.ignore)}return{pattern:t,options:r}};e.exports=async(e,t)=>{const r=generateGlobTasks(e,t);const getFilter=async()=>t&&t.gitignore?c({cwd:t.cwd,ignore:t.ignore}):DEFAULT_FILTER;const getTasks=async()=>{const e=await Promise.all(r.map((async e=>{const t=await getPattern(e,a);return Promise.all(t.map(globToTask(e)))})));return n(...e)};const[s,o]=await Promise.all([getFilter(),getTasks()]);const u=await Promise.all(o.map((e=>i(e.pattern,e.options))));return n(...u).filter((e=>!s(getPathString(e))))};e.exports.sync=(e,t)=>{const r=generateGlobTasks(e,t);const s=[];for(const e of r){const t=getPattern(e,a.sync).map(globToTask(e));s.push(...t)}const o=getFilterSync(t);let c=[];for(const e of s){c=n(c,i.sync(e.pattern,e.options))}return c.filter((e=>!o(e)))};e.exports.stream=(e,t)=>{const r=generateGlobTasks(e,t);const s=[];for(const e of r){const t=getPattern(e,a.sync).map(globToTask(e));s.push(...t)}const n=getFilterSync(t);const c=new u((e=>!n(e)));const p=new l;return o(s.map((e=>i.stream(e.pattern,e.options)))).pipe(c).pipe(p)};e.exports.generateGlobTasks=generateGlobTasks;e.exports.hasMagic=(e,t)=>[].concat(e).some((e=>i.isDynamicPattern(e,t)));e.exports.gitignore=c},2408:(e,t,r)=>{"use strict";const{Transform:s}=r(2413);class ObjectTransform extends s{constructor(){super({objectMode:true})}}class FilterStream extends ObjectTransform{constructor(e){super();this._filter=e}_transform(e,t,r){if(this._filter(e)){this.push(e)}r()}}class UniqueStream extends ObjectTransform{constructor(){super();this._pushed=new Set}_transform(e,t,r){if(!this._pushed.has(e)){this.push(e);this._pushed.add(e)}r()}}e.exports={FilterStream:FilterStream,UniqueStream:UniqueStream}},1621:e=>{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const s=t.indexOf(r+e);const n=t.indexOf("--");return s!==-1&&(n===-1||s{function makeArray(e){return Array.isArray(e)?e:[e]}const t="";const r=" ";const s="\\";const n=/^\s+$/;const o=/^\\!/;const i=/^\\#/;const a=/\r?\n/g;const c=/^\.*\/|^\.+$/;const u="/";const l=typeof Symbol!=="undefined"?Symbol.for("node-ignore"):"node-ignore";const define=(e,t,r)=>Object.defineProperty(e,t,{value:r});const p=/([0-z])-([0-z])/g;const sanitizeRange=e=>e.replace(p,((e,r,s)=>r.charCodeAt(0)<=s.charCodeAt(0)?e:t));const cleanRangeBackSlash=e=>{const{length:t}=e;return e.slice(0,t-t%2)};const d=[[/\\?\s+$/,e=>e.indexOf("\\")===0?r:t],[/\\\s/g,()=>r],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6`${t}[^\\/]*`],[/\\\\\\(?=[$.|*+(){^])/g,()=>s],[/\\\\/g,()=>s],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,o)=>t===s?`\\[${r}${cleanRangeBackSlash(n)}${o}`:o==="]"?n.length%2===0?`[${sanitizeRange(r)}${n}]`:"[]":"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>{const r=t?`${t}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`}]];const g=Object.create(null);const makeRegex=(e,t,r)=>{const s=g[e];if(s){return s}const n=d.reduce(((t,r)=>t.replace(r[0],r[1].bind(e))),e);return g[e]=r?new RegExp(n,"i"):new RegExp(n)};const isString=e=>typeof e==="string";const checkPattern=e=>e&&isString(e)&&!n.test(e)&&e.indexOf("#")!==0;const splitPattern=e=>e.split(a);class IgnoreRule{constructor(e,t,r,s){this.origin=e;this.pattern=t;this.negative=r;this.regex=s}}const createRule=(e,t)=>{const r=e;let s=false;if(e.indexOf("!")===0){s=true;e=e.substr(1)}e=e.replace(o,"!").replace(i,"#");const n=makeRegex(e,s,t);return new IgnoreRule(r,e,s,n)};const throwError=(e,t)=>{throw new t(e)};const checkPath=(e,t,r)=>{if(!isString(e)){return r(`path must be a string, but got \`${t}\``,TypeError)}if(!e){return r(`path must not be empty`,TypeError)}if(checkPath.isNotRelative(e)){const e="`path.relative()`d";return r(`path should be a ${e} string, but got "${t}"`,RangeError)}return true};const isNotRelative=e=>c.test(e);checkPath.isNotRelative=isNotRelative;checkPath.convert=e=>e;class Ignore{constructor({ignorecase:e=true}={}){this._rules=[];this._ignorecase=e;define(this,l,true);this._initCache()}_initCache(){this._ignoreCache=Object.create(null);this._testCache=Object.create(null)}_addPattern(e){if(e&&e[l]){this._rules=this._rules.concat(e._rules);this._added=true;return}if(checkPattern(e)){const t=createRule(e,this._ignorecase);this._added=true;this._rules.push(t)}}add(e){this._added=false;makeArray(isString(e)?splitPattern(e):e).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(e){return this.add(e)}_testOne(e,t){let r=false;let s=false;this._rules.forEach((n=>{const{negative:o}=n;if(s===o&&r!==s||o&&!r&&!s&&!t){return}const i=n.regex.test(e);if(i){r=!o;s=o}}));return{ignored:r,unignored:s}}_test(e,t,r,s){const n=e&&checkPath.convert(e);checkPath(n,e,throwError);return this._t(n,t,r,s)}_t(e,t,r,s){if(e in t){return t[e]}if(!s){s=e.split(u)}s.pop();if(!s.length){return t[e]=this._testOne(e,r)}const n=this._t(s.join(u)+u,t,r,s);return t[e]=n.ignored?n:this._testOne(e,r)}ignores(e){return this._test(e,this._ignoreCache,false).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return makeArray(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,true)}}const factory=e=>new Ignore(e);const returnFalse=()=>false;const isPathValid=e=>checkPath(e&&checkPath.convert(e),e,returnFalse);factory.isPathValid=isPathValid;factory.default=factory;e.exports=factory;if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const makePosix=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");checkPath.convert=makePosix;const e=/^[a-z]:\//i;checkPath.isNotRelative=t=>e.test(t)||isNotRelative(t)}},6435:e=>{ /*! * is-extglob * @@ -18,23 +30,23 @@ e.exports=function isExtglob(e){if(typeof e!=="string"||e===""){return false}var * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ -var n=r(6435);var s={"{":"}","(":")","[":"]"};var i=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;var o=/\\(.)|(^!|[*?{}()[\]]|\(\?)/;e.exports=function isGlob(e,t){if(typeof e!=="string"||e===""){return false}if(n(e)){return true}var r=i;var a;if(t&&t.strict===false){r=o}while(a=r.exec(e)){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 p=e.indexOf(l,u);if(p!==-1){u=p+1}}e=e.slice(u)}return false}},5680:e=>{"use strict"; +var s=r(6435);var n={"{":"}","(":")","[":"]"};var o=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;var i=/\\(.)|(^!|[*?{}()[\]]|\(\?)/;e.exports=function isGlob(e,t){if(typeof e!=="string"||e===""){return false}if(s(e)){return true}var r=o;var a;if(t&&t.strict===false){r=i}while(a=r.exec(e)){if(a[2])return true;var c=a.index+a[0].length;var u=a[1];var l=u?n[u]:null;if(u&&l){var p=e.indexOf(l,c);if(p!==-1){c=p+1}}e=e.slice(c)}return false}},5680:e=>{"use strict"; /*! * is-number * * Copyright (c) 2014-present, Jon Schlinkert. * Released under the MIT License. - */e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},2578:(e,t,r)=>{"use strict";const n=r(2413);const s=n.PassThrough;const i=Array.prototype.slice;e.exports=merge2;function merge2(){const e=[];const t=i.call(arguments);let r=false;let n=t[t.length-1];if(n&&!Array.isArray(n)&&n.pipe==null){t.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 t=0,r=arguments.length;t0){return}r=false;mergeStream()}function pipe(e){function onend(){e.removeListener("merge2UnpipeEnd",onend);e.removeListener("end",onend);if(a){e.removeListener("error",onerror)}next()}function onerror(e){u.emit("error",e)}if(e._readableState.endEmitted){return next()}e.on("merge2UnpipeEnd",onend);e.on("end",onend);if(a){e.on("error",onerror)}e.pipe(u,{end:false});e.resume()}for(let e=0;e{"use strict";const n=r(1669);const s=r(610);const i=r(8569);const o=r(479);const isEmptyString=e=>typeof e==="string"&&(e===""||e==="./");const micromatch=(e,t,r)=>{t=[].concat(t);e=[].concat(e);let n=new Set;let s=new Set;let o=new Set;let a=0;let onResult=e=>{o.add(e.output);if(r&&r.onResult){r.onResult(e)}};for(let o=0;o!n.has(e)));if(r&&c.length===0){if(r.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?t.map((e=>e.replace(/\\/g,""))):t}}return c};micromatch.match=micromatch;micromatch.matcher=(e,t)=>i(e,t);micromatch.isMatch=(e,t,r)=>i(t,r)(e);micromatch.any=micromatch.isMatch;micromatch.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set;let s=[];let onResult=e=>{if(r.onResult)r.onResult(e);s.push(e.output)};let i=micromatch(e,t,{...r,onResult:onResult});for(let e of s){if(!i.includes(e)){n.add(e)}}return[...n]};micromatch.contains=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${n.inspect(e)}"`)}if(Array.isArray(t)){return t.some((t=>micromatch.contains(e,t,r)))}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return micromatch.isMatch(e,t,{...r,contains:true})};micromatch.matchKeys=(e,t,r)=>{if(!o.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let n=micromatch(Object.keys(e),t,r);let s={};for(let t of n)s[t]=e[t];return s};micromatch.some=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=i(String(e),r);if(n.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=i(String(e),r);if(!n.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${n.inspect(e)}"`)}return[].concat(t).every((t=>i(t,r)(e)))};micromatch.capture=(e,t,r)=>{let n=o.isWindows(r);let s=i.makeRe(String(e),{...r,capture:true});let a=s.exec(n?o.toPosixSlashes(t):t);if(a){return a.slice(1).map((e=>e===void 0?"":e))}};micromatch.makeRe=(...e)=>i.makeRe(...e);micromatch.scan=(...e)=>i.scan(...e);micromatch.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[])){for(let e of s(String(n),t)){r.push(i.parse(e,t))}}return r};micromatch.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return s(e,t)};micromatch.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:true})};e.exports=micromatch},900:e=>{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var i=s*7;var o=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.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(e);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*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var i=Math.abs(e);if(i>=s){return Math.round(e/s)+"d"}if(i>=n){return Math.round(e/n)+"h"}if(i>=r){return Math.round(e/r)+"m"}if(i>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var i=Math.abs(e);if(i>=s){return plural(e,i,s,"day")}if(i>=n){return plural(e,i,n,"hour")}if(i>=r){return plural(e,i,r,"minute")}if(i>=t){return plural(e,i,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},3433:(e,t,r)=>{"use strict";const{promisify:n}=r(1669);const s=r(5747);async function isType(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{const i=await n(s[e])(r);return i[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}function isTypeSync(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{return s[e](r)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.isFile=isType.bind(null,"stat","isFile");t.isDirectory=isType.bind(null,"stat","isDirectory");t.isSymlink=isType.bind(null,"lstat","isSymbolicLink");t.isFileSync=isTypeSync.bind(null,"statSync","isFile");t.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");t.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},8569:(e,t,r)=>{"use strict";e.exports=r(3322)},6099:(e,t,r)=>{"use strict";const n=r(5622);const s="\\\\/";const i=`[^${s}]`;const o="\\.";const a="\\+";const u="\\?";const c="\\/";const l="(?=.)";const p="[^/]";const f=`(?:${c}|$)`;const d=`(?:^|${c})`;const h=`${o}{1,2}${f}`;const g=`(?!${o})`;const m=`(?!${d}${h})`;const y=`(?!${o}{0,1}${f})`;const _=`(?!${h})`;const b=`[^.${c}]`;const S=`${p}*?`;const v={DOT_LITERAL:o,PLUS_LITERAL:a,QMARK_LITERAL:u,SLASH_LITERAL:c,ONE_CHAR:l,QMARK:p,END_ANCHOR:f,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 E={...v,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"};e.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(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?E:v}}},2139:(e,t,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 expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>s.escapeRegex(e))).join("..")}return r};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=c[e]||e;const r={...t};const l=typeof r.maxLength==="number"?Math.min(i,r.maxLength):i;let p=e.length;if(p>l){throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${l}`)}const f={type:"bos",value:"",output:r.prepend||""};const d=[f];const h=r.capture?"":"?:";const g=s.isWindows(t);const m=n.globChars(g);const y=n.extglobChars(m);const{DOT_LITERAL:_,PLUS_LITERAL:b,SLASH_LITERAL:S,ONE_CHAR:v,DOTS_SLASH:E,NO_DOT:T,NO_DOT_SLASH:k,NO_DOTS_SLASH:R,QMARK:C,QMARK_NO_DOT:P,STAR:A,START_ANCHOR:O}=m;const globstar=e=>`(${h}(?:(?!${O}${e.dot?E:_}).)*?)`;const w=r.dot?"":T;const x=r.dot?C:P;let M=r.bash===true?globstar(r):A;if(r.capture){M=`(${M})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const D={input:e,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:d};e=s.removePrefix(e,D);p=e.length;const L=[];const F=[];const j=[];let I=f;let N;const eos=()=>D.index===p-1;const $=D.peek=(t=1)=>e[D.index+t];const G=D.advance=()=>e[++D.index];const remaining=()=>e.slice(D.index+1);const consume=(e="",t=0)=>{D.consumed+=e;D.index+=t};const append=e=>{D.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while($()==="!"&&($(2)!=="("||$(3)==="?")){G();D.start++;e++}if(e%2===0){return false}D.negated=true;D.start++;return true};const increment=e=>{D[e]++;j.push(e)};const decrement=e=>{D[e]--;j.pop()};const push=e=>{if(I.type==="globstar"){const t=D.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||L.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){D.output=D.output.slice(0,-I.output.length);I.type="star";I.value="*";I.output=M;D.output+=I.output}}if(L.length&&e.type!=="paren"&&!y[e.value]){L[L.length-1].inner+=e.value}if(e.value||e.output)append(e);if(I&&I.type==="text"&&e.type==="text"){I.value+=e.value;I.output=(I.output||"")+e.value;return}e.prev=I;d.push(e);I=e};const extglobOpen=(e,t)=>{const n={...y[t],conditions:1,inner:""};n.prev=I;n.parens=D.parens;n.output=D.output;const s=(r.capture?"(":"")+n.open;increment("parens");push({type:e,value:t,output:D.output?"":v});push({type:"paren",extglob:true,value:G(),output:s});L.push(n)};const extglobClose=e=>{let t=e.close+(r.capture?")":"");if(e.type==="negate"){let n=M;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){n=globstar(r)}if(n!==M||eos()||/^\)+$/.test(remaining())){t=e.close=`)$))${n}`}if(e.prev.type==="bos"&&eos()){D.negatedExtglob=true}}push({type:"paren",extglob:true,value:N,output:t});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=false;let i=e.replace(u,((e,t,r,s,i,o)=>{if(s==="\\"){n=true;return e}if(s==="?"){if(t){return t+s+(i?C.repeat(i.length):"")}if(o===0){return x+(i?C.repeat(i.length):"")}return C.repeat(r.length)}if(s==="."){return _.repeat(r.length)}if(s==="*"){if(t){return t+s+(i?M:"")}return M}return t?e:`\\${e}`}));if(n===true){if(r.unescape===true){i=i.replace(/\\/g,"")}else{i=i.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(i===e&&r.contains===true){D.output=e;return D}D.output=s.wrapOutput(i,D,t);return D}while(!eos()){N=G();if(N==="\0"){continue}if(N==="\\"){const e=$();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){N+="\\";push({type:"text",value:N});continue}const t=/^\\+/.exec(remaining());let n=0;if(t&&t[0].length>2){n=t[0].length;D.index+=n;if(n%2!==0){N+="\\"}}if(r.unescape===true){N=G()||""}else{N+=G()||""}if(D.brackets===0){push({type:"text",value:N});continue}}if(D.brackets>0&&(N!=="]"||I.value==="["||I.value==="[^")){if(r.posix!==false&&N===":"){const e=I.value.slice(1);if(e.includes("[")){I.posix=true;if(e.includes(":")){const e=I.value.lastIndexOf("[");const t=I.value.slice(0,e);const r=I.value.slice(e+2);const n=o[r];if(n){I.value=t+n;D.backtrack=true;G();if(!f.output&&d.indexOf(I)===1){f.output=v}continue}}}}if(N==="["&&$()!==":"||N==="-"&&$()==="]"){N=`\\${N}`}if(N==="]"&&(I.value==="["||I.value==="[^")){N=`\\${N}`}if(r.posix===true&&N==="!"&&I.value==="["){N="^"}I.value+=N;append({value:N});continue}if(D.quotes===1&&N!=='"'){N=s.escapeRegex(N);I.value+=N;append({value:N});continue}if(N==='"'){D.quotes=D.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:N})}continue}if(N==="("){increment("parens");push({type:"paren",value:N});continue}if(N===")"){if(D.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=L[L.length-1];if(e&&D.parens===e.parens+1){extglobClose(L.pop());continue}push({type:"paren",value:N,output:D.parens?")":"\\)"});decrement("parens");continue}if(N==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}N=`\\${N}`}else{increment("brackets")}push({type:"bracket",value:N});continue}if(N==="]"){if(r.nobracket===true||I&&I.type==="bracket"&&I.value.length===1){push({type:"text",value:N,output:`\\${N}`});continue}if(D.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:N,output:`\\${N}`});continue}decrement("brackets");const e=I.value.slice(1);if(I.posix!==true&&e[0]==="^"&&!e.includes("/")){N=`/${N}`}I.value+=N;append({value:N});if(r.literalBrackets===false||s.hasRegexChars(e)){continue}const t=s.escapeRegex(I.value);D.output=D.output.slice(0,-I.value.length);if(r.literalBrackets===true){D.output+=t;I.value=t;continue}I.value=`(${h}${t}|${I.value})`;D.output+=I.value;continue}if(N==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:N,output:"(",outputIndex:D.output.length,tokensIndex:D.tokens.length};F.push(e);push(e);continue}if(N==="}"){const e=F[F.length-1];if(r.nobrace===true||!e){push({type:"text",value:N,output:N});continue}let t=")";if(e.dots===true){const e=d.slice();const n=[];for(let t=e.length-1;t>=0;t--){d.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){n.unshift(e[t].value)}}t=expandRange(n,r);D.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=D.output.slice(0,e.outputIndex);const n=D.tokens.slice(e.tokensIndex);e.value=e.output="\\{";N=t="\\}";D.output=r;for(const e of n){D.output+=e.output||e.value}}push({type:"brace",value:N,output:t});decrement("braces");F.pop();continue}if(N==="|"){if(L.length>0){L[L.length-1].conditions++}push({type:"text",value:N});continue}if(N===","){let e=N;const t=F[F.length-1];if(t&&j[j.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:N,output:e});continue}if(N==="/"){if(I.type==="dot"&&D.index===D.start+1){D.start=D.index+1;D.consumed="";D.output="";d.pop();I=f;continue}push({type:"slash",value:N,output:S});continue}if(N==="."){if(D.braces>0&&I.type==="dot"){if(I.value===".")I.output=_;const e=F[F.length-1];I.type="dots";I.output+=N;I.value+=N;e.dots=true;continue}if(D.braces+D.parens===0&&I.type!=="bos"&&I.type!=="slash"){push({type:"text",value:N,output:_});continue}push({type:"dot",value:N,output:_});continue}if(N==="?"){const e=I&&I.value==="(";if(!e&&r.noextglob!==true&&$()==="("&&$(2)!=="?"){extglobOpen("qmark",N);continue}if(I&&I.type==="paren"){const e=$();let t=N;if(e==="<"&&!s.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(I.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${N}`}push({type:"text",value:N,output:t});continue}if(r.dot!==true&&(I.type==="slash"||I.type==="bos")){push({type:"qmark",value:N,output:P});continue}push({type:"qmark",value:N,output:C});continue}if(N==="!"){if(r.noextglob!==true&&$()==="("){if($(2)!=="?"||!/[!=<:]/.test($(3))){extglobOpen("negate",N);continue}}if(r.nonegate!==true&&D.index===0){negate();continue}}if(N==="+"){if(r.noextglob!==true&&$()==="("&&$(2)!=="?"){extglobOpen("plus",N);continue}if(I&&I.value==="("||r.regex===false){push({type:"plus",value:N,output:b});continue}if(I&&(I.type==="bracket"||I.type==="paren"||I.type==="brace")||D.parens>0){push({type:"plus",value:N});continue}push({type:"plus",value:b});continue}if(N==="@"){if(r.noextglob!==true&&$()==="("&&$(2)!=="?"){push({type:"at",extglob:true,value:N,output:""});continue}push({type:"text",value:N});continue}if(N!=="*"){if(N==="$"||N==="^"){N=`\\${N}`}const e=a.exec(remaining());if(e){N+=e[0];D.index+=e[0].length}push({type:"text",value:N});continue}if(I&&(I.type==="globstar"||I.star===true)){I.type="star";I.star=true;I.value+=N;I.output=M;D.backtrack=true;D.globstar=true;consume(N);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",N);continue}if(I.type==="star"){if(r.noglobstar===true){consume(N);continue}const n=I.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||t[0]&&t[0]!=="/")){push({type:"star",value:N,output:""});continue}const a=D.braces>0&&(n.type==="comma"||n.type==="brace");const u=L.length&&(n.type==="pipe"||n.type==="paren");if(!i&&n.type!=="paren"&&!a&&!u){push({type:"star",value:N,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[D.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(n.type==="bos"&&eos()){I.type="globstar";I.value+=N;I.output=globstar(r);D.output=I.output;D.globstar=true;consume(N);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&!o&&eos()){D.output=D.output.slice(0,-(n.output+I.output).length);n.output=`(?:${n.output}`;I.type="globstar";I.output=globstar(r)+(r.strictSlashes?")":"|$)");I.value+=N;D.globstar=true;D.output+=n.output+I.output;consume(N);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";D.output=D.output.slice(0,-(n.output+I.output).length);n.output=`(?:${n.output}`;I.type="globstar";I.output=`${globstar(r)}${S}|${S}${e})`;I.value+=N;D.output+=n.output+I.output;D.globstar=true;consume(N+G());push({type:"slash",value:"/",output:""});continue}if(n.type==="bos"&&t[0]==="/"){I.type="globstar";I.value+=N;I.output=`(?:^|${S}|${globstar(r)}${S})`;D.output=I.output;D.globstar=true;consume(N+G());push({type:"slash",value:"/",output:""});continue}D.output=D.output.slice(0,-I.output.length);I.type="globstar";I.output=globstar(r);I.value+=N;D.output+=I.output;D.globstar=true;consume(N);continue}const n={type:"star",value:N,output:M};if(r.bash===true){n.output=".*?";if(I.type==="bos"||I.type==="slash"){n.output=w+n.output}push(n);continue}if(I&&(I.type==="bracket"||I.type==="paren")&&r.regex===true){n.output=N;push(n);continue}if(D.index===D.start||I.type==="slash"||I.type==="dot"){if(I.type==="dot"){D.output+=k;I.output+=k}else if(r.dot===true){D.output+=R;I.output+=R}else{D.output+=w;I.output+=w}if($()!=="*"){D.output+=v;I.output+=v}}push(n)}while(D.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));D.output=s.escapeLast(D.output,"[");decrement("brackets")}while(D.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));D.output=s.escapeLast(D.output,"(");decrement("parens")}while(D.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));D.output=s.escapeLast(D.output,"{");decrement("braces")}if(r.strictSlashes!==true&&(I.type==="star"||I.type==="bracket")){push({type:"maybe_slash",value:"",output:`${S}?`})}if(D.backtrack===true){D.output="";for(const e of D.tokens){D.output+=e.output!=null?e.output:e.value;if(e.suffix){D.output+=e.suffix}}}return D};parse.fastpaths=(e,t)=>{const r={...t};const o=typeof r.maxLength==="number"?Math.min(i,r.maxLength):i;const a=e.length;if(a>o){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`)}e=c[e]||e;const u=s.isWindows(t);const{DOT_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:f,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 v=r.capture?"":"?:";const E={negated:false,prefix:""};let T=r.bash===true?".*?":y;if(r.capture){T=`(${T})`}const globstar=e=>{if(e.noglobstar===true)return T;return`(${v}(?:(?!${_}${e.dot?d:l}).)*?)`};const create=e=>{switch(e){case"*":return`${b}${f}${T}`;case".*":return`${l}${f}${T}`;case"*.*":return`${b}${T}${l}${f}${T}`;case"*/*":return`${b}${T}${p}${f}${S}${T}`;case"**":return b+globstar(r);case"**/*":return`(?:${b}${globstar(r)}${p})?${S}${f}${T}`;case"**/*.*":return`(?:${b}${globstar(r)}${p})?${S}${T}${l}${f}${T}`;case"**/.*":return`(?:${b}${globstar(r)}${p})?${l}${f}${T}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+l+t[2]}}};const k=s.removePrefix(e,E);let R=create(k);if(R&&r.strictSlashes!==true){R+=`${p}?`}return R};e.exports=parse},3322:(e,t,r)=>{"use strict";const n=r(5622);const s=r(2429);const i=r(2139);const o=r(479);const a=r(6099);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,r=false)=>{if(Array.isArray(e)){const n=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of n){const r=t(e);if(r)return r}return false};return arrayMatcher}const n=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!n){throw new TypeError("Expected pattern to be a non-empty string")}const s=t||{};const i=o.isWindows(t);const a=n?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const u=a.state;delete a.state;let isIgnored=()=>false;if(s.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(s.ignore,e,r)}const matcher=(r,n=false)=>{const{isMatch:o,match:c,output:l}=picomatch.test(r,a,t,{glob:e,posix:i});const p={glob:e,state:u,regex:a,posix:i,input:r,output:l,match:c,isMatch:o};if(typeof s.onResult==="function"){s.onResult(p)}if(o===false){p.isMatch=false;return n?p:false}if(isIgnored(r)){if(typeof s.onIgnore==="function"){s.onIgnore(p)}p.isMatch=false;return n?p:false}if(typeof s.onMatch==="function"){s.onMatch(p)}return n?p:true};if(r){matcher.state=u}return matcher};picomatch.test=(e,t,r,{glob:n,posix:s}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const i=r||{};const a=i.format||(s?o.toPosixSlashes:null);let u=e===n;let c=u&&a?a(e):e;if(u===false){c=a?a(e):e;u=c===n}if(u===false||i.capture===true){if(i.matchBase===true||i.basename===true){u=picomatch.matchBase(e,t,r,s)}else{u=t.exec(c)}}return{isMatch:Boolean(u),match:u,output:c}};picomatch.matchBase=(e,t,r,s=o.isWindows(r))=>{const i=t instanceof RegExp?t:picomatch.makeRe(t,r);return i.test(n.basename(e))};picomatch.isMatch=(e,t,r)=>picomatch(t,r)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return i(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>s(e,t);picomatch.compileRe=(e,t,r=false,n=false)=>{if(r===true){return e.output}const s=t||{};const i=s.contains?"":"^";const o=s.contains?"":"$";let a=`${i}(?:${e.output})${o}`;if(e&&e.negated===true){a=`^(?!${a}).*$`}const u=picomatch.toRegex(a,t);if(n===true){u.state=e}return u};picomatch.makeRe=(e,t,r=false,n=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}const s=t||{};let o={negated:false,fastpaths:true};let a="";let u;if(e.startsWith("./")){e=e.slice(2);a=o.prefix="./"}if(s.fastpaths!==false&&(e[0]==="."||e[0]==="*")){u=i.fastpaths(e,t)}if(u===undefined){o=i(e,t);o.prefix=a+(o.prefix||"")}else{o.output=u}return picomatch.compileRe(o,t,r,n)};picomatch.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=a;e.exports=picomatch},2429:(e,t,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:p,CHAR_LEFT_PARENTHESES:f,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 isPathSeparator=e=>e===l||e===o;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const r=t||{};const b=e.length-1;const S=r.parts===true||r.scanToEnd===true;const v=[];const E=[];const T=[];let k=e;let R=-1;let C=0;let P=0;let A=false;let O=false;let w=false;let x=false;let M=false;let D=false;let L=false;let F=false;let j=false;let I=0;let N;let $;let G={value:"",depth:0,isGlob:false};const eos=()=>R>=b;const peek=()=>k.charCodeAt(R+1);const advance=()=>{N=$;return k.charCodeAt(++R)};while(R0){H=k.slice(0,C);k=k.slice(C);P-=C}if(B&&w===true&&P>0){B=k.slice(0,P);U=k.slice(P)}else if(w===true){B="";U=k}else{B=k}if(B&&B!==""&&B!=="/"&&B!==k){if(isPathSeparator(B.charCodeAt(B.length-1))){B=B.slice(0,-1)}}if(r.unescape===true){if(U)U=n.removeBackslashes(U);if(B&&L===true){B=n.removeBackslashes(B)}}const W={prefix:H,input:e,start:C,base:B,glob:U,isBrace:A,isBracket:O,isGlob:w,isExtglob:x,isGlobstar:M,negated:F};if(r.tokens===true){W.maxDepth=0;if(!isPathSeparator($)){E.push(G)}W.tokens=E}if(r.parts===true||r.tokens===true){let t;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);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>a.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(u,"\\$1");t.toPosixSlashes=e=>e.replace(i,"/");t.removeBackslashes=e=>e.replace(o,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return s===true||n.sep==="\\"};t.escapeLast=(e,r,n)=>{const s=e.lastIndexOf(r,n);if(s===-1)return e;if(e[s-1]==="\\")return t.escapeLast(e,r,s-1);return`${e.slice(0,s)}\\${e.slice(s)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const n=r.contains?"":"^";const s=r.contains?"":"$";let i=`${n}(?:${e})${s}`;if(t.negated===true){i=`(?:^(?!${i}).*$)`}return i}},9795:e=>{ + */e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},2578:(e,t,r)=>{"use strict";const s=r(2413);const n=s.PassThrough;const o=Array.prototype.slice;e.exports=merge2;function merge2(){const e=[];const t=o.call(arguments);let r=false;let s=t[t.length-1];if(s&&!Array.isArray(s)&&s.pipe==null){t.pop()}else{s={}}const i=s.end!==false;const a=s.pipeError===true;if(s.objectMode==null){s.objectMode=true}if(s.highWaterMark==null){s.highWaterMark=64*1024}const c=n(s);function addStream(){for(let t=0,r=arguments.length;t0){return}r=false;mergeStream()}function pipe(e){function onend(){e.removeListener("merge2UnpipeEnd",onend);e.removeListener("end",onend);if(a){e.removeListener("error",onerror)}next()}function onerror(e){c.emit("error",e)}if(e._readableState.endEmitted){return next()}e.on("merge2UnpipeEnd",onend);e.on("end",onend);if(a){e.on("error",onerror)}e.pipe(c,{end:false});e.resume()}for(let e=0;e{"use strict";const s=r(1669);const n=r(610);const o=r(8569);const i=r(479);const isEmptyString=e=>typeof e==="string"&&(e===""||e==="./");const micromatch=(e,t,r)=>{t=[].concat(t);e=[].concat(e);let s=new Set;let n=new Set;let i=new Set;let a=0;let onResult=e=>{i.add(e.output);if(r&&r.onResult){r.onResult(e)}};for(let i=0;i!s.has(e)));if(r&&u.length===0){if(r.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?t.map((e=>e.replace(/\\/g,""))):t}}return u};micromatch.match=micromatch;micromatch.matcher=(e,t)=>o(e,t);micromatch.isMatch=(e,t,r)=>o(t,r)(e);micromatch.any=micromatch.isMatch;micromatch.not=(e,t,r={})=>{t=[].concat(t).map(String);let s=new Set;let n=[];let onResult=e=>{if(r.onResult)r.onResult(e);n.push(e.output)};let o=micromatch(e,t,{...r,onResult:onResult});for(let e of n){if(!o.includes(e)){s.add(e)}}return[...s]};micromatch.contains=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${s.inspect(e)}"`)}if(Array.isArray(t)){return t.some((t=>micromatch.contains(e,t,r)))}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return micromatch.isMatch(e,t,{...r,contains:true})};micromatch.matchKeys=(e,t,r)=>{if(!i.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let s=micromatch(Object.keys(e),t,r);let n={};for(let t of s)n[t]=e[t];return n};micromatch.some=(e,t,r)=>{let s=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),r);if(s.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,r)=>{let s=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),r);if(!s.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${s.inspect(e)}"`)}return[].concat(t).every((t=>o(t,r)(e)))};micromatch.capture=(e,t,r)=>{let s=i.isWindows(r);let n=o.makeRe(String(e),{...r,capture:true});let a=n.exec(s?i.toPosixSlashes(t):t);if(a){return a.slice(1).map((e=>e===void 0?"":e))}};micromatch.makeRe=(...e)=>o.makeRe(...e);micromatch.scan=(...e)=>o.scan(...e);micromatch.parse=(e,t)=>{let r=[];for(let s of[].concat(e||[])){for(let e of n(String(s),t)){r.push(o.parse(e,t))}}return r};micromatch.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return n(e,t)};micromatch.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:true})};e.exports=micromatch},900:e=>{var t=1e3;var r=t*60;var s=r*60;var n=s*24;var o=n*7;var i=n*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.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(e);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*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*s;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*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=n){return Math.round(e/n)+"d"}if(o>=s){return Math.round(e/s)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=n){return plural(e,o,n,"day")}if(o>=s){return plural(e,o,s,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,s){var n=t>=r*1.5;return Math.round(e/r)+" "+s+(n?"s":"")}},467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=_interopDefault(r(2413));var n=_interopDefault(r(8605));var o=_interopDefault(r(8835));var i=_interopDefault(r(7211));var a=_interopDefault(r(8761));const c=s.Readable;const u=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const e=arguments[0];const t=arguments[1];const r=[];let s=0;if(e){const t=e;const n=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},n=r.size;let o=n===undefined?0:n;var i=r.timeout;let a=i===undefined?0:i;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof s);else{e=Buffer.from(String(e))}this[d]={body:e,disturbed:false,error:null};this.size=o;this.timeout=a;if(e instanceof s){e.on("error",(function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[d].error=r}))}}Body.prototype={get body(){return this[d].body},get bodyUsed(){return this[d].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[u]:t})}))},json(){var e=this;return consumeBody.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(t){return convertBody(t,e.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[d].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[d].disturbed=true;if(this[d].error){return Body.Promise.reject(this[d].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof s)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let n=0;let o=false;return new Body.Promise((function(s,i){let a;if(e.timeout){a=setTimeout((function(){o=true;i(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)}t.on("error",(function(t){if(t.name==="AbortError"){o=true;i(t)}else{i(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}}));t.on("data",(function(t){if(o||t===null){return}if(e.size&&n+t.length>e.size){o=true;i(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}n+=t.length;r.push(t)}));t.on("end",(function(){if(o){return}clearTimeout(a);try{s(Buffer.concat(r,n))}catch(t){i(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}))}))}function convertBody(e,t){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let s="utf-8";let n,o;if(r){n=/charset=([^;]*)/i.exec(r)}o=e.slice(0,1024).toString();if(!n&&o){n=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[y]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null);else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[y],e);if(t===undefined){return null}return this[y][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let s=0;while(s1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[y]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[y][t].join(", ")}:function(t){return[t.toLowerCase(),e[y][t].join(", ")]})}const _=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(b);r[_]={target:e,kind:t,index:0};return r}const b=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==b){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[_];const t=e.target,r=e.kind,s=e.index;const n=getHeaders(t,r);const o=n.length;if(s>=o){return{value:undefined,done:true}}this[_].index=s+1;return{value:n[s],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(b,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[y]);const r=find(e[y],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(h.test(r)){continue}if(Array.isArray(e[r])){for(const s of e[r]){if(m.test(s)){continue}if(t[y][r]===undefined){t[y][r]=[s]}else{t[y][r].push(s)}}}else if(!m.test(e[r])){t[y][r]=[e[r]]}}return t}const T=Symbol("Response internals");const E=n.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const s=new Headers(t.headers);if(e!=null&&!s.has("Content-Type")){const t=extractContentType(e);if(t){s.append("Content-Type",t)}}this[T]={url:t.url,status:r,statusText:t.statusText||E[r],headers:s,counter:t.counter}}get url(){return this[T].url||""}get status(){return this[T].status}get ok(){return this[T].status>=200&&this[T].status<300}get redirected(){return this[T].counter>0}get statusText(){return this[T].statusText}get headers(){return this[T].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const v=Symbol("Request internals");const w=o.parse;const k=o.format;const S="destroy"in s.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[v]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=w(e.href)}else{r=w(`${e}`)}e={}}else{r=w(e.url)}let s=t.method||e.method||"GET";s=s.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(s==="GET"||s==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let n=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,n,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const o=new Headers(t.headers||e.headers||{});if(n!=null&&!o.has("Content-Type")){const e=extractContentType(n);if(e){o.append("Content-Type",e)}}let i=isRequest(e)?e.signal:null;if("signal"in t)i=t.signal;if(i!=null&&!isAbortSignal(i)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[v]={method:s,redirect:t.redirect||e.redirect||"follow",headers:o,parsedURL:r,signal:i};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[v].method}get url(){return k(this[v].parsedURL)}get headers(){return this[v].headers}get redirect(){return this[v].redirect}get signal(){return this[v].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[v].parsedURL;const r=new Headers(e[v].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof s.Readable&&!S){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let n=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){n="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){n=String(t)}}if(n){r.set("Content-Length",n)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let o=e.agent;if(typeof o==="function"){o=o(t)}if(!r.has("Connection")&&!o){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:o})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const P=s.PassThrough;const O=o.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(r,o){const c=new Request(e,t);const u=getNodeRequestOptions(c);const l=(u.protocol==="https:"?i:n).request;const p=c.signal;let d=null;const g=function abort(){let e=new AbortError("The user aborted a request.");o(e);if(c.body&&c.body instanceof s.Readable){c.body.destroy(e)}if(!d||!d.body)return;d.body.emit("error",e)};if(p&&p.aborted){g();return}const h=function abortAndFinalize(){g();finalize()};const m=l(u);let y;if(p){p.addEventListener("abort",h)}function finalize(){m.abort();if(p)p.removeEventListener("abort",h);clearTimeout(y)}if(c.timeout){m.once("socket",(function(e){y=setTimeout((function(){o(new FetchError(`network timeout at: ${c.url}`,"request-timeout"));finalize()}),c.timeout)}))}m.on("error",(function(e){o(new FetchError(`request to ${c.url} failed, reason: ${e.message}`,"system",e));finalize()}));m.on("response",(function(e){clearTimeout(y);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const s=t.get("Location");const n=s===null?null:O(c.url,s);switch(c.redirect){case"error":o(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${c.url}`,"no-redirect"));finalize();return;case"manual":if(n!==null){try{t.set("Location",n)}catch(e){o(e)}}break;case"follow":if(n===null){break}if(c.counter>=c.follow){o(new FetchError(`maximum redirect reached at: ${c.url}`,"max-redirect"));finalize();return}const s={headers:new Headers(c.headers),follow:c.follow,counter:c.counter+1,agent:c.agent,compress:c.compress,method:c.method,body:c.body,signal:c.signal,timeout:c.timeout,size:c.size};if(e.statusCode!==303&&c.body&&getTotalBytes(c)===null){o(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&c.method==="POST"){s.method="GET";s.body=undefined;s.headers.delete("content-length")}r(fetch(new Request(n,s)));finalize();return}}e.once("end",(function(){if(p)p.removeEventListener("abort",h)}));let s=e.pipe(new P);const n={url:c.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:c.size,timeout:c.timeout,counter:c.counter};const i=t.get("Content-Encoding");if(!c.compress||c.method==="HEAD"||i===null||e.statusCode===204||e.statusCode===304){d=new Response(s,n);r(d);return}const u={flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH};if(i=="gzip"||i=="x-gzip"){s=s.pipe(a.createGunzip(u));d=new Response(s,n);r(d);return}if(i=="deflate"||i=="x-deflate"){const t=e.pipe(new P);t.once("data",(function(e){if((e[0]&15)===8){s=s.pipe(a.createInflate())}else{s=s.pipe(a.createInflateRaw())}d=new Response(s,n);r(d)}));return}if(i=="br"&&typeof a.createBrotliDecompress==="function"){s=s.pipe(a.createBrotliDecompress());d=new Response(s,n);r(d);return}d=new Response(s,n);r(d)}));writeToStream(m,c)}))}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},1223:(e,t,r)=>{var s=r(2940);e.exports=s(once);e.exports.strict=s(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},3433:(e,t,r)=>{"use strict";const{promisify:s}=r(1669);const n=r(5747);async function isType(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{const o=await s(n[e])(r);return o[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}function isTypeSync(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{return n[e](r)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.isFile=isType.bind(null,"stat","isFile");t.isDirectory=isType.bind(null,"stat","isDirectory");t.isSymlink=isType.bind(null,"lstat","isSymbolicLink");t.isFileSync=isTypeSync.bind(null,"statSync","isFile");t.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");t.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},8569:(e,t,r)=>{"use strict";e.exports=r(3322)},6099:(e,t,r)=>{"use strict";const s=r(5622);const n="\\\\/";const o=`[^${n}]`;const i="\\.";const a="\\+";const c="\\?";const u="\\/";const l="(?=.)";const p="[^/]";const d=`(?:${u}|$)`;const g=`(?:^|${u})`;const h=`${i}{1,2}${d}`;const m=`(?!${i})`;const y=`(?!${g}${h})`;const _=`(?!${i}{0,1}${d})`;const b=`(?!${h})`;const T=`[^.${u}]`;const E=`${p}*?`;const v={DOT_LITERAL:i,PLUS_LITERAL:a,QMARK_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:l,QMARK:p,END_ANCHOR:d,DOTS_SLASH:h,NO_DOT:m,NO_DOTS:y,NO_DOT_SLASH:_,NO_DOTS_SLASH:b,QMARK_NO_DOT:T,STAR:E,START_ANCHOR:g};const w={...v,SLASH_LITERAL:`[${n}]`,QMARK:o,STAR:`${o}*?`,DOTS_SLASH:`${i}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${i})`,NO_DOTS:`(?!(?:^|[${n}])${i}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${i}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${i}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`};const k={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:k,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:s.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?w:v}}},2139:(e,t,r)=>{"use strict";const s=r(6099);const n=r(479);const{MAX_LENGTH:o,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:u}=s;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>n.escapeRegex(e))).join("..")}return r};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=u[e]||e;const r={...t};const l=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;let p=e.length;if(p>l){throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${l}`)}const d={type:"bos",value:"",output:r.prepend||""};const g=[d];const h=r.capture?"":"?:";const m=n.isWindows(t);const y=s.globChars(m);const _=s.extglobChars(y);const{DOT_LITERAL:b,PLUS_LITERAL:T,SLASH_LITERAL:E,ONE_CHAR:v,DOTS_SLASH:w,NO_DOT:k,NO_DOT_SLASH:S,NO_DOTS_SLASH:P,QMARK:O,QMARK_NO_DOT:R,STAR:A,START_ANCHOR:C}=y;const globstar=e=>`(${h}(?:(?!${C}${e.dot?w:b}).)*?)`;const G=r.dot?"":k;const x=r.dot?O:R;let D=r.bash===true?globstar(r):A;if(r.capture){D=`(${D})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const F={input:e,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};e=n.removePrefix(e,F);p=e.length;const L=[];const j=[];const M=[];let I=d;let B;const eos=()=>F.index===p-1;const U=F.peek=(t=1)=>e[F.index+t];const H=F.advance=()=>e[++F.index];const remaining=()=>e.slice(F.index+1);const consume=(e="",t=0)=>{F.consumed+=e;F.index+=t};const append=e=>{F.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(U()==="!"&&(U(2)!=="("||U(3)==="?")){H();F.start++;e++}if(e%2===0){return false}F.negated=true;F.start++;return true};const increment=e=>{F[e]++;M.push(e)};const decrement=e=>{F[e]--;M.pop()};const push=e=>{if(I.type==="globstar"){const t=F.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||L.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){F.output=F.output.slice(0,-I.output.length);I.type="star";I.value="*";I.output=D;F.output+=I.output}}if(L.length&&e.type!=="paren"&&!_[e.value]){L[L.length-1].inner+=e.value}if(e.value||e.output)append(e);if(I&&I.type==="text"&&e.type==="text"){I.value+=e.value;I.output=(I.output||"")+e.value;return}e.prev=I;g.push(e);I=e};const extglobOpen=(e,t)=>{const s={..._[t],conditions:1,inner:""};s.prev=I;s.parens=F.parens;s.output=F.output;const n=(r.capture?"(":"")+s.open;increment("parens");push({type:e,value:t,output:F.output?"":v});push({type:"paren",extglob:true,value:H(),output:n});L.push(s)};const extglobClose=e=>{let t=e.close+(r.capture?")":"");if(e.type==="negate"){let s=D;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){s=globstar(r)}if(s!==D||eos()||/^\)+$/.test(remaining())){t=e.close=`)$))${s}`}if(e.prev.type==="bos"&&eos()){F.negatedExtglob=true}}push({type:"paren",extglob:true,value:B,output:t});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let s=false;let o=e.replace(c,((e,t,r,n,o,i)=>{if(n==="\\"){s=true;return e}if(n==="?"){if(t){return t+n+(o?O.repeat(o.length):"")}if(i===0){return x+(o?O.repeat(o.length):"")}return O.repeat(r.length)}if(n==="."){return b.repeat(r.length)}if(n==="*"){if(t){return t+n+(o?D:"")}return D}return t?e:`\\${e}`}));if(s===true){if(r.unescape===true){o=o.replace(/\\/g,"")}else{o=o.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(o===e&&r.contains===true){F.output=e;return F}F.output=n.wrapOutput(o,F,t);return F}while(!eos()){B=H();if(B==="\0"){continue}if(B==="\\"){const e=U();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){B+="\\";push({type:"text",value:B});continue}const t=/^\\+/.exec(remaining());let s=0;if(t&&t[0].length>2){s=t[0].length;F.index+=s;if(s%2!==0){B+="\\"}}if(r.unescape===true){B=H()||""}else{B+=H()||""}if(F.brackets===0){push({type:"text",value:B});continue}}if(F.brackets>0&&(B!=="]"||I.value==="["||I.value==="[^")){if(r.posix!==false&&B===":"){const e=I.value.slice(1);if(e.includes("[")){I.posix=true;if(e.includes(":")){const e=I.value.lastIndexOf("[");const t=I.value.slice(0,e);const r=I.value.slice(e+2);const s=i[r];if(s){I.value=t+s;F.backtrack=true;H();if(!d.output&&g.indexOf(I)===1){d.output=v}continue}}}}if(B==="["&&U()!==":"||B==="-"&&U()==="]"){B=`\\${B}`}if(B==="]"&&(I.value==="["||I.value==="[^")){B=`\\${B}`}if(r.posix===true&&B==="!"&&I.value==="["){B="^"}I.value+=B;append({value:B});continue}if(F.quotes===1&&B!=='"'){B=n.escapeRegex(B);I.value+=B;append({value:B});continue}if(B==='"'){F.quotes=F.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:B})}continue}if(B==="("){increment("parens");push({type:"paren",value:B});continue}if(B===")"){if(F.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=L[L.length-1];if(e&&F.parens===e.parens+1){extglobClose(L.pop());continue}push({type:"paren",value:B,output:F.parens?")":"\\)"});decrement("parens");continue}if(B==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}B=`\\${B}`}else{increment("brackets")}push({type:"bracket",value:B});continue}if(B==="]"){if(r.nobracket===true||I&&I.type==="bracket"&&I.value.length===1){push({type:"text",value:B,output:`\\${B}`});continue}if(F.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:B,output:`\\${B}`});continue}decrement("brackets");const e=I.value.slice(1);if(I.posix!==true&&e[0]==="^"&&!e.includes("/")){B=`/${B}`}I.value+=B;append({value:B});if(r.literalBrackets===false||n.hasRegexChars(e)){continue}const t=n.escapeRegex(I.value);F.output=F.output.slice(0,-I.value.length);if(r.literalBrackets===true){F.output+=t;I.value=t;continue}I.value=`(${h}${t}|${I.value})`;F.output+=I.value;continue}if(B==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:B,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};j.push(e);push(e);continue}if(B==="}"){const e=j[j.length-1];if(r.nobrace===true||!e){push({type:"text",value:B,output:B});continue}let t=")";if(e.dots===true){const e=g.slice();const s=[];for(let t=e.length-1;t>=0;t--){g.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){s.unshift(e[t].value)}}t=expandRange(s,r);F.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=F.output.slice(0,e.outputIndex);const s=F.tokens.slice(e.tokensIndex);e.value=e.output="\\{";B=t="\\}";F.output=r;for(const e of s){F.output+=e.output||e.value}}push({type:"brace",value:B,output:t});decrement("braces");j.pop();continue}if(B==="|"){if(L.length>0){L[L.length-1].conditions++}push({type:"text",value:B});continue}if(B===","){let e=B;const t=j[j.length-1];if(t&&M[M.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:B,output:e});continue}if(B==="/"){if(I.type==="dot"&&F.index===F.start+1){F.start=F.index+1;F.consumed="";F.output="";g.pop();I=d;continue}push({type:"slash",value:B,output:E});continue}if(B==="."){if(F.braces>0&&I.type==="dot"){if(I.value===".")I.output=b;const e=j[j.length-1];I.type="dots";I.output+=B;I.value+=B;e.dots=true;continue}if(F.braces+F.parens===0&&I.type!=="bos"&&I.type!=="slash"){push({type:"text",value:B,output:b});continue}push({type:"dot",value:B,output:b});continue}if(B==="?"){const e=I&&I.value==="(";if(!e&&r.noextglob!==true&&U()==="("&&U(2)!=="?"){extglobOpen("qmark",B);continue}if(I&&I.type==="paren"){const e=U();let t=B;if(e==="<"&&!n.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(I.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${B}`}push({type:"text",value:B,output:t});continue}if(r.dot!==true&&(I.type==="slash"||I.type==="bos")){push({type:"qmark",value:B,output:R});continue}push({type:"qmark",value:B,output:O});continue}if(B==="!"){if(r.noextglob!==true&&U()==="("){if(U(2)!=="?"||!/[!=<:]/.test(U(3))){extglobOpen("negate",B);continue}}if(r.nonegate!==true&&F.index===0){negate();continue}}if(B==="+"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){extglobOpen("plus",B);continue}if(I&&I.value==="("||r.regex===false){push({type:"plus",value:B,output:T});continue}if(I&&(I.type==="bracket"||I.type==="paren"||I.type==="brace")||F.parens>0){push({type:"plus",value:B});continue}push({type:"plus",value:T});continue}if(B==="@"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){push({type:"at",extglob:true,value:B,output:""});continue}push({type:"text",value:B});continue}if(B!=="*"){if(B==="$"||B==="^"){B=`\\${B}`}const e=a.exec(remaining());if(e){B+=e[0];F.index+=e[0].length}push({type:"text",value:B});continue}if(I&&(I.type==="globstar"||I.star===true)){I.type="star";I.star=true;I.value+=B;I.output=D;F.backtrack=true;F.globstar=true;consume(B);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",B);continue}if(I.type==="star"){if(r.noglobstar===true){consume(B);continue}const s=I.prev;const n=s.prev;const o=s.type==="slash"||s.type==="bos";const i=n&&(n.type==="star"||n.type==="globstar");if(r.bash===true&&(!o||t[0]&&t[0]!=="/")){push({type:"star",value:B,output:""});continue}const a=F.braces>0&&(s.type==="comma"||s.type==="brace");const c=L.length&&(s.type==="pipe"||s.type==="paren");if(!o&&s.type!=="paren"&&!a&&!c){push({type:"star",value:B,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[F.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(s.type==="bos"&&eos()){I.type="globstar";I.value+=B;I.output=globstar(r);F.output=I.output;F.globstar=true;consume(B);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&!i&&eos()){F.output=F.output.slice(0,-(s.output+I.output).length);s.output=`(?:${s.output}`;I.type="globstar";I.output=globstar(r)+(r.strictSlashes?")":"|$)");I.value+=B;F.globstar=true;F.output+=s.output+I.output;consume(B);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(s.output+I.output).length);s.output=`(?:${s.output}`;I.type="globstar";I.output=`${globstar(r)}${E}|${E}${e})`;I.value+=B;F.output+=s.output+I.output;F.globstar=true;consume(B+H());push({type:"slash",value:"/",output:""});continue}if(s.type==="bos"&&t[0]==="/"){I.type="globstar";I.value+=B;I.output=`(?:^|${E}|${globstar(r)}${E})`;F.output=I.output;F.globstar=true;consume(B+H());push({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-I.output.length);I.type="globstar";I.output=globstar(r);I.value+=B;F.output+=I.output;F.globstar=true;consume(B);continue}const s={type:"star",value:B,output:D};if(r.bash===true){s.output=".*?";if(I.type==="bos"||I.type==="slash"){s.output=G+s.output}push(s);continue}if(I&&(I.type==="bracket"||I.type==="paren")&&r.regex===true){s.output=B;push(s);continue}if(F.index===F.start||I.type==="slash"||I.type==="dot"){if(I.type==="dot"){F.output+=S;I.output+=S}else if(r.dot===true){F.output+=P;I.output+=P}else{F.output+=G;I.output+=G}if(U()!=="*"){F.output+=v;I.output+=v}}push(s)}while(F.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));F.output=n.escapeLast(F.output,"[");decrement("brackets")}while(F.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));F.output=n.escapeLast(F.output,"(");decrement("parens")}while(F.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));F.output=n.escapeLast(F.output,"{");decrement("braces")}if(r.strictSlashes!==true&&(I.type==="star"||I.type==="bracket")){push({type:"maybe_slash",value:"",output:`${E}?`})}if(F.backtrack===true){F.output="";for(const e of F.tokens){F.output+=e.output!=null?e.output:e.value;if(e.suffix){F.output+=e.suffix}}}return F};parse.fastpaths=(e,t)=>{const r={...t};const i=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;const a=e.length;if(a>i){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${i}`)}e=u[e]||e;const c=n.isWindows(t);const{DOT_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:g,NO_DOT:h,NO_DOTS:m,NO_DOTS_SLASH:y,STAR:_,START_ANCHOR:b}=s.globChars(c);const T=r.dot?m:h;const E=r.dot?y:h;const v=r.capture?"":"?:";const w={negated:false,prefix:""};let k=r.bash===true?".*?":_;if(r.capture){k=`(${k})`}const globstar=e=>{if(e.noglobstar===true)return k;return`(${v}(?:(?!${b}${e.dot?g:l}).)*?)`};const create=e=>{switch(e){case"*":return`${T}${d}${k}`;case".*":return`${l}${d}${k}`;case"*.*":return`${T}${k}${l}${d}${k}`;case"*/*":return`${T}${k}${p}${d}${E}${k}`;case"**":return T+globstar(r);case"**/*":return`(?:${T}${globstar(r)}${p})?${E}${d}${k}`;case"**/*.*":return`(?:${T}${globstar(r)}${p})?${E}${k}${l}${d}${k}`;case"**/.*":return`(?:${T}${globstar(r)}${p})?${l}${d}${k}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+l+t[2]}}};const S=n.removePrefix(e,w);let P=create(S);if(P&&r.strictSlashes!==true){P+=`${p}?`}return P};e.exports=parse},3322:(e,t,r)=>{"use strict";const s=r(5622);const n=r(2429);const o=r(2139);const i=r(479);const a=r(6099);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,r=false)=>{if(Array.isArray(e)){const s=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of s){const r=t(e);if(r)return r}return false};return arrayMatcher}const s=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!s){throw new TypeError("Expected pattern to be a non-empty string")}const n=t||{};const o=i.isWindows(t);const a=s?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const c=a.state;delete a.state;let isIgnored=()=>false;if(n.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(n.ignore,e,r)}const matcher=(r,s=false)=>{const{isMatch:i,match:u,output:l}=picomatch.test(r,a,t,{glob:e,posix:o});const p={glob:e,state:c,regex:a,posix:o,input:r,output:l,match:u,isMatch:i};if(typeof n.onResult==="function"){n.onResult(p)}if(i===false){p.isMatch=false;return s?p:false}if(isIgnored(r)){if(typeof n.onIgnore==="function"){n.onIgnore(p)}p.isMatch=false;return s?p:false}if(typeof n.onMatch==="function"){n.onMatch(p)}return s?p:true};if(r){matcher.state=c}return matcher};picomatch.test=(e,t,r,{glob:s,posix:n}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const o=r||{};const a=o.format||(n?i.toPosixSlashes:null);let c=e===s;let u=c&&a?a(e):e;if(c===false){u=a?a(e):e;c=u===s}if(c===false||o.capture===true){if(o.matchBase===true||o.basename===true){c=picomatch.matchBase(e,t,r,n)}else{c=t.exec(u)}}return{isMatch:Boolean(c),match:c,output:u}};picomatch.matchBase=(e,t,r,n=i.isWindows(r))=>{const o=t instanceof RegExp?t:picomatch.makeRe(t,r);return o.test(s.basename(e))};picomatch.isMatch=(e,t,r)=>picomatch(t,r)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return o(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>n(e,t);picomatch.compileRe=(e,t,r=false,s=false)=>{if(r===true){return e.output}const n=t||{};const o=n.contains?"":"^";const i=n.contains?"":"$";let a=`${o}(?:${e.output})${i}`;if(e&&e.negated===true){a=`^(?!${a}).*$`}const c=picomatch.toRegex(a,t);if(s===true){c.state=e}return c};picomatch.makeRe=(e,t,r=false,s=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}const n=t||{};let i={negated:false,fastpaths:true};let a="";let c;if(e.startsWith("./")){e=e.slice(2);a=i.prefix="./"}if(n.fastpaths!==false&&(e[0]==="."||e[0]==="*")){c=o.fastpaths(e,t)}if(c===undefined){i=o(e,t);i.prefix=a+(i.prefix||"")}else{i.output=c}return picomatch.compileRe(i,t,r,s)};picomatch.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=a;e.exports=picomatch},2429:(e,t,r)=>{"use strict";const s=r(479);const{CHAR_ASTERISK:n,CHAR_AT:o,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:a,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:g,CHAR_PLUS:h,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:_,CHAR_RIGHT_SQUARE_BRACKET:b}=r(6099);const isPathSeparator=e=>e===l||e===i;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const r=t||{};const T=e.length-1;const E=r.parts===true||r.scanToEnd===true;const v=[];const w=[];const k=[];let S=e;let P=-1;let O=0;let R=0;let A=false;let C=false;let G=false;let x=false;let D=false;let F=false;let L=false;let j=false;let M=false;let I=0;let B;let U;let H={value:"",depth:0,isGlob:false};const eos=()=>P>=T;const peek=()=>S.charCodeAt(P+1);const advance=()=>{B=U;return S.charCodeAt(++P)};while(P0){N=S.slice(0,O);S=S.slice(O);R-=O}if($&&G===true&&R>0){$=S.slice(0,R);q=S.slice(R)}else if(G===true){$="";q=S}else{$=S}if($&&$!==""&&$!=="/"&&$!==S){if(isPathSeparator($.charCodeAt($.length-1))){$=$.slice(0,-1)}}if(r.unescape===true){if(q)q=s.removeBackslashes(q);if($&&L===true){$=s.removeBackslashes($)}}const W={prefix:N,input:e,start:O,base:$,glob:q,isBrace:A,isBracket:C,isGlob:G,isExtglob:x,isGlobstar:D,negated:j};if(r.tokens===true){W.maxDepth=0;if(!isPathSeparator(U)){w.push(H)}W.tokens=w}if(r.parts===true||r.tokens===true){let t;for(let s=0;s{"use strict";const s=r(5622);const n=process.platform==="win32";const{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:c}=r(6099);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>a.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(c,"\\$1");t.toPosixSlashes=e=>e.replace(o,"/");t.removeBackslashes=e=>e.replace(i,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return n===true||s.sep==="\\"};t.escapeLast=(e,r,s)=>{const n=e.lastIndexOf(r,s);if(n===-1)return e;if(e[n-1]==="\\")return t.escapeLast(e,r,n-1);return`${e.slice(0,n)}\\${e.slice(n)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const s=r.contains?"":"^";const n=r.contains?"":"$";let o=`${s}(?:${e})${n}`;if(t.negated===true){o=`(?:^(?!${o}).*$)`}return o}},9795:e=>{ /*! queue-microtask. MIT License. Feross Aboukhadijeh */ -let t;e.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(globalThis):e=>(t||(t=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))},2113:e=>{"use strict";function reusify(e){var t=new e;var r=t;function get(){var n=t;if(n.next){t=n.next}else{t=new e;r=t}n.next=null;return n}function release(e){r.next=e;r=e}return{get:get,release:release}}e.exports=reusify},5288:(e,t,r)=>{ +let t;e.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(globalThis):e=>(t||(t=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))},2113:e=>{"use strict";function reusify(e){var t=new e;var r=t;function get(){var s=t;if(s.next){t=s.next}else{t=new e;r=t}s.next=null;return s}function release(e){r.next=e;r=e}return{get:get,release:release}}e.exports=reusify},5288:(e,t,r)=>{ /*! run-parallel. MIT License. Feross Aboukhadijeh */ -e.exports=runParallel;const n=r(9795);function runParallel(e,t){let r,s,i;let o=true;if(Array.isArray(e)){r=[];s=e.length}else{i=Object.keys(e);r={};s=i.length}function done(e){function end(){if(t)t(e,r);t=null}if(o)n(end);else end()}function each(e,t,n){r[e]=n;if(--s===0||t){done(t)}}if(!s){done(null)}else if(i){i.forEach((function(t){e[t]((function(e,r){each(t,e,r)}))}))}else{e.forEach((function(e,t){e((function(e,r){each(t,e,r)}))}))}o=false}},4966:(e,t,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:p,filterPrimitives:f,filterString:d,filterStringOrStringArray:h,filterType:g,folderExists:m,getTrailingOptions:y,trailingFunctionArgument:_,trailingOptionsArgument:b}=r(847);const{applyPatchTask:S}=r(4931);const{branchTask:v,branchLocalTask:E,deleteBranchesTask:T,deleteBranchTask:k}=r(17);const{checkIgnoreTask:R}=r(3293);const{checkIsRepoTask:C}=r(221);const{cloneTask:P,cloneMirrorTask:A}=r(3173);const{addConfigTask:O,listConfigTask:w}=r(7597);const{cleanWithOptionsTask:x,isCleanOptionsArray:M}=r(4386);const{commitTask:D}=r(5494);const{diffSummaryTask:L}=r(9241);const{fetchTask:F}=r(8823);const{hashObjectTask:j}=r(8199);const{initTask:I}=r(6016);const{logTask:N,parseLogOptions:$}=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:q,listRemotesTask:V,remoteTask:K,removeRemoteTask:Q}=r(9866);const{getResetMode:Y,resetTask:z}=r(2377);const{stashListTask:X}=r(810);const{statusTask:Z}=r(9197);const{addSubModuleTask:J,initSubModuleTask:ee,subModuleTask:te,updateSubModuleTask:re}=r(8772);const{addAnnotatedTagTask:ne,addTagTask:se,tagListTask:ie}=r(8540);const{straightThroughBufferTask:oe,straightThroughStringTask:ae}=r(2815);function Git(e,t){this._executor=new n(e.binary,e.baseDir,new i(e.maxConcurrentProcesses),t);this._logger=new o}(Git.prototype=Object.create(s.prototype)).constructor=Git;Git.prototype._logger=null;Git.prototype.customBinary=function(e){this._executor.binary=e;return this};Git.prototype.env=function(e,t){if(arguments.length===1&&typeof e==="object"){this._executor.env=e}else{(this._executor.env=this._executor.env||{})[e]=t}return this};Git.prototype.cwd=function(e){const t=typeof e!=="string"?u("Git.cwd: workingDirectory must be supplied as a string"):a((()=>{if(!m(e)){throw new Error(`Git.cwd: cannot change to non-directory "${e}"`)}return this._executor.cwd=e}));return this._runTask(t,_(arguments)||c)};Git.prototype.outputHandler=function(e){this._executor.outputHandler=e;return this};Git.prototype.init=function(e,t){return this._runTask(I(e===true,this._executor.cwd,y(arguments)),_(arguments))};Git.prototype.status=function(){return this._runTask(Z(y(arguments)),_(arguments))};Git.prototype.stashList=function(e){return this._runTask(X(b(arguments)||{},p(e)&&e||[]),_(arguments))};Git.prototype.stash=function(e,t){return this._runTask(ae(["stash",...y(arguments)]),_(arguments))};function createCloneTask(e,t,r,n){if(typeof r!=="string"){return u(`git.${e}() requires a string 'repoPath'`)}return t(r,g(n,d),y(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",P,...arguments),_(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",A,...arguments),_(arguments))};Git.prototype.mv=function(e,t){return this._runTask(B(e,t),_(arguments))};Git.prototype.checkoutLatestTag=function(e){var t=this;return this.pull((function(){t.tags((function(r,n){t.checkout(n.latest,e)}))}))};Git.prototype.commit=function(e,t,r,n){const s=_(arguments);const i=[];if(h(e)){i.push(...l(e))}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(D(i,l(g(t,h,[])),[...g(r,p,[]),...y(arguments,0,true)]),s)};Git.prototype.pull=function(e,t,r,n){return this._runTask(H(g(e,d),g(t,d),y(arguments)),_(arguments))};Git.prototype.fetch=function(e,t){return this._runTask(F(g(e,d),g(t,d),y(arguments)),_(arguments))};Git.prototype.silent=function(e){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(!!e);return this};Git.prototype.tags=function(e,t){return this._runTask(ie(y(arguments)),_(arguments))};Git.prototype.rebase=function(){return this._runTask(ae(["rebase",...y(arguments)]),_(arguments))};Git.prototype.reset=function(e){return this._runTask(z(Y(e),y(arguments)),_(arguments))};Git.prototype.revert=function(e){const t=_(arguments);if(typeof e!=="string"){return this._runTask(u("Commit must be a string"),t)}return this._runTask(ae(["revert",...y(arguments,0,true),e]),t)};Git.prototype.addTag=function(e){const t=typeof e==="string"?se(e):u("Git.addTag requires a tag name");return this._runTask(t,_(arguments))};Git.prototype.addAnnotatedTag=function(e,t){return this._runTask(ne(e,t),_(arguments))};Git.prototype.checkout=function(){const e=["checkout",...y(arguments,true)];return this._runTask(ae(e),_(arguments))};Git.prototype.checkoutBranch=function(e,t,r){return this.checkout(["-b",e,t],_(arguments))};Git.prototype.checkoutLocalBranch=function(e,t){return this.checkout(["-b",e],_(arguments))};Git.prototype.deleteLocalBranch=function(e,t,r){return this._runTask(k(e,typeof t==="boolean"?t:false),_(arguments))};Git.prototype.deleteLocalBranches=function(e,t,r){return this._runTask(T(e,typeof t==="boolean"?t:false),_(arguments))};Git.prototype.branch=function(e,t){return this._runTask(v(y(arguments)),_(arguments))};Git.prototype.branchLocal=function(e){return this._runTask(E(),_(arguments))};Git.prototype.addConfig=function(e,t,r,n){return this._runTask(O(e,t,typeof r==="boolean"?r:false),_(arguments))};Git.prototype.listConfig=function(){return this._runTask(w(),_(arguments))};Git.prototype.raw=function(e){const t=!Array.isArray(e);const r=[].slice.call(t?arguments:e,0);for(let e=0;e{const{gitP:n}=r(941);const{esModuleFactory:s,gitInstanceFactory:i,gitExportFactory:o}=r(9846);e.exports=s(o(i,{gitP:n}))},4732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__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 p={CheckRepoActions:u.CheckRepoActions,CleanOptions:c.CleanOptions,GitConstructError:n.GitConstructError,GitError:s.GitError,GitPluginError:i.GitPluginError,GitResponseError:o.GitResponseError,ResetMode:l.ResetMode,TaskConfigurationError:a.TaskConfigurationError};t.default=p},1876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitConstructError=void 0;const n=r(5757);class GitConstructError extends n.GitError{constructor(e,t){super(undefined,t);this.config=e}}t.GitConstructError=GitConstructError},5757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitError=void 0;class GitError extends Error{constructor(e,t){super(t);this.task=e;Object.setPrototypeOf(this,new.target.prototype)}}t.GitError=GitError},19:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitPluginError=void 0;const n=r(5757);class GitPluginError extends n.GitError{constructor(e,t,r){super(e,r);this.task=e;this.plugin=t;Object.setPrototypeOf(this,new.target.prototype)}}t.GitPluginError=GitPluginError},5131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitResponseError=void 0;const n=r(5757);class GitResponseError extends n.GitError{constructor(e,t){super(undefined,t||String(e));this.git=e}}t.GitResponseError=GitResponseError},740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TaskConfigurationError=void 0;const n=r(5757);class TaskConfigurationError extends n.GitError{constructor(e){super(undefined,e)}}t.TaskConfigurationError=TaskConfigurationError},9846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.gitInstanceFactory=t.gitExportFactory=t.esModuleFactory=void 0;const n=r(4966);const s=r(4732);const i=r(8078);const o=r(847);function esModuleFactory(e){return Object.defineProperties(e,{__esModule:{value:true},default:{value:e}})}t.esModuleFactory=esModuleFactory;function gitExportFactory(e,t){return Object.assign((function(...t){return e.apply(null,t)}),s.default,t||{})}t.gitExportFactory=gitExportFactory;function gitInstanceFactory(e,t){const r=new i.PluginStore;const a=o.createInstanceConfig(e&&(typeof e==="string"?{baseDir:e}:e)||{},t);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)}t.gitInstanceFactory=gitInstanceFactory},7178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitLogger=t.createLogger=t.log=void 0;const n=r(8231);const s=r(847);n.default.formatters.L=e=>String(s.filterHasLength(e)?e.length:"-");n.default.formatters.B=e=>{if(Buffer.isBuffer(e)){return e.toString("utf8")}return s.objectToString(e)};t.log=n.default("simple-git");function prefixedLogger(e,t,r){if(!t||!String(t).replace(/\s*/,"")){return!r?e:(t,...n)=>{e(t,...n);r(t,...n)}}return(n,...s)=>{e(`%s ${n}`,t,...s);if(r){r(n,...s)}}}function childLoggerName(e,t,{namespace:r}){if(typeof e==="string"){return e}const n=t&&t.namespace||"";if(n.startsWith(r)){return n.substr(r.length+1)}return n||r}function createLogger(e,r,n,i=t.log){const o=e&&`[${e}]`||"";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(t){return s.append(a,createLogger(e,u&&u.extend(t)||t))}function sibling(t,r){return s.append(a,createLogger(e,c.replace(/^[^:]+/,t),r,i))}function step(t){const r=t&&`[${t}]`||"";const n=u&&prefixedLogger(u,r)||s.NOOP;const a=prefixedLogger(i,`${o} ${r}`,n);return Object.assign(u?n:a,{key:c,label:e,child:child,sibling:sibling,debug:n,info:a,step:step})}}t.createLogger=createLogger;class GitLogger{constructor(e=t.log){this._out=e;this.error=prefixedLogger(e,"[ERROR]");this.warn=prefixedLogger(e,"[WARN]")}silent(e=false){if(e!==this._out.enabled){return}const{namespace:t}=this._out;const r=(process.env.DEBUG||"").split(",").filter((e=>!!e));const i=r.includes(t);const o=r.includes(`-${t}`);if(!e){if(o){s.remove(r,`-${t}`)}else{r.push(t)}}else{if(i){s.remove(r,t)}else{r.push(`-${t}`)}}n.default.enable(r.join(","))}}t.GitLogger=GitLogger},6086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hasBranchDeletionError=t.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,((e,[t,r])=>{const s=n.branchDeletionSuccess(t,r);e.all.push(s);e.branches[t]=s})),new s.LineParser(o,((e,[t])=>{const r=n.branchDeletionFailure(t);e.errors.push(r);e.all.push(r);e.branches[t]=r}))];const parseBranchDeletions=e=>s.parseStringResponse(new n.BranchDeletionBatch,a,e);t.parseBranchDeletions=parseBranchDeletions;function hasBranchDeletionError(e,t){return t===s.ExitCodes.ERROR&&o.test(e)}t.hasBranchDeletionError=hasBranchDeletionError},9264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.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(.*)$/,((e,[t,r,n,s])=>{e.push(!!t,true,r,n,s)})),new s.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/s,((e,[t,r,n,s])=>{e.push(!!t,false,r,n,s)}))];function parseBranchSummary(e){return s.parseStringResponse(new n.BranchSummaryResult,i,e)}t.parseBranchSummary=parseBranchSummary},3026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCommitResult=void 0;const n=r(847);const s=[new n.LineParser(/\[([^\s]+)( \([^)]+\))? ([^\]]+)/,((e,[t,r,n])=>{e.branch=t;e.commit=n;e.root=!!r})),new n.LineParser(/\s*Author:\s(.+)/i,((e,[t])=>{const r=t.split("<");const n=r.pop();if(!n||!n.includes("@")){return}e.author={email:n.substr(0,n.length-1),name:r.join("<").trim()}})),new n.LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,((e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0;e.summary.insertions=parseInt(r,10)||0;e.summary.deletions=parseInt(n,10)||0})),new n.LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,((e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0;const s=parseInt(r,10)||0;if(n==="-"){e.summary.deletions=s}else if(n==="+"){e.summary.insertions=s}}))];function parseCommitResult(e){const t={author:null,branch:"",commit:"",root:false,summary:{changes:0,insertions:0,deletions:0}};return n.parseStringResponse(t,s,e)}t.parseCommitResult=parseCommitResult},2024:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseDiffResult=void 0;const n=r(4781);function parseDiffResult(e){const t=e.trim().split("\n");const r=new n.DiffSummary;readSummaryLine(r,t.pop());for(let e=0,n=t.length;e ([0-9.]+) ([a-z]+)$/);if(r){t.push({file:r[1].trim(),before:+r[2],after:+r[3],binary:true});return true}return false}},6254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseFetchResult=void 0;const n=r(847);const s=[new n.LineParser(/From (.+)$/,((e,[t])=>{e.remote=t})),new n.LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,((e,[t,r])=>{e.branches.push({name:t,tracking:r})})),new n.LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,((e,[t,r])=>{e.tags.push({name:t,tracking:r})}))];function parseFetchResult(e,t){const r={raw:e,remote:null,branches:[],tags:[]};return n.parseStringResponse(r,s,e,t)}t.parseFetchResult=parseFetchResult},9729:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createListLogSummaryParser=t.SPLITTER=t.COMMIT_BOUNDARY=t.START_BOUNDARY=void 0;const n=r(847);const s=r(2024);t.START_BOUNDARY="òòòòòò ";t.COMMIT_BOUNDARY=" òò";t.SPLITTER=" ò ";const i=["hash","date","message","refs","author_name","author_email"];function lineBuilder(e,t){return t.reduce(((t,r,n)=>{t[r]=e[n]||"";return t}),Object.create({diff:null}))}function createListLogSummaryParser(e=t.SPLITTER,r=i){return function(i){const o=n.toLinesWithContent(i,true,t.START_BOUNDARY).map((function(n){const i=n.trim().split(t.COMMIT_BOUNDARY);const o=lineBuilder(i[0].trim().split(e),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}}}t.createListLogSummaryParser=createListLogSummaryParser},6412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseMergeDetail=t.parseMergeResult=void 0;const n=r(1651);const s=r(847);const i=r(5658);const o=[new s.LineParser(/^Auto-merging\s+(.+)$/,((e,[t])=>{e.merges.push(t)})),new s.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,((e,[t,r])=>{e.conflicts.push(new n.MergeSummaryConflict(t,r))})),new s.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,((e,[t,r,s])=>{e.conflicts.push(new n.MergeSummaryConflict(t,r,{deleteRef:s}))})),new s.LineParser(/^CONFLICT\s+\((.+)\):/,((e,[t])=>{e.conflicts.push(new n.MergeSummaryConflict(t,null))})),new s.LineParser(/^Automatic merge failed;\s+(.+)$/,((e,[t])=>{e.result=t}))];const parseMergeResult=(e,r)=>Object.assign(t.parseMergeDetail(e,r),i.parsePullResult(e,r));t.parseMergeResult=parseMergeResult;const parseMergeDetail=e=>s.parseStringResponse(new n.MergeSummaryDetail,o,e);t.parseMergeDetail=parseMergeDetail},7444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseMoveResult=void 0;const n=r(847);const s=[new n.LineParser(/^Renaming (.+) to (.+)$/,((e,[t,r])=>{e.moves.push({from:t,to:r})}))];function parseMoveResult(e){return n.parseStringResponse({moves:[]},s,e)}t.parseMoveResult=parseMoveResult},5658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parsePullResult=t.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,((e,[t,r,n])=>{e.files.push(t);if(r){e.insertions[t]=r.length}if(n){e.deletions[t]=n.length}})),new s.LineParser(a,((e,[t,,r,,n])=>{if(r!==undefined||n!==undefined){e.summary.changes=+t||0;e.summary.insertions=+r||0;e.summary.deletions=+n||0;return true}return false})),new s.LineParser(u,((e,[t,r])=>{s.append(e.files,r);s.append(t==="create"?e.created:e.deleted,r)}))];const parsePullDetail=(e,t)=>s.parseStringResponse(new n.PullSummary,c,e,t);t.parsePullDetail=parsePullDetail;const parsePullResult=(e,r)=>Object.assign(new n.PullSummary,t.parsePullDetail(e,r),i.parseRemoteMessages(e,r));t.parsePullResult=parsePullResult},8530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parsePushDetail=t.parsePushResult=void 0;const n=r(847);const s=r(2661);function pushResultPushedItem(e,t,r){const n=r.includes("deleted");const s=r.includes("tag")||/^refs\/tags/.test(e);const i=!r.includes("new");return{deleted:n,tag:s,branch:!s,new:!i,alreadyUpdated:i,local:e,remote:t}}const i=[new n.LineParser(/^Pushing to (.+)$/,((e,[t])=>{e.repo=t})),new n.LineParser(/^updating local tracking ref '(.+)'/,((e,[t])=>{e.ref=Object.assign(Object.assign({},e.ref||{}),{local:t})})),new n.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,((e,[t,r,n])=>{e.pushed.push(pushResultPushedItem(t,r,n))})),new n.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,((e,[t,r,n])=>{e.branch=Object.assign(Object.assign({},e.branch||{}),{local:t,remote:r,remoteName:n})})),new n.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,((e,[t,r,n,s])=>{e.update={head:{local:t,remote:r},hash:{from:n,to:s}}}))];const parsePushResult=(e,r)=>{const n=t.parsePushDetail(e,r);const i=s.parseRemoteMessages(e,r);return Object.assign(Object.assign({},n),i)};t.parsePushResult=parsePushResult;const parsePushDetail=(e,t)=>n.parseStringResponse({pushed:[]},i,e,t);t.parsePushDetail=parsePushDetail},2661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RemoteMessageSummary=t.parseRemoteMessages=void 0;const n=r(847);const s=r(3565);const i=[new n.RemoteLineParser(/^remote:\s*(.+)$/,((e,[t])=>{e.remoteMessages.all.push(t.trim());return false})),...s.remoteMessagesObjectParsers,new n.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],((e,[t])=>{e.remoteMessages.pullRequestUrl=t})),new n.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],((e,[t,r,s])=>{e.remoteMessages.vulnerabilities={count:n.asNumber(t),summary:r,url:s}}))];function parseRemoteMessages(e,t){return n.parseStringResponse({remoteMessages:new RemoteMessageSummary},i,t)}t.parseRemoteMessages=parseRemoteMessages;class RemoteMessageSummary{constructor(){this.all=[]}}t.RemoteMessageSummary=RemoteMessageSummary},3565:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.remoteMessagesObjectParsers=void 0;const n=r(847);function objectEnumerationResult(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function asObjectCount(e){const t=/^\s*(\d+)/.exec(e);const r=/delta (\d+)/i.exec(e);return{count:n.asNumber(t&&t[1]||"0"),delta:n.asNumber(r&&r[1]||"0")}}t.remoteMessagesObjectParsers=[new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,((e,[t,r])=>{const s=t.toLowerCase();const i=objectEnumerationResult(e.remoteMessages);Object.assign(i,{[s]:n.asNumber(r)})})),new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,((e,[t,r])=>{const s=t.toLowerCase();const i=objectEnumerationResult(e.remoteMessages);Object.assign(i,{[s]:n.asNumber(r)})})),new n.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,((e,[t,r,s])=>{const i=objectEnumerationResult(e.remoteMessages);i.total=asObjectCount(t);i.reused=asObjectCount(r);i.packReused=n.asNumber(s)}))]},2581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.commandConfigPrefixingPlugin=void 0;const n=r(847);function commandConfigPrefixingPlugin(e){const t=n.prefixedArray(e,"-c");return{type:"spawn.args",action(e){return[...t,...e]}}}t.commandConfigPrefixingPlugin=commandConfigPrefixingPlugin},8078:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(2581),t);s(r(5067),t);s(r(1738),t);s(r(8436),t);s(r(9504),t)},5067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PluginStore=void 0;const n=r(847);class PluginStore{constructor(){this.plugins=new Set}add(e){const t=[];n.asArray(e).forEach((e=>e&&this.plugins.add(n.append(t,e))));return()=>{t.forEach((e=>this.plugins.delete(e)))}}exec(e,t,r){let n=t;const s=Object.freeze(Object.create(r));for(const t of this.plugins){if(t.type===e){n=t.action(n,s)}}return n}}t.PluginStore=PluginStore},1738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.progressMonitorPlugin=void 0;const n=r(847);function progressMonitorPlugin(e){const t="--progress";const r=["checkout","clone","fetch","pull","push"];const s={type:"spawn.after",action(r,s){var i;if(!s.commands.includes(t)){return}(i=s.spawned.stderr)===null||i===void 0?void 0:i.on("data",(t=>{const r=/^([a-zA-Z ]+):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(t.toString("utf8"));if(!r){return}e({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(e,s){if(!r.includes(s.method)){return e}return n.including(e,t)}};return[i,s]}t.progressMonitorPlugin=progressMonitorPlugin;function progressEventStage(e){return String(e.toLowerCase().split(" ",1))||"unknown"}},8436:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},9504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.timeoutPlugin=void 0;const n=r(19);function timeoutPlugin({block:e}){if(e>0){return{type:"spawn.after",action(t,r){var s,i;let o;function wait(){o&&clearTimeout(o);o=setTimeout(kill,e)}function stop(){var e,t;(e=r.spawned.stdout)===null||e===void 0?void 0:e.off("data",wait);(t=r.spawned.stderr)===null||t===void 0?void 0:t.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()}}}}t.timeoutPlugin=timeoutPlugin},3755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSingleBranchDeleteFailure=t.branchDeletionFailure=t.branchDeletionSuccess=t.BranchDeletionBatch=void 0;class BranchDeletionBatch{constructor(){this.all=[];this.branches={};this.errors=[]}get success(){return!this.errors.length}}t.BranchDeletionBatch=BranchDeletionBatch;function branchDeletionSuccess(e,t){return{branch:e,hash:t,success:true}}t.branchDeletionSuccess=branchDeletionSuccess;function branchDeletionFailure(e){return{branch:e,hash:null,success:false}}t.branchDeletionFailure=branchDeletionFailure;function isSingleBranchDeleteFailure(e){return e.success}t.isSingleBranchDeleteFailure=isSingleBranchDeleteFailure},4446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BranchSummaryResult=void 0;class BranchSummaryResult{constructor(){this.all=[];this.branches={};this.current="";this.detached=false}push(e,t,r,n,s){if(e){this.detached=t;this.current=r}this.all.push(r);this.branches[r]={current:e,name:r,commit:n,label:s}}}t.BranchSummaryResult=BranchSummaryResult},9926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCheckIgnore=void 0;const parseCheckIgnore=e=>e.split(/\n/g).map((e=>e.trim())).filter((e=>!!e));t.parseCheckIgnore=parseCheckIgnore},5689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cleanSummaryParser=t.CleanResponse=void 0;const n=r(847);class CleanResponse{constructor(e){this.dryRun=e;this.paths=[];this.files=[];this.folders=[]}}t.CleanResponse=CleanResponse;const s=/^[a-z]+\s*/i;const i=/^[a-z]+\s+[a-z]+\s*/i;const o=/\/$/;function cleanSummaryParser(e,t){const r=new CleanResponse(e);const a=e?i:s;n.toLinesWithContent(t).forEach((e=>{const t=e.replace(a,"");r.paths.push(t);(o.test(t)?r.folders:r.files).push(t)}));return r}t.cleanSummaryParser=cleanSummaryParser},7219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.configListParser=t.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(((e,t)=>Object.assign(e,this.values[t])),{})}return this._all}addFile(e){if(!(e in this.values)){const t=n.last(this.files);this.values[e]=t?Object.create(this.values[t]):{};this.files.push(e)}return this.values[e]}addValue(e,t,r){const n=this.addFile(e);if(!n.hasOwnProperty(t)){n[t]=r}else if(Array.isArray(n[t])){n[t].push(r)}else{n[t]=[n[t],r]}this._all=undefined}}t.ConfigList=ConfigList;function configListParser(e){const t=new ConfigList;const r=e.split("\0");for(let e=0,s=r.length-1;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiffSummary=void 0;class DiffSummary{constructor(){this.changed=0;this.deletions=0;this.insertions=0;this.files=[]}}t.DiffSummary=DiffSummary},860:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FileStatusSummary=t.fromPathRegex=void 0;t.fromPathRegex=/^(.+) -> (.+)$/;class FileStatusSummary{constructor(e,r,n){this.path=e;this.index=r;this.working_dir=n;if("R"===r+n){const r=t.fromPathRegex.exec(e)||[null,e,e];this.from=r[1]||"";this.path=r[2]||""}}}t.FileStatusSummary=FileStatusSummary},9999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseGetRemotesVerbose=t.parseGetRemotes=void 0;const n=r(847);function parseGetRemotes(e){const t={};forEach(e,(([e])=>t[e]={name:e}));return Object.values(t)}t.parseGetRemotes=parseGetRemotes;function parseGetRemotesVerbose(e){const t={};forEach(e,(([e,r,n])=>{if(!t.hasOwnProperty(e)){t[e]={name:e,refs:{fetch:"",push:""}}}if(n&&r){t[e].refs[n.replace(/[^a-z]/g,"")]=r}}));return Object.values(t)}t.parseGetRemotesVerbose=parseGetRemotesVerbose;function forEach(e,t){n.forEachLineWithContent(e,(e=>t(e.split(/\s+/))))}},8690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseInit=t.InitSummary=void 0;class InitSummary{constructor(e,t,r,n){this.bare=e;this.path=t;this.existing=r;this.gitDir=n}}t.InitSummary=InitSummary;const r=/^Init.+ repository in (.+)$/;const n=/^Rein.+ in (.+)$/;function parseInit(e,t,s){const i=String(s).trim();let o;if(o=r.exec(i)){return new InitSummary(e,t,false,o[1])}if(o=n.exec(i)){return new InitSummary(e,t,true,o[1])}let a="";const u=i.split(" ");while(u.length){const e=u.shift();if(e==="in"){a=u.join(" ");break}}return new InitSummary(e,t,/^re/i.test(i),a)}t.parseInit=parseInit},1651:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MergeSummaryDetail=t.MergeSummaryConflict=void 0;class MergeSummaryConflict{constructor(e,t=null,r){this.reason=e;this.file=t;this.meta=r}toString(){return`${this.file}:${this.reason}`}}t.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"}}t.MergeSummaryDetail=MergeSummaryDetail},3567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.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}}}t.PullSummary=PullSummary},6790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseStatusSummary=t.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}}t.StatusSummary=StatusSummary;var i;(function(e){e["ADDED"]="A";e["DELETED"]="D";e["MODIFIED"]="M";e["RENAMED"]="R";e["COPIED"]="C";e["UNMERGED"]="U";e["UNTRACKED"]="?";e["IGNORED"]="!";e["NONE"]=" "})(i||(i={}));function renamedFile(e){const t=/^(.+) -> (.+)$/.exec(e);if(!t){return{from:e,to:e}}return{from:String(t[1]),to:String(t[2])}}function parser(e,t,r){return[`${e}${t}`,r]}function conflicts(e,...t){return t.map((t=>parser(e,t,((e,t)=>n.append(e.conflicted,t)))))}const o=new Map([parser(i.NONE,i.ADDED,((e,t)=>n.append(e.created,t))),parser(i.NONE,i.DELETED,((e,t)=>n.append(e.deleted,t))),parser(i.NONE,i.MODIFIED,((e,t)=>n.append(e.modified,t))),parser(i.ADDED,i.NONE,((e,t)=>n.append(e.created,t)&&n.append(e.staged,t))),parser(i.ADDED,i.MODIFIED,((e,t)=>n.append(e.created,t)&&n.append(e.staged,t)&&n.append(e.modified,t))),parser(i.DELETED,i.NONE,((e,t)=>n.append(e.deleted,t)&&n.append(e.staged,t))),parser(i.MODIFIED,i.NONE,((e,t)=>n.append(e.modified,t)&&n.append(e.staged,t))),parser(i.MODIFIED,i.MODIFIED,((e,t)=>n.append(e.modified,t)&&n.append(e.staged,t))),parser(i.RENAMED,i.NONE,((e,t)=>{n.append(e.renamed,renamedFile(t))})),parser(i.RENAMED,i.MODIFIED,((e,t)=>{const r=renamedFile(t);n.append(e.renamed,r);n.append(e.modified,r.to)})),parser(i.UNTRACKED,i.UNTRACKED,((e,t)=>n.append(e.not_added,t))),...conflicts(i.ADDED,i.ADDED,i.UNMERGED),...conflicts(i.DELETED,i.DELETED,i.UNMERGED),...conflicts(i.UNMERGED,i.ADDED,i.DELETED,i.UNMERGED),["##",(e,t)=>{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(t);e.ahead=a&&+a[1]||0;a=n.exec(t);e.behind=a&&+a[1]||0;a=s.exec(t);e.current=a&&a[1];a=i.exec(t);e.tracking=a&&a[1];a=o.exec(t);e.current=a&&a[1]||e.current}]]);const parseStatusSummary=function(e){const t=e.trim().split("\n");const r=new StatusSummary;for(let e=0,n=t.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseTagList=t.TagList=void 0;class TagList{constructor(e,t){this.all=e;this.latest=t}}t.TagList=TagList;const parseTagList=function(e,t=false){const r=e.split("\n").map(trimmed).filter(Boolean);if(!t){r.sort((function(e,t){const r=e.split(".");const n=t.split(".");if(r.length===1||n.length===1){return singleSorted(toNumber(r[0]),toNumber(n[0]))}for(let e=0,t=Math.max(r.length,n.length);ee.indexOf(".")>=0));return new TagList(r,n)};t.parseTagList=parseTagList;function singleSorted(e,t){const r=isNaN(e);const n=isNaN(t);if(r!==n){return r?1:-1}return r?sorted(e,t):0}function sorted(e,t){return e===t?0:e>t?1:-1}function trimmed(e){return e.trim()}function toNumber(e){if(typeof e==="string"){return parseInt(e.replace(/^\D+/g,""),10)||0}return 0}},8543:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.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(e,t,r){this._executor=e;this._scheduler=t;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(e){this._queue.push(e);return this._chain=this._chain.then((()=>this.attemptTask(e)))}attemptTask(e){return n(this,void 0,void 0,(function*(){const t=yield this._scheduler.next();const onQueueComplete=()=>this._queue.complete(e);try{const{logger:r}=this._queue.attempt(e);return yield o.isEmptyTask(e)?this.attemptEmptyTask(e,r):this.attemptRemoteTask(e,r)}catch(t){throw this.onFatalException(e,t)}finally{onQueueComplete();t()}}))}onFatalException(e,t){const r=t instanceof i.GitError?Object.assign(t,{task:e}):new i.GitError(e,t&&String(t));this._chain=Promise.resolve();this._queue.fatal(r);return r}attemptRemoteTask(e,t){return n(this,void 0,void 0,(function*(){const r=this._plugins.exec("spawn.args",[...e.commands],pluginContext(e,e.commands));const n=yield this.gitResponse(e,this.binary,r,this.outputHandler,t.step("SPAWN"));const s=yield this.handleTaskData(e,n,t.step("HANDLE"));t(`passing response to task's parser as a %s`,e.format);if(o.isBufferTask(e)){return a.callTaskParser(e.parser,s)}return a.callTaskParser(e.parser,s.asStrings())}))}attemptEmptyTask(e,t){return n(this,void 0,void 0,(function*(){t(`empty task bypassing child process to call to task's parser`);return e.parser()}))}handleTaskData({onError:e,concatStdErr:t},{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&&e){o.info(`exitCode=%s handling with custom error handler`);o(`concatenate stdErr to stdOut: %j`,t);return e(r,Buffer.concat([...t?s:[],...i]).toString("utf-8"),(e=>{o.info(`custom error handler treated as success`);o(`custom error returned a %s`,a.objectToString(e));u(new a.GitOutputStreams(Buffer.isBuffer(e)?e:Buffer.from(String(e)),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(t){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(e,t,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 p=false;let f;function attemptClose(e,t="retry"){if(p||l.length||c.length){o.info(`exitCode=%s event=%s rejection=%o`,e,t,f);u({stdOut:c,stdErr:l,exitCode:e,rejection:f});p=true}if(!p){p=true;setTimeout((()=>attemptClose(e,"deferred")),50);o("received %s event before content on stdOut/stdErr",t)}}o.info(`%s %o`,t,r);o("%O",a);const d=s.spawn(t,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",(e=>attemptClose(e,"close")));d.on("exit",(e=>attemptClose(e,"exit")));if(i){o(`Passing child process stdOut/stdErr to custom outputHandler`);i(t,d.stdout,d.stderr,[...r])}this._plugins.exec("spawn.after",undefined,Object.assign(Object.assign({},pluginContext(e,r)),{spawned:d,kill(e){if(d.killed){return}f=e;d.kill("SIGINT")}}))}))}))}}t.GitExecutorChain=GitExecutorChain;function pluginContext(e,t){return{method:a.first(e.commands)||"",commands:t}}function onErrorReceived(e,t){return r=>{t(`[ERROR] child process exception %o`,r);e.push(Buffer.from(String(r.stack),"ascii"))}}function onDataReceived(e,t,r,n){return s=>{r(`%s received %L bytes`,t,s);n(`%B`,s);e.push(s)}}},4701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitExecutor=void 0;const n=r(8543);class GitExecutor{constructor(e="git",t,r,s){this.binary=e;this.cwd=t;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(e){return this._chain.push(e)}}t.GitExecutor=GitExecutor},941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.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(...e){let t;let r=Promise.resolve();try{t=s.gitInstanceFactory(...e)}catch(e){r=Promise.reject(e)}function builderReturn(){return n}function chainReturn(){return r}const n=[...i,...o].reduce(((e,r)=>{const n=o.includes(r);const s=n?asyncWrapper(r,t):syncWrapper(r,t,e);const i=n?chainReturn:builderReturn;Object.defineProperty(e,r,{enumerable:false,configurable:false,value:t?s:i});return e}),{});return n;function asyncWrapper(e,t){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 "+e)}return r.then((function(){return new Promise((function(r,s){const callback=(e,t)=>{if(e){return s(toError(e))}r(t)};n.push(callback);t[e].apply(t,n)}))}))}}function syncWrapper(e,t,r){return(...n)=>{t[e](...n);return r}}}t.gitP=gitP;function toError(e){if(e instanceof Error){return e}if(typeof e==="string"){return new Error(e)}return new n.GitResponseError(e)}},3421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Scheduler=void 0;const n=r(847);const s=r(9819);const i=r(7178);const o=i.createLogger("","scheduler");const a=(()=>{let e=0;return()=>{e++;const{promise:t,done:r}=s.createDeferred();return{promise:t,done:r,id:e}}})();class Scheduler{constructor(e=2){this.concurrency=e;this.pending=[];this.running=[];o(`Constructed, concurrency=%s`,e)}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 e=n.append(this.running,this.pending.shift());o(`Attempting id=%s`,e.id);e.done((()=>{o(`Completing id=`,e.id);n.remove(this.running,e);this.schedule()}))}next(){const{promise:e,id:t}=n.append(this.pending,a());o(`Scheduling id=%s`,t);this.schedule();return e}}t.Scheduler=Scheduler},6676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TasksPendingQueue=void 0;const n=r(5757);const s=r(7178);class TasksPendingQueue{constructor(e="GitExecutor"){this.logLabel=e;this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){const t=TasksPendingQueue.getName(e.commands[0]);const r=s.createLogger(this.logLabel,t);return{task:e,logger:r,name:t}}push(e){const t=this.createProgress(e);t.logger("Adding task to the queue, commands = %o",e.commands);this._queue.set(e,t);return t}fatal(e){for(const[t,{logger:r}]of Array.from(this._queue.entries())){if(t===e.task){r.info(`Failed %o`,e);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`,e.message)}this.complete(t)}if(this._queue.size!==0){throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}}complete(e){const t=this.withProgress(e);if(t){this._queue.delete(e)}}attempt(e){const t=this.withProgress(e);if(!t){throw new n.GitError(undefined,"TasksPendingQueue: attempt called for an unknown task")}t.logger("Starting task");return t}static getName(e="empty"){return`task:${e}:${++TasksPendingQueue.counter}`}}t.TasksPendingQueue=TasksPendingQueue;TasksPendingQueue.counter=0},999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SimpleGitApi=void 0;const n=r(8850);const s=r(1435);const i=r(2815);const o=r(847);class SimpleGitApi{constructor(e){this._executor=e}_runTask(e,t){const r=this._executor.chain();const s=r.push(e);if(t){n.taskCallback(e,s,t)}return Object.create(this,{then:{value:s.then.bind(s)},catch:{value:s.catch.bind(s)},_executor:{value:r}})}add(e){return this._runTask(i.straightThroughStringTask(["add",...o.asArray(e)]),o.trailingFunctionArgument(arguments))}push(){const e=s.pushTask({remote:o.filterType(arguments[0],o.filterString),branch:o.filterType(arguments[1],o.filterString)},o.getTrailingOptions(arguments));return this._runTask(e,o.trailingFunctionArgument(arguments))}}t.SimpleGitApi=SimpleGitApi},8850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.taskCallback=void 0;const n=r(5131);const s=r(847);function taskCallback(e,t,r=s.NOOP){const onSuccess=e=>{r(null,e)};const onError=t=>{if((t===null||t===void 0?void 0:t.task)===e){if(t instanceof n.GitResponseError){return r(addDeprecationNoticeToError(t))}r(t)}};t.then(onSuccess,onError)}t.taskCallback=taskCallback;function addDeprecationNoticeToError(e){let log=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`);log=s.NOOP};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(descriptorReducer,{}));function descriptorReducer(t,r){if(r in e){return t}t[r]={enumerable:false,configurable:false,get(){log(r);return e.git[r]}};return t}}},4931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.applyPatchTask=void 0;const n=r(2815);function applyPatchTask(e,t){return n.straightThroughStringTask(["apply",...t,...e])}t.applyPatchTask=applyPatchTask},17:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deleteBranchTask=t.deleteBranchesTask=t.branchLocalTask=t.branchTask=t.containsDeleteBranchCommand=void 0;const n=r(5131);const s=r(6086);const i=r(9264);function containsDeleteBranchCommand(e){const t=["-d","-D","--delete"];return e.some((e=>t.includes(e)))}t.containsDeleteBranchCommand=containsDeleteBranchCommand;function branchTask(e){const t=containsDeleteBranchCommand(e);const r=["branch",...e];if(r.length===1){r.push("-a")}if(!r.includes("-v")){r.splice(1,0,"-v")}return{format:"utf-8",commands:r,parser(e,r){if(t){return s.parseBranchDeletions(e,r).all[0]}return i.parseBranchSummary(e)}}}t.branchTask=branchTask;function branchLocalTask(){const e=i.parseBranchSummary;return{format:"utf-8",commands:["branch","-v"],parser:e}}t.branchLocalTask=branchLocalTask;function deleteBranchesTask(e,t=false){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser(e,t){return s.parseBranchDeletions(e,t)},onError(e,t,r,n){if(!s.hasBranchDeletionError(t,e)){return n(t)}r(t)},concatStdErr:true}}t.deleteBranchesTask=deleteBranchesTask;function deleteBranchTask(e,t=false){const r={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser(t,r){return s.parseBranchDeletions(t,r).branches[e]},onError(e,t,i,o){if(!s.hasBranchDeletionError(t,e)){return o(t)}throw new n.GitResponseError(r.parser(t,""),t)},concatStdErr:true};return r}t.deleteBranchTask=deleteBranchTask},3293:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkIgnoreTask=void 0;const n=r(9926);function checkIgnoreTask(e){return{commands:["check-ignore",...e],format:"utf-8",parser:n.parseCheckIgnore}}t.checkIgnoreTask=checkIgnoreTask},221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkIsBareRepoTask=t.checkIsRepoRootTask=t.checkIsRepoTask=t.CheckRepoActions=void 0;const n=r(847);var s;(function(e){e["BARE"]="bare";e["IN_TREE"]="tree";e["IS_REPO_ROOT"]="root"})(s=t.CheckRepoActions||(t.CheckRepoActions={}));const onError=(e,t,r,s)=>{if(e===n.ExitCodes.UNCLEAN&&isNotRepoMessage(t)){return r("false")}s(t)};const parser=e=>e.trim()==="true";function checkIsRepoTask(e){switch(e){case s.BARE:return checkIsBareRepoTask();case s.IS_REPO_ROOT:return checkIsRepoRootTask()}const t=["rev-parse","--is-inside-work-tree"];return{commands:t,format:"utf-8",onError:onError,parser:parser}}t.checkIsRepoTask=checkIsRepoTask;function checkIsRepoRootTask(){const e=["rev-parse","--git-dir"];return{commands:e,format:"utf-8",onError:onError,parser(e){return/^\.(git)?$/.test(e.trim())}}}t.checkIsRepoRootTask=checkIsRepoRootTask;function checkIsBareRepoTask(){const e=["rev-parse","--is-bare-repository"];return{commands:e,format:"utf-8",onError:onError,parser:parser}}t.checkIsBareRepoTask=checkIsBareRepoTask;function isNotRepoMessage(e){return/(Not a git repository|Kein Git-Repository)/i.test(e)}},4386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCleanOptionsArray=t.cleanTask=t.cleanWithOptionsTask=t.CleanOptions=t.CONFIG_ERROR_UNKNOWN_OPTION=t.CONFIG_ERROR_MODE_REQUIRED=t.CONFIG_ERROR_INTERACTIVE_MODE=void 0;const n=r(5689);const s=r(847);const i=r(2815);t.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";t.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';t.CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ";var o;(function(e){e["DRY_RUN"]="n";e["FORCE"]="f";e["IGNORED_INCLUDED"]="x";e["IGNORED_ONLY"]="X";e["EXCLUDING"]="e";e["QUIET"]="q";e["RECURSIVE"]="d"})(o=t.CleanOptions||(t.CleanOptions={}));const a=new Set(["i",...s.asStringArray(Object.values(o))]);function cleanWithOptionsTask(e,r){const{cleanMode:n,options:s,valid:o}=getCleanOptions(e);if(!n){return i.configurationErrorTask(t.CONFIG_ERROR_MODE_REQUIRED)}if(!o.options){return i.configurationErrorTask(t.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e))}s.push(...r);if(s.some(isInteractiveMode)){return i.configurationErrorTask(t.CONFIG_ERROR_INTERACTIVE_MODE)}return cleanTask(n,s)}t.cleanWithOptionsTask=cleanWithOptionsTask;function cleanTask(e,t){const r=["clean",`-${e}`,...t];return{commands:r,format:"utf-8",parser(t){return n.cleanSummaryParser(e===o.DRY_RUN,t)}}}t.cleanTask=cleanTask;function isCleanOptionsArray(e){return Array.isArray(e)&&e.every((e=>a.has(e)))}t.isCleanOptionsArray=isCleanOptionsArray;function getCleanOptions(e){let t;let r=[];let n={cleanMode:false,options:true};e.replace(/[^a-z]i/g,"").split("").forEach((e=>{if(isCleanMode(e)){t=e;n.cleanMode=true}else{n.options=n.options&&isKnownOption(r[r.length]=`-${e}`)}}));return{cleanMode:t,options:r,valid:n}}function isCleanMode(e){return e===o.FORCE||e===o.DRY_RUN}function isKnownOption(e){return/^-[a-z]$/i.test(e)&&a.has(e.charAt(1))}function isInteractiveMode(e){if(/^-[^\-]/.test(e)){return e.indexOf("i")>0}return e==="--interactive"}},3173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloneMirrorTask=t.cloneTask=void 0;const n=r(2815);const s=r(847);function cloneTask(e,t,r){const s=["clone",...r];if(typeof e==="string"){s.push(e)}if(typeof t==="string"){s.push(t)}return n.straightThroughStringTask(s)}t.cloneTask=cloneTask;function cloneMirrorTask(e,t,r){s.append(r,"--mirror");return cloneTask(e,t,r)}t.cloneMirrorTask=cloneMirrorTask},5494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.commitTask=void 0;const n=r(3026);function commitTask(e,t,r){const s=["commit"];e.forEach((e=>s.push("-m",e)));s.push(...t,...r);return{commands:s,format:"utf-8",parser:n.parseCommitResult}}t.commitTask=commitTask},7597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.listConfigTask=t.addConfigTask=void 0;const n=r(7219);function addConfigTask(e,t,r=false){const n=["config","--local"];if(r){n.push("--add")}n.push(e,t);return{commands:n,format:"utf-8",parser(e){return e}}}t.addConfigTask=addConfigTask;function listConfigTask(){return{commands:["config","--list","--show-origin","--null"],format:"utf-8",parser(e){return n.configListParser(e)}}}t.listConfigTask=listConfigTask},9241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.diffSummaryTask=void 0;const n=r(2024);function diffSummaryTask(e){return{commands:["diff","--stat=4096",...e],format:"utf-8",parser(e){return n.parseDiffResult(e)}}}t.diffSummaryTask=diffSummaryTask},8823:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fetchTask=void 0;const n=r(6254);function fetchTask(e,t,r){const s=["fetch",...r];if(e&&t){s.push(e,t)}return{commands:s,format:"utf-8",parser:n.parseFetchResult}}t.fetchTask=fetchTask},8199:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hashObjectTask=void 0;const n=r(2815);function hashObjectTask(e,t){const r=["hash-object",e];if(t){r.push("-w")}return n.straightThroughStringTask(r,true)}t.hashObjectTask=hashObjectTask},6016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.initTask=void 0;const n=r(8690);const s="--bare";function hasBareCommand(e){return e.includes(s)}function initTask(e=false,t,r){const i=["init",...r];if(e&&!hasBareCommand(i)){i.splice(1,0,s)}return{commands:i,concatStdErr:false,format:"utf-8",parser(e){return n.parseInit(i.includes("--bare"),t,e)}}}t.initTask=initTask},8627:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logTask=t.parseLogOptions=void 0;const n=r(9729);const s=r(847);var i;(function(e){e[e["--pretty"]=0]="--pretty";e[e["max-count"]=1]="max-count";e[e["maxCount"]=2]="maxCount";e[e["n"]=3]="n";e[e["file"]=4]="file";e[e["format"]=5]="format";e[e["from"]=6]="from";e[e["to"]=7]="to";e[e["splitter"]=8]="splitter";e[e["symmetric"]=9]="symmetric";e[e["multiLine"]=10]="multiLine";e[e["strictDate"]=11]="strictDate"})(i||(i={}));function prettyFormat(e,t){const r=[];const n=[];Object.keys(e).forEach((t=>{r.push(t);n.push(String(e[t]))}));return[r,n.join(t)]}function userOptions(e){const t=Object.assign({},e);Object.keys(e).forEach((e=>{if(e in i){delete t[e]}}));return t}function parseLogOptions(e={},t=[]){const r=e.splitter||n.SPLITTER;const i=e.format||{hash:"%H",date:e.strictDate===false?"%ai":"%aI",message:"%s",refs:"%D",body:e.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}`,...t];const l=e.n||e["max-count"]||e.maxCount;if(l){c.push(`--max-count=${l}`)}if(e.from&&e.to){const t=e.symmetric!==false?"...":"..";u.push(`${e.from}${t}${e.to}`)}if(e.file){u.push("--follow",e.file)}s.appendTaskOptions(userOptions(e),c);return{fields:o,splitter:r,commands:[...c,...u]}}t.parseLogOptions=parseLogOptions;function logTask(e,t,r){return{commands:["log",...r],format:"utf-8",parser:n.createListLogSummaryParser(e,t)}}t.logTask=logTask},8829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeTask=void 0;const n=r(5131);const s=r(6412);const i=r(2815);function mergeTask(e){if(!e.length){return i.configurationErrorTask("Git.merge requires at least one option")}return{commands:["merge",...e],format:"utf-8",parser(e,t){const r=s.parseMergeResult(e,t);if(r.failed){throw new n.GitResponseError(r)}return r}}}t.mergeTask=mergeTask},6520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moveTask=void 0;const n=r(7444);const s=r(847);function moveTask(e,t){return{commands:["mv","-v",...s.asArray(e),t],format:"utf-8",parser:n.parseMoveResult}}t.moveTask=moveTask},4636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pullTask=void 0;const n=r(5658);function pullTask(e,t,r){const s=["pull",...r];if(e&&t){s.splice(1,0,e,t)}return{commands:s,format:"utf-8",parser(e,t){return n.parsePullResult(e,t)}}}t.pullTask=pullTask},1435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pushTask=t.pushTagsTask=void 0;const n=r(8530);const s=r(847);function pushTagsTask(e={},t){s.append(t,"--tags");return pushTask(e,t)}t.pushTagsTask=pushTagsTask;function pushTask(e={},t){const r=["push",...t];if(e.branch){r.splice(1,0,e.branch)}if(e.remote){r.splice(1,0,e.remote)}s.remove(r,"-v");s.append(r,"--verbose");s.append(r,"--porcelain");return{commands:r,format:"utf-8",parser:n.parsePushResult}}t.pushTask=pushTask},9866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.removeRemoteTask=t.remoteTask=t.listRemotesTask=t.getRemotesTask=t.addRemoteTask=void 0;const n=r(9999);const s=r(2815);function addRemoteTask(e,t,r=[]){return s.straightThroughStringTask(["remote","add",...r,e,t])}t.addRemoteTask=addRemoteTask;function getRemotesTask(e){const t=["remote"];if(e){t.push("-v")}return{commands:t,format:"utf-8",parser:e?n.parseGetRemotesVerbose:n.parseGetRemotes}}t.getRemotesTask=getRemotesTask;function listRemotesTask(e=[]){const t=[...e];if(t[0]!=="ls-remote"){t.unshift("ls-remote")}return s.straightThroughStringTask(t)}t.listRemotesTask=listRemotesTask;function remoteTask(e=[]){const t=[...e];if(t[0]!=="remote"){t.unshift("remote")}return s.straightThroughStringTask(t)}t.remoteTask=remoteTask;function removeRemoteTask(e){return s.straightThroughStringTask(["remote","remove",e])}t.removeRemoteTask=removeRemoteTask},2377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResetMode=t.resetTask=t.ResetMode=void 0;const n=r(2815);var s;(function(e){e["MIXED"]="mixed";e["SOFT"]="soft";e["HARD"]="hard";e["MERGE"]="merge";e["KEEP"]="keep"})(s=t.ResetMode||(t.ResetMode={}));const i=Array.from(Object.values(s));function resetTask(e,t){const r=["reset"];if(isValidResetMode(e)){r.push(`--${e}`)}r.push(...t);return n.straightThroughStringTask(r)}t.resetTask=resetTask;function getResetMode(e){if(isValidResetMode(e)){return e}switch(typeof e){case"string":case"undefined":return s.SOFT}return}t.getResetMode=getResetMode;function isValidResetMode(e){return i.includes(e)}},810:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stashListTask=void 0;const n=r(9729);const s=r(8627);function stashListTask(e={},t){const r=s.parseLogOptions(e);const i=n.createListLogSummaryParser(r.splitter,r.fields);return{commands:["stash","list",...r.commands,...t],format:"utf-8",parser:i}}t.stashListTask=stashListTask},9197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statusTask=void 0;const n=r(6790);function statusTask(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...e],parser(e){return n.parseStatusSummary(e)}}}t.statusTask=statusTask},8772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.updateSubModuleTask=t.subModuleTask=t.initSubModuleTask=t.addSubModuleTask=void 0;const n=r(2815);function addSubModuleTask(e,t){return subModuleTask(["add",e,t])}t.addSubModuleTask=addSubModuleTask;function initSubModuleTask(e){return subModuleTask(["init",...e])}t.initSubModuleTask=initSubModuleTask;function subModuleTask(e){const t=[...e];if(t[0]!=="submodule"){t.unshift("submodule")}return n.straightThroughStringTask(t)}t.subModuleTask=subModuleTask;function updateSubModuleTask(e){return subModuleTask(["update",...e])}t.updateSubModuleTask=updateSubModuleTask},8540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addAnnotatedTagTask=t.addTagTask=t.tagListTask=void 0;const n=r(4539);function tagListTask(e=[]){const t=e.some((e=>/^--sort=/.test(e)));return{format:"utf-8",commands:["tag","-l",...e],parser(e){return n.parseTagList(e,t)}}}t.tagListTask=tagListTask;function addTagTask(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}t.addTagTask=addTagTask;function addAnnotatedTagTask(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser(){return{name:e}}}}t.addAnnotatedTagTask=addAnnotatedTagTask},2815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmptyTask=t.isBufferTask=t.straightThroughBufferTask=t.straightThroughStringTask=t.configurationErrorTask=t.adhocExecTask=t.EMPTY_COMMANDS=void 0;const n=r(740);t.EMPTY_COMMANDS=[];function adhocExecTask(e){return{commands:t.EMPTY_COMMANDS,format:"utf-8",parser:e}}t.adhocExecTask=adhocExecTask;function configurationErrorTask(e){return{commands:t.EMPTY_COMMANDS,format:"utf-8",parser(){throw typeof e==="string"?new n.TaskConfigurationError(e):e}}}t.configurationErrorTask=configurationErrorTask;function straightThroughStringTask(e,t=false){return{commands:e,format:"utf-8",parser(e){return t?String(e).trim():e}}}t.straightThroughStringTask=straightThroughStringTask;function straightThroughBufferTask(e){return{commands:e,format:"buffer",parser(e){return e}}}t.straightThroughBufferTask=straightThroughBufferTask;function isBufferTask(e){return e.format==="buffer"}t.isBufferTask=isBufferTask;function isEmptyTask(e){return!e.commands.length}t.isEmptyTask=isEmptyTask},7366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.filterHasLength=t.filterFunction=t.filterPlainObject=t.filterStringOrStringArray=t.filterStringArray=t.filterString=t.filterPrimitives=t.filterArray=t.filterType=void 0;const n=r(8237);function filterType(e,t,r){if(t(e)){return e}return arguments.length>2?r:undefined}t.filterType=filterType;const filterArray=e=>Array.isArray(e);t.filterArray=filterArray;function filterPrimitives(e,t){return/number|string|boolean/.test(typeof e)&&(!t||!t.includes(typeof e))}t.filterPrimitives=filterPrimitives;const filterString=e=>typeof e==="string";t.filterString=filterString;const filterStringArray=e=>Array.isArray(e)&&e.every(t.filterString);t.filterStringArray=filterStringArray;const filterStringOrStringArray=e=>t.filterString(e)||Array.isArray(e)&&e.every(t.filterString);t.filterStringOrStringArray=filterStringOrStringArray;function filterPlainObject(e){return!!e&&n.objectToString(e)==="[object Object]"}t.filterPlainObject=filterPlainObject;function filterFunction(e){return typeof e==="function"}t.filterFunction=filterFunction;const filterHasLength=e=>{if(e==null||"number|boolean|function".includes(typeof e)){return false}return Array.isArray(e)||typeof e==="string"||typeof e.length==="number"};t.filterHasLength=filterHasLength},2185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExitCodes=void 0;var r;(function(e){e[e["SUCCESS"]=0]="SUCCESS";e[e["ERROR"]=1]="ERROR";e[e["UNCLEAN"]=128]="UNCLEAN"})(r=t.ExitCodes||(t.ExitCodes={}))},6578:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitOutputStreams=void 0;class GitOutputStreams{constructor(e,t){this.stdOut=e;this.stdErr=t}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}t.GitOutputStreams=GitOutputStreams},847:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7366),t);s(r(2185),t);s(r(6578),t);s(r(9536),t);s(r(5218),t);s(r(3546),t);s(r(1351),t);s(r(8237),t)},9536:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RemoteLineParser=t.LineParser=void 0;class LineParser{constructor(e,t){this.matches=[];this.parse=(e,t)=>{this.resetMatches();if(!this._regExp.every(((t,r)=>this.addMatch(t,r,e(r))))){return false}return this.useMatches(t,this.prepareMatches())!==false};this._regExp=Array.isArray(e)?e:[e];if(t){this.useMatches=t}}useMatches(e,t){throw new Error(`LineParser:useMatches not implemented`)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,r){const n=r&&e.exec(r);if(n){this.pushMatch(t,n)}return!!n}pushMatch(e,t){this.matches.push(...t.slice(1))}}t.LineParser=LineParser;class RemoteLineParser extends LineParser{addMatch(e,t,r){return/^remote:\s/.test(String(r))&&super.addMatch(e,t,r)}pushMatch(e,t){if(e>0||t.length>1){super.pushMatch(e,t)}}}t.RemoteLineParser=RemoteLineParser},5218:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createInstanceConfig=void 0;const r={binary:"git",maxConcurrentProcesses:5,config:[]};function createInstanceConfig(...e){const t=process.cwd();const n=Object.assign(Object.assign({baseDir:t},r),...e.filter((e=>typeof e==="object"&&e)));n.baseDir=n.baseDir||t;return n}t.createInstanceConfig=createInstanceConfig},3546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.trailingFunctionArgument=t.trailingOptionsArgument=t.getTrailingOptions=t.appendTaskOptions=void 0;const n=r(7366);const s=r(8237);function appendTaskOptions(e,t=[]){if(!n.filterPlainObject(e)){return t}return Object.keys(e).reduce(((t,r)=>{const s=e[r];if(n.filterPrimitives(s,["boolean"])){t.push(r+"="+s)}else{t.push(r)}return t}),t)}t.appendTaskOptions=appendTaskOptions;function getTrailingOptions(e,t=0,r=false){const n=[];for(let r=0,s=t<0?e.length:t;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseStringResponse=t.callTaskParser=void 0;const n=r(8237);function callTaskParser(e,t){return e(t.stdOut,t.stdErr)}t.callTaskParser=callTaskParser;function parseStringResponse(e,t,...r){r.forEach((r=>{for(let s=n.toLinesWithContent(r),i=0,o=s.length;i{if(i+e>=o){return}return s[i+e]};t.some((({parse:t})=>t(line,e)))}}));return e}t.parseStringResponse=parseStringResponse},8237:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prefixedArray=t.asNumber=t.asStringArray=t.asArray=t.objectToString=t.remove=t.including=t.append=t.folderExists=t.forEachLineWithContent=t.toLinesWithContent=t.last=t.first=t.splitOn=t.isUserFunction=t.asFunction=t.NOOP=void 0;const n=r(4751);const NOOP=()=>{};t.NOOP=NOOP;function asFunction(e){return typeof e==="function"?e:t.NOOP}t.asFunction=asFunction;function isUserFunction(e){return typeof e==="function"&&e!==t.NOOP}t.isUserFunction=isUserFunction;function splitOn(e,t){const r=e.indexOf(t);if(r<=0){return[e,""]}return[e.substr(0,r),e.substr(r+1)]}t.splitOn=splitOn;function first(e,t=0){return isArrayLike(e)&&e.length>t?e[t]:undefined}t.first=first;function last(e,t=0){if(isArrayLike(e)&&e.length>t){return e[e.length-1-t]}}t.last=last;function isArrayLike(e){return!!(e&&typeof e.length==="number")}function toLinesWithContent(e,t=true,r="\n"){return e.split(r).reduce(((e,r)=>{const n=t?r.trim():r;if(n){e.push(n)}return e}),[])}t.toLinesWithContent=toLinesWithContent;function forEachLineWithContent(e,t){return toLinesWithContent(e,true).map((e=>t(e)))}t.forEachLineWithContent=forEachLineWithContent;function folderExists(e){return n.exists(e,n.FOLDER)}t.folderExists=folderExists;function append(e,t){if(Array.isArray(e)){if(!e.includes(t)){e.push(t)}}else{e.add(t)}return t}t.append=append;function including(e,t){if(Array.isArray(e)&&!e.includes(t)){e.push(t)}return e}t.including=including;function remove(e,t){if(Array.isArray(e)){const r=e.indexOf(t);if(r>=0){e.splice(r,1)}}else{e.delete(t)}return t}t.remove=remove;t.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function asArray(e){return Array.isArray(e)?e:[e]}t.asArray=asArray;function asStringArray(e){return asArray(e).map(String)}t.asStringArray=asStringArray;function asNumber(e,t=0){if(e==null){return t}const r=parseInt(e,10);return isNaN(r)?t:r}t.asNumber=asNumber;function prefixedArray(e,t){const r=[];for(let n=0,s=e.length;n{"use strict";e.exports=e=>{const t=/^\\\\\?\\/.test(e);const r=/[^\u0000-\u0080]+/.test(e);if(t||r){return e}return e.replace(/\\/g,"/")}},9318:(e,t,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(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(o.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e 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 e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=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(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,s.isatty(1))),stderr:translateLevel(supportsColor(true,s.isatty(2)))}},1861:(e,t,r)=>{"use strict"; +e.exports=runParallel;const s=r(9795);function runParallel(e,t){let r,n,o;let i=true;if(Array.isArray(e)){r=[];n=e.length}else{o=Object.keys(e);r={};n=o.length}function done(e){function end(){if(t)t(e,r);t=null}if(i)s(end);else end()}function each(e,t,s){r[e]=s;if(--n===0||t){done(t)}}if(!n){done(null)}else if(o){o.forEach((function(t){e[t]((function(e,r){each(t,e,r)}))}))}else{e.forEach((function(e,t){e((function(e,r){each(t,e,r)}))}))}i=false}},4966:(e,t,r)=>{const{GitExecutor:s}=r(4701);const{SimpleGitApi:n}=r(999);const{Scheduler:o}=r(3421);const{GitLogger:i}=r(7178);const{adhocExecTask:a,configurationErrorTask:c}=r(2815);const{NOOP:u,asArray:l,filterArray:p,filterPrimitives:d,filterString:g,filterStringOrStringArray:h,filterType:m,folderExists:y,getTrailingOptions:_,trailingFunctionArgument:b,trailingOptionsArgument:T}=r(847);const{applyPatchTask:E}=r(4931);const{branchTask:v,branchLocalTask:w,deleteBranchesTask:k,deleteBranchTask:S}=r(17);const{checkIgnoreTask:P}=r(3293);const{checkIsRepoTask:O}=r(221);const{cloneTask:R,cloneMirrorTask:A}=r(3173);const{addConfigTask:C,listConfigTask:G}=r(7597);const{cleanWithOptionsTask:x,isCleanOptionsArray:D}=r(4386);const{commitTask:F}=r(5494);const{diffSummaryTask:L}=r(9241);const{fetchTask:j}=r(8823);const{hashObjectTask:M}=r(8199);const{initTask:I}=r(6016);const{logTask:B,parseLogOptions:U}=r(8627);const{mergeTask:H}=r(8829);const{moveTask:$}=r(6520);const{pullTask:N}=r(4636);const{pushTagsTask:q}=r(1435);const{addRemoteTask:W,getRemotesTask:z,listRemotesTask:V,remoteTask:K,removeRemoteTask:Q}=r(9866);const{getResetMode:Y,resetTask:Z}=r(2377);const{stashListTask:J}=r(810);const{statusTask:X}=r(9197);const{addSubModuleTask:ee,initSubModuleTask:te,subModuleTask:re,updateSubModuleTask:se}=r(8772);const{addAnnotatedTagTask:ne,addTagTask:oe,tagListTask:ie}=r(8540);const{straightThroughBufferTask:ae,straightThroughStringTask:ce}=r(2815);function Git(e,t){this._executor=new s(e.binary,e.baseDir,new o(e.maxConcurrentProcesses),t);this._logger=new i}(Git.prototype=Object.create(n.prototype)).constructor=Git;Git.prototype._logger=null;Git.prototype.customBinary=function(e){this._executor.binary=e;return this};Git.prototype.env=function(e,t){if(arguments.length===1&&typeof e==="object"){this._executor.env=e}else{(this._executor.env=this._executor.env||{})[e]=t}return this};Git.prototype.cwd=function(e){const t=typeof e!=="string"?c("Git.cwd: workingDirectory must be supplied as a string"):a((()=>{if(!y(e)){throw new Error(`Git.cwd: cannot change to non-directory "${e}"`)}return this._executor.cwd=e}));return this._runTask(t,b(arguments)||u)};Git.prototype.outputHandler=function(e){this._executor.outputHandler=e;return this};Git.prototype.init=function(e,t){return this._runTask(I(e===true,this._executor.cwd,_(arguments)),b(arguments))};Git.prototype.status=function(){return this._runTask(X(_(arguments)),b(arguments))};Git.prototype.stashList=function(e){return this._runTask(J(T(arguments)||{},p(e)&&e||[]),b(arguments))};Git.prototype.stash=function(e,t){return this._runTask(ce(["stash",..._(arguments)]),b(arguments))};function createCloneTask(e,t,r,s){if(typeof r!=="string"){return c(`git.${e}() requires a string 'repoPath'`)}return t(r,m(s,g),_(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",R,...arguments),b(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",A,...arguments),b(arguments))};Git.prototype.mv=function(e,t){return this._runTask($(e,t),b(arguments))};Git.prototype.checkoutLatestTag=function(e){var t=this;return this.pull((function(){t.tags((function(r,s){t.checkout(s.latest,e)}))}))};Git.prototype.commit=function(e,t,r,s){const n=b(arguments);const o=[];if(h(e)){o.push(...l(e))}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(F(o,l(m(t,h,[])),[...m(r,p,[]),..._(arguments,0,true)]),n)};Git.prototype.pull=function(e,t,r,s){return this._runTask(N(m(e,g),m(t,g),_(arguments)),b(arguments))};Git.prototype.fetch=function(e,t){return this._runTask(j(m(e,g),m(t,g),_(arguments)),b(arguments))};Git.prototype.silent=function(e){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(!!e);return this};Git.prototype.tags=function(e,t){return this._runTask(ie(_(arguments)),b(arguments))};Git.prototype.rebase=function(){return this._runTask(ce(["rebase",..._(arguments)]),b(arguments))};Git.prototype.reset=function(e){return this._runTask(Z(Y(e),_(arguments)),b(arguments))};Git.prototype.revert=function(e){const t=b(arguments);if(typeof e!=="string"){return this._runTask(c("Commit must be a string"),t)}return this._runTask(ce(["revert",..._(arguments,0,true),e]),t)};Git.prototype.addTag=function(e){const t=typeof e==="string"?oe(e):c("Git.addTag requires a tag name");return this._runTask(t,b(arguments))};Git.prototype.addAnnotatedTag=function(e,t){return this._runTask(ne(e,t),b(arguments))};Git.prototype.checkout=function(){const e=["checkout",..._(arguments,true)];return this._runTask(ce(e),b(arguments))};Git.prototype.checkoutBranch=function(e,t,r){return this.checkout(["-b",e,t],b(arguments))};Git.prototype.checkoutLocalBranch=function(e,t){return this.checkout(["-b",e],b(arguments))};Git.prototype.deleteLocalBranch=function(e,t,r){return this._runTask(S(e,typeof t==="boolean"?t:false),b(arguments))};Git.prototype.deleteLocalBranches=function(e,t,r){return this._runTask(k(e,typeof t==="boolean"?t:false),b(arguments))};Git.prototype.branch=function(e,t){return this._runTask(v(_(arguments)),b(arguments))};Git.prototype.branchLocal=function(e){return this._runTask(w(),b(arguments))};Git.prototype.addConfig=function(e,t,r,s){return this._runTask(C(e,t,typeof r==="boolean"?r:false),b(arguments))};Git.prototype.listConfig=function(){return this._runTask(G(),b(arguments))};Git.prototype.raw=function(e){const t=!Array.isArray(e);const r=[].slice.call(t?arguments:e,0);for(let e=0;e{const{gitP:s}=r(941);const{esModuleFactory:n,gitInstanceFactory:o,gitExportFactory:i}=r(9846);e.exports=n(i(o,{gitP:s}))},4732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(1876);const n=r(5757);const o=r(19);const i=r(5131);const a=r(740);const c=r(221);const u=r(4386);const l=r(2377);const p={CheckRepoActions:c.CheckRepoActions,CleanOptions:u.CleanOptions,GitConstructError:s.GitConstructError,GitError:n.GitError,GitPluginError:o.GitPluginError,GitResponseError:i.GitResponseError,ResetMode:l.ResetMode,TaskConfigurationError:a.TaskConfigurationError};t.default=p},1876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitConstructError=void 0;const s=r(5757);class GitConstructError extends s.GitError{constructor(e,t){super(undefined,t);this.config=e}}t.GitConstructError=GitConstructError},5757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitError=void 0;class GitError extends Error{constructor(e,t){super(t);this.task=e;Object.setPrototypeOf(this,new.target.prototype)}}t.GitError=GitError},19:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitPluginError=void 0;const s=r(5757);class GitPluginError extends s.GitError{constructor(e,t,r){super(e,r);this.task=e;this.plugin=t;Object.setPrototypeOf(this,new.target.prototype)}}t.GitPluginError=GitPluginError},5131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitResponseError=void 0;const s=r(5757);class GitResponseError extends s.GitError{constructor(e,t){super(undefined,t||String(e));this.git=e}}t.GitResponseError=GitResponseError},740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TaskConfigurationError=void 0;const s=r(5757);class TaskConfigurationError extends s.GitError{constructor(e){super(undefined,e)}}t.TaskConfigurationError=TaskConfigurationError},9846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.gitInstanceFactory=t.gitExportFactory=t.esModuleFactory=void 0;const s=r(4966);const n=r(4732);const o=r(8078);const i=r(847);function esModuleFactory(e){return Object.defineProperties(e,{__esModule:{value:true},default:{value:e}})}t.esModuleFactory=esModuleFactory;function gitExportFactory(e,t){return Object.assign((function(...t){return e.apply(null,t)}),n.default,t||{})}t.gitExportFactory=gitExportFactory;function gitInstanceFactory(e,t){const r=new o.PluginStore;const a=i.createInstanceConfig(e&&(typeof e==="string"?{baseDir:e}:e)||{},t);if(!i.folderExists(a.baseDir)){throw new n.default.GitConstructError(a,`Cannot use simple-git on a directory that does not exist`)}if(Array.isArray(a.config)){r.add(o.commandConfigPrefixingPlugin(a.config))}a.progress&&r.add(o.progressMonitorPlugin(a.progress));a.timeout&&r.add(o.timeoutPlugin(a.timeout));return new s(a,r)}t.gitInstanceFactory=gitInstanceFactory},7178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitLogger=t.createLogger=t.log=void 0;const s=r(8231);const n=r(847);s.default.formatters.L=e=>String(n.filterHasLength(e)?e.length:"-");s.default.formatters.B=e=>{if(Buffer.isBuffer(e)){return e.toString("utf8")}return n.objectToString(e)};t.log=s.default("simple-git");function prefixedLogger(e,t,r){if(!t||!String(t).replace(/\s*/,"")){return!r?e:(t,...s)=>{e(t,...s);r(t,...s)}}return(s,...n)=>{e(`%s ${s}`,t,...n);if(r){r(s,...n)}}}function childLoggerName(e,t,{namespace:r}){if(typeof e==="string"){return e}const s=t&&t.namespace||"";if(s.startsWith(r)){return s.substr(r.length+1)}return s||r}function createLogger(e,r,s,o=t.log){const i=e&&`[${e}]`||"";const a=[];const c=typeof r==="string"?o.extend(r):r;const u=childLoggerName(n.filterType(r,n.filterString),c,o);return step(s);function child(t){return n.append(a,createLogger(e,c&&c.extend(t)||t))}function sibling(t,r){return n.append(a,createLogger(e,u.replace(/^[^:]+/,t),r,o))}function step(t){const r=t&&`[${t}]`||"";const s=c&&prefixedLogger(c,r)||n.NOOP;const a=prefixedLogger(o,`${i} ${r}`,s);return Object.assign(c?s:a,{key:u,label:e,child:child,sibling:sibling,debug:s,info:a,step:step})}}t.createLogger=createLogger;class GitLogger{constructor(e=t.log){this._out=e;this.error=prefixedLogger(e,"[ERROR]");this.warn=prefixedLogger(e,"[WARN]")}silent(e=false){if(e!==this._out.enabled){return}const{namespace:t}=this._out;const r=(process.env.DEBUG||"").split(",").filter((e=>!!e));const o=r.includes(t);const i=r.includes(`-${t}`);if(!e){if(i){n.remove(r,`-${t}`)}else{r.push(t)}}else{if(o){n.remove(r,t)}else{r.push(`-${t}`)}}s.default.enable(r.join(","))}}t.GitLogger=GitLogger},6086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hasBranchDeletionError=t.parseBranchDeletions=void 0;const s=r(3755);const n=r(847);const o=/(\S+)\s+\(\S+\s([^)]+)\)/;const i=/^error[^']+'([^']+)'/m;const a=[new n.LineParser(o,((e,[t,r])=>{const n=s.branchDeletionSuccess(t,r);e.all.push(n);e.branches[t]=n})),new n.LineParser(i,((e,[t])=>{const r=s.branchDeletionFailure(t);e.errors.push(r);e.all.push(r);e.branches[t]=r}))];const parseBranchDeletions=e=>n.parseStringResponse(new s.BranchDeletionBatch,a,e);t.parseBranchDeletions=parseBranchDeletions;function hasBranchDeletionError(e,t){return t===n.ExitCodes.ERROR&&i.test(e)}t.hasBranchDeletionError=hasBranchDeletionError},9264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseBranchSummary=void 0;const s=r(4446);const n=r(847);const o=[new n.LineParser(/^(\*\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,((e,[t,r,s,n])=>{e.push(!!t,true,r,s,n)})),new n.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/s,((e,[t,r,s,n])=>{e.push(!!t,false,r,s,n)}))];function parseBranchSummary(e){return n.parseStringResponse(new s.BranchSummaryResult,o,e)}t.parseBranchSummary=parseBranchSummary},3026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCommitResult=void 0;const s=r(847);const n=[new s.LineParser(/\[([^\s]+)( \([^)]+\))? ([^\]]+)/,((e,[t,r,s])=>{e.branch=t;e.commit=s;e.root=!!r})),new s.LineParser(/\s*Author:\s(.+)/i,((e,[t])=>{const r=t.split("<");const s=r.pop();if(!s||!s.includes("@")){return}e.author={email:s.substr(0,s.length-1),name:r.join("<").trim()}})),new s.LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,((e,[t,r,s])=>{e.summary.changes=parseInt(t,10)||0;e.summary.insertions=parseInt(r,10)||0;e.summary.deletions=parseInt(s,10)||0})),new s.LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,((e,[t,r,s])=>{e.summary.changes=parseInt(t,10)||0;const n=parseInt(r,10)||0;if(s==="-"){e.summary.deletions=n}else if(s==="+"){e.summary.insertions=n}}))];function parseCommitResult(e){const t={author:null,branch:"",commit:"",root:false,summary:{changes:0,insertions:0,deletions:0}};return s.parseStringResponse(t,n,e)}t.parseCommitResult=parseCommitResult},2024:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseDiffResult=void 0;const s=r(4781);function parseDiffResult(e){const t=e.trim().split("\n");const r=new s.DiffSummary;readSummaryLine(r,t.pop());for(let e=0,s=t.length;e ([0-9.]+) ([a-z]+)$/);if(r){t.push({file:r[1].trim(),before:+r[2],after:+r[3],binary:true});return true}return false}},6254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseFetchResult=void 0;const s=r(847);const n=[new s.LineParser(/From (.+)$/,((e,[t])=>{e.remote=t})),new s.LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,((e,[t,r])=>{e.branches.push({name:t,tracking:r})})),new s.LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,((e,[t,r])=>{e.tags.push({name:t,tracking:r})}))];function parseFetchResult(e,t){const r={raw:e,remote:null,branches:[],tags:[]};return s.parseStringResponse(r,n,e,t)}t.parseFetchResult=parseFetchResult},9729:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createListLogSummaryParser=t.SPLITTER=t.COMMIT_BOUNDARY=t.START_BOUNDARY=void 0;const s=r(847);const n=r(2024);t.START_BOUNDARY="òòòòòò ";t.COMMIT_BOUNDARY=" òò";t.SPLITTER=" ò ";const o=["hash","date","message","refs","author_name","author_email"];function lineBuilder(e,t){return t.reduce(((t,r,s)=>{t[r]=e[s]||"";return t}),Object.create({diff:null}))}function createListLogSummaryParser(e=t.SPLITTER,r=o){return function(o){const i=s.toLinesWithContent(o,true,t.START_BOUNDARY).map((function(s){const o=s.trim().split(t.COMMIT_BOUNDARY);const i=lineBuilder(o[0].trim().split(e),r);if(o.length>1&&!!o[1].trim()){i.diff=n.parseDiffResult(o[1])}return i}));return{all:i,latest:i.length&&i[0]||null,total:i.length}}}t.createListLogSummaryParser=createListLogSummaryParser},6412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseMergeDetail=t.parseMergeResult=void 0;const s=r(1651);const n=r(847);const o=r(5658);const i=[new n.LineParser(/^Auto-merging\s+(.+)$/,((e,[t])=>{e.merges.push(t)})),new n.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,((e,[t,r])=>{e.conflicts.push(new s.MergeSummaryConflict(t,r))})),new n.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,((e,[t,r,n])=>{e.conflicts.push(new s.MergeSummaryConflict(t,r,{deleteRef:n}))})),new n.LineParser(/^CONFLICT\s+\((.+)\):/,((e,[t])=>{e.conflicts.push(new s.MergeSummaryConflict(t,null))})),new n.LineParser(/^Automatic merge failed;\s+(.+)$/,((e,[t])=>{e.result=t}))];const parseMergeResult=(e,r)=>Object.assign(t.parseMergeDetail(e,r),o.parsePullResult(e,r));t.parseMergeResult=parseMergeResult;const parseMergeDetail=e=>n.parseStringResponse(new s.MergeSummaryDetail,i,e);t.parseMergeDetail=parseMergeDetail},7444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseMoveResult=void 0;const s=r(847);const n=[new s.LineParser(/^Renaming (.+) to (.+)$/,((e,[t,r])=>{e.moves.push({from:t,to:r})}))];function parseMoveResult(e){return s.parseStringResponse({moves:[]},n,e)}t.parseMoveResult=parseMoveResult},5658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parsePullResult=t.parsePullDetail=void 0;const s=r(3567);const n=r(847);const o=r(2661);const i=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;const a=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;const c=/^(create|delete) mode \d+ (.+)/;const u=[new n.LineParser(i,((e,[t,r,s])=>{e.files.push(t);if(r){e.insertions[t]=r.length}if(s){e.deletions[t]=s.length}})),new n.LineParser(a,((e,[t,,r,,s])=>{if(r!==undefined||s!==undefined){e.summary.changes=+t||0;e.summary.insertions=+r||0;e.summary.deletions=+s||0;return true}return false})),new n.LineParser(c,((e,[t,r])=>{n.append(e.files,r);n.append(t==="create"?e.created:e.deleted,r)}))];const parsePullDetail=(e,t)=>n.parseStringResponse(new s.PullSummary,u,e,t);t.parsePullDetail=parsePullDetail;const parsePullResult=(e,r)=>Object.assign(new s.PullSummary,t.parsePullDetail(e,r),o.parseRemoteMessages(e,r));t.parsePullResult=parsePullResult},8530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parsePushDetail=t.parsePushResult=void 0;const s=r(847);const n=r(2661);function pushResultPushedItem(e,t,r){const s=r.includes("deleted");const n=r.includes("tag")||/^refs\/tags/.test(e);const o=!r.includes("new");return{deleted:s,tag:n,branch:!n,new:!o,alreadyUpdated:o,local:e,remote:t}}const o=[new s.LineParser(/^Pushing to (.+)$/,((e,[t])=>{e.repo=t})),new s.LineParser(/^updating local tracking ref '(.+)'/,((e,[t])=>{e.ref=Object.assign(Object.assign({},e.ref||{}),{local:t})})),new s.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,((e,[t,r,s])=>{e.pushed.push(pushResultPushedItem(t,r,s))})),new s.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,((e,[t,r,s])=>{e.branch=Object.assign(Object.assign({},e.branch||{}),{local:t,remote:r,remoteName:s})})),new s.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,((e,[t,r,s,n])=>{e.update={head:{local:t,remote:r},hash:{from:s,to:n}}}))];const parsePushResult=(e,r)=>{const s=t.parsePushDetail(e,r);const o=n.parseRemoteMessages(e,r);return Object.assign(Object.assign({},s),o)};t.parsePushResult=parsePushResult;const parsePushDetail=(e,t)=>s.parseStringResponse({pushed:[]},o,e,t);t.parsePushDetail=parsePushDetail},2661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RemoteMessageSummary=t.parseRemoteMessages=void 0;const s=r(847);const n=r(3565);const o=[new s.RemoteLineParser(/^remote:\s*(.+)$/,((e,[t])=>{e.remoteMessages.all.push(t.trim());return false})),...n.remoteMessagesObjectParsers,new s.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],((e,[t])=>{e.remoteMessages.pullRequestUrl=t})),new s.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],((e,[t,r,n])=>{e.remoteMessages.vulnerabilities={count:s.asNumber(t),summary:r,url:n}}))];function parseRemoteMessages(e,t){return s.parseStringResponse({remoteMessages:new RemoteMessageSummary},o,t)}t.parseRemoteMessages=parseRemoteMessages;class RemoteMessageSummary{constructor(){this.all=[]}}t.RemoteMessageSummary=RemoteMessageSummary},3565:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.remoteMessagesObjectParsers=void 0;const s=r(847);function objectEnumerationResult(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function asObjectCount(e){const t=/^\s*(\d+)/.exec(e);const r=/delta (\d+)/i.exec(e);return{count:s.asNumber(t&&t[1]||"0"),delta:s.asNumber(r&&r[1]||"0")}}t.remoteMessagesObjectParsers=[new s.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,((e,[t,r])=>{const n=t.toLowerCase();const o=objectEnumerationResult(e.remoteMessages);Object.assign(o,{[n]:s.asNumber(r)})})),new s.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,((e,[t,r])=>{const n=t.toLowerCase();const o=objectEnumerationResult(e.remoteMessages);Object.assign(o,{[n]:s.asNumber(r)})})),new s.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,((e,[t,r,n])=>{const o=objectEnumerationResult(e.remoteMessages);o.total=asObjectCount(t);o.reused=asObjectCount(r);o.packReused=s.asNumber(n)}))]},2581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.commandConfigPrefixingPlugin=void 0;const s=r(847);function commandConfigPrefixingPlugin(e){const t=s.prefixedArray(e,"-c");return{type:"spawn.args",action(e){return[...t,...e]}}}t.commandConfigPrefixingPlugin=commandConfigPrefixingPlugin},8078:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))s(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});n(r(2581),t);n(r(5067),t);n(r(1738),t);n(r(8436),t);n(r(9504),t)},5067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PluginStore=void 0;const s=r(847);class PluginStore{constructor(){this.plugins=new Set}add(e){const t=[];s.asArray(e).forEach((e=>e&&this.plugins.add(s.append(t,e))));return()=>{t.forEach((e=>this.plugins.delete(e)))}}exec(e,t,r){let s=t;const n=Object.freeze(Object.create(r));for(const t of this.plugins){if(t.type===e){s=t.action(s,n)}}return s}}t.PluginStore=PluginStore},1738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.progressMonitorPlugin=void 0;const s=r(847);function progressMonitorPlugin(e){const t="--progress";const r=["checkout","clone","fetch","pull","push"];const n={type:"spawn.after",action(r,n){var o;if(!n.commands.includes(t)){return}(o=n.spawned.stderr)===null||o===void 0?void 0:o.on("data",(t=>{const r=/^([a-zA-Z ]+):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(t.toString("utf8"));if(!r){return}e({method:n.method,stage:progressEventStage(r[1]),progress:s.asNumber(r[2]),processed:s.asNumber(r[3]),total:s.asNumber(r[4])})}))}};const o={type:"spawn.args",action(e,n){if(!r.includes(n.method)){return e}return s.including(e,t)}};return[o,n]}t.progressMonitorPlugin=progressMonitorPlugin;function progressEventStage(e){return String(e.toLowerCase().split(" ",1))||"unknown"}},8436:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},9504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.timeoutPlugin=void 0;const s=r(19);function timeoutPlugin({block:e}){if(e>0){return{type:"spawn.after",action(t,r){var n,o;let i;function wait(){i&&clearTimeout(i);i=setTimeout(kill,e)}function stop(){var e,t;(e=r.spawned.stdout)===null||e===void 0?void 0:e.off("data",wait);(t=r.spawned.stderr)===null||t===void 0?void 0:t.off("data",wait);r.spawned.off("exit",stop);r.spawned.off("close",stop)}function kill(){stop();r.kill(new s.GitPluginError(undefined,"timeout",`block timeout reached`))}(n=r.spawned.stdout)===null||n===void 0?void 0:n.on("data",wait);(o=r.spawned.stderr)===null||o===void 0?void 0:o.on("data",wait);r.spawned.on("exit",stop);r.spawned.on("close",stop);wait()}}}}t.timeoutPlugin=timeoutPlugin},3755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSingleBranchDeleteFailure=t.branchDeletionFailure=t.branchDeletionSuccess=t.BranchDeletionBatch=void 0;class BranchDeletionBatch{constructor(){this.all=[];this.branches={};this.errors=[]}get success(){return!this.errors.length}}t.BranchDeletionBatch=BranchDeletionBatch;function branchDeletionSuccess(e,t){return{branch:e,hash:t,success:true}}t.branchDeletionSuccess=branchDeletionSuccess;function branchDeletionFailure(e){return{branch:e,hash:null,success:false}}t.branchDeletionFailure=branchDeletionFailure;function isSingleBranchDeleteFailure(e){return e.success}t.isSingleBranchDeleteFailure=isSingleBranchDeleteFailure},4446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BranchSummaryResult=void 0;class BranchSummaryResult{constructor(){this.all=[];this.branches={};this.current="";this.detached=false}push(e,t,r,s,n){if(e){this.detached=t;this.current=r}this.all.push(r);this.branches[r]={current:e,name:r,commit:s,label:n}}}t.BranchSummaryResult=BranchSummaryResult},9926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCheckIgnore=void 0;const parseCheckIgnore=e=>e.split(/\n/g).map((e=>e.trim())).filter((e=>!!e));t.parseCheckIgnore=parseCheckIgnore},5689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cleanSummaryParser=t.CleanResponse=void 0;const s=r(847);class CleanResponse{constructor(e){this.dryRun=e;this.paths=[];this.files=[];this.folders=[]}}t.CleanResponse=CleanResponse;const n=/^[a-z]+\s*/i;const o=/^[a-z]+\s+[a-z]+\s*/i;const i=/\/$/;function cleanSummaryParser(e,t){const r=new CleanResponse(e);const a=e?o:n;s.toLinesWithContent(t).forEach((e=>{const t=e.replace(a,"");r.paths.push(t);(i.test(t)?r.folders:r.files).push(t)}));return r}t.cleanSummaryParser=cleanSummaryParser},7219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.configListParser=t.ConfigList=void 0;const s=r(847);class ConfigList{constructor(){this.files=[];this.values=Object.create(null)}get all(){if(!this._all){this._all=this.files.reduce(((e,t)=>Object.assign(e,this.values[t])),{})}return this._all}addFile(e){if(!(e in this.values)){const t=s.last(this.files);this.values[e]=t?Object.create(this.values[t]):{};this.files.push(e)}return this.values[e]}addValue(e,t,r){const s=this.addFile(e);if(!s.hasOwnProperty(t)){s[t]=r}else if(Array.isArray(s[t])){s[t].push(r)}else{s[t]=[s[t],r]}this._all=undefined}}t.ConfigList=ConfigList;function configListParser(e){const t=new ConfigList;const r=e.split("\0");for(let e=0,n=r.length-1;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiffSummary=void 0;class DiffSummary{constructor(){this.changed=0;this.deletions=0;this.insertions=0;this.files=[]}}t.DiffSummary=DiffSummary},860:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FileStatusSummary=t.fromPathRegex=void 0;t.fromPathRegex=/^(.+) -> (.+)$/;class FileStatusSummary{constructor(e,r,s){this.path=e;this.index=r;this.working_dir=s;if("R"===r+s){const r=t.fromPathRegex.exec(e)||[null,e,e];this.from=r[1]||"";this.path=r[2]||""}}}t.FileStatusSummary=FileStatusSummary},9999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseGetRemotesVerbose=t.parseGetRemotes=void 0;const s=r(847);function parseGetRemotes(e){const t={};forEach(e,(([e])=>t[e]={name:e}));return Object.values(t)}t.parseGetRemotes=parseGetRemotes;function parseGetRemotesVerbose(e){const t={};forEach(e,(([e,r,s])=>{if(!t.hasOwnProperty(e)){t[e]={name:e,refs:{fetch:"",push:""}}}if(s&&r){t[e].refs[s.replace(/[^a-z]/g,"")]=r}}));return Object.values(t)}t.parseGetRemotesVerbose=parseGetRemotesVerbose;function forEach(e,t){s.forEachLineWithContent(e,(e=>t(e.split(/\s+/))))}},8690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseInit=t.InitSummary=void 0;class InitSummary{constructor(e,t,r,s){this.bare=e;this.path=t;this.existing=r;this.gitDir=s}}t.InitSummary=InitSummary;const r=/^Init.+ repository in (.+)$/;const s=/^Rein.+ in (.+)$/;function parseInit(e,t,n){const o=String(n).trim();let i;if(i=r.exec(o)){return new InitSummary(e,t,false,i[1])}if(i=s.exec(o)){return new InitSummary(e,t,true,i[1])}let a="";const c=o.split(" ");while(c.length){const e=c.shift();if(e==="in"){a=c.join(" ");break}}return new InitSummary(e,t,/^re/i.test(o),a)}t.parseInit=parseInit},1651:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MergeSummaryDetail=t.MergeSummaryConflict=void 0;class MergeSummaryConflict{constructor(e,t=null,r){this.reason=e;this.file=t;this.meta=r}toString(){return`${this.file}:${this.reason}`}}t.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"}}t.MergeSummaryDetail=MergeSummaryDetail},3567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.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}}}t.PullSummary=PullSummary},6790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseStatusSummary=t.StatusSummary=void 0;const s=r(847);const n=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}}t.StatusSummary=StatusSummary;var o;(function(e){e["ADDED"]="A";e["DELETED"]="D";e["MODIFIED"]="M";e["RENAMED"]="R";e["COPIED"]="C";e["UNMERGED"]="U";e["UNTRACKED"]="?";e["IGNORED"]="!";e["NONE"]=" "})(o||(o={}));function renamedFile(e){const t=/^(.+) -> (.+)$/.exec(e);if(!t){return{from:e,to:e}}return{from:String(t[1]),to:String(t[2])}}function parser(e,t,r){return[`${e}${t}`,r]}function conflicts(e,...t){return t.map((t=>parser(e,t,((e,t)=>s.append(e.conflicted,t)))))}const i=new Map([parser(o.NONE,o.ADDED,((e,t)=>s.append(e.created,t))),parser(o.NONE,o.DELETED,((e,t)=>s.append(e.deleted,t))),parser(o.NONE,o.MODIFIED,((e,t)=>s.append(e.modified,t))),parser(o.ADDED,o.NONE,((e,t)=>s.append(e.created,t)&&s.append(e.staged,t))),parser(o.ADDED,o.MODIFIED,((e,t)=>s.append(e.created,t)&&s.append(e.staged,t)&&s.append(e.modified,t))),parser(o.DELETED,o.NONE,((e,t)=>s.append(e.deleted,t)&&s.append(e.staged,t))),parser(o.MODIFIED,o.NONE,((e,t)=>s.append(e.modified,t)&&s.append(e.staged,t))),parser(o.MODIFIED,o.MODIFIED,((e,t)=>s.append(e.modified,t)&&s.append(e.staged,t))),parser(o.RENAMED,o.NONE,((e,t)=>{s.append(e.renamed,renamedFile(t))})),parser(o.RENAMED,o.MODIFIED,((e,t)=>{const r=renamedFile(t);s.append(e.renamed,r);s.append(e.modified,r.to)})),parser(o.UNTRACKED,o.UNTRACKED,((e,t)=>s.append(e.not_added,t))),...conflicts(o.ADDED,o.ADDED,o.UNMERGED),...conflicts(o.DELETED,o.DELETED,o.UNMERGED),...conflicts(o.UNMERGED,o.ADDED,o.DELETED,o.UNMERGED),["##",(e,t)=>{const r=/ahead (\d+)/;const s=/behind (\d+)/;const n=/^(.+?(?=(?:\.{3}|\s|$)))/;const o=/\.{3}(\S*)/;const i=/\son\s([\S]+)$/;let a;a=r.exec(t);e.ahead=a&&+a[1]||0;a=s.exec(t);e.behind=a&&+a[1]||0;a=n.exec(t);e.current=a&&a[1];a=o.exec(t);e.tracking=a&&a[1];a=i.exec(t);e.current=a&&a[1]||e.current}]]);const parseStatusSummary=function(e){const t=e.trim().split("\n");const r=new StatusSummary;for(let e=0,s=t.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseTagList=t.TagList=void 0;class TagList{constructor(e,t){this.all=e;this.latest=t}}t.TagList=TagList;const parseTagList=function(e,t=false){const r=e.split("\n").map(trimmed).filter(Boolean);if(!t){r.sort((function(e,t){const r=e.split(".");const s=t.split(".");if(r.length===1||s.length===1){return singleSorted(toNumber(r[0]),toNumber(s[0]))}for(let e=0,t=Math.max(r.length,s.length);ee.indexOf(".")>=0));return new TagList(r,s)};t.parseTagList=parseTagList;function singleSorted(e,t){const r=isNaN(e);const s=isNaN(t);if(r!==s){return r?1:-1}return r?sorted(e,t):0}function sorted(e,t){return e===t?0:e>t?1:-1}function trimmed(e){return e.trim()}function toNumber(e){if(typeof e==="string"){return parseInt(e.replace(/^\D+/g,""),10)||0}return 0}},8543:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.GitExecutorChain=void 0;const n=r(3129);const o=r(5757);const i=r(2815);const a=r(847);const c=r(6676);class GitExecutorChain{constructor(e,t,r){this._executor=e;this._scheduler=t;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(e){this._queue.push(e);return this._chain=this._chain.then((()=>this.attemptTask(e)))}attemptTask(e){return s(this,void 0,void 0,(function*(){const t=yield this._scheduler.next();const onQueueComplete=()=>this._queue.complete(e);try{const{logger:r}=this._queue.attempt(e);return yield i.isEmptyTask(e)?this.attemptEmptyTask(e,r):this.attemptRemoteTask(e,r)}catch(t){throw this.onFatalException(e,t)}finally{onQueueComplete();t()}}))}onFatalException(e,t){const r=t instanceof o.GitError?Object.assign(t,{task:e}):new o.GitError(e,t&&String(t));this._chain=Promise.resolve();this._queue.fatal(r);return r}attemptRemoteTask(e,t){return s(this,void 0,void 0,(function*(){const r=this._plugins.exec("spawn.args",[...e.commands],pluginContext(e,e.commands));const s=yield this.gitResponse(e,this.binary,r,this.outputHandler,t.step("SPAWN"));const n=yield this.handleTaskData(e,s,t.step("HANDLE"));t(`passing response to task's parser as a %s`,e.format);if(i.isBufferTask(e)){return a.callTaskParser(e.parser,n)}return a.callTaskParser(e.parser,n.asStrings())}))}attemptEmptyTask(e,t){return s(this,void 0,void 0,(function*(){t(`empty task bypassing child process to call to task's parser`);return e.parser()}))}handleTaskData({onError:e,concatStdErr:t},{exitCode:r,rejection:s,stdOut:n,stdErr:o},i){return new Promise(((c,u)=>{i(`Preparing to handle process response exitCode=%d stdOut=`,r);const l=!!(s||r&&o.length);if(l&&e){i.info(`exitCode=%s handling with custom error handler`);i(`concatenate stdErr to stdOut: %j`,t);return e(r,Buffer.concat([...t?n:[],...o]).toString("utf-8"),(e=>{i.info(`custom error handler treated as success`);i(`custom error returned a %s`,a.objectToString(e));c(new a.GitOutputStreams(Buffer.isBuffer(e)?e:Buffer.from(String(e)),Buffer.concat(o)))}),u)}if(l){i.info(`handling as error: exitCode=%s stdErr=%s rejection=%o`,r,o.length,s);return u(s||Buffer.concat(o).toString("utf-8"))}if(t){i(`concatenating stdErr onto stdOut before processing`);i(`stdErr: $O`,o);n.push(...o)}i.info(`retrieving task output complete`);c(new a.GitOutputStreams(Buffer.concat(n),Buffer.concat(o)))}))}gitResponse(e,t,r,o,i){return s(this,void 0,void 0,(function*(){const s=i.sibling("output");const a={cwd:this.cwd,env:this.env,windowsHide:true};return new Promise((c=>{const u=[];const l=[];let p=false;let d;function attemptClose(e,t="retry"){if(p||l.length||u.length){i.info(`exitCode=%s event=%s rejection=%o`,e,t,d);c({stdOut:u,stdErr:l,exitCode:e,rejection:d});p=true}if(!p){p=true;setTimeout((()=>attemptClose(e,"deferred")),50);i("received %s event before content on stdOut/stdErr",t)}}i.info(`%s %o`,t,r);i("%O",a);const g=n.spawn(t,r,a);g.stdout.on("data",onDataReceived(u,"stdOut",i,s.step("stdOut")));g.stderr.on("data",onDataReceived(l,"stdErr",i,s.step("stdErr")));g.on("error",onErrorReceived(l,i));g.on("close",(e=>attemptClose(e,"close")));g.on("exit",(e=>attemptClose(e,"exit")));if(o){i(`Passing child process stdOut/stdErr to custom outputHandler`);o(t,g.stdout,g.stderr,[...r])}this._plugins.exec("spawn.after",undefined,Object.assign(Object.assign({},pluginContext(e,r)),{spawned:g,kill(e){if(g.killed){return}d=e;g.kill("SIGINT")}}))}))}))}}t.GitExecutorChain=GitExecutorChain;function pluginContext(e,t){return{method:a.first(e.commands)||"",commands:t}}function onErrorReceived(e,t){return r=>{t(`[ERROR] child process exception %o`,r);e.push(Buffer.from(String(r.stack),"ascii"))}}function onDataReceived(e,t,r,s){return n=>{r(`%s received %L bytes`,t,n);s(`%B`,n);e.push(n)}}},4701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitExecutor=void 0;const s=r(8543);class GitExecutor{constructor(e="git",t,r,n){this.binary=e;this.cwd=t;this._scheduler=r;this._plugins=n;this._chain=new s.GitExecutorChain(this,this._scheduler,this._plugins)}chain(){return new s.GitExecutorChain(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}t.GitExecutor=GitExecutor},941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.gitP=void 0;const s=r(5131);const n=r(9846);const o=["customBinary","env","outputHandler","silent"];const i=["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(...e){let t;let r=Promise.resolve();try{t=n.gitInstanceFactory(...e)}catch(e){r=Promise.reject(e)}function builderReturn(){return s}function chainReturn(){return r}const s=[...o,...i].reduce(((e,r)=>{const s=i.includes(r);const n=s?asyncWrapper(r,t):syncWrapper(r,t,e);const o=s?chainReturn:builderReturn;Object.defineProperty(e,r,{enumerable:false,configurable:false,value:t?n:o});return e}),{});return s;function asyncWrapper(e,t){return function(...s){if(typeof s[s.length]==="function"){throw new TypeError("Promise interface requires that handlers are not supplied inline, "+"trailing function not allowed in call to "+e)}return r.then((function(){return new Promise((function(r,n){const callback=(e,t)=>{if(e){return n(toError(e))}r(t)};s.push(callback);t[e].apply(t,s)}))}))}}function syncWrapper(e,t,r){return(...s)=>{t[e](...s);return r}}}t.gitP=gitP;function toError(e){if(e instanceof Error){return e}if(typeof e==="string"){return new Error(e)}return new s.GitResponseError(e)}},3421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Scheduler=void 0;const s=r(847);const n=r(9819);const o=r(7178);const i=o.createLogger("","scheduler");const a=(()=>{let e=0;return()=>{e++;const{promise:t,done:r}=n.createDeferred();return{promise:t,done:r,id:e}}})();class Scheduler{constructor(e=2){this.concurrency=e;this.pending=[];this.running=[];i(`Constructed, concurrency=%s`,e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){i(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}const e=s.append(this.running,this.pending.shift());i(`Attempting id=%s`,e.id);e.done((()=>{i(`Completing id=`,e.id);s.remove(this.running,e);this.schedule()}))}next(){const{promise:e,id:t}=s.append(this.pending,a());i(`Scheduling id=%s`,t);this.schedule();return e}}t.Scheduler=Scheduler},6676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TasksPendingQueue=void 0;const s=r(5757);const n=r(7178);class TasksPendingQueue{constructor(e="GitExecutor"){this.logLabel=e;this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){const t=TasksPendingQueue.getName(e.commands[0]);const r=n.createLogger(this.logLabel,t);return{task:e,logger:r,name:t}}push(e){const t=this.createProgress(e);t.logger("Adding task to the queue, commands = %o",e.commands);this._queue.set(e,t);return t}fatal(e){for(const[t,{logger:r}]of Array.from(this._queue.entries())){if(t===e.task){r.info(`Failed %o`,e);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`,e.message)}this.complete(t)}if(this._queue.size!==0){throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}}complete(e){const t=this.withProgress(e);if(t){this._queue.delete(e)}}attempt(e){const t=this.withProgress(e);if(!t){throw new s.GitError(undefined,"TasksPendingQueue: attempt called for an unknown task")}t.logger("Starting task");return t}static getName(e="empty"){return`task:${e}:${++TasksPendingQueue.counter}`}}t.TasksPendingQueue=TasksPendingQueue;TasksPendingQueue.counter=0},999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SimpleGitApi=void 0;const s=r(8850);const n=r(1435);const o=r(2815);const i=r(847);class SimpleGitApi{constructor(e){this._executor=e}_runTask(e,t){const r=this._executor.chain();const n=r.push(e);if(t){s.taskCallback(e,n,t)}return Object.create(this,{then:{value:n.then.bind(n)},catch:{value:n.catch.bind(n)},_executor:{value:r}})}add(e){return this._runTask(o.straightThroughStringTask(["add",...i.asArray(e)]),i.trailingFunctionArgument(arguments))}push(){const e=n.pushTask({remote:i.filterType(arguments[0],i.filterString),branch:i.filterType(arguments[1],i.filterString)},i.getTrailingOptions(arguments));return this._runTask(e,i.trailingFunctionArgument(arguments))}}t.SimpleGitApi=SimpleGitApi},8850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.taskCallback=void 0;const s=r(5131);const n=r(847);function taskCallback(e,t,r=n.NOOP){const onSuccess=e=>{r(null,e)};const onError=t=>{if((t===null||t===void 0?void 0:t.task)===e){if(t instanceof s.GitResponseError){return r(addDeprecationNoticeToError(t))}r(t)}};t.then(onSuccess,onError)}t.taskCallback=taskCallback;function addDeprecationNoticeToError(e){let log=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`);log=n.NOOP};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(descriptorReducer,{}));function descriptorReducer(t,r){if(r in e){return t}t[r]={enumerable:false,configurable:false,get(){log(r);return e.git[r]}};return t}}},4931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.applyPatchTask=void 0;const s=r(2815);function applyPatchTask(e,t){return s.straightThroughStringTask(["apply",...t,...e])}t.applyPatchTask=applyPatchTask},17:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deleteBranchTask=t.deleteBranchesTask=t.branchLocalTask=t.branchTask=t.containsDeleteBranchCommand=void 0;const s=r(5131);const n=r(6086);const o=r(9264);function containsDeleteBranchCommand(e){const t=["-d","-D","--delete"];return e.some((e=>t.includes(e)))}t.containsDeleteBranchCommand=containsDeleteBranchCommand;function branchTask(e){const t=containsDeleteBranchCommand(e);const r=["branch",...e];if(r.length===1){r.push("-a")}if(!r.includes("-v")){r.splice(1,0,"-v")}return{format:"utf-8",commands:r,parser(e,r){if(t){return n.parseBranchDeletions(e,r).all[0]}return o.parseBranchSummary(e)}}}t.branchTask=branchTask;function branchLocalTask(){const e=o.parseBranchSummary;return{format:"utf-8",commands:["branch","-v"],parser:e}}t.branchLocalTask=branchLocalTask;function deleteBranchesTask(e,t=false){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser(e,t){return n.parseBranchDeletions(e,t)},onError(e,t,r,s){if(!n.hasBranchDeletionError(t,e)){return s(t)}r(t)},concatStdErr:true}}t.deleteBranchesTask=deleteBranchesTask;function deleteBranchTask(e,t=false){const r={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser(t,r){return n.parseBranchDeletions(t,r).branches[e]},onError(e,t,o,i){if(!n.hasBranchDeletionError(t,e)){return i(t)}throw new s.GitResponseError(r.parser(t,""),t)},concatStdErr:true};return r}t.deleteBranchTask=deleteBranchTask},3293:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkIgnoreTask=void 0;const s=r(9926);function checkIgnoreTask(e){return{commands:["check-ignore",...e],format:"utf-8",parser:s.parseCheckIgnore}}t.checkIgnoreTask=checkIgnoreTask},221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkIsBareRepoTask=t.checkIsRepoRootTask=t.checkIsRepoTask=t.CheckRepoActions=void 0;const s=r(847);var n;(function(e){e["BARE"]="bare";e["IN_TREE"]="tree";e["IS_REPO_ROOT"]="root"})(n=t.CheckRepoActions||(t.CheckRepoActions={}));const onError=(e,t,r,n)=>{if(e===s.ExitCodes.UNCLEAN&&isNotRepoMessage(t)){return r("false")}n(t)};const parser=e=>e.trim()==="true";function checkIsRepoTask(e){switch(e){case n.BARE:return checkIsBareRepoTask();case n.IS_REPO_ROOT:return checkIsRepoRootTask()}const t=["rev-parse","--is-inside-work-tree"];return{commands:t,format:"utf-8",onError:onError,parser:parser}}t.checkIsRepoTask=checkIsRepoTask;function checkIsRepoRootTask(){const e=["rev-parse","--git-dir"];return{commands:e,format:"utf-8",onError:onError,parser(e){return/^\.(git)?$/.test(e.trim())}}}t.checkIsRepoRootTask=checkIsRepoRootTask;function checkIsBareRepoTask(){const e=["rev-parse","--is-bare-repository"];return{commands:e,format:"utf-8",onError:onError,parser:parser}}t.checkIsBareRepoTask=checkIsBareRepoTask;function isNotRepoMessage(e){return/(Not a git repository|Kein Git-Repository)/i.test(e)}},4386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCleanOptionsArray=t.cleanTask=t.cleanWithOptionsTask=t.CleanOptions=t.CONFIG_ERROR_UNKNOWN_OPTION=t.CONFIG_ERROR_MODE_REQUIRED=t.CONFIG_ERROR_INTERACTIVE_MODE=void 0;const s=r(5689);const n=r(847);const o=r(2815);t.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";t.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';t.CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ";var i;(function(e){e["DRY_RUN"]="n";e["FORCE"]="f";e["IGNORED_INCLUDED"]="x";e["IGNORED_ONLY"]="X";e["EXCLUDING"]="e";e["QUIET"]="q";e["RECURSIVE"]="d"})(i=t.CleanOptions||(t.CleanOptions={}));const a=new Set(["i",...n.asStringArray(Object.values(i))]);function cleanWithOptionsTask(e,r){const{cleanMode:s,options:n,valid:i}=getCleanOptions(e);if(!s){return o.configurationErrorTask(t.CONFIG_ERROR_MODE_REQUIRED)}if(!i.options){return o.configurationErrorTask(t.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e))}n.push(...r);if(n.some(isInteractiveMode)){return o.configurationErrorTask(t.CONFIG_ERROR_INTERACTIVE_MODE)}return cleanTask(s,n)}t.cleanWithOptionsTask=cleanWithOptionsTask;function cleanTask(e,t){const r=["clean",`-${e}`,...t];return{commands:r,format:"utf-8",parser(t){return s.cleanSummaryParser(e===i.DRY_RUN,t)}}}t.cleanTask=cleanTask;function isCleanOptionsArray(e){return Array.isArray(e)&&e.every((e=>a.has(e)))}t.isCleanOptionsArray=isCleanOptionsArray;function getCleanOptions(e){let t;let r=[];let s={cleanMode:false,options:true};e.replace(/[^a-z]i/g,"").split("").forEach((e=>{if(isCleanMode(e)){t=e;s.cleanMode=true}else{s.options=s.options&&isKnownOption(r[r.length]=`-${e}`)}}));return{cleanMode:t,options:r,valid:s}}function isCleanMode(e){return e===i.FORCE||e===i.DRY_RUN}function isKnownOption(e){return/^-[a-z]$/i.test(e)&&a.has(e.charAt(1))}function isInteractiveMode(e){if(/^-[^\-]/.test(e)){return e.indexOf("i")>0}return e==="--interactive"}},3173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloneMirrorTask=t.cloneTask=void 0;const s=r(2815);const n=r(847);function cloneTask(e,t,r){const n=["clone",...r];if(typeof e==="string"){n.push(e)}if(typeof t==="string"){n.push(t)}return s.straightThroughStringTask(n)}t.cloneTask=cloneTask;function cloneMirrorTask(e,t,r){n.append(r,"--mirror");return cloneTask(e,t,r)}t.cloneMirrorTask=cloneMirrorTask},5494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.commitTask=void 0;const s=r(3026);function commitTask(e,t,r){const n=["commit"];e.forEach((e=>n.push("-m",e)));n.push(...t,...r);return{commands:n,format:"utf-8",parser:s.parseCommitResult}}t.commitTask=commitTask},7597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.listConfigTask=t.addConfigTask=void 0;const s=r(7219);function addConfigTask(e,t,r=false){const s=["config","--local"];if(r){s.push("--add")}s.push(e,t);return{commands:s,format:"utf-8",parser(e){return e}}}t.addConfigTask=addConfigTask;function listConfigTask(){return{commands:["config","--list","--show-origin","--null"],format:"utf-8",parser(e){return s.configListParser(e)}}}t.listConfigTask=listConfigTask},9241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.diffSummaryTask=void 0;const s=r(2024);function diffSummaryTask(e){return{commands:["diff","--stat=4096",...e],format:"utf-8",parser(e){return s.parseDiffResult(e)}}}t.diffSummaryTask=diffSummaryTask},8823:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fetchTask=void 0;const s=r(6254);function fetchTask(e,t,r){const n=["fetch",...r];if(e&&t){n.push(e,t)}return{commands:n,format:"utf-8",parser:s.parseFetchResult}}t.fetchTask=fetchTask},8199:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hashObjectTask=void 0;const s=r(2815);function hashObjectTask(e,t){const r=["hash-object",e];if(t){r.push("-w")}return s.straightThroughStringTask(r,true)}t.hashObjectTask=hashObjectTask},6016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.initTask=void 0;const s=r(8690);const n="--bare";function hasBareCommand(e){return e.includes(n)}function initTask(e=false,t,r){const o=["init",...r];if(e&&!hasBareCommand(o)){o.splice(1,0,n)}return{commands:o,concatStdErr:false,format:"utf-8",parser(e){return s.parseInit(o.includes("--bare"),t,e)}}}t.initTask=initTask},8627:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logTask=t.parseLogOptions=void 0;const s=r(9729);const n=r(847);var o;(function(e){e[e["--pretty"]=0]="--pretty";e[e["max-count"]=1]="max-count";e[e["maxCount"]=2]="maxCount";e[e["n"]=3]="n";e[e["file"]=4]="file";e[e["format"]=5]="format";e[e["from"]=6]="from";e[e["to"]=7]="to";e[e["splitter"]=8]="splitter";e[e["symmetric"]=9]="symmetric";e[e["multiLine"]=10]="multiLine";e[e["strictDate"]=11]="strictDate"})(o||(o={}));function prettyFormat(e,t){const r=[];const s=[];Object.keys(e).forEach((t=>{r.push(t);s.push(String(e[t]))}));return[r,s.join(t)]}function userOptions(e){const t=Object.assign({},e);Object.keys(e).forEach((e=>{if(e in o){delete t[e]}}));return t}function parseLogOptions(e={},t=[]){const r=e.splitter||s.SPLITTER;const o=e.format||{hash:"%H",date:e.strictDate===false?"%ai":"%aI",message:"%s",refs:"%D",body:e.multiLine?"%B":"%b",author_name:"%aN",author_email:"%ae"};const[i,a]=prettyFormat(o,r);const c=[];const u=[`--pretty=format:${s.START_BOUNDARY}${a}${s.COMMIT_BOUNDARY}`,...t];const l=e.n||e["max-count"]||e.maxCount;if(l){u.push(`--max-count=${l}`)}if(e.from&&e.to){const t=e.symmetric!==false?"...":"..";c.push(`${e.from}${t}${e.to}`)}if(e.file){c.push("--follow",e.file)}n.appendTaskOptions(userOptions(e),u);return{fields:i,splitter:r,commands:[...u,...c]}}t.parseLogOptions=parseLogOptions;function logTask(e,t,r){return{commands:["log",...r],format:"utf-8",parser:s.createListLogSummaryParser(e,t)}}t.logTask=logTask},8829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeTask=void 0;const s=r(5131);const n=r(6412);const o=r(2815);function mergeTask(e){if(!e.length){return o.configurationErrorTask("Git.merge requires at least one option")}return{commands:["merge",...e],format:"utf-8",parser(e,t){const r=n.parseMergeResult(e,t);if(r.failed){throw new s.GitResponseError(r)}return r}}}t.mergeTask=mergeTask},6520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moveTask=void 0;const s=r(7444);const n=r(847);function moveTask(e,t){return{commands:["mv","-v",...n.asArray(e),t],format:"utf-8",parser:s.parseMoveResult}}t.moveTask=moveTask},4636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pullTask=void 0;const s=r(5658);function pullTask(e,t,r){const n=["pull",...r];if(e&&t){n.splice(1,0,e,t)}return{commands:n,format:"utf-8",parser(e,t){return s.parsePullResult(e,t)}}}t.pullTask=pullTask},1435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pushTask=t.pushTagsTask=void 0;const s=r(8530);const n=r(847);function pushTagsTask(e={},t){n.append(t,"--tags");return pushTask(e,t)}t.pushTagsTask=pushTagsTask;function pushTask(e={},t){const r=["push",...t];if(e.branch){r.splice(1,0,e.branch)}if(e.remote){r.splice(1,0,e.remote)}n.remove(r,"-v");n.append(r,"--verbose");n.append(r,"--porcelain");return{commands:r,format:"utf-8",parser:s.parsePushResult}}t.pushTask=pushTask},9866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.removeRemoteTask=t.remoteTask=t.listRemotesTask=t.getRemotesTask=t.addRemoteTask=void 0;const s=r(9999);const n=r(2815);function addRemoteTask(e,t,r=[]){return n.straightThroughStringTask(["remote","add",...r,e,t])}t.addRemoteTask=addRemoteTask;function getRemotesTask(e){const t=["remote"];if(e){t.push("-v")}return{commands:t,format:"utf-8",parser:e?s.parseGetRemotesVerbose:s.parseGetRemotes}}t.getRemotesTask=getRemotesTask;function listRemotesTask(e=[]){const t=[...e];if(t[0]!=="ls-remote"){t.unshift("ls-remote")}return n.straightThroughStringTask(t)}t.listRemotesTask=listRemotesTask;function remoteTask(e=[]){const t=[...e];if(t[0]!=="remote"){t.unshift("remote")}return n.straightThroughStringTask(t)}t.remoteTask=remoteTask;function removeRemoteTask(e){return n.straightThroughStringTask(["remote","remove",e])}t.removeRemoteTask=removeRemoteTask},2377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResetMode=t.resetTask=t.ResetMode=void 0;const s=r(2815);var n;(function(e){e["MIXED"]="mixed";e["SOFT"]="soft";e["HARD"]="hard";e["MERGE"]="merge";e["KEEP"]="keep"})(n=t.ResetMode||(t.ResetMode={}));const o=Array.from(Object.values(n));function resetTask(e,t){const r=["reset"];if(isValidResetMode(e)){r.push(`--${e}`)}r.push(...t);return s.straightThroughStringTask(r)}t.resetTask=resetTask;function getResetMode(e){if(isValidResetMode(e)){return e}switch(typeof e){case"string":case"undefined":return n.SOFT}return}t.getResetMode=getResetMode;function isValidResetMode(e){return o.includes(e)}},810:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stashListTask=void 0;const s=r(9729);const n=r(8627);function stashListTask(e={},t){const r=n.parseLogOptions(e);const o=s.createListLogSummaryParser(r.splitter,r.fields);return{commands:["stash","list",...r.commands,...t],format:"utf-8",parser:o}}t.stashListTask=stashListTask},9197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statusTask=void 0;const s=r(6790);function statusTask(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...e],parser(e){return s.parseStatusSummary(e)}}}t.statusTask=statusTask},8772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.updateSubModuleTask=t.subModuleTask=t.initSubModuleTask=t.addSubModuleTask=void 0;const s=r(2815);function addSubModuleTask(e,t){return subModuleTask(["add",e,t])}t.addSubModuleTask=addSubModuleTask;function initSubModuleTask(e){return subModuleTask(["init",...e])}t.initSubModuleTask=initSubModuleTask;function subModuleTask(e){const t=[...e];if(t[0]!=="submodule"){t.unshift("submodule")}return s.straightThroughStringTask(t)}t.subModuleTask=subModuleTask;function updateSubModuleTask(e){return subModuleTask(["update",...e])}t.updateSubModuleTask=updateSubModuleTask},8540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addAnnotatedTagTask=t.addTagTask=t.tagListTask=void 0;const s=r(4539);function tagListTask(e=[]){const t=e.some((e=>/^--sort=/.test(e)));return{format:"utf-8",commands:["tag","-l",...e],parser(e){return s.parseTagList(e,t)}}}t.tagListTask=tagListTask;function addTagTask(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}t.addTagTask=addTagTask;function addAnnotatedTagTask(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser(){return{name:e}}}}t.addAnnotatedTagTask=addAnnotatedTagTask},2815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmptyTask=t.isBufferTask=t.straightThroughBufferTask=t.straightThroughStringTask=t.configurationErrorTask=t.adhocExecTask=t.EMPTY_COMMANDS=void 0;const s=r(740);t.EMPTY_COMMANDS=[];function adhocExecTask(e){return{commands:t.EMPTY_COMMANDS,format:"utf-8",parser:e}}t.adhocExecTask=adhocExecTask;function configurationErrorTask(e){return{commands:t.EMPTY_COMMANDS,format:"utf-8",parser(){throw typeof e==="string"?new s.TaskConfigurationError(e):e}}}t.configurationErrorTask=configurationErrorTask;function straightThroughStringTask(e,t=false){return{commands:e,format:"utf-8",parser(e){return t?String(e).trim():e}}}t.straightThroughStringTask=straightThroughStringTask;function straightThroughBufferTask(e){return{commands:e,format:"buffer",parser(e){return e}}}t.straightThroughBufferTask=straightThroughBufferTask;function isBufferTask(e){return e.format==="buffer"}t.isBufferTask=isBufferTask;function isEmptyTask(e){return!e.commands.length}t.isEmptyTask=isEmptyTask},7366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.filterHasLength=t.filterFunction=t.filterPlainObject=t.filterStringOrStringArray=t.filterStringArray=t.filterString=t.filterPrimitives=t.filterArray=t.filterType=void 0;const s=r(8237);function filterType(e,t,r){if(t(e)){return e}return arguments.length>2?r:undefined}t.filterType=filterType;const filterArray=e=>Array.isArray(e);t.filterArray=filterArray;function filterPrimitives(e,t){return/number|string|boolean/.test(typeof e)&&(!t||!t.includes(typeof e))}t.filterPrimitives=filterPrimitives;const filterString=e=>typeof e==="string";t.filterString=filterString;const filterStringArray=e=>Array.isArray(e)&&e.every(t.filterString);t.filterStringArray=filterStringArray;const filterStringOrStringArray=e=>t.filterString(e)||Array.isArray(e)&&e.every(t.filterString);t.filterStringOrStringArray=filterStringOrStringArray;function filterPlainObject(e){return!!e&&s.objectToString(e)==="[object Object]"}t.filterPlainObject=filterPlainObject;function filterFunction(e){return typeof e==="function"}t.filterFunction=filterFunction;const filterHasLength=e=>{if(e==null||"number|boolean|function".includes(typeof e)){return false}return Array.isArray(e)||typeof e==="string"||typeof e.length==="number"};t.filterHasLength=filterHasLength},2185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExitCodes=void 0;var r;(function(e){e[e["SUCCESS"]=0]="SUCCESS";e[e["ERROR"]=1]="ERROR";e[e["UNCLEAN"]=128]="UNCLEAN"})(r=t.ExitCodes||(t.ExitCodes={}))},6578:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitOutputStreams=void 0;class GitOutputStreams{constructor(e,t){this.stdOut=e;this.stdErr=t}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}t.GitOutputStreams=GitOutputStreams},847:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))s(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});n(r(7366),t);n(r(2185),t);n(r(6578),t);n(r(9536),t);n(r(5218),t);n(r(3546),t);n(r(1351),t);n(r(8237),t)},9536:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RemoteLineParser=t.LineParser=void 0;class LineParser{constructor(e,t){this.matches=[];this.parse=(e,t)=>{this.resetMatches();if(!this._regExp.every(((t,r)=>this.addMatch(t,r,e(r))))){return false}return this.useMatches(t,this.prepareMatches())!==false};this._regExp=Array.isArray(e)?e:[e];if(t){this.useMatches=t}}useMatches(e,t){throw new Error(`LineParser:useMatches not implemented`)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,r){const s=r&&e.exec(r);if(s){this.pushMatch(t,s)}return!!s}pushMatch(e,t){this.matches.push(...t.slice(1))}}t.LineParser=LineParser;class RemoteLineParser extends LineParser{addMatch(e,t,r){return/^remote:\s/.test(String(r))&&super.addMatch(e,t,r)}pushMatch(e,t){if(e>0||t.length>1){super.pushMatch(e,t)}}}t.RemoteLineParser=RemoteLineParser},5218:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createInstanceConfig=void 0;const r={binary:"git",maxConcurrentProcesses:5,config:[]};function createInstanceConfig(...e){const t=process.cwd();const s=Object.assign(Object.assign({baseDir:t},r),...e.filter((e=>typeof e==="object"&&e)));s.baseDir=s.baseDir||t;return s}t.createInstanceConfig=createInstanceConfig},3546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.trailingFunctionArgument=t.trailingOptionsArgument=t.getTrailingOptions=t.appendTaskOptions=void 0;const s=r(7366);const n=r(8237);function appendTaskOptions(e,t=[]){if(!s.filterPlainObject(e)){return t}return Object.keys(e).reduce(((t,r)=>{const n=e[r];if(s.filterPrimitives(n,["boolean"])){t.push(r+"="+n)}else{t.push(r)}return t}),t)}t.appendTaskOptions=appendTaskOptions;function getTrailingOptions(e,t=0,r=false){const s=[];for(let r=0,n=t<0?e.length:t;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseStringResponse=t.callTaskParser=void 0;const s=r(8237);function callTaskParser(e,t){return e(t.stdOut,t.stdErr)}t.callTaskParser=callTaskParser;function parseStringResponse(e,t,...r){r.forEach((r=>{for(let n=s.toLinesWithContent(r),o=0,i=n.length;o{if(o+e>=i){return}return n[o+e]};t.some((({parse:t})=>t(line,e)))}}));return e}t.parseStringResponse=parseStringResponse},8237:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prefixedArray=t.asNumber=t.asStringArray=t.asArray=t.objectToString=t.remove=t.including=t.append=t.folderExists=t.forEachLineWithContent=t.toLinesWithContent=t.last=t.first=t.splitOn=t.isUserFunction=t.asFunction=t.NOOP=void 0;const s=r(4751);const NOOP=()=>{};t.NOOP=NOOP;function asFunction(e){return typeof e==="function"?e:t.NOOP}t.asFunction=asFunction;function isUserFunction(e){return typeof e==="function"&&e!==t.NOOP}t.isUserFunction=isUserFunction;function splitOn(e,t){const r=e.indexOf(t);if(r<=0){return[e,""]}return[e.substr(0,r),e.substr(r+1)]}t.splitOn=splitOn;function first(e,t=0){return isArrayLike(e)&&e.length>t?e[t]:undefined}t.first=first;function last(e,t=0){if(isArrayLike(e)&&e.length>t){return e[e.length-1-t]}}t.last=last;function isArrayLike(e){return!!(e&&typeof e.length==="number")}function toLinesWithContent(e,t=true,r="\n"){return e.split(r).reduce(((e,r)=>{const s=t?r.trim():r;if(s){e.push(s)}return e}),[])}t.toLinesWithContent=toLinesWithContent;function forEachLineWithContent(e,t){return toLinesWithContent(e,true).map((e=>t(e)))}t.forEachLineWithContent=forEachLineWithContent;function folderExists(e){return s.exists(e,s.FOLDER)}t.folderExists=folderExists;function append(e,t){if(Array.isArray(e)){if(!e.includes(t)){e.push(t)}}else{e.add(t)}return t}t.append=append;function including(e,t){if(Array.isArray(e)&&!e.includes(t)){e.push(t)}return e}t.including=including;function remove(e,t){if(Array.isArray(e)){const r=e.indexOf(t);if(r>=0){e.splice(r,1)}}else{e.delete(t)}return t}t.remove=remove;t.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function asArray(e){return Array.isArray(e)?e:[e]}t.asArray=asArray;function asStringArray(e){return asArray(e).map(String)}t.asStringArray=asStringArray;function asNumber(e,t=0){if(e==null){return t}const r=parseInt(e,10);return isNaN(r)?t:r}t.asNumber=asNumber;function prefixedArray(e,t){const r=[];for(let s=0,n=e.length;s{"use strict";e.exports=e=>{const t=/^\\\\\?\\/.test(e);const r=/[^\u0000-\u0080]+/.test(e);if(t||r){return e}return e.replace(/\\/g,"/")}},9318:(e,t,r)=>{"use strict";const s=r(2087);const n=r(3867);const o=r(1621);const{env:i}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){a=1}else if(i.FORCE_COLOR==="false"){a=0}else{a=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(i.TERM==="dumb"){return r}if(process.platform==="win32"){const e=s.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,n.isatty(1))),stderr:translateLevel(supportsColor(true,n.isatty(2)))}},1861:(e,t,r)=>{"use strict"; /*! * to-regex-range * * Copyright (c) 2015-present, Jon Schlinkert. * Released under the MIT License. - */const n=r(5680);const toRegexRange=(e,t,r)=>{if(n(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(n(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let s={relaxZeros:true,...r};if(typeof s.strictZeros==="boolean"){s.relaxZeros=s.strictZeros===false}let i=String(s.relaxZeros);let o=String(s.shorthand);let a=String(s.capture);let u=String(s.wrap);let c=e+":"+t+"="+i+o+a+u;if(toRegexRange.cache.hasOwnProperty(c)){return toRegexRange.cache[c].result}let l=Math.min(e,t);let p=Math.max(e,t);if(Math.abs(l-p)===1){let r=e+"|"+t;if(s.capture){return`(${r})`}if(s.wrap===false){return r}return`(?:${r})`}let f=hasPadding(e)||hasPadding(t);let d={min:e,max:t,a:l,b:p};let h=[];let g=[];if(f){d.isPadded=f;d.maxLen=String(d.max).length}if(l<0){let e=p<0?Math.abs(p):1;g=splitToPatterns(e,Math.abs(l),d,s);l=d.a=0}if(p>=0){h=splitToPatterns(l,p,d,s)}d.negatives=g;d.positives=h;d.result=collatePatterns(g,h,s);if(s.capture===true){d.result=`(${d.result})`}else if(s.wrap!==false&&h.length+g.length>1){d.result=`(?:${d.result})`}toRegexRange.cache[c]=d;return d.result};function collatePatterns(e,t,r){let n=filterPatterns(e,t,"-",false,r)||[];let s=filterPatterns(t,e,"",false,r)||[];let i=filterPatterns(e,t,"-?",true,r)||[];let o=n.concat(i).concat(s);return o.join("|")}function splitToRanges(e,t){let r=1;let n=1;let s=countNines(e,r);let i=new Set([t]);while(e<=s&&s<=t){i.add(s);r+=1;s=countNines(e,r)}s=countZeros(t+1,n)-1;while(e1){a.count.pop()}a.count.push(u.count[0]);a.string=a.pattern+toQuantifier(a.count);o=t+1;continue}if(r.isPadded){c=padZeros(t,r,n)}u.string=c+u.pattern+toQuantifier(u.count);i.push(u);o=t+1;a=u}return i}function filterPatterns(e,t,r,n,s){let i=[];for(let s of e){let{string:e}=s;if(!n&&!contains(t,"string",e)){i.push(r+e)}if(n&&contains(t,"string",e)){i.push(r+e)}}return i}function zip(e,t){let r=[];for(let n=0;nt?1:t>e?-1:0}function contains(e,t,r){return e.some((e=>e[t]===r))}function countNines(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){let[t=0,r=""]=e;if(r||t>1){return`{${t+(r?","+r:"")}}`}return""}function toCharacterClass(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function hasPadding(e){return/^-?(0+)\d/.test(e)}function padZeros(e,t,r){if(!t.isPadded){return e}let n=Math.abs(t.maxLen-String(e).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}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};e.exports=toRegexRange},1313:(e,t,r)=>{ + */const s=r(5680);const toRegexRange=(e,t,r)=>{if(s(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(s(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let n={relaxZeros:true,...r};if(typeof n.strictZeros==="boolean"){n.relaxZeros=n.strictZeros===false}let o=String(n.relaxZeros);let i=String(n.shorthand);let a=String(n.capture);let c=String(n.wrap);let u=e+":"+t+"="+o+i+a+c;if(toRegexRange.cache.hasOwnProperty(u)){return toRegexRange.cache[u].result}let l=Math.min(e,t);let p=Math.max(e,t);if(Math.abs(l-p)===1){let r=e+"|"+t;if(n.capture){return`(${r})`}if(n.wrap===false){return r}return`(?:${r})`}let d=hasPadding(e)||hasPadding(t);let g={min:e,max:t,a:l,b:p};let h=[];let m=[];if(d){g.isPadded=d;g.maxLen=String(g.max).length}if(l<0){let e=p<0?Math.abs(p):1;m=splitToPatterns(e,Math.abs(l),g,n);l=g.a=0}if(p>=0){h=splitToPatterns(l,p,g,n)}g.negatives=m;g.positives=h;g.result=collatePatterns(m,h,n);if(n.capture===true){g.result=`(${g.result})`}else if(n.wrap!==false&&h.length+m.length>1){g.result=`(?:${g.result})`}toRegexRange.cache[u]=g;return g.result};function collatePatterns(e,t,r){let s=filterPatterns(e,t,"-",false,r)||[];let n=filterPatterns(t,e,"",false,r)||[];let o=filterPatterns(e,t,"-?",true,r)||[];let i=s.concat(o).concat(n);return i.join("|")}function splitToRanges(e,t){let r=1;let s=1;let n=countNines(e,r);let o=new Set([t]);while(e<=n&&n<=t){o.add(n);r+=1;n=countNines(e,r)}n=countZeros(t+1,s)-1;while(e1){a.count.pop()}a.count.push(c.count[0]);a.string=a.pattern+toQuantifier(a.count);i=t+1;continue}if(r.isPadded){u=padZeros(t,r,s)}c.string=u+c.pattern+toQuantifier(c.count);o.push(c);i=t+1;a=c}return o}function filterPatterns(e,t,r,s,n){let o=[];for(let n of e){let{string:e}=n;if(!s&&!contains(t,"string",e)){o.push(r+e)}if(s&&contains(t,"string",e)){o.push(r+e)}}return o}function zip(e,t){let r=[];for(let s=0;st?1:t>e?-1:0}function contains(e,t,r){return e.some((e=>e[t]===r))}function countNines(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){let[t=0,r=""]=e;if(r||t>1){return`{${t+(r?","+r:"")}}`}return""}function toCharacterClass(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function hasPadding(e){return/^-?(0+)\d/.test(e)}function padZeros(e,t,r){if(!t.isPadded){return e}let s=Math.abs(t.maxLen-String(e).length);let n=r.relaxZeros!==false;switch(s){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:{return n?`0{0,${s}}`:`0{${s}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};e.exports=toRegexRange},4294:(e,t,r)=>{e.exports=r(4219)},4219:(e,t,r)=>{"use strict";var s=r(1631);var n=r(4016);var o=r(8605);var i=r(7211);var a=r(8614);var c=r(2357);var u=r(1669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,s,n){var o=toOptions(r,s,n);for(var i=0,a=t.requests.length;i=this.maxSockets){n.requests.push(o);return}n.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){n.emit("free",t,o)}function onCloseOrRemove(e){n.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var s={};r.sockets.push(s);var n=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){n.localAddress=e.localAddress}if(n.proxyAuth){n.headers=n.headers||{};n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")}l("making CONNECT request");var o=r.request(n);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(n,i,a){o.removeAllListeners();i.removeAllListeners();if(n.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",n.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+n.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(s);return}if(a.length>0){l("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(s);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(s)]=i;return t(i)}function onError(t){o.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=new Error("tunneling socket could not be established, "+"cause="+t.message);n.code="ECONNRESET";e.request.emit("error",n);r.removeSocket(s)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(s){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:s,servername:o?o.replace(/:.*$/,""):e.host});var a=n.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},2940:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r{ /*! * Git release flow that deletes files from branch before merging * -- @@ -56,4 +68,4 @@ e.exports=runParallel;const n=r(9795);function runParallel(e,t){let r,s,i;let o= * You should have received a copy of the GNU General Public License * along with this program. If not see */ -const n=r(3398);e.exports=async function gitStripMerge(e,t,r,{deleteCommitMessage:s="delete commit",mergeCommitMessage:i="merge commit"}={}){async function gitBranch(t){const r=await e.raw(["symbolic-ref",t]);const n=r.match(/refs\/heads\/(.*)/);if(n&&n[1]){return n[1]}return e.revparse(t)}const o=e._executor.cwd?e._executor.cwd:process.cwd();const a=await gitBranch("HEAD");const u=await e.revparse(t);await e.checkout(a);await e.checkout(u);const c=await n(r,{cwd:o,dot:true});if(c.length>0){await e.rm(c);await e.commit(s)}const l=await e.revparse("HEAD");await e.checkout(a);await e.merge(["-m",i,l,"--no-ff"])}},3129:e=>{"use strict";e.exports=require("child_process")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},3867:e=>{"use strict";e.exports=require("tty")},1669:e=>{"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var s=t[r]={exports:{}};var i=true;try{e[r].call(s.exports,s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r={};(()=>{const e=__nccwpck_require__(5622);const t=__nccwpck_require__(2186);const r=__nccwpck_require__(1477);const n=__nccwpck_require__(1313);async function run(){const s=e.join(process.cwd());const i=r({baseDir:s});const o=t.getInput("release-tag",{required:true});const a=t.getInput("exclude",{required:true});const u=t.getInput("release-branch",{required:true});const c=t.getInput("upstream-branch",{required:true});let l=[];try{const e=JSON.parse(a);if(Array.isArray(e)&&e.find((e=>typeof e!=="string"))===undefined){l=e}}catch(e){if(a){l=[a]}}await i.addConfig("user.name","github-actions[bot]");await i.addConfig("user.email","41898282+github-actions[bot]@users.noreply.github.com");await i.checkout(u);await n(i,c,l);t.info(`Creating new tag ${o}`);await i.addAnnotatedTag(o,`Release ${o}`);i.push("origin",u);i.pushTags("origin")}try{run()}catch(e){console.log(e)}})();module.exports=r})(); \ No newline at end of file +const s=r(3398);e.exports=async function gitStripMerge(e,t,r,{deleteCommitMessage:n="Release: exclude files"}={}){async function gitBranch(t){const r=await e.raw(["symbolic-ref",t]);const s=r.match(/refs\/heads\/(.*)/);if(s&&s[1]){return s[1]}return e.revparse(t)}const o=e._executor.cwd?e._executor.cwd:process.cwd();const i=await gitBranch("HEAD");const a=await e.revparse(t);await e.checkout(i);await e.checkout(a);const c=await s(r,{cwd:o,dot:true});if(c.length>0){await e.rm(c);await e.commit(n)}const u=await e.revparse("HEAD");await e.checkout(i);await e.merge([u,"--no-ff"])}},1608:(e,t,r)=>{"use strict";r.r(t);r.d(t,{getInputAsArray:()=>getInputAsArray});const s=r(2186);function getInputAsArray(e,t){return s.getInput(e,t).split("\n").map((e=>e.trim())).filter((e=>e!==""))}},2877:module=>{module.exports=eval("require")("encoding")},2357:e=>{"use strict";e.exports=require("assert")},3129:e=>{"use strict";e.exports=require("child_process")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},4016:e=>{"use strict";e.exports=require("tls")},3867:e=>{"use strict";e.exports=require("tty")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var r=__webpack_module_cache__[e]={exports:{}};var s=true;try{__webpack_modules__[e].call(r.exports,r,r.exports,__nccwpck_require__);s=false}finally{if(s)delete __webpack_module_cache__[e]}return r.exports}(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{const e=__nccwpck_require__(2186);const t=__nccwpck_require__(5438);const r=__nccwpck_require__(1477);const s=__nccwpck_require__(1313);const{getInputAsArray:n}=__nccwpck_require__(1608);async function run(){const o=process.cwd();const i=r({baseDir:o});const a=e.getInput("release-tag",{required:true});const c=n("exclude",{required:true});const u=e.getInput("release-branch",{required:true});const l=t.context.ref.substring("refs/heads/".length);if(!l){e.setFailed(`Failed to get the upstream branch name from the GitHub context. Got: ${t.context.ref}`)}await i.addConfig("user.name","github-actions[bot]");await i.addConfig("user.email","41898282+github-actions[bot]@users.noreply.github.com");await i.checkout(u);await s(i,l,c);e.info(`Creating new tag ${a}`);await i.addAnnotatedTag(a,`Release ${a}`);i.push("origin",u);i.pushTags("origin")}try{run()}catch(e){console.log(e)}})();module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/dist/third-party-licenses.txt b/dist/third-party-licenses.txt index de9520f..290cb6c 100644 --- a/dist/third-party-licenses.txt +++ b/dist/third-party-licenses.txt @@ -10,6 +10,43 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +@actions/github +MIT +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@actions/http-client +MIT +Actions Http Client for Node.js + +Copyright (c) GitHub, Inc. + +All rights reserved. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + @kwsites/file-exists MIT The MIT License (MIT) @@ -134,6 +171,178 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +@octokit/auth-token +MIT +The MIT License + +Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/core +MIT +The MIT License + +Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/endpoint +MIT +The MIT License + +Copyright (c) 2018 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/graphql +MIT +The MIT License + +Copyright (c) 2018 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/plugin-paginate-rest +MIT +MIT License Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@octokit/plugin-rest-endpoint-methods +MIT +MIT License Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@octokit/request +MIT +The MIT License + +Copyright (c) 2018 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/request-error +MIT +The MIT License + +Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + @vercel/ncc MIT Copyright 2018 ZEIT, Inc. @@ -157,6 +366,211 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +before-after-hook +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018 Gregor Martynus and other contributors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + braces MIT The MIT License (MIT) @@ -205,6 +619,25 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +deprecation +ISC +The ISC License + +Copyright (c) Gregor Martynus and contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + dir-glob MIT MIT License @@ -429,6 +862,31 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +is-plain-object +MIT +The MIT License (MIT) + +Copyright (c) 2014-2017, Jon Schlinkert. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + merge2 MIT The MIT License (MIT) @@ -504,6 +962,51 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +node-fetch +MIT +The MIT License (MIT) + +Copyright (c) 2016 David Frank + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +once +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + path-type MIT MIT License @@ -689,3 +1192,58 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +tunnel +MIT +The MIT License (MIT) + +Copyright (c) 2012 Koichi Kobayashi + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +universal-user-agent +ISC +# [ISC License](https://spdx.org/licenses/ISC) + +Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m) + +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +wrappy +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.