* chore(deps-dev): bump @vercel/ncc from 0.27.0 to 0.28.2 Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.27.0 to 0.28.2. - [Release notes](https://github.com/vercel/ncc/releases) - [Commits](https://github.com/vercel/ncc/compare/0.27.0...0.28.2) Signed-off-by: dependabot[bot] <support@github.com> * chore: use explicit moduleResolution Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Federico Grandi <fgrandi30@gmail.com>
3 lines
144 KiB
JavaScript
Generated
3 lines
144 KiB
JavaScript
Generated
(()=>{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},8222:(e,t,r)=>{t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();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)}function log(...e){return typeof console==="object"&&console.log&&console.log(...e)}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);Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;function debug(...e){if(!debug.enabled){return}const r=debug;const n=Number(new Date);const s=n-(t||n);r.diff=s;r.prev=t;r.curr=n;t=n;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,n)=>{if(t==="%%"){return t}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.enabled=createDebug.enabled(e);debug.useColors=createDebug.useColors();debug.color=selectColor(e);debug.destroy=destroy;debug.extend=extend;if(typeof createDebug.init==="function"){createDebug.init(debug)}createDebug.instances.push(debug);return debug}function destroy(){const e=createDebug.instances.indexOf(this);if(e!==-1){createDebug.instances.splice(e,1);return true}return false}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.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t<n;t++){if(!r[t]){continue}e=r[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}for(t=0;t<createDebug.instances.length;t++){const e=createDebug.instances[t];e.enabled=createDebug.enabled(e.namespace)}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+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<r;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,r=createDebug.names.length;t<r;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},8231:(e,t,r)=>{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.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} [0m`;t[0]=i+t[0].split("\n").join("\n"+i);t.push(s+"m+"+e.exports.humanize(this.diff)+"[0m")}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;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}e.exports=r(6243)(t);const{formatters:i}=e.exports;i.o=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts).replace(/\s*\n\s*/g," ")};i.O=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts)}},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<s)}},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":"")}},254:(e,t,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(8867)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8867:(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<e.length;r++){t=(t<<5)-t+e.charCodeAt(r);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let r=null;function debug(...e){if(!debug.enabled){return}const r=debug;const n=Number(new Date);const s=n-(t||n);r.diff=s;r.prev=t;r.curr=n;t=n;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,n)=>{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:()=>r===null?createDebug.enabled(e):r,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.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t<n;t++){if(!r[t]){continue}e=r[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+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<r;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,r=createDebug.names.length;t<r;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},2179:(e,t,r)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(254)}else{e.exports=r(675)}},675:(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} [0m`;t[0]=i+t[0].split("\n").join("\n"+i);t.push(s+"m+"+e.exports.humanize(this.diff)+"[0m")}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;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}e.exports=r(8867)(t);const{formatters:i}=e.exports;i.o=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};i.O=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts)}},1949:(e,t,r)=>{const n=r(4966);const{GitConstructError:s}=r(4732);const{createInstanceConfig:i,folderExists:o}=r(847);const a=Object.create(null);for(let e=r(4732),t=Object.keys(e),n=0;n<t.length;n++){const r=t[n];if(/^[A-Z]/.test(r)){a[r]=e[r]}}e.exports.esModuleFactory=function esModuleFactory(e){return Object.defineProperties(e,{__esModule:{value:true},default:{value:e}})};e.exports.gitExportFactory=function gitExportFactory(e,t){return Object.assign((function(){return e.apply(null,arguments)}),a,t||{})};e.exports.gitInstanceFactory=function gitInstanceFactory(e,t){const r=i(e&&(typeof e==="string"?{baseDir:e}:e),t);if(!o(r.baseDir)){throw new s(r,`Cannot use simple-git on a directory that does not exist`)}return new n(r)}},4966:(e,t,r)=>{const{GitExecutor:n}=r(4701);const{Scheduler:s}=r(3421);const{GitLogger:i}=r(7178);const{adhocExecTask:o,configurationErrorTask:a}=r(2815);const{NOOP:u,appendTaskOptions:c,asArray:l,filterArray:f,filterPrimitives:p,filterString:d,filterStringOrStringArray:h,filterType:g,folderExists:m,getTrailingOptions:y,trailingFunctionArgument:b,trailingOptionsArgument:v}=r(847);const{branchTask:C,branchLocalTask:k,deleteBranchesTask:_,deleteBranchTask:O}=r(17);const{taskCallback:T}=r(8850);const{checkIsRepoTask:w}=r(221);const{cloneTask:E,cloneMirrorTask:S}=r(3173);const{addConfigTask:A,listConfigTask:R}=r(7597);const{cleanWithOptionsTask:D,isCleanOptionsArray:I}=r(4386);const{commitTask:F}=r(5494);const{diffSummaryTask:M}=r(9241);const{fetchTask:L}=r(8823);const{hashObjectTask:P}=r(8199);const{initTask:x}=r(6016);const{logTask:N,parseLogOptions:j}=r(8627);const{mergeTask:G}=r(8829);const{moveTask:B}=r(6520);const{pullTask:$}=r(4636);const{pushTagsTask:U,pushTask:Y}=r(1435);const{addRemoteTask:W,getRemotesTask:q,listRemotesTask:H,remoteTask:V,removeRemoteTask:z}=r(9866);const{getResetMode:K,resetTask:Q}=r(2377);const{stashListTask:J}=r(810);const{statusTask:Z}=r(9197);const{addSubModuleTask:X,initSubModuleTask:ee,subModuleTask:te,updateSubModuleTask:re}=r(8772);const{addAnnotatedTagTask:ne,addTagTask:se,tagListTask:ie}=r(8540);const{straightThroughStringTask:oe}=r(2815);const{parseCheckIgnore:ae}=r(9926);const ue=Symbol("ChainedExecutor");function Git(e){this._executor=new n(e.binary,e.baseDir,new s(e.maxConcurrentProcesses));this._logger=new i}Git.prototype._executor=null;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"?a("Git.cwd: workingDirectory must be supplied as a string"):o((()=>{if(!m(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(x(e===true,this._executor.cwd,y(arguments)),b(arguments))};Git.prototype.status=function(){return this._runTask(Z(y(arguments)),b(arguments))};Git.prototype.stashList=function(e){return this._runTask(J(v(arguments)||{},f(e)&&e||[]),b(arguments))};Git.prototype.stash=function(e,t){return this._runTask(oe(["stash",...y(arguments)]),b(arguments))};function createCloneTask(e,t,r,n){if(typeof r!=="string"){return a(`git.${e}() requires a string 'repoPath'`)}return t(r,g(n,d),y(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",E,...arguments),b(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",S,...arguments),b(arguments))};Git.prototype.mv=function(e,t){return this._runTask(B(e,t),b(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.add=function(e){return this._run(["add"].concat(e),b(arguments))};Git.prototype.commit=function(e,t,r,n){const s=b(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(F(i,l(g(t,h,[])),[...g(r,f,[]),...y(arguments,0,true)]),s)};Git.prototype.pull=function(e,t,r,n){return this._runTask($(g(e,d),g(t,d),y(arguments)),b(arguments))};Git.prototype.fetch=function(e,t){return this._runTask(L(g(e,d),g(t,d),y(arguments)),b(arguments))};Git.prototype.silent=function(e){this._logger.silent(!!e);return this};Git.prototype.tags=function(e,t){return this._runTask(ie(y(arguments)),b(arguments))};Git.prototype.rebase=function(){return this._run(["rebase"].concat(y(arguments)),b(arguments))};Git.prototype.reset=function(e,t){return this._runTask(Q(K(e),y(arguments)),b(arguments))};Git.prototype.revert=function(e){const t=b(arguments);if(typeof e!=="string"){return this._runTask(a("Commit must be a string"),t)}return this._run(["revert",...y(arguments,0,true),e],t)};Git.prototype.addTag=function(e,t){const r=typeof e==="string"?se(e):a("Git.addTag requires a tag name");return this._runTask(r,b(arguments))};Git.prototype.addAnnotatedTag=function(e,t,r){return this._runTask(ne(e,t),b(arguments))};Git.prototype.checkout=function(e,t){const r=["checkout",...y(arguments,true)];return this._runTask(oe(r),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(O(e,typeof t==="boolean"?t:false),b(arguments))};Git.prototype.deleteLocalBranches=function(e,t,r){return this._runTask(_(e,typeof t==="boolean"?t:false),b(arguments))};Git.prototype.branch=function(e,t){return this._runTask(C(y(arguments)),b(arguments))};Git.prototype.branchLocal=function(e){return this._runTask(k(),b(arguments))};Git.prototype.addConfig=function(e,t,r,n){return this._runTask(A(e,t,typeof r==="boolean"?r:false),b(arguments))};Git.prototype.listConfig=function(){return this._runTask(R(),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<r.length&&t;e++){if(!p(r[e])){r.splice(e,r.length-e);break}}r.push(...y(arguments,0,true));var n=b(arguments);if(!r.length){return this._runTask(a("Raw: must supply one or more command to execute"),n)}return this._run(r,n)};Git.prototype.submoduleAdd=function(e,t,r){return this._runTask(X(e,t),b(arguments))};Git.prototype.submoduleUpdate=function(e,t){return this._runTask(re(y(arguments,true)),b(arguments))};Git.prototype.submoduleInit=function(e,t){return this._runTask(ee(y(arguments,true)),b(arguments))};Git.prototype.subModule=function(e,t){return this._runTask(te(y(arguments)),b(arguments))};Git.prototype.listRemote=function(){return this._runTask(H(y(arguments)),b(arguments))};Git.prototype.addRemote=function(e,t,r){return this._runTask(W(e,t,y(arguments)),b(arguments))};Git.prototype.removeRemote=function(e,t){return this._runTask(z(e),b(arguments))};Git.prototype.getRemotes=function(e,t){return this._runTask(q(e===true),b(arguments))};Git.prototype.hashObject=function(e,t){return this._runTask(P(e,t===true),b(arguments))};Git.prototype.remote=function(e,t){return this._runTask(V(y(arguments)),b(arguments))};Git.prototype.mergeFromTo=function(e,t){if(!(d(e)&&d(t))){return this._runTask(a(`Git.mergeFromTo requires that the 'from' and 'to' arguments are supplied as strings`))}return this._runTask(G([e,t,...y(arguments)]),b(arguments,false))};Git.prototype.merge=function(){return this._runTask(G(y(arguments)),b(arguments))};Git.prototype.tag=function(e,t){const r=y(arguments);if(r[0]!=="tag"){r.unshift("tag")}return this._run(r,b(arguments))};Git.prototype.updateServerInfo=function(e){return this._run(["update-server-info"],b(arguments))};Git.prototype.push=function(e,t,r){const n=Y({remote:g(e,d),branch:g(t,d)},y(arguments));return this._runTask(n,b(arguments))};Git.prototype.pushTags=function(e,t){const r=U({remote:g(e,d)},y(arguments));return this._runTask(r,b(arguments))};Git.prototype.rm=function(e,t){return this._rm(e,"-f",t)};Git.prototype.rmKeepLocal=function(e,t){return this._rm(e,"--cached",t)};Git.prototype.catFile=function(e,t){return this._catFile("utf-8",arguments)};Git.prototype.binaryCatFile=function(e,t){return this._catFile("buffer",arguments)};Git.prototype._catFile=function(e,t){var r=b(t);var n=["cat-file"];var s=t[0];if(typeof s==="string"){return this._runTask(a("Git#catFile: options must be supplied as an array of strings"),r)}if(Array.isArray(s)){n.push.apply(n,s)}return this._run(n,r,{format:e})};Git.prototype.diff=function(e,t){const r=["diff",...y(arguments)];if(typeof e==="string"){r.splice(1,0,e);this._logger.warn("Git#diff: supplying options as a single string is now deprecated, switch to an array of strings")}return this._runTask(oe(r),b(arguments))};Git.prototype.diffSummary=function(){return this._runTask(M(y(arguments,1)),b(arguments))};Git.prototype.revparse=function(){const e=["rev-parse",...y(arguments,true)];return this._runTask(oe(e,true),b(arguments))};Git.prototype.show=function(e,t){return this._runTask(oe(["show",...y(arguments,1)]),b(arguments))};Git.prototype.clean=function(e,t,r){const n=I(e);const s=n&&e.join("")||g(e,d)||"";const i=y([].slice.call(arguments,n?1:0));return this._runTask(D(s,i),b(arguments))};Git.prototype.exec=function(e){const t={commands:[],format:"utf-8",parser(){if(typeof e==="function"){e()}}};return this._runTask(t)};Git.prototype.log=function(e){const t=b(arguments);if(d(arguments[0])&&d(arguments[1])){return this._runTask(a(`git.log(string, string) should be replaced with git.log({ from: string, to: string })`),t)}const r=j(v(arguments)||{},f(e)&&e||[]);return this._runTask(N(r.splitter,r.fields,r.commands),t)};Git.prototype.clearQueue=function(){return this};Git.prototype.checkIgnore=function(e,t){return this._run(["check-ignore",...l(g(e,h,[]))],b(arguments),{parser:ae})};Git.prototype.checkIsRepo=function(e,t){return this._runTask(w(g(e,d)),b(arguments))};Git.prototype._rm=function(e,t,r){var n=[].concat(e);var s=["rm",t];s.push.apply(s,n);return this._run(s,b(arguments))};Git.prototype._run=function(e,t,r){const n=Object.assign({concatStdErr:false,onError:undefined,format:"utf-8",parser(e){return e}},r||{},{commands:e});return this._runTask(n,t)};Git.prototype._runTask=function(e,t){const r=this[ue]||this._executor.chain();const n=r.push(e);T(e,n,t);return Object.create(this,{then:{value:n.then.bind(n)},catch:{value:n.catch.bind(n)},[ue]:{value:r}})};e.exports=Git},1477:(e,t,r)=>{const{gitP:n}=r(941);const{esModuleFactory:s,gitInstanceFactory:i,gitExportFactory:o}=r(1949);e.exports=s(o(i,{gitP:n}))},4732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TaskConfigurationError=t.GitResponseError=t.GitError=t.GitConstructError=t.ResetMode=t.CheckRepoActions=t.CleanOptions=void 0;var n=r(4386);Object.defineProperty(t,"CleanOptions",{enumerable:true,get:function(){return n.CleanOptions}});var s=r(221);Object.defineProperty(t,"CheckRepoActions",{enumerable:true,get:function(){return s.CheckRepoActions}});var i=r(2377);Object.defineProperty(t,"ResetMode",{enumerable:true,get:function(){return i.ResetMode}});var o=r(1876);Object.defineProperty(t,"GitConstructError",{enumerable:true,get:function(){return o.GitConstructError}});var a=r(5757);Object.defineProperty(t,"GitError",{enumerable:true,get:function(){return a.GitError}});var u=r(5131);Object.defineProperty(t,"GitResponseError",{enumerable:true,get:function(){return u.GitResponseError}});var c=r(740);Object.defineProperty(t,"TaskConfigurationError",{enumerable:true,get:function(){return c.TaskConfigurationError}})},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},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},7178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitLogger=t.createLogger=t.log=void 0;const n=r(2179);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 destroy(){a.forEach((e=>e.destroy()));a.length=0}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,destroy:destroy})}}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(.*)$/,((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])=>{e.branch=t;e.commit=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:"",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<n;e++){const n=t[e];textFileChange(n,r)||binaryFileChange(n,r)}return r}t.parseDiffResult=parseDiffResult;function readSummaryLine(e,t){(t||"").trim().split(", ").forEach((function(t){const r=/(\d+)\s([a-z]+)/.exec(t);if(!r){return}summaryType(e,r[2],parseInt(r[1],10))}))}function summaryType(e,t,r){const n=/([a-z]+?)s?\b/.exec(t);if(!n||!s[n[1]]){return}s[n[1]](e,r)}const s={file(e,t){e.changed=t},deletion(e,t){e.deletions=t},insertion(e,t){e.insertions=t}};function textFileChange(e,{files:t}){const r=e.trim().match(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/);if(r){var n=(r[3]||"").trim();t.push({file:r[1].trim(),changes:parseInt(r[2],10),insertions:n.replace(/-/g,"").length,deletions:n.replace(/\+/g,"").length,binary:false});return true}return false}function binaryFileChange(e,{files:t}){const r=e.match(/^(.+) \|\s+Bin ([0-9.]+) -> ([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)}))]},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<s;){const s=configFilePath(r[e++]);const[i,o]=n.splitOn(r[e++],"\n");t.addValue(s,i,o)}return t}t.configListParser=configListParser;function configFilePath(e){return e.replace(/^(file):/,"")}},4781:(e,t)=>{"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<n;e++){splitLine(r,t[e])}return r};t.parseStatusSummary=parseStatusSummary;function splitLine(e,t){const r=t.trim();switch(" "){case r.charAt(2):return data(r.charAt(0),r.charAt(1),r.substr(3));case r.charAt(1):return data(i.NONE,r.charAt(0),r.substr(2));default:return}function data(t,r,n){const i=`${t}${r}`;const a=o.get(i);if(a){a(e,n)}if(i!=="##"){e.files.push(new s.FileStatusSummary(n,t,r))}}}},4539:(e,t)=>{"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);e<t;e++){const t=sorted(toNumber(r[e]),toNumber(n[e]));if(t){return t}}return 0}))}const n=t?r[0]:[...r].reverse().find((e=>e.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(4732);const o=r(2815);const a=r(6676);const u=r(847);class GitExecutorChain{constructor(e,t){this._executor=e;this._scheduler=t;this._chain=Promise.resolve();this._queue=new a.TasksPendingQueue}get binary(){return this._executor.binary}get outputHandler(){return this._executor.outputHandler}get cwd(){return this._executor.cwd}get env(){return this._executor.env}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=yield this.gitResponse(this.binary,e.commands,this.outputHandler,t.step("SPAWN"));const n=yield this.handleTaskData(e,r,t.step("HANDLE"));t(`passing response to task's parser as a %s`,e.format);if(o.isBufferTask(e)){return u.callTaskParser(e.parser,n)}return u.callTaskParser(e.parser,n.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,stdOut:n,stdErr:s},i){return new Promise(((o,a)=>{i(`Preparing to handle process response exitCode=%d stdOut=`,r);if(r&&s.length&&e){i.info(`exitCode=%s handling with custom error handler`);i(`concatenate stdErr to stdOut: %j`,t);return e(r,Buffer.concat([...t?n:[],...s]).toString("utf-8"),(e=>{i.info(`custom error handler treated as success`);i(`custom error returned a %s`,u.objectToString(e));o(new u.GitOutputStreams(Buffer.isBuffer(e)?e:Buffer.from(String(e)),Buffer.concat(s)))}),a)}if(r&&s.length){i.info(`exitCode=%s treated as error when then child process has written to stdErr`);return a(Buffer.concat(s).toString("utf-8"))}if(t){i(`concatenating stdErr onto stdOut before processing`);i(`stdErr: $O`,s);n.push(...s)}i.info(`retrieving task output complete`);o(new u.GitOutputStreams(Buffer.concat(n),Buffer.concat(s)))}))}gitResponse(e,t,r,i){return n(this,void 0,void 0,(function*(){const n=i.sibling("output");const o={cwd:this.cwd,env:this.env,windowsHide:true};return new Promise((a=>{const u=[];const c=[];let l=false;function attemptClose(e,t="retry"){if(l||c.length||u.length){i.info(`exitCode=%s event=%s`,e,t);a({stdOut:u,stdErr:c,exitCode:e});l=true;n.destroy()}if(!l){l=true;setTimeout((()=>attemptClose(e,"deferred")),50);i("received %s event before content on stdOut/stdErr",t)}}i.info(`%s %o`,e,t);i("%O",o);const f=s.spawn(e,t,o);f.stdout.on("data",onDataReceived(u,"stdOut",i,n.step("stdOut")));f.stderr.on("data",onDataReceived(c,"stdErr",i,n.step("stdErr")));f.on("error",onErrorReceived(c,i));f.on("close",(e=>attemptClose(e,"close")));f.on("exit",(e=>attemptClose(e,"exit")));if(r){i(`Passing child process stdOut/stdErr to custom outputHandler`);r(e,f.stdout,f.stderr,[...t])}}))}))}}t.GitExecutorChain=GitExecutorChain;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){this.binary=e;this.cwd=t;this._scheduler=r;this._chain=new n.GitExecutorChain(this,this._scheduler)}chain(){return new n.GitExecutorChain(this,this._scheduler)}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=["customBinary","env","outputHandler","silent"];const i=["add","addAnnotatedTag","addConfig","addRemote","addTag","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"];const{gitInstanceFactory:o}=r(1949);function gitP(...e){let t;let r=Promise.resolve();try{t=o(...e)}catch(e){r=Promise.reject(e)}function builderReturn(){return n}function chainReturn(){return r}const n=[...s,...i].reduce(((e,r)=>{const n=i.includes(r);const s=n?asyncWrapper(r,t):syncWrapper(r,t,e);const o=n?chainReturn:builderReturn;Object.defineProperty(e,r,{enumerable:false,configurable:false,value:t?s:o});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(7178);const s=r(4732);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){t.logger.destroy();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},8850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.taskCallback=void 0;const n=r(4732);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}}},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},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.flatMap((e=>["-m",e])),...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);const i=new Set(["--pretty","max-count","maxCount","n","file","format","from","to","splitter","symmetric","multiLine","strictDate"]);function prettyFormat(e,t){const r=[];const n=[];Object.entries(e).forEach((([e,t])=>{r.push(e);n.push(t)}));return[r,n.join(t)]}function userOptions(e){return Object.fromEntries(Object.entries(e).filter((([e])=>!i.has(e))))}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(4732);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.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 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};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<s;r++){if("string|number".includes(typeof e[r])){n.push(String(e[r]))}}appendTaskOptions(trailingOptionsArgument(e),n);if(!r){n.push(...trailingArrayArgument(e))}return n}t.getTrailingOptions=getTrailingOptions;function trailingArrayArgument(e){const t=typeof s.last(e)==="function";return n.filterType(s.last(e,t?1:0),n.filterArray,[])}function trailingOptionsArgument(e){const t=n.filterFunction(s.last(e));return n.filterType(s.last(e,t?1:0),n.filterPlainObject)}t.trailingOptionsArgument=trailingOptionsArgument;function trailingFunctionArgument(e,t=true){const r=s.asFunction(s.last(e));return t||s.isUserFunction(r)?r:undefined}t.trailingFunctionArgument=trailingFunctionArgument},1351:(e,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<o;i++){const line=(e=0)=>{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.asNumber=t.asStringArray=t.asArray=t.objectToString=t.remove=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 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},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)))}},875:e=>{function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}webpackEmptyContext.keys=()=>[];webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=875;e.exports=webpackEmptyContext},3129:e=>{"use strict";e.exports=require("child_process")},5747:e=>{"use strict";e.exports=require("fs")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},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}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__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 r={};(()=>{"use strict";__nccwpck_require__.r(r);var e=__nccwpck_require__(2186);var t=__nccwpck_require__(5622);var n=__nccwpck_require__.n(t);var s=__nccwpck_require__(1477);var i=__nccwpck_require__.n(s);
|
||
/*! js-yaml 4.0.0 https://github.com/nodeca/js-yaml @license MIT */
|
||
function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var r,n,s,i;if(t){i=Object.keys(t);for(r=0,n=i.length;r<n;r+=1){s=i[r];e[s]=t[s]}}return e}function repeat(e,t){var r="",n;for(n=0;n<t;n+=1){r+=e}return r}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var o=isNothing;var a=isObject;var u=toArray;var c=repeat;var l=isNegativeZero;var f=extend;var p={isNothing:o,isObject:a,toArray:u,repeat:c,isNegativeZero:l,extend:f};function formatError(e,t){var r="",n=e.reason||"(unknown reason)";if(!e.mark)return n;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return n+" "+r}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};var d=YAMLException;function getLine(e,t,r,n,s){var i="";var o="";var a=Math.floor(s/2)-1;if(n-t>a){i=" ... ";t=n-a+i.length}if(r-n>a){o=" ...";r=n+a-o.length}return{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function padStart(e,t){return p.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var r=/\r?\n|\r|\0/g;var n=[0];var s=[];var i;var o=-1;while(i=r.exec(e.buffer)){s.push(i.index);n.push(i.index+i[0].length);if(e.position<=i.index&&o<0){o=n.length-2}}if(o<0)o=n.length-1;var a="",u,c;var l=Math.min(e.line+t.linesAfter,s.length).toString().length;var f=t.maxLength-(t.indent+l+3);for(u=1;u<=t.linesBefore;u++){if(o-u<0)break;c=getLine(e.buffer,n[o-u],s[o-u],e.position-(n[o]-n[o-u]),f);a=p.repeat(" ",t.indent)+padStart((e.line-u+1).toString(),l)+" | "+c.str+"\n"+a}c=getLine(e.buffer,n[o],s[o],e.position,f);a+=p.repeat(" ",t.indent)+padStart((e.line+1).toString(),l)+" | "+c.str+"\n";a+=p.repeat("-",t.indent+l+3+c.pos)+"^"+"\n";for(u=1;u<=t.linesAfter;u++){if(o+u>=s.length)break;c=getLine(e.buffer,n[o+u],s[o+u],e.position-(n[o]-n[o+u]),f);a+=p.repeat(" ",t.indent)+padStart((e.line+u+1).toString(),l)+" | "+c.str+"\n"}return a.replace(/\n$/,"")}var h=makeSnippet;var g=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var m=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))}))}return t}function Type(e,t){t=t||{};Object.keys(t).forEach((function(t){if(g.indexOf(t)===-1){throw new d('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(m.indexOf(this.kind)===-1){throw new d('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}var y=Type;function compileList(e,t,r){var n=[];e[t].forEach((function(e){r.forEach((function(t,r){if(t.tag===e.tag&&t.kind===e.kind&&t.multi===e.multi){n.push(r)}}));r.push(e)}));return r.filter((function(e,t){return n.indexOf(t)===-1}))}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,r=arguments.length;t<r;t+=1){arguments[t].forEach(collectType)}return e}function Schema(e){return this.extend(e)}Schema.prototype.extend=function extend(e){var t=[];var r=[];if(e instanceof y){r.push(e)}else if(Array.isArray(e)){r=r.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)t=t.concat(e.implicit);if(e.explicit)r=r.concat(e.explicit)}else{throw new d("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}t.forEach((function(e){if(!(e instanceof y)){throw new d("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new d("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new d("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));r.forEach((function(e){if(!(e instanceof y)){throw new d("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var n=Object.create(Schema.prototype);n.implicit=(this.implicit||[]).concat(t);n.explicit=(this.explicit||[]).concat(r);n.compiledImplicit=compileList(n,"implicit",[]);n.compiledExplicit=compileList(n,"explicit",[]);n.compiledTypeMap=compileMap(n.compiledImplicit,n.compiledExplicit);return n};var b=Schema;var v=new y("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}});var C=new y("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}});var k=new y("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}});var _=new b({explicit:[v,C,k]});function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}var O=new y("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var T=new y("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,r=0,n=false,s;if(!t)return false;s=e[r];if(s==="-"||s==="+"){s=e[++r]}if(s==="0"){if(r+1===t)return true;s=e[++r];if(s==="b"){r++;for(;r<t;r++){s=e[r];if(s==="_")continue;if(s!=="0"&&s!=="1")return false;n=true}return n&&s!=="_"}if(s==="x"){r++;for(;r<t;r++){s=e[r];if(s==="_")continue;if(!isHexCode(e.charCodeAt(r)))return false;n=true}return n&&s!=="_"}if(s==="o"){r++;for(;r<t;r++){s=e[r];if(s==="_")continue;if(!isOctCode(e.charCodeAt(r)))return false;n=true}return n&&s!=="_"}}if(s==="_")return false;for(;r<t;r++){s=e[r];if(s==="_")continue;if(!isDecCode(e.charCodeAt(r))){return false}n=true}if(!n||s==="_")return false;return true}function constructYamlInteger(e){var t=e,r=1,n;if(t.indexOf("_")!==-1){t=t.replace(/_/g,"")}n=t[0];if(n==="-"||n==="+"){if(n==="-")r=-1;t=t.slice(1);n=t[0]}if(t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!p.isNegativeZero(e))}var w=new y("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});var E=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!E.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,r;t=e.replace(/_/g,"").toLowerCase();r=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return r*parseFloat(t,10)}var S=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var r;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(p.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return S.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||p.isNegativeZero(e))}var A=new y("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"});var R=_.extend({implicit:[O,T,w,A]});var D=R;var I=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var F=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(I.exec(e)!==null)return true;if(F.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,r,n,s,i,o,a,u=0,c=null,l,f,p;t=I.exec(e);if(t===null)t=F.exec(e);if(t===null)throw new Error("Date resolve error");r=+t[1];n=+t[2]-1;s=+t[3];if(!t[4]){return new Date(Date.UTC(r,n,s))}i=+t[4];o=+t[5];a=+t[6];if(t[7]){u=t[7].slice(0,3);while(u.length<3){u+="0"}u=+u}if(t[9]){l=+t[10];f=+(t[11]||0);c=(l*60+f)*6e4;if(t[9]==="-")c=-c}p=new Date(Date.UTC(r,n,s,i,o,a,u));if(c)p.setTime(p.getTime()-c);return p}function representYamlTimestamp(e){return e.toISOString()}var M=new y("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});function resolveYamlMerge(e){return e==="<<"||e===null}var L=new y("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge});var P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,r,n=0,s=e.length,i=P;for(r=0;r<s;r++){t=i.indexOf(e.charAt(r));if(t>64)continue;if(t<0)return false;n+=6}return n%8===0}function constructYamlBinary(e){var t,r,n=e.replace(/[\r\n=]/g,""),s=n.length,i=P,o=0,a=[];for(t=0;t<s;t++){if(t%4===0&&t){a.push(o>>16&255);a.push(o>>8&255);a.push(o&255)}o=o<<6|i.indexOf(n.charAt(t))}r=s%4*6;if(r===0){a.push(o>>16&255);a.push(o>>8&255);a.push(o&255)}else if(r===18){a.push(o>>10&255);a.push(o>>2&255)}else if(r===12){a.push(o>>4&255)}return new Uint8Array(a)}function representYamlBinary(e){var t="",r=0,n,s,i=e.length,o=P;for(n=0;n<i;n++){if(n%3===0&&n){t+=o[r>>18&63];t+=o[r>>12&63];t+=o[r>>6&63];t+=o[r&63]}r=(r<<8)+e[n]}s=i%3;if(s===0){t+=o[r>>18&63];t+=o[r>>12&63];t+=o[r>>6&63];t+=o[r&63]}else if(s===2){t+=o[r>>10&63];t+=o[r>>4&63];t+=o[r<<2&63];t+=o[64]}else if(s===1){t+=o[r>>2&63];t+=o[r<<4&63];t+=o[64];t+=o[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var x=new y("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary});var N=Object.prototype.hasOwnProperty;var j=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],r,n,s,i,o,a=e;for(r=0,n=a.length;r<n;r+=1){s=a[r];o=false;if(j.call(s)!=="[object Object]")return false;for(i in s){if(N.call(s,i)){if(!o)o=true;else return false}}if(!o)return false;if(t.indexOf(i)===-1)t.push(i);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}var G=new y("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap});var B=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,r,n,s,i,o=e;i=new Array(o.length);for(t=0,r=o.length;t<r;t+=1){n=o[t];if(B.call(n)!=="[object Object]")return false;s=Object.keys(n);if(s.length!==1)return false;i[t]=[s[0],n[s[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];var t,r,n,s,i,o=e;i=new Array(o.length);for(t=0,r=o.length;t<r;t+=1){n=o[t];s=Object.keys(n);i[t]=[s[0],n[s[0]]]}return i}var $=new y("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs});var U=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,r=e;for(t in r){if(U.call(r,t)){if(r[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}var Y=new y("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet});var W=D.extend({implicit:[M,L],explicit:[x,G,$,Y]});var q=Object.prototype.hasOwnProperty;var H=1;var V=2;var z=3;var K=4;var Q=1;var J=2;var Z=3;var X=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var ee=/[\x85\u2028\u2029]/;var te=/[,\[\]\{\}]/;var re=/^(?:!|!!|![a-z\-]+!)$/i;var ne=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var se=new Array(256);var ie=new Array(256);for(var oe=0;oe<256;oe++){se[oe]=simpleEscapeSequence(oe)?1:0;ie[oe]=simpleEscapeSequence(oe)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||W;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=h(r);return new d(t,r)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var ae={YAML:function handleYamlDirective(e,t,r){var n,s,i;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}s=parseInt(n[1],10);i=parseInt(n[2],10);if(s!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=i<2;if(i!==1&&i!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){var n,s;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}n=r[0];s=r[1];if(!re.test(n)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(q.call(e.tagMap,n)){throwError(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!ne.test(s)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{s=decodeURIComponent(s)}catch(t){throwError(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function captureSegment(e,t,r,n){var s,i,o,a;if(t<r){a=e.input.slice(t,r);if(n){for(s=0,i=a.length;s<i;s+=1){o=a.charCodeAt(s);if(!(o===9||32<=o&&o<=1114111)){throwError(e,"expected valid JSON character")}}}else if(X.test(a)){throwError(e,"the stream contains non-printable characters")}e.result+=a}}function mergeMappings(e,t,r,n){var s,i,o,a;if(!p.isObject(r)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}s=Object.keys(r);for(o=0,a=s.length;o<a;o+=1){i=s[o];if(!q.call(t,i)){t[i]=r[i];n[i]=true}}}function storeMappingPair(e,t,r,n,s,i,o,a,u){var c,l;if(Array.isArray(s)){s=Array.prototype.slice.call(s);for(c=0,l=s.length;c<l;c+=1){if(Array.isArray(s[c])){throwError(e,"nested arrays are not supported inside keys")}if(typeof s==="object"&&_class(s[c])==="[object Object]"){s[c]="[object Object]"}}}if(typeof s==="object"&&_class(s)==="[object Object]"){s="[object Object]"}s=String(s);if(t===null){t={}}if(n==="tag:yaml.org,2002:merge"){if(Array.isArray(i)){for(c=0,l=i.length;c<l;c+=1){mergeMappings(e,t,i[c],r)}}else{mergeMappings(e,t,i,r)}}else{if(!e.json&&!q.call(r,s)&&q.call(t,s)){e.line=o||e.line;e.lineStart=a||e.lineStart;e.position=u||e.position;throwError(e,"duplicated mapping key")}if(s==="__proto__"){Object.defineProperty(t,s,{configurable:true,enumerable:true,writable:true,value:i})}else{t[s]=i}delete r[s]}return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,t,r){var n=0,s=e.input.charCodeAt(e.position);while(s!==0){while(is_WHITE_SPACE(s)){if(s===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}s=e.input.charCodeAt(++e.position)}if(t&&s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==10&&s!==13&&s!==0)}if(is_EOL(s)){readLineBreak(e);s=e.input.charCodeAt(e.position);n++;e.lineIndent=0;while(s===32){e.lineIndent++;s=e.input.charCodeAt(++e.position)}}else{break}}if(r!==-1&&n!==0&&e.lineIndent<r){throwWarning(e,"deficient indentation")}return n}function testDocumentSeparator(e){var t=e.position,r;r=e.input.charCodeAt(t);if((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)){t+=3;r=e.input.charCodeAt(t);if(r===0||is_WS_OR_EOL(r)){return true}}return false}function writeFoldedLines(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=p.repeat("\n",t-1)}}function readPlainScalar(e,t,r){var n,s,i,o,a,u,c,l,f=e.kind,p=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)||r&&is_FLOW_INDICATOR(s)){return false}}e.kind="scalar";e.result="";i=o=e.position;a=false;while(d!==0){if(d===58){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)||r&&is_FLOW_INDICATOR(s)){break}}else if(d===35){n=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(n)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){u=e.line;c=e.lineStart;l=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){a=true;d=e.input.charCodeAt(e.position);continue}else{e.position=o;e.line=u;e.lineStart=c;e.lineIndent=l;break}}if(a){captureSegment(e,i,o,false);writeFoldedLines(e,e.line-u);i=o=e.position;a=false}if(!is_WHITE_SPACE(d)){o=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,i,o,false);if(e.result){return true}e.kind=f;e.result=p;return false}function readSingleQuotedScalar(e,t){var r,n,s;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;n=s=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,n,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){n=e.position;e.position++;s=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,n,s,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=s=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;s=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var r,n,s,i,o,a;a=e.input.charCodeAt(e.position);if(a!==34){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((a=e.input.charCodeAt(e.position))!==0){if(a===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(a===92){captureSegment(e,r,e.position,true);a=e.input.charCodeAt(++e.position);if(is_EOL(a)){skipSeparationSpace(e,false,t)}else if(a<256&&se[a]){e.result+=ie[a];e.position++}else if((o=escapedHexLen(a))>0){s=o;i=0;for(;s>0;s--){a=e.input.charCodeAt(++e.position);if((o=fromHexCode(a))>=0){i=(i<<4)+o}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(i);e.position++}else{throwError(e,"unknown escape sequence")}r=n=e.position}else if(is_EOL(a)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;n=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=true,n,s,i,o=e.tag,a,u=e.anchor,c,l,f,p,d,h=Object.create(null),g,m,y,b;b=e.input.charCodeAt(e.position);if(b===91){l=93;d=false;a=[]}else if(b===123){l=125;d=true;a={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=a}b=e.input.charCodeAt(++e.position);while(b!==0){skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if(b===l){e.position++;e.tag=o;e.anchor=u;e.kind=d?"mapping":"sequence";e.result=a;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(b===44){throwError(e,"expected the node content, but found ','")}m=g=y=null;f=p=false;if(b===63){c=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(c)){f=p=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;s=e.lineStart;i=e.position;composeNode(e,t,H,false,true);m=e.tag;g=e.result;skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if((p||e.line===n)&&b===58){f=true;b=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,H,false,true);y=e.result}if(d){storeMappingPair(e,a,h,m,g,y,n,s,i)}else if(f){a.push(storeMappingPair(e,null,h,m,g,y,n,s,i))}else{a.push(g)}skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if(b===44){r=true;b=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var r,n,s=Q,i=false,o=false,a=t,u=0,c=false,l,f;f=e.input.charCodeAt(e.position);if(f===124){n=false}else if(f===62){n=true}else{return false}e.kind="scalar";e.result="";while(f!==0){f=e.input.charCodeAt(++e.position);if(f===43||f===45){if(Q===s){s=f===43?Z:J}else{throwError(e,"repeat of a chomping mode identifier")}}else if((l=fromDecimalCode(f))>=0){if(l===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!o){a=t+l-1;o=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(f)){do{f=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(f));if(f===35){do{f=e.input.charCodeAt(++e.position)}while(!is_EOL(f)&&f!==0)}}while(f!==0){readLineBreak(e);e.lineIndent=0;f=e.input.charCodeAt(e.position);while((!o||e.lineIndent<a)&&f===32){e.lineIndent++;f=e.input.charCodeAt(++e.position)}if(!o&&e.lineIndent>a){a=e.lineIndent}if(is_EOL(f)){u++;continue}if(e.lineIndent<a){if(s===Z){e.result+=p.repeat("\n",i?1+u:u)}else if(s===Q){if(i){e.result+="\n"}}break}if(n){if(is_WHITE_SPACE(f)){c=true;e.result+=p.repeat("\n",i?1+u:u)}else if(c){c=false;e.result+=p.repeat("\n",u+1)}else if(u===0){if(i){e.result+=" "}}else{e.result+=p.repeat("\n",u)}}else{e.result+=p.repeat("\n",i?1+u:u)}i=true;o=true;u=0;r=e.position;while(!is_EOL(f)&&f!==0){f=e.input.charCodeAt(++e.position)}captureSegment(e,r,e.position,false)}return true}function readBlockSequence(e,t){var r,n=e.tag,s=e.anchor,i=[],o,a=false,u;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=i}u=e.input.charCodeAt(e.position);while(u!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(u!==45){break}o=e.input.charCodeAt(e.position+1);if(!is_WS_OR_EOL(o)){break}a=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=t){i.push(null);u=e.input.charCodeAt(e.position);continue}}r=e.line;composeNode(e,t,z,false,true);i.push(e.result);skipSeparationSpace(e,true,-1);u=e.input.charCodeAt(e.position);if((e.line===r||e.lineIndent>t)&&u!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<t){break}}if(a){e.tag=n;e.anchor=s;e.kind="sequence";e.result=i;return true}return false}function readBlockMapping(e,t,r){var n,s,i,o,a,u,c=e.tag,l=e.anchor,f={},p=Object.create(null),d=null,h=null,g=null,m=false,y=false,b;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=f}b=e.input.charCodeAt(e.position);while(b!==0){if(!m&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}n=e.input.charCodeAt(e.position+1);i=e.line;if((b===63||b===58)&&is_WS_OR_EOL(n)){if(b===63){if(m){storeMappingPair(e,f,p,d,h,null,o,a,u);d=h=g=null}y=true;m=true;s=true}else if(m){m=false;s=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;b=n}else{o=e.line;a=e.lineStart;u=e.position;if(!composeNode(e,r,V,false,true)){break}if(e.line===i){b=e.input.charCodeAt(e.position);while(is_WHITE_SPACE(b)){b=e.input.charCodeAt(++e.position)}if(b===58){b=e.input.charCodeAt(++e.position);if(!is_WS_OR_EOL(b)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(m){storeMappingPair(e,f,p,d,h,null,o,a,u);d=h=g=null}y=true;m=false;s=false;d=e.tag;h=e.result}else if(y){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=c;e.anchor=l;return true}}else if(y){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=c;e.anchor=l;return true}}if(e.line===i||e.lineIndent>t){if(m){o=e.line;a=e.lineStart;u=e.position}if(composeNode(e,t,K,true,s)){if(m){h=e.result}else{g=e.result}}if(!m){storeMappingPair(e,f,p,d,h,g,o,a,u);d=h=g=null}skipSeparationSpace(e,true,-1);b=e.input.charCodeAt(e.position)}if((e.line===i||e.lineIndent>t)&&b!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<t){break}}if(m){storeMappingPair(e,f,p,d,h,null,o,a,u)}if(y){e.tag=c;e.anchor=l;e.kind="mapping";e.result=f}return y}function readTagProperty(e){var t,r=false,n=false,s,i,o;o=e.input.charCodeAt(e.position);if(o!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}o=e.input.charCodeAt(++e.position);if(o===60){r=true;o=e.input.charCodeAt(++e.position)}else if(o===33){n=true;s="!!";o=e.input.charCodeAt(++e.position)}else{s="!"}t=e.position;if(r){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&o!==62);if(e.position<e.length){i=e.input.slice(t,e.position);o=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(o!==0&&!is_WS_OR_EOL(o)){if(o===33){if(!n){s=e.input.slice(t-1,e.position+1);if(!re.test(s)){throwError(e,"named tag handle cannot contain such characters")}n=true;t=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}o=e.input.charCodeAt(++e.position)}i=e.input.slice(t,e.position);if(te.test(i)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(i&&!ne.test(i)){throwError(e,"tag name cannot contain such characters: "+i)}try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag name is malformed: "+i)}if(r){e.tag=i}else if(q.call(e.tagMap,s)){e.tag=e.tagMap[s]+i}else if(s==="!"){e.tag="!"+i}else if(s==="!!"){e.tag="tag:yaml.org,2002:"+i}else{throwError(e,'undeclared tag handle "'+s+'"')}return true}function readAnchorProperty(e){var t,r;r=e.input.charCodeAt(e.position);if(r!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}r=e.input.charCodeAt(++e.position);t=e.position;while(r!==0&&!is_WS_OR_EOL(r)&&!is_FLOW_INDICATOR(r)){r=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(t,e.position);return true}function readAlias(e){var t,r,n;n=e.input.charCodeAt(e.position);if(n!==42)return false;n=e.input.charCodeAt(++e.position);t=e.position;while(n!==0&&!is_WS_OR_EOL(n)&&!is_FLOW_INDICATOR(n)){n=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an alias node must contain at least one character")}r=e.input.slice(t,e.position);if(!q.call(e.anchorMap,r)){throwError(e,'unidentified alias "'+r+'"')}e.result=e.anchorMap[r];skipSeparationSpace(e,true,-1);return true}function composeNode(e,t,r,n,s){var i,o,a,u=1,c=false,l=false,f,p,d,h,g,m;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;i=o=a=K===r||z===r;if(n){if(skipSeparationSpace(e,true,-1)){c=true;if(e.lineIndent>t){u=1}else if(e.lineIndent===t){u=0}else if(e.lineIndent<t){u=-1}}}if(u===1){while(readTagProperty(e)||readAnchorProperty(e)){if(skipSeparationSpace(e,true,-1)){c=true;a=i;if(e.lineIndent>t){u=1}else if(e.lineIndent===t){u=0}else if(e.lineIndent<t){u=-1}}else{a=false}}}if(a){a=c||s}if(u===1||K===r){if(H===r||V===r){g=t}else{g=t+1}m=e.position-e.lineStart;if(u===1){if(a&&(readBlockSequence(e,m)||readBlockMapping(e,m,g))||readFlowCollection(e,g)){l=true}else{if(o&&readBlockScalar(e,g)||readSingleQuotedScalar(e,g)||readDoubleQuotedScalar(e,g)){l=true}else if(readAlias(e)){l=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,g,H===r)){l=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(u===0){l=a&&readBlockSequence(e,m)}}if(e.tag===null){if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){throwError(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(f=0,p=e.implicitTypes.length;f<p;f+=1){h=e.implicitTypes[f];if(h.resolve(e.result)){e.result=h.construct(e.result);e.tag=h.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(q.call(e.typeMap[e.kind||"fallback"],e.tag)){h=e.typeMap[e.kind||"fallback"][e.tag]}else{h=null;d=e.typeMap.multi[e.kind||"fallback"];for(f=0,p=d.length;f<p;f+=1){if(e.tag.slice(0,d[f].tag.length)===d[f].tag){h=d[f];break}}}if(!h){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&h.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"')}if(!h.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=h.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||l}function readDocument(e){var t=e.position,r,n,s,i=false,o;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((o=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);o=e.input.charCodeAt(e.position);if(e.lineIndent>0||o!==37){break}i=true;o=e.input.charCodeAt(++e.position);r=e.position;while(o!==0&&!is_WS_OR_EOL(o)){o=e.input.charCodeAt(++e.position)}n=e.input.slice(r,e.position);s=[];if(n.length<1){throwError(e,"directive name must not be less than one character in length")}while(o!==0){while(is_WHITE_SPACE(o)){o=e.input.charCodeAt(++e.position)}if(o===35){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&!is_EOL(o));break}if(is_EOL(o))break;r=e.position;while(o!==0&&!is_WS_OR_EOL(o)){o=e.input.charCodeAt(++e.position)}s.push(e.input.slice(r,e.position))}if(o!==0)readLineBreak(e);if(q.call(ae,n)){ae[n](e,n,s)}else{throwWarning(e,'unknown document directive "'+n+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(i){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,K,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&ee.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position<e.length-1){throwError(e,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(e,t){e=String(e);t=t||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}var r=new State(e,t);var n=e.indexOf("\0");if(n!==-1){r.position=n;throwError(r,"null byte is not allowed in input")}r.input+="\0";while(r.input.charCodeAt(r.position)===32){r.lineIndent+=1;r.position+=1}while(r.position<r.length-1){readDocument(r)}return r.documents}function loadAll(e,t,r){if(t!==null&&typeof t==="object"&&typeof r==="undefined"){r=t;t=null}var n=loadDocuments(e,r);if(typeof t!=="function"){return n}for(var s=0,i=n.length;s<i;s+=1){t(n[s])}}function load(e,t){var r=loadDocuments(e,t);if(r.length===0){return undefined}else if(r.length===1){return r[0]}throw new d("expected a single document in the stream, but found more")}var ue=loadAll;var ce=load;var le={loadAll:ue,load:ce};var fe=Object.prototype.toString;var pe=Object.prototype.hasOwnProperty;var de=65279;var he=9;var ge=10;var me=13;var ye=32;var be=33;var ve=34;var Ce=35;var ke=37;var _e=38;var Oe=39;var Te=42;var we=44;var Ee=45;var Se=58;var Ae=61;var Re=62;var De=63;var Ie=64;var Fe=91;var Me=93;var Le=96;var Pe=123;var xe=124;var Ne=125;var je={};je[0]="\\0";je[7]="\\a";je[8]="\\b";je[9]="\\t";je[10]="\\n";je[11]="\\v";je[12]="\\f";je[13]="\\r";je[27]="\\e";je[34]='\\"';je[92]="\\\\";je[133]="\\N";je[160]="\\_";je[8232]="\\L";je[8233]="\\P";var Ge=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var Be=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var r,n,s,i,o,a,u;if(t===null)return{};r={};n=Object.keys(t);for(s=0,i=n.length;s<i;s+=1){o=n[s];a=String(t[o]);if(o.slice(0,2)==="!!"){o="tag:yaml.org,2002:"+o.slice(2)}u=e.compiledTypeMap["fallback"][o];if(u&&pe.call(u.styleAliases,a)){a=u.styleAliases[a]}r[o]=a}return r}function encodeHex(e){var t,r,n;t=e.toString(16).toUpperCase();if(e<=255){r="x";n=2}else if(e<=65535){r="u";n=4}else if(e<=4294967295){r="U";n=8}else{throw new d("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+r+p.repeat("0",n-t.length)+t}var $e=1,Ue=2;function State$1(e){this.schema=e["schema"]||W;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=p.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?Ue:$e;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,t){var r=p.repeat(" ",t),n=0,s=-1,i="",o,a=e.length;while(n<a){s=e.indexOf("\n",n);if(s===-1){o=e.slice(n);n=a}else{o=e.slice(n,s+1);n=s+1}if(o.length&&o!=="\n")i+=r;i+=o}return i}function generateNextLine(e,t){return"\n"+p.repeat(" ",e.indent*t)}function testImplicitResolving(e,t){var r,n,s;for(r=0,n=e.implicitTypes.length;r<n;r+=1){s=e.implicitTypes[r];if(s.resolve(t)){return true}}return false}function isWhitespace(e){return e===ye||e===he}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==de||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==de&&e!==me&&e!==ge}function isPlainSafe(e,t,r){var n=isNsCharOrWhitespace(e);var s=n&&!isWhitespace(e);return(r?n:n&&e!==we&&e!==Fe&&e!==Me&&e!==Pe&&e!==Ne)&&e!==Ce&&!(t===Se&&!s)||isNsCharOrWhitespace(t)&&!isWhitespace(t)&&e===Ce||t===Se&&s}function isPlainSafeFirst(e){return isPrintable(e)&&e!==de&&!isWhitespace(e)&&e!==Ee&&e!==De&&e!==Se&&e!==we&&e!==Fe&&e!==Me&&e!==Pe&&e!==Ne&&e!==Ce&&e!==_e&&e!==Te&&e!==be&&e!==xe&&e!==Ae&&e!==Re&&e!==Oe&&e!==ve&&e!==ke&&e!==Ie&&e!==Le}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==Se}function codePointAt(e,t){var r=e.charCodeAt(t),n;if(r>=55296&&r<=56319&&t+1<e.length){n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){return(r-55296)*1024+n-56320+65536}}return r}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var Ye=1,We=2,qe=3,He=4,Ve=5;function chooseScalarStyle(e,t,r,n,s,i,o,a){var u;var c=0;var l=null;var f=false;var p=false;var d=n!==-1;var h=-1;var g=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||o){for(u=0;u<e.length;c>=65536?u+=2:u++){c=codePointAt(e,u);if(!isPrintable(c)){return Ve}g=g&&isPlainSafe(c,l,a);l=c}}else{for(u=0;u<e.length;c>=65536?u+=2:u++){c=codePointAt(e,u);if(c===ge){f=true;if(d){p=p||u-h-1>n&&e[h+1]!==" ";h=u}}else if(!isPrintable(c)){return Ve}g=g&&isPlainSafe(c,l,a);l=c}p=p||d&&(u-h-1>n&&e[h+1]!==" ")}if(!f&&!p){if(g&&!o&&!s(e)){return Ye}return i===Ue?Ve:We}if(r>9&&needIndentIndicator(e)){return Ve}if(!o){return p?He:qe}return i===Ue?Ve:We}function writeScalar(e,t,r,n,s){e.dump=function(){if(t.length===0){return e.quotingType===Ue?'""':"''"}if(!e.noCompatMode){if(Ge.indexOf(t)!==-1||Be.test(t)){return e.quotingType===Ue?'"'+t+'"':"'"+t+"'"}}var i=e.indent*Math.max(1,r);var o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i);var a=n||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,a,e.indent,o,testAmbiguity,e.quotingType,e.forceQuotes&&!n,s)){case Ye:return t;case We:return"'"+t.replace(/'/g,"''")+"'";case qe:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,i));case He:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,o),i));case Ve:return'"'+escapeString(t)+'"';default:throw new d("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var r=needIndentIndicator(e)?String(t):"";var n=e[e.length-1]==="\n";var s=n&&(e[e.length-2]==="\n"||e==="\n");var i=s?"+":n?"":"-";return r+i+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var r=/(\n+)([^\n]*)/g;var n=function(){var n=e.indexOf("\n");n=n!==-1?n:e.length;r.lastIndex=n;return foldLine(e.slice(0,n),t)}();var s=e[0]==="\n"||e[0]===" ";var i;var o;while(o=r.exec(e)){var a=o[1],u=o[2];i=u[0]===" ";n+=a+(!s&&!i&&u!==""?"\n":"")+foldLine(u,t);s=i}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var n;var s=0,i,o=0,a=0;var u="";while(n=r.exec(e)){a=n.index;if(a-s>t){i=o>s?o:a;u+="\n"+e.slice(s,i);s=i+1}o=a}u+="\n";if(e.length-s>t&&o>s){u+=e.slice(s,o)+"\n"+e.slice(o+1)}else{u+=e.slice(s)}return u.slice(1)}function escapeString(e){var t="";var r=0;var n;for(var s=0;s<e.length;r>=65536?s+=2:s++){r=codePointAt(e,s);n=je[r];if(!n&&isPrintable(r)){t+=e[s];if(r>=65536)t+=e[s+1]}else{t+=n||encodeHex(r)}}return t}function writeFlowSequence(e,t,r){var n="",s=e.tag,i,o,a;for(i=0,o=r.length;i<o;i+=1){a=r[i];if(e.replacer){a=e.replacer.call(r,String(i),a)}if(writeNode(e,t,a,false,false)||typeof a==="undefined"&&writeNode(e,t,null,false,false)){if(n!=="")n+=","+(!e.condenseFlow?" ":"");n+=e.dump}}e.tag=s;e.dump="["+n+"]"}function writeBlockSequence(e,t,r,n){var s="",i=e.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1){u=r[o];if(e.replacer){u=e.replacer.call(r,String(o),u)}if(writeNode(e,t+1,u,true,true,false,true)||typeof u==="undefined"&&writeNode(e,t+1,null,true,true,false,true)){if(!n||s!==""){s+=generateNextLine(e,t)}if(e.dump&&ge===e.dump.charCodeAt(0)){s+="-"}else{s+="- "}s+=e.dump}}e.tag=i;e.dump=s||"[]"}function writeFlowMapping(e,t,r){var n="",s=e.tag,i=Object.keys(r),o,a,u,c,l;for(o=0,a=i.length;o<a;o+=1){l="";if(n!=="")l+=", ";if(e.condenseFlow)l+='"';u=i[o];c=r[u];if(e.replacer){c=e.replacer.call(r,u,c)}if(!writeNode(e,t,u,false,false)){continue}if(e.dump.length>1024)l+="? ";l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,c,false,false)){continue}l+=e.dump;n+=l}e.tag=s;e.dump="{"+n+"}"}function writeBlockMapping(e,t,r,n){var s="",i=e.tag,o=Object.keys(r),a,u,c,l,f,p;if(e.sortKeys===true){o.sort()}else if(typeof e.sortKeys==="function"){o.sort(e.sortKeys)}else if(e.sortKeys){throw new d("sortKeys must be a boolean or a function")}for(a=0,u=o.length;a<u;a+=1){p="";if(!n||s!==""){p+=generateNextLine(e,t)}c=o[a];l=r[c];if(e.replacer){l=e.replacer.call(r,c,l)}if(!writeNode(e,t+1,c,true,true,true)){continue}f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(f){if(e.dump&&ge===e.dump.charCodeAt(0)){p+="?"}else{p+="? "}}p+=e.dump;if(f){p+=generateNextLine(e,t)}if(!writeNode(e,t+1,l,true,f)){continue}if(e.dump&&ge===e.dump.charCodeAt(0)){p+=":"}else{p+=": "}p+=e.dump;s+=p}e.tag=i;e.dump=s||"{}"}function detectType(e,t,r){var n,s,i,o,a,u;s=r?e.explicitTypes:e.implicitTypes;for(i=0,o=s.length;i<o;i+=1){a=s[i];if((a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t==="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r){if(a.multi&&a.representName){e.tag=a.representName(t)}else{e.tag=a.tag}}else{e.tag="?"}if(a.represent){u=e.styleMap[a.tag]||a.defaultStyle;if(fe.call(a.represent)==="[object Function]"){n=a.represent(t,u)}else if(pe.call(a.represent,u)){n=a.represent[u](t,u)}else{throw new d("!<"+a.tag+'> tag resolver accepts not "'+u+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,r,n,s,i,o){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var a=fe.call(e.dump);var u=n;var c;if(n){n=e.flowLevel<0||e.flowLevel>t}var l=a==="[object Object]"||a==="[object Array]",f,p;if(l){f=e.duplicates.indexOf(r);p=f!==-1}if(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0){s=false}if(p&&e.usedDuplicates[f]){e.dump="*ref_"+f}else{if(l&&p&&!e.usedDuplicates[f]){e.usedDuplicates[f]=true}if(a==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,s);if(p){e.dump="&ref_"+f+e.dump}}else{writeFlowMapping(e,t,e.dump);if(p){e.dump="&ref_"+f+" "+e.dump}}}else if(a==="[object Array]"){if(n&&e.dump.length!==0){if(e.noArrayIndent&&!o&&t>0){writeBlockSequence(e,t-1,e.dump,s)}else{writeBlockSequence(e,t,e.dump,s)}if(p){e.dump="&ref_"+f+e.dump}}else{writeFlowSequence(e,t,e.dump);if(p){e.dump="&ref_"+f+" "+e.dump}}}else if(a==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,i,u)}}else if(a==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new d("unacceptable kind of an object to dump "+a)}if(e.tag!==null&&e.tag!=="?"){c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){c="!"+c}else if(c.slice(0,18)==="tag:yaml.org,2002:"){c="!!"+c.slice(18)}else{c="!<"+c+">"}e.dump=c+" "+e.dump}}return true}function getDuplicateReferences(e,t){var r=[],n=[],s,i;inspectNode(e,r,n);for(s=0,i=n.length;s<i;s+=1){t.duplicates.push(r[n[s]])}t.usedDuplicates=new Array(i)}function inspectNode(e,t,r){var n,s,i;if(e!==null&&typeof e==="object"){s=t.indexOf(e);if(s!==-1){if(r.indexOf(s)===-1){r.push(s)}}else{t.push(e);if(Array.isArray(e)){for(s=0,i=e.length;s<i;s+=1){inspectNode(e[s],t,r)}}else{n=Object.keys(e);for(s=0,i=n.length;s<i;s+=1){inspectNode(e[n[s]],t,r)}}}}}function dump(e,t){t=t||{};var r=new State$1(t);if(!r.noRefs)getDuplicateReferences(e,r);var n=e;if(r.replacer){n=r.replacer.call({"":n},"",n)}if(writeNode(r,0,n,true,true))return r.dump+"\n";return""}var ze=dump;var Ke={dump:ze};function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}var Qe=y;var Je=b;var Ze=_;var Xe=R;var et=D;var tt=W;var rt=le.load;var nt=le.loadAll;var st=Ke.dump;var it=d;var ot=renamed("safeLoad","load");var at=renamed("safeLoadAll","loadAll");var ut=renamed("safeDump","dump");var ct={Type:Qe,Schema:Je,FAILSAFE_SCHEMA:Ze,JSON_SCHEMA:Xe,CORE_SCHEMA:et,DEFAULT_SCHEMA:tt,load:rt,loadAll:nt,dump:st,YAMLException:it,safeLoad:ot,safeLoadAll:at,safeDump:ut};const lt=ct;const ft={committed:"false",pushed:"false",tagged:"false"};function getInput(t){return e.getInput(t)}function log(t,r){if(r)console.log(r);if(t)e.error(t)}function matchGitArgs(e){return e.match(/(?:[^\s"]+|"[^"]*")+/g)||[]}function parseBool(e){try{const t=JSON.parse(e);if(typeof t=="boolean")return t}catch(e){}}function setOutput(t,r){e.debug(`Setting output: ${t}=${r}`);ft[t]=r;return e.setOutput(t,r)}for(const e in ft)setOutput(e,ft[e]);var pt=undefined&&undefined.__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())}))};const dt=n().join(process.cwd(),getInput("cwd")||"");const ht=i()({baseDir:dt});console.log(`Running in ${dt}`);(()=>pt(void 0,void 0,void 0,(function*(){var t;yield checkInputs().catch(e.setFailed);(0,e.startGroup)("Internal logs");(0,e.info)("> Staging files...");if(getInput("add")){(0,e.info)("> Adding files...");yield add()}else(0,e.info)("> No files to add.");if(getInput("remove")){(0,e.info)("> Removing files...");yield remove()}else(0,e.info)("> No files to remove.");(0,e.info)("> Checking for uncommitted changes in the git working tree...");const r=(yield ht.diffSummary(["--cached"])).files.length;if(r>0){(0,e.info)(`> Found ${r} changed files.`);yield ht.addConfig("user.email",getInput("author_email"),undefined,log).addConfig("user.name",getInput("author_name"),undefined,log);(0,e.debug)("> Current git config\n"+JSON.stringify((yield ht.listConfig()).all,null,2));yield ht.fetch(["--tags","--force"],log);(0,e.info)("> Switching/creating branch...");yield ht.checkout(getInput("branch"),undefined,log).catch((()=>ht.checkoutLocalBranch(getInput("branch"),log)));if(getInput("pull_strategy")=="NO-PULL")(0,e.info)("> Not pulling from repo.");else{(0,e.info)("> Pulling from remote...");yield ht.fetch(undefined,log).pull(undefined,undefined,{[getInput("pull_strategy")]:null},log)}(0,e.info)("> Re-staging files...");if(getInput("add"))yield add({ignoreErrors:true});if(getInput("remove"))yield remove({ignoreErrors:true});(0,e.info)("> Creating commit...");yield ht.commit(getInput("message"),undefined,Object.assign({"--author":`"${getInput("author_name")} <${getInput("author_email")}>"`},getInput("signoff")?{"--signoff":null}:{}),((e,t)=>{if(t)setOutput("committed","true");return log(e,t)}));if(getInput("tag")){(0,e.info)("> Tagging commit...");yield ht.tag(matchGitArgs(getInput("tag")),((e,t)=>{if(t)setOutput("tagged","true");return log(e,t)})).then((e=>{setOutput("tagged","true");return log(null,e)})).catch((t=>(0,e.setFailed)(t)))}else(0,e.info)("> No tag info provided.");const n=(t=parseBool(getInput("push")))!==null&&t!==void 0?t:getInput("push");if(n){(0,e.info)("> Pushing commit to repo...");if(n===true){(0,e.debug)(`Running: git push origin ${getInput("branch")} --set-upstream`);yield ht.push("origin",getInput("branch"),{"--set-upstream":null},((e,t)=>{if(t)setOutput("pushed","true");return log(e,t)}))}else{(0,e.debug)(`Running: git push ${n}`);yield ht.push(undefined,undefined,matchGitArgs(n),((e,t)=>{if(t)setOutput("pushed","true");return log(e,t)}))}if(getInput("tag")){(0,e.info)("> Pushing tags to repo...");yield ht.pushTags("origin",undefined,((e,t)=>log(undefined,e||t))).catch((()=>{(0,e.info)("> Tag push failed: deleting remote tag and re-pushing...");return ht.push(undefined,undefined,{"--delete":null,origin:null,[matchGitArgs(getInput("tag")).filter((e=>!e.startsWith("-")))[0]]:null},log).pushTags("origin",undefined,log)}))}else(0,e.info)("> No tags to push.")}else(0,e.info)("> Not pushing anything.");(0,e.endGroup)();(0,e.info)("> Task completed.")}else{(0,e.endGroup)();(0,e.info)("> Working tree clean. Nothing to commit.")}})))().then(logOutputs).catch((t=>{(0,e.endGroup)();logOutputs();(0,e.setFailed)(t)}));function checkInputs(){var t,r,n,s;return pt(this,void 0,void 0,(function*(){function setInput(e,t){if(t)return process.env[`INPUT_${e.toUpperCase()}`]=t;else return delete process.env[`INPUT_${e.toUpperCase()}`]}function setDefault(e,t){if(!getInput(e))setInput(e,t);return getInput(e)}const i=process.env.GITHUB_EVENT_PATH,o=i&&__nccwpck_require__(875)(i),a=(t=process.env.GITHUB_EVENT_NAME)===null||t===void 0?void 0:t.includes("pull_request"),u=a?(n=(r=o===null||o===void 0?void 0:o.pull_request)===null||r===void 0?void 0:r.head)===null||n===void 0?void 0:n.ref:(s=process.env.GITHUB_REF)===null||s===void 0?void 0:s.substring(11);if(!getInput("add")&&!getInput("remove"))throw new Error("Both 'add' and 'remove' are empty, the action has nothing to do.");if(getInput("add")){const t=parseInputArray(getInput("add"));if(t.length==1)(0,e.info)("Add input parsed as single string, running 1 git add command.");else if(t.length>1)(0,e.info)(`Add input parsed as string array, running ${t.length} git add commands.`);else(0,e.setFailed)("Add input: array length < 1")}if(getInput("remove")){const t=parseInputArray(getInput("remove"));if(t.length==1)(0,e.info)("Remove input parsed as single string, running 1 git rm command.");else if(t.length>1)(0,e.info)(`Remove input parsed as string array, running ${t.length} git rm commands.`);else(0,e.setFailed)("Remove input: array length < 1")}setDefault("author_name",`${process.env.GITHUB_ACTOR}`);setDefault("author_email",`${process.env.GITHUB_ACTOR}@users.noreply.github.com`);(0,e.info)(`> Using '${getInput("author_name")} <${getInput("author_email")}>' as author.`);setDefault("message",`Commit from GitHub Actions (${process.env.GITHUB_WORKFLOW})`);(0,e.info)(`> Using "${getInput("message")}" as commit message.`);const c=setDefault("branch",u||"");if(a)(0,e.info)(`> Running for a PR, the action will use '${c}' as ref.`);if(getInput("signoff")){const t=parseBool(getInput("signoff"));if(t===undefined)throw new Error(`"${getInput("signoff")}" is not a valid value for the 'signoff' input: only "true" and "false" are allowed.`);if(!t)setInput("signoff",undefined);(0,e.debug)(`Current signoff option: ${getInput("signoff")} (${typeof getInput("signoff")})`)}if(getInput("pull_strategy")=="NO-PULL")(0,e.debug)("NO-PULL found: won't pull from remote.");if(getInput("push")){const t=parseBool(getInput("push"));(0,e.debug)(`Current push option: '${getInput("push")}' (parsed as ${typeof t})`)}}))}function add({logWarning:t=true,ignoreErrors:r=false}={}){return pt(this,void 0,void 0,(function*(){const n=getInput("add");if(!n)return[];const s=parseInputArray(n);const i=[];for(const n of s){i.push(yield ht.add(matchGitArgs(n),((e,t)=>log(r?null:e,t))).catch((s=>{if(r)return;if(s.message.includes("fatal: pathspec")&&s.message.includes("did not match any files")&&t)(0,e.warning)(`Add command did not match any file:\n git add ${n}`);else throw s})))}return i}))}function remove({logWarning:t=true,ignoreErrors:r=false}={}){return pt(this,void 0,void 0,(function*(){const n=getInput("remove");if(!n)return[];const s=parseInputArray(n);const i=[];for(const n of s){i.push(yield ht.rm(matchGitArgs(n),((e,t)=>log(r?null:e,t))).catch((s=>{if(r)return;if(s.message.includes("fatal: pathspec")&&s.message.includes("did not match any files"))t&&(0,e.warning)(`Remove command did not match any file:\n git rm ${n}`);else throw s})))}return i}))}function parseInputArray(t){try{const r=JSON.parse(t);if(r&&Array.isArray(r)&&r.every((e=>typeof e=="string"))){(0,e.debug)(`Input parsed as JSON array of length ${r.length}`);return r}}catch(e){}try{const r=lt.load(t);if(r&&Array.isArray(r)&&r.every((e=>typeof e=="string"))){(0,e.debug)(`Input parsed as YAML array of length ${r.length}`);return r}}catch(e){}(0,e.debug)("Input parsed as single string");return[t]}function logOutputs(){(0,e.startGroup)("Outputs");for(const t in ft){(0,e.info)(`${t}: ${ft[t]}`)}(0,e.endGroup)()}})();module.exports=r})(); |