goreleaser-action/dist/index.js

2 lines
334 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

require('./sourcemap-register.js');(()=>{var t={7351:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;Object.defineProperty(t,R,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};Object.defineProperty(s,"__esModule",{value:true});s.issue=s.issueCommand=void 0;const M=T(b(2037));const L=b(5278);function issueCommand(t,s,b){const R=new Command(t,s,b);process.stdout.write(R.toString()+M.EOL)}s.issueCommand=issueCommand;function issue(t,s=""){issueCommand(t,{},s)}s.issue=issue;const B="::";class Command{constructor(t,s,b){if(!t){t="missing.command"}this.command=t;this.properties=s;this.message=b}toString(){let t=B+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let s=true;for(const b in this.properties){if(this.properties.hasOwnProperty(b)){const R=this.properties[b];if(R){if(s){s=false}else{t+=","}t+=`${b}=${escapeProperty(R)}`}}}}t+=`${B}${escapeData(this.message)}`;return t}}function escapeData(t){return L.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(t){return L.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;Object.defineProperty(t,R,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.getIDToken=s.getState=s.saveState=s.group=s.endGroup=s.startGroup=s.info=s.notice=s.warning=s.error=s.debug=s.isDebug=s.setFailed=s.setCommandEcho=s.setOutput=s.getBooleanInput=s.getMultilineInput=s.getInput=s.addPath=s.setSecret=s.exportVariable=s.ExitCode=void 0;const L=b(7351);const B=b(717);const U=b(5278);const q=T(b(2037));const H=T(b(1017));const G=b(8041);var V;(function(t){t[t["Success"]=0]="Success";t[t["Failure"]=1]="Failure"})(V=s.ExitCode||(s.ExitCode={}));function exportVariable(t,s){const b=U.toCommandValue(s);process.env[t]=b;const R=process.env["GITHUB_ENV"]||"";if(R){return B.issueFileCommand("ENV",B.prepareKeyValueMessage(t,s))}L.issueCommand("set-env",{name:t},b)}s.exportVariable=exportVariable;function setSecret(t){L.issueCommand("add-mask",{},t)}s.setSecret=setSecret;function addPath(t){const s=process.env["GITHUB_PATH"]||"";if(s){B.issueFileCommand("PATH",t)}else{L.issueCommand("add-path",{},t)}process.env["PATH"]=`${t}${H.delimiter}${process.env["PATH"]}`}s.addPath=addPath;function getInput(t,s){const b=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(s&&s.required&&!b){throw new Error(`Input required and not supplied: ${t}`)}if(s&&s.trimWhitespace===false){return b}return b.trim()}s.getInput=getInput;function getMultilineInput(t,s){const b=getInput(t,s).split("\n").filter((t=>t!==""));if(s&&s.trimWhitespace===false){return b}return b.map((t=>t.trim()))}s.getMultilineInput=getMultilineInput;function getBooleanInput(t,s){const b=["true","True","TRUE"];const R=["false","False","FALSE"];const F=getInput(t,s);if(b.includes(F))return true;if(R.includes(F))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}s.getBooleanInput=getBooleanInput;function setOutput(t,s){const b=process.env["GITHUB_OUTPUT"]||"";if(b){return B.issueFileCommand("OUTPUT",B.prepareKeyValueMessage(t,s))}process.stdout.write(q.EOL);L.issueCommand("set-output",{name:t},U.toCommandValue(s))}s.setOutput=setOutput;function setCommandEcho(t){L.issue("echo",t?"on":"off")}s.setCommandEcho=setCommandEcho;function setFailed(t){process.exitCode=V.Failure;error(t)}s.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}s.isDebug=isDebug;function debug(t){L.issueCommand("debug",{},t)}s.debug=debug;function error(t,s={}){L.issueCommand("error",U.toCommandProperties(s),t instanceof Error?t.toString():t)}s.error=error;function warning(t,s={}){L.issueCommand("warning",U.toCommandProperties(s),t instanceof Error?t.toString():t)}s.warning=warning;function notice(t,s={}){L.issueCommand("notice",U.toCommandProperties(s),t instanceof Error?t.toString():t)}s.notice=notice;function info(t){process.stdout.write(t+q.EOL)}s.info=info;function startGroup(t){L.issue("group",t)}s.startGroup=startGroup;function endGroup(){L.issue("endgroup")}s.endGroup=endGroup;function group(t,s){return M(this,void 0,void 0,(function*(){startGroup(t);let b;try{b=yield s()}finally{endGroup()}return b}))}s.group=group;function saveState(t,s){const b=process.env["GITHUB_STATE"]||"";if(b){return B.issueFileCommand("STATE",B.prepareKeyValueMessage(t,s))}L.issueCommand("save-state",{name:t},U.toCommandValue(s))}s.saveState=saveState;function getState(t){return process.env[`STATE_${t}`]||""}s.getState=getState;function getIDToken(t){return M(this,void 0,void 0,(function*(){return yield G.OidcClient.getIDToken(t)}))}s.getIDToken=getIDToken;var W=b(1327);Object.defineProperty(s,"summary",{enumerable:true,get:function(){return W.summary}});var Y=b(1327);Object.defineProperty(s,"markdownSummary",{enumerable:true,get:function(){return Y.markdownSummary}});var z=b(2981);Object.defineProperty(s,"toPosixPath",{enumerable:true,get:function(){return z.toPosixPath}});Object.defineProperty(s,"toWin32Path",{enumerable:true,get:function(){return z.toWin32Path}});Object.defineProperty(s,"toPlatformPath",{enumerable:true,get:function(){return z.toPlatformPath}})},717:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;Object.defineProperty(t,R,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};Object.defineProperty(s,"__esModule",{value:true});s.prepareKeyValueMessage=s.issueFileCommand=void 0;const M=T(b(7147));const L=T(b(2037));const B=b(8974);const U=b(5278);function issueFileCommand(t,s){const b=process.env[`GITHUB_${t}`];if(!b){throw new Error(`Unable to find environment variable for file command ${t}`)}if(!M.existsSync(b)){throw new Error(`Missing file at path: ${b}`)}M.appendFileSync(b,`${U.toCommandValue(s)}${L.EOL}`,{encoding:"utf8"})}s.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(t,s){const b=`ghadelimiter_${B.v4()}`;const R=U.toCommandValue(s);if(t.includes(b)){throw new Error(`Unexpected input: name should not contain the delimiter "${b}"`)}if(R.includes(b)){throw new Error(`Unexpected input: value should not contain the delimiter "${b}"`)}return`${t}<<${b}${L.EOL}${R}${L.EOL}${b}`}s.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(t,s,b){"use strict";var R=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.OidcClient=void 0;const F=b(1404);const T=b(6758);const M=b(2186);class OidcClient{static createHttpClient(t=true,s=10){const b={allowRetries:t,maxRetries:s};return new F.HttpClient("actions/oidc-client",[new T.BearerCredentialHandler(OidcClient.getRequestToken())],b)}static getRequestToken(){const t=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!t){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return t}static getIDTokenUrl(){const t=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!t){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return t}static getCall(t){var s;return R(this,void 0,void 0,(function*(){const b=OidcClient.createHttpClient();const R=yield b.getJson(t).catch((t=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${t.statusCode}\n \n Error Message: ${t.result.message}`)}));const F=(s=R.result)===null||s===void 0?void 0:s.value;if(!F){throw new Error("Response json body do not have ID Token field")}return F}))}static getIDToken(t){return R(this,void 0,void 0,(function*(){try{let s=OidcClient.getIDTokenUrl();if(t){const b=encodeURIComponent(t);s=`${s}&audience=${b}`}M.debug(`ID token url is ${s}`);const b=yield OidcClient.getCall(s);M.setSecret(b);return b}catch(t){throw new Error(`Error message: ${t.message}`)}}))}}s.OidcClient=OidcClient},2981:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;Object.defineProperty(t,R,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};Object.defineProperty(s,"__esModule",{value:true});s.toPlatformPath=s.toWin32Path=s.toPosixPath=void 0;const M=T(b(1017));function toPosixPath(t){return t.replace(/[\\]/g,"/")}s.toPosixPath=toPosixPath;function toWin32Path(t){return t.replace(/[/]/g,"\\")}s.toWin32Path=toWin32Path;function toPlatformPath(t){return t.replace(/[/\\]/g,M.sep)}s.toPlatformPath=toPlatformPath},1327:function(t,s,b){"use strict";var R=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.summary=s.markdownSummary=s.SUMMARY_DOCS_URL=s.SUMMARY_ENV_VAR=void 0;const F=b(2037);const T=b(7147);const{access:M,appendFile:L,writeFile:B}=T.promises;s.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";s.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return R(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const t=process.env[s.SUMMARY_ENV_VAR];if(!t){throw new Error(`Unable to find environment variable for $${s.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield M(t,T.constants.R_OK|T.constants.W_OK)}catch(s){throw new Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}this._filePath=t;return this._filePath}))}wrap(t,s,b={}){const R=Object.entries(b).map((([t,s])=>` ${t}="${s}"`)).join("");if(!s){return`<${t}${R}>`}return`<${t}${R}>${s}</${t}>`}write(t){return R(this,void 0,void 0,(function*(){const s=!!(t===null||t===void 0?void 0:t.overwrite);const b=yield this.filePath();const R=s?B:L;yield R(b,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return R(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(t,s=false){this._buffer+=t;return s?this.addEOL():this}addEOL(){return this.addRaw(F.EOL)}addCodeBlock(t,s){const b=Object.assign({},s&&{lang:s});const R=this.wrap("pre",this.wrap("code",t),b);return this.addRaw(R).addEOL()}addList(t,s=false){const b=s?"ol":"ul";const R=t.map((t=>this.wrap("li",t))).join("");const F=this.wrap(b,R);return this.addRaw(F).addEOL()}addTable(t){const s=t.map((t=>{const s=t.map((t=>{if(typeof t==="string"){return this.wrap("td",t)}const{header:s,data:b,colspan:R,rowspan:F}=t;const T=s?"th":"td";const M=Object.assign(Object.assign({},R&&{colspan:R}),F&&{rowspan:F});return this.wrap(T,b,M)})).join("");return this.wrap("tr",s)})).join("");const b=this.wrap("table",s);return this.addRaw(b).addEOL()}addDetails(t,s){const b=this.wrap("details",this.wrap("summary",t)+s);return this.addRaw(b).addEOL()}addImage(t,s,b){const{width:R,height:F}=b||{};const T=Object.assign(Object.assign({},R&&{width:R}),F&&{height:F});const M=this.wrap("img",null,Object.assign({src:t,alt:s},T));return this.addRaw(M).addEOL()}addHeading(t,s){const b=`h${s}`;const R=["h1","h2","h3","h4","h5","h6"].includes(b)?b:"h1";const F=this.wrap(R,t);return this.addRaw(F).addEOL()}addSeparator(){const t=this.wrap("hr",null);return this.addRaw(t).addEOL()}addBreak(){const t=this.wrap("br",null);return this.addRaw(t).addEOL()}addQuote(t,s){const b=Object.assign({},s&&{cite:s});const R=this.wrap("blockquote",t,b);return this.addRaw(R).addEOL()}addLink(t,s){const b=this.wrap("a",t,{href:s});return this.addRaw(b).addEOL()}}const U=new Summary;s.markdownSummary=U;s.summary=U},5278:(t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.toCommandProperties=s.toCommandValue=void 0;function toCommandValue(t){if(t===null||t===undefined){return""}else if(typeof t==="string"||t instanceof String){return t}return JSON.stringify(t)}s.toCommandValue=toCommandValue;function toCommandProperties(t){if(!Object.keys(t).length){return{}}return{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}}s.toCommandProperties=toCommandProperties},6758:function(t,s){"use strict";var b=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.PersonalAccessTokenCredentialHandler=s.BearerCredentialHandler=s.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(t,s){this.username=t;this.password=s}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return b(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}s.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(t){this.token=t}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return b(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}s.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(t){this.token=t}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return b(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}s.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},1404:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;Object.defineProperty(t,R,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.HttpClient=s.isHttps=s.HttpClientResponse=s.HttpClientError=s.getProxyUrl=s.MediaTypes=s.Headers=s.HttpCodes=void 0;const L=T(b(3685));const B=T(b(5687));const U=T(b(2843));const q=T(b(4294));var H;(function(t){t[t["OK"]=200]="OK";t[t["MultipleChoices"]=300]="MultipleChoices";t[t["MovedPermanently"]=301]="MovedPermanently";t[t["ResourceMoved"]=302]="ResourceMoved";t[t["SeeOther"]=303]="SeeOther";t[t["NotModified"]=304]="NotModified";t[t["UseProxy"]=305]="UseProxy";t[t["SwitchProxy"]=306]="SwitchProxy";t[t["TemporaryRedirect"]=307]="TemporaryRedirect";t[t["PermanentRedirect"]=308]="PermanentRedirect";t[t["BadRequest"]=400]="BadRequest";t[t["Unauthorized"]=401]="Unauthorized";t[t["PaymentRequired"]=402]="PaymentRequired";t[t["Forbidden"]=403]="Forbidden";t[t["NotFound"]=404]="NotFound";t[t["MethodNotAllowed"]=405]="MethodNotAllowed";t[t["NotAcceptable"]=406]="NotAcceptable";t[t["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";t[t["RequestTimeout"]=408]="RequestTimeout";t[t["Conflict"]=409]="Conflict";t[t["Gone"]=410]="Gone";t[t["TooManyRequests"]=429]="TooManyRequests";t[t["InternalServerError"]=500]="InternalServerError";t[t["NotImplemented"]=501]="NotImplemented";t[t["BadGateway"]=502]="BadGateway";t[t["ServiceUnavailable"]=503]="ServiceUnavailable";t[t["GatewayTimeout"]=504]="GatewayTimeout"})(H=s.HttpCodes||(s.HttpCodes={}));var G;(function(t){t["Accept"]="accept";t["ContentType"]="content-type"})(G=s.Headers||(s.Headers={}));var V;(function(t){t["ApplicationJson"]="application/json"})(V=s.MediaTypes||(s.MediaTypes={}));function getProxyUrl(t){const s=U.getProxyUrl(new URL(t));return s?s.href:""}s.getProxyUrl=getProxyUrl;const W=[H.MovedPermanently,H.ResourceMoved,H.SeeOther,H.TemporaryRedirect,H.PermanentRedirect];const Y=[H.BadGateway,H.ServiceUnavailable,H.GatewayTimeout];const z=["OPTIONS","GET","DELETE","HEAD"];const X=10;const J=5;class HttpClientError extends Error{constructor(t,s){super(t);this.name="HttpClientError";this.statusCode=s;Object.setPrototypeOf(this,HttpClientError.prototype)}}s.HttpClientError=HttpClientError;class HttpClientResponse{constructor(t){this.message=t}readBody(){return M(this,void 0,void 0,(function*(){return new Promise((t=>M(this,void 0,void 0,(function*(){let s=Buffer.alloc(0);this.message.on("data",(t=>{s=Buffer.concat([s,t])}));this.message.on("end",(()=>{t(s.toString())}))}))))}))}}s.HttpClientResponse=HttpClientResponse;function isHttps(t){const s=new URL(t);return s.protocol==="https:"}s.isHttps=isHttps;class HttpClient{constructor(t,s,b){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=t;this.handlers=s||[];this.requestOptions=b;if(b){if(b.ignoreSslError!=null){this._ignoreSslError=b.ignoreSslError}this._socketTimeout=b.socketTimeout;if(b.allowRedirects!=null){this._allowRedirects=b.allowRedirects}if(b.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=b.allowRedirectDowngrade}if(b.maxRedirects!=null){this._maxRedirects=Math.max(b.maxRedirects,0)}if(b.keepAlive!=null){this._keepAlive=b.keepAlive}if(b.allowRetries!=null){this._allowRetries=b.allowRetries}if(b.maxRetries!=null){this._maxRetries=b.maxRetries}}}options(t,s){return M(this,void 0,void 0,(function*(){return this.request("OPTIONS",t,null,s||{})}))}get(t,s){return M(this,void 0,void 0,(function*(){return this.request("GET",t,null,s||{})}))}del(t,s){return M(this,void 0,void 0,(function*(){return this.request("DELETE",t,null,s||{})}))}post(t,s,b){return M(this,void 0,void 0,(function*(){return this.request("POST",t,s,b||{})}))}patch(t,s,b){return M(this,void 0,void 0,(function*(){return this.request("PATCH",t,s,b||{})}))}put(t,s,b){return M(this,void 0,void 0,(function*(){return this.request("PUT",t,s,b||{})}))}head(t,s){return M(this,void 0,void 0,(function*(){return this.request("HEAD",t,null,s||{})}))}sendStream(t,s,b,R){return M(this,void 0,void 0,(function*(){return this.request(t,s,b,R)}))}getJson(t,s={}){return M(this,void 0,void 0,(function*(){s[G.Accept]=this._getExistingOrDefaultHeader(s,G.Accept,V.ApplicationJson);const b=yield this.get(t,s);return this._processResponse(b,this.requestOptions)}))}postJson(t,s,b={}){return M(this,void 0,void 0,(function*(){const R=JSON.stringify(s,null,2);b[G.Accept]=this._getExistingOrDefaultHeader(b,G.Accept,V.ApplicationJson);b[G.ContentType]=this._getExistingOrDefaultHeader(b,G.ContentType,V.ApplicationJson);const F=yield this.post(t,R,b);return this._processResponse(F,this.requestOptions)}))}putJson(t,s,b={}){return M(this,void 0,void 0,(function*(){const R=JSON.stringify(s,null,2);b[G.Accept]=this._getExistingOrDefaultHeader(b,G.Accept,V.ApplicationJson);b[G.ContentType]=this._getExistingOrDefaultHeader(b,G.ContentType,V.ApplicationJson);const F=yield this.put(t,R,b);return this._processResponse(F,this.requestOptions)}))}patchJson(t,s,b={}){return M(this,void 0,void 0,(function*(){const R=JSON.stringify(s,null,2);b[G.Accept]=this._getExistingOrDefaultHeader(b,G.Accept,V.ApplicationJson);b[G.ContentType]=this._getExistingOrDefaultHeader(b,G.ContentType,V.ApplicationJson);const F=yield this.patch(t,R,b);return this._processResponse(F,this.requestOptions)}))}request(t,s,b,R){return M(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const F=new URL(s);let T=this._prepareRequest(t,F,R);const M=this._allowRetries&&z.includes(t)?this._maxRetries+1:1;let L=0;let B;do{B=yield this.requestRaw(T,b);if(B&&B.message&&B.message.statusCode===H.Unauthorized){let t;for(const s of this.handlers){if(s.canHandleAuthentication(B)){t=s;break}}if(t){return t.handleAuthentication(this,T,b)}else{return B}}let s=this._maxRedirects;while(B.message.statusCode&&W.includes(B.message.statusCode)&&this._allowRedirects&&s>0){const M=B.message.headers["location"];if(!M){break}const L=new URL(M);if(F.protocol==="https:"&&F.protocol!==L.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield B.readBody();if(L.hostname!==F.hostname){for(const t in R){if(t.toLowerCase()==="authorization"){delete R[t]}}}T=this._prepareRequest(t,L,R);B=yield this.requestRaw(T,b);s--}if(!B.message.statusCode||!Y.includes(B.message.statusCode)){return B}L+=1;if(L<M){yield B.readBody();yield this._performExponentialBackoff(L)}}while(L<M);return B}))}dispose(){if(this._agent){this._agent.destroy()}this._disposed=true}requestRaw(t,s){return M(this,void 0,void 0,(function*(){return new Promise(((b,R)=>{function callbackForResult(t,s){if(t){R(t)}else if(!s){R(new Error("Unknown error"))}else{b(s)}}this.requestRawWithCallback(t,s,callbackForResult)}))}))}requestRawWithCallback(t,s,b){if(typeof s==="string"){if(!t.options.headers){t.options.headers={}}t.options.headers["Content-Length"]=Buffer.byteLength(s,"utf8")}let R=false;function handleResult(t,s){if(!R){R=true;b(t,s)}}const F=t.httpModule.request(t.options,(t=>{const s=new HttpClientResponse(t);handleResult(undefined,s)}));let T;F.on("socket",(t=>{T=t}));F.setTimeout(this._socketTimeout||3*6e4,(()=>{if(T){T.end()}handleResult(new Error(`Request timeout: ${t.options.path}`))}));F.on("error",(function(t){handleResult(t)}));if(s&&typeof s==="string"){F.write(s,"utf8")}if(s&&typeof s!=="string"){s.on("close",(function(){F.end()}));s.pipe(F)}else{F.end()}}getAgent(t){const s=new URL(t);return this._getAgent(s)}_prepareRequest(t,s,b){const R={};R.parsedUrl=s;const F=R.parsedUrl.protocol==="https:";R.httpModule=F?B:L;const T=F?443:80;R.options={};R.options.host=R.parsedUrl.hostname;R.options.port=R.parsedUrl.port?parseInt(R.parsedUrl.port):T;R.options.path=(R.parsedUrl.pathname||"")+(R.parsedUrl.search||"");R.options.method=t;R.options.headers=this._mergeHeaders(b);if(this.userAgent!=null){R.options.headers["user-agent"]=this.userAgent}R.options.agent=this._getAgent(R.parsedUrl);if(this.handlers){for(const t of this.handlers){t.prepareRequest(R.options)}}return R}_mergeHeaders(t){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(t||{}))}return lowercaseKeys(t||{})}_getExistingOrDefaultHeader(t,s,b){let R;if(this.requestOptions&&this.requestOptions.headers){R=lowercaseKeys(this.requestOptions.headers)[s]}return t[s]||R||b}_getAgent(t){let s;const b=U.getProxyUrl(t);const R=b&&b.hostname;if(this._keepAlive&&R){s=this._proxyAgent}if(this._keepAlive&&!R){s=this._agent}if(s){return s}const F=t.protocol==="https:";let T=100;if(this.requestOptions){T=this.requestOptions.maxSockets||L.globalAgent.maxSockets}if(b&&b.hostname){const t={maxSockets:T,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(b.username||b.password)&&{proxyAuth:`${b.username}:${b.password}`}),{host:b.hostname,port:b.port})};let R;const M=b.protocol==="https:";if(F){R=M?q.httpsOverHttps:q.httpsOverHttp}else{R=M?q.httpOverHttps:q.httpOverHttp}s=R(t);this._proxyAgent=s}if(this._keepAlive&&!s){const t={keepAlive:this._keepAlive,maxSockets:T};s=F?new B.Agent(t):new L.Agent(t);this._agent=s}if(!s){s=F?B.globalAgent:L.globalAgent}if(F&&this._ignoreSslError){s.options=Object.assign(s.options||{},{rejectUnauthorized:false})}return s}_performExponentialBackoff(t){return M(this,void 0,void 0,(function*(){t=Math.min(X,t);const s=J*Math.pow(2,t);return new Promise((t=>setTimeout((()=>t()),s)))}))}_processResponse(t,s){return M(this,void 0,void 0,(function*(){return new Promise(((b,R)=>M(this,void 0,void 0,(function*(){const F=t.message.statusCode||0;const T={statusCode:F,result:null,headers:{}};if(F===H.NotFound){b(T)}function dateTimeDeserializer(t,s){if(typeof s==="string"){const t=new Date(s);if(!isNaN(t.valueOf())){return t}}return s}let M;let L;try{L=yield t.readBody();if(L&&L.length>0){if(s&&s.deserializeDates){M=JSON.parse(L,dateTimeDeserializer)}else{M=JSON.parse(L)}T.result=M}T.headers=t.message.headers}catch(t){}if(F>299){let t;if(M&&M.message){t=M.message}else if(L&&L.length>0){t=L}else{t=`Failed request: (${F})`}const s=new HttpClientError(t,F);s.result=T.result;R(s)}else{b(T)}}))))}))}}s.HttpClient=HttpClient;const lowercaseKeys=t=>Object.keys(t).reduce(((s,b)=>(s[b.toLowerCase()]=t[b],s)),{})},2843:(t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.checkBypass=s.getProxyUrl=void 0;function getProxyUrl(t){const s=t.protocol==="https:";if(checkBypass(t)){return undefined}const b=(()=>{if(s){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(b){return new URL(b)}else{return undefined}}s.getProxyUrl=getProxyUrl;function checkBypass(t){if(!t.hostname){return false}const s=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!s){return false}let b;if(t.port){b=Number(t.port)}else if(t.protocol==="http:"){b=80}else if(t.protocol==="https:"){b=443}const R=[t.hostname.toUpperCase()];if(typeof b==="number"){R.push(`${R[0]}:${b}`)}for(const t of s.split(",").map((t=>t.trim().toUpperCase())).filter((t=>t))){if(R.some((s=>s===t))){return true}}return false}s.checkBypass=checkBypass},8974:(t,s,b)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});Object.defineProperty(s,"v1",{enumerable:true,get:function(){return R.default}});Object.defineProperty(s,"v3",{enumerable:true,get:function(){return F.default}});Object.defineProperty(s,"v4",{enumerable:true,get:function(){return T.default}});Object.defineProperty(s,"v5",{enumerable:true,get:function(){return M.default}});Object.defineProperty(s,"NIL",{enumerable:true,get:function(){return L.default}});Object.defineProperty(s,"version",{enumerable:true,get:function(){return B.default}});Object.defineProperty(s,"validate",{enumerable:true,get:function(){return U.default}});Object.defineProperty(s,"stringify",{enumerable:true,get:function(){return q.default}});Object.defineProperty(s,"parse",{enumerable:true,get:function(){return H.default}});var R=_interopRequireDefault(b(1595));var F=_interopRequireDefault(b(6993));var T=_interopRequireDefault(b(1472));var M=_interopRequireDefault(b(6217));var L=_interopRequireDefault(b(2381));var B=_interopRequireDefault(b(427));var U=_interopRequireDefault(b(2609));var q=_interopRequireDefault(b(1458));var H=_interopRequireDefault(b(6385));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}},5842:(t,s,b)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var R=_interopRequireDefault(b(6113));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function md5(t){if(Array.isArray(t)){t=Buffer.from(t)}else if(typeof t==="string"){t=Buffer.from(t,"utf8")}return R.default.createHash("md5").update(t).digest()}var F=md5;s["default"]=F},2381:(t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var b="00000000-0000-0000-0000-000000000000";s["default"]=b},6385:(t,s,b)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var R=_interopRequireDefault(b(2609));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function parse(t){if(!(0,R.default)(t)){throw TypeError("Invalid UUID")}let s;const b=new Uint8Array(16);b[0]=(s=parseInt(t.slice(0,8),16))>>>24;b[1]=s>>>16&255;b[2]=s>>>8&255;b[3]=s&255;b[4]=(s=parseInt(t.slice(9,13),16))>>>8;b[5]=s&255;b[6]=(s=parseInt(t.slice(14,18),16))>>>8;b[7]=s&255;b[8]=(s=parseInt(t.slice(19,23),16))>>>8;b[9]=s&255;b[10]=(s=parseInt(t.slice(24,36),16))/1099511627776&255;b[11]=s/4294967296&255;b[12]=s>>>24&255;b[13]=s>>>16&255;b[14]=s>>>8&255;b[15]=s&255;return b}var F=parse;s["default"]=F},6230:(t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var b=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;s["default"]=b},9784:(t,s,b)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=rng;var R=_interopRequireDefault(b(6113));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}const F=new Uint8Array(256);let T=F.length;function rng(){if(T>F.length-16){R.default.randomFillSync(F);T=0}return F.slice(T,T+=16)}},8844:(t,s,b)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var R=_interopRequireDefault(b(6113));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function sha1(t){if(Array.isArray(t)){t=Buffer.from(t)}else if(typeof t==="string"){t=Buffer.from(t,"utf8")}return R.default.createHash("sha1").update(t).digest()}var F=sha1;s["default"]=F},1458:(t,s,b)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var R=_interopRequireDefault(b(2609));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}const F=[];for(let t=0;t<256;++t){F.push((t+256).toString(16).substr(1))}function stringify(t,s=0){const b=(F[t[s+0]]+F[t[s+1]]+F[t[s+2]]+F[t[s+3]]+"-"+F[t[s+4]]+F[t[s+5]]+"-"+F[t[s+6]]+F[t[s+7]]+"-"+F[t[s+8]]+F[t[s+9]]+"-"+F[t[s+10]]+F[t[s+11]]+F[t[s+12]]+F[t[s+13]]+F[t[s+14]]+F[t[s+15]]).toLowerCase();if(!(0,R.default)(b)){throw TypeError("Stringified UUID is invalid")}return b}var T=stringify;s["default"]=T},1595:(t,s,b)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var R=_interopRequireDefault(b(9784));var F=_interopRequireDefault(b(1458));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}let T;let M;let L=0;let B=0;function v1(t,s,b){let U=s&&b||0;const q=s||new Array(16);t=t||{};let H=t.node||T;let G=t.clockseq!==undefined?t.clockseq:M;if(H==null||G==null){const s=t.random||(t.rng||R.default)();if(H==null){H=T=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]}if(G==null){G=M=(s[6]<<8|s[7])&16383}}let V=t.msecs!==undefined?t.msecs:Date.now();let W=t.nsecs!==undefined?t.nsecs:B+1;const Y=V-L+(W-B)/1e4;if(Y<0&&t.clockseq===undefined){G=G+1&16383}if((Y<0||V>L)&&t.nsecs===undefined){W=0}if(W>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}L=V;B=W;M=G;V+=122192928e5;const z=((V&268435455)*1e4+W)%4294967296;q[U++]=z>>>24&255;q[U++]=z>>>16&255;q[U++]=z>>>8&255;q[U++]=z&255;const X=V/4294967296*1e4&268435455;q[U++]=X>>>8&255;q[U++]=X&255;q[U++]=X>>>24&15|16;q[U++]=X>>>16&255;q[U++]=G>>>8|128;q[U++]=G&255;for(let t=0;t<6;++t){q[U+t]=H[t]}return s||(0,F.default)(q)}var U=v1;s["default"]=U},6993:(t,s,b)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var R=_interopRequireDefault(b(5920));var F=_interopRequireDefault(b(5842));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}const T=(0,R.default)("v3",48,F.default);var M=T;s["default"]=M},5920:(t,s,b)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=_default;s.URL=s.DNS=void 0;var R=_interopRequireDefault(b(1458));var F=_interopRequireDefault(b(6385));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function stringToBytes(t){t=unescape(encodeURIComponent(t));const s=[];for(let b=0;b<t.length;++b){s.push(t.charCodeAt(b))}return s}const T="6ba7b810-9dad-11d1-80b4-00c04fd430c8";s.DNS=T;const M="6ba7b811-9dad-11d1-80b4-00c04fd430c8";s.URL=M;function _default(t,s,b){function generateUUID(t,T,M,L){if(typeof t==="string"){t=stringToBytes(t)}if(typeof T==="string"){T=(0,F.default)(T)}if(T.length!==16){throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")}let B=new Uint8Array(16+t.length);B.set(T);B.set(t,T.length);B=b(B);B[6]=B[6]&15|s;B[8]=B[8]&63|128;if(M){L=L||0;for(let t=0;t<16;++t){M[L+t]=B[t]}return M}return(0,R.default)(B)}try{generateUUID.name=t}catch(t){}generateUUID.DNS=T;generateUUID.URL=M;return generateUUID}},1472:(t,s,b)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var R=_interopRequireDefault(b(9784));var F=_interopRequireDefault(b(1458));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function v4(t,s,b){t=t||{};const T=t.random||(t.rng||R.default)();T[6]=T[6]&15|64;T[8]=T[8]&63|128;if(s){b=b||0;for(let t=0;t<16;++t){s[b+t]=T[t]}return s}return(0,F.default)(T)}var T=v4;s["default"]=T},6217:(t,s,b)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var R=_interopRequireDefault(b(5920));var F=_interopRequireDefault(b(8844));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}const T=(0,R.default)("v5",80,F.default);var M=T;s["default"]=M},2609:(t,s,b)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var R=_interopRequireDefault(b(6230));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function validate(t){return typeof t==="string"&&R.default.test(t)}var F=validate;s["default"]=F},427:(t,s,b)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var R=_interopRequireDefault(b(2609));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function version(t){if(!(0,R.default)(t)){throw TypeError("Invalid UUID")}return parseInt(t.substr(14,1),16)}var F=version;s["default"]=F},1514:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;Object.defineProperty(t,R,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.getExecOutput=s.exec=void 0;const L=b(1576);const B=T(b(8159));function exec(t,s,b){return M(this,void 0,void 0,(function*(){const R=B.argStringToArray(t);if(R.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const F=R[0];s=R.slice(1).concat(s||[]);const T=new B.ToolRunner(F,s,b);return T.exec()}))}s.exec=exec;function getExecOutput(t,s,b){var R,F;return M(this,void 0,void 0,(function*(){let T="";let M="";const B=new L.StringDecoder("utf8");const U=new L.StringDecoder("utf8");const q=(R=b===null||b===void 0?void 0:b.listeners)===null||R===void 0?void 0:R.stdout;const H=(F=b===null||b===void 0?void 0:b.listeners)===null||F===void 0?void 0:F.stderr;const stdErrListener=t=>{M+=U.write(t);if(H){H(t)}};const stdOutListener=t=>{T+=B.write(t);if(q){q(t)}};const G=Object.assign(Object.assign({},b===null||b===void 0?void 0:b.listeners),{stdout:stdOutListener,stderr:stdErrListener});const V=yield exec(t,s,Object.assign(Object.assign({},b),{listeners:G}));T+=B.end();M+=U.end();return{exitCode:V,stdout:T,stderr:M}}))}s.getExecOutput=getExecOutput},8159:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;Object.defineProperty(t,R,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.argStringToArray=s.ToolRunner=void 0;const L=T(b(2037));const B=T(b(2361));const U=T(b(2081));const q=T(b(1017));const H=T(b(7436));const G=T(b(1962));const V=b(9512);const W=process.platform==="win32";class ToolRunner extends B.EventEmitter{constructor(t,s,b){super();if(!t){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=t;this.args=s||[];this.options=b||{}}_debug(t){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(t)}}_getCommandString(t,s){const b=this._getSpawnFileName();const R=this._getSpawnArgs(t);let F=s?"":"[command]";if(W){if(this._isCmdFile()){F+=b;for(const t of R){F+=` ${t}`}}else if(t.windowsVerbatimArguments){F+=`"${b}"`;for(const t of R){F+=` ${t}`}}else{F+=this._windowsQuoteCmdArg(b);for(const t of R){F+=` ${this._windowsQuoteCmdArg(t)}`}}}else{F+=b;for(const t of R){F+=` ${t}`}}return F}_processLineBuffer(t,s,b){try{let R=s+t.toString();let F=R.indexOf(L.EOL);while(F>-1){const t=R.substring(0,F);b(t);R=R.substring(F+L.EOL.length);F=R.indexOf(L.EOL)}return R}catch(t){this._debug(`error processing line. Failed with error ${t}`);return""}}_getSpawnFileName(){if(W){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(t){if(W){if(this._isCmdFile()){let s=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const b of this.args){s+=" ";s+=t.windowsVerbatimArguments?b:this._windowsQuoteCmdArg(b)}s+='"';return[s]}}return this.args}_endsWith(t,s){return t.endsWith(s)}_isCmdFile(){const t=this.toolPath.toUpperCase();return this._endsWith(t,".CMD")||this._endsWith(t,".BAT")}_windowsQuoteCmdArg(t){if(!this._isCmdFile()){return this._uvQuoteCmdArg(t)}if(!t){return'""'}const s=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let b=false;for(const R of t){if(s.some((t=>t===R))){b=true;break}}if(!b){return t}let R='"';let F=true;for(let s=t.length;s>0;s--){R+=t[s-1];if(F&&t[s-1]==="\\"){R+="\\"}else if(t[s-1]==='"'){F=true;R+='"'}else{F=false}}R+='"';return R.split("").reverse().join("")}_uvQuoteCmdArg(t){if(!t){return'""'}if(!t.includes(" ")&&!t.includes("\t")&&!t.includes('"')){return t}if(!t.includes('"')&&!t.includes("\\")){return`"${t}"`}let s='"';let b=true;for(let R=t.length;R>0;R--){s+=t[R-1];if(b&&t[R-1]==="\\"){s+="\\"}else if(t[R-1]==='"'){b=true;s+="\\"}else{b=false}}s+='"';return s.split("").reverse().join("")}_cloneExecOptions(t){t=t||{};const s={cwd:t.cwd||process.cwd(),env:t.env||process.env,silent:t.silent||false,windowsVerbatimArguments:t.windowsVerbatimArguments||false,failOnStdErr:t.failOnStdErr||false,ignoreReturnCode:t.ignoreReturnCode||false,delay:t.delay||1e4};s.outStream=t.outStream||process.stdout;s.errStream=t.errStream||process.stderr;return s}_getSpawnOptions(t,s){t=t||{};const b={};b.cwd=t.cwd;b.env=t.env;b["windowsVerbatimArguments"]=t.windowsVerbatimArguments||this._isCmdFile();if(t.windowsVerbatimArguments){b.argv0=`"${s}"`}return b}exec(){return M(this,void 0,void 0,(function*(){if(!G.isRooted(this.toolPath)&&(this.toolPath.includes("/")||W&&this.toolPath.includes("\\"))){this.toolPath=q.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield H.which(this.toolPath,true);return new Promise(((t,s)=>M(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const t of this.args){this._debug(` ${t}`)}const b=this._cloneExecOptions(this.options);if(!b.silent&&b.outStream){b.outStream.write(this._getCommandString(b)+L.EOL)}const R=new ExecState(b,this.toolPath);R.on("debug",(t=>{this._debug(t)}));if(this.options.cwd&&!(yield G.exists(this.options.cwd))){return s(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const F=this._getSpawnFileName();const T=U.spawn(F,this._getSpawnArgs(b),this._getSpawnOptions(this.options,F));let M="";if(T.stdout){T.stdout.on("data",(t=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(t)}if(!b.silent&&b.outStream){b.outStream.write(t)}M=this._processLineBuffer(t,M,(t=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(t)}}))}))}let B="";if(T.stderr){T.stderr.on("data",(t=>{R.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(t)}if(!b.silent&&b.errStream&&b.outStream){const s=b.failOnStdErr?b.errStream:b.outStream;s.write(t)}B=this._processLineBuffer(t,B,(t=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(t)}}))}))}T.on("error",(t=>{R.processError=t.message;R.processExited=true;R.processClosed=true;R.CheckComplete()}));T.on("exit",(t=>{R.processExitCode=t;R.processExited=true;this._debug(`Exit code ${t} received from tool '${this.toolPath}'`);R.CheckComplete()}));T.on("close",(t=>{R.processExitCode=t;R.processExited=true;R.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);R.CheckComplete()}));R.on("done",((b,R)=>{if(M.length>0){this.emit("stdline",M)}if(B.length>0){this.emit("errline",B)}T.removeAllListeners();if(b){s(b)}else{t(R)}}));if(this.options.input){if(!T.stdin){throw new Error("child process missing stdin")}T.stdin.end(this.options.input)}}))))}))}}s.ToolRunner=ToolRunner;function argStringToArray(t){const s=[];let b=false;let R=false;let F="";function append(t){if(R&&t!=='"'){F+="\\"}F+=t;R=false}for(let T=0;T<t.length;T++){const M=t.charAt(T);if(M==='"'){if(!R){b=!b}else{append(M)}continue}if(M==="\\"&&R){append(M);continue}if(M==="\\"&&b){R=true;continue}if(M===" "&&!b){if(F.length>0){s.push(F);F=""}continue}append(M)}if(F.length>0){s.push(F.trim())}return s}s.argStringToArray=argStringToArray;class ExecState extends B.EventEmitter{constructor(t,s){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!s){throw new Error("toolPath must not be empty")}this.options=t;this.toolPath=s;if(t.delay){this.delay=t.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=V.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(t){this.emit("debug",t)}_setResult(){let t;if(this.processExited){if(this.processError){t=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){t=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){t=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",t,this.processExitCode)}static HandleTimeout(t){if(t.done){return}if(!t.processClosed&&t.processExited){const s=`The STDIO streams did not close within ${t.delay/1e3} seconds of the exit event from process '${t.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;t._debug(s)}t._setResult()}}},6255:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;Object.defineProperty(t,R,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.HttpClient=s.isHttps=s.HttpClientResponse=s.HttpClientError=s.getProxyUrl=s.MediaTypes=s.Headers=s.HttpCodes=void 0;const L=T(b(3685));const B=T(b(5687));const U=T(b(9835));const q=T(b(4294));var H;(function(t){t[t["OK"]=200]="OK";t[t["MultipleChoices"]=300]="MultipleChoices";t[t["MovedPermanently"]=301]="MovedPermanently";t[t["ResourceMoved"]=302]="ResourceMoved";t[t["SeeOther"]=303]="SeeOther";t[t["NotModified"]=304]="NotModified";t[t["UseProxy"]=305]="UseProxy";t[t["SwitchProxy"]=306]="SwitchProxy";t[t["TemporaryRedirect"]=307]="TemporaryRedirect";t[t["PermanentRedirect"]=308]="PermanentRedirect";t[t["BadRequest"]=400]="BadRequest";t[t["Unauthorized"]=401]="Unauthorized";t[t["PaymentRequired"]=402]="PaymentRequired";t[t["Forbidden"]=403]="Forbidden";t[t["NotFound"]=404]="NotFound";t[t["MethodNotAllowed"]=405]="MethodNotAllowed";t[t["NotAcceptable"]=406]="NotAcceptable";t[t["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";t[t["RequestTimeout"]=408]="RequestTimeout";t[t["Conflict"]=409]="Conflict";t[t["Gone"]=410]="Gone";t[t["TooManyRequests"]=429]="TooManyRequests";t[t["InternalServerError"]=500]="InternalServerError";t[t["NotImplemented"]=501]="NotImplemented";t[t["BadGateway"]=502]="BadGateway";t[t["ServiceUnavailable"]=503]="ServiceUnavailable";t[t["GatewayTimeout"]=504]="GatewayTimeout"})(H=s.HttpCodes||(s.HttpCodes={}));var G;(function(t){t["Accept"]="accept";t["ContentType"]="content-type"})(G=s.Headers||(s.Headers={}));var V;(function(t){t["ApplicationJson"]="application/json"})(V=s.MediaTypes||(s.MediaTypes={}));function getProxyUrl(t){const s=U.getProxyUrl(new URL(t));return s?s.href:""}s.getProxyUrl=getProxyUrl;const W=[H.MovedPermanently,H.ResourceMoved,H.SeeOther,H.TemporaryRedirect,H.PermanentRedirect];const Y=[H.BadGateway,H.ServiceUnavailable,H.GatewayTimeout];const z=["OPTIONS","GET","DELETE","HEAD"];const X=10;const J=5;class HttpClientError extends Error{constructor(t,s){super(t);this.name="HttpClientError";this.statusCode=s;Object.setPrototypeOf(this,HttpClientError.prototype)}}s.HttpClientError=HttpClientError;class HttpClientResponse{constructor(t){this.message=t}readBody(){return M(this,void 0,void 0,(function*(){return new Promise((t=>M(this,void 0,void 0,(function*(){let s=Buffer.alloc(0);this.message.on("data",(t=>{s=Buffer.concat([s,t])}));this.message.on("end",(()=>{t(s.toString())}))}))))}))}}s.HttpClientResponse=HttpClientResponse;function isHttps(t){const s=new URL(t);return s.protocol==="https:"}s.isHttps=isHttps;class HttpClient{constructor(t,s,b){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=t;this.handlers=s||[];this.requestOptions=b;if(b){if(b.ignoreSslError!=null){this._ignoreSslError=b.ignoreSslError}this._socketTimeout=b.socketTimeout;if(b.allowRedirects!=null){this._allowRedirects=b.allowRedirects}if(b.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=b.allowRedirectDowngrade}if(b.maxRedirects!=null){this._maxRedirects=Math.max(b.maxRedirects,0)}if(b.keepAlive!=null){this._keepAlive=b.keepAlive}if(b.allowRetries!=null){this._allowRetries=b.allowRetries}if(b.maxRetries!=null){this._maxRetries=b.maxRetries}}}options(t,s){return M(this,void 0,void 0,(function*(){return this.request("OPTIONS",t,null,s||{})}))}get(t,s){return M(this,void 0,void 0,(function*(){return this.request("GET",t,null,s||{})}))}del(t,s){return M(this,void 0,void 0,(function*(){return this.request("DELETE",t,null,s||{})}))}post(t,s,b){return M(this,void 0,void 0,(function*(){return this.request("POST",t,s,b||{})}))}patch(t,s,b){return M(this,void 0,void 0,(function*(){return this.request("PATCH",t,s,b||{})}))}put(t,s,b){return M(this,void 0,void 0,(function*(){return this.request("PUT",t,s,b||{})}))}head(t,s){return M(this,void 0,void 0,(function*(){return this.request("HEAD",t,null,s||{})}))}sendStream(t,s,b,R){return M(this,void 0,void 0,(function*(){return this.request(t,s,b,R)}))}getJson(t,s={}){return M(this,void 0,void 0,(function*(){s[G.Accept]=this._getExistingOrDefaultHeader(s,G.Accept,V.ApplicationJson);const b=yield this.get(t,s);return this._processResponse(b,this.requestOptions)}))}postJson(t,s,b={}){return M(this,void 0,void 0,(function*(){const R=JSON.stringify(s,null,2);b[G.Accept]=this._getExistingOrDefaultHeader(b,G.Accept,V.ApplicationJson);b[G.ContentType]=this._getExistingOrDefaultHeader(b,G.ContentType,V.ApplicationJson);const F=yield this.post(t,R,b);return this._processResponse(F,this.requestOptions)}))}putJson(t,s,b={}){return M(this,void 0,void 0,(function*(){const R=JSON.stringify(s,null,2);b[G.Accept]=this._getExistingOrDefaultHeader(b,G.Accept,V.ApplicationJson);b[G.ContentType]=this._getExistingOrDefaultHeader(b,G.ContentType,V.ApplicationJson);const F=yield this.put(t,R,b);return this._processResponse(F,this.requestOptions)}))}patchJson(t,s,b={}){return M(this,void 0,void 0,(function*(){const R=JSON.stringify(s,null,2);b[G.Accept]=this._getExistingOrDefaultHeader(b,G.Accept,V.ApplicationJson);b[G.ContentType]=this._getExistingOrDefaultHeader(b,G.ContentType,V.ApplicationJson);const F=yield this.patch(t,R,b);return this._processResponse(F,this.requestOptions)}))}request(t,s,b,R){return M(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const F=new URL(s);let T=this._prepareRequest(t,F,R);const M=this._allowRetries&&z.includes(t)?this._maxRetries+1:1;let L=0;let B;do{B=yield this.requestRaw(T,b);if(B&&B.message&&B.message.statusCode===H.Unauthorized){let t;for(const s of this.handlers){if(s.canHandleAuthentication(B)){t=s;break}}if(t){return t.handleAuthentication(this,T,b)}else{return B}}let s=this._maxRedirects;while(B.message.statusCode&&W.includes(B.message.statusCode)&&this._allowRedirects&&s>0){const M=B.message.headers["location"];if(!M){break}const L=new URL(M);if(F.protocol==="https:"&&F.protocol!==L.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield B.readBody();if(L.hostname!==F.hostname){for(const t in R){if(t.toLowerCase()==="authorization"){delete R[t]}}}T=this._prepareRequest(t,L,R);B=yield this.requestRaw(T,b);s--}if(!B.message.statusCode||!Y.includes(B.message.statusCode)){return B}L+=1;if(L<M){yield B.readBody();yield this._performExponentialBackoff(L)}}while(L<M);return B}))}dispose(){if(this._agent){this._agent.destroy()}this._disposed=true}requestRaw(t,s){return M(this,void 0,void 0,(function*(){return new Promise(((b,R)=>{function callbackForResult(t,s){if(t){R(t)}else if(!s){R(new Error("Unknown error"))}else{b(s)}}this.requestRawWithCallback(t,s,callbackForResult)}))}))}requestRawWithCallback(t,s,b){if(typeof s==="string"){if(!t.options.headers){t.options.headers={}}t.options.headers["Content-Length"]=Buffer.byteLength(s,"utf8")}let R=false;function handleResult(t,s){if(!R){R=true;b(t,s)}}const F=t.httpModule.request(t.options,(t=>{const s=new HttpClientResponse(t);handleResult(undefined,s)}));let T;F.on("socket",(t=>{T=t}));F.setTimeout(this._socketTimeout||3*6e4,(()=>{if(T){T.end()}handleResult(new Error(`Request timeout: ${t.options.path}`))}));F.on("error",(function(t){handleResult(t)}));if(s&&typeof s==="string"){F.write(s,"utf8")}if(s&&typeof s!=="string"){s.on("close",(function(){F.end()}));s.pipe(F)}else{F.end()}}getAgent(t){const s=new URL(t);return this._getAgent(s)}_prepareRequest(t,s,b){const R={};R.parsedUrl=s;const F=R.parsedUrl.protocol==="https:";R.httpModule=F?B:L;const T=F?443:80;R.options={};R.options.host=R.parsedUrl.hostname;R.options.port=R.parsedUrl.port?parseInt(R.parsedUrl.port):T;R.options.path=(R.parsedUrl.pathname||"")+(R.parsedUrl.search||"");R.options.method=t;R.options.headers=this._mergeHeaders(b);if(this.userAgent!=null){R.options.headers["user-agent"]=this.userAgent}R.options.agent=this._getAgent(R.parsedUrl);if(this.handlers){for(const t of this.handlers){t.prepareRequest(R.options)}}return R}_mergeHeaders(t){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(t||{}))}return lowercaseKeys(t||{})}_getExistingOrDefaultHeader(t,s,b){let R;if(this.requestOptions&&this.requestOptions.headers){R=lowercaseKeys(this.requestOptions.headers)[s]}return t[s]||R||b}_getAgent(t){let s;const b=U.getProxyUrl(t);const R=b&&b.hostname;if(this._keepAlive&&R){s=this._proxyAgent}if(this._keepAlive&&!R){s=this._agent}if(s){return s}const F=t.protocol==="https:";let T=100;if(this.requestOptions){T=this.requestOptions.maxSockets||L.globalAgent.maxSockets}if(b&&b.hostname){const t={maxSockets:T,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(b.username||b.password)&&{proxyAuth:`${b.username}:${b.password}`}),{host:b.hostname,port:b.port})};let R;const M=b.protocol==="https:";if(F){R=M?q.httpsOverHttps:q.httpsOverHttp}else{R=M?q.httpOverHttps:q.httpOverHttp}s=R(t);this._proxyAgent=s}if(this._keepAlive&&!s){const t={keepAlive:this._keepAlive,maxSockets:T};s=F?new B.Agent(t):new L.Agent(t);this._agent=s}if(!s){s=F?B.globalAgent:L.globalAgent}if(F&&this._ignoreSslError){s.options=Object.assign(s.options||{},{rejectUnauthorized:false})}return s}_performExponentialBackoff(t){return M(this,void 0,void 0,(function*(){t=Math.min(X,t);const s=J*Math.pow(2,t);return new Promise((t=>setTimeout((()=>t()),s)))}))}_processResponse(t,s){return M(this,void 0,void 0,(function*(){return new Promise(((b,R)=>M(this,void 0,void 0,(function*(){const F=t.message.statusCode||0;const T={statusCode:F,result:null,headers:{}};if(F===H.NotFound){b(T)}function dateTimeDeserializer(t,s){if(typeof s==="string"){const t=new Date(s);if(!isNaN(t.valueOf())){return t}}return s}let M;let L;try{L=yield t.readBody();if(L&&L.length>0){if(s&&s.deserializeDates){M=JSON.parse(L,dateTimeDeserializer)}else{M=JSON.parse(L)}T.result=M}T.headers=t.message.headers}catch(t){}if(F>299){let t;if(M&&M.message){t=M.message}else if(L&&L.length>0){t=L}else{t=`Failed request: (${F})`}const s=new HttpClientError(t,F);s.result=T.result;R(s)}else{b(T)}}))))}))}}s.HttpClient=HttpClient;const lowercaseKeys=t=>Object.keys(t).reduce(((s,b)=>(s[b.toLowerCase()]=t[b],s)),{})},9835:(t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.checkBypass=s.getProxyUrl=void 0;function getProxyUrl(t){const s=t.protocol==="https:";if(checkBypass(t)){return undefined}const b=(()=>{if(s){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(b){return new URL(b)}else{return undefined}}s.getProxyUrl=getProxyUrl;function checkBypass(t){if(!t.hostname){return false}const s=t.hostname;if(isLoopbackAddress(s)){return true}const b=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!b){return false}let R;if(t.port){R=Number(t.port)}else if(t.protocol==="http:"){R=80}else if(t.protocol==="https:"){R=443}const F=[t.hostname.toUpperCase()];if(typeof R==="number"){F.push(`${F[0]}:${R}`)}for(const t of b.split(",").map((t=>t.trim().toUpperCase())).filter((t=>t))){if(t==="*"||F.some((s=>s===t||s.endsWith(`.${t}`)||t.startsWith(".")&&s.endsWith(`${t}`)))){return true}}return false}s.checkBypass=checkBypass;function isLoopbackAddress(t){const s=t.toLowerCase();return s==="localhost"||s.startsWith("127.")||s.startsWith("[::1]")||s.startsWith("[0:0:0:0:0:0:0:1]")}},1962:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;Object.defineProperty(t,R,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};var L;Object.defineProperty(s,"__esModule",{value:true});s.getCmdPath=s.tryGetExecutablePath=s.isRooted=s.isDirectory=s.exists=s.IS_WINDOWS=s.unlink=s.symlink=s.stat=s.rmdir=s.rename=s.readlink=s.readdir=s.mkdir=s.lstat=s.copyFile=s.chmod=void 0;const B=T(b(7147));const U=T(b(1017));L=B.promises,s.chmod=L.chmod,s.copyFile=L.copyFile,s.lstat=L.lstat,s.mkdir=L.mkdir,s.readdir=L.readdir,s.readlink=L.readlink,s.rename=L.rename,s.rmdir=L.rmdir,s.stat=L.stat,s.symlink=L.symlink,s.unlink=L.unlink;s.IS_WINDOWS=process.platform==="win32";function exists(t){return M(this,void 0,void 0,(function*(){try{yield s.stat(t)}catch(t){if(t.code==="ENOENT"){return false}throw t}return true}))}s.exists=exists;function isDirectory(t,b=false){return M(this,void 0,void 0,(function*(){const R=b?yield s.stat(t):yield s.lstat(t);return R.isDirectory()}))}s.isDirectory=isDirectory;function isRooted(t){t=normalizeSeparators(t);if(!t){throw new Error('isRooted() parameter "p" cannot be empty')}if(s.IS_WINDOWS){return t.startsWith("\\")||/^[A-Z]:/i.test(t)}return t.startsWith("/")}s.isRooted=isRooted;function tryGetExecutablePath(t,b){return M(this,void 0,void 0,(function*(){let R=undefined;try{R=yield s.stat(t)}catch(s){if(s.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}}if(R&&R.isFile()){if(s.IS_WINDOWS){const s=U.extname(t).toUpperCase();if(b.some((t=>t.toUpperCase()===s))){return t}}else{if(isUnixExecutable(R)){return t}}}const F=t;for(const T of b){t=F+T;R=undefined;try{R=yield s.stat(t)}catch(s){if(s.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}}if(R&&R.isFile()){if(s.IS_WINDOWS){try{const b=U.dirname(t);const R=U.basename(t).toUpperCase();for(const F of yield s.readdir(b)){if(R===F.toUpperCase()){t=U.join(b,F);break}}}catch(s){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${s}`)}return t}else{if(isUnixExecutable(R)){return t}}}}return""}))}s.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(t){t=t||"";if(s.IS_WINDOWS){t=t.replace(/\//g,"\\");return t.replace(/\\\\+/g,"\\")}return t.replace(/\/\/+/g,"/")}function isUnixExecutable(t){return(t.mode&1)>0||(t.mode&8)>0&&t.gid===process.getgid()||(t.mode&64)>0&&t.uid===process.getuid()}function getCmdPath(){var t;return(t=process.env["COMSPEC"])!==null&&t!==void 0?t:`cmd.exe`}s.getCmdPath=getCmdPath},7436:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;Object.defineProperty(t,R,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.findInPath=s.which=s.mkdirP=s.rmRF=s.mv=s.cp=void 0;const L=b(9491);const B=T(b(2081));const U=T(b(1017));const q=b(3837);const H=T(b(1962));const G=q.promisify(B.exec);const V=q.promisify(B.execFile);function cp(t,s,b={}){return M(this,void 0,void 0,(function*(){const{force:R,recursive:F,copySourceDirectory:T}=readCopyOptions(b);const M=(yield H.exists(s))?yield H.stat(s):null;if(M&&M.isFile()&&!R){return}const L=M&&M.isDirectory()&&T?U.join(s,U.basename(t)):s;if(!(yield H.exists(t))){throw new Error(`no such file or directory: ${t}`)}const B=yield H.stat(t);if(B.isDirectory()){if(!F){throw new Error(`Failed to copy. ${t} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(t,L,0,R)}}else{if(U.relative(t,L)===""){throw new Error(`'${L}' and '${t}' are the same file`)}yield copyFile(t,L,R)}}))}s.cp=cp;function mv(t,s,b={}){return M(this,void 0,void 0,(function*(){if(yield H.exists(s)){let R=true;if(yield H.isDirectory(s)){s=U.join(s,U.basename(t));R=yield H.exists(s)}if(R){if(b.force==null||b.force){yield rmRF(s)}else{throw new Error("Destination already exists")}}}yield mkdirP(U.dirname(s));yield H.rename(t,s)}))}s.mv=mv;function rmRF(t){return M(this,void 0,void 0,(function*(){if(H.IS_WINDOWS){if(/[*"<>|]/.test(t)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const s=H.getCmdPath();if(yield H.isDirectory(t,true)){yield G(`${s} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:t}})}else{yield G(`${s} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:t}})}}catch(t){if(t.code!=="ENOENT")throw t}try{yield H.unlink(t)}catch(t){if(t.code!=="ENOENT")throw t}}else{let s=false;try{s=yield H.isDirectory(t)}catch(t){if(t.code!=="ENOENT")throw t;return}if(s){yield V(`rm`,[`-rf`,`${t}`])}else{yield H.unlink(t)}}}))}s.rmRF=rmRF;function mkdirP(t){return M(this,void 0,void 0,(function*(){L.ok(t,"a path argument must be provided");yield H.mkdir(t,{recursive:true})}))}s.mkdirP=mkdirP;function which(t,s){return M(this,void 0,void 0,(function*(){if(!t){throw new Error("parameter 'tool' is required")}if(s){const s=yield which(t,false);if(!s){if(H.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return s}const b=yield findInPath(t);if(b&&b.length>0){return b[0]}return""}))}s.which=which;function findInPath(t){return M(this,void 0,void 0,(function*(){if(!t){throw new Error("parameter 'tool' is required")}const s=[];if(H.IS_WINDOWS&&process.env["PATHEXT"]){for(const t of process.env["PATHEXT"].split(U.delimiter)){if(t){s.push(t)}}}if(H.isRooted(t)){const b=yield H.tryGetExecutablePath(t,s);if(b){return[b]}return[]}if(t.includes(U.sep)){return[]}const b=[];if(process.env.PATH){for(const t of process.env.PATH.split(U.delimiter)){if(t){b.push(t)}}}const R=[];for(const F of b){const b=yield H.tryGetExecutablePath(U.join(F,t),s);if(b){R.push(b)}}return R}))}s.findInPath=findInPath;function readCopyOptions(t){const s=t.force==null?true:t.force;const b=Boolean(t.recursive);const R=t.copySourceDirectory==null?true:Boolean(t.copySourceDirectory);return{force:s,recursive:b,copySourceDirectory:R}}function cpDirRecursive(t,s,b,R){return M(this,void 0,void 0,(function*(){if(b>=255)return;b++;yield mkdirP(s);const F=yield H.readdir(t);for(const T of F){const F=`${t}/${T}`;const M=`${s}/${T}`;const L=yield H.lstat(F);if(L.isDirectory()){yield cpDirRecursive(F,M,b,R)}else{yield copyFile(F,M,R)}}yield H.chmod(s,(yield H.stat(t)).mode)}))}function copyFile(t,s,b){return M(this,void 0,void 0,(function*(){if((yield H.lstat(t)).isSymbolicLink()){try{yield H.lstat(s);yield H.unlink(s)}catch(t){if(t.code==="EPERM"){yield H.chmod(s,"0666");yield H.unlink(s)}}const b=yield H.readlink(t);yield H.symlink(b,s,H.IS_WINDOWS?"junction":null)}else if(!(yield H.exists(s))||b){yield H.copyFile(t,s)}}))}},2473:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;Object.defineProperty(t,R,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s._readLinuxVersionFile=s._getOsVersion=s._findMatch=void 0;const L=T(b(562));const B=b(2186);const U=b(2037);const q=b(2081);const H=b(7147);function _findMatch(s,b,R,F){return M(this,void 0,void 0,(function*(){const T=U.platform();let M;let q;let H;for(const M of R){const R=M.version;B.debug(`check ${R} satisfies ${s}`);if(L.satisfies(R,s)&&(!b||M.stable===b)){H=M.files.find((s=>{B.debug(`${s.arch}===${F} && ${s.platform}===${T}`);let b=s.arch===F&&s.platform===T;if(b&&s.platform_version){const R=t.exports._getOsVersion();if(R===s.platform_version){b=true}else{b=L.satisfies(R,s.platform_version)}}return b}));if(H){B.debug(`matched ${M.version}`);q=M;break}}}if(q&&H){M=Object.assign({},q);M.files=[H]}return M}))}s._findMatch=_findMatch;function _getOsVersion(){const s=U.platform();let b="";if(s==="darwin"){b=q.execSync("sw_vers -productVersion").toString()}else if(s==="linux"){const s=t.exports._readLinuxVersionFile();if(s){const t=s.split("\n");for(const s of t){const t=s.split("=");if(t.length===2&&(t[0].trim()==="VERSION_ID"||t[0].trim()==="DISTRIB_RELEASE")){b=t[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return b}s._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const t="/etc/lsb-release";const s="/etc/os-release";let b="";if(H.existsSync(t)){b=H.readFileSync(t).toString()}else if(H.existsSync(s)){b=H.readFileSync(s).toString()}return b}s._readLinuxVersionFile=_readLinuxVersionFile},8279:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;Object.defineProperty(t,R,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.RetryHelper=void 0;const L=T(b(2186));class RetryHelper{constructor(t,s,b){if(t<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=t;this.minSeconds=Math.floor(s);this.maxSeconds=Math.floor(b);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(t,s){return M(this,void 0,void 0,(function*(){let b=1;while(b<this.maxAttempts){try{return yield t()}catch(t){if(s&&!s(t)){throw t}L.info(t.message)}const R=this.getSleepAmount();L.info(`Waiting ${R} seconds before trying again`);yield this.sleep(R);b++}return yield t()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(t){return M(this,void 0,void 0,(function*(){return new Promise((s=>setTimeout(s,t*1e3)))}))}}s.RetryHelper=RetryHelper},7784:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;Object.defineProperty(t,R,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};var L=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(s,"__esModule",{value:true});s.evaluateVersions=s.isExplicitVersion=s.findFromManifest=s.getManifestFromRepo=s.findAllVersions=s.find=s.cacheFile=s.cacheDir=s.extractZip=s.extractXar=s.extractTar=s.extract7z=s.downloadTool=s.HTTPError=void 0;const B=T(b(2186));const U=T(b(7436));const q=T(b(7147));const H=T(b(2473));const G=T(b(2037));const V=T(b(1017));const W=T(b(9614));const Y=T(b(562));const z=T(b(2781));const X=T(b(3837));const J=b(9491);const K=L(b(824));const Z=b(1514);const Q=b(8279);class HTTPError extends Error{constructor(t){super(`Unexpected HTTP response: ${t}`);this.httpStatusCode=t;Object.setPrototypeOf(this,new.target.prototype)}}s.HTTPError=HTTPError;const ee=process.platform==="win32";const re=process.platform==="darwin";const ne="actions/tool-cache";function downloadTool(t,s,b,R){return M(this,void 0,void 0,(function*(){s=s||V.join(_getTempDirectory(),K.default());yield U.mkdirP(V.dirname(s));B.debug(`Downloading ${t}`);B.debug(`Destination ${s}`);const F=3;const T=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const L=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const q=new Q.RetryHelper(F,T,L);return yield q.execute((()=>M(this,void 0,void 0,(function*(){return yield downloadToolAttempt(t,s||"",b,R)}))),(t=>{if(t instanceof HTTPError&&t.httpStatusCode){if(t.httpStatusCode<500&&t.httpStatusCode!==408&&t.httpStatusCode!==429){return false}}return true}))}))}s.downloadTool=downloadTool;function downloadToolAttempt(t,s,b,R){return M(this,void 0,void 0,(function*(){if(q.existsSync(s)){throw new Error(`Destination file path ${s} already exists`)}const F=new W.HttpClient(ne,[],{allowRetries:false});if(b){B.debug("set auth");if(R===undefined){R={}}R.authorization=b}const T=yield F.get(t,R);if(T.message.statusCode!==200){const s=new HTTPError(T.message.statusCode);B.debug(`Failed to download from "${t}". Code(${T.message.statusCode}) Message(${T.message.statusMessage})`);throw s}const M=X.promisify(z.pipeline);const L=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>T.message));const H=L();let G=false;try{yield M(H,q.createWriteStream(s));B.debug("download complete");G=true;return s}finally{if(!G){B.debug("download failed");try{yield U.rmRF(s)}catch(t){B.debug(`Failed to delete '${s}'. ${t.message}`)}}}}))}function extract7z(t,s,b){return M(this,void 0,void 0,(function*(){J.ok(ee,"extract7z() not supported on current OS");J.ok(t,'parameter "file" is required');s=yield _createExtractFolder(s);const R=process.cwd();process.chdir(s);if(b){try{const s=B.isDebug()?"-bb1":"-bb0";const F=["x",s,"-bd","-sccUTF-8",t];const T={silent:true};yield Z.exec(`"${b}"`,F,T)}finally{process.chdir(R)}}else{const b=V.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const F=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const T=s.replace(/'/g,"''").replace(/"|\n|\r/g,"");const M=`& '${b}' -Source '${F}' -Target '${T}'`;const L=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",M];const B={silent:true};try{const t=yield U.which("powershell",true);yield Z.exec(`"${t}"`,L,B)}finally{process.chdir(R)}}return s}))}s.extract7z=extract7z;function extractTar(t,s,b="xz"){return M(this,void 0,void 0,(function*(){if(!t){throw new Error("parameter 'file' is required")}s=yield _createExtractFolder(s);B.debug("Checking tar --version");let R="";yield Z.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:t=>R+=t.toString(),stderr:t=>R+=t.toString()}});B.debug(R.trim());const F=R.toUpperCase().includes("GNU TAR");let T;if(b instanceof Array){T=b}else{T=[b]}if(B.isDebug()&&!b.includes("v")){T.push("-v")}let M=s;let L=t;if(ee&&F){T.push("--force-local");M=s.replace(/\\/g,"/");L=t.replace(/\\/g,"/")}if(F){T.push("--warning=no-unknown-keyword");T.push("--overwrite")}T.push("-C",M,"-f",L);yield Z.exec(`tar`,T);return s}))}s.extractTar=extractTar;function extractXar(t,s,b=[]){return M(this,void 0,void 0,(function*(){J.ok(re,"extractXar() not supported on current OS");J.ok(t,'parameter "file" is required');s=yield _createExtractFolder(s);let R;if(b instanceof Array){R=b}else{R=[b]}R.push("-x","-C",s,"-f",t);if(B.isDebug()){R.push("-v")}const F=yield U.which("xar",true);yield Z.exec(`"${F}"`,_unique(R));return s}))}s.extractXar=extractXar;function extractZip(t,s){return M(this,void 0,void 0,(function*(){if(!t){throw new Error("parameter 'file' is required")}s=yield _createExtractFolder(s);if(ee){yield extractZipWin(t,s)}else{yield extractZipNix(t,s)}return s}))}s.extractZip=extractZip;function extractZipWin(t,s){return M(this,void 0,void 0,(function*(){const b=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const R=s.replace(/'/g,"''").replace(/"|\n|\r/g,"");const F=yield U.which("pwsh",false);if(F){const t=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${b}', '${R}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${b}' -DestinationPath '${R}' -Force } else { throw $_ } } ;`].join(" ");const s=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",t];B.debug(`Using pwsh at path: ${F}`);yield Z.exec(`"${F}"`,s)}else{const t=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${b}' -DestinationPath '${R}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${b}', '${R}', $true) }`].join(" ");const s=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",t];const F=yield U.which("powershell",true);B.debug(`Using powershell at path: ${F}`);yield Z.exec(`"${F}"`,s)}}))}function extractZipNix(t,s){return M(this,void 0,void 0,(function*(){const b=yield U.which("unzip",true);const R=[t];if(!B.isDebug()){R.unshift("-q")}R.unshift("-o");yield Z.exec(`"${b}"`,R,{cwd:s})}))}function cacheDir(t,s,b,R){return M(this,void 0,void 0,(function*(){b=Y.clean(b)||b;R=R||G.arch();B.debug(`Caching tool ${s} ${b} ${R}`);B.debug(`source dir: ${t}`);if(!q.statSync(t).isDirectory()){throw new Error("sourceDir is not a directory")}const F=yield _createToolPath(s,b,R);for(const s of q.readdirSync(t)){const b=V.join(t,s);yield U.cp(b,F,{recursive:true})}_completeToolPath(s,b,R);return F}))}s.cacheDir=cacheDir;function cacheFile(t,s,b,R,F){return M(this,void 0,void 0,(function*(){R=Y.clean(R)||R;F=F||G.arch();B.debug(`Caching tool ${b} ${R} ${F}`);B.debug(`source file: ${t}`);if(!q.statSync(t).isFile()){throw new Error("sourceFile is not a file")}const T=yield _createToolPath(b,R,F);const M=V.join(T,s);B.debug(`destination file ${M}`);yield U.cp(t,M);_completeToolPath(b,R,F);return T}))}s.cacheFile=cacheFile;function find(t,s,b){if(!t){throw new Error("toolName parameter is required")}if(!s){throw new Error("versionSpec parameter is required")}b=b||G.arch();if(!isExplicitVersion(s)){const R=findAllVersions(t,b);const F=evaluateVersions(R,s);s=F}let R="";if(s){s=Y.clean(s)||"";const F=V.join(_getCacheDirectory(),t,s,b);B.debug(`checking cache: ${F}`);if(q.existsSync(F)&&q.existsSync(`${F}.complete`)){B.debug(`Found tool in cache ${t} ${s} ${b}`);R=F}else{B.debug("not found")}}return R}s.find=find;function findAllVersions(t,s){const b=[];s=s||G.arch();const R=V.join(_getCacheDirectory(),t);if(q.existsSync(R)){const t=q.readdirSync(R);for(const F of t){if(isExplicitVersion(F)){const t=V.join(R,F,s||"");if(q.existsSync(t)&&q.existsSync(`${t}.complete`)){b.push(F)}}}}return b}s.findAllVersions=findAllVersions;function getManifestFromRepo(t,s,b,R="master"){return M(this,void 0,void 0,(function*(){let F=[];const T=`https://api.github.com/repos/${t}/${s}/git/trees/${R}`;const M=new W.HttpClient("tool-cache");const L={};if(b){B.debug("set auth");L.authorization=b}const U=yield M.getJson(T,L);if(!U.result){return F}let q="";for(const t of U.result.tree){if(t.path==="versions-manifest.json"){q=t.url;break}}L["accept"]="application/vnd.github.VERSION.raw";let H=yield(yield M.get(q,L)).readBody();if(H){H=H.replace(/^\uFEFF/,"");try{F=JSON.parse(H)}catch(t){B.debug("Invalid json")}}return F}))}s.getManifestFromRepo=getManifestFromRepo;function findFromManifest(t,s,b,R=G.arch()){return M(this,void 0,void 0,(function*(){const F=yield H._findMatch(t,s,b,R);return F}))}s.findFromManifest=findFromManifest;function _createExtractFolder(t){return M(this,void 0,void 0,(function*(){if(!t){t=V.join(_getTempDirectory(),K.default())}yield U.mkdirP(t);return t}))}function _createToolPath(t,s,b){return M(this,void 0,void 0,(function*(){const R=V.join(_getCacheDirectory(),t,Y.clean(s)||s,b||"");B.debug(`destination ${R}`);const F=`${R}.complete`;yield U.rmRF(R);yield U.rmRF(F);yield U.mkdirP(R);return R}))}function _completeToolPath(t,s,b){const R=V.join(_getCacheDirectory(),t,Y.clean(s)||s,b||"");const F=`${R}.complete`;q.writeFileSync(F,"");B.debug("finished caching tool")}function isExplicitVersion(t){const s=Y.clean(t)||"";B.debug(`isExplicit: ${s}`);const b=Y.valid(s)!=null;B.debug(`explicit? ${b}`);return b}s.isExplicitVersion=isExplicitVersion;function evaluateVersions(t,s){let b="";B.debug(`evaluating ${t.length} versions`);t=t.sort(((t,s)=>{if(Y.gt(t,s)){return 1}return-1}));for(let R=t.length-1;R>=0;R--){const F=t[R];const T=Y.satisfies(F,s);if(T){b=F;break}}if(b){B.debug(`matched: ${b}`)}else{B.debug("match not found")}return b}s.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const t=process.env["RUNNER_TOOL_CACHE"]||"";J.ok(t,"Expected RUNNER_TOOL_CACHE to be defined");return t}function _getTempDirectory(){const t=process.env["RUNNER_TEMP"]||"";J.ok(t,"Expected RUNNER_TEMP to be defined");return t}function _getGlobal(t,s){const b=global[t];return b!==undefined?b:s}function _unique(t){return Array.from(new Set(t))}},9614:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;Object.defineProperty(t,R,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.HttpClient=s.isHttps=s.HttpClientResponse=s.HttpClientError=s.getProxyUrl=s.MediaTypes=s.Headers=s.HttpCodes=void 0;const L=T(b(3685));const B=T(b(5687));const U=T(b(2895));const q=T(b(4294));var H;(function(t){t[t["OK"]=200]="OK";t[t["MultipleChoices"]=300]="MultipleChoices";t[t["MovedPermanently"]=301]="MovedPermanently";t[t["ResourceMoved"]=302]="ResourceMoved";t[t["SeeOther"]=303]="SeeOther";t[t["NotModified"]=304]="NotModified";t[t["UseProxy"]=305]="UseProxy";t[t["SwitchProxy"]=306]="SwitchProxy";t[t["TemporaryRedirect"]=307]="TemporaryRedirect";t[t["PermanentRedirect"]=308]="PermanentRedirect";t[t["BadRequest"]=400]="BadRequest";t[t["Unauthorized"]=401]="Unauthorized";t[t["PaymentRequired"]=402]="PaymentRequired";t[t["Forbidden"]=403]="Forbidden";t[t["NotFound"]=404]="NotFound";t[t["MethodNotAllowed"]=405]="MethodNotAllowed";t[t["NotAcceptable"]=406]="NotAcceptable";t[t["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";t[t["RequestTimeout"]=408]="RequestTimeout";t[t["Conflict"]=409]="Conflict";t[t["Gone"]=410]="Gone";t[t["TooManyRequests"]=429]="TooManyRequests";t[t["InternalServerError"]=500]="InternalServerError";t[t["NotImplemented"]=501]="NotImplemented";t[t["BadGateway"]=502]="BadGateway";t[t["ServiceUnavailable"]=503]="ServiceUnavailable";t[t["GatewayTimeout"]=504]="GatewayTimeout"})(H=s.HttpCodes||(s.HttpCodes={}));var G;(function(t){t["Accept"]="accept";t["ContentType"]="content-type"})(G=s.Headers||(s.Headers={}));var V;(function(t){t["ApplicationJson"]="application/json"})(V=s.MediaTypes||(s.MediaTypes={}));function getProxyUrl(t){const s=U.getProxyUrl(new URL(t));return s?s.href:""}s.getProxyUrl=getProxyUrl;const W=[H.MovedPermanently,H.ResourceMoved,H.SeeOther,H.TemporaryRedirect,H.PermanentRedirect];const Y=[H.BadGateway,H.ServiceUnavailable,H.GatewayTimeout];const z=["OPTIONS","GET","DELETE","HEAD"];const X=10;const J=5;class HttpClientError extends Error{constructor(t,s){super(t);this.name="HttpClientError";this.statusCode=s;Object.setPrototypeOf(this,HttpClientError.prototype)}}s.HttpClientError=HttpClientError;class HttpClientResponse{constructor(t){this.message=t}readBody(){return M(this,void 0,void 0,(function*(){return new Promise((t=>M(this,void 0,void 0,(function*(){let s=Buffer.alloc(0);this.message.on("data",(t=>{s=Buffer.concat([s,t])}));this.message.on("end",(()=>{t(s.toString())}))}))))}))}}s.HttpClientResponse=HttpClientResponse;function isHttps(t){const s=new URL(t);return s.protocol==="https:"}s.isHttps=isHttps;class HttpClient{constructor(t,s,b){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=t;this.handlers=s||[];this.requestOptions=b;if(b){if(b.ignoreSslError!=null){this._ignoreSslError=b.ignoreSslError}this._socketTimeout=b.socketTimeout;if(b.allowRedirects!=null){this._allowRedirects=b.allowRedirects}if(b.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=b.allowRedirectDowngrade}if(b.maxRedirects!=null){this._maxRedirects=Math.max(b.maxRedirects,0)}if(b.keepAlive!=null){this._keepAlive=b.keepAlive}if(b.allowRetries!=null){this._allowRetries=b.allowRetries}if(b.maxRetries!=null){this._maxRetries=b.maxRetries}}}options(t,s){return M(this,void 0,void 0,(function*(){return this.request("OPTIONS",t,null,s||{})}))}get(t,s){return M(this,void 0,void 0,(function*(){return this.request("GET",t,null,s||{})}))}del(t,s){return M(this,void 0,void 0,(function*(){return this.request("DELETE",t,null,s||{})}))}post(t,s,b){return M(this,void 0,void 0,(function*(){return this.request("POST",t,s,b||{})}))}patch(t,s,b){return M(this,void 0,void 0,(function*(){return this.request("PATCH",t,s,b||{})}))}put(t,s,b){return M(this,void 0,void 0,(function*(){return this.request("PUT",t,s,b||{})}))}head(t,s){return M(this,void 0,void 0,(function*(){return this.request("HEAD",t,null,s||{})}))}sendStream(t,s,b,R){return M(this,void 0,void 0,(function*(){return this.request(t,s,b,R)}))}getJson(t,s={}){return M(this,void 0,void 0,(function*(){s[G.Accept]=this._getExistingOrDefaultHeader(s,G.Accept,V.ApplicationJson);const b=yield this.get(t,s);return this._processResponse(b,this.requestOptions)}))}postJson(t,s,b={}){return M(this,void 0,void 0,(function*(){const R=JSON.stringify(s,null,2);b[G.Accept]=this._getExistingOrDefaultHeader(b,G.Accept,V.ApplicationJson);b[G.ContentType]=this._getExistingOrDefaultHeader(b,G.ContentType,V.ApplicationJson);const F=yield this.post(t,R,b);return this._processResponse(F,this.requestOptions)}))}putJson(t,s,b={}){return M(this,void 0,void 0,(function*(){const R=JSON.stringify(s,null,2);b[G.Accept]=this._getExistingOrDefaultHeader(b,G.Accept,V.ApplicationJson);b[G.ContentType]=this._getExistingOrDefaultHeader(b,G.ContentType,V.ApplicationJson);const F=yield this.put(t,R,b);return this._processResponse(F,this.requestOptions)}))}patchJson(t,s,b={}){return M(this,void 0,void 0,(function*(){const R=JSON.stringify(s,null,2);b[G.Accept]=this._getExistingOrDefaultHeader(b,G.Accept,V.ApplicationJson);b[G.ContentType]=this._getExistingOrDefaultHeader(b,G.ContentType,V.ApplicationJson);const F=yield this.patch(t,R,b);return this._processResponse(F,this.requestOptions)}))}request(t,s,b,R){return M(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const F=new URL(s);let T=this._prepareRequest(t,F,R);const M=this._allowRetries&&z.includes(t)?this._maxRetries+1:1;let L=0;let B;do{B=yield this.requestRaw(T,b);if(B&&B.message&&B.message.statusCode===H.Unauthorized){let t;for(const s of this.handlers){if(s.canHandleAuthentication(B)){t=s;break}}if(t){return t.handleAuthentication(this,T,b)}else{return B}}let s=this._maxRedirects;while(B.message.statusCode&&W.includes(B.message.statusCode)&&this._allowRedirects&&s>0){const M=B.message.headers["location"];if(!M){break}const L=new URL(M);if(F.protocol==="https:"&&F.protocol!==L.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield B.readBody();if(L.hostname!==F.hostname){for(const t in R){if(t.toLowerCase()==="authorization"){delete R[t]}}}T=this._prepareRequest(t,L,R);B=yield this.requestRaw(T,b);s--}if(!B.message.statusCode||!Y.includes(B.message.statusCode)){return B}L+=1;if(L<M){yield B.readBody();yield this._performExponentialBackoff(L)}}while(L<M);return B}))}dispose(){if(this._agent){this._agent.destroy()}this._disposed=true}requestRaw(t,s){return M(this,void 0,void 0,(function*(){return new Promise(((b,R)=>{function callbackForResult(t,s){if(t){R(t)}else if(!s){R(new Error("Unknown error"))}else{b(s)}}this.requestRawWithCallback(t,s,callbackForResult)}))}))}requestRawWithCallback(t,s,b){if(typeof s==="string"){if(!t.options.headers){t.options.headers={}}t.options.headers["Content-Length"]=Buffer.byteLength(s,"utf8")}let R=false;function handleResult(t,s){if(!R){R=true;b(t,s)}}const F=t.httpModule.request(t.options,(t=>{const s=new HttpClientResponse(t);handleResult(undefined,s)}));let T;F.on("socket",(t=>{T=t}));F.setTimeout(this._socketTimeout||3*6e4,(()=>{if(T){T.end()}handleResult(new Error(`Request timeout: ${t.options.path}`))}));F.on("error",(function(t){handleResult(t)}));if(s&&typeof s==="string"){F.write(s,"utf8")}if(s&&typeof s!=="string"){s.on("close",(function(){F.end()}));s.pipe(F)}else{F.end()}}getAgent(t){const s=new URL(t);return this._getAgent(s)}_prepareRequest(t,s,b){const R={};R.parsedUrl=s;const F=R.parsedUrl.protocol==="https:";R.httpModule=F?B:L;const T=F?443:80;R.options={};R.options.host=R.parsedUrl.hostname;R.options.port=R.parsedUrl.port?parseInt(R.parsedUrl.port):T;R.options.path=(R.parsedUrl.pathname||"")+(R.parsedUrl.search||"");R.options.method=t;R.options.headers=this._mergeHeaders(b);if(this.userAgent!=null){R.options.headers["user-agent"]=this.userAgent}R.options.agent=this._getAgent(R.parsedUrl);if(this.handlers){for(const t of this.handlers){t.prepareRequest(R.options)}}return R}_mergeHeaders(t){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(t||{}))}return lowercaseKeys(t||{})}_getExistingOrDefaultHeader(t,s,b){let R;if(this.requestOptions&&this.requestOptions.headers){R=lowercaseKeys(this.requestOptions.headers)[s]}return t[s]||R||b}_getAgent(t){let s;const b=U.getProxyUrl(t);const R=b&&b.hostname;if(this._keepAlive&&R){s=this._proxyAgent}if(this._keepAlive&&!R){s=this._agent}if(s){return s}const F=t.protocol==="https:";let T=100;if(this.requestOptions){T=this.requestOptions.maxSockets||L.globalAgent.maxSockets}if(b&&b.hostname){const t={maxSockets:T,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(b.username||b.password)&&{proxyAuth:`${b.username}:${b.password}`}),{host:b.hostname,port:b.port})};let R;const M=b.protocol==="https:";if(F){R=M?q.httpsOverHttps:q.httpsOverHttp}else{R=M?q.httpOverHttps:q.httpOverHttp}s=R(t);this._proxyAgent=s}if(this._keepAlive&&!s){const t={keepAlive:this._keepAlive,maxSockets:T};s=F?new B.Agent(t):new L.Agent(t);this._agent=s}if(!s){s=F?B.globalAgent:L.globalAgent}if(F&&this._ignoreSslError){s.options=Object.assign(s.options||{},{rejectUnauthorized:false})}return s}_performExponentialBackoff(t){return M(this,void 0,void 0,(function*(){t=Math.min(X,t);const s=J*Math.pow(2,t);return new Promise((t=>setTimeout((()=>t()),s)))}))}_processResponse(t,s){return M(this,void 0,void 0,(function*(){return new Promise(((b,R)=>M(this,void 0,void 0,(function*(){const F=t.message.statusCode||0;const T={statusCode:F,result:null,headers:{}};if(F===H.NotFound){b(T)}function dateTimeDeserializer(t,s){if(typeof s==="string"){const t=new Date(s);if(!isNaN(t.valueOf())){return t}}return s}let M;let L;try{L=yield t.readBody();if(L&&L.length>0){if(s&&s.deserializeDates){M=JSON.parse(L,dateTimeDeserializer)}else{M=JSON.parse(L)}T.result=M}T.headers=t.message.headers}catch(t){}if(F>299){let t;if(M&&M.message){t=M.message}else if(L&&L.length>0){t=L}else{t=`Failed request: (${F})`}const s=new HttpClientError(t,F);s.result=T.result;R(s)}else{b(T)}}))))}))}}s.HttpClient=HttpClient;const lowercaseKeys=t=>Object.keys(t).reduce(((s,b)=>(s[b.toLowerCase()]=t[b],s)),{})},2895:(t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.checkBypass=s.getProxyUrl=void 0;function getProxyUrl(t){const s=t.protocol==="https:";if(checkBypass(t)){return undefined}const b=(()=>{if(s){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(b){return new URL(b)}else{return undefined}}s.getProxyUrl=getProxyUrl;function checkBypass(t){if(!t.hostname){return false}const s=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!s){return false}let b;if(t.port){b=Number(t.port)}else if(t.protocol==="http:"){b=80}else if(t.protocol==="https:"){b=443}const R=[t.hostname.toUpperCase()];if(typeof b==="number"){R.push(`${R[0]}:${b}`)}for(const t of s.split(",").map((t=>t.trim().toUpperCase())).filter((t=>t))){if(R.some((s=>s===t))){return true}}return false}s.checkBypass=checkBypass},562:(t,s)=>{s=t.exports=SemVer;var b;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){b=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER");console.log.apply(console,t)}}else{b=function(){}}s.SEMVER_SPEC_VERSION="2.0.0";var R=256;var F=Number.MAX_SAFE_INTEGER||9007199254740991;var T=16;var M=s.re=[];var L=s.src=[];var B=s.tokens={};var U=0;function tok(t){B[t]=U++}tok("NUMERICIDENTIFIER");L[B.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");L[B.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");L[B.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");L[B.MAINVERSION]="("+L[B.NUMERICIDENTIFIER]+")\\."+"("+L[B.NUMERICIDENTIFIER]+")\\."+"("+L[B.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");L[B.MAINVERSIONLOOSE]="("+L[B.NUMERICIDENTIFIERLOOSE]+")\\."+"("+L[B.NUMERICIDENTIFIERLOOSE]+")\\."+"("+L[B.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");L[B.PRERELEASEIDENTIFIER]="(?:"+L[B.NUMERICIDENTIFIER]+"|"+L[B.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");L[B.PRERELEASEIDENTIFIERLOOSE]="(?:"+L[B.NUMERICIDENTIFIERLOOSE]+"|"+L[B.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");L[B.PRERELEASE]="(?:-("+L[B.PRERELEASEIDENTIFIER]+"(?:\\."+L[B.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");L[B.PRERELEASELOOSE]="(?:-?("+L[B.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+L[B.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");L[B.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");L[B.BUILD]="(?:\\+("+L[B.BUILDIDENTIFIER]+"(?:\\."+L[B.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");L[B.FULLPLAIN]="v?"+L[B.MAINVERSION]+L[B.PRERELEASE]+"?"+L[B.BUILD]+"?";L[B.FULL]="^"+L[B.FULLPLAIN]+"$";tok("LOOSEPLAIN");L[B.LOOSEPLAIN]="[v=\\s]*"+L[B.MAINVERSIONLOOSE]+L[B.PRERELEASELOOSE]+"?"+L[B.BUILD]+"?";tok("LOOSE");L[B.LOOSE]="^"+L[B.LOOSEPLAIN]+"$";tok("GTLT");L[B.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");L[B.XRANGEIDENTIFIERLOOSE]=L[B.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");L[B.XRANGEIDENTIFIER]=L[B.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");L[B.XRANGEPLAIN]="[v=\\s]*("+L[B.XRANGEIDENTIFIER]+")"+"(?:\\.("+L[B.XRANGEIDENTIFIER]+")"+"(?:\\.("+L[B.XRANGEIDENTIFIER]+")"+"(?:"+L[B.PRERELEASE]+")?"+L[B.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");L[B.XRANGEPLAINLOOSE]="[v=\\s]*("+L[B.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+L[B.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+L[B.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+L[B.PRERELEASELOOSE]+")?"+L[B.BUILD]+"?"+")?)?";tok("XRANGE");L[B.XRANGE]="^"+L[B.GTLT]+"\\s*"+L[B.XRANGEPLAIN]+"$";tok("XRANGELOOSE");L[B.XRANGELOOSE]="^"+L[B.GTLT]+"\\s*"+L[B.XRANGEPLAINLOOSE]+"$";tok("COERCE");L[B.COERCE]="(^|[^\\d])"+"(\\d{1,"+T+"})"+"(?:\\.(\\d{1,"+T+"}))?"+"(?:\\.(\\d{1,"+T+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");M[B.COERCERTL]=new RegExp(L[B.COERCE],"g");tok("LONETILDE");L[B.LONETILDE]="(?:~>?)";tok("TILDETRIM");L[B.TILDETRIM]="(\\s*)"+L[B.LONETILDE]+"\\s+";M[B.TILDETRIM]=new RegExp(L[B.TILDETRIM],"g");var q="$1~";tok("TILDE");L[B.TILDE]="^"+L[B.LONETILDE]+L[B.XRANGEPLAIN]+"$";tok("TILDELOOSE");L[B.TILDELOOSE]="^"+L[B.LONETILDE]+L[B.XRANGEPLAINLOOSE]+"$";tok("LONECARET");L[B.LONECARET]="(?:\\^)";tok("CARETTRIM");L[B.CARETTRIM]="(\\s*)"+L[B.LONECARET]+"\\s+";M[B.CARETTRIM]=new RegExp(L[B.CARETTRIM],"g");var H="$1^";tok("CARET");L[B.CARET]="^"+L[B.LONECARET]+L[B.XRANGEPLAIN]+"$";tok("CARETLOOSE");L[B.CARETLOOSE]="^"+L[B.LONECARET]+L[B.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");L[B.COMPARATORLOOSE]="^"+L[B.GTLT]+"\\s*("+L[B.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");L[B.COMPARATOR]="^"+L[B.GTLT]+"\\s*("+L[B.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");L[B.COMPARATORTRIM]="(\\s*)"+L[B.GTLT]+"\\s*("+L[B.LOOSEPLAIN]+"|"+L[B.XRANGEPLAIN]+")";M[B.COMPARATORTRIM]=new RegExp(L[B.COMPARATORTRIM],"g");var G="$1$2$3";tok("HYPHENRANGE");L[B.HYPHENRANGE]="^\\s*("+L[B.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+L[B.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");L[B.HYPHENRANGELOOSE]="^\\s*("+L[B.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+L[B.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");L[B.STAR]="(<|>)?=?\\s*\\*";for(var V=0;V<U;V++){b(V,L[V]);if(!M[V]){M[V]=new RegExp(L[V])}}s.parse=parse;function parse(t,s){if(!s||typeof s!=="object"){s={loose:!!s,includePrerelease:false}}if(t instanceof SemVer){return t}if(typeof t!=="string"){return null}if(t.length>R){return null}var b=s.loose?M[B.LOOSE]:M[B.FULL];if(!b.test(t)){return null}try{return new SemVer(t,s)}catch(t){return null}}s.valid=valid;function valid(t,s){var b=parse(t,s);return b?b.version:null}s.clean=clean;function clean(t,s){var b=parse(t.trim().replace(/^[=v]+/,""),s);return b?b.version:null}s.SemVer=SemVer;function SemVer(t,s){if(!s||typeof s!=="object"){s={loose:!!s,includePrerelease:false}}if(t instanceof SemVer){if(t.loose===s.loose){return t}else{t=t.version}}else if(typeof t!=="string"){throw new TypeError("Invalid Version: "+t)}if(t.length>R){throw new TypeError("version is longer than "+R+" characters")}if(!(this instanceof SemVer)){return new SemVer(t,s)}b("SemVer",t,s);this.options=s;this.loose=!!s.loose;var T=t.trim().match(s.loose?M[B.LOOSE]:M[B.FULL]);if(!T){throw new TypeError("Invalid Version: "+t)}this.raw=t;this.major=+T[1];this.minor=+T[2];this.patch=+T[3];if(this.major>F||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>F||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>F||this.patch<0){throw new TypeError("Invalid patch version")}if(!T[4]){this.prerelease=[]}else{this.prerelease=T[4].split(".").map((function(t){if(/^[0-9]+$/.test(t)){var s=+t;if(s>=0&&s<F){return s}}return t}))}this.build=T[5]?T[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(t){b("SemVer.compare",this.version,this.options,t);if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}return this.compareMain(t)||this.comparePre(t)};SemVer.prototype.compareMain=function(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}return compareIdentifiers(this.major,t.major)||compareIdentifiers(this.minor,t.minor)||compareIdentifiers(this.patch,t.patch)};SemVer.prototype.comparePre=function(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}if(this.prerelease.length&&!t.prerelease.length){return-1}else if(!this.prerelease.length&&t.prerelease.length){return 1}else if(!this.prerelease.length&&!t.prerelease.length){return 0}var s=0;do{var R=this.prerelease[s];var F=t.prerelease[s];b("prerelease compare",s,R,F);if(R===undefined&&F===undefined){return 0}else if(F===undefined){return 1}else if(R===undefined){return-1}else if(R===F){continue}else{return compareIdentifiers(R,F)}}while(++s)};SemVer.prototype.compareBuild=function(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}var s=0;do{var R=this.build[s];var F=t.build[s];b("prerelease compare",s,R,F);if(R===undefined&&F===undefined){return 0}else if(F===undefined){return 1}else if(R===undefined){return-1}else if(R===F){continue}else{return compareIdentifiers(R,F)}}while(++s)};SemVer.prototype.inc=function(t,s){switch(t){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",s);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",s);break;case"prepatch":this.prerelease.length=0;this.inc("patch",s);this.inc("pre",s);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",s)}this.inc("pre",s);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var b=this.prerelease.length;while(--b>=0){if(typeof this.prerelease[b]==="number"){this.prerelease[b]++;b=-2}}if(b===-1){this.prerelease.push(0)}}if(s){if(this.prerelease[0]===s){if(isNaN(this.prerelease[1])){this.prerelease=[s,0]}}else{this.prerelease=[s,0]}}break;default:throw new Error("invalid increment argument: "+t)}this.format();this.raw=this.version;return this};s.inc=inc;function inc(t,s,b,R){if(typeof b==="string"){R=b;b=undefined}try{return new SemVer(t,b).inc(s,R).version}catch(t){return null}}s.diff=diff;function diff(t,s){if(eq(t,s)){return null}else{var b=parse(t);var R=parse(s);var F="";if(b.prerelease.length||R.prerelease.length){F="pre";var T="prerelease"}for(var M in b){if(M==="major"||M==="minor"||M==="patch"){if(b[M]!==R[M]){return F+M}}}return T}}s.compareIdentifiers=compareIdentifiers;var W=/^[0-9]+$/;function compareIdentifiers(t,s){var b=W.test(t);var R=W.test(s);if(b&&R){t=+t;s=+s}return t===s?0:b&&!R?-1:R&&!b?1:t<s?-1:1}s.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(t,s){return compareIdentifiers(s,t)}s.major=major;function major(t,s){return new SemVer(t,s).major}s.minor=minor;function minor(t,s){return new SemVer(t,s).minor}s.patch=patch;function patch(t,s){return new SemVer(t,s).patch}s.compare=compare;function compare(t,s,b){return new SemVer(t,b).compare(new SemVer(s,b))}s.compareLoose=compareLoose;function compareLoose(t,s){return compare(t,s,true)}s.compareBuild=compareBuild;function compareBuild(t,s,b){var R=new SemVer(t,b);var F=new SemVer(s,b);return R.compare(F)||R.compareBuild(F)}s.rcompare=rcompare;function rcompare(t,s,b){return compare(s,t,b)}s.sort=sort;function sort(t,b){return t.sort((function(t,R){return s.compareBuild(t,R,b)}))}s.rsort=rsort;function rsort(t,b){return t.sort((function(t,R){return s.compareBuild(R,t,b)}))}s.gt=gt;function gt(t,s,b){return compare(t,s,b)>0}s.lt=lt;function lt(t,s,b){return compare(t,s,b)<0}s.eq=eq;function eq(t,s,b){return compare(t,s,b)===0}s.neq=neq;function neq(t,s,b){return compare(t,s,b)!==0}s.gte=gte;function gte(t,s,b){return compare(t,s,b)>=0}s.lte=lte;function lte(t,s,b){return compare(t,s,b)<=0}s.cmp=cmp;function cmp(t,s,b,R){switch(s){case"===":if(typeof t==="object")t=t.version;if(typeof b==="object")b=b.version;return t===b;case"!==":if(typeof t==="object")t=t.version;if(typeof b==="object")b=b.version;return t!==b;case"":case"=":case"==":return eq(t,b,R);case"!=":return neq(t,b,R);case">":return gt(t,b,R);case">=":return gte(t,b,R);case"<":return lt(t,b,R);case"<=":return lte(t,b,R);default:throw new TypeError("Invalid operator: "+s)}}s.Comparator=Comparator;function Comparator(t,s){if(!s||typeof s!=="object"){s={loose:!!s,includePrerelease:false}}if(t instanceof Comparator){if(t.loose===!!s.loose){return t}else{t=t.value}}if(!(this instanceof Comparator)){return new Comparator(t,s)}b("comparator",t,s);this.options=s;this.loose=!!s.loose;this.parse(t);if(this.semver===Y){this.value=""}else{this.value=this.operator+this.semver.version}b("comp",this)}var Y={};Comparator.prototype.parse=function(t){var s=this.options.loose?M[B.COMPARATORLOOSE]:M[B.COMPARATOR];var b=t.match(s);if(!b){throw new TypeError("Invalid comparator: "+t)}this.operator=b[1]!==undefined?b[1]:"";if(this.operator==="="){this.operator=""}if(!b[2]){this.semver=Y}else{this.semver=new SemVer(b[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(t){b("Comparator.test",t,this.options.loose);if(this.semver===Y||t===Y){return true}if(typeof t==="string"){try{t=new SemVer(t,this.options)}catch(t){return false}}return cmp(t,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(t,s){if(!(t instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!s||typeof s!=="object"){s={loose:!!s,includePrerelease:false}}var b;if(this.operator===""){if(this.value===""){return true}b=new Range(t.value,s);return satisfies(this.value,b,s)}else if(t.operator===""){if(t.value===""){return true}b=new Range(this.value,s);return satisfies(t.semver,b,s)}var R=(this.operator===">="||this.operator===">")&&(t.operator===">="||t.operator===">");var F=(this.operator==="<="||this.operator==="<")&&(t.operator==="<="||t.operator==="<");var T=this.semver.version===t.semver.version;var M=(this.operator===">="||this.operator==="<=")&&(t.operator===">="||t.operator==="<=");var L=cmp(this.semver,"<",t.semver,s)&&((this.operator===">="||this.operator===">")&&(t.operator==="<="||t.operator==="<"));var B=cmp(this.semver,">",t.semver,s)&&((this.operator==="<="||this.operator==="<")&&(t.operator===">="||t.operator===">"));return R||F||T&&M||L||B};s.Range=Range;function Range(t,s){if(!s||typeof s!=="object"){s={loose:!!s,includePrerelease:false}}if(t instanceof Range){if(t.loose===!!s.loose&&t.includePrerelease===!!s.includePrerelease){return t}else{return new Range(t.raw,s)}}if(t instanceof Comparator){return new Range(t.value,s)}if(!(this instanceof Range)){return new Range(t,s)}this.options=s;this.loose=!!s.loose;this.includePrerelease=!!s.includePrerelease;this.raw=t;this.set=t.split(/\s*\|\|\s*/).map((function(t){return this.parseRange(t.trim())}),this).filter((function(t){return t.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+t)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(t){return t.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(t){var s=this.options.loose;t=t.trim();var R=s?M[B.HYPHENRANGELOOSE]:M[B.HYPHENRANGE];t=t.replace(R,hyphenReplace);b("hyphen replace",t);t=t.replace(M[B.COMPARATORTRIM],G);b("comparator trim",t,M[B.COMPARATORTRIM]);t=t.replace(M[B.TILDETRIM],q);t=t.replace(M[B.CARETTRIM],H);t=t.split(/\s+/).join(" ");var F=s?M[B.COMPARATORLOOSE]:M[B.COMPARATOR];var T=t.split(" ").map((function(t){return parseComparator(t,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){T=T.filter((function(t){return!!t.match(F)}))}T=T.map((function(t){return new Comparator(t,this.options)}),this);return T};Range.prototype.intersects=function(t,s){if(!(t instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(b){return isSatisfiable(b,s)&&t.set.some((function(t){return isSatisfiable(t,s)&&b.every((function(b){return t.every((function(t){return b.intersects(t,s)}))}))}))}))};function isSatisfiable(t,s){var b=true;var R=t.slice();var F=R.pop();while(b&&R.length){b=R.every((function(t){return F.intersects(t,s)}));F=R.pop()}return b}s.toComparators=toComparators;function toComparators(t,s){return new Range(t,s).set.map((function(t){return t.map((function(t){return t.value})).join(" ").trim().split(" ")}))}function parseComparator(t,s){b("comp",t,s);t=replaceCarets(t,s);b("caret",t);t=replaceTildes(t,s);b("tildes",t);t=replaceXRanges(t,s);b("xrange",t);t=replaceStars(t,s);b("stars",t);return t}function isX(t){return!t||t.toLowerCase()==="x"||t==="*"}function replaceTildes(t,s){return t.trim().split(/\s+/).map((function(t){return replaceTilde(t,s)})).join(" ")}function replaceTilde(t,s){var R=s.loose?M[B.TILDELOOSE]:M[B.TILDE];return t.replace(R,(function(s,R,F,T,M){b("tilde",t,s,R,F,T,M);var L;if(isX(R)){L=""}else if(isX(F)){L=">="+R+".0.0 <"+(+R+1)+".0.0"}else if(isX(T)){L=">="+R+"."+F+".0 <"+R+"."+(+F+1)+".0"}else if(M){b("replaceTilde pr",M);L=">="+R+"."+F+"."+T+"-"+M+" <"+R+"."+(+F+1)+".0"}else{L=">="+R+"."+F+"."+T+" <"+R+"."+(+F+1)+".0"}b("tilde return",L);return L}))}function replaceCarets(t,s){return t.trim().split(/\s+/).map((function(t){return replaceCaret(t,s)})).join(" ")}function replaceCaret(t,s){b("caret",t,s);var R=s.loose?M[B.CARETLOOSE]:M[B.CARET];return t.replace(R,(function(s,R,F,T,M){b("caret",t,s,R,F,T,M);var L;if(isX(R)){L=""}else if(isX(F)){L=">="+R+".0.0 <"+(+R+1)+".0.0"}else if(isX(T)){if(R==="0"){L=">="+R+"."+F+".0 <"+R+"."+(+F+1)+".0"}else{L=">="+R+"."+F+".0 <"+(+R+1)+".0.0"}}else if(M){b("replaceCaret pr",M);if(R==="0"){if(F==="0"){L=">="+R+"."+F+"."+T+"-"+M+" <"+R+"."+F+"."+(+T+1)}else{L=">="+R+"."+F+"."+T+"-"+M+" <"+R+"."+(+F+1)+".0"}}else{L=">="+R+"."+F+"."+T+"-"+M+" <"+(+R+1)+".0.0"}}else{b("no pr");if(R==="0"){if(F==="0"){L=">="+R+"."+F+"."+T+" <"+R+"."+F+"."+(+T+1)}else{L=">="+R+"."+F+"."+T+" <"+R+"."+(+F+1)+".0"}}else{L=">="+R+"."+F+"."+T+" <"+(+R+1)+".0.0"}}b("caret return",L);return L}))}function replaceXRanges(t,s){b("replaceXRanges",t,s);return t.split(/\s+/).map((function(t){return replaceXRange(t,s)})).join(" ")}function replaceXRange(t,s){t=t.trim();var R=s.loose?M[B.XRANGELOOSE]:M[B.XRANGE];return t.replace(R,(function(R,F,T,M,L,B){b("xRange",t,R,F,T,M,L,B);var U=isX(T);var q=U||isX(M);var H=q||isX(L);var G=H;if(F==="="&&G){F=""}B=s.includePrerelease?"-0":"";if(U){if(F===">"||F==="<"){R="<0.0.0-0"}else{R="*"}}else if(F&&G){if(q){M=0}L=0;if(F===">"){F=">=";if(q){T=+T+1;M=0;L=0}else{M=+M+1;L=0}}else if(F==="<="){F="<";if(q){T=+T+1}else{M=+M+1}}R=F+T+"."+M+"."+L+B}else if(q){R=">="+T+".0.0"+B+" <"+(+T+1)+".0.0"+B}else if(H){R=">="+T+"."+M+".0"+B+" <"+T+"."+(+M+1)+".0"+B}b("xRange return",R);return R}))}function replaceStars(t,s){b("replaceStars",t,s);return t.trim().replace(M[B.STAR],"")}function hyphenReplace(t,s,b,R,F,T,M,L,B,U,q,H,G){if(isX(b)){s=""}else if(isX(R)){s=">="+b+".0.0"}else if(isX(F)){s=">="+b+"."+R+".0"}else{s=">="+s}if(isX(B)){L=""}else if(isX(U)){L="<"+(+B+1)+".0.0"}else if(isX(q)){L="<"+B+"."+(+U+1)+".0"}else if(H){L="<="+B+"."+U+"."+q+"-"+H}else{L="<="+L}return(s+" "+L).trim()}Range.prototype.test=function(t){if(!t){return false}if(typeof t==="string"){try{t=new SemVer(t,this.options)}catch(t){return false}}for(var s=0;s<this.set.length;s++){if(testSet(this.set[s],t,this.options)){return true}}return false};function testSet(t,s,R){for(var F=0;F<t.length;F++){if(!t[F].test(s)){return false}}if(s.prerelease.length&&!R.includePrerelease){for(F=0;F<t.length;F++){b(t[F].semver);if(t[F].semver===Y){continue}if(t[F].semver.prerelease.length>0){var T=t[F].semver;if(T.major===s.major&&T.minor===s.minor&&T.patch===s.patch){return true}}}return false}return true}s.satisfies=satisfies;function satisfies(t,s,b){try{s=new Range(s,b)}catch(t){return false}return s.test(t)}s.maxSatisfying=maxSatisfying;function maxSatisfying(t,s,b){var R=null;var F=null;try{var T=new Range(s,b)}catch(t){return null}t.forEach((function(t){if(T.test(t)){if(!R||F.compare(t)===-1){R=t;F=new SemVer(R,b)}}}));return R}s.minSatisfying=minSatisfying;function minSatisfying(t,s,b){var R=null;var F=null;try{var T=new Range(s,b)}catch(t){return null}t.forEach((function(t){if(T.test(t)){if(!R||F.compare(t)===1){R=t;F=new SemVer(R,b)}}}));return R}s.minVersion=minVersion;function minVersion(t,s){t=new Range(t,s);var b=new SemVer("0.0.0");if(t.test(b)){return b}b=new SemVer("0.0.0-0");if(t.test(b)){return b}b=null;for(var R=0;R<t.set.length;++R){var F=t.set[R];F.forEach((function(t){var s=new SemVer(t.semver.version);switch(t.operator){case">":if(s.prerelease.length===0){s.patch++}else{s.prerelease.push(0)}s.raw=s.format();case"":case">=":if(!b||gt(b,s)){b=s}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+t.operator)}}))}if(b&&t.test(b)){return b}return null}s.validRange=validRange;function validRange(t,s){try{return new Range(t,s).range||"*"}catch(t){return null}}s.ltr=ltr;function ltr(t,s,b){return outside(t,s,"<",b)}s.gtr=gtr;function gtr(t,s,b){return outside(t,s,">",b)}s.outside=outside;function outside(t,s,b,R){t=new SemVer(t,R);s=new Range(s,R);var F,T,M,L,B;switch(b){case">":F=gt;T=lte;M=lt;L=">";B=">=";break;case"<":F=lt;T=gte;M=gt;L="<";B="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(t,s,R)){return false}for(var U=0;U<s.set.length;++U){var q=s.set[U];var H=null;var G=null;q.forEach((function(t){if(t.semver===Y){t=new Comparator(">=0.0.0")}H=H||t;G=G||t;if(F(t.semver,H.semver,R)){H=t}else if(M(t.semver,G.semver,R)){G=t}}));if(H.operator===L||H.operator===B){return false}if((!G.operator||G.operator===L)&&T(t,G.semver)){return false}else if(G.operator===B&&M(t,G.semver)){return false}}return true}s.prerelease=prerelease;function prerelease(t,s){var b=parse(t,s);return b&&b.prerelease.length?b.prerelease:null}s.intersects=intersects;function intersects(t,s,b){t=new Range(t,b);s=new Range(s,b);return t.intersects(s)}s.coerce=coerce;function coerce(t,s){if(t instanceof SemVer){return t}if(typeof t==="number"){t=String(t)}if(typeof t!=="string"){return null}s=s||{};var b=null;if(!s.rtl){b=t.match(M[B.COERCE])}else{var R;while((R=M[B.COERCERTL].exec(t))&&(!b||b.index+b[0].length!==t.length)){if(!b||R.index+R[0].length!==b.index+b[0].length){b=R}M[B.COERCERTL].lastIndex=R.index+R[1].length+R[2].length}M[B.COERCERTL].lastIndex=-1}if(b===null){return null}return parse(b[2]+"."+(b[3]||"0")+"."+(b[4]||"0"),s)}},5063:t=>{"use strict";t.exports=({onlyFirst:t=false}={})=>{const s=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(s,t?undefined:"g")}},2068:(t,s,b)=>{"use strict";t=b.nmd(t);const wrapAnsi16=(t,s)=>(...b)=>{const R=t(...b);return`[${R+s}m`};const wrapAnsi256=(t,s)=>(...b)=>{const R=t(...b);return`[${38+s};5;${R}m`};const wrapAnsi16m=(t,s)=>(...b)=>{const R=t(...b);return`[${38+s};2;${R[0]};${R[1]};${R[2]}m`};const ansi2ansi=t=>t;const rgb2rgb=(t,s,b)=>[t,s,b];const setLazyProperty=(t,s,b)=>{Object.defineProperty(t,s,{get:()=>{const R=b();Object.defineProperty(t,s,{value:R,enumerable:true,configurable:true});return R},enumerable:true,configurable:true})};let R;const makeDynamicStyles=(t,s,F,T)=>{if(R===undefined){R=b(6931)}const M=T?10:0;const L={};for(const[b,T]of Object.entries(R)){const R=b==="ansi16"?"ansi":b;if(b===s){L[R]=t(F,M)}else if(typeof T==="object"){L[R]=t(T[s],M)}}return L};function assembleStyles(){const t=new Map;const s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.gray=s.color.blackBright;s.bgColor.bgGray=s.bgColor.bgBlackBright;s.color.grey=s.color.blackBright;s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(const[b,R]of Object.entries(s)){for(const[b,F]of Object.entries(R)){s[b]={open:`[${F[0]}m`,close:`[${F[1]}m`};R[b]=s[b];t.set(F[0],F[1])}Object.defineProperty(s,b,{value:R,enumerable:false})}Object.defineProperty(s,"codes",{value:t,enumerable:false});s.color.close="";s.bgColor.close="";setLazyProperty(s.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(s.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(s.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(s.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(s.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(s.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return s}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},2701:(t,s,b)=>{"use strict";const R=b(5063);t.exports=t=>typeof t==="string"?t.replace(R(),""):t},7391:(t,s,b)=>{const R=b(8510);const F={};for(const t of Object.keys(R)){F[R[t]]=t}const T={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=T;for(const t of Object.keys(T)){if(!("channels"in T[t])){throw new Error("missing channels property: "+t)}if(!("labels"in T[t])){throw new Error("missing channel labels property: "+t)}if(T[t].labels.length!==T[t].channels){throw new Error("channel and label counts mismatch: "+t)}const{channels:s,labels:b}=T[t];delete T[t].channels;delete T[t].labels;Object.defineProperty(T[t],"channels",{value:s});Object.defineProperty(T[t],"labels",{value:b})}T.rgb.hsl=function(t){const s=t[0]/255;const b=t[1]/255;const R=t[2]/255;const F=Math.min(s,b,R);const T=Math.max(s,b,R);const M=T-F;let L;let B;if(T===F){L=0}else if(s===T){L=(b-R)/M}else if(b===T){L=2+(R-s)/M}else if(R===T){L=4+(s-b)/M}L=Math.min(L*60,360);if(L<0){L+=360}const U=(F+T)/2;if(T===F){B=0}else if(U<=.5){B=M/(T+F)}else{B=M/(2-T-F)}return[L,B*100,U*100]};T.rgb.hsv=function(t){let s;let b;let R;let F;let T;const M=t[0]/255;const L=t[1]/255;const B=t[2]/255;const U=Math.max(M,L,B);const q=U-Math.min(M,L,B);const diffc=function(t){return(U-t)/6/q+1/2};if(q===0){F=0;T=0}else{T=q/U;s=diffc(M);b=diffc(L);R=diffc(B);if(M===U){F=R-b}else if(L===U){F=1/3+s-R}else if(B===U){F=2/3+b-s}if(F<0){F+=1}else if(F>1){F-=1}}return[F*360,T*100,U*100]};T.rgb.hwb=function(t){const s=t[0];const b=t[1];let R=t[2];const F=T.rgb.hsl(t)[0];const M=1/255*Math.min(s,Math.min(b,R));R=1-1/255*Math.max(s,Math.max(b,R));return[F,M*100,R*100]};T.rgb.cmyk=function(t){const s=t[0]/255;const b=t[1]/255;const R=t[2]/255;const F=Math.min(1-s,1-b,1-R);const T=(1-s-F)/(1-F)||0;const M=(1-b-F)/(1-F)||0;const L=(1-R-F)/(1-F)||0;return[T*100,M*100,L*100,F*100]};function comparativeDistance(t,s){return(t[0]-s[0])**2+(t[1]-s[1])**2+(t[2]-s[2])**2}T.rgb.keyword=function(t){const s=F[t];if(s){return s}let b=Infinity;let T;for(const s of Object.keys(R)){const F=R[s];const M=comparativeDistance(t,F);if(M<b){b=M;T=s}}return T};T.keyword.rgb=function(t){return R[t]};T.rgb.xyz=function(t){let s=t[0]/255;let b=t[1]/255;let R=t[2]/255;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;b=b>.04045?((b+.055)/1.055)**2.4:b/12.92;R=R>.04045?((R+.055)/1.055)**2.4:R/12.92;const F=s*.4124+b*.3576+R*.1805;const T=s*.2126+b*.7152+R*.0722;const M=s*.0193+b*.1192+R*.9505;return[F*100,T*100,M*100]};T.rgb.lab=function(t){const s=T.rgb.xyz(t);let b=s[0];let R=s[1];let F=s[2];b/=95.047;R/=100;F/=108.883;b=b>.008856?b**(1/3):7.787*b+16/116;R=R>.008856?R**(1/3):7.787*R+16/116;F=F>.008856?F**(1/3):7.787*F+16/116;const M=116*R-16;const L=500*(b-R);const B=200*(R-F);return[M,L,B]};T.hsl.rgb=function(t){const s=t[0]/360;const b=t[1]/100;const R=t[2]/100;let F;let T;let M;if(b===0){M=R*255;return[M,M,M]}if(R<.5){F=R*(1+b)}else{F=R+b-R*b}const L=2*R-F;const B=[0,0,0];for(let t=0;t<3;t++){T=s+1/3*-(t-1);if(T<0){T++}if(T>1){T--}if(6*T<1){M=L+(F-L)*6*T}else if(2*T<1){M=F}else if(3*T<2){M=L+(F-L)*(2/3-T)*6}else{M=L}B[t]=M*255}return B};T.hsl.hsv=function(t){const s=t[0];let b=t[1]/100;let R=t[2]/100;let F=b;const T=Math.max(R,.01);R*=2;b*=R<=1?R:2-R;F*=T<=1?T:2-T;const M=(R+b)/2;const L=R===0?2*F/(T+F):2*b/(R+b);return[s,L*100,M*100]};T.hsv.rgb=function(t){const s=t[0]/60;const b=t[1]/100;let R=t[2]/100;const F=Math.floor(s)%6;const T=s-Math.floor(s);const M=255*R*(1-b);const L=255*R*(1-b*T);const B=255*R*(1-b*(1-T));R*=255;switch(F){case 0:return[R,B,M];case 1:return[L,R,M];case 2:return[M,R,B];case 3:return[M,L,R];case 4:return[B,M,R];case 5:return[R,M,L]}};T.hsv.hsl=function(t){const s=t[0];const b=t[1]/100;const R=t[2]/100;const F=Math.max(R,.01);let T;let M;M=(2-b)*R;const L=(2-b)*F;T=b*F;T/=L<=1?L:2-L;T=T||0;M/=2;return[s,T*100,M*100]};T.hwb.rgb=function(t){const s=t[0]/360;let b=t[1]/100;let R=t[2]/100;const F=b+R;let T;if(F>1){b/=F;R/=F}const M=Math.floor(6*s);const L=1-R;T=6*s-M;if((M&1)!==0){T=1-T}const B=b+T*(L-b);let U;let q;let H;switch(M){default:case 6:case 0:U=L;q=B;H=b;break;case 1:U=B;q=L;H=b;break;case 2:U=b;q=L;H=B;break;case 3:U=b;q=B;H=L;break;case 4:U=B;q=b;H=L;break;case 5:U=L;q=b;H=B;break}return[U*255,q*255,H*255]};T.cmyk.rgb=function(t){const s=t[0]/100;const b=t[1]/100;const R=t[2]/100;const F=t[3]/100;const T=1-Math.min(1,s*(1-F)+F);const M=1-Math.min(1,b*(1-F)+F);const L=1-Math.min(1,R*(1-F)+F);return[T*255,M*255,L*255]};T.xyz.rgb=function(t){const s=t[0]/100;const b=t[1]/100;const R=t[2]/100;let F;let T;let M;F=s*3.2406+b*-1.5372+R*-.4986;T=s*-.9689+b*1.8758+R*.0415;M=s*.0557+b*-.204+R*1.057;F=F>.0031308?1.055*F**(1/2.4)-.055:F*12.92;T=T>.0031308?1.055*T**(1/2.4)-.055:T*12.92;M=M>.0031308?1.055*M**(1/2.4)-.055:M*12.92;F=Math.min(Math.max(0,F),1);T=Math.min(Math.max(0,T),1);M=Math.min(Math.max(0,M),1);return[F*255,T*255,M*255]};T.xyz.lab=function(t){let s=t[0];let b=t[1];let R=t[2];s/=95.047;b/=100;R/=108.883;s=s>.008856?s**(1/3):7.787*s+16/116;b=b>.008856?b**(1/3):7.787*b+16/116;R=R>.008856?R**(1/3):7.787*R+16/116;const F=116*b-16;const T=500*(s-b);const M=200*(b-R);return[F,T,M]};T.lab.xyz=function(t){const s=t[0];const b=t[1];const R=t[2];let F;let T;let M;T=(s+16)/116;F=b/500+T;M=T-R/200;const L=T**3;const B=F**3;const U=M**3;T=L>.008856?L:(T-16/116)/7.787;F=B>.008856?B:(F-16/116)/7.787;M=U>.008856?U:(M-16/116)/7.787;F*=95.047;T*=100;M*=108.883;return[F,T,M]};T.lab.lch=function(t){const s=t[0];const b=t[1];const R=t[2];let F;const T=Math.atan2(R,b);F=T*360/2/Math.PI;if(F<0){F+=360}const M=Math.sqrt(b*b+R*R);return[s,M,F]};T.lch.lab=function(t){const s=t[0];const b=t[1];const R=t[2];const F=R/360*2*Math.PI;const T=b*Math.cos(F);const M=b*Math.sin(F);return[s,T,M]};T.rgb.ansi16=function(t,s=null){const[b,R,F]=t;let M=s===null?T.rgb.hsv(t)[2]:s;M=Math.round(M/50);if(M===0){return 30}let L=30+(Math.round(F/255)<<2|Math.round(R/255)<<1|Math.round(b/255));if(M===2){L+=60}return L};T.hsv.ansi16=function(t){return T.rgb.ansi16(T.hsv.rgb(t),t[2])};T.rgb.ansi256=function(t){const s=t[0];const b=t[1];const R=t[2];if(s===b&&b===R){if(s<8){return 16}if(s>248){return 231}return Math.round((s-8)/247*24)+232}const F=16+36*Math.round(s/255*5)+6*Math.round(b/255*5)+Math.round(R/255*5);return F};T.ansi16.rgb=function(t){let s=t%10;if(s===0||s===7){if(t>50){s+=3.5}s=s/10.5*255;return[s,s,s]}const b=(~~(t>50)+1)*.5;const R=(s&1)*b*255;const F=(s>>1&1)*b*255;const T=(s>>2&1)*b*255;return[R,F,T]};T.ansi256.rgb=function(t){if(t>=232){const s=(t-232)*10+8;return[s,s,s]}t-=16;let s;const b=Math.floor(t/36)/5*255;const R=Math.floor((s=t%36)/6)/5*255;const F=s%6/5*255;return[b,R,F]};T.rgb.hex=function(t){const s=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);const b=s.toString(16).toUpperCase();return"000000".substring(b.length)+b};T.hex.rgb=function(t){const s=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s){return[0,0,0]}let b=s[0];if(s[0].length===3){b=b.split("").map((t=>t+t)).join("")}const R=parseInt(b,16);const F=R>>16&255;const T=R>>8&255;const M=R&255;return[F,T,M]};T.rgb.hcg=function(t){const s=t[0]/255;const b=t[1]/255;const R=t[2]/255;const F=Math.max(Math.max(s,b),R);const T=Math.min(Math.min(s,b),R);const M=F-T;let L;let B;if(M<1){L=T/(1-M)}else{L=0}if(M<=0){B=0}else if(F===s){B=(b-R)/M%6}else if(F===b){B=2+(R-s)/M}else{B=4+(s-b)/M}B/=6;B%=1;return[B*360,M*100,L*100]};T.hsl.hcg=function(t){const s=t[1]/100;const b=t[2]/100;const R=b<.5?2*s*b:2*s*(1-b);let F=0;if(R<1){F=(b-.5*R)/(1-R)}return[t[0],R*100,F*100]};T.hsv.hcg=function(t){const s=t[1]/100;const b=t[2]/100;const R=s*b;let F=0;if(R<1){F=(b-R)/(1-R)}return[t[0],R*100,F*100]};T.hcg.rgb=function(t){const s=t[0]/360;const b=t[1]/100;const R=t[2]/100;if(b===0){return[R*255,R*255,R*255]}const F=[0,0,0];const T=s%1*6;const M=T%1;const L=1-M;let B=0;switch(Math.floor(T)){case 0:F[0]=1;F[1]=M;F[2]=0;break;case 1:F[0]=L;F[1]=1;F[2]=0;break;case 2:F[0]=0;F[1]=1;F[2]=M;break;case 3:F[0]=0;F[1]=L;F[2]=1;break;case 4:F[0]=M;F[1]=0;F[2]=1;break;default:F[0]=1;F[1]=0;F[2]=L}B=(1-b)*R;return[(b*F[0]+B)*255,(b*F[1]+B)*255,(b*F[2]+B)*255]};T.hcg.hsv=function(t){const s=t[1]/100;const b=t[2]/100;const R=s+b*(1-s);let F=0;if(R>0){F=s/R}return[t[0],F*100,R*100]};T.hcg.hsl=function(t){const s=t[1]/100;const b=t[2]/100;const R=b*(1-s)+.5*s;let F=0;if(R>0&&R<.5){F=s/(2*R)}else if(R>=.5&&R<1){F=s/(2*(1-R))}return[t[0],F*100,R*100]};T.hcg.hwb=function(t){const s=t[1]/100;const b=t[2]/100;const R=s+b*(1-s);return[t[0],(R-s)*100,(1-R)*100]};T.hwb.hcg=function(t){const s=t[1]/100;const b=t[2]/100;const R=1-b;const F=R-s;let T=0;if(F<1){T=(R-F)/(1-F)}return[t[0],F*100,T*100]};T.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};T.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};T.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};T.gray.hsl=function(t){return[0,0,t[0]]};T.gray.hsv=T.gray.hsl;T.gray.hwb=function(t){return[0,100,t[0]]};T.gray.cmyk=function(t){return[0,0,0,t[0]]};T.gray.lab=function(t){return[t[0],0,0]};T.gray.hex=function(t){const s=Math.round(t[0]/100*255)&255;const b=(s<<16)+(s<<8)+s;const R=b.toString(16).toUpperCase();return"000000".substring(R.length)+R};T.rgb.gray=function(t){const s=(t[0]+t[1]+t[2])/3;return[s/255*100]}},6931:(t,s,b)=>{const R=b(7391);const F=b(880);const T={};const M=Object.keys(R);function wrapRaw(t){const wrappedFn=function(...s){const b=s[0];if(b===undefined||b===null){return b}if(b.length>1){s=b}return t(s)};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}function wrapRounded(t){const wrappedFn=function(...s){const b=s[0];if(b===undefined||b===null){return b}if(b.length>1){s=b}const R=t(s);if(typeof R==="object"){for(let t=R.length,s=0;s<t;s++){R[s]=Math.round(R[s])}}return R};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}M.forEach((t=>{T[t]={};Object.defineProperty(T[t],"channels",{value:R[t].channels});Object.defineProperty(T[t],"labels",{value:R[t].labels});const s=F(t);const b=Object.keys(s);b.forEach((b=>{const R=s[b];T[t][b]=wrapRounded(R);T[t][b].raw=wrapRaw(R)}))}));t.exports=T},880:(t,s,b)=>{const R=b(7391);function buildGraph(){const t={};const s=Object.keys(R);for(let b=s.length,R=0;R<b;R++){t[s[R]]={distance:-1,parent:null}}return t}function deriveBFS(t){const s=buildGraph();const b=[t];s[t].distance=0;while(b.length){const t=b.pop();const F=Object.keys(R[t]);for(let R=F.length,T=0;T<R;T++){const R=F[T];const M=s[R];if(M.distance===-1){M.distance=s[t].distance+1;M.parent=t;b.unshift(R)}}}return s}function link(t,s){return function(b){return s(t(b))}}function wrapConversion(t,s){const b=[s[t].parent,t];let F=R[s[t].parent][t];let T=s[t].parent;while(s[T].parent){b.unshift(s[T].parent);F=link(R[s[T].parent][T],F);T=s[T].parent}F.conversion=b;return F}t.exports=function(t){const s=deriveBFS(t);const b={};const R=Object.keys(s);for(let t=R.length,F=0;F<t;F++){const t=R[F];const T=s[t];if(T.parent===null){continue}b[t]=wrapConversion(t,s)}return b}},8510:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8212:t=>{"use strict";t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},2644:(t,s,b)=>{const{dirname:R,resolve:F}=b(1017);const{readdirSync:T,statSync:M}=b(7147);t.exports=function(t,s){let b=F(".",t);let L,B=M(b);if(!B.isDirectory()){b=R(b)}while(true){L=s(b,T(b));if(L)return F(b,L);b=R(L=b);if(L===b)break}}},351:t=>{"use strict";t.exports=function getCallerFile(t){if(t===void 0){t=2}if(t>=Error.stackTraceLimit){throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+t+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`")}var s=Error.prepareStackTrace;Error.prepareStackTrace=function(t,s){return s};var b=(new Error).stack;Error.prepareStackTrace=s;if(b!==null&&typeof b==="object"){return b[t]?b[t].getFileName():undefined}}},4882:t=>{"use strict";const isFullwidthCodePoint=t=>{if(Number.isNaN(t)){return false}if(t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141)){return true}return false};t.exports=isFullwidthCodePoint;t.exports["default"]=isFullwidthCodePoint},1917:(t,s,b)=>{"use strict";var R=b(1161);var F=b(8866);function renamed(t,s){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. "+"Use yaml."+s+" instead, which is now safe by default.")}}t.exports.Type=b(6073);t.exports.Schema=b(1082);t.exports.FAILSAFE_SCHEMA=b(8562);t.exports.JSON_SCHEMA=b(1035);t.exports.CORE_SCHEMA=b(2011);t.exports.DEFAULT_SCHEMA=b(8759);t.exports.load=R.load;t.exports.loadAll=R.loadAll;t.exports.dump=F.dump;t.exports.YAMLException=b(8179);t.exports.types={binary:b(7900),float:b(2705),map:b(6150),null:b(721),pairs:b(6860),set:b(9548),timestamp:b(9212),bool:b(4993),int:b(1615),merge:b(6104),omap:b(9046),seq:b(7283),str:b(3619)};t.exports.safeLoad=renamed("safeLoad","load");t.exports.safeLoadAll=renamed("safeLoadAll","loadAll");t.exports.safeDump=renamed("safeDump","dump")},6829:t=>{"use strict";function isNothing(t){return typeof t==="undefined"||t===null}function isObject(t){return typeof t==="object"&&t!==null}function toArray(t){if(Array.isArray(t))return t;else if(isNothing(t))return[];return[t]}function extend(t,s){var b,R,F,T;if(s){T=Object.keys(s);for(b=0,R=T.length;b<R;b+=1){F=T[b];t[F]=s[F]}}return t}function repeat(t,s){var b="",R;for(R=0;R<s;R+=1){b+=t}return b}function isNegativeZero(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}t.exports.isNothing=isNothing;t.exports.isObject=isObject;t.exports.toArray=toArray;t.exports.repeat=repeat;t.exports.isNegativeZero=isNegativeZero;t.exports.extend=extend},8866:(t,s,b)=>{"use strict";var R=b(6829);var F=b(8179);var T=b(8759);var M=Object.prototype.toString;var L=Object.prototype.hasOwnProperty;var B=65279;var U=9;var q=10;var H=13;var G=32;var V=33;var W=34;var Y=35;var z=37;var X=38;var J=39;var K=42;var Z=44;var Q=45;var ee=58;var re=61;var ne=62;var ie=63;var se=64;var oe=91;var ae=93;var ue=96;var le=123;var ce=124;var fe=125;var he={};he[0]="\\0";he[7]="\\a";he[8]="\\b";he[9]="\\t";he[10]="\\n";he[11]="\\v";he[12]="\\f";he[13]="\\r";he[27]="\\e";he[34]='\\"';he[92]="\\\\";he[133]="\\N";he[160]="\\_";he[8232]="\\L";he[8233]="\\P";var pe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var de=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(t,s){var b,R,F,T,M,B,U;if(s===null)return{};b={};R=Object.keys(s);for(F=0,T=R.length;F<T;F+=1){M=R[F];B=String(s[M]);if(M.slice(0,2)==="!!"){M="tag:yaml.org,2002:"+M.slice(2)}U=t.compiledTypeMap["fallback"][M];if(U&&L.call(U.styleAliases,B)){B=U.styleAliases[B]}b[M]=B}return b}function encodeHex(t){var s,b,T;s=t.toString(16).toUpperCase();if(t<=255){b="x";T=2}else if(t<=65535){b="u";T=4}else if(t<=4294967295){b="U";T=8}else{throw new F("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+b+R.repeat("0",T-s.length)+s}var ge=1,me=2;function State(t){this.schema=t["schema"]||T;this.indent=Math.max(1,t["indent"]||2);this.noArrayIndent=t["noArrayIndent"]||false;this.skipInvalid=t["skipInvalid"]||false;this.flowLevel=R.isNothing(t["flowLevel"])?-1:t["flowLevel"];this.styleMap=compileStyleMap(this.schema,t["styles"]||null);this.sortKeys=t["sortKeys"]||false;this.lineWidth=t["lineWidth"]||80;this.noRefs=t["noRefs"]||false;this.noCompatMode=t["noCompatMode"]||false;this.condenseFlow=t["condenseFlow"]||false;this.quotingType=t["quotingType"]==='"'?me:ge;this.forceQuotes=t["forceQuotes"]||false;this.replacer=typeof t["replacer"]==="function"?t["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(t,s){var b=R.repeat(" ",s),F=0,T=-1,M="",L,B=t.length;while(F<B){T=t.indexOf("\n",F);if(T===-1){L=t.slice(F);F=B}else{L=t.slice(F,T+1);F=T+1}if(L.length&&L!=="\n")M+=b;M+=L}return M}function generateNextLine(t,s){return"\n"+R.repeat(" ",t.indent*s)}function testImplicitResolving(t,s){var b,R,F;for(b=0,R=t.implicitTypes.length;b<R;b+=1){F=t.implicitTypes[b];if(F.resolve(s)){return true}}return false}function isWhitespace(t){return t===G||t===U}function isPrintable(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==B||65536<=t&&t<=1114111}function isNsCharOrWhitespace(t){return isPrintable(t)&&t!==B&&t!==H&&t!==q}function isPlainSafe(t,s,b){var R=isNsCharOrWhitespace(t);var F=R&&!isWhitespace(t);return(b?R:R&&t!==Z&&t!==oe&&t!==ae&&t!==le&&t!==fe)&&t!==Y&&!(s===ee&&!F)||isNsCharOrWhitespace(s)&&!isWhitespace(s)&&t===Y||s===ee&&F}function isPlainSafeFirst(t){return isPrintable(t)&&t!==B&&!isWhitespace(t)&&t!==Q&&t!==ie&&t!==ee&&t!==Z&&t!==oe&&t!==ae&&t!==le&&t!==fe&&t!==Y&&t!==X&&t!==K&&t!==V&&t!==ce&&t!==re&&t!==ne&&t!==J&&t!==W&&t!==z&&t!==se&&t!==ue}function isPlainSafeLast(t){return!isWhitespace(t)&&t!==ee}function codePointAt(t,s){var b=t.charCodeAt(s),R;if(b>=55296&&b<=56319&&s+1<t.length){R=t.charCodeAt(s+1);if(R>=56320&&R<=57343){return(b-55296)*1024+R-56320+65536}}return b}function needIndentIndicator(t){var s=/^\n* /;return s.test(t)}var De=1,ve=2,ye=3,Ee=4,be=5;function chooseScalarStyle(t,s,b,R,F,T,M,L){var B;var U=0;var H=null;var G=false;var V=false;var W=R!==-1;var Y=-1;var z=isPlainSafeFirst(codePointAt(t,0))&&isPlainSafeLast(codePointAt(t,t.length-1));if(s||M){for(B=0;B<t.length;U>=65536?B+=2:B++){U=codePointAt(t,B);if(!isPrintable(U)){return be}z=z&&isPlainSafe(U,H,L);H=U}}else{for(B=0;B<t.length;U>=65536?B+=2:B++){U=codePointAt(t,B);if(U===q){G=true;if(W){V=V||B-Y-1>R&&t[Y+1]!==" ";Y=B}}else if(!isPrintable(U)){return be}z=z&&isPlainSafe(U,H,L);H=U}V=V||W&&(B-Y-1>R&&t[Y+1]!==" ")}if(!G&&!V){if(z&&!M&&!F(t)){return De}return T===me?be:ve}if(b>9&&needIndentIndicator(t)){return be}if(!M){return V?Ee:ye}return T===me?be:ve}function writeScalar(t,s,b,R,T){t.dump=function(){if(s.length===0){return t.quotingType===me?'""':"''"}if(!t.noCompatMode){if(pe.indexOf(s)!==-1||de.test(s)){return t.quotingType===me?'"'+s+'"':"'"+s+"'"}}var M=t.indent*Math.max(1,b);var L=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-M);var B=R||t.flowLevel>-1&&b>=t.flowLevel;function testAmbiguity(s){return testImplicitResolving(t,s)}switch(chooseScalarStyle(s,B,t.indent,L,testAmbiguity,t.quotingType,t.forceQuotes&&!R,T)){case De:return s;case ve:return"'"+s.replace(/'/g,"''")+"'";case ye:return"|"+blockHeader(s,t.indent)+dropEndingNewline(indentString(s,M));case Ee:return">"+blockHeader(s,t.indent)+dropEndingNewline(indentString(foldString(s,L),M));case be:return'"'+escapeString(s,L)+'"';default:throw new F("impossible error: invalid scalar style")}}()}function blockHeader(t,s){var b=needIndentIndicator(t)?String(s):"";var R=t[t.length-1]==="\n";var F=R&&(t[t.length-2]==="\n"||t==="\n");var T=F?"+":R?"":"-";return b+T+"\n"}function dropEndingNewline(t){return t[t.length-1]==="\n"?t.slice(0,-1):t}function foldString(t,s){var b=/(\n+)([^\n]*)/g;var R=function(){var R=t.indexOf("\n");R=R!==-1?R:t.length;b.lastIndex=R;return foldLine(t.slice(0,R),s)}();var F=t[0]==="\n"||t[0]===" ";var T;var M;while(M=b.exec(t)){var L=M[1],B=M[2];T=B[0]===" ";R+=L+(!F&&!T&&B!==""?"\n":"")+foldLine(B,s);F=T}return R}function foldLine(t,s){if(t===""||t[0]===" ")return t;var b=/ [^ ]/g;var R;var F=0,T,M=0,L=0;var B="";while(R=b.exec(t)){L=R.index;if(L-F>s){T=M>F?M:L;B+="\n"+t.slice(F,T);F=T+1}M=L}B+="\n";if(t.length-F>s&&M>F){B+=t.slice(F,M)+"\n"+t.slice(M+1)}else{B+=t.slice(F)}return B.slice(1)}function escapeString(t){var s="";var b=0;var R;for(var F=0;F<t.length;b>=65536?F+=2:F++){b=codePointAt(t,F);R=he[b];if(!R&&isPrintable(b)){s+=t[F];if(b>=65536)s+=t[F+1]}else{s+=R||encodeHex(b)}}return s}function writeFlowSequence(t,s,b){var R="",F=t.tag,T,M,L;for(T=0,M=b.length;T<M;T+=1){L=b[T];if(t.replacer){L=t.replacer.call(b,String(T),L)}if(writeNode(t,s,L,false,false)||typeof L==="undefined"&&writeNode(t,s,null,false,false)){if(R!=="")R+=","+(!t.condenseFlow?" ":"");R+=t.dump}}t.tag=F;t.dump="["+R+"]"}function writeBlockSequence(t,s,b,R){var F="",T=t.tag,M,L,B;for(M=0,L=b.length;M<L;M+=1){B=b[M];if(t.replacer){B=t.replacer.call(b,String(M),B)}if(writeNode(t,s+1,B,true,true,false,true)||typeof B==="undefined"&&writeNode(t,s+1,null,true,true,false,true)){if(!R||F!==""){F+=generateNextLine(t,s)}if(t.dump&&q===t.dump.charCodeAt(0)){F+="-"}else{F+="- "}F+=t.dump}}t.tag=T;t.dump=F||"[]"}function writeFlowMapping(t,s,b){var R="",F=t.tag,T=Object.keys(b),M,L,B,U,q;for(M=0,L=T.length;M<L;M+=1){q="";if(R!=="")q+=", ";if(t.condenseFlow)q+='"';B=T[M];U=b[B];if(t.replacer){U=t.replacer.call(b,B,U)}if(!writeNode(t,s,B,false,false)){continue}if(t.dump.length>1024)q+="? ";q+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" ");if(!writeNode(t,s,U,false,false)){continue}q+=t.dump;R+=q}t.tag=F;t.dump="{"+R+"}"}function writeBlockMapping(t,s,b,R){var T="",M=t.tag,L=Object.keys(b),B,U,H,G,V,W;if(t.sortKeys===true){L.sort()}else if(typeof t.sortKeys==="function"){L.sort(t.sortKeys)}else if(t.sortKeys){throw new F("sortKeys must be a boolean or a function")}for(B=0,U=L.length;B<U;B+=1){W="";if(!R||T!==""){W+=generateNextLine(t,s)}H=L[B];G=b[H];if(t.replacer){G=t.replacer.call(b,H,G)}if(!writeNode(t,s+1,H,true,true,true)){continue}V=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024;if(V){if(t.dump&&q===t.dump.charCodeAt(0)){W+="?"}else{W+="? "}}W+=t.dump;if(V){W+=generateNextLine(t,s)}if(!writeNode(t,s+1,G,true,V)){continue}if(t.dump&&q===t.dump.charCodeAt(0)){W+=":"}else{W+=": "}W+=t.dump;T+=W}t.tag=M;t.dump=T||"{}"}function detectType(t,s,b){var R,T,B,U,q,H;T=b?t.explicitTypes:t.implicitTypes;for(B=0,U=T.length;B<U;B+=1){q=T[B];if((q.instanceOf||q.predicate)&&(!q.instanceOf||typeof s==="object"&&s instanceof q.instanceOf)&&(!q.predicate||q.predicate(s))){if(b){if(q.multi&&q.representName){t.tag=q.representName(s)}else{t.tag=q.tag}}else{t.tag="?"}if(q.represent){H=t.styleMap[q.tag]||q.defaultStyle;if(M.call(q.represent)==="[object Function]"){R=q.represent(s,H)}else if(L.call(q.represent,H)){R=q.represent[H](s,H)}else{throw new F("!<"+q.tag+'> tag resolver accepts not "'+H+'" style')}t.dump=R}return true}}return false}function writeNode(t,s,b,R,T,L,B){t.tag=null;t.dump=b;if(!detectType(t,b,false)){detectType(t,b,true)}var U=M.call(t.dump);var q=R;var H;if(R){R=t.flowLevel<0||t.flowLevel>s}var G=U==="[object Object]"||U==="[object Array]",V,W;if(G){V=t.duplicates.indexOf(b);W=V!==-1}if(t.tag!==null&&t.tag!=="?"||W||t.indent!==2&&s>0){T=false}if(W&&t.usedDuplicates[V]){t.dump="*ref_"+V}else{if(G&&W&&!t.usedDuplicates[V]){t.usedDuplicates[V]=true}if(U==="[object Object]"){if(R&&Object.keys(t.dump).length!==0){writeBlockMapping(t,s,t.dump,T);if(W){t.dump="&ref_"+V+t.dump}}else{writeFlowMapping(t,s,t.dump);if(W){t.dump="&ref_"+V+" "+t.dump}}}else if(U==="[object Array]"){if(R&&t.dump.length!==0){if(t.noArrayIndent&&!B&&s>0){writeBlockSequence(t,s-1,t.dump,T)}else{writeBlockSequence(t,s,t.dump,T)}if(W){t.dump="&ref_"+V+t.dump}}else{writeFlowSequence(t,s,t.dump);if(W){t.dump="&ref_"+V+" "+t.dump}}}else if(U==="[object String]"){if(t.tag!=="?"){writeScalar(t,t.dump,s,L,q)}}else if(U==="[object Undefined]"){return false}else{if(t.skipInvalid)return false;throw new F("unacceptable kind of an object to dump "+U)}if(t.tag!==null&&t.tag!=="?"){H=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21");if(t.tag[0]==="!"){H="!"+H}else if(H.slice(0,18)==="tag:yaml.org,2002:"){H="!!"+H.slice(18)}else{H="!<"+H+">"}t.dump=H+" "+t.dump}}return true}function getDuplicateReferences(t,s){var b=[],R=[],F,T;inspectNode(t,b,R);for(F=0,T=R.length;F<T;F+=1){s.duplicates.push(b[R[F]])}s.usedDuplicates=new Array(T)}function inspectNode(t,s,b){var R,F,T;if(t!==null&&typeof t==="object"){F=s.indexOf(t);if(F!==-1){if(b.indexOf(F)===-1){b.push(F)}}else{s.push(t);if(Array.isArray(t)){for(F=0,T=t.length;F<T;F+=1){inspectNode(t[F],s,b)}}else{R=Object.keys(t);for(F=0,T=R.length;F<T;F+=1){inspectNode(t[R[F]],s,b)}}}}}function dump(t,s){s=s||{};var b=new State(s);if(!b.noRefs)getDuplicateReferences(t,b);var R=t;if(b.replacer){R=b.replacer.call({"":R},"",R)}if(writeNode(b,0,R,true,true))return b.dump+"\n";return""}t.exports.dump=dump},8179:t=>{"use strict";function formatError(t,s){var b="",R=t.reason||"(unknown reason)";if(!t.mark)return R;if(t.mark.name){b+='in "'+t.mark.name+'" '}b+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")";if(!s&&t.mark.snippet){b+="\n\n"+t.mark.snippet}return R+" "+b}function YAMLException(t,s){Error.call(this);this.name="YAMLException";this.reason=t;this.mark=s;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(t){return this.name+": "+formatError(this,t)};t.exports=YAMLException},1161:(t,s,b)=>{"use strict";var R=b(6829);var F=b(8179);var T=b(6975);var M=b(8759);var L=Object.prototype.hasOwnProperty;var B=1;var U=2;var q=3;var H=4;var G=1;var V=2;var W=3;var Y=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var z=/[\x85\u2028\u2029]/;var X=/[,\[\]\{\}]/;var J=/^(?:!|!!|![a-z\-]+!)$/i;var K=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(t){return Object.prototype.toString.call(t)}function is_EOL(t){return t===10||t===13}function is_WHITE_SPACE(t){return t===9||t===32}function is_WS_OR_EOL(t){return t===9||t===32||t===10||t===13}function is_FLOW_INDICATOR(t){return t===44||t===91||t===93||t===123||t===125}function fromHexCode(t){var s;if(48<=t&&t<=57){return t-48}s=t|32;if(97<=s&&s<=102){return s-97+10}return-1}function escapedHexLen(t){if(t===120){return 2}if(t===117){return 4}if(t===85){return 8}return 0}function fromDecimalCode(t){if(48<=t&&t<=57){return t-48}return-1}function simpleEscapeSequence(t){return t===48?"\0":t===97?"":t===98?"\b":t===116?"\t":t===9?"\t":t===110?"\n":t===118?"\v":t===102?"\f":t===114?"\r":t===101?"":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function charFromCodepoint(t){if(t<=65535){return String.fromCharCode(t)}return String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Z=new Array(256);var Q=new Array(256);for(var ee=0;ee<256;ee++){Z[ee]=simpleEscapeSequence(ee)?1:0;Q[ee]=simpleEscapeSequence(ee)}function State(t,s){this.input=t;this.filename=s["filename"]||null;this.schema=s["schema"]||M;this.onWarning=s["onWarning"]||null;this.legacy=s["legacy"]||false;this.json=s["json"]||false;this.listener=s["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=t.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(t,s){var b={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};b.snippet=T(b);return new F(s,b)}function throwError(t,s){throw generateError(t,s)}function throwWarning(t,s){if(t.onWarning){t.onWarning.call(null,generateError(t,s))}}var re={YAML:function handleYamlDirective(t,s,b){var R,F,T;if(t.version!==null){throwError(t,"duplication of %YAML directive")}if(b.length!==1){throwError(t,"YAML directive accepts exactly one argument")}R=/^([0-9]+)\.([0-9]+)$/.exec(b[0]);if(R===null){throwError(t,"ill-formed argument of the YAML directive")}F=parseInt(R[1],10);T=parseInt(R[2],10);if(F!==1){throwError(t,"unacceptable YAML version of the document")}t.version=b[0];t.checkLineBreaks=T<2;if(T!==1&&T!==2){throwWarning(t,"unsupported YAML version of the document")}},TAG:function handleTagDirective(t,s,b){var R,F;if(b.length!==2){throwError(t,"TAG directive accepts exactly two arguments")}R=b[0];F=b[1];if(!J.test(R)){throwError(t,"ill-formed tag handle (first argument) of the TAG directive")}if(L.call(t.tagMap,R)){throwError(t,'there is a previously declared suffix for "'+R+'" tag handle')}if(!K.test(F)){throwError(t,"ill-formed tag prefix (second argument) of the TAG directive")}try{F=decodeURIComponent(F)}catch(s){throwError(t,"tag prefix is malformed: "+F)}t.tagMap[R]=F}};function captureSegment(t,s,b,R){var F,T,M,L;if(s<b){L=t.input.slice(s,b);if(R){for(F=0,T=L.length;F<T;F+=1){M=L.charCodeAt(F);if(!(M===9||32<=M&&M<=1114111)){throwError(t,"expected valid JSON character")}}}else if(Y.test(L)){throwError(t,"the stream contains non-printable characters")}t.result+=L}}function mergeMappings(t,s,b,F){var T,M,B,U;if(!R.isObject(b)){throwError(t,"cannot merge mappings; the provided source object is unacceptable")}T=Object.keys(b);for(B=0,U=T.length;B<U;B+=1){M=T[B];if(!L.call(s,M)){s[M]=b[M];F[M]=true}}}function storeMappingPair(t,s,b,R,F,T,M,B,U){var q,H;if(Array.isArray(F)){F=Array.prototype.slice.call(F);for(q=0,H=F.length;q<H;q+=1){if(Array.isArray(F[q])){throwError(t,"nested arrays are not supported inside keys")}if(typeof F==="object"&&_class(F[q])==="[object Object]"){F[q]="[object Object]"}}}if(typeof F==="object"&&_class(F)==="[object Object]"){F="[object Object]"}F=String(F);if(s===null){s={}}if(R==="tag:yaml.org,2002:merge"){if(Array.isArray(T)){for(q=0,H=T.length;q<H;q+=1){mergeMappings(t,s,T[q],b)}}else{mergeMappings(t,s,T,b)}}else{if(!t.json&&!L.call(b,F)&&L.call(s,F)){t.line=M||t.line;t.lineStart=B||t.lineStart;t.position=U||t.position;throwError(t,"duplicated mapping key")}if(F==="__proto__"){Object.defineProperty(s,F,{configurable:true,enumerable:true,writable:true,value:T})}else{s[F]=T}delete b[F]}return s}function readLineBreak(t){var s;s=t.input.charCodeAt(t.position);if(s===10){t.position++}else if(s===13){t.position++;if(t.input.charCodeAt(t.position)===10){t.position++}}else{throwError(t,"a line break is expected")}t.line+=1;t.lineStart=t.position;t.firstTabInLine=-1}function skipSeparationSpace(t,s,b){var R=0,F=t.input.charCodeAt(t.position);while(F!==0){while(is_WHITE_SPACE(F)){if(F===9&&t.firstTabInLine===-1){t.firstTabInLine=t.position}F=t.input.charCodeAt(++t.position)}if(s&&F===35){do{F=t.input.charCodeAt(++t.position)}while(F!==10&&F!==13&&F!==0)}if(is_EOL(F)){readLineBreak(t);F=t.input.charCodeAt(t.position);R++;t.lineIndent=0;while(F===32){t.lineIndent++;F=t.input.charCodeAt(++t.position)}}else{break}}if(b!==-1&&R!==0&&t.lineIndent<b){throwWarning(t,"deficient indentation")}return R}function testDocumentSeparator(t){var s=t.position,b;b=t.input.charCodeAt(s);if((b===45||b===46)&&b===t.input.charCodeAt(s+1)&&b===t.input.charCodeAt(s+2)){s+=3;b=t.input.charCodeAt(s);if(b===0||is_WS_OR_EOL(b)){return true}}return false}function writeFoldedLines(t,s){if(s===1){t.result+=" "}else if(s>1){t.result+=R.repeat("\n",s-1)}}function readPlainScalar(t,s,b){var R,F,T,M,L,B,U,q,H=t.kind,G=t.result,V;V=t.input.charCodeAt(t.position);if(is_WS_OR_EOL(V)||is_FLOW_INDICATOR(V)||V===35||V===38||V===42||V===33||V===124||V===62||V===39||V===34||V===37||V===64||V===96){return false}if(V===63||V===45){F=t.input.charCodeAt(t.position+1);if(is_WS_OR_EOL(F)||b&&is_FLOW_INDICATOR(F)){return false}}t.kind="scalar";t.result="";T=M=t.position;L=false;while(V!==0){if(V===58){F=t.input.charCodeAt(t.position+1);if(is_WS_OR_EOL(F)||b&&is_FLOW_INDICATOR(F)){break}}else if(V===35){R=t.input.charCodeAt(t.position-1);if(is_WS_OR_EOL(R)){break}}else if(t.position===t.lineStart&&testDocumentSeparator(t)||b&&is_FLOW_INDICATOR(V)){break}else if(is_EOL(V)){B=t.line;U=t.lineStart;q=t.lineIndent;skipSeparationSpace(t,false,-1);if(t.lineIndent>=s){L=true;V=t.input.charCodeAt(t.position);continue}else{t.position=M;t.line=B;t.lineStart=U;t.lineIndent=q;break}}if(L){captureSegment(t,T,M,false);writeFoldedLines(t,t.line-B);T=M=t.position;L=false}if(!is_WHITE_SPACE(V)){M=t.position+1}V=t.input.charCodeAt(++t.position)}captureSegment(t,T,M,false);if(t.result){return true}t.kind=H;t.result=G;return false}function readSingleQuotedScalar(t,s){var b,R,F;b=t.input.charCodeAt(t.position);if(b!==39){return false}t.kind="scalar";t.result="";t.position++;R=F=t.position;while((b=t.input.charCodeAt(t.position))!==0){if(b===39){captureSegment(t,R,t.position,true);b=t.input.charCodeAt(++t.position);if(b===39){R=t.position;t.position++;F=t.position}else{return true}}else if(is_EOL(b)){captureSegment(t,R,F,true);writeFoldedLines(t,skipSeparationSpace(t,false,s));R=F=t.position}else if(t.position===t.lineStart&&testDocumentSeparator(t)){throwError(t,"unexpected end of the document within a single quoted scalar")}else{t.position++;F=t.position}}throwError(t,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(t,s){var b,R,F,T,M,L;L=t.input.charCodeAt(t.position);if(L!==34){return false}t.kind="scalar";t.result="";t.position++;b=R=t.position;while((L=t.input.charCodeAt(t.position))!==0){if(L===34){captureSegment(t,b,t.position,true);t.position++;return true}else if(L===92){captureSegment(t,b,t.position,true);L=t.input.charCodeAt(++t.position);if(is_EOL(L)){skipSeparationSpace(t,false,s)}else if(L<256&&Z[L]){t.result+=Q[L];t.position++}else if((M=escapedHexLen(L))>0){F=M;T=0;for(;F>0;F--){L=t.input.charCodeAt(++t.position);if((M=fromHexCode(L))>=0){T=(T<<4)+M}else{throwError(t,"expected hexadecimal character")}}t.result+=charFromCodepoint(T);t.position++}else{throwError(t,"unknown escape sequence")}b=R=t.position}else if(is_EOL(L)){captureSegment(t,b,R,true);writeFoldedLines(t,skipSeparationSpace(t,false,s));b=R=t.position}else if(t.position===t.lineStart&&testDocumentSeparator(t)){throwError(t,"unexpected end of the document within a double quoted scalar")}else{t.position++;R=t.position}}throwError(t,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(t,s){var b=true,R,F,T,M=t.tag,L,U=t.anchor,q,H,G,V,W,Y=Object.create(null),z,X,J,K;K=t.input.charCodeAt(t.position);if(K===91){H=93;W=false;L=[]}else if(K===123){H=125;W=true;L={}}else{return false}if(t.anchor!==null){t.anchorMap[t.anchor]=L}K=t.input.charCodeAt(++t.position);while(K!==0){skipSeparationSpace(t,true,s);K=t.input.charCodeAt(t.position);if(K===H){t.position++;t.tag=M;t.anchor=U;t.kind=W?"mapping":"sequence";t.result=L;return true}else if(!b){throwError(t,"missed comma between flow collection entries")}else if(K===44){throwError(t,"expected the node content, but found ','")}X=z=J=null;G=V=false;if(K===63){q=t.input.charCodeAt(t.position+1);if(is_WS_OR_EOL(q)){G=V=true;t.position++;skipSeparationSpace(t,true,s)}}R=t.line;F=t.lineStart;T=t.position;composeNode(t,s,B,false,true);X=t.tag;z=t.result;skipSeparationSpace(t,true,s);K=t.input.charCodeAt(t.position);if((V||t.line===R)&&K===58){G=true;K=t.input.charCodeAt(++t.position);skipSeparationSpace(t,true,s);composeNode(t,s,B,false,true);J=t.result}if(W){storeMappingPair(t,L,Y,X,z,J,R,F,T)}else if(G){L.push(storeMappingPair(t,null,Y,X,z,J,R,F,T))}else{L.push(z)}skipSeparationSpace(t,true,s);K=t.input.charCodeAt(t.position);if(K===44){b=true;K=t.input.charCodeAt(++t.position)}else{b=false}}throwError(t,"unexpected end of the stream within a flow collection")}function readBlockScalar(t,s){var b,F,T=G,M=false,L=false,B=s,U=0,q=false,H,Y;Y=t.input.charCodeAt(t.position);if(Y===124){F=false}else if(Y===62){F=true}else{return false}t.kind="scalar";t.result="";while(Y!==0){Y=t.input.charCodeAt(++t.position);if(Y===43||Y===45){if(G===T){T=Y===43?W:V}else{throwError(t,"repeat of a chomping mode identifier")}}else if((H=fromDecimalCode(Y))>=0){if(H===0){throwError(t,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!L){B=s+H-1;L=true}else{throwError(t,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(Y)){do{Y=t.input.charCodeAt(++t.position)}while(is_WHITE_SPACE(Y));if(Y===35){do{Y=t.input.charCodeAt(++t.position)}while(!is_EOL(Y)&&Y!==0)}}while(Y!==0){readLineBreak(t);t.lineIndent=0;Y=t.input.charCodeAt(t.position);while((!L||t.lineIndent<B)&&Y===32){t.lineIndent++;Y=t.input.charCodeAt(++t.position)}if(!L&&t.lineIndent>B){B=t.lineIndent}if(is_EOL(Y)){U++;continue}if(t.lineIndent<B){if(T===W){t.result+=R.repeat("\n",M?1+U:U)}else if(T===G){if(M){t.result+="\n"}}break}if(F){if(is_WHITE_SPACE(Y)){q=true;t.result+=R.repeat("\n",M?1+U:U)}else if(q){q=false;t.result+=R.repeat("\n",U+1)}else if(U===0){if(M){t.result+=" "}}else{t.result+=R.repeat("\n",U)}}else{t.result+=R.repeat("\n",M?1+U:U)}M=true;L=true;U=0;b=t.position;while(!is_EOL(Y)&&Y!==0){Y=t.input.charCodeAt(++t.position)}captureSegment(t,b,t.position,false)}return true}function readBlockSequence(t,s){var b,R=t.tag,F=t.anchor,T=[],M,L=false,B;if(t.firstTabInLine!==-1)return false;if(t.anchor!==null){t.anchorMap[t.anchor]=T}B=t.input.charCodeAt(t.position);while(B!==0){if(t.firstTabInLine!==-1){t.position=t.firstTabInLine;throwError(t,"tab characters must not be used in indentation")}if(B!==45){break}M=t.input.charCodeAt(t.position+1);if(!is_WS_OR_EOL(M)){break}L=true;t.position++;if(skipSeparationSpace(t,true,-1)){if(t.lineIndent<=s){T.push(null);B=t.input.charCodeAt(t.position);continue}}b=t.line;composeNode(t,s,q,false,true);T.push(t.result);skipSeparationSpace(t,true,-1);B=t.input.charCodeAt(t.position);if((t.line===b||t.lineIndent>s)&&B!==0){throwError(t,"bad indentation of a sequence entry")}else if(t.lineIndent<s){break}}if(L){t.tag=R;t.anchor=F;t.kind="sequence";t.result=T;return true}return false}function readBlockMapping(t,s,b){var R,F,T,M,L,B,q=t.tag,G=t.anchor,V={},W=Object.create(null),Y=null,z=null,X=null,J=false,K=false,Z;if(t.firstTabInLine!==-1)return false;if(t.anchor!==null){t.anchorMap[t.anchor]=V}Z=t.input.charCodeAt(t.position);while(Z!==0){if(!J&&t.firstTabInLine!==-1){t.position=t.firstTabInLine;throwError(t,"tab characters must not be used in indentation")}R=t.input.charCodeAt(t.position+1);T=t.line;if((Z===63||Z===58)&&is_WS_OR_EOL(R)){if(Z===63){if(J){storeMappingPair(t,V,W,Y,z,null,M,L,B);Y=z=X=null}K=true;J=true;F=true}else if(J){J=false;F=true}else{throwError(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}t.position+=1;Z=R}else{M=t.line;L=t.lineStart;B=t.position;if(!composeNode(t,b,U,false,true)){break}if(t.line===T){Z=t.input.charCodeAt(t.position);while(is_WHITE_SPACE(Z)){Z=t.input.charCodeAt(++t.position)}if(Z===58){Z=t.input.charCodeAt(++t.position);if(!is_WS_OR_EOL(Z)){throwError(t,"a whitespace character is expected after the key-value separator within a block mapping")}if(J){storeMappingPair(t,V,W,Y,z,null,M,L,B);Y=z=X=null}K=true;J=false;F=false;Y=t.tag;z=t.result}else if(K){throwError(t,"can not read an implicit mapping pair; a colon is missed")}else{t.tag=q;t.anchor=G;return true}}else if(K){throwError(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{t.tag=q;t.anchor=G;return true}}if(t.line===T||t.lineIndent>s){if(J){M=t.line;L=t.lineStart;B=t.position}if(composeNode(t,s,H,true,F)){if(J){z=t.result}else{X=t.result}}if(!J){storeMappingPair(t,V,W,Y,z,X,M,L,B);Y=z=X=null}skipSeparationSpace(t,true,-1);Z=t.input.charCodeAt(t.position)}if((t.line===T||t.lineIndent>s)&&Z!==0){throwError(t,"bad indentation of a mapping entry")}else if(t.lineIndent<s){break}}if(J){storeMappingPair(t,V,W,Y,z,null,M,L,B)}if(K){t.tag=q;t.anchor=G;t.kind="mapping";t.result=V}return K}function readTagProperty(t){var s,b=false,R=false,F,T,M;M=t.input.charCodeAt(t.position);if(M!==33)return false;if(t.tag!==null){throwError(t,"duplication of a tag property")}M=t.input.charCodeAt(++t.position);if(M===60){b=true;M=t.input.charCodeAt(++t.position)}else if(M===33){R=true;F="!!";M=t.input.charCodeAt(++t.position)}else{F="!"}s=t.position;if(b){do{M=t.input.charCodeAt(++t.position)}while(M!==0&&M!==62);if(t.position<t.length){T=t.input.slice(s,t.position);M=t.input.charCodeAt(++t.position)}else{throwError(t,"unexpected end of the stream within a verbatim tag")}}else{while(M!==0&&!is_WS_OR_EOL(M)){if(M===33){if(!R){F=t.input.slice(s-1,t.position+1);if(!J.test(F)){throwError(t,"named tag handle cannot contain such characters")}R=true;s=t.position+1}else{throwError(t,"tag suffix cannot contain exclamation marks")}}M=t.input.charCodeAt(++t.position)}T=t.input.slice(s,t.position);if(X.test(T)){throwError(t,"tag suffix cannot contain flow indicator characters")}}if(T&&!K.test(T)){throwError(t,"tag name cannot contain such characters: "+T)}try{T=decodeURIComponent(T)}catch(s){throwError(t,"tag name is malformed: "+T)}if(b){t.tag=T}else if(L.call(t.tagMap,F)){t.tag=t.tagMap[F]+T}else if(F==="!"){t.tag="!"+T}else if(F==="!!"){t.tag="tag:yaml.org,2002:"+T}else{throwError(t,'undeclared tag handle "'+F+'"')}return true}function readAnchorProperty(t){var s,b;b=t.input.charCodeAt(t.position);if(b!==38)return false;if(t.anchor!==null){throwError(t,"duplication of an anchor property")}b=t.input.charCodeAt(++t.position);s=t.position;while(b!==0&&!is_WS_OR_EOL(b)&&!is_FLOW_INDICATOR(b)){b=t.input.charCodeAt(++t.position)}if(t.position===s){throwError(t,"name of an anchor node must contain at least one character")}t.anchor=t.input.slice(s,t.position);return true}function readAlias(t){var s,b,R;R=t.input.charCodeAt(t.position);if(R!==42)return false;R=t.input.charCodeAt(++t.position);s=t.position;while(R!==0&&!is_WS_OR_EOL(R)&&!is_FLOW_INDICATOR(R)){R=t.input.charCodeAt(++t.position)}if(t.position===s){throwError(t,"name of an alias node must contain at least one character")}b=t.input.slice(s,t.position);if(!L.call(t.anchorMap,b)){throwError(t,'unidentified alias "'+b+'"')}t.result=t.anchorMap[b];skipSeparationSpace(t,true,-1);return true}function composeNode(t,s,b,R,F){var T,M,G,V=1,W=false,Y=false,z,X,J,K,Z,Q;if(t.listener!==null){t.listener("open",t)}t.tag=null;t.anchor=null;t.kind=null;t.result=null;T=M=G=H===b||q===b;if(R){if(skipSeparationSpace(t,true,-1)){W=true;if(t.lineIndent>s){V=1}else if(t.lineIndent===s){V=0}else if(t.lineIndent<s){V=-1}}}if(V===1){while(readTagProperty(t)||readAnchorProperty(t)){if(skipSeparationSpace(t,true,-1)){W=true;G=T;if(t.lineIndent>s){V=1}else if(t.lineIndent===s){V=0}else if(t.lineIndent<s){V=-1}}else{G=false}}}if(G){G=W||F}if(V===1||H===b){if(B===b||U===b){Z=s}else{Z=s+1}Q=t.position-t.lineStart;if(V===1){if(G&&(readBlockSequence(t,Q)||readBlockMapping(t,Q,Z))||readFlowCollection(t,Z)){Y=true}else{if(M&&readBlockScalar(t,Z)||readSingleQuotedScalar(t,Z)||readDoubleQuotedScalar(t,Z)){Y=true}else if(readAlias(t)){Y=true;if(t.tag!==null||t.anchor!==null){throwError(t,"alias node should not have any properties")}}else if(readPlainScalar(t,Z,B===b)){Y=true;if(t.tag===null){t.tag="?"}}if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}}else if(V===0){Y=G&&readBlockSequence(t,Q)}}if(t.tag===null){if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}else if(t.tag==="?"){if(t.result!==null&&t.kind!=="scalar"){throwError(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"')}for(z=0,X=t.implicitTypes.length;z<X;z+=1){K=t.implicitTypes[z];if(K.resolve(t.result)){t.result=K.construct(t.result);t.tag=K.tag;if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}break}}}else if(t.tag!=="!"){if(L.call(t.typeMap[t.kind||"fallback"],t.tag)){K=t.typeMap[t.kind||"fallback"][t.tag]}else{K=null;J=t.typeMap.multi[t.kind||"fallback"];for(z=0,X=J.length;z<X;z+=1){if(t.tag.slice(0,J[z].tag.length)===J[z].tag){K=J[z];break}}}if(!K){throwError(t,"unknown tag !<"+t.tag+">")}if(t.result!==null&&K.kind!==t.kind){throwError(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+K.kind+'", not "'+t.kind+'"')}if(!K.resolve(t.result,t.tag)){throwError(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}else{t.result=K.construct(t.result,t.tag);if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}}if(t.listener!==null){t.listener("close",t)}return t.tag!==null||t.anchor!==null||Y}function readDocument(t){var s=t.position,b,R,F,T=false,M;t.version=null;t.checkLineBreaks=t.legacy;t.tagMap=Object.create(null);t.anchorMap=Object.create(null);while((M=t.input.charCodeAt(t.position))!==0){skipSeparationSpace(t,true,-1);M=t.input.charCodeAt(t.position);if(t.lineIndent>0||M!==37){break}T=true;M=t.input.charCodeAt(++t.position);b=t.position;while(M!==0&&!is_WS_OR_EOL(M)){M=t.input.charCodeAt(++t.position)}R=t.input.slice(b,t.position);F=[];if(R.length<1){throwError(t,"directive name must not be less than one character in length")}while(M!==0){while(is_WHITE_SPACE(M)){M=t.input.charCodeAt(++t.position)}if(M===35){do{M=t.input.charCodeAt(++t.position)}while(M!==0&&!is_EOL(M));break}if(is_EOL(M))break;b=t.position;while(M!==0&&!is_WS_OR_EOL(M)){M=t.input.charCodeAt(++t.position)}F.push(t.input.slice(b,t.position))}if(M!==0)readLineBreak(t);if(L.call(re,R)){re[R](t,R,F)}else{throwWarning(t,'unknown document directive "'+R+'"')}}skipSeparationSpace(t,true,-1);if(t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45){t.position+=3;skipSeparationSpace(t,true,-1)}else if(T){throwError(t,"directives end mark is expected")}composeNode(t,t.lineIndent-1,H,false,true);skipSeparationSpace(t,true,-1);if(t.checkLineBreaks&&z.test(t.input.slice(s,t.position))){throwWarning(t,"non-ASCII line breaks are interpreted as content")}t.documents.push(t.result);if(t.position===t.lineStart&&testDocumentSeparator(t)){if(t.input.charCodeAt(t.position)===46){t.position+=3;skipSeparationSpace(t,true,-1)}return}if(t.position<t.length-1){throwError(t,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(t,s){t=String(t);s=s||{};if(t.length!==0){if(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13){t+="\n"}if(t.charCodeAt(0)===65279){t=t.slice(1)}}var b=new State(t,s);var R=t.indexOf("\0");if(R!==-1){b.position=R;throwError(b,"null byte is not allowed in input")}b.input+="\0";while(b.input.charCodeAt(b.position)===32){b.lineIndent+=1;b.position+=1}while(b.position<b.length-1){readDocument(b)}return b.documents}function loadAll(t,s,b){if(s!==null&&typeof s==="object"&&typeof b==="undefined"){b=s;s=null}var R=loadDocuments(t,b);if(typeof s!=="function"){return R}for(var F=0,T=R.length;F<T;F+=1){s(R[F])}}function load(t,s){var b=loadDocuments(t,s);if(b.length===0){return undefined}else if(b.length===1){return b[0]}throw new F("expected a single document in the stream, but found more")}t.exports.loadAll=loadAll;t.exports.load=load},1082:(t,s,b)=>{"use strict";var R=b(8179);var F=b(6073);function compileList(t,s){var b=[];t[s].forEach((function(t){var s=b.length;b.forEach((function(b,R){if(b.tag===t.tag&&b.kind===t.kind&&b.multi===t.multi){s=R}}));b[s]=t}));return b}function compileMap(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},s,b;function collectType(s){if(s.multi){t.multi[s.kind].push(s);t.multi["fallback"].push(s)}else{t[s.kind][s.tag]=t["fallback"][s.tag]=s}}for(s=0,b=arguments.length;s<b;s+=1){arguments[s].forEach(collectType)}return t}function Schema(t){return this.extend(t)}Schema.prototype.extend=function extend(t){var s=[];var b=[];if(t instanceof F){b.push(t)}else if(Array.isArray(t)){b=b.concat(t)}else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit))){if(t.implicit)s=s.concat(t.implicit);if(t.explicit)b=b.concat(t.explicit)}else{throw new R("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}s.forEach((function(t){if(!(t instanceof F)){throw new R("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(t.loadKind&&t.loadKind!=="scalar"){throw new R("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(t.multi){throw new R("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));b.forEach((function(t){if(!(t instanceof F)){throw new R("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var T=Object.create(Schema.prototype);T.implicit=(this.implicit||[]).concat(s);T.explicit=(this.explicit||[]).concat(b);T.compiledImplicit=compileList(T,"implicit");T.compiledExplicit=compileList(T,"explicit");T.compiledTypeMap=compileMap(T.compiledImplicit,T.compiledExplicit);return T};t.exports=Schema},2011:(t,s,b)=>{"use strict";t.exports=b(1035)},8759:(t,s,b)=>{"use strict";t.exports=b(2011).extend({implicit:[b(9212),b(6104)],explicit:[b(7900),b(9046),b(6860),b(9548)]})},8562:(t,s,b)=>{"use strict";var R=b(1082);t.exports=new R({explicit:[b(3619),b(7283),b(6150)]})},1035:(t,s,b)=>{"use strict";t.exports=b(8562).extend({implicit:[b(721),b(4993),b(1615),b(2705)]})},6975:(t,s,b)=>{"use strict";var R=b(6829);function getLine(t,s,b,R,F){var T="";var M="";var L=Math.floor(F/2)-1;if(R-s>L){T=" ... ";s=R-L+T.length}if(b-R>L){M=" ...";b=R+L-M.length}return{str:T+t.slice(s,b).replace(/\t/g,"→")+M,pos:R-s+T.length}}function padStart(t,s){return R.repeat(" ",s-t.length)+t}function makeSnippet(t,s){s=Object.create(s||null);if(!t.buffer)return null;if(!s.maxLength)s.maxLength=79;if(typeof s.indent!=="number")s.indent=1;if(typeof s.linesBefore!=="number")s.linesBefore=3;if(typeof s.linesAfter!=="number")s.linesAfter=2;var b=/\r?\n|\r|\0/g;var F=[0];var T=[];var M;var L=-1;while(M=b.exec(t.buffer)){T.push(M.index);F.push(M.index+M[0].length);if(t.position<=M.index&&L<0){L=F.length-2}}if(L<0)L=F.length-1;var B="",U,q;var H=Math.min(t.line+s.linesAfter,T.length).toString().length;var G=s.maxLength-(s.indent+H+3);for(U=1;U<=s.linesBefore;U++){if(L-U<0)break;q=getLine(t.buffer,F[L-U],T[L-U],t.position-(F[L]-F[L-U]),G);B=R.repeat(" ",s.indent)+padStart((t.line-U+1).toString(),H)+" | "+q.str+"\n"+B}q=getLine(t.buffer,F[L],T[L],t.position,G);B+=R.repeat(" ",s.indent)+padStart((t.line+1).toString(),H)+" | "+q.str+"\n";B+=R.repeat("-",s.indent+H+3+q.pos)+"^"+"\n";for(U=1;U<=s.linesAfter;U++){if(L+U>=T.length)break;q=getLine(t.buffer,F[L+U],T[L+U],t.position-(F[L]-F[L+U]),G);B+=R.repeat(" ",s.indent)+padStart((t.line+U+1).toString(),H)+" | "+q.str+"\n"}return B.replace(/\n$/,"")}t.exports=makeSnippet},6073:(t,s,b)=>{"use strict";var R=b(8179);var F=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var T=["scalar","sequence","mapping"];function compileStyleAliases(t){var s={};if(t!==null){Object.keys(t).forEach((function(b){t[b].forEach((function(t){s[String(t)]=b}))}))}return s}function Type(t,s){s=s||{};Object.keys(s).forEach((function(s){if(F.indexOf(s)===-1){throw new R('Unknown option "'+s+'" is met in definition of "'+t+'" YAML type.')}}));this.options=s;this.tag=t;this.kind=s["kind"]||null;this.resolve=s["resolve"]||function(){return true};this.construct=s["construct"]||function(t){return t};this.instanceOf=s["instanceOf"]||null;this.predicate=s["predicate"]||null;this.represent=s["represent"]||null;this.representName=s["representName"]||null;this.defaultStyle=s["defaultStyle"]||null;this.multi=s["multi"]||false;this.styleAliases=compileStyleAliases(s["styleAliases"]||null);if(T.indexOf(this.kind)===-1){throw new R('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}}t.exports=Type},7900:(t,s,b)=>{"use strict";var R=b(6073);var F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(t){if(t===null)return false;var s,b,R=0,T=t.length,M=F;for(b=0;b<T;b++){s=M.indexOf(t.charAt(b));if(s>64)continue;if(s<0)return false;R+=6}return R%8===0}function constructYamlBinary(t){var s,b,R=t.replace(/[\r\n=]/g,""),T=R.length,M=F,L=0,B=[];for(s=0;s<T;s++){if(s%4===0&&s){B.push(L>>16&255);B.push(L>>8&255);B.push(L&255)}L=L<<6|M.indexOf(R.charAt(s))}b=T%4*6;if(b===0){B.push(L>>16&255);B.push(L>>8&255);B.push(L&255)}else if(b===18){B.push(L>>10&255);B.push(L>>2&255)}else if(b===12){B.push(L>>4&255)}return new Uint8Array(B)}function representYamlBinary(t){var s="",b=0,R,T,M=t.length,L=F;for(R=0;R<M;R++){if(R%3===0&&R){s+=L[b>>18&63];s+=L[b>>12&63];s+=L[b>>6&63];s+=L[b&63]}b=(b<<8)+t[R]}T=M%3;if(T===0){s+=L[b>>18&63];s+=L[b>>12&63];s+=L[b>>6&63];s+=L[b&63]}else if(T===2){s+=L[b>>10&63];s+=L[b>>4&63];s+=L[b<<2&63];s+=L[64]}else if(T===1){s+=L[b>>2&63];s+=L[b<<4&63];s+=L[64];s+=L[64]}return s}function isBinary(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}t.exports=new R("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4993:(t,s,b)=>{"use strict";var R=b(6073);function resolveYamlBoolean(t){if(t===null)return false;var s=t.length;return s===4&&(t==="true"||t==="True"||t==="TRUE")||s===5&&(t==="false"||t==="False"||t==="FALSE")}function constructYamlBoolean(t){return t==="true"||t==="True"||t==="TRUE"}function isBoolean(t){return Object.prototype.toString.call(t)==="[object Boolean]"}t.exports=new R("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})},2705:(t,s,b)=>{"use strict";var R=b(6829);var F=b(6073);var T=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(t){if(t===null)return false;if(!T.test(t)||t[t.length-1]==="_"){return false}return true}function constructYamlFloat(t){var s,b;s=t.replace(/_/g,"").toLowerCase();b=s[0]==="-"?-1:1;if("+-".indexOf(s[0])>=0){s=s.slice(1)}if(s===".inf"){return b===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(s===".nan"){return NaN}return b*parseFloat(s,10)}var M=/^[-+]?[0-9]+e/;function representYamlFloat(t,s){var b;if(isNaN(t)){switch(s){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===t){switch(s){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===t){switch(s){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(R.isNegativeZero(t)){return"-0.0"}b=t.toString(10);return M.test(b)?b.replace("e",".e"):b}function isFloat(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||R.isNegativeZero(t))}t.exports=new F("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},1615:(t,s,b)=>{"use strict";var R=b(6829);var F=b(6073);function isHexCode(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function isOctCode(t){return 48<=t&&t<=55}function isDecCode(t){return 48<=t&&t<=57}function resolveYamlInteger(t){if(t===null)return false;var s=t.length,b=0,R=false,F;if(!s)return false;F=t[b];if(F==="-"||F==="+"){F=t[++b]}if(F==="0"){if(b+1===s)return true;F=t[++b];if(F==="b"){b++;for(;b<s;b++){F=t[b];if(F==="_")continue;if(F!=="0"&&F!=="1")return false;R=true}return R&&F!=="_"}if(F==="x"){b++;for(;b<s;b++){F=t[b];if(F==="_")continue;if(!isHexCode(t.charCodeAt(b)))return false;R=true}return R&&F!=="_"}if(F==="o"){b++;for(;b<s;b++){F=t[b];if(F==="_")continue;if(!isOctCode(t.charCodeAt(b)))return false;R=true}return R&&F!=="_"}}if(F==="_")return false;for(;b<s;b++){F=t[b];if(F==="_")continue;if(!isDecCode(t.charCodeAt(b))){return false}R=true}if(!R||F==="_")return false;return true}function constructYamlInteger(t){var s=t,b=1,R;if(s.indexOf("_")!==-1){s=s.replace(/_/g,"")}R=s[0];if(R==="-"||R==="+"){if(R==="-")b=-1;s=s.slice(1);R=s[0]}if(s==="0")return 0;if(R==="0"){if(s[1]==="b")return b*parseInt(s.slice(2),2);if(s[1]==="x")return b*parseInt(s.slice(2),16);if(s[1]==="o")return b*parseInt(s.slice(2),8)}return b*parseInt(s,10)}function isInteger(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1===0&&!R.isNegativeZero(t))}t.exports=new F("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(t,s,b)=>{"use strict";var R=b(6073);t.exports=new R("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}})},6104:(t,s,b)=>{"use strict";var R=b(6073);function resolveYamlMerge(t){return t==="<<"||t===null}t.exports=new R("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},721:(t,s,b)=>{"use strict";var R=b(6073);function resolveYamlNull(t){if(t===null)return true;var s=t.length;return s===1&&t==="~"||s===4&&(t==="null"||t==="Null"||t==="NULL")}function constructYamlNull(){return null}function isNull(t){return t===null}t.exports=new R("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"})},9046:(t,s,b)=>{"use strict";var R=b(6073);var F=Object.prototype.hasOwnProperty;var T=Object.prototype.toString;function resolveYamlOmap(t){if(t===null)return true;var s=[],b,R,M,L,B,U=t;for(b=0,R=U.length;b<R;b+=1){M=U[b];B=false;if(T.call(M)!=="[object Object]")return false;for(L in M){if(F.call(M,L)){if(!B)B=true;else return false}}if(!B)return false;if(s.indexOf(L)===-1)s.push(L);else return false}return true}function constructYamlOmap(t){return t!==null?t:[]}t.exports=new R("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},6860:(t,s,b)=>{"use strict";var R=b(6073);var F=Object.prototype.toString;function resolveYamlPairs(t){if(t===null)return true;var s,b,R,T,M,L=t;M=new Array(L.length);for(s=0,b=L.length;s<b;s+=1){R=L[s];if(F.call(R)!=="[object Object]")return false;T=Object.keys(R);if(T.length!==1)return false;M[s]=[T[0],R[T[0]]]}return true}function constructYamlPairs(t){if(t===null)return[];var s,b,R,F,T,M=t;T=new Array(M.length);for(s=0,b=M.length;s<b;s+=1){R=M[s];F=Object.keys(R);T[s]=[F[0],R[F[0]]]}return T}t.exports=new R("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},7283:(t,s,b)=>{"use strict";var R=b(6073);t.exports=new R("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}})},9548:(t,s,b)=>{"use strict";var R=b(6073);var F=Object.prototype.hasOwnProperty;function resolveYamlSet(t){if(t===null)return true;var s,b=t;for(s in b){if(F.call(b,s)){if(b[s]!==null)return false}}return true}function constructYamlSet(t){return t!==null?t:{}}t.exports=new R("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3619:(t,s,b)=>{"use strict";var R=b(6073);t.exports=new R("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}})},9212:(t,s,b)=>{"use strict";var R=b(6073);var F=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var T=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(t){if(t===null)return false;if(F.exec(t)!==null)return true;if(T.exec(t)!==null)return true;return false}function constructYamlTimestamp(t){var s,b,R,M,L,B,U,q=0,H=null,G,V,W;s=F.exec(t);if(s===null)s=T.exec(t);if(s===null)throw new Error("Date resolve error");b=+s[1];R=+s[2]-1;M=+s[3];if(!s[4]){return new Date(Date.UTC(b,R,M))}L=+s[4];B=+s[5];U=+s[6];if(s[7]){q=s[7].slice(0,3);while(q.length<3){q+="0"}q=+q}if(s[9]){G=+s[10];V=+(s[11]||0);H=(G*60+V)*6e4;if(s[9]==="-")H=-H}W=new Date(Date.UTC(b,R,M,L,B,U,q));if(H)W.setTime(W.getTime()-H);return W}function representYamlTimestamp(t){return t.toISOString()}t.exports=new R("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},7129:(t,s,b)=>{"use strict";const R=b(665);const F=Symbol("max");const T=Symbol("length");const M=Symbol("lengthCalculator");const L=Symbol("allowStale");const B=Symbol("maxAge");const U=Symbol("dispose");const q=Symbol("noDisposeOnSet");const H=Symbol("lruList");const G=Symbol("cache");const V=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(t){if(typeof t==="number")t={max:t};if(!t)t={};if(t.max&&(typeof t.max!=="number"||t.max<0))throw new TypeError("max must be a non-negative number");const s=this[F]=t.max||Infinity;const b=t.length||naiveLength;this[M]=typeof b!=="function"?naiveLength:b;this[L]=t.stale||false;if(t.maxAge&&typeof t.maxAge!=="number")throw new TypeError("maxAge must be a number");this[B]=t.maxAge||0;this[U]=t.dispose;this[q]=t.noDisposeOnSet||false;this[V]=t.updateAgeOnGet||false;this.reset()}set max(t){if(typeof t!=="number"||t<0)throw new TypeError("max must be a non-negative number");this[F]=t||Infinity;trim(this)}get max(){return this[F]}set allowStale(t){this[L]=!!t}get allowStale(){return this[L]}set maxAge(t){if(typeof t!=="number")throw new TypeError("maxAge must be a non-negative number");this[B]=t;trim(this)}get maxAge(){return this[B]}set lengthCalculator(t){if(typeof t!=="function")t=naiveLength;if(t!==this[M]){this[M]=t;this[T]=0;this[H].forEach((t=>{t.length=this[M](t.value,t.key);this[T]+=t.length}))}trim(this)}get lengthCalculator(){return this[M]}get length(){return this[T]}get itemCount(){return this[H].length}rforEach(t,s){s=s||this;for(let b=this[H].tail;b!==null;){const R=b.prev;forEachStep(this,t,b,s);b=R}}forEach(t,s){s=s||this;for(let b=this[H].head;b!==null;){const R=b.next;forEachStep(this,t,b,s);b=R}}keys(){return this[H].toArray().map((t=>t.key))}values(){return this[H].toArray().map((t=>t.value))}reset(){if(this[U]&&this[H]&&this[H].length){this[H].forEach((t=>this[U](t.key,t.value)))}this[G]=new Map;this[H]=new R;this[T]=0}dump(){return this[H].map((t=>isStale(this,t)?false:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[H]}set(t,s,b){b=b||this[B];if(b&&typeof b!=="number")throw new TypeError("maxAge must be a number");const R=b?Date.now():0;const L=this[M](s,t);if(this[G].has(t)){if(L>this[F]){del(this,this[G].get(t));return false}const M=this[G].get(t);const B=M.value;if(this[U]){if(!this[q])this[U](t,B.value)}B.now=R;B.maxAge=b;B.value=s;this[T]+=L-B.length;B.length=L;this.get(t);trim(this);return true}const V=new Entry(t,s,L,R,b);if(V.length>this[F]){if(this[U])this[U](t,s);return false}this[T]+=V.length;this[H].unshift(V);this[G].set(t,this[H].head);trim(this);return true}has(t){if(!this[G].has(t))return false;const s=this[G].get(t).value;return!isStale(this,s)}get(t){return get(this,t,true)}peek(t){return get(this,t,false)}pop(){const t=this[H].tail;if(!t)return null;del(this,t);return t.value}del(t){del(this,this[G].get(t))}load(t){this.reset();const s=Date.now();for(let b=t.length-1;b>=0;b--){const R=t[b];const F=R.e||0;if(F===0)this.set(R.k,R.v);else{const t=F-s;if(t>0){this.set(R.k,R.v,t)}}}}prune(){this[G].forEach(((t,s)=>get(this,s,false)))}}const get=(t,s,b)=>{const R=t[G].get(s);if(R){const s=R.value;if(isStale(t,s)){del(t,R);if(!t[L])return undefined}else{if(b){if(t[V])R.value.now=Date.now();t[H].unshiftNode(R)}}return s.value}};const isStale=(t,s)=>{if(!s||!s.maxAge&&!t[B])return false;const b=Date.now()-s.now;return s.maxAge?b>s.maxAge:t[B]&&b>t[B]};const trim=t=>{if(t[T]>t[F]){for(let s=t[H].tail;t[T]>t[F]&&s!==null;){const b=s.prev;del(t,s);s=b}}};const del=(t,s)=>{if(s){const b=s.value;if(t[U])t[U](b.key,b.value);t[T]-=b.length;t[G].delete(b.key);t[H].removeNode(s)}};class Entry{constructor(t,s,b,R,F){this.key=t;this.value=s;this.length=b;this.now=R;this.maxAge=F||0}}const forEachStep=(t,s,b,R)=>{let F=b.value;if(isStale(t,F)){del(t,b);if(!t[L])F=undefined}if(F)s.call(R,F.value,F.key,t)};t.exports=LRUCache},9200:(t,s,b)=>{"use strict";var R=b(7147),F=b(1017).join,T=b(1017).resolve,M=b(1017).dirname,L={extensions:["js","json","coffee"],recurse:true,rename:function(t){return t},visit:function(t){return t}};function checkFileInclusion(t,s,b){return new RegExp("\\.("+b.extensions.join("|")+")$","i").test(s)&&!(b.include&&b.include instanceof RegExp&&!b.include.test(t))&&!(b.include&&typeof b.include==="function"&&!b.include(t,s))&&!(b.exclude&&b.exclude instanceof RegExp&&b.exclude.test(t))&&!(b.exclude&&typeof b.exclude==="function"&&b.exclude(t,s))}function requireDirectory(t,s,b){var B={};if(s&&!b&&typeof s!=="string"){b=s;s=null}b=b||{};for(var U in L){if(typeof b[U]==="undefined"){b[U]=L[U]}}s=!s?M(t.filename):T(M(t.filename),s);R.readdirSync(s).forEach((function(T){var M=F(s,T),L,U,q;if(R.statSync(M).isDirectory()&&b.recurse){L=requireDirectory(t,M,b);if(Object.keys(L).length){B[b.rename(T,M,T)]=L}}else{if(M!==t.filename&&checkFileInclusion(M,T,b)){U=T.substring(0,T.lastIndexOf("."));q=t.require(M);B[b.rename(U,M,T)]=b.visit(q,M,T)||q}}}));return B}t.exports=requireDirectory;t.exports.defaults=L},1532:(t,s,b)=>{const R=Symbol("SemVer ANY");class Comparator{static get ANY(){return R}constructor(t,s){s=F(s);if(t instanceof Comparator){if(t.loose===!!s.loose){return t}else{t=t.value}}B("comparator",t,s);this.options=s;this.loose=!!s.loose;this.parse(t);if(this.semver===R){this.value=""}else{this.value=this.operator+this.semver.version}B("comp",this)}parse(t){const s=this.options.loose?T[M.COMPARATORLOOSE]:T[M.COMPARATOR];const b=t.match(s);if(!b){throw new TypeError(`Invalid comparator: ${t}`)}this.operator=b[1]!==undefined?b[1]:"";if(this.operator==="="){this.operator=""}if(!b[2]){this.semver=R}else{this.semver=new U(b[2],this.options.loose)}}toString(){return this.value}test(t){B("Comparator.test",t,this.options.loose);if(this.semver===R||t===R){return true}if(typeof t==="string"){try{t=new U(t,this.options)}catch(t){return false}}return L(t,this.operator,this.semver,this.options)}intersects(t,s){if(!(t instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!s||typeof s!=="object"){s={loose:!!s,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new q(t.value,s).test(this.value)}else if(t.operator===""){if(t.value===""){return true}return new q(this.value,s).test(t.semver)}const b=(this.operator===">="||this.operator===">")&&(t.operator===">="||t.operator===">");const R=(this.operator==="<="||this.operator==="<")&&(t.operator==="<="||t.operator==="<");const F=this.semver.version===t.semver.version;const T=(this.operator===">="||this.operator==="<=")&&(t.operator===">="||t.operator==="<=");const M=L(this.semver,"<",t.semver,s)&&(this.operator===">="||this.operator===">")&&(t.operator==="<="||t.operator==="<");const B=L(this.semver,">",t.semver,s)&&(this.operator==="<="||this.operator==="<")&&(t.operator===">="||t.operator===">");return b||R||F&&T||M||B}}t.exports=Comparator;const F=b(785);const{re:T,t:M}=b(9523);const L=b(5098);const B=b(106);const U=b(8088);const q=b(9828)},9828:(t,s,b)=>{class Range{constructor(t,s){s=T(s);if(t instanceof Range){if(t.loose===!!s.loose&&t.includePrerelease===!!s.includePrerelease){return t}else{return new Range(t.raw,s)}}if(t instanceof M){this.raw=t.value;this.set=[[t]];this.format();return this}this.options=s;this.loose=!!s.loose;this.includePrerelease=!!s.includePrerelease;this.raw=t;this.set=t.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${t}`)}if(this.set.length>1){const t=this.set[0];this.set=this.set.filter((t=>!isNullSet(t[0])));if(this.set.length===0){this.set=[t]}else if(this.set.length>1){for(const t of this.set){if(t.length===1&&isAny(t[0])){this.set=[t];break}}}}this.format()}format(){this.range=this.set.map((t=>t.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(t){t=t.trim();const s=Object.keys(this.options).join(",");const b=`parseRange:${s}:${t}`;const R=F.get(b);if(R){return R}const T=this.options.loose;const B=T?U[q.HYPHENRANGELOOSE]:U[q.HYPHENRANGE];t=t.replace(B,hyphenReplace(this.options.includePrerelease));L("hyphen replace",t);t=t.replace(U[q.COMPARATORTRIM],H);L("comparator trim",t);t=t.replace(U[q.TILDETRIM],G);t=t.replace(U[q.CARETTRIM],V);t=t.split(/\s+/).join(" ");let W=t.split(" ").map((t=>parseComparator(t,this.options))).join(" ").split(/\s+/).map((t=>replaceGTE0(t,this.options)));if(T){W=W.filter((t=>{L("loose invalid filter",t,this.options);return!!t.match(U[q.COMPARATORLOOSE])}))}L("range list",W);const Y=new Map;const z=W.map((t=>new M(t,this.options)));for(const t of z){if(isNullSet(t)){return[t]}Y.set(t.value,t)}if(Y.size>1&&Y.has("")){Y.delete("")}const X=[...Y.values()];F.set(b,X);return X}intersects(t,s){if(!(t instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((b=>isSatisfiable(b,s)&&t.set.some((t=>isSatisfiable(t,s)&&b.every((b=>t.every((t=>b.intersects(t,s)))))))))}test(t){if(!t){return false}if(typeof t==="string"){try{t=new B(t,this.options)}catch(t){return false}}for(let s=0;s<this.set.length;s++){if(testSet(this.set[s],t,this.options)){return true}}return false}}t.exports=Range;const R=b(7129);const F=new R({max:1e3});const T=b(785);const M=b(1532);const L=b(106);const B=b(8088);const{re:U,t:q,comparatorTrimReplace:H,tildeTrimReplace:G,caretTrimReplace:V}=b(9523);const isNullSet=t=>t.value==="<0.0.0-0";const isAny=t=>t.value==="";const isSatisfiable=(t,s)=>{let b=true;const R=t.slice();let F=R.pop();while(b&&R.length){b=R.every((t=>F.intersects(t,s)));F=R.pop()}return b};const parseComparator=(t,s)=>{L("comp",t,s);t=replaceCarets(t,s);L("caret",t);t=replaceTildes(t,s);L("tildes",t);t=replaceXRanges(t,s);L("xrange",t);t=replaceStars(t,s);L("stars",t);return t};const isX=t=>!t||t.toLowerCase()==="x"||t==="*";const replaceTildes=(t,s)=>t.trim().split(/\s+/).map((t=>replaceTilde(t,s))).join(" ");const replaceTilde=(t,s)=>{const b=s.loose?U[q.TILDELOOSE]:U[q.TILDE];return t.replace(b,((s,b,R,F,T)=>{L("tilde",t,s,b,R,F,T);let M;if(isX(b)){M=""}else if(isX(R)){M=`>=${b}.0.0 <${+b+1}.0.0-0`}else if(isX(F)){M=`>=${b}.${R}.0 <${b}.${+R+1}.0-0`}else if(T){L("replaceTilde pr",T);M=`>=${b}.${R}.${F}-${T} <${b}.${+R+1}.0-0`}else{M=`>=${b}.${R}.${F} <${b}.${+R+1}.0-0`}L("tilde return",M);return M}))};const replaceCarets=(t,s)=>t.trim().split(/\s+/).map((t=>replaceCaret(t,s))).join(" ");const replaceCaret=(t,s)=>{L("caret",t,s);const b=s.loose?U[q.CARETLOOSE]:U[q.CARET];const R=s.includePrerelease?"-0":"";return t.replace(b,((s,b,F,T,M)=>{L("caret",t,s,b,F,T,M);let B;if(isX(b)){B=""}else if(isX(F)){B=`>=${b}.0.0${R} <${+b+1}.0.0-0`}else if(isX(T)){if(b==="0"){B=`>=${b}.${F}.0${R} <${b}.${+F+1}.0-0`}else{B=`>=${b}.${F}.0${R} <${+b+1}.0.0-0`}}else if(M){L("replaceCaret pr",M);if(b==="0"){if(F==="0"){B=`>=${b}.${F}.${T}-${M} <${b}.${F}.${+T+1}-0`}else{B=`>=${b}.${F}.${T}-${M} <${b}.${+F+1}.0-0`}}else{B=`>=${b}.${F}.${T}-${M} <${+b+1}.0.0-0`}}else{L("no pr");if(b==="0"){if(F==="0"){B=`>=${b}.${F}.${T}${R} <${b}.${F}.${+T+1}-0`}else{B=`>=${b}.${F}.${T}${R} <${b}.${+F+1}.0-0`}}else{B=`>=${b}.${F}.${T} <${+b+1}.0.0-0`}}L("caret return",B);return B}))};const replaceXRanges=(t,s)=>{L("replaceXRanges",t,s);return t.split(/\s+/).map((t=>replaceXRange(t,s))).join(" ")};const replaceXRange=(t,s)=>{t=t.trim();const b=s.loose?U[q.XRANGELOOSE]:U[q.XRANGE];return t.replace(b,((b,R,F,T,M,B)=>{L("xRange",t,b,R,F,T,M,B);const U=isX(F);const q=U||isX(T);const H=q||isX(M);const G=H;if(R==="="&&G){R=""}B=s.includePrerelease?"-0":"";if(U){if(R===">"||R==="<"){b="<0.0.0-0"}else{b="*"}}else if(R&&G){if(q){T=0}M=0;if(R===">"){R=">=";if(q){F=+F+1;T=0;M=0}else{T=+T+1;M=0}}else if(R==="<="){R="<";if(q){F=+F+1}else{T=+T+1}}if(R==="<"){B="-0"}b=`${R+F}.${T}.${M}${B}`}else if(q){b=`>=${F}.0.0${B} <${+F+1}.0.0-0`}else if(H){b=`>=${F}.${T}.0${B} <${F}.${+T+1}.0-0`}L("xRange return",b);return b}))};const replaceStars=(t,s)=>{L("replaceStars",t,s);return t.trim().replace(U[q.STAR],"")};const replaceGTE0=(t,s)=>{L("replaceGTE0",t,s);return t.trim().replace(U[s.includePrerelease?q.GTE0PRE:q.GTE0],"")};const hyphenReplace=t=>(s,b,R,F,T,M,L,B,U,q,H,G,V)=>{if(isX(R)){b=""}else if(isX(F)){b=`>=${R}.0.0${t?"-0":""}`}else if(isX(T)){b=`>=${R}.${F}.0${t?"-0":""}`}else if(M){b=`>=${b}`}else{b=`>=${b}${t?"-0":""}`}if(isX(U)){B=""}else if(isX(q)){B=`<${+U+1}.0.0-0`}else if(isX(H)){B=`<${U}.${+q+1}.0-0`}else if(G){B=`<=${U}.${q}.${H}-${G}`}else if(t){B=`<${U}.${q}.${+H+1}-0`}else{B=`<=${B}`}return`${b} ${B}`.trim()};const testSet=(t,s,b)=>{for(let b=0;b<t.length;b++){if(!t[b].test(s)){return false}}if(s.prerelease.length&&!b.includePrerelease){for(let b=0;b<t.length;b++){L(t[b].semver);if(t[b].semver===M.ANY){continue}if(t[b].semver.prerelease.length>0){const R=t[b].semver;if(R.major===s.major&&R.minor===s.minor&&R.patch===s.patch){return true}}}return false}return true}},8088:(t,s,b)=>{const R=b(106);const{MAX_LENGTH:F,MAX_SAFE_INTEGER:T}=b(2293);const{re:M,t:L}=b(9523);const B=b(785);const{compareIdentifiers:U}=b(2463);class SemVer{constructor(t,s){s=B(s);if(t instanceof SemVer){if(t.loose===!!s.loose&&t.includePrerelease===!!s.includePrerelease){return t}else{t=t.version}}else if(typeof t!=="string"){throw new TypeError(`Invalid Version: ${t}`)}if(t.length>F){throw new TypeError(`version is longer than ${F} characters`)}R("SemVer",t,s);this.options=s;this.loose=!!s.loose;this.includePrerelease=!!s.includePrerelease;const b=t.trim().match(s.loose?M[L.LOOSE]:M[L.FULL]);if(!b){throw new TypeError(`Invalid Version: ${t}`)}this.raw=t;this.major=+b[1];this.minor=+b[2];this.patch=+b[3];if(this.major>T||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>T||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>T||this.patch<0){throw new TypeError("Invalid patch version")}if(!b[4]){this.prerelease=[]}else{this.prerelease=b[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const s=+t;if(s>=0&&s<T){return s}}return t}))}this.build=b[5]?b[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(t){R("SemVer.compare",this.version,this.options,t);if(!(t instanceof SemVer)){if(typeof t==="string"&&t===this.version){return 0}t=new SemVer(t,this.options)}if(t.version===this.version){return 0}return this.compareMain(t)||this.comparePre(t)}compareMain(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}return U(this.major,t.major)||U(this.minor,t.minor)||U(this.patch,t.patch)}comparePre(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}if(this.prerelease.length&&!t.prerelease.length){return-1}else if(!this.prerelease.length&&t.prerelease.length){return 1}else if(!this.prerelease.length&&!t.prerelease.length){return 0}let s=0;do{const b=this.prerelease[s];const F=t.prerelease[s];R("prerelease compare",s,b,F);if(b===undefined&&F===undefined){return 0}else if(F===undefined){return 1}else if(b===undefined){return-1}else if(b===F){continue}else{return U(b,F)}}while(++s)}compareBuild(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}let s=0;do{const b=this.build[s];const F=t.build[s];R("prerelease compare",s,b,F);if(b===undefined&&F===undefined){return 0}else if(F===undefined){return 1}else if(b===undefined){return-1}else if(b===F){continue}else{return U(b,F)}}while(++s)}inc(t,s){switch(t){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",s);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",s);break;case"prepatch":this.prerelease.length=0;this.inc("patch",s);this.inc("pre",s);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",s)}this.inc("pre",s);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{let t=this.prerelease.length;while(--t>=0){if(typeof this.prerelease[t]==="number"){this.prerelease[t]++;t=-2}}if(t===-1){this.prerelease.push(0)}}if(s){if(U(this.prerelease[0],s)===0){if(isNaN(this.prerelease[1])){this.prerelease=[s,0]}}else{this.prerelease=[s,0]}}break;default:throw new Error(`invalid increment argument: ${t}`)}this.format();this.raw=this.version;return this}}t.exports=SemVer},8848:(t,s,b)=>{const R=b(5925);const clean=(t,s)=>{const b=R(t.trim().replace(/^[=v]+/,""),s);return b?b.version:null};t.exports=clean},5098:(t,s,b)=>{const R=b(1898);const F=b(6017);const T=b(4123);const M=b(5522);const L=b(194);const B=b(7520);const cmp=(t,s,b,U)=>{switch(s){case"===":if(typeof t==="object"){t=t.version}if(typeof b==="object"){b=b.version}return t===b;case"!==":if(typeof t==="object"){t=t.version}if(typeof b==="object"){b=b.version}return t!==b;case"":case"=":case"==":return R(t,b,U);case"!=":return F(t,b,U);case">":return T(t,b,U);case">=":return M(t,b,U);case"<":return L(t,b,U);case"<=":return B(t,b,U);default:throw new TypeError(`Invalid operator: ${s}`)}};t.exports=cmp},3466:(t,s,b)=>{const R=b(8088);const F=b(5925);const{re:T,t:M}=b(9523);const coerce=(t,s)=>{if(t instanceof R){return t}if(typeof t==="number"){t=String(t)}if(typeof t!=="string"){return null}s=s||{};let b=null;if(!s.rtl){b=t.match(T[M.COERCE])}else{let s;while((s=T[M.COERCERTL].exec(t))&&(!b||b.index+b[0].length!==t.length)){if(!b||s.index+s[0].length!==b.index+b[0].length){b=s}T[M.COERCERTL].lastIndex=s.index+s[1].length+s[2].length}T[M.COERCERTL].lastIndex=-1}if(b===null){return null}return F(`${b[2]}.${b[3]||"0"}.${b[4]||"0"}`,s)};t.exports=coerce},2156:(t,s,b)=>{const R=b(8088);const compareBuild=(t,s,b)=>{const F=new R(t,b);const T=new R(s,b);return F.compare(T)||F.compareBuild(T)};t.exports=compareBuild},2804:(t,s,b)=>{const R=b(4309);const compareLoose=(t,s)=>R(t,s,true);t.exports=compareLoose},4309:(t,s,b)=>{const R=b(8088);const compare=(t,s,b)=>new R(t,b).compare(new R(s,b));t.exports=compare},4297:(t,s,b)=>{const R=b(5925);const F=b(1898);const diff=(t,s)=>{if(F(t,s)){return null}else{const b=R(t);const F=R(s);const T=b.prerelease.length||F.prerelease.length;const M=T?"pre":"";const L=T?"prerelease":"";for(const t in b){if(t==="major"||t==="minor"||t==="patch"){if(b[t]!==F[t]){return M+t}}}return L}};t.exports=diff},1898:(t,s,b)=>{const R=b(4309);const eq=(t,s,b)=>R(t,s,b)===0;t.exports=eq},4123:(t,s,b)=>{const R=b(4309);const gt=(t,s,b)=>R(t,s,b)>0;t.exports=gt},5522:(t,s,b)=>{const R=b(4309);const gte=(t,s,b)=>R(t,s,b)>=0;t.exports=gte},900:(t,s,b)=>{const R=b(8088);const inc=(t,s,b,F)=>{if(typeof b==="string"){F=b;b=undefined}try{return new R(t instanceof R?t.version:t,b).inc(s,F).version}catch(t){return null}};t.exports=inc},194:(t,s,b)=>{const R=b(4309);const lt=(t,s,b)=>R(t,s,b)<0;t.exports=lt},7520:(t,s,b)=>{const R=b(4309);const lte=(t,s,b)=>R(t,s,b)<=0;t.exports=lte},6688:(t,s,b)=>{const R=b(8088);const major=(t,s)=>new R(t,s).major;t.exports=major},8447:(t,s,b)=>{const R=b(8088);const minor=(t,s)=>new R(t,s).minor;t.exports=minor},6017:(t,s,b)=>{const R=b(4309);const neq=(t,s,b)=>R(t,s,b)!==0;t.exports=neq},5925:(t,s,b)=>{const{MAX_LENGTH:R}=b(2293);const{re:F,t:T}=b(9523);const M=b(8088);const L=b(785);const parse=(t,s)=>{s=L(s);if(t instanceof M){return t}if(typeof t!=="string"){return null}if(t.length>R){return null}const b=s.loose?F[T.LOOSE]:F[T.FULL];if(!b.test(t)){return null}try{return new M(t,s)}catch(t){return null}};t.exports=parse},2866:(t,s,b)=>{const R=b(8088);const patch=(t,s)=>new R(t,s).patch;t.exports=patch},4016:(t,s,b)=>{const R=b(5925);const prerelease=(t,s)=>{const b=R(t,s);return b&&b.prerelease.length?b.prerelease:null};t.exports=prerelease},6417:(t,s,b)=>{const R=b(4309);const rcompare=(t,s,b)=>R(s,t,b);t.exports=rcompare},8701:(t,s,b)=>{const R=b(2156);const rsort=(t,s)=>t.sort(((t,b)=>R(b,t,s)));t.exports=rsort},6055:(t,s,b)=>{const R=b(9828);const satisfies=(t,s,b)=>{try{s=new R(s,b)}catch(t){return false}return s.test(t)};t.exports=satisfies},1426:(t,s,b)=>{const R=b(2156);const sort=(t,s)=>t.sort(((t,b)=>R(t,b,s)));t.exports=sort},9601:(t,s,b)=>{const R=b(5925);const valid=(t,s)=>{const b=R(t,s);return b?b.version:null};t.exports=valid},1383:(t,s,b)=>{const R=b(9523);const F=b(2293);const T=b(8088);const M=b(2463);const L=b(5925);const B=b(9601);const U=b(8848);const q=b(900);const H=b(4297);const G=b(6688);const V=b(8447);const W=b(2866);const Y=b(4016);const z=b(4309);const X=b(6417);const J=b(2804);const K=b(2156);const Z=b(1426);const Q=b(8701);const ee=b(4123);const re=b(194);const ne=b(1898);const ie=b(6017);const se=b(5522);const oe=b(7520);const ae=b(5098);const ue=b(3466);const le=b(1532);const ce=b(9828);const fe=b(6055);const he=b(2706);const pe=b(579);const de=b(832);const ge=b(4179);const me=b(2098);const De=b(420);const ve=b(9380);const ye=b(3323);const Ee=b(7008);const be=b(5297);const we=b(7863);t.exports={parse:L,valid:B,clean:U,inc:q,diff:H,major:G,minor:V,patch:W,prerelease:Y,compare:z,rcompare:X,compareLoose:J,compareBuild:K,sort:Z,rsort:Q,gt:ee,lt:re,eq:ne,neq:ie,gte:se,lte:oe,cmp:ae,coerce:ue,Comparator:le,Range:ce,satisfies:fe,toComparators:he,maxSatisfying:pe,minSatisfying:de,minVersion:ge,validRange:me,outside:De,gtr:ve,ltr:ye,intersects:Ee,simplifyRange:be,subset:we,SemVer:T,re:R.re,src:R.src,tokens:R.t,SEMVER_SPEC_VERSION:F.SEMVER_SPEC_VERSION,compareIdentifiers:M.compareIdentifiers,rcompareIdentifiers:M.rcompareIdentifiers}},2293:t=>{const s="2.0.0";const b=256;const R=Number.MAX_SAFE_INTEGER||9007199254740991;const F=16;t.exports={SEMVER_SPEC_VERSION:s,MAX_LENGTH:b,MAX_SAFE_INTEGER:R,MAX_SAFE_COMPONENT_LENGTH:F}},106:t=>{const s=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=s},2463:t=>{const s=/^[0-9]+$/;const compareIdentifiers=(t,b)=>{const R=s.test(t);const F=s.test(b);if(R&&F){t=+t;b=+b}return t===b?0:R&&!F?-1:F&&!R?1:t<b?-1:1};const rcompareIdentifiers=(t,s)=>compareIdentifiers(s,t);t.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},785:t=>{const s=["includePrerelease","loose","rtl"];const parseOptions=t=>!t?{}:typeof t!=="object"?{loose:true}:s.filter((s=>t[s])).reduce(((t,s)=>{t[s]=true;return t}),{});t.exports=parseOptions},9523:(t,s,b)=>{const{MAX_SAFE_COMPONENT_LENGTH:R}=b(2293);const F=b(106);s=t.exports={};const T=s.re=[];const M=s.src=[];const L=s.t={};let B=0;const createToken=(t,s,b)=>{const R=B++;F(t,R,s);L[t]=R;M[R]=s;T[R]=new RegExp(s,b?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${M[L.NUMERICIDENTIFIER]})\\.`+`(${M[L.NUMERICIDENTIFIER]})\\.`+`(${M[L.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${M[L.NUMERICIDENTIFIERLOOSE]})\\.`+`(${M[L.NUMERICIDENTIFIERLOOSE]})\\.`+`(${M[L.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${M[L.NUMERICIDENTIFIER]}|${M[L.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${M[L.NUMERICIDENTIFIERLOOSE]}|${M[L.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${M[L.PRERELEASEIDENTIFIER]}(?:\\.${M[L.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${M[L.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${M[L.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${M[L.BUILDIDENTIFIER]}(?:\\.${M[L.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${M[L.MAINVERSION]}${M[L.PRERELEASE]}?${M[L.BUILD]}?`);createToken("FULL",`^${M[L.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${M[L.MAINVERSIONLOOSE]}${M[L.PRERELEASELOOSE]}?${M[L.BUILD]}?`);createToken("LOOSE",`^${M[L.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${M[L.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${M[L.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${M[L.XRANGEIDENTIFIER]})`+`(?:\\.(${M[L.XRANGEIDENTIFIER]})`+`(?:\\.(${M[L.XRANGEIDENTIFIER]})`+`(?:${M[L.PRERELEASE]})?${M[L.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${M[L.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${M[L.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${M[L.XRANGEIDENTIFIERLOOSE]})`+`(?:${M[L.PRERELEASELOOSE]})?${M[L.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${M[L.GTLT]}\\s*${M[L.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${M[L.GTLT]}\\s*${M[L.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${R}})`+`(?:\\.(\\d{1,${R}}))?`+`(?:\\.(\\d{1,${R}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",M[L.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${M[L.LONETILDE]}\\s+`,true);s.tildeTrimReplace="$1~";createToken("TILDE",`^${M[L.LONETILDE]}${M[L.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${M[L.LONETILDE]}${M[L.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${M[L.LONECARET]}\\s+`,true);s.caretTrimReplace="$1^";createToken("CARET",`^${M[L.LONECARET]}${M[L.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${M[L.LONECARET]}${M[L.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${M[L.GTLT]}\\s*(${M[L.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${M[L.GTLT]}\\s*(${M[L.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${M[L.GTLT]}\\s*(${M[L.LOOSEPLAIN]}|${M[L.XRANGEPLAIN]})`,true);s.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${M[L.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${M[L.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${M[L.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${M[L.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9380:(t,s,b)=>{const R=b(420);const gtr=(t,s,b)=>R(t,s,">",b);t.exports=gtr},7008:(t,s,b)=>{const R=b(9828);const intersects=(t,s,b)=>{t=new R(t,b);s=new R(s,b);return t.intersects(s)};t.exports=intersects},3323:(t,s,b)=>{const R=b(420);const ltr=(t,s,b)=>R(t,s,"<",b);t.exports=ltr},579:(t,s,b)=>{const R=b(8088);const F=b(9828);const maxSatisfying=(t,s,b)=>{let T=null;let M=null;let L=null;try{L=new F(s,b)}catch(t){return null}t.forEach((t=>{if(L.test(t)){if(!T||M.compare(t)===-1){T=t;M=new R(T,b)}}}));return T};t.exports=maxSatisfying},832:(t,s,b)=>{const R=b(8088);const F=b(9828);const minSatisfying=(t,s,b)=>{let T=null;let M=null;let L=null;try{L=new F(s,b)}catch(t){return null}t.forEach((t=>{if(L.test(t)){if(!T||M.compare(t)===1){T=t;M=new R(T,b)}}}));return T};t.exports=minSatisfying},4179:(t,s,b)=>{const R=b(8088);const F=b(9828);const T=b(4123);const minVersion=(t,s)=>{t=new F(t,s);let b=new R("0.0.0");if(t.test(b)){return b}b=new R("0.0.0-0");if(t.test(b)){return b}b=null;for(let s=0;s<t.set.length;++s){const F=t.set[s];let M=null;F.forEach((t=>{const s=new R(t.semver.version);switch(t.operator){case">":if(s.prerelease.length===0){s.patch++}else{s.prerelease.push(0)}s.raw=s.format();case"":case">=":if(!M||T(s,M)){M=s}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}}));if(M&&(!b||T(b,M))){b=M}}if(b&&t.test(b)){return b}return null};t.exports=minVersion},420:(t,s,b)=>{const R=b(8088);const F=b(1532);const{ANY:T}=F;const M=b(9828);const L=b(6055);const B=b(4123);const U=b(194);const q=b(7520);const H=b(5522);const outside=(t,s,b,G)=>{t=new R(t,G);s=new M(s,G);let V,W,Y,z,X;switch(b){case">":V=B;W=q;Y=U;z=">";X=">=";break;case"<":V=U;W=H;Y=B;z="<";X="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(L(t,s,G)){return false}for(let b=0;b<s.set.length;++b){const R=s.set[b];let M=null;let L=null;R.forEach((t=>{if(t.semver===T){t=new F(">=0.0.0")}M=M||t;L=L||t;if(V(t.semver,M.semver,G)){M=t}else if(Y(t.semver,L.semver,G)){L=t}}));if(M.operator===z||M.operator===X){return false}if((!L.operator||L.operator===z)&&W(t,L.semver)){return false}else if(L.operator===X&&Y(t,L.semver)){return false}}return true};t.exports=outside},5297:(t,s,b)=>{const R=b(6055);const F=b(4309);t.exports=(t,s,b)=>{const T=[];let M=null;let L=null;const B=t.sort(((t,s)=>F(t,s,b)));for(const t of B){const F=R(t,s,b);if(F){L=t;if(!M){M=t}}else{if(L){T.push([M,L])}L=null;M=null}}if(M){T.push([M,null])}const U=[];for(const[t,s]of T){if(t===s){U.push(t)}else if(!s&&t===B[0]){U.push("*")}else if(!s){U.push(`>=${t}`)}else if(t===B[0]){U.push(`<=${s}`)}else{U.push(`${t} - ${s}`)}}const q=U.join(" || ");const H=typeof s.raw==="string"?s.raw:String(s);return q.length<H.length?q:s}},7863:(t,s,b)=>{const R=b(9828);const F=b(1532);const{ANY:T}=F;const M=b(6055);const L=b(4309);const subset=(t,s,b={})=>{if(t===s){return true}t=new R(t,b);s=new R(s,b);let F=false;e:for(const R of t.set){for(const t of s.set){const s=simpleSubset(R,t,b);F=F||s!==null;if(s){continue e}}if(F){return false}}return true};const simpleSubset=(t,s,b)=>{if(t===s){return true}if(t.length===1&&t[0].semver===T){if(s.length===1&&s[0].semver===T){return true}else if(b.includePrerelease){t=[new F(">=0.0.0-0")]}else{t=[new F(">=0.0.0")]}}if(s.length===1&&s[0].semver===T){if(b.includePrerelease){return true}else{s=[new F(">=0.0.0")]}}const R=new Set;let B,U;for(const s of t){if(s.operator===">"||s.operator===">="){B=higherGT(B,s,b)}else if(s.operator==="<"||s.operator==="<="){U=lowerLT(U,s,b)}else{R.add(s.semver)}}if(R.size>1){return null}let q;if(B&&U){q=L(B.semver,U.semver,b);if(q>0){return null}else if(q===0&&(B.operator!==">="||U.operator!=="<=")){return null}}for(const t of R){if(B&&!M(t,String(B),b)){return null}if(U&&!M(t,String(U),b)){return null}for(const R of s){if(!M(t,String(R),b)){return false}}return true}let H,G;let V,W;let Y=U&&!b.includePrerelease&&U.semver.prerelease.length?U.semver:false;let z=B&&!b.includePrerelease&&B.semver.prerelease.length?B.semver:false;if(Y&&Y.prerelease.length===1&&U.operator==="<"&&Y.prerelease[0]===0){Y=false}for(const t of s){W=W||t.operator===">"||t.operator===">=";V=V||t.operator==="<"||t.operator==="<=";if(B){if(z){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===z.major&&t.semver.minor===z.minor&&t.semver.patch===z.patch){z=false}}if(t.operator===">"||t.operator===">="){H=higherGT(B,t,b);if(H===t&&H!==B){return false}}else if(B.operator===">="&&!M(B.semver,String(t),b)){return false}}if(U){if(Y){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===Y.major&&t.semver.minor===Y.minor&&t.semver.patch===Y.patch){Y=false}}if(t.operator==="<"||t.operator==="<="){G=lowerLT(U,t,b);if(G===t&&G!==U){return false}}else if(U.operator==="<="&&!M(U.semver,String(t),b)){return false}}if(!t.operator&&(U||B)&&q!==0){return false}}if(B&&V&&!U&&q!==0){return false}if(U&&W&&!B&&q!==0){return false}if(z||Y){return false}return true};const higherGT=(t,s,b)=>{if(!t){return s}const R=L(t.semver,s.semver,b);return R>0?t:R<0?s:s.operator===">"&&t.operator===">="?s:t};const lowerLT=(t,s,b)=>{if(!t){return s}const R=L(t.semver,s.semver,b);return R<0?t:R>0?s:s.operator==="<"&&t.operator==="<="?s:t};t.exports=subset},2706:(t,s,b)=>{const R=b(9828);const toComparators=(t,s)=>new R(t,s).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")));t.exports=toComparators},2098:(t,s,b)=>{const R=b(9828);const validRange=(t,s)=>{try{return new R(t,s).range||"*"}catch(t){return null}};t.exports=validRange},2577:(t,s,b)=>{"use strict";const R=b(3520);const F=b(4882);const T=b(8212);const stringWidth=t=>{if(typeof t!=="string"||t.length===0){return 0}t=R(t);if(t.length===0){return 0}t=t.replace(T()," ");let s=0;for(let b=0;b<t.length;b++){const R=t.codePointAt(b);if(R<=31||R>=127&&R<=159){continue}if(R>=768&&R<=879){continue}if(R>65535){b++}s+=F(R)?2:1}return s};t.exports=stringWidth;t.exports["default"]=stringWidth},3520:(t,s,b)=>{"use strict";const R=b(5063);t.exports=t=>typeof t==="string"?t.replace(R(),""):t},5591:(t,s,b)=>{"use strict";const R=b(5063);t.exports=t=>typeof t==="string"?t.replace(R(),""):t},4294:(t,s,b)=>{t.exports=b(4219)},4219:(t,s,b)=>{"use strict";var R=b(1808);var F=b(4404);var T=b(3685);var M=b(5687);var L=b(2361);var B=b(9491);var U=b(3837);s.httpOverHttp=httpOverHttp;s.httpsOverHttp=httpsOverHttp;s.httpOverHttps=httpOverHttps;s.httpsOverHttps=httpsOverHttps;function httpOverHttp(t){var s=new TunnelingAgent(t);s.request=T.request;return s}function httpsOverHttp(t){var s=new TunnelingAgent(t);s.request=T.request;s.createSocket=createSecureSocket;s.defaultPort=443;return s}function httpOverHttps(t){var s=new TunnelingAgent(t);s.request=M.request;return s}function httpsOverHttps(t){var s=new TunnelingAgent(t);s.request=M.request;s.createSocket=createSecureSocket;s.defaultPort=443;return s}function TunnelingAgent(t){var s=this;s.options=t||{};s.proxyOptions=s.options.proxy||{};s.maxSockets=s.options.maxSockets||T.Agent.defaultMaxSockets;s.requests=[];s.sockets=[];s.on("free",(function onFree(t,b,R,F){var T=toOptions(b,R,F);for(var M=0,L=s.requests.length;M<L;++M){var B=s.requests[M];if(B.host===T.host&&B.port===T.port){s.requests.splice(M,1);B.request.onSocket(t);return}}t.destroy();s.removeSocket(t)}))}U.inherits(TunnelingAgent,L.EventEmitter);TunnelingAgent.prototype.addRequest=function addRequest(t,s,b,R){var F=this;var T=mergeOptions({request:t},F.options,toOptions(s,b,R));if(F.sockets.length>=this.maxSockets){F.requests.push(T);return}F.createSocket(T,(function(s){s.on("free",onFree);s.on("close",onCloseOrRemove);s.on("agentRemove",onCloseOrRemove);t.onSocket(s);function onFree(){F.emit("free",s,T)}function onCloseOrRemove(t){F.removeSocket(s);s.removeListener("free",onFree);s.removeListener("close",onCloseOrRemove);s.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(t,s){var b=this;var R={};b.sockets.push(R);var F=mergeOptions({},b.proxyOptions,{method:"CONNECT",path:t.host+":"+t.port,agent:false,headers:{host:t.host+":"+t.port}});if(t.localAddress){F.localAddress=t.localAddress}if(F.proxyAuth){F.headers=F.headers||{};F.headers["Proxy-Authorization"]="Basic "+new Buffer(F.proxyAuth).toString("base64")}q("making CONNECT request");var T=b.request(F);T.useChunkedEncodingByDefault=false;T.once("response",onResponse);T.once("upgrade",onUpgrade);T.once("connect",onConnect);T.once("error",onError);T.end();function onResponse(t){t.upgrade=true}function onUpgrade(t,s,b){process.nextTick((function(){onConnect(t,s,b)}))}function onConnect(F,M,L){T.removeAllListeners();M.removeAllListeners();if(F.statusCode!==200){q("tunneling socket could not be established, statusCode=%d",F.statusCode);M.destroy();var B=new Error("tunneling socket could not be established, "+"statusCode="+F.statusCode);B.code="ECONNRESET";t.request.emit("error",B);b.removeSocket(R);return}if(L.length>0){q("got illegal response body from proxy");M.destroy();var B=new Error("got illegal response body from proxy");B.code="ECONNRESET";t.request.emit("error",B);b.removeSocket(R);return}q("tunneling connection has established");b.sockets[b.sockets.indexOf(R)]=M;return s(M)}function onError(s){T.removeAllListeners();q("tunneling socket could not be established, cause=%s\n",s.message,s.stack);var F=new Error("tunneling socket could not be established, "+"cause="+s.message);F.code="ECONNRESET";t.request.emit("error",F);b.removeSocket(R)}};TunnelingAgent.prototype.removeSocket=function removeSocket(t){var s=this.sockets.indexOf(t);if(s===-1){return}this.sockets.splice(s,1);var b=this.requests.shift();if(b){this.createSocket(b,(function(t){b.request.onSocket(t)}))}};function createSecureSocket(t,s){var b=this;TunnelingAgent.prototype.createSocket.call(b,t,(function(R){var T=t.request.getHeader("host");var M=mergeOptions({},b.options,{socket:R,servername:T?T.replace(/:.*$/,""):t.host});var L=F.connect(0,M);b.sockets[b.sockets.indexOf(R)]=L;s(L)}))}function toOptions(t,s,b){if(typeof t==="string"){return{host:t,port:s,localAddress:b}}return t}function mergeOptions(t){for(var s=1,b=arguments.length;s<b;++s){var R=arguments[s];if(typeof R==="object"){var F=Object.keys(R);for(var T=0,M=F.length;T<M;++T){var L=F[T];if(R[L]!==undefined){t[L]=R[L]}}}}return t}var q;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)){q=function(){var t=Array.prototype.slice.call(arguments);if(typeof t[0]==="string"){t[0]="TUNNEL: "+t[0]}else{t.unshift("TUNNEL:")}console.error.apply(console,t)}}else{q=function(){}}s.debug=q},2707:t=>{var s=[];for(var b=0;b<256;++b){s[b]=(b+256).toString(16).substr(1)}function bytesToUuid(t,b){var R=b||0;var F=s;return[F[t[R++]],F[t[R++]],F[t[R++]],F[t[R++]],"-",F[t[R++]],F[t[R++]],"-",F[t[R++]],F[t[R++]],"-",F[t[R++]],F[t[R++]],"-",F[t[R++]],F[t[R++]],F[t[R++]],F[t[R++]],F[t[R++]],F[t[R++]]].join("")}t.exports=bytesToUuid},5859:(t,s,b)=>{var R=b(6113);t.exports=function nodeRNG(){return R.randomBytes(16)}},824:(t,s,b)=>{var R=b(5859);var F=b(2707);function v4(t,s,b){var T=s&&b||0;if(typeof t=="string"){s=t==="binary"?new Array(16):null;t=null}t=t||{};var M=t.random||(t.rng||R)();M[6]=M[6]&15|64;M[8]=M[8]&63|128;if(s){for(var L=0;L<16;++L){s[T+L]=M[L]}}return s||F(M)}t.exports=v4},9824:(t,s,b)=>{"use strict";const R=b(2577);const F=b(5591);const T=b(2068);const M=new Set(["","›"]);const L=39;const B="";const U="[";const q="]";const H="m";const G=`${q}8;;`;const wrapAnsi=t=>`${M.values().next().value}${U}${t}${H}`;const wrapAnsiHyperlink=t=>`${M.values().next().value}${G}${t}${B}`;const wordLengths=t=>t.split(" ").map((t=>R(t)));const wrapWord=(t,s,b)=>{const T=[...s];let L=false;let U=false;let q=R(F(t[t.length-1]));for(const[s,F]of T.entries()){const V=R(F);if(q+V<=b){t[t.length-1]+=F}else{t.push(F);q=0}if(M.has(F)){L=true;U=T.slice(s+1).join("").startsWith(G)}if(L){if(U){if(F===B){L=false;U=false}}else if(F===H){L=false}continue}q+=V;if(q===b&&s<T.length-1){t.push("");q=0}}if(!q&&t[t.length-1].length>0&&t.length>1){t[t.length-2]+=t.pop()}};const stringVisibleTrimSpacesRight=t=>{const s=t.split(" ");let b=s.length;while(b>0){if(R(s[b-1])>0){break}b--}if(b===s.length){return t}return s.slice(0,b).join(" ")+s.slice(b).join("")};const exec=(t,s,b={})=>{if(b.trim!==false&&t.trim()===""){return""}let F="";let q;let H;const V=wordLengths(t);let W=[""];for(const[F,T]of t.split(" ").entries()){if(b.trim!==false){W[W.length-1]=W[W.length-1].trimStart()}let t=R(W[W.length-1]);if(F!==0){if(t>=s&&(b.wordWrap===false||b.trim===false)){W.push("");t=0}if(t>0||b.trim===false){W[W.length-1]+=" ";t++}}if(b.hard&&V[F]>s){const b=s-t;const R=1+Math.floor((V[F]-b-1)/s);const M=Math.floor((V[F]-1)/s);if(M<R){W.push("")}wrapWord(W,T,s);continue}if(t+V[F]>s&&t>0&&V[F]>0){if(b.wordWrap===false&&t<s){wrapWord(W,T,s);continue}W.push("")}if(t+V[F]>s&&b.wordWrap===false){wrapWord(W,T,s);continue}W[W.length-1]+=T}if(b.trim!==false){W=W.map(stringVisibleTrimSpacesRight)}const Y=[...W.join("\n")];for(const[t,s]of Y.entries()){F+=s;if(M.has(s)){const{groups:s}=new RegExp(`(?:\\${U}(?<code>\\d+)m|\\${G}(?<uri>.*)${B})`).exec(Y.slice(t).join(""))||{groups:{}};if(s.code!==undefined){const t=Number.parseFloat(s.code);q=t===L?undefined:t}else if(s.uri!==undefined){H=s.uri.length===0?undefined:s.uri}}const b=T.codes.get(Number(q));if(Y[t+1]==="\n"){if(H){F+=wrapAnsiHyperlink("")}if(q&&b){F+=wrapAnsi(b)}}else if(s==="\n"){if(q&&b){F+=wrapAnsi(q)}if(H){F+=wrapAnsiHyperlink(H)}}}return F};t.exports=(t,s,b)=>String(t).normalize().replace(/\r\n/g,"\n").split("\n").map((t=>exec(t,s,b))).join("\n")},4091:t=>{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next){yield t.value}}}},665:(t,s,b)=>{"use strict";t.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(t){var s=this;if(!(s instanceof Yallist)){s=new Yallist}s.tail=null;s.head=null;s.length=0;if(t&&typeof t.forEach==="function"){t.forEach((function(t){s.push(t)}))}else if(arguments.length>0){for(var b=0,R=arguments.length;b<R;b++){s.push(arguments[b])}}return s}Yallist.prototype.removeNode=function(t){if(t.list!==this){throw new Error("removing node which does not belong to this list")}var s=t.next;var b=t.prev;if(s){s.prev=b}if(b){b.next=s}if(t===this.head){this.head=s}if(t===this.tail){this.tail=b}t.list.length--;t.next=null;t.prev=null;t.list=null;return s};Yallist.prototype.unshiftNode=function(t){if(t===this.head){return}if(t.list){t.list.removeNode(t)}var s=this.head;t.list=this;t.next=s;if(s){s.prev=t}this.head=t;if(!this.tail){this.tail=t}this.length++};Yallist.prototype.pushNode=function(t){if(t===this.tail){return}if(t.list){t.list.removeNode(t)}var s=this.tail;t.list=this;t.prev=s;if(s){s.next=t}this.tail=t;if(!this.head){this.head=t}this.length++};Yallist.prototype.push=function(){for(var t=0,s=arguments.length;t<s;t++){push(this,arguments[t])}return this.length};Yallist.prototype.unshift=function(){for(var t=0,s=arguments.length;t<s;t++){unshift(this,arguments[t])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var t=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return t};Yallist.prototype.shift=function(){if(!this.head){return undefined}var t=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return t};Yallist.prototype.forEach=function(t,s){s=s||this;for(var b=this.head,R=0;b!==null;R++){t.call(s,b.value,R,this);b=b.next}};Yallist.prototype.forEachReverse=function(t,s){s=s||this;for(var b=this.tail,R=this.length-1;b!==null;R--){t.call(s,b.value,R,this);b=b.prev}};Yallist.prototype.get=function(t){for(var s=0,b=this.head;b!==null&&s<t;s++){b=b.next}if(s===t&&b!==null){return b.value}};Yallist.prototype.getReverse=function(t){for(var s=0,b=this.tail;b!==null&&s<t;s++){b=b.prev}if(s===t&&b!==null){return b.value}};Yallist.prototype.map=function(t,s){s=s||this;var b=new Yallist;for(var R=this.head;R!==null;){b.push(t.call(s,R.value,this));R=R.next}return b};Yallist.prototype.mapReverse=function(t,s){s=s||this;var b=new Yallist;for(var R=this.tail;R!==null;){b.push(t.call(s,R.value,this));R=R.prev}return b};Yallist.prototype.reduce=function(t,s){var b;var R=this.head;if(arguments.length>1){b=s}else if(this.head){R=this.head.next;b=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var F=0;R!==null;F++){b=t(b,R.value,F);R=R.next}return b};Yallist.prototype.reduceReverse=function(t,s){var b;var R=this.tail;if(arguments.length>1){b=s}else if(this.tail){R=this.tail.prev;b=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var F=this.length-1;R!==null;F--){b=t(b,R.value,F);R=R.prev}return b};Yallist.prototype.toArray=function(){var t=new Array(this.length);for(var s=0,b=this.head;b!==null;s++){t[s]=b.value;b=b.next}return t};Yallist.prototype.toArrayReverse=function(){var t=new Array(this.length);for(var s=0,b=this.tail;b!==null;s++){t[s]=b.value;b=b.prev}return t};Yallist.prototype.slice=function(t,s){s=s||this.length;if(s<0){s+=this.length}t=t||0;if(t<0){t+=this.length}var b=new Yallist;if(s<t||s<0){return b}if(t<0){t=0}if(s>this.length){s=this.length}for(var R=0,F=this.head;F!==null&&R<t;R++){F=F.next}for(;F!==null&&R<s;R++,F=F.next){b.push(F.value)}return b};Yallist.prototype.sliceReverse=function(t,s){s=s||this.length;if(s<0){s+=this.length}t=t||0;if(t<0){t+=this.length}var b=new Yallist;if(s<t||s<0){return b}if(t<0){t=0}if(s>this.length){s=this.length}for(var R=this.length,F=this.tail;F!==null&&R>s;R--){F=F.prev}for(;F!==null&&R>t;R--,F=F.prev){b.push(F.value)}return b};Yallist.prototype.splice=function(t,s,...b){if(t>this.length){t=this.length-1}if(t<0){t=this.length+t}for(var R=0,F=this.head;F!==null&&R<t;R++){F=F.next}var T=[];for(var R=0;F&&R<s;R++){T.push(F.value);F=this.removeNode(F)}if(F===null){F=this.tail}if(F!==this.head&&F!==this.tail){F=F.prev}for(var R=0;R<b.length;R++){F=insert(this,F,b[R])}return T};Yallist.prototype.reverse=function(){var t=this.head;var s=this.tail;for(var b=t;b!==null;b=b.prev){var R=b.prev;b.prev=b.next;b.next=R}this.head=s;this.tail=t;return this};function insert(t,s,b){var R=s===t.head?new Node(b,null,s,t):new Node(b,s,s.next,t);if(R.next===null){t.tail=R}if(R.prev===null){t.head=R}t.length++;return R}function push(t,s){t.tail=new Node(s,t.tail,null,t);if(!t.head){t.head=t.tail}t.length++}function unshift(t,s){t.head=new Node(s,null,t.head,t);if(!t.tail){t.tail=t.head}t.length++}function Node(t,s,b,R){if(!(this instanceof Node)){return new Node(t,s,b,R)}this.list=R;this.value=t;if(s){s.next=this;this.prev=s}else{this.prev=null}if(b){b.prev=this;this.next=b}else{this.next=null}}try{b(4091)(Yallist)}catch(t){}},8954:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;var F=Object.getOwnPropertyDescriptor(s,b);if(!F||("get"in F?!s.__esModule:F.writable||F.configurable)){F={enumerable:true,get:function(){return s[b]}}}Object.defineProperty(t,R,F)}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.prototype.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.getInputs=s.osArch=s.osPlat=void 0;const L=T(b(2037));const B=T(b(2186));s.osPlat=L.platform();s.osArch=L.arch();function getInputs(){return M(this,void 0,void 0,(function*(){return{distribution:B.getInput("distribution")||"goreleaser",version:B.getInput("version")||"latest",args:B.getInput("args"),workdir:B.getInput("workdir")||".",installOnly:B.getBooleanInput("install-only")}}))}s.getInputs=getInputs},978:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;var F=Object.getOwnPropertyDescriptor(s,b);if(!F||("get"in F?!s.__esModule:F.writable||F.configurable)){F={enumerable:true,get:function(){return s[b]}}}Object.defineProperty(t,R,F)}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.prototype.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.getLatestRelease=s.getReleaseTag=s.getRelease=void 0;const L=T(b(8218));const B=T(b(1383));const U=T(b(2186));const q=T(b(6255));const getRelease=(t,b)=>M(void 0,void 0,void 0,(function*(){if(b==="latest"){return(0,s.getLatestRelease)(t)}return(0,s.getReleaseTag)(t,b)}));s.getRelease=getRelease;const getReleaseTag=(t,s)=>M(void 0,void 0,void 0,(function*(){const b=(yield resolveVersion(t,s))||s;const R=L.distribSuffix(t);const F=`https://goreleaser.com/static/releases${R}.json`;const T=new q.HttpClient("goreleaser-action");const M=yield T.get(F);const B=yield M.readBody();const U=M.message.statusCode||500;if(U>=400){throw new Error(`Failed to get GoReleaser release ${s}${R} from ${F} with status code ${U}: ${B}`)}const H=JSON.parse(B);const G=H.filter((t=>t.tag_name===b)).shift();if(G){return G}throw new Error(`Cannot find GoReleaser release ${s}${R} in ${F}`)}));s.getReleaseTag=getReleaseTag;const getLatestRelease=t=>M(void 0,void 0,void 0,(function*(){const s=L.distribSuffix(t);const b=`https://goreleaser.com/static/latest${s}`;const R=new q.HttpClient("goreleaser-action");const F=yield R.get(b);const T=yield F.readBody();const M=F.message.statusCode||500;if(M>=400){throw new Error(`Failed to get GoReleaser release latest from ${b} with status code ${M}: ${T}`)}return{tag_name:T}}));s.getLatestRelease=getLatestRelease;const resolveVersion=(t,s)=>M(void 0,void 0,void 0,(function*(){const b=yield getAllTags(t);if(!b){throw new Error(`Cannot download ${t} tags`)}U.debug(`Found ${b.length} tags in total`);const R=b.map((t=>cleanTag(t)));const F=cleanTag(s);return B.maxSatisfying(R,F)+L.distribSuffix(t)}));const getAllTags=t=>M(void 0,void 0,void 0,(function*(){const s=new q.HttpClient("goreleaser-action");const b=L.distribSuffix(t);const R=`https://goreleaser.com/static/releases${b}.json`;U.debug(`Downloading ${R}`);const F=s.getJson(R);return F.then((t=>{if(t.result==null){return[]}return t.result.map((t=>t.tag_name))}))}));const cleanTag=t=>t.replace(/-pro$/,"")},8218:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;var F=Object.getOwnPropertyDescriptor(s,b);if(!F||("get"in F?!s.__esModule:F.writable||F.configurable)){F={enumerable:true,get:function(){return s[b]}}}Object.defineProperty(t,R,F)}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.prototype.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};var L=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(s,"__esModule",{value:true});s.getMetadata=s.getArtifacts=s.getDistPath=s.isPro=s.distribSuffix=s.install=void 0;const B=T(b(7147));const U=T(b(1017));const q=T(b(3837));const H=L(b(1917));const G=T(b(8954));const V=T(b(978));const W=T(b(2186));const Y=T(b(7784));function install(t,s){return M(this,void 0,void 0,(function*(){const b=yield V.getRelease(t,s);const R=getFilename(t);const F=q.format("https://github.com/goreleaser/%s/releases/download/%s/%s",t,b.tag_name,R);W.info(`Downloading ${F}`);const T=yield Y.downloadTool(F);W.debug(`Downloaded to ${T}`);W.info("Extracting GoReleaser");let M;if(G.osPlat=="win32"){if(!T.endsWith(".zip")){const t=T+".zip";B.renameSync(T,t);M=yield Y.extractZip(t)}else{M=yield Y.extractZip(T)}}else{M=yield Y.extractTar(T)}W.debug(`Extracted to ${M}`);const L=yield Y.cacheDir(M,"goreleaser-action",b.tag_name.replace(/^v/,""));W.debug(`Cached to ${L}`);const H=U.join(L,G.osPlat=="win32"?"goreleaser.exe":"goreleaser");W.debug(`Exe path is ${H}`);return H}))}s.install=install;const distribSuffix=t=>(0,s.isPro)(t)?"-pro":"";s.distribSuffix=distribSuffix;const isPro=t=>t==="goreleaser-pro";s.isPro=isPro;const getFilename=t=>{let b;switch(G.osArch){case"x64":{b="x86_64";break}case"x32":{b="i386";break}case"arm":{const t=process.config.variables.arm_version;b=t?"armv"+t:"arm";break}default:{b=G.osArch;break}}if(G.osPlat=="darwin"){b="all"}const R=G.osPlat=="win32"?"Windows":G.osPlat=="darwin"?"Darwin":"Linux";const F=G.osPlat=="win32"?"zip":"tar.gz";const T=(0,s.distribSuffix)(t);return q.format("goreleaser%s_%s_%s.%s",T,R,b,F)};function getDistPath(t){return M(this,void 0,void 0,(function*(){const s=H.default.load(B.readFileSync(t,"utf8"));return s.dist||"dist"}))}s.getDistPath=getDistPath;function getArtifacts(t){return M(this,void 0,void 0,(function*(){const s=U.join(t,"artifacts.json");if(!B.existsSync(s)){return undefined}const b=B.readFileSync(s,{encoding:"utf-8"}).trim();if(b==="null"){return undefined}return b}))}s.getArtifacts=getArtifacts;function getMetadata(t){return M(this,void 0,void 0,(function*(){const s=U.join(t,"metadata.json");if(!B.existsSync(s)){return undefined}const b=B.readFileSync(s,{encoding:"utf-8"}).trim();if(b==="null"){return undefined}return b}))}s.getMetadata=getMetadata},399:function(t,s,b){"use strict";var R=this&&this.__createBinding||(Object.create?function(t,s,b,R){if(R===undefined)R=b;var F=Object.getOwnPropertyDescriptor(s,b);if(!F||("get"in F?!s.__esModule:F.writable||F.configurable)){F={enumerable:true,get:function(){return s[b]}}}Object.defineProperty(t,R,F)}:function(t,s,b,R){if(R===undefined)R=b;t[R]=s[b]});var F=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.prototype.hasOwnProperty.call(t,b))R(s,t,b);F(s,t);return s};var M=this&&this.__awaiter||function(t,s,b,R){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,F){function fulfilled(t){try{step(R.next(t))}catch(t){F(t)}}function rejected(t){try{step(R["throw"](t))}catch(t){F(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((R=R.apply(t,s||[])).next())}))};var L=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(s,"__esModule",{value:true});const B=T(b(7147));const U=T(b(1017));const q=L(b(8822));const H=T(b(8954));const G=T(b(8218));const V=T(b(2186));const W=T(b(1514));function run(){return M(this,void 0,void 0,(function*(){try{const t=yield H.getInputs();const s=yield G.install(t.distribution,t.version);V.info(`GoReleaser ${t.version} installed successfully`);if(t.installOnly){const t=U.dirname(s);V.addPath(t);V.debug(`Added ${t} to PATH`);return}else if(!t.args){V.setFailed("args input required");return}if(t.workdir&&t.workdir!=="."){V.info(`Using ${t.workdir} as working directory`);process.chdir(t.workdir)}let b;const R=q.default.parse(t.args);if(R.config){b=R.config}else{[".goreleaser.yaml",".goreleaser.yml","goreleaser.yaml","goreleaser.yml"].forEach((t=>{if(B.existsSync(t)){b=t}}))}yield W.exec(`${s} ${t.args}`);if(typeof b==="string"){const t=yield G.getArtifacts(yield G.getDistPath(b));if(t){yield V.group(`Artifacts output`,(()=>M(this,void 0,void 0,(function*(){V.info(t);V.setOutput("artifacts",t)}))))}const s=yield G.getMetadata(yield G.getDistPath(b));if(s){yield V.group(`Metadata output`,(()=>M(this,void 0,void 0,(function*(){V.info(s);V.setOutput("metadata",s)}))))}}}catch(t){V.setFailed(t.message)}}))}run()},9167:t=>{function webpackEmptyContext(t){var s=new Error("Cannot find module '"+t+"'");s.code="MODULE_NOT_FOUND";throw s}webpackEmptyContext.keys=()=>[];webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=9167;t.exports=webpackEmptyContext},5977:t=>{function webpackEmptyContext(t){var s=new Error("Cannot find module '"+t+"'");s.code="MODULE_NOT_FOUND";throw s}webpackEmptyContext.keys=()=>[];webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=5977;t.exports=webpackEmptyContext},4907:t=>{function webpackEmptyContext(t){var s=new Error("Cannot find module '"+t+"'");s.code="MODULE_NOT_FOUND";throw s}webpackEmptyContext.keys=()=>[];webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=4907;t.exports=webpackEmptyContext},9491:t=>{"use strict";t.exports=require("assert")},2081:t=>{"use strict";t.exports=require("child_process")},6113:t=>{"use strict";t.exports=require("crypto")},2361:t=>{"use strict";t.exports=require("events")},7147:t=>{"use strict";t.exports=require("fs")},3685:t=>{"use strict";t.exports=require("http")},5687:t=>{"use strict";t.exports=require("https")},1808:t=>{"use strict";t.exports=require("net")},2037:t=>{"use strict";t.exports=require("os")},1017:t=>{"use strict";t.exports=require("path")},2781:t=>{"use strict";t.exports=require("stream")},1576:t=>{"use strict";t.exports=require("string_decoder")},9512:t=>{"use strict";t.exports=require("timers")},4404:t=>{"use strict";t.exports=require("tls")},3837:t=>{"use strict";t.exports=require("util")},7059:(t,s,b)=>{"use strict";const R={right:alignRight,center:alignCenter};const F=0;const T=1;const M=2;const L=3;class UI{constructor(t){var s;this.width=t.width;this.wrap=(s=t.wrap)!==null&&s!==void 0?s:true;this.rows=[]}span(...t){const s=this.div(...t);s.span=true}resetOutput(){this.rows=[]}div(...t){if(t.length===0){this.div("")}if(this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]==="string"){return this.applyLayoutDSL(t[0])}const s=t.map((t=>{if(typeof t==="string"){return this.colFromString(t)}return t}));this.rows.push(s);return s}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]==="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){const s=t.split("\n").map((t=>t.split("\t")));let b=0;s.forEach((t=>{if(t.length>1&&B.stringWidth(t[0])>b){b=Math.min(Math.floor(this.width*.5),B.stringWidth(t[0]))}}));s.forEach((t=>{this.div(...t.map(((s,R)=>({text:s.trim(),padding:this.measurePadding(s),width:R===0&&t.length>1?b:undefined}))))}));return this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){const s=B.stripAnsi(t);return[0,s.match(/\s*$/)[0].length,0,s.match(/^\s*/)[0].length]}toString(){const t=[];this.rows.forEach((s=>{this.rowToString(s,t)}));return t.filter((t=>!t.hidden)).map((t=>t.text)).join("\n")}rowToString(t,s){this.rasterize(t).forEach(((b,F)=>{let M="";b.forEach(((b,U)=>{const{width:q}=t[U];const H=this.negatePadding(t[U]);let G=b;if(H>B.stringWidth(b)){G+=" ".repeat(H-B.stringWidth(b))}if(t[U].align&&t[U].align!=="left"&&this.wrap){const s=R[t[U].align];G=s(G,H);if(B.stringWidth(G)<H){G+=" ".repeat((q||0)-B.stringWidth(G)-1)}}const V=t[U].padding||[0,0,0,0];if(V[L]){M+=" ".repeat(V[L])}M+=addBorder(t[U],G,"| ");M+=G;M+=addBorder(t[U],G," |");if(V[T]){M+=" ".repeat(V[T])}if(F===0&&s.length>0){M=this.renderInline(M,s[s.length-1])}}));s.push({text:M.replace(/ +$/,""),span:t.span})}));return s}renderInline(t,s){const b=t.match(/^ */);const R=b?b[0].length:0;const F=s.text;const T=B.stringWidth(F.trimRight());if(!s.span){return t}if(!this.wrap){s.hidden=true;return F+t}if(R<T){return t}s.hidden=true;return F.trimRight()+" ".repeat(R-T)+t.trimLeft()}rasterize(t){const s=[];const b=this.columnWidths(t);let R;t.forEach(((t,T)=>{t.width=b[T];if(this.wrap){R=B.wrap(t.text,this.negatePadding(t),{hard:true}).split("\n")}else{R=t.text.split("\n")}if(t.border){R.unshift("."+"-".repeat(this.negatePadding(t)+2)+".");R.push("'"+"-".repeat(this.negatePadding(t)+2)+"'")}if(t.padding){R.unshift(...new Array(t.padding[F]||0).fill(""));R.push(...new Array(t.padding[M]||0).fill(""))}R.forEach(((t,b)=>{if(!s[b]){s.push([])}const R=s[b];for(let t=0;t<T;t++){if(R[t]===undefined){R.push("")}}R.push(t)}))}));return s}negatePadding(t){let s=t.width||0;if(t.padding){s-=(t.padding[L]||0)+(t.padding[T]||0)}if(t.border){s-=4}return s}columnWidths(t){if(!this.wrap){return t.map((t=>t.width||B.stringWidth(t.text)))}let s=t.length;let b=this.width;const R=t.map((t=>{if(t.width){s--;b-=t.width;return t.width}return undefined}));const F=s?Math.floor(b/s):0;return R.map(((s,b)=>{if(s===undefined){return Math.max(F,_minWidth(t[b]))}return s}))}}function addBorder(t,s,b){if(t.border){if(/[.']-+[.']/.test(s)){return""}if(s.trim().length!==0){return b}return" "}return""}function _minWidth(t){const s=t.padding||[];const b=1+(s[L]||0)+(s[T]||0);if(t.border){return b+4}return b}function getWindowWidth(){if(typeof process==="object"&&process.stdout&&process.stdout.columns){return process.stdout.columns}return 80}function alignRight(t,s){t=t.trim();const b=B.stringWidth(t);if(b<s){return" ".repeat(s-b)+t}return t}function alignCenter(t,s){t=t.trim();const b=B.stringWidth(t);if(b>=s){return t}return" ".repeat(s-b>>1)+t}let B;function cliui(t,s){B=s;return new UI({width:(t===null||t===void 0?void 0:t.width)||getWindowWidth(),wrap:t===null||t===void 0?void 0:t.wrap})}const U=b(2577);const q=b(2701);const H=b(9824);function ui(t){return cliui(t,{stringWidth:U,stripAnsi:q,wrap:H})}t.exports=ui},452:(t,s,b)=>{"use strict";var R=b(7147);var F=b(3837);var T=b(1017);let M;class Y18N{constructor(t){t=t||{};this.directory=t.directory||"./locales";this.updateFiles=typeof t.updateFiles==="boolean"?t.updateFiles:true;this.locale=t.locale||"en";this.fallbackToLanguage=typeof t.fallbackToLanguage==="boolean"?t.fallbackToLanguage:true;this.cache=Object.create(null);this.writeQueue=[]}__(...t){if(typeof arguments[0]!=="string"){return this._taggedLiteral(arguments[0],...arguments)}const s=t.shift();let cb=function(){};if(typeof t[t.length-1]==="function")cb=t.pop();cb=cb||function(){};if(!this.cache[this.locale])this._readLocaleFile();if(!this.cache[this.locale][s]&&this.updateFiles){this.cache[this.locale][s]=s;this._enqueueWrite({directory:this.directory,locale:this.locale,cb:cb})}else{cb()}return M.format.apply(M.format,[this.cache[this.locale][s]||s].concat(t))}__n(){const t=Array.prototype.slice.call(arguments);const s=t.shift();const b=t.shift();const R=t.shift();let cb=function(){};if(typeof t[t.length-1]==="function")cb=t.pop();if(!this.cache[this.locale])this._readLocaleFile();let F=R===1?s:b;if(this.cache[this.locale][s]){const t=this.cache[this.locale][s];F=t[R===1?"one":"other"]}if(!this.cache[this.locale][s]&&this.updateFiles){this.cache[this.locale][s]={one:s,other:b};this._enqueueWrite({directory:this.directory,locale:this.locale,cb:cb})}else{cb()}const T=[F];if(~F.indexOf("%d"))T.push(R);return M.format.apply(M.format,T.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){if(!this.cache[this.locale])this._readLocaleFile();for(const s in t){if(Object.prototype.hasOwnProperty.call(t,s)){this.cache[this.locale][s]=t[s]}}}_taggedLiteral(t,...s){let b="";t.forEach((function(t,R){const F=s[R+1];b+=t;if(typeof F!=="undefined"){b+="%s"}}));return this.__.apply(this,[b].concat([].slice.call(s,1)))}_enqueueWrite(t){this.writeQueue.push(t);if(this.writeQueue.length===1)this._processWriteQueue()}_processWriteQueue(){const t=this;const s=this.writeQueue[0];const b=s.directory;const R=s.locale;const F=s.cb;const T=this._resolveLocaleFile(b,R);const L=JSON.stringify(this.cache[R],null,2);M.fs.writeFile(T,L,"utf-8",(function(s){t.writeQueue.shift();if(t.writeQueue.length>0)t._processWriteQueue();F(s)}))}_readLocaleFile(){let t={};const s=this._resolveLocaleFile(this.directory,this.locale);try{if(M.fs.readFileSync){t=JSON.parse(M.fs.readFileSync(s,"utf-8"))}}catch(b){if(b instanceof SyntaxError){b.message="syntax error in "+s}if(b.code==="ENOENT")t={};else throw b}this.cache[this.locale]=t}_resolveLocaleFile(t,s){let b=M.resolve(t,"./",s+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(b)&&~s.lastIndexOf("_")){const R=M.resolve(t,"./",s.split("_")[0]+".json");if(this._fileExistsSync(R))b=R}return b}_fileExistsSync(t){return M.exists(t)}}function y18n$1(t,s){M=s;const b=new Y18N(t);return{__:b.__.bind(b),__n:b.__n.bind(b),setLocale:b.setLocale.bind(b),getLocale:b.getLocale.bind(b),updateLocale:b.updateLocale.bind(b),locale:b.locale}}var L={fs:{readFileSync:R.readFileSync,writeFile:R.writeFile},format:F.format,resolve:T.resolve,exists:t=>{try{return R.statSync(t).isFile()}catch(t){return false}}};const y18n=t=>y18n$1(t,L);t.exports=y18n},9562:(t,s,b)=>{"use strict";var R=b(9491);class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}let F,T=[];function n(t,s,R,M){F=M;let L={};if(Object.prototype.hasOwnProperty.call(t,"extends")){if("string"!=typeof t.extends)return L;const M=/\.json|\..*rc$/.test(t.extends);let B=null;if(M)B=function(t,s){return F.path.resolve(t,s)}(s,t.extends);else try{B=b(9167).resolve(t.extends)}catch(s){return t}!function(t){if(T.indexOf(t)>-1)throw new e(`Circular extended configurations: '${t}'.`)}(B),T.push(B),L=M?JSON.parse(F.readFileSync(B,"utf8")):b(9167)(t.extends),delete t.extends,L=n(L,F.path.dirname(B),R,F)}return T=[],R?r(L,t):Object.assign({},L,t)}function r(t,s){const b={};function i(t){return t&&"object"==typeof t&&!Array.isArray(t)}Object.assign(b,t);for(const R of Object.keys(s))i(s[R])&&i(b[R])?b[R]=r(t[R],s[R]):b[R]=s[R];return b}function o(t){const s=t.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),b=/\.*[\][<>]/g,R=s.shift();if(!R)throw new Error(`No command found in: ${t}`);const F={cmd:R.replace(b,""),demanded:[],optional:[]};return s.forEach(((t,R)=>{let T=!1;t=t.replace(/\s/g,""),/\.+[\]>]/.test(t)&&R===s.length-1&&(T=!0),/^\[/.test(t)?F.optional.push({cmd:t.replace(b,"").split("|"),variadic:T}):F.demanded.push({cmd:t.replace(b,"").split("|"),variadic:T})})),F}const M=["first","second","third","fourth","fifth","sixth"];function h(t,s,b){try{let R=0;const[F,T,M]="object"==typeof t?[{demanded:[],optional:[]},t,s]:[o(`cmd ${t}`),s,b],L=[].slice.call(T);for(;L.length&&void 0===L[L.length-1];)L.pop();const B=M||L.length;if(B<F.demanded.length)throw new e(`Not enough arguments provided. Expected ${F.demanded.length} but received ${L.length}.`);const U=F.demanded.length+F.optional.length;if(B>U)throw new e(`Too many arguments provided. Expected max ${U} but received ${B}.`);F.demanded.forEach((t=>{const s=l(L.shift());0===t.cmd.filter((t=>t===s||"*"===t)).length&&c(s,t.cmd,R),R+=1})),F.optional.forEach((t=>{if(0===L.length)return;const s=l(L.shift());0===t.cmd.filter((t=>t===s||"*"===t)).length&&c(s,t.cmd,R),R+=1}))}catch(t){console.warn(t.stack)}}function l(t){return Array.isArray(t)?"array":null===t?"null":typeof t}function c(t,s,b){throw new e(`Invalid ${M[b]||"manyith"} argument. Expected ${s.join(" or ")} but received ${t}.`)}function f(t){return!!t&&!!t.then&&"function"==typeof t.then}function d(t,s,b,R){b.assert.notStrictEqual(t,s,R)}function u(t,s){s.assert.strictEqual(typeof t,"string")}function p(t){return Object.keys(t)}function g(t={},s=(()=>!0)){const b={};return p(t).forEach((R=>{s(R,t[R])&&(b[R]=t[R])})),b}function m(){return process.versions.electron&&!process.defaultApp?0:1}function y(){return process.argv[m()]}var L=Object.freeze({__proto__:null,hideBin:function(t){return t.slice(m()+1)},getProcessArgvBin:y});function v(t,s,b,R){if("a"===b&&!R)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof s?t!==s||!R:!s.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===b?R:"a"===b?R.call(t):R?R.value:s.get(t)}function O(t,s,b,R,F){if("m"===R)throw new TypeError("Private method is not writable");if("a"===R&&!F)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof s?t!==s||!F:!s.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===R?F.call(t,b):F?F.value=b:s.set(t,b),b}class w{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,s,b=!0,R=!1){if(h("<array|function> [boolean] [boolean] [boolean]",[t,s,b],arguments.length),Array.isArray(t)){for(let R=0;R<t.length;R++){if("function"!=typeof t[R])throw Error("middleware must be a function");const F=t[R];F.applyBeforeValidation=s,F.global=b}Array.prototype.push.apply(this.globalMiddleware,t)}else if("function"==typeof t){const F=t;F.applyBeforeValidation=s,F.global=b,F.mutates=R,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,s){const b=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((t=>{const R=[...b[s]||[],s];return!t.option||!R.includes(t.option)})),t.option=s,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const t=this.frozens.pop();void 0!==t&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter((t=>t.global))}}function C(t,s,b,R){return b.reduce(((t,b)=>{if(b.applyBeforeValidation!==R)return t;if(b.mutates){if(b.applied)return t;b.applied=!0}if(f(t))return t.then((t=>Promise.all([t,b(t,s)]))).then((([t,s])=>Object.assign(t,s)));{const R=b(t,s);return f(R)?R.then((s=>Object.assign(t,s))):Object.assign(t,R)}}),t)}function j(t,s,b=(t=>{throw t})){try{const b="function"==typeof t?t():t;return f(b)?b.then((t=>s(t))):s(b)}catch(t){return b(t)}}const B=/(^\*)|(^\$0)/;class _{constructor(t,s,b,R){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=R,this.usage=t,this.globalMiddleware=b,this.validation=s}addDirectory(t,s,b,R){"boolean"!=typeof(R=R||{}).recurse&&(R.recurse=!1),Array.isArray(R.extensions)||(R.extensions=["js"]);const F="function"==typeof R.visit?R.visit:t=>t;R.visit=(t,s,b)=>{const R=F(t,s,b);if(R){if(this.requireCache.has(s))return R;this.requireCache.add(s),this.addHandler(R)}return R},this.shim.requireDirectory({require:s,filename:b},t,R)}addHandler(t,s,b,R,F,T){let M=[];const L=function(t){return t?t.map((t=>(t.applyBeforeValidation=!1,t))):[]}(F);if(R=R||(()=>{}),Array.isArray(t))if(function(t){return t.every((t=>"string"==typeof t))}(t))[t,...M]=t;else for(const s of t)this.addHandler(s);else{if(function(t){return"object"==typeof t&&!Array.isArray(t)}(t)){let s=Array.isArray(t.command)||"string"==typeof t.command?t.command:this.moduleName(t);return t.aliases&&(s=[].concat(s).concat(t.aliases)),void this.addHandler(s,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated)}if(k(b))return void this.addHandler([t].concat(M),s,b.builder,b.handler,b.middlewares,b.deprecated)}if("string"==typeof t){const F=o(t);M=M.map((t=>o(t).cmd));let U=!1;const q=[F.cmd].concat(M).filter((t=>!B.test(t)||(U=!0,!1)));0===q.length&&U&&q.push("$0"),U&&(F.cmd=q[0],M=q.slice(1),t=t.replace(B,F.cmd)),M.forEach((t=>{this.aliasMap[t]=F.cmd})),!1!==s&&this.usage.command(t,s,U,M,T),this.handlers[F.cmd]={original:t,description:s,handler:R,builder:b||{},middlewares:L,deprecated:T,demanded:F.demanded,optional:F.optional},U&&(this.defaultCommand=this.handlers[F.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,s,b,R,F,T){const M=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,L=s.getInternalMethods().getContext(),B=L.commands.slice(),U=!t;t&&(L.commands.push(t),L.fullCommands.push(M.original));const q=this.applyBuilderUpdateUsageAndParse(U,M,s,b.aliases,B,R,F,T);return f(q)?q.then((t=>this.applyMiddlewareAndGetResult(U,M,t.innerArgv,L,F,t.aliases,s))):this.applyMiddlewareAndGetResult(U,M,q.innerArgv,L,F,q.aliases,s)}applyBuilderUpdateUsageAndParse(t,s,b,R,F,T,M,L){const B=s.builder;let U=b;if(x(B)){b.getInternalMethods().getUsageInstance().freeze();const q=B(b.getInternalMethods().reset(R),L);if(f(q))return q.then((R=>{var L;return U=(L=R)&&"function"==typeof L.getInternalMethods?R:b,this.parseAndUpdateUsage(t,s,U,F,T,M)}))}else(function(t){return"object"==typeof t})(B)&&(b.getInternalMethods().getUsageInstance().freeze(),U=b.getInternalMethods().reset(R),Object.keys(s.builder).forEach((t=>{U.option(t,B[t])})));return this.parseAndUpdateUsage(t,s,U,F,T,M)}parseAndUpdateUsage(t,s,b,R,F,T){t&&b.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(b)&&b.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(R,s),s.description);const M=b.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,F,T);return f(M)?M.then((t=>({aliases:b.parsed.aliases,innerArgv:t}))):{aliases:b.parsed.aliases,innerArgv:M}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===t.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(t,s){const b=B.test(s.original)?s.original.replace(B,"").trim():s.original,R=t.filter((t=>!B.test(t)));return R.push(b),`$0 ${R.join(" ")}`}handleValidationAndGetResult(t,s,b,R,F,T,M,L){if(!T.getInternalMethods().getHasOutput()){const s=T.getInternalMethods().runValidation(F,L,T.parsed.error,t);b=j(b,(t=>(s(t),t)))}if(s.handler&&!T.getInternalMethods().getHasOutput()){T.getInternalMethods().setHasOutput();const R=!!T.getOptions().configuration["populate--"];T.getInternalMethods().postProcess(b,R,!1,!1),b=j(b=C(b,T,M,!1),(t=>{const b=s.handler(t);return f(b)?b.then((()=>t)):t})),t||T.getInternalMethods().getUsageInstance().cacheHelpMessage(),f(b)&&!T.getInternalMethods().hasParseCallback()&&b.catch((t=>{try{T.getInternalMethods().getUsageInstance().fail(null,t)}catch(t){}}))}return t||(R.commands.pop(),R.fullCommands.pop()),b}applyMiddlewareAndGetResult(t,s,b,R,F,T,M){let L={};if(F)return b;M.getInternalMethods().getHasOutput()||(L=this.populatePositionals(s,b,R,M));const B=this.globalMiddleware.getMiddleware().slice(0).concat(s.middlewares),U=C(b,M,B,!0);return f(U)?U.then((b=>this.handleValidationAndGetResult(t,s,b,R,T,M,B,L))):this.handleValidationAndGetResult(t,s,U,R,T,M,B,L)}populatePositionals(t,s,b,R){s._=s._.slice(b.commands.length);const F=t.demanded.slice(0),T=t.optional.slice(0),M={};for(this.validation.positionalCount(F.length,s._.length);F.length;){const t=F.shift();this.populatePositional(t,s,M)}for(;T.length;){const t=T.shift();this.populatePositional(t,s,M)}return s._=b.commands.concat(s._.map((t=>""+t))),this.postProcessPositionals(s,M,this.cmdToParseOptions(t.original),R),M}populatePositional(t,s,b){const R=t.cmd[0];t.variadic?b[R]=s._.splice(0).map(String):s._.length&&(b[R]=[String(s._.shift())])}cmdToParseOptions(t){const s={array:[],default:{},alias:{},demand:{}},b=o(t);return b.demanded.forEach((t=>{const[b,...R]=t.cmd;t.variadic&&(s.array.push(b),s.default[b]=[]),s.alias[b]=R,s.demand[b]=!0})),b.optional.forEach((t=>{const[b,...R]=t.cmd;t.variadic&&(s.array.push(b),s.default[b]=[]),s.alias[b]=R})),s}postProcessPositionals(t,s,b,R){const F=Object.assign({},R.getOptions());F.default=Object.assign(b.default,F.default);for(const t of Object.keys(b.alias))F.alias[t]=(F.alias[t]||[]).concat(b.alias[t]);F.array=F.array.concat(b.array),F.config={};const T=[];if(Object.keys(s).forEach((t=>{s[t].map((s=>{F.configuration["unknown-options-as-args"]&&(F.key[t]=!0),T.push(`--${t}`),T.push(s)}))})),!T.length)return;const M=Object.assign({},F.configuration,{"populate--":!1}),L=this.shim.Parser.detailed(T,Object.assign({},F,{configuration:M}));if(L.error)R.getInternalMethods().getUsageInstance().fail(L.error.message,L.error);else{const b=Object.keys(s);Object.keys(s).forEach((t=>{b.push(...L.aliases[t])})),Object.keys(L.argv).forEach((F=>{b.includes(F)&&(s[F]||(s[F]=L.argv[F]),!this.isInConfigs(R,F)&&!this.isDefaulted(R,F)&&Object.prototype.hasOwnProperty.call(t,F)&&Object.prototype.hasOwnProperty.call(L.argv,F)&&(Array.isArray(t[F])||Array.isArray(L.argv[F]))?t[F]=[].concat(t[F],L.argv[F]):t[F]=L.argv[F])}))}}isDefaulted(t,s){const{default:b}=t.getOptions();return Object.prototype.hasOwnProperty.call(b,s)||Object.prototype.hasOwnProperty.call(b,this.shim.Parser.camelCase(s))}isInConfigs(t,s){const{configObjects:b}=t.getOptions();return b.some((t=>Object.prototype.hasOwnProperty.call(t,s)))||b.some((t=>Object.prototype.hasOwnProperty.call(t,this.shim.Parser.camelCase(s))))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){const s=B.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(s,this.defaultCommand.description)}const s=this.defaultCommand.builder;if(x(s))return s(t,!0);k(s)||Object.keys(s).forEach((b=>{t.option(b,s[b])}))}moduleName(t){const s=function(t){if(false){}for(let s,R=0,F=Object.keys(b.c);R<F.length;R++)if(s=b.c[F[R]],s.exports===t)return s;return null}(t);if(!s)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(s.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:s,desc:b}){for(const R of[t,s,b]){if("string"==typeof R||!1===R)return R;d(R,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const t=this.frozens.pop();d(t,void 0,this.shim),({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t)}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function k(t){return"object"==typeof t&&!!t.builder&&"function"==typeof t.handler}function x(t){return"function"==typeof t}function E(t){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach((s=>{const b=s;b._handle&&b.isTTY&&"function"==typeof b._handle.setBlocking&&b._handle.setBlocking(t)}))}function A(t){return"boolean"==typeof t}function P(t,s){const b=s.y18n.__,R={},F=[];R.failFn=function(t){F.push(t)};let T=null,M=null,L=!0;R.showHelpOnFail=function(s=!0,b){const[F,B]="string"==typeof s?[!0,s]:[s,b];return t.getInternalMethods().isGlobalContext()&&(M=B),T=B,L=F,R};let B=!1;R.fail=function(s,b){const U=t.getInternalMethods().getLoggerInstance();if(!F.length){if(t.getExitProcess()&&E(!0),!B){B=!0,L&&(t.showHelp("error"),U.error()),(s||b)&&U.error(s||b);const R=T||M;R&&((s||b)&&U.error(""),U.error(R))}if(b=b||new e(s),t.getExitProcess())return t.exit(1);if(t.getInternalMethods().hasParseCallback())return t.exit(1,b);throw b}for(let t=F.length-1;t>=0;--t){const T=F[t];if(A(T)){if(b)throw b;if(s)throw Error(s)}else T(s,b,R)}};let U=[],q=!1;R.usage=(t,s)=>null===t?(q=!0,U=[],R):(q=!1,U.push([t,s||""]),R),R.getUsage=()=>U,R.getUsageDisabled=()=>q,R.getPositionalGroupName=()=>b("Positionals:");let H=[];R.example=(t,s)=>{H.push([t,s||""])};let G=[];R.command=function(t,s,b,R,F=!1){b&&(G=G.map((t=>(t[2]=!1,t)))),G.push([t,s||"",b,R,F])},R.getCommands=()=>G;let V={};R.describe=function(t,s){Array.isArray(t)?t.forEach((t=>{R.describe(t,s)})):"object"==typeof t?Object.keys(t).forEach((s=>{R.describe(s,t[s])})):V[t]=s},R.getDescriptions=()=>V;let W=[];R.epilog=t=>{W.push(t)};let Y,z=!1;R.wrap=t=>{z=!0,Y=t},R.getWrap=()=>s.getEnv("YARGS_DISABLE_WRAP")?null:(z||(Y=function(){const t=80;return s.process.stdColumns?Math.min(t,s.process.stdColumns):t}(),z=!0),Y);const X="__yargsString__:";function O(t,b,R){let F=0;return Array.isArray(t)||(t=Object.values(t).map((t=>[t]))),t.forEach((t=>{F=Math.max(s.stringWidth(R?`${R} ${I(t[0])}`:I(t[0]))+$(t[0]),F)})),b&&(F=Math.min(F,parseInt((.5*b).toString(),10))),F}let J;function C(s){return t.getOptions().hiddenOptions.indexOf(s)<0||t.parsed.argv[t.getOptions().showHiddenOpt]}function j(t,s){let R=`[${b("default:")} `;if(void 0===t&&!s)return null;if(s)R+=s;else switch(typeof t){case"string":R+=`"${t}"`;break;case"object":R+=JSON.stringify(t);break;default:R+=t}return`${R}]`}R.deferY18nLookup=t=>X+t,R.help=function(){if(J)return J;!function(){const s=t.getDemandedOptions(),b=t.getOptions();(Object.keys(b.alias)||[]).forEach((F=>{b.alias[F].forEach((T=>{V[T]&&R.describe(F,V[T]),T in s&&t.demandOption(F,s[T]),b.boolean.includes(T)&&t.boolean(F),b.count.includes(T)&&t.count(F),b.string.includes(T)&&t.string(F),b.normalize.includes(T)&&t.normalize(F),b.array.includes(T)&&t.array(F),b.number.includes(T)&&t.number(F)}))}))}();const F=t.customScriptName?t.$0:s.path.basename(t.$0),T=t.getDemandedOptions(),M=t.getDemandedCommands(),L=t.getDeprecatedOptions(),B=t.getGroups(),Y=t.getOptions();let z=[];z=z.concat(Object.keys(V)),z=z.concat(Object.keys(T)),z=z.concat(Object.keys(M)),z=z.concat(Object.keys(Y.default)),z=z.filter(C),z=Object.keys(z.reduce(((t,s)=>("_"!==s&&(t[s]=!0),t)),{}));const K=R.getWrap(),Z=s.cliui({width:K,wrap:!!K});if(!q)if(U.length)U.forEach((t=>{Z.div({text:`${t[0].replace(/\$0/g,F)}`}),t[1]&&Z.div({text:`${t[1]}`,padding:[1,0,0,0]})})),Z.div();else if(G.length){let t=null;t=M._?`${F} <${b("command")}>\n`:`${F} [${b("command")}]\n`,Z.div(`${t}`)}if(G.length>1||1===G.length&&!G[0][2]){Z.div(b("Commands:"));const s=t.getInternalMethods().getContext(),R=s.commands.length?`${s.commands.join(" ")} `:"";!0===t.getInternalMethods().getParserConfiguration()["sort-commands"]&&(G=G.sort(((t,s)=>t[0].localeCompare(s[0]))));const T=F?`${F} `:"";G.forEach((t=>{const s=`${T}${R}${t[0].replace(/^\$0 ?/,"")}`;Z.span({text:s,padding:[0,2,0,2],width:O(G,K,`${F}${R}`)+4},{text:t[1]});const M=[];t[2]&&M.push(`[${b("default")}]`),t[3]&&t[3].length&&M.push(`[${b("aliases:")} ${t[3].join(", ")}]`),t[4]&&("string"==typeof t[4]?M.push(`[${b("deprecated: %s",t[4])}]`):M.push(`[${b("deprecated")}]`)),M.length?Z.div({text:M.join(" "),padding:[0,0,0,2],align:"right"}):Z.div()})),Z.div()}const Q=(Object.keys(Y.alias)||[]).concat(Object.keys(t.parsed.newAliases)||[]);z=z.filter((s=>!t.parsed.newAliases[s]&&Q.every((t=>-1===(Y.alias[t]||[]).indexOf(s)))));const ee=b("Options:");B[ee]||(B[ee]=[]),function(t,s,b,R){let F=[],T=null;Object.keys(b).forEach((t=>{F=F.concat(b[t])})),t.forEach((t=>{T=[t].concat(s[t]),T.some((t=>-1!==F.indexOf(t)))||b[R].push(t)}))}(z,Y.alias,B,ee);const k=t=>/^--/.test(I(t)),re=Object.keys(B).filter((t=>B[t].length>0)).map((t=>({groupName:t,normalizedKeys:B[t].filter(C).map((t=>{if(Q.includes(t))return t;for(let s,b=0;void 0!==(s=Q[b]);b++)if((Y.alias[s]||[]).includes(t))return s;return t}))}))).filter((({normalizedKeys:t})=>t.length>0)).map((({groupName:t,normalizedKeys:s})=>{const b=s.reduce(((s,b)=>(s[b]=[b].concat(Y.alias[b]||[]).map((s=>t===R.getPositionalGroupName()?s:(/^[0-9]$/.test(s)?Y.boolean.includes(b)?"-":"--":s.length>1?"--":"-")+s)).sort(((t,s)=>k(t)===k(s)?0:k(t)?1:-1)).join(", "),s)),{});return{groupName:t,normalizedKeys:s,switches:b}}));if(re.filter((({groupName:t})=>t!==R.getPositionalGroupName())).some((({normalizedKeys:t,switches:s})=>!t.every((t=>k(s[t])))))&&re.filter((({groupName:t})=>t!==R.getPositionalGroupName())).forEach((({normalizedKeys:t,switches:s})=>{t.forEach((t=>{var b,R;k(s[t])&&(s[t]=(b=s[t],R="-x, ".length,S(b)?{text:b.text,indentation:b.indentation+R}:{text:b,indentation:R}))}))})),re.forEach((({groupName:s,normalizedKeys:F,switches:M})=>{Z.div(s),F.forEach((s=>{const F=M[s];let B=V[s]||"",U=null;B.includes(X)&&(B=b(B.substring(X.length))),Y.boolean.includes(s)&&(U=`[${b("boolean")}]`),Y.count.includes(s)&&(U=`[${b("count")}]`),Y.string.includes(s)&&(U=`[${b("string")}]`),Y.normalize.includes(s)&&(U=`[${b("string")}]`),Y.array.includes(s)&&(U=`[${b("array")}]`),Y.number.includes(s)&&(U=`[${b("number")}]`);const q=[s in L?(H=L[s],"string"==typeof H?`[${b("deprecated: %s",H)}]`:`[${b("deprecated")}]`):null,U,s in T?`[${b("required")}]`:null,Y.choices&&Y.choices[s]?`[${b("choices:")} ${R.stringifiedValues(Y.choices[s])}]`:null,j(Y.default[s],Y.defaultDescription[s])].filter(Boolean).join(" ");var H;Z.span({text:I(F),padding:[0,2,0,2+$(F)],width:O(M,K)+4},B);const G=!0===t.getInternalMethods().getUsageConfiguration()["hide-types"];q&&!G?Z.div({text:q,padding:[0,0,0,2],align:"right"}):Z.div()})),Z.div()})),H.length&&(Z.div(b("Examples:")),H.forEach((t=>{t[0]=t[0].replace(/\$0/g,F)})),H.forEach((t=>{""===t[1]?Z.div({text:t[0],padding:[0,2,0,2]}):Z.div({text:t[0],padding:[0,2,0,2],width:O(H,K)+4},{text:t[1]})})),Z.div()),W.length>0){const t=W.map((t=>t.replace(/\$0/g,F))).join("\n");Z.div(`${t}\n`)}return Z.toString().replace(/\s*$/,"")},R.cacheHelpMessage=function(){J=this.help()},R.clearCachedHelpMessage=function(){J=void 0},R.hasCachedHelpMessage=function(){return!!J},R.showHelp=s=>{const b=t.getInternalMethods().getLoggerInstance();s||(s="error");("function"==typeof s?s:b[s])(R.help())},R.functionDescription=t=>["(",t.name?s.Parser.decamelize(t.name,"-"):b("generated-value"),")"].join(""),R.stringifiedValues=function(t,s){let b="";const R=s||", ",F=[].concat(t);return t&&F.length?(F.forEach((t=>{b.length&&(b+=R),b+=JSON.stringify(t)})),b):b};let K=null;R.version=t=>{K=t},R.showVersion=s=>{const b=t.getInternalMethods().getLoggerInstance();s||(s="error");("function"==typeof s?s:b[s])(K)},R.reset=function(t){return T=null,B=!1,U=[],q=!1,W=[],H=[],G=[],V=g(V,(s=>!t[s])),R};const Z=[];return R.freeze=function(){Z.push({failMessage:T,failureOutput:B,usages:U,usageDisabled:q,epilogs:W,examples:H,commands:G,descriptions:V})},R.unfreeze=function(t=!1){const s=Z.pop();s&&(t?(V={...s.descriptions,...V},G=[...s.commands,...G],U=[...s.usages,...U],H=[...s.examples,...H],W=[...s.epilogs,...W]):({failMessage:T,failureOutput:B,usages:U,usageDisabled:q,epilogs:W,examples:H,commands:G,descriptions:V}=s))},R}function S(t){return"object"==typeof t}function $(t){return S(t)?t.indentation:0}function I(t){return S(t)?t.text:t}class D{constructor(t,s,b,R){var F,T,M;this.yargs=t,this.usage=s,this.command=b,this.shim=R,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=null!==(M=(null===(F=this.shim.getEnv("SHELL"))||void 0===F?void 0:F.includes("zsh"))||(null===(T=this.shim.getEnv("ZSH_NAME"))||void 0===T?void 0:T.includes("zsh")))&&void 0!==M&&M}defaultCompletion(t,s,b,R){const F=this.command.getCommandHandlers();for(let s=0,b=t.length;s<b;++s)if(F[t[s]]&&F[t[s]].builder){const b=F[t[s]].builder;if(x(b)){this.indexAfterLastReset=s+1;const t=this.yargs.getInternalMethods().reset();return b(t,!0),t.argv}}const T=[];this.commandCompletions(T,t,b),this.optionCompletions(T,t,s,b),this.choicesFromOptionsCompletions(T,t,s,b),this.choicesFromPositionalsCompletions(T,t,s,b),R(null,T)}commandCompletions(t,s,b){const R=this.yargs.getInternalMethods().getContext().commands;b.match(/^-/)||R[R.length-1]===b||this.previousArgHasChoices(s)||this.usage.getCommands().forEach((b=>{const R=o(b[0]).cmd;if(-1===s.indexOf(R))if(this.zshShell){const s=b[1]||"";t.push(R.replace(/:/g,"\\:")+":"+s)}else t.push(R)}))}optionCompletions(t,s,b,R){if((R.match(/^-/)||""===R&&0===t.length)&&!this.previousArgHasChoices(s)){const b=this.yargs.getOptions(),F=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(b.key).forEach((T=>{const M=!!b.configuration["boolean-negation"]&&b.boolean.includes(T);F.includes(T)||b.hiddenOptions.includes(T)||this.argsContainKey(s,T,M)||(this.completeOptionKey(T,t,R),M&&b.default[T]&&this.completeOptionKey(`no-${T}`,t,R))}))}}choicesFromOptionsCompletions(t,s,b,R){if(this.previousArgHasChoices(s)){const b=this.getPreviousArgChoices(s);b&&b.length>0&&t.push(...b.map((t=>t.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(t,s,b,R){if(""===R&&t.length>0&&this.previousArgHasChoices(s))return;const F=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],T=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),M=F[b._.length-T-1];if(!M)return;const L=this.yargs.getOptions().choices[M]||[];for(const s of L)s.startsWith(R)&&t.push(s.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let s=t[t.length-1],b="";if(!s.startsWith("-")&&t.length>1&&(b=s,s=t[t.length-2]),!s.startsWith("-"))return;const R=s.replace(/^-+/,""),F=this.yargs.getOptions(),T=[R,...this.yargs.getAliases()[R]||[]];let M;for(const t of T)if(Object.prototype.hasOwnProperty.call(F.key,t)&&Array.isArray(F.choices[t])){M=F.choices[t];break}return M?M.filter((t=>!b||t.startsWith(b))):void 0}previousArgHasChoices(t){const s=this.getPreviousArgChoices(t);return void 0!==s&&s.length>0}argsContainKey(t,s,b){const i=s=>-1!==t.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s);if(i(s))return!0;if(b&&i(`no-${s}`))return!0;if(this.aliases)for(const t of this.aliases[s])if(i(t))return!0;return!1}completeOptionKey(t,s,b){var R,F,T;const M=this.usage.getDescriptions(),L=!/^--/.test(b)&&(t=>/^[^0-9]$/.test(t))(t)?"-":"--";if(this.zshShell){const b=null===(R=null==this?void 0:this.aliases)||void 0===R?void 0:R[t].find((t=>{const s=M[t];return"string"==typeof s&&s.length>0})),B=b?M[b]:void 0,U=null!==(T=null!==(F=M[t])&&void 0!==F?F:B)&&void 0!==T?T:"";s.push(L+`${t.replace(/:/g,"\\:")}:${U.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`)}else s.push(L+t)}customCompletion(t,s,b,R){if(d(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const t=this.customCompletionFunction(b,s);return f(t)?t.then((t=>{this.shim.process.nextTick((()=>{R(null,t)}))})).catch((t=>{this.shim.process.nextTick((()=>{R(t,void 0)}))})):R(null,t)}return function(t){return t.length>3}(this.customCompletionFunction)?this.customCompletionFunction(b,s,((F=R)=>this.defaultCompletion(t,s,b,F)),(t=>{R(null,t)})):this.customCompletionFunction(b,s,(t=>{R(null,t)}))}getCompletion(t,s){const b=t.length?t[t.length-1]:"",R=this.yargs.parse(t,!0),F=this.customCompletionFunction?R=>this.customCompletion(t,R,b,s):R=>this.defaultCompletion(t,R,b,s);return f(R)?R.then(F):F(R)}generateCompletionScript(t,s){let b=this.zshShell?'#compdef {{app_name}}\n###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n':'###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';const R=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),b=b.replace(/{{app_name}}/g,R),b=b.replace(/{{completion_command}}/g,s),b.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}}function N(t,s){if(0===t.length)return s.length;if(0===s.length)return t.length;const b=[];let R,F;for(R=0;R<=s.length;R++)b[R]=[R];for(F=0;F<=t.length;F++)b[0][F]=F;for(R=1;R<=s.length;R++)for(F=1;F<=t.length;F++)s.charAt(R-1)===t.charAt(F-1)?b[R][F]=b[R-1][F-1]:R>1&&F>1&&s.charAt(R-2)===t.charAt(F-1)&&s.charAt(R-1)===t.charAt(F-2)?b[R][F]=b[R-2][F-2]+1:b[R][F]=Math.min(b[R-1][F-1]+1,Math.min(b[R][F-1]+1,b[R-1][F]+1));return b[s.length][t.length]}const U=["$0","--","_"];var q,H,G,V,W,Y,z,X,J,K,Z,Q,ee,re,ne,ie,se,oe,ae,ue,le,ce,fe,he,pe,de,ge,me,De,ve,ye,Ee,be,we,Oe;const Ce=Symbol("copyDoubleDash"),Ae=Symbol("copyDoubleDash"),_e=Symbol("deleteFromParserHintObject"),Se=Symbol("emitWarning"),xe=Symbol("freeze"),Re=Symbol("getDollarZero"),Fe=Symbol("getParserConfiguration"),ke=Symbol("getUsageConfiguration"),Ie=Symbol("guessLocale"),Pe=Symbol("guessVersion"),Te=Symbol("parsePositionalNumbers"),Ne=Symbol("pkgUp"),je=Symbol("populateParserHintArray"),Me=Symbol("populateParserHintSingleValueDictionary"),Le=Symbol("populateParserHintArrayDictionary"),$e=Symbol("populateParserHintDictionary"),Be=Symbol("sanitizeKey"),Ue=Symbol("setKey"),qe=Symbol("unfreeze"),He=Symbol("validateAsync"),Ge=Symbol("getCommandInstance"),Ve=Symbol("getContext"),We=Symbol("getHasOutput"),Ye=Symbol("getLoggerInstance"),ze=Symbol("getParseContext"),Xe=Symbol("getUsageInstance"),Je=Symbol("getValidationInstance"),Ke=Symbol("hasParseCallback"),Ze=Symbol("isGlobalContext"),Qe=Symbol("postProcess"),et=Symbol("rebase"),tt=Symbol("reset"),rt=Symbol("runYargsParserAndExecuteCommands"),nt=Symbol("runValidation"),it=Symbol("setHasOutput"),st=Symbol("kTrackManuallySetKeys");class te{constructor(t=[],s,b,R){this.customScriptName=!1,this.parsed=!1,q.set(this,void 0),H.set(this,void 0),G.set(this,{commands:[],fullCommands:[]}),V.set(this,null),W.set(this,null),Y.set(this,"show-hidden"),z.set(this,null),X.set(this,!0),J.set(this,{}),K.set(this,!0),Z.set(this,[]),Q.set(this,void 0),ee.set(this,{}),re.set(this,!1),ne.set(this,null),ie.set(this,!0),se.set(this,void 0),oe.set(this,""),ae.set(this,void 0),ue.set(this,void 0),le.set(this,{}),ce.set(this,null),fe.set(this,null),he.set(this,{}),pe.set(this,{}),de.set(this,void 0),ge.set(this,!1),me.set(this,void 0),De.set(this,!1),ve.set(this,!1),ye.set(this,!1),Ee.set(this,void 0),be.set(this,{}),we.set(this,null),Oe.set(this,void 0),O(this,me,R,"f"),O(this,de,t,"f"),O(this,H,s,"f"),O(this,ue,b,"f"),O(this,Q,new w(this),"f"),this.$0=this[Re](),this[tt](),O(this,q,v(this,q,"f"),"f"),O(this,Ee,v(this,Ee,"f"),"f"),O(this,Oe,v(this,Oe,"f"),"f"),O(this,ae,v(this,ae,"f"),"f"),v(this,ae,"f").showHiddenOpt=v(this,Y,"f"),O(this,se,this[Ae](),"f")}addHelpOpt(t,s){return h("[string|boolean] [string]",[t,s],arguments.length),v(this,ne,"f")&&(this[_e](v(this,ne,"f")),O(this,ne,null,"f")),!1===t&&void 0===s||(O(this,ne,"string"==typeof t?t:"help","f"),this.boolean(v(this,ne,"f")),this.describe(v(this,ne,"f"),s||v(this,Ee,"f").deferY18nLookup("Show help"))),this}help(t,s){return this.addHelpOpt(t,s)}addShowHiddenOpt(t,s){if(h("[string|boolean] [string]",[t,s],arguments.length),!1===t&&void 0===s)return this;const b="string"==typeof t?t:v(this,Y,"f");return this.boolean(b),this.describe(b,s||v(this,Ee,"f").deferY18nLookup("Show hidden options")),v(this,ae,"f").showHiddenOpt=b,this}showHidden(t,s){return this.addShowHiddenOpt(t,s)}alias(t,s){return h("<object|string|array> [string|array]",[t,s],arguments.length),this[Le](this.alias.bind(this),"alias",t,s),this}array(t){return h("<array|string>",[t],arguments.length),this[je]("array",t),this[st](t),this}boolean(t){return h("<array|string>",[t],arguments.length),this[je]("boolean",t),this[st](t),this}check(t,s){return h("<function> [boolean]",[t,s],arguments.length),this.middleware(((s,b)=>j((()=>t(s,b.getOptions())),(b=>(b?("string"==typeof b||b instanceof Error)&&v(this,Ee,"f").fail(b.toString(),b):v(this,Ee,"f").fail(v(this,me,"f").y18n.__("Argument check failed: %s",t.toString())),s)),(t=>(v(this,Ee,"f").fail(t.message?t.message:t.toString(),t),s)))),!1,s),this}choices(t,s){return h("<object|string|array> [string|array]",[t,s],arguments.length),this[Le](this.choices.bind(this),"choices",t,s),this}coerce(t,s){if(h("<object|string|array> [function]",[t,s],arguments.length),Array.isArray(t)){if(!s)throw new e("coerce callback must be provided");for(const b of t)this.coerce(b,s);return this}if("object"==typeof t){for(const s of Object.keys(t))this.coerce(s,t[s]);return this}if(!s)throw new e("coerce callback must be provided");return v(this,ae,"f").key[t]=!0,v(this,Q,"f").addCoerceMiddleware(((b,R)=>{let F;return Object.prototype.hasOwnProperty.call(b,t)?j((()=>(F=R.getAliases(),s(b[t]))),(s=>{b[t]=s;const T=R.getInternalMethods().getParserConfiguration()["strip-aliased"];if(F[t]&&!0!==T)for(const R of F[t])b[R]=s;return b}),(t=>{throw new e(t.message)})):b}),t),this}conflicts(t,s){return h("<string|object> [string|array]",[t,s],arguments.length),v(this,Oe,"f").conflicts(t,s),this}config(t="config",s,b){return h("[object|string] [string|function] [function]",[t,s,b],arguments.length),"object"!=typeof t||Array.isArray(t)?("function"==typeof s&&(b=s,s=void 0),this.describe(t,s||v(this,Ee,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach((t=>{v(this,ae,"f").config[t]=b||!0})),this):(t=n(t,v(this,H,"f"),this[Fe]()["deep-merge-config"]||!1,v(this,me,"f")),v(this,ae,"f").configObjects=(v(this,ae,"f").configObjects||[]).concat(t),this)}completion(t,s,b){return h("[string] [string|boolean|function] [function]",[t,s,b],arguments.length),"function"==typeof s&&(b=s,s=void 0),O(this,W,t||v(this,W,"f")||"completion","f"),s||!1===s||(s="generate completion script"),this.command(v(this,W,"f"),s),b&&v(this,V,"f").registerFunction(b),this}command(t,s,b,R,F,T){return h("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,s,b,R,F,T],arguments.length),v(this,q,"f").addHandler(t,s,b,R,F,T),this}commands(t,s,b,R,F,T){return this.command(t,s,b,R,F,T)}commandDir(t,s){h("<string> [object]",[t,s],arguments.length);const b=v(this,ue,"f")||v(this,me,"f").require;return v(this,q,"f").addDirectory(t,b,v(this,me,"f").getCallerFile(),s),this}count(t){return h("<array|string>",[t],arguments.length),this[je]("count",t),this[st](t),this}default(t,s,b){return h("<object|string|array> [*] [string]",[t,s,b],arguments.length),b&&(u(t,v(this,me,"f")),v(this,ae,"f").defaultDescription[t]=b),"function"==typeof s&&(u(t,v(this,me,"f")),v(this,ae,"f").defaultDescription[t]||(v(this,ae,"f").defaultDescription[t]=v(this,Ee,"f").functionDescription(s)),s=s.call()),this[Me](this.default.bind(this),"default",t,s),this}defaults(t,s,b){return this.default(t,s,b)}demandCommand(t=1,s,b,R){return h("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,s,b,R],arguments.length),"number"!=typeof s&&(b=s,s=1/0),this.global("_",!1),v(this,ae,"f").demandedCommands._={min:t,max:s,minMsg:b,maxMsg:R},this}demand(t,s,b){return Array.isArray(s)?(s.forEach((t=>{d(b,!0,v(this,me,"f")),this.demandOption(t,b)})),s=1/0):"number"!=typeof s&&(b=s,s=1/0),"number"==typeof t?(d(b,!0,v(this,me,"f")),this.demandCommand(t,s,b,b)):Array.isArray(t)?t.forEach((t=>{d(b,!0,v(this,me,"f")),this.demandOption(t,b)})):"string"==typeof b?this.demandOption(t,b):!0!==b&&void 0!==b||this.demandOption(t),this}demandOption(t,s){return h("<object|string|array> [string]",[t,s],arguments.length),this[Me](this.demandOption.bind(this),"demandedOptions",t,s),this}deprecateOption(t,s){return h("<string> [string|boolean]",[t,s],arguments.length),v(this,ae,"f").deprecatedOptions[t]=s,this}describe(t,s){return h("<object|string|array> [string]",[t,s],arguments.length),this[Ue](t,!0),v(this,Ee,"f").describe(t,s),this}detectLocale(t){return h("<boolean>",[t],arguments.length),O(this,X,t,"f"),this}env(t){return h("[string|boolean]",[t],arguments.length),!1===t?delete v(this,ae,"f").envPrefix:v(this,ae,"f").envPrefix=t||"",this}epilogue(t){return h("<string>",[t],arguments.length),v(this,Ee,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,s){return h("<string|array> [string]",[t,s],arguments.length),Array.isArray(t)?t.forEach((t=>this.example(...t))):v(this,Ee,"f").example(t,s),this}exit(t,s){O(this,re,!0,"f"),O(this,z,s,"f"),v(this,K,"f")&&v(this,me,"f").process.exit(t)}exitProcess(t=!0){return h("[boolean]",[t],arguments.length),O(this,K,t,"f"),this}fail(t){if(h("<function|boolean>",[t],arguments.length),"boolean"==typeof t&&!1!==t)throw new e("Invalid first argument. Expected function or boolean 'false'");return v(this,Ee,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,s){return h("<array> [function]",[t,s],arguments.length),s?v(this,V,"f").getCompletion(t,s):new Promise(((s,b)=>{v(this,V,"f").getCompletion(t,((t,R)=>{t?b(t):s(R)}))}))}getDemandedOptions(){return h([],0),v(this,ae,"f").demandedOptions}getDemandedCommands(){return h([],0),v(this,ae,"f").demandedCommands}getDeprecatedOptions(){return h([],0),v(this,ae,"f").deprecatedOptions}getDetectLocale(){return v(this,X,"f")}getExitProcess(){return v(this,K,"f")}getGroups(){return Object.assign({},v(this,ee,"f"),v(this,pe,"f"))}getHelp(){if(O(this,re,!0,"f"),!v(this,Ee,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[rt](v(this,de,"f"),void 0,void 0,0,!0);if(f(t))return t.then((()=>v(this,Ee,"f").help()))}const t=v(this,q,"f").runDefaultBuilderOn(this);if(f(t))return t.then((()=>v(this,Ee,"f").help()))}return Promise.resolve(v(this,Ee,"f").help())}getOptions(){return v(this,ae,"f")}getStrict(){return v(this,De,"f")}getStrictCommands(){return v(this,ve,"f")}getStrictOptions(){return v(this,ye,"f")}global(t,s){return h("<string|array> [boolean]",[t,s],arguments.length),t=[].concat(t),!1!==s?v(this,ae,"f").local=v(this,ae,"f").local.filter((s=>-1===t.indexOf(s))):t.forEach((t=>{v(this,ae,"f").local.includes(t)||v(this,ae,"f").local.push(t)})),this}group(t,s){h("<string|array> <string>",[t,s],arguments.length);const b=v(this,pe,"f")[s]||v(this,ee,"f")[s];v(this,pe,"f")[s]&&delete v(this,pe,"f")[s];const R={};return v(this,ee,"f")[s]=(b||[]).concat(t).filter((t=>!R[t]&&(R[t]=!0))),this}hide(t){return h("<string>",[t],arguments.length),v(this,ae,"f").hiddenOptions.push(t),this}implies(t,s){return h("<string|object> [number|string|array]",[t,s],arguments.length),v(this,Oe,"f").implies(t,s),this}locale(t){return h("[string]",[t],arguments.length),void 0===t?(this[Ie](),v(this,me,"f").y18n.getLocale()):(O(this,X,!1,"f"),v(this,me,"f").y18n.setLocale(t),this)}middleware(t,s,b){return v(this,Q,"f").addMiddleware(t,!!s,b)}nargs(t,s){return h("<string|object|array> [number]",[t,s],arguments.length),this[Me](this.nargs.bind(this),"narg",t,s),this}normalize(t){return h("<array|string>",[t],arguments.length),this[je]("normalize",t),this}number(t){return h("<array|string>",[t],arguments.length),this[je]("number",t),this[st](t),this}option(t,s){if(h("<string|object> [object]",[t,s],arguments.length),"object"==typeof t)Object.keys(t).forEach((s=>{this.options(s,t[s])}));else{"object"!=typeof s&&(s={}),this[st](t),!v(this,we,"f")||"version"!==t&&"version"!==(null==s?void 0:s.alias)||this[Se](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join("\n"),void 0,"versionWarning"),v(this,ae,"f").key[t]=!0,s.alias&&this.alias(t,s.alias);const b=s.deprecate||s.deprecated;b&&this.deprecateOption(t,b);const R=s.demand||s.required||s.require;R&&this.demand(t,R),s.demandOption&&this.demandOption(t,"string"==typeof s.demandOption?s.demandOption:void 0),s.conflicts&&this.conflicts(t,s.conflicts),"default"in s&&this.default(t,s.default),void 0!==s.implies&&this.implies(t,s.implies),void 0!==s.nargs&&this.nargs(t,s.nargs),s.config&&this.config(t,s.configParser),s.normalize&&this.normalize(t),s.choices&&this.choices(t,s.choices),s.coerce&&this.coerce(t,s.coerce),s.group&&this.group(t,s.group),(s.boolean||"boolean"===s.type)&&(this.boolean(t),s.alias&&this.boolean(s.alias)),(s.array||"array"===s.type)&&(this.array(t),s.alias&&this.array(s.alias)),(s.number||"number"===s.type)&&(this.number(t),s.alias&&this.number(s.alias)),(s.string||"string"===s.type)&&(this.string(t),s.alias&&this.string(s.alias)),(s.count||"count"===s.type)&&this.count(t),"boolean"==typeof s.global&&this.global(t,s.global),s.defaultDescription&&(v(this,ae,"f").defaultDescription[t]=s.defaultDescription),s.skipValidation&&this.skipValidation(t);const F=s.describe||s.description||s.desc,T=v(this,Ee,"f").getDescriptions();Object.prototype.hasOwnProperty.call(T,t)&&"string"!=typeof F||this.describe(t,F),s.hidden&&this.hide(t),s.requiresArg&&this.requiresArg(t)}return this}options(t,s){return this.option(t,s)}parse(t,s,b){h("[string|array] [function|boolean|object] [function]",[t,s,b],arguments.length),this[xe](),void 0===t&&(t=v(this,de,"f")),"object"==typeof s&&(O(this,fe,s,"f"),s=b),"function"==typeof s&&(O(this,ce,s,"f"),s=!1),s||O(this,de,t,"f"),v(this,ce,"f")&&O(this,K,!1,"f");const R=this[rt](t,!!s),F=this.parsed;return v(this,V,"f").setParsed(this.parsed),f(R)?R.then((t=>(v(this,ce,"f")&&v(this,ce,"f").call(this,v(this,z,"f"),t,v(this,oe,"f")),t))).catch((t=>{throw v(this,ce,"f")&&v(this,ce,"f")(t,this.parsed.argv,v(this,oe,"f")),t})).finally((()=>{this[qe](),this.parsed=F})):(v(this,ce,"f")&&v(this,ce,"f").call(this,v(this,z,"f"),R,v(this,oe,"f")),this[qe](),this.parsed=F,R)}parseAsync(t,s,b){const R=this.parse(t,s,b);return f(R)?R:Promise.resolve(R)}parseSync(t,s,b){const R=this.parse(t,s,b);if(f(R))throw new e(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return R}parserConfiguration(t){return h("<object>",[t],arguments.length),O(this,le,t,"f"),this}pkgConf(t,s){h("<string> [string]",[t,s],arguments.length);let b=null;const R=this[Ne](s||v(this,H,"f"));return R[t]&&"object"==typeof R[t]&&(b=n(R[t],s||v(this,H,"f"),this[Fe]()["deep-merge-config"]||!1,v(this,me,"f")),v(this,ae,"f").configObjects=(v(this,ae,"f").configObjects||[]).concat(b)),this}positional(t,s){h("<string> <object>",[t,s],arguments.length);const b=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];s=g(s,((t,s)=>!("type"===t&&!["string","number","boolean"].includes(s))&&b.includes(t)));const R=v(this,G,"f").fullCommands[v(this,G,"f").fullCommands.length-1],F=R?v(this,q,"f").cmdToParseOptions(R):{array:[],alias:{},default:{},demand:{}};return p(F).forEach((b=>{const R=F[b];Array.isArray(R)?-1!==R.indexOf(t)&&(s[b]=!0):R[t]&&!(b in s)&&(s[b]=R[t])})),this.group(t,v(this,Ee,"f").getPositionalGroupName()),this.option(t,s)}recommendCommands(t=!0){return h("[boolean]",[t],arguments.length),O(this,ge,t,"f"),this}required(t,s,b){return this.demand(t,s,b)}require(t,s,b){return this.demand(t,s,b)}requiresArg(t){return h("<array|string|object> [number]",[t],arguments.length),"string"==typeof t&&v(this,ae,"f").narg[t]||this[Me](this.requiresArg.bind(this),"narg",t,NaN),this}showCompletionScript(t,s){return h("[string] [string]",[t,s],arguments.length),t=t||this.$0,v(this,se,"f").log(v(this,V,"f").generateCompletionScript(t,s||v(this,W,"f")||"completion")),this}showHelp(t){if(h("[string|function]",[t],arguments.length),O(this,re,!0,"f"),!v(this,Ee,"f").hasCachedHelpMessage()){if(!this.parsed){const s=this[rt](v(this,de,"f"),void 0,void 0,0,!0);if(f(s))return s.then((()=>{v(this,Ee,"f").showHelp(t)})),this}const s=v(this,q,"f").runDefaultBuilderOn(this);if(f(s))return s.then((()=>{v(this,Ee,"f").showHelp(t)})),this}return v(this,Ee,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,s){return h("[boolean|string] [string]",[t,s],arguments.length),v(this,Ee,"f").showHelpOnFail(t,s),this}showVersion(t){return h("[string|function]",[t],arguments.length),v(this,Ee,"f").showVersion(t),this}skipValidation(t){return h("<array|string>",[t],arguments.length),this[je]("skipValidation",t),this}strict(t){return h("[boolean]",[t],arguments.length),O(this,De,!1!==t,"f"),this}strictCommands(t){return h("[boolean]",[t],arguments.length),O(this,ve,!1!==t,"f"),this}strictOptions(t){return h("[boolean]",[t],arguments.length),O(this,ye,!1!==t,"f"),this}string(t){return h("<array|string>",[t],arguments.length),this[je]("string",t),this[st](t),this}terminalWidth(){return h([],0),v(this,me,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return h("<object>",[t],arguments.length),O(this,X,!1,"f"),v(this,me,"f").y18n.updateLocale(t),this}usage(t,s,b,R){if(h("<string|null|undefined> [string|boolean] [function|object] [function]",[t,s,b,R],arguments.length),void 0!==s){if(d(t,null,v(this,me,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,s,b,R);throw new e(".usage() description must start with $0 if being used as alias for .command()")}return v(this,Ee,"f").usage(t),this}usageConfiguration(t){return h("<object>",[t],arguments.length),O(this,be,t,"f"),this}version(t,s,b){const R="version";if(h("[boolean|string] [string] [string]",[t,s,b],arguments.length),v(this,we,"f")&&(this[_e](v(this,we,"f")),v(this,Ee,"f").version(void 0),O(this,we,null,"f")),0===arguments.length)b=this[Pe](),t=R;else if(1===arguments.length){if(!1===t)return this;b=t,t=R}else 2===arguments.length&&(b=s,s=void 0);return O(this,we,"string"==typeof t?t:R,"f"),s=s||v(this,Ee,"f").deferY18nLookup("Show version number"),v(this,Ee,"f").version(b||void 0),this.boolean(v(this,we,"f")),this.describe(v(this,we,"f"),s),this}wrap(t){return h("<number|null|undefined>",[t],arguments.length),v(this,Ee,"f").wrap(t),this}[(q=new WeakMap,H=new WeakMap,G=new WeakMap,V=new WeakMap,W=new WeakMap,Y=new WeakMap,z=new WeakMap,X=new WeakMap,J=new WeakMap,K=new WeakMap,Z=new WeakMap,Q=new WeakMap,ee=new WeakMap,re=new WeakMap,ne=new WeakMap,ie=new WeakMap,se=new WeakMap,oe=new WeakMap,ae=new WeakMap,ue=new WeakMap,le=new WeakMap,ce=new WeakMap,fe=new WeakMap,he=new WeakMap,pe=new WeakMap,de=new WeakMap,ge=new WeakMap,me=new WeakMap,De=new WeakMap,ve=new WeakMap,ye=new WeakMap,Ee=new WeakMap,be=new WeakMap,we=new WeakMap,Oe=new WeakMap,Ce)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch(t){}return t}[Ae](){return{log:(...t)=>{this[Ke]()||console.log(...t),O(this,re,!0,"f"),v(this,oe,"f").length&&O(this,oe,v(this,oe,"f")+"\n","f"),O(this,oe,v(this,oe,"f")+t.join(" "),"f")},error:(...t)=>{this[Ke]()||console.error(...t),O(this,re,!0,"f"),v(this,oe,"f").length&&O(this,oe,v(this,oe,"f")+"\n","f"),O(this,oe,v(this,oe,"f")+t.join(" "),"f")}}}[_e](t){p(v(this,ae,"f")).forEach((s=>{if("configObjects"===s)return;const b=v(this,ae,"f")[s];Array.isArray(b)?b.includes(t)&&b.splice(b.indexOf(t),1):"object"==typeof b&&delete b[t]})),delete v(this,Ee,"f").getDescriptions()[t]}[Se](t,s,b){v(this,J,"f")[b]||(v(this,me,"f").process.emitWarning(t,s),v(this,J,"f")[b]=!0)}[xe](){v(this,Z,"f").push({options:v(this,ae,"f"),configObjects:v(this,ae,"f").configObjects.slice(0),exitProcess:v(this,K,"f"),groups:v(this,ee,"f"),strict:v(this,De,"f"),strictCommands:v(this,ve,"f"),strictOptions:v(this,ye,"f"),completionCommand:v(this,W,"f"),output:v(this,oe,"f"),exitError:v(this,z,"f"),hasOutput:v(this,re,"f"),parsed:this.parsed,parseFn:v(this,ce,"f"),parseContext:v(this,fe,"f")}),v(this,Ee,"f").freeze(),v(this,Oe,"f").freeze(),v(this,q,"f").freeze(),v(this,Q,"f").freeze()}[Re](){let t,s="";return t=/\b(node|iojs|electron)(\.exe)?$/.test(v(this,me,"f").process.argv()[0])?v(this,me,"f").process.argv().slice(1,2):v(this,me,"f").process.argv().slice(0,1),s=t.map((t=>{const s=this[et](v(this,H,"f"),t);return t.match(/^(\/|([a-zA-Z]:)?\\)/)&&s.length<t.length?s:t})).join(" ").trim(),v(this,me,"f").getEnv("_")&&v(this,me,"f").getProcessArgvBin()===v(this,me,"f").getEnv("_")&&(s=v(this,me,"f").getEnv("_").replace(`${v(this,me,"f").path.dirname(v(this,me,"f").process.execPath())}/`,"")),s}[Fe](){return v(this,le,"f")}[ke](){return v(this,be,"f")}[Ie](){if(!v(this,X,"f"))return;const t=v(this,me,"f").getEnv("LC_ALL")||v(this,me,"f").getEnv("LC_MESSAGES")||v(this,me,"f").getEnv("LANG")||v(this,me,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[Pe](){return this[Ne]().version||"unknown"}[Te](t){const s=t["--"]?t["--"]:t._;for(let t,b=0;void 0!==(t=s[b]);b++)v(this,me,"f").Parser.looksLikeNumber(t)&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))&&(s[b]=Number(t));return t}[Ne](t){const s=t||"*";if(v(this,he,"f")[s])return v(this,he,"f")[s];let b={};try{let s=t||v(this,me,"f").mainFilename;!t&&v(this,me,"f").path.extname(s)&&(s=v(this,me,"f").path.dirname(s));const R=v(this,me,"f").findUp(s,((t,s)=>s.includes("package.json")?"package.json":void 0));d(R,void 0,v(this,me,"f")),b=JSON.parse(v(this,me,"f").readFileSync(R,"utf8"))}catch(t){}return v(this,he,"f")[s]=b||{},v(this,he,"f")[s]}[je](t,s){(s=[].concat(s)).forEach((s=>{s=this[Be](s),v(this,ae,"f")[t].push(s)}))}[Me](t,s,b,R){this[$e](t,s,b,R,((t,s,b)=>{v(this,ae,"f")[t][s]=b}))}[Le](t,s,b,R){this[$e](t,s,b,R,((t,s,b)=>{v(this,ae,"f")[t][s]=(v(this,ae,"f")[t][s]||[]).concat(b)}))}[$e](t,s,b,R,F){if(Array.isArray(b))b.forEach((s=>{t(s,R)}));else if((t=>"object"==typeof t)(b))for(const s of p(b))t(s,b[s]);else F(s,this[Be](b),R)}[Be](t){return"__proto__"===t?"___proto___":t}[Ue](t,s){return this[Me](this[Ue].bind(this),"key",t,s),this}[qe](){var t,s,b,R,F,T,M,L,B,U,H,G;const V=v(this,Z,"f").pop();let Y;d(V,void 0,v(this,me,"f")),t=this,s=this,b=this,R=this,F=this,T=this,M=this,L=this,B=this,U=this,H=this,G=this,({options:{set value(s){O(t,ae,s,"f")}}.value,configObjects:Y,exitProcess:{set value(t){O(s,K,t,"f")}}.value,groups:{set value(t){O(b,ee,t,"f")}}.value,output:{set value(t){O(R,oe,t,"f")}}.value,exitError:{set value(t){O(F,z,t,"f")}}.value,hasOutput:{set value(t){O(T,re,t,"f")}}.value,parsed:this.parsed,strict:{set value(t){O(M,De,t,"f")}}.value,strictCommands:{set value(t){O(L,ve,t,"f")}}.value,strictOptions:{set value(t){O(B,ye,t,"f")}}.value,completionCommand:{set value(t){O(U,W,t,"f")}}.value,parseFn:{set value(t){O(H,ce,t,"f")}}.value,parseContext:{set value(t){O(G,fe,t,"f")}}.value}=V),v(this,ae,"f").configObjects=Y,v(this,Ee,"f").unfreeze(),v(this,Oe,"f").unfreeze(),v(this,q,"f").unfreeze(),v(this,Q,"f").unfreeze()}[He](t,s){return j(s,(s=>(t(s),s)))}getInternalMethods(){return{getCommandInstance:this[Ge].bind(this),getContext:this[Ve].bind(this),getHasOutput:this[We].bind(this),getLoggerInstance:this[Ye].bind(this),getParseContext:this[ze].bind(this),getParserConfiguration:this[Fe].bind(this),getUsageConfiguration:this[ke].bind(this),getUsageInstance:this[Xe].bind(this),getValidationInstance:this[Je].bind(this),hasParseCallback:this[Ke].bind(this),isGlobalContext:this[Ze].bind(this),postProcess:this[Qe].bind(this),reset:this[tt].bind(this),runValidation:this[nt].bind(this),runYargsParserAndExecuteCommands:this[rt].bind(this),setHasOutput:this[it].bind(this)}}[Ge](){return v(this,q,"f")}[Ve](){return v(this,G,"f")}[We](){return v(this,re,"f")}[Ye](){return v(this,se,"f")}[ze](){return v(this,fe,"f")||{}}[Xe](){return v(this,Ee,"f")}[Je](){return v(this,Oe,"f")}[Ke](){return!!v(this,ce,"f")}[Ze](){return v(this,ie,"f")}[Qe](t,s,b,R){if(b)return t;if(f(t))return t;s||(t=this[Ce](t));return(this[Fe]()["parse-positional-numbers"]||void 0===this[Fe]()["parse-positional-numbers"])&&(t=this[Te](t)),R&&(t=C(t,this,v(this,Q,"f").getMiddleware(),!1)),t}[tt](t={}){O(this,ae,v(this,ae,"f")||{},"f");const s={};s.local=v(this,ae,"f").local||[],s.configObjects=v(this,ae,"f").configObjects||[];const b={};s.local.forEach((s=>{b[s]=!0,(t[s]||[]).forEach((t=>{b[t]=!0}))})),Object.assign(v(this,pe,"f"),Object.keys(v(this,ee,"f")).reduce(((t,s)=>{const R=v(this,ee,"f")[s].filter((t=>!(t in b)));return R.length>0&&(t[s]=R),t}),{})),O(this,ee,{},"f");return["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((t=>{s[t]=(v(this,ae,"f")[t]||[]).filter((t=>!b[t]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((t=>{s[t]=g(v(this,ae,"f")[t],(t=>!b[t]))})),s.envPrefix=v(this,ae,"f").envPrefix,O(this,ae,s,"f"),O(this,Ee,v(this,Ee,"f")?v(this,Ee,"f").reset(b):P(this,v(this,me,"f")),"f"),O(this,Oe,v(this,Oe,"f")?v(this,Oe,"f").reset(b):function(t,s,b){const R=b.y18n.__,F=b.y18n.__n,T={nonOptionCount:function(b){const R=t.getDemandedCommands(),T=b._.length+(b["--"]?b["--"].length:0)-t.getInternalMethods().getContext().commands.length;R._&&(T<R._.min||T>R._.max)&&(T<R._.min?void 0!==R._.minMsg?s.fail(R._.minMsg?R._.minMsg.replace(/\$0/g,T.toString()).replace(/\$1/,R._.min.toString()):null):s.fail(F("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",T,T.toString(),R._.min.toString())):T>R._.max&&(void 0!==R._.maxMsg?s.fail(R._.maxMsg?R._.maxMsg.replace(/\$0/g,T.toString()).replace(/\$1/,R._.max.toString()):null):s.fail(F("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",T,T.toString(),R._.max.toString()))))},positionalCount:function(t,b){b<t&&s.fail(F("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",b,b+"",t+""))},requiredArguments:function(t,b){let R=null;for(const s of Object.keys(b))Object.prototype.hasOwnProperty.call(t,s)&&void 0!==t[s]||(R=R||{},R[s]=b[s]);if(R){const t=[];for(const s of Object.keys(R)){const b=R[s];b&&t.indexOf(b)<0&&t.push(b)}const b=t.length?`\n${t.join("\n")}`:"";s.fail(F("Missing required argument: %s","Missing required arguments: %s",Object.keys(R).length,Object.keys(R).join(", ")+b))}},unknownArguments:function(b,R,M,L,B=!0){var q;const H=t.getInternalMethods().getCommandInstance().getCommands(),G=[],V=t.getInternalMethods().getContext();if(Object.keys(b).forEach((s=>{U.includes(s)||Object.prototype.hasOwnProperty.call(M,s)||Object.prototype.hasOwnProperty.call(t.getInternalMethods().getParseContext(),s)||T.isValidAndSomeAliasIsNotNew(s,R)||G.push(s)})),B&&(V.commands.length>0||H.length>0||L)&&b._.slice(V.commands.length).forEach((t=>{H.includes(""+t)||G.push(""+t)})),B){const s=(null===(q=t.getDemandedCommands()._)||void 0===q?void 0:q.max)||0,R=V.commands.length+s;R<b._.length&&b._.slice(R).forEach((t=>{t=String(t),V.commands.includes(t)||G.includes(t)||G.push(t)}))}G.length&&s.fail(F("Unknown argument: %s","Unknown arguments: %s",G.length,G.map((t=>t.trim()?t:`"${t}"`)).join(", ")))},unknownCommands:function(b){const R=t.getInternalMethods().getCommandInstance().getCommands(),T=[],M=t.getInternalMethods().getContext();return(M.commands.length>0||R.length>0)&&b._.slice(M.commands.length).forEach((t=>{R.includes(""+t)||T.push(""+t)})),T.length>0&&(s.fail(F("Unknown command: %s","Unknown commands: %s",T.length,T.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(s,b){if(!Object.prototype.hasOwnProperty.call(b,s))return!1;const R=t.parsed.newAliases;return[s,...b[s]].some((t=>!Object.prototype.hasOwnProperty.call(R,t)||!R[s]))},limitedChoices:function(b){const F=t.getOptions(),T={};if(!Object.keys(F.choices).length)return;Object.keys(b).forEach((t=>{-1===U.indexOf(t)&&Object.prototype.hasOwnProperty.call(F.choices,t)&&[].concat(b[t]).forEach((s=>{-1===F.choices[t].indexOf(s)&&void 0!==s&&(T[t]=(T[t]||[]).concat(s))}))}));const M=Object.keys(T);if(!M.length)return;let L=R("Invalid values:");M.forEach((t=>{L+=`\n ${R("Argument: %s, Given: %s, Choices: %s",t,s.stringifiedValues(T[t]),s.stringifiedValues(F.choices[t]))}`})),s.fail(L)}};let M={};function a(t,s){const b=Number(s);return"number"==typeof(s=isNaN(b)?s:b)?s=t._.length>=s:s.match(/^--no-.+/)?(s=s.match(/^--no-(.+)/)[1],s=!Object.prototype.hasOwnProperty.call(t,s)):s=Object.prototype.hasOwnProperty.call(t,s),s}T.implies=function(s,R){h("<string|object> [array|number|string]",[s,R],arguments.length),"object"==typeof s?Object.keys(s).forEach((t=>{T.implies(t,s[t])})):(t.global(s),M[s]||(M[s]=[]),Array.isArray(R)?R.forEach((t=>T.implies(s,t))):(d(R,void 0,b),M[s].push(R)))},T.getImplied=function(){return M},T.implications=function(t){const b=[];if(Object.keys(M).forEach((s=>{const R=s;(M[s]||[]).forEach((s=>{let F=R;const T=s;F=a(t,F),s=a(t,s),F&&!s&&b.push(` ${R} -> ${T}`)}))})),b.length){let t=`${R("Implications failed:")}\n`;b.forEach((s=>{t+=s})),s.fail(t)}};let L={};T.conflicts=function(s,b){h("<string|object> [array|string]",[s,b],arguments.length),"object"==typeof s?Object.keys(s).forEach((t=>{T.conflicts(t,s[t])})):(t.global(s),L[s]||(L[s]=[]),Array.isArray(b)?b.forEach((t=>T.conflicts(s,t))):L[s].push(b))},T.getConflicting=()=>L,T.conflicting=function(F){Object.keys(F).forEach((t=>{L[t]&&L[t].forEach((b=>{b&&void 0!==F[t]&&void 0!==F[b]&&s.fail(R("Arguments %s and %s are mutually exclusive",t,b))}))})),t.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(L).forEach((t=>{L[t].forEach((T=>{T&&void 0!==F[b.Parser.camelCase(t)]&&void 0!==F[b.Parser.camelCase(T)]&&s.fail(R("Arguments %s and %s are mutually exclusive",t,T))}))}))},T.recommendCommands=function(t,b){b=b.sort(((t,s)=>s.length-t.length));let F=null,T=1/0;for(let s,R=0;void 0!==(s=b[R]);R++){const b=N(t,s);b<=3&&b<T&&(T=b,F=s)}F&&s.fail(R("Did you mean %s?",F))},T.reset=function(t){return M=g(M,(s=>!t[s])),L=g(L,(s=>!t[s])),T};const B=[];return T.freeze=function(){B.push({implied:M,conflicting:L})},T.unfreeze=function(){const t=B.pop();d(t,void 0,b),({implied:M,conflicting:L}=t)},T}(this,v(this,Ee,"f"),v(this,me,"f")),"f"),O(this,q,v(this,q,"f")?v(this,q,"f").reset():function(t,s,b,R){return new _(t,s,b,R)}(v(this,Ee,"f"),v(this,Oe,"f"),v(this,Q,"f"),v(this,me,"f")),"f"),v(this,V,"f")||O(this,V,function(t,s,b,R){return new D(t,s,b,R)}(this,v(this,Ee,"f"),v(this,q,"f"),v(this,me,"f")),"f"),v(this,Q,"f").reset(),O(this,W,null,"f"),O(this,oe,"","f"),O(this,z,null,"f"),O(this,re,!1,"f"),this.parsed=!1,this}[et](t,s){return v(this,me,"f").path.relative(t,s)}[rt](t,s,b,R=0,F=!1){let T=!!b||F;t=t||v(this,de,"f"),v(this,ae,"f").__=v(this,me,"f").y18n.__,v(this,ae,"f").configuration=this[Fe]();const M=!!v(this,ae,"f").configuration["populate--"],L=Object.assign({},v(this,ae,"f").configuration,{"populate--":!0}),B=v(this,me,"f").Parser.detailed(t,Object.assign({},v(this,ae,"f"),{configuration:{"parse-positional-numbers":!1,...L}})),U=Object.assign(B.argv,v(this,fe,"f"));let H;const G=B.aliases;let Y=!1,z=!1;Object.keys(U).forEach((t=>{t===v(this,ne,"f")&&U[t]?Y=!0:t===v(this,we,"f")&&U[t]&&(z=!0)})),U.$0=this.$0,this.parsed=B,0===R&&v(this,Ee,"f").clearCachedHelpMessage();try{if(this[Ie](),s)return this[Qe](U,M,!!b,!1);if(v(this,ne,"f")){[v(this,ne,"f")].concat(G[v(this,ne,"f")]||[]).filter((t=>t.length>1)).includes(""+U._[U._.length-1])&&(U._.pop(),Y=!0)}O(this,ie,!1,"f");const L=v(this,q,"f").getCommands(),X=v(this,V,"f").completionKey in U,J=Y||X||F;if(U._.length){if(L.length){let t;for(let s,T=R||0;void 0!==U._[T];T++){if(s=String(U._[T]),L.includes(s)&&s!==v(this,W,"f")){const t=v(this,q,"f").runCommand(s,this,B,T+1,F,Y||z||F);return this[Qe](t,M,!!b,!1)}if(!t&&s!==v(this,W,"f")){t=s;break}}!v(this,q,"f").hasDefaultCommand()&&v(this,ge,"f")&&t&&!J&&v(this,Oe,"f").recommendCommands(t,L)}v(this,W,"f")&&U._.includes(v(this,W,"f"))&&!X&&(v(this,K,"f")&&E(!0),this.showCompletionScript(),this.exit(0))}if(v(this,q,"f").hasDefaultCommand()&&!J){const t=v(this,q,"f").runCommand(null,this,B,0,F,Y||z||F);return this[Qe](t,M,!!b,!1)}if(X){v(this,K,"f")&&E(!0);const s=(t=[].concat(t)).slice(t.indexOf(`--${v(this,V,"f").completionKey}`)+1);return v(this,V,"f").getCompletion(s,((t,s)=>{if(t)throw new e(t.message);(s||[]).forEach((t=>{v(this,se,"f").log(t)})),this.exit(0)})),this[Qe](U,!M,!!b,!1)}if(v(this,re,"f")||(Y?(v(this,K,"f")&&E(!0),T=!0,this.showHelp("log"),this.exit(0)):z&&(v(this,K,"f")&&E(!0),T=!0,v(this,Ee,"f").showVersion("log"),this.exit(0))),!T&&v(this,ae,"f").skipValidation.length>0&&(T=Object.keys(U).some((t=>v(this,ae,"f").skipValidation.indexOf(t)>=0&&!0===U[t]))),!T){if(B.error)throw new e(B.error.message);if(!X){const t=this[nt](G,{},B.error);b||(H=C(U,this,v(this,Q,"f").getMiddleware(),!0)),H=this[He](t,null!=H?H:U),f(H)&&!b&&(H=H.then((()=>C(U,this,v(this,Q,"f").getMiddleware(),!1))))}}}catch(t){if(!(t instanceof e))throw t;v(this,Ee,"f").fail(t.message,t)}return this[Qe](null!=H?H:U,M,!!b,!0)}[nt](t,s,b,R){const F={...this.getDemandedOptions()};return T=>{if(b)throw new e(b.message);v(this,Oe,"f").nonOptionCount(T),v(this,Oe,"f").requiredArguments(T,F);let M=!1;v(this,ve,"f")&&(M=v(this,Oe,"f").unknownCommands(T)),v(this,De,"f")&&!M?v(this,Oe,"f").unknownArguments(T,t,s,!!R):v(this,ye,"f")&&v(this,Oe,"f").unknownArguments(T,t,{},!1,!1),v(this,Oe,"f").limitedChoices(T),v(this,Oe,"f").implications(T),v(this,Oe,"f").conflicting(T)}}[it](){O(this,re,!0,"f")}[st](t){if("string"==typeof t)v(this,ae,"f").key[t]=!0;else for(const s of t)v(this,ae,"f").key[s]=!0}}var ot,at;const{readFileSync:ut}=b(7147),{inspect:ct}=b(3837),{resolve:ft}=b(1017),ht=b(452),pt=b(2356);var dt,mt={assert:{notStrictEqual:R.notStrictEqual,strictEqual:R.strictEqual},cliui:b(7059),findUp:b(2644),getEnv:t=>process.env[t],getCallerFile:b(351),getProcessArgvBin:y,inspect:ct,mainFilename:null!==(at=null===(ot=false||void 0===b(9167)?void 0:b.c[b.s])||void 0===ot?void 0:ot.filename)&&void 0!==at?at:process.cwd(),Parser:pt,path:b(1017),process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(t,s)=>process.emitWarning(t,s),execPath:()=>process.execPath,exit:t=>{process.exit(t)},nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:ut,require:b(9167),requireDirectory:b(9200),stringWidth:b(2577),y18n:ht({directory:ft(__dirname,"../locales"),updateFiles:!1})};const Dt=(null===(dt=null===process||void 0===process?void 0:process.env)||void 0===dt?void 0:dt.YARGS_MIN_NODE_VERSION)?Number(process.env.YARGS_MIN_NODE_VERSION):12;if(process&&process.version){if(Number(process.version.match(/v([^.]+)/)[1])<Dt)throw Error(`yargs supports a minimum Node.js version of ${Dt}. Read our version support policy: https://github.com/yargs/yargs#supported-nodejs-versions`)}const vt=b(2356);var yt,Et={applyExtends:n,cjsPlatformShim:mt,Yargs:(yt=mt,(t=[],s=yt.process.cwd(),b)=>{const R=new te(t,s,b,yt);return Object.defineProperty(R,"argv",{get:()=>R.parse(),enumerable:!0}),R.help(),R.version(),R}),argsert:h,isPromise:f,objFilter:g,parseCommand:o,Parser:vt,processArgv:L,YError:e};t.exports=Et},8822:(t,s,b)=>{"use strict";const{Yargs:R,processArgv:F}=b(9562);Argv(F.hideBin(process.argv));t.exports=Argv;function Argv(t,s){const F=R(t,s,b(4907));singletonify(F);return F}function defineGetter(t,s,b){Object.defineProperty(t,s,{configurable:true,enumerable:true,get:b})}function lookupGetter(t,s){const b=Object.getOwnPropertyDescriptor(t,s);if(typeof b!=="undefined"){return b.get}}function singletonify(t){[...Object.keys(t),...Object.getOwnPropertyNames(t.constructor.prototype)].forEach((s=>{if(s==="argv"){defineGetter(Argv,s,lookupGetter(t,s))}else if(typeof t[s]==="function"){Argv[s]=t[s].bind(t)}else{defineGetter(Argv,"$0",(()=>t.$0));defineGetter(Argv,"parsed",(()=>t.parsed))}}))}},2356:(t,s,b)=>{"use strict";var R=b(3837);var F=b(1017);var T=b(7147);function camelCase(t){const s=t!==t.toLowerCase()&&t!==t.toUpperCase();if(!s){t=t.toLowerCase()}if(t.indexOf("-")===-1&&t.indexOf("_")===-1){return t}else{let s="";let b=false;const R=t.match(/^-+/);for(let F=R?R[0].length:0;F<t.length;F++){let R=t.charAt(F);if(b){b=false;R=R.toUpperCase()}if(F!==0&&(R==="-"||R==="_")){b=true}else if(R!=="-"&&R!=="_"){s+=R}}return s}}function decamelize(t,s){const b=t.toLowerCase();s=s||"-";let R="";for(let F=0;F<t.length;F++){const T=b.charAt(F);const M=t.charAt(F);if(T!==M&&F>0){R+=`${s}${b.charAt(F)}`}else{R+=M}}return R}function looksLikeNumber(t){if(t===null||t===undefined)return false;if(typeof t==="number")return true;if(/^0x[0-9a-f]+$/i.test(t))return true;if(/^0[^.]/.test(t))return false;return/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function tokenizeArgString(t){if(Array.isArray(t)){return t.map((t=>typeof t!=="string"?t+"":t))}t=t.trim();let s=0;let b=null;let R=null;let F=null;const T=[];for(let M=0;M<t.length;M++){b=R;R=t.charAt(M);if(R===" "&&!F){if(!(b===" ")){s++}continue}if(R===F){F=null}else if((R==="'"||R==='"')&&!F){F=R}if(!T[s])T[s]="";T[s]+=R}return T}var M;(function(t){t["BOOLEAN"]="boolean";t["STRING"]="string";t["NUMBER"]="number";t["ARRAY"]="array"})(M||(M={}));let L;class YargsParser{constructor(t){L=t}parse(t,s){const b=Object.assign({alias:undefined,array:undefined,boolean:undefined,config:undefined,configObjects:undefined,configuration:undefined,coerce:undefined,count:undefined,default:undefined,envPrefix:undefined,narg:undefined,normalize:undefined,string:undefined,number:undefined,__:undefined,key:undefined},s);const R=tokenizeArgString(t);const F=typeof t==="string";const T=combineAliases(Object.assign(Object.create(null),b.alias));const B=Object.assign({"boolean-negation":true,"camel-case-expansion":true,"combine-arrays":false,"dot-notation":true,"duplicate-arguments-array":true,"flatten-duplicate-arrays":true,"greedy-arrays":true,"halt-at-non-option":false,"nargs-eats-options":false,"negation-prefix":"no-","parse-numbers":true,"parse-positional-numbers":true,"populate--":false,"set-placeholder-key":false,"short-option-groups":true,"strip-aliased":false,"strip-dashed":false,"unknown-options-as-args":false},b.configuration);const U=Object.assign(Object.create(null),b.default);const q=b.configObjects||[];const H=b.envPrefix;const G=B["populate--"];const V=G?"--":"_";const W=Object.create(null);const Y=Object.create(null);const z=b.__||L.format;const X={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]};const J=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/;const K=new RegExp("^--"+B["negation-prefix"]+"(.+)");[].concat(b.array||[]).filter(Boolean).forEach((function(t){const s=typeof t==="object"?t.key:t;const b=Object.keys(t).map((function(t){const s={boolean:"bools",string:"strings",number:"numbers"};return s[t]})).filter(Boolean).pop();if(b){X[b][s]=true}X.arrays[s]=true;X.keys.push(s)}));[].concat(b.boolean||[]).filter(Boolean).forEach((function(t){X.bools[t]=true;X.keys.push(t)}));[].concat(b.string||[]).filter(Boolean).forEach((function(t){X.strings[t]=true;X.keys.push(t)}));[].concat(b.number||[]).filter(Boolean).forEach((function(t){X.numbers[t]=true;X.keys.push(t)}));[].concat(b.count||[]).filter(Boolean).forEach((function(t){X.counts[t]=true;X.keys.push(t)}));[].concat(b.normalize||[]).filter(Boolean).forEach((function(t){X.normalize[t]=true;X.keys.push(t)}));if(typeof b.narg==="object"){Object.entries(b.narg).forEach((([t,s])=>{if(typeof s==="number"){X.nargs[t]=s;X.keys.push(t)}}))}if(typeof b.coerce==="object"){Object.entries(b.coerce).forEach((([t,s])=>{if(typeof s==="function"){X.coercions[t]=s;X.keys.push(t)}}))}if(typeof b.config!=="undefined"){if(Array.isArray(b.config)||typeof b.config==="string"){[].concat(b.config).filter(Boolean).forEach((function(t){X.configs[t]=true}))}else if(typeof b.config==="object"){Object.entries(b.config).forEach((([t,s])=>{if(typeof s==="boolean"||typeof s==="function"){X.configs[t]=s}}))}}extendAliases(b.key,T,b.default,X.arrays);Object.keys(U).forEach((function(t){(X.aliases[t]||[]).forEach((function(s){U[s]=U[t]}))}));let Z=null;checkConfiguration();let Q=[];const ee=Object.assign(Object.create(null),{_:[]});const re={};for(let t=0;t<R.length;t++){const s=R[t];const b=s.replace(/^-{3,}/,"---");let F;let T;let M;let L;let U;let q;if(s!=="--"&&/^-/.test(s)&&isUnknownOptionAsArg(s)){pushPositional(s)}else if(b.match(/^---+(=|$)/)){pushPositional(s);continue}else if(s.match(/^--.+=/)||!B["short-option-groups"]&&s.match(/^-.+=/)){L=s.match(/^--?([^=]+)=([\s\S]*)$/);if(L!==null&&Array.isArray(L)&&L.length>=3){if(checkAllAliases(L[1],X.arrays)){t=eatArray(t,L[1],R,L[2])}else if(checkAllAliases(L[1],X.nargs)!==false){t=eatNargs(t,L[1],R,L[2])}else{setArg(L[1],L[2],true)}}}else if(s.match(K)&&B["boolean-negation"]){L=s.match(K);if(L!==null&&Array.isArray(L)&&L.length>=2){T=L[1];setArg(T,checkAllAliases(T,X.arrays)?[false]:false)}}else if(s.match(/^--.+/)||!B["short-option-groups"]&&s.match(/^-[^-]+/)){L=s.match(/^--?(.+)/);if(L!==null&&Array.isArray(L)&&L.length>=2){T=L[1];if(checkAllAliases(T,X.arrays)){t=eatArray(t,T,R)}else if(checkAllAliases(T,X.nargs)!==false){t=eatNargs(t,T,R)}else{U=R[t+1];if(U!==undefined&&(!U.match(/^-/)||U.match(J))&&!checkAllAliases(T,X.bools)&&!checkAllAliases(T,X.counts)){setArg(T,U);t++}else if(/^(true|false)$/.test(U)){setArg(T,U);t++}else{setArg(T,defaultValue(T))}}}}else if(s.match(/^-.\..+=/)){L=s.match(/^-([^=]+)=([\s\S]*)$/);if(L!==null&&Array.isArray(L)&&L.length>=3){setArg(L[1],L[2])}}else if(s.match(/^-.\..+/)&&!s.match(J)){U=R[t+1];L=s.match(/^-(.\..+)/);if(L!==null&&Array.isArray(L)&&L.length>=2){T=L[1];if(U!==undefined&&!U.match(/^-/)&&!checkAllAliases(T,X.bools)&&!checkAllAliases(T,X.counts)){setArg(T,U);t++}else{setArg(T,defaultValue(T))}}}else if(s.match(/^-[^-]+/)&&!s.match(J)){M=s.slice(1,-1).split("");F=false;for(let b=0;b<M.length;b++){U=s.slice(b+2);if(M[b+1]&&M[b+1]==="="){q=s.slice(b+3);T=M[b];if(checkAllAliases(T,X.arrays)){t=eatArray(t,T,R,q)}else if(checkAllAliases(T,X.nargs)!==false){t=eatNargs(t,T,R,q)}else{setArg(T,q)}F=true;break}if(U==="-"){setArg(M[b],U);continue}if(/[A-Za-z]/.test(M[b])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(U)&&checkAllAliases(U,X.bools)===false){setArg(M[b],U);F=true;break}if(M[b+1]&&M[b+1].match(/\W/)){setArg(M[b],U);F=true;break}else{setArg(M[b],defaultValue(M[b]))}}T=s.slice(-1)[0];if(!F&&T!=="-"){if(checkAllAliases(T,X.arrays)){t=eatArray(t,T,R)}else if(checkAllAliases(T,X.nargs)!==false){t=eatNargs(t,T,R)}else{U=R[t+1];if(U!==undefined&&(!/^(-|--)[^-]/.test(U)||U.match(J))&&!checkAllAliases(T,X.bools)&&!checkAllAliases(T,X.counts)){setArg(T,U);t++}else if(/^(true|false)$/.test(U)){setArg(T,U);t++}else{setArg(T,defaultValue(T))}}}}else if(s.match(/^-[0-9]$/)&&s.match(J)&&checkAllAliases(s.slice(1),X.bools)){T=s.slice(1);setArg(T,defaultValue(T))}else if(s==="--"){Q=R.slice(t+1);break}else if(B["halt-at-non-option"]){Q=R.slice(t);break}else{pushPositional(s)}}applyEnvVars(ee,true);applyEnvVars(ee,false);setConfig(ee);setConfigObjects();applyDefaultsAndAliases(ee,X.aliases,U,true);applyCoercions(ee);if(B["set-placeholder-key"])setPlaceholderKeys(ee);Object.keys(X.counts).forEach((function(t){if(!hasKey(ee,t.split(".")))setArg(t,0)}));if(G&&Q.length)ee[V]=[];Q.forEach((function(t){ee[V].push(t)}));if(B["camel-case-expansion"]&&B["strip-dashed"]){Object.keys(ee).filter((t=>t!=="--"&&t.includes("-"))).forEach((t=>{delete ee[t]}))}if(B["strip-aliased"]){[].concat(...Object.keys(T).map((t=>T[t]))).forEach((t=>{if(B["camel-case-expansion"]&&t.includes("-")){delete ee[t.split(".").map((t=>camelCase(t))).join(".")]}delete ee[t]}))}function pushPositional(t){const s=maybeCoerceNumber("_",t);if(typeof s==="string"||typeof s==="number"){ee._.push(s)}}function eatNargs(t,s,b,R){let F;let T=checkAllAliases(s,X.nargs);T=typeof T!=="number"||isNaN(T)?1:T;if(T===0){if(!isUndefined(R)){Z=Error(z("Argument unexpected for: %s",s))}setArg(s,defaultValue(s));return t}let M=isUndefined(R)?0:1;if(B["nargs-eats-options"]){if(b.length-(t+1)+M<T){Z=Error(z("Not enough arguments following: %s",s))}M=T}else{for(F=t+1;F<b.length;F++){if(!b[F].match(/^-[^0-9]/)||b[F].match(J)||isUnknownOptionAsArg(b[F]))M++;else break}if(M<T)Z=Error(z("Not enough arguments following: %s",s))}let L=Math.min(M,T);if(!isUndefined(R)&&L>0){setArg(s,R);L--}for(F=t+1;F<L+t+1;F++){setArg(s,b[F])}return t+L}function eatArray(t,s,b,R){let T=[];let M=R||b[t+1];const L=checkAllAliases(s,X.nargs);if(checkAllAliases(s,X.bools)&&!/^(true|false)$/.test(M)){T.push(true)}else if(isUndefined(M)||isUndefined(R)&&/^-/.test(M)&&!J.test(M)&&!isUnknownOptionAsArg(M)){if(U[s]!==undefined){const t=U[s];T=Array.isArray(t)?t:[t]}}else{if(!isUndefined(R)){T.push(processValue(s,R,true))}for(let R=t+1;R<b.length;R++){if(!B["greedy-arrays"]&&T.length>0||L&&typeof L==="number"&&T.length>=L)break;M=b[R];if(/^-/.test(M)&&!J.test(M)&&!isUnknownOptionAsArg(M))break;t=R;T.push(processValue(s,M,F))}}if(typeof L==="number"&&(L&&T.length<L||isNaN(L)&&T.length===0)){Z=Error(z("Not enough arguments following: %s",s))}setArg(s,T);return t}function setArg(t,s,b=F){if(/-/.test(t)&&B["camel-case-expansion"]){const s=t.split(".").map((function(t){return camelCase(t)})).join(".");addNewAlias(t,s)}const R=processValue(t,s,b);const T=t.split(".");setKey(ee,T,R);if(X.aliases[t]){X.aliases[t].forEach((function(t){const s=t.split(".");setKey(ee,s,R)}))}if(T.length>1&&B["dot-notation"]){(X.aliases[T[0]]||[]).forEach((function(s){let b=s.split(".");const F=[].concat(T);F.shift();b=b.concat(F);if(!(X.aliases[t]||[]).includes(b.join("."))){setKey(ee,b,R)}}))}if(checkAllAliases(t,X.normalize)&&!checkAllAliases(t,X.arrays)){const b=[t].concat(X.aliases[t]||[]);b.forEach((function(t){Object.defineProperty(re,t,{enumerable:true,get(){return s},set(t){s=typeof t==="string"?L.normalize(t):t}})}))}}function addNewAlias(t,s){if(!(X.aliases[t]&&X.aliases[t].length)){X.aliases[t]=[s];W[s]=true}if(!(X.aliases[s]&&X.aliases[s].length)){addNewAlias(s,t)}}function processValue(t,s,b){if(b){s=stripQuotes(s)}if(checkAllAliases(t,X.bools)||checkAllAliases(t,X.counts)){if(typeof s==="string")s=s==="true"}let R=Array.isArray(s)?s.map((function(s){return maybeCoerceNumber(t,s)})):maybeCoerceNumber(t,s);if(checkAllAliases(t,X.counts)&&(isUndefined(R)||typeof R==="boolean")){R=increment()}if(checkAllAliases(t,X.normalize)&&checkAllAliases(t,X.arrays)){if(Array.isArray(s))R=s.map((t=>L.normalize(t)));else R=L.normalize(s)}return R}function maybeCoerceNumber(t,s){if(!B["parse-positional-numbers"]&&t==="_")return s;if(!checkAllAliases(t,X.strings)&&!checkAllAliases(t,X.bools)&&!Array.isArray(s)){const b=looksLikeNumber(s)&&B["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${s}`)));if(b||!isUndefined(s)&&checkAllAliases(t,X.numbers)){s=Number(s)}}return s}function setConfig(t){const s=Object.create(null);applyDefaultsAndAliases(s,X.aliases,U);Object.keys(X.configs).forEach((function(b){const R=t[b]||s[b];if(R){try{let t=null;const s=L.resolve(L.cwd(),R);const F=X.configs[b];if(typeof F==="function"){try{t=F(s)}catch(s){t=s}if(t instanceof Error){Z=t;return}}else{t=L.require(s)}setConfigObject(t)}catch(s){if(s.name==="PermissionDenied")Z=s;else if(t[b])Z=Error(z("Invalid JSON config file: %s",R))}}}))}function setConfigObject(t,s){Object.keys(t).forEach((function(b){const R=t[b];const F=s?s+"."+b:b;if(typeof R==="object"&&R!==null&&!Array.isArray(R)&&B["dot-notation"]){setConfigObject(R,F)}else{if(!hasKey(ee,F.split("."))||checkAllAliases(F,X.arrays)&&B["combine-arrays"]){setArg(F,R)}}}))}function setConfigObjects(){if(typeof q!=="undefined"){q.forEach((function(t){setConfigObject(t)}))}}function applyEnvVars(t,s){if(typeof H==="undefined")return;const b=typeof H==="string"?H:"";const R=L.env();Object.keys(R).forEach((function(F){if(b===""||F.lastIndexOf(b,0)===0){const T=F.split("__").map((function(t,s){if(s===0){t=t.substring(b.length)}return camelCase(t)}));if((s&&X.configs[T.join(".")]||!s)&&!hasKey(t,T)){setArg(T.join("."),R[F])}}}))}function applyCoercions(t){let s;const b=new Set;Object.keys(t).forEach((function(R){if(!b.has(R)){s=checkAllAliases(R,X.coercions);if(typeof s==="function"){try{const F=maybeCoerceNumber(R,s(t[R]));[].concat(X.aliases[R]||[],R).forEach((s=>{b.add(s);t[s]=F}))}catch(t){Z=t}}}}))}function setPlaceholderKeys(t){X.keys.forEach((s=>{if(~s.indexOf("."))return;if(typeof t[s]==="undefined")t[s]=undefined}));return t}function applyDefaultsAndAliases(t,s,b,R=false){Object.keys(b).forEach((function(F){if(!hasKey(t,F.split("."))){setKey(t,F.split("."),b[F]);if(R)Y[F]=true;(s[F]||[]).forEach((function(s){if(hasKey(t,s.split(".")))return;setKey(t,s.split("."),b[F])}))}}))}function hasKey(t,s){let b=t;if(!B["dot-notation"])s=[s.join(".")];s.slice(0,-1).forEach((function(t){b=b[t]||{}}));const R=s[s.length-1];if(typeof b!=="object")return false;else return R in b}function setKey(t,s,b){let R=t;if(!B["dot-notation"])s=[s.join(".")];s.slice(0,-1).forEach((function(t){t=sanitizeKey(t);if(typeof R==="object"&&R[t]===undefined){R[t]={}}if(typeof R[t]!=="object"||Array.isArray(R[t])){if(Array.isArray(R[t])){R[t].push({})}else{R[t]=[R[t],{}]}R=R[t][R[t].length-1]}else{R=R[t]}}));const F=sanitizeKey(s[s.length-1]);const T=checkAllAliases(s.join("."),X.arrays);const M=Array.isArray(b);let L=B["duplicate-arguments-array"];if(!L&&checkAllAliases(F,X.nargs)){L=true;if(!isUndefined(R[F])&&X.nargs[F]===1||Array.isArray(R[F])&&R[F].length===X.nargs[F]){R[F]=undefined}}if(b===increment()){R[F]=increment(R[F])}else if(Array.isArray(R[F])){if(L&&T&&M){R[F]=B["flatten-duplicate-arrays"]?R[F].concat(b):(Array.isArray(R[F][0])?R[F]:[R[F]]).concat([b])}else if(!L&&Boolean(T)===Boolean(M)){R[F]=b}else{R[F]=R[F].concat([b])}}else if(R[F]===undefined&&T){R[F]=M?b:[b]}else if(L&&!(R[F]===undefined||checkAllAliases(F,X.counts)||checkAllAliases(F,X.bools))){R[F]=[R[F],b]}else{R[F]=b}}function extendAliases(...t){t.forEach((function(t){Object.keys(t||{}).forEach((function(t){if(X.aliases[t])return;X.aliases[t]=[].concat(T[t]||[]);X.aliases[t].concat(t).forEach((function(s){if(/-/.test(s)&&B["camel-case-expansion"]){const b=camelCase(s);if(b!==t&&X.aliases[t].indexOf(b)===-1){X.aliases[t].push(b);W[b]=true}}}));X.aliases[t].concat(t).forEach((function(s){if(s.length>1&&/[A-Z]/.test(s)&&B["camel-case-expansion"]){const b=decamelize(s,"-");if(b!==t&&X.aliases[t].indexOf(b)===-1){X.aliases[t].push(b);W[b]=true}}}));X.aliases[t].forEach((function(s){X.aliases[s]=[t].concat(X.aliases[t].filter((function(t){return s!==t})))}))}))}))}function checkAllAliases(t,s){const b=[].concat(X.aliases[t]||[],t);const R=Object.keys(s);const F=b.find((t=>R.includes(t)));return F?s[F]:false}function hasAnyFlag(t){const s=Object.keys(X);const b=[].concat(s.map((t=>X[t])));return b.some((function(s){return Array.isArray(s)?s.includes(t):s[t]}))}function hasFlagsMatching(t,...s){const b=[].concat(...s);return b.some((function(s){const b=t.match(s);return b&&hasAnyFlag(b[1])}))}function hasAllShortFlags(t){if(t.match(J)||!t.match(/^-[^-]+/)){return false}let s=true;let b;const R=t.slice(1).split("");for(let F=0;F<R.length;F++){b=t.slice(F+2);if(!hasAnyFlag(R[F])){s=false;break}if(R[F+1]&&R[F+1]==="="||b==="-"||/[A-Za-z]/.test(R[F])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(b)||R[F+1]&&R[F+1].match(/\W/)){break}}return s}function isUnknownOptionAsArg(t){return B["unknown-options-as-args"]&&isUnknownOption(t)}function isUnknownOption(t){t=t.replace(/^-{3,}/,"--");if(t.match(J)){return false}if(hasAllShortFlags(t)){return false}const s=/^-+([^=]+?)=[\s\S]*$/;const b=/^-+([^=]+?)$/;const R=/^-+([^=]+?)-$/;const F=/^-+([^=]+?\d+)$/;const T=/^-+([^=]+?)\W+.*$/;return!hasFlagsMatching(t,s,K,b,R,F,T)}function defaultValue(t){if(!checkAllAliases(t,X.bools)&&!checkAllAliases(t,X.counts)&&`${t}`in U){return U[t]}else{return defaultForType(guessType(t))}}function defaultForType(t){const s={[M.BOOLEAN]:true,[M.STRING]:"",[M.NUMBER]:undefined,[M.ARRAY]:[]};return s[t]}function guessType(t){let s=M.BOOLEAN;if(checkAllAliases(t,X.strings))s=M.STRING;else if(checkAllAliases(t,X.numbers))s=M.NUMBER;else if(checkAllAliases(t,X.bools))s=M.BOOLEAN;else if(checkAllAliases(t,X.arrays))s=M.ARRAY;return s}function isUndefined(t){return t===undefined}function checkConfiguration(){Object.keys(X.counts).find((t=>{if(checkAllAliases(t,X.arrays)){Z=Error(z("Invalid configuration: %s, opts.count excludes opts.array.",t));return true}else if(checkAllAliases(t,X.nargs)){Z=Error(z("Invalid configuration: %s, opts.count excludes opts.narg.",t));return true}return false}))}return{aliases:Object.assign({},X.aliases),argv:Object.assign(re,ee),configuration:B,defaulted:Object.assign({},Y),error:Z,newAliases:Object.assign({},W)}}}function combineAliases(t){const s=[];const b=Object.create(null);let R=true;Object.keys(t).forEach((function(b){s.push([].concat(t[b],b))}));while(R){R=false;for(let t=0;t<s.length;t++){for(let b=t+1;b<s.length;b++){const F=s[t].filter((function(t){return s[b].indexOf(t)!==-1}));if(F.length){s[t]=s[t].concat(s[b]);s.splice(b,1);R=true;break}}}}s.forEach((function(t){t=t.filter((function(t,s,b){return b.indexOf(t)===s}));const s=t.pop();if(s!==undefined&&typeof s==="string"){b[s]=t}}));return b}function increment(t){return t!==undefined?t+1:1}function sanitizeKey(t){if(t==="__proto__")return"___proto___";return t}function stripQuotes(t){return typeof t==="string"&&(t[0]==="'"||t[0]==='"')&&t[t.length-1]===t[0]?t.substring(1,t.length-1):t}var B,U,q;const H=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12;const G=(U=(B=process===null||process===void 0?void 0:process.versions)===null||B===void 0?void 0:B.node)!==null&&U!==void 0?U:(q=process===null||process===void 0?void 0:process.version)===null||q===void 0?void 0:q.slice(1);if(G){const t=Number(G.match(/^([^.]+)/)[1]);if(t<H){throw Error(`yargs parser supports a minimum Node.js version of ${H}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`)}}const V=process?process.env:{};const W=new YargsParser({cwd:process.cwd,env:()=>V,format:R.format,normalize:F.normalize,resolve:F.resolve,require:t=>{if(true){return b(5977)(t)}else{}}});const Y=function Parser(t,s){const b=W.parse(t.slice(),s);return b.argv};Y.detailed=function(t,s){return W.parse(t.slice(),s)};Y.camelCase=camelCase;Y.decamelize=decamelize;Y.looksLikeNumber=looksLikeNumber;t.exports=Y}};var s={};function __nccwpck_require__(b){var R=s[b];if(R!==undefined){return R.exports}var F=s[b]={id:b,loaded:false,exports:{}};var T=true;try{t[b].call(F.exports,F,F.exports,__nccwpck_require__);T=false}finally{if(T)delete s[b]}F.loaded=true;return F.exports}__nccwpck_require__.c=s;(()=>{__nccwpck_require__.o=(t,s)=>Object.prototype.hasOwnProperty.call(t,s)})();(()=>{__nccwpck_require__.nmd=t=>{t.paths=[];if(!t.children)t.children=[];return t}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var b=__nccwpck_require__(__nccwpck_require__.s=399);module.exports=b})();
//# sourceMappingURL=index.js.map