mirror of https://github.com/aminya/setup-cpp
45 lines
247 KiB
JavaScript
45 lines
247 KiB
JavaScript
#!/usr/bin/env node
|
|
let e,t,r,n,i,o,s,a,c,l;var u,d,p=require("os"),f=require("path"),m=require("fs"),h=require("crypto"),g=require("http"),v=require("https");require("net");var E=require("tls"),y=require("events"),w=require("assert"),x=require("util"),b=require("fs"),S=require("child_process"),I=require("string_decoder"),O=require("timers"),R=require("buffer"),T=require("stream"),C=require("process"),_=require("buffer"),P=require("path"),$=require("child_process"),A=require("process"),N=require("url"),L=require("os"),D=require("util"),U=require("url");function k(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function j(e){return e&&e.__esModule?e.default:e;}var M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},G={},F={},B=M.parcelRequire810d;null==B&&((B=function(e){if(e in G)return G[e].exports;if(e in F){var t=F[e];delete F[e];var r={id:e,exports:{}};return G[e]=r,t.call(r.exports,r,r.exports),r.exports;}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n;}).register=function(e,t){F[e]=t;},M.parcelRequire810d=B),B.register("cLprm",function(e,t){"use strict";var r=B("iQYeD");let n=process.env;function i(e){return"string"==typeof e?!!n[e]:"env"in e?n[e.env]&&n[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!n[e];}):Object.keys(e).every(function(t){return n[t]===e[t];});}Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){let r=Array.isArray(t.env)?t.env:[t.env],o=r.every(function(e){return i(e);});if(e.exports[t.constant]=o,o)switch(e.exports.name=t.name,typeof t.pr){case"string":e.exports.isPR=!!n[t.pr];break;case"object":"env"in t.pr?e.exports.isPR=t.pr.env in n&&n[t.pr.env]!==t.pr.ne:"any"in t.pr?e.exports.isPR=t.pr.any.some(function(e){return!!n[e];}):e.exports.isPR=i(t.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==n.CI&&(n.BUILD_ID||n.BUILD_NUMBER||n.CI||n.CI_APP_ID||n.CI_BUILD_ID||n.CI_BUILD_NUMBER||n.CI_NAME||n.CONTINUOUS_INTEGRATION||n.RUN_ID||e.exports.name));}),B.register("iQYeD",function(e,t){e.exports=JSON.parse('[{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","pr":"SYSTEM_PULLREQUEST_PULLREQUESTID"},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Shippable","constant":"SHIPPABLE","env":"SHIPPABLE","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Solano CI","constant":"SOLANO","env":"TDDIUM","pr":"TDDIUM_PR_ID"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]}},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]');}),B.register("hHq4F",function(e,t){k(e.exports,"error",()=>i),k(e.exports,"success",()=>o),k(e.exports,"warning",()=>s),k(e.exports,"notice",()=>a),k(e.exports,"info",()=>c);var r=B("94yZ3"),n=B("cLprm");function i(e){return n.GITHUB_ACTIONS?r.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`);}function s(e){return n.GITHUB_ACTIONS?r.warning(e):console.log(`\x1b[33m${e}\x1b[0m`);}function a(e){return n.GITHUB_ACTIONS?r.notice(e):console.log(`\x1b[94m${e}\x1b[0m`);}function c(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e);}}),B.register("94yZ3",function(e,t){"use strict";var r,n,i=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),s=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t;},a=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0;var c=B("6mTwv"),l=B("bRVRZ"),u=B("4BVCZ");let d=s(p),m=s(f);var h=B("21Qsr"),g=B("GfBiA");function v(e,t){let r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r)throw Error(`Input required and not supplied: ${e}`);return t&&!1===t.trimWhitespace?r:r.trim();}function E(e,t={}){c.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e);}function y(e){c.issue("group",e);}function w(){c.issue("endgroup");}(r=n=e.exports.ExitCode||(e.exports.ExitCode={}))[r.Success=0]="Success",r[r.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=u.toCommandValue(t);process.env[e]=r;let n=process.env.GITHUB_ENV||"";if(n){let t=`ghadelimiter_${h.default()}`;if(e.includes(t))throw Error(`Unexpected input: name should not contain the delimiter "${t}"`);if(r.includes(t))throw Error(`Unexpected input: value should not contain the delimiter "${t}"`);let n=`${e}<<${t}${d.EOL}${r}${d.EOL}${t}`;l.issueCommand("ENV",n);}else c.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){c.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){let t=process.env.GITHUB_PATH||"";t?l.issueCommand("PATH",e):c.issueCommand("add-path",{},e),process.env.PATH=`${e}${m.delimiter}${process.env.PATH}`;},e.exports.getInput=v,e.exports.getMultilineInput=function(e,t){let r=v(e,t).split("\n").filter(e=>""!==e);return r;},e.exports.getBooleanInput=function(e,t){let r=v(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}
|
|
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){process.stdout.write(d.EOL),c.issueCommand("set-output",{name:e},t);},e.exports.setCommandEcho=function(e){c.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=n.Failure,E(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){c.issueCommand("debug",{},e);},e.exports.error=E,e.exports.warning=function(e,t={}){c.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){c.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+d.EOL);},e.exports.startGroup=y,e.exports.endGroup=w,e.exports.group=function(e,t){return a(this,void 0,void 0,function*(){let r;y(e);try{r=yield t();}finally{w();}return r;});},e.exports.saveState=function(e,t){c.issueCommand("save-state",{name:e},t);},e.exports.getState=function(e){return process.env[`STATE_${e}`]||"";},e.exports.getIDToken=function(e){return a(this,void 0,void 0,function*(){return yield g.OidcClient.getIDToken(e);});};var x=B("1yBCw");Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return x.summary;}});var x=B("1yBCw");Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return x.markdownSummary;}});var b=B("1tHq1");Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return b.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return b.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return b.toPlatformPath;}});}),B.register("6mTwv",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let o=i(p);var s=B("4BVCZ");function a(e,t,r){let n=new c(e,t,r);process.stdout.write(n.toString()+o.EOL);}e.exports.issueCommand=a,e.exports.issue=function(e,t=""){a(e,{},t);};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${s.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+`::${(e=this.message,s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))}`;}}}),B.register("4BVCZ",function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),B.register("bRVRZ",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;let o=i(m),s=i(p);var a=B("4BVCZ");e.exports.issueCommand=function(e,t){let r=process.env[`GITHUB_${e}`];if(!r)throw Error(`Unable to find environment variable for file command ${e}`);if(!o.existsSync(r))throw Error(`Missing file at path: ${r}`);o.appendFileSync(r,`${a.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"});};}),B.register("21Qsr",function(e,t){k(e.exports,"default",()=>i);var r=B("lr0KB"),n=B("671Sw"),i=function(e,t,i){e=e||{};let o=e.random||(e.rng||(0,r.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t;}return(0,n.default)(o);};}),B.register("lr0KB",function(e,t){k(e.exports,"default",()=>i);let r=new Uint8Array(256),n=r.length;function i(){return n>r.length-16&&(j(h).randomFillSync(r),n=0),r.slice(n,n+=16);}}),B.register("671Sw",function(e,t){k(e.exports,"default",()=>i);var r=B("bfNI0");let n=[];for(let e=0;e<256;++e)n.push((e+256).toString(16).substr(1));var i=function(e,t=0){let i=(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase();if(!(0,r.default)(i))throw TypeError("Stringified UUID is invalid");return i;};}),B.register("bfNI0",function(e,t){k(e.exports,"default",()=>n);var r=B("k4edj"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),B.register("k4edj",function(e,t){k(e.exports,"default",()=>r);var r=/^(?:[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;}),B.register("GfBiA",function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=B("aPbbM"),i=B("5UVtg"),o=B("94yZ3");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e;}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e;}static getCall(e){var t;return r(this,void 0,void 0,function*(){let r=s.createHttpClient(),n=yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token.
|
|
|
|
Error Code : ${e.statusCode}
|
|
|
|
Error Message: ${e.result.message}`);}),i=null===(t=n.result)||void 0===t?void 0:t.value;if(!i)throw Error("Response json body do not have ID Token field");return i;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug(`ID token url is ${t}`);let r=yield s.getCall(t);return o.setSecret(r),r;}catch(e){throw Error(`Error message: ${e.message}`);}});}}e.exports.OidcClient=s;}),B.register("aPbbM",function(e,t){"use strict";var r,n,i,o,s,a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),c=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),l=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(t,e,r);return c(t,e),t;},u=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let d=l(g),p=l(v),f=l(B("dG8Uc")),m=l(B("j6C2A"));(r=i=e.exports.HttpCodes||(e.exports.HttpCodes={}))[r.OK=200]="OK",r[r.MultipleChoices=300]="MultipleChoices",r[r.MovedPermanently=301]="MovedPermanently",r[r.ResourceMoved=302]="ResourceMoved",r[r.SeeOther=303]="SeeOther",r[r.NotModified=304]="NotModified",r[r.UseProxy=305]="UseProxy",r[r.SwitchProxy=306]="SwitchProxy",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",r[r.BadRequest=400]="BadRequest",r[r.Unauthorized=401]="Unauthorized",r[r.PaymentRequired=402]="PaymentRequired",r[r.Forbidden=403]="Forbidden",r[r.NotFound=404]="NotFound",r[r.MethodNotAllowed=405]="MethodNotAllowed",r[r.NotAcceptable=406]="NotAcceptable",r[r.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",r[r.RequestTimeout=408]="RequestTimeout",r[r.Conflict=409]="Conflict",r[r.Gone=410]="Gone",r[r.TooManyRequests=429]="TooManyRequests",r[r.InternalServerError=500]="InternalServerError",r[r.NotImplemented=501]="NotImplemented",r[r.BadGateway=502]="BadGateway",r[r.ServiceUnavailable=503]="ServiceUnavailable",r[r.GatewayTimeout=504]="GatewayTimeout",(n=o=e.exports.Headers||(e.exports.Headers={})).Accept="accept",n.ContentType="content-type",(s=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=f.getProxyUrl(new URL(e));return t?t.href:"";};let h=[i.MovedPermanently,i.ResourceMoved,i.SeeOther,i.TemporaryRedirect,i.PermanentRedirect],E=[i.BadGateway,i.ServiceUnavailable,i.GatewayTimeout],y=["OPTIONS","GET","DELETE","HEAD"];class w extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,w.prototype);}}e.exports.HttpClientError=w;class x{constructor(e){this.message=e;}readBody(){return u(this,void 0,void 0,function*(){return new Promise(e=>u(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e]);}),this.message.on("end",()=>{e(t.toString());});}));});}}e.exports.HttpClientResponse=x,e.exports.isHttps=function(e){let t=new URL(e);return"https:"===t.protocol;},e.exports.HttpClient=class{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries));}options(e,t){return u(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,t||{});});}get(e,t){return u(this,void 0,void 0,function*(){return this.request("GET",e,null,t||{});});}del(e,t){return u(this,void 0,void 0,function*(){return this.request("DELETE",e,null,t||{});});}post(e,t,r){return u(this,void 0,void 0,function*(){return this.request("POST",e,t,r||{});});}patch(e,t,r){return u(this,void 0,void 0,function*(){return this.request("PATCH",e,t,r||{});});}put(e,t,r){return u(this,void 0,void 0,function*(){return this.request("PUT",e,t,r||{});});}head(e,t){return u(this,void 0,void 0,function*(){return this.request("HEAD",e,null,t||{});});}sendStream(e,t,r,n){return u(this,void 0,void 0,function*(){return this.request(e,t,r,n);});}getJson(e,t={}){return u(this,void 0,void 0,function*(){t[o.Accept]=this._getExistingOrDefaultHeader(t,o.Accept,s.ApplicationJson);let r=yield this.get(e,t);return this._processResponse(r,this.requestOptions);});}postJson(e,t,r={}){return u(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[o.Accept]=this._getExistingOrDefaultHeader(r,o.Accept,s.ApplicationJson),r[o.ContentType]=this._getExistingOrDefaultHeader(r,o.ContentType,s.ApplicationJson);let i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions);});}putJson(e,t,r={}){return u(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[o.Accept]=this._getExistingOrDefaultHeader(r,o.Accept,s.ApplicationJson),r[o.ContentType]=this._getExistingOrDefaultHeader(r,o.ContentType,s.ApplicationJson);let i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions);});}patchJson(e,t,r={}){return u(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[o.Accept]=this._getExistingOrDefaultHeader(r,o.Accept,s.ApplicationJson),r[o.ContentType]=this._getExistingOrDefaultHeader(r,o.ContentType,s.ApplicationJson);let i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions);});}request(e,t,r,n){return u(this,void 0,void 0,function*(){let o;if(this._disposed)throw Error("Client has already been disposed.");let s=new URL(t),a=this._prepareRequest(e,s,n),c=this._allowRetries&&y.includes(e)?this._maxRetries+1:1,l=0;do{if((o=yield this.requestRaw(a,r))&&o.message&&o.message.statusCode===i.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(o)){e=t;break;}if(e)return e.handleAuthentication(this,a,r);break;}let t=this._maxRedirects;for(;o.message.statusCode&&h.includes(o.message.statusCode)&&this._allowRedirects&&t>0;){let i=o.message.headers.location;if(!i)break;let c=new URL(i);if("https:"===s.protocol&&s.protocol!==c.protocol&&!this._allowRedirectDowngrade)throw 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.");if(yield o.readBody(),c.hostname!==s.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,c,n),o=yield this.requestRaw(a,r),t--;}if(!o.message.statusCode||!E.includes(o.message.statusCode))break;(l+=1)<c&&(yield o.readBody(),yield this._performExponentialBackoff(l));}while(l<c);return o;});}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0;}requestRaw(e,t){return u(this,void 0,void 0,function*(){return new Promise((r,n)=>{this.requestRawWithCallback(e,t,function(e,t){e?n(e):t?r(t):n(Error("Unknown error"));});});});}requestRawWithCallback(e,t,r){let n;"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1;function o(e,t){i||(i=!0,r(e,t));}let s=e.httpModule.request(e.options,e=>{let t=new x(e);o(void 0,t);});s.on("socket",e=>{n=e;}),s.setTimeout(this._socketTimeout||18e4,()=>{n&&n.end(),o(Error(`Request timeout: ${e.options.path}`));}),s.on("error",function(e){o(e);}),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){s.end();}),t.pipe(s)):s.end();}getAgent(e){let t=new URL(e);return this._getAgent(t);}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?p:d,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(n.options);return n;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},b(this.requestOptions.headers),b(e||{})):b(e||{});}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=b(this.requestOptions.headers)[t]),e[t]||n||r;}_getAgent(e){let t;let r=f.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||d.globalAgent.maxSockets),r&&r.hostname){let e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},n="https:"===r.protocol;t=(i?n?m.httpsOverHttps:m.httpsOverHttp:n?m.httpOverHttps:m.httpOverHttp)(e),this._proxyAgent=t;}if(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new p.Agent(e):new d.Agent(e),this._agent=t;}return t||(t=i?p.globalAgent:d.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return u(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t));});}_processResponse(e,t){return u(this,void 0,void 0,function*(){return new Promise((r,n)=>u(this,void 0,void 0,function*(){let o,s;let a=e.message.statusCode||0,c={statusCode:a,result:null,headers:{}};a===i.NotFound&&r(c);try{(s=yield e.readBody())&&s.length>0&&(o=t&&t.deserializeDates?JSON.parse(s,function(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e;}return t;}):JSON.parse(s),c.result=o),c.headers=e.message.headers;}catch(e){}if(a>299){let e;e=o&&o.message?o.message:s&&s.length>0?s:`Failed request: (${a})`;let t=new w(e,a);t.result=c.result,n(t);}else r(c);}));});}};let b=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});}),B.register("dG8Uc",function(e,t){"use strict";function r(e){let t;if(!e.hostname)return!1;let r=e.hostname;if(function(e){let t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]");}(r))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||"";if(!n)return!1;e.port?t=Number(e.port):"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let i=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&i.push(`${i[0]}:${t}`),n.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||i.some(t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))return!0;return!1;}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=function(e){let t="https:"===e.protocol;if(r(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0;},e.exports.checkBypass=r;}),B.register("j6C2A",function(e,t){e.exports=B("3axfE");}),B.register("3axfE",function(e,t){var r,n,i,o,s,a;"use strict";function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||g.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,n,i){for(var o=u(r,n,i),s=0,a=t.requests.length;s<a;++s){var c=t.requests[s];if(c.host===o.host&&c.port===o.port){t.requests.splice(s,1),c.request.onSocket(e);return;}}e.destroy(),t.removeSocket(e);});}function l(e,t){var r=this;c.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),o=d({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),s=E.connect(0,o);r.sockets[r.sockets.indexOf(n)]=s,t(s);});}function u(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e;}function d(e){for(var t=1,r=arguments.length;t<r;++t){var n=arguments[t];if("object"==typeof n)for(var i=Object.keys(n),o=0,s=i.length;o<s;++o){var a=i[o];void 0!==n[a]&&(e[a]=n[a]);}}return e;}k(e.exports,"httpOverHttp",()=>r,e=>r=e),k(e.exports,"httpsOverHttp",()=>n,e=>n=e),k(e.exports,"httpOverHttps",()=>i,e=>i=e),k(e.exports,"httpsOverHttps",()=>o,e=>o=e),k(e.exports,"debug",()=>s,e=>s=e),r=function(e){var t=new c(e);return t.request=g.request,t;},n=function(e){var t=new c(e);return t.request=g.request,t.createSocket=l,t.defaultPort=443,t;},i=function(e){var t=new c(e);return t.request=v.request,t;},o=function(e){var t=new c(e);return t.request=v.request,t.createSocket=l,t.defaultPort=443,t;},x.inherits(c,y.EventEmitter),c.prototype.addRequest=function(e,t,r,n){var i=this,o=d({request:e},i.options,u(t,r,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return;}i.createSocket(o,function(t){function r(){i.emit("free",t,o);}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n);}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t);});},c.prototype.createSocket=function(e,t){var r=this,n={};r.sockets.push(n);var i=d({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),a("making CONNECT request");var o=r.request(i);function s(i,s,c){if(o.removeAllListeners(),s.removeAllListeners(),200!==i.statusCode){a("tunneling socket could not be established, statusCode=%d",i.statusCode),s.destroy();var l=Error("tunneling socket could not be established, statusCode="+i.statusCode);l.code="ECONNRESET",e.request.emit("error",l),r.removeSocket(n);return;}if(c.length>0){a("got illegal response body from proxy"),s.destroy();var l=Error("got illegal response body from proxy");l.code="ECONNRESET",e.request.emit("error",l),r.removeSocket(n);return;}return a("tunneling connection has established"),r.sockets[r.sockets.indexOf(n)]=s,t(s);}o.useChunkedEncodingByDefault=!1,o.once("response",function(e){e.upgrade=!0;}),o.once("upgrade",function(e,t,r){process.nextTick(function(){s(e,t,r);});}),o.once("connect",s),o.once("error",function(t){o.removeAllListeners(),a("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=Error("tunneling socket could not be established, cause="+t.message);i.code="ECONNRESET",e.request.emit("error",i),r.removeSocket(n);}),o.end();},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e);});}},s=a=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e);}:function(){};}),B.register("5UVtg",function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`;}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Bearer ${this.token}`;}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`;}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),B.register("1yBCw",function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=m.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer="";}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,m.constants.R_OK|m.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`);}return this._filePath=t,this._filePath;});}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}</${e}>`:`<${e}${n}>`;}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0});});}stringify(){return this._buffer;}isEmptyBuffer(){return 0===this._buffer.length;}emptyBuffer(){return this._buffer="",this;}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this;}addEOL(){return this.addRaw(p.EOL);}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL();}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL();}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o);}).join("");return this.wrap("tr",t);}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL();}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL();}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL();}addHeading(e,t){let r=`h${t}`,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL();}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL();}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL();}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL();}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL();}}();e.exports.markdownSummary=s,e.exports.summary=s;}),B.register("1tHq1",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(f);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),B.register("ljv3o",function(e,t){var r=f.resolve(__dirname,"../../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){"use strict";var t={},n={create:function(e){return o(e),{pluralize:function(t,r){return i(e,t,r);}};},addLocale:function(e,r){t[e]=r;},pluralize:i};function i(e,r,n){if(o(e),"object"!=typeof n)throw Error("List of variants should be specified as an object");var i=t[e](r);return void 0!==n[i]?n[i]:null;}function o(e){void 0!==t[e]||function(e){try{require(r+"/../locales/"+e+".js");}catch(t){throw Error("Failed to load the following locale: "+e);}}(e);}void 0!==e.exports?e.exports=n:this.numerous=n;}).call(e.exports);}),B.register("kAOmP",function(e,t){var r=B("3abeg"),n=B("aaJ7t");let i=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],o={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},s={};function a(e){for(let t of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:r}=t;s[e]=r;}}e.exports={create:function(e){return e=Object.assign({},o,e||{}),{format:function(t,o,c){return function(e,t,o){if(function(e,t){let{autoload:r}=t;if(!s[e]){if(n&&r)(function(e){try{a(require(`../locales/${e}.js`));}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`);}})(e);else throw Error(`Missing locale: ${e}, you must load it manually before using it`);}}(o.locale,{autoload:o.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");let c=function(e,t){let r=t-e,n=[];return i.some(function(e){let t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),r<=0)return!0;}),n;}(e,t),l=[];for(let e of c){let[t,n]=e;if(n>0&&l.push(function(e,t,n){let i=function(e){var t;let r=s[e.locale],n=e.unitTypeLookupOrder.slice();n.unshift(e.unitType),t=n;let i=null;if((n=Array.from(new Set(t))).some(function(e){if(void 0!==r[e])return i=r[e],!0;}),null===i)throw Error("Can not find any unit type data for locale: "+e.locale);return i;}(n),o=r.pluralize(n.locale,t,i[e]);return o.replace("{0}",t);}(t,n,o)),l.length>=o.span)break;}return l.join(o.delimiter);}(t,o,c=Object.assign({},e,c||{}));}};},addLocale:a,defaultConfig:o};}),B.register("3abeg",function(e,t){e.exports=B("ljv3o");}),B.register("aaJ7t",function(e,t){"use strict";e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),B.register("2heqc",function(e,t){"use strict";var r,n,i=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),s=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t;},a=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0;var c=B("lxvYw"),l=B("izMKk"),u=B("3GPt4");let d=s(p),m=s(f);var h=B("cxUw3");function g(e,t){let r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r)throw Error(`Input required and not supplied: ${e}`);return t&&!1===t.trimWhitespace?r:r.trim();}function v(e,t={}){c.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e);}function E(e){c.issue("group",e);}function y(){c.issue("endgroup");}(r=n=e.exports.ExitCode||(e.exports.ExitCode={}))[r.Success=0]="Success",r[r.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=u.toCommandValue(t);process.env[e]=r;let n=process.env.GITHUB_ENV||"";if(n)return l.issueFileCommand("ENV",l.prepareKeyValueMessage(e,t));c.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){c.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){let t=process.env.GITHUB_PATH||"";t?l.issueFileCommand("PATH",e):c.issueCommand("add-path",{},e),process.env.PATH=`${e}${m.delimiter}${process.env.PATH}`;},e.exports.getInput=g,e.exports.getMultilineInput=function(e,t){let r=g(e,t).split("\n").filter(e=>""!==e);return t&&!1===t.trimWhitespace?r:r.map(e=>e.trim());},e.exports.getBooleanInput=function(e,t){let r=g(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}
|
|
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){let r=process.env.GITHUB_OUTPUT||"";if(r)return l.issueFileCommand("OUTPUT",l.prepareKeyValueMessage(e,t));process.stdout.write(d.EOL),c.issueCommand("set-output",{name:e},u.toCommandValue(t));},e.exports.setCommandEcho=function(e){c.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=n.Failure,v(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){c.issueCommand("debug",{},e);},e.exports.error=v,e.exports.warning=function(e,t={}){c.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){c.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+d.EOL);},e.exports.startGroup=E,e.exports.endGroup=y,e.exports.group=function(e,t){return a(this,void 0,void 0,function*(){let r;E(e);try{r=yield t();}finally{y();}return r;});},e.exports.saveState=function(e,t){let r=process.env.GITHUB_STATE||"";if(r)return l.issueFileCommand("STATE",l.prepareKeyValueMessage(e,t));c.issueCommand("save-state",{name:e},u.toCommandValue(t));},e.exports.getState=function(e){return process.env[`STATE_${e}`]||"";},e.exports.getIDToken=function(e){return a(this,void 0,void 0,function*(){return yield h.OidcClient.getIDToken(e);});};var w=B("a9gnA");Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return w.summary;}});var w=B("a9gnA");Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return w.markdownSummary;}});var x=B("3zXsD");Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return x.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return x.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return x.toPlatformPath;}});}),B.register("lxvYw",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let o=i(p);var s=B("3GPt4");function a(e,t,r){let n=new c(e,t,r);process.stdout.write(n.toString()+o.EOL);}e.exports.issueCommand=a,e.exports.issue=function(e,t=""){a(e,{},t);};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${s.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+`::${(e=this.message,s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))}`;}}}),B.register("3GPt4",function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),B.register("izMKk",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let o=i(m),s=i(p);var a=B("21Qsr"),c=B("3GPt4");e.exports.issueFileCommand=function(e,t){let r=process.env[`GITHUB_${e}`];if(!r)throw Error(`Unable to find environment variable for file command ${e}`);if(!o.existsSync(r))throw Error(`Missing file at path: ${r}`);o.appendFileSync(r,`${c.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,t){let r=`ghadelimiter_${a.default()}`,n=c.toCommandValue(t);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${s.EOL}${n}${s.EOL}${r}`;};}),B.register("cxUw3",function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=B("aPbbM"),i=B("5UVtg"),o=B("2heqc");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e;}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e;}static getCall(e){var t;return r(this,void 0,void 0,function*(){let r=s.createHttpClient(),n=yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token.
|
|
|
|
Error Code : ${e.statusCode}
|
|
|
|
Error Message: ${e.result.message}`);}),i=null===(t=n.result)||void 0===t?void 0:t.value;if(!i)throw Error("Response json body do not have ID Token field");return i;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug(`ID token url is ${t}`);let r=yield s.getCall(t);return o.setSecret(r),r;}catch(e){throw Error(`Error message: ${e.message}`);}});}}e.exports.OidcClient=s;}),B.register("a9gnA",function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=m.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer="";}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,m.constants.R_OK|m.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`);}return this._filePath=t,this._filePath;});}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}</${e}>`:`<${e}${n}>`;}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0});});}stringify(){return this._buffer;}isEmptyBuffer(){return 0===this._buffer.length;}emptyBuffer(){return this._buffer="",this;}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this;}addEOL(){return this.addRaw(p.EOL);}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL();}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL();}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o);}).join("");return this.wrap("tr",t);}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL();}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL();}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL();}addHeading(e,t){let r=`h${t}`,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL();}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL();}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL();}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL();}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL();}}();e.exports.markdownSummary=s,e.exports.summary=s;}),B.register("3zXsD",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(f);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),B.register("A8hFE",function(e,t){k(e.exports,"addExeExt",()=>c),k(e.exports,"addShExt",()=>d),k(e.exports,"addShRelativePrefix",()=>p),k(e.exports,"dirname",()=>f.dirname),k(e.exports,"join",()=>f.join);var r=B("9O4vc"),n=B("eVYO7");function i(e,t){return Object.keys(t).forEach(r=>{"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:()=>t[r]});}),e;}function o(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function s(e,t=!0){return t?(0,f.basename)(e):(0,f.basename)(e,(0,f.extname)(e));}function a(e){return(0,f.normalize)(e).replace(RegExp((0,r.default)(f.sep)+"$"),"");}function c(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function l(e,t){let r=(0,f.extname)(e),n=`${t}${(0,f.basename)(e,r)}${r}`;return(0,f.join)((0,f.dirname)(e),n);}function u(e,t){let r=(0,f.extname)(e),n=`${(0,f.basename)(e,r)}${t}${r}`;return(0,f.join)((0,f.dirname)(e),n);}function d(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function p(e){return"win32"===process.platform?e:"./"+e;}function m(e){let t=(0,f.extname)(e).length;return e.slice(0,-t);}function h(e,t){return j(n)(e,t);}function g(e,t){let r=(0,f.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+f.sep)||r===(0,f.resolve)(e));}var v={},E={};o(E,"name",()=>s);var y={};o(y,"normalizeTrim",()=>a);var w={};o(w,"addExeExt",()=>c);var x={};o(x,"addNamePrefix",()=>l);var b={};o(b,"addNameSuffix",()=>u);var S={};o(S,"addShExt",()=>d);var I={};o(I,"addShRelativePrefix",()=>p);var O={};o(O,"removeExt",()=>m);var R={};o(R,"replaceExt",()=>h);var T={};o(T,"isPathInside",()=>g),i(v,E),i(v,y),i(v,w),i(v,x),i(v,b),i(v,S),i(v,I),i(v,O),i(v,R),i(v,T);}),B.register("9O4vc",function(e,t){k(e.exports,"default",()=>r);function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}}),B.register("eVYO7",function(e,t){"use strict";e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=f.basename(e,f.extname(e))+t,i=f.join(f.dirname(e),n);return(r=e.slice(0,2))==="."+f.sep||"./"===r?"."+f.sep+i:i;};}),B.register("gRK0M",function(e,t){function r(e,t,r){return!!(e.isSymbolicLink()||e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0;}return!1;}(t,r);}function n(e,t,n){m.stat(e,function(i,o){n(i,!i&&r(o,e,t));});}e.exports=n,n.sync=function(e,t){return r(m.statSync(e),e,t);};}),B.register("9ZovO",function(e,t){function r(e,t,r){m.stat(e,function(e,i){r(e,!e&&n(i,t));});}function n(e,t){var r,n,i,o,s,a,c;return e.isFile()&&(r=e.mode,n=e.uid,i=e.gid,o=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),r&parseInt("001",8)||r&c&&i===s||r&a&&n===o||r&(a|c)&&0===o);}e.exports=r,r.sync=function(e,t){return n(m.statSync(e),t);};}),B.register("2dWxz",function(e,t){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");}),B.register("eaZtc",function(e,t){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(r,"\\$&");};}),B.register("3WkGD",function(e,t){k(e.exports,"pathExists",()=>r);async function r(e){try{return await(0,b.promises).access(e),!0;}catch{return!1;}}}),B.register("kSdX3",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;let s=i(f),a=i(B("11Ly6"));function c(e){return o(this,void 0,void 0,function*(){if(a.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield a.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error(`File was unable to be removed ${e}`);}});}function l(e){return o(this,void 0,void 0,function*(){w.ok(e,"a path argument must be provided"),yield a.mkdir(e,{recursive:!0});});}function u(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let t=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(s.delimiter))e&&t.push(e);if(a.isRooted(e)){let r=yield a.tryGetExecutablePath(e,t);return r?[r]:[];}if(e.includes(s.sep))return[];let r=[];if(process.env.PATH)for(let e of process.env.PATH.split(s.delimiter))e&&r.push(e);let n=[];for(let i of r){let r=yield a.tryGetExecutablePath(s.join(i,e),t);r&&n.push(r);}return n;});}function d(e,t,r){return o(this,void 0,void 0,function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t);}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t));}let r=yield a.readlink(e);yield a.symlink(r,t,a.IS_WINDOWS?"junction":null);}else(!(yield a.exists(t))||r)&&(yield a.copyFile(e,t));});}e.exports.cp=function(e,t,r={}){return o(this,void 0,void 0,function*(){let{force:n,recursive:i,copySourceDirectory:c}=function(e){let t=null==e.force||e.force,r=!!e.recursive,n=null==e.copySourceDirectory||!!e.copySourceDirectory;return{force:t,recursive:r,copySourceDirectory:n};}(r),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!n)return;let p=u&&u.isDirectory()&&c?s.join(t,s.basename(e)):t;if(!(yield a.exists(e)))throw Error(`no such file or directory: ${e}`);let f=yield a.stat(e);if(f.isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,function*(){if(n>=255)return;n++,yield l(r);let o=yield a.readdir(t);for(let s of o){let o=`${t}/${s}`,c=`${r}/${s}`,l=yield a.lstat(o);l.isDirectory()?yield e(o,c,n,i):yield d(o,c,i);}yield a.chmod(r,(yield a.stat(t)).mode);});}(e,p,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===s.relative(e,p))throw Error(`'${p}' and '${e}' are the same file`);yield d(e,p,n);}});},e.exports.mv=function(e,t,r={}){return o(this,void 0,void 0,function*(){if(yield a.exists(t)){let n=!0;if((yield a.isDirectory(t))&&(t=s.join(t,s.basename(e)),n=yield a.exists(t)),n){if(null==r.force||r.force)yield c(t);else throw Error("Destination already exists");}}yield l(s.dirname(t)),yield a.rename(e,t);});},e.exports.rmRF=c,e.exports.mkdirP=l,e.exports.which=function e(t,r){return o(this,void 0,void 0,function*(){if(!t)throw Error("parameter 'tool' is required");if(r){let r=yield e(t,!1);if(!r){if(a.IS_WINDOWS)throw 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.`);throw 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 r;}let n=yield u(t);return n&&n.length>0?n[0]:"";});},e.exports.findInPath=u;}),B.register("11Ly6",function(e,t){"use strict";var r,n=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),o=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t;},s=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.READONLY=e.exports.UV_FS_O_EXLOCK=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rm=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.open=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;let a=o(m),c=o(f);function l(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid();}r=a.promises,e.exports.chmod=r.chmod,e.exports.copyFile=r.copyFile,e.exports.lstat=r.lstat,e.exports.mkdir=r.mkdir,e.exports.open=r.open,e.exports.readdir=r.readdir,e.exports.readlink=r.readlink,e.exports.rename=r.rename,e.exports.rm=r.rm,e.exports.rmdir=r.rmdir,e.exports.stat=r.stat,e.exports.symlink=r.symlink,e.exports.unlink=r.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=a.constants.O_RDONLY,e.exports.exists=function(t){return s(this,void 0,void 0,function*(){try{yield e.exports.stat(t);}catch(e){if("ENOENT"===e.code)return!1;throw e;}return!0;});},e.exports.isDirectory=function(t,r=!1){return s(this,void 0,void 0,function*(){let n=r?yield e.exports.stat(t):yield e.exports.lstat(t);return n.isDirectory();});},e.exports.isRooted=function(t){var r;if(r=(r=t)||"",!(t=e.exports.IS_WINDOWS?(r=r.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):r.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/");},e.exports.tryGetExecutablePath=function(t,r){return s(this,void 0,void 0,function*(){let n;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){let e=c.extname(t).toUpperCase();if(r.some(t=>t.toUpperCase()===e))return t;}else if(l(n))return t;}let i=t;for(let o of r){t=i+o,n=void 0;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{let r=c.dirname(t),n=c.basename(t).toUpperCase();for(let i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=c.join(r,i);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`);}return t;}if(l(n))return t;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),B.register("8kgpT",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let s=i(B("feUtB"));var a=B("2heqc");e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,c,l;let u=p.platform();for(let o of n){let n=o.version;if(a.debug(`check ${n} satisfies ${t}`),s.satisfies(n,t)&&(!r||o.stable===r)&&(l=o.files.find(t=>{a.debug(`${t.arch}===${i} && ${t.platform}===${u}`);let r=t.arch===i&&t.platform===u;if(r&&t.platform_version){let n=e.exports._getOsVersion();r=n===t.platform_version||s.satisfies(n,t.platform_version);}return r;}))){a.debug(`matched ${o.version}`),c=o;break;}}return c&&l&&((o=Object.assign({},c)).files=[l]),o;});},e.exports._getOsVersion=function(){let t=p.platform(),r="";if("darwin"===t)r=S.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t){let e=t.split("\n");for(let t of e){let e=t.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){r=e[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}}return r;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",t="/etc/os-release",r="";return m.existsSync(e)?r=m.readFileSync(e).toString():m.existsSync(t)&&(r=m.readFileSync(t).toString()),r;};}),B.register("feUtB",function(e,t){t=e.exports=d,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r,n=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function c(e){s[e]=a++;}c("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",c("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",c("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",c("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",c("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",c("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",c("GTLT"),o[s.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",c("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",c("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",c("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),i[s.COERCERTL]=RegExp(o[s.COERCE],"g"),c("LONETILDE"),o[s.LONETILDE]="(?:~>?)",c("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=RegExp(o[s.TILDETRIM],"g"),c("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",c("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",c("LONECARET"),o[s.LONECARET]="(?:\\^)",c("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=RegExp(o[s.CARETTRIM],"g"),c("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",c("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=RegExp(o[s.COMPARATORTRIM],"g"),c("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var l=0;l<a;l++)r(l,o[l]),i[l]||(i[l]=new RegExp(o[l]));function u(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d)return e;if("string"!=typeof e||e.length>256||!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t);}catch(e){return null;}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){if(e.loose===t.loose)return e;e=e.version;}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>256)throw TypeError("version is longer than 256 characters");if(!(this instanceof d))return new d(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>n||this.major<0)throw TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<n)return t;}return e;}):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format();}t.parse=u,t.valid=function(e,t){var r=u(e,t);return r?r.version:null;},t.clean=function(e,t){var r=u(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null;},t.SemVer=d,d.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version;},d.prototype.toString=function(){return this.version;},d.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof d||(e=new d(e,this.options)),this.compareMain(e)||this.comparePre(e);},d.prototype.compareMain=function(e){return e instanceof d||(e=new d(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch);},d.prototype.comparePre=function(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n===i)continue;else return f(n,i);}while(++t);},d.prototype.compareBuild=function(e){e instanceof d||(e=new d(e,this.options));var t=0;do{var n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n===i)continue;else return f(n,i);}while(++t);},d.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new d(e,r).inc(t,n).version;}catch(e){return null;}},t.diff=function(e,t){if(v(e,t))return null;var r=u(e),n=u(t),i="";if(r.prerelease.length||n.prerelease.length){i="pre";var o="prerelease";}for(var s in r)if(("major"===s||"minor"===s||"patch"===s)&&r[s]!==n[s])return i+s;return o;},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var r=p.test(e),n=p.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1;}function m(e,t,r){return new d(e,r).compare(new d(t,r));}function h(e,t,r){return m(e,t,r)>0;}function g(e,t,r){return 0>m(e,t,r);}function v(e,t,r){return 0===m(e,t,r);}function E(e,t,r){return 0!==m(e,t,r);}function y(e,t,r){return m(e,t,r)>=0;}function w(e,t,r){return 0>=m(e,t,r);}function x(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return v(e,r,n);case"!=":return E(e,r,n);case">":return h(e,r,n);case">=":return y(e,r,n);case"<":return g(e,r,n);case"<=":return w(e,r,n);default:throw TypeError("Invalid operator: "+t);}}function b(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof b){if(!!t.loose===e.loose)return e;e=e.value;}if(!(this instanceof b))return new b(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===S?this.value="":this.value=this.operator+this.semver.version,r("comp",this);}t.rcompareIdentifiers=function(e,t){return f(t,e);},t.major=function(e,t){return new d(e,t).major;},t.minor=function(e,t){return new d(e,t).minor;},t.patch=function(e,t){return new d(e,t).patch;},t.compare=m,t.compareLoose=function(e,t){return m(e,t,!0);},t.compareBuild=function(e,t,r){var n=new d(e,r),i=new d(t,r);return n.compare(i)||n.compareBuild(i);},t.rcompare=function(e,t,r){return m(t,e,r);},t.sort=function(e,r){return e.sort(function(e,n){return t.compareBuild(e,n,r);});},t.rsort=function(e,r){return e.sort(function(e,n){return t.compareBuild(n,e,r);});},t.gt=h,t.lt=g,t.eq=v,t.neq=E,t.gte=y,t.lte=w,t.cmp=x,t.Comparator=b;var S={};function I(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof I)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new I(e.raw,t);if(e instanceof b)return new I(e.value,t);if(!(this instanceof I))return new I(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim());},this).filter(function(e){return e.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+e);this.format();}function O(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(e){return i.intersects(e,t);}),i=n.pop();return r;}function R(e){return!e||"x"===e.toLowerCase()||"*"===e;}function T(e,t,r,n,i,o,s,a,c,l,u,d,p){return((t=R(r)?"":R(n)?">="+r+".0.0":R(i)?">="+r+"."+n+".0":">="+t)+" "+(a=R(c)?"":R(l)?"<"+(+c+1)+".0.0":R(u)?"<"+c+"."+(+l+1)+".0":d?"<="+c+"."+l+"."+u+"-"+d:"<="+a)).trim();}function C(e,t,r){try{t=new I(t,r);}catch(e){return!1;}return t.test(e);}function _(e,t,r,n){switch(e=new d(e,n),t=new I(t,n),r){case">":i=h,o=w,s=g,a=">",c=">=";break;case"<":i=g,o=y,s=h,a="<",c="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(C(e,t,n))return!1;for(var i,o,s,a,c,l=0;l<t.set.length;++l){var u=t.set[l],p=null,f=null;if(u.forEach(function(e){e.semver===S&&(e=new b(">=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,n)?p=e:s(e.semver,f.semver,n)&&(f=e);}),p.operator===a||p.operator===c||(!f.operator||f.operator===a)&&o(e,f.semver)||f.operator===c&&s(e,f.semver))return!1;}return!0;}b.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],r=e.match(t);if(!r)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new d(r[2],this.options.loose):this.semver=S;},b.prototype.toString=function(){return this.value;},b.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===S||e===S)return!0;if("string"==typeof e)try{e=new d(e,this.options);}catch(e){return!1;}return x(e,this.operator,this.semver,this.options);},b.prototype.intersects=function(e,t){if(!(e instanceof b))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new I(e.value,t),C(this.value,r,t));if(""===e.operator)return""===e.value||(r=new I(this.value,t),C(e.semver,r,t));var r,n=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),i=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,s=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),a=x(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=x(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||c;},t.Range=I,I.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},I.prototype.toString=function(){return this.range;},I.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];r("hyphen replace",e=e.replace(n,T)),r("comparator trim",e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map(function(e){var t,n,o,a;return r("comp",t=e,n=this.options),r("caret",t=t.trim().split(/\s+/).map(function(e){var t;return r("caret",e,n),t=n.loose?i[s.CARETLOOSE]:i[s.CARET],e.replace(t,function(t,n,i,o,s){var a;return r("caret",e,t,n,i,o,s),R(n)?a="":R(i)?a=">="+n+".0.0 <"+(+n+1)+".0.0":R(o)?a="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":s?(r("replaceCaret pr",s),a="0"===n?"0"===i?">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+"-"+s+" <"+(+n+1)+".0.0"):(r("no pr"),a="0"===n?"0"===i?">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"),r("caret return",a),a;});}).join(" ")),r("tildes",t=t.trim().split(/\s+/).map(function(e){var t;return t=n.loose?i[s.TILDELOOSE]:i[s.TILDE],e.replace(t,function(t,n,i,o,s){var a;return r("tilde",e,t,n,i,o,s),R(n)?a="":R(i)?a=">="+n+".0.0 <"+(+n+1)+".0.0":R(o)?a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":s?(r("replaceTilde pr",s),a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"):a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0",r("tilde return",a),a;});}).join(" ")),r("xrange",(r("replaceXRanges",o=t,n),t=o.split(/\s+/).map(function(e){var t,o;return t=(t=e).trim(),o=n.loose?i[s.XRANGELOOSE]:i[s.XRANGE],t.replace(o,function(e,i,o,s,a,c){r("xRange",t,e,i,o,s,a,c);var l=R(o),u=l||R(s),d=u||R(a);return"="===i&&d&&(i=""),c=n.includePrerelease?"-0":"",l?e=">"===i||"<"===i?"<0.0.0-0":"*":i&&d?(u&&(s=0),a=0,">"===i?(i=">=",u?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",u?o=+o+1:s=+s+1),e=i+o+"."+s+"."+a+c):u?e=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c:d&&(e=">="+o+"."+s+".0"+c+" <"+o+"."+(+s+1)+".0"+c),r("xRange return",e),e;});}).join(" "))),r("stars",(r("replaceStars",a=t,n),t=a.trim().replace(i[s.STAR],""))),t;},this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter(function(e){return!!e.match(o);})),a=a.map(function(e){return new b(e,this.options);},this);},I.prototype.intersects=function(e,t){if(!(e instanceof I))throw TypeError("a Range is required");return this.set.some(function(r){return O(r,t)&&e.set.some(function(e){return O(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t);});});});});},t.toComparators=function(e,t){return new I(e,t).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},I.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options);}catch(e){return!1;}for(var t=0;t<this.set.length;t++)if(function(e,t,n){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++)if(r(e[i].semver),e[i].semver!==S&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0;}return!1;}return!0;}(this.set[t],e,this.options))return!0;return!1;},t.satisfies=C,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var o=new I(t,r);}catch(e){return null;}return e.forEach(function(e){o.test(e)&&(!n||-1===i.compare(e))&&(n=e,i=new d(n,r));}),n;},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var o=new I(t,r);}catch(e){return null;}return e.forEach(function(e){o.test(e)&&(!n||1===i.compare(e))&&(n=e,i=new d(n,r));}),n;},t.minVersion=function(e,t){e=new I(e,t);var r=new d("0.0.0");if(e.test(r)||(r=new d("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n<e.set.length;++n)e.set[n].forEach(function(e){var t=new d(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!r||h(r,t))&&(r=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return r&&e.test(r)?r:null;},t.validRange=function(e,t){try{return new I(e,t).range||"*";}catch(e){return null;}},t.ltr=function(e,t,r){return _(e,t,"<",r);},t.gtr=function(e,t,r){return _(e,t,">",r);},t.outside=_,t.prerelease=function(e,t){var r=u(e,t);return r&&r.prerelease.length?r.prerelease:null;},t.intersects=function(e,t,r){return e=new I(e,r),t=new I(t,r),e.intersects(t);},t.coerce=function(e,t){if(e instanceof d)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var r,n=null;if((t=t||{}).rtl){for(;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1;}else n=e.match(i[s.COERCE]);return null===n?null:u(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),B.register("bxsAi",function(e,t){var r=B("lyWSC"),n=B("2cprb");e.exports=function(e,t,i){var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||n(s);};}),B.register("lyWSC",function(e,t){e.exports=function(){return h.randomBytes(16);};}),B.register("2cprb",function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("");};}),B.register("2mVwa",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let s=i(B("19yql"));function a(e,t,r){return o(this,void 0,void 0,function*(){let n=s.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];t=n.slice(1).concat(t||[]);let o=new s.ToolRunner(i,t,r);return o.exec();});}e.exports.exec=a,e.exports.getExecOutput=function(e,t,r){var n,i;return o(this,void 0,void 0,function*(){let o="",s="",c=new I.StringDecoder("utf8"),l=new I.StringDecoder("utf8"),u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,d=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,p=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout:e=>{o+=c.write(e),u&&u(e);},stderr:e=>{s+=l.write(e),d&&d(e);}}),f=yield a(e,t,Object.assign(Object.assign({},r),{listeners:p}));return{exitCode:f,stdout:o+=c.end(),stderr:s+=l.end()};});};}),B.register("19yql",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let s=i(p),a=i(y),c=i(S),l=i(f),u=i(B("kSdX3")),d=i(B("11Ly6")),m="win32"===process.platform;class h extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{};}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e);}_getCommandString(e,t){let r=this._getSpawnFileName(),n=this._getSpawnArgs(e),i=t?"":"[command]";if(m){if(this._isCmdFile())for(let e of(i+=r,n))i+=` ${e}`;else if(e.windowsVerbatimArguments)for(let e of(i+=`"${r}"`,n))i+=` ${e}`;else for(let e of(i+=this._windowsQuoteCmdArg(r),n))i+=` ${this._windowsQuoteCmdArg(e)}`;}else for(let e of(i+=r,n))i+=` ${e}`;return i;}_processLineBuffer(e,t,r){try{let n=t+e.toString(),i=n.indexOf(s.EOL);for(;i>-1;){let e=n.substring(0,i);r(e),i=(n=n.substring(i+s.EOL.length)).indexOf(s.EOL);}return n;}catch(e){return this._debug(`error processing line. Failed with error ${e}`),"";}}_getSpawnFileName(){return m&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(m&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let r of this.args)t+=" "+(e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r));return[t+='"'];}return this.args;}_endsWith(e,t){return e.endsWith(t);}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT");}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let n of e)if(t.some(e=>e===n)){r=!0;break;}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return(n+='"').split("").reverse().join("");}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return(t+='"').split("").reverse().join("");}_cloneExecOptions(e){e=e||{};let t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t;}_getSpawnOptions(e,t){e=e||{};let r={};return r.cwd=e.cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r;}exec(){return o(this,void 0,void 0,function*(){return!d.isRooted(this.toolPath)&&(this.toolPath.includes("/")||m&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise((e,t)=>o(this,void 0,void 0,function*(){for(let e of(this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:"),this.args))this._debug(` ${e}`);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+s.EOL);let n=new g(r,this.toolPath);if(n.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield d.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=c.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i)),a="";o.stdout&&o.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e);});});let l="";if(o.stderr&&o.stderr.on("data",e=>{if(n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream){let t=r.failOnStdErr?r.errStream:r.outStream;t.write(e);}l=this._processLineBuffer(e,l,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e);});}),o.on("error",e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete();}),o.on("exit",e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete();}),o.on("close",e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete();}),n.on("done",(r,n)=>{a.length>0&&this.emit("stdline",a),l.length>0&&this.emit("errline",l),o.removeAllListeners(),r?t(r):e(n);}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=h,e.exports.argStringToArray=function(e){let t=[],r=!1,n=!1,i="";function o(e){n&&'"'!==e&&(i+="\\"),i+=e,n=!1;}for(let s=0;s<e.length;s++){let a=e.charAt(s);if('"'===a){n?o(a):r=!r;continue;}if("\\"===a&&n){o(a);continue;}if("\\"===a&&r){n=!0;continue;}if(" "===a&&!r){i.length>0&&(t.push(i),i="");continue;}o(a);}return i.length>0&&t.push(i.trim()),t;};class g extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay);}CheckComplete(){!this.done&&(this.processClosed?this._setResult():this.processExited&&(this.timeout=O.setTimeout(g.HandleTimeout,this.delay,this)));}_debug(e){this.emit("debug",e);}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode);}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t);}e._setResult();}}}}),B.register("29uOU",function(e,t){var r=B("gsDyR");e.exports=(e,t,n)=>0>=r(e,t,n);}),B.register("gsDyR",function(e,t){var r=B("7oICO");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),B.register("7oICO",function(e,t){var r=B("8S3lx"),n=B("64eL1"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=B("2LGsN"),a=s.re,c=s.t,l=B("lGztF"),u=B("17EWg").compareIdentifiers;class d{constructor(e,t){if(t=l(t),e instanceof d){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version;}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[c.LOOSE]:a[c.FULL]);if(!n)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<o)return t;}return e;}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format();}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version;}toString(){return this.version;}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof d)){if("string"==typeof e&&e===this.version)return 0;e=new d(e,this.options);}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e);}compareMain(e){return e instanceof d||(e=new d(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch);}comparePre(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n===i)continue;else return u(n,i);}while(++t);}compareBuild(e){e instanceof d||(e=new d(e,this.options));let t=0;do{let n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n===i)continue;else return u(n,i);}while(++t);}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=Number(r)?1:0;if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break;}default:throw Error(`invalid increment argument: ${e}`);}return this.format(),this.raw=this.version,this;}}e.exports=d;}),B.register("8S3lx",function(e,t){let r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r;}),B.register("64eL1",function(e,t){let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),B.register("2LGsN",function(e,t){var r=B("64eL1").MAX_SAFE_COMPONENT_LENGTH,n=B("8S3lx");t=e.exports={};let i=t.re=[],o=t.src=[],s=t.t={},a=0,c=(e,t,r)=>{let c=a++;n(e,c,t),s[e]=c,o[c]=t,i[c]=new RegExp(t,r?"g":void 0);};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${o[s.NUMERICIDENTIFIER]})\\.(${o[s.NUMERICIDENTIFIER]})\\.(${o[s.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${o[s.NUMERICIDENTIFIERLOOSE]})\\.(${o[s.NUMERICIDENTIFIERLOOSE]})\\.(${o[s.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${o[s.NUMERICIDENTIFIER]}|${o[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${o[s.NUMERICIDENTIFIERLOOSE]}|${o[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${o[s.PRERELEASEIDENTIFIER]}(?:\\.${o[s.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${o[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[s.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${o[s.BUILDIDENTIFIER]}(?:\\.${o[s.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${o[s.MAINVERSION]}${o[s.PRERELEASE]}?${o[s.BUILD]}?`),c("FULL",`^${o[s.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${o[s.MAINVERSIONLOOSE]}${o[s.PRERELEASELOOSE]}?${o[s.BUILD]}?`),c("LOOSE",`^${o[s.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${o[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${o[s.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${o[s.XRANGEIDENTIFIER]})(?:\\.(${o[s.XRANGEIDENTIFIER]})(?:\\.(${o[s.XRANGEIDENTIFIER]})(?:${o[s.PRERELEASE]})?${o[s.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${o[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[s.XRANGEIDENTIFIERLOOSE]})(?:${o[s.PRERELEASELOOSE]})?${o[s.BUILD]}?)?)?`),c("XRANGE",`^${o[s.GTLT]}\\s*${o[s.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${o[s.GTLT]}\\s*${o[s.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",o[s.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${o[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${o[s.LONETILDE]}${o[s.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${o[s.LONETILDE]}${o[s.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${o[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${o[s.LONECARET]}${o[s.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${o[s.LONECARET]}${o[s.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${o[s.GTLT]}\\s*(${o[s.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${o[s.GTLT]}\\s*(${o[s.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${o[s.GTLT]}\\s*(${o[s.LOOSEPLAIN]}|${o[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${o[s.XRANGEPLAIN]})\\s+-\\s+(${o[s.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${o[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[s.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),B.register("lGztF",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),B.register("17EWg",function(e,t){let r=/^[0-9]+$/,n=(e,t)=>{let n=r.test(e),i=r.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1;};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)};}),B.register("i9nXz",function(e,t){var r=B("7oICO"),n=B("cazyM"),i=B("2LGsN"),o=i.re,s=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let t;for(;(t=o[s.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&t.index+t[0].length===i.index+i[0].length||(i=t),o[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[s.COERCERTL].lastIndex=-1;}else i=e.match(o[s.COERCE]);return null===i?null:n(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,t);};}),B.register("cazyM",function(e,t){var r=B("7oICO");e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t);}catch(e){if(!n)return null;throw e;}};}),B.register("l2nMb",function(e,t){var r=B("cazyM");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),B.register("kPKFw",function(e,t){e.exports=Promise.resolve(require("./actions_python.37fd2df3.js")).then(()=>B("8L9T2"));}),B.register("16mXi",function(e,t){var r=B("7oICO");e.exports=(e,t)=>new r(e,t).major;});var H=B("cLprm"),q=B("hHq4F"),V=B("3abeg"),X={};(function(){B("ljv3o").addLocale("en",function(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r)?"one":"other";});}).call(X);var W={};W=B("kAOmP");"use strict";var z={};z={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}};var K={};const Y=p.homedir();function Q(e){return e&&e.__esModule?e.default:e;}function J(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function Z(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise((r,n)=>{Z(e,t||{},(e,t)=>{e?n(e):r(t);});});}ew(e,t||{},(e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function ee(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd);}catch(e){}try{r=ev.sync(e.command,{path:n[e_({env:n})],pathExt:t?f.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=(0,f.resolve)(o?e.options.cwd:"",r)),r;}function et(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args});}function er(e,t){return eU&&1===e&&!t.file?et(t.original,"spawn"):null;}function en(e,t,r){let n=eC(e,t,r),i=(0,S.spawn)(n.command,n.args,n.options);return eD.hookChildProcess(i,n),i;}async function ei(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=tT(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=t_.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await t$(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new tA());});}),n.getBufferedValue();}function eo(){return null!==Q(ev).sync("sudo",{nothrow:!0});}function es(){var e;return 0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process))||!!process.env.CI;}function ea(){return es()&&eo();}function ec(e){return ea()?"sudo "+e:e;}function el(e,t=[],r={stdio:"inherit",shell:!0}){return ea()?Q(eR).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):Q(eR).sync(e,t,r);}function eu(e,t=[],r={stdio:"inherit",shell:!0}){return ea()?Q(eR).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):Q(eR)(e,t,r);}function ed(){return"win32"===process.platform?t4():es();}K=e=>{if("string"!=typeof e)throw TypeError(`Expected a string, got ${typeof e}`);return Y?e.replace(/^~(?=$|\/|\\)/,Y):e;};var ep="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==M?M:{},ef={},em={},eh=ep.parcelRequireb51e;null==eh&&((eh=e=>{if(e in ef)return ef[e].exports;if(e in em){var t=em[e];delete em[e];var r={id:e,exports:{}};return ef[e]=r,t.call(r.exports,r,r.exports),r.exports;}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n;}).register=(e,t)=>{em[e]=t;},ep.parcelRequireb51e=eh),eh.register("djkmR",(e,t)=>{function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&((e,t)=>{var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;r.length>n;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0;}return!1;})(t,r);}function n(e,t,n){(0,m.stat)(e,(i,o)=>{n(i,!i&&r(o,e,t));});}e.exports=n,n.sync=(e,t)=>r((0,m.statSync)(e),e,t);}),eh.register("e1CjR",(e,t)=>{function r(e,t,r){(0,m.stat)(e,(e,i)=>{r(e,!e&&n(i,t));});}function n(e,t){var r,n,i,o,s,a,c;return e.isFile()&&(r=e.mode,n=e.uid,i=e.gid,o=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),r&parseInt("001",8)||r&c&&i===s||r&a&&n===o||r&(a|c)&&0===o);}e.exports=r,r.sync=(e,t)=>n((0,m.statSync)(e),t);}),eh.register("4c98W",(e,t)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");});var eg={};J(eg,"hasSudo",()=>eo),J(eg,"isRoot",()=>es),J(eg,"isSudo",()=>ea),J(eg,"prependSudo",()=>ec),J(eg,"execRootSync",()=>el),J(eg,"execRoot",()=>eu);var ev={};const eE="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,ey=eE?";":":";var ew,ex={};ew=eh("win32"===process.platform||ep.TESTING_WINDOWS?"djkmR":"e1CjR"),ex=Z,Z.sync=(e,t)=>{try{return ew.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const eb=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),eS=(e,t)=>{let r=t.colon||ey,n=e.match(/\//)||eE&&e.match(/\\/)?[""]:[...(eE?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=eE?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=eE?i.split(r):[""];return eE&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},eI=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=eS(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(eb(e));let a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=(0,f.join)(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;i(c(d,r,0));}),c=(e,r,n)=>new Promise((l,u)=>{if(n===i.length)return l(a(r+1));let d=i[n];ex(e+d,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return l(e+d);s.push(e+d);}return l(c(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};ev=eI,eI.sync=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=eS(e,t),o=[];for(let s=0;r.length>s;s++){let a=r[s],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=(0,f.join)(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;n.length>e;e++){let r=u+n[e];try{if(ex.sync(r,{pathExt:i})){if(!t.all)return r;o.push(r);}}catch(e){}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw eb(e);};var eO,eR={},eT={},eC={},e_={};const eP=(e={})=>{let t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(e_=eP).default=eP,eO=e=>ee(e)||ee(e,!0);const e$=/([()\][%!^"`<>&|;, *?])/g;eq=e=>e.replace(e$,"^$1"),eV=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(e$,"^$1"),t&&(e=e.replace(e$,"^$1")),e),eW=/^#!(.*)/,eX=(e="")=>{let t=e.match(eW);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},ez=e=>{let t;let r=Buffer.alloc(150);try{t=(0,m.openSync)(e,"r"),(0,m.readSync)(t,r,0,150,0),(0,m.closeSync)(t);}catch(e){}return eX(""+r);};const eA="win32"===process.platform,eN=/\.(?:com|exe)$/i,eL=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;eC=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);let n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:(e=>{if(!eA)return e;let t=(e=>{e.file=eO(e);let t=e.file&&ez(e.file);return t?(e.args.unshift(e.file),e.command=t,eO(e)):e.file;})(e),r=!eN.test(t);if(e.options.forceShell||r){let r=eL.test(t);e.command=(0,f.normalize)(e.command),e.command=eq(e.command),e.args=e.args.map(e=>eV(e,r));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;})(n);};var eD={};const eU="win32"===process.platform;eD={hookChildProcess(e,t){if(!eU)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=er(i,t);if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:er,verifyENOENTSync:(e,t)=>eU&&1===e&&!t.file?et(t.original,"spawnSync"):null,notFoundError:et},(eT=en).spawn=en,eT.sync=(e,t,r)=>{let n=eC(e,t,r),i=(0,S.spawnSync)(n.command,n.args,n.options);return i.error=i.error||eD.verifyENOENTSync(i.status,n),i;},eT._parse=eC,eT._enoent=eD,eK=e=>{let t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e;};var ek={};const ej=e=>{let t;e={cwd:process.cwd(),path:process.env[e_()],execPath:process.execPath,...e};let r=(0,f.resolve)(e.cwd),n=[];for(;t!==r;)n.push((0,f.join)(r,"node_modules/.bin")),t=r,r=(0,f.resolve)(r,"..");let i=(0,f.resolve)(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(f.delimiter);};(ek=ej).default=ej,ek.env=e=>{let t={...(e={env:process.env,...e}).env},r=e_({env:t});return e.path=t[r],t[r]=ek(e),t;};var eM={},eG={};const eF=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e;};(eG=eF).default=eF;const eB=new WeakMap(),eH=(e,t={})=>{if("function"!=typeof e)throw TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(eB.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return eG(o,e),eB.set(o,n),o;};(eM=eH).default=eH,eM.callCount=e=>{if(!eB.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return eB.get(e);};var eq,eV,eX,eW,ez,eK,eY,eQ={};Object.defineProperty(eQ,"__esModule",{value:!0}),eQ.signalsByNumber=eQ.signalsByName=void 0;var eJ={};Object.defineProperty(eJ,"__esModule",{value:!0}),eJ.getSignals=void 0;var eZ={};Object.defineProperty(eZ,"__esModule",{value:!0}),eZ.SIGNALS=void 0,eZ.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var e0={};Object.defineProperty(e0,"__esModule",{value:!0}),e0.SIGRTMAX=e0.getRealtimeSignals=void 0,e0.getRealtimeSignals=()=>Array.from({length:e3-e2+1},e1);const e1=(e,t)=>({name:"SIGRT"+(t+1),number:e2+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),e2=34,e3=64;e0.SIGRTMAX=e3,eJ.getSignals=()=>{let e=(0,e0.getRealtimeSignals)();return[...eZ.SIGNALS,...e].map(e4);};const e4=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=p.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},e6=(0,eJ.getSignals)().reduce((e,{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a})=>({...e,[t]:{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}}),{});eQ.signalsByName=e6;const e8=(()=>{let e=(0,eJ.getSignals)(),t=Array.from({length:e0.SIGRTMAX+1},(t,r)=>((e,t)=>{let r=((e,t)=>{let r=t.find(({name:t})=>p.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);})(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:c}};})(r,e));return Object.assign({},...t);})();eQ.signalsByNumber=e8;var e5=eQ.signalsByName;eY=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{let p=void 0===(i=null===i?void 0:i)?void 0:e5[i].description,f=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed")({timedOut:c,timeout:d,errorCode:n&&n.code,signal:i,signalDescription:p,exitCode:o=null===o?void 0:o,isCanceled:l}),m=`Command ${f}: ${s}`,h="[object Error]"==={}.toString.call(n),g=h?`${m}
|
|
${n.message}`:m,v=[g,t,e].filter(Boolean).join("\n");return h?(n.originalMessage=n.message,n.message=v):n=Error(v),n.shortMessage=g,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=l,n.killed=u&&!c,n;};var e9={};const e7=["stdin","stdout","stderr"],te=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return e7.map(t=>e[t]);if(e7.some(t=>void 0!==e[t]))throw Error("It's not possible to provide `stdio` in combination with one of "+e7.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,e7.length)},(e,r)=>t[r]);};(e9=te).node=e=>{let t=te(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];};var tt,tr={},tn=ep.process;const ti=e=>e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;if(ti(tn)){var to,ts=eh("4c98W"),ta=/^win/i.test(tn.platform),tc=y;"function"!=typeof tc&&(tc=tc.EventEmitter),tn.__signal_exit_emitter__?to=tn.__signal_exit_emitter__:((to=tn.__signal_exit_emitter__=new tc()).count=0,to.emitted={}),to.infinite||(to.setMaxListeners(1/0),to.infinite=!0);var tl=()=>{tp&&ti(ep.process)&&(tp=!1,ts.forEach(e=>{try{tn.removeListener(e,td[e]);}catch(e){}}),tn.emit=tg,tn.reallyExit=tm,to.count-=1);};(tr=(e,t)=>{if(!ti(ep.process))return()=>{};w.equal(typeof e,"function","a callback must be provided for exit handler"),!1===tp&&tf();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),to.on(r,e),()=>{to.removeListener(r,e),0===to.listeners("exit").length&&0===to.listeners("afterexit").length&&tl();};}).unload=tl;var tu=(e,t,r)=>{to.emitted[e]||(to.emitted[e]=!0,to.emit(e,t,r));},td={};ts.forEach(e=>{td[e]=()=>{ti(ep.process)&&tn.listeners(e).length===to.count&&(tl(),tu("exit",null,e),tu("afterexit",null,e),ta&&"SIGHUP"===e&&(e="SIGINT"),tn.kill(tn.pid,e));};}),tr.signals=()=>ts;var tp=!1,tf=()=>{!tp&&ti(ep.process)&&(tp=!0,to.count+=1,ts=ts.filter(e=>{try{return tn.on(e,td[e]),!0;}catch(e){return!1;}}),tn.emit=tv,tn.reallyExit=th);};tr.load=tf;var tm=tn.reallyExit,th=e=>{ti(ep.process)&&(tn.exitCode=e||0,tu("exit",tn.exitCode,null),tu("afterexit",tn.exitCode,null),tm.call(tn,tn.exitCode));},tg=tn.emit,tv=function(e,t){if("exit"===e&&ti(ep.process)){void 0!==t&&(tn.exitCode=t);var r=tg.apply(this,arguments);return tu("exit",tn.exitCode,null),tu("afterexit",tn.exitCode,null),r;}return tg.apply(this,arguments);};}else tr=()=>()=>{};const tE=e=>e===p.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var ty,tw=(tt={spawnedKill(e,t="SIGTERM",r={}){let n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>tE(e)&&!1!==t&&r)(t,r,n))return;let i=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;})(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();})(e,t,r,n),n;},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0);},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{e.kill(r),o(Object.assign(Error("Timed out"),{timedOut:!0,signal:r}));},t);}),s=n.finally(()=>{clearTimeout(i);});return Promise.race([o,s]);},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},async setExitHandler(e,{cleanup:t,detached:r},n){if(!t||r)return n;let i=tr(()=>{e.kill();});return n.finally(()=>{i();});}}).spawnedKill,tx=tt.spawnedCancel,tb=tt.setupTimeout,tS=tt.validateTimeout,tI=tt.setExitHandler,tO={};const tR=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;tR.writable=e=>tR(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,tR.readable=e=>tR(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,tR.duplex=e=>tR.writable(e)&&tR.readable(e),tR.transform=e=>tR.duplex(e)&&"function"==typeof e._transform,tO=tR;var tT,tC={},t_=R.constants,tP=T.PassThrough;tT=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new tP({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",e=>{a.push(e),i?s=a.length:s+=e.length;}),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o;};const t$=(0,x.promisify)(T.pipeline);class tA extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(tC=ei).buffer=(e,t)=>ei(e,{...t,encoding:"buffer"}),tC.array=(e,t)=>ei(e,{...t,array:!0}),tC.MaxBufferError=tA;var tN,tL=T.PassThrough;tN=function(){function e(i){return Array.isArray(i)?(i.forEach(e),this):(r.push(i),i.once("end",t.bind(null,i)),i.once("error",n.emit.bind(n,"error")),i.pipe(n,{end:!1}),this);}function t(e){!(r=r.filter(t=>t!==e)).length&&n.readable&&n.end();}var r=[],n=new tL({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=function(){return 0==r.length;},n.on("unpipe",t),[].slice.call(arguments).forEach(e),n;};const tD=async(e,t)=>{if(e){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},tU=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?tC(e,{encoding:t,maxBuffer:n}):tC.buffer(e,{maxBuffer:n});};var tk,tj=(ty={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(tO(t)?t.pipe(e.stdin):e.stdin.end(t));},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;let r=tN();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s){let a=tU(e,{encoding:n,buffer:i,maxBuffer:o}),c=tU(t,{encoding:n,buffer:i,maxBuffer:o}),l=tU(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,c,l]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},tD(e,a),tD(t,c),tD(r,l)]);}},validateInputSync({input:e}){if(tO(e))throw TypeError("The `input` option cannot be a stream in sync mode");}}).handleInput,tM=ty.getSpawnedResult,tG=ty.makeAllStream,tF=ty.validateInputSync;const tB=(async()=>{})().constructor.prototype,tH=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(tB,e)]);var tq,tV=(tk={mergePromise(e,t){for(let[r,n]of tH){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}return e;},getSpawnedPromise:e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});})}).mergePromise,tX=tk.getSpawnedPromise;const tW=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],tz=/^[\w.-]+$/,tK=/"/g,tY=/ +/g;var tQ=(tq={joinCommand:(e,t)=>tW(e,t).join(" "),getEscapedCommand:(e,t)=>tW(e,t).map(e=>"string"!=typeof e||tz.test(e)?e:`"${e.replace(tK,'\\"')}"`).join(" "),parseCommand(e){let t=[];for(let r of e.trim().split(tY)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;}}).joinCommand,tJ=tq.parseCommand,tZ=tq.getEscapedCommand;const t0=(e,t,r={})=>{let n=eT._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...process.env,...e}:e;return r?ek.env({env:o,cwd:n,execPath:i}):o;})(r),r.stdio=e9(r),"win32"===process.platform&&"cmd"===(0,f.basename)(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},t1=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?eK(t):t:void 0===r?void 0:"",t2=(e,t,r)=>{let n;let i=t0(e,t,r),o=tQ(e,t),s=tZ(e,t);tS(i.options);try{n=(0,S.spawn)(i.file,i.args,i.options);}catch(r){let e=new S.ChildProcess(),t=Promise.reject(eY({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return tV(e,t);}let a=tX(n),c=tb(n,i.options,a),l=tI(n,i.options,c),u={isCanceled:!1};n.kill=tw.bind(null,n.kill.bind(n)),n.cancel=tx.bind(null,n,u);let d=eM(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},c,d,p]=await tM(n,i.options,l),f=t1(i.options,c),m=t1(i.options,d),h=t1(i.options,p);if(e||0!==t||null!==r){let c=eY({error:e,exitCode:t,signal:r,stdout:f,stderr:m,all:h,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled,killed:n.killed});if(!i.options.reject)return c;throw c;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:m,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return tj(n,i.options.input),n.all=tG(n,i.options),tV(n,d);};(eR=t2).sync=(e,t,r)=>{let n;let i=t0(e,t,r),o=tQ(e,t),s=tZ(e,t);tF(i.options);try{n=(0,S.spawnSync)(i.file,i.args,i.options);}catch(e){throw eY({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let a=t1(i.options,n.stdout,n.error),c=t1(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=eY({stdout:a,stderr:c,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},eR.command=(e,t)=>{let[r,...n]=tJ(e);return t2(r,n,t);},eR.commandSync=(e,t)=>{let[r,...n]=tJ(e);return t2.sync(r,n,t);},eR.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);let n=e9.node(r),i=process.execArgv.filter(e=>!e.startsWith("--inspect")),{nodePath:o=process.execPath,nodeOptions:s=i}=r;return t2(o,[...s,e,...(Array.isArray(t)?t:[])],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1});};var t3={};J(t3,"isAdminWindows",()=>t4),J(t3,"isAdminPosix",()=>t6),J(t3,"isAdmin",()=>ed);const t4=async()=>{if("win32"!==j(C).platform)return!1;try{var e;return await Q(eR)("fsutil",["dirty","query",null!==(e=j(C).env.systemdrive)&&void 0!==e?e:""]),!0;}catch(e){return"ENOENT"===e.code&&(async()=>{try{return await Q(eR)("fltmc"),!0;}catch{return!1;}})();}},t6=es;function t8(e){return ea()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?(0,f.join)("/Users/",process.env.SUDO_USER,e):(0,f.join)("/home/",process.env.SUDO_USER,e):j(K)(`~/${e}`);}"use strict";var q=B("hHq4F"),t5={},t9={};const t7={},re=(e,t)=>{let r=t7[e]||(t7[e]=require(e));return t?r[t]:r;},rt=(e,t,r)=>{Object.defineProperty(t9,e,{get:()=>{let n=re(t,r);return Object.defineProperty(t9,e,{value:n,enumerable:!0,configurable:!0}),n;},configurable:!0,enumerable:!0});};function rr(e){return e&&"object"==typeof e&&"default"in e?e:{default:e};}rt("re","./internal/re","re"),rt("src","./internal/re","src"),rt("tokens","./internal/re","t"),rt("SEMVER_SPEC_VERSION","./internal/constants","SEMVER_SPEC_VERSION"),rt("SemVer","./classes/semver"),rt("compareIdentifiers","./internal/identifiers","compareIdentifiers"),rt("rcompareIdentifiers","./internal/identifiers","rcompareIdentifiers"),rt("parse","./functions/parse"),rt("valid","./functions/valid"),rt("clean","./functions/clean"),rt("inc","./functions/inc"),rt("diff","./functions/diff"),rt("major","./functions/major"),rt("minor","./functions/minor"),rt("patch","./functions/patch"),rt("prerelease","./functions/prerelease"),rt("compare","./functions/compare"),rt("rcompare","./functions/rcompare"),rt("compareLoose","./functions/compare-loose"),rt("compareBuild","./functions/compare-build"),rt("sort","./functions/sort"),rt("rsort","./functions/rsort"),rt("gt","./functions/gt"),rt("lt","./functions/lt"),rt("eq","./functions/eq"),rt("neq","./functions/neq"),rt("gte","./functions/gte"),rt("lte","./functions/lte"),rt("cmp","./functions/cmp"),rt("coerce","./functions/coerce"),rt("Comparator","./classes/comparator"),rt("Range","./classes/range"),rt("satisfies","./functions/satisfies"),rt("toComparators","./ranges/to-comparators"),rt("maxSatisfying","./ranges/max-satisfying"),rt("minSatisfying","./ranges/min-satisfying"),rt("minVersion","./ranges/min-version"),rt("validRange","./ranges/valid"),rt("outside","./ranges/outside"),rt("gtr","./ranges/gtr"),rt("ltr","./ranges/ltr"),rt("intersects","./ranges/intersects");var rn=rr(C),ri=rr(t9),ro=rr(p),rs=rr(f),ra=rr(m),rc=rr(v);function rl(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});}function ru(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1];},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this;}),o;function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue;}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break;}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break;}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break;}i[2]&&s.ops.pop(),s.trys.pop();continue;}o=t.call(e,s);}catch(e){o=[6,e],n=0;}finally{r=i=0;}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0};}([o,a]);};}}var rd=rn.default.env.npm_package_json,rp=rn.default.env.npm_config_user_agent,rf=!!(rp&&rp.startsWith("npm")),rm=!!(rd&&rd.endsWith("package.json")),rh=!!(rp&&rp.startsWith("yarn")),rg=rf||rm||rh,rv=ro.default.homedir(),rE=process.env.XDG_CONFIG_HOME||rs.default.join(rv,".config","simple-update-notifier"),ry=function(e){return rs.default.join(rE,"".concat(e.replace("@","").replace("/","__"),".json"));},rw=function(){ra.default.existsSync(rE)||ra.default.mkdirSync(rE,{recursive:!0});},rx=function(e){var t=ry(e);try{if(!ra.default.existsSync(t))return;return JSON.parse(ra.default.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},rb=function(e){var t=ry(e);ra.default.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},rS=function(e){var t=e.pkg,r=e.updateCheckInterval,n=void 0===r?864e5:r,i=e.distTag,o=void 0===i?"latest":i,s=e.alwaysRun,a=e.debug;return rl(void 0,void 0,void 0,function(){var e,r;return ru(this,function(i){switch(i.label){case 0:var c;if(rw(),e=rx(t.name),!(s||!e||e<new Date().getTime()-n))return[3,2];return[4,(c=t.name,rl(void 0,void 0,void 0,function(){var e;return ru(this,function(t){return e="https://registry.npmjs.org/-/package/".concat(c,"/dist-tags"),[2,new Promise(function(t,r){rc.default.get(e,function(e){var n="";e.on("data",function(e){return n+=e;}),e.on("end",function(){try{var e=JSON.parse(n)[o];e||r(Error("Error getting version")),t(e);}catch(e){r(Error("Could not parse version response"));}});}).on("error",function(e){return r(e);});})];});}))];case 1:if(r=i.sent(),rb(t.name),ri.default.gt(r,t.version))return[2,r];return a&&console.error("Latest version (".concat(r,") not newer than current version (").concat(t.version,")")),[3,3];case 2:a&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(n,"ms but only ").concat(new Date().getTime()-e,"ms since last check.")),i.label=3;case 3:return[2,!1];}});});},rI=function(e){for(var t=e.split("\n"),r=Math.max.apply(Math,t.map(function(e){return e.length;})),n=["┌".concat("─".repeat(r+2),"┐")],i=0;i<t.length;i++){var o=t[i];n.push("│ ".concat(o.padEnd(r)," │"));}return n.push("└".concat("─".repeat(r+2),"┘")),n.join("\n");};t5=function(e){return rl(void 0,void 0,void 0,function(){var t,r;return ru(this,function(n){switch(n.label){case 0:if(!e.alwaysRun&&(!process.stdout.isTTY||rg&&!e.shouldNotifyInNpmScript))return e.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,rS(e)];case 2:return(t=n.sent())&&console.error(rI("New version of ".concat(e.pkg.name," available!\nCurrent Version: ").concat(e.pkg.version,"\nLatest Version: ").concat(t))),[3,4];case 3:return r=n.sent(),e.debug&&r instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",r),[3,4];case 4:return[2];}});});};var rO={};async function rR(){try{await j(t5)({pkg:j(rO)});}catch(e){(0,q.warning)(`Failed to check for updates: ${e instanceof Error?e.message+e.stack:e}`);}}rO=JSON.parse('{"name":"setup-cpp","version":"0.28.0"}');var rT=B("2heqc"),q=B("hHq4F");function rC(e){return null==e?[]:Array.isArray(e)?e:[e];}var rT=B("2heqc"),q=B("hHq4F"),r_=B("A8hFE"),rP={};const r$="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,rA=r$?";":":";var rN={};function rL(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(r,n){rL(e,t||{},function(e,t){e?n(e):r(t);});});}nO(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}nO="win32"===process.platform||M.TESTING_WINDOWS?B("gRK0M"):B("9ZovO"),rN=rL,rL.sync=function(e,t){try{return nO.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};"use strict";"use strict";"use strict";"use strict";"use strict";const rD=e=>Object.assign(Error(`not found: ${e}`),{code:"ENOENT"}),rU=(e,t)=>{let r=t.colon||rA,n=e.match(/\//)||r$&&e.match(/\\/)?[""]:[...(r$?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=r$?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=r$?i.split(r):[""];return r$&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},rk=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=rU(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(rD(e));let a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=f.join(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;i(c(d,r,0));}),c=(e,r,n)=>new Promise((l,u)=>{if(n===i.length)return l(a(r+1));let d=i[n];rN(e+d,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return l(e+d);s.push(e+d);}return l(c(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};rP=rk,rk.sync=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=rU(e,t),o=[];for(let s=0;s<r.length;s++){let a=r[s],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=f.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;e<n.length;e++){let r=u+n[e];try{let e=rN.sync(r,{pathExt:i});if(e){if(!t.all)return r;o.push(r);}}catch(e){}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw rD(e);};var rj={},rM={},rG={},rF={},rB={};const rH=(e={})=>{let t=e.env||process.env,r=e.platform||process.platform;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};function rq(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd);}catch(e){}try{r=rP.sync(e.command,{path:n[rB({env:n})],pathExt:t?f.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=f.resolve(o?e.options.cwd:"",r)),r;}"use strict";(rB=rH).default=rH,rF=function(e){return rq(e)||rq(e,!0);};"use strict";"use strict";"use strict";const rV=/([()\][%!^"`<>&|;, *?])/g;var rX={},rW={},rz={};rz=/^#!(.*)/,rW=(e="")=>{let t=e.match(rz);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},rX=function(e){let t;let r=Buffer.alloc(150);try{t=m.openSync(e,"r"),m.readSync(t,r,0,150,0),m.closeSync(t);}catch(e){}return rW(r.toString());};"use strict";const rK="win32"===process.platform,rY=/\.(?:com|exe)$/i,rQ=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;rG=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:function(e){if(!rK)return e;let t=function(e){e.file=rF(e);let t=e.file&&rX(e.file);return t?(e.args.unshift(e.file),e.command=t,rF(e)):e.file;}(e),r=!rY.test(t);if(e.options.forceShell||r){let r=rQ.test(t);e.command=f.normalize(e.command),e.command=(0,e.command).replace(rV,"^$1"),e.args=e.args.map(e=>{var t;return t=e,t=(t=`"${t=(t=(t=`${t}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(rV,"^$1"),r&&(t=t.replace(rV,"^$1")),t;});let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;}(n);};var rJ={};const rZ="win32"===process.platform;function r0(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args});}function r1(e,t){return rZ&&1===e&&!t.file?r0(t.original,"spawn"):null;}function r2(e,t,r){let n=rG(e,t,r),i=S.spawn(n.command,n.args,n.options);return rJ.hookChildProcess(i,n),i;}"use strict";rJ={hookChildProcess:function(e,t){if(!rZ)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=r1(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:r1,verifyENOENTSync:function(e,t){return rZ&&1===e&&!t.file?r0(t.original,"spawnSync"):null;},notFoundError:r0},(rM=r2).spawn=r2,rM.sync=function(e,t,r){let n=rG(e,t,r),i=S.spawnSync(n.command,n.args,n.options);return i.error=i.error||rJ.verifyENOENTSync(i.status,n),i;},rM._parse=rG,rM._enoent=rJ;"use strict";var r3={};r3=e=>{let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e;};var r4={};"use strict";"use strict";const r6=e=>{let t;e={cwd:process.cwd(),path:process.env[rB()],execPath:process.execPath,...e};let r=f.resolve(e.cwd),n=[];for(;t!==r;)n.push(f.join(r,"node_modules/.bin")),t=r,r=f.resolve(r,"..");let i=f.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(f.delimiter);};(r4=r6).default=r6,r4.env=e=>{e={env:process.env,...e};let t={...e.env},r=rB({env:t});return e.path=t[r],t[r]=r4(e),t;};var r8={},r5={};const r9=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e;};(r5=r9).default=r9;"use strict";"use strict";const r7=new WeakMap(),ne=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(r7.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return r5(o,e),r7.set(o,n),o;};(r8=ne).default=ne,r8.callCount=e=>{if(!r7.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return r7.get(e);};"use strict";var nt={},nr={};Object.defineProperty(nr,"__esModule",{value:!0}),nr.signalsByNumber=nr.signalsByName=void 0;"use strict";var nn={};Object.defineProperty(nn,"__esModule",{value:!0}),nn.getSignals=void 0;"use strict";var ni={};Object.defineProperty(ni,"__esModule",{value:!0}),ni.SIGNALS=void 0,ni.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var no={};Object.defineProperty(no,"__esModule",{value:!0}),no.SIGRTMAX=no.getRealtimeSignals=void 0,no.getRealtimeSignals=function(){return Array.from({length:nc-na+1},ns);};const ns=function(e,t){return{name:`SIGRT${t+1}`,number:na+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"};},na=34,nc=64;no.SIGRTMAX=nc,nn.getSignals=function(){let e=(0,no.getRealtimeSignals)(),t=[...ni.SIGNALS,...e].map(nl);return t;};const nl=function({name:e,number:t,description:r,action:n,forced:i=!1,standard:o}){let{signals:{[e]:s}}=p.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},nu=function(e,{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}){return{...e,[t]:{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}};},nd=function(){let e=(0,nn.getSignals)();return e.reduce(nu,{});}();nr.signalsByName=nd;const np=function(e,t){let r=nf(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:c}};},nf=function(e,t){let r=t.find(({name:t})=>p.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);},nm=function(){let e=(0,nn.getSignals)(),t=no.SIGRTMAX+1,r=Array.from({length:t},(t,r)=>np(r,e));return Object.assign({},...r);}();nr.signalsByNumber=nm;var nh=nr.signalsByName;"use strict";const ng=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?`failed with ${r}`:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?`failed with exit code ${o}`:"failed";nt=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{o=null===o?void 0:o,i=null===i?void 0:i;let p=void 0===i?void 0:nh[i].description,f=n&&n.code,m=ng({timedOut:c,timeout:d,errorCode:f,signal:i,signalDescription:p,exitCode:o,isCanceled:l}),h=`Command ${m}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),v=g?`${h}
|
|
${n.message}`:h,E=[v,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=l,n.killed=u&&!c,n;};var nv={};"use strict";const nE=["stdin","stdout","stderr"],ny=e=>nE.some(t=>void 0!==e[t]),nw=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return nE.map(t=>e[t]);if(ny(e))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${nE.map(e=>`\`${e}\``).join(", ")}`);if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,nE.length);return Array.from({length:r},(e,r)=>t[r]);};(nv=nw).node=e=>{let t=nw(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];};var nx={},nb={},nS=M.process;const nI=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;};if(nI(nS)){var nO,nR,nT=B("2dWxz"),nC=/^win/i.test(nS.platform),n_=y;"function"!=typeof n_&&(n_=n_.EventEmitter),nS.__signal_exit_emitter__?nR=nS.__signal_exit_emitter__:((nR=nS.__signal_exit_emitter__=new n_()).count=0,nR.emitted={}),nR.infinite||(nR.setMaxListeners(1/0),nR.infinite=!0);var nP=function(){nN&&nI(M.process)&&(nN=!1,nT.forEach(function(e){try{nS.removeListener(e,nA[e]);}catch(e){}}),nS.emit=nk,nS.reallyExit=nD,nR.count-=1);};(nb=function(e,t){if(!nI(M.process))return function(){};w.equal(typeof e,"function","a callback must be provided for exit handler"),!1===nN&&nL();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),nR.on(r,e),function(){nR.removeListener(r,e),0===nR.listeners("exit").length&&0===nR.listeners("afterexit").length&&nP();};}).unload=nP;var n$=function(e,t,r){nR.emitted[e]||(nR.emitted[e]=!0,nR.emit(e,t,r));},nA={};nT.forEach(function(e){nA[e]=function(){nI(M.process)&&nS.listeners(e).length===nR.count&&(nP(),n$("exit",null,e),n$("afterexit",null,e),nC&&"SIGHUP"===e&&(e="SIGINT"),nS.kill(nS.pid,e));};}),nb.signals=function(){return nT;};var nN=!1,nL=function(){!nN&&nI(M.process)&&(nN=!0,nR.count+=1,nT=nT.filter(function(e){try{return nS.on(e,nA[e]),!0;}catch(e){return!1;}}),nS.emit=nj,nS.reallyExit=nU);};nb.load=nL;var nD=nS.reallyExit,nU=function(e){nI(M.process)&&(nS.exitCode=e||0,n$("exit",nS.exitCode,null),n$("afterexit",nS.exitCode,null),nD.call(nS,nS.exitCode));},nk=nS.emit,nj=function(e,t){if(!("exit"===e&&nI(M.process)))return nk.apply(this,arguments);void 0!==t&&(nS.exitCode=t);var r=nk.apply(this,arguments);return n$("exit",nS.exitCode,null),n$("afterexit",nS.exitCode,null),r;};}else nb=function(){return function(){};};"use strict";"use strict";const nM=(e,t,r,n)=>{if(!nG(t,r,n))return;let i=nB(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},nG=(e,{forceKillAfterTimeout:t},r)=>nF(e)&&!1!==t&&r,nF=e=>e===p.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),nB=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},nH=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},nq=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=nb(()=>{e.kill();});return n.finally(()=>{i();});};var nV=(nx={spawnedKill:(e,t="SIGTERM",r={})=>{let n=e(t);return nM(e,t,r,n),n;},spawnedCancel:(e,t)=>{let r=e.kill();r&&(t.isCanceled=!0);},setupTimeout:(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{nH(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});return Promise.race([o,s]);},validateTimeout:({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},setExitHandler:nq}).spawnedKill,nX=nx.spawnedCancel,nW=nx.setupTimeout,nz=nx.validateTimeout,nK=nx.setExitHandler,nY={},nQ={};"use strict";"use strict";const nJ=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;nJ.writable=e=>nJ(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,nJ.readable=e=>nJ(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,nJ.duplex=e=>nJ.writable(e)&&nJ.readable(e),nJ.transform=e=>nJ.duplex(e)&&"function"==typeof e._transform,nQ=nJ;var nZ={},n0=R.constants,n1=x.promisify,n2={},n3=T.PassThrough;n2=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new n3({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",e=>{a.push(e),i?s=a.length:s+=e.length;}),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o;};const n4=n1(T.pipeline);class n6 extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}async function n8(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=n2(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=n0.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await n4(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new n6());});}),n.getBufferedValue();}"use strict";(nZ=n8).buffer=(e,t)=>n8(e,{...t,encoding:"buffer"}),nZ.array=(e,t)=>n8(e,{...t,array:!0}),nZ.MaxBufferError=n6;var n5={},n9=T.PassThrough;n5=function(){var e=[],t=new n9({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=function(){return 0==e.length;},t.on("unpipe",n),Array.prototype.slice.call(arguments).forEach(r),t;function r(i){return Array.isArray(i)?(i.forEach(r),this):(e.push(i),i.once("end",n.bind(null,i)),i.once("error",t.emit.bind(t,"error")),i.pipe(t,{end:!1}),this);}function n(r){!(e=e.filter(function(e){return e!==r;})).length&&t.readable&&t.end();}};"use strict";const n7=async(e,t)=>{if(e){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},ie=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?nZ(e,{encoding:t,maxBuffer:n}):nZ.buffer(e,{maxBuffer:n});},it=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=ie(e,{encoding:n,buffer:i,maxBuffer:o}),c=ie(t,{encoding:n,buffer:i,maxBuffer:o}),l=ie(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,c,l]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},n7(e,a),n7(t,c),n7(r,l)]);}};var ir=(nY={handleInput:(e,t)=>{void 0!==t&&void 0!==e.stdin&&(nQ(t)?t.pipe(e.stdin):e.stdin.end(t));},makeAllStream:(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=n5();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},getSpawnedResult:it,validateInputSync:({input:e})=>{if(nQ(e))throw TypeError("The `input` option cannot be a stream in sync mode");}}).handleInput,ii=nY.getSpawnedResult,io=nY.makeAllStream,is=nY.validateInputSync,ia={};"use strict";const ic=(async()=>{})().constructor.prototype,il=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(ic,e)]);var iu=(ia={mergePromise:(e,t)=>{for(let[r,n]of il){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}return e;},getSpawnedPromise:e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});})}).mergePromise,id=ia.getSpawnedPromise,ip={};const im=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],ih=/^[\w.-]+$/,ig=/"/g,iv=e=>"string"!=typeof e||ih.test(e)?e:`"${e.replace(ig,'\\"')}"`,iE=/ +/g;var iy=(ip={joinCommand:(e,t)=>im(e,t).join(" "),getEscapedCommand:(e,t)=>im(e,t).map(e=>iv(e)).join(" "),parseCommand:e=>{let t=[];for(let r of e.trim().split(iE)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;}}).joinCommand,iw=ip.parseCommand,ix=ip.getEscapedCommand;const ib=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...process.env,...e}:e;return r?r4.env({env:o,cwd:n,execPath:i}):o;},iS=(e,t,r={})=>{let n=rM._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=ib(r),r.stdio=nv(r),"win32"===process.platform&&"cmd"===f.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},iI=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?r3(t):t:void 0===r?void 0:"",iO=(e,t,r)=>{let n;let i=iS(e,t,r),o=iy(e,t),s=ix(e,t);nz(i.options);try{n=S.spawn(i.file,i.args,i.options);}catch(r){let e=new S.ChildProcess(),t=Promise.reject(nt({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return iu(e,t);}let a=id(n),c=nW(n,i.options,a),l=nK(n,i.options,c),u={isCanceled:!1};n.kill=nV.bind(null,n.kill.bind(n)),n.cancel=nX.bind(null,n,u);let d=async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},c,d,p]=await ii(n,i.options,l),f=iI(i.options,c),m=iI(i.options,d),h=iI(i.options,p);if(e||0!==t||null!==r){let c=nt({error:e,exitCode:t,signal:r,stdout:f,stderr:m,all:h,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled,killed:n.killed});if(!i.options.reject)return c;throw c;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:m,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},p=r8(d);return ir(n,i.options.input),n.all=io(n,i.options),iu(n,p);};function iR(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function iT(){return null!==j(rP).sync("sudo",{nothrow:!0});}function iC(){var e;return 0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process))||!!process.env.CI;}function i_(){return iC()&&iT();}function iP(e){return i_()?"sudo "+e:e;}function i$(e,t=[],r={stdio:"inherit",shell:!0}){return i_()?j(rj).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):j(rj).sync(e,t,r);}function iA(e,t=[],r={stdio:"inherit",shell:!0}){return i_()?j(rj).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):j(rj)(e,t,r);}function iN(){return"win32"===process.platform?iU():iC();}(rj=iO).sync=(e,t,r)=>{let n;let i=iS(e,t,r),o=iy(e,t),s=ix(e,t);is(i.options);try{n=S.spawnSync(i.file,i.args,i.options);}catch(e){throw nt({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let a=iI(i.options,n.stdout,n.error),c=iI(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=nt({stdout:a,stderr:c,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},rj.command=(e,t)=>{let[r,...n]=iw(e);return iO(r,n,t);},rj.commandSync=(e,t)=>{let[r,...n]=iw(e);return iO.sync(r,n,t);},rj.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);let n=nv.node(r),i=process.execArgv.filter(e=>!e.startsWith("--inspect")),{nodePath:o=process.execPath,nodeOptions:s=i}=r;return iO(o,[...s,e,...(Array.isArray(t)?t:[])],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1});};var iL={};iR(iL,"hasSudo",()=>iT),iR(iL,"isRoot",()=>iC),iR(iL,"isSudo",()=>i_),iR(iL,"prependSudo",()=>iP),iR(iL,"execRootSync",()=>i$),iR(iL,"execRoot",()=>iA);var iD={};iR(iD,"isAdminWindows",()=>iU),iR(iD,"isAdminPosix",()=>ik),iR(iD,"isAdmin",()=>iN);const iU=async()=>{if("win32"!==process.platform)return!1;try{var e;return await j(rj)("fsutil",["dirty","query",null!==(e=process.env.systemdrive)&&void 0!==e?e:""]),!0;}catch(e){return"ENOENT"===e.code&&(async()=>{try{return await j(rj)("fltmc"),!0;}catch{return!1;}})();}},ik=iC;var H=B("cLprm"),rT=B("2heqc"),H=B("cLprm"),q=B("hHq4F");function ij(e={}){let{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}const iM=(e,t,r,n)=>{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let i=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);(iG(i,o)||!n)&&Object.defineProperty(e,r,o);},iG=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value);},iF=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},iB=(e,t)=>`/* Wrapped ${e}*/
|
|
${t}`,iH=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),iq=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),iV=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=iB.bind(null,n,t.toString());Object.defineProperty(i,"name",iq),Object.defineProperty(e,"toString",{...iH,value:i});},iX=new WeakMap(),iW=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(iX.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let n of Reflect.ownKeys(t))iM(e,t,n,r);iF(e,t),iV(e,t,n);}(o,e),iX.set(o,n),o;};iW.callCount=e=>{if(!iX.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return iX.get(e);};const iz=()=>Array.from({length:iQ-iY+1},iK),iK=(e,t)=>({name:`SIGRT${t+1}`,number:iY+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),iY=34,iQ=64,iJ=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],iZ=()=>{let e=iz(),t=[...iJ,...e].map(i0);return t;},i0=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=L.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},i1=({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s}],i2=(()=>{let e=iZ();return Object.fromEntries(e.map(i1));})(),i3=(e,t)=>{let r=i4(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:c}};},i4=(e,t)=>{let r=t.find(({name:t})=>L.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=iZ(),t=Array.from({length:iQ+1},(t,r)=>i3(r,e));return Object.assign({},...t);})();const i6=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?`failed with ${r}`:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?`failed with exit code ${o}`:"failed",i8=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{o=null===o?void 0:o,i=null===i?void 0:i;let p=void 0===i?void 0:i2[i].description,f=n&&n.code,m=i6({timedOut:c,timeout:d,errorCode:f,signal:i,signalDescription:p,exitCode:o,isCanceled:l}),h=`Command ${m}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),v=g?`${h}
|
|
${n.message}`:h,E=[v,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=l,n.killed=u&&!c,n;},i5=["stdin","stdout","stderr"],i9=e=>i5.some(t=>void 0!==e[t]),i7=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return i5.map(t=>e[t]);if(i9(e))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${i5.map(e=>`\`${e}\``).join(", ")}`);if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,i5.length);return Array.from({length:r},(e,r)=>t[r]);},oe=(e,t="SIGTERM",r={})=>{let n=e(t);return ot(e,t,r,n),n;},ot=(e,t,r,n)=>{if(!or(t,r,n))return;let i=oi(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},or=(e,{forceKillAfterTimeout:t},r)=>on(e)&&!1!==t&&r,on=e=>e===j(L).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),oi=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},oo=(e,t)=>{let r=e.kill();r&&(t.isCanceled=!0);},os=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},oa=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{os(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});return Promise.race([o,s]);},oc=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},ol=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=j(nb)(()=>{e.kill();});return n.finally(()=>{i();});};function ou(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function od(e){return ou(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}const op=e=>e instanceof $.ChildProcess&&"function"==typeof e.then,of=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,b.createWriteStream)(r)),e;if(od(r))return e[t].pipe(r),e;if(!op(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!od(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},om=e=>{null!==e.stdout&&(e.pipeStdout=of.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=of.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=of.bind(void 0,e,"all"));},oh=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},og=({input:e,inputFile:t})=>"string"!=typeof t?e:(oh(e),(0,b.readFileSync)(t)),ov=e=>{let t=og(e);if(ou(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},oE=({input:e,inputFile:t})=>"string"!=typeof t?e:(oh(e),(0,b.createReadStream)(t)),oy=(e,t)=>{let r=oE(t);void 0!==r&&(ou(r)?r.pipe(e.stdin):e.stdin.end(r));},ow=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=j(n5)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},ox=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},ob=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?j(nZ)(e,{encoding:t,maxBuffer:n}):j(nZ).buffer(e,{maxBuffer:n});},oS=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=ob(e,{encoding:n,buffer:i,maxBuffer:o}),c=ob(t,{encoding:n,buffer:i,maxBuffer:o}),l=ob(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,c,l]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},ox(e,a),ox(t,c),ox(r,l)]);}},oI=(async()=>{})().constructor.prototype,oO=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(oI,e)]),oR=(e,t)=>{for(let[r,n]of oO){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},oT=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),oC=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],o_=/^[\w.-]+$/,oP=/"/g,o$=e=>"string"!=typeof e||o_.test(e)?e:`"${e.replace(oP,'\\"')}"`,oA=(e,t)=>oC(e,t).join(" "),oN=(e,t)=>oC(e,t).map(e=>o$(e)).join(" "),oL=/ +/g,oD=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if("object"===t&&null!==e&&!(e instanceof $.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,_.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},oU=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],ok=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=null!=i?i:e.raw[n],s=o.split(oL).filter(Boolean),a=oU(r,s,o.startsWith(" "));if(n===t.length)return a;let c=t[n],l=Array.isArray(c)?c.map(e=>oD(e)):[oD(c)];return oU(a,l,o.endsWith(" "));},oj=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=ok({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},oM=(0,D.debuglog)("execa").enabled,oG=(e,t)=>String(e).padStart(t,"0"),oF=()=>{let e=new Date();return`${oG(e.getHours(),2)}:${oG(e.getMinutes(),2)}:${oG(e.getSeconds(),2)}.${oG(e.getMilliseconds(),3)}`;},oB=(e,{verbose:t})=>{t&&j(A).stderr.write(`[${oF()}] ${e}
|
|
`);},oH=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...j(A).env,...e}:e;return r?function({env:e=j(A).env,...t}={}){e={...e};let r=ij({env:e});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=j(A).cwd(),path:n=j(A).env[ij()],execPath:i=j(A).execPath}=e,o=r instanceof URL?j(N).fileURLToPath(r):r,s=j(P).resolve(o),a=[];for(;t!==s;)a.push(j(P).join(s,"node_modules/.bin")),t=s,s=j(P).resolve(s,"..");return a.push(j(P).resolve(o,i,"..")),[...a,n].join(j(P).delimiter);}(t),e;}({env:o,cwd:n,execPath:i}):o;},oq=(e,t,r={})=>{let n=j(rM)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||j(A).cwd(),execPath:j(A).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oM,...r}).env=oH(r),r.stdio=i7(r),"win32"===j(A).platform&&"cmd"===j(P).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},oV=(e,t,r)=>"string"==typeof t||(0,_.Buffer).isBuffer(t)?e.stripFinalNewline?function(e){let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e;}(t):t:void 0===r?void 0:"";function oX(e,t,r){let n;let i=oq(e,t,r),o=oA(e,t),s=oN(e,t);oB(s,i.options),oc(i.options);try{n=j($).spawn(i.file,i.args,i.options);}catch(r){let e=new(j($).ChildProcess)(),t=Promise.reject(i8({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return oR(e,t),e;}let a=oT(n),c=oa(n,i.options,a),l=ol(n,i.options,c),u={isCanceled:!1};n.kill=oe.bind(null,n.kill.bind(n)),n.cancel=oo.bind(null,n,u);let d=async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},c,d,p]=await oS(n,i.options,l),f=oV(i.options,c),m=oV(i.options,d),h=oV(i.options,p);if(e||0!==t||null!==r){let c=i8({error:e,exitCode:t,signal:r,stdout:f,stderr:m,all:h,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return c;throw c;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:m,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},p=iW(d);return oy(n,i.options),n.all=ow(n,i.options),om(n),oR(n,p),n;}function oW(e,t,r){let n;let i=oq(e,t,r),o=oA(e,t),s=oN(e,t);oB(s,i.options);let a=ov(i.options);try{n=j($).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw i8({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let c=oV(i.options,n.stdout,n.error),l=oV(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=i8({stdout:c,stderr:l,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:c,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}const oz=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},oK=(e={})=>({preferLocal:!0,...oz(e),...e});function oY(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return oX(function(){if(void 0===e){let t=j(rP).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=j(rP).sync("powershell",{nothrow:!0});null!==r&&(e=r);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...r,"-c",t],n);}!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=oj(n,i);return oX(o,s,oK(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=oj(e,r);return oW(n,i,oK(t));},r;}();var oQ={};const oJ="win32"!==p.platform(),oZ=p.release(),o0=/(\d+\.\d+)\.(\d+)/,o1=(e="",t="")=>/1\d+\.\d+/.test(e)&&Number(t)>=17134.1184;function o2(e){if(("linux"===process.platform||"darwin"===process.platform)&&ea()&&void 0!==process.env.SUDO_USER){let t=(0,m.statSync)(e).isDirectory();el("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],{cwd:e,stdio:"inherit",shell:!0});}}oQ=function(e){return oJ?e.replace(/(\s+)/g,"\\$1"):o1(...o0.exec(oZ).splice(1))?e:e.replace(/(\s+)/g,"%20");};var o3={};(function(){var e,t;e=B("eaZtc"),t=function(e){return e.split("").reverse().join("");},o3=function(r,n,i){var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)));};}).call(o3);var o4=B("3WkGD");async function o6(e,t,r=!1){let n=function(e,t=!1){let r=t?j(oQ)(e):e;return j(o3)(r,'"',"\\");}(null!=t?t:"",r);try{if(H.GITHUB_ACTIONS)try{(0,rT.exportVariable)(e,n);}catch(t){(0,q.error)(t),await o9(e,n);}else await o9(e,n);}catch(t){(0,q.error)(t),(0,rT.setFailed)(`Failed to export environment variable ${e}=${n}. You should add it manually.`);}}async function o8(e){process.env.PATH=`${e}${f.delimiter}${process.env.PATH}`;try{if(H.GITHUB_ACTIONS)try{(0,rT.addPath)(e);}catch(t){(0,q.error)(t),await o7(e);}else await o7(e);}catch(t){(0,q.error)(t),(0,rT.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}const o5=t8(".cpprc");async function o9(e,t){let r=null!=t?t:"";switch(process.platform){case"win32":await oY(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),(0,rT.info)(`${e}='${r}' was set in the environment.`);return;case"linux":case"darwin":await st(),(0,m.appendFileSync)(o5,`
|
|
export ${e}="${r}"
|
|
`),(0,rT.info)(`${e}="${r}" was added to "${o5}`);return;}process.env[e]=r;}async function o7(e){switch(process.platform){case"win32":await oY(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,rT.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await st(),(0,m.appendFileSync)(o5,`
|
|
export PATH="${e}:$PATH"
|
|
`),(0,rT.info)(`"${e}" was added to "${o5}"`);return;default:return;}}let se=!1;async function st(){if(se)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if(await(0,o4.pathExists)(o5)){let t=(0,m.readFileSync)(o5,"utf8");if(t.includes(e))return;}(0,m.appendFileSync)(o5,`
|
|
${e}
|
|
`),(0,rT.info)(`Added ${e} to ${o5}`);let t=`
|
|
# source .cpprc if SOURCE_CPPRC is not set to 0
|
|
if [[ "$SOURCE_CPPRC" != 0 && -f "${o5}" ]]; then source "${o5}"; fi
|
|
`;try{let e=t8(".profile");(0,m.appendFileSync)(e,t),(0,rT.info)(`${t} was added to ${e}`);let r=t8(".bashrc");(0,m.appendFileSync)(r,t),(0,rT.info)(`${t} was added to ${r}`);}catch(e){(0,q.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`);}se=!0;}async function sr(){if(await(0,o4.pathExists)(o5)){let e=(0,m.readFileSync)(o5,"utf-8").split("\n"),t=[...new Set(e.reverse())].reverse();(0,m.writeFileSync)(o5,t.join("\n"));try{o2(o5);}catch{}}}var sn={},si=f.join,so=f.delimiter,ss=f.sep,sa=f.posix;const sc="win32"===process.platform,sl=new RegExp(`[${sa.sep}${ss===sa.sep?"":ss}]`.replace(/(\\)/g,"\\$1")),su=RegExp(`^\\.${sl.source}`),sd=e=>Object.assign(Error(`not found: ${e}`),{code:"ENOENT"}),sp=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=so})=>{let i=e.match(sl)?[""]:[...(sc?[process.cwd()]:[]),...(t||"").split(n)];if(sc){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).reduce((e,t)=>(e.push(t),e.push(t.toLowerCase()),e),[]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},sf=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e,n=!r&&su.test(t)?t.slice(0,2):"";return n+si(r,t);},sm=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=sp(e,t),o=[];for(let s of r){let r=sf(s,e);for(let e of n){let n=r+e,s=await rN(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw sd(e);};sn=sm,sm.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=sp(e,t),o=[];for(let s of r){let r=sf(s,e);for(let e of n){let n=r+e,s=rN.sync(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw sd(e);};var o4=B("3WkGD"),sh=B("9O4vc"),q=B("hHq4F");const{appendFile:sg}=m.promises;let sv=!1,sE=!1;async function sy(e,t=!1){var r;let n=null!==j(sn).sync("nala",{nothrow:!0})?"nala":"apt-get";for(let{name:t,version:r}of e)(0,q.info)(`Installing ${t} ${null!=r?r:""} via ${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!sv||t)&&(sx(n),sv=!0),sE||(await sb(n),sE=!0);let i=[...new Set(e.flatMap(e=>null!==(r=e.repositories)&&void 0!==r?r:[]))];if(0!==i.length){for(let e of i)i$("add-apt-repository",["-y",e]);sx(n);}let o=await Promise.all(e.map(e=>sw(e.name,e.version)));return i$(n,["install","--fix-broken","-y",...o]),{binDir:"/usr/bin/"};}async function sw(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await oX("apt-cache",["search","--names-only",`^${(0,sh.default)(e)}-${(0,sh.default)(t)}$`]);if(""!==r.trim())return`${e}-${t}`;try{let{stdout:r}=await oX("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return`${e}=${t}`;}catch{}(0,q.warning)(`Failed to install ${e} ${t} via apt, trying without version`);}return e;}function sx(e){i$(e,"nala"!==e?["update","-y"]:["update"]);}async function sb(e){i$(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[sI(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),sI(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(o6("LANG","C.UTF-8"),o6("LC_ALL","C.UTF-8")),await Promise.all(t);}function sS(){i$("gpg",["-k"]);}async function sI(e,t,r="keyserver.ubuntu.com"){let n=`/etc/apt/trusted.gpg.d/${t}`;return(await(0,o4.pathExists)(n))||(sS(),await Promise.all(e.map(async e=>{await iA("gpg",["--no-default-keyring","--keyring",`gnupg-ring:${n}`,"--keyserver",r,"--recv-keys",e]),await iA("chmod",["644",n]);}))),n;}async function sO(e,t){let r=`/etc/apt/trusted.gpg.d/${e}`;return(await(0,o4.pathExists)(r))||(sS(),await sy([{name:"curl"}],void 0),i$("bash",["-c",`curl -s ${t} | gpg --no-default-keyring --keyring gnupg-ring:${r} --import`]),i$("chmod",["644",r])),r;}async function sR(e,t){return H.GITHUB_ACTIONS?iA("update-alternatives",["--install",`/usr/bin/${e}`,e,t,"40"]):(await st(),sg(o5,`
|
|
if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} 40; fi
|
|
`));}var rT=B("2heqc"),r_=(B("A8hFE"),B("A8hFE")),sT=B("kSdX3");async function sC(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=j(sn).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,r_.dirname)(i)};let o=j(f).join((0,p.tmpdir)(),"setup-cpp","brew");await(0,sT.mkdirP)(o),oW("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let s=(0,f.join)(o,"install.sh");if("linux"===process.platform){let e=(0,m.readFileSync)(s,"utf-8");e.replace("#!/bin/bash","");}return oW("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=s_(),await o8(t),{binDir:t};}function s_(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}let sP=!1;async function s$(e,t,r=[]){(0,rT.info)(`Installing ${e} ${null!=t?t:""} via brew`),sP&&null!==j(sn).sync("brew",{nothrow:!0})||(await sC("","",process.arch),sP=!0);let n=s_();return oW((0,r_.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n};}var o4=B("3WkGD"),r_=B("A8hFE");async function sA(e,t,n){var i;if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let o=j(sn).sync("choco",{nothrow:!0});if(null!==o)return{binDir:r=(0,r_.dirname)(o)};let s="powershell.exe",a=j(sn).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==a&&(s=a),oW(s,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let c=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await o8(c);let l=j(sn).sync("choco",{nothrow:!0});if(r=null!==l?(0,r_.dirname)(l):`${null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey"}/bin`,await(0,o4.pathExists)(r))return{binDir:r};}var rT=B("2heqc"),q=B("hHq4F");let sN=!1;async function sL(e,t,r=[]){var n;(0,rT.info)(`Installing ${e} ${null!=t?t:""} via chocolatey`),sN&&null!==j(sn).sync("choco",{nothrow:!0})||(await sA("","",process.arch),sN=!0);let i=process.env.PATH,o={...process.env};if(delete o.TMP,delete o.TEMP,delete o.Path,o.PATH=i,void 0!==t&&""!==t)oW("choco",["install","-y",e,`--version=${t}`,...r],{env:o,extendEnv:!1,stdio:"inherit"});else try{oW("choco",["install","-y",e,...r],{env:o,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,q.notice)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let s=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`;return await o8(s),{binDir:s};}function sD(){return"linux"===process.platform&&(void 0===a&&(a=null!==j(sn).sync("pacman",{nothrow:!0})),a);}function sU(){return"linux"===process.platform&&(void 0===c&&(c=null!==j(sn).sync("dnf",{nothrow:!0})),c);}function sk(e,t){if((0,q.info)(`Installing ${e} ${null!=t?t:""} via dnf`),void 0!==t&&""!==t)try{i$("dnf",["-y","install",`${e}-${t}`]);}catch(t){(0,q.warning)(`${t.toString()}
|
|
Installing the default version available via dnf`),i$("dnf",["-y","install",e]);}else i$("dnf",["-y","install",e]);return{binDir:"/usr/bin/"};}function sj(){return"linux"===process.platform&&(void 0===l&&(l=null!==j(sn).sync("apt-get",{nothrow:!0})),l);}async function sM(e,t,r){switch(process.platform){case"win32":return sL("bazelisk",e);case"darwin":return s$("bazelisk",e);case"linux":if(sD())throw Error("installing bazel on Arch linux is not supported yet");if(sU())return sk("dnf-plugins-core",void 0),i$("dnf",["copr","enable","vbatts/bazel"]),sk("bazel4",void 0);if(sj()){let t=await sO("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return i$("bash",["-c",`echo "deb [arch=amd64 signed-by=${t}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),sy([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}var q=(B("hHq4F"),B("hHq4F"));let sG=!1,sF=!1;async function sB(e,t,r){(0,q.info)(`Installing ${e} ${null!=t?t:""} via pacman`);let n="pacman";sG||"yay"===r||(i$(n,["-Sy","--noconfirm"]),sG=!0),sF||(i$(n,["-S","--noconfirm","base-devel"]),sF=!0);let i=e=>i$(null!=r?r:n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){let r=await sq(n,e);if(r.includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,q.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}const sH=/Version\s*:\s*(.*)/g;async function sq(e,t){let r=[];try{let{stdout:n}=await oX(e,["-Si",t]);for(let e of n.matchAll(sH))r.push(e[1]);}catch(e){(0,q.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}"use strict";var sV={},sX=f.resolve(__dirname,"../../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),sW=sV&&sV.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),sz=sV&&sV.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),sK=sV&&sV.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&sW(t,e,r);return sz(t,e),t;},sY=sV&&sV.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});},sQ=sV&&sV.__importDefault||function(e){return e&&e.__esModule?e:{default:e};};Object.defineProperty(sV,"__esModule",{value:!0}),sV.evaluateVersions=sV.isExplicitVersion=sV.findFromManifest=sV.getManifestFromRepo=sV.findAllVersions=sV.find=sV.cacheFile=sV.cacheDir=sV.extractZip=sV.extractXar=sV.extractTar=sV.extract7z=sV.downloadTool=sV.HTTPError=void 0;"use strict";const sJ=sK(B("2heqc")),sZ=sK(B("kSdX3")),s0=sK(m),s1=sK(B("8kgpT")),s2=sK(p),s3=sK(f),s4=sK(B("aPbbM")),s6=sK(B("feUtB")),s8=sK(T),s5=sK(x),s9=sQ(B("bxsAi"));var s7=B("2mVwa"),ae={},at=ae&&ae.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),ar=ae&&ae.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),an=ae&&ae.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&at(t,e,r);return ar(t,e),t;},ai=ae&&ae.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});};Object.defineProperty(ae,"__esModule",{value:!0}),ae.RetryHelper=void 0;const ao=an(B("2heqc"));ae.RetryHelper=class{constructor(e,t,r){if(e<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,t){return ai(this,void 0,void 0,function*(){let r=1;for(;r<this.maxAttempts;){try{break;}catch(e){if(t&&!t(e))throw e;ao.info(e.message);}let e=this.getSleepAmount();ao.info(`Waiting ${e} seconds before trying again`),yield this.sleep(e),r++;}return yield e();});}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds;}sleep(e){return ai(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,1e3*e));});}};class as extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}sV.HTTPError=as;const aa="win32"===process.platform,ac="darwin"===process.platform;function al(e,t){let r=[];t=t||s2.arch();let n=s3.join(ah(),e);if(s0.existsSync(n)){let e=s0.readdirSync(n);for(let i of e)if(af(i)){let e=s3.join(n,i,t||"");s0.existsSync(e)&&s0.existsSync(`${e}.complete`)&&r.push(i);}}return r;}function au(e){return sY(this,void 0,void 0,function*(){return e||(e=s3.join(ag(),s9.default())),yield sZ.mkdirP(e),e;});}function ad(e,t,r){return sY(this,void 0,void 0,function*(){let n=s3.join(ah(),e,s6.clean(t)||t,r||"");sJ.debug(`destination ${n}`);let i=`${n}.complete`;return yield sZ.rmRF(n),yield sZ.rmRF(i),yield sZ.mkdirP(n),n;});}function ap(e,t,r){let n=s3.join(ah(),e,s6.clean(t)||t,r||""),i=`${n}.complete`;s0.writeFileSync(i,""),sJ.debug("finished caching tool");}function af(e){let t=s6.clean(e)||"";sJ.debug(`isExplicit: ${t}`);let r=null!=s6.valid(t);return sJ.debug(`explicit? ${r}`),r;}function am(e,t){let r="";sJ.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>s6.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n],o=s6.satisfies(i,t);if(o){r=i;break;}}return r?sJ.debug(`matched: ${r}`):sJ.debug("match not found"),r;}function ah(){let e=process.env.RUNNER_TOOL_CACHE||"";return w.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function ag(){let e=process.env.RUNNER_TEMP||"";return w.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function av(e,t){let r=M[e];return void 0!==r?r:t;}"use strict";sV.downloadTool=function(e,t,r,n){return sY(this,void 0,void 0,function*(){t=t||s3.join(ag(),s9.default()),yield sZ.mkdirP(s3.dirname(t)),sJ.debug(`Downloading ${e}`),sJ.debug(`Destination ${t}`);let i=av("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=av("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new ae.RetryHelper(3,i,o);return yield s.execute(()=>sY(this,void 0,void 0,function*(){return yield function(e,t,r,n){return sY(this,void 0,void 0,function*(){if(s0.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new s4.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(sJ.debug("set auth"),void 0===n&&(n={}),n.authorization=r);let o=yield i.get(e,n);if(200!==o.message.statusCode){let t=new as(o.message.statusCode);throw sJ.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let s=s5.promisify(s8.pipeline),a=av("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message),c=a(),l=!1;try{return yield s(c,s0.createWriteStream(t)),sJ.debug("download complete"),l=!0,t;}finally{if(!l){sJ.debug("download failed");try{yield sZ.rmRF(t);}catch(e){sJ.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof as)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},sV.extract7z=function(e,t,r){return sY(this,void 0,void 0,function*(){w.ok(aa,"extract7z() not supported on current OS"),w.ok(e,'parameter "file" is required'),t=yield au(t);let n=process.cwd();if(process.chdir(t),r)try{let t=sJ.isDebug()?"-bb1":"-bb0",n=["x",t,"-bd","-sccUTF-8",e];yield s7.exec(`"${r}"`,n,{silent:!0});}finally{process.chdir(n);}else{let r=s3.join(sX,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=`& '${r}' -Source '${i}' -Target '${o}'`;try{let e=yield sZ.which("powershell",!0);yield s7.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0});}finally{process.chdir(n);}}return t;});},sV.extractTar=function(e,t,r="xz"){return sY(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield au(t),sJ.debug("Checking tar --version");let i="";yield s7.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),sJ.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],sJ.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return aa&&o&&(n.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",s,"-f",a),yield s7.exec("tar",n),t;});},sV.extractXar=function(e,t,r=[]){return sY(this,void 0,void 0,function*(){let n;w.ok(ac,"extractXar() not supported on current OS"),w.ok(e,'parameter "file" is required'),t=yield au(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),sJ.isDebug()&&n.push("-v");let i=yield sZ.which("xar",!0);return yield s7.exec(`"${i}"`,Array.from(new Set(n))),t;});},sV.extractZip=function(e,t){return sY(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield au(t),aa?yield function(e,t){return sY(this,void 0,void 0,function*(){let r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield sZ.which("pwsh",!1);if(i){let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`,t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];sJ.debug(`Using pwsh at path: ${i}`),yield s7.exec(`"${i}"`,t);}else{let e=`$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 '${r}' -DestinationPath '${n}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e],i=yield sZ.which("powershell",!0);sJ.debug(`Using powershell at path: ${i}`),yield s7.exec(`"${i}"`,t);}});}(e,t):yield function(e,t){return sY(this,void 0,void 0,function*(){let r=yield sZ.which("unzip",!0),n=[e];sJ.isDebug()||n.unshift("-q"),n.unshift("-o"),yield s7.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},sV.cacheDir=function(e,t,r,n){return sY(this,void 0,void 0,function*(){if(r=s6.clean(r)||r,n=n||s2.arch(),sJ.debug(`Caching tool ${t} ${r} ${n}`),sJ.debug(`source dir: ${e}`),!s0.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield ad(t,r,n);for(let t of s0.readdirSync(e)){let r=s3.join(e,t);yield sZ.cp(r,i,{recursive:!0});}return ap(t,r,n),i;});},sV.cacheFile=function(e,t,r,n,i){return sY(this,void 0,void 0,function*(){if(n=s6.clean(n)||n,i=i||s2.arch(),sJ.debug(`Caching tool ${r} ${n} ${i}`),sJ.debug(`source file: ${e}`),!s0.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield ad(r,n,i),s=s3.join(o,t);return sJ.debug(`destination file ${s}`),yield sZ.cp(e,s),ap(r,n,i),o;});},sV.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");if(r=r||s2.arch(),!af(t)){let n=al(e,r),i=am(n,t);t=i;}let n="";if(t){t=s6.clean(t)||"";let i=s3.join(ah(),e,t,r);sJ.debug(`checking cache: ${i}`),s0.existsSync(i)&&s0.existsSync(`${i}.complete`)?(sJ.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):sJ.debug("not found");}return n;},sV.findAllVersions=al,sV.getManifestFromRepo=function(e,t,r,n="master"){return sY(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new s4.HttpClient("tool-cache"),a={};r&&(sJ.debug("set auth"),a.authorization=r);let c=yield s.getJson(o,a);if(!c.result)return i;let l="";for(let e of c.result.tree)if("versions-manifest.json"===e.path){l=e.url;break;}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u);}catch(e){sJ.debug("Invalid json");}}return i;});},sV.findFromManifest=function(e,t,r,n=s2.arch()){return sY(this,void 0,void 0,function*(){let i=yield s1._findMatch(e,t,r,n);return i;});},sV.isExplicitVersion=af,sV.evaluateVersions=am;var aE=B("29uOU"),ay=B("i9nXz"),r_=B("A8hFE"),q=B("hHq4F"),H=B("cLprm"),o4=B("3WkGD"),aw={};Object.defineProperty(aw,"__esModule",{value:!0}),aw.retryAsPromised=aw.TimeoutError=void 0;class ax extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}function ab(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");t="number"==typeof t?{max:t}:t;let r={$current:"$current"in t?t.$current:1,max:t.max,timeout:t.timeout||void 0,match:t.match?Array.isArray(t.match)?t.match:[t.match]:[],backoffBase:void 0===t.backoffBase?100:t.backoffBase,backoffExponent:t.backoffExponent||1.1,report:t.report,name:t.name||e.name||"unknown"};return r.match&&!Array.isArray(r.match)&&(r.match=[r.match]),r.report&&r.report("Trying "+r.name+" #"+r.$current+" at "+new Date().toLocaleTimeString(),r),new Promise(function(t,n){let i,o,s;r.timeout&&(i=setTimeout(function(){o&&clearTimeout(o),n(new ax(r.name+" timed out",s));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(function(){i&&clearTimeout(i),o&&clearTimeout(o);}).catch(function(a){i&&clearTimeout(i),o&&clearTimeout(o),s=a,r.report&&r.report(a&&a.toString()||a,r,a);var c=r.$current<r.max;if(!c||!(c=0===r.match.length||r.match.some(function(e){return function(e,t){if("function"==typeof e)try{if(t instanceof e)return!0;}catch(r){return!!e(t);}return e===t.toString()||e===t.message||e instanceof RegExp&&(e.test(t.message)||e.test(t.toString()));}(e,a);})))return n(a);var l=r.backoffBase*Math.pow(r.backoffExponent,r.$current-1);r.$current++,r.report&&r.report(`Retrying ${r.name} (${r.$current})`,r),l?(r.report&&r.report(`Delaying retry of ${r.name} by ${l}`,r),o=setTimeout(function(){ab(e,r).then(t).catch(n);},l)):ab(e,r).then(t).catch(n);});});}aw.TimeoutError=ax,aw.retryAsPromised=ab,aw.default=ab;let aS=!1;async function aI(e,t,r,n,i){var o,s;(0,q.info)(`Installing ${e} ${t} ${i} via direct downloading`),process.env.RUNNER_TEMP=null!==(o=process.env.RUNNER_TEMP)&&void 0!==o?o:(0,p.tmpdir)(),process.env.RUNNER_TOOL_CACHE=null!==(s=process.env.RUNNER_TOOL_CACHE)&&void 0!==s?s:(0,r_.join)((0,p.tmpdir)(),"setup-cpp","hostedtoolcache");let{url:a,binRelativeDir:c,binFileName:l,extractedFolderName:u,extractFunction:d}=await r(t,process.platform,i);if(H.GITHUB_ACTIONS)try{let r=(0,sV.find)(e,t);if(r){let n=(0,r_.join)(r,u),i=(0,r_.join)(n,c);if(await(0,o4.pathExists)((0,r_.join)(i,l)))return(0,q.info)(`${e} ${t} was found in the cache at ${i}.`),await o8(i),{installDir:n,binDir:i};}}catch{}let f=(0,r_.join)(n,u),m=(0,r_.join)(f,c),h=(0,r_.join)(m,l);if((await Promise.all([(0,o4.pathExists)(m),(0,o4.pathExists)(h)])).includes(!1))try{(0,q.info)(`Download ${e} ${t}`);let r=await j(aw)(()=>(0,sV.downloadTool)(a),{name:a,max:4,backoffBase:2e3,report:e=>(0,q.info)(e)});aS||((0,q.info)("Installing extraction dependencies"),"linux"===process.platform&&(sD()?await Promise.all([sB("unzip"),sB("tar"),sB("xz")]):sU()?(sk("unzip"),sk("tar"),sk("xz")):sj()&&(await sy([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),aS=!0),(0,q.info)(`Extracting ${r} to ${n}`),await(null==d?void 0:d(r,n));}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${a}: ${r}`);}return(0,q.info)(`Add ${m} to PATH`),await o8(m),H.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,sV.cacheDir)(n,e,t)),{installDir:f,binDir:m};}var r_=B("A8hFE"),sT=B("kSdX3");function aO(e,t,r){switch(process.platform){case"win32":return sL("7zip",e);case"darwin":return s$("p7zip",e);case"linux":if(sD())return sB("p7zip",e);if(sU())return sk("p7zip",e),sk("p7zip-plugins",e);if(sj())return sy([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}var q=B("hHq4F");async function aR(e,t){return await oX(await aT(),["x",e,`-o${t}`,"-y"],{stdio:"inherit"}),o2(t),t;}async function aT(){return void 0===n&&(null===j(sn).sync("7z",{nothrow:!0})&&(await aO("","",process.arch)),n="7z"),n;}function aC(e,t){return aR(e,t);}function a_(e,t){return aR(e,t);}async function aP(e,t,r=["--strip-components=0"]){try{await(0,sT.mkdirP)(t);}catch{}try{await oX("tar",["xf",e,"-C",t,...r],{stdio:"inherit"});}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,q.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`);}return o2(t),t;}function a$(e,t,r){var n;let i=null!==(n=j(ay)(e))&&void 0!==n?n:e;switch(t){case"win32":{let t;let n=j(aE)(i,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?n?"win32-x86":"windows-i386":n?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,r_.addExeExt)("cmake"),extractedFolderName:o,extractFunction:a_,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=j(aE)(i,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,r_.addExeExt)("cmake"),extractedFolderName:r,extractFunction:sV.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let n=j(aE)(i,"v3.19.8");t=["aarch64"].includes(r)?n?"Linux-aarch64":"linux-aarch64":n?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,r_.addExeExt)("cmake"),extractedFolderName:o,extractFunction:sV.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function aA(e,t,r){return aI("cmake",e,a$,t,r);}var rT=B("2heqc"),o4=B("3WkGD"),r_=B("A8hFE"),H=B("cLprm"),q=B("hHq4F"),r_=B("A8hFE"),s7=B("2mVwa");function aN(e,t){return new Promise(r=>{try{let n=(0,v.request)(e,{method:t},e=>{r(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399);});n.on("error",e=>{r(!1);}),n.end();}catch{r(!1);}});}var aL=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new U.URL(t),!0;}catch{return!1;}},aD=async e=>{let t=aL(e);if(!t)return!1;let r=await aN(e,"HEAD");return!!r||!!(r=await aN(e,"GET"));},aU=B("gsDyR"),ay=B("i9nXz"),ak=B("l2nMb"),s7=B("2mVwa"),q=B("hHq4F");function aj(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return j(aU)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function aM(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await aD(e)))return[r,e];}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);let i=[];for(let o of aj(e,r)){let e=await n(t,o);if(null!==e){if(await aD(e))return[o,e];i.push(e);}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);}const aG=/v?(\d\S*)/;async function aF(e,t=aG){try{var r;let n=await(0,s7.getExecOutput)(e,["--version"]),i=n.stdout||n.stderr||"",o=null===(r=i.trim().match(t))||void 0===r?void 0:r[1];return o;}catch(e){console.error(e);return;}}async function aB(e,t,r=aG){let n=await aF(e,r);return"string"==typeof n&&"string"==typeof t&&""!==n&&""!==t&&-1!==j(aU)(n,t);}function aH(){switch(process.platform){case"linux":return"15.0.6-ubuntu-18.04";case"darwin":return"15.0.3";default:return"15.0.4";}}const aq={llvm:aH(),clangtidy:aH(),clangformat:aH(),ninja:"1.11.1",cmake:"3.26.4",gcovr:"5.2",conan:"1.60.0",meson:"1.0.2",kcov:"41",task:"3.25.0",doxygen:sD()?"1.9.6-1":"1.9.7",gcc:sD()?"13.1.1-1":"13"},aV={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},llvm:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"5.2",20:"5.2",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"40",20:"40-binary",18:"40",16:"40",14:"40"}};function aX(e,t,r=null){return aW(t,e)?"linux"===process.platform&&null!==r&&e in aV?function(e,t){let r=t[0],n=parseInt(Object.keys(aV[e])[0],10);return r>=n?aV[e][r]:"";}(e,r):aq[e]:null!=t?t:"";}function aW(e,t){return"true"===e||void 0===e&&t in aq;}async function az(e,t,r){if(!H.GITHUB_ACTIONS)return aK(e,t,r);try{(0,q.info)("Installing python in GitHub Actions");let{setupActionsPython:n}=await B("kPKFw");return n(e,t,r);}catch(n){return(0,q.warning)(n.toString()),aK(e,t,r);}}async function aK(e,t,r){switch(process.platform){case"win32":{var n,i;t?await sL("python3",e,[`--params=/InstallDir:${t}`]):await sL("python3",e);let r=null!==(i=null!==(n=j(sn).sync("python3.exe",{nothrow:!0}))&&void 0!==n?n:j(sn).sync("python.exe",{nothrow:!0}))&&void 0!==i?i:(0,r_.join)(t,"python.exe"),o=(0,r_.dirname)(r);return await o8(o),{installDir:o,binDir:o};}case"darwin":return s$("python3",e);case"linux":{let t;if(sD())t=await sB("python",e),await sB("python-pip");else if(sU())t=sk("python3",e),sk("python3-pip");else if(sj())t=await sy([{name:"python3",version:e},{name:"python3-pip"}]);else throw Error("Unsupported linux distributions");return t;}default:throw Error("Unsupported platform");}}let aY=!1;async function aQ(){let e;if(null!==j(sn).sync("python3",{nothrow:!0}))e="python3";else if(null!==j(sn).sync("python",{nothrow:!0})&&(await aB("python","3.0.0")))e="python";else{if((0,q.info)("python3 was not found. Installing python"),await az(aX("python",void 0),"",process.arch),aY)throw Error("Failed to install python");return aY=!0,aQ();}return j(w)("string"==typeof e),"win32"===process.platform?oW(e,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&(sD()?await sB("python-pip"):sU()?sk("python3-pip"):sj()&&(await sy([{name:"python3-pip"}]))),oW(e,["-m","pip","install","-U","wheel"],{stdio:"inherit"}),e;}async function aJ(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,s7.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,r_.join)(r,"Scripts"),(0,r_.join)(r,"Scripts","bin"),(0,r_.join)(r,"bin")),[...new Set(t)];}async function aZ(e,t){(0,rT.info)(`Installing ${e} ${null!=t?t:""} via pip`),void 0===i&&(i=await aQ()),oW(i,["-m","pip","install",void 0!==t&&""!==t?`${e}==${t}`:e],{stdio:"inherit"}),void 0===o&&(o=await aJ(i));let r=await a0(o,e);return await o8(r),{binDir:r};}async function a0(e,t){let r=await Promise.all(e.map(e=>(0,o4.pathExists)((0,r_.join)(e,(0,r_.addExeExt)(t))))),n=r.findIndex(e=>e);if(-1!==n){let t=e[n];return t;}let i=j(sn).sync((0,r_.addExeExt)(t),{nothrow:!0});return null!==i?(0,r_.dirname)(i):e[e.length-1];}async function a1(e,t,r){return await aZ("setuptools",""),aZ("conan",e);}async function a2(e,t,r){switch(process.platform){case"win32":{await sL("cppcheck",e);let t=await a3();return{binDir:t};}case"darwin":return s$("cppcheck",e);case"linux":if(sD())return sB("cppcheck",e);if(sU())return sk("ccache",e);if(sj())return sy([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function a3(){let e="C:/Program Files/Cppcheck";return await o8(e),e;}var r_=B("A8hFE"),q=B("hHq4F");async function a4(e,t,r){switch(process.platform){case"win32":return await sL("graphviz",e),a6();case"darwin":return s$("graphviz",e);case"linux":if(sD())return sB("graphviz",e);if(sU())return sk("graphviz",e);if(sj())return sy([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function a6(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await o8(e),{binDir:e};}throw Error("Unsupported platform");}var o4=B("3WkGD");function a8(e,t,r){switch(t){case"linux":{let t=`doxygen-${e}`;return{binRelativeDir:"bin/",binFileName:(0,r_.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:sV.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t=`doxygen-${e}`;return{binRelativeDir:"",binFileName:(0,r_.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:a_,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}default:throw Error(`Unsupported platform '${t}'`);}}async function a5(e,t,r){switch(process.platform){case"win32":{await j(aw)(()=>sL("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,q.info)(e)});let t=await a9();return await a4(aX("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let e=await s$("doxygen",void 0);return await a4(aX("graphviz",void 0),"",r),e;}case"linux":{let n;if(""===e||sD()||sU()){if(sD())n=await sB("doxygen",e);else if(sU())return sk("doxygen",e);else if(sj())n=await sy([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(sj())try{n=await aI("doxygen",e,a8,t,r),await sy([{name:"libclang-cpp9"}]);}catch(e){(0,q.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await sy([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await a4(aX("graphviz",void 0),"",r),n;}default:throw Error("Unsupported platform");}}async function a9(){if("win32"===process.platform){for(let e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await(0,o4.pathExists)((0,r_.join)(e,"doxygen.exe")))return await o8(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}var a7=B("16mXi"),ay=B("i9nXz"),s7=B("2mVwa"),q=B("hHq4F");async function ce(){if("darwin"===process.platform)try{let e=await(0,s7.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await o6("SDKROOT",t.trim()):(0,q.error)("SDKROOT not set");}catch(e){(0,q.error)(e);}}var r_=B("A8hFE"),q=B("hHq4F"),H=B("cLprm"),o4=B("3WkGD"),ct=f.resolve(__dirname,"../../src/gcc");const cr={13:{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-ucrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-msvcrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-msvcrt-r1",fileSuffix:"13.1.0-mingw-w64msvcrt-11.0.0-r1"},12:{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-ucrt":{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-msvcrt":{releaseName:"12.3.0-16.0.4-11.0.0-msvcrt-r1",fileSuffix:"12.3.0-mingw-w64msvcrt-11.0.0-r1"},"12.2.0-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};function cn(e,t,r){if("win32"===t){let t=cr[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,r_.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:aR,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${"ia32"===r?"i686":"x86_64"}-posix-seh-gcc-${t.fileSuffix}.7z`};}throw Error(`Unsupported platform '${t}'`);}async function ci(e,t,r){let n;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await sL("gcc-arm-embedded",e));try{n=await aI("g++",e,cn,t,r);}catch(t){(0,q.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),n=await co(e,r);}break;case"darwin":n=await s$("gcc",e);break;case"linux":"x64"===r?sD()?n=await sB("gcc",e):sU()?(n=sk("gcc",e),sk("gcc-c++",e),sk("libstdc++-devel",void 0)):sj()&&(n=await sy([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,q.info)(`Install g++-multilib because gcc for ${r} was requested`),sD()?await sB("gcc-multilib",e):sj()&&(await sy([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error(`Unsupported platform for ${r}`);}if(void 0!==n)return await cs(e,n.binDir),n;}async function co(e,t){var r,n;let i;if(await sL("mingw",e),"x64"===t&&(await(0,o4.pathExists)("C:/tools/mingw64/bin"))?(i="C:/tools/mingw64/bin",await o8(i)):"ia32"===t&&(await(0,o4.pathExists)("C:/tools/mingw32/bin"))?(i="C:/tools/mingw32/bin",await o8(i)):(await(0,o4.pathExists)(`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(i=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`),void 0!==i)return{binDir:i};}async function cs(e,t){let r=[];if("win32"===process.platform)r.push(o6("CC",(0,r_.addExeExt)(`${t}/gcc`)),o6("CXX",(0,r_.addExeExt)(`${t}/g++`)));else{var n;let i=j(a7)(null!==(n=j(ay)(e))&&void 0!==n?n:e);i>=5?(r.push(o6("CC",`${t}/gcc-${i}`),o6("CXX",`${t}/g++-${i}`)),sj()&&r.push(sR("cc",`${t}/gcc-${i}`),sR("cxx",`${t}/g++-${i}`),sR("gcc",`${t}/gcc-${i}`),sR("g++",`${t}/g++-${i}`))):(r.push(o6("CC",`${t}/gcc-${e}`),o6("CXX",`${t}/g++-${e}`)),sj()&&r.push(sR("cc",`${t}/gcc-${e}`),sR("cxx",`${t}/g++-${e}`),sR("gcc",`${t}/gcc-${e}`),sR("g++",`${t}/g++-${e}`)));}r.push(ce()),H.GITHUB_ACTIONS&&(await ca()),await Promise.all(r);}async function ca(){let e=(0,r_.join)(ct,"gcc_matcher.json");if(!(await(0,o4.pathExists)(e)))return(0,q.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,q.info)(`::add-matcher::${e}`);}var ak=B("l2nMb"),a7=B("16mXi"),r_=B("A8hFE"),q=B("hHq4F"),r_=B("A8hFE");function cc(e,t,r){let n=function(e){switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`);}}(t);return{binRelativeDir:"",binFileName:(0,r_.addExeExt)("ninja"),extractedFolderName:"",extractFunction:a_,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function cl(e,t,r){return aI("ninja",e,cc,t,r);}var cu=f.resolve(__dirname,"../../src/kcov");function cd(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,r_.addExeExt)("kcov"),extractFunction:aP};}function cp(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,r_.addExeExt)("kcov"),extractFunction:cf};}async function cf(e,t){let r=await aP(e,t,["--strip-components=1"]),n=await cm();"linux"===process.platform&&(sD()?await Promise.all([sB("libdwarf"),sB("libcurl-openssl")]):sU()?(sk("libdwarf-devel"),sk("libcurl-devel")):sj()&&(await sy([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==j(sn).sync("patch",{nothrow:!0})){let e=(0,r_.join)(cu,"gcc13.patch");await oX("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,q.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,r_.join)(r,"build");return await oX(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await oX(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function cm(){let e=j(sn).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await aA(aX("cmake",void 0),(0,r_.join)(t8(""),"cmake"),"");e=(0,r_.join)(t,"cmake");}let t=j(sn).sync("ninja",{nothrow:!0});return null===t&&(await cl(aX("ninja",void 0),(0,r_.join)(t8(""),"ninja"),"")),e;}async function ch(e,t,r){var n;let i;if("linux"!==process.platform){(0,q.info)("Kcov is not supported on non-linux");return;}let o=e.split("-"),s=(n=o[0]).match(/^v/)?n:`v${n}`,a=o[1],c=parseInt(s.replace(/^v/,""),10);return 38===c&&(s="v38"),"binary"===a&&c>=39?(i=await aI("kcov",s,cd,t,r),sD()?await sB("binutils"):sU()?sk("binutils"):sj()&&(await sy([{name:"libbinutils"}]))):i=await aI("kcov",s,cp,t,r),i;}var r_=B("A8hFE"),q=B("hHq4F"),H=B("cLprm"),aE=B("29uOU"),q=B("hHq4F"),r_=B("A8hFE");const cg=function(e){let t=new Set(e);for(let r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t;}(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4"]),cv=new Set(["10.0.1","15.0.5","15.0.6"]),cE=new Set(["3.5.1","3.6.1","3.6.2","3.7.1","3.8.1","3.9.1","6.0.1","7.0.1","7.1.0","8.0.1","11.0.1","11.1.0","12.0.1","15.0.4","15.0.5","15.0.6","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4"]),cy=new Map(),cw={"3.5.0":"-ubuntu-14.04","3.5.1":"","3.5.2":"-ubuntu-14.04","3.6.0":"-ubuntu-14.04","3.6.1":"-ubuntu-14.04","3.6.2":"-ubuntu-14.04","3.7.0":"-ubuntu-14.04","3.7.1":"-ubuntu-14.04","3.8.0":"-ubuntu-16.04","3.8.1":"-ubuntu-16.04","3.9.0":"-ubuntu-16.04","3.9.1":"-ubuntu-16.04","4.0.0":"-ubuntu-16.04","5.0.0":"-ubuntu16.04","5.0.1":"-ubuntu-16.04","5.0.2":"-ubuntu-16.04","6.0.0":"-ubuntu-16.04","6.0.1":"-ubuntu-16.04","7.0.0":"-ubuntu-16.04","7.0.1":"-ubuntu-18.04","7.1.0":"-ubuntu-14.04","8.0.0":"-ubuntu-18.04","9.0.0":"-ubuntu-18.04","9.0.1":"-ubuntu-16.04","10.0.0":"-ubuntu-18.04","10.0.1":"-ubuntu-16.04","11.0.0":"-ubuntu-20.04","11.0.1":"-ubuntu-16.04","11.1.0":"-ubuntu-16.04","12.0.0":"-ubuntu-20.04","12.0.1":"-ubuntu-16.04","13.0.0":"-ubuntu-20.04","13.0.0-ubuntu-16.04":"-ubuntu-16.04","13.0.0-ubuntu-20.04":"-ubuntu-20.04","13.0.1":"-ubuntu-18.04","13.0.1-ubuntu-18.04":"-ubuntu-18.04","14.0.0":"-ubuntu-18.04","15.0.2":"-rhel86","15.0.5":"-ubuntu-18.04","15.0.6":"-ubuntu-18.04","16.0.0":"-ubuntu-18.04","16.0.2":"-ubuntu-22.04","16.0.3":"-ubuntu-22.04","16.0.4":"-ubuntu-22.04"},cx="15.0.6";function cb(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function cS(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function cI(e){let t;if(cv.has(e))return null;let r="LLVM-",n=j(aE)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=j(aE)(e,"9.0.1"),o=!1;return i&&(t=cS(e,r,n),(await aD(t))||(o=!0)),(o||!i)&&(t=cb(e,r,n)),t;}function cO(e,t){switch(e){case"darwin":return function(e){if(cE.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return j(aE)(e,"9.0.1")?cS(e,r,n):cb(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=cy.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!cg.has(e))throw Error(`Unsupported Ubuntu version: ${e}`);t=n.replace(e,""),n=aj(cg,e)[0];}else""!==n&&n in cw?t=cw[n]:(t=cw[cx],(0,q.warning)(`Falling back to LLVM version ${cx} ${t} for the Ubuntu.`));let o="clang+llvm-";return(r="5.0.0"===n?`-linux-x86_64${t}.tar.xz`:t.includes("-rhel86")?`-x86_64-unknown-linux-gnu${t}.tar.xz`:`-x86_64-linux-gnu${t}.tar.xz`,j(aE)(n,"9.0.1"))?cS(n,o,r):cb(n,o,r);}(t);case"win32":return cI(t);default:return null;}}async function cR(e,t,r){let[n,i]=await aM(cg,t,e,cO);return(0,q.info)(`specific llvm version: ${n}`),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,r_.addExeExt)("clang"),extractFunction:"win32"===t?aC:(e,t)=>aP(e,t,["--strip-components=1"])};}"use strict";var q=B("hHq4F"),cT={};async function cC(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{S.execFile(e,t,{encoding:"utf8",shell:!1},(i,o,s)=>{if(i){if("errno"in i&&"ENOENT"===i.code){r(null);return;}n(Error(`Could not execute \`${e} ${t.join(" ")}\`: ${i} (stderr=${s})`));return;}r(o);});}));if(null===r)return[];let n=/^Distributor ID:\s*(.+)$/,i=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,o=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/,s=null,a=null,c=!1;for(let e of r.split("\n")){let t=e.match(n);if(null!==t){let e=t[1];if("Ubuntu"!==e)return[];c=!0;}let r=e.match(i);r&&(s=r);let l=e.match(o);if(l&&(a=l),c&&s&&a)break;}if(!c)return[];for(let e of[s,a])if(e){let t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map(e=>parseInt(e,10));}return[];}async function c_(){try{if(!sj())return null;{null===j(sn).sync("lsb_release",{nothrow:!0})&&(await sy([{name:"lsb-release"}]));let e=await(0,cT.getUbuntuVersion)();if(0===e.length)return(0,q.warning)("Failed to get the ubuntu major version."),null;return e;}}catch(e){return(0,q.warning)(e.toString()),null;}}Object.defineProperty(cT,"__esModule",{value:!0}),cT.getUbuntuVersion=void 0,cT.getUbuntuVersion=cC;var o4=B("3WkGD"),cP=f.resolve(__dirname,"../../src/llvm");async function c$(e,t,r){var n;let i=await cN(e,t,r);return await cD(null!==(n=i.installDir)&&void 0!==n?n:t,e),i;}let cA=!1;async function cN(e,t,r){let n;let i=aI("llvm",e,cR,t,r);cA?n=Promise.resolve():(n=cL(r,e),cA=!0);let[o,s]=await Promise.all([i,n]);return o;}async function cL(e,t){if("linux"===process.platform){let r=await c_();if(await ci(aX("gcc",void 0,r),"",e),sj()){let e=parseInt(t.split(".")[0],10);e<=10?await sy([{name:"libtinfo5"}]):await sy([{name:"libtinfo-dev"}]);}}}async function cD(e,t){var r,n;!function(e){if(null===j(ak)(e))try{let t=j(ay)(e);if(null!==t)(0,q.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}}(t);let i=(0,r_.join)(e,"lib"),o=null!==(r=process.env.LD_LIBRARY_PATH)&&void 0!==r?r:"",s=null!==(n=process.env.DYLD_LIBRARY_PATH)&&void 0!==n?n:"",a=[o6("LLVM_PATH",e),o6("LD_LIBRARY_PATH",`${i}${f.delimiter}${o}`),o6("DYLD_LIBRARY_PATH",`${i}${f.delimiter}${s}`),o6("LDFLAGS",`-L"${e}/lib"`),o6("CPPFLAGS",`-I"${e}/include"`),o6("CC",(0,r_.addExeExt)(`${e}/bin/clang`)),o6("CXX",(0,r_.addExeExt)(`${e}/bin/clang++`)),o6("LIBRARY_PATH",`${e}/lib`),ce()];sj()&&a.push(sR("cc",`${e}/bin/clang`),sR("cxx",`${e}/bin/clang++`),sR("clang",`${e}/bin/clang`),sR("clang++",`${e}/bin/clang++`),sR("lld",`${e}/bin/lld`),sR("ld.lld",`${e}/bin/ld.lld`),sR("llvm-ar",`${e}/bin/llvm-ar`)),H.GITHUB_ACTIONS&&(await ck()),await Promise.all(a);}async function cU(e,t,r){return H.GITHUB_ACTIONS&&(await ck()),cN(e,t,r);}async function ck(){let e=(0,r_.join)(cP,"llvm_matcher.json");if(!(await(0,o4.pathExists)(e)))return(0,q.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,q.info)(`::add-matcher::${e}`);}async function cj(e,t,r){switch(process.platform){case"win32":return sL("make",e);case"darwin":return await s$("make",e),await o8("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(sD())return sB("make",e);if(sU())return sk("make",e);if(sj())return sy([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}"use strict";"use strict";var cM={},cG=cM&&cM.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e));}catch(e){o(e);}}function a(e){try{c(n.throw(e));}catch(e){o(e);}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}c((n=n.apply(e,t||[])).next());});},cF=cM&&cM.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t;};Object.defineProperty(cM,"__esModule",{value:!0});var cB={},cH=cB&&cB.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t;};Object.defineProperty(cB,"__esModule",{value:!0});"use strict";const cq=cH(p);var cV={};function cX(e,t,r){let n=new cW(e,t,r);process.stdout.write(n.toString()+cq.EOL);}Object.defineProperty(cV,"__esModule",{value:!0}),cV.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},cB.issueCommand=cX,cB.issue=function(e,t=""){cX(e,{},t);};class cW{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${cV.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+`::${(e=this.message,cV.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))}`;}}"use strict";var cz={},cK=cz&&cz.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t;};Object.defineProperty(cz,"__esModule",{value:!0});const cY=cK(m),cQ=cK(p);cz.issueCommand=function(e,t){let r=process.env[`GITHUB_${e}`];if(!r)throw Error(`Unable to find environment variable for file command ${e}`);if(!cY.existsSync(r))throw Error(`Missing file at path: ${r}`);cY.appendFileSync(r,`${cV.toCommandValue(t)}${cQ.EOL}`,{encoding:"utf8"});};const cJ=cF(p),cZ=cF(f);function c0(e){cB.issue("error",e instanceof Error?e.toString():e);}function c1(e){cB.issue("group",e);}function c2(){cB.issue("endgroup");}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure";}(d=cM.ExitCode||(cM.ExitCode={})),cM.exportVariable=function(e,t){let r=cV.toCommandValue(t);process.env[e]=r;let n=process.env.GITHUB_ENV||"";if(n){let t="_GitHubActionsFileCommandDelimeter_",n=`${e}<<${t}${cJ.EOL}${r}${cJ.EOL}${t}`;cz.issueCommand("ENV",n);}else cB.issueCommand("set-env",{name:e},r);},cM.setSecret=function(e){cB.issueCommand("add-mask",{},e);},cM.addPath=function(e){let t=process.env.GITHUB_PATH||"";t?cz.issueCommand("PATH",e):cB.issueCommand("add-path",{},e),process.env.PATH=`${e}${cZ.delimiter}${process.env.PATH}`;},cM.getInput=function(e,t){let r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r)throw Error(`Input required and not supplied: ${e}`);return r.trim();},cM.setOutput=function(e,t){cB.issueCommand("set-output",{name:e},t);},cM.setCommandEcho=function(e){cB.issue("echo",e?"on":"off");},cM.setFailed=function(e){process.exitCode=d.Failure,c0(e);},cM.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},cM.debug=function(e){cB.issueCommand("debug",{},e);},cM.error=c0,cM.warning=function(e){cB.issue("warning",e instanceof Error?e.toString():e);},cM.info=function(e){process.stdout.write(e+cJ.EOL);},cM.startGroup=c1,cM.endGroup=c2,cM.group=function(e,t){return cG(this,void 0,void 0,function*(){let r;c1(e);try{r=yield t();}finally{c2();}return r;});},cM.saveState=function(e,t){cB.issueCommand("save-state",{name:e},t);},cM.getState=function(e){return process.env[`STATE_${e}`]||"";};const c3=C.env["ProgramFiles(x86)"],c4=[C.env["ProgramFiles(x86)"],C.env.ProgramFiles],c6=["Enterprise","Professional","Community"],c8=["2022","2019","2017"],c5={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};function c9(e){if(Object.values(c5).includes(e));else if(e in c5)return c5[e];return e;}const c7=`${c3}\\Microsoft Visual Studio\\Installer`;function le(e){let t;let r=c9(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return S.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){cM.warning(`vswhere failed: ${e}`);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&m.existsSync(n))return cM.info(`Found with vswhere: ${n}`),n;cM.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(c5).includes(e));else for(let[t,r]of Object.entries(c5))if(r===e)return t;return e;}(e)]:c8;for(let e of c4)for(let t of i)for(let r of c6)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,cM.info(`Trying standard location: ${n}`),m.existsSync(n))return cM.info(`Found standard location: ${n}`),n;if(cM.info("Not found in standard locations"),n=`${c3}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,m.existsSync(n))return cM.info(`Found VS 2015: ${n}`),n;throw cM.info(`Not found in VS 2015 location: ${n}`),Error("Microsoft Visual Studio not found");}u=function(e,t,r,n,i,o){if("win32"!=C.platform){cM.info("This is not a Windows virtual environment, bye!");return;}C.env.PATH+=f.delimiter+c7;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];"true"==n&&a.push("uwp"),t&&a.push(t),r&&a.push(`-vcvars_ver=${r}`),"true"==i&&a.push("-vcvars_spectre_libs=spectre");let c=`"${le(o)}" ${a.join(" ")}`;cM.debug(`vcvars command-line: ${c}`);let l=S.execSync(`set && cls && ${c} && cls && set`,{shell:"cmd"}).toString(),u=l.split("\f"),d=u[0].split("\r\n"),p=u[1].split("\r\n"),m=u[2].split("\r\n"),h=p.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(h.length>0)throw Error("invalid parameters\r\n"+h.join("\r\n"));let g={};for(let e of d){let[t,r]=e.split("=");g[t]=r;}for(let e of(cM.startGroup("Environment variables"),m)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==g[t]&&(cM.info(`Setting ${t}`),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter(function(e,t,r){return r.indexOf(e)===t;}).join(";")),cM.exportVariable(t,r));}cM.endGroup(),cM.info("Configured Developer Command Prompt");};var q=B("hHq4F"),o4=B("3WkGD");async function lt(e,t,r,n,i,o,s){void 0!==t&&(await(0,o4.pathExists)(t))&&((0,q.info)(`Adding ${t} to PATH`),await o6("VCTargetsPath",t)),u(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(r),i,n,o,s,e);}var H=B("cLprm"),r_=B("A8hFE"),q=B("hHq4F"),o4=B("3WkGD"),lr=f.resolve(__dirname,"../../src/msvc");async function ln(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let c=c9(e);(0,q.info)(`Checking if MSVC ${c} is already installed`);let l=!1;try{let e=le(c);l=!0,(0,q.info)(`Found the pre-installed version of MSVC at ${e}`);}catch{}if(!l)try{"14.0"===c?(s="14.0",await sL("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===c?(s="14.16",await sL("visualstudio2017buildtools","15.9.41.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===c?(s="14.29",await sL("visualstudio2019buildtools","16.11.7.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===c?(s=void 0,await sL("visualstudio2022buildtools","117.0.5.0",[]),a=void 0):(0,q.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,q.error)(e);}await lt(c,a,r,s,n,i,o),H.GITHUB_ACTIONS&&(await li());}async function li(){let e=(0,r_.join)(lr,"msvc_matcher.json");if(!(await(0,o4.pathExists)(e)))return(0,q.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,q.info)(`::add-matcher::${e}`);}async function lo(e,t,r){if(!sj())return;if("string"==typeof s)return{binDir:s};let n=j(sn).sync("nala",{nothrow:!0});if(null!==n)return{binDir:s=(0,r_.dirname)(n)};let i=await sO("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");i$("/bin/bash",["-c",`echo "deb [signed-by=${i}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await sy([{name:"nala"}],!0):await sy([{name:"nala-legacy"}],!0);}catch(e){await sy([{name:"nala-legacy"}],!0);}return{binDir:s="/usr/bin"};}async function ls(e,t,r){if("win32"!==process.platform)return;await sL("opencppcoverage",e);let n=await la();return{binDir:n};}async function la(){let e="C:/Program Files/OpenCppCoverage";return await o8(e),e;}async function lc(e,t,r){switch(process.platform){case"win32":{await sL("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await o8(t),{binDir:t};}case"darwin":return s$("powershell",e,["--cask"]);case"linux":if(sD())return sB("powershell-bin",e,"yay");if(sU())return sk("curl"),i$("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),sk("powershell",e);if(sj()){await sy([{name:"curl"}]);let t=await c_(),r=`${t[0]}.0${t[1]}`;return i$("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),i$("dpkg",["-i","packages-microsoft-prod.deb"]),sy([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}var r_=(B("A8hFE"),B("A8hFE"));function ll(e,t,r){let n=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(r),i="win32"===t;return{binRelativeDir:"",binFileName:(0,r_.addExeExt)("task"),extractedFolderName:"",extractFunction:i?a_:aP,url:`https://github.com/go-task/task/releases/download/v${e}/task_${"win32"===t?"windows":t}_${n}.${i?"zip":"tar.gz"}`};}var q=B("hHq4F"),o4=B("3WkGD"),r_=B("A8hFE");let lu=!1;async function ld(e,t,r){return lu&&null!==j(sn).sync("vcpkg",{nothrow:!0})?{binDir:(0,r_.dirname)(j(sn).sync("vcpkg"))}:("linux"===process.platform&&(sD()?await Promise.all([sB("curl"),sB("zip"),sB("unzip"),sB("tar"),sB("git"),sB("pkg-config")]):sU()?(sk("curl"),sk("zip"),sk("unzip"),sk("tar"),sk("git"),sk("pkg-config")):sj()&&(await sy([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,o4.pathExists)((0,r_.join)(t,(0,r_.addShExt)("bootstrap-vcpkg",".bat"))))?(0,q.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):oW("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,r_.dirname)(t),stdio:"inherit"}),oW((0,r_.addShExt)((0,r_.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),o2(t),await o8(t),lu=!0,{binDir:t});}async function lp(e,t,r,n,i,o,s){(0,rT.startGroup)(`Installing ${e} ${t}`);let a=!1;try{let s;if("vcvarsall"===e)await lt(aX(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let o=lf[e];a=["llvm","clangformat","clangtidy"].includes(e);let c=(0,r_.join)(i,a?"llvm":e);s=await o(aX(e,t,r),c,n);}o.push(lg(e,s));}catch(t){(0,q.error)(t),s.push(`${e} failed to install`);}return(0,rT.endGroup)(),a;}const lf={nala:lo,cmake:aA,ninja:cl,python:az,vcpkg:ld,bazel:sM,conan:a1,meson:function(e,t,r){return aZ("meson",e);},gcovr:function(e,t,r){return aZ("gcovr",e);},opencppcoverage:ls,llvm:c$,gcc:ci,choco:sA,brew:sC,powershell:lc,ccache:function(e,t,r){switch(process.platform){case"win32":return sL("ccache",e);case"darwin":return s$("ccache",e);case"linux":if(sD())return sB("ccache",e);if(sU())return sk("ccache",e);if(sj())return sy([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,t,r){switch(process.platform){case"win32":return sL("sccache",e);case"linux":case"darwin":return s$("sccache",e);default:throw Error("Unsupported platform");}},doxygen:a5,graphviz:a4,cppcheck:a2,clangtidy:cU,clangformat:cU,msvc:ln,vcvarsall:lt,kcov:ch,make:cj,task:function(e,t,r){return aI("task",e,ll,t,r);},sevenzip:aO},lm=Object.keys(lf),lh=["compiler","architecture",...lm];function lg(e,t){let r=`✅ ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+=`
|
|
- The installation directory is ${t.installDir}`),""!==t.binDir&&(r+=`
|
|
- The binary directory is ${t.binDir}`)),r;}var rT=B("2heqc"),q=B("hHq4F"),ak=B("l2nMb");async function lv(e,t,r,n,i,o,s){try{let{compiler:a,version:c}=function(e){let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==j(ak)(e)||(0,q.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,rT.startGroup)(`Installing ${a} ${null!=c?c:""}`),a){case"llvm":case"clang":case"clang++":{let e=await c$(aX("llvm",c,t),(0,f.join)(r,"llvm"),n);await o6("GCOV","llvm-cov gcov"),i.push(lg("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e=aX("gcc",c,t),s=await ci(e,(0,f.join)(r,"gcc"),n);o&&(await o6("CPPFLAGS","")),await function(e){let t=j(ak)(e),r=null!==t?j(a7)(t):e,n=""!==r?`gcov-${r}`:"gcov";return o6("GCOV",n);}(e),i.push(lg("gcc",s));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await ln(aX("msvc",c,t),(0,f.join)(r,"msvc"),n);o&&(await o6("CPPFLAGS","")),i.push(lg("msvc",e));break;}case"appleclang":case"applellvm":(0,rT.notice)("Assuming apple-clang is already installed"),await Promise.all([o6("CC","clang"),o6("CXX","clang++")]),i.push(lg("apple-clang",void 0));break;default:s.push(`Unsupported compiler ${a}`);}}catch(t){(0,q.error)(t),s.push(`Failed to install the ${e}`);}(0,rT.endGroup)();}(async function(e){var t,r;let n,i,o=Promise.resolve();H.GITHUB_ACTIONS||(o=rR(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let s=function(e,t){t=t||{};var r,n,i,o,s,a={_:[]},c=0,l=0,u=0,d=(e=e||[]).length;let p=void 0!==t.alias,f=void 0!==t.unknown,m=void 0!==t.default;if(t.alias=t.alias||{},t.string=rC(t.string),t.boolean=rC(t.boolean),p)for(r in t.alias)for(c=0,n=t.alias[r]=rC(t.alias[r]);c<n.length;c++)(t.alias[n[c]]=n.concat(r)).splice(c,1);for(c=t.boolean.length;c-->0;)for(l=(n=t.alias[t.boolean[c]]||[]).length;l-->0;)t.boolean.push(n[l]);for(c=t.string.length;c-->0;)for(l=(n=t.alias[t.string[c]]||[]).length;l-->0;)t.string.push(n[l]);if(m){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),c=0;c<n.length;c++)t[o].push(n[c]);}let h=f?Object.keys(t.alias):[];for(c=0;c<d;c++){if("--"===(i=e[c])){a._=a._.concat(e.slice(++c));break;}for(l=0;l<i.length&&45===i.charCodeAt(l);l++);if(0===l)a._.push(i);else if("no-"===i.substring(l,l+3)){if(o=i.substring(l+3),f&&!~h.indexOf(o))return t.unknown(i);a[o]=!1;}else{for(u=l+1;u<i.length&&61!==i.charCodeAt(u);u++);for(o=i.substring(l,u),s=i.substring(++u)||c+1===d||45===(""+e[c+1]).charCodeAt(0)||e[++c],n=2===l?[o]:o,u=0;u<n.length;u++){if(o=n[u],f&&!~h.indexOf(o))return t.unknown("-".repeat(l)+o);!function(e,t,r,n){var i,o=e[t],s=~n.string.indexOf(t)?null==r||!0===r?"":String(r):"boolean"==typeof r?r:~n.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(i=+r)==0?i:r),!!r)):0*(i=+r)==0?i:r;e[t]=null==o?s:Array.isArray(o)?o.concat(s):[o,s];}(a,o,u+1<n.length||s,t);}}}if(m)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(p)for(r in a)for(n=t.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a;}(e,{string:lh,default:Object.fromEntries(lh.map(e=>[e,function(e){let t=(0,rT.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}(e)])),alias:{h:"help"},boolean:"help"});s.help&&((0,q.info)(`
|
|
setup-cpp [options]
|
|
setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
|
|
|
Install all the tools required for building and testing C++/C projects.
|
|
|
|
--architecture the cpu architecture to install the tools for. By default it uses the current CPU architecture.
|
|
--compiler the <compiler> to install.
|
|
You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'
|
|
|
|
--$tool_name pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"
|
|
|
|
All the available tools:
|
|
`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let a=null!==(t=s.architecture)&&void 0!==t?t:process.arch,c=null!==(r=process.env.SETUP_CPP_DIR)&&void 0!==r?r:t8(""),l=[],u=[],d=W.create({autoloadLocales:!0});W.addLocale(j(z)),V.addLocale(j(X));let p=await c_();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!aW(e[t],t)),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(s,["llvm","clangtidy","clangformat"]))return(0,q.error)("The same version must be used for llvm, clangformat and clangtidy"),1;sD()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,q.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await sB("python-pygments"));let f=!1;for(let e of lm){let t=s[e];void 0!==t&&(n=Date.now(),f=await lp(e,t,p,a,c,l,u),i=Date.now(),(0,q.info)(`took ${d.format(n,i)||"0 seconds"}`));}let m=s.compiler;if(void 0!==m){let e=Date.now();await lv(m,p,c,a,l,f,u);let t=Date.now();(0,q.info)(`took ${d.format(e,t)||"0 seconds"}`);}if(await sr(),0===l.length&&0===u.length)return(0,q.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(l.forEach(e=>(0,q.success)(e)),u.forEach(e=>(0,q.error)(e)),(0,q.info)("setup-cpp finished"),!H.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,q.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,q.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await o,0===u.length?0:1;})(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,q.error)("main() panicked!"),(0,q.error)(e),process.exitCode=1;});
|
|
//# sourceMappingURL=setup-cpp.js.map
|